]> git.sur5r.net Git - bacula/bacula/blob - bacula/configure
Tweak update 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 BDB_VERSION
815 LIBBAC_LT_RELEASE
816 LIBBACCFG_LT_RELEASE
817 LIBBACPY_LT_RELEASE
818 LIBBACSQL_LT_RELEASE
819 LIBBACFIND_LT_RELEASE
820 CC
821 CFLAGS
822 LDFLAGS
823 CPPFLAGS
824 ac_ct_CC
825 EXEEXT
826 OBJEXT
827 CXX
828 CXXFLAGS
829 ac_ct_CXX
830 CPP
831 GREP
832 EGREP
833 INSTALL_PROGRAM
834 INSTALL_SCRIPT
835 INSTALL_DATA
836 MV
837 REMOVE
838 CP
839 SED
840 ECHO
841 CMP
842 TBL
843 AR
844 OPENSSL
845 MTX
846 DD
847 MKISOFS
848 PYTHON
849 GROWISOFS
850 DVDRWMEDIAINFO
851 DVDRWFORMAT
852 PKGCONFIG
853 QMAKE
854 GMAKE
855 WXCONFIG
856 WXFLAGS
857 CDRECORD
858 PIDOF
859 AWK
860 ARFLAGS
861 MAKE_SHELL
862 LOCAL_LIBS
863 LOCAL_CFLAGS
864 LOCAL_LDFLAGS
865 LOCAL_DEFS
866 LIBTOOL
867 build
868 build_cpu
869 build_vendor
870 build_os
871 host
872 host_cpu
873 host_vendor
874 host_os
875 FGREP
876 LD
877 DUMPBIN
878 ac_ct_DUMPBIN
879 NM
880 LN_S
881 OBJDUMP
882 STRIP
883 RANLIB
884 lt_ECHO
885 DSYMUTIL
886 NMEDIT
887 LIPO
888 OTOOL
889 OTOOL64
890 CXXCPP
891 DEFAULT_OBJECT_TYPE
892 DEFAULT_ARCHIVE_TYPE
893 DEFAULT_SHARED_OBJECT_TYPE
894 LIBTOOL_INSTALL_TARGET
895 LIBTOOL_UNINSTALL_TARGET
896 LIBTOOL_CLEAN_TARGET
897 QMAKE_LIBTOOL
898 FD_PLUGIN_DIR
899 INCLUDE_INSTALL_TARGET
900 INCLUDE_UNINSTALL_TARGET
901 HAVE_SUN_OS_TRUE
902 HAVE_SUN_OS_FALSE
903 HAVE_OSF1_OS_TRUE
904 HAVE_OSF1_OS_FALSE
905 HAVE_AIX_OS_TRUE
906 HAVE_AIX_OS_FALSE
907 HAVE_HPUX_OS_TRUE
908 HAVE_HPUX_OS_FALSE
909 HAVE_LINUX_OS_TRUE
910 HAVE_LINUX_OS_FALSE
911 HAVE_FREEBSD_OS_TRUE
912 HAVE_FREEBSD_OS_FALSE
913 HAVE_NETBSD_OS_TRUE
914 HAVE_NETBSD_OS_FALSE
915 HAVE_OPENBSD_OS_TRUE
916 HAVE_OPENBSD_OS_FALSE
917 HAVE_BSDI_OS_TRUE
918 HAVE_BSDI_OS_FALSE
919 HAVE_SGI_OS_TRUE
920 HAVE_SGI_OS_FALSE
921 HAVE_IRIX_OS_TRUE
922 HAVE_IRIX_OS_FALSE
923 HAVE_DARWIN_OS_TRUE
924 HAVE_DARWIN_OS_FALSE
925 SET_MAKE
926 MKINSTALLDIRS
927 USE_NLS
928 MSGFMT
929 GMSGFMT
930 XGETTEXT
931 MSGMERGE
932 INTL_MACOSX_LIBS
933 LIBICONV
934 LTLIBICONV
935 INTLLIBS
936 LIBINTL
937 LTLIBINTL
938 POSUB
939 GLIBC2
940 ALLOCA
941 GLIBC21
942 HAVE_POSIX_PRINTF
943 HAVE_ASPRINTF
944 HAVE_SNPRINTF
945 HAVE_WPRINTF
946 INTLBISON
947 BUILD_INCLUDED_LIBINTL
948 USE_INCLUDED_LIBINTL
949 CATOBJEXT
950 DATADIRNAME
951 INSTOBJEXT
952 GENCAT
953 INTLOBJS
954 INTL_LIBTOOL_SUFFIX_PREFIX
955 BAT_DIR
956 QWT_INC
957 QWT_LDFLAGS
958 QWT_LIB
959 QWT
960 WXCONS_CPPFLAGS
961 WXCONS_LDFLAGS
962 WX_DIR
963 TRAY_MONITOR_CPPFLAGS
964 TRAY_MONITOR_LDFLAGS
965 TRAY_MONITOR_DIR
966 TTOOL_LDFLAGS
967 STATIC_FD
968 STATIC_SD
969 STATIC_DIR
970 STATIC_CONS
971 STATIC_GNOME_CONS
972 STATIC_WX_CONS
973 ALL_DIRS
974 DIRD_DIR
975 DIR_TOOLS
976 STORED_DIR
977 CONS_INC
978 CONS_OBJ
979 CONS_SRC
980 CONS_LIBS
981 CONS_LDFLAGS
982 READLINE_SRC
983 PYTHON_LIBS
984 PYTHON_INCDIR
985 OPENSSL_LIBS
986 OPENSSL_INC
987 working_dir
988 archivedir
989 basename
990 hostname
991 scriptdir
992 bsrdir
993 logdir
994 plugindir
995 dump_email
996 job_email
997 smtp_host
998 piddir
999 subsysdir
1000 baseport
1001 dir_port
1002 fd_port
1003 sd_port
1004 dir_password
1005 fd_password
1006 sd_password
1007 mon_dir_password
1008 mon_fd_password
1009 mon_sd_password
1010 db_name
1011 db_user
1012 db_password
1013 db_port
1014 dir_user
1015 dir_group
1016 sd_user
1017 sd_group
1018 fd_user
1019 fd_group
1020 SBINPERM
1021 SQL_LFLAGS
1022 SQL_INCLUDE
1023 SQL_BINDIR
1024 DBI_DBD_DRIVERDIR
1025 uncomment_dbi
1026 DB_PROG
1027 DB_PROG_LIB
1028 cats
1029 DB_TYPE
1030 GETCONF
1031 XMKMF
1032 X_CFLAGS
1033 X_PRE_LIBS
1034 X_LIBS
1035 X_EXTRA_LIBS
1036 LIBOBJS
1037 ZLIBS
1038 AFS_CFLAGS
1039 AFS_LIBS
1040 CAP_LIBS
1041 FDLIBS
1042 DEBUG
1043 DINCLUDE
1044 DLIB
1045 DB_LIBS
1046 WCFLAGS
1047 WLDFLAGS
1048 WRAPLIBS
1049 OBJLIST
1050 TAPEDRIVE
1051 PSCMD
1052 WIN32
1053 MACOSX
1054 DISTNAME
1055 DISTVER
1056 LTLIBOBJS'
1057 ac_subst_files='MCOMMON'
1058       ac_precious_vars='build_alias
1059 host_alias
1060 target_alias
1061 CC
1062 CFLAGS
1063 LDFLAGS
1064 LIBS
1065 CPPFLAGS
1066 CXX
1067 CXXFLAGS
1068 CCC
1069 CPP
1070 WXCONFIG
1071 WXFLAGS
1072 CXXCPP
1073 XMKMF'
1074
1075
1076 # Initialize some variables set by options.
1077 ac_init_help=
1078 ac_init_version=false
1079 # The variables have the same names as the options, with
1080 # dashes changed to underlines.
1081 cache_file=/dev/null
1082 exec_prefix=NONE
1083 no_create=
1084 no_recursion=
1085 prefix=NONE
1086 program_prefix=NONE
1087 program_suffix=NONE
1088 program_transform_name=s,x,x,
1089 silent=
1090 site=
1091 srcdir=
1092 verbose=
1093 x_includes=NONE
1094 x_libraries=NONE
1095
1096 # Installation directory options.
1097 # These are left unexpanded so users can "make install exec_prefix=/foo"
1098 # and all the variables that are supposed to be based on exec_prefix
1099 # by default will actually change.
1100 # Use braces instead of parens because sh, perl, etc. also accept them.
1101 # (The list follows the same order as the GNU Coding Standards.)
1102 bindir='${exec_prefix}/bin'
1103 sbindir='${exec_prefix}/sbin'
1104 libexecdir='${exec_prefix}/libexec'
1105 datarootdir='${prefix}/share'
1106 datadir='${datarootdir}'
1107 sysconfdir='${prefix}/etc'
1108 sharedstatedir='${prefix}/com'
1109 localstatedir='${prefix}/var'
1110 includedir='${prefix}/include'
1111 oldincludedir='/usr/include'
1112 docdir='${datarootdir}/doc/${PACKAGE}'
1113 infodir='${datarootdir}/info'
1114 htmldir='${docdir}'
1115 dvidir='${docdir}'
1116 pdfdir='${docdir}'
1117 psdir='${docdir}'
1118 libdir='${exec_prefix}/lib'
1119 localedir='${datarootdir}/locale'
1120 mandir='${datarootdir}/man'
1121
1122 ac_prev=
1123 ac_dashdash=
1124 for ac_option
1125 do
1126   # If the previous option needs an argument, assign it.
1127   if test -n "$ac_prev"; then
1128     eval $ac_prev=\$ac_option
1129     ac_prev=
1130     continue
1131   fi
1132
1133   case $ac_option in
1134   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1135   *)    ac_optarg=yes ;;
1136   esac
1137
1138   # Accept the important Cygnus configure options, so we can diagnose typos.
1139
1140   case $ac_dashdash$ac_option in
1141   --)
1142     ac_dashdash=yes ;;
1143
1144   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1145     ac_prev=bindir ;;
1146   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1147     bindir=$ac_optarg ;;
1148
1149   -build | --build | --buil | --bui | --bu)
1150     ac_prev=build_alias ;;
1151   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1152     build_alias=$ac_optarg ;;
1153
1154   -cache-file | --cache-file | --cache-fil | --cache-fi \
1155   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1156     ac_prev=cache_file ;;
1157   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1158   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1159     cache_file=$ac_optarg ;;
1160
1161   --config-cache | -C)
1162     cache_file=config.cache ;;
1163
1164   -datadir | --datadir | --datadi | --datad)
1165     ac_prev=datadir ;;
1166   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1167     datadir=$ac_optarg ;;
1168
1169   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1170   | --dataroo | --dataro | --datar)
1171     ac_prev=datarootdir ;;
1172   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1173   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1174     datarootdir=$ac_optarg ;;
1175
1176   -disable-* | --disable-*)
1177     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1178     # Reject names that are not valid shell variable names.
1179     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1180       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1181    { (exit 1); exit 1; }; }
1182     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1183     eval enable_$ac_feature=no ;;
1184
1185   -docdir | --docdir | --docdi | --doc | --do)
1186     ac_prev=docdir ;;
1187   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1188     docdir=$ac_optarg ;;
1189
1190   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1191     ac_prev=dvidir ;;
1192   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1193     dvidir=$ac_optarg ;;
1194
1195   -enable-* | --enable-*)
1196     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1197     # Reject names that are not valid shell variable names.
1198     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1199       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1200    { (exit 1); exit 1; }; }
1201     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1202     eval enable_$ac_feature=\$ac_optarg ;;
1203
1204   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1205   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1206   | --exec | --exe | --ex)
1207     ac_prev=exec_prefix ;;
1208   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1209   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1210   | --exec=* | --exe=* | --ex=*)
1211     exec_prefix=$ac_optarg ;;
1212
1213   -gas | --gas | --ga | --g)
1214     # Obsolete; use --with-gas.
1215     with_gas=yes ;;
1216
1217   -help | --help | --hel | --he | -h)
1218     ac_init_help=long ;;
1219   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1220     ac_init_help=recursive ;;
1221   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1222     ac_init_help=short ;;
1223
1224   -host | --host | --hos | --ho)
1225     ac_prev=host_alias ;;
1226   -host=* | --host=* | --hos=* | --ho=*)
1227     host_alias=$ac_optarg ;;
1228
1229   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1230     ac_prev=htmldir ;;
1231   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1232   | --ht=*)
1233     htmldir=$ac_optarg ;;
1234
1235   -includedir | --includedir | --includedi | --included | --include \
1236   | --includ | --inclu | --incl | --inc)
1237     ac_prev=includedir ;;
1238   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1239   | --includ=* | --inclu=* | --incl=* | --inc=*)
1240     includedir=$ac_optarg ;;
1241
1242   -infodir | --infodir | --infodi | --infod | --info | --inf)
1243     ac_prev=infodir ;;
1244   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1245     infodir=$ac_optarg ;;
1246
1247   -libdir | --libdir | --libdi | --libd)
1248     ac_prev=libdir ;;
1249   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1250     libdir=$ac_optarg ;;
1251
1252   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1253   | --libexe | --libex | --libe)
1254     ac_prev=libexecdir ;;
1255   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1256   | --libexe=* | --libex=* | --libe=*)
1257     libexecdir=$ac_optarg ;;
1258
1259   -localedir | --localedir | --localedi | --localed | --locale)
1260     ac_prev=localedir ;;
1261   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1262     localedir=$ac_optarg ;;
1263
1264   -localstatedir | --localstatedir | --localstatedi | --localstated \
1265   | --localstate | --localstat | --localsta | --localst | --locals)
1266     ac_prev=localstatedir ;;
1267   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1268   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1269     localstatedir=$ac_optarg ;;
1270
1271   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1272     ac_prev=mandir ;;
1273   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1274     mandir=$ac_optarg ;;
1275
1276   -nfp | --nfp | --nf)
1277     # Obsolete; use --without-fp.
1278     with_fp=no ;;
1279
1280   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1281   | --no-cr | --no-c | -n)
1282     no_create=yes ;;
1283
1284   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1285   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1286     no_recursion=yes ;;
1287
1288   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1289   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1290   | --oldin | --oldi | --old | --ol | --o)
1291     ac_prev=oldincludedir ;;
1292   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1293   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1294   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1295     oldincludedir=$ac_optarg ;;
1296
1297   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1298     ac_prev=prefix ;;
1299   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1300     prefix=$ac_optarg ;;
1301
1302   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1303   | --program-pre | --program-pr | --program-p)
1304     ac_prev=program_prefix ;;
1305   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1306   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1307     program_prefix=$ac_optarg ;;
1308
1309   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1310   | --program-suf | --program-su | --program-s)
1311     ac_prev=program_suffix ;;
1312   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1313   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1314     program_suffix=$ac_optarg ;;
1315
1316   -program-transform-name | --program-transform-name \
1317   | --program-transform-nam | --program-transform-na \
1318   | --program-transform-n | --program-transform- \
1319   | --program-transform | --program-transfor \
1320   | --program-transfo | --program-transf \
1321   | --program-trans | --program-tran \
1322   | --progr-tra | --program-tr | --program-t)
1323     ac_prev=program_transform_name ;;
1324   -program-transform-name=* | --program-transform-name=* \
1325   | --program-transform-nam=* | --program-transform-na=* \
1326   | --program-transform-n=* | --program-transform-=* \
1327   | --program-transform=* | --program-transfor=* \
1328   | --program-transfo=* | --program-transf=* \
1329   | --program-trans=* | --program-tran=* \
1330   | --progr-tra=* | --program-tr=* | --program-t=*)
1331     program_transform_name=$ac_optarg ;;
1332
1333   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1334     ac_prev=pdfdir ;;
1335   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1336     pdfdir=$ac_optarg ;;
1337
1338   -psdir | --psdir | --psdi | --psd | --ps)
1339     ac_prev=psdir ;;
1340   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1341     psdir=$ac_optarg ;;
1342
1343   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1344   | -silent | --silent | --silen | --sile | --sil)
1345     silent=yes ;;
1346
1347   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1348     ac_prev=sbindir ;;
1349   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1350   | --sbi=* | --sb=*)
1351     sbindir=$ac_optarg ;;
1352
1353   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1354   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1355   | --sharedst | --shareds | --shared | --share | --shar \
1356   | --sha | --sh)
1357     ac_prev=sharedstatedir ;;
1358   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1359   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1360   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1361   | --sha=* | --sh=*)
1362     sharedstatedir=$ac_optarg ;;
1363
1364   -site | --site | --sit)
1365     ac_prev=site ;;
1366   -site=* | --site=* | --sit=*)
1367     site=$ac_optarg ;;
1368
1369   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1370     ac_prev=srcdir ;;
1371   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1372     srcdir=$ac_optarg ;;
1373
1374   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1375   | --syscon | --sysco | --sysc | --sys | --sy)
1376     ac_prev=sysconfdir ;;
1377   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1378   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1379     sysconfdir=$ac_optarg ;;
1380
1381   -target | --target | --targe | --targ | --tar | --ta | --t)
1382     ac_prev=target_alias ;;
1383   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1384     target_alias=$ac_optarg ;;
1385
1386   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1387     verbose=yes ;;
1388
1389   -version | --version | --versio | --versi | --vers | -V)
1390     ac_init_version=: ;;
1391
1392   -with-* | --with-*)
1393     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1394     # Reject names that are not valid shell variable names.
1395     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1396       { echo "$as_me: error: invalid package name: $ac_package" >&2
1397    { (exit 1); exit 1; }; }
1398     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1399     eval with_$ac_package=\$ac_optarg ;;
1400
1401   -without-* | --without-*)
1402     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1403     # Reject names that are not valid shell variable names.
1404     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1405       { echo "$as_me: error: invalid package name: $ac_package" >&2
1406    { (exit 1); exit 1; }; }
1407     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1408     eval with_$ac_package=no ;;
1409
1410   --x)
1411     # Obsolete; use --with-x.
1412     with_x=yes ;;
1413
1414   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1415   | --x-incl | --x-inc | --x-in | --x-i)
1416     ac_prev=x_includes ;;
1417   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1418   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1419     x_includes=$ac_optarg ;;
1420
1421   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1422   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1423     ac_prev=x_libraries ;;
1424   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1425   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1426     x_libraries=$ac_optarg ;;
1427
1428   -*) { echo "$as_me: error: unrecognized option: $ac_option
1429 Try \`$0 --help' for more information." >&2
1430    { (exit 1); exit 1; }; }
1431     ;;
1432
1433   *=*)
1434     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1435     # Reject names that are not valid shell variable names.
1436     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1437       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1438    { (exit 1); exit 1; }; }
1439     eval $ac_envvar=\$ac_optarg
1440     export $ac_envvar ;;
1441
1442   *)
1443     # FIXME: should be removed in autoconf 3.0.
1444     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1445     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1446       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1447     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1448     ;;
1449
1450   esac
1451 done
1452
1453 if test -n "$ac_prev"; then
1454   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1455   { echo "$as_me: error: missing argument to $ac_option" >&2
1456    { (exit 1); exit 1; }; }
1457 fi
1458
1459 # Be sure to have absolute directory names.
1460 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1461                 datadir sysconfdir sharedstatedir localstatedir includedir \
1462                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1463                 libdir localedir mandir
1464 do
1465   eval ac_val=\$$ac_var
1466   case $ac_val in
1467     [\\/$]* | ?:[\\/]* )  continue;;
1468     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1469   esac
1470   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1471    { (exit 1); exit 1; }; }
1472 done
1473
1474 # There might be people who depend on the old broken behavior: `$host'
1475 # used to hold the argument of --host etc.
1476 # FIXME: To remove some day.
1477 build=$build_alias
1478 host=$host_alias
1479 target=$target_alias
1480
1481 # FIXME: To remove some day.
1482 if test "x$host_alias" != x; then
1483   if test "x$build_alias" = x; then
1484     cross_compiling=maybe
1485     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1486     If a cross compiler is detected then cross compile mode will be used." >&2
1487   elif test "x$build_alias" != "x$host_alias"; then
1488     cross_compiling=yes
1489   fi
1490 fi
1491
1492 ac_tool_prefix=
1493 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1494
1495 test "$silent" = yes && exec 6>/dev/null
1496
1497
1498 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1499 ac_ls_di=`ls -di .` &&
1500 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1501   { echo "$as_me: error: Working directory cannot be determined" >&2
1502    { (exit 1); exit 1; }; }
1503 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1504   { echo "$as_me: error: pwd does not report name of working directory" >&2
1505    { (exit 1); exit 1; }; }
1506
1507
1508 # Find the source files, if location was not specified.
1509 if test -z "$srcdir"; then
1510   ac_srcdir_defaulted=yes
1511   # Try the directory containing this script, then the parent directory.
1512   ac_confdir=`$as_dirname -- "$0" ||
1513 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1514          X"$0" : 'X\(//\)[^/]' \| \
1515          X"$0" : 'X\(//\)$' \| \
1516          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1517 echo X"$0" |
1518     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1519             s//\1/
1520             q
1521           }
1522           /^X\(\/\/\)[^/].*/{
1523             s//\1/
1524             q
1525           }
1526           /^X\(\/\/\)$/{
1527             s//\1/
1528             q
1529           }
1530           /^X\(\/\).*/{
1531             s//\1/
1532             q
1533           }
1534           s/.*/./; q'`
1535   srcdir=$ac_confdir
1536   if test ! -r "$srcdir/$ac_unique_file"; then
1537     srcdir=..
1538   fi
1539 else
1540   ac_srcdir_defaulted=no
1541 fi
1542 if test ! -r "$srcdir/$ac_unique_file"; then
1543   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1544   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1545    { (exit 1); exit 1; }; }
1546 fi
1547 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1548 ac_abs_confdir=`(
1549         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1550    { (exit 1); exit 1; }; }
1551         pwd)`
1552 # When building in place, set srcdir=.
1553 if test "$ac_abs_confdir" = "$ac_pwd"; then
1554   srcdir=.
1555 fi
1556 # Remove unnecessary trailing slashes from srcdir.
1557 # Double slashes in file names in object file debugging info
1558 # mess up M-x gdb in Emacs.
1559 case $srcdir in
1560 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1561 esac
1562 for ac_var in $ac_precious_vars; do
1563   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1564   eval ac_env_${ac_var}_value=\$${ac_var}
1565   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1566   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1567 done
1568
1569 #
1570 # Report the --help message.
1571 #
1572 if test "$ac_init_help" = "long"; then
1573   # Omit some internal or obsolete options to make the list less imposing.
1574   # This message is too long to be a string in the A/UX 3.1 sh.
1575   cat <<_ACEOF
1576 \`configure' configures this package to adapt to many kinds of systems.
1577
1578 Usage: $0 [OPTION]... [VAR=VALUE]...
1579
1580 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1581 VAR=VALUE.  See below for descriptions of some of the useful variables.
1582
1583 Defaults for the options are specified in brackets.
1584
1585 Configuration:
1586   -h, --help              display this help and exit
1587       --help=short        display options specific to this package
1588       --help=recursive    display the short help of all the included packages
1589   -V, --version           display version information and exit
1590   -q, --quiet, --silent   do not print \`checking...' messages
1591       --cache-file=FILE   cache test results in FILE [disabled]
1592   -C, --config-cache      alias for \`--cache-file=config.cache'
1593   -n, --no-create         do not create output files
1594       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1595
1596 Installation directories:
1597   --prefix=PREFIX         install architecture-independent files in PREFIX
1598                           [$ac_default_prefix]
1599   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1600                           [PREFIX]
1601
1602 By default, \`make install' will install all the files in
1603 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1604 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1605 for instance \`--prefix=\$HOME'.
1606
1607 For better control, use the options below.
1608
1609 Fine tuning of the installation directories:
1610   --bindir=DIR           user executables [EPREFIX/bin]
1611   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1612   --libexecdir=DIR       program executables [EPREFIX/libexec]
1613   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1614   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1615   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1616   --libdir=DIR           object code libraries [EPREFIX/lib]
1617   --includedir=DIR       C header files [PREFIX/include]
1618   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1619   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1620   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1621   --infodir=DIR          info documentation [DATAROOTDIR/info]
1622   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1623   --mandir=DIR           man documentation [DATAROOTDIR/man]
1624   --docdir=DIR           documentation root [DATAROOTDIR/doc/PACKAGE]
1625   --htmldir=DIR          html documentation [DOCDIR]
1626   --dvidir=DIR           dvi documentation [DOCDIR]
1627   --pdfdir=DIR           pdf documentation [DOCDIR]
1628   --psdir=DIR            ps documentation [DOCDIR]
1629 _ACEOF
1630
1631   cat <<\_ACEOF
1632
1633 X features:
1634   --x-includes=DIR    X include files are in DIR
1635   --x-libraries=DIR   X library files are in DIR
1636
1637 System types:
1638   --build=BUILD     configure for building on BUILD [guessed]
1639   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1640 _ACEOF
1641 fi
1642
1643 if test -n "$ac_init_help"; then
1644
1645   cat <<\_ACEOF
1646
1647 Optional Features:
1648   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1649   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1650   --enable-libtool        enable building using GNU libtool [default=yes]
1651   --enable-shared[=PKGS]  build shared libraries [default=yes]
1652   --enable-static[=PKGS]  build static libraries [default=no]
1653   --enable-fast-install[=PKGS]
1654                           optimize for fast installation [default=yes]
1655   --disable-libtool-lock  avoid locking (might break parallel builds)
1656   --enable-includes       enable installing of include files [default=no]
1657   --disable-nls           do not use Native Language Support
1658   --disable-rpath         do not hardcode runtime library paths
1659   --enable-gnome          enable build of bgnome-console GUI [default=no]
1660   --enable-bat            enable build of bat Qt4 GUI [default=no]
1661   --enable-bwx-console    enable build of wxWidgets console [default=no]
1662   --enable-tray-monitor   enable build of Gnome tray monitor (compatible with
1663                           KDE [default=no]
1664   --enable-smartalloc     enable smartalloc debugging support [default=no]
1665   --enable-lockmgr        enable lock manager support [default=no]
1666   --enable-static-tools   enable static tape tools [default=no]
1667   --enable-static-fd      enable static File daemon [default=no]
1668   --enable-static-sd      enable static Storage daemon [default=no]
1669   --enable-static-dir     enable static Director [default=no]
1670   --enable-static-cons    enable static Console [default=no]
1671   --enable-client-only    build client (File daemon) only [default=no]
1672   --enable-build-dird     enable building of dird (Director) [default=yes]
1673   --enable-build-stored   enable building of stored (Storage daemon)
1674                           [default=yes]
1675   --disable-conio         disable conio support [default=no]
1676   --enable-ipv6           enable ipv6 support [default=yes]
1677   --disable-readline      disable readline support [default=yes]
1678   --enable-batch-insert   enable the DB batch insert code [default=no]
1679   --disable-largefile     omit support for large files
1680   --disable-afs           disable afs support [default=auto]
1681   --disable-acl           disable acl support [default=auto]
1682   --disable-xattr         disable xattr support [default=auto]
1683
1684 Optional Packages:
1685   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1686   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1687   --with-pic              try to use only PIC/non-PIC objects [default=use
1688                           both]
1689   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1690   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1691   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1692   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1693   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1694   --without-libintl-prefix     don't search for libintl in includedir and libdir
1695   --with-included-gettext use the GNU gettext library included here
1696   --with-readline[=DIR]   specify readline library directory
1697   --with-python[=DIR]     Include Python support. DIR is the Python base
1698                           install directory, default is to search through a
1699                           number of common places for the Python files.
1700   --with-tcp-wrappers[=DIR]
1701                           enable tcpwrappers support
1702   --with-openssl[=DIR]    Include OpenSSL support. DIR is the OpenSSL base
1703   --with-working-dir=PATH specify path of Bacula working directory
1704   --with-archivedir=PATH  specify path of SD archive directory
1705   --with-basename=RESNAME specify base resource name for daemons
1706   --with-hostname=RESNAME specify host name for daemons
1707   --with-scriptdir=PATH   specify path of Bacula scripts directory
1708   --with-bsrdir=PATH      specify path of Bacula bsrs directory
1709   --with-logdir=PATH      specify path of Bacula logs directory
1710   --with-plugindir=PATH   specify path of Bacula plugins directory
1711   --with-dump-email=EMAIL dump email address
1712   --with-job-email=EMAIL  job output email address
1713   --with-smtp-host=HOST   SMTP mail host address
1714   --with-pid-dir=PATH     specify location of Bacula pid files
1715   --with-subsys-dir=PATH  specify location of Bacula subsys file
1716   --with-baseport=PORT    specify base port address for daemons
1717   --with-dir-password=PASSWORD
1718                           specify Director's password
1719   --with-fd-password=PASSWORD
1720                           specify Client's password
1721   --with-sd-password=PASSWORD
1722                           specify Storage daemon's password
1723   --with-mon-dir-password=PASSWORD
1724                           specify Director's password used by the monitor
1725   --with-mon-fd-password=PASSWORD
1726                           specify Client's password used by the monitor
1727   --with-mon-sd-password=PASSWORD
1728                           specify Storage daemon's password used by the
1729                           monitor
1730   --with-db-name=DBNAME   specify database name [default=bacula]
1731   --with-db-user=UNAME    specify database user [default=bacula]
1732   --with-db-password=PWD  specify database password [default=*none*]
1733   --with-db-port=DBPORT   specify a database port [default=null]
1734   --with-dir-user=USER    specify user for Director daemon
1735   --with-dir-group=GROUP  specify group for Director daemon
1736   --with-sd-user=USER     specify user for Storage daemon
1737   --with-sd-group=GROUP   specify group for Storage daemon
1738   --with-fd-user=USER     specify user for File daemon
1739   --with-fd-group=GROUP   specify group for File daemon
1740   --with-sbin-perm=MODE   specify permissions for sbin binaries [default=0750]
1741   --with-postgresql[=DIR] Include PostgreSQL support. DIR is the PostgreSQL
1742                           base install directory, [default=/usr/local/pgsql]
1743   --with-mysql[=DIR]      Include MySQL support. DIR is the MySQL base install
1744                           directory, default is to search through a number of
1745                           common places for the MySQL files.
1746   --with-embedded-mysql[=DIR]
1747                           Include MySQL support. DIR is the MySQL base install
1748                           directory, default is to search through a number of
1749                           common places for the MySQL files.
1750   --with-ingres[=DIR]     Include Ingres support. DIR is the Ingres base
1751                           install directory, default is to search through a
1752                           number of common places for the Ingres files.
1753   --with-sqlite3[=DIR]    Include SQLite3 support. DIR is the SQLite3 base
1754                           install directory, default is to search through a
1755                           number of common places for the SQLite3 files.
1756   --with-dbi[=DIR]        Include DBI support. DIR is the DBD base install
1757                           directory, default is to search through a number of
1758                           common places for the DBI files.
1759   --with-dbi-driver[=DRIVER]
1760                           Suport for DBI driver. DRIVER is the one DBI driver
1761                           like Mysql, Postgresql, others. Default is to not
1762                           configure any driver.
1763   --with-x                use the X Window System
1764   --with-afsdir[=DIR]     Directory holding AFS includes/libs
1765
1766 Some influential environment variables:
1767   CC          C compiler command
1768   CFLAGS      C compiler flags
1769   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1770               nonstandard directory <lib dir>
1771   LIBS        libraries to pass to the linker, e.g. -l<library>
1772   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1773               you have headers in a nonstandard directory <include dir>
1774   CXX         C++ compiler command
1775   CXXFLAGS    C++ compiler flags
1776   CPP         C preprocessor
1777   WXCONFIG    wx-config command. On some systems, you must set it to
1778               wx-config-2.6 to use wxWidgets 2.6.
1779   WXFLAGS     Parameters to pass to wx-config (e.g. --unicode=no).
1780   CXXCPP      C++ preprocessor
1781   XMKMF       Path to xmkmf, Makefile generator for X Window System
1782
1783 Use these variables to override the choices made by `configure' or to help
1784 it to find libraries and programs with nonstandard names/locations.
1785
1786 _ACEOF
1787 ac_status=$?
1788 fi
1789
1790 if test "$ac_init_help" = "recursive"; then
1791   # If there are subdirs, report their specific --help.
1792   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1793     test -d "$ac_dir" || continue
1794     ac_builddir=.
1795
1796 case "$ac_dir" in
1797 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1798 *)
1799   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1800   # A ".." for each directory in $ac_dir_suffix.
1801   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1802   case $ac_top_builddir_sub in
1803   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1804   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1805   esac ;;
1806 esac
1807 ac_abs_top_builddir=$ac_pwd
1808 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1809 # for backward compatibility:
1810 ac_top_builddir=$ac_top_build_prefix
1811
1812 case $srcdir in
1813   .)  # We are building in place.
1814     ac_srcdir=.
1815     ac_top_srcdir=$ac_top_builddir_sub
1816     ac_abs_top_srcdir=$ac_pwd ;;
1817   [\\/]* | ?:[\\/]* )  # Absolute name.
1818     ac_srcdir=$srcdir$ac_dir_suffix;
1819     ac_top_srcdir=$srcdir
1820     ac_abs_top_srcdir=$srcdir ;;
1821   *) # Relative name.
1822     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1823     ac_top_srcdir=$ac_top_build_prefix$srcdir
1824     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1825 esac
1826 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1827
1828     cd "$ac_dir" || { ac_status=$?; continue; }
1829     # Check for guested configure.
1830     if test -f "$ac_srcdir/configure.gnu"; then
1831       echo &&
1832       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1833     elif test -f "$ac_srcdir/configure"; then
1834       echo &&
1835       $SHELL "$ac_srcdir/configure" --help=recursive
1836     else
1837       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1838     fi || ac_status=$?
1839     cd "$ac_pwd" || { ac_status=$?; break; }
1840   done
1841 fi
1842
1843 test -n "$ac_init_help" && exit $ac_status
1844 if $ac_init_version; then
1845   cat <<\_ACEOF
1846 configure
1847 generated by GNU Autoconf 2.61
1848
1849 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1850 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1851 This configure script is free software; the Free Software Foundation
1852 gives unlimited permission to copy, distribute and modify it.
1853 _ACEOF
1854   exit
1855 fi
1856 cat >config.log <<_ACEOF
1857 This file contains any messages produced by compilers while
1858 running configure, to aid debugging if configure makes a mistake.
1859
1860 It was created by $as_me, which was
1861 generated by GNU Autoconf 2.61.  Invocation command line was
1862
1863   $ $0 $@
1864
1865 _ACEOF
1866 exec 5>>config.log
1867 {
1868 cat <<_ASUNAME
1869 ## --------- ##
1870 ## Platform. ##
1871 ## --------- ##
1872
1873 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1874 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1875 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1876 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1877 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1878
1879 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1880 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1881
1882 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1883 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1884 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1885 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1886 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1887 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1888 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1889
1890 _ASUNAME
1891
1892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1893 for as_dir in $PATH
1894 do
1895   IFS=$as_save_IFS
1896   test -z "$as_dir" && as_dir=.
1897   echo "PATH: $as_dir"
1898 done
1899 IFS=$as_save_IFS
1900
1901 } >&5
1902
1903 cat >&5 <<_ACEOF
1904
1905
1906 ## ----------- ##
1907 ## Core tests. ##
1908 ## ----------- ##
1909
1910 _ACEOF
1911
1912
1913 # Keep a trace of the command line.
1914 # Strip out --no-create and --no-recursion so they do not pile up.
1915 # Strip out --silent because we don't want to record it for future runs.
1916 # Also quote any args containing shell meta-characters.
1917 # Make two passes to allow for proper duplicate-argument suppression.
1918 ac_configure_args=
1919 ac_configure_args0=
1920 ac_configure_args1=
1921 ac_must_keep_next=false
1922 for ac_pass in 1 2
1923 do
1924   for ac_arg
1925   do
1926     case $ac_arg in
1927     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1928     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1929     | -silent | --silent | --silen | --sile | --sil)
1930       continue ;;
1931     *\'*)
1932       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1933     esac
1934     case $ac_pass in
1935     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1936     2)
1937       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1938       if test $ac_must_keep_next = true; then
1939         ac_must_keep_next=false # Got value, back to normal.
1940       else
1941         case $ac_arg in
1942           *=* | --config-cache | -C | -disable-* | --disable-* \
1943           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1944           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1945           | -with-* | --with-* | -without-* | --without-* | --x)
1946             case "$ac_configure_args0 " in
1947               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1948             esac
1949             ;;
1950           -* ) ac_must_keep_next=true ;;
1951         esac
1952       fi
1953       ac_configure_args="$ac_configure_args '$ac_arg'"
1954       ;;
1955     esac
1956   done
1957 done
1958 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1959 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1960
1961 # When interrupted or exit'd, cleanup temporary files, and complete
1962 # config.log.  We remove comments because anyway the quotes in there
1963 # would cause problems or look ugly.
1964 # WARNING: Use '\'' to represent an apostrophe within the trap.
1965 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1966 trap 'exit_status=$?
1967   # Save into config.log some information that might help in debugging.
1968   {
1969     echo
1970
1971     cat <<\_ASBOX
1972 ## ---------------- ##
1973 ## Cache variables. ##
1974 ## ---------------- ##
1975 _ASBOX
1976     echo
1977     # The following way of writing the cache mishandles newlines in values,
1978 (
1979   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1980     eval ac_val=\$$ac_var
1981     case $ac_val in #(
1982     *${as_nl}*)
1983       case $ac_var in #(
1984       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1985 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1986       esac
1987       case $ac_var in #(
1988       _ | IFS | as_nl) ;; #(
1989       *) $as_unset $ac_var ;;
1990       esac ;;
1991     esac
1992   done
1993   (set) 2>&1 |
1994     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1995     *${as_nl}ac_space=\ *)
1996       sed -n \
1997         "s/'\''/'\''\\\\'\'''\''/g;
1998           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1999       ;; #(
2000     *)
2001       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2002       ;;
2003     esac |
2004     sort
2005 )
2006     echo
2007
2008     cat <<\_ASBOX
2009 ## ----------------- ##
2010 ## Output variables. ##
2011 ## ----------------- ##
2012 _ASBOX
2013     echo
2014     for ac_var in $ac_subst_vars
2015     do
2016       eval ac_val=\$$ac_var
2017       case $ac_val in
2018       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2019       esac
2020       echo "$ac_var='\''$ac_val'\''"
2021     done | sort
2022     echo
2023
2024     if test -n "$ac_subst_files"; then
2025       cat <<\_ASBOX
2026 ## ------------------- ##
2027 ## File substitutions. ##
2028 ## ------------------- ##
2029 _ASBOX
2030       echo
2031       for ac_var in $ac_subst_files
2032       do
2033         eval ac_val=\$$ac_var
2034         case $ac_val in
2035         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2036         esac
2037         echo "$ac_var='\''$ac_val'\''"
2038       done | sort
2039       echo
2040     fi
2041
2042     if test -s confdefs.h; then
2043       cat <<\_ASBOX
2044 ## ----------- ##
2045 ## confdefs.h. ##
2046 ## ----------- ##
2047 _ASBOX
2048       echo
2049       cat confdefs.h
2050       echo
2051     fi
2052     test "$ac_signal" != 0 &&
2053       echo "$as_me: caught signal $ac_signal"
2054     echo "$as_me: exit $exit_status"
2055   } >&5
2056   rm -f core *.core core.conftest.* &&
2057     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2058     exit $exit_status
2059 ' 0
2060 for ac_signal in 1 2 13 15; do
2061   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
2062 done
2063 ac_signal=0
2064
2065 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2066 rm -f -r conftest* confdefs.h
2067
2068 # Predefined preprocessor variables.
2069
2070 cat >>confdefs.h <<_ACEOF
2071 #define PACKAGE_NAME "$PACKAGE_NAME"
2072 _ACEOF
2073
2074
2075 cat >>confdefs.h <<_ACEOF
2076 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2077 _ACEOF
2078
2079
2080 cat >>confdefs.h <<_ACEOF
2081 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2082 _ACEOF
2083
2084
2085 cat >>confdefs.h <<_ACEOF
2086 #define PACKAGE_STRING "$PACKAGE_STRING"
2087 _ACEOF
2088
2089
2090 cat >>confdefs.h <<_ACEOF
2091 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2092 _ACEOF
2093
2094
2095 # Let the site file select an alternate cache file if it wants to.
2096 # Prefer explicitly selected file to automatically selected ones.
2097 if test -n "$CONFIG_SITE"; then
2098   set x "$CONFIG_SITE"
2099 elif test "x$prefix" != xNONE; then
2100   set x "$prefix/share/config.site" "$prefix/etc/config.site"
2101 else
2102   set x "$ac_default_prefix/share/config.site" \
2103         "$ac_default_prefix/etc/config.site"
2104 fi
2105 shift
2106 for ac_site_file
2107 do
2108   if test -r "$ac_site_file"; then
2109     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2110 echo "$as_me: loading site script $ac_site_file" >&6;}
2111     sed 's/^/| /' "$ac_site_file" >&5
2112     . "$ac_site_file"
2113   fi
2114 done
2115
2116 if test -r "$cache_file"; then
2117   # Some versions of bash will fail to source /dev/null (special
2118   # files actually), so we avoid doing that.
2119   if test -f "$cache_file"; then
2120     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
2121 echo "$as_me: loading cache $cache_file" >&6;}
2122     case $cache_file in
2123       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2124       *)                      . "./$cache_file";;
2125     esac
2126   fi
2127 else
2128   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
2129 echo "$as_me: creating cache $cache_file" >&6;}
2130   >$cache_file
2131 fi
2132
2133 # Check that the precious variables saved in the cache have kept the same
2134 # value.
2135 ac_cache_corrupted=false
2136 for ac_var in $ac_precious_vars; do
2137   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2138   eval ac_new_set=\$ac_env_${ac_var}_set
2139   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2140   eval ac_new_val=\$ac_env_${ac_var}_value
2141   case $ac_old_set,$ac_new_set in
2142     set,)
2143       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2144 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2145       ac_cache_corrupted=: ;;
2146     ,set)
2147       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2148 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2149       ac_cache_corrupted=: ;;
2150     ,);;
2151     *)
2152       if test "x$ac_old_val" != "x$ac_new_val"; then
2153         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2154 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2155         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
2156 echo "$as_me:   former value:  $ac_old_val" >&2;}
2157         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
2158 echo "$as_me:   current value: $ac_new_val" >&2;}
2159         ac_cache_corrupted=:
2160       fi;;
2161   esac
2162   # Pass precious variables to config.status.
2163   if test "$ac_new_set" = set; then
2164     case $ac_new_val in
2165     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2166     *) ac_arg=$ac_var=$ac_new_val ;;
2167     esac
2168     case " $ac_configure_args " in
2169       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2170       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2171     esac
2172   fi
2173 done
2174 if $ac_cache_corrupted; then
2175   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2176 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2177   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2178 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2179    { (exit 1); exit 1; }; }
2180 fi
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198 ac_ext=c
2199 ac_cpp='$CPP $CPPFLAGS'
2200 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2201 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2202 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2203
2204
2205 BUILD_DIR=`pwd`
2206 cd ..
2207 TOP_DIR=`pwd`
2208 cd ${BUILD_DIR}
2209
2210
2211 ac_aux_dir=
2212 for ac_dir in ${BUILD_DIR}/autoconf "$srcdir"/${BUILD_DIR}/autoconf; do
2213   if test -f "$ac_dir/install-sh"; then
2214     ac_aux_dir=$ac_dir
2215     ac_install_sh="$ac_aux_dir/install-sh -c"
2216     break
2217   elif 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/shtool"; then
2222     ac_aux_dir=$ac_dir
2223     ac_install_sh="$ac_aux_dir/shtool install -c"
2224     break
2225   fi
2226 done
2227 if test -z "$ac_aux_dir"; then
2228   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" >&5
2229 echo "$as_me: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" >&2;}
2230    { (exit 1); exit 1; }; }
2231 fi
2232
2233 # These three variables are undocumented and unsupported,
2234 # and are intended to be withdrawn in a future Autoconf release.
2235 # They can cause serious problems if a builder's source tree is in a directory
2236 # whose full name contains unusual characters.
2237 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2238 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2239 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2240
2241
2242 ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
2243
2244
2245 WIN32BUILDDIR=${BUILD_DIR}/src/win32
2246 WIN32MAINDIR=${BUILD_DIR}
2247 WIN32TOPDIR=${TOP_DIR}
2248
2249
2250
2251
2252 for ac_prog in true
2253 do
2254   # Extract the first word of "$ac_prog", so it can be a program name with args.
2255 set dummy $ac_prog; ac_word=$2
2256 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2257 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2258 if test "${ac_cv_path_TRUEPRG+set}" = set; then
2259   echo $ECHO_N "(cached) $ECHO_C" >&6
2260 else
2261   case $TRUEPRG in
2262   [\\/]* | ?:[\\/]*)
2263   ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
2264   ;;
2265   *)
2266   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2267 for as_dir in $PATH
2268 do
2269   IFS=$as_save_IFS
2270   test -z "$as_dir" && as_dir=.
2271   for ac_exec_ext in '' $ac_executable_extensions; do
2272   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2273     ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
2274     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2275     break 2
2276   fi
2277 done
2278 done
2279 IFS=$as_save_IFS
2280
2281   ;;
2282 esac
2283 fi
2284 TRUEPRG=$ac_cv_path_TRUEPRG
2285 if test -n "$TRUEPRG"; then
2286   { echo "$as_me:$LINENO: result: $TRUEPRG" >&5
2287 echo "${ECHO_T}$TRUEPRG" >&6; }
2288 else
2289   { echo "$as_me:$LINENO: result: no" >&5
2290 echo "${ECHO_T}no" >&6; }
2291 fi
2292
2293
2294   test -n "$TRUEPRG" && break
2295 done
2296 test -n "$TRUEPRG" || TRUEPRG=":"
2297
2298 for ac_prog in false
2299 do
2300   # Extract the first word of "$ac_prog", so it can be a program name with args.
2301 set dummy $ac_prog; ac_word=$2
2302 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2303 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2304 if test "${ac_cv_path_FALSEPRG+set}" = set; then
2305   echo $ECHO_N "(cached) $ECHO_C" >&6
2306 else
2307   case $FALSEPRG in
2308   [\\/]* | ?:[\\/]*)
2309   ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
2310   ;;
2311   *)
2312   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2313 for as_dir in $PATH
2314 do
2315   IFS=$as_save_IFS
2316   test -z "$as_dir" && as_dir=.
2317   for ac_exec_ext in '' $ac_executable_extensions; do
2318   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2319     ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
2320     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2321     break 2
2322   fi
2323 done
2324 done
2325 IFS=$as_save_IFS
2326
2327   ;;
2328 esac
2329 fi
2330 FALSEPRG=$ac_cv_path_FALSEPRG
2331 if test -n "$FALSEPRG"; then
2332   { echo "$as_me:$LINENO: result: $FALSEPRG" >&5
2333 echo "${ECHO_T}$FALSEPRG" >&6; }
2334 else
2335   { echo "$as_me:$LINENO: result: no" >&5
2336 echo "${ECHO_T}no" >&6; }
2337 fi
2338
2339
2340   test -n "$FALSEPRG" && break
2341 done
2342 test -n "$FALSEPRG" || FALSEPRG=":"
2343
2344
2345
2346 post_host=
2347 if test "x$BACULA" != x; then
2348    post_host=`echo -${BACULA} | tr 'A-Z ' 'a-z-'`
2349 fi
2350 BACULA=${BACULA:-Bacula}
2351 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2352 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2353 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2354 BDB_VERSION=`sed -n -e 's/^.*BDB_VERSION \(.*\)$/\1/p' ${srcdir}/src/cats/cats.h`
2355
2356 LIBBAC_LT_RELEASE=`sed -n -e 's/^#.*LIBBAC_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2357 LIBBACCFG_LT_RELEASE=`sed -n -e 's/^#.*LIBBACCFG_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2358 LIBBACPY_LT_RELEASE=`sed -n -e 's/^#.*LIBBACPY_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2359
2360 LIBBAC_LT_RELEASE=${LIBBAC_LT_RELEASE:-$VERSION}
2361 LIBBACCFG_LT_RELEASE=${LIBBACCFG_LT_RELEASE:-$VERSION}
2362 LIBBACPY_LT_RELEASE=${LIBBACPY_LT_RELEASE:-$VERSION}
2363
2364
2365 LIBBACSQL_LT_RELEASE=`sed -n -e 's/^#.*LIBBACSQL_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2366
2367 LIBBACSQL_LT_RELEASE=${LIBBACSQL_LT_RELEASE:-$VERSION}
2368
2369
2370 LIBBACFIND_LT_RELEASE=`sed -n -e 's/^#.*LIBBACFIND_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2371
2372 LIBBACFIND_LT_RELEASE=${LIBBACFIND_LT_RELEASE:-$VERSION}
2373
2374
2375 echo "configuring for ${BACULA} $VERSION ($DATE)"
2376
2377
2378
2379 ac_ext=c
2380 ac_cpp='$CPP $CPPFLAGS'
2381 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2382 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2383 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2384 if test -n "$ac_tool_prefix"; then
2385   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2386 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2387 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2388 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2389 if test "${ac_cv_prog_CC+set}" = set; then
2390   echo $ECHO_N "(cached) $ECHO_C" >&6
2391 else
2392   if test -n "$CC"; then
2393   ac_cv_prog_CC="$CC" # Let the user override the test.
2394 else
2395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2396 for as_dir in $PATH
2397 do
2398   IFS=$as_save_IFS
2399   test -z "$as_dir" && as_dir=.
2400   for ac_exec_ext in '' $ac_executable_extensions; do
2401   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2402     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2403     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2404     break 2
2405   fi
2406 done
2407 done
2408 IFS=$as_save_IFS
2409
2410 fi
2411 fi
2412 CC=$ac_cv_prog_CC
2413 if test -n "$CC"; then
2414   { echo "$as_me:$LINENO: result: $CC" >&5
2415 echo "${ECHO_T}$CC" >&6; }
2416 else
2417   { echo "$as_me:$LINENO: result: no" >&5
2418 echo "${ECHO_T}no" >&6; }
2419 fi
2420
2421
2422 fi
2423 if test -z "$ac_cv_prog_CC"; then
2424   ac_ct_CC=$CC
2425   # Extract the first word of "gcc", so it can be a program name with args.
2426 set dummy gcc; ac_word=$2
2427 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2428 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2429 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2430   echo $ECHO_N "(cached) $ECHO_C" >&6
2431 else
2432   if test -n "$ac_ct_CC"; then
2433   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2434 else
2435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2436 for as_dir in $PATH
2437 do
2438   IFS=$as_save_IFS
2439   test -z "$as_dir" && as_dir=.
2440   for ac_exec_ext in '' $ac_executable_extensions; do
2441   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2442     ac_cv_prog_ac_ct_CC="gcc"
2443     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2444     break 2
2445   fi
2446 done
2447 done
2448 IFS=$as_save_IFS
2449
2450 fi
2451 fi
2452 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2453 if test -n "$ac_ct_CC"; then
2454   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2455 echo "${ECHO_T}$ac_ct_CC" >&6; }
2456 else
2457   { echo "$as_me:$LINENO: result: no" >&5
2458 echo "${ECHO_T}no" >&6; }
2459 fi
2460
2461   if test "x$ac_ct_CC" = x; then
2462     CC=""
2463   else
2464     case $cross_compiling:$ac_tool_warned in
2465 yes:)
2466 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2467 whose name does not start with the host triplet.  If you think this
2468 configuration is useful to you, please write to autoconf@gnu.org." >&5
2469 echo "$as_me: 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." >&2;}
2472 ac_tool_warned=yes ;;
2473 esac
2474     CC=$ac_ct_CC
2475   fi
2476 else
2477   CC="$ac_cv_prog_CC"
2478 fi
2479
2480 if test -z "$CC"; then
2481           if test -n "$ac_tool_prefix"; then
2482     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2483 set dummy ${ac_tool_prefix}cc; ac_word=$2
2484 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2485 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2486 if test "${ac_cv_prog_CC+set}" = set; then
2487   echo $ECHO_N "(cached) $ECHO_C" >&6
2488 else
2489   if test -n "$CC"; then
2490   ac_cv_prog_CC="$CC" # Let the user override the test.
2491 else
2492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2493 for as_dir in $PATH
2494 do
2495   IFS=$as_save_IFS
2496   test -z "$as_dir" && as_dir=.
2497   for ac_exec_ext in '' $ac_executable_extensions; do
2498   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2499     ac_cv_prog_CC="${ac_tool_prefix}cc"
2500     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2501     break 2
2502   fi
2503 done
2504 done
2505 IFS=$as_save_IFS
2506
2507 fi
2508 fi
2509 CC=$ac_cv_prog_CC
2510 if test -n "$CC"; then
2511   { echo "$as_me:$LINENO: result: $CC" >&5
2512 echo "${ECHO_T}$CC" >&6; }
2513 else
2514   { echo "$as_me:$LINENO: result: no" >&5
2515 echo "${ECHO_T}no" >&6; }
2516 fi
2517
2518
2519   fi
2520 fi
2521 if test -z "$CC"; then
2522   # Extract the first word of "cc", so it can be a program name with args.
2523 set dummy cc; ac_word=$2
2524 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2525 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2526 if test "${ac_cv_prog_CC+set}" = set; then
2527   echo $ECHO_N "(cached) $ECHO_C" >&6
2528 else
2529   if test -n "$CC"; then
2530   ac_cv_prog_CC="$CC" # Let the user override the test.
2531 else
2532   ac_prog_rejected=no
2533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2534 for as_dir in $PATH
2535 do
2536   IFS=$as_save_IFS
2537   test -z "$as_dir" && as_dir=.
2538   for ac_exec_ext in '' $ac_executable_extensions; do
2539   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2540     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2541        ac_prog_rejected=yes
2542        continue
2543      fi
2544     ac_cv_prog_CC="cc"
2545     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2546     break 2
2547   fi
2548 done
2549 done
2550 IFS=$as_save_IFS
2551
2552 if test $ac_prog_rejected = yes; then
2553   # We found a bogon in the path, so make sure we never use it.
2554   set dummy $ac_cv_prog_CC
2555   shift
2556   if test $# != 0; then
2557     # We chose a different compiler from the bogus one.
2558     # However, it has the same basename, so the bogon will be chosen
2559     # first if we set CC to just the basename; use the full file name.
2560     shift
2561     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2562   fi
2563 fi
2564 fi
2565 fi
2566 CC=$ac_cv_prog_CC
2567 if test -n "$CC"; then
2568   { echo "$as_me:$LINENO: result: $CC" >&5
2569 echo "${ECHO_T}$CC" >&6; }
2570 else
2571   { echo "$as_me:$LINENO: result: no" >&5
2572 echo "${ECHO_T}no" >&6; }
2573 fi
2574
2575
2576 fi
2577 if test -z "$CC"; then
2578   if test -n "$ac_tool_prefix"; then
2579   for ac_prog in cl.exe
2580   do
2581     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2582 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2583 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2584 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2585 if test "${ac_cv_prog_CC+set}" = set; then
2586   echo $ECHO_N "(cached) $ECHO_C" >&6
2587 else
2588   if test -n "$CC"; then
2589   ac_cv_prog_CC="$CC" # Let the user override the test.
2590 else
2591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2592 for as_dir in $PATH
2593 do
2594   IFS=$as_save_IFS
2595   test -z "$as_dir" && as_dir=.
2596   for ac_exec_ext in '' $ac_executable_extensions; do
2597   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2598     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2599     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2600     break 2
2601   fi
2602 done
2603 done
2604 IFS=$as_save_IFS
2605
2606 fi
2607 fi
2608 CC=$ac_cv_prog_CC
2609 if test -n "$CC"; then
2610   { echo "$as_me:$LINENO: result: $CC" >&5
2611 echo "${ECHO_T}$CC" >&6; }
2612 else
2613   { echo "$as_me:$LINENO: result: no" >&5
2614 echo "${ECHO_T}no" >&6; }
2615 fi
2616
2617
2618     test -n "$CC" && break
2619   done
2620 fi
2621 if test -z "$CC"; then
2622   ac_ct_CC=$CC
2623   for ac_prog in cl.exe
2624 do
2625   # Extract the first word of "$ac_prog", so it can be a program name with args.
2626 set dummy $ac_prog; ac_word=$2
2627 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2628 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2629 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2630   echo $ECHO_N "(cached) $ECHO_C" >&6
2631 else
2632   if test -n "$ac_ct_CC"; then
2633   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2634 else
2635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2636 for as_dir in $PATH
2637 do
2638   IFS=$as_save_IFS
2639   test -z "$as_dir" && as_dir=.
2640   for ac_exec_ext in '' $ac_executable_extensions; do
2641   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2642     ac_cv_prog_ac_ct_CC="$ac_prog"
2643     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2644     break 2
2645   fi
2646 done
2647 done
2648 IFS=$as_save_IFS
2649
2650 fi
2651 fi
2652 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2653 if test -n "$ac_ct_CC"; then
2654   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2655 echo "${ECHO_T}$ac_ct_CC" >&6; }
2656 else
2657   { echo "$as_me:$LINENO: result: no" >&5
2658 echo "${ECHO_T}no" >&6; }
2659 fi
2660
2661
2662   test -n "$ac_ct_CC" && break
2663 done
2664
2665   if test "x$ac_ct_CC" = x; then
2666     CC=""
2667   else
2668     case $cross_compiling:$ac_tool_warned in
2669 yes:)
2670 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2671 whose name does not start with the host triplet.  If you think this
2672 configuration is useful to you, please write to autoconf@gnu.org." >&5
2673 echo "$as_me: 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." >&2;}
2676 ac_tool_warned=yes ;;
2677 esac
2678     CC=$ac_ct_CC
2679   fi
2680 fi
2681
2682 fi
2683
2684
2685 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2686 See \`config.log' for more details." >&5
2687 echo "$as_me: error: no acceptable C compiler found in \$PATH
2688 See \`config.log' for more details." >&2;}
2689    { (exit 1); exit 1; }; }
2690
2691 # Provide some information about the compiler.
2692 echo "$as_me:$LINENO: checking for C compiler version" >&5
2693 ac_compiler=`set X $ac_compile; echo $2`
2694 { (ac_try="$ac_compiler --version >&5"
2695 case "(($ac_try" in
2696   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2697   *) ac_try_echo=$ac_try;;
2698 esac
2699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2700   (eval "$ac_compiler --version >&5") 2>&5
2701   ac_status=$?
2702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2703   (exit $ac_status); }
2704 { (ac_try="$ac_compiler -v >&5"
2705 case "(($ac_try" in
2706   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2707   *) ac_try_echo=$ac_try;;
2708 esac
2709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2710   (eval "$ac_compiler -v >&5") 2>&5
2711   ac_status=$?
2712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2713   (exit $ac_status); }
2714 { (ac_try="$ac_compiler -V >&5"
2715 case "(($ac_try" in
2716   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2717   *) ac_try_echo=$ac_try;;
2718 esac
2719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2720   (eval "$ac_compiler -V >&5") 2>&5
2721   ac_status=$?
2722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2723   (exit $ac_status); }
2724
2725 cat >conftest.$ac_ext <<_ACEOF
2726 /* confdefs.h.  */
2727 _ACEOF
2728 cat confdefs.h >>conftest.$ac_ext
2729 cat >>conftest.$ac_ext <<_ACEOF
2730 /* end confdefs.h.  */
2731
2732 int
2733 main ()
2734 {
2735
2736   ;
2737   return 0;
2738 }
2739 _ACEOF
2740 ac_clean_files_save=$ac_clean_files
2741 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2742 # Try to create an executable without -o first, disregard a.out.
2743 # It will help us diagnose broken compilers, and finding out an intuition
2744 # of exeext.
2745 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2746 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2747 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2748 #
2749 # List of possible output files, starting from the most likely.
2750 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2751 # only as a last resort.  b.out is created by i960 compilers.
2752 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2753 #
2754 # The IRIX 6 linker writes into existing files which may not be
2755 # executable, retaining their permissions.  Remove them first so a
2756 # subsequent execution test works.
2757 ac_rmfiles=
2758 for ac_file in $ac_files
2759 do
2760   case $ac_file in
2761     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2762     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2763   esac
2764 done
2765 rm -f $ac_rmfiles
2766
2767 if { (ac_try="$ac_link_default"
2768 case "(($ac_try" in
2769   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2770   *) ac_try_echo=$ac_try;;
2771 esac
2772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2773   (eval "$ac_link_default") 2>&5
2774   ac_status=$?
2775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2776   (exit $ac_status); }; then
2777   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2778 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2779 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2780 # so that the user can short-circuit this test for compilers unknown to
2781 # Autoconf.
2782 for ac_file in $ac_files ''
2783 do
2784   test -f "$ac_file" || continue
2785   case $ac_file in
2786     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2787         ;;
2788     [ab].out )
2789         # We found the default executable, but exeext='' is most
2790         # certainly right.
2791         break;;
2792     *.* )
2793         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2794         then :; else
2795            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2796         fi
2797         # We set ac_cv_exeext here because the later test for it is not
2798         # safe: cross compilers may not add the suffix if given an `-o'
2799         # argument, so we may need to know it at that point already.
2800         # Even if this section looks crufty: it has the advantage of
2801         # actually working.
2802         break;;
2803     * )
2804         break;;
2805   esac
2806 done
2807 test "$ac_cv_exeext" = no && ac_cv_exeext=
2808
2809 else
2810   ac_file=''
2811 fi
2812
2813 { echo "$as_me:$LINENO: result: $ac_file" >&5
2814 echo "${ECHO_T}$ac_file" >&6; }
2815 if test -z "$ac_file"; then
2816   echo "$as_me: failed program was:" >&5
2817 sed 's/^/| /' conftest.$ac_ext >&5
2818
2819 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2820 See \`config.log' for more details." >&5
2821 echo "$as_me: error: C compiler cannot create executables
2822 See \`config.log' for more details." >&2;}
2823    { (exit 77); exit 77; }; }
2824 fi
2825
2826 ac_exeext=$ac_cv_exeext
2827
2828 # Check that the compiler produces executables we can run.  If not, either
2829 # the compiler is broken, or we cross compile.
2830 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2831 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2832 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2833 # If not cross compiling, check that we can run a simple program.
2834 if test "$cross_compiling" != yes; then
2835   if { ac_try='./$ac_file'
2836   { (case "(($ac_try" in
2837   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2838   *) ac_try_echo=$ac_try;;
2839 esac
2840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2841   (eval "$ac_try") 2>&5
2842   ac_status=$?
2843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2844   (exit $ac_status); }; }; then
2845     cross_compiling=no
2846   else
2847     if test "$cross_compiling" = maybe; then
2848         cross_compiling=yes
2849     else
2850         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2851 If you meant to cross compile, use \`--host'.
2852 See \`config.log' for more details." >&5
2853 echo "$as_me: error: cannot run C compiled programs.
2854 If you meant to cross compile, use \`--host'.
2855 See \`config.log' for more details." >&2;}
2856    { (exit 1); exit 1; }; }
2857     fi
2858   fi
2859 fi
2860 { echo "$as_me:$LINENO: result: yes" >&5
2861 echo "${ECHO_T}yes" >&6; }
2862
2863 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2864 ac_clean_files=$ac_clean_files_save
2865 # Check that the compiler produces executables we can run.  If not, either
2866 # the compiler is broken, or we cross compile.
2867 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2868 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2869 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2870 echo "${ECHO_T}$cross_compiling" >&6; }
2871
2872 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2873 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2874 if { (ac_try="$ac_link"
2875 case "(($ac_try" in
2876   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2877   *) ac_try_echo=$ac_try;;
2878 esac
2879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2880   (eval "$ac_link") 2>&5
2881   ac_status=$?
2882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2883   (exit $ac_status); }; then
2884   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2885 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2886 # work properly (i.e., refer to `conftest.exe'), while it won't with
2887 # `rm'.
2888 for ac_file in conftest.exe conftest conftest.*; do
2889   test -f "$ac_file" || continue
2890   case $ac_file in
2891     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2892     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2893           break;;
2894     * ) break;;
2895   esac
2896 done
2897 else
2898   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2899 See \`config.log' for more details." >&5
2900 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2901 See \`config.log' for more details." >&2;}
2902    { (exit 1); exit 1; }; }
2903 fi
2904
2905 rm -f conftest$ac_cv_exeext
2906 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2907 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2908
2909 rm -f conftest.$ac_ext
2910 EXEEXT=$ac_cv_exeext
2911 ac_exeext=$EXEEXT
2912 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2913 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2914 if test "${ac_cv_objext+set}" = set; then
2915   echo $ECHO_N "(cached) $ECHO_C" >&6
2916 else
2917   cat >conftest.$ac_ext <<_ACEOF
2918 /* confdefs.h.  */
2919 _ACEOF
2920 cat confdefs.h >>conftest.$ac_ext
2921 cat >>conftest.$ac_ext <<_ACEOF
2922 /* end confdefs.h.  */
2923
2924 int
2925 main ()
2926 {
2927
2928   ;
2929   return 0;
2930 }
2931 _ACEOF
2932 rm -f conftest.o conftest.obj
2933 if { (ac_try="$ac_compile"
2934 case "(($ac_try" in
2935   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2936   *) ac_try_echo=$ac_try;;
2937 esac
2938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2939   (eval "$ac_compile") 2>&5
2940   ac_status=$?
2941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2942   (exit $ac_status); }; then
2943   for ac_file in conftest.o conftest.obj conftest.*; do
2944   test -f "$ac_file" || continue;
2945   case $ac_file in
2946     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2947     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2948        break;;
2949   esac
2950 done
2951 else
2952   echo "$as_me: failed program was:" >&5
2953 sed 's/^/| /' conftest.$ac_ext >&5
2954
2955 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2956 See \`config.log' for more details." >&5
2957 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2958 See \`config.log' for more details." >&2;}
2959    { (exit 1); exit 1; }; }
2960 fi
2961
2962 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2963 fi
2964 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2965 echo "${ECHO_T}$ac_cv_objext" >&6; }
2966 OBJEXT=$ac_cv_objext
2967 ac_objext=$OBJEXT
2968 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2969 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2970 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2971   echo $ECHO_N "(cached) $ECHO_C" >&6
2972 else
2973   cat >conftest.$ac_ext <<_ACEOF
2974 /* confdefs.h.  */
2975 _ACEOF
2976 cat confdefs.h >>conftest.$ac_ext
2977 cat >>conftest.$ac_ext <<_ACEOF
2978 /* end confdefs.h.  */
2979
2980 int
2981 main ()
2982 {
2983 #ifndef __GNUC__
2984        choke me
2985 #endif
2986
2987   ;
2988   return 0;
2989 }
2990 _ACEOF
2991 rm -f conftest.$ac_objext
2992 if { (ac_try="$ac_compile"
2993 case "(($ac_try" in
2994   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2995   *) ac_try_echo=$ac_try;;
2996 esac
2997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2998   (eval "$ac_compile") 2>conftest.er1
2999   ac_status=$?
3000   grep -v '^ *+' conftest.er1 >conftest.err
3001   rm -f conftest.er1
3002   cat conftest.err >&5
3003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3004   (exit $ac_status); } && {
3005          test -z "$ac_c_werror_flag" ||
3006          test ! -s conftest.err
3007        } && test -s conftest.$ac_objext; then
3008   ac_compiler_gnu=yes
3009 else
3010   echo "$as_me: failed program was:" >&5
3011 sed 's/^/| /' conftest.$ac_ext >&5
3012
3013         ac_compiler_gnu=no
3014 fi
3015
3016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3017 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3018
3019 fi
3020 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3021 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3022 GCC=`test $ac_compiler_gnu = yes && echo yes`
3023 ac_test_CFLAGS=${CFLAGS+set}
3024 ac_save_CFLAGS=$CFLAGS
3025 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3026 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3027 if test "${ac_cv_prog_cc_g+set}" = set; then
3028   echo $ECHO_N "(cached) $ECHO_C" >&6
3029 else
3030   ac_save_c_werror_flag=$ac_c_werror_flag
3031    ac_c_werror_flag=yes
3032    ac_cv_prog_cc_g=no
3033    CFLAGS="-g"
3034    cat >conftest.$ac_ext <<_ACEOF
3035 /* confdefs.h.  */
3036 _ACEOF
3037 cat confdefs.h >>conftest.$ac_ext
3038 cat >>conftest.$ac_ext <<_ACEOF
3039 /* end confdefs.h.  */
3040
3041 int
3042 main ()
3043 {
3044
3045   ;
3046   return 0;
3047 }
3048 _ACEOF
3049 rm -f conftest.$ac_objext
3050 if { (ac_try="$ac_compile"
3051 case "(($ac_try" in
3052   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3053   *) ac_try_echo=$ac_try;;
3054 esac
3055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3056   (eval "$ac_compile") 2>conftest.er1
3057   ac_status=$?
3058   grep -v '^ *+' conftest.er1 >conftest.err
3059   rm -f conftest.er1
3060   cat conftest.err >&5
3061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3062   (exit $ac_status); } && {
3063          test -z "$ac_c_werror_flag" ||
3064          test ! -s conftest.err
3065        } && test -s conftest.$ac_objext; then
3066   ac_cv_prog_cc_g=yes
3067 else
3068   echo "$as_me: failed program was:" >&5
3069 sed 's/^/| /' conftest.$ac_ext >&5
3070
3071         CFLAGS=""
3072       cat >conftest.$ac_ext <<_ACEOF
3073 /* confdefs.h.  */
3074 _ACEOF
3075 cat confdefs.h >>conftest.$ac_ext
3076 cat >>conftest.$ac_ext <<_ACEOF
3077 /* end confdefs.h.  */
3078
3079 int
3080 main ()
3081 {
3082
3083   ;
3084   return 0;
3085 }
3086 _ACEOF
3087 rm -f conftest.$ac_objext
3088 if { (ac_try="$ac_compile"
3089 case "(($ac_try" in
3090   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3091   *) ac_try_echo=$ac_try;;
3092 esac
3093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3094   (eval "$ac_compile") 2>conftest.er1
3095   ac_status=$?
3096   grep -v '^ *+' conftest.er1 >conftest.err
3097   rm -f conftest.er1
3098   cat conftest.err >&5
3099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3100   (exit $ac_status); } && {
3101          test -z "$ac_c_werror_flag" ||
3102          test ! -s conftest.err
3103        } && test -s conftest.$ac_objext; then
3104   :
3105 else
3106   echo "$as_me: failed program was:" >&5
3107 sed 's/^/| /' conftest.$ac_ext >&5
3108
3109         ac_c_werror_flag=$ac_save_c_werror_flag
3110          CFLAGS="-g"
3111          cat >conftest.$ac_ext <<_ACEOF
3112 /* confdefs.h.  */
3113 _ACEOF
3114 cat confdefs.h >>conftest.$ac_ext
3115 cat >>conftest.$ac_ext <<_ACEOF
3116 /* end confdefs.h.  */
3117
3118 int
3119 main ()
3120 {
3121
3122   ;
3123   return 0;
3124 }
3125 _ACEOF
3126 rm -f conftest.$ac_objext
3127 if { (ac_try="$ac_compile"
3128 case "(($ac_try" in
3129   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3130   *) ac_try_echo=$ac_try;;
3131 esac
3132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3133   (eval "$ac_compile") 2>conftest.er1
3134   ac_status=$?
3135   grep -v '^ *+' conftest.er1 >conftest.err
3136   rm -f conftest.er1
3137   cat conftest.err >&5
3138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3139   (exit $ac_status); } && {
3140          test -z "$ac_c_werror_flag" ||
3141          test ! -s conftest.err
3142        } && test -s conftest.$ac_objext; then
3143   ac_cv_prog_cc_g=yes
3144 else
3145   echo "$as_me: failed program was:" >&5
3146 sed 's/^/| /' conftest.$ac_ext >&5
3147
3148
3149 fi
3150
3151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
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    ac_c_werror_flag=$ac_save_c_werror_flag
3159 fi
3160 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3161 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3162 if test "$ac_test_CFLAGS" = set; then
3163   CFLAGS=$ac_save_CFLAGS
3164 elif test $ac_cv_prog_cc_g = yes; then
3165   if test "$GCC" = yes; then
3166     CFLAGS="-g -O2"
3167   else
3168     CFLAGS="-g"
3169   fi
3170 else
3171   if test "$GCC" = yes; then
3172     CFLAGS="-O2"
3173   else
3174     CFLAGS=
3175   fi
3176 fi
3177 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3178 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3179 if test "${ac_cv_prog_cc_c89+set}" = set; then
3180   echo $ECHO_N "(cached) $ECHO_C" >&6
3181 else
3182   ac_cv_prog_cc_c89=no
3183 ac_save_CC=$CC
3184 cat >conftest.$ac_ext <<_ACEOF
3185 /* confdefs.h.  */
3186 _ACEOF
3187 cat confdefs.h >>conftest.$ac_ext
3188 cat >>conftest.$ac_ext <<_ACEOF
3189 /* end confdefs.h.  */
3190 #include <stdarg.h>
3191 #include <stdio.h>
3192 #include <sys/types.h>
3193 #include <sys/stat.h>
3194 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3195 struct buf { int x; };
3196 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3197 static char *e (p, i)
3198      char **p;
3199      int i;
3200 {
3201   return p[i];
3202 }
3203 static char *f (char * (*g) (char **, int), char **p, ...)
3204 {
3205   char *s;
3206   va_list v;
3207   va_start (v,p);
3208   s = g (p, va_arg (v,int));
3209   va_end (v);
3210   return s;
3211 }
3212
3213 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3214    function prototypes and stuff, but not '\xHH' hex character constants.
3215    These don't provoke an error unfortunately, instead are silently treated
3216    as 'x'.  The following induces an error, until -std is added to get
3217    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3218    array size at least.  It's necessary to write '\x00'==0 to get something
3219    that's true only with -std.  */
3220 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3221
3222 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3223    inside strings and character constants.  */
3224 #define FOO(x) 'x'
3225 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3226
3227 int test (int i, double x);
3228 struct s1 {int (*f) (int a);};
3229 struct s2 {int (*f) (double a);};
3230 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3231 int argc;
3232 char **argv;
3233 int
3234 main ()
3235 {
3236 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3237   ;
3238   return 0;
3239 }
3240 _ACEOF
3241 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3242         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3243 do
3244   CC="$ac_save_CC $ac_arg"
3245   rm -f conftest.$ac_objext
3246 if { (ac_try="$ac_compile"
3247 case "(($ac_try" in
3248   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3249   *) ac_try_echo=$ac_try;;
3250 esac
3251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3252   (eval "$ac_compile") 2>conftest.er1
3253   ac_status=$?
3254   grep -v '^ *+' conftest.er1 >conftest.err
3255   rm -f conftest.er1
3256   cat conftest.err >&5
3257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3258   (exit $ac_status); } && {
3259          test -z "$ac_c_werror_flag" ||
3260          test ! -s conftest.err
3261        } && test -s conftest.$ac_objext; then
3262   ac_cv_prog_cc_c89=$ac_arg
3263 else
3264   echo "$as_me: failed program was:" >&5
3265 sed 's/^/| /' conftest.$ac_ext >&5
3266
3267
3268 fi
3269
3270 rm -f core conftest.err conftest.$ac_objext
3271   test "x$ac_cv_prog_cc_c89" != "xno" && break
3272 done
3273 rm -f conftest.$ac_ext
3274 CC=$ac_save_CC
3275
3276 fi
3277 # AC_CACHE_VAL
3278 case "x$ac_cv_prog_cc_c89" in
3279   x)
3280     { echo "$as_me:$LINENO: result: none needed" >&5
3281 echo "${ECHO_T}none needed" >&6; } ;;
3282   xno)
3283     { echo "$as_me:$LINENO: result: unsupported" >&5
3284 echo "${ECHO_T}unsupported" >&6; } ;;
3285   *)
3286     CC="$CC $ac_cv_prog_cc_c89"
3287     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3288 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3289 esac
3290
3291
3292 ac_ext=c
3293 ac_cpp='$CPP $CPPFLAGS'
3294 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3295 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3296 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3297
3298 ac_ext=cpp
3299 ac_cpp='$CXXCPP $CPPFLAGS'
3300 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3301 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3302 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3303 if test -z "$CXX"; then
3304   if test -n "$CCC"; then
3305     CXX=$CCC
3306   else
3307     if test -n "$ac_tool_prefix"; then
3308   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3309   do
3310     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3311 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3312 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3313 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3314 if test "${ac_cv_prog_CXX+set}" = set; then
3315   echo $ECHO_N "(cached) $ECHO_C" >&6
3316 else
3317   if test -n "$CXX"; then
3318   ac_cv_prog_CXX="$CXX" # Let the user override the test.
3319 else
3320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3321 for as_dir in $PATH
3322 do
3323   IFS=$as_save_IFS
3324   test -z "$as_dir" && as_dir=.
3325   for ac_exec_ext in '' $ac_executable_extensions; do
3326   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3327     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3328     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3329     break 2
3330   fi
3331 done
3332 done
3333 IFS=$as_save_IFS
3334
3335 fi
3336 fi
3337 CXX=$ac_cv_prog_CXX
3338 if test -n "$CXX"; then
3339   { echo "$as_me:$LINENO: result: $CXX" >&5
3340 echo "${ECHO_T}$CXX" >&6; }
3341 else
3342   { echo "$as_me:$LINENO: result: no" >&5
3343 echo "${ECHO_T}no" >&6; }
3344 fi
3345
3346
3347     test -n "$CXX" && break
3348   done
3349 fi
3350 if test -z "$CXX"; then
3351   ac_ct_CXX=$CXX
3352   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3353 do
3354   # Extract the first word of "$ac_prog", so it can be a program name with args.
3355 set dummy $ac_prog; ac_word=$2
3356 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3357 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3358 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3359   echo $ECHO_N "(cached) $ECHO_C" >&6
3360 else
3361   if test -n "$ac_ct_CXX"; then
3362   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3363 else
3364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3365 for as_dir in $PATH
3366 do
3367   IFS=$as_save_IFS
3368   test -z "$as_dir" && as_dir=.
3369   for ac_exec_ext in '' $ac_executable_extensions; do
3370   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3371     ac_cv_prog_ac_ct_CXX="$ac_prog"
3372     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3373     break 2
3374   fi
3375 done
3376 done
3377 IFS=$as_save_IFS
3378
3379 fi
3380 fi
3381 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3382 if test -n "$ac_ct_CXX"; then
3383   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3384 echo "${ECHO_T}$ac_ct_CXX" >&6; }
3385 else
3386   { echo "$as_me:$LINENO: result: no" >&5
3387 echo "${ECHO_T}no" >&6; }
3388 fi
3389
3390
3391   test -n "$ac_ct_CXX" && break
3392 done
3393
3394   if test "x$ac_ct_CXX" = x; then
3395     CXX="g++"
3396   else
3397     case $cross_compiling:$ac_tool_warned in
3398 yes:)
3399 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3400 whose name does not start with the host triplet.  If you think this
3401 configuration is useful to you, please write to autoconf@gnu.org." >&5
3402 echo "$as_me: 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." >&2;}
3405 ac_tool_warned=yes ;;
3406 esac
3407     CXX=$ac_ct_CXX
3408   fi
3409 fi
3410
3411   fi
3412 fi
3413 # Provide some information about the compiler.
3414 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3415 ac_compiler=`set X $ac_compile; echo $2`
3416 { (ac_try="$ac_compiler --version >&5"
3417 case "(($ac_try" in
3418   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3419   *) ac_try_echo=$ac_try;;
3420 esac
3421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3422   (eval "$ac_compiler --version >&5") 2>&5
3423   ac_status=$?
3424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3425   (exit $ac_status); }
3426 { (ac_try="$ac_compiler -v >&5"
3427 case "(($ac_try" in
3428   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3429   *) ac_try_echo=$ac_try;;
3430 esac
3431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3432   (eval "$ac_compiler -v >&5") 2>&5
3433   ac_status=$?
3434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3435   (exit $ac_status); }
3436 { (ac_try="$ac_compiler -V >&5"
3437 case "(($ac_try" in
3438   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3439   *) ac_try_echo=$ac_try;;
3440 esac
3441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3442   (eval "$ac_compiler -V >&5") 2>&5
3443   ac_status=$?
3444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3445   (exit $ac_status); }
3446
3447 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3448 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3449 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3450   echo $ECHO_N "(cached) $ECHO_C" >&6
3451 else
3452   cat >conftest.$ac_ext <<_ACEOF
3453 /* confdefs.h.  */
3454 _ACEOF
3455 cat confdefs.h >>conftest.$ac_ext
3456 cat >>conftest.$ac_ext <<_ACEOF
3457 /* end confdefs.h.  */
3458
3459 int
3460 main ()
3461 {
3462 #ifndef __GNUC__
3463        choke me
3464 #endif
3465
3466   ;
3467   return 0;
3468 }
3469 _ACEOF
3470 rm -f conftest.$ac_objext
3471 if { (ac_try="$ac_compile"
3472 case "(($ac_try" in
3473   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3474   *) ac_try_echo=$ac_try;;
3475 esac
3476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3477   (eval "$ac_compile") 2>conftest.er1
3478   ac_status=$?
3479   grep -v '^ *+' conftest.er1 >conftest.err
3480   rm -f conftest.er1
3481   cat conftest.err >&5
3482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3483   (exit $ac_status); } && {
3484          test -z "$ac_cxx_werror_flag" ||
3485          test ! -s conftest.err
3486        } && test -s conftest.$ac_objext; then
3487   ac_compiler_gnu=yes
3488 else
3489   echo "$as_me: failed program was:" >&5
3490 sed 's/^/| /' conftest.$ac_ext >&5
3491
3492         ac_compiler_gnu=no
3493 fi
3494
3495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3496 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3497
3498 fi
3499 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3500 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3501 GXX=`test $ac_compiler_gnu = yes && echo yes`
3502 ac_test_CXXFLAGS=${CXXFLAGS+set}
3503 ac_save_CXXFLAGS=$CXXFLAGS
3504 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3505 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3506 if test "${ac_cv_prog_cxx_g+set}" = set; then
3507   echo $ECHO_N "(cached) $ECHO_C" >&6
3508 else
3509   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3510    ac_cxx_werror_flag=yes
3511    ac_cv_prog_cxx_g=no
3512    CXXFLAGS="-g"
3513    cat >conftest.$ac_ext <<_ACEOF
3514 /* confdefs.h.  */
3515 _ACEOF
3516 cat confdefs.h >>conftest.$ac_ext
3517 cat >>conftest.$ac_ext <<_ACEOF
3518 /* end confdefs.h.  */
3519
3520 int
3521 main ()
3522 {
3523
3524   ;
3525   return 0;
3526 }
3527 _ACEOF
3528 rm -f conftest.$ac_objext
3529 if { (ac_try="$ac_compile"
3530 case "(($ac_try" in
3531   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3532   *) ac_try_echo=$ac_try;;
3533 esac
3534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3535   (eval "$ac_compile") 2>conftest.er1
3536   ac_status=$?
3537   grep -v '^ *+' conftest.er1 >conftest.err
3538   rm -f conftest.er1
3539   cat conftest.err >&5
3540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3541   (exit $ac_status); } && {
3542          test -z "$ac_cxx_werror_flag" ||
3543          test ! -s conftest.err
3544        } && test -s conftest.$ac_objext; then
3545   ac_cv_prog_cxx_g=yes
3546 else
3547   echo "$as_me: failed program was:" >&5
3548 sed 's/^/| /' conftest.$ac_ext >&5
3549
3550         CXXFLAGS=""
3551       cat >conftest.$ac_ext <<_ACEOF
3552 /* confdefs.h.  */
3553 _ACEOF
3554 cat confdefs.h >>conftest.$ac_ext
3555 cat >>conftest.$ac_ext <<_ACEOF
3556 /* end confdefs.h.  */
3557
3558 int
3559 main ()
3560 {
3561
3562   ;
3563   return 0;
3564 }
3565 _ACEOF
3566 rm -f conftest.$ac_objext
3567 if { (ac_try="$ac_compile"
3568 case "(($ac_try" in
3569   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3570   *) ac_try_echo=$ac_try;;
3571 esac
3572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3573   (eval "$ac_compile") 2>conftest.er1
3574   ac_status=$?
3575   grep -v '^ *+' conftest.er1 >conftest.err
3576   rm -f conftest.er1
3577   cat conftest.err >&5
3578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3579   (exit $ac_status); } && {
3580          test -z "$ac_cxx_werror_flag" ||
3581          test ! -s conftest.err
3582        } && test -s conftest.$ac_objext; then
3583   :
3584 else
3585   echo "$as_me: failed program was:" >&5
3586 sed 's/^/| /' conftest.$ac_ext >&5
3587
3588         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3589          CXXFLAGS="-g"
3590          cat >conftest.$ac_ext <<_ACEOF
3591 /* confdefs.h.  */
3592 _ACEOF
3593 cat confdefs.h >>conftest.$ac_ext
3594 cat >>conftest.$ac_ext <<_ACEOF
3595 /* end confdefs.h.  */
3596
3597 int
3598 main ()
3599 {
3600
3601   ;
3602   return 0;
3603 }
3604 _ACEOF
3605 rm -f conftest.$ac_objext
3606 if { (ac_try="$ac_compile"
3607 case "(($ac_try" in
3608   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3609   *) ac_try_echo=$ac_try;;
3610 esac
3611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3612   (eval "$ac_compile") 2>conftest.er1
3613   ac_status=$?
3614   grep -v '^ *+' conftest.er1 >conftest.err
3615   rm -f conftest.er1
3616   cat conftest.err >&5
3617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3618   (exit $ac_status); } && {
3619          test -z "$ac_cxx_werror_flag" ||
3620          test ! -s conftest.err
3621        } && test -s conftest.$ac_objext; then
3622   ac_cv_prog_cxx_g=yes
3623 else
3624   echo "$as_me: failed program was:" >&5
3625 sed 's/^/| /' conftest.$ac_ext >&5
3626
3627
3628 fi
3629
3630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
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    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3638 fi
3639 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3640 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3641 if test "$ac_test_CXXFLAGS" = set; then
3642   CXXFLAGS=$ac_save_CXXFLAGS
3643 elif test $ac_cv_prog_cxx_g = yes; then
3644   if test "$GXX" = yes; then
3645     CXXFLAGS="-g -O2"
3646   else
3647     CXXFLAGS="-g"
3648   fi
3649 else
3650   if test "$GXX" = yes; then
3651     CXXFLAGS="-O2"
3652   else
3653     CXXFLAGS=
3654   fi
3655 fi
3656 ac_ext=c
3657 ac_cpp='$CPP $CPPFLAGS'
3658 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3659 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3660 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3661
3662 if test "x$CC" != xcc; then
3663   { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
3664 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; }
3665 else
3666   { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
3667 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; }
3668 fi
3669 set dummy $CC; ac_cc=`echo $2 |
3670                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3671 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
3672   echo $ECHO_N "(cached) $ECHO_C" >&6
3673 else
3674   cat >conftest.$ac_ext <<_ACEOF
3675 /* confdefs.h.  */
3676 _ACEOF
3677 cat confdefs.h >>conftest.$ac_ext
3678 cat >>conftest.$ac_ext <<_ACEOF
3679 /* end confdefs.h.  */
3680
3681 int
3682 main ()
3683 {
3684
3685   ;
3686   return 0;
3687 }
3688 _ACEOF
3689 # Make sure it works both with $CC and with simple cc.
3690 # We do the test twice because some compilers refuse to overwrite an
3691 # existing .o file with -o, though they will create one.
3692 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3693 rm -f conftest2.*
3694 if { (case "(($ac_try" in
3695   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3696   *) ac_try_echo=$ac_try;;
3697 esac
3698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3699   (eval "$ac_try") 2>&5
3700   ac_status=$?
3701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3702   (exit $ac_status); } &&
3703    test -f conftest2.$ac_objext && { (case "(($ac_try" in
3704   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3705   *) ac_try_echo=$ac_try;;
3706 esac
3707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3708   (eval "$ac_try") 2>&5
3709   ac_status=$?
3710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3711   (exit $ac_status); };
3712 then
3713   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3714   if test "x$CC" != xcc; then
3715     # Test first that cc exists at all.
3716     if { ac_try='cc -c conftest.$ac_ext >&5'
3717   { (case "(($ac_try" in
3718   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3719   *) ac_try_echo=$ac_try;;
3720 esac
3721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3722   (eval "$ac_try") 2>&5
3723   ac_status=$?
3724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3725   (exit $ac_status); }; }; then
3726       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3727       rm -f conftest2.*
3728       if { (case "(($ac_try" in
3729   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3730   *) ac_try_echo=$ac_try;;
3731 esac
3732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3733   (eval "$ac_try") 2>&5
3734   ac_status=$?
3735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3736   (exit $ac_status); } &&
3737          test -f conftest2.$ac_objext && { (case "(($ac_try" in
3738   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3739   *) ac_try_echo=$ac_try;;
3740 esac
3741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3742   (eval "$ac_try") 2>&5
3743   ac_status=$?
3744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3745   (exit $ac_status); };
3746       then
3747         # cc works too.
3748         :
3749       else
3750         # cc exists but doesn't like -o.
3751         eval ac_cv_prog_cc_${ac_cc}_c_o=no
3752       fi
3753     fi
3754   fi
3755 else
3756   eval ac_cv_prog_cc_${ac_cc}_c_o=no
3757 fi
3758 rm -f core conftest*
3759
3760 fi
3761 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
3762   { echo "$as_me:$LINENO: result: yes" >&5
3763 echo "${ECHO_T}yes" >&6; }
3764 else
3765   { echo "$as_me:$LINENO: result: no" >&5
3766 echo "${ECHO_T}no" >&6; }
3767
3768 cat >>confdefs.h <<\_ACEOF
3769 #define NO_MINUS_C_MINUS_O 1
3770 _ACEOF
3771
3772 fi
3773
3774 ac_ext=c
3775 ac_cpp='$CPP $CPPFLAGS'
3776 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3777 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3778 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3779 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3780 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3781 # On Suns, sometimes $CPP names a directory.
3782 if test -n "$CPP" && test -d "$CPP"; then
3783   CPP=
3784 fi
3785 if test -z "$CPP"; then
3786   if test "${ac_cv_prog_CPP+set}" = set; then
3787   echo $ECHO_N "(cached) $ECHO_C" >&6
3788 else
3789       # Double quotes because CPP needs to be expanded
3790     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3791     do
3792       ac_preproc_ok=false
3793 for ac_c_preproc_warn_flag in '' yes
3794 do
3795   # Use a header file that comes with gcc, so configuring glibc
3796   # with a fresh cross-compiler works.
3797   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3798   # <limits.h> exists even on freestanding compilers.
3799   # On the NeXT, cc -E runs the code through the compiler's parser,
3800   # not just through cpp. "Syntax error" is here to catch this case.
3801   cat >conftest.$ac_ext <<_ACEOF
3802 /* confdefs.h.  */
3803 _ACEOF
3804 cat confdefs.h >>conftest.$ac_ext
3805 cat >>conftest.$ac_ext <<_ACEOF
3806 /* end confdefs.h.  */
3807 #ifdef __STDC__
3808 # include <limits.h>
3809 #else
3810 # include <assert.h>
3811 #endif
3812                      Syntax error
3813 _ACEOF
3814 if { (ac_try="$ac_cpp conftest.$ac_ext"
3815 case "(($ac_try" in
3816   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3817   *) ac_try_echo=$ac_try;;
3818 esac
3819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3820   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3821   ac_status=$?
3822   grep -v '^ *+' conftest.er1 >conftest.err
3823   rm -f conftest.er1
3824   cat conftest.err >&5
3825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3826   (exit $ac_status); } >/dev/null && {
3827          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3828          test ! -s conftest.err
3829        }; then
3830   :
3831 else
3832   echo "$as_me: failed program was:" >&5
3833 sed 's/^/| /' conftest.$ac_ext >&5
3834
3835   # Broken: fails on valid input.
3836 continue
3837 fi
3838
3839 rm -f conftest.err conftest.$ac_ext
3840
3841   # OK, works on sane cases.  Now check whether nonexistent headers
3842   # can be detected and how.
3843   cat >conftest.$ac_ext <<_ACEOF
3844 /* confdefs.h.  */
3845 _ACEOF
3846 cat confdefs.h >>conftest.$ac_ext
3847 cat >>conftest.$ac_ext <<_ACEOF
3848 /* end confdefs.h.  */
3849 #include <ac_nonexistent.h>
3850 _ACEOF
3851 if { (ac_try="$ac_cpp conftest.$ac_ext"
3852 case "(($ac_try" in
3853   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3854   *) ac_try_echo=$ac_try;;
3855 esac
3856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3857   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3858   ac_status=$?
3859   grep -v '^ *+' conftest.er1 >conftest.err
3860   rm -f conftest.er1
3861   cat conftest.err >&5
3862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3863   (exit $ac_status); } >/dev/null && {
3864          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3865          test ! -s conftest.err
3866        }; then
3867   # Broken: success on invalid input.
3868 continue
3869 else
3870   echo "$as_me: failed program was:" >&5
3871 sed 's/^/| /' conftest.$ac_ext >&5
3872
3873   # Passes both tests.
3874 ac_preproc_ok=:
3875 break
3876 fi
3877
3878 rm -f conftest.err conftest.$ac_ext
3879
3880 done
3881 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3882 rm -f conftest.err conftest.$ac_ext
3883 if $ac_preproc_ok; then
3884   break
3885 fi
3886
3887     done
3888     ac_cv_prog_CPP=$CPP
3889
3890 fi
3891   CPP=$ac_cv_prog_CPP
3892 else
3893   ac_cv_prog_CPP=$CPP
3894 fi
3895 { echo "$as_me:$LINENO: result: $CPP" >&5
3896 echo "${ECHO_T}$CPP" >&6; }
3897 ac_preproc_ok=false
3898 for ac_c_preproc_warn_flag in '' yes
3899 do
3900   # Use a header file that comes with gcc, so configuring glibc
3901   # with a fresh cross-compiler works.
3902   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3903   # <limits.h> exists even on freestanding compilers.
3904   # On the NeXT, cc -E runs the code through the compiler's parser,
3905   # not just through cpp. "Syntax error" is here to catch this case.
3906   cat >conftest.$ac_ext <<_ACEOF
3907 /* confdefs.h.  */
3908 _ACEOF
3909 cat confdefs.h >>conftest.$ac_ext
3910 cat >>conftest.$ac_ext <<_ACEOF
3911 /* end confdefs.h.  */
3912 #ifdef __STDC__
3913 # include <limits.h>
3914 #else
3915 # include <assert.h>
3916 #endif
3917                      Syntax error
3918 _ACEOF
3919 if { (ac_try="$ac_cpp conftest.$ac_ext"
3920 case "(($ac_try" in
3921   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3922   *) ac_try_echo=$ac_try;;
3923 esac
3924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3925   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3926   ac_status=$?
3927   grep -v '^ *+' conftest.er1 >conftest.err
3928   rm -f conftest.er1
3929   cat conftest.err >&5
3930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3931   (exit $ac_status); } >/dev/null && {
3932          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3933          test ! -s conftest.err
3934        }; then
3935   :
3936 else
3937   echo "$as_me: failed program was:" >&5
3938 sed 's/^/| /' conftest.$ac_ext >&5
3939
3940   # Broken: fails on valid input.
3941 continue
3942 fi
3943
3944 rm -f conftest.err conftest.$ac_ext
3945
3946   # OK, works on sane cases.  Now check whether nonexistent headers
3947   # can be detected and how.
3948   cat >conftest.$ac_ext <<_ACEOF
3949 /* confdefs.h.  */
3950 _ACEOF
3951 cat confdefs.h >>conftest.$ac_ext
3952 cat >>conftest.$ac_ext <<_ACEOF
3953 /* end confdefs.h.  */
3954 #include <ac_nonexistent.h>
3955 _ACEOF
3956 if { (ac_try="$ac_cpp conftest.$ac_ext"
3957 case "(($ac_try" in
3958   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3959   *) ac_try_echo=$ac_try;;
3960 esac
3961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3962   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3963   ac_status=$?
3964   grep -v '^ *+' conftest.er1 >conftest.err
3965   rm -f conftest.er1
3966   cat conftest.err >&5
3967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3968   (exit $ac_status); } >/dev/null && {
3969          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3970          test ! -s conftest.err
3971        }; then
3972   # Broken: success on invalid input.
3973 continue
3974 else
3975   echo "$as_me: failed program was:" >&5
3976 sed 's/^/| /' conftest.$ac_ext >&5
3977
3978   # Passes both tests.
3979 ac_preproc_ok=:
3980 break
3981 fi
3982
3983 rm -f conftest.err conftest.$ac_ext
3984
3985 done
3986 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3987 rm -f conftest.err conftest.$ac_ext
3988 if $ac_preproc_ok; then
3989   :
3990 else
3991   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3992 See \`config.log' for more details." >&5
3993 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3994 See \`config.log' for more details." >&2;}
3995    { (exit 1); exit 1; }; }
3996 fi
3997
3998 ac_ext=c
3999 ac_cpp='$CPP $CPPFLAGS'
4000 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4001 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4002 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4003
4004
4005 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4006 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4007 if test "${ac_cv_path_GREP+set}" = set; then
4008   echo $ECHO_N "(cached) $ECHO_C" >&6
4009 else
4010   # Extract the first word of "grep ggrep" to use in msg output
4011 if test -z "$GREP"; then
4012 set dummy grep ggrep; ac_prog_name=$2
4013 if test "${ac_cv_path_GREP+set}" = set; then
4014   echo $ECHO_N "(cached) $ECHO_C" >&6
4015 else
4016   ac_path_GREP_found=false
4017 # Loop through the user's path and test for each of PROGNAME-LIST
4018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4019 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4020 do
4021   IFS=$as_save_IFS
4022   test -z "$as_dir" && as_dir=.
4023   for ac_prog in grep ggrep; do
4024   for ac_exec_ext in '' $ac_executable_extensions; do
4025     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4026     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4027     # Check for GNU ac_path_GREP and select it if it is found.
4028   # Check for GNU $ac_path_GREP
4029 case `"$ac_path_GREP" --version 2>&1` in
4030 *GNU*)
4031   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4032 *)
4033   ac_count=0
4034   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4035   while :
4036   do
4037     cat "conftest.in" "conftest.in" >"conftest.tmp"
4038     mv "conftest.tmp" "conftest.in"
4039     cp "conftest.in" "conftest.nl"
4040     echo 'GREP' >> "conftest.nl"
4041     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4042     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4043     ac_count=`expr $ac_count + 1`
4044     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4045       # Best one so far, save it but keep looking for a better one
4046       ac_cv_path_GREP="$ac_path_GREP"
4047       ac_path_GREP_max=$ac_count
4048     fi
4049     # 10*(2^10) chars as input seems more than enough
4050     test $ac_count -gt 10 && break
4051   done
4052   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4053 esac
4054
4055
4056     $ac_path_GREP_found && break 3
4057   done
4058 done
4059
4060 done
4061 IFS=$as_save_IFS
4062
4063
4064 fi
4065
4066 GREP="$ac_cv_path_GREP"
4067 if test -z "$GREP"; then
4068   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4069 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4070    { (exit 1); exit 1; }; }
4071 fi
4072
4073 else
4074   ac_cv_path_GREP=$GREP
4075 fi
4076
4077
4078 fi
4079 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4080 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4081  GREP="$ac_cv_path_GREP"
4082
4083
4084 { echo "$as_me:$LINENO: checking for egrep" >&5
4085 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4086 if test "${ac_cv_path_EGREP+set}" = set; then
4087   echo $ECHO_N "(cached) $ECHO_C" >&6
4088 else
4089   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4090    then ac_cv_path_EGREP="$GREP -E"
4091    else
4092      # Extract the first word of "egrep" to use in msg output
4093 if test -z "$EGREP"; then
4094 set dummy egrep; ac_prog_name=$2
4095 if test "${ac_cv_path_EGREP+set}" = set; then
4096   echo $ECHO_N "(cached) $ECHO_C" >&6
4097 else
4098   ac_path_EGREP_found=false
4099 # Loop through the user's path and test for each of PROGNAME-LIST
4100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4101 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4102 do
4103   IFS=$as_save_IFS
4104   test -z "$as_dir" && as_dir=.
4105   for ac_prog in egrep; do
4106   for ac_exec_ext in '' $ac_executable_extensions; do
4107     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4108     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4109     # Check for GNU ac_path_EGREP and select it if it is found.
4110   # Check for GNU $ac_path_EGREP
4111 case `"$ac_path_EGREP" --version 2>&1` in
4112 *GNU*)
4113   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4114 *)
4115   ac_count=0
4116   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4117   while :
4118   do
4119     cat "conftest.in" "conftest.in" >"conftest.tmp"
4120     mv "conftest.tmp" "conftest.in"
4121     cp "conftest.in" "conftest.nl"
4122     echo 'EGREP' >> "conftest.nl"
4123     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4124     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4125     ac_count=`expr $ac_count + 1`
4126     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4127       # Best one so far, save it but keep looking for a better one
4128       ac_cv_path_EGREP="$ac_path_EGREP"
4129       ac_path_EGREP_max=$ac_count
4130     fi
4131     # 10*(2^10) chars as input seems more than enough
4132     test $ac_count -gt 10 && break
4133   done
4134   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4135 esac
4136
4137
4138     $ac_path_EGREP_found && break 3
4139   done
4140 done
4141
4142 done
4143 IFS=$as_save_IFS
4144
4145
4146 fi
4147
4148 EGREP="$ac_cv_path_EGREP"
4149 if test -z "$EGREP"; then
4150   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4151 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4152    { (exit 1); exit 1; }; }
4153 fi
4154
4155 else
4156   ac_cv_path_EGREP=$EGREP
4157 fi
4158
4159
4160    fi
4161 fi
4162 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4163 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4164  EGREP="$ac_cv_path_EGREP"
4165
4166
4167 if test $ac_cv_c_compiler_gnu = yes; then
4168     { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
4169 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
4170 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
4171   echo $ECHO_N "(cached) $ECHO_C" >&6
4172 else
4173     ac_pattern="Autoconf.*'x'"
4174   cat >conftest.$ac_ext <<_ACEOF
4175 /* confdefs.h.  */
4176 _ACEOF
4177 cat confdefs.h >>conftest.$ac_ext
4178 cat >>conftest.$ac_ext <<_ACEOF
4179 /* end confdefs.h.  */
4180 #include <sgtty.h>
4181 Autoconf TIOCGETP
4182 _ACEOF
4183 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4184   $EGREP "$ac_pattern" >/dev/null 2>&1; then
4185   ac_cv_prog_gcc_traditional=yes
4186 else
4187   ac_cv_prog_gcc_traditional=no
4188 fi
4189 rm -f conftest*
4190
4191
4192   if test $ac_cv_prog_gcc_traditional = no; then
4193     cat >conftest.$ac_ext <<_ACEOF
4194 /* confdefs.h.  */
4195 _ACEOF
4196 cat confdefs.h >>conftest.$ac_ext
4197 cat >>conftest.$ac_ext <<_ACEOF
4198 /* end confdefs.h.  */
4199 #include <termio.h>
4200 Autoconf TCGETA
4201 _ACEOF
4202 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4203   $EGREP "$ac_pattern" >/dev/null 2>&1; then
4204   ac_cv_prog_gcc_traditional=yes
4205 fi
4206 rm -f conftest*
4207
4208   fi
4209 fi
4210 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
4211 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
4212   if test $ac_cv_prog_gcc_traditional = yes; then
4213     CC="$CC -traditional"
4214   fi
4215 fi
4216
4217 BASECC=`basename $CC`
4218 have_gcc=no
4219 if test "x$BASECC" = xgcc; then
4220    cat >>confdefs.h <<\_ACEOF
4221 #define HAVE_GCC 1
4222 _ACEOF
4223
4224    have_gcc=yes
4225 fi
4226 # Extract the first word of "$CXX", so it can be a program name with args.
4227 set dummy $CXX; ac_word=$2
4228 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4229 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4230 if test "${ac_cv_path_CXX+set}" = set; then
4231   echo $ECHO_N "(cached) $ECHO_C" >&6
4232 else
4233   case $CXX in
4234   [\\/]* | ?:[\\/]*)
4235   ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
4236   ;;
4237   *)
4238   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4239 for as_dir in $PATH
4240 do
4241   IFS=$as_save_IFS
4242   test -z "$as_dir" && as_dir=.
4243   for ac_exec_ext in '' $ac_executable_extensions; do
4244   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4245     ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
4246     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4247     break 2
4248   fi
4249 done
4250 done
4251 IFS=$as_save_IFS
4252
4253   test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="$CXX"
4254   ;;
4255 esac
4256 fi
4257 CXX=$ac_cv_path_CXX
4258 if test -n "$CXX"; then
4259   { echo "$as_me:$LINENO: result: $CXX" >&5
4260 echo "${ECHO_T}$CXX" >&6; }
4261 else
4262   { echo "$as_me:$LINENO: result: no" >&5
4263 echo "${ECHO_T}no" >&6; }
4264 fi
4265
4266
4267 if test ! -e $CXX; then
4268    { { echo "$as_me:$LINENO: error: Unable to find C++ compiler" >&5
4269 echo "$as_me: error: Unable to find C++ compiler" >&2;}
4270    { (exit 1); exit 1; }; }
4271 fi
4272
4273 # Find a good install program.  We prefer a C program (faster),
4274 # so one script is as good as another.  But avoid the broken or
4275 # incompatible versions:
4276 # SysV /etc/install, /usr/sbin/install
4277 # SunOS /usr/etc/install
4278 # IRIX /sbin/install
4279 # AIX /bin/install
4280 # AmigaOS /C/install, which installs bootblocks on floppy discs
4281 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4282 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4283 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4284 # OS/2's system install, which has a completely different semantic
4285 # ./install, which can be erroneously created by make from ./install.sh.
4286 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4287 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4288 if test -z "$INSTALL"; then
4289 if test "${ac_cv_path_install+set}" = set; then
4290   echo $ECHO_N "(cached) $ECHO_C" >&6
4291 else
4292   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4293 for as_dir in $PATH
4294 do
4295   IFS=$as_save_IFS
4296   test -z "$as_dir" && as_dir=.
4297   # Account for people who put trailing slashes in PATH elements.
4298 case $as_dir/ in
4299   ./ | .// | /cC/* | \
4300   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4301   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4302   /usr/ucb/* ) ;;
4303   *)
4304     # OSF1 and SCO ODT 3.0 have their own names for install.
4305     # Don't use installbsd from OSF since it installs stuff as root
4306     # by default.
4307     for ac_prog in ginstall scoinst install; do
4308       for ac_exec_ext in '' $ac_executable_extensions; do
4309         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4310           if test $ac_prog = install &&
4311             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4312             # AIX install.  It has an incompatible calling convention.
4313             :
4314           elif test $ac_prog = install &&
4315             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4316             # program-specific install script used by HP pwplus--don't use.
4317             :
4318           else
4319             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4320             break 3
4321           fi
4322         fi
4323       done
4324     done
4325     ;;
4326 esac
4327 done
4328 IFS=$as_save_IFS
4329
4330
4331 fi
4332   if test "${ac_cv_path_install+set}" = set; then
4333     INSTALL=$ac_cv_path_install
4334   else
4335     # As a last resort, use the slow shell script.  Don't cache a
4336     # value for INSTALL within a source directory, because that will
4337     # break other packages using the cache if that directory is
4338     # removed, or if the value is a relative name.
4339     INSTALL=$ac_install_sh
4340   fi
4341 fi
4342 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4343 echo "${ECHO_T}$INSTALL" >&6; }
4344
4345 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4346 # It thinks the first close brace ends the variable substitution.
4347 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4348
4349 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4350
4351 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4352
4353 # Extract the first word of "mv", so it can be a program name with args.
4354 set dummy mv; ac_word=$2
4355 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4356 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4357 if test "${ac_cv_path_MV+set}" = set; then
4358   echo $ECHO_N "(cached) $ECHO_C" >&6
4359 else
4360   case $MV in
4361   [\\/]* | ?:[\\/]*)
4362   ac_cv_path_MV="$MV" # Let the user override the test with a path.
4363   ;;
4364   *)
4365   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4366 for as_dir in $PATH
4367 do
4368   IFS=$as_save_IFS
4369   test -z "$as_dir" && as_dir=.
4370   for ac_exec_ext in '' $ac_executable_extensions; do
4371   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4372     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4373     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4374     break 2
4375   fi
4376 done
4377 done
4378 IFS=$as_save_IFS
4379
4380   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4381   ;;
4382 esac
4383 fi
4384 MV=$ac_cv_path_MV
4385 if test -n "$MV"; then
4386   { echo "$as_me:$LINENO: result: $MV" >&5
4387 echo "${ECHO_T}$MV" >&6; }
4388 else
4389   { echo "$as_me:$LINENO: result: no" >&5
4390 echo "${ECHO_T}no" >&6; }
4391 fi
4392
4393
4394 # Extract the first word of "rm", so it can be a program name with args.
4395 set dummy rm; ac_word=$2
4396 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4397 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4398 if test "${ac_cv_path_REMOVE+set}" = set; then
4399   echo $ECHO_N "(cached) $ECHO_C" >&6
4400 else
4401   case $REMOVE in
4402   [\\/]* | ?:[\\/]*)
4403   ac_cv_path_REMOVE="$REMOVE" # Let the user override the test with a path.
4404   ;;
4405   *)
4406   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4407 for as_dir in $PATH
4408 do
4409   IFS=$as_save_IFS
4410   test -z "$as_dir" && as_dir=.
4411   for ac_exec_ext in '' $ac_executable_extensions; do
4412   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4413     ac_cv_path_REMOVE="$as_dir/$ac_word$ac_exec_ext"
4414     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4415     break 2
4416   fi
4417 done
4418 done
4419 IFS=$as_save_IFS
4420
4421   test -z "$ac_cv_path_REMOVE" && ac_cv_path_REMOVE="rm"
4422   ;;
4423 esac
4424 fi
4425 REMOVE=$ac_cv_path_REMOVE
4426 if test -n "$REMOVE"; then
4427   { echo "$as_me:$LINENO: result: $REMOVE" >&5
4428 echo "${ECHO_T}$REMOVE" >&6; }
4429 else
4430   { echo "$as_me:$LINENO: result: no" >&5
4431 echo "${ECHO_T}no" >&6; }
4432 fi
4433
4434
4435 # Extract the first word of "cp", so it can be a program name with args.
4436 set dummy cp; ac_word=$2
4437 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4438 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4439 if test "${ac_cv_path_CP+set}" = set; then
4440   echo $ECHO_N "(cached) $ECHO_C" >&6
4441 else
4442   case $CP in
4443   [\\/]* | ?:[\\/]*)
4444   ac_cv_path_CP="$CP" # Let the user override the test with a path.
4445   ;;
4446   *)
4447   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4448 for as_dir in $PATH
4449 do
4450   IFS=$as_save_IFS
4451   test -z "$as_dir" && as_dir=.
4452   for ac_exec_ext in '' $ac_executable_extensions; do
4453   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4454     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4455     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4456     break 2
4457   fi
4458 done
4459 done
4460 IFS=$as_save_IFS
4461
4462   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
4463   ;;
4464 esac
4465 fi
4466 CP=$ac_cv_path_CP
4467 if test -n "$CP"; then
4468   { echo "$as_me:$LINENO: result: $CP" >&5
4469 echo "${ECHO_T}$CP" >&6; }
4470 else
4471   { echo "$as_me:$LINENO: result: no" >&5
4472 echo "${ECHO_T}no" >&6; }
4473 fi
4474
4475
4476 # Extract the first word of "sed", so it can be a program name with args.
4477 set dummy sed; ac_word=$2
4478 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4479 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4480 if test "${ac_cv_path_SED+set}" = set; then
4481   echo $ECHO_N "(cached) $ECHO_C" >&6
4482 else
4483   case $SED in
4484   [\\/]* | ?:[\\/]*)
4485   ac_cv_path_SED="$SED" # Let the user override the test with a path.
4486   ;;
4487   *)
4488   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4489 for as_dir in $PATH
4490 do
4491   IFS=$as_save_IFS
4492   test -z "$as_dir" && as_dir=.
4493   for ac_exec_ext in '' $ac_executable_extensions; do
4494   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4495     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
4496     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4497     break 2
4498   fi
4499 done
4500 done
4501 IFS=$as_save_IFS
4502
4503   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
4504   ;;
4505 esac
4506 fi
4507 SED=$ac_cv_path_SED
4508 if test -n "$SED"; then
4509   { echo "$as_me:$LINENO: result: $SED" >&5
4510 echo "${ECHO_T}$SED" >&6; }
4511 else
4512   { echo "$as_me:$LINENO: result: no" >&5
4513 echo "${ECHO_T}no" >&6; }
4514 fi
4515
4516
4517 # Extract the first word of "echo", so it can be a program name with args.
4518 set dummy echo; ac_word=$2
4519 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4520 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4521 if test "${ac_cv_path_ECHO+set}" = set; then
4522   echo $ECHO_N "(cached) $ECHO_C" >&6
4523 else
4524   case $ECHO in
4525   [\\/]* | ?:[\\/]*)
4526   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
4527   ;;
4528   *)
4529   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4530 for as_dir in $PATH
4531 do
4532   IFS=$as_save_IFS
4533   test -z "$as_dir" && as_dir=.
4534   for ac_exec_ext in '' $ac_executable_extensions; do
4535   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4536     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
4537     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4538     break 2
4539   fi
4540 done
4541 done
4542 IFS=$as_save_IFS
4543
4544   test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
4545   ;;
4546 esac
4547 fi
4548 ECHO=$ac_cv_path_ECHO
4549 if test -n "$ECHO"; then
4550   { echo "$as_me:$LINENO: result: $ECHO" >&5
4551 echo "${ECHO_T}$ECHO" >&6; }
4552 else
4553   { echo "$as_me:$LINENO: result: no" >&5
4554 echo "${ECHO_T}no" >&6; }
4555 fi
4556
4557
4558 # Extract the first word of "cmp", so it can be a program name with args.
4559 set dummy cmp; ac_word=$2
4560 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4561 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4562 if test "${ac_cv_path_CMP+set}" = set; then
4563   echo $ECHO_N "(cached) $ECHO_C" >&6
4564 else
4565   case $CMP in
4566   [\\/]* | ?:[\\/]*)
4567   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
4568   ;;
4569   *)
4570   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4571 for as_dir in $PATH
4572 do
4573   IFS=$as_save_IFS
4574   test -z "$as_dir" && as_dir=.
4575   for ac_exec_ext in '' $ac_executable_extensions; do
4576   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4577     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
4578     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4579     break 2
4580   fi
4581 done
4582 done
4583 IFS=$as_save_IFS
4584
4585   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
4586   ;;
4587 esac
4588 fi
4589 CMP=$ac_cv_path_CMP
4590 if test -n "$CMP"; then
4591   { echo "$as_me:$LINENO: result: $CMP" >&5
4592 echo "${ECHO_T}$CMP" >&6; }
4593 else
4594   { echo "$as_me:$LINENO: result: no" >&5
4595 echo "${ECHO_T}no" >&6; }
4596 fi
4597
4598
4599 # Extract the first word of "tbl", so it can be a program name with args.
4600 set dummy tbl; ac_word=$2
4601 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4602 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4603 if test "${ac_cv_path_TBL+set}" = set; then
4604   echo $ECHO_N "(cached) $ECHO_C" >&6
4605 else
4606   case $TBL in
4607   [\\/]* | ?:[\\/]*)
4608   ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
4609   ;;
4610   *)
4611   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4612 for as_dir in $PATH
4613 do
4614   IFS=$as_save_IFS
4615   test -z "$as_dir" && as_dir=.
4616   for ac_exec_ext in '' $ac_executable_extensions; do
4617   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4618     ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
4619     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4620     break 2
4621   fi
4622 done
4623 done
4624 IFS=$as_save_IFS
4625
4626   test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
4627   ;;
4628 esac
4629 fi
4630 TBL=$ac_cv_path_TBL
4631 if test -n "$TBL"; then
4632   { echo "$as_me:$LINENO: result: $TBL" >&5
4633 echo "${ECHO_T}$TBL" >&6; }
4634 else
4635   { echo "$as_me:$LINENO: result: no" >&5
4636 echo "${ECHO_T}no" >&6; }
4637 fi
4638
4639
4640 # Extract the first word of "ar", so it can be a program name with args.
4641 set dummy ar; ac_word=$2
4642 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4643 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4644 if test "${ac_cv_path_AR+set}" = set; then
4645   echo $ECHO_N "(cached) $ECHO_C" >&6
4646 else
4647   case $AR in
4648   [\\/]* | ?:[\\/]*)
4649   ac_cv_path_AR="$AR" # Let the user override the test with a path.
4650   ;;
4651   *)
4652   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4653 for as_dir in $PATH
4654 do
4655   IFS=$as_save_IFS
4656   test -z "$as_dir" && as_dir=.
4657   for ac_exec_ext in '' $ac_executable_extensions; do
4658   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4659     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
4660     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4661     break 2
4662   fi
4663 done
4664 done
4665 IFS=$as_save_IFS
4666
4667   test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
4668   ;;
4669 esac
4670 fi
4671 AR=$ac_cv_path_AR
4672 if test -n "$AR"; then
4673   { echo "$as_me:$LINENO: result: $AR" >&5
4674 echo "${ECHO_T}$AR" >&6; }
4675 else
4676   { echo "$as_me:$LINENO: result: no" >&5
4677 echo "${ECHO_T}no" >&6; }
4678 fi
4679
4680
4681 # Extract the first word of "openssl", so it can be a program name with args.
4682 set dummy openssl; ac_word=$2
4683 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4684 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4685 if test "${ac_cv_path_OPENSSL+set}" = set; then
4686   echo $ECHO_N "(cached) $ECHO_C" >&6
4687 else
4688   case $OPENSSL in
4689   [\\/]* | ?:[\\/]*)
4690   ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
4691   ;;
4692   *)
4693   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4694 for as_dir in $PATH
4695 do
4696   IFS=$as_save_IFS
4697   test -z "$as_dir" && as_dir=.
4698   for ac_exec_ext in '' $ac_executable_extensions; do
4699   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4700     ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
4701     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4702     break 2
4703   fi
4704 done
4705 done
4706 IFS=$as_save_IFS
4707
4708   test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
4709   ;;
4710 esac
4711 fi
4712 OPENSSL=$ac_cv_path_OPENSSL
4713 if test -n "$OPENSSL"; then
4714   { echo "$as_me:$LINENO: result: $OPENSSL" >&5
4715 echo "${ECHO_T}$OPENSSL" >&6; }
4716 else
4717   { echo "$as_me:$LINENO: result: no" >&5
4718 echo "${ECHO_T}no" >&6; }
4719 fi
4720
4721
4722 # Extract the first word of "mtx", so it can be a program name with args.
4723 set dummy mtx; ac_word=$2
4724 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4725 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4726 if test "${ac_cv_path_MTX+set}" = set; then
4727   echo $ECHO_N "(cached) $ECHO_C" >&6
4728 else
4729   case $MTX in
4730   [\\/]* | ?:[\\/]*)
4731   ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
4732   ;;
4733   *)
4734   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4735 for as_dir in $PATH
4736 do
4737   IFS=$as_save_IFS
4738   test -z "$as_dir" && as_dir=.
4739   for ac_exec_ext in '' $ac_executable_extensions; do
4740   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4741     ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
4742     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4743     break 2
4744   fi
4745 done
4746 done
4747 IFS=$as_save_IFS
4748
4749   test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
4750   ;;
4751 esac
4752 fi
4753 MTX=$ac_cv_path_MTX
4754 if test -n "$MTX"; then
4755   { echo "$as_me:$LINENO: result: $MTX" >&5
4756 echo "${ECHO_T}$MTX" >&6; }
4757 else
4758   { echo "$as_me:$LINENO: result: no" >&5
4759 echo "${ECHO_T}no" >&6; }
4760 fi
4761
4762
4763 # Extract the first word of "dd", so it can be a program name with args.
4764 set dummy dd; ac_word=$2
4765 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4766 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4767 if test "${ac_cv_path_DD+set}" = set; then
4768   echo $ECHO_N "(cached) $ECHO_C" >&6
4769 else
4770   case $DD in
4771   [\\/]* | ?:[\\/]*)
4772   ac_cv_path_DD="$DD" # Let the user override the test with a path.
4773   ;;
4774   *)
4775   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4776 for as_dir in $PATH
4777 do
4778   IFS=$as_save_IFS
4779   test -z "$as_dir" && as_dir=.
4780   for ac_exec_ext in '' $ac_executable_extensions; do
4781   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4782     ac_cv_path_DD="$as_dir/$ac_word$ac_exec_ext"
4783     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4784     break 2
4785   fi
4786 done
4787 done
4788 IFS=$as_save_IFS
4789
4790   test -z "$ac_cv_path_DD" && ac_cv_path_DD="dd"
4791   ;;
4792 esac
4793 fi
4794 DD=$ac_cv_path_DD
4795 if test -n "$DD"; then
4796   { echo "$as_me:$LINENO: result: $DD" >&5
4797 echo "${ECHO_T}$DD" >&6; }
4798 else
4799   { echo "$as_me:$LINENO: result: no" >&5
4800 echo "${ECHO_T}no" >&6; }
4801 fi
4802
4803
4804 # Extract the first word of "mkisofs", so it can be a program name with args.
4805 set dummy mkisofs; ac_word=$2
4806 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4807 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4808 if test "${ac_cv_path_MKISOFS+set}" = set; then
4809   echo $ECHO_N "(cached) $ECHO_C" >&6
4810 else
4811   case $MKISOFS in
4812   [\\/]* | ?:[\\/]*)
4813   ac_cv_path_MKISOFS="$MKISOFS" # Let the user override the test with a path.
4814   ;;
4815   *)
4816   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4817 for as_dir in $PATH
4818 do
4819   IFS=$as_save_IFS
4820   test -z "$as_dir" && as_dir=.
4821   for ac_exec_ext in '' $ac_executable_extensions; do
4822   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4823     ac_cv_path_MKISOFS="$as_dir/$ac_word$ac_exec_ext"
4824     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4825     break 2
4826   fi
4827 done
4828 done
4829 IFS=$as_save_IFS
4830
4831   test -z "$ac_cv_path_MKISOFS" && ac_cv_path_MKISOFS="mkisofs"
4832   ;;
4833 esac
4834 fi
4835 MKISOFS=$ac_cv_path_MKISOFS
4836 if test -n "$MKISOFS"; then
4837   { echo "$as_me:$LINENO: result: $MKISOFS" >&5
4838 echo "${ECHO_T}$MKISOFS" >&6; }
4839 else
4840   { echo "$as_me:$LINENO: result: no" >&5
4841 echo "${ECHO_T}no" >&6; }
4842 fi
4843
4844
4845 # Extract the first word of "python", so it can be a program name with args.
4846 set dummy python; ac_word=$2
4847 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4848 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4849 if test "${ac_cv_path_PYTHON+set}" = set; then
4850   echo $ECHO_N "(cached) $ECHO_C" >&6
4851 else
4852   case $PYTHON in
4853   [\\/]* | ?:[\\/]*)
4854   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
4855   ;;
4856   *)
4857   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4858 for as_dir in $PATH
4859 do
4860   IFS=$as_save_IFS
4861   test -z "$as_dir" && as_dir=.
4862   for ac_exec_ext in '' $ac_executable_extensions; do
4863   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4864     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
4865     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4866     break 2
4867   fi
4868 done
4869 done
4870 IFS=$as_save_IFS
4871
4872   test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="python"
4873   ;;
4874 esac
4875 fi
4876 PYTHON=$ac_cv_path_PYTHON
4877 if test -n "$PYTHON"; then
4878   { echo "$as_me:$LINENO: result: $PYTHON" >&5
4879 echo "${ECHO_T}$PYTHON" >&6; }
4880 else
4881   { echo "$as_me:$LINENO: result: no" >&5
4882 echo "${ECHO_T}no" >&6; }
4883 fi
4884
4885
4886 # Extract the first word of "growisofs", so it can be a program name with args.
4887 set dummy growisofs; ac_word=$2
4888 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4889 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4890 if test "${ac_cv_path_GROWISOFS+set}" = set; then
4891   echo $ECHO_N "(cached) $ECHO_C" >&6
4892 else
4893   case $GROWISOFS in
4894   [\\/]* | ?:[\\/]*)
4895   ac_cv_path_GROWISOFS="$GROWISOFS" # Let the user override the test with a path.
4896   ;;
4897   *)
4898   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4899 for as_dir in $PATH
4900 do
4901   IFS=$as_save_IFS
4902   test -z "$as_dir" && as_dir=.
4903   for ac_exec_ext in '' $ac_executable_extensions; do
4904   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4905     ac_cv_path_GROWISOFS="$as_dir/$ac_word$ac_exec_ext"
4906     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4907     break 2
4908   fi
4909 done
4910 done
4911 IFS=$as_save_IFS
4912
4913   test -z "$ac_cv_path_GROWISOFS" && ac_cv_path_GROWISOFS="growisofs"
4914   ;;
4915 esac
4916 fi
4917 GROWISOFS=$ac_cv_path_GROWISOFS
4918 if test -n "$GROWISOFS"; then
4919   { echo "$as_me:$LINENO: result: $GROWISOFS" >&5
4920 echo "${ECHO_T}$GROWISOFS" >&6; }
4921 else
4922   { echo "$as_me:$LINENO: result: no" >&5
4923 echo "${ECHO_T}no" >&6; }
4924 fi
4925
4926
4927 # Extract the first word of "dvd+rw-mediainfo", so it can be a program name with args.
4928 set dummy dvd+rw-mediainfo; ac_word=$2
4929 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4930 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4931 if test "${ac_cv_path_DVDRWMEDIAINFO+set}" = set; then
4932   echo $ECHO_N "(cached) $ECHO_C" >&6
4933 else
4934   case $DVDRWMEDIAINFO in
4935   [\\/]* | ?:[\\/]*)
4936   ac_cv_path_DVDRWMEDIAINFO="$DVDRWMEDIAINFO" # Let the user override the test with a path.
4937   ;;
4938   *)
4939   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4940 for as_dir in $PATH
4941 do
4942   IFS=$as_save_IFS
4943   test -z "$as_dir" && as_dir=.
4944   for ac_exec_ext in '' $ac_executable_extensions; do
4945   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4946     ac_cv_path_DVDRWMEDIAINFO="$as_dir/$ac_word$ac_exec_ext"
4947     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4948     break 2
4949   fi
4950 done
4951 done
4952 IFS=$as_save_IFS
4953
4954   test -z "$ac_cv_path_DVDRWMEDIAINFO" && ac_cv_path_DVDRWMEDIAINFO="dvd+rw-mediainfo"
4955   ;;
4956 esac
4957 fi
4958 DVDRWMEDIAINFO=$ac_cv_path_DVDRWMEDIAINFO
4959 if test -n "$DVDRWMEDIAINFO"; then
4960   { echo "$as_me:$LINENO: result: $DVDRWMEDIAINFO" >&5
4961 echo "${ECHO_T}$DVDRWMEDIAINFO" >&6; }
4962 else
4963   { echo "$as_me:$LINENO: result: no" >&5
4964 echo "${ECHO_T}no" >&6; }
4965 fi
4966
4967
4968 # Extract the first word of "dvd+rw-format", so it can be a program name with args.
4969 set dummy dvd+rw-format; ac_word=$2
4970 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4971 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4972 if test "${ac_cv_path_DVDRWFORMAT+set}" = set; then
4973   echo $ECHO_N "(cached) $ECHO_C" >&6
4974 else
4975   case $DVDRWFORMAT in
4976   [\\/]* | ?:[\\/]*)
4977   ac_cv_path_DVDRWFORMAT="$DVDRWFORMAT" # Let the user override the test with a path.
4978   ;;
4979   *)
4980   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4981 for as_dir in $PATH
4982 do
4983   IFS=$as_save_IFS
4984   test -z "$as_dir" && as_dir=.
4985   for ac_exec_ext in '' $ac_executable_extensions; do
4986   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4987     ac_cv_path_DVDRWFORMAT="$as_dir/$ac_word$ac_exec_ext"
4988     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4989     break 2
4990   fi
4991 done
4992 done
4993 IFS=$as_save_IFS
4994
4995   test -z "$ac_cv_path_DVDRWFORMAT" && ac_cv_path_DVDRWFORMAT="dvd+rw-format"
4996   ;;
4997 esac
4998 fi
4999 DVDRWFORMAT=$ac_cv_path_DVDRWFORMAT
5000 if test -n "$DVDRWFORMAT"; then
5001   { echo "$as_me:$LINENO: result: $DVDRWFORMAT" >&5
5002 echo "${ECHO_T}$DVDRWFORMAT" >&6; }
5003 else
5004   { echo "$as_me:$LINENO: result: no" >&5
5005 echo "${ECHO_T}no" >&6; }
5006 fi
5007
5008
5009 # Extract the first word of "pkg-config", so it can be a program name with args.
5010 set dummy pkg-config; ac_word=$2
5011 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5012 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5013 if test "${ac_cv_path_PKGCONFIG+set}" = set; then
5014   echo $ECHO_N "(cached) $ECHO_C" >&6
5015 else
5016   case $PKGCONFIG in
5017   [\\/]* | ?:[\\/]*)
5018   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
5019   ;;
5020   *)
5021   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5022 for as_dir in $PATH
5023 do
5024   IFS=$as_save_IFS
5025   test -z "$as_dir" && as_dir=.
5026   for ac_exec_ext in '' $ac_executable_extensions; do
5027   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5028     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
5029     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5030     break 2
5031   fi
5032 done
5033 done
5034 IFS=$as_save_IFS
5035
5036   test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
5037   ;;
5038 esac
5039 fi
5040 PKGCONFIG=$ac_cv_path_PKGCONFIG
5041 if test -n "$PKGCONFIG"; then
5042   { echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
5043 echo "${ECHO_T}$PKGCONFIG" >&6; }
5044 else
5045   { echo "$as_me:$LINENO: result: no" >&5
5046 echo "${ECHO_T}no" >&6; }
5047 fi
5048
5049
5050 # Extract the first word of "qmake", so it can be a program name with args.
5051 set dummy qmake; ac_word=$2
5052 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5053 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5054 if test "${ac_cv_path_QMAKE+set}" = set; then
5055   echo $ECHO_N "(cached) $ECHO_C" >&6
5056 else
5057   case $QMAKE in
5058   [\\/]* | ?:[\\/]*)
5059   ac_cv_path_QMAKE="$QMAKE" # Let the user override the test with a path.
5060   ;;
5061   *)
5062   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5063 for as_dir in $PATH
5064 do
5065   IFS=$as_save_IFS
5066   test -z "$as_dir" && as_dir=.
5067   for ac_exec_ext in '' $ac_executable_extensions; do
5068   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5069     ac_cv_path_QMAKE="$as_dir/$ac_word$ac_exec_ext"
5070     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5071     break 2
5072   fi
5073 done
5074 done
5075 IFS=$as_save_IFS
5076
5077   test -z "$ac_cv_path_QMAKE" && ac_cv_path_QMAKE="none"
5078   ;;
5079 esac
5080 fi
5081 QMAKE=$ac_cv_path_QMAKE
5082 if test -n "$QMAKE"; then
5083   { echo "$as_me:$LINENO: result: $QMAKE" >&5
5084 echo "${ECHO_T}$QMAKE" >&6; }
5085 else
5086   { echo "$as_me:$LINENO: result: no" >&5
5087 echo "${ECHO_T}no" >&6; }
5088 fi
5089
5090
5091 # Extract the first word of "gmake", so it can be a program name with args.
5092 set dummy gmake; ac_word=$2
5093 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5094 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5095 if test "${ac_cv_path_GMAKE+set}" = set; then
5096   echo $ECHO_N "(cached) $ECHO_C" >&6
5097 else
5098   case $GMAKE in
5099   [\\/]* | ?:[\\/]*)
5100   ac_cv_path_GMAKE="$GMAKE" # Let the user override the test with a path.
5101   ;;
5102   *)
5103   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5104 for as_dir in $PATH
5105 do
5106   IFS=$as_save_IFS
5107   test -z "$as_dir" && as_dir=.
5108   for ac_exec_ext in '' $ac_executable_extensions; do
5109   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5110     ac_cv_path_GMAKE="$as_dir/$ac_word$ac_exec_ext"
5111     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5112     break 2
5113   fi
5114 done
5115 done
5116 IFS=$as_save_IFS
5117
5118   test -z "$ac_cv_path_GMAKE" && ac_cv_path_GMAKE="none"
5119   ;;
5120 esac
5121 fi
5122 GMAKE=$ac_cv_path_GMAKE
5123 if test -n "$GMAKE"; then
5124   { echo "$as_me:$LINENO: result: $GMAKE" >&5
5125 echo "${ECHO_T}$GMAKE" >&6; }
5126 else
5127   { echo "$as_me:$LINENO: result: no" >&5
5128 echo "${ECHO_T}no" >&6; }
5129 fi
5130
5131
5132
5133 if test "x$WXCONFIG" = x; then
5134    WXCONFIG=wx-config
5135 fi
5136 # Extract the first word of "${WXCONFIG}", so it can be a program name with args.
5137 set dummy ${WXCONFIG}; ac_word=$2
5138 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5139 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5140 if test "${ac_cv_path_WXCONFIG+set}" = set; then
5141   echo $ECHO_N "(cached) $ECHO_C" >&6
5142 else
5143   case $WXCONFIG in
5144   [\\/]* | ?:[\\/]*)
5145   ac_cv_path_WXCONFIG="$WXCONFIG" # Let the user override the test with a path.
5146   ;;
5147   *)
5148   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5149 for as_dir in $PATH
5150 do
5151   IFS=$as_save_IFS
5152   test -z "$as_dir" && as_dir=.
5153   for ac_exec_ext in '' $ac_executable_extensions; do
5154   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5155     ac_cv_path_WXCONFIG="$as_dir/$ac_word$ac_exec_ext"
5156     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5157     break 2
5158   fi
5159 done
5160 done
5161 IFS=$as_save_IFS
5162
5163   test -z "$ac_cv_path_WXCONFIG" && ac_cv_path_WXCONFIG="${WXCONFIG}"
5164   ;;
5165 esac
5166 fi
5167 WXCONFIG=$ac_cv_path_WXCONFIG
5168 if test -n "$WXCONFIG"; then
5169   { echo "$as_me:$LINENO: result: $WXCONFIG" >&5
5170 echo "${ECHO_T}$WXCONFIG" >&6; }
5171 else
5172   { echo "$as_me:$LINENO: result: no" >&5
5173 echo "${ECHO_T}no" >&6; }
5174 fi
5175
5176
5177
5178 # Extract the first word of "cdrecord", so it can be a program name with args.
5179 set dummy cdrecord; ac_word=$2
5180 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5181 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5182 if test "${ac_cv_path_CDRECORD+set}" = set; then
5183   echo $ECHO_N "(cached) $ECHO_C" >&6
5184 else
5185   case $CDRECORD in
5186   [\\/]* | ?:[\\/]*)
5187   ac_cv_path_CDRECORD="$CDRECORD" # Let the user override the test with a path.
5188   ;;
5189   *)
5190   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5191 for as_dir in $PATH
5192 do
5193   IFS=$as_save_IFS
5194   test -z "$as_dir" && as_dir=.
5195   for ac_exec_ext in '' $ac_executable_extensions; do
5196   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5197     ac_cv_path_CDRECORD="$as_dir/$ac_word$ac_exec_ext"
5198     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5199     break 2
5200   fi
5201 done
5202 done
5203 IFS=$as_save_IFS
5204
5205   test -z "$ac_cv_path_CDRECORD" && ac_cv_path_CDRECORD="cdrecord"
5206   ;;
5207 esac
5208 fi
5209 CDRECORD=$ac_cv_path_CDRECORD
5210 if test -n "$CDRECORD"; then
5211   { echo "$as_me:$LINENO: result: $CDRECORD" >&5
5212 echo "${ECHO_T}$CDRECORD" >&6; }
5213 else
5214   { echo "$as_me:$LINENO: result: no" >&5
5215 echo "${ECHO_T}no" >&6; }
5216 fi
5217
5218
5219 # Extract the first word of "pidof", so it can be a program name with args.
5220 set dummy pidof; ac_word=$2
5221 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5222 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5223 if test "${ac_cv_path_PIDOF+set}" = set; then
5224   echo $ECHO_N "(cached) $ECHO_C" >&6
5225 else
5226   case $PIDOF in
5227   [\\/]* | ?:[\\/]*)
5228   ac_cv_path_PIDOF="$PIDOF" # Let the user override the test with a path.
5229   ;;
5230   *)
5231   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5232 for as_dir in $PATH
5233 do
5234   IFS=$as_save_IFS
5235   test -z "$as_dir" && as_dir=.
5236   for ac_exec_ext in '' $ac_executable_extensions; do
5237   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5238     ac_cv_path_PIDOF="$as_dir/$ac_word$ac_exec_ext"
5239     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5240     break 2
5241   fi
5242 done
5243 done
5244 IFS=$as_save_IFS
5245
5246   test -z "$ac_cv_path_PIDOF" && ac_cv_path_PIDOF="pidof"
5247   ;;
5248 esac
5249 fi
5250 PIDOF=$ac_cv_path_PIDOF
5251 if test -n "$PIDOF"; then
5252   { echo "$as_me:$LINENO: result: $PIDOF" >&5
5253 echo "${ECHO_T}$PIDOF" >&6; }
5254 else
5255   { echo "$as_me:$LINENO: result: no" >&5
5256 echo "${ECHO_T}no" >&6; }
5257 fi
5258
5259
5260 for ac_prog in gawk mawk nawk awk
5261 do
5262   # Extract the first word of "$ac_prog", so it can be a program name with args.
5263 set dummy $ac_prog; ac_word=$2
5264 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5265 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5266 if test "${ac_cv_prog_AWK+set}" = set; then
5267   echo $ECHO_N "(cached) $ECHO_C" >&6
5268 else
5269   if test -n "$AWK"; then
5270   ac_cv_prog_AWK="$AWK" # Let the user override the test.
5271 else
5272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5273 for as_dir in $PATH
5274 do
5275   IFS=$as_save_IFS
5276   test -z "$as_dir" && as_dir=.
5277   for ac_exec_ext in '' $ac_executable_extensions; do
5278   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5279     ac_cv_prog_AWK="$ac_prog"
5280     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5281     break 2
5282   fi
5283 done
5284 done
5285 IFS=$as_save_IFS
5286
5287 fi
5288 fi
5289 AWK=$ac_cv_prog_AWK
5290 if test -n "$AWK"; then
5291   { echo "$as_me:$LINENO: result: $AWK" >&5
5292 echo "${ECHO_T}$AWK" >&6; }
5293 else
5294   { echo "$as_me:$LINENO: result: no" >&5
5295 echo "${ECHO_T}no" >&6; }
5296 fi
5297
5298
5299   test -n "$AWK" && break
5300 done
5301
5302 # Some AWK programs fail, so test it and warn the user
5303 if echo xfoo | $AWK 'BEGIN { prog=ARGV1; ARGC=1 }
5304       { if ((prog == $2) || (("(" prog ")") == $2) ||
5305       (("" prog "") == $2) ||
5306       ((prog ":") == $2)) { print $1 ; exit 0 } }' xfoo>/dev/null; then :;
5307 else
5308   { { echo "$as_me:$LINENO: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
5309    The regex engine of $AWK is too broken to be used you
5310    might want to install GNU AWK.
5311    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&5
5312 echo "$as_me: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
5313    The regex engine of $AWK is too broken to be used you
5314    might want to install GNU AWK.
5315    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&2;}
5316    { (exit 1); exit 1; }; }
5317 fi
5318 THE_AWK=$AWK
5319 # Extract the first word of "$THE_AWK", so it can be a program name with args.
5320 set dummy $THE_AWK; ac_word=$2
5321 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5322 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5323 if test "${ac_cv_path_AWK+set}" = set; then
5324   echo $ECHO_N "(cached) $ECHO_C" >&6
5325 else
5326   case $AWK in
5327   [\\/]* | ?:[\\/]*)
5328   ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
5329   ;;
5330   *)
5331   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5332 for as_dir in $PATH
5333 do
5334   IFS=$as_save_IFS
5335   test -z "$as_dir" && as_dir=.
5336   for ac_exec_ext in '' $ac_executable_extensions; do
5337   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5338     ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
5339     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5340     break 2
5341   fi
5342 done
5343 done
5344 IFS=$as_save_IFS
5345
5346   test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="$THE_AWK"
5347   ;;
5348 esac
5349 fi
5350 AWK=$ac_cv_path_AWK
5351 if test -n "$AWK"; then
5352   { echo "$as_me:$LINENO: result: $AWK" >&5
5353 echo "${ECHO_T}$AWK" >&6; }
5354 else
5355   { echo "$as_me:$LINENO: result: no" >&5
5356 echo "${ECHO_T}no" >&6; }
5357 fi
5358
5359
5360
5361
5362 test -n "$ARFLAG" || ARFLAGS="cr"
5363
5364
5365 MAKE_SHELL=/bin/sh
5366
5367
5368
5369
5370
5371
5372
5373 use_libtool=yes
5374 # Check whether --enable-libtool was given.
5375 if test "${enable_libtool+set}" = set; then
5376   enableval=$enable_libtool;
5377        if test x$enableval = xno; then
5378           use_libtool=no
5379        fi
5380
5381
5382 fi
5383
5384 case `pwd` in
5385   *\ * | *\     *)
5386     { echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5387 echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5388 esac
5389
5390
5391
5392 macro_version='2.2.6'
5393 macro_revision='1.3012'
5394
5395
5396
5397
5398
5399
5400
5401
5402
5403
5404
5405
5406
5407 ltmain="$ac_aux_dir/ltmain.sh"
5408
5409 # Make sure we can run config.sub.
5410 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5411   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
5412 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
5413    { (exit 1); exit 1; }; }
5414
5415 { echo "$as_me:$LINENO: checking build system type" >&5
5416 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
5417 if test "${ac_cv_build+set}" = set; then
5418   echo $ECHO_N "(cached) $ECHO_C" >&6
5419 else
5420   ac_build_alias=$build_alias
5421 test "x$ac_build_alias" = x &&
5422   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5423 test "x$ac_build_alias" = x &&
5424   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
5425 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
5426    { (exit 1); exit 1; }; }
5427 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5428   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
5429 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
5430    { (exit 1); exit 1; }; }
5431
5432 fi
5433 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
5434 echo "${ECHO_T}$ac_cv_build" >&6; }
5435 case $ac_cv_build in
5436 *-*-*) ;;
5437 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
5438 echo "$as_me: error: invalid value of canonical build" >&2;}
5439    { (exit 1); exit 1; }; };;
5440 esac
5441 build=$ac_cv_build
5442 ac_save_IFS=$IFS; IFS='-'
5443 set x $ac_cv_build
5444 shift
5445 build_cpu=$1
5446 build_vendor=$2
5447 shift; shift
5448 # Remember, the first character of IFS is used to create $*,
5449 # except with old shells:
5450 build_os=$*
5451 IFS=$ac_save_IFS
5452 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5453
5454
5455 { echo "$as_me:$LINENO: checking host system type" >&5
5456 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
5457 if test "${ac_cv_host+set}" = set; then
5458   echo $ECHO_N "(cached) $ECHO_C" >&6
5459 else
5460   if test "x$host_alias" = x; then
5461   ac_cv_host=$ac_cv_build
5462 else
5463   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5464     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
5465 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
5466    { (exit 1); exit 1; }; }
5467 fi
5468
5469 fi
5470 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5471 echo "${ECHO_T}$ac_cv_host" >&6; }
5472 case $ac_cv_host in
5473 *-*-*) ;;
5474 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
5475 echo "$as_me: error: invalid value of canonical host" >&2;}
5476    { (exit 1); exit 1; }; };;
5477 esac
5478 host=$ac_cv_host
5479 ac_save_IFS=$IFS; IFS='-'
5480 set x $ac_cv_host
5481 shift
5482 host_cpu=$1
5483 host_vendor=$2
5484 shift; shift
5485 # Remember, the first character of IFS is used to create $*,
5486 # except with old shells:
5487 host_os=$*
5488 IFS=$ac_save_IFS
5489 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5490
5491
5492 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5493 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
5494 if test "${ac_cv_path_SED+set}" = set; then
5495   echo $ECHO_N "(cached) $ECHO_C" >&6
5496 else
5497             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5498      for ac_i in 1 2 3 4 5 6 7; do
5499        ac_script="$ac_script$as_nl$ac_script"
5500      done
5501      echo "$ac_script" | sed 99q >conftest.sed
5502      $as_unset ac_script || ac_script=
5503      # Extract the first word of "sed gsed" to use in msg output
5504 if test -z "$SED"; then
5505 set dummy sed gsed; ac_prog_name=$2
5506 if test "${ac_cv_path_SED+set}" = set; then
5507   echo $ECHO_N "(cached) $ECHO_C" >&6
5508 else
5509   ac_path_SED_found=false
5510 # Loop through the user's path and test for each of PROGNAME-LIST
5511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5512 for as_dir in $PATH
5513 do
5514   IFS=$as_save_IFS
5515   test -z "$as_dir" && as_dir=.
5516   for ac_prog in sed gsed; do
5517   for ac_exec_ext in '' $ac_executable_extensions; do
5518     ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5519     { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5520     # Check for GNU ac_path_SED and select it if it is found.
5521   # Check for GNU $ac_path_SED
5522 case `"$ac_path_SED" --version 2>&1` in
5523 *GNU*)
5524   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5525 *)
5526   ac_count=0
5527   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5528   while :
5529   do
5530     cat "conftest.in" "conftest.in" >"conftest.tmp"
5531     mv "conftest.tmp" "conftest.in"
5532     cp "conftest.in" "conftest.nl"
5533     echo '' >> "conftest.nl"
5534     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5535     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5536     ac_count=`expr $ac_count + 1`
5537     if test $ac_count -gt ${ac_path_SED_max-0}; then
5538       # Best one so far, save it but keep looking for a better one
5539       ac_cv_path_SED="$ac_path_SED"
5540       ac_path_SED_max=$ac_count
5541     fi
5542     # 10*(2^10) chars as input seems more than enough
5543     test $ac_count -gt 10 && break
5544   done
5545   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5546 esac
5547
5548
5549     $ac_path_SED_found && break 3
5550   done
5551 done
5552
5553 done
5554 IFS=$as_save_IFS
5555
5556
5557 fi
5558
5559 SED="$ac_cv_path_SED"
5560 if test -z "$SED"; then
5561   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in \$PATH" >&5
5562 echo "$as_me: error: no acceptable $ac_prog_name could be found in \$PATH" >&2;}
5563    { (exit 1); exit 1; }; }
5564 fi
5565
5566 else
5567   ac_cv_path_SED=$SED
5568 fi
5569
5570 fi
5571 { echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
5572 echo "${ECHO_T}$ac_cv_path_SED" >&6; }
5573  SED="$ac_cv_path_SED"
5574   rm -f conftest.sed
5575
5576 test -z "$SED" && SED=sed
5577 Xsed="$SED -e 1s/^X//"
5578
5579
5580
5581
5582
5583
5584
5585
5586
5587
5588
5589 { echo "$as_me:$LINENO: checking for fgrep" >&5
5590 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6; }
5591 if test "${ac_cv_path_FGREP+set}" = set; then
5592   echo $ECHO_N "(cached) $ECHO_C" >&6
5593 else
5594   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5595    then ac_cv_path_FGREP="$GREP -F"
5596    else
5597      # Extract the first word of "fgrep" to use in msg output
5598 if test -z "$FGREP"; then
5599 set dummy fgrep; ac_prog_name=$2
5600 if test "${ac_cv_path_FGREP+set}" = set; then
5601   echo $ECHO_N "(cached) $ECHO_C" >&6
5602 else
5603   ac_path_FGREP_found=false
5604 # Loop through the user's path and test for each of PROGNAME-LIST
5605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5606 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5607 do
5608   IFS=$as_save_IFS
5609   test -z "$as_dir" && as_dir=.
5610   for ac_prog in fgrep; do
5611   for ac_exec_ext in '' $ac_executable_extensions; do
5612     ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5613     { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5614     # Check for GNU ac_path_FGREP and select it if it is found.
5615   # Check for GNU $ac_path_FGREP
5616 case `"$ac_path_FGREP" --version 2>&1` in
5617 *GNU*)
5618   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5619 *)
5620   ac_count=0
5621   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5622   while :
5623   do
5624     cat "conftest.in" "conftest.in" >"conftest.tmp"
5625     mv "conftest.tmp" "conftest.in"
5626     cp "conftest.in" "conftest.nl"
5627     echo 'FGREP' >> "conftest.nl"
5628     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5629     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5630     ac_count=`expr $ac_count + 1`
5631     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5632       # Best one so far, save it but keep looking for a better one
5633       ac_cv_path_FGREP="$ac_path_FGREP"
5634       ac_path_FGREP_max=$ac_count
5635     fi
5636     # 10*(2^10) chars as input seems more than enough
5637     test $ac_count -gt 10 && break
5638   done
5639   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5640 esac
5641
5642
5643     $ac_path_FGREP_found && break 3
5644   done
5645 done
5646
5647 done
5648 IFS=$as_save_IFS
5649
5650
5651 fi
5652
5653 FGREP="$ac_cv_path_FGREP"
5654 if test -z "$FGREP"; then
5655   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5656 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5657    { (exit 1); exit 1; }; }
5658 fi
5659
5660 else
5661   ac_cv_path_FGREP=$FGREP
5662 fi
5663
5664
5665    fi
5666 fi
5667 { echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
5668 echo "${ECHO_T}$ac_cv_path_FGREP" >&6; }
5669  FGREP="$ac_cv_path_FGREP"
5670
5671
5672 test -z "$GREP" && GREP=grep
5673
5674
5675
5676
5677
5678
5679
5680
5681
5682
5683
5684
5685
5686
5687
5688
5689
5690
5691
5692 # Check whether --with-gnu-ld was given.
5693 if test "${with_gnu_ld+set}" = set; then
5694   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5695 else
5696   with_gnu_ld=no
5697 fi
5698
5699 ac_prog=ld
5700 if test "$GCC" = yes; then
5701   # Check if gcc -print-prog-name=ld gives a path.
5702   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5703 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
5704   case $host in
5705   *-*-mingw*)
5706     # gcc leaves a trailing carriage return which upsets mingw
5707     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5708   *)
5709     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5710   esac
5711   case $ac_prog in
5712     # Accept absolute paths.
5713     [\\/]* | ?:[\\/]*)
5714       re_direlt='/[^/][^/]*/\.\./'
5715       # Canonicalize the pathname of ld
5716       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5717       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5718         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5719       done
5720       test -z "$LD" && LD="$ac_prog"
5721       ;;
5722   "")
5723     # If it fails, then pretend we aren't using GCC.
5724     ac_prog=ld
5725     ;;
5726   *)
5727     # If it is relative, then search for the first ld in PATH.
5728     with_gnu_ld=unknown
5729     ;;
5730   esac
5731 elif test "$with_gnu_ld" = yes; then
5732   { echo "$as_me:$LINENO: checking for GNU ld" >&5
5733 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
5734 else
5735   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5736 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
5737 fi
5738 if test "${lt_cv_path_LD+set}" = set; then
5739   echo $ECHO_N "(cached) $ECHO_C" >&6
5740 else
5741   if test -z "$LD"; then
5742   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5743   for ac_dir in $PATH; do
5744     IFS="$lt_save_ifs"
5745     test -z "$ac_dir" && ac_dir=.
5746     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5747       lt_cv_path_LD="$ac_dir/$ac_prog"
5748       # Check to see if the program is GNU ld.  I'd rather use --version,
5749       # but apparently some variants of GNU ld only accept -v.
5750       # Break only if it was the GNU/non-GNU ld that we prefer.
5751       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5752       *GNU* | *'with BFD'*)
5753         test "$with_gnu_ld" != no && break
5754         ;;
5755       *)
5756         test "$with_gnu_ld" != yes && break
5757         ;;
5758       esac
5759     fi
5760   done
5761   IFS="$lt_save_ifs"
5762 else
5763   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5764 fi
5765 fi
5766
5767 LD="$lt_cv_path_LD"
5768 if test -n "$LD"; then
5769   { echo "$as_me:$LINENO: result: $LD" >&5
5770 echo "${ECHO_T}$LD" >&6; }
5771 else
5772   { echo "$as_me:$LINENO: result: no" >&5
5773 echo "${ECHO_T}no" >&6; }
5774 fi
5775 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5776 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5777    { (exit 1); exit 1; }; }
5778 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5779 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
5780 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5781   echo $ECHO_N "(cached) $ECHO_C" >&6
5782 else
5783   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5784 case `$LD -v 2>&1 </dev/null` in
5785 *GNU* | *'with BFD'*)
5786   lt_cv_prog_gnu_ld=yes
5787   ;;
5788 *)
5789   lt_cv_prog_gnu_ld=no
5790   ;;
5791 esac
5792 fi
5793 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5794 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
5795 with_gnu_ld=$lt_cv_prog_gnu_ld
5796
5797
5798
5799
5800
5801
5802
5803
5804
5805 { echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
5806 echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6; }
5807 if test "${lt_cv_path_NM+set}" = set; then
5808   echo $ECHO_N "(cached) $ECHO_C" >&6
5809 else
5810   if test -n "$NM"; then
5811   # Let the user override the test.
5812   lt_cv_path_NM="$NM"
5813 else
5814   lt_nm_to_check="${ac_tool_prefix}nm"
5815   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5816     lt_nm_to_check="$lt_nm_to_check nm"
5817   fi
5818   for lt_tmp_nm in $lt_nm_to_check; do
5819     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5820     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5821       IFS="$lt_save_ifs"
5822       test -z "$ac_dir" && ac_dir=.
5823       tmp_nm="$ac_dir/$lt_tmp_nm"
5824       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5825         # Check to see if the nm accepts a BSD-compat flag.
5826         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5827         #   nm: unknown option "B" ignored
5828         # Tru64's nm complains that /dev/null is an invalid object file
5829         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5830         */dev/null* | *'Invalid file or object type'*)
5831           lt_cv_path_NM="$tmp_nm -B"
5832           break
5833           ;;
5834         *)
5835           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5836           */dev/null*)
5837             lt_cv_path_NM="$tmp_nm -p"
5838             break
5839             ;;
5840           *)
5841             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5842             continue # so that we can try to find one that supports BSD flags
5843             ;;
5844           esac
5845           ;;
5846         esac
5847       fi
5848     done
5849     IFS="$lt_save_ifs"
5850   done
5851   : ${lt_cv_path_NM=no}
5852 fi
5853 fi
5854 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5855 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5856 if test "$lt_cv_path_NM" != "no"; then
5857   NM="$lt_cv_path_NM"
5858 else
5859   # Didn't find any BSD compatible name lister, look for dumpbin.
5860   if test -n "$ac_tool_prefix"; then
5861   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5862   do
5863     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5864 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5865 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5866 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5867 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
5868   echo $ECHO_N "(cached) $ECHO_C" >&6
5869 else
5870   if test -n "$DUMPBIN"; then
5871   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5872 else
5873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5874 for as_dir in $PATH
5875 do
5876   IFS=$as_save_IFS
5877   test -z "$as_dir" && as_dir=.
5878   for ac_exec_ext in '' $ac_executable_extensions; do
5879   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5880     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5881     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5882     break 2
5883   fi
5884 done
5885 done
5886 IFS=$as_save_IFS
5887
5888 fi
5889 fi
5890 DUMPBIN=$ac_cv_prog_DUMPBIN
5891 if test -n "$DUMPBIN"; then
5892   { echo "$as_me:$LINENO: result: $DUMPBIN" >&5
5893 echo "${ECHO_T}$DUMPBIN" >&6; }
5894 else
5895   { echo "$as_me:$LINENO: result: no" >&5
5896 echo "${ECHO_T}no" >&6; }
5897 fi
5898
5899
5900     test -n "$DUMPBIN" && break
5901   done
5902 fi
5903 if test -z "$DUMPBIN"; then
5904   ac_ct_DUMPBIN=$DUMPBIN
5905   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5906 do
5907   # Extract the first word of "$ac_prog", so it can be a program name with args.
5908 set dummy $ac_prog; ac_word=$2
5909 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5910 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5911 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
5912   echo $ECHO_N "(cached) $ECHO_C" >&6
5913 else
5914   if test -n "$ac_ct_DUMPBIN"; then
5915   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5916 else
5917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5918 for as_dir in $PATH
5919 do
5920   IFS=$as_save_IFS
5921   test -z "$as_dir" && as_dir=.
5922   for ac_exec_ext in '' $ac_executable_extensions; do
5923   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5924     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5925     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5926     break 2
5927   fi
5928 done
5929 done
5930 IFS=$as_save_IFS
5931
5932 fi
5933 fi
5934 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5935 if test -n "$ac_ct_DUMPBIN"; then
5936   { echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
5937 echo "${ECHO_T}$ac_ct_DUMPBIN" >&6; }
5938 else
5939   { echo "$as_me:$LINENO: result: no" >&5
5940 echo "${ECHO_T}no" >&6; }
5941 fi
5942
5943
5944   test -n "$ac_ct_DUMPBIN" && break
5945 done
5946
5947   if test "x$ac_ct_DUMPBIN" = x; then
5948     DUMPBIN=":"
5949   else
5950     case $cross_compiling:$ac_tool_warned in
5951 yes:)
5952 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5953 whose name does not start with the host triplet.  If you think this
5954 configuration is useful to you, please write to autoconf@gnu.org." >&5
5955 echo "$as_me: 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." >&2;}
5958 ac_tool_warned=yes ;;
5959 esac
5960     DUMPBIN=$ac_ct_DUMPBIN
5961   fi
5962 fi
5963
5964
5965   if test "$DUMPBIN" != ":"; then
5966     NM="$DUMPBIN"
5967   fi
5968 fi
5969 test -z "$NM" && NM=nm
5970
5971
5972
5973
5974
5975
5976 { echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
5977 echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6; }
5978 if test "${lt_cv_nm_interface+set}" = set; then
5979   echo $ECHO_N "(cached) $ECHO_C" >&6
5980 else
5981   lt_cv_nm_interface="BSD nm"
5982   echo "int some_variable = 0;" > conftest.$ac_ext
5983   (eval echo "\"\$as_me:5983: $ac_compile\"" >&5)
5984   (eval "$ac_compile" 2>conftest.err)
5985   cat conftest.err >&5
5986   (eval echo "\"\$as_me:5986: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5987   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5988   cat conftest.err >&5
5989   (eval echo "\"\$as_me:5989: output\"" >&5)
5990   cat conftest.out >&5
5991   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5992     lt_cv_nm_interface="MS dumpbin"
5993   fi
5994   rm -f conftest*
5995 fi
5996 { echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
5997 echo "${ECHO_T}$lt_cv_nm_interface" >&6; }
5998
5999 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6000 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6001 LN_S=$as_ln_s
6002 if test "$LN_S" = "ln -s"; then
6003   { echo "$as_me:$LINENO: result: yes" >&5
6004 echo "${ECHO_T}yes" >&6; }
6005 else
6006   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6007 echo "${ECHO_T}no, using $LN_S" >&6; }
6008 fi
6009
6010 # find the maximum length of command line arguments
6011 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6012 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6013 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6014   echo $ECHO_N "(cached) $ECHO_C" >&6
6015 else
6016     i=0
6017   teststring="ABCD"
6018
6019   case $build_os in
6020   msdosdjgpp*)
6021     # On DJGPP, this test can blow up pretty badly due to problems in libc
6022     # (any single argument exceeding 2000 bytes causes a buffer overrun
6023     # during glob expansion).  Even if it were fixed, the result of this
6024     # check would be larger than it should be.
6025     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6026     ;;
6027
6028   gnu*)
6029     # Under GNU Hurd, this test is not required because there is
6030     # no limit to the length of command line arguments.
6031     # Libtool will interpret -1 as no limit whatsoever
6032     lt_cv_sys_max_cmd_len=-1;
6033     ;;
6034
6035   cygwin* | mingw* | cegcc*)
6036     # On Win9x/ME, this test blows up -- it succeeds, but takes
6037     # about 5 minutes as the teststring grows exponentially.
6038     # Worse, since 9x/ME are not pre-emptively multitasking,
6039     # you end up with a "frozen" computer, even though with patience
6040     # the test eventually succeeds (with a max line length of 256k).
6041     # Instead, let's just punt: use the minimum linelength reported by
6042     # all of the supported platforms: 8192 (on NT/2K/XP).
6043     lt_cv_sys_max_cmd_len=8192;
6044     ;;
6045
6046   amigaos*)
6047     # On AmigaOS with pdksh, this test takes hours, literally.
6048     # So we just punt and use a minimum line length of 8192.
6049     lt_cv_sys_max_cmd_len=8192;
6050     ;;
6051
6052   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6053     # This has been around since 386BSD, at least.  Likely further.
6054     if test -x /sbin/sysctl; then
6055       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6056     elif test -x /usr/sbin/sysctl; then
6057       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6058     else
6059       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6060     fi
6061     # And add a safety zone
6062     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6063     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6064     ;;
6065
6066   interix*)
6067     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6068     lt_cv_sys_max_cmd_len=196608
6069     ;;
6070
6071   osf*)
6072     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6073     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6074     # nice to cause kernel panics so lets avoid the loop below.
6075     # First set a reasonable default.
6076     lt_cv_sys_max_cmd_len=16384
6077     #
6078     if test -x /sbin/sysconfig; then
6079       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6080         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6081       esac
6082     fi
6083     ;;
6084   sco3.2v5*)
6085     lt_cv_sys_max_cmd_len=102400
6086     ;;
6087   sysv5* | sco5v6* | sysv4.2uw2*)
6088     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6089     if test -n "$kargmax"; then
6090       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
6091     else
6092       lt_cv_sys_max_cmd_len=32768
6093     fi
6094     ;;
6095   *)
6096     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6097     if test -n "$lt_cv_sys_max_cmd_len"; then
6098       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6099       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6100     else
6101       # Make teststring a little bigger before we do anything with it.
6102       # a 1K string should be a reasonable start.
6103       for i in 1 2 3 4 5 6 7 8 ; do
6104         teststring=$teststring$teststring
6105       done
6106       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6107       # If test is not a shell built-in, we'll probably end up computing a
6108       # maximum length that is only half of the actual maximum length, but
6109       # we can't tell.
6110       while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
6111                  = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
6112               test $i != 17 # 1/2 MB should be enough
6113       do
6114         i=`expr $i + 1`
6115         teststring=$teststring$teststring
6116       done
6117       # Only check the string length outside the loop.
6118       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6119       teststring=
6120       # Add a significant safety factor because C++ compilers can tack on
6121       # massive amounts of additional arguments before passing them to the
6122       # linker.  It appears as though 1/2 is a usable value.
6123       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6124     fi
6125     ;;
6126   esac
6127
6128 fi
6129
6130 if test -n $lt_cv_sys_max_cmd_len ; then
6131   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6132 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6133 else
6134   { echo "$as_me:$LINENO: result: none" >&5
6135 echo "${ECHO_T}none" >&6; }
6136 fi
6137 max_cmd_len=$lt_cv_sys_max_cmd_len
6138
6139
6140
6141
6142
6143
6144 : ${CP="cp -f"}
6145 : ${MV="mv -f"}
6146 : ${RM="rm -f"}
6147
6148 { echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
6149 echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6; }
6150 # Try some XSI features
6151 xsi_shell=no
6152 ( _lt_dummy="a/b/c"
6153   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6154       = c,a/b,, \
6155     && eval 'test $(( 1 + 1 )) -eq 2 \
6156     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6157   && xsi_shell=yes
6158 { echo "$as_me:$LINENO: result: $xsi_shell" >&5
6159 echo "${ECHO_T}$xsi_shell" >&6; }
6160
6161
6162 { echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
6163 echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6; }
6164 lt_shell_append=no
6165 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6166     >/dev/null 2>&1 \
6167   && lt_shell_append=yes
6168 { echo "$as_me:$LINENO: result: $lt_shell_append" >&5
6169 echo "${ECHO_T}$lt_shell_append" >&6; }
6170
6171
6172 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6173   lt_unset=unset
6174 else
6175   lt_unset=false
6176 fi
6177
6178
6179
6180
6181
6182 # test EBCDIC or ASCII
6183 case `echo X|tr X '\101'` in
6184  A) # ASCII based system
6185     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6186   lt_SP2NL='tr \040 \012'
6187   lt_NL2SP='tr \015\012 \040\040'
6188   ;;
6189  *) # EBCDIC based system
6190   lt_SP2NL='tr \100 \n'
6191   lt_NL2SP='tr \r\n \100\100'
6192   ;;
6193 esac
6194
6195
6196
6197
6198
6199
6200
6201
6202
6203 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6204 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
6205 if test "${lt_cv_ld_reload_flag+set}" = set; then
6206   echo $ECHO_N "(cached) $ECHO_C" >&6
6207 else
6208   lt_cv_ld_reload_flag='-r'
6209 fi
6210 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6211 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
6212 reload_flag=$lt_cv_ld_reload_flag
6213 case $reload_flag in
6214 "" | " "*) ;;
6215 *) reload_flag=" $reload_flag" ;;
6216 esac
6217 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6218 case $host_os in
6219   darwin*)
6220     if test "$GCC" = yes; then
6221       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6222     else
6223       reload_cmds='$LD$reload_flag -o $output$reload_objs'
6224     fi
6225     ;;
6226 esac
6227
6228
6229
6230
6231
6232
6233
6234
6235
6236 if test -n "$ac_tool_prefix"; then
6237   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6238 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6239 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6240 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6241 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
6242   echo $ECHO_N "(cached) $ECHO_C" >&6
6243 else
6244   if test -n "$OBJDUMP"; then
6245   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6246 else
6247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6248 for as_dir in $PATH
6249 do
6250   IFS=$as_save_IFS
6251   test -z "$as_dir" && as_dir=.
6252   for ac_exec_ext in '' $ac_executable_extensions; do
6253   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6254     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6255     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6256     break 2
6257   fi
6258 done
6259 done
6260 IFS=$as_save_IFS
6261
6262 fi
6263 fi
6264 OBJDUMP=$ac_cv_prog_OBJDUMP
6265 if test -n "$OBJDUMP"; then
6266   { echo "$as_me:$LINENO: result: $OBJDUMP" >&5
6267 echo "${ECHO_T}$OBJDUMP" >&6; }
6268 else
6269   { echo "$as_me:$LINENO: result: no" >&5
6270 echo "${ECHO_T}no" >&6; }
6271 fi
6272
6273
6274 fi
6275 if test -z "$ac_cv_prog_OBJDUMP"; then
6276   ac_ct_OBJDUMP=$OBJDUMP
6277   # Extract the first word of "objdump", so it can be a program name with args.
6278 set dummy objdump; ac_word=$2
6279 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6280 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6281 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
6282   echo $ECHO_N "(cached) $ECHO_C" >&6
6283 else
6284   if test -n "$ac_ct_OBJDUMP"; then
6285   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6286 else
6287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6288 for as_dir in $PATH
6289 do
6290   IFS=$as_save_IFS
6291   test -z "$as_dir" && as_dir=.
6292   for ac_exec_ext in '' $ac_executable_extensions; do
6293   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6294     ac_cv_prog_ac_ct_OBJDUMP="objdump"
6295     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6296     break 2
6297   fi
6298 done
6299 done
6300 IFS=$as_save_IFS
6301
6302 fi
6303 fi
6304 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6305 if test -n "$ac_ct_OBJDUMP"; then
6306   { echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
6307 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6; }
6308 else
6309   { echo "$as_me:$LINENO: result: no" >&5
6310 echo "${ECHO_T}no" >&6; }
6311 fi
6312
6313   if test "x$ac_ct_OBJDUMP" = x; then
6314     OBJDUMP="false"
6315   else
6316     case $cross_compiling:$ac_tool_warned in
6317 yes:)
6318 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6319 whose name does not start with the host triplet.  If you think this
6320 configuration is useful to you, please write to autoconf@gnu.org." >&5
6321 echo "$as_me: 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." >&2;}
6324 ac_tool_warned=yes ;;
6325 esac
6326     OBJDUMP=$ac_ct_OBJDUMP
6327   fi
6328 else
6329   OBJDUMP="$ac_cv_prog_OBJDUMP"
6330 fi
6331
6332 test -z "$OBJDUMP" && OBJDUMP=objdump
6333
6334
6335
6336
6337
6338
6339
6340
6341
6342 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
6343 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
6344 if test "${lt_cv_deplibs_check_method+set}" = set; then
6345   echo $ECHO_N "(cached) $ECHO_C" >&6
6346 else
6347   lt_cv_file_magic_cmd='$MAGIC_CMD'
6348 lt_cv_file_magic_test_file=
6349 lt_cv_deplibs_check_method='unknown'
6350 # Need to set the preceding variable on all platforms that support
6351 # interlibrary dependencies.
6352 # 'none' -- dependencies not supported.
6353 # `unknown' -- same as none, but documents that we really don't know.
6354 # 'pass_all' -- all dependencies passed with no checks.
6355 # 'test_compile' -- check by making test program.
6356 # 'file_magic [[regex]]' -- check by looking for files in library path
6357 # which responds to the $file_magic_cmd with a given extended regex.
6358 # If you have `file' or equivalent on your system and you're not sure
6359 # whether `pass_all' will *always* work, you probably want this one.
6360
6361 case $host_os in
6362 aix[4-9]*)
6363   lt_cv_deplibs_check_method=pass_all
6364   ;;
6365
6366 beos*)
6367   lt_cv_deplibs_check_method=pass_all
6368   ;;
6369
6370 bsdi[45]*)
6371   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6372   lt_cv_file_magic_cmd='/usr/bin/file -L'
6373   lt_cv_file_magic_test_file=/shlib/libc.so
6374   ;;
6375
6376 cygwin*)
6377   # func_win32_libid is a shell function defined in ltmain.sh
6378   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6379   lt_cv_file_magic_cmd='func_win32_libid'
6380   ;;
6381
6382 mingw* | pw32*)
6383   # Base MSYS/MinGW do not provide the 'file' command needed by
6384   # func_win32_libid shell function, so use a weaker test based on 'objdump',
6385   # unless we find 'file', for example because we are cross-compiling.
6386   if ( file / ) >/dev/null 2>&1; then
6387     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6388     lt_cv_file_magic_cmd='func_win32_libid'
6389   else
6390     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6391     lt_cv_file_magic_cmd='$OBJDUMP -f'
6392   fi
6393   ;;
6394
6395 cegcc)
6396   # use the weaker test based on 'objdump'. See mingw*.
6397   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6398   lt_cv_file_magic_cmd='$OBJDUMP -f'
6399   ;;
6400
6401 darwin* | rhapsody*)
6402   lt_cv_deplibs_check_method=pass_all
6403   ;;
6404
6405 freebsd* | dragonfly*)
6406   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6407     case $host_cpu in
6408     i*86 )
6409       # Not sure whether the presence of OpenBSD here was a mistake.
6410       # Let's accept both of them until this is cleared up.
6411       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6412       lt_cv_file_magic_cmd=/usr/bin/file
6413       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6414       ;;
6415     esac
6416   else
6417     lt_cv_deplibs_check_method=pass_all
6418   fi
6419   ;;
6420
6421 gnu*)
6422   lt_cv_deplibs_check_method=pass_all
6423   ;;
6424
6425 hpux10.20* | hpux11*)
6426   lt_cv_file_magic_cmd=/usr/bin/file
6427   case $host_cpu in
6428   ia64*)
6429     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6430     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6431     ;;
6432   hppa*64*)
6433     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]'
6434     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6435     ;;
6436   *)
6437     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6438     lt_cv_file_magic_test_file=/usr/lib/libc.sl
6439     ;;
6440   esac
6441   ;;
6442
6443 interix[3-9]*)
6444   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6445   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6446   ;;
6447
6448 irix5* | irix6* | nonstopux*)
6449   case $LD in
6450   *-32|*"-32 ") libmagic=32-bit;;
6451   *-n32|*"-n32 ") libmagic=N32;;
6452   *-64|*"-64 ") libmagic=64-bit;;
6453   *) libmagic=never-match;;
6454   esac
6455   lt_cv_deplibs_check_method=pass_all
6456   ;;
6457
6458 # This must be Linux ELF.
6459 linux* | k*bsd*-gnu)
6460   lt_cv_deplibs_check_method=pass_all
6461   ;;
6462
6463 netbsd*)
6464   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6465     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6466   else
6467     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6468   fi
6469   ;;
6470
6471 newos6*)
6472   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6473   lt_cv_file_magic_cmd=/usr/bin/file
6474   lt_cv_file_magic_test_file=/usr/lib/libnls.so
6475   ;;
6476
6477 *nto* | *qnx*)
6478   lt_cv_deplibs_check_method=pass_all
6479   ;;
6480
6481 openbsd*)
6482   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6483     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6484   else
6485     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6486   fi
6487   ;;
6488
6489 osf3* | osf4* | osf5*)
6490   lt_cv_deplibs_check_method=pass_all
6491   ;;
6492
6493 rdos*)
6494   lt_cv_deplibs_check_method=pass_all
6495   ;;
6496
6497 solaris*)
6498   lt_cv_deplibs_check_method=pass_all
6499   ;;
6500
6501 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6502   lt_cv_deplibs_check_method=pass_all
6503   ;;
6504
6505 sysv4 | sysv4.3*)
6506   case $host_vendor in
6507   motorola)
6508     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]'
6509     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6510     ;;
6511   ncr)
6512     lt_cv_deplibs_check_method=pass_all
6513     ;;
6514   sequent)
6515     lt_cv_file_magic_cmd='/bin/file'
6516     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6517     ;;
6518   sni)
6519     lt_cv_file_magic_cmd='/bin/file'
6520     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6521     lt_cv_file_magic_test_file=/lib/libc.so
6522     ;;
6523   siemens)
6524     lt_cv_deplibs_check_method=pass_all
6525     ;;
6526   pc)
6527     lt_cv_deplibs_check_method=pass_all
6528     ;;
6529   esac
6530   ;;
6531
6532 tpf*)
6533   lt_cv_deplibs_check_method=pass_all
6534   ;;
6535 esac
6536
6537 fi
6538 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6539 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
6540 file_magic_cmd=$lt_cv_file_magic_cmd
6541 deplibs_check_method=$lt_cv_deplibs_check_method
6542 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6543
6544
6545
6546
6547
6548
6549
6550
6551
6552
6553
6554
6555 if test -n "$ac_tool_prefix"; then
6556   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6557 set dummy ${ac_tool_prefix}ar; ac_word=$2
6558 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6559 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6560 if test "${ac_cv_prog_AR+set}" = set; then
6561   echo $ECHO_N "(cached) $ECHO_C" >&6
6562 else
6563   if test -n "$AR"; then
6564   ac_cv_prog_AR="$AR" # Let the user override the test.
6565 else
6566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6567 for as_dir in $PATH
6568 do
6569   IFS=$as_save_IFS
6570   test -z "$as_dir" && as_dir=.
6571   for ac_exec_ext in '' $ac_executable_extensions; do
6572   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6573     ac_cv_prog_AR="${ac_tool_prefix}ar"
6574     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6575     break 2
6576   fi
6577 done
6578 done
6579 IFS=$as_save_IFS
6580
6581 fi
6582 fi
6583 AR=$ac_cv_prog_AR
6584 if test -n "$AR"; then
6585   { echo "$as_me:$LINENO: result: $AR" >&5
6586 echo "${ECHO_T}$AR" >&6; }
6587 else
6588   { echo "$as_me:$LINENO: result: no" >&5
6589 echo "${ECHO_T}no" >&6; }
6590 fi
6591
6592
6593 fi
6594 if test -z "$ac_cv_prog_AR"; then
6595   ac_ct_AR=$AR
6596   # Extract the first word of "ar", so it can be a program name with args.
6597 set dummy ar; ac_word=$2
6598 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6599 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6600 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6601   echo $ECHO_N "(cached) $ECHO_C" >&6
6602 else
6603   if test -n "$ac_ct_AR"; then
6604   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6605 else
6606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6607 for as_dir in $PATH
6608 do
6609   IFS=$as_save_IFS
6610   test -z "$as_dir" && as_dir=.
6611   for ac_exec_ext in '' $ac_executable_extensions; do
6612   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6613     ac_cv_prog_ac_ct_AR="ar"
6614     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6615     break 2
6616   fi
6617 done
6618 done
6619 IFS=$as_save_IFS
6620
6621 fi
6622 fi
6623 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6624 if test -n "$ac_ct_AR"; then
6625   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6626 echo "${ECHO_T}$ac_ct_AR" >&6; }
6627 else
6628   { echo "$as_me:$LINENO: result: no" >&5
6629 echo "${ECHO_T}no" >&6; }
6630 fi
6631
6632   if test "x$ac_ct_AR" = x; then
6633     AR="false"
6634   else
6635     case $cross_compiling:$ac_tool_warned in
6636 yes:)
6637 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6638 whose name does not start with the host triplet.  If you think this
6639 configuration is useful to you, please write to autoconf@gnu.org." >&5
6640 echo "$as_me: 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." >&2;}
6643 ac_tool_warned=yes ;;
6644 esac
6645     AR=$ac_ct_AR
6646   fi
6647 else
6648   AR="$ac_cv_prog_AR"
6649 fi
6650
6651 test -z "$AR" && AR=ar
6652 test -z "$AR_FLAGS" && AR_FLAGS=cru
6653
6654
6655
6656
6657
6658
6659
6660
6661
6662
6663
6664 if test -n "$ac_tool_prefix"; then
6665   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6666 set dummy ${ac_tool_prefix}strip; ac_word=$2
6667 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6668 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6669 if test "${ac_cv_prog_STRIP+set}" = set; then
6670   echo $ECHO_N "(cached) $ECHO_C" >&6
6671 else
6672   if test -n "$STRIP"; then
6673   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6674 else
6675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6676 for as_dir in $PATH
6677 do
6678   IFS=$as_save_IFS
6679   test -z "$as_dir" && as_dir=.
6680   for ac_exec_ext in '' $ac_executable_extensions; do
6681   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6682     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6683     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6684     break 2
6685   fi
6686 done
6687 done
6688 IFS=$as_save_IFS
6689
6690 fi
6691 fi
6692 STRIP=$ac_cv_prog_STRIP
6693 if test -n "$STRIP"; then
6694   { echo "$as_me:$LINENO: result: $STRIP" >&5
6695 echo "${ECHO_T}$STRIP" >&6; }
6696 else
6697   { echo "$as_me:$LINENO: result: no" >&5
6698 echo "${ECHO_T}no" >&6; }
6699 fi
6700
6701
6702 fi
6703 if test -z "$ac_cv_prog_STRIP"; then
6704   ac_ct_STRIP=$STRIP
6705   # Extract the first word of "strip", so it can be a program name with args.
6706 set dummy strip; ac_word=$2
6707 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6708 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6709 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6710   echo $ECHO_N "(cached) $ECHO_C" >&6
6711 else
6712   if test -n "$ac_ct_STRIP"; then
6713   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6714 else
6715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6716 for as_dir in $PATH
6717 do
6718   IFS=$as_save_IFS
6719   test -z "$as_dir" && as_dir=.
6720   for ac_exec_ext in '' $ac_executable_extensions; do
6721   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6722     ac_cv_prog_ac_ct_STRIP="strip"
6723     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6724     break 2
6725   fi
6726 done
6727 done
6728 IFS=$as_save_IFS
6729
6730 fi
6731 fi
6732 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6733 if test -n "$ac_ct_STRIP"; then
6734   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6735 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6736 else
6737   { echo "$as_me:$LINENO: result: no" >&5
6738 echo "${ECHO_T}no" >&6; }
6739 fi
6740
6741   if test "x$ac_ct_STRIP" = x; then
6742     STRIP=":"
6743   else
6744     case $cross_compiling:$ac_tool_warned in
6745 yes:)
6746 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6747 whose name does not start with the host triplet.  If you think this
6748 configuration is useful to you, please write to autoconf@gnu.org." >&5
6749 echo "$as_me: 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." >&2;}
6752 ac_tool_warned=yes ;;
6753 esac
6754     STRIP=$ac_ct_STRIP
6755   fi
6756 else
6757   STRIP="$ac_cv_prog_STRIP"
6758 fi
6759
6760 test -z "$STRIP" && STRIP=:
6761
6762
6763
6764
6765
6766
6767 if test -n "$ac_tool_prefix"; then
6768   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6769 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6770 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6771 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6772 if test "${ac_cv_prog_RANLIB+set}" = set; then
6773   echo $ECHO_N "(cached) $ECHO_C" >&6
6774 else
6775   if test -n "$RANLIB"; then
6776   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6777 else
6778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6779 for as_dir in $PATH
6780 do
6781   IFS=$as_save_IFS
6782   test -z "$as_dir" && as_dir=.
6783   for ac_exec_ext in '' $ac_executable_extensions; do
6784   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6785     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6786     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6787     break 2
6788   fi
6789 done
6790 done
6791 IFS=$as_save_IFS
6792
6793 fi
6794 fi
6795 RANLIB=$ac_cv_prog_RANLIB
6796 if test -n "$RANLIB"; then
6797   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6798 echo "${ECHO_T}$RANLIB" >&6; }
6799 else
6800   { echo "$as_me:$LINENO: result: no" >&5
6801 echo "${ECHO_T}no" >&6; }
6802 fi
6803
6804
6805 fi
6806 if test -z "$ac_cv_prog_RANLIB"; then
6807   ac_ct_RANLIB=$RANLIB
6808   # Extract the first word of "ranlib", so it can be a program name with args.
6809 set dummy ranlib; ac_word=$2
6810 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6811 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6812 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6813   echo $ECHO_N "(cached) $ECHO_C" >&6
6814 else
6815   if test -n "$ac_ct_RANLIB"; then
6816   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6817 else
6818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6819 for as_dir in $PATH
6820 do
6821   IFS=$as_save_IFS
6822   test -z "$as_dir" && as_dir=.
6823   for ac_exec_ext in '' $ac_executable_extensions; do
6824   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6825     ac_cv_prog_ac_ct_RANLIB="ranlib"
6826     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6827     break 2
6828   fi
6829 done
6830 done
6831 IFS=$as_save_IFS
6832
6833 fi
6834 fi
6835 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6836 if test -n "$ac_ct_RANLIB"; then
6837   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6838 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6839 else
6840   { echo "$as_me:$LINENO: result: no" >&5
6841 echo "${ECHO_T}no" >&6; }
6842 fi
6843
6844   if test "x$ac_ct_RANLIB" = x; then
6845     RANLIB=":"
6846   else
6847     case $cross_compiling:$ac_tool_warned in
6848 yes:)
6849 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6850 whose name does not start with the host triplet.  If you think this
6851 configuration is useful to you, please write to autoconf@gnu.org." >&5
6852 echo "$as_me: 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." >&2;}
6855 ac_tool_warned=yes ;;
6856 esac
6857     RANLIB=$ac_ct_RANLIB
6858   fi
6859 else
6860   RANLIB="$ac_cv_prog_RANLIB"
6861 fi
6862
6863 test -z "$RANLIB" && RANLIB=:
6864
6865
6866
6867
6868
6869
6870 # Determine commands to create old-style static archives.
6871 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6872 old_postinstall_cmds='chmod 644 $oldlib'
6873 old_postuninstall_cmds=
6874
6875 if test -n "$RANLIB"; then
6876   case $host_os in
6877   openbsd*)
6878     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6879     ;;
6880   *)
6881     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6882     ;;
6883   esac
6884   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6885 fi
6886
6887
6888
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 # If no C compiler was specified, use CC.
6921 LTCC=${LTCC-"$CC"}
6922
6923 # If no C compiler flags were specified, use CFLAGS.
6924 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6925
6926 # Allow CC to be a program name with arguments.
6927 compiler=$CC
6928
6929
6930 # Check for command to grab the raw symbol name followed by C symbol from nm.
6931 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6932 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6933 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6934   echo $ECHO_N "(cached) $ECHO_C" >&6
6935 else
6936
6937 # These are sane defaults that work on at least a few old systems.
6938 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6939
6940 # Character class describing NM global symbol codes.
6941 symcode='[BCDEGRST]'
6942
6943 # Regexp to match symbols that can be accessed directly from C.
6944 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6945
6946 # Define system-specific variables.
6947 case $host_os in
6948 aix*)
6949   symcode='[BCDT]'
6950   ;;
6951 cygwin* | mingw* | pw32* | cegcc*)
6952   symcode='[ABCDGISTW]'
6953   ;;
6954 hpux*)
6955   if test "$host_cpu" = ia64; then
6956     symcode='[ABCDEGRST]'
6957   fi
6958   ;;
6959 irix* | nonstopux*)
6960   symcode='[BCDEGRST]'
6961   ;;
6962 osf*)
6963   symcode='[BCDEGQRST]'
6964   ;;
6965 solaris*)
6966   symcode='[BDRT]'
6967   ;;
6968 sco3.2v5*)
6969   symcode='[DT]'
6970   ;;
6971 sysv4.2uw2*)
6972   symcode='[DT]'
6973   ;;
6974 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6975   symcode='[ABDT]'
6976   ;;
6977 sysv4)
6978   symcode='[DFNSTU]'
6979   ;;
6980 esac
6981
6982 # If we're using GNU nm, then use its standard symbol codes.
6983 case `$NM -V 2>&1` in
6984 *GNU* | *'with BFD'*)
6985   symcode='[ABCDGIRSTW]' ;;
6986 esac
6987
6988 # Transform an extracted symbol line into a proper C declaration.
6989 # Some systems (esp. on ia64) link data and code symbols differently,
6990 # so use this general approach.
6991 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6992
6993 # Transform an extracted symbol line into symbol name and symbol address
6994 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6995 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'"
6996
6997 # Handle CRLF in mingw tool chain
6998 opt_cr=
6999 case $build_os in
7000 mingw*)
7001   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7002   ;;
7003 esac
7004
7005 # Try without a prefix underscore, then with it.
7006 for ac_symprfx in "" "_"; do
7007
7008   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7009   symxfrm="\\1 $ac_symprfx\\2 \\2"
7010
7011   # Write the raw and C identifiers.
7012   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7013     # Fake it for dumpbin and say T for any non-static function
7014     # and D for any global variable.
7015     # Also find C++ and __fastcall symbols from MSVC++,
7016     # which start with @ or ?.
7017     lt_cv_sys_global_symbol_pipe="$AWK '"\
7018 "     {last_section=section; section=\$ 3};"\
7019 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7020 "     \$ 0!~/External *\|/{next};"\
7021 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7022 "     {if(hide[section]) next};"\
7023 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7024 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7025 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
7026 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7027 "     ' prfx=^$ac_symprfx"
7028   else
7029     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7030   fi
7031
7032   # Check to see that the pipe works correctly.
7033   pipe_works=no
7034
7035   rm -f conftest*
7036   cat > conftest.$ac_ext <<_LT_EOF
7037 #ifdef __cplusplus
7038 extern "C" {
7039 #endif
7040 char nm_test_var;
7041 void nm_test_func(void);
7042 void nm_test_func(void){}
7043 #ifdef __cplusplus
7044 }
7045 #endif
7046 int main(){nm_test_var='a';nm_test_func();return(0);}
7047 _LT_EOF
7048
7049   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7050   (eval $ac_compile) 2>&5
7051   ac_status=$?
7052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7053   (exit $ac_status); }; then
7054     # Now try to grab the symbols.
7055     nlist=conftest.nm
7056     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7057   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7058   ac_status=$?
7059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7060   (exit $ac_status); } && test -s "$nlist"; then
7061       # Try sorting and uniquifying the output.
7062       if sort "$nlist" | uniq > "$nlist"T; then
7063         mv -f "$nlist"T "$nlist"
7064       else
7065         rm -f "$nlist"T
7066       fi
7067
7068       # Make sure that we snagged all the symbols we need.
7069       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7070         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7071           cat <<_LT_EOF > conftest.$ac_ext
7072 #ifdef __cplusplus
7073 extern "C" {
7074 #endif
7075
7076 _LT_EOF
7077           # Now generate the symbol file.
7078           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7079
7080           cat <<_LT_EOF >> conftest.$ac_ext
7081
7082 /* The mapping between symbol names and symbols.  */
7083 const struct {
7084   const char *name;
7085   void       *address;
7086 }
7087 lt__PROGRAM__LTX_preloaded_symbols[] =
7088 {
7089   { "@PROGRAM@", (void *) 0 },
7090 _LT_EOF
7091           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7092           cat <<\_LT_EOF >> conftest.$ac_ext
7093   {0, (void *) 0}
7094 };
7095
7096 /* This works around a problem in FreeBSD linker */
7097 #ifdef FREEBSD_WORKAROUND
7098 static const void *lt_preloaded_setup() {
7099   return lt__PROGRAM__LTX_preloaded_symbols;
7100 }
7101 #endif
7102
7103 #ifdef __cplusplus
7104 }
7105 #endif
7106 _LT_EOF
7107           # Now try linking the two files.
7108           mv conftest.$ac_objext conftstm.$ac_objext
7109           lt_save_LIBS="$LIBS"
7110           lt_save_CFLAGS="$CFLAGS"
7111           LIBS="conftstm.$ac_objext"
7112           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7113           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7114   (eval $ac_link) 2>&5
7115   ac_status=$?
7116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7117   (exit $ac_status); } && test -s conftest${ac_exeext}; then
7118             pipe_works=yes
7119           fi
7120           LIBS="$lt_save_LIBS"
7121           CFLAGS="$lt_save_CFLAGS"
7122         else
7123           echo "cannot find nm_test_func in $nlist" >&5
7124         fi
7125       else
7126         echo "cannot find nm_test_var in $nlist" >&5
7127       fi
7128     else
7129       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7130     fi
7131   else
7132     echo "$progname: failed program was:" >&5
7133     cat conftest.$ac_ext >&5
7134   fi
7135   rm -rf conftest* conftst*
7136
7137   # Do not use the global_symbol_pipe unless it works.
7138   if test "$pipe_works" = yes; then
7139     break
7140   else
7141     lt_cv_sys_global_symbol_pipe=
7142   fi
7143 done
7144
7145 fi
7146
7147 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7148   lt_cv_sys_global_symbol_to_cdecl=
7149 fi
7150 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7151   { echo "$as_me:$LINENO: result: failed" >&5
7152 echo "${ECHO_T}failed" >&6; }
7153 else
7154   { echo "$as_me:$LINENO: result: ok" >&5
7155 echo "${ECHO_T}ok" >&6; }
7156 fi
7157
7158
7159
7160
7161
7162
7163
7164
7165
7166
7167
7168
7169
7170
7171
7172
7173
7174
7175
7176
7177
7178
7179 # Check whether --enable-libtool-lock was given.
7180 if test "${enable_libtool_lock+set}" = set; then
7181   enableval=$enable_libtool_lock;
7182 fi
7183
7184 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7185
7186 # Some flags need to be propagated to the compiler or linker for good
7187 # libtool support.
7188 case $host in
7189 ia64-*-hpux*)
7190   # Find out which ABI we are using.
7191   echo 'int i;' > conftest.$ac_ext
7192   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7193   (eval $ac_compile) 2>&5
7194   ac_status=$?
7195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7196   (exit $ac_status); }; then
7197     case `/usr/bin/file conftest.$ac_objext` in
7198       *ELF-32*)
7199         HPUX_IA64_MODE="32"
7200         ;;
7201       *ELF-64*)
7202         HPUX_IA64_MODE="64"
7203         ;;
7204     esac
7205   fi
7206   rm -rf conftest*
7207   ;;
7208 *-*-irix6*)
7209   # Find out which ABI we are using.
7210   echo '#line 7210 "configure"' > conftest.$ac_ext
7211   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7212   (eval $ac_compile) 2>&5
7213   ac_status=$?
7214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7215   (exit $ac_status); }; then
7216     if test "$lt_cv_prog_gnu_ld" = yes; then
7217       case `/usr/bin/file conftest.$ac_objext` in
7218         *32-bit*)
7219           LD="${LD-ld} -melf32bsmip"
7220           ;;
7221         *N32*)
7222           LD="${LD-ld} -melf32bmipn32"
7223           ;;
7224         *64-bit*)
7225           LD="${LD-ld} -melf64bmip"
7226         ;;
7227       esac
7228     else
7229       case `/usr/bin/file conftest.$ac_objext` in
7230         *32-bit*)
7231           LD="${LD-ld} -32"
7232           ;;
7233         *N32*)
7234           LD="${LD-ld} -n32"
7235           ;;
7236         *64-bit*)
7237           LD="${LD-ld} -64"
7238           ;;
7239       esac
7240     fi
7241   fi
7242   rm -rf conftest*
7243   ;;
7244
7245 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7246 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7247   # Find out which ABI we are using.
7248   echo 'int i;' > conftest.$ac_ext
7249   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7250   (eval $ac_compile) 2>&5
7251   ac_status=$?
7252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7253   (exit $ac_status); }; then
7254     case `/usr/bin/file conftest.o` in
7255       *32-bit*)
7256         case $host in
7257           x86_64-*kfreebsd*-gnu)
7258             LD="${LD-ld} -m elf_i386_fbsd"
7259             ;;
7260           x86_64-*linux*)
7261             LD="${LD-ld} -m elf_i386"
7262             ;;
7263           ppc64-*linux*|powerpc64-*linux*)
7264             LD="${LD-ld} -m elf32ppclinux"
7265             ;;
7266           s390x-*linux*)
7267             LD="${LD-ld} -m elf_s390"
7268             ;;
7269           sparc64-*linux*)
7270             LD="${LD-ld} -m elf32_sparc"
7271             ;;
7272         esac
7273         ;;
7274       *64-bit*)
7275         case $host in
7276           x86_64-*kfreebsd*-gnu)
7277             LD="${LD-ld} -m elf_x86_64_fbsd"
7278             ;;
7279           x86_64-*linux*)
7280             LD="${LD-ld} -m elf_x86_64"
7281             ;;
7282           ppc*-*linux*|powerpc*-*linux*)
7283             LD="${LD-ld} -m elf64ppc"
7284             ;;
7285           s390*-*linux*|s390*-*tpf*)
7286             LD="${LD-ld} -m elf64_s390"
7287             ;;
7288           sparc*-*linux*)
7289             LD="${LD-ld} -m elf64_sparc"
7290             ;;
7291         esac
7292         ;;
7293     esac
7294   fi
7295   rm -rf conftest*
7296   ;;
7297
7298 *-*-sco3.2v5*)
7299   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7300   SAVE_CFLAGS="$CFLAGS"
7301   CFLAGS="$CFLAGS -belf"
7302   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
7303 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
7304 if test "${lt_cv_cc_needs_belf+set}" = set; then
7305   echo $ECHO_N "(cached) $ECHO_C" >&6
7306 else
7307   ac_ext=c
7308 ac_cpp='$CPP $CPPFLAGS'
7309 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7310 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7311 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7312
7313      cat >conftest.$ac_ext <<_ACEOF
7314 /* confdefs.h.  */
7315 _ACEOF
7316 cat confdefs.h >>conftest.$ac_ext
7317 cat >>conftest.$ac_ext <<_ACEOF
7318 /* end confdefs.h.  */
7319
7320 int
7321 main ()
7322 {
7323
7324   ;
7325   return 0;
7326 }
7327 _ACEOF
7328 rm -f conftest.$ac_objext conftest$ac_exeext
7329 if { (ac_try="$ac_link"
7330 case "(($ac_try" in
7331   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7332   *) ac_try_echo=$ac_try;;
7333 esac
7334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7335   (eval "$ac_link") 2>conftest.er1
7336   ac_status=$?
7337   grep -v '^ *+' conftest.er1 >conftest.err
7338   rm -f conftest.er1
7339   cat conftest.err >&5
7340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7341   (exit $ac_status); } && {
7342          test -z "$ac_c_werror_flag" ||
7343          test ! -s conftest.err
7344        } && test -s conftest$ac_exeext &&
7345        $as_test_x conftest$ac_exeext; then
7346   lt_cv_cc_needs_belf=yes
7347 else
7348   echo "$as_me: failed program was:" >&5
7349 sed 's/^/| /' conftest.$ac_ext >&5
7350
7351         lt_cv_cc_needs_belf=no
7352 fi
7353
7354 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7355       conftest$ac_exeext conftest.$ac_ext
7356      ac_ext=c
7357 ac_cpp='$CPP $CPPFLAGS'
7358 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7359 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7360 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7361
7362 fi
7363 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
7364 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
7365   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7366     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7367     CFLAGS="$SAVE_CFLAGS"
7368   fi
7369   ;;
7370 sparc*-*solaris*)
7371   # Find out which ABI we are using.
7372   echo 'int i;' > conftest.$ac_ext
7373   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7374   (eval $ac_compile) 2>&5
7375   ac_status=$?
7376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7377   (exit $ac_status); }; then
7378     case `/usr/bin/file conftest.o` in
7379     *64-bit*)
7380       case $lt_cv_prog_gnu_ld in
7381       yes*) LD="${LD-ld} -m elf64_sparc" ;;
7382       *)
7383         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7384           LD="${LD-ld} -64"
7385         fi
7386         ;;
7387       esac
7388       ;;
7389     esac
7390   fi
7391   rm -rf conftest*
7392   ;;
7393 esac
7394
7395 need_locks="$enable_libtool_lock"
7396
7397
7398   case $host_os in
7399     rhapsody* | darwin*)
7400     if test -n "$ac_tool_prefix"; then
7401   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7402 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7403 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7404 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7405 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7406   echo $ECHO_N "(cached) $ECHO_C" >&6
7407 else
7408   if test -n "$DSYMUTIL"; then
7409   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7410 else
7411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7412 for as_dir in $PATH
7413 do
7414   IFS=$as_save_IFS
7415   test -z "$as_dir" && as_dir=.
7416   for ac_exec_ext in '' $ac_executable_extensions; do
7417   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7418     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7419     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7420     break 2
7421   fi
7422 done
7423 done
7424 IFS=$as_save_IFS
7425
7426 fi
7427 fi
7428 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7429 if test -n "$DSYMUTIL"; then
7430   { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7431 echo "${ECHO_T}$DSYMUTIL" >&6; }
7432 else
7433   { echo "$as_me:$LINENO: result: no" >&5
7434 echo "${ECHO_T}no" >&6; }
7435 fi
7436
7437
7438 fi
7439 if test -z "$ac_cv_prog_DSYMUTIL"; then
7440   ac_ct_DSYMUTIL=$DSYMUTIL
7441   # Extract the first word of "dsymutil", so it can be a program name with args.
7442 set dummy dsymutil; ac_word=$2
7443 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7444 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7445 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7446   echo $ECHO_N "(cached) $ECHO_C" >&6
7447 else
7448   if test -n "$ac_ct_DSYMUTIL"; then
7449   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7450 else
7451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7452 for as_dir in $PATH
7453 do
7454   IFS=$as_save_IFS
7455   test -z "$as_dir" && as_dir=.
7456   for ac_exec_ext in '' $ac_executable_extensions; do
7457   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7458     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7459     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7460     break 2
7461   fi
7462 done
7463 done
7464 IFS=$as_save_IFS
7465
7466 fi
7467 fi
7468 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7469 if test -n "$ac_ct_DSYMUTIL"; then
7470   { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7471 echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
7472 else
7473   { echo "$as_me:$LINENO: result: no" >&5
7474 echo "${ECHO_T}no" >&6; }
7475 fi
7476
7477   if test "x$ac_ct_DSYMUTIL" = x; then
7478     DSYMUTIL=":"
7479   else
7480     case $cross_compiling:$ac_tool_warned in
7481 yes:)
7482 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7483 whose name does not start with the host triplet.  If you think this
7484 configuration is useful to you, please write to autoconf@gnu.org." >&5
7485 echo "$as_me: 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." >&2;}
7488 ac_tool_warned=yes ;;
7489 esac
7490     DSYMUTIL=$ac_ct_DSYMUTIL
7491   fi
7492 else
7493   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7494 fi
7495
7496     if test -n "$ac_tool_prefix"; then
7497   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7498 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7499 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7500 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7501 if test "${ac_cv_prog_NMEDIT+set}" = set; then
7502   echo $ECHO_N "(cached) $ECHO_C" >&6
7503 else
7504   if test -n "$NMEDIT"; then
7505   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7506 else
7507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7508 for as_dir in $PATH
7509 do
7510   IFS=$as_save_IFS
7511   test -z "$as_dir" && as_dir=.
7512   for ac_exec_ext in '' $ac_executable_extensions; do
7513   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7514     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7515     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7516     break 2
7517   fi
7518 done
7519 done
7520 IFS=$as_save_IFS
7521
7522 fi
7523 fi
7524 NMEDIT=$ac_cv_prog_NMEDIT
7525 if test -n "$NMEDIT"; then
7526   { echo "$as_me:$LINENO: result: $NMEDIT" >&5
7527 echo "${ECHO_T}$NMEDIT" >&6; }
7528 else
7529   { echo "$as_me:$LINENO: result: no" >&5
7530 echo "${ECHO_T}no" >&6; }
7531 fi
7532
7533
7534 fi
7535 if test -z "$ac_cv_prog_NMEDIT"; then
7536   ac_ct_NMEDIT=$NMEDIT
7537   # Extract the first word of "nmedit", so it can be a program name with args.
7538 set dummy nmedit; ac_word=$2
7539 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7540 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7541 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7542   echo $ECHO_N "(cached) $ECHO_C" >&6
7543 else
7544   if test -n "$ac_ct_NMEDIT"; then
7545   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7546 else
7547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7548 for as_dir in $PATH
7549 do
7550   IFS=$as_save_IFS
7551   test -z "$as_dir" && as_dir=.
7552   for ac_exec_ext in '' $ac_executable_extensions; do
7553   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7554     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7555     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7556     break 2
7557   fi
7558 done
7559 done
7560 IFS=$as_save_IFS
7561
7562 fi
7563 fi
7564 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7565 if test -n "$ac_ct_NMEDIT"; then
7566   { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7567 echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
7568 else
7569   { echo "$as_me:$LINENO: result: no" >&5
7570 echo "${ECHO_T}no" >&6; }
7571 fi
7572
7573   if test "x$ac_ct_NMEDIT" = x; then
7574     NMEDIT=":"
7575   else
7576     case $cross_compiling:$ac_tool_warned in
7577 yes:)
7578 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7579 whose name does not start with the host triplet.  If you think this
7580 configuration is useful to you, please write to autoconf@gnu.org." >&5
7581 echo "$as_me: 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." >&2;}
7584 ac_tool_warned=yes ;;
7585 esac
7586     NMEDIT=$ac_ct_NMEDIT
7587   fi
7588 else
7589   NMEDIT="$ac_cv_prog_NMEDIT"
7590 fi
7591
7592     if test -n "$ac_tool_prefix"; then
7593   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7594 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7595 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7596 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7597 if test "${ac_cv_prog_LIPO+set}" = set; then
7598   echo $ECHO_N "(cached) $ECHO_C" >&6
7599 else
7600   if test -n "$LIPO"; then
7601   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7602 else
7603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7604 for as_dir in $PATH
7605 do
7606   IFS=$as_save_IFS
7607   test -z "$as_dir" && as_dir=.
7608   for ac_exec_ext in '' $ac_executable_extensions; do
7609   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7610     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7611     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7612     break 2
7613   fi
7614 done
7615 done
7616 IFS=$as_save_IFS
7617
7618 fi
7619 fi
7620 LIPO=$ac_cv_prog_LIPO
7621 if test -n "$LIPO"; then
7622   { echo "$as_me:$LINENO: result: $LIPO" >&5
7623 echo "${ECHO_T}$LIPO" >&6; }
7624 else
7625   { echo "$as_me:$LINENO: result: no" >&5
7626 echo "${ECHO_T}no" >&6; }
7627 fi
7628
7629
7630 fi
7631 if test -z "$ac_cv_prog_LIPO"; then
7632   ac_ct_LIPO=$LIPO
7633   # Extract the first word of "lipo", so it can be a program name with args.
7634 set dummy lipo; ac_word=$2
7635 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7636 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7637 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
7638   echo $ECHO_N "(cached) $ECHO_C" >&6
7639 else
7640   if test -n "$ac_ct_LIPO"; then
7641   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7642 else
7643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7644 for as_dir in $PATH
7645 do
7646   IFS=$as_save_IFS
7647   test -z "$as_dir" && as_dir=.
7648   for ac_exec_ext in '' $ac_executable_extensions; do
7649   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7650     ac_cv_prog_ac_ct_LIPO="lipo"
7651     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7652     break 2
7653   fi
7654 done
7655 done
7656 IFS=$as_save_IFS
7657
7658 fi
7659 fi
7660 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7661 if test -n "$ac_ct_LIPO"; then
7662   { echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
7663 echo "${ECHO_T}$ac_ct_LIPO" >&6; }
7664 else
7665   { echo "$as_me:$LINENO: result: no" >&5
7666 echo "${ECHO_T}no" >&6; }
7667 fi
7668
7669   if test "x$ac_ct_LIPO" = x; then
7670     LIPO=":"
7671   else
7672     case $cross_compiling:$ac_tool_warned in
7673 yes:)
7674 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7675 whose name does not start with the host triplet.  If you think this
7676 configuration is useful to you, please write to autoconf@gnu.org." >&5
7677 echo "$as_me: 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." >&2;}
7680 ac_tool_warned=yes ;;
7681 esac
7682     LIPO=$ac_ct_LIPO
7683   fi
7684 else
7685   LIPO="$ac_cv_prog_LIPO"
7686 fi
7687
7688     if test -n "$ac_tool_prefix"; then
7689   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7690 set dummy ${ac_tool_prefix}otool; ac_word=$2
7691 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7692 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7693 if test "${ac_cv_prog_OTOOL+set}" = set; then
7694   echo $ECHO_N "(cached) $ECHO_C" >&6
7695 else
7696   if test -n "$OTOOL"; then
7697   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7698 else
7699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7700 for as_dir in $PATH
7701 do
7702   IFS=$as_save_IFS
7703   test -z "$as_dir" && as_dir=.
7704   for ac_exec_ext in '' $ac_executable_extensions; do
7705   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7706     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7707     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7708     break 2
7709   fi
7710 done
7711 done
7712 IFS=$as_save_IFS
7713
7714 fi
7715 fi
7716 OTOOL=$ac_cv_prog_OTOOL
7717 if test -n "$OTOOL"; then
7718   { echo "$as_me:$LINENO: result: $OTOOL" >&5
7719 echo "${ECHO_T}$OTOOL" >&6; }
7720 else
7721   { echo "$as_me:$LINENO: result: no" >&5
7722 echo "${ECHO_T}no" >&6; }
7723 fi
7724
7725
7726 fi
7727 if test -z "$ac_cv_prog_OTOOL"; then
7728   ac_ct_OTOOL=$OTOOL
7729   # Extract the first word of "otool", so it can be a program name with args.
7730 set dummy otool; ac_word=$2
7731 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7732 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7733 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
7734   echo $ECHO_N "(cached) $ECHO_C" >&6
7735 else
7736   if test -n "$ac_ct_OTOOL"; then
7737   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7738 else
7739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7740 for as_dir in $PATH
7741 do
7742   IFS=$as_save_IFS
7743   test -z "$as_dir" && as_dir=.
7744   for ac_exec_ext in '' $ac_executable_extensions; do
7745   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7746     ac_cv_prog_ac_ct_OTOOL="otool"
7747     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7748     break 2
7749   fi
7750 done
7751 done
7752 IFS=$as_save_IFS
7753
7754 fi
7755 fi
7756 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7757 if test -n "$ac_ct_OTOOL"; then
7758   { echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
7759 echo "${ECHO_T}$ac_ct_OTOOL" >&6; }
7760 else
7761   { echo "$as_me:$LINENO: result: no" >&5
7762 echo "${ECHO_T}no" >&6; }
7763 fi
7764
7765   if test "x$ac_ct_OTOOL" = x; then
7766     OTOOL=":"
7767   else
7768     case $cross_compiling:$ac_tool_warned in
7769 yes:)
7770 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7771 whose name does not start with the host triplet.  If you think this
7772 configuration is useful to you, please write to autoconf@gnu.org." >&5
7773 echo "$as_me: 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." >&2;}
7776 ac_tool_warned=yes ;;
7777 esac
7778     OTOOL=$ac_ct_OTOOL
7779   fi
7780 else
7781   OTOOL="$ac_cv_prog_OTOOL"
7782 fi
7783
7784     if test -n "$ac_tool_prefix"; then
7785   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7786 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7787 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7788 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7789 if test "${ac_cv_prog_OTOOL64+set}" = set; then
7790   echo $ECHO_N "(cached) $ECHO_C" >&6
7791 else
7792   if test -n "$OTOOL64"; then
7793   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7794 else
7795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7796 for as_dir in $PATH
7797 do
7798   IFS=$as_save_IFS
7799   test -z "$as_dir" && as_dir=.
7800   for ac_exec_ext in '' $ac_executable_extensions; do
7801   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7802     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7803     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7804     break 2
7805   fi
7806 done
7807 done
7808 IFS=$as_save_IFS
7809
7810 fi
7811 fi
7812 OTOOL64=$ac_cv_prog_OTOOL64
7813 if test -n "$OTOOL64"; then
7814   { echo "$as_me:$LINENO: result: $OTOOL64" >&5
7815 echo "${ECHO_T}$OTOOL64" >&6; }
7816 else
7817   { echo "$as_me:$LINENO: result: no" >&5
7818 echo "${ECHO_T}no" >&6; }
7819 fi
7820
7821
7822 fi
7823 if test -z "$ac_cv_prog_OTOOL64"; then
7824   ac_ct_OTOOL64=$OTOOL64
7825   # Extract the first word of "otool64", so it can be a program name with args.
7826 set dummy otool64; ac_word=$2
7827 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7828 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7829 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
7830   echo $ECHO_N "(cached) $ECHO_C" >&6
7831 else
7832   if test -n "$ac_ct_OTOOL64"; then
7833   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7834 else
7835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7836 for as_dir in $PATH
7837 do
7838   IFS=$as_save_IFS
7839   test -z "$as_dir" && as_dir=.
7840   for ac_exec_ext in '' $ac_executable_extensions; do
7841   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7842     ac_cv_prog_ac_ct_OTOOL64="otool64"
7843     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7844     break 2
7845   fi
7846 done
7847 done
7848 IFS=$as_save_IFS
7849
7850 fi
7851 fi
7852 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7853 if test -n "$ac_ct_OTOOL64"; then
7854   { echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
7855 echo "${ECHO_T}$ac_ct_OTOOL64" >&6; }
7856 else
7857   { echo "$as_me:$LINENO: result: no" >&5
7858 echo "${ECHO_T}no" >&6; }
7859 fi
7860
7861   if test "x$ac_ct_OTOOL64" = x; then
7862     OTOOL64=":"
7863   else
7864     case $cross_compiling:$ac_tool_warned in
7865 yes:)
7866 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7867 whose name does not start with the host triplet.  If you think this
7868 configuration is useful to you, please write to autoconf@gnu.org." >&5
7869 echo "$as_me: 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." >&2;}
7872 ac_tool_warned=yes ;;
7873 esac
7874     OTOOL64=$ac_ct_OTOOL64
7875   fi
7876 else
7877   OTOOL64="$ac_cv_prog_OTOOL64"
7878 fi
7879
7880
7881
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     { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7907 echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
7908 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7909   echo $ECHO_N "(cached) $ECHO_C" >&6
7910 else
7911   lt_cv_apple_cc_single_mod=no
7912       if test -z "${LT_MULTI_MODULE}"; then
7913         # By default we will add the -single_module flag. You can override
7914         # by either setting the environment variable LT_MULTI_MODULE
7915         # non-empty at configure time, or by adding -multi_module to the
7916         # link flags.
7917         rm -rf libconftest.dylib*
7918         echo "int foo(void){return 1;}" > conftest.c
7919         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7920 -dynamiclib -Wl,-single_module conftest.c" >&5
7921         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7922           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7923         _lt_result=$?
7924         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7925           lt_cv_apple_cc_single_mod=yes
7926         else
7927           cat conftest.err >&5
7928         fi
7929         rm -rf libconftest.dylib*
7930         rm -f conftest.*
7931       fi
7932 fi
7933 { echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7934 echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
7935     { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7936 echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
7937 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7938   echo $ECHO_N "(cached) $ECHO_C" >&6
7939 else
7940   lt_cv_ld_exported_symbols_list=no
7941       save_LDFLAGS=$LDFLAGS
7942       echo "_main" > conftest.sym
7943       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7944       cat >conftest.$ac_ext <<_ACEOF
7945 /* confdefs.h.  */
7946 _ACEOF
7947 cat confdefs.h >>conftest.$ac_ext
7948 cat >>conftest.$ac_ext <<_ACEOF
7949 /* end confdefs.h.  */
7950
7951 int
7952 main ()
7953 {
7954
7955   ;
7956   return 0;
7957 }
7958 _ACEOF
7959 rm -f conftest.$ac_objext conftest$ac_exeext
7960 if { (ac_try="$ac_link"
7961 case "(($ac_try" in
7962   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7963   *) ac_try_echo=$ac_try;;
7964 esac
7965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7966   (eval "$ac_link") 2>conftest.er1
7967   ac_status=$?
7968   grep -v '^ *+' conftest.er1 >conftest.err
7969   rm -f conftest.er1
7970   cat conftest.err >&5
7971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7972   (exit $ac_status); } && {
7973          test -z "$ac_c_werror_flag" ||
7974          test ! -s conftest.err
7975        } && test -s conftest$ac_exeext &&
7976        $as_test_x conftest$ac_exeext; then
7977   lt_cv_ld_exported_symbols_list=yes
7978 else
7979   echo "$as_me: failed program was:" >&5
7980 sed 's/^/| /' conftest.$ac_ext >&5
7981
7982         lt_cv_ld_exported_symbols_list=no
7983 fi
7984
7985 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7986       conftest$ac_exeext conftest.$ac_ext
7987         LDFLAGS="$save_LDFLAGS"
7988
7989 fi
7990 { echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7991 echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
7992     case $host_os in
7993     rhapsody* | darwin1.[012])
7994       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7995     darwin1.*)
7996       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7997     darwin*) # darwin 5.x on
7998       # if running on 10.5 or later, the deployment target defaults
7999       # to the OS version, if on x86, and 10.4, the deployment
8000       # target defaults to 10.4. Don't you love it?
8001       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8002         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8003           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8004         10.[012]*)
8005           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8006         10.*)
8007           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8008       esac
8009     ;;
8010   esac
8011     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8012       _lt_dar_single_mod='$single_module'
8013     fi
8014     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8015       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8016     else
8017       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8018     fi
8019     if test "$DSYMUTIL" != ":"; then
8020       _lt_dsymutil='~$DSYMUTIL $lib || :'
8021     else
8022       _lt_dsymutil=
8023     fi
8024     ;;
8025   esac
8026
8027 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8028 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
8029 if test "${ac_cv_header_stdc+set}" = set; then
8030   echo $ECHO_N "(cached) $ECHO_C" >&6
8031 else
8032   cat >conftest.$ac_ext <<_ACEOF
8033 /* confdefs.h.  */
8034 _ACEOF
8035 cat confdefs.h >>conftest.$ac_ext
8036 cat >>conftest.$ac_ext <<_ACEOF
8037 /* end confdefs.h.  */
8038 #include <stdlib.h>
8039 #include <stdarg.h>
8040 #include <string.h>
8041 #include <float.h>
8042
8043 int
8044 main ()
8045 {
8046
8047   ;
8048   return 0;
8049 }
8050 _ACEOF
8051 rm -f conftest.$ac_objext
8052 if { (ac_try="$ac_compile"
8053 case "(($ac_try" in
8054   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8055   *) ac_try_echo=$ac_try;;
8056 esac
8057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8058   (eval "$ac_compile") 2>conftest.er1
8059   ac_status=$?
8060   grep -v '^ *+' conftest.er1 >conftest.err
8061   rm -f conftest.er1
8062   cat conftest.err >&5
8063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8064   (exit $ac_status); } && {
8065          test -z "$ac_c_werror_flag" ||
8066          test ! -s conftest.err
8067        } && test -s conftest.$ac_objext; then
8068   ac_cv_header_stdc=yes
8069 else
8070   echo "$as_me: failed program was:" >&5
8071 sed 's/^/| /' conftest.$ac_ext >&5
8072
8073         ac_cv_header_stdc=no
8074 fi
8075
8076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8077
8078 if test $ac_cv_header_stdc = yes; then
8079   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8080   cat >conftest.$ac_ext <<_ACEOF
8081 /* confdefs.h.  */
8082 _ACEOF
8083 cat confdefs.h >>conftest.$ac_ext
8084 cat >>conftest.$ac_ext <<_ACEOF
8085 /* end confdefs.h.  */
8086 #include <string.h>
8087
8088 _ACEOF
8089 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8090   $EGREP "memchr" >/dev/null 2>&1; then
8091   :
8092 else
8093   ac_cv_header_stdc=no
8094 fi
8095 rm -f conftest*
8096
8097 fi
8098
8099 if test $ac_cv_header_stdc = yes; then
8100   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8101   cat >conftest.$ac_ext <<_ACEOF
8102 /* confdefs.h.  */
8103 _ACEOF
8104 cat confdefs.h >>conftest.$ac_ext
8105 cat >>conftest.$ac_ext <<_ACEOF
8106 /* end confdefs.h.  */
8107 #include <stdlib.h>
8108
8109 _ACEOF
8110 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8111   $EGREP "free" >/dev/null 2>&1; then
8112   :
8113 else
8114   ac_cv_header_stdc=no
8115 fi
8116 rm -f conftest*
8117
8118 fi
8119
8120 if test $ac_cv_header_stdc = yes; then
8121   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8122   if test "$cross_compiling" = yes; then
8123   :
8124 else
8125   cat >conftest.$ac_ext <<_ACEOF
8126 /* confdefs.h.  */
8127 _ACEOF
8128 cat confdefs.h >>conftest.$ac_ext
8129 cat >>conftest.$ac_ext <<_ACEOF
8130 /* end confdefs.h.  */
8131 #include <ctype.h>
8132 #include <stdlib.h>
8133 #if ((' ' & 0x0FF) == 0x020)
8134 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8135 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8136 #else
8137 # define ISLOWER(c) \
8138                    (('a' <= (c) && (c) <= 'i') \
8139                      || ('j' <= (c) && (c) <= 'r') \
8140                      || ('s' <= (c) && (c) <= 'z'))
8141 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8142 #endif
8143
8144 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8145 int
8146 main ()
8147 {
8148   int i;
8149   for (i = 0; i < 256; i++)
8150     if (XOR (islower (i), ISLOWER (i))
8151         || toupper (i) != TOUPPER (i))
8152       return 2;
8153   return 0;
8154 }
8155 _ACEOF
8156 rm -f conftest$ac_exeext
8157 if { (ac_try="$ac_link"
8158 case "(($ac_try" in
8159   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8160   *) ac_try_echo=$ac_try;;
8161 esac
8162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8163   (eval "$ac_link") 2>&5
8164   ac_status=$?
8165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8166   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8167   { (case "(($ac_try" in
8168   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8169   *) ac_try_echo=$ac_try;;
8170 esac
8171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8172   (eval "$ac_try") 2>&5
8173   ac_status=$?
8174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8175   (exit $ac_status); }; }; then
8176   :
8177 else
8178   echo "$as_me: program exited with status $ac_status" >&5
8179 echo "$as_me: failed program was:" >&5
8180 sed 's/^/| /' conftest.$ac_ext >&5
8181
8182 ( exit $ac_status )
8183 ac_cv_header_stdc=no
8184 fi
8185 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8186 fi
8187
8188
8189 fi
8190 fi
8191 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8192 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
8193 if test $ac_cv_header_stdc = yes; then
8194
8195 cat >>confdefs.h <<\_ACEOF
8196 #define STDC_HEADERS 1
8197 _ACEOF
8198
8199 fi
8200
8201 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8202
8203
8204
8205
8206
8207
8208
8209
8210
8211 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8212                   inttypes.h stdint.h unistd.h
8213 do
8214 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8215 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8216 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8217 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8218   echo $ECHO_N "(cached) $ECHO_C" >&6
8219 else
8220   cat >conftest.$ac_ext <<_ACEOF
8221 /* confdefs.h.  */
8222 _ACEOF
8223 cat confdefs.h >>conftest.$ac_ext
8224 cat >>conftest.$ac_ext <<_ACEOF
8225 /* end confdefs.h.  */
8226 $ac_includes_default
8227
8228 #include <$ac_header>
8229 _ACEOF
8230 rm -f conftest.$ac_objext
8231 if { (ac_try="$ac_compile"
8232 case "(($ac_try" in
8233   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8234   *) ac_try_echo=$ac_try;;
8235 esac
8236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8237   (eval "$ac_compile") 2>conftest.er1
8238   ac_status=$?
8239   grep -v '^ *+' conftest.er1 >conftest.err
8240   rm -f conftest.er1
8241   cat conftest.err >&5
8242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8243   (exit $ac_status); } && {
8244          test -z "$ac_c_werror_flag" ||
8245          test ! -s conftest.err
8246        } && test -s conftest.$ac_objext; then
8247   eval "$as_ac_Header=yes"
8248 else
8249   echo "$as_me: failed program was:" >&5
8250 sed 's/^/| /' conftest.$ac_ext >&5
8251
8252         eval "$as_ac_Header=no"
8253 fi
8254
8255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8256 fi
8257 ac_res=`eval echo '${'$as_ac_Header'}'`
8258                { echo "$as_me:$LINENO: result: $ac_res" >&5
8259 echo "${ECHO_T}$ac_res" >&6; }
8260 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8261   cat >>confdefs.h <<_ACEOF
8262 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8263 _ACEOF
8264
8265 fi
8266
8267 done
8268
8269
8270
8271 for ac_header in dlfcn.h
8272 do
8273 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8274 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8275 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8276 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8277   echo $ECHO_N "(cached) $ECHO_C" >&6
8278 else
8279   cat >conftest.$ac_ext <<_ACEOF
8280 /* confdefs.h.  */
8281 _ACEOF
8282 cat confdefs.h >>conftest.$ac_ext
8283 cat >>conftest.$ac_ext <<_ACEOF
8284 /* end confdefs.h.  */
8285 $ac_includes_default
8286
8287 #include <$ac_header>
8288 _ACEOF
8289 rm -f conftest.$ac_objext
8290 if { (ac_try="$ac_compile"
8291 case "(($ac_try" in
8292   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8293   *) ac_try_echo=$ac_try;;
8294 esac
8295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8296   (eval "$ac_compile") 2>conftest.er1
8297   ac_status=$?
8298   grep -v '^ *+' conftest.er1 >conftest.err
8299   rm -f conftest.er1
8300   cat conftest.err >&5
8301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8302   (exit $ac_status); } && {
8303          test -z "$ac_c_werror_flag" ||
8304          test ! -s conftest.err
8305        } && test -s conftest.$ac_objext; then
8306   eval "$as_ac_Header=yes"
8307 else
8308   echo "$as_me: failed program was:" >&5
8309 sed 's/^/| /' conftest.$ac_ext >&5
8310
8311         eval "$as_ac_Header=no"
8312 fi
8313
8314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8315 fi
8316 ac_res=`eval echo '${'$as_ac_Header'}'`
8317                { echo "$as_me:$LINENO: result: $ac_res" >&5
8318 echo "${ECHO_T}$ac_res" >&6; }
8319 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8320   cat >>confdefs.h <<_ACEOF
8321 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8322 _ACEOF
8323
8324 fi
8325
8326 done
8327
8328
8329
8330 ac_ext=cpp
8331 ac_cpp='$CXXCPP $CPPFLAGS'
8332 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8333 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8334 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8335 if test -z "$CXX"; then
8336   if test -n "$CCC"; then
8337     CXX=$CCC
8338   else
8339     if test -n "$ac_tool_prefix"; then
8340   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
8341   do
8342     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8343 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8344 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8345 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8346 if test "${ac_cv_prog_CXX+set}" = set; then
8347   echo $ECHO_N "(cached) $ECHO_C" >&6
8348 else
8349   if test -n "$CXX"; then
8350   ac_cv_prog_CXX="$CXX" # Let the user override the test.
8351 else
8352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8353 for as_dir in $PATH
8354 do
8355   IFS=$as_save_IFS
8356   test -z "$as_dir" && as_dir=.
8357   for ac_exec_ext in '' $ac_executable_extensions; do
8358   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8359     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
8360     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8361     break 2
8362   fi
8363 done
8364 done
8365 IFS=$as_save_IFS
8366
8367 fi
8368 fi
8369 CXX=$ac_cv_prog_CXX
8370 if test -n "$CXX"; then
8371   { echo "$as_me:$LINENO: result: $CXX" >&5
8372 echo "${ECHO_T}$CXX" >&6; }
8373 else
8374   { echo "$as_me:$LINENO: result: no" >&5
8375 echo "${ECHO_T}no" >&6; }
8376 fi
8377
8378
8379     test -n "$CXX" && break
8380   done
8381 fi
8382 if test -z "$CXX"; then
8383   ac_ct_CXX=$CXX
8384   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
8385 do
8386   # Extract the first word of "$ac_prog", so it can be a program name with args.
8387 set dummy $ac_prog; ac_word=$2
8388 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8389 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8390 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
8391   echo $ECHO_N "(cached) $ECHO_C" >&6
8392 else
8393   if test -n "$ac_ct_CXX"; then
8394   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
8395 else
8396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8397 for as_dir in $PATH
8398 do
8399   IFS=$as_save_IFS
8400   test -z "$as_dir" && as_dir=.
8401   for ac_exec_ext in '' $ac_executable_extensions; do
8402   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8403     ac_cv_prog_ac_ct_CXX="$ac_prog"
8404     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8405     break 2
8406   fi
8407 done
8408 done
8409 IFS=$as_save_IFS
8410
8411 fi
8412 fi
8413 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
8414 if test -n "$ac_ct_CXX"; then
8415   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
8416 echo "${ECHO_T}$ac_ct_CXX" >&6; }
8417 else
8418   { echo "$as_me:$LINENO: result: no" >&5
8419 echo "${ECHO_T}no" >&6; }
8420 fi
8421
8422
8423   test -n "$ac_ct_CXX" && break
8424 done
8425
8426   if test "x$ac_ct_CXX" = x; then
8427     CXX="g++"
8428   else
8429     case $cross_compiling:$ac_tool_warned in
8430 yes:)
8431 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8432 whose name does not start with the host triplet.  If you think this
8433 configuration is useful to you, please write to autoconf@gnu.org." >&5
8434 echo "$as_me: 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." >&2;}
8437 ac_tool_warned=yes ;;
8438 esac
8439     CXX=$ac_ct_CXX
8440   fi
8441 fi
8442
8443   fi
8444 fi
8445 # Provide some information about the compiler.
8446 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
8447 ac_compiler=`set X $ac_compile; echo $2`
8448 { (ac_try="$ac_compiler --version >&5"
8449 case "(($ac_try" in
8450   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8451   *) ac_try_echo=$ac_try;;
8452 esac
8453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8454   (eval "$ac_compiler --version >&5") 2>&5
8455   ac_status=$?
8456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8457   (exit $ac_status); }
8458 { (ac_try="$ac_compiler -v >&5"
8459 case "(($ac_try" in
8460   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8461   *) ac_try_echo=$ac_try;;
8462 esac
8463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8464   (eval "$ac_compiler -v >&5") 2>&5
8465   ac_status=$?
8466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8467   (exit $ac_status); }
8468 { (ac_try="$ac_compiler -V >&5"
8469 case "(($ac_try" in
8470   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8471   *) ac_try_echo=$ac_try;;
8472 esac
8473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8474   (eval "$ac_compiler -V >&5") 2>&5
8475   ac_status=$?
8476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8477   (exit $ac_status); }
8478
8479 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
8480 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
8481 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
8482   echo $ECHO_N "(cached) $ECHO_C" >&6
8483 else
8484   cat >conftest.$ac_ext <<_ACEOF
8485 /* confdefs.h.  */
8486 _ACEOF
8487 cat confdefs.h >>conftest.$ac_ext
8488 cat >>conftest.$ac_ext <<_ACEOF
8489 /* end confdefs.h.  */
8490
8491 int
8492 main ()
8493 {
8494 #ifndef __GNUC__
8495        choke me
8496 #endif
8497
8498   ;
8499   return 0;
8500 }
8501 _ACEOF
8502 rm -f conftest.$ac_objext
8503 if { (ac_try="$ac_compile"
8504 case "(($ac_try" in
8505   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8506   *) ac_try_echo=$ac_try;;
8507 esac
8508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8509   (eval "$ac_compile") 2>conftest.er1
8510   ac_status=$?
8511   grep -v '^ *+' conftest.er1 >conftest.err
8512   rm -f conftest.er1
8513   cat conftest.err >&5
8514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8515   (exit $ac_status); } && {
8516          test -z "$ac_cxx_werror_flag" ||
8517          test ! -s conftest.err
8518        } && test -s conftest.$ac_objext; then
8519   ac_compiler_gnu=yes
8520 else
8521   echo "$as_me: failed program was:" >&5
8522 sed 's/^/| /' conftest.$ac_ext >&5
8523
8524         ac_compiler_gnu=no
8525 fi
8526
8527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8528 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
8529
8530 fi
8531 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
8532 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
8533 GXX=`test $ac_compiler_gnu = yes && echo yes`
8534 ac_test_CXXFLAGS=${CXXFLAGS+set}
8535 ac_save_CXXFLAGS=$CXXFLAGS
8536 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
8537 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
8538 if test "${ac_cv_prog_cxx_g+set}" = set; then
8539   echo $ECHO_N "(cached) $ECHO_C" >&6
8540 else
8541   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
8542    ac_cxx_werror_flag=yes
8543    ac_cv_prog_cxx_g=no
8544    CXXFLAGS="-g"
8545    cat >conftest.$ac_ext <<_ACEOF
8546 /* confdefs.h.  */
8547 _ACEOF
8548 cat confdefs.h >>conftest.$ac_ext
8549 cat >>conftest.$ac_ext <<_ACEOF
8550 /* end confdefs.h.  */
8551
8552 int
8553 main ()
8554 {
8555
8556   ;
8557   return 0;
8558 }
8559 _ACEOF
8560 rm -f conftest.$ac_objext
8561 if { (ac_try="$ac_compile"
8562 case "(($ac_try" in
8563   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8564   *) ac_try_echo=$ac_try;;
8565 esac
8566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8567   (eval "$ac_compile") 2>conftest.er1
8568   ac_status=$?
8569   grep -v '^ *+' conftest.er1 >conftest.err
8570   rm -f conftest.er1
8571   cat conftest.err >&5
8572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8573   (exit $ac_status); } && {
8574          test -z "$ac_cxx_werror_flag" ||
8575          test ! -s conftest.err
8576        } && test -s conftest.$ac_objext; then
8577   ac_cv_prog_cxx_g=yes
8578 else
8579   echo "$as_me: failed program was:" >&5
8580 sed 's/^/| /' conftest.$ac_ext >&5
8581
8582         CXXFLAGS=""
8583       cat >conftest.$ac_ext <<_ACEOF
8584 /* confdefs.h.  */
8585 _ACEOF
8586 cat confdefs.h >>conftest.$ac_ext
8587 cat >>conftest.$ac_ext <<_ACEOF
8588 /* end confdefs.h.  */
8589
8590 int
8591 main ()
8592 {
8593
8594   ;
8595   return 0;
8596 }
8597 _ACEOF
8598 rm -f conftest.$ac_objext
8599 if { (ac_try="$ac_compile"
8600 case "(($ac_try" in
8601   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8602   *) ac_try_echo=$ac_try;;
8603 esac
8604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8605   (eval "$ac_compile") 2>conftest.er1
8606   ac_status=$?
8607   grep -v '^ *+' conftest.er1 >conftest.err
8608   rm -f conftest.er1
8609   cat conftest.err >&5
8610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8611   (exit $ac_status); } && {
8612          test -z "$ac_cxx_werror_flag" ||
8613          test ! -s conftest.err
8614        } && test -s conftest.$ac_objext; then
8615   :
8616 else
8617   echo "$as_me: failed program was:" >&5
8618 sed 's/^/| /' conftest.$ac_ext >&5
8619
8620         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8621          CXXFLAGS="-g"
8622          cat >conftest.$ac_ext <<_ACEOF
8623 /* confdefs.h.  */
8624 _ACEOF
8625 cat confdefs.h >>conftest.$ac_ext
8626 cat >>conftest.$ac_ext <<_ACEOF
8627 /* end confdefs.h.  */
8628
8629 int
8630 main ()
8631 {
8632
8633   ;
8634   return 0;
8635 }
8636 _ACEOF
8637 rm -f conftest.$ac_objext
8638 if { (ac_try="$ac_compile"
8639 case "(($ac_try" in
8640   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8641   *) ac_try_echo=$ac_try;;
8642 esac
8643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8644   (eval "$ac_compile") 2>conftest.er1
8645   ac_status=$?
8646   grep -v '^ *+' conftest.er1 >conftest.err
8647   rm -f conftest.er1
8648   cat conftest.err >&5
8649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8650   (exit $ac_status); } && {
8651          test -z "$ac_cxx_werror_flag" ||
8652          test ! -s conftest.err
8653        } && test -s conftest.$ac_objext; then
8654   ac_cv_prog_cxx_g=yes
8655 else
8656   echo "$as_me: failed program was:" >&5
8657 sed 's/^/| /' conftest.$ac_ext >&5
8658
8659
8660 fi
8661
8662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
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    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8670 fi
8671 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
8672 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
8673 if test "$ac_test_CXXFLAGS" = set; then
8674   CXXFLAGS=$ac_save_CXXFLAGS
8675 elif test $ac_cv_prog_cxx_g = yes; then
8676   if test "$GXX" = yes; then
8677     CXXFLAGS="-g -O2"
8678   else
8679     CXXFLAGS="-g"
8680   fi
8681 else
8682   if test "$GXX" = yes; then
8683     CXXFLAGS="-O2"
8684   else
8685     CXXFLAGS=
8686   fi
8687 fi
8688 ac_ext=c
8689 ac_cpp='$CPP $CPPFLAGS'
8690 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8691 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8692 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8693
8694 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
8695     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
8696     (test "X$CXX" != "Xg++"))) ; then
8697   ac_ext=cpp
8698 ac_cpp='$CXXCPP $CPPFLAGS'
8699 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8700 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8701 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8702 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
8703 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
8704 if test -z "$CXXCPP"; then
8705   if test "${ac_cv_prog_CXXCPP+set}" = set; then
8706   echo $ECHO_N "(cached) $ECHO_C" >&6
8707 else
8708       # Double quotes because CXXCPP needs to be expanded
8709     for CXXCPP in "$CXX -E" "/lib/cpp"
8710     do
8711       ac_preproc_ok=false
8712 for ac_cxx_preproc_warn_flag in '' yes
8713 do
8714   # Use a header file that comes with gcc, so configuring glibc
8715   # with a fresh cross-compiler works.
8716   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8717   # <limits.h> exists even on freestanding compilers.
8718   # On the NeXT, cc -E runs the code through the compiler's parser,
8719   # not just through cpp. "Syntax error" is here to catch this case.
8720   cat >conftest.$ac_ext <<_ACEOF
8721 /* confdefs.h.  */
8722 _ACEOF
8723 cat confdefs.h >>conftest.$ac_ext
8724 cat >>conftest.$ac_ext <<_ACEOF
8725 /* end confdefs.h.  */
8726 #ifdef __STDC__
8727 # include <limits.h>
8728 #else
8729 # include <assert.h>
8730 #endif
8731                      Syntax error
8732 _ACEOF
8733 if { (ac_try="$ac_cpp conftest.$ac_ext"
8734 case "(($ac_try" in
8735   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8736   *) ac_try_echo=$ac_try;;
8737 esac
8738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8739   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8740   ac_status=$?
8741   grep -v '^ *+' conftest.er1 >conftest.err
8742   rm -f conftest.er1
8743   cat conftest.err >&5
8744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8745   (exit $ac_status); } >/dev/null && {
8746          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8747          test ! -s conftest.err
8748        }; then
8749   :
8750 else
8751   echo "$as_me: failed program was:" >&5
8752 sed 's/^/| /' conftest.$ac_ext >&5
8753
8754   # Broken: fails on valid input.
8755 continue
8756 fi
8757
8758 rm -f conftest.err conftest.$ac_ext
8759
8760   # OK, works on sane cases.  Now check whether nonexistent headers
8761   # can be detected and how.
8762   cat >conftest.$ac_ext <<_ACEOF
8763 /* confdefs.h.  */
8764 _ACEOF
8765 cat confdefs.h >>conftest.$ac_ext
8766 cat >>conftest.$ac_ext <<_ACEOF
8767 /* end confdefs.h.  */
8768 #include <ac_nonexistent.h>
8769 _ACEOF
8770 if { (ac_try="$ac_cpp conftest.$ac_ext"
8771 case "(($ac_try" in
8772   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8773   *) ac_try_echo=$ac_try;;
8774 esac
8775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8776   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8777   ac_status=$?
8778   grep -v '^ *+' conftest.er1 >conftest.err
8779   rm -f conftest.er1
8780   cat conftest.err >&5
8781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8782   (exit $ac_status); } >/dev/null && {
8783          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8784          test ! -s conftest.err
8785        }; then
8786   # Broken: success on invalid input.
8787 continue
8788 else
8789   echo "$as_me: failed program was:" >&5
8790 sed 's/^/| /' conftest.$ac_ext >&5
8791
8792   # Passes both tests.
8793 ac_preproc_ok=:
8794 break
8795 fi
8796
8797 rm -f conftest.err conftest.$ac_ext
8798
8799 done
8800 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8801 rm -f conftest.err conftest.$ac_ext
8802 if $ac_preproc_ok; then
8803   break
8804 fi
8805
8806     done
8807     ac_cv_prog_CXXCPP=$CXXCPP
8808
8809 fi
8810   CXXCPP=$ac_cv_prog_CXXCPP
8811 else
8812   ac_cv_prog_CXXCPP=$CXXCPP
8813 fi
8814 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
8815 echo "${ECHO_T}$CXXCPP" >&6; }
8816 ac_preproc_ok=false
8817 for ac_cxx_preproc_warn_flag in '' yes
8818 do
8819   # Use a header file that comes with gcc, so configuring glibc
8820   # with a fresh cross-compiler works.
8821   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8822   # <limits.h> exists even on freestanding compilers.
8823   # On the NeXT, cc -E runs the code through the compiler's parser,
8824   # not just through cpp. "Syntax error" is here to catch this case.
8825   cat >conftest.$ac_ext <<_ACEOF
8826 /* confdefs.h.  */
8827 _ACEOF
8828 cat confdefs.h >>conftest.$ac_ext
8829 cat >>conftest.$ac_ext <<_ACEOF
8830 /* end confdefs.h.  */
8831 #ifdef __STDC__
8832 # include <limits.h>
8833 #else
8834 # include <assert.h>
8835 #endif
8836                      Syntax error
8837 _ACEOF
8838 if { (ac_try="$ac_cpp conftest.$ac_ext"
8839 case "(($ac_try" in
8840   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8841   *) ac_try_echo=$ac_try;;
8842 esac
8843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8844   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8845   ac_status=$?
8846   grep -v '^ *+' conftest.er1 >conftest.err
8847   rm -f conftest.er1
8848   cat conftest.err >&5
8849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8850   (exit $ac_status); } >/dev/null && {
8851          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8852          test ! -s conftest.err
8853        }; then
8854   :
8855 else
8856   echo "$as_me: failed program was:" >&5
8857 sed 's/^/| /' conftest.$ac_ext >&5
8858
8859   # Broken: fails on valid input.
8860 continue
8861 fi
8862
8863 rm -f conftest.err conftest.$ac_ext
8864
8865   # OK, works on sane cases.  Now check whether nonexistent headers
8866   # can be detected and how.
8867   cat >conftest.$ac_ext <<_ACEOF
8868 /* confdefs.h.  */
8869 _ACEOF
8870 cat confdefs.h >>conftest.$ac_ext
8871 cat >>conftest.$ac_ext <<_ACEOF
8872 /* end confdefs.h.  */
8873 #include <ac_nonexistent.h>
8874 _ACEOF
8875 if { (ac_try="$ac_cpp conftest.$ac_ext"
8876 case "(($ac_try" in
8877   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8878   *) ac_try_echo=$ac_try;;
8879 esac
8880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8881   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8882   ac_status=$?
8883   grep -v '^ *+' conftest.er1 >conftest.err
8884   rm -f conftest.er1
8885   cat conftest.err >&5
8886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8887   (exit $ac_status); } >/dev/null && {
8888          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8889          test ! -s conftest.err
8890        }; then
8891   # Broken: success on invalid input.
8892 continue
8893 else
8894   echo "$as_me: failed program was:" >&5
8895 sed 's/^/| /' conftest.$ac_ext >&5
8896
8897   # Passes both tests.
8898 ac_preproc_ok=:
8899 break
8900 fi
8901
8902 rm -f conftest.err conftest.$ac_ext
8903
8904 done
8905 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8906 rm -f conftest.err conftest.$ac_ext
8907 if $ac_preproc_ok; then
8908   :
8909 else
8910   _lt_caught_CXX_error=yes
8911 fi
8912
8913 ac_ext=c
8914 ac_cpp='$CPP $CPPFLAGS'
8915 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8916 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8917 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8918
8919 else
8920   _lt_caught_CXX_error=yes
8921 fi
8922
8923
8924
8925
8926
8927 # Set options
8928 # Check whether --enable-shared was given.
8929 if test "${enable_shared+set}" = set; then
8930   enableval=$enable_shared; p=${PACKAGE-default}
8931     case $enableval in
8932     yes) enable_shared=yes ;;
8933     no) enable_shared=no ;;
8934     *)
8935       enable_shared=no
8936       # Look at the argument we got.  We use all the common list separators.
8937       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8938       for pkg in $enableval; do
8939         IFS="$lt_save_ifs"
8940         if test "X$pkg" = "X$p"; then
8941           enable_shared=yes
8942         fi
8943       done
8944       IFS="$lt_save_ifs"
8945       ;;
8946     esac
8947 else
8948   enable_shared=yes
8949 fi
8950
8951
8952
8953
8954
8955
8956
8957 # Check whether --enable-static was given.
8958 if test "${enable_static+set}" = set; then
8959   enableval=$enable_static; p=${PACKAGE-default}
8960     case $enableval in
8961     yes) enable_static=yes ;;
8962     no) enable_static=no ;;
8963     *)
8964      enable_static=no
8965       # Look at the argument we got.  We use all the common list separators.
8966       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8967       for pkg in $enableval; do
8968         IFS="$lt_save_ifs"
8969         if test "X$pkg" = "X$p"; then
8970           enable_static=yes
8971         fi
8972       done
8973       IFS="$lt_save_ifs"
8974       ;;
8975     esac
8976 else
8977   enable_static=no
8978 fi
8979
8980
8981
8982
8983
8984
8985
8986
8987
8988
8989         enable_dlopen=no
8990
8991
8992   enable_win32_dll=no
8993
8994
8995
8996
8997
8998 # Check whether --with-pic was given.
8999 if test "${with_pic+set}" = set; then
9000   withval=$with_pic; pic_mode="$withval"
9001 else
9002   pic_mode=default
9003 fi
9004
9005
9006 test -z "$pic_mode" && pic_mode=default
9007
9008
9009
9010
9011
9012
9013
9014   # Check whether --enable-fast-install was given.
9015 if test "${enable_fast_install+set}" = set; then
9016   enableval=$enable_fast_install; p=${PACKAGE-default}
9017     case $enableval in
9018     yes) enable_fast_install=yes ;;
9019     no) enable_fast_install=no ;;
9020     *)
9021       enable_fast_install=no
9022       # Look at the argument we got.  We use all the common list separators.
9023       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9024       for pkg in $enableval; do
9025         IFS="$lt_save_ifs"
9026         if test "X$pkg" = "X$p"; then
9027           enable_fast_install=yes
9028         fi
9029       done
9030       IFS="$lt_save_ifs"
9031       ;;
9032     esac
9033 else
9034   enable_fast_install=yes
9035 fi
9036
9037
9038
9039
9040
9041
9042
9043
9044
9045
9046
9047 # This can be used to rebuild libtool when needed
9048 LIBTOOL_DEPS="$ltmain"
9049
9050 # Always use our own libtool.
9051 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9052
9053
9054
9055
9056
9057
9058
9059
9060
9061
9062
9063
9064
9065
9066
9067
9068
9069
9070
9071
9072
9073
9074
9075
9076
9077 test -z "$LN_S" && LN_S="ln -s"
9078
9079
9080
9081
9082
9083
9084
9085
9086
9087
9088
9089
9090
9091
9092 if test -n "${ZSH_VERSION+set}" ; then
9093    setopt NO_GLOB_SUBST
9094 fi
9095
9096 { echo "$as_me:$LINENO: checking for objdir" >&5
9097 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9098 if test "${lt_cv_objdir+set}" = set; then
9099   echo $ECHO_N "(cached) $ECHO_C" >&6
9100 else
9101   rm -f .libs 2>/dev/null
9102 mkdir .libs 2>/dev/null
9103 if test -d .libs; then
9104   lt_cv_objdir=.libs
9105 else
9106   # MS-DOS does not allow filenames that begin with a dot.
9107   lt_cv_objdir=_libs
9108 fi
9109 rmdir .libs 2>/dev/null
9110 fi
9111 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
9112 echo "${ECHO_T}$lt_cv_objdir" >&6; }
9113 objdir=$lt_cv_objdir
9114
9115
9116
9117
9118
9119 cat >>confdefs.h <<_ACEOF
9120 #define LT_OBJDIR "$lt_cv_objdir/"
9121 _ACEOF
9122
9123
9124
9125
9126
9127
9128
9129
9130
9131
9132
9133
9134
9135
9136
9137
9138
9139 case $host_os in
9140 aix3*)
9141   # AIX sometimes has problems with the GCC collect2 program.  For some
9142   # reason, if we set the COLLECT_NAMES environment variable, the problems
9143   # vanish in a puff of smoke.
9144   if test "X${COLLECT_NAMES+set}" != Xset; then
9145     COLLECT_NAMES=
9146     export COLLECT_NAMES
9147   fi
9148   ;;
9149 esac
9150
9151 # Sed substitution that helps us do robust quoting.  It backslashifies
9152 # metacharacters that are still active within double-quoted strings.
9153 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
9154
9155 # Same as above, but do not quote variable references.
9156 double_quote_subst='s/\(["`\\]\)/\\\1/g'
9157
9158 # Sed substitution to delay expansion of an escaped shell variable in a
9159 # double_quote_subst'ed string.
9160 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9161
9162 # Sed substitution to delay expansion of an escaped single quote.
9163 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
9164
9165 # Sed substitution to avoid accidental globbing in evaled expressions
9166 no_glob_subst='s/\*/\\\*/g'
9167
9168 # Global variables:
9169 ofile=libtool
9170 can_build_shared=yes
9171
9172 # All known linkers require a `.a' archive for static linking (except MSVC,
9173 # which needs '.lib').
9174 libext=a
9175
9176 with_gnu_ld="$lt_cv_prog_gnu_ld"
9177
9178 old_CC="$CC"
9179 old_CFLAGS="$CFLAGS"
9180
9181 # Set sane defaults for various variables
9182 test -z "$CC" && CC=cc
9183 test -z "$LTCC" && LTCC=$CC
9184 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9185 test -z "$LD" && LD=ld
9186 test -z "$ac_objext" && ac_objext=o
9187
9188 for cc_temp in $compiler""; do
9189   case $cc_temp in
9190     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9191     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9192     \-*) ;;
9193     *) break;;
9194   esac
9195 done
9196 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9197
9198
9199 # Only perform the check for file, if the check method requires it
9200 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9201 case $deplibs_check_method in
9202 file_magic*)
9203   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9204     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
9205 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
9206 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9207   echo $ECHO_N "(cached) $ECHO_C" >&6
9208 else
9209   case $MAGIC_CMD in
9210 [\\/*] |  ?:[\\/]*)
9211   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9212   ;;
9213 *)
9214   lt_save_MAGIC_CMD="$MAGIC_CMD"
9215   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9216   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9217   for ac_dir in $ac_dummy; do
9218     IFS="$lt_save_ifs"
9219     test -z "$ac_dir" && ac_dir=.
9220     if test -f $ac_dir/${ac_tool_prefix}file; then
9221       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9222       if test -n "$file_magic_test_file"; then
9223         case $deplibs_check_method in
9224         "file_magic "*)
9225           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9226           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9227           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9228             $EGREP "$file_magic_regex" > /dev/null; then
9229             :
9230           else
9231             cat <<_LT_EOF 1>&2
9232
9233 *** Warning: the command libtool uses to detect shared libraries,
9234 *** $file_magic_cmd, produces output that libtool cannot recognize.
9235 *** The result is that libtool may fail to recognize shared libraries
9236 *** as such.  This will affect the creation of libtool libraries that
9237 *** depend on shared libraries, but programs linked with such libtool
9238 *** libraries will work regardless of this problem.  Nevertheless, you
9239 *** may want to report the problem to your system manager and/or to
9240 *** bug-libtool@gnu.org
9241
9242 _LT_EOF
9243           fi ;;
9244         esac
9245       fi
9246       break
9247     fi
9248   done
9249   IFS="$lt_save_ifs"
9250   MAGIC_CMD="$lt_save_MAGIC_CMD"
9251   ;;
9252 esac
9253 fi
9254
9255 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9256 if test -n "$MAGIC_CMD"; then
9257   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9258 echo "${ECHO_T}$MAGIC_CMD" >&6; }
9259 else
9260   { echo "$as_me:$LINENO: result: no" >&5
9261 echo "${ECHO_T}no" >&6; }
9262 fi
9263
9264
9265
9266
9267
9268 if test -z "$lt_cv_path_MAGIC_CMD"; then
9269   if test -n "$ac_tool_prefix"; then
9270     { echo "$as_me:$LINENO: checking for file" >&5
9271 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
9272 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9273   echo $ECHO_N "(cached) $ECHO_C" >&6
9274 else
9275   case $MAGIC_CMD in
9276 [\\/*] |  ?:[\\/]*)
9277   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9278   ;;
9279 *)
9280   lt_save_MAGIC_CMD="$MAGIC_CMD"
9281   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9282   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9283   for ac_dir in $ac_dummy; do
9284     IFS="$lt_save_ifs"
9285     test -z "$ac_dir" && ac_dir=.
9286     if test -f $ac_dir/file; then
9287       lt_cv_path_MAGIC_CMD="$ac_dir/file"
9288       if test -n "$file_magic_test_file"; then
9289         case $deplibs_check_method in
9290         "file_magic "*)
9291           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9292           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9293           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9294             $EGREP "$file_magic_regex" > /dev/null; then
9295             :
9296           else
9297             cat <<_LT_EOF 1>&2
9298
9299 *** Warning: the command libtool uses to detect shared libraries,
9300 *** $file_magic_cmd, produces output that libtool cannot recognize.
9301 *** The result is that libtool may fail to recognize shared libraries
9302 *** as such.  This will affect the creation of libtool libraries that
9303 *** depend on shared libraries, but programs linked with such libtool
9304 *** libraries will work regardless of this problem.  Nevertheless, you
9305 *** may want to report the problem to your system manager and/or to
9306 *** bug-libtool@gnu.org
9307
9308 _LT_EOF
9309           fi ;;
9310         esac
9311       fi
9312       break
9313     fi
9314   done
9315   IFS="$lt_save_ifs"
9316   MAGIC_CMD="$lt_save_MAGIC_CMD"
9317   ;;
9318 esac
9319 fi
9320
9321 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9322 if test -n "$MAGIC_CMD"; then
9323   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9324 echo "${ECHO_T}$MAGIC_CMD" >&6; }
9325 else
9326   { echo "$as_me:$LINENO: result: no" >&5
9327 echo "${ECHO_T}no" >&6; }
9328 fi
9329
9330
9331   else
9332     MAGIC_CMD=:
9333   fi
9334 fi
9335
9336   fi
9337   ;;
9338 esac
9339
9340 # Use C for the default configuration in the libtool script
9341
9342 lt_save_CC="$CC"
9343 ac_ext=c
9344 ac_cpp='$CPP $CPPFLAGS'
9345 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9346 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9347 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9348
9349
9350 # Source file extension for C test sources.
9351 ac_ext=c
9352
9353 # Object file extension for compiled C test sources.
9354 objext=o
9355 objext=$objext
9356
9357 # Code to be used in simple compile tests
9358 lt_simple_compile_test_code="int some_variable = 0;"
9359
9360 # Code to be used in simple link tests
9361 lt_simple_link_test_code='int main(){return(0);}'
9362
9363
9364
9365
9366
9367
9368
9369 # If no C compiler was specified, use CC.
9370 LTCC=${LTCC-"$CC"}
9371
9372 # If no C compiler flags were specified, use CFLAGS.
9373 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9374
9375 # Allow CC to be a program name with arguments.
9376 compiler=$CC
9377
9378 # Save the default compiler, since it gets overwritten when the other
9379 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9380 compiler_DEFAULT=$CC
9381
9382 # save warnings/boilerplate of simple test code
9383 ac_outfile=conftest.$ac_objext
9384 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9385 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9386 _lt_compiler_boilerplate=`cat conftest.err`
9387 $RM conftest*
9388
9389 ac_outfile=conftest.$ac_objext
9390 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9391 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9392 _lt_linker_boilerplate=`cat conftest.err`
9393 $RM -r conftest*
9394
9395
9396 ## CAVEAT EMPTOR:
9397 ## There is no encapsulation within the following macros, do not change
9398 ## the running order or otherwise move them around unless you know exactly
9399 ## what you are doing...
9400 if test -n "$compiler"; then
9401
9402 lt_prog_compiler_no_builtin_flag=
9403
9404 if test "$GCC" = yes; then
9405   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
9406
9407   { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9408 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
9409 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
9410   echo $ECHO_N "(cached) $ECHO_C" >&6
9411 else
9412   lt_cv_prog_compiler_rtti_exceptions=no
9413    ac_outfile=conftest.$ac_objext
9414    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9415    lt_compiler_flag="-fno-rtti -fno-exceptions"
9416    # Insert the option either (1) after the last *FLAGS variable, or
9417    # (2) before a word containing "conftest.", or (3) at the end.
9418    # Note that $ac_compile itself does not contain backslashes and begins
9419    # with a dollar sign (not a hyphen), so the echo should work correctly.
9420    # The option is referenced via a variable to avoid confusing sed.
9421    lt_compile=`echo "$ac_compile" | $SED \
9422    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9423    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9424    -e 's:$: $lt_compiler_flag:'`
9425    (eval echo "\"\$as_me:9425: $lt_compile\"" >&5)
9426    (eval "$lt_compile" 2>conftest.err)
9427    ac_status=$?
9428    cat conftest.err >&5
9429    echo "$as_me:9429: \$? = $ac_status" >&5
9430    if (exit $ac_status) && test -s "$ac_outfile"; then
9431      # The compiler can only warn and ignore the option if not recognized
9432      # So say no if there are warnings other than the usual output.
9433      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9434      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9435      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9436        lt_cv_prog_compiler_rtti_exceptions=yes
9437      fi
9438    fi
9439    $RM conftest*
9440
9441 fi
9442 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9443 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9444
9445 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9446     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9447 else
9448     :
9449 fi
9450
9451 fi
9452
9453
9454
9455
9456
9457
9458   lt_prog_compiler_wl=
9459 lt_prog_compiler_pic=
9460 lt_prog_compiler_static=
9461
9462 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
9463 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
9464
9465   if test "$GCC" = yes; then
9466     lt_prog_compiler_wl='-Wl,'
9467     lt_prog_compiler_static='-static'
9468
9469     case $host_os in
9470       aix*)
9471       # All AIX code is PIC.
9472       if test "$host_cpu" = ia64; then
9473         # AIX 5 now supports IA64 processor
9474         lt_prog_compiler_static='-Bstatic'
9475       fi
9476       ;;
9477
9478     amigaos*)
9479       case $host_cpu in
9480       powerpc)
9481             # see comment about AmigaOS4 .so support
9482             lt_prog_compiler_pic='-fPIC'
9483         ;;
9484       m68k)
9485             # FIXME: we need at least 68020 code to build shared libraries, but
9486             # adding the `-m68020' flag to GCC prevents building anything better,
9487             # like `-m68040'.
9488             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9489         ;;
9490       esac
9491       ;;
9492
9493     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9494       # PIC is the default for these OSes.
9495       ;;
9496
9497     mingw* | cygwin* | pw32* | os2* | cegcc*)
9498       # This hack is so that the source file can tell whether it is being
9499       # built for inclusion in a dll (and should export symbols for example).
9500       # Although the cygwin gcc ignores -fPIC, still need this for old-style
9501       # (--disable-auto-import) libraries
9502       lt_prog_compiler_pic='-DDLL_EXPORT'
9503       ;;
9504
9505     darwin* | rhapsody*)
9506       # PIC is the default on this platform
9507       # Common symbols not allowed in MH_DYLIB files
9508       lt_prog_compiler_pic='-fno-common'
9509       ;;
9510
9511     hpux*)
9512       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9513       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9514       # sets the default TLS model and affects inlining.
9515       case $host_cpu in
9516       hppa*64*)
9517         # +Z the default
9518         ;;
9519       *)
9520         lt_prog_compiler_pic='-fPIC'
9521         ;;
9522       esac
9523       ;;
9524
9525     interix[3-9]*)
9526       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9527       # Instead, we relocate shared libraries at runtime.
9528       ;;
9529
9530     msdosdjgpp*)
9531       # Just because we use GCC doesn't mean we suddenly get shared libraries
9532       # on systems that don't support them.
9533       lt_prog_compiler_can_build_shared=no
9534       enable_shared=no
9535       ;;
9536
9537     *nto* | *qnx*)
9538       # QNX uses GNU C++, but need to define -shared option too, otherwise
9539       # it will coredump.
9540       lt_prog_compiler_pic='-fPIC -shared'
9541       ;;
9542
9543     sysv4*MP*)
9544       if test -d /usr/nec; then
9545         lt_prog_compiler_pic=-Kconform_pic
9546       fi
9547       ;;
9548
9549     *)
9550       lt_prog_compiler_pic='-fPIC'
9551       ;;
9552     esac
9553   else
9554     # PORTME Check for flag to pass linker flags through the system compiler.
9555     case $host_os in
9556     aix*)
9557       lt_prog_compiler_wl='-Wl,'
9558       if test "$host_cpu" = ia64; then
9559         # AIX 5 now supports IA64 processor
9560         lt_prog_compiler_static='-Bstatic'
9561       else
9562         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9563       fi
9564       ;;
9565
9566     mingw* | cygwin* | pw32* | os2* | cegcc*)
9567       # This hack is so that the source file can tell whether it is being
9568       # built for inclusion in a dll (and should export symbols for example).
9569       lt_prog_compiler_pic='-DDLL_EXPORT'
9570       ;;
9571
9572     hpux9* | hpux10* | hpux11*)
9573       lt_prog_compiler_wl='-Wl,'
9574       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9575       # not for PA HP-UX.
9576       case $host_cpu in
9577       hppa*64*|ia64*)
9578         # +Z the default
9579         ;;
9580       *)
9581         lt_prog_compiler_pic='+Z'
9582         ;;
9583       esac
9584       # Is there a better lt_prog_compiler_static that works with the bundled CC?
9585       lt_prog_compiler_static='${wl}-a ${wl}archive'
9586       ;;
9587
9588     irix5* | irix6* | nonstopux*)
9589       lt_prog_compiler_wl='-Wl,'
9590       # PIC (with -KPIC) is the default.
9591       lt_prog_compiler_static='-non_shared'
9592       ;;
9593
9594     linux* | k*bsd*-gnu)
9595       case $cc_basename in
9596       # old Intel for x86_64 which still supported -KPIC.
9597       ecc*)
9598         lt_prog_compiler_wl='-Wl,'
9599         lt_prog_compiler_pic='-KPIC'
9600         lt_prog_compiler_static='-static'
9601         ;;
9602       # icc used to be incompatible with GCC.
9603       # ICC 10 doesn't accept -KPIC any more.
9604       icc* | ifort*)
9605         lt_prog_compiler_wl='-Wl,'
9606         lt_prog_compiler_pic='-fPIC'
9607         lt_prog_compiler_static='-static'
9608         ;;
9609       # Lahey Fortran 8.1.
9610       lf95*)
9611         lt_prog_compiler_wl='-Wl,'
9612         lt_prog_compiler_pic='--shared'
9613         lt_prog_compiler_static='--static'
9614         ;;
9615       pgcc* | pgf77* | pgf90* | pgf95*)
9616         # Portland Group compilers (*not* the Pentium gcc compiler,
9617         # which looks to be a dead project)
9618         lt_prog_compiler_wl='-Wl,'
9619         lt_prog_compiler_pic='-fpic'
9620         lt_prog_compiler_static='-Bstatic'
9621         ;;
9622       ccc*)
9623         lt_prog_compiler_wl='-Wl,'
9624         # All Alpha code is PIC.
9625         lt_prog_compiler_static='-non_shared'
9626         ;;
9627       xl*)
9628         # IBM XL C 8.0/Fortran 10.1 on PPC
9629         lt_prog_compiler_wl='-Wl,'
9630         lt_prog_compiler_pic='-qpic'
9631         lt_prog_compiler_static='-qstaticlink'
9632         ;;
9633       *)
9634         case `$CC -V 2>&1 | sed 5q` in
9635         *Sun\ C*)
9636           # Sun C 5.9
9637           lt_prog_compiler_pic='-KPIC'
9638           lt_prog_compiler_static='-Bstatic'
9639           lt_prog_compiler_wl='-Wl,'
9640           ;;
9641         *Sun\ F*)
9642           # Sun Fortran 8.3 passes all unrecognized flags to the linker
9643           lt_prog_compiler_pic='-KPIC'
9644           lt_prog_compiler_static='-Bstatic'
9645           lt_prog_compiler_wl=''
9646           ;;
9647         esac
9648         ;;
9649       esac
9650       ;;
9651
9652     newsos6)
9653       lt_prog_compiler_pic='-KPIC'
9654       lt_prog_compiler_static='-Bstatic'
9655       ;;
9656
9657     *nto* | *qnx*)
9658       # QNX uses GNU C++, but need to define -shared option too, otherwise
9659       # it will coredump.
9660       lt_prog_compiler_pic='-fPIC -shared'
9661       ;;
9662
9663     osf3* | osf4* | osf5*)
9664       lt_prog_compiler_wl='-Wl,'
9665       # All OSF/1 code is PIC.
9666       lt_prog_compiler_static='-non_shared'
9667       ;;
9668
9669     rdos*)
9670       lt_prog_compiler_static='-non_shared'
9671       ;;
9672
9673     solaris*)
9674       lt_prog_compiler_pic='-KPIC'
9675       lt_prog_compiler_static='-Bstatic'
9676       case $cc_basename in
9677       f77* | f90* | f95*)
9678         lt_prog_compiler_wl='-Qoption ld ';;
9679       *)
9680         lt_prog_compiler_wl='-Wl,';;
9681       esac
9682       ;;
9683
9684     sunos4*)
9685       lt_prog_compiler_wl='-Qoption ld '
9686       lt_prog_compiler_pic='-PIC'
9687       lt_prog_compiler_static='-Bstatic'
9688       ;;
9689
9690     sysv4 | sysv4.2uw2* | sysv4.3*)
9691       lt_prog_compiler_wl='-Wl,'
9692       lt_prog_compiler_pic='-KPIC'
9693       lt_prog_compiler_static='-Bstatic'
9694       ;;
9695
9696     sysv4*MP*)
9697       if test -d /usr/nec ;then
9698         lt_prog_compiler_pic='-Kconform_pic'
9699         lt_prog_compiler_static='-Bstatic'
9700       fi
9701       ;;
9702
9703     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9704       lt_prog_compiler_wl='-Wl,'
9705       lt_prog_compiler_pic='-KPIC'
9706       lt_prog_compiler_static='-Bstatic'
9707       ;;
9708
9709     unicos*)
9710       lt_prog_compiler_wl='-Wl,'
9711       lt_prog_compiler_can_build_shared=no
9712       ;;
9713
9714     uts4*)
9715       lt_prog_compiler_pic='-pic'
9716       lt_prog_compiler_static='-Bstatic'
9717       ;;
9718
9719     *)
9720       lt_prog_compiler_can_build_shared=no
9721       ;;
9722     esac
9723   fi
9724
9725 case $host_os in
9726   # For platforms which do not support PIC, -DPIC is meaningless:
9727   *djgpp*)
9728     lt_prog_compiler_pic=
9729     ;;
9730   *)
9731     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9732     ;;
9733 esac
9734 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
9735 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
9736
9737
9738
9739
9740
9741
9742 #
9743 # Check to make sure the PIC flag actually works.
9744 #
9745 if test -n "$lt_prog_compiler_pic"; then
9746   { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9747 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
9748 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
9749   echo $ECHO_N "(cached) $ECHO_C" >&6
9750 else
9751   lt_cv_prog_compiler_pic_works=no
9752    ac_outfile=conftest.$ac_objext
9753    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9754    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9755    # Insert the option either (1) after the last *FLAGS variable, or
9756    # (2) before a word containing "conftest.", or (3) at the end.
9757    # Note that $ac_compile itself does not contain backslashes and begins
9758    # with a dollar sign (not a hyphen), so the echo should work correctly.
9759    # The option is referenced via a variable to avoid confusing sed.
9760    lt_compile=`echo "$ac_compile" | $SED \
9761    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9762    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9763    -e 's:$: $lt_compiler_flag:'`
9764    (eval echo "\"\$as_me:9764: $lt_compile\"" >&5)
9765    (eval "$lt_compile" 2>conftest.err)
9766    ac_status=$?
9767    cat conftest.err >&5
9768    echo "$as_me:9768: \$? = $ac_status" >&5
9769    if (exit $ac_status) && test -s "$ac_outfile"; then
9770      # The compiler can only warn and ignore the option if not recognized
9771      # So say no if there are warnings other than the usual output.
9772      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9773      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9774      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9775        lt_cv_prog_compiler_pic_works=yes
9776      fi
9777    fi
9778    $RM conftest*
9779
9780 fi
9781 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
9782 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
9783
9784 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9785     case $lt_prog_compiler_pic in
9786      "" | " "*) ;;
9787      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9788      esac
9789 else
9790     lt_prog_compiler_pic=
9791      lt_prog_compiler_can_build_shared=no
9792 fi
9793
9794 fi
9795
9796
9797
9798
9799
9800
9801 #
9802 # Check to make sure the static flag actually works.
9803 #
9804 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9805 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9806 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
9807 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
9808   echo $ECHO_N "(cached) $ECHO_C" >&6
9809 else
9810   lt_cv_prog_compiler_static_works=no
9811    save_LDFLAGS="$LDFLAGS"
9812    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9813    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9814    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9815      # The linker can only warn and ignore the option if not recognized
9816      # So say no if there are warnings
9817      if test -s conftest.err; then
9818        # Append any errors to the config.log.
9819        cat conftest.err 1>&5
9820        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9821        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9822        if diff conftest.exp conftest.er2 >/dev/null; then
9823          lt_cv_prog_compiler_static_works=yes
9824        fi
9825      else
9826        lt_cv_prog_compiler_static_works=yes
9827      fi
9828    fi
9829    $RM -r conftest*
9830    LDFLAGS="$save_LDFLAGS"
9831
9832 fi
9833 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
9834 echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
9835
9836 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9837     :
9838 else
9839     lt_prog_compiler_static=
9840 fi
9841
9842
9843
9844
9845
9846
9847
9848   { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9849 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
9850 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9851   echo $ECHO_N "(cached) $ECHO_C" >&6
9852 else
9853   lt_cv_prog_compiler_c_o=no
9854    $RM -r conftest 2>/dev/null
9855    mkdir conftest
9856    cd conftest
9857    mkdir out
9858    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9859
9860    lt_compiler_flag="-o out/conftest2.$ac_objext"
9861    # Insert the option either (1) after the last *FLAGS variable, or
9862    # (2) before a word containing "conftest.", or (3) at the end.
9863    # Note that $ac_compile itself does not contain backslashes and begins
9864    # with a dollar sign (not a hyphen), so the echo should work correctly.
9865    lt_compile=`echo "$ac_compile" | $SED \
9866    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9867    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9868    -e 's:$: $lt_compiler_flag:'`
9869    (eval echo "\"\$as_me:9869: $lt_compile\"" >&5)
9870    (eval "$lt_compile" 2>out/conftest.err)
9871    ac_status=$?
9872    cat out/conftest.err >&5
9873    echo "$as_me:9873: \$? = $ac_status" >&5
9874    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9875    then
9876      # The compiler can only warn and ignore the option if not recognized
9877      # So say no if there are warnings
9878      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9879      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9880      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9881        lt_cv_prog_compiler_c_o=yes
9882      fi
9883    fi
9884    chmod u+w . 2>&5
9885    $RM conftest*
9886    # SGI C++ compiler will create directory out/ii_files/ for
9887    # template instantiation
9888    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9889    $RM out/* && rmdir out
9890    cd ..
9891    $RM -r conftest
9892    $RM conftest*
9893
9894 fi
9895 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9896 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
9897
9898
9899
9900
9901
9902
9903   { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9904 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
9905 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9906   echo $ECHO_N "(cached) $ECHO_C" >&6
9907 else
9908   lt_cv_prog_compiler_c_o=no
9909    $RM -r conftest 2>/dev/null
9910    mkdir conftest
9911    cd conftest
9912    mkdir out
9913    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9914
9915    lt_compiler_flag="-o out/conftest2.$ac_objext"
9916    # Insert the option either (1) after the last *FLAGS variable, or
9917    # (2) before a word containing "conftest.", or (3) at the end.
9918    # Note that $ac_compile itself does not contain backslashes and begins
9919    # with a dollar sign (not a hyphen), so the echo should work correctly.
9920    lt_compile=`echo "$ac_compile" | $SED \
9921    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9922    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9923    -e 's:$: $lt_compiler_flag:'`
9924    (eval echo "\"\$as_me:9924: $lt_compile\"" >&5)
9925    (eval "$lt_compile" 2>out/conftest.err)
9926    ac_status=$?
9927    cat out/conftest.err >&5
9928    echo "$as_me:9928: \$? = $ac_status" >&5
9929    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9930    then
9931      # The compiler can only warn and ignore the option if not recognized
9932      # So say no if there are warnings
9933      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9934      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9935      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9936        lt_cv_prog_compiler_c_o=yes
9937      fi
9938    fi
9939    chmod u+w . 2>&5
9940    $RM conftest*
9941    # SGI C++ compiler will create directory out/ii_files/ for
9942    # template instantiation
9943    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9944    $RM out/* && rmdir out
9945    cd ..
9946    $RM -r conftest
9947    $RM conftest*
9948
9949 fi
9950 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9951 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
9952
9953
9954
9955
9956 hard_links="nottested"
9957 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9958   # do not overwrite the value of need_locks provided by the user
9959   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
9960 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
9961   hard_links=yes
9962   $RM conftest*
9963   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9964   touch conftest.a
9965   ln conftest.a conftest.b 2>&5 || hard_links=no
9966   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9967   { echo "$as_me:$LINENO: result: $hard_links" >&5
9968 echo "${ECHO_T}$hard_links" >&6; }
9969   if test "$hard_links" = no; then
9970     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9971 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9972     need_locks=warn
9973   fi
9974 else
9975   need_locks=no
9976 fi
9977
9978
9979
9980
9981
9982
9983   { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9984 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
9985
9986   runpath_var=
9987   allow_undefined_flag=
9988   always_export_symbols=no
9989   archive_cmds=
9990   archive_expsym_cmds=
9991   compiler_needs_object=no
9992   enable_shared_with_static_runtimes=no
9993   export_dynamic_flag_spec=
9994   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9995   hardcode_automatic=no
9996   hardcode_direct=no
9997   hardcode_direct_absolute=no
9998   hardcode_libdir_flag_spec=
9999   hardcode_libdir_flag_spec_ld=
10000   hardcode_libdir_separator=
10001   hardcode_minus_L=no
10002   hardcode_shlibpath_var=unsupported
10003   inherit_rpath=no
10004   link_all_deplibs=unknown
10005   module_cmds=
10006   module_expsym_cmds=
10007   old_archive_from_new_cmds=
10008   old_archive_from_expsyms_cmds=
10009   thread_safe_flag_spec=
10010   whole_archive_flag_spec=
10011   # include_expsyms should be a list of space-separated symbols to be *always*
10012   # included in the symbol list
10013   include_expsyms=
10014   # exclude_expsyms can be an extended regexp of symbols to exclude
10015   # it will be wrapped by ` (' and `)$', so one must not match beginning or
10016   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10017   # as well as any symbol that contains `d'.
10018   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10019   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10020   # platforms (ab)use it in PIC code, but their linkers get confused if
10021   # the symbol is explicitly referenced.  Since portable code cannot
10022   # rely on this symbol name, it's probably fine to never include it in
10023   # preloaded symbol tables.
10024   # Exclude shared library initialization/finalization symbols.
10025   extract_expsyms_cmds=
10026
10027   case $host_os in
10028   cygwin* | mingw* | pw32* | cegcc*)
10029     # FIXME: the MSVC++ port hasn't been tested in a loooong time
10030     # When not using gcc, we currently assume that we are using
10031     # Microsoft Visual C++.
10032     if test "$GCC" != yes; then
10033       with_gnu_ld=no
10034     fi
10035     ;;
10036   interix*)
10037     # we just hope/assume this is gcc and not c89 (= MSVC++)
10038     with_gnu_ld=yes
10039     ;;
10040   openbsd*)
10041     with_gnu_ld=no
10042     ;;
10043   esac
10044
10045   ld_shlibs=yes
10046   if test "$with_gnu_ld" = yes; then
10047     # If archive_cmds runs LD, not CC, wlarc should be empty
10048     wlarc='${wl}'
10049
10050     # Set some defaults for GNU ld with shared library support. These
10051     # are reset later if shared libraries are not supported. Putting them
10052     # here allows them to be overridden if necessary.
10053     runpath_var=LD_RUN_PATH
10054     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10055     export_dynamic_flag_spec='${wl}--export-dynamic'
10056     # ancient GNU ld didn't support --whole-archive et. al.
10057     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10058       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10059     else
10060       whole_archive_flag_spec=
10061     fi
10062     supports_anon_versioning=no
10063     case `$LD -v 2>&1` in
10064       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10065       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10066       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10067       *\ 2.11.*) ;; # other 2.11 versions
10068       *) supports_anon_versioning=yes ;;
10069     esac
10070
10071     # See if GNU ld supports shared libraries.
10072     case $host_os in
10073     aix[3-9]*)
10074       # On AIX/PPC, the GNU linker is very broken
10075       if test "$host_cpu" != ia64; then
10076         ld_shlibs=no
10077         cat <<_LT_EOF 1>&2
10078
10079 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
10080 *** to be unable to reliably create shared libraries on AIX.
10081 *** Therefore, libtool is disabling shared libraries support.  If you
10082 *** really care for shared libraries, you may want to modify your PATH
10083 *** so that a non-GNU linker is found, and then restart.
10084
10085 _LT_EOF
10086       fi
10087       ;;
10088
10089     amigaos*)
10090       case $host_cpu in
10091       powerpc)
10092             # see comment about AmigaOS4 .so support
10093             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10094             archive_expsym_cmds=''
10095         ;;
10096       m68k)
10097             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)'
10098             hardcode_libdir_flag_spec='-L$libdir'
10099             hardcode_minus_L=yes
10100         ;;
10101       esac
10102       ;;
10103
10104     beos*)
10105       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10106         allow_undefined_flag=unsupported
10107         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10108         # support --undefined.  This deserves some investigation.  FIXME
10109         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10110       else
10111         ld_shlibs=no
10112       fi
10113       ;;
10114
10115     cygwin* | mingw* | pw32* | cegcc*)
10116       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10117       # as there is no search path for DLLs.
10118       hardcode_libdir_flag_spec='-L$libdir'
10119       allow_undefined_flag=unsupported
10120       always_export_symbols=no
10121       enable_shared_with_static_runtimes=yes
10122       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10123
10124       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10125         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10126         # If the export-symbols file already is a .def file (1st line
10127         # is EXPORTS), use it as is; otherwise, prepend...
10128         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10129           cp $export_symbols $output_objdir/$soname.def;
10130         else
10131           echo EXPORTS > $output_objdir/$soname.def;
10132           cat $export_symbols >> $output_objdir/$soname.def;
10133         fi~
10134         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10135       else
10136         ld_shlibs=no
10137       fi
10138       ;;
10139
10140     interix[3-9]*)
10141       hardcode_direct=no
10142       hardcode_shlibpath_var=no
10143       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10144       export_dynamic_flag_spec='${wl}-E'
10145       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10146       # Instead, shared libraries are loaded at an image base (0x10000000 by
10147       # default) and relocated if they conflict, which is a slow very memory
10148       # consuming and fragmenting process.  To avoid this, we pick a random,
10149       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10150       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10151       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10152       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'
10153       ;;
10154
10155     gnu* | linux* | tpf* | k*bsd*-gnu)
10156       tmp_diet=no
10157       if test "$host_os" = linux-dietlibc; then
10158         case $cc_basename in
10159           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
10160         esac
10161       fi
10162       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10163          && test "$tmp_diet" = no
10164       then
10165         tmp_addflag=
10166         tmp_sharedflag='-shared'
10167         case $cc_basename,$host_cpu in
10168         pgcc*)                          # Portland Group C compiler
10169           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'
10170           tmp_addflag=' $pic_flag'
10171           ;;
10172         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
10173           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'
10174           tmp_addflag=' $pic_flag -Mnomain' ;;
10175         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
10176           tmp_addflag=' -i_dynamic' ;;
10177         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
10178           tmp_addflag=' -i_dynamic -nofor_main' ;;
10179         ifc* | ifort*)                  # Intel Fortran compiler
10180           tmp_addflag=' -nofor_main' ;;
10181         lf95*)                          # Lahey Fortran 8.1
10182           whole_archive_flag_spec=
10183           tmp_sharedflag='--shared' ;;
10184         xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
10185           tmp_sharedflag='-qmkshrobj'
10186           tmp_addflag= ;;
10187         esac
10188         case `$CC -V 2>&1 | sed 5q` in
10189         *Sun\ C*)                       # Sun C 5.9
10190           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'
10191           compiler_needs_object=yes
10192           tmp_sharedflag='-G' ;;
10193         *Sun\ F*)                       # Sun Fortran 8.3
10194           tmp_sharedflag='-G' ;;
10195         esac
10196         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10197
10198         if test "x$supports_anon_versioning" = xyes; then
10199           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10200             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10201             echo "local: *; };" >> $output_objdir/$libname.ver~
10202             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10203         fi
10204
10205         case $cc_basename in
10206         xlf*)
10207           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10208           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10209           hardcode_libdir_flag_spec=
10210           hardcode_libdir_flag_spec_ld='-rpath $libdir'
10211           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
10212           if test "x$supports_anon_versioning" = xyes; then
10213             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10214               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10215               echo "local: *; };" >> $output_objdir/$libname.ver~
10216               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10217           fi
10218           ;;
10219         esac
10220       else
10221         ld_shlibs=no
10222       fi
10223       ;;
10224
10225     netbsd*)
10226       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10227         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10228         wlarc=
10229       else
10230         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10231         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10232       fi
10233       ;;
10234
10235     solaris*)
10236       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10237         ld_shlibs=no
10238         cat <<_LT_EOF 1>&2
10239
10240 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10241 *** create shared libraries on Solaris systems.  Therefore, libtool
10242 *** is disabling shared libraries support.  We urge you to upgrade GNU
10243 *** binutils to release 2.9.1 or newer.  Another option is to modify
10244 *** your PATH or compiler configuration so that the native linker is
10245 *** used, and then restart.
10246
10247 _LT_EOF
10248       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10249         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10250         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10251       else
10252         ld_shlibs=no
10253       fi
10254       ;;
10255
10256     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10257       case `$LD -v 2>&1` in
10258         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10259         ld_shlibs=no
10260         cat <<_LT_EOF 1>&2
10261
10262 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10263 *** reliably create shared libraries on SCO systems.  Therefore, libtool
10264 *** is disabling shared libraries support.  We urge you to upgrade GNU
10265 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10266 *** your PATH or compiler configuration so that the native linker is
10267 *** used, and then restart.
10268
10269 _LT_EOF
10270         ;;
10271         *)
10272           # For security reasons, it is highly recommended that you always
10273           # use absolute paths for naming shared libraries, and exclude the
10274           # DT_RUNPATH tag from executables and libraries.  But doing so
10275           # requires that you compile everything twice, which is a pain.
10276           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10277             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10278             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10279             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10280           else
10281             ld_shlibs=no
10282           fi
10283         ;;
10284       esac
10285       ;;
10286
10287     sunos4*)
10288       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10289       wlarc=
10290       hardcode_direct=yes
10291       hardcode_shlibpath_var=no
10292       ;;
10293
10294     *)
10295       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10296         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10297         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10298       else
10299         ld_shlibs=no
10300       fi
10301       ;;
10302     esac
10303
10304     if test "$ld_shlibs" = no; then
10305       runpath_var=
10306       hardcode_libdir_flag_spec=
10307       export_dynamic_flag_spec=
10308       whole_archive_flag_spec=
10309     fi
10310   else
10311     # PORTME fill in a description of your system's linker (not GNU ld)
10312     case $host_os in
10313     aix3*)
10314       allow_undefined_flag=unsupported
10315       always_export_symbols=yes
10316       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'
10317       # Note: this linker hardcodes the directories in LIBPATH if there
10318       # are no directories specified by -L.
10319       hardcode_minus_L=yes
10320       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10321         # Neither direct hardcoding nor static linking is supported with a
10322         # broken collect2.
10323         hardcode_direct=unsupported
10324       fi
10325       ;;
10326
10327     aix[4-9]*)
10328       if test "$host_cpu" = ia64; then
10329         # On IA64, the linker does run time linking by default, so we don't
10330         # have to do anything special.
10331         aix_use_runtimelinking=no
10332         exp_sym_flag='-Bexport'
10333         no_entry_flag=""
10334       else
10335         # If we're using GNU nm, then we don't want the "-C" option.
10336         # -C means demangle to AIX nm, but means don't demangle with GNU nm
10337         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10338           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'
10339         else
10340           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'
10341         fi
10342         aix_use_runtimelinking=no
10343
10344         # Test if we are trying to use run time linking or normal
10345         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10346         # need to do runtime linking.
10347         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10348           for ld_flag in $LDFLAGS; do
10349           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10350             aix_use_runtimelinking=yes
10351             break
10352           fi
10353           done
10354           ;;
10355         esac
10356
10357         exp_sym_flag='-bexport'
10358         no_entry_flag='-bnoentry'
10359       fi
10360
10361       # When large executables or shared objects are built, AIX ld can
10362       # have problems creating the table of contents.  If linking a library
10363       # or program results in "error TOC overflow" add -mminimal-toc to
10364       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10365       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10366
10367       archive_cmds=''
10368       hardcode_direct=yes
10369       hardcode_direct_absolute=yes
10370       hardcode_libdir_separator=':'
10371       link_all_deplibs=yes
10372       file_list_spec='${wl}-f,'
10373
10374       if test "$GCC" = yes; then
10375         case $host_os in aix4.[012]|aix4.[012].*)
10376         # We only want to do this on AIX 4.2 and lower, the check
10377         # below for broken collect2 doesn't work under 4.3+
10378           collect2name=`${CC} -print-prog-name=collect2`
10379           if test -f "$collect2name" &&
10380            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10381           then
10382           # We have reworked collect2
10383           :
10384           else
10385           # We have old collect2
10386           hardcode_direct=unsupported
10387           # It fails to find uninstalled libraries when the uninstalled
10388           # path is not listed in the libpath.  Setting hardcode_minus_L
10389           # to unsupported forces relinking
10390           hardcode_minus_L=yes
10391           hardcode_libdir_flag_spec='-L$libdir'
10392           hardcode_libdir_separator=
10393           fi
10394           ;;
10395         esac
10396         shared_flag='-shared'
10397         if test "$aix_use_runtimelinking" = yes; then
10398           shared_flag="$shared_flag "'${wl}-G'
10399         fi
10400       else
10401         # not using gcc
10402         if test "$host_cpu" = ia64; then
10403         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10404         # chokes on -Wl,-G. The following line is correct:
10405           shared_flag='-G'
10406         else
10407           if test "$aix_use_runtimelinking" = yes; then
10408             shared_flag='${wl}-G'
10409           else
10410             shared_flag='${wl}-bM:SRE'
10411           fi
10412         fi
10413       fi
10414
10415       export_dynamic_flag_spec='${wl}-bexpall'
10416       # It seems that -bexpall does not export symbols beginning with
10417       # underscore (_), so it is better to generate a list of symbols to export.
10418       always_export_symbols=yes
10419       if test "$aix_use_runtimelinking" = yes; then
10420         # Warning - without using the other runtime loading flags (-brtl),
10421         # -berok will link without error, but may produce a broken library.
10422         allow_undefined_flag='-berok'
10423         # Determine the default libpath from the value encoded in an
10424         # empty executable.
10425         cat >conftest.$ac_ext <<_ACEOF
10426 /* confdefs.h.  */
10427 _ACEOF
10428 cat confdefs.h >>conftest.$ac_ext
10429 cat >>conftest.$ac_ext <<_ACEOF
10430 /* end confdefs.h.  */
10431
10432 int
10433 main ()
10434 {
10435
10436   ;
10437   return 0;
10438 }
10439 _ACEOF
10440 rm -f conftest.$ac_objext conftest$ac_exeext
10441 if { (ac_try="$ac_link"
10442 case "(($ac_try" in
10443   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10444   *) ac_try_echo=$ac_try;;
10445 esac
10446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10447   (eval "$ac_link") 2>conftest.er1
10448   ac_status=$?
10449   grep -v '^ *+' conftest.er1 >conftest.err
10450   rm -f conftest.er1
10451   cat conftest.err >&5
10452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10453   (exit $ac_status); } && {
10454          test -z "$ac_c_werror_flag" ||
10455          test ! -s conftest.err
10456        } && test -s conftest$ac_exeext &&
10457        $as_test_x conftest$ac_exeext; then
10458
10459 lt_aix_libpath_sed='
10460     /Import File Strings/,/^$/ {
10461         /^0/ {
10462             s/^0  *\(.*\)$/\1/
10463             p
10464         }
10465     }'
10466 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10467 # Check for a 64-bit object if we didn't find anything.
10468 if test -z "$aix_libpath"; then
10469   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10470 fi
10471 else
10472   echo "$as_me: failed program was:" >&5
10473 sed 's/^/| /' conftest.$ac_ext >&5
10474
10475
10476 fi
10477
10478 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10479       conftest$ac_exeext conftest.$ac_ext
10480 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10481
10482         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10483         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"
10484       else
10485         if test "$host_cpu" = ia64; then
10486           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10487           allow_undefined_flag="-z nodefs"
10488           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"
10489         else
10490          # Determine the default libpath from the value encoded in an
10491          # empty executable.
10492          cat >conftest.$ac_ext <<_ACEOF
10493 /* confdefs.h.  */
10494 _ACEOF
10495 cat confdefs.h >>conftest.$ac_ext
10496 cat >>conftest.$ac_ext <<_ACEOF
10497 /* end confdefs.h.  */
10498
10499 int
10500 main ()
10501 {
10502
10503   ;
10504   return 0;
10505 }
10506 _ACEOF
10507 rm -f conftest.$ac_objext conftest$ac_exeext
10508 if { (ac_try="$ac_link"
10509 case "(($ac_try" in
10510   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10511   *) ac_try_echo=$ac_try;;
10512 esac
10513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10514   (eval "$ac_link") 2>conftest.er1
10515   ac_status=$?
10516   grep -v '^ *+' conftest.er1 >conftest.err
10517   rm -f conftest.er1
10518   cat conftest.err >&5
10519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10520   (exit $ac_status); } && {
10521          test -z "$ac_c_werror_flag" ||
10522          test ! -s conftest.err
10523        } && test -s conftest$ac_exeext &&
10524        $as_test_x conftest$ac_exeext; then
10525
10526 lt_aix_libpath_sed='
10527     /Import File Strings/,/^$/ {
10528         /^0/ {
10529             s/^0  *\(.*\)$/\1/
10530             p
10531         }
10532     }'
10533 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10534 # Check for a 64-bit object if we didn't find anything.
10535 if test -z "$aix_libpath"; then
10536   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10537 fi
10538 else
10539   echo "$as_me: failed program was:" >&5
10540 sed 's/^/| /' conftest.$ac_ext >&5
10541
10542
10543 fi
10544
10545 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10546       conftest$ac_exeext conftest.$ac_ext
10547 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10548
10549          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10550           # Warning - without using the other run time loading flags,
10551           # -berok will link without error, but may produce a broken library.
10552           no_undefined_flag=' ${wl}-bernotok'
10553           allow_undefined_flag=' ${wl}-berok'
10554           # Exported symbols can be pulled into shared objects from archives
10555           whole_archive_flag_spec='$convenience'
10556           archive_cmds_need_lc=yes
10557           # This is similar to how AIX traditionally builds its shared libraries.
10558           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'
10559         fi
10560       fi
10561       ;;
10562
10563     amigaos*)
10564       case $host_cpu in
10565       powerpc)
10566             # see comment about AmigaOS4 .so support
10567             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10568             archive_expsym_cmds=''
10569         ;;
10570       m68k)
10571             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)'
10572             hardcode_libdir_flag_spec='-L$libdir'
10573             hardcode_minus_L=yes
10574         ;;
10575       esac
10576       ;;
10577
10578     bsdi[45]*)
10579       export_dynamic_flag_spec=-rdynamic
10580       ;;
10581
10582     cygwin* | mingw* | pw32* | cegcc*)
10583       # When not using gcc, we currently assume that we are using
10584       # Microsoft Visual C++.
10585       # hardcode_libdir_flag_spec is actually meaningless, as there is
10586       # no search path for DLLs.
10587       hardcode_libdir_flag_spec=' '
10588       allow_undefined_flag=unsupported
10589       # Tell ltmain to make .lib files, not .a files.
10590       libext=lib
10591       # Tell ltmain to make .dll files, not .so files.
10592       shrext_cmds=".dll"
10593       # FIXME: Setting linknames here is a bad hack.
10594       archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
10595       # The linker will automatically build a .lib file if we build a DLL.
10596       old_archive_from_new_cmds='true'
10597       # FIXME: Should let the user specify the lib program.
10598       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10599       fix_srcfile_path='`cygpath -w "$srcfile"`'
10600       enable_shared_with_static_runtimes=yes
10601       ;;
10602
10603     darwin* | rhapsody*)
10604
10605
10606   archive_cmds_need_lc=no
10607   hardcode_direct=no
10608   hardcode_automatic=yes
10609   hardcode_shlibpath_var=unsupported
10610   whole_archive_flag_spec=''
10611   link_all_deplibs=yes
10612   allow_undefined_flag="$_lt_dar_allow_undefined"
10613   case $cc_basename in
10614      ifort*) _lt_dar_can_shared=yes ;;
10615      *) _lt_dar_can_shared=$GCC ;;
10616   esac
10617   if test "$_lt_dar_can_shared" = "yes"; then
10618     output_verbose_link_cmd=echo
10619     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10620     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10621     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}"
10622     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}"
10623
10624   else
10625   ld_shlibs=no
10626   fi
10627
10628       ;;
10629
10630     dgux*)
10631       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10632       hardcode_libdir_flag_spec='-L$libdir'
10633       hardcode_shlibpath_var=no
10634       ;;
10635
10636     freebsd1*)
10637       ld_shlibs=no
10638       ;;
10639
10640     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10641     # support.  Future versions do this automatically, but an explicit c++rt0.o
10642     # does not break anything, and helps significantly (at the cost of a little
10643     # extra space).
10644     freebsd2.2*)
10645       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10646       hardcode_libdir_flag_spec='-R$libdir'
10647       hardcode_direct=yes
10648       hardcode_shlibpath_var=no
10649       ;;
10650
10651     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10652     freebsd2*)
10653       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10654       hardcode_direct=yes
10655       hardcode_minus_L=yes
10656       hardcode_shlibpath_var=no
10657       ;;
10658
10659     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10660     freebsd* | dragonfly*)
10661       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10662       hardcode_libdir_flag_spec='-R$libdir'
10663       hardcode_direct=yes
10664       hardcode_shlibpath_var=no
10665       ;;
10666
10667     hpux9*)
10668       if test "$GCC" = yes; then
10669         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'
10670       else
10671         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'
10672       fi
10673       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10674       hardcode_libdir_separator=:
10675       hardcode_direct=yes
10676
10677       # hardcode_minus_L: Not really in the search PATH,
10678       # but as the default location of the library.
10679       hardcode_minus_L=yes
10680       export_dynamic_flag_spec='${wl}-E'
10681       ;;
10682
10683     hpux10*)
10684       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10685         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10686       else
10687         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10688       fi
10689       if test "$with_gnu_ld" = no; then
10690         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10691         hardcode_libdir_flag_spec_ld='+b $libdir'
10692         hardcode_libdir_separator=:
10693         hardcode_direct=yes
10694         hardcode_direct_absolute=yes
10695         export_dynamic_flag_spec='${wl}-E'
10696         # hardcode_minus_L: Not really in the search PATH,
10697         # but as the default location of the library.
10698         hardcode_minus_L=yes
10699       fi
10700       ;;
10701
10702     hpux11*)
10703       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10704         case $host_cpu in
10705         hppa*64*)
10706           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10707           ;;
10708         ia64*)
10709           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10710           ;;
10711         *)
10712           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10713           ;;
10714         esac
10715       else
10716         case $host_cpu in
10717         hppa*64*)
10718           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10719           ;;
10720         ia64*)
10721           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10722           ;;
10723         *)
10724           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10725           ;;
10726         esac
10727       fi
10728       if test "$with_gnu_ld" = no; then
10729         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10730         hardcode_libdir_separator=:
10731
10732         case $host_cpu in
10733         hppa*64*|ia64*)
10734           hardcode_direct=no
10735           hardcode_shlibpath_var=no
10736           ;;
10737         *)
10738           hardcode_direct=yes
10739           hardcode_direct_absolute=yes
10740           export_dynamic_flag_spec='${wl}-E'
10741
10742           # hardcode_minus_L: Not really in the search PATH,
10743           # but as the default location of the library.
10744           hardcode_minus_L=yes
10745           ;;
10746         esac
10747       fi
10748       ;;
10749
10750     irix5* | irix6* | nonstopux*)
10751       if test "$GCC" = yes; then
10752         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'
10753         # Try to use the -exported_symbol ld option, if it does not
10754         # work, assume that -exports_file does not work either and
10755         # implicitly export all symbols.
10756         save_LDFLAGS="$LDFLAGS"
10757         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10758         cat >conftest.$ac_ext <<_ACEOF
10759 int foo(void) {}
10760 _ACEOF
10761 rm -f conftest.$ac_objext conftest$ac_exeext
10762 if { (ac_try="$ac_link"
10763 case "(($ac_try" in
10764   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10765   *) ac_try_echo=$ac_try;;
10766 esac
10767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10768   (eval "$ac_link") 2>conftest.er1
10769   ac_status=$?
10770   grep -v '^ *+' conftest.er1 >conftest.err
10771   rm -f conftest.er1
10772   cat conftest.err >&5
10773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10774   (exit $ac_status); } && {
10775          test -z "$ac_c_werror_flag" ||
10776          test ! -s conftest.err
10777        } && test -s conftest$ac_exeext &&
10778        $as_test_x conftest$ac_exeext; then
10779   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'
10780
10781 else
10782   echo "$as_me: failed program was:" >&5
10783 sed 's/^/| /' conftest.$ac_ext >&5
10784
10785
10786 fi
10787
10788 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10789       conftest$ac_exeext conftest.$ac_ext
10790         LDFLAGS="$save_LDFLAGS"
10791       else
10792         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'
10793         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'
10794       fi
10795       archive_cmds_need_lc='no'
10796       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10797       hardcode_libdir_separator=:
10798       inherit_rpath=yes
10799       link_all_deplibs=yes
10800       ;;
10801
10802     netbsd*)
10803       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10804         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10805       else
10806         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10807       fi
10808       hardcode_libdir_flag_spec='-R$libdir'
10809       hardcode_direct=yes
10810       hardcode_shlibpath_var=no
10811       ;;
10812
10813     newsos6)
10814       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10815       hardcode_direct=yes
10816       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10817       hardcode_libdir_separator=:
10818       hardcode_shlibpath_var=no
10819       ;;
10820
10821     *nto* | *qnx*)
10822       ;;
10823
10824     openbsd*)
10825       if test -f /usr/libexec/ld.so; then
10826         hardcode_direct=yes
10827         hardcode_shlibpath_var=no
10828         hardcode_direct_absolute=yes
10829         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10830           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10831           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10832           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10833           export_dynamic_flag_spec='${wl}-E'
10834         else
10835           case $host_os in
10836            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10837              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10838              hardcode_libdir_flag_spec='-R$libdir'
10839              ;;
10840            *)
10841              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10842              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10843              ;;
10844           esac
10845         fi
10846       else
10847         ld_shlibs=no
10848       fi
10849       ;;
10850
10851     os2*)
10852       hardcode_libdir_flag_spec='-L$libdir'
10853       hardcode_minus_L=yes
10854       allow_undefined_flag=unsupported
10855       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'
10856       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10857       ;;
10858
10859     osf3*)
10860       if test "$GCC" = yes; then
10861         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10862         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'
10863       else
10864         allow_undefined_flag=' -expect_unresolved \*'
10865         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'
10866       fi
10867       archive_cmds_need_lc='no'
10868       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10869       hardcode_libdir_separator=:
10870       ;;
10871
10872     osf4* | osf5*)      # as osf3* with the addition of -msym flag
10873       if test "$GCC" = yes; then
10874         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10875         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'
10876         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10877       else
10878         allow_undefined_flag=' -expect_unresolved \*'
10879         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'
10880         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~
10881         $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'
10882
10883         # Both c and cxx compiler support -rpath directly
10884         hardcode_libdir_flag_spec='-rpath $libdir'
10885       fi
10886       archive_cmds_need_lc='no'
10887       hardcode_libdir_separator=:
10888       ;;
10889
10890     solaris*)
10891       no_undefined_flag=' -z defs'
10892       if test "$GCC" = yes; then
10893         wlarc='${wl}'
10894         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10895         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10896           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10897       else
10898         case `$CC -V 2>&1` in
10899         *"Compilers 5.0"*)
10900           wlarc=''
10901           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10902           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10903           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10904           ;;
10905         *)
10906           wlarc='${wl}'
10907           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10908           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10909           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10910           ;;
10911         esac
10912       fi
10913       hardcode_libdir_flag_spec='-R$libdir'
10914       hardcode_shlibpath_var=no
10915       case $host_os in
10916       solaris2.[0-5] | solaris2.[0-5].*) ;;
10917       *)
10918         # The compiler driver will combine and reorder linker options,
10919         # but understands `-z linker_flag'.  GCC discards it without `$wl',
10920         # but is careful enough not to reorder.
10921         # Supported since Solaris 2.6 (maybe 2.5.1?)
10922         if test "$GCC" = yes; then
10923           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10924         else
10925           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10926         fi
10927         ;;
10928       esac
10929       link_all_deplibs=yes
10930       ;;
10931
10932     sunos4*)
10933       if test "x$host_vendor" = xsequent; then
10934         # Use $CC to link under sequent, because it throws in some extra .o
10935         # files that make .init and .fini sections work.
10936         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10937       else
10938         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10939       fi
10940       hardcode_libdir_flag_spec='-L$libdir'
10941       hardcode_direct=yes
10942       hardcode_minus_L=yes
10943       hardcode_shlibpath_var=no
10944       ;;
10945
10946     sysv4)
10947       case $host_vendor in
10948         sni)
10949           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10950           hardcode_direct=yes # is this really true???
10951         ;;
10952         siemens)
10953           ## LD is ld it makes a PLAMLIB
10954           ## CC just makes a GrossModule.
10955           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10956           reload_cmds='$CC -r -o $output$reload_objs'
10957           hardcode_direct=no
10958         ;;
10959         motorola)
10960           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10961           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10962         ;;
10963       esac
10964       runpath_var='LD_RUN_PATH'
10965       hardcode_shlibpath_var=no
10966       ;;
10967
10968     sysv4.3*)
10969       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10970       hardcode_shlibpath_var=no
10971       export_dynamic_flag_spec='-Bexport'
10972       ;;
10973
10974     sysv4*MP*)
10975       if test -d /usr/nec; then
10976         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10977         hardcode_shlibpath_var=no
10978         runpath_var=LD_RUN_PATH
10979         hardcode_runpath_var=yes
10980         ld_shlibs=yes
10981       fi
10982       ;;
10983
10984     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10985       no_undefined_flag='${wl}-z,text'
10986       archive_cmds_need_lc=no
10987       hardcode_shlibpath_var=no
10988       runpath_var='LD_RUN_PATH'
10989
10990       if test "$GCC" = yes; then
10991         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10992         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10993       else
10994         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10995         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10996       fi
10997       ;;
10998
10999     sysv5* | sco3.2v5* | sco5v6*)
11000       # Note: We can NOT use -z defs as we might desire, because we do not
11001       # link with -lc, and that would cause any symbols used from libc to
11002       # always be unresolved, which means just about no library would
11003       # ever link correctly.  If we're not using GNU ld we use -z text
11004       # though, which does catch some bad symbols but isn't as heavy-handed
11005       # as -z defs.
11006       no_undefined_flag='${wl}-z,text'
11007       allow_undefined_flag='${wl}-z,nodefs'
11008       archive_cmds_need_lc=no
11009       hardcode_shlibpath_var=no
11010       hardcode_libdir_flag_spec='${wl}-R,$libdir'
11011       hardcode_libdir_separator=':'
11012       link_all_deplibs=yes
11013       export_dynamic_flag_spec='${wl}-Bexport'
11014       runpath_var='LD_RUN_PATH'
11015
11016       if test "$GCC" = yes; then
11017         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11018         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11019       else
11020         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11021         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11022       fi
11023       ;;
11024
11025     uts4*)
11026       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11027       hardcode_libdir_flag_spec='-L$libdir'
11028       hardcode_shlibpath_var=no
11029       ;;
11030
11031     *)
11032       ld_shlibs=no
11033       ;;
11034     esac
11035
11036     if test x$host_vendor = xsni; then
11037       case $host in
11038       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11039         export_dynamic_flag_spec='${wl}-Blargedynsym'
11040         ;;
11041       esac
11042     fi
11043   fi
11044
11045 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
11046 echo "${ECHO_T}$ld_shlibs" >&6; }
11047 test "$ld_shlibs" = no && can_build_shared=no
11048
11049 with_gnu_ld=$with_gnu_ld
11050
11051
11052
11053
11054
11055
11056
11057
11058
11059
11060
11061
11062
11063
11064
11065 #
11066 # Do we need to explicitly link libc?
11067 #
11068 case "x$archive_cmds_need_lc" in
11069 x|xyes)
11070   # Assume -lc should be added
11071   archive_cmds_need_lc=yes
11072
11073   if test "$enable_shared" = yes && test "$GCC" = yes; then
11074     case $archive_cmds in
11075     *'~'*)
11076       # FIXME: we may have to deal with multi-command sequences.
11077       ;;
11078     '$CC '*)
11079       # Test whether the compiler implicitly links with -lc since on some
11080       # systems, -lgcc has to come before -lc. If gcc already passes -lc
11081       # to ld, don't add -lc before -lgcc.
11082       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11083 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
11084       $RM conftest*
11085       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11086
11087       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11088   (eval $ac_compile) 2>&5
11089   ac_status=$?
11090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11091   (exit $ac_status); } 2>conftest.err; then
11092         soname=conftest
11093         lib=conftest
11094         libobjs=conftest.$ac_objext
11095         deplibs=
11096         wl=$lt_prog_compiler_wl
11097         pic_flag=$lt_prog_compiler_pic
11098         compiler_flags=-v
11099         linker_flags=-v
11100         verstring=
11101         output_objdir=.
11102         libname=conftest
11103         lt_save_allow_undefined_flag=$allow_undefined_flag
11104         allow_undefined_flag=
11105         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
11106   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11107   ac_status=$?
11108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11109   (exit $ac_status); }
11110         then
11111           archive_cmds_need_lc=no
11112         else
11113           archive_cmds_need_lc=yes
11114         fi
11115         allow_undefined_flag=$lt_save_allow_undefined_flag
11116       else
11117         cat conftest.err 1>&5
11118       fi
11119       $RM conftest*
11120       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
11121 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
11122       ;;
11123     esac
11124   fi
11125   ;;
11126 esac
11127
11128
11129
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   { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11285 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
11286
11287 if test "$GCC" = yes; then
11288   case $host_os in
11289     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11290     *) lt_awk_arg="/^libraries:/" ;;
11291   esac
11292   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11293   if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
11294     # if the path contains ";" then we assume it to be the separator
11295     # otherwise default to the standard path separator (i.e. ":") - it is
11296     # assumed that no part of a normal pathname contains ";" but that should
11297     # okay in the real world where ";" in dirpaths is itself problematic.
11298     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
11299   else
11300     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11301   fi
11302   # Ok, now we have the path, separated by spaces, we can step through it
11303   # and add multilib dir if necessary.
11304   lt_tmp_lt_search_path_spec=
11305   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11306   for lt_sys_path in $lt_search_path_spec; do
11307     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11308       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11309     else
11310       test -d "$lt_sys_path" && \
11311         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11312     fi
11313   done
11314   lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
11315 BEGIN {RS=" "; FS="/|\n";} {
11316   lt_foo="";
11317   lt_count=0;
11318   for (lt_i = NF; lt_i > 0; lt_i--) {
11319     if ($lt_i != "" && $lt_i != ".") {
11320       if ($lt_i == "..") {
11321         lt_count++;
11322       } else {
11323         if (lt_count == 0) {
11324           lt_foo="/" $lt_i lt_foo;
11325         } else {
11326           lt_count--;
11327         }
11328       }
11329     }
11330   }
11331   if (lt_foo != "") { lt_freq[lt_foo]++; }
11332   if (lt_freq[lt_foo] == 1) { print lt_foo; }
11333 }'`
11334   sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
11335 else
11336   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11337 fi
11338 library_names_spec=
11339 libname_spec='lib$name'
11340 soname_spec=
11341 shrext_cmds=".so"
11342 postinstall_cmds=
11343 postuninstall_cmds=
11344 finish_cmds=
11345 finish_eval=
11346 shlibpath_var=
11347 shlibpath_overrides_runpath=unknown
11348 version_type=none
11349 dynamic_linker="$host_os ld.so"
11350 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11351 need_lib_prefix=unknown
11352 hardcode_into_libs=no
11353
11354 # when you set need_version to no, make sure it does not cause -set_version
11355 # flags to be left without arguments
11356 need_version=unknown
11357
11358 case $host_os in
11359 aix3*)
11360   version_type=linux
11361   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11362   shlibpath_var=LIBPATH
11363
11364   # AIX 3 has no versioning support, so we append a major version to the name.
11365   soname_spec='${libname}${release}${shared_ext}$major'
11366   ;;
11367
11368 aix[4-9]*)
11369   version_type=linux
11370   need_lib_prefix=no
11371   need_version=no
11372   hardcode_into_libs=yes
11373   if test "$host_cpu" = ia64; then
11374     # AIX 5 supports IA64
11375     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11376     shlibpath_var=LD_LIBRARY_PATH
11377   else
11378     # With GCC up to 2.95.x, collect2 would create an import file
11379     # for dependence libraries.  The import file would start with
11380     # the line `#! .'.  This would cause the generated library to
11381     # depend on `.', always an invalid library.  This was fixed in
11382     # development snapshots of GCC prior to 3.0.
11383     case $host_os in
11384       aix4 | aix4.[01] | aix4.[01].*)
11385       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11386            echo ' yes '
11387            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11388         :
11389       else
11390         can_build_shared=no
11391       fi
11392       ;;
11393     esac
11394     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11395     # soname into executable. Probably we can add versioning support to
11396     # collect2, so additional links can be useful in future.
11397     if test "$aix_use_runtimelinking" = yes; then
11398       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11399       # instead of lib<name>.a to let people know that these are not
11400       # typical AIX shared libraries.
11401       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11402     else
11403       # We preserve .a as extension for shared libraries through AIX4.2
11404       # and later when we are not doing run time linking.
11405       library_names_spec='${libname}${release}.a $libname.a'
11406       soname_spec='${libname}${release}${shared_ext}$major'
11407     fi
11408     shlibpath_var=LIBPATH
11409   fi
11410   ;;
11411
11412 amigaos*)
11413   case $host_cpu in
11414   powerpc)
11415     # Since July 2007 AmigaOS4 officially supports .so libraries.
11416     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11417     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11418     ;;
11419   m68k)
11420     library_names_spec='$libname.ixlibrary $libname.a'
11421     # Create ${libname}_ixlibrary.a entries in /sys/libs.
11422     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'
11423     ;;
11424   esac
11425   ;;
11426
11427 beos*)
11428   library_names_spec='${libname}${shared_ext}'
11429   dynamic_linker="$host_os ld.so"
11430   shlibpath_var=LIBRARY_PATH
11431   ;;
11432
11433 bsdi[45]*)
11434   version_type=linux
11435   need_version=no
11436   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11437   soname_spec='${libname}${release}${shared_ext}$major'
11438   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11439   shlibpath_var=LD_LIBRARY_PATH
11440   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11441   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11442   # the default ld.so.conf also contains /usr/contrib/lib and
11443   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11444   # libtool to hard-code these into programs
11445   ;;
11446
11447 cygwin* | mingw* | pw32* | cegcc*)
11448   version_type=windows
11449   shrext_cmds=".dll"
11450   need_version=no
11451   need_lib_prefix=no
11452
11453   case $GCC,$host_os in
11454   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11455     library_names_spec='$libname.dll.a'
11456     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11457     postinstall_cmds='base_file=`basename \${file}`~
11458       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11459       dldir=$destdir/`dirname \$dlpath`~
11460       test -d \$dldir || mkdir -p \$dldir~
11461       $install_prog $dir/$dlname \$dldir/$dlname~
11462       chmod a+x \$dldir/$dlname~
11463       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11464         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11465       fi'
11466     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11467       dlpath=$dir/\$dldll~
11468        $RM \$dlpath'
11469     shlibpath_overrides_runpath=yes
11470
11471     case $host_os in
11472     cygwin*)
11473       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11474       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11475       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11476       ;;
11477     mingw* | cegcc*)
11478       # MinGW DLLs use traditional 'lib' prefix
11479       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11480       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11481       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11482         # It is most probably a Windows format PATH printed by
11483         # mingw gcc, but we are running on Cygwin. Gcc prints its search
11484         # path with ; separators, and with drive letters. We can handle the
11485         # drive letters (cygwin fileutils understands them), so leave them,
11486         # especially as we might pass files found there to a mingw objdump,
11487         # which wouldn't understand a cygwinified path. Ahh.
11488         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11489       else
11490         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11491       fi
11492       ;;
11493     pw32*)
11494       # pw32 DLLs use 'pw' prefix rather than 'lib'
11495       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11496       ;;
11497     esac
11498     ;;
11499
11500   *)
11501     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11502     ;;
11503   esac
11504   dynamic_linker='Win32 ld.exe'
11505   # FIXME: first we should search . and the directory the executable is in
11506   shlibpath_var=PATH
11507   ;;
11508
11509 darwin* | rhapsody*)
11510   dynamic_linker="$host_os dyld"
11511   version_type=darwin
11512   need_lib_prefix=no
11513   need_version=no
11514   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11515   soname_spec='${libname}${release}${major}$shared_ext'
11516   shlibpath_overrides_runpath=yes
11517   shlibpath_var=DYLD_LIBRARY_PATH
11518   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11519
11520   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11521   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11522   ;;
11523
11524 dgux*)
11525   version_type=linux
11526   need_lib_prefix=no
11527   need_version=no
11528   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11529   soname_spec='${libname}${release}${shared_ext}$major'
11530   shlibpath_var=LD_LIBRARY_PATH
11531   ;;
11532
11533 freebsd1*)
11534   dynamic_linker=no
11535   ;;
11536
11537 freebsd* | dragonfly*)
11538   # DragonFly does not have aout.  When/if they implement a new
11539   # versioning mechanism, adjust this.
11540   if test -x /usr/bin/objformat; then
11541     objformat=`/usr/bin/objformat`
11542   else
11543     case $host_os in
11544     freebsd[123]*) objformat=aout ;;
11545     *) objformat=elf ;;
11546     esac
11547   fi
11548   version_type=freebsd-$objformat
11549   case $version_type in
11550     freebsd-elf*)
11551       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11552       need_version=no
11553       need_lib_prefix=no
11554       ;;
11555     freebsd-*)
11556       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11557       need_version=yes
11558       ;;
11559   esac
11560   shlibpath_var=LD_LIBRARY_PATH
11561   case $host_os in
11562   freebsd2*)
11563     shlibpath_overrides_runpath=yes
11564     ;;
11565   freebsd3.[01]* | freebsdelf3.[01]*)
11566     shlibpath_overrides_runpath=yes
11567     hardcode_into_libs=yes
11568     ;;
11569   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11570   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11571     shlibpath_overrides_runpath=no
11572     hardcode_into_libs=yes
11573     ;;
11574   *) # from 4.6 on, and DragonFly
11575     shlibpath_overrides_runpath=yes
11576     hardcode_into_libs=yes
11577     ;;
11578   esac
11579   ;;
11580
11581 gnu*)
11582   version_type=linux
11583   need_lib_prefix=no
11584   need_version=no
11585   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11586   soname_spec='${libname}${release}${shared_ext}$major'
11587   shlibpath_var=LD_LIBRARY_PATH
11588   hardcode_into_libs=yes
11589   ;;
11590
11591 hpux9* | hpux10* | hpux11*)
11592   # Give a soname corresponding to the major version so that dld.sl refuses to
11593   # link against other versions.
11594   version_type=sunos
11595   need_lib_prefix=no
11596   need_version=no
11597   case $host_cpu in
11598   ia64*)
11599     shrext_cmds='.so'
11600     hardcode_into_libs=yes
11601     dynamic_linker="$host_os dld.so"
11602     shlibpath_var=LD_LIBRARY_PATH
11603     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11604     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11605     soname_spec='${libname}${release}${shared_ext}$major'
11606     if test "X$HPUX_IA64_MODE" = X32; then
11607       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11608     else
11609       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11610     fi
11611     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11612     ;;
11613   hppa*64*)
11614     shrext_cmds='.sl'
11615     hardcode_into_libs=yes
11616     dynamic_linker="$host_os dld.sl"
11617     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11618     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11619     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11620     soname_spec='${libname}${release}${shared_ext}$major'
11621     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11622     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11623     ;;
11624   *)
11625     shrext_cmds='.sl'
11626     dynamic_linker="$host_os dld.sl"
11627     shlibpath_var=SHLIB_PATH
11628     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11629     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11630     soname_spec='${libname}${release}${shared_ext}$major'
11631     ;;
11632   esac
11633   # HP-UX runs *really* slowly unless shared libraries are mode 555.
11634   postinstall_cmds='chmod 555 $lib'
11635   ;;
11636
11637 interix[3-9]*)
11638   version_type=linux
11639   need_lib_prefix=no
11640   need_version=no
11641   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11642   soname_spec='${libname}${release}${shared_ext}$major'
11643   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11644   shlibpath_var=LD_LIBRARY_PATH
11645   shlibpath_overrides_runpath=no
11646   hardcode_into_libs=yes
11647   ;;
11648
11649 irix5* | irix6* | nonstopux*)
11650   case $host_os in
11651     nonstopux*) version_type=nonstopux ;;
11652     *)
11653         if test "$lt_cv_prog_gnu_ld" = yes; then
11654                 version_type=linux
11655         else
11656                 version_type=irix
11657         fi ;;
11658   esac
11659   need_lib_prefix=no
11660   need_version=no
11661   soname_spec='${libname}${release}${shared_ext}$major'
11662   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11663   case $host_os in
11664   irix5* | nonstopux*)
11665     libsuff= shlibsuff=
11666     ;;
11667   *)
11668     case $LD in # libtool.m4 will add one of these switches to LD
11669     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11670       libsuff= shlibsuff= libmagic=32-bit;;
11671     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11672       libsuff=32 shlibsuff=N32 libmagic=N32;;
11673     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11674       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11675     *) libsuff= shlibsuff= libmagic=never-match;;
11676     esac
11677     ;;
11678   esac
11679   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11680   shlibpath_overrides_runpath=no
11681   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11682   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11683   hardcode_into_libs=yes
11684   ;;
11685
11686 # No shared lib support for Linux oldld, aout, or coff.
11687 linux*oldld* | linux*aout* | linux*coff*)
11688   dynamic_linker=no
11689   ;;
11690
11691 # This must be Linux ELF.
11692 linux* | k*bsd*-gnu)
11693   version_type=linux
11694   need_lib_prefix=no
11695   need_version=no
11696   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11697   soname_spec='${libname}${release}${shared_ext}$major'
11698   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11699   shlibpath_var=LD_LIBRARY_PATH
11700   shlibpath_overrides_runpath=no
11701   # Some binutils ld are patched to set DT_RUNPATH
11702   save_LDFLAGS=$LDFLAGS
11703   save_libdir=$libdir
11704   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11705        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11706   cat >conftest.$ac_ext <<_ACEOF
11707 /* confdefs.h.  */
11708 _ACEOF
11709 cat confdefs.h >>conftest.$ac_ext
11710 cat >>conftest.$ac_ext <<_ACEOF
11711 /* end confdefs.h.  */
11712
11713 int
11714 main ()
11715 {
11716
11717   ;
11718   return 0;
11719 }
11720 _ACEOF
11721 rm -f conftest.$ac_objext conftest$ac_exeext
11722 if { (ac_try="$ac_link"
11723 case "(($ac_try" in
11724   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11725   *) ac_try_echo=$ac_try;;
11726 esac
11727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11728   (eval "$ac_link") 2>conftest.er1
11729   ac_status=$?
11730   grep -v '^ *+' conftest.er1 >conftest.err
11731   rm -f conftest.er1
11732   cat conftest.err >&5
11733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11734   (exit $ac_status); } && {
11735          test -z "$ac_c_werror_flag" ||
11736          test ! -s conftest.err
11737        } && test -s conftest$ac_exeext &&
11738        $as_test_x conftest$ac_exeext; then
11739   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
11740   shlibpath_overrides_runpath=yes
11741 fi
11742
11743 else
11744   echo "$as_me: failed program was:" >&5
11745 sed 's/^/| /' conftest.$ac_ext >&5
11746
11747
11748 fi
11749
11750 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11751       conftest$ac_exeext conftest.$ac_ext
11752   LDFLAGS=$save_LDFLAGS
11753   libdir=$save_libdir
11754
11755   # This implies no fast_install, which is unacceptable.
11756   # Some rework will be needed to allow for fast_install
11757   # before this can be enabled.
11758   hardcode_into_libs=yes
11759
11760   # Append ld.so.conf contents to the search path
11761   if test -f /etc/ld.so.conf; then
11762     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' ' '`
11763     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11764   fi
11765
11766   # We used to test for /lib/ld.so.1 and disable shared libraries on
11767   # powerpc, because MkLinux only supported shared libraries with the
11768   # GNU dynamic linker.  Since this was broken with cross compilers,
11769   # most powerpc-linux boxes support dynamic linking these days and
11770   # people can always --disable-shared, the test was removed, and we
11771   # assume the GNU/Linux dynamic linker is in use.
11772   dynamic_linker='GNU/Linux ld.so'
11773   ;;
11774
11775 netbsd*)
11776   version_type=sunos
11777   need_lib_prefix=no
11778   need_version=no
11779   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11780     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11781     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11782     dynamic_linker='NetBSD (a.out) ld.so'
11783   else
11784     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11785     soname_spec='${libname}${release}${shared_ext}$major'
11786     dynamic_linker='NetBSD ld.elf_so'
11787   fi
11788   shlibpath_var=LD_LIBRARY_PATH
11789   shlibpath_overrides_runpath=yes
11790   hardcode_into_libs=yes
11791   ;;
11792
11793 newsos6)
11794   version_type=linux
11795   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11796   shlibpath_var=LD_LIBRARY_PATH
11797   shlibpath_overrides_runpath=yes
11798   ;;
11799
11800 *nto* | *qnx*)
11801   version_type=qnx
11802   need_lib_prefix=no
11803   need_version=no
11804   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11805   soname_spec='${libname}${release}${shared_ext}$major'
11806   shlibpath_var=LD_LIBRARY_PATH
11807   shlibpath_overrides_runpath=no
11808   hardcode_into_libs=yes
11809   dynamic_linker='ldqnx.so'
11810   ;;
11811
11812 openbsd*)
11813   version_type=sunos
11814   sys_lib_dlsearch_path_spec="/usr/lib"
11815   need_lib_prefix=no
11816   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11817   case $host_os in
11818     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
11819     *)                          need_version=no  ;;
11820   esac
11821   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11822   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11823   shlibpath_var=LD_LIBRARY_PATH
11824   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11825     case $host_os in
11826       openbsd2.[89] | openbsd2.[89].*)
11827         shlibpath_overrides_runpath=no
11828         ;;
11829       *)
11830         shlibpath_overrides_runpath=yes
11831         ;;
11832       esac
11833   else
11834     shlibpath_overrides_runpath=yes
11835   fi
11836   ;;
11837
11838 os2*)
11839   libname_spec='$name'
11840   shrext_cmds=".dll"
11841   need_lib_prefix=no
11842   library_names_spec='$libname${shared_ext} $libname.a'
11843   dynamic_linker='OS/2 ld.exe'
11844   shlibpath_var=LIBPATH
11845   ;;
11846
11847 osf3* | osf4* | osf5*)
11848   version_type=osf
11849   need_lib_prefix=no
11850   need_version=no
11851   soname_spec='${libname}${release}${shared_ext}$major'
11852   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11853   shlibpath_var=LD_LIBRARY_PATH
11854   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11855   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11856   ;;
11857
11858 rdos*)
11859   dynamic_linker=no
11860   ;;
11861
11862 solaris*)
11863   version_type=linux
11864   need_lib_prefix=no
11865   need_version=no
11866   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11867   soname_spec='${libname}${release}${shared_ext}$major'
11868   shlibpath_var=LD_LIBRARY_PATH
11869   shlibpath_overrides_runpath=yes
11870   hardcode_into_libs=yes
11871   # ldd complains unless libraries are executable
11872   postinstall_cmds='chmod +x $lib'
11873   ;;
11874
11875 sunos4*)
11876   version_type=sunos
11877   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11878   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11879   shlibpath_var=LD_LIBRARY_PATH
11880   shlibpath_overrides_runpath=yes
11881   if test "$with_gnu_ld" = yes; then
11882     need_lib_prefix=no
11883   fi
11884   need_version=yes
11885   ;;
11886
11887 sysv4 | sysv4.3*)
11888   version_type=linux
11889   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11890   soname_spec='${libname}${release}${shared_ext}$major'
11891   shlibpath_var=LD_LIBRARY_PATH
11892   case $host_vendor in
11893     sni)
11894       shlibpath_overrides_runpath=no
11895       need_lib_prefix=no
11896       runpath_var=LD_RUN_PATH
11897       ;;
11898     siemens)
11899       need_lib_prefix=no
11900       ;;
11901     motorola)
11902       need_lib_prefix=no
11903       need_version=no
11904       shlibpath_overrides_runpath=no
11905       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11906       ;;
11907   esac
11908   ;;
11909
11910 sysv4*MP*)
11911   if test -d /usr/nec ;then
11912     version_type=linux
11913     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11914     soname_spec='$libname${shared_ext}.$major'
11915     shlibpath_var=LD_LIBRARY_PATH
11916   fi
11917   ;;
11918
11919 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11920   version_type=freebsd-elf
11921   need_lib_prefix=no
11922   need_version=no
11923   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11924   soname_spec='${libname}${release}${shared_ext}$major'
11925   shlibpath_var=LD_LIBRARY_PATH
11926   shlibpath_overrides_runpath=yes
11927   hardcode_into_libs=yes
11928   if test "$with_gnu_ld" = yes; then
11929     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11930   else
11931     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11932     case $host_os in
11933       sco3.2v5*)
11934         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11935         ;;
11936     esac
11937   fi
11938   sys_lib_dlsearch_path_spec='/usr/lib'
11939   ;;
11940
11941 tpf*)
11942   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11943   version_type=linux
11944   need_lib_prefix=no
11945   need_version=no
11946   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11947   shlibpath_var=LD_LIBRARY_PATH
11948   shlibpath_overrides_runpath=no
11949   hardcode_into_libs=yes
11950   ;;
11951
11952 uts4*)
11953   version_type=linux
11954   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11955   soname_spec='${libname}${release}${shared_ext}$major'
11956   shlibpath_var=LD_LIBRARY_PATH
11957   ;;
11958
11959 *)
11960   dynamic_linker=no
11961   ;;
11962 esac
11963 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11964 echo "${ECHO_T}$dynamic_linker" >&6; }
11965 test "$dynamic_linker" = no && can_build_shared=no
11966
11967 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11968 if test "$GCC" = yes; then
11969   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11970 fi
11971
11972 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11973   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11974 fi
11975 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11976   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11977 fi
11978
11979
11980
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   { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12066 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
12067 hardcode_action=
12068 if test -n "$hardcode_libdir_flag_spec" ||
12069    test -n "$runpath_var" ||
12070    test "X$hardcode_automatic" = "Xyes" ; then
12071
12072   # We can hardcode non-existent directories.
12073   if test "$hardcode_direct" != no &&
12074      # If the only mechanism to avoid hardcoding is shlibpath_var, we
12075      # have to relink, otherwise we might link with an installed library
12076      # when we should be linking with a yet-to-be-installed one
12077      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12078      test "$hardcode_minus_L" != no; then
12079     # Linking always hardcodes the temporary library directory.
12080     hardcode_action=relink
12081   else
12082     # We can link without hardcoding, and we can hardcode nonexisting dirs.
12083     hardcode_action=immediate
12084   fi
12085 else
12086   # We cannot hardcode anything, or else we can only hardcode existing
12087   # directories.
12088   hardcode_action=unsupported
12089 fi
12090 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
12091 echo "${ECHO_T}$hardcode_action" >&6; }
12092
12093 if test "$hardcode_action" = relink ||
12094    test "$inherit_rpath" = yes; then
12095   # Fast installation is not supported
12096   enable_fast_install=no
12097 elif test "$shlibpath_overrides_runpath" = yes ||
12098      test "$enable_shared" = no; then
12099   # Fast installation is not necessary
12100   enable_fast_install=needless
12101 fi
12102
12103
12104
12105
12106
12107
12108   if test "x$enable_dlopen" != xyes; then
12109   enable_dlopen=unknown
12110   enable_dlopen_self=unknown
12111   enable_dlopen_self_static=unknown
12112 else
12113   lt_cv_dlopen=no
12114   lt_cv_dlopen_libs=
12115
12116   case $host_os in
12117   beos*)
12118     lt_cv_dlopen="load_add_on"
12119     lt_cv_dlopen_libs=
12120     lt_cv_dlopen_self=yes
12121     ;;
12122
12123   mingw* | pw32* | cegcc*)
12124     lt_cv_dlopen="LoadLibrary"
12125     lt_cv_dlopen_libs=
12126     ;;
12127
12128   cygwin*)
12129     lt_cv_dlopen="dlopen"
12130     lt_cv_dlopen_libs=
12131     ;;
12132
12133   darwin*)
12134   # if libdl is installed we need to link against it
12135     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12136 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
12137 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12138   echo $ECHO_N "(cached) $ECHO_C" >&6
12139 else
12140   ac_check_lib_save_LIBS=$LIBS
12141 LIBS="-ldl  $LIBS"
12142 cat >conftest.$ac_ext <<_ACEOF
12143 /* confdefs.h.  */
12144 _ACEOF
12145 cat confdefs.h >>conftest.$ac_ext
12146 cat >>conftest.$ac_ext <<_ACEOF
12147 /* end confdefs.h.  */
12148
12149 /* Override any GCC internal prototype to avoid an error.
12150    Use char because int might match the return type of a GCC
12151    builtin and then its argument prototype would still apply.  */
12152 #ifdef __cplusplus
12153 extern "C"
12154 #endif
12155 char dlopen ();
12156 int
12157 main ()
12158 {
12159 return dlopen ();
12160   ;
12161   return 0;
12162 }
12163 _ACEOF
12164 rm -f conftest.$ac_objext conftest$ac_exeext
12165 if { (ac_try="$ac_link"
12166 case "(($ac_try" in
12167   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12168   *) ac_try_echo=$ac_try;;
12169 esac
12170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12171   (eval "$ac_link") 2>conftest.er1
12172   ac_status=$?
12173   grep -v '^ *+' conftest.er1 >conftest.err
12174   rm -f conftest.er1
12175   cat conftest.err >&5
12176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12177   (exit $ac_status); } && {
12178          test -z "$ac_c_werror_flag" ||
12179          test ! -s conftest.err
12180        } && test -s conftest$ac_exeext &&
12181        $as_test_x conftest$ac_exeext; then
12182   ac_cv_lib_dl_dlopen=yes
12183 else
12184   echo "$as_me: failed program was:" >&5
12185 sed 's/^/| /' conftest.$ac_ext >&5
12186
12187         ac_cv_lib_dl_dlopen=no
12188 fi
12189
12190 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12191       conftest$ac_exeext conftest.$ac_ext
12192 LIBS=$ac_check_lib_save_LIBS
12193 fi
12194 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12195 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
12196 if test $ac_cv_lib_dl_dlopen = yes; then
12197   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12198 else
12199
12200     lt_cv_dlopen="dyld"
12201     lt_cv_dlopen_libs=
12202     lt_cv_dlopen_self=yes
12203
12204 fi
12205
12206     ;;
12207
12208   *)
12209     { echo "$as_me:$LINENO: checking for shl_load" >&5
12210 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
12211 if test "${ac_cv_func_shl_load+set}" = set; then
12212   echo $ECHO_N "(cached) $ECHO_C" >&6
12213 else
12214   cat >conftest.$ac_ext <<_ACEOF
12215 /* confdefs.h.  */
12216 _ACEOF
12217 cat confdefs.h >>conftest.$ac_ext
12218 cat >>conftest.$ac_ext <<_ACEOF
12219 /* end confdefs.h.  */
12220 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12221    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12222 #define shl_load innocuous_shl_load
12223
12224 /* System header to define __stub macros and hopefully few prototypes,
12225     which can conflict with char shl_load (); below.
12226     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12227     <limits.h> exists even on freestanding compilers.  */
12228
12229 #ifdef __STDC__
12230 # include <limits.h>
12231 #else
12232 # include <assert.h>
12233 #endif
12234
12235 #undef shl_load
12236
12237 /* Override any GCC internal prototype to avoid an error.
12238    Use char because int might match the return type of a GCC
12239    builtin and then its argument prototype would still apply.  */
12240 #ifdef __cplusplus
12241 extern "C"
12242 #endif
12243 char shl_load ();
12244 /* The GNU C library defines this for functions which it implements
12245     to always fail with ENOSYS.  Some functions are actually named
12246     something starting with __ and the normal name is an alias.  */
12247 #if defined __stub_shl_load || defined __stub___shl_load
12248 choke me
12249 #endif
12250
12251 int
12252 main ()
12253 {
12254 return shl_load ();
12255   ;
12256   return 0;
12257 }
12258 _ACEOF
12259 rm -f conftest.$ac_objext conftest$ac_exeext
12260 if { (ac_try="$ac_link"
12261 case "(($ac_try" in
12262   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12263   *) ac_try_echo=$ac_try;;
12264 esac
12265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12266   (eval "$ac_link") 2>conftest.er1
12267   ac_status=$?
12268   grep -v '^ *+' conftest.er1 >conftest.err
12269   rm -f conftest.er1
12270   cat conftest.err >&5
12271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12272   (exit $ac_status); } && {
12273          test -z "$ac_c_werror_flag" ||
12274          test ! -s conftest.err
12275        } && test -s conftest$ac_exeext &&
12276        $as_test_x conftest$ac_exeext; then
12277   ac_cv_func_shl_load=yes
12278 else
12279   echo "$as_me: failed program was:" >&5
12280 sed 's/^/| /' conftest.$ac_ext >&5
12281
12282         ac_cv_func_shl_load=no
12283 fi
12284
12285 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12286       conftest$ac_exeext conftest.$ac_ext
12287 fi
12288 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12289 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
12290 if test $ac_cv_func_shl_load = yes; then
12291   lt_cv_dlopen="shl_load"
12292 else
12293   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12294 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
12295 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12296   echo $ECHO_N "(cached) $ECHO_C" >&6
12297 else
12298   ac_check_lib_save_LIBS=$LIBS
12299 LIBS="-ldld  $LIBS"
12300 cat >conftest.$ac_ext <<_ACEOF
12301 /* confdefs.h.  */
12302 _ACEOF
12303 cat confdefs.h >>conftest.$ac_ext
12304 cat >>conftest.$ac_ext <<_ACEOF
12305 /* end confdefs.h.  */
12306
12307 /* Override any GCC internal prototype to avoid an error.
12308    Use char because int might match the return type of a GCC
12309    builtin and then its argument prototype would still apply.  */
12310 #ifdef __cplusplus
12311 extern "C"
12312 #endif
12313 char shl_load ();
12314 int
12315 main ()
12316 {
12317 return shl_load ();
12318   ;
12319   return 0;
12320 }
12321 _ACEOF
12322 rm -f conftest.$ac_objext conftest$ac_exeext
12323 if { (ac_try="$ac_link"
12324 case "(($ac_try" in
12325   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12326   *) ac_try_echo=$ac_try;;
12327 esac
12328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12329   (eval "$ac_link") 2>conftest.er1
12330   ac_status=$?
12331   grep -v '^ *+' conftest.er1 >conftest.err
12332   rm -f conftest.er1
12333   cat conftest.err >&5
12334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12335   (exit $ac_status); } && {
12336          test -z "$ac_c_werror_flag" ||
12337          test ! -s conftest.err
12338        } && test -s conftest$ac_exeext &&
12339        $as_test_x conftest$ac_exeext; then
12340   ac_cv_lib_dld_shl_load=yes
12341 else
12342   echo "$as_me: failed program was:" >&5
12343 sed 's/^/| /' conftest.$ac_ext >&5
12344
12345         ac_cv_lib_dld_shl_load=no
12346 fi
12347
12348 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12349       conftest$ac_exeext conftest.$ac_ext
12350 LIBS=$ac_check_lib_save_LIBS
12351 fi
12352 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12353 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
12354 if test $ac_cv_lib_dld_shl_load = yes; then
12355   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12356 else
12357   { echo "$as_me:$LINENO: checking for dlopen" >&5
12358 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
12359 if test "${ac_cv_func_dlopen+set}" = set; then
12360   echo $ECHO_N "(cached) $ECHO_C" >&6
12361 else
12362   cat >conftest.$ac_ext <<_ACEOF
12363 /* confdefs.h.  */
12364 _ACEOF
12365 cat confdefs.h >>conftest.$ac_ext
12366 cat >>conftest.$ac_ext <<_ACEOF
12367 /* end confdefs.h.  */
12368 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12369    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12370 #define dlopen innocuous_dlopen
12371
12372 /* System header to define __stub macros and hopefully few prototypes,
12373     which can conflict with char dlopen (); below.
12374     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12375     <limits.h> exists even on freestanding compilers.  */
12376
12377 #ifdef __STDC__
12378 # include <limits.h>
12379 #else
12380 # include <assert.h>
12381 #endif
12382
12383 #undef dlopen
12384
12385 /* Override any GCC internal prototype to avoid an error.
12386    Use char because int might match the return type of a GCC
12387    builtin and then its argument prototype would still apply.  */
12388 #ifdef __cplusplus
12389 extern "C"
12390 #endif
12391 char dlopen ();
12392 /* The GNU C library defines this for functions which it implements
12393     to always fail with ENOSYS.  Some functions are actually named
12394     something starting with __ and the normal name is an alias.  */
12395 #if defined __stub_dlopen || defined __stub___dlopen
12396 choke me
12397 #endif
12398
12399 int
12400 main ()
12401 {
12402 return dlopen ();
12403   ;
12404   return 0;
12405 }
12406 _ACEOF
12407 rm -f conftest.$ac_objext conftest$ac_exeext
12408 if { (ac_try="$ac_link"
12409 case "(($ac_try" in
12410   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12411   *) ac_try_echo=$ac_try;;
12412 esac
12413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12414   (eval "$ac_link") 2>conftest.er1
12415   ac_status=$?
12416   grep -v '^ *+' conftest.er1 >conftest.err
12417   rm -f conftest.er1
12418   cat conftest.err >&5
12419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12420   (exit $ac_status); } && {
12421          test -z "$ac_c_werror_flag" ||
12422          test ! -s conftest.err
12423        } && test -s conftest$ac_exeext &&
12424        $as_test_x conftest$ac_exeext; then
12425   ac_cv_func_dlopen=yes
12426 else
12427   echo "$as_me: failed program was:" >&5
12428 sed 's/^/| /' conftest.$ac_ext >&5
12429
12430         ac_cv_func_dlopen=no
12431 fi
12432
12433 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12434       conftest$ac_exeext conftest.$ac_ext
12435 fi
12436 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12437 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
12438 if test $ac_cv_func_dlopen = yes; then
12439   lt_cv_dlopen="dlopen"
12440 else
12441   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12442 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
12443 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12444   echo $ECHO_N "(cached) $ECHO_C" >&6
12445 else
12446   ac_check_lib_save_LIBS=$LIBS
12447 LIBS="-ldl  $LIBS"
12448 cat >conftest.$ac_ext <<_ACEOF
12449 /* confdefs.h.  */
12450 _ACEOF
12451 cat confdefs.h >>conftest.$ac_ext
12452 cat >>conftest.$ac_ext <<_ACEOF
12453 /* end confdefs.h.  */
12454
12455 /* Override any GCC internal prototype to avoid an error.
12456    Use char because int might match the return type of a GCC
12457    builtin and then its argument prototype would still apply.  */
12458 #ifdef __cplusplus
12459 extern "C"
12460 #endif
12461 char dlopen ();
12462 int
12463 main ()
12464 {
12465 return dlopen ();
12466   ;
12467   return 0;
12468 }
12469 _ACEOF
12470 rm -f conftest.$ac_objext conftest$ac_exeext
12471 if { (ac_try="$ac_link"
12472 case "(($ac_try" in
12473   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12474   *) ac_try_echo=$ac_try;;
12475 esac
12476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12477   (eval "$ac_link") 2>conftest.er1
12478   ac_status=$?
12479   grep -v '^ *+' conftest.er1 >conftest.err
12480   rm -f conftest.er1
12481   cat conftest.err >&5
12482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12483   (exit $ac_status); } && {
12484          test -z "$ac_c_werror_flag" ||
12485          test ! -s conftest.err
12486        } && test -s conftest$ac_exeext &&
12487        $as_test_x conftest$ac_exeext; then
12488   ac_cv_lib_dl_dlopen=yes
12489 else
12490   echo "$as_me: failed program was:" >&5
12491 sed 's/^/| /' conftest.$ac_ext >&5
12492
12493         ac_cv_lib_dl_dlopen=no
12494 fi
12495
12496 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12497       conftest$ac_exeext conftest.$ac_ext
12498 LIBS=$ac_check_lib_save_LIBS
12499 fi
12500 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12501 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
12502 if test $ac_cv_lib_dl_dlopen = yes; then
12503   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12504 else
12505   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12506 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
12507 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12508   echo $ECHO_N "(cached) $ECHO_C" >&6
12509 else
12510   ac_check_lib_save_LIBS=$LIBS
12511 LIBS="-lsvld  $LIBS"
12512 cat >conftest.$ac_ext <<_ACEOF
12513 /* confdefs.h.  */
12514 _ACEOF
12515 cat confdefs.h >>conftest.$ac_ext
12516 cat >>conftest.$ac_ext <<_ACEOF
12517 /* end confdefs.h.  */
12518
12519 /* Override any GCC internal prototype to avoid an error.
12520    Use char because int might match the return type of a GCC
12521    builtin and then its argument prototype would still apply.  */
12522 #ifdef __cplusplus
12523 extern "C"
12524 #endif
12525 char dlopen ();
12526 int
12527 main ()
12528 {
12529 return dlopen ();
12530   ;
12531   return 0;
12532 }
12533 _ACEOF
12534 rm -f conftest.$ac_objext conftest$ac_exeext
12535 if { (ac_try="$ac_link"
12536 case "(($ac_try" in
12537   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12538   *) ac_try_echo=$ac_try;;
12539 esac
12540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12541   (eval "$ac_link") 2>conftest.er1
12542   ac_status=$?
12543   grep -v '^ *+' conftest.er1 >conftest.err
12544   rm -f conftest.er1
12545   cat conftest.err >&5
12546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12547   (exit $ac_status); } && {
12548          test -z "$ac_c_werror_flag" ||
12549          test ! -s conftest.err
12550        } && test -s conftest$ac_exeext &&
12551        $as_test_x conftest$ac_exeext; then
12552   ac_cv_lib_svld_dlopen=yes
12553 else
12554   echo "$as_me: failed program was:" >&5
12555 sed 's/^/| /' conftest.$ac_ext >&5
12556
12557         ac_cv_lib_svld_dlopen=no
12558 fi
12559
12560 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12561       conftest$ac_exeext conftest.$ac_ext
12562 LIBS=$ac_check_lib_save_LIBS
12563 fi
12564 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12565 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
12566 if test $ac_cv_lib_svld_dlopen = yes; then
12567   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12568 else
12569   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12570 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
12571 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12572   echo $ECHO_N "(cached) $ECHO_C" >&6
12573 else
12574   ac_check_lib_save_LIBS=$LIBS
12575 LIBS="-ldld  $LIBS"
12576 cat >conftest.$ac_ext <<_ACEOF
12577 /* confdefs.h.  */
12578 _ACEOF
12579 cat confdefs.h >>conftest.$ac_ext
12580 cat >>conftest.$ac_ext <<_ACEOF
12581 /* end confdefs.h.  */
12582
12583 /* Override any GCC internal prototype to avoid an error.
12584    Use char because int might match the return type of a GCC
12585    builtin and then its argument prototype would still apply.  */
12586 #ifdef __cplusplus
12587 extern "C"
12588 #endif
12589 char dld_link ();
12590 int
12591 main ()
12592 {
12593 return dld_link ();
12594   ;
12595   return 0;
12596 }
12597 _ACEOF
12598 rm -f conftest.$ac_objext conftest$ac_exeext
12599 if { (ac_try="$ac_link"
12600 case "(($ac_try" in
12601   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12602   *) ac_try_echo=$ac_try;;
12603 esac
12604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12605   (eval "$ac_link") 2>conftest.er1
12606   ac_status=$?
12607   grep -v '^ *+' conftest.er1 >conftest.err
12608   rm -f conftest.er1
12609   cat conftest.err >&5
12610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12611   (exit $ac_status); } && {
12612          test -z "$ac_c_werror_flag" ||
12613          test ! -s conftest.err
12614        } && test -s conftest$ac_exeext &&
12615        $as_test_x conftest$ac_exeext; then
12616   ac_cv_lib_dld_dld_link=yes
12617 else
12618   echo "$as_me: failed program was:" >&5
12619 sed 's/^/| /' conftest.$ac_ext >&5
12620
12621         ac_cv_lib_dld_dld_link=no
12622 fi
12623
12624 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12625       conftest$ac_exeext conftest.$ac_ext
12626 LIBS=$ac_check_lib_save_LIBS
12627 fi
12628 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12629 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
12630 if test $ac_cv_lib_dld_dld_link = yes; then
12631   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12632 fi
12633
12634
12635 fi
12636
12637
12638 fi
12639
12640
12641 fi
12642
12643
12644 fi
12645
12646
12647 fi
12648
12649     ;;
12650   esac
12651
12652   if test "x$lt_cv_dlopen" != xno; then
12653     enable_dlopen=yes
12654   else
12655     enable_dlopen=no
12656   fi
12657
12658   case $lt_cv_dlopen in
12659   dlopen)
12660     save_CPPFLAGS="$CPPFLAGS"
12661     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12662
12663     save_LDFLAGS="$LDFLAGS"
12664     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12665
12666     save_LIBS="$LIBS"
12667     LIBS="$lt_cv_dlopen_libs $LIBS"
12668
12669     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12670 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
12671 if test "${lt_cv_dlopen_self+set}" = set; then
12672   echo $ECHO_N "(cached) $ECHO_C" >&6
12673 else
12674           if test "$cross_compiling" = yes; then :
12675   lt_cv_dlopen_self=cross
12676 else
12677   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12678   lt_status=$lt_dlunknown
12679   cat > conftest.$ac_ext <<_LT_EOF
12680 #line 12680 "configure"
12681 #include "confdefs.h"
12682
12683 #if HAVE_DLFCN_H
12684 #include <dlfcn.h>
12685 #endif
12686
12687 #include <stdio.h>
12688
12689 #ifdef RTLD_GLOBAL
12690 #  define LT_DLGLOBAL           RTLD_GLOBAL
12691 #else
12692 #  ifdef DL_GLOBAL
12693 #    define LT_DLGLOBAL         DL_GLOBAL
12694 #  else
12695 #    define LT_DLGLOBAL         0
12696 #  endif
12697 #endif
12698
12699 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12700    find out it does not work in some platform. */
12701 #ifndef LT_DLLAZY_OR_NOW
12702 #  ifdef RTLD_LAZY
12703 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12704 #  else
12705 #    ifdef DL_LAZY
12706 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12707 #    else
12708 #      ifdef RTLD_NOW
12709 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12710 #      else
12711 #        ifdef DL_NOW
12712 #          define LT_DLLAZY_OR_NOW      DL_NOW
12713 #        else
12714 #          define LT_DLLAZY_OR_NOW      0
12715 #        endif
12716 #      endif
12717 #    endif
12718 #  endif
12719 #endif
12720
12721 void fnord() { int i=42;}
12722 int main ()
12723 {
12724   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12725   int status = $lt_dlunknown;
12726
12727   if (self)
12728     {
12729       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12730       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12731       /* dlclose (self); */
12732     }
12733   else
12734     puts (dlerror ());
12735
12736   return status;
12737 }
12738 _LT_EOF
12739   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12740   (eval $ac_link) 2>&5
12741   ac_status=$?
12742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12743   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12744     (./conftest; exit; ) >&5 2>/dev/null
12745     lt_status=$?
12746     case x$lt_status in
12747       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12748       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12749       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12750     esac
12751   else :
12752     # compilation failed
12753     lt_cv_dlopen_self=no
12754   fi
12755 fi
12756 rm -fr conftest*
12757
12758
12759 fi
12760 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12761 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
12762
12763     if test "x$lt_cv_dlopen_self" = xyes; then
12764       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12765       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12766 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
12767 if test "${lt_cv_dlopen_self_static+set}" = set; then
12768   echo $ECHO_N "(cached) $ECHO_C" >&6
12769 else
12770           if test "$cross_compiling" = yes; then :
12771   lt_cv_dlopen_self_static=cross
12772 else
12773   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12774   lt_status=$lt_dlunknown
12775   cat > conftest.$ac_ext <<_LT_EOF
12776 #line 12776 "configure"
12777 #include "confdefs.h"
12778
12779 #if HAVE_DLFCN_H
12780 #include <dlfcn.h>
12781 #endif
12782
12783 #include <stdio.h>
12784
12785 #ifdef RTLD_GLOBAL
12786 #  define LT_DLGLOBAL           RTLD_GLOBAL
12787 #else
12788 #  ifdef DL_GLOBAL
12789 #    define LT_DLGLOBAL         DL_GLOBAL
12790 #  else
12791 #    define LT_DLGLOBAL         0
12792 #  endif
12793 #endif
12794
12795 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12796    find out it does not work in some platform. */
12797 #ifndef LT_DLLAZY_OR_NOW
12798 #  ifdef RTLD_LAZY
12799 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12800 #  else
12801 #    ifdef DL_LAZY
12802 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12803 #    else
12804 #      ifdef RTLD_NOW
12805 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12806 #      else
12807 #        ifdef DL_NOW
12808 #          define LT_DLLAZY_OR_NOW      DL_NOW
12809 #        else
12810 #          define LT_DLLAZY_OR_NOW      0
12811 #        endif
12812 #      endif
12813 #    endif
12814 #  endif
12815 #endif
12816
12817 void fnord() { int i=42;}
12818 int main ()
12819 {
12820   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12821   int status = $lt_dlunknown;
12822
12823   if (self)
12824     {
12825       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12826       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12827       /* dlclose (self); */
12828     }
12829   else
12830     puts (dlerror ());
12831
12832   return status;
12833 }
12834 _LT_EOF
12835   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12836   (eval $ac_link) 2>&5
12837   ac_status=$?
12838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12839   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12840     (./conftest; exit; ) >&5 2>/dev/null
12841     lt_status=$?
12842     case x$lt_status in
12843       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12844       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12845       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12846     esac
12847   else :
12848     # compilation failed
12849     lt_cv_dlopen_self_static=no
12850   fi
12851 fi
12852 rm -fr conftest*
12853
12854
12855 fi
12856 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12857 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
12858     fi
12859
12860     CPPFLAGS="$save_CPPFLAGS"
12861     LDFLAGS="$save_LDFLAGS"
12862     LIBS="$save_LIBS"
12863     ;;
12864   esac
12865
12866   case $lt_cv_dlopen_self in
12867   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12868   *) enable_dlopen_self=unknown ;;
12869   esac
12870
12871   case $lt_cv_dlopen_self_static in
12872   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12873   *) enable_dlopen_self_static=unknown ;;
12874   esac
12875 fi
12876
12877
12878
12879
12880
12881
12882
12883
12884
12885
12886
12887
12888
12889
12890
12891
12892
12893 striplib=
12894 old_striplib=
12895 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12896 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
12897 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12898   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12899   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12900   { echo "$as_me:$LINENO: result: yes" >&5
12901 echo "${ECHO_T}yes" >&6; }
12902 else
12903 # FIXME - insert some real tests, host_os isn't really good enough
12904   case $host_os in
12905   darwin*)
12906     if test -n "$STRIP" ; then
12907       striplib="$STRIP -x"
12908       old_striplib="$STRIP -S"
12909       { echo "$as_me:$LINENO: result: yes" >&5
12910 echo "${ECHO_T}yes" >&6; }
12911     else
12912       { echo "$as_me:$LINENO: result: no" >&5
12913 echo "${ECHO_T}no" >&6; }
12914     fi
12915     ;;
12916   *)
12917     { echo "$as_me:$LINENO: result: no" >&5
12918 echo "${ECHO_T}no" >&6; }
12919     ;;
12920   esac
12921 fi
12922
12923
12924
12925
12926
12927
12928
12929
12930
12931
12932
12933
12934   # Report which library types will actually be built
12935   { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12936 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
12937   { echo "$as_me:$LINENO: result: $can_build_shared" >&5
12938 echo "${ECHO_T}$can_build_shared" >&6; }
12939
12940   { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12941 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
12942   test "$can_build_shared" = "no" && enable_shared=no
12943
12944   # On AIX, shared libraries and static libraries use the same namespace, and
12945   # are all built from PIC.
12946   case $host_os in
12947   aix3*)
12948     test "$enable_shared" = yes && enable_static=no
12949     if test -n "$RANLIB"; then
12950       archive_cmds="$archive_cmds~\$RANLIB \$lib"
12951       postinstall_cmds='$RANLIB $lib'
12952     fi
12953     ;;
12954
12955   aix[4-9]*)
12956     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12957       test "$enable_shared" = yes && enable_static=no
12958     fi
12959     ;;
12960   esac
12961   { echo "$as_me:$LINENO: result: $enable_shared" >&5
12962 echo "${ECHO_T}$enable_shared" >&6; }
12963
12964   { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12965 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
12966   # Make sure either enable_shared or enable_static is yes.
12967   test "$enable_shared" = yes || enable_static=yes
12968   { echo "$as_me:$LINENO: result: $enable_static" >&5
12969 echo "${ECHO_T}$enable_static" >&6; }
12970
12971
12972
12973
12974 fi
12975 ac_ext=c
12976 ac_cpp='$CPP $CPPFLAGS'
12977 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12978 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12979 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12980
12981 CC="$lt_save_CC"
12982
12983
12984 ac_ext=cpp
12985 ac_cpp='$CXXCPP $CPPFLAGS'
12986 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12987 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12988 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12989
12990 archive_cmds_need_lc_CXX=no
12991 allow_undefined_flag_CXX=
12992 always_export_symbols_CXX=no
12993 archive_expsym_cmds_CXX=
12994 compiler_needs_object_CXX=no
12995 export_dynamic_flag_spec_CXX=
12996 hardcode_direct_CXX=no
12997 hardcode_direct_absolute_CXX=no
12998 hardcode_libdir_flag_spec_CXX=
12999 hardcode_libdir_flag_spec_ld_CXX=
13000 hardcode_libdir_separator_CXX=
13001 hardcode_minus_L_CXX=no
13002 hardcode_shlibpath_var_CXX=unsupported
13003 hardcode_automatic_CXX=no
13004 inherit_rpath_CXX=no
13005 module_cmds_CXX=
13006 module_expsym_cmds_CXX=
13007 link_all_deplibs_CXX=unknown
13008 old_archive_cmds_CXX=$old_archive_cmds
13009 no_undefined_flag_CXX=
13010 whole_archive_flag_spec_CXX=
13011 enable_shared_with_static_runtimes_CXX=no
13012
13013 # Source file extension for C++ test sources.
13014 ac_ext=cpp
13015
13016 # Object file extension for compiled C++ test sources.
13017 objext=o
13018 objext_CXX=$objext
13019
13020 # No sense in running all these tests if we already determined that
13021 # the CXX compiler isn't working.  Some variables (like enable_shared)
13022 # are currently assumed to apply to all compilers on this platform,
13023 # and will be corrupted by setting them based on a non-working compiler.
13024 if test "$_lt_caught_CXX_error" != yes; then
13025   # Code to be used in simple compile tests
13026   lt_simple_compile_test_code="int some_variable = 0;"
13027
13028   # Code to be used in simple link tests
13029   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13030
13031   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13032
13033
13034
13035
13036
13037
13038 # If no C compiler was specified, use CC.
13039 LTCC=${LTCC-"$CC"}
13040
13041 # If no C compiler flags were specified, use CFLAGS.
13042 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13043
13044 # Allow CC to be a program name with arguments.
13045 compiler=$CC
13046
13047
13048   # save warnings/boilerplate of simple test code
13049   ac_outfile=conftest.$ac_objext
13050 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13051 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13052 _lt_compiler_boilerplate=`cat conftest.err`
13053 $RM conftest*
13054
13055   ac_outfile=conftest.$ac_objext
13056 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13057 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13058 _lt_linker_boilerplate=`cat conftest.err`
13059 $RM -r conftest*
13060
13061
13062   # Allow CC to be a program name with arguments.
13063   lt_save_CC=$CC
13064   lt_save_LD=$LD
13065   lt_save_GCC=$GCC
13066   GCC=$GXX
13067   lt_save_with_gnu_ld=$with_gnu_ld
13068   lt_save_path_LD=$lt_cv_path_LD
13069   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13070     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13071   else
13072     $as_unset lt_cv_prog_gnu_ld
13073   fi
13074   if test -n "${lt_cv_path_LDCXX+set}"; then
13075     lt_cv_path_LD=$lt_cv_path_LDCXX
13076   else
13077     $as_unset lt_cv_path_LD
13078   fi
13079   test -z "${LDCXX+set}" || LD=$LDCXX
13080   CC=${CXX-"c++"}
13081   compiler=$CC
13082   compiler_CXX=$CC
13083   for cc_temp in $compiler""; do
13084   case $cc_temp in
13085     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13086     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13087     \-*) ;;
13088     *) break;;
13089   esac
13090 done
13091 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13092
13093
13094   if test -n "$compiler"; then
13095     # We don't want -fno-exception when compiling C++ code, so set the
13096     # no_builtin_flag separately
13097     if test "$GXX" = yes; then
13098       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13099     else
13100       lt_prog_compiler_no_builtin_flag_CXX=
13101     fi
13102
13103     if test "$GXX" = yes; then
13104       # Set up default GNU C++ configuration
13105
13106
13107
13108 # Check whether --with-gnu-ld was given.
13109 if test "${with_gnu_ld+set}" = set; then
13110   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13111 else
13112   with_gnu_ld=no
13113 fi
13114
13115 ac_prog=ld
13116 if test "$GCC" = yes; then
13117   # Check if gcc -print-prog-name=ld gives a path.
13118   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
13119 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
13120   case $host in
13121   *-*-mingw*)
13122     # gcc leaves a trailing carriage return which upsets mingw
13123     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13124   *)
13125     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13126   esac
13127   case $ac_prog in
13128     # Accept absolute paths.
13129     [\\/]* | ?:[\\/]*)
13130       re_direlt='/[^/][^/]*/\.\./'
13131       # Canonicalize the pathname of ld
13132       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13133       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13134         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13135       done
13136       test -z "$LD" && LD="$ac_prog"
13137       ;;
13138   "")
13139     # If it fails, then pretend we aren't using GCC.
13140     ac_prog=ld
13141     ;;
13142   *)
13143     # If it is relative, then search for the first ld in PATH.
13144     with_gnu_ld=unknown
13145     ;;
13146   esac
13147 elif test "$with_gnu_ld" = yes; then
13148   { echo "$as_me:$LINENO: checking for GNU ld" >&5
13149 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
13150 else
13151   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
13152 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
13153 fi
13154 if test "${lt_cv_path_LD+set}" = set; then
13155   echo $ECHO_N "(cached) $ECHO_C" >&6
13156 else
13157   if test -z "$LD"; then
13158   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13159   for ac_dir in $PATH; do
13160     IFS="$lt_save_ifs"
13161     test -z "$ac_dir" && ac_dir=.
13162     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13163       lt_cv_path_LD="$ac_dir/$ac_prog"
13164       # Check to see if the program is GNU ld.  I'd rather use --version,
13165       # but apparently some variants of GNU ld only accept -v.
13166       # Break only if it was the GNU/non-GNU ld that we prefer.
13167       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13168       *GNU* | *'with BFD'*)
13169         test "$with_gnu_ld" != no && break
13170         ;;
13171       *)
13172         test "$with_gnu_ld" != yes && break
13173         ;;
13174       esac
13175     fi
13176   done
13177   IFS="$lt_save_ifs"
13178 else
13179   lt_cv_path_LD="$LD" # Let the user override the test with a path.
13180 fi
13181 fi
13182
13183 LD="$lt_cv_path_LD"
13184 if test -n "$LD"; then
13185   { echo "$as_me:$LINENO: result: $LD" >&5
13186 echo "${ECHO_T}$LD" >&6; }
13187 else
13188   { echo "$as_me:$LINENO: result: no" >&5
13189 echo "${ECHO_T}no" >&6; }
13190 fi
13191 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
13192 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
13193    { (exit 1); exit 1; }; }
13194 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
13195 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
13196 if test "${lt_cv_prog_gnu_ld+set}" = set; then
13197   echo $ECHO_N "(cached) $ECHO_C" >&6
13198 else
13199   # I'd rather use --version here, but apparently some GNU lds only accept -v.
13200 case `$LD -v 2>&1 </dev/null` in
13201 *GNU* | *'with BFD'*)
13202   lt_cv_prog_gnu_ld=yes
13203   ;;
13204 *)
13205   lt_cv_prog_gnu_ld=no
13206   ;;
13207 esac
13208 fi
13209 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
13210 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
13211 with_gnu_ld=$lt_cv_prog_gnu_ld
13212
13213
13214
13215
13216
13217
13218
13219       # Check if GNU C++ uses GNU ld as the underlying linker, since the
13220       # archiving commands below assume that GNU ld is being used.
13221       if test "$with_gnu_ld" = yes; then
13222         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13223         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'
13224
13225         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13226         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13227
13228         # If archive_cmds runs LD, not CC, wlarc should be empty
13229         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13230         #     investigate it a little bit more. (MM)
13231         wlarc='${wl}'
13232
13233         # ancient GNU ld didn't support --whole-archive et. al.
13234         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13235           $GREP 'no-whole-archive' > /dev/null; then
13236           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13237         else
13238           whole_archive_flag_spec_CXX=
13239         fi
13240       else
13241         with_gnu_ld=no
13242         wlarc=
13243
13244         # A generic and very simple default shared library creation
13245         # command for GNU C++ for the case where it uses the native
13246         # linker, instead of GNU ld.  If possible, this setting should
13247         # overridden to take advantage of the native linker features on
13248         # the platform it is being used on.
13249         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13250       fi
13251
13252       # Commands to make compiler produce verbose output that lists
13253       # what "hidden" libraries, object files and flags are used when
13254       # linking a shared library.
13255       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13256
13257     else
13258       GXX=no
13259       with_gnu_ld=no
13260       wlarc=
13261     fi
13262
13263     # PORTME: fill in a description of your system's C++ link characteristics
13264     { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13265 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
13266     ld_shlibs_CXX=yes
13267     case $host_os in
13268       aix3*)
13269         # FIXME: insert proper C++ library support
13270         ld_shlibs_CXX=no
13271         ;;
13272       aix[4-9]*)
13273         if test "$host_cpu" = ia64; then
13274           # On IA64, the linker does run time linking by default, so we don't
13275           # have to do anything special.
13276           aix_use_runtimelinking=no
13277           exp_sym_flag='-Bexport'
13278           no_entry_flag=""
13279         else
13280           aix_use_runtimelinking=no
13281
13282           # Test if we are trying to use run time linking or normal
13283           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13284           # need to do runtime linking.
13285           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13286             for ld_flag in $LDFLAGS; do
13287               case $ld_flag in
13288               *-brtl*)
13289                 aix_use_runtimelinking=yes
13290                 break
13291                 ;;
13292               esac
13293             done
13294             ;;
13295           esac
13296
13297           exp_sym_flag='-bexport'
13298           no_entry_flag='-bnoentry'
13299         fi
13300
13301         # When large executables or shared objects are built, AIX ld can
13302         # have problems creating the table of contents.  If linking a library
13303         # or program results in "error TOC overflow" add -mminimal-toc to
13304         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13305         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13306
13307         archive_cmds_CXX=''
13308         hardcode_direct_CXX=yes
13309         hardcode_direct_absolute_CXX=yes
13310         hardcode_libdir_separator_CXX=':'
13311         link_all_deplibs_CXX=yes
13312         file_list_spec_CXX='${wl}-f,'
13313
13314         if test "$GXX" = yes; then
13315           case $host_os in aix4.[012]|aix4.[012].*)
13316           # We only want to do this on AIX 4.2 and lower, the check
13317           # below for broken collect2 doesn't work under 4.3+
13318           collect2name=`${CC} -print-prog-name=collect2`
13319           if test -f "$collect2name" &&
13320              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13321           then
13322             # We have reworked collect2
13323             :
13324           else
13325             # We have old collect2
13326             hardcode_direct_CXX=unsupported
13327             # It fails to find uninstalled libraries when the uninstalled
13328             # path is not listed in the libpath.  Setting hardcode_minus_L
13329             # to unsupported forces relinking
13330             hardcode_minus_L_CXX=yes
13331             hardcode_libdir_flag_spec_CXX='-L$libdir'
13332             hardcode_libdir_separator_CXX=
13333           fi
13334           esac
13335           shared_flag='-shared'
13336           if test "$aix_use_runtimelinking" = yes; then
13337             shared_flag="$shared_flag "'${wl}-G'
13338           fi
13339         else
13340           # not using gcc
13341           if test "$host_cpu" = ia64; then
13342           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13343           # chokes on -Wl,-G. The following line is correct:
13344           shared_flag='-G'
13345           else
13346             if test "$aix_use_runtimelinking" = yes; then
13347               shared_flag='${wl}-G'
13348             else
13349               shared_flag='${wl}-bM:SRE'
13350             fi
13351           fi
13352         fi
13353
13354         export_dynamic_flag_spec_CXX='${wl}-bexpall'
13355         # It seems that -bexpall does not export symbols beginning with
13356         # underscore (_), so it is better to generate a list of symbols to
13357         # export.
13358         always_export_symbols_CXX=yes
13359         if test "$aix_use_runtimelinking" = yes; then
13360           # Warning - without using the other runtime loading flags (-brtl),
13361           # -berok will link without error, but may produce a broken library.
13362           allow_undefined_flag_CXX='-berok'
13363           # Determine the default libpath from the value encoded in an empty
13364           # executable.
13365           cat >conftest.$ac_ext <<_ACEOF
13366 /* confdefs.h.  */
13367 _ACEOF
13368 cat confdefs.h >>conftest.$ac_ext
13369 cat >>conftest.$ac_ext <<_ACEOF
13370 /* end confdefs.h.  */
13371
13372 int
13373 main ()
13374 {
13375
13376   ;
13377   return 0;
13378 }
13379 _ACEOF
13380 rm -f conftest.$ac_objext conftest$ac_exeext
13381 if { (ac_try="$ac_link"
13382 case "(($ac_try" in
13383   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13384   *) ac_try_echo=$ac_try;;
13385 esac
13386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13387   (eval "$ac_link") 2>conftest.er1
13388   ac_status=$?
13389   grep -v '^ *+' conftest.er1 >conftest.err
13390   rm -f conftest.er1
13391   cat conftest.err >&5
13392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13393   (exit $ac_status); } && {
13394          test -z "$ac_cxx_werror_flag" ||
13395          test ! -s conftest.err
13396        } && test -s conftest$ac_exeext &&
13397        $as_test_x conftest$ac_exeext; then
13398
13399 lt_aix_libpath_sed='
13400     /Import File Strings/,/^$/ {
13401         /^0/ {
13402             s/^0  *\(.*\)$/\1/
13403             p
13404         }
13405     }'
13406 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13407 # Check for a 64-bit object if we didn't find anything.
13408 if test -z "$aix_libpath"; then
13409   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13410 fi
13411 else
13412   echo "$as_me: failed program was:" >&5
13413 sed 's/^/| /' conftest.$ac_ext >&5
13414
13415
13416 fi
13417
13418 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13419       conftest$ac_exeext conftest.$ac_ext
13420 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13421
13422           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13423
13424           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"
13425         else
13426           if test "$host_cpu" = ia64; then
13427             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13428             allow_undefined_flag_CXX="-z nodefs"
13429             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"
13430           else
13431             # Determine the default libpath from the value encoded in an
13432             # empty executable.
13433             cat >conftest.$ac_ext <<_ACEOF
13434 /* confdefs.h.  */
13435 _ACEOF
13436 cat confdefs.h >>conftest.$ac_ext
13437 cat >>conftest.$ac_ext <<_ACEOF
13438 /* end confdefs.h.  */
13439
13440 int
13441 main ()
13442 {
13443
13444   ;
13445   return 0;
13446 }
13447 _ACEOF
13448 rm -f conftest.$ac_objext conftest$ac_exeext
13449 if { (ac_try="$ac_link"
13450 case "(($ac_try" in
13451   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13452   *) ac_try_echo=$ac_try;;
13453 esac
13454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13455   (eval "$ac_link") 2>conftest.er1
13456   ac_status=$?
13457   grep -v '^ *+' conftest.er1 >conftest.err
13458   rm -f conftest.er1
13459   cat conftest.err >&5
13460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13461   (exit $ac_status); } && {
13462          test -z "$ac_cxx_werror_flag" ||
13463          test ! -s conftest.err
13464        } && test -s conftest$ac_exeext &&
13465        $as_test_x conftest$ac_exeext; then
13466
13467 lt_aix_libpath_sed='
13468     /Import File Strings/,/^$/ {
13469         /^0/ {
13470             s/^0  *\(.*\)$/\1/
13471             p
13472         }
13473     }'
13474 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13475 # Check for a 64-bit object if we didn't find anything.
13476 if test -z "$aix_libpath"; then
13477   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13478 fi
13479 else
13480   echo "$as_me: failed program was:" >&5
13481 sed 's/^/| /' conftest.$ac_ext >&5
13482
13483
13484 fi
13485
13486 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13487       conftest$ac_exeext conftest.$ac_ext
13488 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13489
13490             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13491             # Warning - without using the other run time loading flags,
13492             # -berok will link without error, but may produce a broken library.
13493             no_undefined_flag_CXX=' ${wl}-bernotok'
13494             allow_undefined_flag_CXX=' ${wl}-berok'
13495             # Exported symbols can be pulled into shared objects from archives
13496             whole_archive_flag_spec_CXX='$convenience'
13497             archive_cmds_need_lc_CXX=yes
13498             # This is similar to how AIX traditionally builds its shared
13499             # libraries.
13500             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'
13501           fi
13502         fi
13503         ;;
13504
13505       beos*)
13506         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13507           allow_undefined_flag_CXX=unsupported
13508           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13509           # support --undefined.  This deserves some investigation.  FIXME
13510           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13511         else
13512           ld_shlibs_CXX=no
13513         fi
13514         ;;
13515
13516       chorus*)
13517         case $cc_basename in
13518           *)
13519           # FIXME: insert proper C++ library support
13520           ld_shlibs_CXX=no
13521           ;;
13522         esac
13523         ;;
13524
13525       cygwin* | mingw* | pw32* | cegcc*)
13526         # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13527         # as there is no search path for DLLs.
13528         hardcode_libdir_flag_spec_CXX='-L$libdir'
13529         allow_undefined_flag_CXX=unsupported
13530         always_export_symbols_CXX=no
13531         enable_shared_with_static_runtimes_CXX=yes
13532
13533         if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13534           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'
13535           # If the export-symbols file already is a .def file (1st line
13536           # is EXPORTS), use it as is; otherwise, prepend...
13537           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13538             cp $export_symbols $output_objdir/$soname.def;
13539           else
13540             echo EXPORTS > $output_objdir/$soname.def;
13541             cat $export_symbols >> $output_objdir/$soname.def;
13542           fi~
13543           $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'
13544         else
13545           ld_shlibs_CXX=no
13546         fi
13547         ;;
13548       darwin* | rhapsody*)
13549
13550
13551   archive_cmds_need_lc_CXX=no
13552   hardcode_direct_CXX=no
13553   hardcode_automatic_CXX=yes
13554   hardcode_shlibpath_var_CXX=unsupported
13555   whole_archive_flag_spec_CXX=''
13556   link_all_deplibs_CXX=yes
13557   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13558   case $cc_basename in
13559      ifort*) _lt_dar_can_shared=yes ;;
13560      *) _lt_dar_can_shared=$GCC ;;
13561   esac
13562   if test "$_lt_dar_can_shared" = "yes"; then
13563     output_verbose_link_cmd=echo
13564     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}"
13565     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13566     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}"
13567     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}"
13568        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13569       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}"
13570       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}"
13571     fi
13572
13573   else
13574   ld_shlibs_CXX=no
13575   fi
13576
13577         ;;
13578
13579       dgux*)
13580         case $cc_basename in
13581           ec++*)
13582             # FIXME: insert proper C++ library support
13583             ld_shlibs_CXX=no
13584             ;;
13585           ghcx*)
13586             # Green Hills C++ Compiler
13587             # FIXME: insert proper C++ library support
13588             ld_shlibs_CXX=no
13589             ;;
13590           *)
13591             # FIXME: insert proper C++ library support
13592             ld_shlibs_CXX=no
13593             ;;
13594         esac
13595         ;;
13596
13597       freebsd[12]*)
13598         # C++ shared libraries reported to be fairly broken before
13599         # switch to ELF
13600         ld_shlibs_CXX=no
13601         ;;
13602
13603       freebsd-elf*)
13604         archive_cmds_need_lc_CXX=no
13605         ;;
13606
13607       freebsd* | dragonfly*)
13608         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13609         # conventions
13610         ld_shlibs_CXX=yes
13611         ;;
13612
13613       gnu*)
13614         ;;
13615
13616       hpux9*)
13617         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13618         hardcode_libdir_separator_CXX=:
13619         export_dynamic_flag_spec_CXX='${wl}-E'
13620         hardcode_direct_CXX=yes
13621         hardcode_minus_L_CXX=yes # Not in the search PATH,
13622                                              # but as the default
13623                                              # location of the library.
13624
13625         case $cc_basename in
13626           CC*)
13627             # FIXME: insert proper C++ library support
13628             ld_shlibs_CXX=no
13629             ;;
13630           aCC*)
13631             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'
13632             # Commands to make compiler produce verbose output that lists
13633             # what "hidden" libraries, object files and flags are used when
13634             # linking a shared library.
13635             #
13636             # There doesn't appear to be a way to prevent this compiler from
13637             # explicitly linking system object files so we need to strip them
13638             # from the output so that they don't get included in the library
13639             # dependencies.
13640             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'
13641             ;;
13642           *)
13643             if test "$GXX" = yes; then
13644               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'
13645             else
13646               # FIXME: insert proper C++ library support
13647               ld_shlibs_CXX=no
13648             fi
13649             ;;
13650         esac
13651         ;;
13652
13653       hpux10*|hpux11*)
13654         if test $with_gnu_ld = no; then
13655           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13656           hardcode_libdir_separator_CXX=:
13657
13658           case $host_cpu in
13659             hppa*64*|ia64*)
13660               ;;
13661             *)
13662               export_dynamic_flag_spec_CXX='${wl}-E'
13663               ;;
13664           esac
13665         fi
13666         case $host_cpu in
13667           hppa*64*|ia64*)
13668             hardcode_direct_CXX=no
13669             hardcode_shlibpath_var_CXX=no
13670             ;;
13671           *)
13672             hardcode_direct_CXX=yes
13673             hardcode_direct_absolute_CXX=yes
13674             hardcode_minus_L_CXX=yes # Not in the search PATH,
13675                                                  # but as the default
13676                                                  # location of the library.
13677             ;;
13678         esac
13679
13680         case $cc_basename in
13681           CC*)
13682             # FIXME: insert proper C++ library support
13683             ld_shlibs_CXX=no
13684             ;;
13685           aCC*)
13686             case $host_cpu in
13687               hppa*64*)
13688                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13689                 ;;
13690               ia64*)
13691                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13692                 ;;
13693               *)
13694                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13695                 ;;
13696             esac
13697             # Commands to make compiler produce verbose output that lists
13698             # what "hidden" libraries, object files and flags are used when
13699             # linking a shared library.
13700             #
13701             # There doesn't appear to be a way to prevent this compiler from
13702             # explicitly linking system object files so we need to strip them
13703             # from the output so that they don't get included in the library
13704             # dependencies.
13705             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'
13706             ;;
13707           *)
13708             if test "$GXX" = yes; then
13709               if test $with_gnu_ld = no; then
13710                 case $host_cpu in
13711                   hppa*64*)
13712                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13713                     ;;
13714                   ia64*)
13715                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13716                     ;;
13717                   *)
13718                     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'
13719                     ;;
13720                 esac
13721               fi
13722             else
13723               # FIXME: insert proper C++ library support
13724               ld_shlibs_CXX=no
13725             fi
13726             ;;
13727         esac
13728         ;;
13729
13730       interix[3-9]*)
13731         hardcode_direct_CXX=no
13732         hardcode_shlibpath_var_CXX=no
13733         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13734         export_dynamic_flag_spec_CXX='${wl}-E'
13735         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13736         # Instead, shared libraries are loaded at an image base (0x10000000 by
13737         # default) and relocated if they conflict, which is a slow very memory
13738         # consuming and fragmenting process.  To avoid this, we pick a random,
13739         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13740         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13741         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'
13742         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'
13743         ;;
13744       irix5* | irix6*)
13745         case $cc_basename in
13746           CC*)
13747             # SGI C++
13748             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'
13749
13750             # Archives containing C++ object files must be created using
13751             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
13752             # necessary to make sure instantiated templates are included
13753             # in the archive.
13754             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13755             ;;
13756           *)
13757             if test "$GXX" = yes; then
13758               if test "$with_gnu_ld" = no; then
13759                 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'
13760               else
13761                 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'
13762               fi
13763             fi
13764             link_all_deplibs_CXX=yes
13765             ;;
13766         esac
13767         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13768         hardcode_libdir_separator_CXX=:
13769         inherit_rpath_CXX=yes
13770         ;;
13771
13772       linux* | k*bsd*-gnu)
13773         case $cc_basename in
13774           KCC*)
13775             # Kuck and Associates, Inc. (KAI) C++ Compiler
13776
13777             # KCC will only create a shared library if the output file
13778             # ends with ".so" (or ".sl" for HP-UX), so rename the library
13779             # to its proper name (with version) after linking.
13780             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'
13781             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'
13782             # Commands to make compiler produce verbose output that lists
13783             # what "hidden" libraries, object files and flags are used when
13784             # linking a shared library.
13785             #
13786             # There doesn't appear to be a way to prevent this compiler from
13787             # explicitly linking system object files so we need to strip them
13788             # from the output so that they don't get included in the library
13789             # dependencies.
13790             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'
13791
13792             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13793             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13794
13795             # Archives containing C++ object files must be created using
13796             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13797             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13798             ;;
13799           icpc* | ecpc* )
13800             # Intel C++
13801             with_gnu_ld=yes
13802             # version 8.0 and above of icpc choke on multiply defined symbols
13803             # if we add $predep_objects and $postdep_objects, however 7.1 and
13804             # earlier do not add the objects themselves.
13805             case `$CC -V 2>&1` in
13806               *"Version 7."*)
13807                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13808                 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'
13809                 ;;
13810               *)  # Version 8.0 or newer
13811                 tmp_idyn=
13812                 case $host_cpu in
13813                   ia64*) tmp_idyn=' -i_dynamic';;
13814                 esac
13815                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13816                 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'
13817                 ;;
13818             esac
13819             archive_cmds_need_lc_CXX=no
13820             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13821             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13822             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13823             ;;
13824           pgCC* | pgcpp*)
13825             # Portland Group C++ compiler
13826             case `$CC -V` in
13827             *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
13828               prelink_cmds_CXX='tpldir=Template.dir~
13829                 rm -rf $tpldir~
13830                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13831                 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
13832               old_archive_cmds_CXX='tpldir=Template.dir~
13833                 rm -rf $tpldir~
13834                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13835                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
13836                 $RANLIB $oldlib'
13837               archive_cmds_CXX='tpldir=Template.dir~
13838                 rm -rf $tpldir~
13839                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13840                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13841               archive_expsym_cmds_CXX='tpldir=Template.dir~
13842                 rm -rf $tpldir~
13843                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13844                 $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'
13845               ;;
13846             *) # Version 6 will use weak symbols
13847               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13848               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'
13849               ;;
13850             esac
13851
13852             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13853             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13854             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'
13855             ;;
13856           cxx*)
13857             # Compaq C++
13858             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13859             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'
13860
13861             runpath_var=LD_RUN_PATH
13862             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13863             hardcode_libdir_separator_CXX=:
13864
13865             # Commands to make compiler produce verbose output that lists
13866             # what "hidden" libraries, object files and flags are used when
13867             # linking a shared library.
13868             #
13869             # There doesn't appear to be a way to prevent this compiler from
13870             # explicitly linking system object files so we need to strip them
13871             # from the output so that they don't get included in the library
13872             # dependencies.
13873             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'
13874             ;;
13875           xl*)
13876             # IBM XL 8.0 on PPC, with GNU ld
13877             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13878             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13879             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13880             if test "x$supports_anon_versioning" = xyes; then
13881               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13882                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13883                 echo "local: *; };" >> $output_objdir/$libname.ver~
13884                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13885             fi
13886             ;;
13887           *)
13888             case `$CC -V 2>&1 | sed 5q` in
13889             *Sun\ C*)
13890               # Sun C++ 5.9
13891               no_undefined_flag_CXX=' -zdefs'
13892               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13893               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'
13894               hardcode_libdir_flag_spec_CXX='-R$libdir'
13895               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'
13896               compiler_needs_object_CXX=yes
13897
13898               # Not sure whether something based on
13899               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13900               # would be better.
13901               output_verbose_link_cmd='echo'
13902
13903               # Archives containing C++ object files must be created using
13904               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13905               # necessary to make sure instantiated templates are included
13906               # in the archive.
13907               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13908               ;;
13909             esac
13910             ;;
13911         esac
13912         ;;
13913
13914       lynxos*)
13915         # FIXME: insert proper C++ library support
13916         ld_shlibs_CXX=no
13917         ;;
13918
13919       m88k*)
13920         # FIXME: insert proper C++ library support
13921         ld_shlibs_CXX=no
13922         ;;
13923
13924       mvs*)
13925         case $cc_basename in
13926           cxx*)
13927             # FIXME: insert proper C++ library support
13928             ld_shlibs_CXX=no
13929             ;;
13930           *)
13931             # FIXME: insert proper C++ library support
13932             ld_shlibs_CXX=no
13933             ;;
13934         esac
13935         ;;
13936
13937       netbsd*)
13938         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13939           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13940           wlarc=
13941           hardcode_libdir_flag_spec_CXX='-R$libdir'
13942           hardcode_direct_CXX=yes
13943           hardcode_shlibpath_var_CXX=no
13944         fi
13945         # Workaround some broken pre-1.5 toolchains
13946         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13947         ;;
13948
13949       *nto* | *qnx*)
13950         ld_shlibs_CXX=yes
13951         ;;
13952
13953       openbsd2*)
13954         # C++ shared libraries are fairly broken
13955         ld_shlibs_CXX=no
13956         ;;
13957
13958       openbsd*)
13959         if test -f /usr/libexec/ld.so; then
13960           hardcode_direct_CXX=yes
13961           hardcode_shlibpath_var_CXX=no
13962           hardcode_direct_absolute_CXX=yes
13963           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13964           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13965           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13966             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13967             export_dynamic_flag_spec_CXX='${wl}-E'
13968             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13969           fi
13970           output_verbose_link_cmd=echo
13971         else
13972           ld_shlibs_CXX=no
13973         fi
13974         ;;
13975
13976       osf3* | osf4* | osf5*)
13977         case $cc_basename in
13978           KCC*)
13979             # Kuck and Associates, Inc. (KAI) C++ Compiler
13980
13981             # KCC will only create a shared library if the output file
13982             # ends with ".so" (or ".sl" for HP-UX), so rename the library
13983             # to its proper name (with version) after linking.
13984             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'
13985
13986             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13987             hardcode_libdir_separator_CXX=:
13988
13989             # Archives containing C++ object files must be created using
13990             # the KAI C++ compiler.
13991             case $host in
13992               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13993               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13994             esac
13995             ;;
13996           RCC*)
13997             # Rational C++ 2.4.1
13998             # FIXME: insert proper C++ library support
13999             ld_shlibs_CXX=no
14000             ;;
14001           cxx*)
14002             case $host in
14003               osf3*)
14004                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14005                 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'
14006                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14007                 ;;
14008               *)
14009                 allow_undefined_flag_CXX=' -expect_unresolved \*'
14010                 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'
14011                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14012                   echo "-hidden">> $lib.exp~
14013                   $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~
14014                   $RM $lib.exp'
14015                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14016                 ;;
14017             esac
14018
14019             hardcode_libdir_separator_CXX=:
14020
14021             # Commands to make compiler produce verbose output that lists
14022             # what "hidden" libraries, object files and flags are used when
14023             # linking a shared library.
14024             #
14025             # There doesn't appear to be a way to prevent this compiler from
14026             # explicitly linking system object files so we need to strip them
14027             # from the output so that they don't get included in the library
14028             # dependencies.
14029             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'
14030             ;;
14031           *)
14032             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14033               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14034               case $host in
14035                 osf3*)
14036                   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'
14037                   ;;
14038                 *)
14039                   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'
14040                   ;;
14041               esac
14042
14043               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14044               hardcode_libdir_separator_CXX=:
14045
14046               # Commands to make compiler produce verbose output that lists
14047               # what "hidden" libraries, object files and flags are used when
14048               # linking a shared library.
14049               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14050
14051             else
14052               # FIXME: insert proper C++ library support
14053               ld_shlibs_CXX=no
14054             fi
14055             ;;
14056         esac
14057         ;;
14058
14059       psos*)
14060         # FIXME: insert proper C++ library support
14061         ld_shlibs_CXX=no
14062         ;;
14063
14064       sunos4*)
14065         case $cc_basename in
14066           CC*)
14067             # Sun C++ 4.x
14068             # FIXME: insert proper C++ library support
14069             ld_shlibs_CXX=no
14070             ;;
14071           lcc*)
14072             # Lucid
14073             # FIXME: insert proper C++ library support
14074             ld_shlibs_CXX=no
14075             ;;
14076           *)
14077             # FIXME: insert proper C++ library support
14078             ld_shlibs_CXX=no
14079             ;;
14080         esac
14081         ;;
14082
14083       solaris*)
14084         case $cc_basename in
14085           CC*)
14086             # Sun C++ 4.2, 5.x and Centerline C++
14087             archive_cmds_need_lc_CXX=yes
14088             no_undefined_flag_CXX=' -zdefs'
14089             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14090             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14091               $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'
14092
14093             hardcode_libdir_flag_spec_CXX='-R$libdir'
14094             hardcode_shlibpath_var_CXX=no
14095             case $host_os in
14096               solaris2.[0-5] | solaris2.[0-5].*) ;;
14097               *)
14098                 # The compiler driver will combine and reorder linker options,
14099                 # but understands `-z linker_flag'.
14100                 # Supported since Solaris 2.6 (maybe 2.5.1?)
14101                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14102                 ;;
14103             esac
14104             link_all_deplibs_CXX=yes
14105
14106             output_verbose_link_cmd='echo'
14107
14108             # Archives containing C++ object files must be created using
14109             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
14110             # necessary to make sure instantiated templates are included
14111             # in the archive.
14112             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14113             ;;
14114           gcx*)
14115             # Green Hills C++ Compiler
14116             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14117
14118             # The C++ compiler must be used to create the archive.
14119             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14120             ;;
14121           *)
14122             # GNU C++ compiler with Solaris linker
14123             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14124               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14125               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14126                 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14127                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14128                   $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14129
14130                 # Commands to make compiler produce verbose output that lists
14131                 # what "hidden" libraries, object files and flags are used when
14132                 # linking a shared library.
14133                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14134               else
14135                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
14136                 # platform.
14137                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14138                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14139                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14140
14141                 # Commands to make compiler produce verbose output that lists
14142                 # what "hidden" libraries, object files and flags are used when
14143                 # linking a shared library.
14144                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14145               fi
14146
14147               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14148               case $host_os in
14149                 solaris2.[0-5] | solaris2.[0-5].*) ;;
14150                 *)
14151                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14152                   ;;
14153               esac
14154             fi
14155             ;;
14156         esac
14157         ;;
14158
14159     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14160       no_undefined_flag_CXX='${wl}-z,text'
14161       archive_cmds_need_lc_CXX=no
14162       hardcode_shlibpath_var_CXX=no
14163       runpath_var='LD_RUN_PATH'
14164
14165       case $cc_basename in
14166         CC*)
14167           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14168           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14169           ;;
14170         *)
14171           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14172           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14173           ;;
14174       esac
14175       ;;
14176
14177       sysv5* | sco3.2v5* | sco5v6*)
14178         # Note: We can NOT use -z defs as we might desire, because we do not
14179         # link with -lc, and that would cause any symbols used from libc to
14180         # always be unresolved, which means just about no library would
14181         # ever link correctly.  If we're not using GNU ld we use -z text
14182         # though, which does catch some bad symbols but isn't as heavy-handed
14183         # as -z defs.
14184         no_undefined_flag_CXX='${wl}-z,text'
14185         allow_undefined_flag_CXX='${wl}-z,nodefs'
14186         archive_cmds_need_lc_CXX=no
14187         hardcode_shlibpath_var_CXX=no
14188         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14189         hardcode_libdir_separator_CXX=':'
14190         link_all_deplibs_CXX=yes
14191         export_dynamic_flag_spec_CXX='${wl}-Bexport'
14192         runpath_var='LD_RUN_PATH'
14193
14194         case $cc_basename in
14195           CC*)
14196             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14197             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14198             ;;
14199           *)
14200             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14201             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14202             ;;
14203         esac
14204       ;;
14205
14206       tandem*)
14207         case $cc_basename in
14208           NCC*)
14209             # NonStop-UX NCC 3.20
14210             # FIXME: insert proper C++ library support
14211             ld_shlibs_CXX=no
14212             ;;
14213           *)
14214             # FIXME: insert proper C++ library support
14215             ld_shlibs_CXX=no
14216             ;;
14217         esac
14218         ;;
14219
14220       vxworks*)
14221         # FIXME: insert proper C++ library support
14222         ld_shlibs_CXX=no
14223         ;;
14224
14225       *)
14226         # FIXME: insert proper C++ library support
14227         ld_shlibs_CXX=no
14228         ;;
14229     esac
14230
14231     { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14232 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
14233     test "$ld_shlibs_CXX" = no && can_build_shared=no
14234
14235     GCC_CXX="$GXX"
14236     LD_CXX="$LD"
14237
14238     ## CAVEAT EMPTOR:
14239     ## There is no encapsulation within the following macros, do not change
14240     ## the running order or otherwise move them around unless you know exactly
14241     ## what you are doing...
14242     # Dependencies to place before and after the object being linked:
14243 predep_objects_CXX=
14244 postdep_objects_CXX=
14245 predeps_CXX=
14246 postdeps_CXX=
14247 compiler_lib_search_path_CXX=
14248
14249 cat > conftest.$ac_ext <<_LT_EOF
14250 class Foo
14251 {
14252 public:
14253   Foo (void) { a = 0; }
14254 private:
14255   int a;
14256 };
14257 _LT_EOF
14258
14259 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14260   (eval $ac_compile) 2>&5
14261   ac_status=$?
14262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14263   (exit $ac_status); }; then
14264   # Parse the compiler output and extract the necessary
14265   # objects, libraries and library flags.
14266
14267   # Sentinel used to keep track of whether or not we are before
14268   # the conftest object file.
14269   pre_test_object_deps_done=no
14270
14271   for p in `eval "$output_verbose_link_cmd"`; do
14272     case $p in
14273
14274     -L* | -R* | -l*)
14275        # Some compilers place space between "-{L,R}" and the path.
14276        # Remove the space.
14277        if test $p = "-L" ||
14278           test $p = "-R"; then
14279          prev=$p
14280          continue
14281        else
14282          prev=
14283        fi
14284
14285        if test "$pre_test_object_deps_done" = no; then
14286          case $p in
14287          -L* | -R*)
14288            # Internal compiler library paths should come after those
14289            # provided the user.  The postdeps already come after the
14290            # user supplied libs so there is no need to process them.
14291            if test -z "$compiler_lib_search_path_CXX"; then
14292              compiler_lib_search_path_CXX="${prev}${p}"
14293            else
14294              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14295            fi
14296            ;;
14297          # The "-l" case would never come before the object being
14298          # linked, so don't bother handling this case.
14299          esac
14300        else
14301          if test -z "$postdeps_CXX"; then
14302            postdeps_CXX="${prev}${p}"
14303          else
14304            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14305          fi
14306        fi
14307        ;;
14308
14309     *.$objext)
14310        # This assumes that the test object file only shows up
14311        # once in the compiler output.
14312        if test "$p" = "conftest.$objext"; then
14313          pre_test_object_deps_done=yes
14314          continue
14315        fi
14316
14317        if test "$pre_test_object_deps_done" = no; then
14318          if test -z "$predep_objects_CXX"; then
14319            predep_objects_CXX="$p"
14320          else
14321            predep_objects_CXX="$predep_objects_CXX $p"
14322          fi
14323        else
14324          if test -z "$postdep_objects_CXX"; then
14325            postdep_objects_CXX="$p"
14326          else
14327            postdep_objects_CXX="$postdep_objects_CXX $p"
14328          fi
14329        fi
14330        ;;
14331
14332     *) ;; # Ignore the rest.
14333
14334     esac
14335   done
14336
14337   # Clean up.
14338   rm -f a.out a.exe
14339 else
14340   echo "libtool.m4: error: problem compiling CXX test program"
14341 fi
14342
14343 $RM -f confest.$objext
14344
14345 # PORTME: override above test on systems where it is broken
14346 case $host_os in
14347 interix[3-9]*)
14348   # Interix 3.5 installs completely hosed .la files for C++, so rather than
14349   # hack all around it, let's just trust "g++" to DTRT.
14350   predep_objects_CXX=
14351   postdep_objects_CXX=
14352   postdeps_CXX=
14353   ;;
14354
14355 linux*)
14356   case `$CC -V 2>&1 | sed 5q` in
14357   *Sun\ C*)
14358     # Sun C++ 5.9
14359
14360     # The more standards-conforming stlport4 library is
14361     # incompatible with the Cstd library. Avoid specifying
14362     # it if it's in CXXFLAGS. Ignore libCrun as
14363     # -library=stlport4 depends on it.
14364     case " $CXX $CXXFLAGS " in
14365     *" -library=stlport4 "*)
14366       solaris_use_stlport4=yes
14367       ;;
14368     esac
14369
14370     if test "$solaris_use_stlport4" != yes; then
14371       postdeps_CXX='-library=Cstd -library=Crun'
14372     fi
14373     ;;
14374   esac
14375   ;;
14376
14377 solaris*)
14378   case $cc_basename in
14379   CC*)
14380     # The more standards-conforming stlport4 library is
14381     # incompatible with the Cstd library. Avoid specifying
14382     # it if it's in CXXFLAGS. Ignore libCrun as
14383     # -library=stlport4 depends on it.
14384     case " $CXX $CXXFLAGS " in
14385     *" -library=stlport4 "*)
14386       solaris_use_stlport4=yes
14387       ;;
14388     esac
14389
14390     # Adding this requires a known-good setup of shared libraries for
14391     # Sun compiler versions before 5.6, else PIC objects from an old
14392     # archive will be linked into the output, leading to subtle bugs.
14393     if test "$solaris_use_stlport4" != yes; then
14394       postdeps_CXX='-library=Cstd -library=Crun'
14395     fi
14396     ;;
14397   esac
14398   ;;
14399 esac
14400
14401
14402 case " $postdeps_CXX " in
14403 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14404 esac
14405  compiler_lib_search_dirs_CXX=
14406 if test -n "${compiler_lib_search_path_CXX}"; then
14407  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14408 fi
14409
14410
14411
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     lt_prog_compiler_wl_CXX=
14441 lt_prog_compiler_pic_CXX=
14442 lt_prog_compiler_static_CXX=
14443
14444 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14445 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14446
14447   # C++ specific cases for pic, static, wl, etc.
14448   if test "$GXX" = yes; then
14449     lt_prog_compiler_wl_CXX='-Wl,'
14450     lt_prog_compiler_static_CXX='-static'
14451
14452     case $host_os in
14453     aix*)
14454       # All AIX code is PIC.
14455       if test "$host_cpu" = ia64; then
14456         # AIX 5 now supports IA64 processor
14457         lt_prog_compiler_static_CXX='-Bstatic'
14458       fi
14459       ;;
14460
14461     amigaos*)
14462       case $host_cpu in
14463       powerpc)
14464             # see comment about AmigaOS4 .so support
14465             lt_prog_compiler_pic_CXX='-fPIC'
14466         ;;
14467       m68k)
14468             # FIXME: we need at least 68020 code to build shared libraries, but
14469             # adding the `-m68020' flag to GCC prevents building anything better,
14470             # like `-m68040'.
14471             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14472         ;;
14473       esac
14474       ;;
14475
14476     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14477       # PIC is the default for these OSes.
14478       ;;
14479     mingw* | cygwin* | os2* | pw32* | cegcc*)
14480       # This hack is so that the source file can tell whether it is being
14481       # built for inclusion in a dll (and should export symbols for example).
14482       # Although the cygwin gcc ignores -fPIC, still need this for old-style
14483       # (--disable-auto-import) libraries
14484       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14485       ;;
14486     darwin* | rhapsody*)
14487       # PIC is the default on this platform
14488       # Common symbols not allowed in MH_DYLIB files
14489       lt_prog_compiler_pic_CXX='-fno-common'
14490       ;;
14491     *djgpp*)
14492       # DJGPP does not support shared libraries at all
14493       lt_prog_compiler_pic_CXX=
14494       ;;
14495     interix[3-9]*)
14496       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14497       # Instead, we relocate shared libraries at runtime.
14498       ;;
14499     sysv4*MP*)
14500       if test -d /usr/nec; then
14501         lt_prog_compiler_pic_CXX=-Kconform_pic
14502       fi
14503       ;;
14504     hpux*)
14505       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14506       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
14507       # sets the default TLS model and affects inlining.
14508       case $host_cpu in
14509       hppa*64*)
14510         ;;
14511       *)
14512         lt_prog_compiler_pic_CXX='-fPIC'
14513         ;;
14514       esac
14515       ;;
14516     *qnx* | *nto*)
14517       # QNX uses GNU C++, but need to define -shared option too, otherwise
14518       # it will coredump.
14519       lt_prog_compiler_pic_CXX='-fPIC -shared'
14520       ;;
14521     *)
14522       lt_prog_compiler_pic_CXX='-fPIC'
14523       ;;
14524     esac
14525   else
14526     case $host_os in
14527       aix[4-9]*)
14528         # All AIX code is PIC.
14529         if test "$host_cpu" = ia64; then
14530           # AIX 5 now supports IA64 processor
14531           lt_prog_compiler_static_CXX='-Bstatic'
14532         else
14533           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14534         fi
14535         ;;
14536       chorus*)
14537         case $cc_basename in
14538         cxch68*)
14539           # Green Hills C++ Compiler
14540           # _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"
14541           ;;
14542         esac
14543         ;;
14544       dgux*)
14545         case $cc_basename in
14546           ec++*)
14547             lt_prog_compiler_pic_CXX='-KPIC'
14548             ;;
14549           ghcx*)
14550             # Green Hills C++ Compiler
14551             lt_prog_compiler_pic_CXX='-pic'
14552             ;;
14553           *)
14554             ;;
14555         esac
14556         ;;
14557       freebsd* | dragonfly*)
14558         # FreeBSD uses GNU C++
14559         ;;
14560       hpux9* | hpux10* | hpux11*)
14561         case $cc_basename in
14562           CC*)
14563             lt_prog_compiler_wl_CXX='-Wl,'
14564             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14565             if test "$host_cpu" != ia64; then
14566               lt_prog_compiler_pic_CXX='+Z'
14567             fi
14568             ;;
14569           aCC*)
14570             lt_prog_compiler_wl_CXX='-Wl,'
14571             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14572             case $host_cpu in
14573             hppa*64*|ia64*)
14574               # +Z the default
14575               ;;
14576             *)
14577               lt_prog_compiler_pic_CXX='+Z'
14578               ;;
14579             esac
14580             ;;
14581           *)
14582             ;;
14583         esac
14584         ;;
14585       interix*)
14586         # This is c89, which is MS Visual C++ (no shared libs)
14587         # Anyone wants to do a port?
14588         ;;
14589       irix5* | irix6* | nonstopux*)
14590         case $cc_basename in
14591           CC*)
14592             lt_prog_compiler_wl_CXX='-Wl,'
14593             lt_prog_compiler_static_CXX='-non_shared'
14594             # CC pic flag -KPIC is the default.
14595             ;;
14596           *)
14597             ;;
14598         esac
14599         ;;
14600       linux* | k*bsd*-gnu)
14601         case $cc_basename in
14602           KCC*)
14603             # KAI C++ Compiler
14604             lt_prog_compiler_wl_CXX='--backend -Wl,'
14605             lt_prog_compiler_pic_CXX='-fPIC'
14606             ;;
14607           ecpc* )
14608             # old Intel C++ for x86_64 which still supported -KPIC.
14609             lt_prog_compiler_wl_CXX='-Wl,'
14610             lt_prog_compiler_pic_CXX='-KPIC'
14611             lt_prog_compiler_static_CXX='-static'
14612             ;;
14613           icpc* )
14614             # Intel C++, used to be incompatible with GCC.
14615             # ICC 10 doesn't accept -KPIC any more.
14616             lt_prog_compiler_wl_CXX='-Wl,'
14617             lt_prog_compiler_pic_CXX='-fPIC'
14618             lt_prog_compiler_static_CXX='-static'
14619             ;;
14620           pgCC* | pgcpp*)
14621             # Portland Group C++ compiler
14622             lt_prog_compiler_wl_CXX='-Wl,'
14623             lt_prog_compiler_pic_CXX='-fpic'
14624             lt_prog_compiler_static_CXX='-Bstatic'
14625             ;;
14626           cxx*)
14627             # Compaq C++
14628             # Make sure the PIC flag is empty.  It appears that all Alpha
14629             # Linux and Compaq Tru64 Unix objects are PIC.
14630             lt_prog_compiler_pic_CXX=
14631             lt_prog_compiler_static_CXX='-non_shared'
14632             ;;
14633           xlc* | xlC*)
14634             # IBM XL 8.0 on PPC
14635             lt_prog_compiler_wl_CXX='-Wl,'
14636             lt_prog_compiler_pic_CXX='-qpic'
14637             lt_prog_compiler_static_CXX='-qstaticlink'
14638             ;;
14639           *)
14640             case `$CC -V 2>&1 | sed 5q` in
14641             *Sun\ C*)
14642               # Sun C++ 5.9
14643               lt_prog_compiler_pic_CXX='-KPIC'
14644               lt_prog_compiler_static_CXX='-Bstatic'
14645               lt_prog_compiler_wl_CXX='-Qoption ld '
14646               ;;
14647             esac
14648             ;;
14649         esac
14650         ;;
14651       lynxos*)
14652         ;;
14653       m88k*)
14654         ;;
14655       mvs*)
14656         case $cc_basename in
14657           cxx*)
14658             lt_prog_compiler_pic_CXX='-W c,exportall'
14659             ;;
14660           *)
14661             ;;
14662         esac
14663         ;;
14664       netbsd*)
14665         ;;
14666       *qnx* | *nto*)
14667         # QNX uses GNU C++, but need to define -shared option too, otherwise
14668         # it will coredump.
14669         lt_prog_compiler_pic_CXX='-fPIC -shared'
14670         ;;
14671       osf3* | osf4* | osf5*)
14672         case $cc_basename in
14673           KCC*)
14674             lt_prog_compiler_wl_CXX='--backend -Wl,'
14675             ;;
14676           RCC*)
14677             # Rational C++ 2.4.1
14678             lt_prog_compiler_pic_CXX='-pic'
14679             ;;
14680           cxx*)
14681             # Digital/Compaq C++
14682             lt_prog_compiler_wl_CXX='-Wl,'
14683             # Make sure the PIC flag is empty.  It appears that all Alpha
14684             # Linux and Compaq Tru64 Unix objects are PIC.
14685             lt_prog_compiler_pic_CXX=
14686             lt_prog_compiler_static_CXX='-non_shared'
14687             ;;
14688           *)
14689             ;;
14690         esac
14691         ;;
14692       psos*)
14693         ;;
14694       solaris*)
14695         case $cc_basename in
14696           CC*)
14697             # Sun C++ 4.2, 5.x and Centerline C++
14698             lt_prog_compiler_pic_CXX='-KPIC'
14699             lt_prog_compiler_static_CXX='-Bstatic'
14700             lt_prog_compiler_wl_CXX='-Qoption ld '
14701             ;;
14702           gcx*)
14703             # Green Hills C++ Compiler
14704             lt_prog_compiler_pic_CXX='-PIC'
14705             ;;
14706           *)
14707             ;;
14708         esac
14709         ;;
14710       sunos4*)
14711         case $cc_basename in
14712           CC*)
14713             # Sun C++ 4.x
14714             lt_prog_compiler_pic_CXX='-pic'
14715             lt_prog_compiler_static_CXX='-Bstatic'
14716             ;;
14717           lcc*)
14718             # Lucid
14719             lt_prog_compiler_pic_CXX='-pic'
14720             ;;
14721           *)
14722             ;;
14723         esac
14724         ;;
14725       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14726         case $cc_basename in
14727           CC*)
14728             lt_prog_compiler_wl_CXX='-Wl,'
14729             lt_prog_compiler_pic_CXX='-KPIC'
14730             lt_prog_compiler_static_CXX='-Bstatic'
14731             ;;
14732         esac
14733         ;;
14734       tandem*)
14735         case $cc_basename in
14736           NCC*)
14737             # NonStop-UX NCC 3.20
14738             lt_prog_compiler_pic_CXX='-KPIC'
14739             ;;
14740           *)
14741             ;;
14742         esac
14743         ;;
14744       vxworks*)
14745         ;;
14746       *)
14747         lt_prog_compiler_can_build_shared_CXX=no
14748         ;;
14749     esac
14750   fi
14751
14752 case $host_os in
14753   # For platforms which do not support PIC, -DPIC is meaningless:
14754   *djgpp*)
14755     lt_prog_compiler_pic_CXX=
14756     ;;
14757   *)
14758     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14759     ;;
14760 esac
14761 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
14762 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
14763
14764
14765
14766 #
14767 # Check to make sure the PIC flag actually works.
14768 #
14769 if test -n "$lt_prog_compiler_pic_CXX"; then
14770   { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14771 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
14772 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
14773   echo $ECHO_N "(cached) $ECHO_C" >&6
14774 else
14775   lt_cv_prog_compiler_pic_works_CXX=no
14776    ac_outfile=conftest.$ac_objext
14777    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14778    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14779    # Insert the option either (1) after the last *FLAGS variable, or
14780    # (2) before a word containing "conftest.", or (3) at the end.
14781    # Note that $ac_compile itself does not contain backslashes and begins
14782    # with a dollar sign (not a hyphen), so the echo should work correctly.
14783    # The option is referenced via a variable to avoid confusing sed.
14784    lt_compile=`echo "$ac_compile" | $SED \
14785    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14786    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14787    -e 's:$: $lt_compiler_flag:'`
14788    (eval echo "\"\$as_me:14788: $lt_compile\"" >&5)
14789    (eval "$lt_compile" 2>conftest.err)
14790    ac_status=$?
14791    cat conftest.err >&5
14792    echo "$as_me:14792: \$? = $ac_status" >&5
14793    if (exit $ac_status) && test -s "$ac_outfile"; then
14794      # The compiler can only warn and ignore the option if not recognized
14795      # So say no if there are warnings other than the usual output.
14796      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14797      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14798      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14799        lt_cv_prog_compiler_pic_works_CXX=yes
14800      fi
14801    fi
14802    $RM conftest*
14803
14804 fi
14805 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14806 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14807
14808 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14809     case $lt_prog_compiler_pic_CXX in
14810      "" | " "*) ;;
14811      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14812      esac
14813 else
14814     lt_prog_compiler_pic_CXX=
14815      lt_prog_compiler_can_build_shared_CXX=no
14816 fi
14817
14818 fi
14819
14820
14821
14822 #
14823 # Check to make sure the static flag actually works.
14824 #
14825 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14826 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14827 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14828 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
14829   echo $ECHO_N "(cached) $ECHO_C" >&6
14830 else
14831   lt_cv_prog_compiler_static_works_CXX=no
14832    save_LDFLAGS="$LDFLAGS"
14833    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14834    echo "$lt_simple_link_test_code" > conftest.$ac_ext
14835    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14836      # The linker can only warn and ignore the option if not recognized
14837      # So say no if there are warnings
14838      if test -s conftest.err; then
14839        # Append any errors to the config.log.
14840        cat conftest.err 1>&5
14841        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14842        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14843        if diff conftest.exp conftest.er2 >/dev/null; then
14844          lt_cv_prog_compiler_static_works_CXX=yes
14845        fi
14846      else
14847        lt_cv_prog_compiler_static_works_CXX=yes
14848      fi
14849    fi
14850    $RM -r conftest*
14851    LDFLAGS="$save_LDFLAGS"
14852
14853 fi
14854 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14855 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6; }
14856
14857 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14858     :
14859 else
14860     lt_prog_compiler_static_CXX=
14861 fi
14862
14863
14864
14865
14866     { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14867 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14868 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14869   echo $ECHO_N "(cached) $ECHO_C" >&6
14870 else
14871   lt_cv_prog_compiler_c_o_CXX=no
14872    $RM -r conftest 2>/dev/null
14873    mkdir conftest
14874    cd conftest
14875    mkdir out
14876    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14877
14878    lt_compiler_flag="-o out/conftest2.$ac_objext"
14879    # Insert the option either (1) after the last *FLAGS variable, or
14880    # (2) before a word containing "conftest.", or (3) at the end.
14881    # Note that $ac_compile itself does not contain backslashes and begins
14882    # with a dollar sign (not a hyphen), so the echo should work correctly.
14883    lt_compile=`echo "$ac_compile" | $SED \
14884    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14885    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14886    -e 's:$: $lt_compiler_flag:'`
14887    (eval echo "\"\$as_me:14887: $lt_compile\"" >&5)
14888    (eval "$lt_compile" 2>out/conftest.err)
14889    ac_status=$?
14890    cat out/conftest.err >&5
14891    echo "$as_me:14891: \$? = $ac_status" >&5
14892    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14893    then
14894      # The compiler can only warn and ignore the option if not recognized
14895      # So say no if there are warnings
14896      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14897      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14898      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14899        lt_cv_prog_compiler_c_o_CXX=yes
14900      fi
14901    fi
14902    chmod u+w . 2>&5
14903    $RM conftest*
14904    # SGI C++ compiler will create directory out/ii_files/ for
14905    # template instantiation
14906    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14907    $RM out/* && rmdir out
14908    cd ..
14909    $RM -r conftest
14910    $RM conftest*
14911
14912 fi
14913 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14914 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
14915
14916
14917
14918     { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14919 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14920 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14921   echo $ECHO_N "(cached) $ECHO_C" >&6
14922 else
14923   lt_cv_prog_compiler_c_o_CXX=no
14924    $RM -r conftest 2>/dev/null
14925    mkdir conftest
14926    cd conftest
14927    mkdir out
14928    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14929
14930    lt_compiler_flag="-o out/conftest2.$ac_objext"
14931    # Insert the option either (1) after the last *FLAGS variable, or
14932    # (2) before a word containing "conftest.", or (3) at the end.
14933    # Note that $ac_compile itself does not contain backslashes and begins
14934    # with a dollar sign (not a hyphen), so the echo should work correctly.
14935    lt_compile=`echo "$ac_compile" | $SED \
14936    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14937    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14938    -e 's:$: $lt_compiler_flag:'`
14939    (eval echo "\"\$as_me:14939: $lt_compile\"" >&5)
14940    (eval "$lt_compile" 2>out/conftest.err)
14941    ac_status=$?
14942    cat out/conftest.err >&5
14943    echo "$as_me:14943: \$? = $ac_status" >&5
14944    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14945    then
14946      # The compiler can only warn and ignore the option if not recognized
14947      # So say no if there are warnings
14948      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14949      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14950      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14951        lt_cv_prog_compiler_c_o_CXX=yes
14952      fi
14953    fi
14954    chmod u+w . 2>&5
14955    $RM conftest*
14956    # SGI C++ compiler will create directory out/ii_files/ for
14957    # template instantiation
14958    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14959    $RM out/* && rmdir out
14960    cd ..
14961    $RM -r conftest
14962    $RM conftest*
14963
14964 fi
14965 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14966 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
14967
14968
14969
14970
14971 hard_links="nottested"
14972 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14973   # do not overwrite the value of need_locks provided by the user
14974   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14975 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14976   hard_links=yes
14977   $RM conftest*
14978   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14979   touch conftest.a
14980   ln conftest.a conftest.b 2>&5 || hard_links=no
14981   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14982   { echo "$as_me:$LINENO: result: $hard_links" >&5
14983 echo "${ECHO_T}$hard_links" >&6; }
14984   if test "$hard_links" = no; then
14985     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14986 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14987     need_locks=warn
14988   fi
14989 else
14990   need_locks=no
14991 fi
14992
14993
14994
14995     { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14996 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14997
14998   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14999   case $host_os in
15000   aix[4-9]*)
15001     # If we're using GNU nm, then we don't want the "-C" option.
15002     # -C means demangle to AIX nm, but means don't demangle with GNU nm
15003     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15004       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'
15005     else
15006       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'
15007     fi
15008     ;;
15009   pw32*)
15010     export_symbols_cmds_CXX="$ltdll_cmds"
15011   ;;
15012   cygwin* | mingw* | cegcc*)
15013     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'
15014   ;;
15015   *)
15016     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15017   ;;
15018   esac
15019   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15020
15021 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
15022 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
15023 test "$ld_shlibs_CXX" = no && can_build_shared=no
15024
15025 with_gnu_ld_CXX=$with_gnu_ld
15026
15027
15028
15029
15030
15031
15032 #
15033 # Do we need to explicitly link libc?
15034 #
15035 case "x$archive_cmds_need_lc_CXX" in
15036 x|xyes)
15037   # Assume -lc should be added
15038   archive_cmds_need_lc_CXX=yes
15039
15040   if test "$enable_shared" = yes && test "$GCC" = yes; then
15041     case $archive_cmds_CXX in
15042     *'~'*)
15043       # FIXME: we may have to deal with multi-command sequences.
15044       ;;
15045     '$CC '*)
15046       # Test whether the compiler implicitly links with -lc since on some
15047       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15048       # to ld, don't add -lc before -lgcc.
15049       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15050 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15051       $RM conftest*
15052       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15053
15054       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15055   (eval $ac_compile) 2>&5
15056   ac_status=$?
15057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15058   (exit $ac_status); } 2>conftest.err; then
15059         soname=conftest
15060         lib=conftest
15061         libobjs=conftest.$ac_objext
15062         deplibs=
15063         wl=$lt_prog_compiler_wl_CXX
15064         pic_flag=$lt_prog_compiler_pic_CXX
15065         compiler_flags=-v
15066         linker_flags=-v
15067         verstring=
15068         output_objdir=.
15069         libname=conftest
15070         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15071         allow_undefined_flag_CXX=
15072         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
15073   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15074   ac_status=$?
15075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15076   (exit $ac_status); }
15077         then
15078           archive_cmds_need_lc_CXX=no
15079         else
15080           archive_cmds_need_lc_CXX=yes
15081         fi
15082         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15083       else
15084         cat conftest.err 1>&5
15085       fi
15086       $RM conftest*
15087       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
15088 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
15089       ;;
15090     esac
15091   fi
15092   ;;
15093 esac
15094
15095
15096
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     { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15159 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15160
15161 library_names_spec=
15162 libname_spec='lib$name'
15163 soname_spec=
15164 shrext_cmds=".so"
15165 postinstall_cmds=
15166 postuninstall_cmds=
15167 finish_cmds=
15168 finish_eval=
15169 shlibpath_var=
15170 shlibpath_overrides_runpath=unknown
15171 version_type=none
15172 dynamic_linker="$host_os ld.so"
15173 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15174 need_lib_prefix=unknown
15175 hardcode_into_libs=no
15176
15177 # when you set need_version to no, make sure it does not cause -set_version
15178 # flags to be left without arguments
15179 need_version=unknown
15180
15181 case $host_os in
15182 aix3*)
15183   version_type=linux
15184   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15185   shlibpath_var=LIBPATH
15186
15187   # AIX 3 has no versioning support, so we append a major version to the name.
15188   soname_spec='${libname}${release}${shared_ext}$major'
15189   ;;
15190
15191 aix[4-9]*)
15192   version_type=linux
15193   need_lib_prefix=no
15194   need_version=no
15195   hardcode_into_libs=yes
15196   if test "$host_cpu" = ia64; then
15197     # AIX 5 supports IA64
15198     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15199     shlibpath_var=LD_LIBRARY_PATH
15200   else
15201     # With GCC up to 2.95.x, collect2 would create an import file
15202     # for dependence libraries.  The import file would start with
15203     # the line `#! .'.  This would cause the generated library to
15204     # depend on `.', always an invalid library.  This was fixed in
15205     # development snapshots of GCC prior to 3.0.
15206     case $host_os in
15207       aix4 | aix4.[01] | aix4.[01].*)
15208       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15209            echo ' yes '
15210            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15211         :
15212       else
15213         can_build_shared=no
15214       fi
15215       ;;
15216     esac
15217     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15218     # soname into executable. Probably we can add versioning support to
15219     # collect2, so additional links can be useful in future.
15220     if test "$aix_use_runtimelinking" = yes; then
15221       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15222       # instead of lib<name>.a to let people know that these are not
15223       # typical AIX shared libraries.
15224       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15225     else
15226       # We preserve .a as extension for shared libraries through AIX4.2
15227       # and later when we are not doing run time linking.
15228       library_names_spec='${libname}${release}.a $libname.a'
15229       soname_spec='${libname}${release}${shared_ext}$major'
15230     fi
15231     shlibpath_var=LIBPATH
15232   fi
15233   ;;
15234
15235 amigaos*)
15236   case $host_cpu in
15237   powerpc)
15238     # Since July 2007 AmigaOS4 officially supports .so libraries.
15239     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15240     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15241     ;;
15242   m68k)
15243     library_names_spec='$libname.ixlibrary $libname.a'
15244     # Create ${libname}_ixlibrary.a entries in /sys/libs.
15245     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'
15246     ;;
15247   esac
15248   ;;
15249
15250 beos*)
15251   library_names_spec='${libname}${shared_ext}'
15252   dynamic_linker="$host_os ld.so"
15253   shlibpath_var=LIBRARY_PATH
15254   ;;
15255
15256 bsdi[45]*)
15257   version_type=linux
15258   need_version=no
15259   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15260   soname_spec='${libname}${release}${shared_ext}$major'
15261   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15262   shlibpath_var=LD_LIBRARY_PATH
15263   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15264   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15265   # the default ld.so.conf also contains /usr/contrib/lib and
15266   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15267   # libtool to hard-code these into programs
15268   ;;
15269
15270 cygwin* | mingw* | pw32* | cegcc*)
15271   version_type=windows
15272   shrext_cmds=".dll"
15273   need_version=no
15274   need_lib_prefix=no
15275
15276   case $GCC,$host_os in
15277   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
15278     library_names_spec='$libname.dll.a'
15279     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15280     postinstall_cmds='base_file=`basename \${file}`~
15281       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15282       dldir=$destdir/`dirname \$dlpath`~
15283       test -d \$dldir || mkdir -p \$dldir~
15284       $install_prog $dir/$dlname \$dldir/$dlname~
15285       chmod a+x \$dldir/$dlname~
15286       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15287         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15288       fi'
15289     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15290       dlpath=$dir/\$dldll~
15291        $RM \$dlpath'
15292     shlibpath_overrides_runpath=yes
15293
15294     case $host_os in
15295     cygwin*)
15296       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15297       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15298       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15299       ;;
15300     mingw* | cegcc*)
15301       # MinGW DLLs use traditional 'lib' prefix
15302       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15303       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15304       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15305         # It is most probably a Windows format PATH printed by
15306         # mingw gcc, but we are running on Cygwin. Gcc prints its search
15307         # path with ; separators, and with drive letters. We can handle the
15308         # drive letters (cygwin fileutils understands them), so leave them,
15309         # especially as we might pass files found there to a mingw objdump,
15310         # which wouldn't understand a cygwinified path. Ahh.
15311         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15312       else
15313         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15314       fi
15315       ;;
15316     pw32*)
15317       # pw32 DLLs use 'pw' prefix rather than 'lib'
15318       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15319       ;;
15320     esac
15321     ;;
15322
15323   *)
15324     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15325     ;;
15326   esac
15327   dynamic_linker='Win32 ld.exe'
15328   # FIXME: first we should search . and the directory the executable is in
15329   shlibpath_var=PATH
15330   ;;
15331
15332 darwin* | rhapsody*)
15333   dynamic_linker="$host_os dyld"
15334   version_type=darwin
15335   need_lib_prefix=no
15336   need_version=no
15337   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15338   soname_spec='${libname}${release}${major}$shared_ext'
15339   shlibpath_overrides_runpath=yes
15340   shlibpath_var=DYLD_LIBRARY_PATH
15341   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15342
15343   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15344   ;;
15345
15346 dgux*)
15347   version_type=linux
15348   need_lib_prefix=no
15349   need_version=no
15350   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15351   soname_spec='${libname}${release}${shared_ext}$major'
15352   shlibpath_var=LD_LIBRARY_PATH
15353   ;;
15354
15355 freebsd1*)
15356   dynamic_linker=no
15357   ;;
15358
15359 freebsd* | dragonfly*)
15360   # DragonFly does not have aout.  When/if they implement a new
15361   # versioning mechanism, adjust this.
15362   if test -x /usr/bin/objformat; then
15363     objformat=`/usr/bin/objformat`
15364   else
15365     case $host_os in
15366     freebsd[123]*) objformat=aout ;;
15367     *) objformat=elf ;;
15368     esac
15369   fi
15370   version_type=freebsd-$objformat
15371   case $version_type in
15372     freebsd-elf*)
15373       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15374       need_version=no
15375       need_lib_prefix=no
15376       ;;
15377     freebsd-*)
15378       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15379       need_version=yes
15380       ;;
15381   esac
15382   shlibpath_var=LD_LIBRARY_PATH
15383   case $host_os in
15384   freebsd2*)
15385     shlibpath_overrides_runpath=yes
15386     ;;
15387   freebsd3.[01]* | freebsdelf3.[01]*)
15388     shlibpath_overrides_runpath=yes
15389     hardcode_into_libs=yes
15390     ;;
15391   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15392   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15393     shlibpath_overrides_runpath=no
15394     hardcode_into_libs=yes
15395     ;;
15396   *) # from 4.6 on, and DragonFly
15397     shlibpath_overrides_runpath=yes
15398     hardcode_into_libs=yes
15399     ;;
15400   esac
15401   ;;
15402
15403 gnu*)
15404   version_type=linux
15405   need_lib_prefix=no
15406   need_version=no
15407   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15408   soname_spec='${libname}${release}${shared_ext}$major'
15409   shlibpath_var=LD_LIBRARY_PATH
15410   hardcode_into_libs=yes
15411   ;;
15412
15413 hpux9* | hpux10* | hpux11*)
15414   # Give a soname corresponding to the major version so that dld.sl refuses to
15415   # link against other versions.
15416   version_type=sunos
15417   need_lib_prefix=no
15418   need_version=no
15419   case $host_cpu in
15420   ia64*)
15421     shrext_cmds='.so'
15422     hardcode_into_libs=yes
15423     dynamic_linker="$host_os dld.so"
15424     shlibpath_var=LD_LIBRARY_PATH
15425     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15426     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15427     soname_spec='${libname}${release}${shared_ext}$major'
15428     if test "X$HPUX_IA64_MODE" = X32; then
15429       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15430     else
15431       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15432     fi
15433     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15434     ;;
15435   hppa*64*)
15436     shrext_cmds='.sl'
15437     hardcode_into_libs=yes
15438     dynamic_linker="$host_os dld.sl"
15439     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15440     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15441     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15442     soname_spec='${libname}${release}${shared_ext}$major'
15443     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15444     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15445     ;;
15446   *)
15447     shrext_cmds='.sl'
15448     dynamic_linker="$host_os dld.sl"
15449     shlibpath_var=SHLIB_PATH
15450     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15451     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15452     soname_spec='${libname}${release}${shared_ext}$major'
15453     ;;
15454   esac
15455   # HP-UX runs *really* slowly unless shared libraries are mode 555.
15456   postinstall_cmds='chmod 555 $lib'
15457   ;;
15458
15459 interix[3-9]*)
15460   version_type=linux
15461   need_lib_prefix=no
15462   need_version=no
15463   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15464   soname_spec='${libname}${release}${shared_ext}$major'
15465   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15466   shlibpath_var=LD_LIBRARY_PATH
15467   shlibpath_overrides_runpath=no
15468   hardcode_into_libs=yes
15469   ;;
15470
15471 irix5* | irix6* | nonstopux*)
15472   case $host_os in
15473     nonstopux*) version_type=nonstopux ;;
15474     *)
15475         if test "$lt_cv_prog_gnu_ld" = yes; then
15476                 version_type=linux
15477         else
15478                 version_type=irix
15479         fi ;;
15480   esac
15481   need_lib_prefix=no
15482   need_version=no
15483   soname_spec='${libname}${release}${shared_ext}$major'
15484   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15485   case $host_os in
15486   irix5* | nonstopux*)
15487     libsuff= shlibsuff=
15488     ;;
15489   *)
15490     case $LD in # libtool.m4 will add one of these switches to LD
15491     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15492       libsuff= shlibsuff= libmagic=32-bit;;
15493     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15494       libsuff=32 shlibsuff=N32 libmagic=N32;;
15495     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15496       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15497     *) libsuff= shlibsuff= libmagic=never-match;;
15498     esac
15499     ;;
15500   esac
15501   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15502   shlibpath_overrides_runpath=no
15503   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15504   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15505   hardcode_into_libs=yes
15506   ;;
15507
15508 # No shared lib support for Linux oldld, aout, or coff.
15509 linux*oldld* | linux*aout* | linux*coff*)
15510   dynamic_linker=no
15511   ;;
15512
15513 # This must be Linux ELF.
15514 linux* | k*bsd*-gnu)
15515   version_type=linux
15516   need_lib_prefix=no
15517   need_version=no
15518   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15519   soname_spec='${libname}${release}${shared_ext}$major'
15520   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15521   shlibpath_var=LD_LIBRARY_PATH
15522   shlibpath_overrides_runpath=no
15523   # Some binutils ld are patched to set DT_RUNPATH
15524   save_LDFLAGS=$LDFLAGS
15525   save_libdir=$libdir
15526   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15527        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15528   cat >conftest.$ac_ext <<_ACEOF
15529 /* confdefs.h.  */
15530 _ACEOF
15531 cat confdefs.h >>conftest.$ac_ext
15532 cat >>conftest.$ac_ext <<_ACEOF
15533 /* end confdefs.h.  */
15534
15535 int
15536 main ()
15537 {
15538
15539   ;
15540   return 0;
15541 }
15542 _ACEOF
15543 rm -f conftest.$ac_objext conftest$ac_exeext
15544 if { (ac_try="$ac_link"
15545 case "(($ac_try" in
15546   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15547   *) ac_try_echo=$ac_try;;
15548 esac
15549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15550   (eval "$ac_link") 2>conftest.er1
15551   ac_status=$?
15552   grep -v '^ *+' conftest.er1 >conftest.err
15553   rm -f conftest.er1
15554   cat conftest.err >&5
15555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15556   (exit $ac_status); } && {
15557          test -z "$ac_cxx_werror_flag" ||
15558          test ! -s conftest.err
15559        } && test -s conftest$ac_exeext &&
15560        $as_test_x conftest$ac_exeext; then
15561   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
15562   shlibpath_overrides_runpath=yes
15563 fi
15564
15565 else
15566   echo "$as_me: failed program was:" >&5
15567 sed 's/^/| /' conftest.$ac_ext >&5
15568
15569
15570 fi
15571
15572 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15573       conftest$ac_exeext conftest.$ac_ext
15574   LDFLAGS=$save_LDFLAGS
15575   libdir=$save_libdir
15576
15577   # This implies no fast_install, which is unacceptable.
15578   # Some rework will be needed to allow for fast_install
15579   # before this can be enabled.
15580   hardcode_into_libs=yes
15581
15582   # Append ld.so.conf contents to the search path
15583   if test -f /etc/ld.so.conf; then
15584     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' ' '`
15585     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15586   fi
15587
15588   # We used to test for /lib/ld.so.1 and disable shared libraries on
15589   # powerpc, because MkLinux only supported shared libraries with the
15590   # GNU dynamic linker.  Since this was broken with cross compilers,
15591   # most powerpc-linux boxes support dynamic linking these days and
15592   # people can always --disable-shared, the test was removed, and we
15593   # assume the GNU/Linux dynamic linker is in use.
15594   dynamic_linker='GNU/Linux ld.so'
15595   ;;
15596
15597 netbsd*)
15598   version_type=sunos
15599   need_lib_prefix=no
15600   need_version=no
15601   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15602     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15603     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15604     dynamic_linker='NetBSD (a.out) ld.so'
15605   else
15606     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15607     soname_spec='${libname}${release}${shared_ext}$major'
15608     dynamic_linker='NetBSD ld.elf_so'
15609   fi
15610   shlibpath_var=LD_LIBRARY_PATH
15611   shlibpath_overrides_runpath=yes
15612   hardcode_into_libs=yes
15613   ;;
15614
15615 newsos6)
15616   version_type=linux
15617   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15618   shlibpath_var=LD_LIBRARY_PATH
15619   shlibpath_overrides_runpath=yes
15620   ;;
15621
15622 *nto* | *qnx*)
15623   version_type=qnx
15624   need_lib_prefix=no
15625   need_version=no
15626   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15627   soname_spec='${libname}${release}${shared_ext}$major'
15628   shlibpath_var=LD_LIBRARY_PATH
15629   shlibpath_overrides_runpath=no
15630   hardcode_into_libs=yes
15631   dynamic_linker='ldqnx.so'
15632   ;;
15633
15634 openbsd*)
15635   version_type=sunos
15636   sys_lib_dlsearch_path_spec="/usr/lib"
15637   need_lib_prefix=no
15638   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15639   case $host_os in
15640     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
15641     *)                          need_version=no  ;;
15642   esac
15643   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15644   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15645   shlibpath_var=LD_LIBRARY_PATH
15646   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15647     case $host_os in
15648       openbsd2.[89] | openbsd2.[89].*)
15649         shlibpath_overrides_runpath=no
15650         ;;
15651       *)
15652         shlibpath_overrides_runpath=yes
15653         ;;
15654       esac
15655   else
15656     shlibpath_overrides_runpath=yes
15657   fi
15658   ;;
15659
15660 os2*)
15661   libname_spec='$name'
15662   shrext_cmds=".dll"
15663   need_lib_prefix=no
15664   library_names_spec='$libname${shared_ext} $libname.a'
15665   dynamic_linker='OS/2 ld.exe'
15666   shlibpath_var=LIBPATH
15667   ;;
15668
15669 osf3* | osf4* | osf5*)
15670   version_type=osf
15671   need_lib_prefix=no
15672   need_version=no
15673   soname_spec='${libname}${release}${shared_ext}$major'
15674   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15675   shlibpath_var=LD_LIBRARY_PATH
15676   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15677   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15678   ;;
15679
15680 rdos*)
15681   dynamic_linker=no
15682   ;;
15683
15684 solaris*)
15685   version_type=linux
15686   need_lib_prefix=no
15687   need_version=no
15688   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15689   soname_spec='${libname}${release}${shared_ext}$major'
15690   shlibpath_var=LD_LIBRARY_PATH
15691   shlibpath_overrides_runpath=yes
15692   hardcode_into_libs=yes
15693   # ldd complains unless libraries are executable
15694   postinstall_cmds='chmod +x $lib'
15695   ;;
15696
15697 sunos4*)
15698   version_type=sunos
15699   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15700   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15701   shlibpath_var=LD_LIBRARY_PATH
15702   shlibpath_overrides_runpath=yes
15703   if test "$with_gnu_ld" = yes; then
15704     need_lib_prefix=no
15705   fi
15706   need_version=yes
15707   ;;
15708
15709 sysv4 | sysv4.3*)
15710   version_type=linux
15711   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15712   soname_spec='${libname}${release}${shared_ext}$major'
15713   shlibpath_var=LD_LIBRARY_PATH
15714   case $host_vendor in
15715     sni)
15716       shlibpath_overrides_runpath=no
15717       need_lib_prefix=no
15718       runpath_var=LD_RUN_PATH
15719       ;;
15720     siemens)
15721       need_lib_prefix=no
15722       ;;
15723     motorola)
15724       need_lib_prefix=no
15725       need_version=no
15726       shlibpath_overrides_runpath=no
15727       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15728       ;;
15729   esac
15730   ;;
15731
15732 sysv4*MP*)
15733   if test -d /usr/nec ;then
15734     version_type=linux
15735     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15736     soname_spec='$libname${shared_ext}.$major'
15737     shlibpath_var=LD_LIBRARY_PATH
15738   fi
15739   ;;
15740
15741 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15742   version_type=freebsd-elf
15743   need_lib_prefix=no
15744   need_version=no
15745   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15746   soname_spec='${libname}${release}${shared_ext}$major'
15747   shlibpath_var=LD_LIBRARY_PATH
15748   shlibpath_overrides_runpath=yes
15749   hardcode_into_libs=yes
15750   if test "$with_gnu_ld" = yes; then
15751     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15752   else
15753     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15754     case $host_os in
15755       sco3.2v5*)
15756         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15757         ;;
15758     esac
15759   fi
15760   sys_lib_dlsearch_path_spec='/usr/lib'
15761   ;;
15762
15763 tpf*)
15764   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
15765   version_type=linux
15766   need_lib_prefix=no
15767   need_version=no
15768   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15769   shlibpath_var=LD_LIBRARY_PATH
15770   shlibpath_overrides_runpath=no
15771   hardcode_into_libs=yes
15772   ;;
15773
15774 uts4*)
15775   version_type=linux
15776   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15777   soname_spec='${libname}${release}${shared_ext}$major'
15778   shlibpath_var=LD_LIBRARY_PATH
15779   ;;
15780
15781 *)
15782   dynamic_linker=no
15783   ;;
15784 esac
15785 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15786 echo "${ECHO_T}$dynamic_linker" >&6; }
15787 test "$dynamic_linker" = no && can_build_shared=no
15788
15789 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15790 if test "$GCC" = yes; then
15791   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15792 fi
15793
15794 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15795   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15796 fi
15797 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15798   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15799 fi
15800
15801
15802
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     { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15837 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15838 hardcode_action_CXX=
15839 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15840    test -n "$runpath_var_CXX" ||
15841    test "X$hardcode_automatic_CXX" = "Xyes" ; then
15842
15843   # We can hardcode non-existent directories.
15844   if test "$hardcode_direct_CXX" != no &&
15845      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15846      # have to relink, otherwise we might link with an installed library
15847      # when we should be linking with a yet-to-be-installed one
15848      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15849      test "$hardcode_minus_L_CXX" != no; then
15850     # Linking always hardcodes the temporary library directory.
15851     hardcode_action_CXX=relink
15852   else
15853     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15854     hardcode_action_CXX=immediate
15855   fi
15856 else
15857   # We cannot hardcode anything, or else we can only hardcode existing
15858   # directories.
15859   hardcode_action_CXX=unsupported
15860 fi
15861 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
15862 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
15863
15864 if test "$hardcode_action_CXX" = relink ||
15865    test "$inherit_rpath_CXX" = yes; then
15866   # Fast installation is not supported
15867   enable_fast_install=no
15868 elif test "$shlibpath_overrides_runpath" = yes ||
15869      test "$enable_shared" = no; then
15870   # Fast installation is not necessary
15871   enable_fast_install=needless
15872 fi
15873
15874
15875
15876
15877
15878
15879
15880   fi # test -n "$compiler"
15881
15882   CC=$lt_save_CC
15883   LDCXX=$LD
15884   LD=$lt_save_LD
15885   GCC=$lt_save_GCC
15886   with_gnu_ld=$lt_save_with_gnu_ld
15887   lt_cv_path_LDCXX=$lt_cv_path_LD
15888   lt_cv_path_LD=$lt_save_path_LD
15889   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15890   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15891 fi # test "$_lt_caught_CXX_error" != yes
15892
15893 ac_ext=c
15894 ac_cpp='$CPP $CPPFLAGS'
15895 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15896 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15897 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15898
15899
15900
15901
15902
15903
15904
15905
15906
15907
15908
15909
15910
15911         ac_config_commands="$ac_config_commands libtool"
15912
15913
15914
15915
15916 # Only expand once:
15917
15918
15919
15920
15921 if test x$use_libtool != xno; then
15922    DEFAULT_OBJECT_TYPE=".lo"
15923    DEFAULT_ARCHIVE_TYPE=".la"
15924    DEFAULT_SHARED_OBJECT_TYPE=".la"
15925    LIBTOOL="\$(LIBTOOL)"
15926    LIBTOOL_INSTALL_TARGET="libtool-install"
15927    LIBTOOL_UNINSTALL_TARGET="libtool-uninstall"
15928    LIBTOOL_CLEAN_TARGET="libtool-clean"
15929    QMAKE_LIBTOOL="${BUILD_DIR}/libtool"
15930    FD_PLUGIN_DIR="src/plugins/fd"
15931    have_plugins=yes
15932 else
15933    DEFAULT_OBJECT_TYPE=".o"
15934    DEFAULT_ARCHIVE_TYPE=".a"
15935    DEFAULT_SHARED_OBJECT_TYPE=".so"
15936    LIBTOOL="# \$(LIBTOOL)"
15937    LIBTOOL_INSTALL_TARGET=""
15938    LIBTOOL_UNINSTALL_TARGET=""
15939    LIBTOOL_CLEAN_TARGET=""
15940    QMAKE_LIBTOOL="# ${BUILD_DIR}/libtool"
15941    FD_PLUGIN_DIR=""
15942    have_plugins=no
15943 fi
15944
15945
15946
15947
15948
15949
15950
15951
15952
15953
15954
15955 # Check whether --enable-includes was given.
15956 if test "${enable_includes+set}" = set; then
15957   enableval=$enable_includes;
15958        if test x$enableval = xyes; then
15959           install_includes=yes
15960        fi
15961
15962
15963 fi
15964
15965
15966
15967 if test x$use_libtool != xno -a x$install_includes = xyes; then
15968    INCLUDE_INSTALL_TARGET="install-includes"
15969    INCLUDE_UNINSTALL_TARGET="uninstall-includes"
15970 else
15971    INCLUDE_INSTALL_TARGET=""
15972    INCLUDE_UNINSTALL_TARGET=""
15973 fi
15974
15975
15976
15977
15978 { echo "$as_me:$LINENO: checking host system type" >&5
15979 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
15980 if test "${ac_cv_host+set}" = set; then
15981   echo $ECHO_N "(cached) $ECHO_C" >&6
15982 else
15983   if test "x$host_alias" = x; then
15984   ac_cv_host=$ac_cv_build
15985 else
15986   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
15987     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
15988 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
15989    { (exit 1); exit 1; }; }
15990 fi
15991
15992 fi
15993 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
15994 echo "${ECHO_T}$ac_cv_host" >&6; }
15995 case $ac_cv_host in
15996 *-*-*) ;;
15997 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
15998 echo "$as_me: error: invalid value of canonical host" >&2;}
15999    { (exit 1); exit 1; }; };;
16000 esac
16001 host=$ac_cv_host
16002 ac_save_IFS=$IFS; IFS='-'
16003 set x $ac_cv_host
16004 shift
16005 host_cpu=$1
16006 host_vendor=$2
16007 shift; shift
16008 # Remember, the first character of IFS is used to create $*,
16009 # except with old shells:
16010 host_os=$*
16011 IFS=$ac_save_IFS
16012 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
16013
16014
16015 case $host_os in
16016   *cygwin* ) CYGWIN=yes;;
16017          * ) CYGWIN=no;;
16018 esac
16019
16020 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
16021 then
16022
16023
16024 if $TRUEPRG; then
16025   HAVE_SUN_OS_TRUE=
16026   HAVE_SUN_OS_FALSE='#'
16027 else
16028   HAVE_SUN_OS_TRUE='#'
16029   HAVE_SUN_OS_FALSE=
16030 fi
16031         cat >>confdefs.h <<\_ACEOF
16032 #define HAVE_SUN_OS 1
16033 _ACEOF
16034
16035 else
16036
16037
16038 if $FALSEPRG; then
16039   HAVE_SUN_OS_TRUE=
16040   HAVE_SUN_OS_FALSE='#'
16041 else
16042   HAVE_SUN_OS_TRUE='#'
16043   HAVE_SUN_OS_FALSE=
16044 fi
16045 fi
16046
16047 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
16048 then
16049
16050
16051 if $TRUEPRG; then
16052   HAVE_OSF1_OS_TRUE=
16053   HAVE_OSF1_OS_FALSE='#'
16054 else
16055   HAVE_OSF1_OS_TRUE='#'
16056   HAVE_OSF1_OS_FALSE=
16057 fi
16058         cat >>confdefs.h <<\_ACEOF
16059 #define HAVE_OSF1_OS 1
16060 _ACEOF
16061
16062 else
16063
16064
16065 if $FALSEPRG; then
16066   HAVE_OSF1_OS_TRUE=
16067   HAVE_OSF1_OS_FALSE='#'
16068 else
16069   HAVE_OSF1_OS_TRUE='#'
16070   HAVE_OSF1_OS_FALSE=
16071 fi
16072 fi
16073
16074 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
16075 then
16076
16077
16078 if $TRUEPRG; then
16079   HAVE_AIX_OS_TRUE=
16080   HAVE_AIX_OS_FALSE='#'
16081 else
16082   HAVE_AIX_OS_TRUE='#'
16083   HAVE_AIX_OS_FALSE=
16084 fi
16085         cat >>confdefs.h <<\_ACEOF
16086 #define HAVE_AIX_OS 1
16087 _ACEOF
16088
16089 else
16090
16091
16092 if $FALSEPRG; then
16093   HAVE_AIX_OS_TRUE=
16094   HAVE_AIX_OS_FALSE='#'
16095 else
16096   HAVE_AIX_OS_TRUE='#'
16097   HAVE_AIX_OS_FALSE=
16098 fi
16099 fi
16100
16101 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
16102 then
16103
16104
16105 if $TRUEPRG; then
16106   HAVE_HPUX_OS_TRUE=
16107   HAVE_HPUX_OS_FALSE='#'
16108 else
16109   HAVE_HPUX_OS_TRUE='#'
16110   HAVE_HPUX_OS_FALSE=
16111 fi
16112         cat >>confdefs.h <<\_ACEOF
16113 #define HAVE_HPUX_OS 1
16114 _ACEOF
16115
16116 else
16117
16118
16119 if $FALSEPRG; then
16120   HAVE_HPUX_OS_TRUE=
16121   HAVE_HPUX_OS_FALSE='#'
16122 else
16123   HAVE_HPUX_OS_TRUE='#'
16124   HAVE_HPUX_OS_FALSE=
16125 fi
16126 fi
16127
16128 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
16129 then
16130
16131
16132 if $TRUEPRG; then
16133   HAVE_LINUX_OS_TRUE=
16134   HAVE_LINUX_OS_FALSE='#'
16135 else
16136   HAVE_LINUX_OS_TRUE='#'
16137   HAVE_LINUX_OS_FALSE=
16138 fi
16139         cat >>confdefs.h <<\_ACEOF
16140 #define HAVE_LINUX_OS 1
16141 _ACEOF
16142
16143 else
16144
16145
16146 if $FALSEPRG; then
16147   HAVE_LINUX_OS_TRUE=
16148   HAVE_LINUX_OS_FALSE='#'
16149 else
16150   HAVE_LINUX_OS_TRUE='#'
16151   HAVE_LINUX_OS_FALSE=
16152 fi
16153 fi
16154
16155 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
16156 then
16157
16158
16159 if $TRUEPRG; then
16160   HAVE_FREEBSD_OS_TRUE=
16161   HAVE_FREEBSD_OS_FALSE='#'
16162 else
16163   HAVE_FREEBSD_OS_TRUE='#'
16164   HAVE_FREEBSD_OS_FALSE=
16165 fi
16166         cat >>confdefs.h <<\_ACEOF
16167 #define HAVE_FREEBSD_OS 1
16168 _ACEOF
16169
16170 else
16171
16172
16173 if $FALSEPRG; then
16174   HAVE_FREEBSD_OS_TRUE=
16175   HAVE_FREEBSD_OS_FALSE='#'
16176 else
16177   HAVE_FREEBSD_OS_TRUE='#'
16178   HAVE_FREEBSD_OS_FALSE=
16179 fi
16180 fi
16181
16182 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
16183 then
16184
16185
16186 if $TRUEPRG; then
16187   HAVE_NETBSD_OS_TRUE=
16188   HAVE_NETBSD_OS_FALSE='#'
16189 else
16190   HAVE_NETBSD_OS_TRUE='#'
16191   HAVE_NETBSD_OS_FALSE=
16192 fi
16193         cat >>confdefs.h <<\_ACEOF
16194 #define HAVE_NETBSD_OS 1
16195 _ACEOF
16196
16197 else
16198
16199
16200 if $FALSEPRG; then
16201   HAVE_NETBSD_OS_TRUE=
16202   HAVE_NETBSD_OS_FALSE='#'
16203 else
16204   HAVE_NETBSD_OS_TRUE='#'
16205   HAVE_NETBSD_OS_FALSE=
16206 fi
16207 fi
16208
16209 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
16210 then
16211
16212
16213 if $TRUEPRG; then
16214   HAVE_OPENBSD_OS_TRUE=
16215   HAVE_OPENBSD_OS_FALSE='#'
16216 else
16217   HAVE_OPENBSD_OS_TRUE='#'
16218   HAVE_OPENBSD_OS_FALSE=
16219 fi
16220         cat >>confdefs.h <<\_ACEOF
16221 #define HAVE_OPENBSD_OS 1
16222 _ACEOF
16223
16224 else
16225
16226
16227 if $FALSEPRG; then
16228   HAVE_OPENBSD_OS_TRUE=
16229   HAVE_OPENBSD_OS_FALSE='#'
16230 else
16231   HAVE_OPENBSD_OS_TRUE='#'
16232   HAVE_OPENBSD_OS_FALSE=
16233 fi
16234 fi
16235
16236 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
16237 then
16238
16239
16240 if $TRUEPRG; then
16241   HAVE_BSDI_OS_TRUE=
16242   HAVE_BSDI_OS_FALSE='#'
16243 else
16244   HAVE_BSDI_OS_TRUE='#'
16245   HAVE_BSDI_OS_FALSE=
16246 fi
16247         cat >>confdefs.h <<\_ACEOF
16248 #define HAVE_BSDI_OS 1
16249 _ACEOF
16250
16251 else
16252
16253
16254 if $FALSEPRG; then
16255   HAVE_BSDI_OS_TRUE=
16256   HAVE_BSDI_OS_FALSE='#'
16257 else
16258   HAVE_BSDI_OS_TRUE='#'
16259   HAVE_BSDI_OS_FALSE=
16260 fi
16261 fi
16262
16263 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
16264 then
16265
16266
16267 if $TRUEPRG; then
16268   HAVE_SGI_OS_TRUE=
16269   HAVE_SGI_OS_FALSE='#'
16270 else
16271   HAVE_SGI_OS_TRUE='#'
16272   HAVE_SGI_OS_FALSE=
16273 fi
16274         cat >>confdefs.h <<\_ACEOF
16275 #define HAVE_SGI_OS 1
16276 _ACEOF
16277
16278 else
16279
16280
16281 if $FALSEPRG; then
16282   HAVE_SGI_OS_TRUE=
16283   HAVE_SGI_OS_FALSE='#'
16284 else
16285   HAVE_SGI_OS_TRUE='#'
16286   HAVE_SGI_OS_FALSE=
16287 fi
16288 fi
16289
16290 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX -o x`uname -s` = xIRIX64
16291 then
16292
16293
16294 if $TRUEPRG; then
16295   HAVE_IRIX_OS_TRUE=
16296   HAVE_IRIX_OS_FALSE='#'
16297 else
16298   HAVE_IRIX_OS_TRUE='#'
16299   HAVE_IRIX_OS_FALSE=
16300 fi
16301         cat >>confdefs.h <<\_ACEOF
16302 #define HAVE_IRIX_OS 1
16303 _ACEOF
16304
16305 else
16306
16307
16308 if $FALSEPRG; then
16309   HAVE_IRIX_OS_TRUE=
16310   HAVE_IRIX_OS_FALSE='#'
16311 else
16312   HAVE_IRIX_OS_TRUE='#'
16313   HAVE_IRIX_OS_FALSE=
16314 fi
16315 fi
16316
16317 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
16318 then
16319
16320
16321 if $TRUEPRG; then
16322   HAVE_DARWIN_OS_TRUE=
16323   HAVE_DARWIN_OS_FALSE='#'
16324 else
16325   HAVE_DARWIN_OS_TRUE='#'
16326   HAVE_DARWIN_OS_FALSE=
16327 fi
16328     cat >>confdefs.h <<\_ACEOF
16329 #define HAVE_DARWIN_OS 1
16330 _ACEOF
16331
16332 else
16333
16334
16335 if $FALSEPRG; then
16336   HAVE_DARWIN_OS_TRUE=
16337   HAVE_DARWIN_OS_FALSE='#'
16338 else
16339   HAVE_DARWIN_OS_TRUE='#'
16340   HAVE_DARWIN_OS_FALSE=
16341 fi
16342 fi
16343
16344
16345 { echo "$as_me:$LINENO: checking for Operating System Distribution" >&5
16346 echo $ECHO_N "checking for Operating System Distribution... $ECHO_C" >&6; }
16347 if test "x$DISTNAME" != "x"
16348 then
16349         echo "distname set to $DISTNAME"
16350 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
16351 then
16352         DISTNAME=alpha
16353 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
16354 then
16355         DISTNAME=aix
16356 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
16357 then
16358         DISTNAME=hpux
16359 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
16360 then
16361         DISTNAME=solaris
16362 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
16363 then
16364         DISTNAME=freebsd
16365 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
16366 then
16367         DISTNAME=netbsd
16368 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
16369 then
16370         DISTNAME=openbsd
16371 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
16372 then
16373         DISTNAME=irix
16374 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
16375 then
16376         DISTNAME=bsdi
16377 elif test -f /etc/SuSE-release
16378 then
16379         DISTNAME=suse
16380 elif test -d /etc/SuSEconfig
16381 then
16382         DISTNAME=suse5
16383 elif test -f /etc/mandrake-release
16384 then
16385         DISTNAME=mandrake
16386 elif test -f /etc/whitebox-release
16387 then
16388        DISTNAME=redhat
16389 elif test -f /etc/redhat-release
16390 then
16391         DISTNAME=redhat
16392 elif test -f /etc/gentoo-release
16393 then
16394         DISTNAME=gentoo
16395 elif test -f /etc/debian_version
16396 then
16397         DISTNAME=debian
16398 elif test -f /etc/slackware-version
16399 then
16400         DISTNAME=slackware
16401 elif test x$host_vendor = xapple
16402 then
16403     DISTNAME=osx
16404 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
16405 then
16406     DISTNAME=darwin
16407 elif test -f /etc/engarde-version
16408 then
16409         DISTNAME=engarde
16410 elif test "$CYGWIN" = yes
16411 then
16412         DISTNAME=cygwin
16413         cat >>confdefs.h <<\_ACEOF
16414 #define HAVE_CYGWIN 1
16415 _ACEOF
16416
16417 else
16418         DISTNAME=unknown
16419 fi
16420 { echo "$as_me:$LINENO: result: done" >&5
16421 echo "${ECHO_T}done" >&6; }
16422
16423
16424 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
16425 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
16426 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
16427 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
16428   echo $ECHO_N "(cached) $ECHO_C" >&6
16429 else
16430   cat >conftest.make <<\_ACEOF
16431 SHELL = /bin/sh
16432 all:
16433         @echo '@@@%%%=$(MAKE)=@@@%%%'
16434 _ACEOF
16435 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
16436 case `${MAKE-make} -f conftest.make 2>/dev/null` in
16437   *@@@%%%=?*=@@@%%%*)
16438     eval ac_cv_prog_make_${ac_make}_set=yes;;
16439   *)
16440     eval ac_cv_prog_make_${ac_make}_set=no;;
16441 esac
16442 rm -f conftest.make
16443 fi
16444 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
16445   { echo "$as_me:$LINENO: result: yes" >&5
16446 echo "${ECHO_T}yes" >&6; }
16447   SET_MAKE=
16448 else
16449   { echo "$as_me:$LINENO: result: no" >&5
16450 echo "${ECHO_T}no" >&6; }
16451   SET_MAKE="MAKE=${MAKE-make}"
16452 fi
16453
16454
16455
16456         MKINSTALLDIRS=
16457   if test -n "$ac_aux_dir"; then
16458     case "$ac_aux_dir" in
16459       /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
16460       *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
16461     esac
16462   fi
16463   if test -z "$MKINSTALLDIRS"; then
16464     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
16465   fi
16466
16467
16468
16469   { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
16470 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
16471     # Check whether --enable-nls was given.
16472 if test "${enable_nls+set}" = set; then
16473   enableval=$enable_nls; USE_NLS=$enableval
16474 else
16475   USE_NLS=yes
16476 fi
16477
16478   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
16479 echo "${ECHO_T}$USE_NLS" >&6; }
16480
16481
16482
16483
16484
16485
16486 # Prepare PATH_SEPARATOR.
16487 # The user is always right.
16488 if test "${PATH_SEPARATOR+set}" != set; then
16489   echo "#! /bin/sh" >conf$$.sh
16490   echo  "exit 0"   >>conf$$.sh
16491   chmod +x conf$$.sh
16492   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16493     PATH_SEPARATOR=';'
16494   else
16495     PATH_SEPARATOR=:
16496   fi
16497   rm -f conf$$.sh
16498 fi
16499
16500 # Find out how to test for executable files. Don't use a zero-byte file,
16501 # as systems may use methods other than mode bits to determine executability.
16502 cat >conf$$.file <<_ASEOF
16503 #! /bin/sh
16504 exit 0
16505 _ASEOF
16506 chmod +x conf$$.file
16507 if test -x conf$$.file >/dev/null 2>&1; then
16508   ac_executable_p="test -x"
16509 else
16510   ac_executable_p="test -f"
16511 fi
16512 rm -f conf$$.file
16513
16514 # Extract the first word of "msgfmt", so it can be a program name with args.
16515 set dummy msgfmt; ac_word=$2
16516 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16517 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16518 if test "${ac_cv_path_MSGFMT+set}" = set; then
16519   echo $ECHO_N "(cached) $ECHO_C" >&6
16520 else
16521   case "$MSGFMT" in
16522   [\\/]* | ?:[\\/]*)
16523     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
16524     ;;
16525   *)
16526     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16527     for ac_dir in $PATH; do
16528       IFS="$ac_save_IFS"
16529       test -z "$ac_dir" && ac_dir=.
16530       for ac_exec_ext in '' $ac_executable_extensions; do
16531         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16532           echo "$as_me: trying $ac_dir/$ac_word..." >&5
16533           if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
16534      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16535             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
16536             break 2
16537           fi
16538         fi
16539       done
16540     done
16541     IFS="$ac_save_IFS"
16542   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
16543     ;;
16544 esac
16545 fi
16546 MSGFMT="$ac_cv_path_MSGFMT"
16547 if test "$MSGFMT" != ":"; then
16548   { echo "$as_me:$LINENO: result: $MSGFMT" >&5
16549 echo "${ECHO_T}$MSGFMT" >&6; }
16550 else
16551   { echo "$as_me:$LINENO: result: no" >&5
16552 echo "${ECHO_T}no" >&6; }
16553 fi
16554
16555   # Extract the first word of "gmsgfmt", so it can be a program name with args.
16556 set dummy gmsgfmt; ac_word=$2
16557 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16558 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16559 if test "${ac_cv_path_GMSGFMT+set}" = set; then
16560   echo $ECHO_N "(cached) $ECHO_C" >&6
16561 else
16562   case $GMSGFMT in
16563   [\\/]* | ?:[\\/]*)
16564   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
16565   ;;
16566   *)
16567   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16568 for as_dir in $PATH
16569 do
16570   IFS=$as_save_IFS
16571   test -z "$as_dir" && as_dir=.
16572   for ac_exec_ext in '' $ac_executable_extensions; do
16573   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16574     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
16575     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16576     break 2
16577   fi
16578 done
16579 done
16580 IFS=$as_save_IFS
16581
16582   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
16583   ;;
16584 esac
16585 fi
16586 GMSGFMT=$ac_cv_path_GMSGFMT
16587 if test -n "$GMSGFMT"; then
16588   { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
16589 echo "${ECHO_T}$GMSGFMT" >&6; }
16590 else
16591   { echo "$as_me:$LINENO: result: no" >&5
16592 echo "${ECHO_T}no" >&6; }
16593 fi
16594
16595
16596
16597
16598 # Prepare PATH_SEPARATOR.
16599 # The user is always right.
16600 if test "${PATH_SEPARATOR+set}" != set; then
16601   echo "#! /bin/sh" >conf$$.sh
16602   echo  "exit 0"   >>conf$$.sh
16603   chmod +x conf$$.sh
16604   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16605     PATH_SEPARATOR=';'
16606   else
16607     PATH_SEPARATOR=:
16608   fi
16609   rm -f conf$$.sh
16610 fi
16611
16612 # Find out how to test for executable files. Don't use a zero-byte file,
16613 # as systems may use methods other than mode bits to determine executability.
16614 cat >conf$$.file <<_ASEOF
16615 #! /bin/sh
16616 exit 0
16617 _ASEOF
16618 chmod +x conf$$.file
16619 if test -x conf$$.file >/dev/null 2>&1; then
16620   ac_executable_p="test -x"
16621 else
16622   ac_executable_p="test -f"
16623 fi
16624 rm -f conf$$.file
16625
16626 # Extract the first word of "xgettext", so it can be a program name with args.
16627 set dummy xgettext; ac_word=$2
16628 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16629 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16630 if test "${ac_cv_path_XGETTEXT+set}" = set; then
16631   echo $ECHO_N "(cached) $ECHO_C" >&6
16632 else
16633   case "$XGETTEXT" in
16634   [\\/]* | ?:[\\/]*)
16635     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
16636     ;;
16637   *)
16638     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16639     for ac_dir in $PATH; do
16640       IFS="$ac_save_IFS"
16641       test -z "$ac_dir" && ac_dir=.
16642       for ac_exec_ext in '' $ac_executable_extensions; do
16643         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16644           echo "$as_me: trying $ac_dir/$ac_word..." >&5
16645           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
16646      (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16647             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
16648             break 2
16649           fi
16650         fi
16651       done
16652     done
16653     IFS="$ac_save_IFS"
16654   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
16655     ;;
16656 esac
16657 fi
16658 XGETTEXT="$ac_cv_path_XGETTEXT"
16659 if test "$XGETTEXT" != ":"; then
16660   { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
16661 echo "${ECHO_T}$XGETTEXT" >&6; }
16662 else
16663   { echo "$as_me:$LINENO: result: no" >&5
16664 echo "${ECHO_T}no" >&6; }
16665 fi
16666
16667     rm -f messages.po
16668
16669
16670 # Prepare PATH_SEPARATOR.
16671 # The user is always right.
16672 if test "${PATH_SEPARATOR+set}" != set; then
16673   echo "#! /bin/sh" >conf$$.sh
16674   echo  "exit 0"   >>conf$$.sh
16675   chmod +x conf$$.sh
16676   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16677     PATH_SEPARATOR=';'
16678   else
16679     PATH_SEPARATOR=:
16680   fi
16681   rm -f conf$$.sh
16682 fi
16683
16684 # Find out how to test for executable files. Don't use a zero-byte file,
16685 # as systems may use methods other than mode bits to determine executability.
16686 cat >conf$$.file <<_ASEOF
16687 #! /bin/sh
16688 exit 0
16689 _ASEOF
16690 chmod +x conf$$.file
16691 if test -x conf$$.file >/dev/null 2>&1; then
16692   ac_executable_p="test -x"
16693 else
16694   ac_executable_p="test -f"
16695 fi
16696 rm -f conf$$.file
16697
16698 # Extract the first word of "msgmerge", so it can be a program name with args.
16699 set dummy msgmerge; ac_word=$2
16700 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16701 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16702 if test "${ac_cv_path_MSGMERGE+set}" = set; then
16703   echo $ECHO_N "(cached) $ECHO_C" >&6
16704 else
16705   case "$MSGMERGE" in
16706   [\\/]* | ?:[\\/]*)
16707     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
16708     ;;
16709   *)
16710     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16711     for ac_dir in $PATH; do
16712       IFS="$ac_save_IFS"
16713       test -z "$ac_dir" && ac_dir=.
16714       for ac_exec_ext in '' $ac_executable_extensions; do
16715         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16716           echo "$as_me: trying $ac_dir/$ac_word..." >&5
16717           if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
16718             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
16719             break 2
16720           fi
16721         fi
16722       done
16723     done
16724     IFS="$ac_save_IFS"
16725   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
16726     ;;
16727 esac
16728 fi
16729 MSGMERGE="$ac_cv_path_MSGMERGE"
16730 if test "$MSGMERGE" != ":"; then
16731   { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
16732 echo "${ECHO_T}$MSGMERGE" >&6; }
16733 else
16734   { echo "$as_me:$LINENO: result: no" >&5
16735 echo "${ECHO_T}no" >&6; }
16736 fi
16737
16738
16739       if test "$GMSGFMT" != ":"; then
16740             if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
16741        (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16742       : ;
16743     else
16744       GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
16745       { echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
16746 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
16747       GMSGFMT=":"
16748     fi
16749   fi
16750
16751       if test "$XGETTEXT" != ":"; then
16752             if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
16753        (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16754       : ;
16755     else
16756       { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
16757 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; }
16758       XGETTEXT=":"
16759     fi
16760         rm -f messages.po
16761   fi
16762
16763   ac_config_commands="$ac_config_commands default-1"
16764
16765
16766
16767       if test "X$prefix" = "XNONE"; then
16768     acl_final_prefix="$ac_default_prefix"
16769   else
16770     acl_final_prefix="$prefix"
16771   fi
16772   if test "X$exec_prefix" = "XNONE"; then
16773     acl_final_exec_prefix='${prefix}'
16774   else
16775     acl_final_exec_prefix="$exec_prefix"
16776   fi
16777   acl_save_prefix="$prefix"
16778   prefix="$acl_final_prefix"
16779   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
16780   prefix="$acl_save_prefix"
16781
16782
16783 # Check whether --with-gnu-ld was given.
16784 if test "${with_gnu_ld+set}" = set; then
16785   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
16786 else
16787   with_gnu_ld=no
16788 fi
16789
16790 # Prepare PATH_SEPARATOR.
16791 # The user is always right.
16792 if test "${PATH_SEPARATOR+set}" != set; then
16793   echo "#! /bin/sh" >conf$$.sh
16794   echo  "exit 0"   >>conf$$.sh
16795   chmod +x conf$$.sh
16796   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16797     PATH_SEPARATOR=';'
16798   else
16799     PATH_SEPARATOR=:
16800   fi
16801   rm -f conf$$.sh
16802 fi
16803 ac_prog=ld
16804 if test "$GCC" = yes; then
16805   # Check if gcc -print-prog-name=ld gives a path.
16806   { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
16807 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
16808   case $host in
16809   *-*-mingw*)
16810     # gcc leaves a trailing carriage return which upsets mingw
16811     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16812   *)
16813     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16814   esac
16815   case $ac_prog in
16816     # Accept absolute paths.
16817     [\\/]* | [A-Za-z]:[\\/]*)
16818       re_direlt='/[^/][^/]*/\.\./'
16819       # Canonicalize the path of ld
16820       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
16821       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
16822         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
16823       done
16824       test -z "$LD" && LD="$ac_prog"
16825       ;;
16826   "")
16827     # If it fails, then pretend we aren't using GCC.
16828     ac_prog=ld
16829     ;;
16830   *)
16831     # If it is relative, then search for the first ld in PATH.
16832     with_gnu_ld=unknown
16833     ;;
16834   esac
16835 elif test "$with_gnu_ld" = yes; then
16836   { echo "$as_me:$LINENO: checking for GNU ld" >&5
16837 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
16838 else
16839   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
16840 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
16841 fi
16842 if test "${acl_cv_path_LD+set}" = set; then
16843   echo $ECHO_N "(cached) $ECHO_C" >&6
16844 else
16845   if test -z "$LD"; then
16846   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
16847   for ac_dir in $PATH; do
16848     test -z "$ac_dir" && ac_dir=.
16849     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16850       acl_cv_path_LD="$ac_dir/$ac_prog"
16851       # Check to see if the program is GNU ld.  I'd rather use --version,
16852       # but apparently some GNU ld's only accept -v.
16853       # Break only if it was the GNU/non-GNU ld that we prefer.
16854       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
16855       *GNU* | *'with BFD'*)
16856         test "$with_gnu_ld" != no && break ;;
16857       *)
16858         test "$with_gnu_ld" != yes && break ;;
16859       esac
16860     fi
16861   done
16862   IFS="$ac_save_ifs"
16863 else
16864   acl_cv_path_LD="$LD" # Let the user override the test with a path.
16865 fi
16866 fi
16867
16868 LD="$acl_cv_path_LD"
16869 if test -n "$LD"; then
16870   { echo "$as_me:$LINENO: result: $LD" >&5
16871 echo "${ECHO_T}$LD" >&6; }
16872 else
16873   { echo "$as_me:$LINENO: result: no" >&5
16874 echo "${ECHO_T}no" >&6; }
16875 fi
16876 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
16877 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
16878    { (exit 1); exit 1; }; }
16879 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
16880 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
16881 if test "${acl_cv_prog_gnu_ld+set}" = set; then
16882   echo $ECHO_N "(cached) $ECHO_C" >&6
16883 else
16884   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
16885 case `$LD -v 2>&1 </dev/null` in
16886 *GNU* | *'with BFD'*)
16887   acl_cv_prog_gnu_ld=yes ;;
16888 *)
16889   acl_cv_prog_gnu_ld=no ;;
16890 esac
16891 fi
16892 { echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
16893 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
16894 with_gnu_ld=$acl_cv_prog_gnu_ld
16895
16896
16897
16898
16899                                                 { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
16900 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
16901 if test "${acl_cv_rpath+set}" = set; then
16902   echo $ECHO_N "(cached) $ECHO_C" >&6
16903 else
16904
16905     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
16906     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
16907     . ./conftest.sh
16908     rm -f ./conftest.sh
16909     acl_cv_rpath=done
16910
16911 fi
16912 { echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
16913 echo "${ECHO_T}$acl_cv_rpath" >&6; }
16914   wl="$acl_cv_wl"
16915   libext="$acl_cv_libext"
16916   shlibext="$acl_cv_shlibext"
16917   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
16918   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
16919   hardcode_direct="$acl_cv_hardcode_direct"
16920   hardcode_minus_L="$acl_cv_hardcode_minus_L"
16921     # Check whether --enable-rpath was given.
16922 if test "${enable_rpath+set}" = set; then
16923   enableval=$enable_rpath; :
16924 else
16925   enable_rpath=yes
16926 fi
16927
16928
16929
16930
16931
16932
16933
16934
16935     use_additional=yes
16936
16937   acl_save_prefix="$prefix"
16938   prefix="$acl_final_prefix"
16939   acl_save_exec_prefix="$exec_prefix"
16940   exec_prefix="$acl_final_exec_prefix"
16941
16942     eval additional_includedir=\"$includedir\"
16943     eval additional_libdir=\"$libdir\"
16944
16945   exec_prefix="$acl_save_exec_prefix"
16946   prefix="$acl_save_prefix"
16947
16948
16949 # Check whether --with-libiconv-prefix was given.
16950 if test "${with_libiconv_prefix+set}" = set; then
16951   withval=$with_libiconv_prefix;
16952     if test "X$withval" = "Xno"; then
16953       use_additional=no
16954     else
16955       if test "X$withval" = "X"; then
16956
16957   acl_save_prefix="$prefix"
16958   prefix="$acl_final_prefix"
16959   acl_save_exec_prefix="$exec_prefix"
16960   exec_prefix="$acl_final_exec_prefix"
16961
16962           eval additional_includedir=\"$includedir\"
16963           eval additional_libdir=\"$libdir\"
16964
16965   exec_prefix="$acl_save_exec_prefix"
16966   prefix="$acl_save_prefix"
16967
16968       else
16969         additional_includedir="$withval/include"
16970         additional_libdir="$withval/lib"
16971       fi
16972     fi
16973
16974 fi
16975
16976       LIBICONV=
16977   LTLIBICONV=
16978   INCICONV=
16979   rpathdirs=
16980   ltrpathdirs=
16981   names_already_handled=
16982   names_next_round='iconv '
16983   while test -n "$names_next_round"; do
16984     names_this_round="$names_next_round"
16985     names_next_round=
16986     for name in $names_this_round; do
16987       already_handled=
16988       for n in $names_already_handled; do
16989         if test "$n" = "$name"; then
16990           already_handled=yes
16991           break
16992         fi
16993       done
16994       if test -z "$already_handled"; then
16995         names_already_handled="$names_already_handled $name"
16996                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
16997         eval value=\"\$HAVE_LIB$uppername\"
16998         if test -n "$value"; then
16999           if test "$value" = yes; then
17000             eval value=\"\$LIB$uppername\"
17001             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
17002             eval value=\"\$LTLIB$uppername\"
17003             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
17004           else
17005                                     :
17006           fi
17007         else
17008                               found_dir=
17009           found_la=
17010           found_so=
17011           found_a=
17012           if test $use_additional = yes; then
17013             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
17014               found_dir="$additional_libdir"
17015               found_so="$additional_libdir/lib$name.$shlibext"
17016               if test -f "$additional_libdir/lib$name.la"; then
17017                 found_la="$additional_libdir/lib$name.la"
17018               fi
17019             else
17020               if test -f "$additional_libdir/lib$name.$libext"; then
17021                 found_dir="$additional_libdir"
17022                 found_a="$additional_libdir/lib$name.$libext"
17023                 if test -f "$additional_libdir/lib$name.la"; then
17024                   found_la="$additional_libdir/lib$name.la"
17025                 fi
17026               fi
17027             fi
17028           fi
17029           if test "X$found_dir" = "X"; then
17030             for x in $LDFLAGS $LTLIBICONV; do
17031
17032   acl_save_prefix="$prefix"
17033   prefix="$acl_final_prefix"
17034   acl_save_exec_prefix="$exec_prefix"
17035   exec_prefix="$acl_final_exec_prefix"
17036   eval x=\"$x\"
17037   exec_prefix="$acl_save_exec_prefix"
17038   prefix="$acl_save_prefix"
17039
17040               case "$x" in
17041                 -L*)
17042                   dir=`echo "X$x" | sed -e 's/^X-L//'`
17043                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
17044                     found_dir="$dir"
17045                     found_so="$dir/lib$name.$shlibext"
17046                     if test -f "$dir/lib$name.la"; then
17047                       found_la="$dir/lib$name.la"
17048                     fi
17049                   else
17050                     if test -f "$dir/lib$name.$libext"; then
17051                       found_dir="$dir"
17052                       found_a="$dir/lib$name.$libext"
17053                       if test -f "$dir/lib$name.la"; then
17054                         found_la="$dir/lib$name.la"
17055                       fi
17056                     fi
17057                   fi
17058                   ;;
17059               esac
17060               if test "X$found_dir" != "X"; then
17061                 break
17062               fi
17063             done
17064           fi
17065           if test "X$found_dir" != "X"; then
17066                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
17067             if test "X$found_so" != "X"; then
17068                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
17069                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17070               else
17071                                                                                 haveit=
17072                 for x in $ltrpathdirs; do
17073                   if test "X$x" = "X$found_dir"; then
17074                     haveit=yes
17075                     break
17076                   fi
17077                 done
17078                 if test -z "$haveit"; then
17079                   ltrpathdirs="$ltrpathdirs $found_dir"
17080                 fi
17081                                 if test "$hardcode_direct" = yes; then
17082                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17083                 else
17084                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
17085                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17086                                                             haveit=
17087                     for x in $rpathdirs; do
17088                       if test "X$x" = "X$found_dir"; then
17089                         haveit=yes
17090                         break
17091                       fi
17092                     done
17093                     if test -z "$haveit"; then
17094                       rpathdirs="$rpathdirs $found_dir"
17095                     fi
17096                   else
17097                                                                                 haveit=
17098                     for x in $LDFLAGS $LIBICONV; do
17099
17100   acl_save_prefix="$prefix"
17101   prefix="$acl_final_prefix"
17102   acl_save_exec_prefix="$exec_prefix"
17103   exec_prefix="$acl_final_exec_prefix"
17104   eval x=\"$x\"
17105   exec_prefix="$acl_save_exec_prefix"
17106   prefix="$acl_save_prefix"
17107
17108                       if test "X$x" = "X-L$found_dir"; then
17109                         haveit=yes
17110                         break
17111                       fi
17112                     done
17113                     if test -z "$haveit"; then
17114                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
17115                     fi
17116                     if test "$hardcode_minus_L" != no; then
17117                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17118                     else
17119                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
17120                     fi
17121                   fi
17122                 fi
17123               fi
17124             else
17125               if test "X$found_a" != "X"; then
17126                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
17127               else
17128                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
17129               fi
17130             fi
17131                         additional_includedir=
17132             case "$found_dir" in
17133               */lib | */lib/)
17134                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17135                 additional_includedir="$basedir/include"
17136                 ;;
17137             esac
17138             if test "X$additional_includedir" != "X"; then
17139                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
17140                 haveit=
17141                 if test "X$additional_includedir" = "X/usr/local/include"; then
17142                   if test -n "$GCC"; then
17143                     case $host_os in
17144                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17145                     esac
17146                   fi
17147                 fi
17148                 if test -z "$haveit"; then
17149                   for x in $CPPFLAGS $INCICONV; do
17150
17151   acl_save_prefix="$prefix"
17152   prefix="$acl_final_prefix"
17153   acl_save_exec_prefix="$exec_prefix"
17154   exec_prefix="$acl_final_exec_prefix"
17155   eval x=\"$x\"
17156   exec_prefix="$acl_save_exec_prefix"
17157   prefix="$acl_save_prefix"
17158
17159                     if test "X$x" = "X-I$additional_includedir"; then
17160                       haveit=yes
17161                       break
17162                     fi
17163                   done
17164                   if test -z "$haveit"; then
17165                     if test -d "$additional_includedir"; then
17166                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
17167                     fi
17168                   fi
17169                 fi
17170               fi
17171             fi
17172                         if test -n "$found_la"; then
17173                                                         save_libdir="$libdir"
17174               case "$found_la" in
17175                 */* | *\\*) . "$found_la" ;;
17176                 *) . "./$found_la" ;;
17177               esac
17178               libdir="$save_libdir"
17179                             for dep in $dependency_libs; do
17180                 case "$dep" in
17181                   -L*)
17182                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17183                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
17184                       haveit=
17185                       if test "X$additional_libdir" = "X/usr/local/lib"; then
17186                         if test -n "$GCC"; then
17187                           case $host_os in
17188                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17189                           esac
17190                         fi
17191                       fi
17192                       if test -z "$haveit"; then
17193                         haveit=
17194                         for x in $LDFLAGS $LIBICONV; do
17195
17196   acl_save_prefix="$prefix"
17197   prefix="$acl_final_prefix"
17198   acl_save_exec_prefix="$exec_prefix"
17199   exec_prefix="$acl_final_exec_prefix"
17200   eval x=\"$x\"
17201   exec_prefix="$acl_save_exec_prefix"
17202   prefix="$acl_save_prefix"
17203
17204                           if test "X$x" = "X-L$additional_libdir"; then
17205                             haveit=yes
17206                             break
17207                           fi
17208                         done
17209                         if test -z "$haveit"; then
17210                           if test -d "$additional_libdir"; then
17211                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
17212                           fi
17213                         fi
17214                         haveit=
17215                         for x in $LDFLAGS $LTLIBICONV; do
17216
17217   acl_save_prefix="$prefix"
17218   prefix="$acl_final_prefix"
17219   acl_save_exec_prefix="$exec_prefix"
17220   exec_prefix="$acl_final_exec_prefix"
17221   eval x=\"$x\"
17222   exec_prefix="$acl_save_exec_prefix"
17223   prefix="$acl_save_prefix"
17224
17225                           if test "X$x" = "X-L$additional_libdir"; then
17226                             haveit=yes
17227                             break
17228                           fi
17229                         done
17230                         if test -z "$haveit"; then
17231                           if test -d "$additional_libdir"; then
17232                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
17233                           fi
17234                         fi
17235                       fi
17236                     fi
17237                     ;;
17238                   -R*)
17239                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
17240                     if test "$enable_rpath" != no; then
17241                                                                   haveit=
17242                       for x in $rpathdirs; do
17243                         if test "X$x" = "X$dir"; then
17244                           haveit=yes
17245                           break
17246                         fi
17247                       done
17248                       if test -z "$haveit"; then
17249                         rpathdirs="$rpathdirs $dir"
17250                       fi
17251                                                                   haveit=
17252                       for x in $ltrpathdirs; do
17253                         if test "X$x" = "X$dir"; then
17254                           haveit=yes
17255                           break
17256                         fi
17257                       done
17258                       if test -z "$haveit"; then
17259                         ltrpathdirs="$ltrpathdirs $dir"
17260                       fi
17261                     fi
17262                     ;;
17263                   -l*)
17264                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
17265                     ;;
17266                   *.la)
17267                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
17268                     ;;
17269                   *)
17270                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
17271                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
17272                     ;;
17273                 esac
17274               done
17275             fi
17276           else
17277                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
17278             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
17279           fi
17280         fi
17281       fi
17282     done
17283   done
17284   if test "X$rpathdirs" != "X"; then
17285     if test -n "$hardcode_libdir_separator"; then
17286                         alldirs=
17287       for found_dir in $rpathdirs; do
17288         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
17289       done
17290             acl_save_libdir="$libdir"
17291       libdir="$alldirs"
17292       eval flag=\"$hardcode_libdir_flag_spec\"
17293       libdir="$acl_save_libdir"
17294       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
17295     else
17296             for found_dir in $rpathdirs; do
17297         acl_save_libdir="$libdir"
17298         libdir="$found_dir"
17299         eval flag=\"$hardcode_libdir_flag_spec\"
17300         libdir="$acl_save_libdir"
17301         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
17302       done
17303     fi
17304   fi
17305   if test "X$ltrpathdirs" != "X"; then
17306             for found_dir in $ltrpathdirs; do
17307       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
17308     done
17309   fi
17310
17311
17312
17313
17314
17315
17316
17317
17318
17319
17320
17321
17322
17323
17324
17325
17326
17327
17328     { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
17329 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
17330 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
17331   echo $ECHO_N "(cached) $ECHO_C" >&6
17332 else
17333   gt_save_CPPFLAGS="$CPPFLAGS"
17334      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
17335      gt_save_LIBS="$LIBS"
17336      LIBS="$LIBS -framework CoreFoundation"
17337      cat >conftest.$ac_ext <<_ACEOF
17338 /* confdefs.h.  */
17339 _ACEOF
17340 cat confdefs.h >>conftest.$ac_ext
17341 cat >>conftest.$ac_ext <<_ACEOF
17342 /* end confdefs.h.  */
17343 #include <CFPreferences.h>
17344 int
17345 main ()
17346 {
17347 CFPreferencesCopyAppValue(NULL, NULL)
17348   ;
17349   return 0;
17350 }
17351 _ACEOF
17352 rm -f conftest.$ac_objext conftest$ac_exeext
17353 if { (ac_try="$ac_link"
17354 case "(($ac_try" in
17355   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17356   *) ac_try_echo=$ac_try;;
17357 esac
17358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17359   (eval "$ac_link") 2>conftest.er1
17360   ac_status=$?
17361   grep -v '^ *+' conftest.er1 >conftest.err
17362   rm -f conftest.er1
17363   cat conftest.err >&5
17364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17365   (exit $ac_status); } && {
17366          test -z "$ac_c_werror_flag" ||
17367          test ! -s conftest.err
17368        } && test -s conftest$ac_exeext &&
17369        $as_test_x conftest$ac_exeext; then
17370   gt_cv_func_CFPreferencesCopyAppValue=yes
17371 else
17372   echo "$as_me: failed program was:" >&5
17373 sed 's/^/| /' conftest.$ac_ext >&5
17374
17375         gt_cv_func_CFPreferencesCopyAppValue=no
17376 fi
17377
17378 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17379       conftest$ac_exeext conftest.$ac_ext
17380      CPPFLAGS="$gt_save_CPPFLAGS"
17381      LIBS="$gt_save_LIBS"
17382 fi
17383 { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
17384 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
17385   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
17386
17387 cat >>confdefs.h <<\_ACEOF
17388 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
17389 _ACEOF
17390
17391   fi
17392     { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
17393 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
17394 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
17395   echo $ECHO_N "(cached) $ECHO_C" >&6
17396 else
17397   gt_save_CPPFLAGS="$CPPFLAGS"
17398      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
17399      gt_save_LIBS="$LIBS"
17400      LIBS="$LIBS -framework CoreFoundation"
17401      cat >conftest.$ac_ext <<_ACEOF
17402 /* confdefs.h.  */
17403 _ACEOF
17404 cat confdefs.h >>conftest.$ac_ext
17405 cat >>conftest.$ac_ext <<_ACEOF
17406 /* end confdefs.h.  */
17407 #include <CFLocale.h>
17408 int
17409 main ()
17410 {
17411 CFLocaleCopyCurrent();
17412   ;
17413   return 0;
17414 }
17415 _ACEOF
17416 rm -f conftest.$ac_objext conftest$ac_exeext
17417 if { (ac_try="$ac_link"
17418 case "(($ac_try" in
17419   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17420   *) ac_try_echo=$ac_try;;
17421 esac
17422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17423   (eval "$ac_link") 2>conftest.er1
17424   ac_status=$?
17425   grep -v '^ *+' conftest.er1 >conftest.err
17426   rm -f conftest.er1
17427   cat conftest.err >&5
17428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17429   (exit $ac_status); } && {
17430          test -z "$ac_c_werror_flag" ||
17431          test ! -s conftest.err
17432        } && test -s conftest$ac_exeext &&
17433        $as_test_x conftest$ac_exeext; then
17434   gt_cv_func_CFLocaleCopyCurrent=yes
17435 else
17436   echo "$as_me: failed program was:" >&5
17437 sed 's/^/| /' conftest.$ac_ext >&5
17438
17439         gt_cv_func_CFLocaleCopyCurrent=no
17440 fi
17441
17442 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17443       conftest$ac_exeext conftest.$ac_ext
17444      CPPFLAGS="$gt_save_CPPFLAGS"
17445      LIBS="$gt_save_LIBS"
17446 fi
17447 { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
17448 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
17449   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
17450
17451 cat >>confdefs.h <<\_ACEOF
17452 #define HAVE_CFLOCALECOPYCURRENT 1
17453 _ACEOF
17454
17455   fi
17456   INTL_MACOSX_LIBS=
17457   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
17458     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
17459   fi
17460
17461
17462
17463
17464   { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
17465 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
17466     # Check whether --enable-nls was given.
17467 if test "${enable_nls+set}" = set; then
17468   enableval=$enable_nls; USE_NLS=$enableval
17469 else
17470   USE_NLS=yes
17471 fi
17472
17473   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
17474 echo "${ECHO_T}$USE_NLS" >&6; }
17475
17476
17477
17478
17479   LIBINTL=
17480   LTLIBINTL=
17481   POSUB=
17482
17483     if test "$USE_NLS" = "yes"; then
17484     gt_use_preinstalled_gnugettext=no
17485
17486
17487
17488
17489
17490
17491         { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
17492 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
17493 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
17494   echo $ECHO_N "(cached) $ECHO_C" >&6
17495 else
17496   cat >conftest.$ac_ext <<_ACEOF
17497 /* confdefs.h.  */
17498 _ACEOF
17499 cat confdefs.h >>conftest.$ac_ext
17500 cat >>conftest.$ac_ext <<_ACEOF
17501 /* end confdefs.h.  */
17502 #include <libintl.h>
17503 extern int _nl_msg_cat_cntr;
17504 extern int *_nl_domain_bindings;
17505 int
17506 main ()
17507 {
17508 bindtextdomain ("", "");
17509 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
17510   ;
17511   return 0;
17512 }
17513 _ACEOF
17514 rm -f conftest.$ac_objext conftest$ac_exeext
17515 if { (ac_try="$ac_link"
17516 case "(($ac_try" in
17517   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17518   *) ac_try_echo=$ac_try;;
17519 esac
17520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17521   (eval "$ac_link") 2>conftest.er1
17522   ac_status=$?
17523   grep -v '^ *+' conftest.er1 >conftest.err
17524   rm -f conftest.er1
17525   cat conftest.err >&5
17526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17527   (exit $ac_status); } && {
17528          test -z "$ac_c_werror_flag" ||
17529          test ! -s conftest.err
17530        } && test -s conftest$ac_exeext &&
17531        $as_test_x conftest$ac_exeext; then
17532   gt_cv_func_gnugettext1_libc=yes
17533 else
17534   echo "$as_me: failed program was:" >&5
17535 sed 's/^/| /' conftest.$ac_ext >&5
17536
17537         gt_cv_func_gnugettext1_libc=no
17538 fi
17539
17540 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17541       conftest$ac_exeext conftest.$ac_ext
17542 fi
17543 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
17544 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
17545
17546         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
17547
17548
17549
17550
17551
17552           am_save_CPPFLAGS="$CPPFLAGS"
17553
17554   for element in $INCICONV; do
17555     haveit=
17556     for x in $CPPFLAGS; do
17557
17558   acl_save_prefix="$prefix"
17559   prefix="$acl_final_prefix"
17560   acl_save_exec_prefix="$exec_prefix"
17561   exec_prefix="$acl_final_exec_prefix"
17562   eval x=\"$x\"
17563   exec_prefix="$acl_save_exec_prefix"
17564   prefix="$acl_save_prefix"
17565
17566       if test "X$x" = "X$element"; then
17567         haveit=yes
17568         break
17569       fi
17570     done
17571     if test -z "$haveit"; then
17572       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
17573     fi
17574   done
17575
17576
17577   { echo "$as_me:$LINENO: checking for iconv" >&5
17578 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
17579 if test "${am_cv_func_iconv+set}" = set; then
17580   echo $ECHO_N "(cached) $ECHO_C" >&6
17581 else
17582
17583     am_cv_func_iconv="no, consider installing GNU libiconv"
17584     am_cv_lib_iconv=no
17585     cat >conftest.$ac_ext <<_ACEOF
17586 /* confdefs.h.  */
17587 _ACEOF
17588 cat confdefs.h >>conftest.$ac_ext
17589 cat >>conftest.$ac_ext <<_ACEOF
17590 /* end confdefs.h.  */
17591 #include <stdlib.h>
17592 #include <iconv.h>
17593 int
17594 main ()
17595 {
17596 iconv_t cd = iconv_open("","");
17597        iconv(cd,NULL,NULL,NULL,NULL);
17598        iconv_close(cd);
17599   ;
17600   return 0;
17601 }
17602 _ACEOF
17603 rm -f conftest.$ac_objext conftest$ac_exeext
17604 if { (ac_try="$ac_link"
17605 case "(($ac_try" in
17606   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17607   *) ac_try_echo=$ac_try;;
17608 esac
17609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17610   (eval "$ac_link") 2>conftest.er1
17611   ac_status=$?
17612   grep -v '^ *+' conftest.er1 >conftest.err
17613   rm -f conftest.er1
17614   cat conftest.err >&5
17615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17616   (exit $ac_status); } && {
17617          test -z "$ac_c_werror_flag" ||
17618          test ! -s conftest.err
17619        } && test -s conftest$ac_exeext &&
17620        $as_test_x conftest$ac_exeext; then
17621   am_cv_func_iconv=yes
17622 else
17623   echo "$as_me: failed program was:" >&5
17624 sed 's/^/| /' conftest.$ac_ext >&5
17625
17626
17627 fi
17628
17629 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17630       conftest$ac_exeext conftest.$ac_ext
17631     if test "$am_cv_func_iconv" != yes; then
17632       am_save_LIBS="$LIBS"
17633       LIBS="$LIBS $LIBICONV"
17634       cat >conftest.$ac_ext <<_ACEOF
17635 /* confdefs.h.  */
17636 _ACEOF
17637 cat confdefs.h >>conftest.$ac_ext
17638 cat >>conftest.$ac_ext <<_ACEOF
17639 /* end confdefs.h.  */
17640 #include <stdlib.h>
17641 #include <iconv.h>
17642 int
17643 main ()
17644 {
17645 iconv_t cd = iconv_open("","");
17646          iconv(cd,NULL,NULL,NULL,NULL);
17647          iconv_close(cd);
17648   ;
17649   return 0;
17650 }
17651 _ACEOF
17652 rm -f conftest.$ac_objext conftest$ac_exeext
17653 if { (ac_try="$ac_link"
17654 case "(($ac_try" in
17655   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17656   *) ac_try_echo=$ac_try;;
17657 esac
17658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17659   (eval "$ac_link") 2>conftest.er1
17660   ac_status=$?
17661   grep -v '^ *+' conftest.er1 >conftest.err
17662   rm -f conftest.er1
17663   cat conftest.err >&5
17664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17665   (exit $ac_status); } && {
17666          test -z "$ac_c_werror_flag" ||
17667          test ! -s conftest.err
17668        } && test -s conftest$ac_exeext &&
17669        $as_test_x conftest$ac_exeext; then
17670   am_cv_lib_iconv=yes
17671         am_cv_func_iconv=yes
17672 else
17673   echo "$as_me: failed program was:" >&5
17674 sed 's/^/| /' conftest.$ac_ext >&5
17675
17676
17677 fi
17678
17679 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17680       conftest$ac_exeext conftest.$ac_ext
17681       LIBS="$am_save_LIBS"
17682     fi
17683
17684 fi
17685 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
17686 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
17687   if test "$am_cv_func_iconv" = yes; then
17688
17689 cat >>confdefs.h <<\_ACEOF
17690 #define HAVE_ICONV 1
17691 _ACEOF
17692
17693   fi
17694   if test "$am_cv_lib_iconv" = yes; then
17695     { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
17696 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
17697     { echo "$as_me:$LINENO: result: $LIBICONV" >&5
17698 echo "${ECHO_T}$LIBICONV" >&6; }
17699   else
17700             CPPFLAGS="$am_save_CPPFLAGS"
17701     LIBICONV=
17702     LTLIBICONV=
17703   fi
17704
17705
17706
17707
17708
17709
17710     use_additional=yes
17711
17712   acl_save_prefix="$prefix"
17713   prefix="$acl_final_prefix"
17714   acl_save_exec_prefix="$exec_prefix"
17715   exec_prefix="$acl_final_exec_prefix"
17716
17717     eval additional_includedir=\"$includedir\"
17718     eval additional_libdir=\"$libdir\"
17719
17720   exec_prefix="$acl_save_exec_prefix"
17721   prefix="$acl_save_prefix"
17722
17723
17724 # Check whether --with-libintl-prefix was given.
17725 if test "${with_libintl_prefix+set}" = set; then
17726   withval=$with_libintl_prefix;
17727     if test "X$withval" = "Xno"; then
17728       use_additional=no
17729     else
17730       if test "X$withval" = "X"; then
17731
17732   acl_save_prefix="$prefix"
17733   prefix="$acl_final_prefix"
17734   acl_save_exec_prefix="$exec_prefix"
17735   exec_prefix="$acl_final_exec_prefix"
17736
17737           eval additional_includedir=\"$includedir\"
17738           eval additional_libdir=\"$libdir\"
17739
17740   exec_prefix="$acl_save_exec_prefix"
17741   prefix="$acl_save_prefix"
17742
17743       else
17744         additional_includedir="$withval/include"
17745         additional_libdir="$withval/lib"
17746       fi
17747     fi
17748
17749 fi
17750
17751       LIBINTL=
17752   LTLIBINTL=
17753   INCINTL=
17754   rpathdirs=
17755   ltrpathdirs=
17756   names_already_handled=
17757   names_next_round='intl '
17758   while test -n "$names_next_round"; do
17759     names_this_round="$names_next_round"
17760     names_next_round=
17761     for name in $names_this_round; do
17762       already_handled=
17763       for n in $names_already_handled; do
17764         if test "$n" = "$name"; then
17765           already_handled=yes
17766           break
17767         fi
17768       done
17769       if test -z "$already_handled"; then
17770         names_already_handled="$names_already_handled $name"
17771                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
17772         eval value=\"\$HAVE_LIB$uppername\"
17773         if test -n "$value"; then
17774           if test "$value" = yes; then
17775             eval value=\"\$LIB$uppername\"
17776             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
17777             eval value=\"\$LTLIB$uppername\"
17778             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
17779           else
17780                                     :
17781           fi
17782         else
17783                               found_dir=
17784           found_la=
17785           found_so=
17786           found_a=
17787           if test $use_additional = yes; then
17788             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
17789               found_dir="$additional_libdir"
17790               found_so="$additional_libdir/lib$name.$shlibext"
17791               if test -f "$additional_libdir/lib$name.la"; then
17792                 found_la="$additional_libdir/lib$name.la"
17793               fi
17794             else
17795               if test -f "$additional_libdir/lib$name.$libext"; then
17796                 found_dir="$additional_libdir"
17797                 found_a="$additional_libdir/lib$name.$libext"
17798                 if test -f "$additional_libdir/lib$name.la"; then
17799                   found_la="$additional_libdir/lib$name.la"
17800                 fi
17801               fi
17802             fi
17803           fi
17804           if test "X$found_dir" = "X"; then
17805             for x in $LDFLAGS $LTLIBINTL; do
17806
17807   acl_save_prefix="$prefix"
17808   prefix="$acl_final_prefix"
17809   acl_save_exec_prefix="$exec_prefix"
17810   exec_prefix="$acl_final_exec_prefix"
17811   eval x=\"$x\"
17812   exec_prefix="$acl_save_exec_prefix"
17813   prefix="$acl_save_prefix"
17814
17815               case "$x" in
17816                 -L*)
17817                   dir=`echo "X$x" | sed -e 's/^X-L//'`
17818                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
17819                     found_dir="$dir"
17820                     found_so="$dir/lib$name.$shlibext"
17821                     if test -f "$dir/lib$name.la"; then
17822                       found_la="$dir/lib$name.la"
17823                     fi
17824                   else
17825                     if test -f "$dir/lib$name.$libext"; then
17826                       found_dir="$dir"
17827                       found_a="$dir/lib$name.$libext"
17828                       if test -f "$dir/lib$name.la"; then
17829                         found_la="$dir/lib$name.la"
17830                       fi
17831                     fi
17832                   fi
17833                   ;;
17834               esac
17835               if test "X$found_dir" != "X"; then
17836                 break
17837               fi
17838             done
17839           fi
17840           if test "X$found_dir" != "X"; then
17841                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
17842             if test "X$found_so" != "X"; then
17843                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
17844                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17845               else
17846                                                                                 haveit=
17847                 for x in $ltrpathdirs; do
17848                   if test "X$x" = "X$found_dir"; then
17849                     haveit=yes
17850                     break
17851                   fi
17852                 done
17853                 if test -z "$haveit"; then
17854                   ltrpathdirs="$ltrpathdirs $found_dir"
17855                 fi
17856                                 if test "$hardcode_direct" = yes; then
17857                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17858                 else
17859                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
17860                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17861                                                             haveit=
17862                     for x in $rpathdirs; do
17863                       if test "X$x" = "X$found_dir"; then
17864                         haveit=yes
17865                         break
17866                       fi
17867                     done
17868                     if test -z "$haveit"; then
17869                       rpathdirs="$rpathdirs $found_dir"
17870                     fi
17871                   else
17872                                                                                 haveit=
17873                     for x in $LDFLAGS $LIBINTL; do
17874
17875   acl_save_prefix="$prefix"
17876   prefix="$acl_final_prefix"
17877   acl_save_exec_prefix="$exec_prefix"
17878   exec_prefix="$acl_final_exec_prefix"
17879   eval x=\"$x\"
17880   exec_prefix="$acl_save_exec_prefix"
17881   prefix="$acl_save_prefix"
17882
17883                       if test "X$x" = "X-L$found_dir"; then
17884                         haveit=yes
17885                         break
17886                       fi
17887                     done
17888                     if test -z "$haveit"; then
17889                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
17890                     fi
17891                     if test "$hardcode_minus_L" != no; then
17892                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17893                     else
17894                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
17895                     fi
17896                   fi
17897                 fi
17898               fi
17899             else
17900               if test "X$found_a" != "X"; then
17901                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
17902               else
17903                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
17904               fi
17905             fi
17906                         additional_includedir=
17907             case "$found_dir" in
17908               */lib | */lib/)
17909                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17910                 additional_includedir="$basedir/include"
17911                 ;;
17912             esac
17913             if test "X$additional_includedir" != "X"; then
17914                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
17915                 haveit=
17916                 if test "X$additional_includedir" = "X/usr/local/include"; then
17917                   if test -n "$GCC"; then
17918                     case $host_os in
17919                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17920                     esac
17921                   fi
17922                 fi
17923                 if test -z "$haveit"; then
17924                   for x in $CPPFLAGS $INCINTL; do
17925
17926   acl_save_prefix="$prefix"
17927   prefix="$acl_final_prefix"
17928   acl_save_exec_prefix="$exec_prefix"
17929   exec_prefix="$acl_final_exec_prefix"
17930   eval x=\"$x\"
17931   exec_prefix="$acl_save_exec_prefix"
17932   prefix="$acl_save_prefix"
17933
17934                     if test "X$x" = "X-I$additional_includedir"; then
17935                       haveit=yes
17936                       break
17937                     fi
17938                   done
17939                   if test -z "$haveit"; then
17940                     if test -d "$additional_includedir"; then
17941                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
17942                     fi
17943                   fi
17944                 fi
17945               fi
17946             fi
17947                         if test -n "$found_la"; then
17948                                                         save_libdir="$libdir"
17949               case "$found_la" in
17950                 */* | *\\*) . "$found_la" ;;
17951                 *) . "./$found_la" ;;
17952               esac
17953               libdir="$save_libdir"
17954                             for dep in $dependency_libs; do
17955                 case "$dep" in
17956                   -L*)
17957                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17958                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
17959                       haveit=
17960                       if test "X$additional_libdir" = "X/usr/local/lib"; then
17961                         if test -n "$GCC"; then
17962                           case $host_os in
17963                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17964                           esac
17965                         fi
17966                       fi
17967                       if test -z "$haveit"; then
17968                         haveit=
17969                         for x in $LDFLAGS $LIBINTL; do
17970
17971   acl_save_prefix="$prefix"
17972   prefix="$acl_final_prefix"
17973   acl_save_exec_prefix="$exec_prefix"
17974   exec_prefix="$acl_final_exec_prefix"
17975   eval x=\"$x\"
17976   exec_prefix="$acl_save_exec_prefix"
17977   prefix="$acl_save_prefix"
17978
17979                           if test "X$x" = "X-L$additional_libdir"; then
17980                             haveit=yes
17981                             break
17982                           fi
17983                         done
17984                         if test -z "$haveit"; then
17985                           if test -d "$additional_libdir"; then
17986                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
17987                           fi
17988                         fi
17989                         haveit=
17990                         for x in $LDFLAGS $LTLIBINTL; do
17991
17992   acl_save_prefix="$prefix"
17993   prefix="$acl_final_prefix"
17994   acl_save_exec_prefix="$exec_prefix"
17995   exec_prefix="$acl_final_exec_prefix"
17996   eval x=\"$x\"
17997   exec_prefix="$acl_save_exec_prefix"
17998   prefix="$acl_save_prefix"
17999
18000                           if test "X$x" = "X-L$additional_libdir"; then
18001                             haveit=yes
18002                             break
18003                           fi
18004                         done
18005                         if test -z "$haveit"; then
18006                           if test -d "$additional_libdir"; then
18007                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
18008                           fi
18009                         fi
18010                       fi
18011                     fi
18012                     ;;
18013                   -R*)
18014                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
18015                     if test "$enable_rpath" != no; then
18016                                                                   haveit=
18017                       for x in $rpathdirs; do
18018                         if test "X$x" = "X$dir"; then
18019                           haveit=yes
18020                           break
18021                         fi
18022                       done
18023                       if test -z "$haveit"; then
18024                         rpathdirs="$rpathdirs $dir"
18025                       fi
18026                                                                   haveit=
18027                       for x in $ltrpathdirs; do
18028                         if test "X$x" = "X$dir"; then
18029                           haveit=yes
18030                           break
18031                         fi
18032                       done
18033                       if test -z "$haveit"; then
18034                         ltrpathdirs="$ltrpathdirs $dir"
18035                       fi
18036                     fi
18037                     ;;
18038                   -l*)
18039                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
18040                     ;;
18041                   *.la)
18042                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
18043                     ;;
18044                   *)
18045                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
18046                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
18047                     ;;
18048                 esac
18049               done
18050             fi
18051           else
18052                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
18053             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
18054           fi
18055         fi
18056       fi
18057     done
18058   done
18059   if test "X$rpathdirs" != "X"; then
18060     if test -n "$hardcode_libdir_separator"; then
18061                         alldirs=
18062       for found_dir in $rpathdirs; do
18063         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
18064       done
18065             acl_save_libdir="$libdir"
18066       libdir="$alldirs"
18067       eval flag=\"$hardcode_libdir_flag_spec\"
18068       libdir="$acl_save_libdir"
18069       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
18070     else
18071             for found_dir in $rpathdirs; do
18072         acl_save_libdir="$libdir"
18073         libdir="$found_dir"
18074         eval flag=\"$hardcode_libdir_flag_spec\"
18075         libdir="$acl_save_libdir"
18076         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
18077       done
18078     fi
18079   fi
18080   if test "X$ltrpathdirs" != "X"; then
18081             for found_dir in $ltrpathdirs; do
18082       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
18083     done
18084   fi
18085
18086           { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
18087 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
18088 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
18089   echo $ECHO_N "(cached) $ECHO_C" >&6
18090 else
18091   gt_save_CPPFLAGS="$CPPFLAGS"
18092             CPPFLAGS="$CPPFLAGS $INCINTL"
18093             gt_save_LIBS="$LIBS"
18094             LIBS="$LIBS $LIBINTL"
18095                         cat >conftest.$ac_ext <<_ACEOF
18096 /* confdefs.h.  */
18097 _ACEOF
18098 cat confdefs.h >>conftest.$ac_ext
18099 cat >>conftest.$ac_ext <<_ACEOF
18100 /* end confdefs.h.  */
18101 #include <libintl.h>
18102 extern int _nl_msg_cat_cntr;
18103 extern
18104 #ifdef __cplusplus
18105 "C"
18106 #endif
18107 const char *_nl_expand_alias (const char *);
18108 int
18109 main ()
18110 {
18111 bindtextdomain ("", "");
18112 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
18113   ;
18114   return 0;
18115 }
18116 _ACEOF
18117 rm -f conftest.$ac_objext conftest$ac_exeext
18118 if { (ac_try="$ac_link"
18119 case "(($ac_try" in
18120   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18121   *) ac_try_echo=$ac_try;;
18122 esac
18123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18124   (eval "$ac_link") 2>conftest.er1
18125   ac_status=$?
18126   grep -v '^ *+' conftest.er1 >conftest.err
18127   rm -f conftest.er1
18128   cat conftest.err >&5
18129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18130   (exit $ac_status); } && {
18131          test -z "$ac_c_werror_flag" ||
18132          test ! -s conftest.err
18133        } && test -s conftest$ac_exeext &&
18134        $as_test_x conftest$ac_exeext; then
18135   gt_cv_func_gnugettext1_libintl=yes
18136 else
18137   echo "$as_me: failed program was:" >&5
18138 sed 's/^/| /' conftest.$ac_ext >&5
18139
18140         gt_cv_func_gnugettext1_libintl=no
18141 fi
18142
18143 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18144       conftest$ac_exeext conftest.$ac_ext
18145                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
18146               LIBS="$LIBS $LIBICONV"
18147               cat >conftest.$ac_ext <<_ACEOF
18148 /* confdefs.h.  */
18149 _ACEOF
18150 cat confdefs.h >>conftest.$ac_ext
18151 cat >>conftest.$ac_ext <<_ACEOF
18152 /* end confdefs.h.  */
18153 #include <libintl.h>
18154 extern int _nl_msg_cat_cntr;
18155 extern
18156 #ifdef __cplusplus
18157 "C"
18158 #endif
18159 const char *_nl_expand_alias (const char *);
18160 int
18161 main ()
18162 {
18163 bindtextdomain ("", "");
18164 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
18165   ;
18166   return 0;
18167 }
18168 _ACEOF
18169 rm -f conftest.$ac_objext conftest$ac_exeext
18170 if { (ac_try="$ac_link"
18171 case "(($ac_try" in
18172   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18173   *) ac_try_echo=$ac_try;;
18174 esac
18175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18176   (eval "$ac_link") 2>conftest.er1
18177   ac_status=$?
18178   grep -v '^ *+' conftest.er1 >conftest.err
18179   rm -f conftest.er1
18180   cat conftest.err >&5
18181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18182   (exit $ac_status); } && {
18183          test -z "$ac_c_werror_flag" ||
18184          test ! -s conftest.err
18185        } && test -s conftest$ac_exeext &&
18186        $as_test_x conftest$ac_exeext; then
18187   LIBINTL="$LIBINTL $LIBICONV"
18188                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
18189                 gt_cv_func_gnugettext1_libintl=yes
18190
18191 else
18192   echo "$as_me: failed program was:" >&5
18193 sed 's/^/| /' conftest.$ac_ext >&5
18194
18195
18196 fi
18197
18198 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18199       conftest$ac_exeext conftest.$ac_ext
18200             fi
18201             CPPFLAGS="$gt_save_CPPFLAGS"
18202             LIBS="$gt_save_LIBS"
18203 fi
18204 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
18205 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
18206         fi
18207
18208                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
18209            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
18210                 && test "$PACKAGE" != gettext-runtime \
18211                 && test "$PACKAGE" != gettext-tools; }; then
18212           gt_use_preinstalled_gnugettext=yes
18213         else
18214                     LIBINTL=
18215           LTLIBINTL=
18216           INCINTL=
18217         fi
18218
18219
18220
18221     if test -n "$INTL_MACOSX_LIBS"; then
18222       if test "$gt_use_preinstalled_gnugettext" = "yes" \
18223          || test "$nls_cv_use_gnu_gettext" = "yes"; then
18224                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
18225         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
18226       fi
18227     fi
18228
18229     if test "$gt_use_preinstalled_gnugettext" = "yes" \
18230        || test "$nls_cv_use_gnu_gettext" = "yes"; then
18231
18232 cat >>confdefs.h <<\_ACEOF
18233 #define ENABLE_NLS 1
18234 _ACEOF
18235
18236     else
18237       USE_NLS=no
18238     fi
18239   fi
18240
18241   { echo "$as_me:$LINENO: checking whether to use NLS" >&5
18242 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
18243   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
18244 echo "${ECHO_T}$USE_NLS" >&6; }
18245   if test "$USE_NLS" = "yes"; then
18246     { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
18247 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
18248     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
18249       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
18250         gt_source="external libintl"
18251       else
18252         gt_source="libc"
18253       fi
18254     else
18255       gt_source="included intl directory"
18256     fi
18257     { echo "$as_me:$LINENO: result: $gt_source" >&5
18258 echo "${ECHO_T}$gt_source" >&6; }
18259   fi
18260
18261   if test "$USE_NLS" = "yes"; then
18262
18263     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
18264       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
18265         { echo "$as_me:$LINENO: checking how to link with libintl" >&5
18266 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
18267         { echo "$as_me:$LINENO: result: $LIBINTL" >&5
18268 echo "${ECHO_T}$LIBINTL" >&6; }
18269
18270   for element in $INCINTL; do
18271     haveit=
18272     for x in $CPPFLAGS; do
18273
18274   acl_save_prefix="$prefix"
18275   prefix="$acl_final_prefix"
18276   acl_save_exec_prefix="$exec_prefix"
18277   exec_prefix="$acl_final_exec_prefix"
18278   eval x=\"$x\"
18279   exec_prefix="$acl_save_exec_prefix"
18280   prefix="$acl_save_prefix"
18281
18282       if test "X$x" = "X$element"; then
18283         haveit=yes
18284         break
18285       fi
18286     done
18287     if test -z "$haveit"; then
18288       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
18289     fi
18290   done
18291
18292       fi
18293
18294
18295 cat >>confdefs.h <<\_ACEOF
18296 #define HAVE_GETTEXT 1
18297 _ACEOF
18298
18299
18300 cat >>confdefs.h <<\_ACEOF
18301 #define HAVE_DCGETTEXT 1
18302 _ACEOF
18303
18304     fi
18305
18306         POSUB=po
18307   fi
18308
18309
18310
18311     INTLLIBS="$LIBINTL"
18312
18313
18314
18315
18316
18317
18318
18319 os_name=`uname -s 2>/dev/null`
18320 if test x${prefix} = xNONE ; then
18321    if test `eval echo ${sysconfdir}` = NONE/etc ; then
18322       sysconfdir=/etc/bacula
18323    fi
18324
18325    if test `eval echo ${libdir}` = NONE/lib ; then
18326       case ${os_name} in
18327       Linux)
18328          os_processor=`uname -p 2>/dev/null`
18329          case ${os_processor} in
18330          x86_64)
18331             libdir=/usr/lib64
18332             ;;
18333          *)
18334             libdir=/usr/lib
18335             ;;
18336          esac
18337          ;;
18338       *)
18339          libdir=/usr/lib
18340          ;;
18341       esac
18342    fi
18343
18344    if test `eval echo ${includedir}` = NONE/include ; then
18345       includedir=/usr/include
18346    fi
18347
18348    if test `eval echo ${datarootdir}` = NONE/share ; then
18349       datarootdir=/usr/share
18350    fi
18351    prefix=
18352 fi
18353
18354 if test x${exec_prefix} = xNONE ; then
18355    exec_prefix=${prefix}
18356 fi
18357
18358 sysconfdir=`eval echo ${sysconfdir}`
18359 datarootdir=`eval echo ${datarootdir}`
18360 docdir=`eval echo ${docdir}`
18361 htmldir=`eval echo ${htmldir}`
18362 libdir=`eval echo ${libdir}`
18363 includedir=`eval echo ${includedir}`
18364 localedir=`eval echo ${datarootdir}/locale`
18365 cat >>confdefs.h <<_ACEOF
18366 #define SYSCONFDIR "$sysconfdir"
18367 _ACEOF
18368
18369 cat >>confdefs.h <<_ACEOF
18370 #define LOCALEDIR "$localedir"
18371 _ACEOF
18372
18373
18374 if test x$sbindir = x'${exec_prefix}/sbin' ; then
18375    sbindir=${exec_prefix}/sbin
18376 fi
18377 sbindir=`eval echo ${sbindir}`
18378
18379 if test x$mandir = x'${prefix}/man' ; then
18380    mandir=/usr/share/man
18381 fi
18382
18383 if test x$htmldir = x${docdir} ; then
18384    htmldir=`eval echo ${docdir}bacula/html`
18385 fi
18386
18387 if test x$docdir = x'/usr/share/doc/' ; then
18388    docdir=`eval echo ${docdir}bacula`
18389 fi
18390
18391
18392 for ac_prog in msgfmt
18393 do
18394   # Extract the first word of "$ac_prog", so it can be a program name with args.
18395 set dummy $ac_prog; ac_word=$2
18396 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18397 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18398 if test "${ac_cv_path_MSGFMT+set}" = set; then
18399   echo $ECHO_N "(cached) $ECHO_C" >&6
18400 else
18401   case $MSGFMT in
18402   [\\/]* | ?:[\\/]*)
18403   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
18404   ;;
18405   *)
18406   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18407 for as_dir in $PATH
18408 do
18409   IFS=$as_save_IFS
18410   test -z "$as_dir" && as_dir=.
18411   for ac_exec_ext in '' $ac_executable_extensions; do
18412   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18413     ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
18414     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18415     break 2
18416   fi
18417 done
18418 done
18419 IFS=$as_save_IFS
18420
18421   ;;
18422 esac
18423 fi
18424 MSGFMT=$ac_cv_path_MSGFMT
18425 if test -n "$MSGFMT"; then
18426   { echo "$as_me:$LINENO: result: $MSGFMT" >&5
18427 echo "${ECHO_T}$MSGFMT" >&6; }
18428 else
18429   { echo "$as_me:$LINENO: result: no" >&5
18430 echo "${ECHO_T}no" >&6; }
18431 fi
18432
18433
18434   test -n "$MSGFMT" && break
18435 done
18436 test -n "$MSGFMT" || MSGFMT="no"
18437
18438 if test "$MSGFMT" = "no"
18439 then
18440    echo 'msgfmt program not found, disabling NLS !'
18441    USE_NLS=no
18442    USE_INCLUDED_LIBINTL=no
18443 #else
18444
18445     { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2 or newer" >&5
18446 echo $ECHO_N "checking whether we are using the GNU C Library 2 or newer... $ECHO_C" >&6; }
18447 if test "${ac_cv_gnu_library_2+set}" = set; then
18448   echo $ECHO_N "(cached) $ECHO_C" >&6
18449 else
18450   cat >conftest.$ac_ext <<_ACEOF
18451 /* confdefs.h.  */
18452 _ACEOF
18453 cat confdefs.h >>conftest.$ac_ext
18454 cat >>conftest.$ac_ext <<_ACEOF
18455 /* end confdefs.h.  */
18456
18457 #include <features.h>
18458 #ifdef __GNU_LIBRARY__
18459  #if (__GLIBC__ >= 2)
18460   Lucky GNU user
18461  #endif
18462 #endif
18463
18464 _ACEOF
18465 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18466   $EGREP "Lucky GNU user" >/dev/null 2>&1; then
18467   ac_cv_gnu_library_2=yes
18468 else
18469   ac_cv_gnu_library_2=no
18470 fi
18471 rm -f conftest*
18472
18473
18474
18475 fi
18476 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2" >&5
18477 echo "${ECHO_T}$ac_cv_gnu_library_2" >&6; }
18478
18479     GLIBC2="$ac_cv_gnu_library_2"
18480
18481
18482 if test -n "$ac_tool_prefix"; then
18483   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
18484 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
18485 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18486 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18487 if test "${ac_cv_prog_RANLIB+set}" = set; then
18488   echo $ECHO_N "(cached) $ECHO_C" >&6
18489 else
18490   if test -n "$RANLIB"; then
18491   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
18492 else
18493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18494 for as_dir in $PATH
18495 do
18496   IFS=$as_save_IFS
18497   test -z "$as_dir" && as_dir=.
18498   for ac_exec_ext in '' $ac_executable_extensions; do
18499   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18500     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
18501     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18502     break 2
18503   fi
18504 done
18505 done
18506 IFS=$as_save_IFS
18507
18508 fi
18509 fi
18510 RANLIB=$ac_cv_prog_RANLIB
18511 if test -n "$RANLIB"; then
18512   { echo "$as_me:$LINENO: result: $RANLIB" >&5
18513 echo "${ECHO_T}$RANLIB" >&6; }
18514 else
18515   { echo "$as_me:$LINENO: result: no" >&5
18516 echo "${ECHO_T}no" >&6; }
18517 fi
18518
18519
18520 fi
18521 if test -z "$ac_cv_prog_RANLIB"; then
18522   ac_ct_RANLIB=$RANLIB
18523   # Extract the first word of "ranlib", so it can be a program name with args.
18524 set dummy ranlib; ac_word=$2
18525 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18526 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18527 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
18528   echo $ECHO_N "(cached) $ECHO_C" >&6
18529 else
18530   if test -n "$ac_ct_RANLIB"; then
18531   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
18532 else
18533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18534 for as_dir in $PATH
18535 do
18536   IFS=$as_save_IFS
18537   test -z "$as_dir" && as_dir=.
18538   for ac_exec_ext in '' $ac_executable_extensions; do
18539   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18540     ac_cv_prog_ac_ct_RANLIB="ranlib"
18541     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18542     break 2
18543   fi
18544 done
18545 done
18546 IFS=$as_save_IFS
18547
18548 fi
18549 fi
18550 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
18551 if test -n "$ac_ct_RANLIB"; then
18552   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
18553 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
18554 else
18555   { echo "$as_me:$LINENO: result: no" >&5
18556 echo "${ECHO_T}no" >&6; }
18557 fi
18558
18559   if test "x$ac_ct_RANLIB" = x; then
18560     RANLIB=":"
18561   else
18562     case $cross_compiling:$ac_tool_warned in
18563 yes:)
18564 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
18565 whose name does not start with the host triplet.  If you think this
18566 configuration is useful to you, please write to autoconf@gnu.org." >&5
18567 echo "$as_me: 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." >&2;}
18570 ac_tool_warned=yes ;;
18571 esac
18572     RANLIB=$ac_ct_RANLIB
18573   fi
18574 else
18575   RANLIB="$ac_cv_prog_RANLIB"
18576 fi
18577
18578
18579         { echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
18580 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6; }
18581 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
18582   echo $ECHO_N "(cached) $ECHO_C" >&6
18583 else
18584   ac_check_lib_save_LIBS=$LIBS
18585 LIBS="-lcposix  $LIBS"
18586 cat >conftest.$ac_ext <<_ACEOF
18587 /* confdefs.h.  */
18588 _ACEOF
18589 cat confdefs.h >>conftest.$ac_ext
18590 cat >>conftest.$ac_ext <<_ACEOF
18591 /* end confdefs.h.  */
18592
18593 /* Override any GCC internal prototype to avoid an error.
18594    Use char because int might match the return type of a GCC
18595    builtin and then its argument prototype would still apply.  */
18596 #ifdef __cplusplus
18597 extern "C"
18598 #endif
18599 char strerror ();
18600 int
18601 main ()
18602 {
18603 return strerror ();
18604   ;
18605   return 0;
18606 }
18607 _ACEOF
18608 rm -f conftest.$ac_objext conftest$ac_exeext
18609 if { (ac_try="$ac_link"
18610 case "(($ac_try" in
18611   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18612   *) ac_try_echo=$ac_try;;
18613 esac
18614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18615   (eval "$ac_link") 2>conftest.er1
18616   ac_status=$?
18617   grep -v '^ *+' conftest.er1 >conftest.err
18618   rm -f conftest.er1
18619   cat conftest.err >&5
18620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18621   (exit $ac_status); } && {
18622          test -z "$ac_c_werror_flag" ||
18623          test ! -s conftest.err
18624        } && test -s conftest$ac_exeext &&
18625        $as_test_x conftest$ac_exeext; then
18626   ac_cv_lib_cposix_strerror=yes
18627 else
18628   echo "$as_me: failed program was:" >&5
18629 sed 's/^/| /' conftest.$ac_ext >&5
18630
18631         ac_cv_lib_cposix_strerror=no
18632 fi
18633
18634 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18635       conftest$ac_exeext conftest.$ac_ext
18636 LIBS=$ac_check_lib_save_LIBS
18637 fi
18638 { echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
18639 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6; }
18640 if test $ac_cv_lib_cposix_strerror = yes; then
18641   LIBS="$LIBS -lcposix"
18642 fi
18643
18644
18645
18646 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
18647 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
18648 if test "${ac_cv_c_const+set}" = set; then
18649   echo $ECHO_N "(cached) $ECHO_C" >&6
18650 else
18651   cat >conftest.$ac_ext <<_ACEOF
18652 /* confdefs.h.  */
18653 _ACEOF
18654 cat confdefs.h >>conftest.$ac_ext
18655 cat >>conftest.$ac_ext <<_ACEOF
18656 /* end confdefs.h.  */
18657
18658 int
18659 main ()
18660 {
18661 /* FIXME: Include the comments suggested by Paul. */
18662 #ifndef __cplusplus
18663   /* Ultrix mips cc rejects this.  */
18664   typedef int charset[2];
18665   const charset cs;
18666   /* SunOS 4.1.1 cc rejects this.  */
18667   char const *const *pcpcc;
18668   char **ppc;
18669   /* NEC SVR4.0.2 mips cc rejects this.  */
18670   struct point {int x, y;};
18671   static struct point const zero = {0,0};
18672   /* AIX XL C 1.02.0.0 rejects this.
18673      It does not let you subtract one const X* pointer from another in
18674      an arm of an if-expression whose if-part is not a constant
18675      expression */
18676   const char *g = "string";
18677   pcpcc = &g + (g ? g-g : 0);
18678   /* HPUX 7.0 cc rejects these. */
18679   ++pcpcc;
18680   ppc = (char**) pcpcc;
18681   pcpcc = (char const *const *) ppc;
18682   { /* SCO 3.2v4 cc rejects this.  */
18683     char *t;
18684     char const *s = 0 ? (char *) 0 : (char const *) 0;
18685
18686     *t++ = 0;
18687     if (s) return 0;
18688   }
18689   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
18690     int x[] = {25, 17};
18691     const int *foo = &x[0];
18692     ++foo;
18693   }
18694   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
18695     typedef const int *iptr;
18696     iptr p = 0;
18697     ++p;
18698   }
18699   { /* AIX XL C 1.02.0.0 rejects this saying
18700        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
18701     struct s { int j; const int *ap[3]; };
18702     struct s *b; b->j = 5;
18703   }
18704   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
18705     const int foo = 10;
18706     if (!foo) return 0;
18707   }
18708   return !cs[0] && !zero.x;
18709 #endif
18710
18711   ;
18712   return 0;
18713 }
18714 _ACEOF
18715 rm -f conftest.$ac_objext
18716 if { (ac_try="$ac_compile"
18717 case "(($ac_try" in
18718   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18719   *) ac_try_echo=$ac_try;;
18720 esac
18721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18722   (eval "$ac_compile") 2>conftest.er1
18723   ac_status=$?
18724   grep -v '^ *+' conftest.er1 >conftest.err
18725   rm -f conftest.er1
18726   cat conftest.err >&5
18727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18728   (exit $ac_status); } && {
18729          test -z "$ac_c_werror_flag" ||
18730          test ! -s conftest.err
18731        } && test -s conftest.$ac_objext; then
18732   ac_cv_c_const=yes
18733 else
18734   echo "$as_me: failed program was:" >&5
18735 sed 's/^/| /' conftest.$ac_ext >&5
18736
18737         ac_cv_c_const=no
18738 fi
18739
18740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18741 fi
18742 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
18743 echo "${ECHO_T}$ac_cv_c_const" >&6; }
18744 if test $ac_cv_c_const = no; then
18745
18746 cat >>confdefs.h <<\_ACEOF
18747 #define const
18748 _ACEOF
18749
18750 fi
18751
18752
18753   { echo "$as_me:$LINENO: checking for signed" >&5
18754 echo $ECHO_N "checking for signed... $ECHO_C" >&6; }
18755 if test "${bh_cv_c_signed+set}" = set; then
18756   echo $ECHO_N "(cached) $ECHO_C" >&6
18757 else
18758   cat >conftest.$ac_ext <<_ACEOF
18759 /* confdefs.h.  */
18760 _ACEOF
18761 cat confdefs.h >>conftest.$ac_ext
18762 cat >>conftest.$ac_ext <<_ACEOF
18763 /* end confdefs.h.  */
18764
18765 int
18766 main ()
18767 {
18768 signed char x;
18769   ;
18770   return 0;
18771 }
18772 _ACEOF
18773 rm -f conftest.$ac_objext
18774 if { (ac_try="$ac_compile"
18775 case "(($ac_try" in
18776   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18777   *) ac_try_echo=$ac_try;;
18778 esac
18779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18780   (eval "$ac_compile") 2>conftest.er1
18781   ac_status=$?
18782   grep -v '^ *+' conftest.er1 >conftest.err
18783   rm -f conftest.er1
18784   cat conftest.err >&5
18785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18786   (exit $ac_status); } && {
18787          test -z "$ac_c_werror_flag" ||
18788          test ! -s conftest.err
18789        } && test -s conftest.$ac_objext; then
18790   bh_cv_c_signed=yes
18791 else
18792   echo "$as_me: failed program was:" >&5
18793 sed 's/^/| /' conftest.$ac_ext >&5
18794
18795         bh_cv_c_signed=no
18796 fi
18797
18798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18799 fi
18800 { echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
18801 echo "${ECHO_T}$bh_cv_c_signed" >&6; }
18802   if test $bh_cv_c_signed = no; then
18803
18804 cat >>confdefs.h <<\_ACEOF
18805 #define signed
18806 _ACEOF
18807
18808   fi
18809
18810 { echo "$as_me:$LINENO: checking for inline" >&5
18811 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
18812 if test "${ac_cv_c_inline+set}" = set; then
18813   echo $ECHO_N "(cached) $ECHO_C" >&6
18814 else
18815   ac_cv_c_inline=no
18816 for ac_kw in inline __inline__ __inline; do
18817   cat >conftest.$ac_ext <<_ACEOF
18818 /* confdefs.h.  */
18819 _ACEOF
18820 cat confdefs.h >>conftest.$ac_ext
18821 cat >>conftest.$ac_ext <<_ACEOF
18822 /* end confdefs.h.  */
18823 #ifndef __cplusplus
18824 typedef int foo_t;
18825 static $ac_kw foo_t static_foo () {return 0; }
18826 $ac_kw foo_t foo () {return 0; }
18827 #endif
18828
18829 _ACEOF
18830 rm -f conftest.$ac_objext
18831 if { (ac_try="$ac_compile"
18832 case "(($ac_try" in
18833   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18834   *) ac_try_echo=$ac_try;;
18835 esac
18836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18837   (eval "$ac_compile") 2>conftest.er1
18838   ac_status=$?
18839   grep -v '^ *+' conftest.er1 >conftest.err
18840   rm -f conftest.er1
18841   cat conftest.err >&5
18842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18843   (exit $ac_status); } && {
18844          test -z "$ac_c_werror_flag" ||
18845          test ! -s conftest.err
18846        } && test -s conftest.$ac_objext; then
18847   ac_cv_c_inline=$ac_kw
18848 else
18849   echo "$as_me: failed program was:" >&5
18850 sed 's/^/| /' conftest.$ac_ext >&5
18851
18852
18853 fi
18854
18855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18856   test "$ac_cv_c_inline" != no && break
18857 done
18858
18859 fi
18860 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
18861 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
18862
18863
18864 case $ac_cv_c_inline in
18865   inline | yes) ;;
18866   *)
18867     case $ac_cv_c_inline in
18868       no) ac_val=;;
18869       *) ac_val=$ac_cv_c_inline;;
18870     esac
18871     cat >>confdefs.h <<_ACEOF
18872 #ifndef __cplusplus
18873 #define inline $ac_val
18874 #endif
18875 _ACEOF
18876     ;;
18877 esac
18878
18879 { echo "$as_me:$LINENO: checking for off_t" >&5
18880 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
18881 if test "${ac_cv_type_off_t+set}" = set; then
18882   echo $ECHO_N "(cached) $ECHO_C" >&6
18883 else
18884   cat >conftest.$ac_ext <<_ACEOF
18885 /* confdefs.h.  */
18886 _ACEOF
18887 cat confdefs.h >>conftest.$ac_ext
18888 cat >>conftest.$ac_ext <<_ACEOF
18889 /* end confdefs.h.  */
18890 $ac_includes_default
18891 typedef off_t ac__type_new_;
18892 int
18893 main ()
18894 {
18895 if ((ac__type_new_ *) 0)
18896   return 0;
18897 if (sizeof (ac__type_new_))
18898   return 0;
18899   ;
18900   return 0;
18901 }
18902 _ACEOF
18903 rm -f conftest.$ac_objext
18904 if { (ac_try="$ac_compile"
18905 case "(($ac_try" in
18906   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18907   *) ac_try_echo=$ac_try;;
18908 esac
18909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18910   (eval "$ac_compile") 2>conftest.er1
18911   ac_status=$?
18912   grep -v '^ *+' conftest.er1 >conftest.err
18913   rm -f conftest.er1
18914   cat conftest.err >&5
18915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18916   (exit $ac_status); } && {
18917          test -z "$ac_c_werror_flag" ||
18918          test ! -s conftest.err
18919        } && test -s conftest.$ac_objext; then
18920   ac_cv_type_off_t=yes
18921 else
18922   echo "$as_me: failed program was:" >&5
18923 sed 's/^/| /' conftest.$ac_ext >&5
18924
18925         ac_cv_type_off_t=no
18926 fi
18927
18928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18929 fi
18930 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
18931 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
18932 if test $ac_cv_type_off_t = yes; then
18933   :
18934 else
18935
18936 cat >>confdefs.h <<_ACEOF
18937 #define off_t long int
18938 _ACEOF
18939
18940 fi
18941
18942 { echo "$as_me:$LINENO: checking for size_t" >&5
18943 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
18944 if test "${ac_cv_type_size_t+set}" = set; then
18945   echo $ECHO_N "(cached) $ECHO_C" >&6
18946 else
18947   cat >conftest.$ac_ext <<_ACEOF
18948 /* confdefs.h.  */
18949 _ACEOF
18950 cat confdefs.h >>conftest.$ac_ext
18951 cat >>conftest.$ac_ext <<_ACEOF
18952 /* end confdefs.h.  */
18953 $ac_includes_default
18954 typedef size_t ac__type_new_;
18955 int
18956 main ()
18957 {
18958 if ((ac__type_new_ *) 0)
18959   return 0;
18960 if (sizeof (ac__type_new_))
18961   return 0;
18962   ;
18963   return 0;
18964 }
18965 _ACEOF
18966 rm -f conftest.$ac_objext
18967 if { (ac_try="$ac_compile"
18968 case "(($ac_try" in
18969   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18970   *) ac_try_echo=$ac_try;;
18971 esac
18972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18973   (eval "$ac_compile") 2>conftest.er1
18974   ac_status=$?
18975   grep -v '^ *+' conftest.er1 >conftest.err
18976   rm -f conftest.er1
18977   cat conftest.err >&5
18978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18979   (exit $ac_status); } && {
18980          test -z "$ac_c_werror_flag" ||
18981          test ! -s conftest.err
18982        } && test -s conftest.$ac_objext; then
18983   ac_cv_type_size_t=yes
18984 else
18985   echo "$as_me: failed program was:" >&5
18986 sed 's/^/| /' conftest.$ac_ext >&5
18987
18988         ac_cv_type_size_t=no
18989 fi
18990
18991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18992 fi
18993 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
18994 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
18995 if test $ac_cv_type_size_t = yes; then
18996   :
18997 else
18998
18999 cat >>confdefs.h <<_ACEOF
19000 #define size_t unsigned int
19001 _ACEOF
19002
19003 fi
19004
19005
19006   { echo "$as_me:$LINENO: checking for long long" >&5
19007 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
19008 if test "${ac_cv_type_long_long+set}" = set; then
19009   echo $ECHO_N "(cached) $ECHO_C" >&6
19010 else
19011   cat >conftest.$ac_ext <<_ACEOF
19012 /* confdefs.h.  */
19013 _ACEOF
19014 cat confdefs.h >>conftest.$ac_ext
19015 cat >>conftest.$ac_ext <<_ACEOF
19016 /* end confdefs.h.  */
19017 long long ll = 1LL; int i = 63;
19018 int
19019 main ()
19020 {
19021 long long llmax = (long long) -1;
19022      return ll << i | ll >> i | llmax / ll | llmax % ll;
19023   ;
19024   return 0;
19025 }
19026 _ACEOF
19027 rm -f conftest.$ac_objext conftest$ac_exeext
19028 if { (ac_try="$ac_link"
19029 case "(($ac_try" in
19030   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19031   *) ac_try_echo=$ac_try;;
19032 esac
19033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19034   (eval "$ac_link") 2>conftest.er1
19035   ac_status=$?
19036   grep -v '^ *+' conftest.er1 >conftest.err
19037   rm -f conftest.er1
19038   cat conftest.err >&5
19039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19040   (exit $ac_status); } && {
19041          test -z "$ac_c_werror_flag" ||
19042          test ! -s conftest.err
19043        } && test -s conftest$ac_exeext &&
19044        $as_test_x conftest$ac_exeext; then
19045   ac_cv_type_long_long=yes
19046 else
19047   echo "$as_me: failed program was:" >&5
19048 sed 's/^/| /' conftest.$ac_ext >&5
19049
19050         ac_cv_type_long_long=no
19051 fi
19052
19053 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19054       conftest$ac_exeext conftest.$ac_ext
19055 fi
19056 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
19057 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
19058   if test $ac_cv_type_long_long = yes; then
19059
19060 cat >>confdefs.h <<\_ACEOF
19061 #define HAVE_LONG_LONG 1
19062 _ACEOF
19063
19064   fi
19065
19066
19067   { echo "$as_me:$LINENO: checking for long double" >&5
19068 echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
19069 if test "${gt_cv_c_long_double+set}" = set; then
19070   echo $ECHO_N "(cached) $ECHO_C" >&6
19071 else
19072   if test "$GCC" = yes; then
19073        gt_cv_c_long_double=yes
19074      else
19075        cat >conftest.$ac_ext <<_ACEOF
19076 /* confdefs.h.  */
19077 _ACEOF
19078 cat confdefs.h >>conftest.$ac_ext
19079 cat >>conftest.$ac_ext <<_ACEOF
19080 /* end confdefs.h.  */
19081
19082          /* The Stardent Vistra knows sizeof(long double), but does not support it.  */
19083          long double foo = 0.0;
19084          /* On Ultrix 4.3 cc, long double is 4 and double is 8.  */
19085          int array [2*(sizeof(long double) >= sizeof(double)) - 1];
19086
19087 int
19088 main ()
19089 {
19090
19091   ;
19092   return 0;
19093 }
19094 _ACEOF
19095 rm -f conftest.$ac_objext
19096 if { (ac_try="$ac_compile"
19097 case "(($ac_try" in
19098   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19099   *) ac_try_echo=$ac_try;;
19100 esac
19101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19102   (eval "$ac_compile") 2>conftest.er1
19103   ac_status=$?
19104   grep -v '^ *+' conftest.er1 >conftest.err
19105   rm -f conftest.er1
19106   cat conftest.err >&5
19107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19108   (exit $ac_status); } && {
19109          test -z "$ac_c_werror_flag" ||
19110          test ! -s conftest.err
19111        } && test -s conftest.$ac_objext; then
19112   gt_cv_c_long_double=yes
19113 else
19114   echo "$as_me: failed program was:" >&5
19115 sed 's/^/| /' conftest.$ac_ext >&5
19116
19117         gt_cv_c_long_double=no
19118 fi
19119
19120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19121      fi
19122 fi
19123 { echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
19124 echo "${ECHO_T}$gt_cv_c_long_double" >&6; }
19125   if test $gt_cv_c_long_double = yes; then
19126
19127 cat >>confdefs.h <<\_ACEOF
19128 #define HAVE_LONG_DOUBLE 1
19129 _ACEOF
19130
19131   fi
19132
19133
19134   { echo "$as_me:$LINENO: checking for wchar_t" >&5
19135 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
19136 if test "${gt_cv_c_wchar_t+set}" = set; then
19137   echo $ECHO_N "(cached) $ECHO_C" >&6
19138 else
19139   cat >conftest.$ac_ext <<_ACEOF
19140 /* confdefs.h.  */
19141 _ACEOF
19142 cat confdefs.h >>conftest.$ac_ext
19143 cat >>conftest.$ac_ext <<_ACEOF
19144 /* end confdefs.h.  */
19145 #include <stddef.h>
19146        wchar_t foo = (wchar_t)'\0';
19147 int
19148 main ()
19149 {
19150
19151   ;
19152   return 0;
19153 }
19154 _ACEOF
19155 rm -f conftest.$ac_objext
19156 if { (ac_try="$ac_compile"
19157 case "(($ac_try" in
19158   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19159   *) ac_try_echo=$ac_try;;
19160 esac
19161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19162   (eval "$ac_compile") 2>conftest.er1
19163   ac_status=$?
19164   grep -v '^ *+' conftest.er1 >conftest.err
19165   rm -f conftest.er1
19166   cat conftest.err >&5
19167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19168   (exit $ac_status); } && {
19169          test -z "$ac_c_werror_flag" ||
19170          test ! -s conftest.err
19171        } && test -s conftest.$ac_objext; then
19172   gt_cv_c_wchar_t=yes
19173 else
19174   echo "$as_me: failed program was:" >&5
19175 sed 's/^/| /' conftest.$ac_ext >&5
19176
19177         gt_cv_c_wchar_t=no
19178 fi
19179
19180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19181 fi
19182 { echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
19183 echo "${ECHO_T}$gt_cv_c_wchar_t" >&6; }
19184   if test $gt_cv_c_wchar_t = yes; then
19185
19186 cat >>confdefs.h <<\_ACEOF
19187 #define HAVE_WCHAR_T 1
19188 _ACEOF
19189
19190   fi
19191
19192
19193   { echo "$as_me:$LINENO: checking for wint_t" >&5
19194 echo $ECHO_N "checking for wint_t... $ECHO_C" >&6; }
19195 if test "${gt_cv_c_wint_t+set}" = set; then
19196   echo $ECHO_N "(cached) $ECHO_C" >&6
19197 else
19198   cat >conftest.$ac_ext <<_ACEOF
19199 /* confdefs.h.  */
19200 _ACEOF
19201 cat confdefs.h >>conftest.$ac_ext
19202 cat >>conftest.$ac_ext <<_ACEOF
19203 /* end confdefs.h.  */
19204 #include <wchar.h>
19205        wint_t foo = (wchar_t)'\0';
19206 int
19207 main ()
19208 {
19209
19210   ;
19211   return 0;
19212 }
19213 _ACEOF
19214 rm -f conftest.$ac_objext
19215 if { (ac_try="$ac_compile"
19216 case "(($ac_try" in
19217   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19218   *) ac_try_echo=$ac_try;;
19219 esac
19220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19221   (eval "$ac_compile") 2>conftest.er1
19222   ac_status=$?
19223   grep -v '^ *+' conftest.er1 >conftest.err
19224   rm -f conftest.er1
19225   cat conftest.err >&5
19226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19227   (exit $ac_status); } && {
19228          test -z "$ac_c_werror_flag" ||
19229          test ! -s conftest.err
19230        } && test -s conftest.$ac_objext; then
19231   gt_cv_c_wint_t=yes
19232 else
19233   echo "$as_me: failed program was:" >&5
19234 sed 's/^/| /' conftest.$ac_ext >&5
19235
19236         gt_cv_c_wint_t=no
19237 fi
19238
19239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19240 fi
19241 { echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
19242 echo "${ECHO_T}$gt_cv_c_wint_t" >&6; }
19243   if test $gt_cv_c_wint_t = yes; then
19244
19245 cat >>confdefs.h <<\_ACEOF
19246 #define HAVE_WINT_T 1
19247 _ACEOF
19248
19249   fi
19250
19251
19252   { echo "$as_me:$LINENO: checking for inttypes.h" >&5
19253 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
19254 if test "${gl_cv_header_inttypes_h+set}" = set; then
19255   echo $ECHO_N "(cached) $ECHO_C" >&6
19256 else
19257   cat >conftest.$ac_ext <<_ACEOF
19258 /* confdefs.h.  */
19259 _ACEOF
19260 cat confdefs.h >>conftest.$ac_ext
19261 cat >>conftest.$ac_ext <<_ACEOF
19262 /* end confdefs.h.  */
19263 #include <sys/types.h>
19264 #include <inttypes.h>
19265 int
19266 main ()
19267 {
19268 uintmax_t i = (uintmax_t) -1;
19269   ;
19270   return 0;
19271 }
19272 _ACEOF
19273 rm -f conftest.$ac_objext
19274 if { (ac_try="$ac_compile"
19275 case "(($ac_try" in
19276   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19277   *) ac_try_echo=$ac_try;;
19278 esac
19279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19280   (eval "$ac_compile") 2>conftest.er1
19281   ac_status=$?
19282   grep -v '^ *+' conftest.er1 >conftest.err
19283   rm -f conftest.er1
19284   cat conftest.err >&5
19285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19286   (exit $ac_status); } && {
19287          test -z "$ac_c_werror_flag" ||
19288          test ! -s conftest.err
19289        } && test -s conftest.$ac_objext; then
19290   gl_cv_header_inttypes_h=yes
19291 else
19292   echo "$as_me: failed program was:" >&5
19293 sed 's/^/| /' conftest.$ac_ext >&5
19294
19295         gl_cv_header_inttypes_h=no
19296 fi
19297
19298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19299 fi
19300 { echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5
19301 echo "${ECHO_T}$gl_cv_header_inttypes_h" >&6; }
19302   if test $gl_cv_header_inttypes_h = yes; then
19303
19304 cat >>confdefs.h <<_ACEOF
19305 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
19306 _ACEOF
19307
19308   fi
19309
19310
19311   { echo "$as_me:$LINENO: checking for stdint.h" >&5
19312 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
19313 if test "${gl_cv_header_stdint_h+set}" = set; then
19314   echo $ECHO_N "(cached) $ECHO_C" >&6
19315 else
19316   cat >conftest.$ac_ext <<_ACEOF
19317 /* confdefs.h.  */
19318 _ACEOF
19319 cat confdefs.h >>conftest.$ac_ext
19320 cat >>conftest.$ac_ext <<_ACEOF
19321 /* end confdefs.h.  */
19322 #include <sys/types.h>
19323 #include <stdint.h>
19324 int
19325 main ()
19326 {
19327 uintmax_t i = (uintmax_t) -1;
19328   ;
19329   return 0;
19330 }
19331 _ACEOF
19332 rm -f conftest.$ac_objext
19333 if { (ac_try="$ac_compile"
19334 case "(($ac_try" in
19335   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19336   *) ac_try_echo=$ac_try;;
19337 esac
19338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19339   (eval "$ac_compile") 2>conftest.er1
19340   ac_status=$?
19341   grep -v '^ *+' conftest.er1 >conftest.err
19342   rm -f conftest.er1
19343   cat conftest.err >&5
19344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19345   (exit $ac_status); } && {
19346          test -z "$ac_c_werror_flag" ||
19347          test ! -s conftest.err
19348        } && test -s conftest.$ac_objext; then
19349   gl_cv_header_stdint_h=yes
19350 else
19351   echo "$as_me: failed program was:" >&5
19352 sed 's/^/| /' conftest.$ac_ext >&5
19353
19354         gl_cv_header_stdint_h=no
19355 fi
19356
19357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19358 fi
19359 { echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
19360 echo "${ECHO_T}$gl_cv_header_stdint_h" >&6; }
19361   if test $gl_cv_header_stdint_h = yes; then
19362
19363 cat >>confdefs.h <<_ACEOF
19364 #define HAVE_STDINT_H_WITH_UINTMAX 1
19365 _ACEOF
19366
19367   fi
19368
19369
19370
19371
19372   { echo "$as_me:$LINENO: checking for intmax_t" >&5
19373 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; }
19374 if test "${gt_cv_c_intmax_t+set}" = set; then
19375   echo $ECHO_N "(cached) $ECHO_C" >&6
19376 else
19377   cat >conftest.$ac_ext <<_ACEOF
19378 /* confdefs.h.  */
19379 _ACEOF
19380 cat confdefs.h >>conftest.$ac_ext
19381 cat >>conftest.$ac_ext <<_ACEOF
19382 /* end confdefs.h.  */
19383
19384 #include <stddef.h>
19385 #include <stdlib.h>
19386 #if HAVE_STDINT_H_WITH_UINTMAX
19387 #include <stdint.h>
19388 #endif
19389 #if HAVE_INTTYPES_H_WITH_UINTMAX
19390 #include <inttypes.h>
19391 #endif
19392
19393 int
19394 main ()
19395 {
19396 intmax_t x = -1;
19397   ;
19398   return 0;
19399 }
19400 _ACEOF
19401 rm -f conftest.$ac_objext
19402 if { (ac_try="$ac_compile"
19403 case "(($ac_try" in
19404   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19405   *) ac_try_echo=$ac_try;;
19406 esac
19407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19408   (eval "$ac_compile") 2>conftest.er1
19409   ac_status=$?
19410   grep -v '^ *+' conftest.er1 >conftest.err
19411   rm -f conftest.er1
19412   cat conftest.err >&5
19413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19414   (exit $ac_status); } && {
19415          test -z "$ac_c_werror_flag" ||
19416          test ! -s conftest.err
19417        } && test -s conftest.$ac_objext; then
19418   gt_cv_c_intmax_t=yes
19419 else
19420   echo "$as_me: failed program was:" >&5
19421 sed 's/^/| /' conftest.$ac_ext >&5
19422
19423         gt_cv_c_intmax_t=no
19424 fi
19425
19426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19427 fi
19428 { echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
19429 echo "${ECHO_T}$gt_cv_c_intmax_t" >&6; }
19430   if test $gt_cv_c_intmax_t = yes; then
19431
19432 cat >>confdefs.h <<\_ACEOF
19433 #define HAVE_INTMAX_T 1
19434 _ACEOF
19435
19436   fi
19437
19438
19439
19440   { echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
19441 echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6; }
19442 if test "${gt_cv_func_printf_posix+set}" = set; then
19443   echo $ECHO_N "(cached) $ECHO_C" >&6
19444 else
19445
19446       if test "$cross_compiling" = yes; then
19447
19448         cat >conftest.$ac_ext <<_ACEOF
19449 /* confdefs.h.  */
19450 _ACEOF
19451 cat confdefs.h >>conftest.$ac_ext
19452 cat >>conftest.$ac_ext <<_ACEOF
19453 /* end confdefs.h.  */
19454
19455 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
19456   notposix
19457 #endif
19458
19459 _ACEOF
19460 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19461   $EGREP "notposix" >/dev/null 2>&1; then
19462   gt_cv_func_printf_posix="guessing no"
19463 else
19464   gt_cv_func_printf_posix="guessing yes"
19465 fi
19466 rm -f conftest*
19467
19468
19469 else
19470   cat >conftest.$ac_ext <<_ACEOF
19471 /* confdefs.h.  */
19472 _ACEOF
19473 cat confdefs.h >>conftest.$ac_ext
19474 cat >>conftest.$ac_ext <<_ACEOF
19475 /* end confdefs.h.  */
19476
19477 #include <stdio.h>
19478 #include <string.h>
19479 /* The string "%2$d %1$d", with dollar characters protected from the shell's
19480    dollar expansion (possibly an autoconf bug).  */
19481 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
19482 static char buf[100];
19483 int main ()
19484 {
19485   sprintf (buf, format, 33, 55);
19486   return (strcmp (buf, "55 33") != 0);
19487 }
19488 _ACEOF
19489 rm -f conftest$ac_exeext
19490 if { (ac_try="$ac_link"
19491 case "(($ac_try" in
19492   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19493   *) ac_try_echo=$ac_try;;
19494 esac
19495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19496   (eval "$ac_link") 2>&5
19497   ac_status=$?
19498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19499   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19500   { (case "(($ac_try" in
19501   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19502   *) ac_try_echo=$ac_try;;
19503 esac
19504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19505   (eval "$ac_try") 2>&5
19506   ac_status=$?
19507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19508   (exit $ac_status); }; }; then
19509   gt_cv_func_printf_posix=yes
19510 else
19511   echo "$as_me: program exited with status $ac_status" >&5
19512 echo "$as_me: failed program was:" >&5
19513 sed 's/^/| /' conftest.$ac_ext >&5
19514
19515 ( exit $ac_status )
19516 gt_cv_func_printf_posix=no
19517 fi
19518 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19519 fi
19520
19521
19522
19523 fi
19524 { echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
19525 echo "${ECHO_T}$gt_cv_func_printf_posix" >&6; }
19526   case $gt_cv_func_printf_posix in
19527     *yes)
19528
19529 cat >>confdefs.h <<\_ACEOF
19530 #define HAVE_POSIX_PRINTF 1
19531 _ACEOF
19532
19533       ;;
19534   esac
19535
19536 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
19537 # for constant arguments.  Useless!
19538 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
19539 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
19540 if test "${ac_cv_working_alloca_h+set}" = set; then
19541   echo $ECHO_N "(cached) $ECHO_C" >&6
19542 else
19543   cat >conftest.$ac_ext <<_ACEOF
19544 /* confdefs.h.  */
19545 _ACEOF
19546 cat confdefs.h >>conftest.$ac_ext
19547 cat >>conftest.$ac_ext <<_ACEOF
19548 /* end confdefs.h.  */
19549 #include <alloca.h>
19550 int
19551 main ()
19552 {
19553 char *p = (char *) alloca (2 * sizeof (int));
19554                           if (p) return 0;
19555   ;
19556   return 0;
19557 }
19558 _ACEOF
19559 rm -f conftest.$ac_objext conftest$ac_exeext
19560 if { (ac_try="$ac_link"
19561 case "(($ac_try" in
19562   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19563   *) ac_try_echo=$ac_try;;
19564 esac
19565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19566   (eval "$ac_link") 2>conftest.er1
19567   ac_status=$?
19568   grep -v '^ *+' conftest.er1 >conftest.err
19569   rm -f conftest.er1
19570   cat conftest.err >&5
19571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19572   (exit $ac_status); } && {
19573          test -z "$ac_c_werror_flag" ||
19574          test ! -s conftest.err
19575        } && test -s conftest$ac_exeext &&
19576        $as_test_x conftest$ac_exeext; then
19577   ac_cv_working_alloca_h=yes
19578 else
19579   echo "$as_me: failed program was:" >&5
19580 sed 's/^/| /' conftest.$ac_ext >&5
19581
19582         ac_cv_working_alloca_h=no
19583 fi
19584
19585 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19586       conftest$ac_exeext conftest.$ac_ext
19587 fi
19588 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
19589 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
19590 if test $ac_cv_working_alloca_h = yes; then
19591
19592 cat >>confdefs.h <<\_ACEOF
19593 #define HAVE_ALLOCA_H 1
19594 _ACEOF
19595
19596 fi
19597
19598 { echo "$as_me:$LINENO: checking for alloca" >&5
19599 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
19600 if test "${ac_cv_func_alloca_works+set}" = set; then
19601   echo $ECHO_N "(cached) $ECHO_C" >&6
19602 else
19603   cat >conftest.$ac_ext <<_ACEOF
19604 /* confdefs.h.  */
19605 _ACEOF
19606 cat confdefs.h >>conftest.$ac_ext
19607 cat >>conftest.$ac_ext <<_ACEOF
19608 /* end confdefs.h.  */
19609 #ifdef __GNUC__
19610 # define alloca __builtin_alloca
19611 #else
19612 # ifdef _MSC_VER
19613 #  include <malloc.h>
19614 #  define alloca _alloca
19615 # else
19616 #  ifdef HAVE_ALLOCA_H
19617 #   include <alloca.h>
19618 #  else
19619 #   ifdef _AIX
19620  #pragma alloca
19621 #   else
19622 #    ifndef alloca /* predefined by HP cc +Olibcalls */
19623 char *alloca ();
19624 #    endif
19625 #   endif
19626 #  endif
19627 # endif
19628 #endif
19629
19630 int
19631 main ()
19632 {
19633 char *p = (char *) alloca (1);
19634                                     if (p) return 0;
19635   ;
19636   return 0;
19637 }
19638 _ACEOF
19639 rm -f conftest.$ac_objext conftest$ac_exeext
19640 if { (ac_try="$ac_link"
19641 case "(($ac_try" in
19642   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19643   *) ac_try_echo=$ac_try;;
19644 esac
19645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19646   (eval "$ac_link") 2>conftest.er1
19647   ac_status=$?
19648   grep -v '^ *+' conftest.er1 >conftest.err
19649   rm -f conftest.er1
19650   cat conftest.err >&5
19651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19652   (exit $ac_status); } && {
19653          test -z "$ac_c_werror_flag" ||
19654          test ! -s conftest.err
19655        } && test -s conftest$ac_exeext &&
19656        $as_test_x conftest$ac_exeext; then
19657   ac_cv_func_alloca_works=yes
19658 else
19659   echo "$as_me: failed program was:" >&5
19660 sed 's/^/| /' conftest.$ac_ext >&5
19661
19662         ac_cv_func_alloca_works=no
19663 fi
19664
19665 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19666       conftest$ac_exeext conftest.$ac_ext
19667 fi
19668 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
19669 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
19670
19671 if test $ac_cv_func_alloca_works = yes; then
19672
19673 cat >>confdefs.h <<\_ACEOF
19674 #define HAVE_ALLOCA 1
19675 _ACEOF
19676
19677 else
19678   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
19679 # that cause trouble.  Some versions do not even contain alloca or
19680 # contain a buggy version.  If you still want to use their alloca,
19681 # use ar to extract alloca.o from them instead of compiling alloca.c.
19682
19683 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
19684
19685 cat >>confdefs.h <<\_ACEOF
19686 #define C_ALLOCA 1
19687 _ACEOF
19688
19689
19690 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
19691 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
19692 if test "${ac_cv_os_cray+set}" = set; then
19693   echo $ECHO_N "(cached) $ECHO_C" >&6
19694 else
19695   cat >conftest.$ac_ext <<_ACEOF
19696 /* confdefs.h.  */
19697 _ACEOF
19698 cat confdefs.h >>conftest.$ac_ext
19699 cat >>conftest.$ac_ext <<_ACEOF
19700 /* end confdefs.h.  */
19701 #if defined CRAY && ! defined CRAY2
19702 webecray
19703 #else
19704 wenotbecray
19705 #endif
19706
19707 _ACEOF
19708 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19709   $EGREP "webecray" >/dev/null 2>&1; then
19710   ac_cv_os_cray=yes
19711 else
19712   ac_cv_os_cray=no
19713 fi
19714 rm -f conftest*
19715
19716 fi
19717 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
19718 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
19719 if test $ac_cv_os_cray = yes; then
19720   for ac_func in _getb67 GETB67 getb67; do
19721     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19722 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19723 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19724 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19725   echo $ECHO_N "(cached) $ECHO_C" >&6
19726 else
19727   cat >conftest.$ac_ext <<_ACEOF
19728 /* confdefs.h.  */
19729 _ACEOF
19730 cat confdefs.h >>conftest.$ac_ext
19731 cat >>conftest.$ac_ext <<_ACEOF
19732 /* end confdefs.h.  */
19733 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19734    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19735 #define $ac_func innocuous_$ac_func
19736
19737 /* System header to define __stub macros and hopefully few prototypes,
19738     which can conflict with char $ac_func (); below.
19739     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19740     <limits.h> exists even on freestanding compilers.  */
19741
19742 #ifdef __STDC__
19743 # include <limits.h>
19744 #else
19745 # include <assert.h>
19746 #endif
19747
19748 #undef $ac_func
19749
19750 /* Override any GCC internal prototype to avoid an error.
19751    Use char because int might match the return type of a GCC
19752    builtin and then its argument prototype would still apply.  */
19753 #ifdef __cplusplus
19754 extern "C"
19755 #endif
19756 char $ac_func ();
19757 /* The GNU C library defines this for functions which it implements
19758     to always fail with ENOSYS.  Some functions are actually named
19759     something starting with __ and the normal name is an alias.  */
19760 #if defined __stub_$ac_func || defined __stub___$ac_func
19761 choke me
19762 #endif
19763
19764 int
19765 main ()
19766 {
19767 return $ac_func ();
19768   ;
19769   return 0;
19770 }
19771 _ACEOF
19772 rm -f conftest.$ac_objext conftest$ac_exeext
19773 if { (ac_try="$ac_link"
19774 case "(($ac_try" in
19775   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19776   *) ac_try_echo=$ac_try;;
19777 esac
19778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19779   (eval "$ac_link") 2>conftest.er1
19780   ac_status=$?
19781   grep -v '^ *+' conftest.er1 >conftest.err
19782   rm -f conftest.er1
19783   cat conftest.err >&5
19784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19785   (exit $ac_status); } && {
19786          test -z "$ac_c_werror_flag" ||
19787          test ! -s conftest.err
19788        } && test -s conftest$ac_exeext &&
19789        $as_test_x conftest$ac_exeext; then
19790   eval "$as_ac_var=yes"
19791 else
19792   echo "$as_me: failed program was:" >&5
19793 sed 's/^/| /' conftest.$ac_ext >&5
19794
19795         eval "$as_ac_var=no"
19796 fi
19797
19798 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19799       conftest$ac_exeext conftest.$ac_ext
19800 fi
19801 ac_res=`eval echo '${'$as_ac_var'}'`
19802                { echo "$as_me:$LINENO: result: $ac_res" >&5
19803 echo "${ECHO_T}$ac_res" >&6; }
19804 if test `eval echo '${'$as_ac_var'}'` = yes; then
19805
19806 cat >>confdefs.h <<_ACEOF
19807 #define CRAY_STACKSEG_END $ac_func
19808 _ACEOF
19809
19810     break
19811 fi
19812
19813   done
19814 fi
19815
19816 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
19817 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
19818 if test "${ac_cv_c_stack_direction+set}" = set; then
19819   echo $ECHO_N "(cached) $ECHO_C" >&6
19820 else
19821   if test "$cross_compiling" = yes; then
19822   ac_cv_c_stack_direction=0
19823 else
19824   cat >conftest.$ac_ext <<_ACEOF
19825 /* confdefs.h.  */
19826 _ACEOF
19827 cat confdefs.h >>conftest.$ac_ext
19828 cat >>conftest.$ac_ext <<_ACEOF
19829 /* end confdefs.h.  */
19830 $ac_includes_default
19831 int
19832 find_stack_direction ()
19833 {
19834   static char *addr = 0;
19835   auto char dummy;
19836   if (addr == 0)
19837     {
19838       addr = &dummy;
19839       return find_stack_direction ();
19840     }
19841   else
19842     return (&dummy > addr) ? 1 : -1;
19843 }
19844
19845 int
19846 main ()
19847 {
19848   return find_stack_direction () < 0;
19849 }
19850 _ACEOF
19851 rm -f conftest$ac_exeext
19852 if { (ac_try="$ac_link"
19853 case "(($ac_try" in
19854   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19855   *) ac_try_echo=$ac_try;;
19856 esac
19857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19858   (eval "$ac_link") 2>&5
19859   ac_status=$?
19860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19861   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19862   { (case "(($ac_try" in
19863   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19864   *) ac_try_echo=$ac_try;;
19865 esac
19866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19867   (eval "$ac_try") 2>&5
19868   ac_status=$?
19869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19870   (exit $ac_status); }; }; then
19871   ac_cv_c_stack_direction=1
19872 else
19873   echo "$as_me: program exited with status $ac_status" >&5
19874 echo "$as_me: failed program was:" >&5
19875 sed 's/^/| /' conftest.$ac_ext >&5
19876
19877 ( exit $ac_status )
19878 ac_cv_c_stack_direction=-1
19879 fi
19880 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19881 fi
19882
19883
19884 fi
19885 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
19886 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
19887
19888 cat >>confdefs.h <<_ACEOF
19889 #define STACK_DIRECTION $ac_cv_c_stack_direction
19890 _ACEOF
19891
19892
19893 fi
19894
19895
19896
19897 for ac_header in stdlib.h unistd.h
19898 do
19899 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19900 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19901   { echo "$as_me:$LINENO: checking for $ac_header" >&5
19902 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19903 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19904   echo $ECHO_N "(cached) $ECHO_C" >&6
19905 fi
19906 ac_res=`eval echo '${'$as_ac_Header'}'`
19907                { echo "$as_me:$LINENO: result: $ac_res" >&5
19908 echo "${ECHO_T}$ac_res" >&6; }
19909 else
19910   # Is the header compilable?
19911 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19912 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19913 cat >conftest.$ac_ext <<_ACEOF
19914 /* confdefs.h.  */
19915 _ACEOF
19916 cat confdefs.h >>conftest.$ac_ext
19917 cat >>conftest.$ac_ext <<_ACEOF
19918 /* end confdefs.h.  */
19919 $ac_includes_default
19920 #include <$ac_header>
19921 _ACEOF
19922 rm -f conftest.$ac_objext
19923 if { (ac_try="$ac_compile"
19924 case "(($ac_try" in
19925   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19926   *) ac_try_echo=$ac_try;;
19927 esac
19928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19929   (eval "$ac_compile") 2>conftest.er1
19930   ac_status=$?
19931   grep -v '^ *+' conftest.er1 >conftest.err
19932   rm -f conftest.er1
19933   cat conftest.err >&5
19934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19935   (exit $ac_status); } && {
19936          test -z "$ac_c_werror_flag" ||
19937          test ! -s conftest.err
19938        } && test -s conftest.$ac_objext; then
19939   ac_header_compiler=yes
19940 else
19941   echo "$as_me: failed program was:" >&5
19942 sed 's/^/| /' conftest.$ac_ext >&5
19943
19944         ac_header_compiler=no
19945 fi
19946
19947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19948 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19949 echo "${ECHO_T}$ac_header_compiler" >&6; }
19950
19951 # Is the header present?
19952 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19953 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19954 cat >conftest.$ac_ext <<_ACEOF
19955 /* confdefs.h.  */
19956 _ACEOF
19957 cat confdefs.h >>conftest.$ac_ext
19958 cat >>conftest.$ac_ext <<_ACEOF
19959 /* end confdefs.h.  */
19960 #include <$ac_header>
19961 _ACEOF
19962 if { (ac_try="$ac_cpp conftest.$ac_ext"
19963 case "(($ac_try" in
19964   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19965   *) ac_try_echo=$ac_try;;
19966 esac
19967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19968   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19969   ac_status=$?
19970   grep -v '^ *+' conftest.er1 >conftest.err
19971   rm -f conftest.er1
19972   cat conftest.err >&5
19973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19974   (exit $ac_status); } >/dev/null && {
19975          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19976          test ! -s conftest.err
19977        }; then
19978   ac_header_preproc=yes
19979 else
19980   echo "$as_me: failed program was:" >&5
19981 sed 's/^/| /' conftest.$ac_ext >&5
19982
19983   ac_header_preproc=no
19984 fi
19985
19986 rm -f conftest.err conftest.$ac_ext
19987 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19988 echo "${ECHO_T}$ac_header_preproc" >&6; }
19989
19990 # So?  What about this header?
19991 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19992   yes:no: )
19993     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19994 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19995     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19996 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19997     ac_header_preproc=yes
19998     ;;
19999   no:yes:* )
20000     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20001 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20002     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20003 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20004     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20005 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20006     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20007 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20008     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20009 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20010     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20011 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20012
20013     ;;
20014 esac
20015 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20016 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20017 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20018   echo $ECHO_N "(cached) $ECHO_C" >&6
20019 else
20020   eval "$as_ac_Header=\$ac_header_preproc"
20021 fi
20022 ac_res=`eval echo '${'$as_ac_Header'}'`
20023                { echo "$as_me:$LINENO: result: $ac_res" >&5
20024 echo "${ECHO_T}$ac_res" >&6; }
20025
20026 fi
20027 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20028   cat >>confdefs.h <<_ACEOF
20029 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20030 _ACEOF
20031
20032 fi
20033
20034 done
20035
20036
20037 for ac_func in getpagesize
20038 do
20039 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20040 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20041 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20042 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20043   echo $ECHO_N "(cached) $ECHO_C" >&6
20044 else
20045   cat >conftest.$ac_ext <<_ACEOF
20046 /* confdefs.h.  */
20047 _ACEOF
20048 cat confdefs.h >>conftest.$ac_ext
20049 cat >>conftest.$ac_ext <<_ACEOF
20050 /* end confdefs.h.  */
20051 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20052    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20053 #define $ac_func innocuous_$ac_func
20054
20055 /* System header to define __stub macros and hopefully few prototypes,
20056     which can conflict with char $ac_func (); below.
20057     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20058     <limits.h> exists even on freestanding compilers.  */
20059
20060 #ifdef __STDC__
20061 # include <limits.h>
20062 #else
20063 # include <assert.h>
20064 #endif
20065
20066 #undef $ac_func
20067
20068 /* Override any GCC internal prototype to avoid an error.
20069    Use char because int might match the return type of a GCC
20070    builtin and then its argument prototype would still apply.  */
20071 #ifdef __cplusplus
20072 extern "C"
20073 #endif
20074 char $ac_func ();
20075 /* The GNU C library defines this for functions which it implements
20076     to always fail with ENOSYS.  Some functions are actually named
20077     something starting with __ and the normal name is an alias.  */
20078 #if defined __stub_$ac_func || defined __stub___$ac_func
20079 choke me
20080 #endif
20081
20082 int
20083 main ()
20084 {
20085 return $ac_func ();
20086   ;
20087   return 0;
20088 }
20089 _ACEOF
20090 rm -f conftest.$ac_objext conftest$ac_exeext
20091 if { (ac_try="$ac_link"
20092 case "(($ac_try" in
20093   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20094   *) ac_try_echo=$ac_try;;
20095 esac
20096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20097   (eval "$ac_link") 2>conftest.er1
20098   ac_status=$?
20099   grep -v '^ *+' conftest.er1 >conftest.err
20100   rm -f conftest.er1
20101   cat conftest.err >&5
20102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20103   (exit $ac_status); } && {
20104          test -z "$ac_c_werror_flag" ||
20105          test ! -s conftest.err
20106        } && test -s conftest$ac_exeext &&
20107        $as_test_x conftest$ac_exeext; then
20108   eval "$as_ac_var=yes"
20109 else
20110   echo "$as_me: failed program was:" >&5
20111 sed 's/^/| /' conftest.$ac_ext >&5
20112
20113         eval "$as_ac_var=no"
20114 fi
20115
20116 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20117       conftest$ac_exeext conftest.$ac_ext
20118 fi
20119 ac_res=`eval echo '${'$as_ac_var'}'`
20120                { echo "$as_me:$LINENO: result: $ac_res" >&5
20121 echo "${ECHO_T}$ac_res" >&6; }
20122 if test `eval echo '${'$as_ac_var'}'` = yes; then
20123   cat >>confdefs.h <<_ACEOF
20124 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20125 _ACEOF
20126
20127 fi
20128 done
20129
20130 { echo "$as_me:$LINENO: checking for working mmap" >&5
20131 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20132 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20133   echo $ECHO_N "(cached) $ECHO_C" >&6
20134 else
20135   if test "$cross_compiling" = yes; then
20136   ac_cv_func_mmap_fixed_mapped=no
20137 else
20138   cat >conftest.$ac_ext <<_ACEOF
20139 /* confdefs.h.  */
20140 _ACEOF
20141 cat confdefs.h >>conftest.$ac_ext
20142 cat >>conftest.$ac_ext <<_ACEOF
20143 /* end confdefs.h.  */
20144 $ac_includes_default
20145 /* malloc might have been renamed as rpl_malloc. */
20146 #undef malloc
20147
20148 /* Thanks to Mike Haertel and Jim Avera for this test.
20149    Here is a matrix of mmap possibilities:
20150         mmap private not fixed
20151         mmap private fixed at somewhere currently unmapped
20152         mmap private fixed at somewhere already mapped
20153         mmap shared not fixed
20154         mmap shared fixed at somewhere currently unmapped
20155         mmap shared fixed at somewhere already mapped
20156    For private mappings, we should verify that changes cannot be read()
20157    back from the file, nor mmap's back from the file at a different
20158    address.  (There have been systems where private was not correctly
20159    implemented like the infamous i386 svr4.0, and systems where the
20160    VM page cache was not coherent with the file system buffer cache
20161    like early versions of FreeBSD and possibly contemporary NetBSD.)
20162    For shared mappings, we should conversely verify that changes get
20163    propagated back to all the places they're supposed to be.
20164
20165    Grep wants private fixed already mapped.
20166    The main things grep needs to know about mmap are:
20167    * does it exist and is it safe to write into the mmap'd area
20168    * how to use it (BSD variants)  */
20169
20170 #include <fcntl.h>
20171 #include <sys/mman.h>
20172
20173 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
20174 char *malloc ();
20175 #endif
20176
20177 /* This mess was copied from the GNU getpagesize.h.  */
20178 #ifndef HAVE_GETPAGESIZE
20179 /* Assume that all systems that can run configure have sys/param.h.  */
20180 # ifndef HAVE_SYS_PARAM_H
20181 #  define HAVE_SYS_PARAM_H 1
20182 # endif
20183
20184 # ifdef _SC_PAGESIZE
20185 #  define getpagesize() sysconf(_SC_PAGESIZE)
20186 # else /* no _SC_PAGESIZE */
20187 #  ifdef HAVE_SYS_PARAM_H
20188 #   include <sys/param.h>
20189 #   ifdef EXEC_PAGESIZE
20190 #    define getpagesize() EXEC_PAGESIZE
20191 #   else /* no EXEC_PAGESIZE */
20192 #    ifdef NBPG
20193 #     define getpagesize() NBPG * CLSIZE
20194 #     ifndef CLSIZE
20195 #      define CLSIZE 1
20196 #     endif /* no CLSIZE */
20197 #    else /* no NBPG */
20198 #     ifdef NBPC
20199 #      define getpagesize() NBPC
20200 #     else /* no NBPC */
20201 #      ifdef PAGESIZE
20202 #       define getpagesize() PAGESIZE
20203 #      endif /* PAGESIZE */
20204 #     endif /* no NBPC */
20205 #    endif /* no NBPG */
20206 #   endif /* no EXEC_PAGESIZE */
20207 #  else /* no HAVE_SYS_PARAM_H */
20208 #   define getpagesize() 8192   /* punt totally */
20209 #  endif /* no HAVE_SYS_PARAM_H */
20210 # endif /* no _SC_PAGESIZE */
20211
20212 #endif /* no HAVE_GETPAGESIZE */
20213
20214 int
20215 main ()
20216 {
20217   char *data, *data2, *data3;
20218   int i, pagesize;
20219   int fd;
20220
20221   pagesize = getpagesize ();
20222
20223   /* First, make a file with some known garbage in it. */
20224   data = (char *) malloc (pagesize);
20225   if (!data)
20226     return 1;
20227   for (i = 0; i < pagesize; ++i)
20228     *(data + i) = rand ();
20229   umask (0);
20230   fd = creat ("conftest.mmap", 0600);
20231   if (fd < 0)
20232     return 1;
20233   if (write (fd, data, pagesize) != pagesize)
20234     return 1;
20235   close (fd);
20236
20237   /* Next, try to mmap the file at a fixed address which already has
20238      something else allocated at it.  If we can, also make sure that
20239      we see the same garbage.  */
20240   fd = open ("conftest.mmap", O_RDWR);
20241   if (fd < 0)
20242     return 1;
20243   data2 = (char *) malloc (2 * pagesize);
20244   if (!data2)
20245     return 1;
20246   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
20247   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20248                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
20249     return 1;
20250   for (i = 0; i < pagesize; ++i)
20251     if (*(data + i) != *(data2 + i))
20252       return 1;
20253
20254   /* Finally, make sure that changes to the mapped area do not
20255      percolate back to the file as seen by read().  (This is a bug on
20256      some variants of i386 svr4.0.)  */
20257   for (i = 0; i < pagesize; ++i)
20258     *(data2 + i) = *(data2 + i) + 1;
20259   data3 = (char *) malloc (pagesize);
20260   if (!data3)
20261     return 1;
20262   if (read (fd, data3, pagesize) != pagesize)
20263     return 1;
20264   for (i = 0; i < pagesize; ++i)
20265     if (*(data + i) != *(data3 + i))
20266       return 1;
20267   close (fd);
20268   return 0;
20269 }
20270 _ACEOF
20271 rm -f conftest$ac_exeext
20272 if { (ac_try="$ac_link"
20273 case "(($ac_try" in
20274   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20275   *) ac_try_echo=$ac_try;;
20276 esac
20277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20278   (eval "$ac_link") 2>&5
20279   ac_status=$?
20280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20281   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20282   { (case "(($ac_try" in
20283   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20284   *) ac_try_echo=$ac_try;;
20285 esac
20286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20287   (eval "$ac_try") 2>&5
20288   ac_status=$?
20289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20290   (exit $ac_status); }; }; then
20291   ac_cv_func_mmap_fixed_mapped=yes
20292 else
20293   echo "$as_me: program exited with status $ac_status" >&5
20294 echo "$as_me: failed program was:" >&5
20295 sed 's/^/| /' conftest.$ac_ext >&5
20296
20297 ( exit $ac_status )
20298 ac_cv_func_mmap_fixed_mapped=no
20299 fi
20300 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20301 fi
20302
20303
20304 fi
20305 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20306 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
20307 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20308
20309 cat >>confdefs.h <<\_ACEOF
20310 #define HAVE_MMAP 1
20311 _ACEOF
20312
20313 fi
20314 rm -f conftest.mmap
20315
20316
20317     { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
20318 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6; }
20319 if test "${ac_cv_gnu_library_2_1+set}" = set; then
20320   echo $ECHO_N "(cached) $ECHO_C" >&6
20321 else
20322   cat >conftest.$ac_ext <<_ACEOF
20323 /* confdefs.h.  */
20324 _ACEOF
20325 cat confdefs.h >>conftest.$ac_ext
20326 cat >>conftest.$ac_ext <<_ACEOF
20327 /* end confdefs.h.  */
20328
20329 #include <features.h>
20330 #ifdef __GNU_LIBRARY__
20331  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
20332   Lucky GNU user
20333  #endif
20334 #endif
20335
20336 _ACEOF
20337 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20338   $EGREP "Lucky GNU user" >/dev/null 2>&1; then
20339   ac_cv_gnu_library_2_1=yes
20340 else
20341   ac_cv_gnu_library_2_1=no
20342 fi
20343 rm -f conftest*
20344
20345
20346
20347 fi
20348 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
20349 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6; }
20350
20351     GLIBC21="$ac_cv_gnu_library_2_1"
20352
20353
20354
20355
20356   { echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
20357 echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6; }
20358 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
20359   echo $ECHO_N "(cached) $ECHO_C" >&6
20360 else
20361
20362       if test "$cross_compiling" = yes; then
20363
20364           # Guess based on the CPU.
20365           case "$host_cpu" in
20366             alpha* | i3456786 | m68k | s390*)
20367               gt_cv_int_divbyzero_sigfpe="guessing yes";;
20368             *)
20369               gt_cv_int_divbyzero_sigfpe="guessing no";;
20370           esac
20371
20372 else
20373   cat >conftest.$ac_ext <<_ACEOF
20374 /* confdefs.h.  */
20375 _ACEOF
20376 cat confdefs.h >>conftest.$ac_ext
20377 cat >>conftest.$ac_ext <<_ACEOF
20378 /* end confdefs.h.  */
20379
20380 #include <stdlib.h>
20381 #include <signal.h>
20382
20383 static void
20384 #ifdef __cplusplus
20385 sigfpe_handler (int sig)
20386 #else
20387 sigfpe_handler (sig) int sig;
20388 #endif
20389 {
20390   /* Exit with code 0 if SIGFPE, with code 1 if any other signal.  */
20391   exit (sig != SIGFPE);
20392 }
20393
20394 int x = 1;
20395 int y = 0;
20396 int z;
20397 int nan;
20398
20399 int main ()
20400 {
20401   signal (SIGFPE, sigfpe_handler);
20402 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP.  */
20403 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
20404   signal (SIGTRAP, sigfpe_handler);
20405 #endif
20406 /* Linux/SPARC yields signal SIGILL.  */
20407 #if defined (__sparc__) && defined (__linux__)
20408   signal (SIGILL, sigfpe_handler);
20409 #endif
20410
20411   z = x / y;
20412   nan = y / y;
20413   exit (1);
20414 }
20415
20416 _ACEOF
20417 rm -f conftest$ac_exeext
20418 if { (ac_try="$ac_link"
20419 case "(($ac_try" in
20420   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20421   *) ac_try_echo=$ac_try;;
20422 esac
20423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20424   (eval "$ac_link") 2>&5
20425   ac_status=$?
20426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20427   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20428   { (case "(($ac_try" in
20429   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20430   *) ac_try_echo=$ac_try;;
20431 esac
20432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20433   (eval "$ac_try") 2>&5
20434   ac_status=$?
20435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20436   (exit $ac_status); }; }; then
20437   gt_cv_int_divbyzero_sigfpe=yes
20438 else
20439   echo "$as_me: program exited with status $ac_status" >&5
20440 echo "$as_me: failed program was:" >&5
20441 sed 's/^/| /' conftest.$ac_ext >&5
20442
20443 ( exit $ac_status )
20444 gt_cv_int_divbyzero_sigfpe=no
20445 fi
20446 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20447 fi
20448
20449
20450
20451 fi
20452 { echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
20453 echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6; }
20454   case "$gt_cv_int_divbyzero_sigfpe" in
20455     *yes) value=1;;
20456     *) value=0;;
20457   esac
20458
20459 cat >>confdefs.h <<_ACEOF
20460 #define INTDIV0_RAISES_SIGFPE $value
20461 _ACEOF
20462
20463
20464
20465   { echo "$as_me:$LINENO: checking for unsigned long long" >&5
20466 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; }
20467 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
20468   echo $ECHO_N "(cached) $ECHO_C" >&6
20469 else
20470   cat >conftest.$ac_ext <<_ACEOF
20471 /* confdefs.h.  */
20472 _ACEOF
20473 cat confdefs.h >>conftest.$ac_ext
20474 cat >>conftest.$ac_ext <<_ACEOF
20475 /* end confdefs.h.  */
20476 unsigned long long ull = 1ULL; int i = 63;
20477 int
20478 main ()
20479 {
20480 unsigned long long ullmax = (unsigned long long) -1;
20481      return ull << i | ull >> i | ullmax / ull | ullmax % ull;
20482   ;
20483   return 0;
20484 }
20485 _ACEOF
20486 rm -f conftest.$ac_objext conftest$ac_exeext
20487 if { (ac_try="$ac_link"
20488 case "(($ac_try" in
20489   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20490   *) ac_try_echo=$ac_try;;
20491 esac
20492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20493   (eval "$ac_link") 2>conftest.er1
20494   ac_status=$?
20495   grep -v '^ *+' conftest.er1 >conftest.err
20496   rm -f conftest.er1
20497   cat conftest.err >&5
20498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20499   (exit $ac_status); } && {
20500          test -z "$ac_c_werror_flag" ||
20501          test ! -s conftest.err
20502        } && test -s conftest$ac_exeext &&
20503        $as_test_x conftest$ac_exeext; then
20504   ac_cv_type_unsigned_long_long=yes
20505 else
20506   echo "$as_me: failed program was:" >&5
20507 sed 's/^/| /' conftest.$ac_ext >&5
20508
20509         ac_cv_type_unsigned_long_long=no
20510 fi
20511
20512 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20513       conftest$ac_exeext conftest.$ac_ext
20514 fi
20515 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
20516 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; }
20517   if test $ac_cv_type_unsigned_long_long = yes; then
20518
20519 cat >>confdefs.h <<\_ACEOF
20520 #define HAVE_UNSIGNED_LONG_LONG 1
20521 _ACEOF
20522
20523   fi
20524
20525
20526
20527
20528   if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
20529
20530     test $ac_cv_type_unsigned_long_long = yes \
20531       && ac_type='unsigned long long' \
20532       || ac_type='unsigned long'
20533
20534 cat >>confdefs.h <<_ACEOF
20535 #define uintmax_t $ac_type
20536 _ACEOF
20537
20538   else
20539
20540 cat >>confdefs.h <<\_ACEOF
20541 #define HAVE_UINTMAX_T 1
20542 _ACEOF
20543
20544   fi
20545
20546
20547   { echo "$as_me:$LINENO: checking for inttypes.h" >&5
20548 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
20549 if test "${gt_cv_header_inttypes_h+set}" = set; then
20550   echo $ECHO_N "(cached) $ECHO_C" >&6
20551 else
20552
20553     cat >conftest.$ac_ext <<_ACEOF
20554 /* confdefs.h.  */
20555 _ACEOF
20556 cat confdefs.h >>conftest.$ac_ext
20557 cat >>conftest.$ac_ext <<_ACEOF
20558 /* end confdefs.h.  */
20559 #include <sys/types.h>
20560 #include <inttypes.h>
20561 int
20562 main ()
20563 {
20564
20565   ;
20566   return 0;
20567 }
20568 _ACEOF
20569 rm -f conftest.$ac_objext
20570 if { (ac_try="$ac_compile"
20571 case "(($ac_try" in
20572   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20573   *) ac_try_echo=$ac_try;;
20574 esac
20575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20576   (eval "$ac_compile") 2>conftest.er1
20577   ac_status=$?
20578   grep -v '^ *+' conftest.er1 >conftest.err
20579   rm -f conftest.er1
20580   cat conftest.err >&5
20581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20582   (exit $ac_status); } && {
20583          test -z "$ac_c_werror_flag" ||
20584          test ! -s conftest.err
20585        } && test -s conftest.$ac_objext; then
20586   gt_cv_header_inttypes_h=yes
20587 else
20588   echo "$as_me: failed program was:" >&5
20589 sed 's/^/| /' conftest.$ac_ext >&5
20590
20591         gt_cv_header_inttypes_h=no
20592 fi
20593
20594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20595
20596 fi
20597 { echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
20598 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6; }
20599   if test $gt_cv_header_inttypes_h = yes; then
20600
20601 cat >>confdefs.h <<_ACEOF
20602 #define HAVE_INTTYPES_H 1
20603 _ACEOF
20604
20605   fi
20606
20607
20608
20609   if test $gt_cv_header_inttypes_h = yes; then
20610     { echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
20611 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6; }
20612 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
20613   echo $ECHO_N "(cached) $ECHO_C" >&6
20614 else
20615
20616         cat >conftest.$ac_ext <<_ACEOF
20617 /* confdefs.h.  */
20618 _ACEOF
20619 cat confdefs.h >>conftest.$ac_ext
20620 cat >>conftest.$ac_ext <<_ACEOF
20621 /* end confdefs.h.  */
20622 #include <inttypes.h>
20623 #ifdef PRId32
20624 char *p = PRId32;
20625 #endif
20626
20627 int
20628 main ()
20629 {
20630
20631   ;
20632   return 0;
20633 }
20634 _ACEOF
20635 rm -f conftest.$ac_objext
20636 if { (ac_try="$ac_compile"
20637 case "(($ac_try" in
20638   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20639   *) ac_try_echo=$ac_try;;
20640 esac
20641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20642   (eval "$ac_compile") 2>conftest.er1
20643   ac_status=$?
20644   grep -v '^ *+' conftest.er1 >conftest.err
20645   rm -f conftest.er1
20646   cat conftest.err >&5
20647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20648   (exit $ac_status); } && {
20649          test -z "$ac_c_werror_flag" ||
20650          test ! -s conftest.err
20651        } && test -s conftest.$ac_objext; then
20652   gt_cv_inttypes_pri_broken=no
20653 else
20654   echo "$as_me: failed program was:" >&5
20655 sed 's/^/| /' conftest.$ac_ext >&5
20656
20657         gt_cv_inttypes_pri_broken=yes
20658 fi
20659
20660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20661
20662 fi
20663 { echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
20664 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6; }
20665   fi
20666   if test "$gt_cv_inttypes_pri_broken" = yes; then
20667
20668 cat >>confdefs.h <<_ACEOF
20669 #define PRI_MACROS_BROKEN 1
20670 _ACEOF
20671
20672   fi
20673
20674
20675
20676 for ac_header in stdint.h
20677 do
20678 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20679 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20680   { echo "$as_me:$LINENO: checking for $ac_header" >&5
20681 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20682 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20683   echo $ECHO_N "(cached) $ECHO_C" >&6
20684 fi
20685 ac_res=`eval echo '${'$as_ac_Header'}'`
20686                { echo "$as_me:$LINENO: result: $ac_res" >&5
20687 echo "${ECHO_T}$ac_res" >&6; }
20688 else
20689   # Is the header compilable?
20690 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20691 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20692 cat >conftest.$ac_ext <<_ACEOF
20693 /* confdefs.h.  */
20694 _ACEOF
20695 cat confdefs.h >>conftest.$ac_ext
20696 cat >>conftest.$ac_ext <<_ACEOF
20697 /* end confdefs.h.  */
20698 $ac_includes_default
20699 #include <$ac_header>
20700 _ACEOF
20701 rm -f conftest.$ac_objext
20702 if { (ac_try="$ac_compile"
20703 case "(($ac_try" in
20704   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20705   *) ac_try_echo=$ac_try;;
20706 esac
20707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20708   (eval "$ac_compile") 2>conftest.er1
20709   ac_status=$?
20710   grep -v '^ *+' conftest.er1 >conftest.err
20711   rm -f conftest.er1
20712   cat conftest.err >&5
20713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20714   (exit $ac_status); } && {
20715          test -z "$ac_c_werror_flag" ||
20716          test ! -s conftest.err
20717        } && test -s conftest.$ac_objext; then
20718   ac_header_compiler=yes
20719 else
20720   echo "$as_me: failed program was:" >&5
20721 sed 's/^/| /' conftest.$ac_ext >&5
20722
20723         ac_header_compiler=no
20724 fi
20725
20726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20727 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20728 echo "${ECHO_T}$ac_header_compiler" >&6; }
20729
20730 # Is the header present?
20731 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20732 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20733 cat >conftest.$ac_ext <<_ACEOF
20734 /* confdefs.h.  */
20735 _ACEOF
20736 cat confdefs.h >>conftest.$ac_ext
20737 cat >>conftest.$ac_ext <<_ACEOF
20738 /* end confdefs.h.  */
20739 #include <$ac_header>
20740 _ACEOF
20741 if { (ac_try="$ac_cpp conftest.$ac_ext"
20742 case "(($ac_try" in
20743   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20744   *) ac_try_echo=$ac_try;;
20745 esac
20746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20747   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20748   ac_status=$?
20749   grep -v '^ *+' conftest.er1 >conftest.err
20750   rm -f conftest.er1
20751   cat conftest.err >&5
20752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20753   (exit $ac_status); } >/dev/null && {
20754          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20755          test ! -s conftest.err
20756        }; then
20757   ac_header_preproc=yes
20758 else
20759   echo "$as_me: failed program was:" >&5
20760 sed 's/^/| /' conftest.$ac_ext >&5
20761
20762   ac_header_preproc=no
20763 fi
20764
20765 rm -f conftest.err conftest.$ac_ext
20766 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20767 echo "${ECHO_T}$ac_header_preproc" >&6; }
20768
20769 # So?  What about this header?
20770 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20771   yes:no: )
20772     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20773 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20774     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20775 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20776     ac_header_preproc=yes
20777     ;;
20778   no:yes:* )
20779     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20780 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20781     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20782 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20783     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20784 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20785     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20786 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20787     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20788 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20789     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20790 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20791
20792     ;;
20793 esac
20794 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20795 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20796 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20797   echo $ECHO_N "(cached) $ECHO_C" >&6
20798 else
20799   eval "$as_ac_Header=\$ac_header_preproc"
20800 fi
20801 ac_res=`eval echo '${'$as_ac_Header'}'`
20802                { echo "$as_me:$LINENO: result: $ac_res" >&5
20803 echo "${ECHO_T}$ac_res" >&6; }
20804
20805 fi
20806 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20807   cat >>confdefs.h <<_ACEOF
20808 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20809 _ACEOF
20810
20811 fi
20812
20813 done
20814
20815     { echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
20816 echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6; }
20817   result=
20818   cat >conftest.$ac_ext <<_ACEOF
20819 /* confdefs.h.  */
20820 _ACEOF
20821 cat confdefs.h >>conftest.$ac_ext
20822 cat >>conftest.$ac_ext <<_ACEOF
20823 /* end confdefs.h.  */
20824
20825 #include <limits.h>
20826 #if HAVE_STDINT_H
20827 #include <stdint.h>
20828 #endif
20829 #ifdef SIZE_MAX
20830 Found it
20831 #endif
20832
20833 _ACEOF
20834 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20835   $EGREP "Found it" >/dev/null 2>&1; then
20836   result=yes
20837 fi
20838 rm -f conftest*
20839
20840   if test -z "$result"; then
20841                     if test "$cross_compiling" = yes; then
20842   # Depending upon the size, compute the lo and hi bounds.
20843 cat >conftest.$ac_ext <<_ACEOF
20844 /* confdefs.h.  */
20845 _ACEOF
20846 cat confdefs.h >>conftest.$ac_ext
20847 cat >>conftest.$ac_ext <<_ACEOF
20848 /* end confdefs.h.  */
20849 #include <stddef.h>
20850 int
20851 main ()
20852 {
20853 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
20854 test_array [0] = 0
20855
20856   ;
20857   return 0;
20858 }
20859 _ACEOF
20860 rm -f conftest.$ac_objext
20861 if { (ac_try="$ac_compile"
20862 case "(($ac_try" in
20863   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20864   *) ac_try_echo=$ac_try;;
20865 esac
20866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20867   (eval "$ac_compile") 2>conftest.er1
20868   ac_status=$?
20869   grep -v '^ *+' conftest.er1 >conftest.err
20870   rm -f conftest.er1
20871   cat conftest.err >&5
20872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20873   (exit $ac_status); } && {
20874          test -z "$ac_c_werror_flag" ||
20875          test ! -s conftest.err
20876        } && test -s conftest.$ac_objext; then
20877   ac_lo=0 ac_mid=0
20878   while :; do
20879     cat >conftest.$ac_ext <<_ACEOF
20880 /* confdefs.h.  */
20881 _ACEOF
20882 cat confdefs.h >>conftest.$ac_ext
20883 cat >>conftest.$ac_ext <<_ACEOF
20884 /* end confdefs.h.  */
20885 #include <stddef.h>
20886 int
20887 main ()
20888 {
20889 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
20890 test_array [0] = 0
20891
20892   ;
20893   return 0;
20894 }
20895 _ACEOF
20896 rm -f conftest.$ac_objext
20897 if { (ac_try="$ac_compile"
20898 case "(($ac_try" in
20899   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20900   *) ac_try_echo=$ac_try;;
20901 esac
20902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20903   (eval "$ac_compile") 2>conftest.er1
20904   ac_status=$?
20905   grep -v '^ *+' conftest.er1 >conftest.err
20906   rm -f conftest.er1
20907   cat conftest.err >&5
20908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20909   (exit $ac_status); } && {
20910          test -z "$ac_c_werror_flag" ||
20911          test ! -s conftest.err
20912        } && test -s conftest.$ac_objext; then
20913   ac_hi=$ac_mid; break
20914 else
20915   echo "$as_me: failed program was:" >&5
20916 sed 's/^/| /' conftest.$ac_ext >&5
20917
20918         ac_lo=`expr $ac_mid + 1`
20919                         if test $ac_lo -le $ac_mid; then
20920                           ac_lo= ac_hi=
20921                           break
20922                         fi
20923                         ac_mid=`expr 2 '*' $ac_mid + 1`
20924 fi
20925
20926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20927   done
20928 else
20929   echo "$as_me: failed program was:" >&5
20930 sed 's/^/| /' conftest.$ac_ext >&5
20931
20932         cat >conftest.$ac_ext <<_ACEOF
20933 /* confdefs.h.  */
20934 _ACEOF
20935 cat confdefs.h >>conftest.$ac_ext
20936 cat >>conftest.$ac_ext <<_ACEOF
20937 /* end confdefs.h.  */
20938 #include <stddef.h>
20939 int
20940 main ()
20941 {
20942 static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
20943 test_array [0] = 0
20944
20945   ;
20946   return 0;
20947 }
20948 _ACEOF
20949 rm -f conftest.$ac_objext
20950 if { (ac_try="$ac_compile"
20951 case "(($ac_try" in
20952   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20953   *) ac_try_echo=$ac_try;;
20954 esac
20955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20956   (eval "$ac_compile") 2>conftest.er1
20957   ac_status=$?
20958   grep -v '^ *+' conftest.er1 >conftest.err
20959   rm -f conftest.er1
20960   cat conftest.err >&5
20961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20962   (exit $ac_status); } && {
20963          test -z "$ac_c_werror_flag" ||
20964          test ! -s conftest.err
20965        } && test -s conftest.$ac_objext; then
20966   ac_hi=-1 ac_mid=-1
20967   while :; do
20968     cat >conftest.$ac_ext <<_ACEOF
20969 /* confdefs.h.  */
20970 _ACEOF
20971 cat confdefs.h >>conftest.$ac_ext
20972 cat >>conftest.$ac_ext <<_ACEOF
20973 /* end confdefs.h.  */
20974 #include <stddef.h>
20975 int
20976 main ()
20977 {
20978 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
20979 test_array [0] = 0
20980
20981   ;
20982   return 0;
20983 }
20984 _ACEOF
20985 rm -f conftest.$ac_objext
20986 if { (ac_try="$ac_compile"
20987 case "(($ac_try" in
20988   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20989   *) ac_try_echo=$ac_try;;
20990 esac
20991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20992   (eval "$ac_compile") 2>conftest.er1
20993   ac_status=$?
20994   grep -v '^ *+' conftest.er1 >conftest.err
20995   rm -f conftest.er1
20996   cat conftest.err >&5
20997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20998   (exit $ac_status); } && {
20999          test -z "$ac_c_werror_flag" ||
21000          test ! -s conftest.err
21001        } && test -s conftest.$ac_objext; then
21002   ac_lo=$ac_mid; break
21003 else
21004   echo "$as_me: failed program was:" >&5
21005 sed 's/^/| /' conftest.$ac_ext >&5
21006
21007         ac_hi=`expr '(' $ac_mid ')' - 1`
21008                         if test $ac_mid -le $ac_hi; then
21009                           ac_lo= ac_hi=
21010                           break
21011                         fi
21012                         ac_mid=`expr 2 '*' $ac_mid`
21013 fi
21014
21015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21016   done
21017 else
21018   echo "$as_me: failed program was:" >&5
21019 sed 's/^/| /' conftest.$ac_ext >&5
21020
21021         ac_lo= ac_hi=
21022 fi
21023
21024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21025 fi
21026
21027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21028 # Binary search between lo and hi bounds.
21029 while test "x$ac_lo" != "x$ac_hi"; do
21030   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21031   cat >conftest.$ac_ext <<_ACEOF
21032 /* confdefs.h.  */
21033 _ACEOF
21034 cat confdefs.h >>conftest.$ac_ext
21035 cat >>conftest.$ac_ext <<_ACEOF
21036 /* end confdefs.h.  */
21037 #include <stddef.h>
21038 int
21039 main ()
21040 {
21041 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
21042 test_array [0] = 0
21043
21044   ;
21045   return 0;
21046 }
21047 _ACEOF
21048 rm -f conftest.$ac_objext
21049 if { (ac_try="$ac_compile"
21050 case "(($ac_try" in
21051   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21052   *) ac_try_echo=$ac_try;;
21053 esac
21054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21055   (eval "$ac_compile") 2>conftest.er1
21056   ac_status=$?
21057   grep -v '^ *+' conftest.er1 >conftest.err
21058   rm -f conftest.er1
21059   cat conftest.err >&5
21060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21061   (exit $ac_status); } && {
21062          test -z "$ac_c_werror_flag" ||
21063          test ! -s conftest.err
21064        } && test -s conftest.$ac_objext; then
21065   ac_hi=$ac_mid
21066 else
21067   echo "$as_me: failed program was:" >&5
21068 sed 's/^/| /' conftest.$ac_ext >&5
21069
21070         ac_lo=`expr '(' $ac_mid ')' + 1`
21071 fi
21072
21073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21074 done
21075 case $ac_lo in
21076 ?*) res_hi=$ac_lo;;
21077 '') result=? ;;
21078 esac
21079 else
21080   cat >conftest.$ac_ext <<_ACEOF
21081 /* confdefs.h.  */
21082 _ACEOF
21083 cat confdefs.h >>conftest.$ac_ext
21084 cat >>conftest.$ac_ext <<_ACEOF
21085 /* end confdefs.h.  */
21086 #include <stddef.h>
21087 static long int longval () { return ~(size_t)0 / 10; }
21088 static unsigned long int ulongval () { return ~(size_t)0 / 10; }
21089 #include <stdio.h>
21090 #include <stdlib.h>
21091 int
21092 main ()
21093 {
21094
21095   FILE *f = fopen ("conftest.val", "w");
21096   if (! f)
21097     return 1;
21098   if ((~(size_t)0 / 10) < 0)
21099     {
21100       long int i = longval ();
21101       if (i != (~(size_t)0 / 10))
21102         return 1;
21103       fprintf (f, "%ld\n", i);
21104     }
21105   else
21106     {
21107       unsigned long int i = ulongval ();
21108       if (i != (~(size_t)0 / 10))
21109         return 1;
21110       fprintf (f, "%lu\n", i);
21111     }
21112   return ferror (f) || fclose (f) != 0;
21113
21114   ;
21115   return 0;
21116 }
21117 _ACEOF
21118 rm -f conftest$ac_exeext
21119 if { (ac_try="$ac_link"
21120 case "(($ac_try" in
21121   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21122   *) ac_try_echo=$ac_try;;
21123 esac
21124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21125   (eval "$ac_link") 2>&5
21126   ac_status=$?
21127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21128   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21129   { (case "(($ac_try" in
21130   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21131   *) ac_try_echo=$ac_try;;
21132 esac
21133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21134   (eval "$ac_try") 2>&5
21135   ac_status=$?
21136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21137   (exit $ac_status); }; }; then
21138   res_hi=`cat conftest.val`
21139 else
21140   echo "$as_me: program exited with status $ac_status" >&5
21141 echo "$as_me: failed program was:" >&5
21142 sed 's/^/| /' conftest.$ac_ext >&5
21143
21144 ( exit $ac_status )
21145 result=?
21146 fi
21147 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21148 fi
21149 rm -f conftest.val
21150
21151     if test "$cross_compiling" = yes; then
21152   # Depending upon the size, compute the lo and hi bounds.
21153 cat >conftest.$ac_ext <<_ACEOF
21154 /* confdefs.h.  */
21155 _ACEOF
21156 cat confdefs.h >>conftest.$ac_ext
21157 cat >>conftest.$ac_ext <<_ACEOF
21158 /* end confdefs.h.  */
21159 #include <stddef.h>
21160 int
21161 main ()
21162 {
21163 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
21164 test_array [0] = 0
21165
21166   ;
21167   return 0;
21168 }
21169 _ACEOF
21170 rm -f conftest.$ac_objext
21171 if { (ac_try="$ac_compile"
21172 case "(($ac_try" in
21173   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21174   *) ac_try_echo=$ac_try;;
21175 esac
21176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21177   (eval "$ac_compile") 2>conftest.er1
21178   ac_status=$?
21179   grep -v '^ *+' conftest.er1 >conftest.err
21180   rm -f conftest.er1
21181   cat conftest.err >&5
21182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21183   (exit $ac_status); } && {
21184          test -z "$ac_c_werror_flag" ||
21185          test ! -s conftest.err
21186        } && test -s conftest.$ac_objext; then
21187   ac_lo=0 ac_mid=0
21188   while :; do
21189     cat >conftest.$ac_ext <<_ACEOF
21190 /* confdefs.h.  */
21191 _ACEOF
21192 cat confdefs.h >>conftest.$ac_ext
21193 cat >>conftest.$ac_ext <<_ACEOF
21194 /* end confdefs.h.  */
21195 #include <stddef.h>
21196 int
21197 main ()
21198 {
21199 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
21200 test_array [0] = 0
21201
21202   ;
21203   return 0;
21204 }
21205 _ACEOF
21206 rm -f conftest.$ac_objext
21207 if { (ac_try="$ac_compile"
21208 case "(($ac_try" in
21209   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21210   *) ac_try_echo=$ac_try;;
21211 esac
21212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21213   (eval "$ac_compile") 2>conftest.er1
21214   ac_status=$?
21215   grep -v '^ *+' conftest.er1 >conftest.err
21216   rm -f conftest.er1
21217   cat conftest.err >&5
21218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21219   (exit $ac_status); } && {
21220          test -z "$ac_c_werror_flag" ||
21221          test ! -s conftest.err
21222        } && test -s conftest.$ac_objext; then
21223   ac_hi=$ac_mid; break
21224 else
21225   echo "$as_me: failed program was:" >&5
21226 sed 's/^/| /' conftest.$ac_ext >&5
21227
21228         ac_lo=`expr $ac_mid + 1`
21229                         if test $ac_lo -le $ac_mid; then
21230                           ac_lo= ac_hi=
21231                           break
21232                         fi
21233                         ac_mid=`expr 2 '*' $ac_mid + 1`
21234 fi
21235
21236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21237   done
21238 else
21239   echo "$as_me: failed program was:" >&5
21240 sed 's/^/| /' conftest.$ac_ext >&5
21241
21242         cat >conftest.$ac_ext <<_ACEOF
21243 /* confdefs.h.  */
21244 _ACEOF
21245 cat confdefs.h >>conftest.$ac_ext
21246 cat >>conftest.$ac_ext <<_ACEOF
21247 /* end confdefs.h.  */
21248 #include <stddef.h>
21249 int
21250 main ()
21251 {
21252 static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
21253 test_array [0] = 0
21254
21255   ;
21256   return 0;
21257 }
21258 _ACEOF
21259 rm -f conftest.$ac_objext
21260 if { (ac_try="$ac_compile"
21261 case "(($ac_try" in
21262   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21263   *) ac_try_echo=$ac_try;;
21264 esac
21265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21266   (eval "$ac_compile") 2>conftest.er1
21267   ac_status=$?
21268   grep -v '^ *+' conftest.er1 >conftest.err
21269   rm -f conftest.er1
21270   cat conftest.err >&5
21271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21272   (exit $ac_status); } && {
21273          test -z "$ac_c_werror_flag" ||
21274          test ! -s conftest.err
21275        } && test -s conftest.$ac_objext; then
21276   ac_hi=-1 ac_mid=-1
21277   while :; do
21278     cat >conftest.$ac_ext <<_ACEOF
21279 /* confdefs.h.  */
21280 _ACEOF
21281 cat confdefs.h >>conftest.$ac_ext
21282 cat >>conftest.$ac_ext <<_ACEOF
21283 /* end confdefs.h.  */
21284 #include <stddef.h>
21285 int
21286 main ()
21287 {
21288 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
21289 test_array [0] = 0
21290
21291   ;
21292   return 0;
21293 }
21294 _ACEOF
21295 rm -f conftest.$ac_objext
21296 if { (ac_try="$ac_compile"
21297 case "(($ac_try" in
21298   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21299   *) ac_try_echo=$ac_try;;
21300 esac
21301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21302   (eval "$ac_compile") 2>conftest.er1
21303   ac_status=$?
21304   grep -v '^ *+' conftest.er1 >conftest.err
21305   rm -f conftest.er1
21306   cat conftest.err >&5
21307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21308   (exit $ac_status); } && {
21309          test -z "$ac_c_werror_flag" ||
21310          test ! -s conftest.err
21311        } && test -s conftest.$ac_objext; then
21312   ac_lo=$ac_mid; break
21313 else
21314   echo "$as_me: failed program was:" >&5
21315 sed 's/^/| /' conftest.$ac_ext >&5
21316
21317         ac_hi=`expr '(' $ac_mid ')' - 1`
21318                         if test $ac_mid -le $ac_hi; then
21319                           ac_lo= ac_hi=
21320                           break
21321                         fi
21322                         ac_mid=`expr 2 '*' $ac_mid`
21323 fi
21324
21325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21326   done
21327 else
21328   echo "$as_me: failed program was:" >&5
21329 sed 's/^/| /' conftest.$ac_ext >&5
21330
21331         ac_lo= ac_hi=
21332 fi
21333
21334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21335 fi
21336
21337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21338 # Binary search between lo and hi bounds.
21339 while test "x$ac_lo" != "x$ac_hi"; do
21340   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21341   cat >conftest.$ac_ext <<_ACEOF
21342 /* confdefs.h.  */
21343 _ACEOF
21344 cat confdefs.h >>conftest.$ac_ext
21345 cat >>conftest.$ac_ext <<_ACEOF
21346 /* end confdefs.h.  */
21347 #include <stddef.h>
21348 int
21349 main ()
21350 {
21351 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
21352 test_array [0] = 0
21353
21354   ;
21355   return 0;
21356 }
21357 _ACEOF
21358 rm -f conftest.$ac_objext
21359 if { (ac_try="$ac_compile"
21360 case "(($ac_try" in
21361   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21362   *) ac_try_echo=$ac_try;;
21363 esac
21364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21365   (eval "$ac_compile") 2>conftest.er1
21366   ac_status=$?
21367   grep -v '^ *+' conftest.er1 >conftest.err
21368   rm -f conftest.er1
21369   cat conftest.err >&5
21370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21371   (exit $ac_status); } && {
21372          test -z "$ac_c_werror_flag" ||
21373          test ! -s conftest.err
21374        } && test -s conftest.$ac_objext; then
21375   ac_hi=$ac_mid
21376 else
21377   echo "$as_me: failed program was:" >&5
21378 sed 's/^/| /' conftest.$ac_ext >&5
21379
21380         ac_lo=`expr '(' $ac_mid ')' + 1`
21381 fi
21382
21383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21384 done
21385 case $ac_lo in
21386 ?*) res_lo=$ac_lo;;
21387 '') result=? ;;
21388 esac
21389 else
21390   cat >conftest.$ac_ext <<_ACEOF
21391 /* confdefs.h.  */
21392 _ACEOF
21393 cat confdefs.h >>conftest.$ac_ext
21394 cat >>conftest.$ac_ext <<_ACEOF
21395 /* end confdefs.h.  */
21396 #include <stddef.h>
21397 static long int longval () { return ~(size_t)0 % 10; }
21398 static unsigned long int ulongval () { return ~(size_t)0 % 10; }
21399 #include <stdio.h>
21400 #include <stdlib.h>
21401 int
21402 main ()
21403 {
21404
21405   FILE *f = fopen ("conftest.val", "w");
21406   if (! f)
21407     return 1;
21408   if ((~(size_t)0 % 10) < 0)
21409     {
21410       long int i = longval ();
21411       if (i != (~(size_t)0 % 10))
21412         return 1;
21413       fprintf (f, "%ld\n", i);
21414     }
21415   else
21416     {
21417       unsigned long int i = ulongval ();
21418       if (i != (~(size_t)0 % 10))
21419         return 1;
21420       fprintf (f, "%lu\n", i);
21421     }
21422   return ferror (f) || fclose (f) != 0;
21423
21424   ;
21425   return 0;
21426 }
21427 _ACEOF
21428 rm -f conftest$ac_exeext
21429 if { (ac_try="$ac_link"
21430 case "(($ac_try" in
21431   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21432   *) ac_try_echo=$ac_try;;
21433 esac
21434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21435   (eval "$ac_link") 2>&5
21436   ac_status=$?
21437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21438   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21439   { (case "(($ac_try" in
21440   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21441   *) ac_try_echo=$ac_try;;
21442 esac
21443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21444   (eval "$ac_try") 2>&5
21445   ac_status=$?
21446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21447   (exit $ac_status); }; }; then
21448   res_lo=`cat conftest.val`
21449 else
21450   echo "$as_me: program exited with status $ac_status" >&5
21451 echo "$as_me: failed program was:" >&5
21452 sed 's/^/| /' conftest.$ac_ext >&5
21453
21454 ( exit $ac_status )
21455 result=?
21456 fi
21457 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21458 fi
21459 rm -f conftest.val
21460
21461     if test "$cross_compiling" = yes; then
21462   # Depending upon the size, compute the lo and hi bounds.
21463 cat >conftest.$ac_ext <<_ACEOF
21464 /* confdefs.h.  */
21465 _ACEOF
21466 cat confdefs.h >>conftest.$ac_ext
21467 cat >>conftest.$ac_ext <<_ACEOF
21468 /* end confdefs.h.  */
21469 #include <stddef.h>
21470 int
21471 main ()
21472 {
21473 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
21474 test_array [0] = 0
21475
21476   ;
21477   return 0;
21478 }
21479 _ACEOF
21480 rm -f conftest.$ac_objext
21481 if { (ac_try="$ac_compile"
21482 case "(($ac_try" in
21483   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21484   *) ac_try_echo=$ac_try;;
21485 esac
21486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21487   (eval "$ac_compile") 2>conftest.er1
21488   ac_status=$?
21489   grep -v '^ *+' conftest.er1 >conftest.err
21490   rm -f conftest.er1
21491   cat conftest.err >&5
21492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21493   (exit $ac_status); } && {
21494          test -z "$ac_c_werror_flag" ||
21495          test ! -s conftest.err
21496        } && test -s conftest.$ac_objext; then
21497   ac_lo=0 ac_mid=0
21498   while :; do
21499     cat >conftest.$ac_ext <<_ACEOF
21500 /* confdefs.h.  */
21501 _ACEOF
21502 cat confdefs.h >>conftest.$ac_ext
21503 cat >>conftest.$ac_ext <<_ACEOF
21504 /* end confdefs.h.  */
21505 #include <stddef.h>
21506 int
21507 main ()
21508 {
21509 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
21510 test_array [0] = 0
21511
21512   ;
21513   return 0;
21514 }
21515 _ACEOF
21516 rm -f conftest.$ac_objext
21517 if { (ac_try="$ac_compile"
21518 case "(($ac_try" in
21519   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21520   *) ac_try_echo=$ac_try;;
21521 esac
21522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21523   (eval "$ac_compile") 2>conftest.er1
21524   ac_status=$?
21525   grep -v '^ *+' conftest.er1 >conftest.err
21526   rm -f conftest.er1
21527   cat conftest.err >&5
21528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21529   (exit $ac_status); } && {
21530          test -z "$ac_c_werror_flag" ||
21531          test ! -s conftest.err
21532        } && test -s conftest.$ac_objext; then
21533   ac_hi=$ac_mid; break
21534 else
21535   echo "$as_me: failed program was:" >&5
21536 sed 's/^/| /' conftest.$ac_ext >&5
21537
21538         ac_lo=`expr $ac_mid + 1`
21539                         if test $ac_lo -le $ac_mid; then
21540                           ac_lo= ac_hi=
21541                           break
21542                         fi
21543                         ac_mid=`expr 2 '*' $ac_mid + 1`
21544 fi
21545
21546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21547   done
21548 else
21549   echo "$as_me: failed program was:" >&5
21550 sed 's/^/| /' conftest.$ac_ext >&5
21551
21552         cat >conftest.$ac_ext <<_ACEOF
21553 /* confdefs.h.  */
21554 _ACEOF
21555 cat confdefs.h >>conftest.$ac_ext
21556 cat >>conftest.$ac_ext <<_ACEOF
21557 /* end confdefs.h.  */
21558 #include <stddef.h>
21559 int
21560 main ()
21561 {
21562 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
21563 test_array [0] = 0
21564
21565   ;
21566   return 0;
21567 }
21568 _ACEOF
21569 rm -f conftest.$ac_objext
21570 if { (ac_try="$ac_compile"
21571 case "(($ac_try" in
21572   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21573   *) ac_try_echo=$ac_try;;
21574 esac
21575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21576   (eval "$ac_compile") 2>conftest.er1
21577   ac_status=$?
21578   grep -v '^ *+' conftest.er1 >conftest.err
21579   rm -f conftest.er1
21580   cat conftest.err >&5
21581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21582   (exit $ac_status); } && {
21583          test -z "$ac_c_werror_flag" ||
21584          test ! -s conftest.err
21585        } && test -s conftest.$ac_objext; then
21586   ac_hi=-1 ac_mid=-1
21587   while :; do
21588     cat >conftest.$ac_ext <<_ACEOF
21589 /* confdefs.h.  */
21590 _ACEOF
21591 cat confdefs.h >>conftest.$ac_ext
21592 cat >>conftest.$ac_ext <<_ACEOF
21593 /* end confdefs.h.  */
21594 #include <stddef.h>
21595 int
21596 main ()
21597 {
21598 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
21599 test_array [0] = 0
21600
21601   ;
21602   return 0;
21603 }
21604 _ACEOF
21605 rm -f conftest.$ac_objext
21606 if { (ac_try="$ac_compile"
21607 case "(($ac_try" in
21608   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21609   *) ac_try_echo=$ac_try;;
21610 esac
21611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21612   (eval "$ac_compile") 2>conftest.er1
21613   ac_status=$?
21614   grep -v '^ *+' conftest.er1 >conftest.err
21615   rm -f conftest.er1
21616   cat conftest.err >&5
21617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21618   (exit $ac_status); } && {
21619          test -z "$ac_c_werror_flag" ||
21620          test ! -s conftest.err
21621        } && test -s conftest.$ac_objext; then
21622   ac_lo=$ac_mid; break
21623 else
21624   echo "$as_me: failed program was:" >&5
21625 sed 's/^/| /' conftest.$ac_ext >&5
21626
21627         ac_hi=`expr '(' $ac_mid ')' - 1`
21628                         if test $ac_mid -le $ac_hi; then
21629                           ac_lo= ac_hi=
21630                           break
21631                         fi
21632                         ac_mid=`expr 2 '*' $ac_mid`
21633 fi
21634
21635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21636   done
21637 else
21638   echo "$as_me: failed program was:" >&5
21639 sed 's/^/| /' conftest.$ac_ext >&5
21640
21641         ac_lo= ac_hi=
21642 fi
21643
21644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21645 fi
21646
21647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21648 # Binary search between lo and hi bounds.
21649 while test "x$ac_lo" != "x$ac_hi"; do
21650   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21651   cat >conftest.$ac_ext <<_ACEOF
21652 /* confdefs.h.  */
21653 _ACEOF
21654 cat confdefs.h >>conftest.$ac_ext
21655 cat >>conftest.$ac_ext <<_ACEOF
21656 /* end confdefs.h.  */
21657 #include <stddef.h>
21658 int
21659 main ()
21660 {
21661 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
21662 test_array [0] = 0
21663
21664   ;
21665   return 0;
21666 }
21667 _ACEOF
21668 rm -f conftest.$ac_objext
21669 if { (ac_try="$ac_compile"
21670 case "(($ac_try" in
21671   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21672   *) ac_try_echo=$ac_try;;
21673 esac
21674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21675   (eval "$ac_compile") 2>conftest.er1
21676   ac_status=$?
21677   grep -v '^ *+' conftest.er1 >conftest.err
21678   rm -f conftest.er1
21679   cat conftest.err >&5
21680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21681   (exit $ac_status); } && {
21682          test -z "$ac_c_werror_flag" ||
21683          test ! -s conftest.err
21684        } && test -s conftest.$ac_objext; then
21685   ac_hi=$ac_mid
21686 else
21687   echo "$as_me: failed program was:" >&5
21688 sed 's/^/| /' conftest.$ac_ext >&5
21689
21690         ac_lo=`expr '(' $ac_mid ')' + 1`
21691 fi
21692
21693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21694 done
21695 case $ac_lo in
21696 ?*) fits_in_uint=$ac_lo;;
21697 '') result=? ;;
21698 esac
21699 else
21700   cat >conftest.$ac_ext <<_ACEOF
21701 /* confdefs.h.  */
21702 _ACEOF
21703 cat confdefs.h >>conftest.$ac_ext
21704 cat >>conftest.$ac_ext <<_ACEOF
21705 /* end confdefs.h.  */
21706 #include <stddef.h>
21707 static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
21708 static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
21709 #include <stdio.h>
21710 #include <stdlib.h>
21711 int
21712 main ()
21713 {
21714
21715   FILE *f = fopen ("conftest.val", "w");
21716   if (! f)
21717     return 1;
21718   if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
21719     {
21720       long int i = longval ();
21721       if (i != (sizeof (size_t) <= sizeof (unsigned int)))
21722         return 1;
21723       fprintf (f, "%ld\n", i);
21724     }
21725   else
21726     {
21727       unsigned long int i = ulongval ();
21728       if (i != (sizeof (size_t) <= sizeof (unsigned int)))
21729         return 1;
21730       fprintf (f, "%lu\n", i);
21731     }
21732   return ferror (f) || fclose (f) != 0;
21733
21734   ;
21735   return 0;
21736 }
21737 _ACEOF
21738 rm -f conftest$ac_exeext
21739 if { (ac_try="$ac_link"
21740 case "(($ac_try" in
21741   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21742   *) ac_try_echo=$ac_try;;
21743 esac
21744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21745   (eval "$ac_link") 2>&5
21746   ac_status=$?
21747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21748   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21749   { (case "(($ac_try" in
21750   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21751   *) ac_try_echo=$ac_try;;
21752 esac
21753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21754   (eval "$ac_try") 2>&5
21755   ac_status=$?
21756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21757   (exit $ac_status); }; }; then
21758   fits_in_uint=`cat conftest.val`
21759 else
21760   echo "$as_me: program exited with status $ac_status" >&5
21761 echo "$as_me: failed program was:" >&5
21762 sed 's/^/| /' conftest.$ac_ext >&5
21763
21764 ( exit $ac_status )
21765 result=?
21766 fi
21767 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21768 fi
21769 rm -f conftest.val
21770
21771     if test "$fits_in_uint" = 1; then
21772                   cat >conftest.$ac_ext <<_ACEOF
21773 /* confdefs.h.  */
21774 _ACEOF
21775 cat confdefs.h >>conftest.$ac_ext
21776 cat >>conftest.$ac_ext <<_ACEOF
21777 /* end confdefs.h.  */
21778 #include <stddef.h>
21779         extern size_t foo;
21780         extern unsigned long foo;
21781
21782 int
21783 main ()
21784 {
21785
21786   ;
21787   return 0;
21788 }
21789 _ACEOF
21790 rm -f conftest.$ac_objext
21791 if { (ac_try="$ac_compile"
21792 case "(($ac_try" in
21793   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21794   *) ac_try_echo=$ac_try;;
21795 esac
21796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21797   (eval "$ac_compile") 2>conftest.er1
21798   ac_status=$?
21799   grep -v '^ *+' conftest.er1 >conftest.err
21800   rm -f conftest.er1
21801   cat conftest.err >&5
21802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21803   (exit $ac_status); } && {
21804          test -z "$ac_c_werror_flag" ||
21805          test ! -s conftest.err
21806        } && test -s conftest.$ac_objext; then
21807   fits_in_uint=0
21808 else
21809   echo "$as_me: failed program was:" >&5
21810 sed 's/^/| /' conftest.$ac_ext >&5
21811
21812
21813 fi
21814
21815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21816     fi
21817     if test -z "$result"; then
21818       if test "$fits_in_uint" = 1; then
21819         result="$res_hi$res_lo"U
21820       else
21821         result="$res_hi$res_lo"UL
21822       fi
21823     else
21824             result='~(size_t)0'
21825     fi
21826   fi
21827   { echo "$as_me:$LINENO: result: $result" >&5
21828 echo "${ECHO_T}$result" >&6; }
21829   if test "$result" != yes; then
21830
21831 cat >>confdefs.h <<_ACEOF
21832 #define SIZE_MAX $result
21833 _ACEOF
21834
21835   fi
21836
21837
21838
21839
21840
21841 for ac_header in stdint.h
21842 do
21843 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21844 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21845   { echo "$as_me:$LINENO: checking for $ac_header" >&5
21846 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21847 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21848   echo $ECHO_N "(cached) $ECHO_C" >&6
21849 fi
21850 ac_res=`eval echo '${'$as_ac_Header'}'`
21851                { echo "$as_me:$LINENO: result: $ac_res" >&5
21852 echo "${ECHO_T}$ac_res" >&6; }
21853 else
21854   # Is the header compilable?
21855 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21856 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21857 cat >conftest.$ac_ext <<_ACEOF
21858 /* confdefs.h.  */
21859 _ACEOF
21860 cat confdefs.h >>conftest.$ac_ext
21861 cat >>conftest.$ac_ext <<_ACEOF
21862 /* end confdefs.h.  */
21863 $ac_includes_default
21864 #include <$ac_header>
21865 _ACEOF
21866 rm -f conftest.$ac_objext
21867 if { (ac_try="$ac_compile"
21868 case "(($ac_try" in
21869   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21870   *) ac_try_echo=$ac_try;;
21871 esac
21872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21873   (eval "$ac_compile") 2>conftest.er1
21874   ac_status=$?
21875   grep -v '^ *+' conftest.er1 >conftest.err
21876   rm -f conftest.er1
21877   cat conftest.err >&5
21878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21879   (exit $ac_status); } && {
21880          test -z "$ac_c_werror_flag" ||
21881          test ! -s conftest.err
21882        } && test -s conftest.$ac_objext; then
21883   ac_header_compiler=yes
21884 else
21885   echo "$as_me: failed program was:" >&5
21886 sed 's/^/| /' conftest.$ac_ext >&5
21887
21888         ac_header_compiler=no
21889 fi
21890
21891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21892 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21893 echo "${ECHO_T}$ac_header_compiler" >&6; }
21894
21895 # Is the header present?
21896 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21897 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21898 cat >conftest.$ac_ext <<_ACEOF
21899 /* confdefs.h.  */
21900 _ACEOF
21901 cat confdefs.h >>conftest.$ac_ext
21902 cat >>conftest.$ac_ext <<_ACEOF
21903 /* end confdefs.h.  */
21904 #include <$ac_header>
21905 _ACEOF
21906 if { (ac_try="$ac_cpp conftest.$ac_ext"
21907 case "(($ac_try" in
21908   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21909   *) ac_try_echo=$ac_try;;
21910 esac
21911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21912   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21913   ac_status=$?
21914   grep -v '^ *+' conftest.er1 >conftest.err
21915   rm -f conftest.er1
21916   cat conftest.err >&5
21917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21918   (exit $ac_status); } >/dev/null && {
21919          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21920          test ! -s conftest.err
21921        }; then
21922   ac_header_preproc=yes
21923 else
21924   echo "$as_me: failed program was:" >&5
21925 sed 's/^/| /' conftest.$ac_ext >&5
21926
21927   ac_header_preproc=no
21928 fi
21929
21930 rm -f conftest.err conftest.$ac_ext
21931 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21932 echo "${ECHO_T}$ac_header_preproc" >&6; }
21933
21934 # So?  What about this header?
21935 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21936   yes:no: )
21937     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21938 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21939     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21940 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21941     ac_header_preproc=yes
21942     ;;
21943   no:yes:* )
21944     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21945 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21946     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21947 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21948     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21949 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21950     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21951 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21952     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21953 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21954     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21955 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21956
21957     ;;
21958 esac
21959 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21960 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21961 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21962   echo $ECHO_N "(cached) $ECHO_C" >&6
21963 else
21964   eval "$as_ac_Header=\$ac_header_preproc"
21965 fi
21966 ac_res=`eval echo '${'$as_ac_Header'}'`
21967                { echo "$as_me:$LINENO: result: $ac_res" >&5
21968 echo "${ECHO_T}$ac_res" >&6; }
21969
21970 fi
21971 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21972   cat >>confdefs.h <<_ACEOF
21973 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21974 _ACEOF
21975
21976 fi
21977
21978 done
21979
21980
21981
21982
21983
21984
21985
21986
21987   { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
21988 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
21989 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
21990   echo $ECHO_N "(cached) $ECHO_C" >&6
21991 else
21992   cat >conftest.$ac_ext <<_ACEOF
21993 /* confdefs.h.  */
21994 _ACEOF
21995 cat confdefs.h >>conftest.$ac_ext
21996 cat >>conftest.$ac_ext <<_ACEOF
21997 /* end confdefs.h.  */
21998 $ac_includes_default
21999 typedef ptrdiff_t ac__type_new_;
22000 int
22001 main ()
22002 {
22003 if ((ac__type_new_ *) 0)
22004   return 0;
22005 if (sizeof (ac__type_new_))
22006   return 0;
22007   ;
22008   return 0;
22009 }
22010 _ACEOF
22011 rm -f conftest.$ac_objext
22012 if { (ac_try="$ac_compile"
22013 case "(($ac_try" in
22014   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22015   *) ac_try_echo=$ac_try;;
22016 esac
22017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22018   (eval "$ac_compile") 2>conftest.er1
22019   ac_status=$?
22020   grep -v '^ *+' conftest.er1 >conftest.err
22021   rm -f conftest.er1
22022   cat conftest.err >&5
22023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22024   (exit $ac_status); } && {
22025          test -z "$ac_c_werror_flag" ||
22026          test ! -s conftest.err
22027        } && test -s conftest.$ac_objext; then
22028   ac_cv_type_ptrdiff_t=yes
22029 else
22030   echo "$as_me: failed program was:" >&5
22031 sed 's/^/| /' conftest.$ac_ext >&5
22032
22033         ac_cv_type_ptrdiff_t=no
22034 fi
22035
22036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22037 fi
22038 { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
22039 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
22040 if test $ac_cv_type_ptrdiff_t = yes; then
22041   :
22042 else
22043
22044 cat >>confdefs.h <<\_ACEOF
22045 #define ptrdiff_t long
22046 _ACEOF
22047
22048
22049 fi
22050
22051
22052
22053
22054
22055
22056
22057
22058
22059
22060
22061 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
22062 stdlib.h string.h unistd.h sys/param.h
22063 do
22064 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22065 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22066   { echo "$as_me:$LINENO: checking for $ac_header" >&5
22067 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22068 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22069   echo $ECHO_N "(cached) $ECHO_C" >&6
22070 fi
22071 ac_res=`eval echo '${'$as_ac_Header'}'`
22072                { echo "$as_me:$LINENO: result: $ac_res" >&5
22073 echo "${ECHO_T}$ac_res" >&6; }
22074 else
22075   # Is the header compilable?
22076 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22077 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22078 cat >conftest.$ac_ext <<_ACEOF
22079 /* confdefs.h.  */
22080 _ACEOF
22081 cat confdefs.h >>conftest.$ac_ext
22082 cat >>conftest.$ac_ext <<_ACEOF
22083 /* end confdefs.h.  */
22084 $ac_includes_default
22085 #include <$ac_header>
22086 _ACEOF
22087 rm -f conftest.$ac_objext
22088 if { (ac_try="$ac_compile"
22089 case "(($ac_try" in
22090   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22091   *) ac_try_echo=$ac_try;;
22092 esac
22093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22094   (eval "$ac_compile") 2>conftest.er1
22095   ac_status=$?
22096   grep -v '^ *+' conftest.er1 >conftest.err
22097   rm -f conftest.er1
22098   cat conftest.err >&5
22099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22100   (exit $ac_status); } && {
22101          test -z "$ac_c_werror_flag" ||
22102          test ! -s conftest.err
22103        } && test -s conftest.$ac_objext; then
22104   ac_header_compiler=yes
22105 else
22106   echo "$as_me: failed program was:" >&5
22107 sed 's/^/| /' conftest.$ac_ext >&5
22108
22109         ac_header_compiler=no
22110 fi
22111
22112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22113 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22114 echo "${ECHO_T}$ac_header_compiler" >&6; }
22115
22116 # Is the header present?
22117 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22118 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22119 cat >conftest.$ac_ext <<_ACEOF
22120 /* confdefs.h.  */
22121 _ACEOF
22122 cat confdefs.h >>conftest.$ac_ext
22123 cat >>conftest.$ac_ext <<_ACEOF
22124 /* end confdefs.h.  */
22125 #include <$ac_header>
22126 _ACEOF
22127 if { (ac_try="$ac_cpp conftest.$ac_ext"
22128 case "(($ac_try" in
22129   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22130   *) ac_try_echo=$ac_try;;
22131 esac
22132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22133   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22134   ac_status=$?
22135   grep -v '^ *+' conftest.er1 >conftest.err
22136   rm -f conftest.er1
22137   cat conftest.err >&5
22138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22139   (exit $ac_status); } >/dev/null && {
22140          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22141          test ! -s conftest.err
22142        }; then
22143   ac_header_preproc=yes
22144 else
22145   echo "$as_me: failed program was:" >&5
22146 sed 's/^/| /' conftest.$ac_ext >&5
22147
22148   ac_header_preproc=no
22149 fi
22150
22151 rm -f conftest.err conftest.$ac_ext
22152 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22153 echo "${ECHO_T}$ac_header_preproc" >&6; }
22154
22155 # So?  What about this header?
22156 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22157   yes:no: )
22158     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22159 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22160     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22161 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22162     ac_header_preproc=yes
22163     ;;
22164   no:yes:* )
22165     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22166 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22167     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22168 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22169     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22170 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22171     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22172 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22173     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22174 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22175     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22176 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22177
22178     ;;
22179 esac
22180 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22181 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22182 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22183   echo $ECHO_N "(cached) $ECHO_C" >&6
22184 else
22185   eval "$as_ac_Header=\$ac_header_preproc"
22186 fi
22187 ac_res=`eval echo '${'$as_ac_Header'}'`
22188                { echo "$as_me:$LINENO: result: $ac_res" >&5
22189 echo "${ECHO_T}$ac_res" >&6; }
22190
22191 fi
22192 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22193   cat >>confdefs.h <<_ACEOF
22194 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22195 _ACEOF
22196
22197 fi
22198
22199 done
22200
22201
22202
22203
22204
22205
22206
22207
22208
22209
22210
22211
22212
22213
22214
22215
22216
22217
22218
22219
22220
22221
22222
22223
22224 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
22225 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
22226 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
22227 __fsetlocking
22228 do
22229 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22230 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22231 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22232 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22233   echo $ECHO_N "(cached) $ECHO_C" >&6
22234 else
22235   cat >conftest.$ac_ext <<_ACEOF
22236 /* confdefs.h.  */
22237 _ACEOF
22238 cat confdefs.h >>conftest.$ac_ext
22239 cat >>conftest.$ac_ext <<_ACEOF
22240 /* end confdefs.h.  */
22241 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22242    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22243 #define $ac_func innocuous_$ac_func
22244
22245 /* System header to define __stub macros and hopefully few prototypes,
22246     which can conflict with char $ac_func (); below.
22247     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22248     <limits.h> exists even on freestanding compilers.  */
22249
22250 #ifdef __STDC__
22251 # include <limits.h>
22252 #else
22253 # include <assert.h>
22254 #endif
22255
22256 #undef $ac_func
22257
22258 /* Override any GCC internal prototype to avoid an error.
22259    Use char because int might match the return type of a GCC
22260    builtin and then its argument prototype would still apply.  */
22261 #ifdef __cplusplus
22262 extern "C"
22263 #endif
22264 char $ac_func ();
22265 /* The GNU C library defines this for functions which it implements
22266     to always fail with ENOSYS.  Some functions are actually named
22267     something starting with __ and the normal name is an alias.  */
22268 #if defined __stub_$ac_func || defined __stub___$ac_func
22269 choke me
22270 #endif
22271
22272 int
22273 main ()
22274 {
22275 return $ac_func ();
22276   ;
22277   return 0;
22278 }
22279 _ACEOF
22280 rm -f conftest.$ac_objext conftest$ac_exeext
22281 if { (ac_try="$ac_link"
22282 case "(($ac_try" in
22283   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22284   *) ac_try_echo=$ac_try;;
22285 esac
22286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22287   (eval "$ac_link") 2>conftest.er1
22288   ac_status=$?
22289   grep -v '^ *+' conftest.er1 >conftest.err
22290   rm -f conftest.er1
22291   cat conftest.err >&5
22292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22293   (exit $ac_status); } && {
22294          test -z "$ac_c_werror_flag" ||
22295          test ! -s conftest.err
22296        } && test -s conftest$ac_exeext &&
22297        $as_test_x conftest$ac_exeext; then
22298   eval "$as_ac_var=yes"
22299 else
22300   echo "$as_me: failed program was:" >&5
22301 sed 's/^/| /' conftest.$ac_ext >&5
22302
22303         eval "$as_ac_var=no"
22304 fi
22305
22306 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22307       conftest$ac_exeext conftest.$ac_ext
22308 fi
22309 ac_res=`eval echo '${'$as_ac_var'}'`
22310                { echo "$as_me:$LINENO: result: $ac_res" >&5
22311 echo "${ECHO_T}$ac_res" >&6; }
22312 if test `eval echo '${'$as_ac_var'}'` = yes; then
22313   cat >>confdefs.h <<_ACEOF
22314 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22315 _ACEOF
22316
22317 fi
22318 done
22319
22320
22321
22322   { echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
22323 echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6; }
22324 if test "${ac_cv_have_decl__snprintf+set}" = set; then
22325   echo $ECHO_N "(cached) $ECHO_C" >&6
22326 else
22327   cat >conftest.$ac_ext <<_ACEOF
22328 /* confdefs.h.  */
22329 _ACEOF
22330 cat confdefs.h >>conftest.$ac_ext
22331 cat >>conftest.$ac_ext <<_ACEOF
22332 /* end confdefs.h.  */
22333 #include <stdio.h>
22334 int
22335 main ()
22336 {
22337
22338 #ifndef _snprintf
22339   char *p = (char *) _snprintf;
22340 #endif
22341
22342   ;
22343   return 0;
22344 }
22345 _ACEOF
22346 rm -f conftest.$ac_objext
22347 if { (ac_try="$ac_compile"
22348 case "(($ac_try" in
22349   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22350   *) ac_try_echo=$ac_try;;
22351 esac
22352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22353   (eval "$ac_compile") 2>conftest.er1
22354   ac_status=$?
22355   grep -v '^ *+' conftest.er1 >conftest.err
22356   rm -f conftest.er1
22357   cat conftest.err >&5
22358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22359   (exit $ac_status); } && {
22360          test -z "$ac_c_werror_flag" ||
22361          test ! -s conftest.err
22362        } && test -s conftest.$ac_objext; then
22363   ac_cv_have_decl__snprintf=yes
22364 else
22365   echo "$as_me: failed program was:" >&5
22366 sed 's/^/| /' conftest.$ac_ext >&5
22367
22368         ac_cv_have_decl__snprintf=no
22369 fi
22370
22371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22372 fi
22373 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
22374 echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6; }
22375   if test $ac_cv_have_decl__snprintf = yes; then
22376     gt_value=1
22377   else
22378     gt_value=0
22379   fi
22380
22381 cat >>confdefs.h <<_ACEOF
22382 #define HAVE_DECL__SNPRINTF $gt_value
22383 _ACEOF
22384
22385
22386
22387   { echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
22388 echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6; }
22389 if test "${ac_cv_have_decl__snwprintf+set}" = set; then
22390   echo $ECHO_N "(cached) $ECHO_C" >&6
22391 else
22392   cat >conftest.$ac_ext <<_ACEOF
22393 /* confdefs.h.  */
22394 _ACEOF
22395 cat confdefs.h >>conftest.$ac_ext
22396 cat >>conftest.$ac_ext <<_ACEOF
22397 /* end confdefs.h.  */
22398 #include <stdio.h>
22399 int
22400 main ()
22401 {
22402
22403 #ifndef _snwprintf
22404   char *p = (char *) _snwprintf;
22405 #endif
22406
22407   ;
22408   return 0;
22409 }
22410 _ACEOF
22411 rm -f conftest.$ac_objext
22412 if { (ac_try="$ac_compile"
22413 case "(($ac_try" in
22414   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22415   *) ac_try_echo=$ac_try;;
22416 esac
22417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22418   (eval "$ac_compile") 2>conftest.er1
22419   ac_status=$?
22420   grep -v '^ *+' conftest.er1 >conftest.err
22421   rm -f conftest.er1
22422   cat conftest.err >&5
22423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22424   (exit $ac_status); } && {
22425          test -z "$ac_c_werror_flag" ||
22426          test ! -s conftest.err
22427        } && test -s conftest.$ac_objext; then
22428   ac_cv_have_decl__snwprintf=yes
22429 else
22430   echo "$as_me: failed program was:" >&5
22431 sed 's/^/| /' conftest.$ac_ext >&5
22432
22433         ac_cv_have_decl__snwprintf=no
22434 fi
22435
22436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22437 fi
22438 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
22439 echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6; }
22440   if test $ac_cv_have_decl__snwprintf = yes; then
22441     gt_value=1
22442   else
22443     gt_value=0
22444   fi
22445
22446 cat >>confdefs.h <<_ACEOF
22447 #define HAVE_DECL__SNWPRINTF $gt_value
22448 _ACEOF
22449
22450
22451
22452
22453   { echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
22454 echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6; }
22455 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
22456   echo $ECHO_N "(cached) $ECHO_C" >&6
22457 else
22458   cat >conftest.$ac_ext <<_ACEOF
22459 /* confdefs.h.  */
22460 _ACEOF
22461 cat confdefs.h >>conftest.$ac_ext
22462 cat >>conftest.$ac_ext <<_ACEOF
22463 /* end confdefs.h.  */
22464 #include <stdio.h>
22465 int
22466 main ()
22467 {
22468
22469 #ifndef feof_unlocked
22470   char *p = (char *) feof_unlocked;
22471 #endif
22472
22473   ;
22474   return 0;
22475 }
22476 _ACEOF
22477 rm -f conftest.$ac_objext
22478 if { (ac_try="$ac_compile"
22479 case "(($ac_try" in
22480   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22481   *) ac_try_echo=$ac_try;;
22482 esac
22483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22484   (eval "$ac_compile") 2>conftest.er1
22485   ac_status=$?
22486   grep -v '^ *+' conftest.er1 >conftest.err
22487   rm -f conftest.er1
22488   cat conftest.err >&5
22489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22490   (exit $ac_status); } && {
22491          test -z "$ac_c_werror_flag" ||
22492          test ! -s conftest.err
22493        } && test -s conftest.$ac_objext; then
22494   ac_cv_have_decl_feof_unlocked=yes
22495 else
22496   echo "$as_me: failed program was:" >&5
22497 sed 's/^/| /' conftest.$ac_ext >&5
22498
22499         ac_cv_have_decl_feof_unlocked=no
22500 fi
22501
22502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22503 fi
22504 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
22505 echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6; }
22506   if test $ac_cv_have_decl_feof_unlocked = yes; then
22507     gt_value=1
22508   else
22509     gt_value=0
22510   fi
22511
22512 cat >>confdefs.h <<_ACEOF
22513 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
22514 _ACEOF
22515
22516
22517
22518   { echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
22519 echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6; }
22520 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
22521   echo $ECHO_N "(cached) $ECHO_C" >&6
22522 else
22523   cat >conftest.$ac_ext <<_ACEOF
22524 /* confdefs.h.  */
22525 _ACEOF
22526 cat confdefs.h >>conftest.$ac_ext
22527 cat >>conftest.$ac_ext <<_ACEOF
22528 /* end confdefs.h.  */
22529 #include <stdio.h>
22530 int
22531 main ()
22532 {
22533
22534 #ifndef fgets_unlocked
22535   char *p = (char *) fgets_unlocked;
22536 #endif
22537
22538   ;
22539   return 0;
22540 }
22541 _ACEOF
22542 rm -f conftest.$ac_objext
22543 if { (ac_try="$ac_compile"
22544 case "(($ac_try" in
22545   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22546   *) ac_try_echo=$ac_try;;
22547 esac
22548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22549   (eval "$ac_compile") 2>conftest.er1
22550   ac_status=$?
22551   grep -v '^ *+' conftest.er1 >conftest.err
22552   rm -f conftest.er1
22553   cat conftest.err >&5
22554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22555   (exit $ac_status); } && {
22556          test -z "$ac_c_werror_flag" ||
22557          test ! -s conftest.err
22558        } && test -s conftest.$ac_objext; then
22559   ac_cv_have_decl_fgets_unlocked=yes
22560 else
22561   echo "$as_me: failed program was:" >&5
22562 sed 's/^/| /' conftest.$ac_ext >&5
22563
22564         ac_cv_have_decl_fgets_unlocked=no
22565 fi
22566
22567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22568 fi
22569 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
22570 echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6; }
22571   if test $ac_cv_have_decl_fgets_unlocked = yes; then
22572     gt_value=1
22573   else
22574     gt_value=0
22575   fi
22576
22577 cat >>confdefs.h <<_ACEOF
22578 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
22579 _ACEOF
22580
22581
22582
22583   { echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
22584 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6; }
22585 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
22586   echo $ECHO_N "(cached) $ECHO_C" >&6
22587 else
22588   cat >conftest.$ac_ext <<_ACEOF
22589 /* confdefs.h.  */
22590 _ACEOF
22591 cat confdefs.h >>conftest.$ac_ext
22592 cat >>conftest.$ac_ext <<_ACEOF
22593 /* end confdefs.h.  */
22594 #include <stdio.h>
22595 int
22596 main ()
22597 {
22598
22599 #ifndef getc_unlocked
22600   char *p = (char *) getc_unlocked;
22601 #endif
22602
22603   ;
22604   return 0;
22605 }
22606 _ACEOF
22607 rm -f conftest.$ac_objext
22608 if { (ac_try="$ac_compile"
22609 case "(($ac_try" in
22610   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22611   *) ac_try_echo=$ac_try;;
22612 esac
22613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22614   (eval "$ac_compile") 2>conftest.er1
22615   ac_status=$?
22616   grep -v '^ *+' conftest.er1 >conftest.err
22617   rm -f conftest.er1
22618   cat conftest.err >&5
22619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22620   (exit $ac_status); } && {
22621          test -z "$ac_c_werror_flag" ||
22622          test ! -s conftest.err
22623        } && test -s conftest.$ac_objext; then
22624   ac_cv_have_decl_getc_unlocked=yes
22625 else
22626   echo "$as_me: failed program was:" >&5
22627 sed 's/^/| /' conftest.$ac_ext >&5
22628
22629         ac_cv_have_decl_getc_unlocked=no
22630 fi
22631
22632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22633 fi
22634 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
22635 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6; }
22636   if test $ac_cv_have_decl_getc_unlocked = yes; then
22637     gt_value=1
22638   else
22639     gt_value=0
22640   fi
22641
22642 cat >>confdefs.h <<_ACEOF
22643 #define HAVE_DECL_GETC_UNLOCKED $gt_value
22644 _ACEOF
22645
22646
22647
22648   case $gt_cv_func_printf_posix in
22649     *yes) HAVE_POSIX_PRINTF=1 ;;
22650     *) HAVE_POSIX_PRINTF=0 ;;
22651   esac
22652
22653   if test "$ac_cv_func_asprintf" = yes; then
22654     HAVE_ASPRINTF=1
22655   else
22656     HAVE_ASPRINTF=0
22657   fi
22658
22659   if test "$ac_cv_func_snprintf" = yes; then
22660     HAVE_SNPRINTF=1
22661   else
22662     HAVE_SNPRINTF=0
22663   fi
22664
22665   if test "$ac_cv_func_wprintf" = yes; then
22666     HAVE_WPRINTF=1
22667   else
22668     HAVE_WPRINTF=0
22669   fi
22670
22671
22672
22673
22674
22675
22676
22677           am_save_CPPFLAGS="$CPPFLAGS"
22678
22679   for element in $INCICONV; do
22680     haveit=
22681     for x in $CPPFLAGS; do
22682
22683   acl_save_prefix="$prefix"
22684   prefix="$acl_final_prefix"
22685   acl_save_exec_prefix="$exec_prefix"
22686   exec_prefix="$acl_final_exec_prefix"
22687   eval x=\"$x\"
22688   exec_prefix="$acl_save_exec_prefix"
22689   prefix="$acl_save_prefix"
22690
22691       if test "X$x" = "X$element"; then
22692         haveit=yes
22693         break
22694       fi
22695     done
22696     if test -z "$haveit"; then
22697       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
22698     fi
22699   done
22700
22701
22702   { echo "$as_me:$LINENO: checking for iconv" >&5
22703 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
22704 if test "${am_cv_func_iconv+set}" = set; then
22705   echo $ECHO_N "(cached) $ECHO_C" >&6
22706 else
22707
22708     am_cv_func_iconv="no, consider installing GNU libiconv"
22709     am_cv_lib_iconv=no
22710     cat >conftest.$ac_ext <<_ACEOF
22711 /* confdefs.h.  */
22712 _ACEOF
22713 cat confdefs.h >>conftest.$ac_ext
22714 cat >>conftest.$ac_ext <<_ACEOF
22715 /* end confdefs.h.  */
22716 #include <stdlib.h>
22717 #include <iconv.h>
22718 int
22719 main ()
22720 {
22721 iconv_t cd = iconv_open("","");
22722        iconv(cd,NULL,NULL,NULL,NULL);
22723        iconv_close(cd);
22724   ;
22725   return 0;
22726 }
22727 _ACEOF
22728 rm -f conftest.$ac_objext conftest$ac_exeext
22729 if { (ac_try="$ac_link"
22730 case "(($ac_try" in
22731   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22732   *) ac_try_echo=$ac_try;;
22733 esac
22734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22735   (eval "$ac_link") 2>conftest.er1
22736   ac_status=$?
22737   grep -v '^ *+' conftest.er1 >conftest.err
22738   rm -f conftest.er1
22739   cat conftest.err >&5
22740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22741   (exit $ac_status); } && {
22742          test -z "$ac_c_werror_flag" ||
22743          test ! -s conftest.err
22744        } && test -s conftest$ac_exeext &&
22745        $as_test_x conftest$ac_exeext; then
22746   am_cv_func_iconv=yes
22747 else
22748   echo "$as_me: failed program was:" >&5
22749 sed 's/^/| /' conftest.$ac_ext >&5
22750
22751
22752 fi
22753
22754 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22755       conftest$ac_exeext conftest.$ac_ext
22756     if test "$am_cv_func_iconv" != yes; then
22757       am_save_LIBS="$LIBS"
22758       LIBS="$LIBS $LIBICONV"
22759       cat >conftest.$ac_ext <<_ACEOF
22760 /* confdefs.h.  */
22761 _ACEOF
22762 cat confdefs.h >>conftest.$ac_ext
22763 cat >>conftest.$ac_ext <<_ACEOF
22764 /* end confdefs.h.  */
22765 #include <stdlib.h>
22766 #include <iconv.h>
22767 int
22768 main ()
22769 {
22770 iconv_t cd = iconv_open("","");
22771          iconv(cd,NULL,NULL,NULL,NULL);
22772          iconv_close(cd);
22773   ;
22774   return 0;
22775 }
22776 _ACEOF
22777 rm -f conftest.$ac_objext conftest$ac_exeext
22778 if { (ac_try="$ac_link"
22779 case "(($ac_try" in
22780   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22781   *) ac_try_echo=$ac_try;;
22782 esac
22783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22784   (eval "$ac_link") 2>conftest.er1
22785   ac_status=$?
22786   grep -v '^ *+' conftest.er1 >conftest.err
22787   rm -f conftest.er1
22788   cat conftest.err >&5
22789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22790   (exit $ac_status); } && {
22791          test -z "$ac_c_werror_flag" ||
22792          test ! -s conftest.err
22793        } && test -s conftest$ac_exeext &&
22794        $as_test_x conftest$ac_exeext; then
22795   am_cv_lib_iconv=yes
22796         am_cv_func_iconv=yes
22797 else
22798   echo "$as_me: failed program was:" >&5
22799 sed 's/^/| /' conftest.$ac_ext >&5
22800
22801
22802 fi
22803
22804 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22805       conftest$ac_exeext conftest.$ac_ext
22806       LIBS="$am_save_LIBS"
22807     fi
22808
22809 fi
22810 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
22811 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
22812   if test "$am_cv_func_iconv" = yes; then
22813
22814 cat >>confdefs.h <<\_ACEOF
22815 #define HAVE_ICONV 1
22816 _ACEOF
22817
22818   fi
22819   if test "$am_cv_lib_iconv" = yes; then
22820     { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
22821 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
22822     { echo "$as_me:$LINENO: result: $LIBICONV" >&5
22823 echo "${ECHO_T}$LIBICONV" >&6; }
22824   else
22825             CPPFLAGS="$am_save_CPPFLAGS"
22826     LIBICONV=
22827     LTLIBICONV=
22828   fi
22829
22830
22831
22832   if test "$am_cv_func_iconv" = yes; then
22833     { echo "$as_me:$LINENO: checking for iconv declaration" >&5
22834 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
22835     if test "${am_cv_proto_iconv+set}" = set; then
22836   echo $ECHO_N "(cached) $ECHO_C" >&6
22837 else
22838
22839       cat >conftest.$ac_ext <<_ACEOF
22840 /* confdefs.h.  */
22841 _ACEOF
22842 cat confdefs.h >>conftest.$ac_ext
22843 cat >>conftest.$ac_ext <<_ACEOF
22844 /* end confdefs.h.  */
22845
22846 #include <stdlib.h>
22847 #include <iconv.h>
22848 extern
22849 #ifdef __cplusplus
22850 "C"
22851 #endif
22852 #if defined(__STDC__) || defined(__cplusplus)
22853 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
22854 #else
22855 size_t iconv();
22856 #endif
22857
22858 int
22859 main ()
22860 {
22861
22862   ;
22863   return 0;
22864 }
22865 _ACEOF
22866 rm -f conftest.$ac_objext
22867 if { (ac_try="$ac_compile"
22868 case "(($ac_try" in
22869   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22870   *) ac_try_echo=$ac_try;;
22871 esac
22872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22873   (eval "$ac_compile") 2>conftest.er1
22874   ac_status=$?
22875   grep -v '^ *+' conftest.er1 >conftest.err
22876   rm -f conftest.er1
22877   cat conftest.err >&5
22878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22879   (exit $ac_status); } && {
22880          test -z "$ac_c_werror_flag" ||
22881          test ! -s conftest.err
22882        } && test -s conftest.$ac_objext; then
22883   am_cv_proto_iconv_arg1=""
22884 else
22885   echo "$as_me: failed program was:" >&5
22886 sed 's/^/| /' conftest.$ac_ext >&5
22887
22888         am_cv_proto_iconv_arg1="const"
22889 fi
22890
22891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22892       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);"
22893 fi
22894
22895     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
22896     { echo "$as_me:$LINENO: result: ${ac_t:-
22897          }$am_cv_proto_iconv" >&5
22898 echo "${ECHO_T}${ac_t:-
22899          }$am_cv_proto_iconv" >&6; }
22900
22901 cat >>confdefs.h <<_ACEOF
22902 #define ICONV_CONST $am_cv_proto_iconv_arg1
22903 _ACEOF
22904
22905   fi
22906
22907
22908   { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
22909 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
22910 if test "${am_cv_langinfo_codeset+set}" = set; then
22911   echo $ECHO_N "(cached) $ECHO_C" >&6
22912 else
22913   cat >conftest.$ac_ext <<_ACEOF
22914 /* confdefs.h.  */
22915 _ACEOF
22916 cat confdefs.h >>conftest.$ac_ext
22917 cat >>conftest.$ac_ext <<_ACEOF
22918 /* end confdefs.h.  */
22919 #include <langinfo.h>
22920 int
22921 main ()
22922 {
22923 char* cs = nl_langinfo(CODESET);
22924   ;
22925   return 0;
22926 }
22927 _ACEOF
22928 rm -f conftest.$ac_objext conftest$ac_exeext
22929 if { (ac_try="$ac_link"
22930 case "(($ac_try" in
22931   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22932   *) ac_try_echo=$ac_try;;
22933 esac
22934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22935   (eval "$ac_link") 2>conftest.er1
22936   ac_status=$?
22937   grep -v '^ *+' conftest.er1 >conftest.err
22938   rm -f conftest.er1
22939   cat conftest.err >&5
22940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22941   (exit $ac_status); } && {
22942          test -z "$ac_c_werror_flag" ||
22943          test ! -s conftest.err
22944        } && test -s conftest$ac_exeext &&
22945        $as_test_x conftest$ac_exeext; then
22946   am_cv_langinfo_codeset=yes
22947 else
22948   echo "$as_me: failed program was:" >&5
22949 sed 's/^/| /' conftest.$ac_ext >&5
22950
22951         am_cv_langinfo_codeset=no
22952 fi
22953
22954 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22955       conftest$ac_exeext conftest.$ac_ext
22956
22957 fi
22958 { echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
22959 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6; }
22960   if test $am_cv_langinfo_codeset = yes; then
22961
22962 cat >>confdefs.h <<\_ACEOF
22963 #define HAVE_LANGINFO_CODESET 1
22964 _ACEOF
22965
22966   fi
22967
22968   if test $ac_cv_header_locale_h = yes; then
22969
22970   { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
22971 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
22972 if test "${gt_cv_val_LC_MESSAGES+set}" = set; then
22973   echo $ECHO_N "(cached) $ECHO_C" >&6
22974 else
22975   cat >conftest.$ac_ext <<_ACEOF
22976 /* confdefs.h.  */
22977 _ACEOF
22978 cat confdefs.h >>conftest.$ac_ext
22979 cat >>conftest.$ac_ext <<_ACEOF
22980 /* end confdefs.h.  */
22981 #include <locale.h>
22982 int
22983 main ()
22984 {
22985 return LC_MESSAGES
22986   ;
22987   return 0;
22988 }
22989 _ACEOF
22990 rm -f conftest.$ac_objext conftest$ac_exeext
22991 if { (ac_try="$ac_link"
22992 case "(($ac_try" in
22993   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22994   *) ac_try_echo=$ac_try;;
22995 esac
22996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22997   (eval "$ac_link") 2>conftest.er1
22998   ac_status=$?
22999   grep -v '^ *+' conftest.er1 >conftest.err
23000   rm -f conftest.er1
23001   cat conftest.err >&5
23002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23003   (exit $ac_status); } && {
23004          test -z "$ac_c_werror_flag" ||
23005          test ! -s conftest.err
23006        } && test -s conftest$ac_exeext &&
23007        $as_test_x conftest$ac_exeext; then
23008   gt_cv_val_LC_MESSAGES=yes
23009 else
23010   echo "$as_me: failed program was:" >&5
23011 sed 's/^/| /' conftest.$ac_ext >&5
23012
23013         gt_cv_val_LC_MESSAGES=no
23014 fi
23015
23016 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23017       conftest$ac_exeext conftest.$ac_ext
23018 fi
23019 { echo "$as_me:$LINENO: result: $gt_cv_val_LC_MESSAGES" >&5
23020 echo "${ECHO_T}$gt_cv_val_LC_MESSAGES" >&6; }
23021   if test $gt_cv_val_LC_MESSAGES = yes; then
23022
23023 cat >>confdefs.h <<\_ACEOF
23024 #define HAVE_LC_MESSAGES 1
23025 _ACEOF
23026
23027   fi
23028
23029   fi
23030
23031   if test -n "$INTL_MACOSX_LIBS"; then
23032     CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
23033   fi
23034
23035                       for ac_prog in bison
23036 do
23037   # Extract the first word of "$ac_prog", so it can be a program name with args.
23038 set dummy $ac_prog; ac_word=$2
23039 { echo "$as_me:$LINENO: checking for $ac_word" >&5
23040 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
23041 if test "${ac_cv_prog_INTLBISON+set}" = set; then
23042   echo $ECHO_N "(cached) $ECHO_C" >&6
23043 else
23044   if test -n "$INTLBISON"; then
23045   ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
23046 else
23047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23048 for as_dir in $PATH
23049 do
23050   IFS=$as_save_IFS
23051   test -z "$as_dir" && as_dir=.
23052   for ac_exec_ext in '' $ac_executable_extensions; do
23053   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23054     ac_cv_prog_INTLBISON="$ac_prog"
23055     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23056     break 2
23057   fi
23058 done
23059 done
23060 IFS=$as_save_IFS
23061
23062 fi
23063 fi
23064 INTLBISON=$ac_cv_prog_INTLBISON
23065 if test -n "$INTLBISON"; then
23066   { echo "$as_me:$LINENO: result: $INTLBISON" >&5
23067 echo "${ECHO_T}$INTLBISON" >&6; }
23068 else
23069   { echo "$as_me:$LINENO: result: no" >&5
23070 echo "${ECHO_T}no" >&6; }
23071 fi
23072
23073
23074   test -n "$INTLBISON" && break
23075 done
23076
23077   if test -z "$INTLBISON"; then
23078     ac_verc_fail=yes
23079   else
23080         { echo "$as_me:$LINENO: checking version of bison" >&5
23081 echo $ECHO_N "checking version of bison... $ECHO_C" >&6; }
23082     ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
23083     case $ac_prog_version in
23084       '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
23085       1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
23086          ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
23087       *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
23088     esac
23089     { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
23090 echo "${ECHO_T}$ac_prog_version" >&6; }
23091   fi
23092   if test $ac_verc_fail = yes; then
23093     INTLBISON=:
23094   fi
23095
23096
23097
23098
23099
23100
23101
23102
23103
23104
23105
23106
23107
23108
23109
23110
23111     { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
23112 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
23113 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
23114   echo $ECHO_N "(cached) $ECHO_C" >&6
23115 else
23116   gt_save_CPPFLAGS="$CPPFLAGS"
23117      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
23118      gt_save_LIBS="$LIBS"
23119      LIBS="$LIBS -framework CoreFoundation"
23120      cat >conftest.$ac_ext <<_ACEOF
23121 /* confdefs.h.  */
23122 _ACEOF
23123 cat confdefs.h >>conftest.$ac_ext
23124 cat >>conftest.$ac_ext <<_ACEOF
23125 /* end confdefs.h.  */
23126 #include <CFPreferences.h>
23127 int
23128 main ()
23129 {
23130 CFPreferencesCopyAppValue(NULL, NULL)
23131   ;
23132   return 0;
23133 }
23134 _ACEOF
23135 rm -f conftest.$ac_objext conftest$ac_exeext
23136 if { (ac_try="$ac_link"
23137 case "(($ac_try" in
23138   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23139   *) ac_try_echo=$ac_try;;
23140 esac
23141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23142   (eval "$ac_link") 2>conftest.er1
23143   ac_status=$?
23144   grep -v '^ *+' conftest.er1 >conftest.err
23145   rm -f conftest.er1
23146   cat conftest.err >&5
23147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23148   (exit $ac_status); } && {
23149          test -z "$ac_c_werror_flag" ||
23150          test ! -s conftest.err
23151        } && test -s conftest$ac_exeext &&
23152        $as_test_x conftest$ac_exeext; then
23153   gt_cv_func_CFPreferencesCopyAppValue=yes
23154 else
23155   echo "$as_me: failed program was:" >&5
23156 sed 's/^/| /' conftest.$ac_ext >&5
23157
23158         gt_cv_func_CFPreferencesCopyAppValue=no
23159 fi
23160
23161 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23162       conftest$ac_exeext conftest.$ac_ext
23163      CPPFLAGS="$gt_save_CPPFLAGS"
23164      LIBS="$gt_save_LIBS"
23165 fi
23166 { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
23167 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
23168   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
23169
23170 cat >>confdefs.h <<\_ACEOF
23171 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
23172 _ACEOF
23173
23174   fi
23175     { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
23176 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
23177 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
23178   echo $ECHO_N "(cached) $ECHO_C" >&6
23179 else
23180   gt_save_CPPFLAGS="$CPPFLAGS"
23181      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
23182      gt_save_LIBS="$LIBS"
23183      LIBS="$LIBS -framework CoreFoundation"
23184      cat >conftest.$ac_ext <<_ACEOF
23185 /* confdefs.h.  */
23186 _ACEOF
23187 cat confdefs.h >>conftest.$ac_ext
23188 cat >>conftest.$ac_ext <<_ACEOF
23189 /* end confdefs.h.  */
23190 #include <CFLocale.h>
23191 int
23192 main ()
23193 {
23194 CFLocaleCopyCurrent();
23195   ;
23196   return 0;
23197 }
23198 _ACEOF
23199 rm -f conftest.$ac_objext conftest$ac_exeext
23200 if { (ac_try="$ac_link"
23201 case "(($ac_try" in
23202   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23203   *) ac_try_echo=$ac_try;;
23204 esac
23205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23206   (eval "$ac_link") 2>conftest.er1
23207   ac_status=$?
23208   grep -v '^ *+' conftest.er1 >conftest.err
23209   rm -f conftest.er1
23210   cat conftest.err >&5
23211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23212   (exit $ac_status); } && {
23213          test -z "$ac_c_werror_flag" ||
23214          test ! -s conftest.err
23215        } && test -s conftest$ac_exeext &&
23216        $as_test_x conftest$ac_exeext; then
23217   gt_cv_func_CFLocaleCopyCurrent=yes
23218 else
23219   echo "$as_me: failed program was:" >&5
23220 sed 's/^/| /' conftest.$ac_ext >&5
23221
23222         gt_cv_func_CFLocaleCopyCurrent=no
23223 fi
23224
23225 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23226       conftest$ac_exeext conftest.$ac_ext
23227      CPPFLAGS="$gt_save_CPPFLAGS"
23228      LIBS="$gt_save_LIBS"
23229 fi
23230 { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
23231 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
23232   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
23233
23234 cat >>confdefs.h <<\_ACEOF
23235 #define HAVE_CFLOCALECOPYCURRENT 1
23236 _ACEOF
23237
23238   fi
23239   INTL_MACOSX_LIBS=
23240   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
23241     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
23242   fi
23243
23244
23245
23246
23247   { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
23248 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
23249     # Check whether --enable-nls was given.
23250 if test "${enable_nls+set}" = set; then
23251   enableval=$enable_nls; USE_NLS=$enableval
23252 else
23253   USE_NLS=yes
23254 fi
23255
23256   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
23257 echo "${ECHO_T}$USE_NLS" >&6; }
23258
23259
23260
23261
23262     BUILD_INCLUDED_LIBINTL=no
23263     USE_INCLUDED_LIBINTL=no
23264
23265   LIBINTL=
23266   LTLIBINTL=
23267   POSUB=
23268
23269     if test "$USE_NLS" = "yes"; then
23270     gt_use_preinstalled_gnugettext=no
23271
23272       { echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
23273 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6; }
23274
23275 # Check whether --with-included-gettext was given.
23276 if test "${with_included_gettext+set}" = set; then
23277   withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
23278 else
23279   nls_cv_force_use_gnu_gettext=no
23280 fi
23281
23282       { echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
23283 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6; }
23284
23285       nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
23286       if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
23287
23288
23289
23290
23291
23292
23293         { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
23294 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
23295 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
23296   echo $ECHO_N "(cached) $ECHO_C" >&6
23297 else
23298   cat >conftest.$ac_ext <<_ACEOF
23299 /* confdefs.h.  */
23300 _ACEOF
23301 cat confdefs.h >>conftest.$ac_ext
23302 cat >>conftest.$ac_ext <<_ACEOF
23303 /* end confdefs.h.  */
23304 #include <libintl.h>
23305 extern int _nl_msg_cat_cntr;
23306 extern int *_nl_domain_bindings;
23307 int
23308 main ()
23309 {
23310 bindtextdomain ("", "");
23311 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
23312   ;
23313   return 0;
23314 }
23315 _ACEOF
23316 rm -f conftest.$ac_objext conftest$ac_exeext
23317 if { (ac_try="$ac_link"
23318 case "(($ac_try" in
23319   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23320   *) ac_try_echo=$ac_try;;
23321 esac
23322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23323   (eval "$ac_link") 2>conftest.er1
23324   ac_status=$?
23325   grep -v '^ *+' conftest.er1 >conftest.err
23326   rm -f conftest.er1
23327   cat conftest.err >&5
23328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23329   (exit $ac_status); } && {
23330          test -z "$ac_c_werror_flag" ||
23331          test ! -s conftest.err
23332        } && test -s conftest$ac_exeext &&
23333        $as_test_x conftest$ac_exeext; then
23334   gt_cv_func_gnugettext1_libc=yes
23335 else
23336   echo "$as_me: failed program was:" >&5
23337 sed 's/^/| /' conftest.$ac_ext >&5
23338
23339         gt_cv_func_gnugettext1_libc=no
23340 fi
23341
23342 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23343       conftest$ac_exeext conftest.$ac_ext
23344 fi
23345 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
23346 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
23347
23348         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
23349
23350
23351
23352     use_additional=yes
23353
23354   acl_save_prefix="$prefix"
23355   prefix="$acl_final_prefix"
23356   acl_save_exec_prefix="$exec_prefix"
23357   exec_prefix="$acl_final_exec_prefix"
23358
23359     eval additional_includedir=\"$includedir\"
23360     eval additional_libdir=\"$libdir\"
23361
23362   exec_prefix="$acl_save_exec_prefix"
23363   prefix="$acl_save_prefix"
23364
23365
23366 # Check whether --with-libintl-prefix was given.
23367 if test "${with_libintl_prefix+set}" = set; then
23368   withval=$with_libintl_prefix;
23369     if test "X$withval" = "Xno"; then
23370       use_additional=no
23371     else
23372       if test "X$withval" = "X"; then
23373
23374   acl_save_prefix="$prefix"
23375   prefix="$acl_final_prefix"
23376   acl_save_exec_prefix="$exec_prefix"
23377   exec_prefix="$acl_final_exec_prefix"
23378
23379           eval additional_includedir=\"$includedir\"
23380           eval additional_libdir=\"$libdir\"
23381
23382   exec_prefix="$acl_save_exec_prefix"
23383   prefix="$acl_save_prefix"
23384
23385       else
23386         additional_includedir="$withval/include"
23387         additional_libdir="$withval/lib"
23388       fi
23389     fi
23390
23391 fi
23392
23393       LIBINTL=
23394   LTLIBINTL=
23395   INCINTL=
23396   rpathdirs=
23397   ltrpathdirs=
23398   names_already_handled=
23399   names_next_round='intl '
23400   while test -n "$names_next_round"; do
23401     names_this_round="$names_next_round"
23402     names_next_round=
23403     for name in $names_this_round; do
23404       already_handled=
23405       for n in $names_already_handled; do
23406         if test "$n" = "$name"; then
23407           already_handled=yes
23408           break
23409         fi
23410       done
23411       if test -z "$already_handled"; then
23412         names_already_handled="$names_already_handled $name"
23413                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
23414         eval value=\"\$HAVE_LIB$uppername\"
23415         if test -n "$value"; then
23416           if test "$value" = yes; then
23417             eval value=\"\$LIB$uppername\"
23418             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
23419             eval value=\"\$LTLIB$uppername\"
23420             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
23421           else
23422                                     :
23423           fi
23424         else
23425                               found_dir=
23426           found_la=
23427           found_so=
23428           found_a=
23429           if test $use_additional = yes; then
23430             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
23431               found_dir="$additional_libdir"
23432               found_so="$additional_libdir/lib$name.$shlibext"
23433               if test -f "$additional_libdir/lib$name.la"; then
23434                 found_la="$additional_libdir/lib$name.la"
23435               fi
23436             else
23437               if test -f "$additional_libdir/lib$name.$libext"; then
23438                 found_dir="$additional_libdir"
23439                 found_a="$additional_libdir/lib$name.$libext"
23440                 if test -f "$additional_libdir/lib$name.la"; then
23441                   found_la="$additional_libdir/lib$name.la"
23442                 fi
23443               fi
23444             fi
23445           fi
23446           if test "X$found_dir" = "X"; then
23447             for x in $LDFLAGS $LTLIBINTL; do
23448
23449   acl_save_prefix="$prefix"
23450   prefix="$acl_final_prefix"
23451   acl_save_exec_prefix="$exec_prefix"
23452   exec_prefix="$acl_final_exec_prefix"
23453   eval x=\"$x\"
23454   exec_prefix="$acl_save_exec_prefix"
23455   prefix="$acl_save_prefix"
23456
23457               case "$x" in
23458                 -L*)
23459                   dir=`echo "X$x" | sed -e 's/^X-L//'`
23460                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
23461                     found_dir="$dir"
23462                     found_so="$dir/lib$name.$shlibext"
23463                     if test -f "$dir/lib$name.la"; then
23464                       found_la="$dir/lib$name.la"
23465                     fi
23466                   else
23467                     if test -f "$dir/lib$name.$libext"; then
23468                       found_dir="$dir"
23469                       found_a="$dir/lib$name.$libext"
23470                       if test -f "$dir/lib$name.la"; then
23471                         found_la="$dir/lib$name.la"
23472                       fi
23473                     fi
23474                   fi
23475                   ;;
23476               esac
23477               if test "X$found_dir" != "X"; then
23478                 break
23479               fi
23480             done
23481           fi
23482           if test "X$found_dir" != "X"; then
23483                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
23484             if test "X$found_so" != "X"; then
23485                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
23486                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23487               else
23488                                                                                 haveit=
23489                 for x in $ltrpathdirs; do
23490                   if test "X$x" = "X$found_dir"; then
23491                     haveit=yes
23492                     break
23493                   fi
23494                 done
23495                 if test -z "$haveit"; then
23496                   ltrpathdirs="$ltrpathdirs $found_dir"
23497                 fi
23498                                 if test "$hardcode_direct" = yes; then
23499                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23500                 else
23501                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
23502                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23503                                                             haveit=
23504                     for x in $rpathdirs; do
23505                       if test "X$x" = "X$found_dir"; then
23506                         haveit=yes
23507                         break
23508                       fi
23509                     done
23510                     if test -z "$haveit"; then
23511                       rpathdirs="$rpathdirs $found_dir"
23512                     fi
23513                   else
23514                                                                                 haveit=
23515                     for x in $LDFLAGS $LIBINTL; do
23516
23517   acl_save_prefix="$prefix"
23518   prefix="$acl_final_prefix"
23519   acl_save_exec_prefix="$exec_prefix"
23520   exec_prefix="$acl_final_exec_prefix"
23521   eval x=\"$x\"
23522   exec_prefix="$acl_save_exec_prefix"
23523   prefix="$acl_save_prefix"
23524
23525                       if test "X$x" = "X-L$found_dir"; then
23526                         haveit=yes
23527                         break
23528                       fi
23529                     done
23530                     if test -z "$haveit"; then
23531                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
23532                     fi
23533                     if test "$hardcode_minus_L" != no; then
23534                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23535                     else
23536                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
23537                     fi
23538                   fi
23539                 fi
23540               fi
23541             else
23542               if test "X$found_a" != "X"; then
23543                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
23544               else
23545                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
23546               fi
23547             fi
23548                         additional_includedir=
23549             case "$found_dir" in
23550               */lib | */lib/)
23551                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
23552                 additional_includedir="$basedir/include"
23553                 ;;
23554             esac
23555             if test "X$additional_includedir" != "X"; then
23556                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
23557                 haveit=
23558                 if test "X$additional_includedir" = "X/usr/local/include"; then
23559                   if test -n "$GCC"; then
23560                     case $host_os in
23561                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
23562                     esac
23563                   fi
23564                 fi
23565                 if test -z "$haveit"; then
23566                   for x in $CPPFLAGS $INCINTL; do
23567
23568   acl_save_prefix="$prefix"
23569   prefix="$acl_final_prefix"
23570   acl_save_exec_prefix="$exec_prefix"
23571   exec_prefix="$acl_final_exec_prefix"
23572   eval x=\"$x\"
23573   exec_prefix="$acl_save_exec_prefix"
23574   prefix="$acl_save_prefix"
23575
23576                     if test "X$x" = "X-I$additional_includedir"; then
23577                       haveit=yes
23578                       break
23579                     fi
23580                   done
23581                   if test -z "$haveit"; then
23582                     if test -d "$additional_includedir"; then
23583                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
23584                     fi
23585                   fi
23586                 fi
23587               fi
23588             fi
23589                         if test -n "$found_la"; then
23590                                                         save_libdir="$libdir"
23591               case "$found_la" in
23592                 */* | *\\*) . "$found_la" ;;
23593                 *) . "./$found_la" ;;
23594               esac
23595               libdir="$save_libdir"
23596                             for dep in $dependency_libs; do
23597                 case "$dep" in
23598                   -L*)
23599                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
23600                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
23601                       haveit=
23602                       if test "X$additional_libdir" = "X/usr/local/lib"; then
23603                         if test -n "$GCC"; then
23604                           case $host_os in
23605                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
23606                           esac
23607                         fi
23608                       fi
23609                       if test -z "$haveit"; then
23610                         haveit=
23611                         for x in $LDFLAGS $LIBINTL; do
23612
23613   acl_save_prefix="$prefix"
23614   prefix="$acl_final_prefix"
23615   acl_save_exec_prefix="$exec_prefix"
23616   exec_prefix="$acl_final_exec_prefix"
23617   eval x=\"$x\"
23618   exec_prefix="$acl_save_exec_prefix"
23619   prefix="$acl_save_prefix"
23620
23621                           if test "X$x" = "X-L$additional_libdir"; then
23622                             haveit=yes
23623                             break
23624                           fi
23625                         done
23626                         if test -z "$haveit"; then
23627                           if test -d "$additional_libdir"; then
23628                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
23629                           fi
23630                         fi
23631                         haveit=
23632                         for x in $LDFLAGS $LTLIBINTL; do
23633
23634   acl_save_prefix="$prefix"
23635   prefix="$acl_final_prefix"
23636   acl_save_exec_prefix="$exec_prefix"
23637   exec_prefix="$acl_final_exec_prefix"
23638   eval x=\"$x\"
23639   exec_prefix="$acl_save_exec_prefix"
23640   prefix="$acl_save_prefix"
23641
23642                           if test "X$x" = "X-L$additional_libdir"; then
23643                             haveit=yes
23644                             break
23645                           fi
23646                         done
23647                         if test -z "$haveit"; then
23648                           if test -d "$additional_libdir"; then
23649                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
23650                           fi
23651                         fi
23652                       fi
23653                     fi
23654                     ;;
23655                   -R*)
23656                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
23657                     if test "$enable_rpath" != no; then
23658                                                                   haveit=
23659                       for x in $rpathdirs; do
23660                         if test "X$x" = "X$dir"; then
23661                           haveit=yes
23662                           break
23663                         fi
23664                       done
23665                       if test -z "$haveit"; then
23666                         rpathdirs="$rpathdirs $dir"
23667                       fi
23668                                                                   haveit=
23669                       for x in $ltrpathdirs; do
23670                         if test "X$x" = "X$dir"; then
23671                           haveit=yes
23672                           break
23673                         fi
23674                       done
23675                       if test -z "$haveit"; then
23676                         ltrpathdirs="$ltrpathdirs $dir"
23677                       fi
23678                     fi
23679                     ;;
23680                   -l*)
23681                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
23682                     ;;
23683                   *.la)
23684                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
23685                     ;;
23686                   *)
23687                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
23688                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
23689                     ;;
23690                 esac
23691               done
23692             fi
23693           else
23694                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
23695             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
23696           fi
23697         fi
23698       fi
23699     done
23700   done
23701   if test "X$rpathdirs" != "X"; then
23702     if test -n "$hardcode_libdir_separator"; then
23703                         alldirs=
23704       for found_dir in $rpathdirs; do
23705         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
23706       done
23707             acl_save_libdir="$libdir"
23708       libdir="$alldirs"
23709       eval flag=\"$hardcode_libdir_flag_spec\"
23710       libdir="$acl_save_libdir"
23711       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
23712     else
23713             for found_dir in $rpathdirs; do
23714         acl_save_libdir="$libdir"
23715         libdir="$found_dir"
23716         eval flag=\"$hardcode_libdir_flag_spec\"
23717         libdir="$acl_save_libdir"
23718         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
23719       done
23720     fi
23721   fi
23722   if test "X$ltrpathdirs" != "X"; then
23723             for found_dir in $ltrpathdirs; do
23724       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
23725     done
23726   fi
23727
23728           { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
23729 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
23730 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
23731   echo $ECHO_N "(cached) $ECHO_C" >&6
23732 else
23733   gt_save_CPPFLAGS="$CPPFLAGS"
23734             CPPFLAGS="$CPPFLAGS $INCINTL"
23735             gt_save_LIBS="$LIBS"
23736             LIBS="$LIBS $LIBINTL"
23737                         cat >conftest.$ac_ext <<_ACEOF
23738 /* confdefs.h.  */
23739 _ACEOF
23740 cat confdefs.h >>conftest.$ac_ext
23741 cat >>conftest.$ac_ext <<_ACEOF
23742 /* end confdefs.h.  */
23743 #include <libintl.h>
23744 extern int _nl_msg_cat_cntr;
23745 extern
23746 #ifdef __cplusplus
23747 "C"
23748 #endif
23749 const char *_nl_expand_alias (const char *);
23750 int
23751 main ()
23752 {
23753 bindtextdomain ("", "");
23754 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
23755   ;
23756   return 0;
23757 }
23758 _ACEOF
23759 rm -f conftest.$ac_objext conftest$ac_exeext
23760 if { (ac_try="$ac_link"
23761 case "(($ac_try" in
23762   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23763   *) ac_try_echo=$ac_try;;
23764 esac
23765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23766   (eval "$ac_link") 2>conftest.er1
23767   ac_status=$?
23768   grep -v '^ *+' conftest.er1 >conftest.err
23769   rm -f conftest.er1
23770   cat conftest.err >&5
23771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23772   (exit $ac_status); } && {
23773          test -z "$ac_c_werror_flag" ||
23774          test ! -s conftest.err
23775        } && test -s conftest$ac_exeext &&
23776        $as_test_x conftest$ac_exeext; then
23777   gt_cv_func_gnugettext1_libintl=yes
23778 else
23779   echo "$as_me: failed program was:" >&5
23780 sed 's/^/| /' conftest.$ac_ext >&5
23781
23782         gt_cv_func_gnugettext1_libintl=no
23783 fi
23784
23785 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23786       conftest$ac_exeext conftest.$ac_ext
23787                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
23788               LIBS="$LIBS $LIBICONV"
23789               cat >conftest.$ac_ext <<_ACEOF
23790 /* confdefs.h.  */
23791 _ACEOF
23792 cat confdefs.h >>conftest.$ac_ext
23793 cat >>conftest.$ac_ext <<_ACEOF
23794 /* end confdefs.h.  */
23795 #include <libintl.h>
23796 extern int _nl_msg_cat_cntr;
23797 extern
23798 #ifdef __cplusplus
23799 "C"
23800 #endif
23801 const char *_nl_expand_alias (const char *);
23802 int
23803 main ()
23804 {
23805 bindtextdomain ("", "");
23806 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
23807   ;
23808   return 0;
23809 }
23810 _ACEOF
23811 rm -f conftest.$ac_objext conftest$ac_exeext
23812 if { (ac_try="$ac_link"
23813 case "(($ac_try" in
23814   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23815   *) ac_try_echo=$ac_try;;
23816 esac
23817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23818   (eval "$ac_link") 2>conftest.er1
23819   ac_status=$?
23820   grep -v '^ *+' conftest.er1 >conftest.err
23821   rm -f conftest.er1
23822   cat conftest.err >&5
23823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23824   (exit $ac_status); } && {
23825          test -z "$ac_c_werror_flag" ||
23826          test ! -s conftest.err
23827        } && test -s conftest$ac_exeext &&
23828        $as_test_x conftest$ac_exeext; then
23829   LIBINTL="$LIBINTL $LIBICONV"
23830                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
23831                 gt_cv_func_gnugettext1_libintl=yes
23832
23833 else
23834   echo "$as_me: failed program was:" >&5
23835 sed 's/^/| /' conftest.$ac_ext >&5
23836
23837
23838 fi
23839
23840 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23841       conftest$ac_exeext conftest.$ac_ext
23842             fi
23843             CPPFLAGS="$gt_save_CPPFLAGS"
23844             LIBS="$gt_save_LIBS"
23845 fi
23846 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
23847 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
23848         fi
23849
23850                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
23851            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
23852                 && test "$PACKAGE" != gettext-runtime \
23853                 && test "$PACKAGE" != gettext-tools; }; then
23854           gt_use_preinstalled_gnugettext=yes
23855         else
23856                     LIBINTL=
23857           LTLIBINTL=
23858           INCINTL=
23859         fi
23860
23861
23862         if test "$gt_use_preinstalled_gnugettext" != "yes"; then
23863                               nls_cv_use_gnu_gettext=yes
23864         fi
23865       fi
23866
23867       if test "$nls_cv_use_gnu_gettext" = "yes"; then
23868                 BUILD_INCLUDED_LIBINTL=yes
23869         USE_INCLUDED_LIBINTL=yes
23870         LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
23871         LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
23872         LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
23873       fi
23874
23875       CATOBJEXT=
23876       if test "$gt_use_preinstalled_gnugettext" = "yes" \
23877          || test "$nls_cv_use_gnu_gettext" = "yes"; then
23878                 CATOBJEXT=.gmo
23879       fi
23880
23881
23882     if test -n "$INTL_MACOSX_LIBS"; then
23883       if test "$gt_use_preinstalled_gnugettext" = "yes" \
23884          || test "$nls_cv_use_gnu_gettext" = "yes"; then
23885                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
23886         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
23887       fi
23888     fi
23889
23890     if test "$gt_use_preinstalled_gnugettext" = "yes" \
23891        || test "$nls_cv_use_gnu_gettext" = "yes"; then
23892
23893 cat >>confdefs.h <<\_ACEOF
23894 #define ENABLE_NLS 1
23895 _ACEOF
23896
23897     else
23898       USE_NLS=no
23899     fi
23900   fi
23901
23902   { echo "$as_me:$LINENO: checking whether to use NLS" >&5
23903 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
23904   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
23905 echo "${ECHO_T}$USE_NLS" >&6; }
23906   if test "$USE_NLS" = "yes"; then
23907     { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
23908 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
23909     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
23910       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
23911         gt_source="external libintl"
23912       else
23913         gt_source="libc"
23914       fi
23915     else
23916       gt_source="included intl directory"
23917     fi
23918     { echo "$as_me:$LINENO: result: $gt_source" >&5
23919 echo "${ECHO_T}$gt_source" >&6; }
23920   fi
23921
23922   if test "$USE_NLS" = "yes"; then
23923
23924     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
23925       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
23926         { echo "$as_me:$LINENO: checking how to link with libintl" >&5
23927 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
23928         { echo "$as_me:$LINENO: result: $LIBINTL" >&5
23929 echo "${ECHO_T}$LIBINTL" >&6; }
23930
23931   for element in $INCINTL; do
23932     haveit=
23933     for x in $CPPFLAGS; do
23934
23935   acl_save_prefix="$prefix"
23936   prefix="$acl_final_prefix"
23937   acl_save_exec_prefix="$exec_prefix"
23938   exec_prefix="$acl_final_exec_prefix"
23939   eval x=\"$x\"
23940   exec_prefix="$acl_save_exec_prefix"
23941   prefix="$acl_save_prefix"
23942
23943       if test "X$x" = "X$element"; then
23944         haveit=yes
23945         break
23946       fi
23947     done
23948     if test -z "$haveit"; then
23949       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
23950     fi
23951   done
23952
23953       fi
23954
23955
23956 cat >>confdefs.h <<\_ACEOF
23957 #define HAVE_GETTEXT 1
23958 _ACEOF
23959
23960
23961 cat >>confdefs.h <<\_ACEOF
23962 #define HAVE_DCGETTEXT 1
23963 _ACEOF
23964
23965     fi
23966
23967         POSUB=po
23968   fi
23969
23970
23971             if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
23972       BUILD_INCLUDED_LIBINTL=yes
23973     fi
23974
23975
23976
23977
23978
23979         nls_cv_header_intl=
23980     nls_cv_header_libgt=
23981
23982         DATADIRNAME=share
23983
23984
23985         INSTOBJEXT=.mo
23986
23987
23988         GENCAT=gencat
23989
23990
23991         INTLOBJS=
23992     if test "$USE_INCLUDED_LIBINTL" = yes; then
23993       INTLOBJS="\$(GETTOBJS)"
23994     fi
23995
23996
23997         INTL_LIBTOOL_SUFFIX_PREFIX=
23998
23999
24000
24001     INTLLIBS="$LIBINTL"
24002
24003
24004
24005
24006
24007
24008 fi
24009
24010 support_mysql=no
24011 support_sqlite=no
24012 support_sqlite3=no
24013 support_postgresql=no
24014 support_ingres=no
24015 support_dbi=no
24016 support_smartalloc=yes
24017 support_readline=yes
24018 support_conio=yes
24019 support_gnome=no
24020 support_bat=no
24021 support_wx_console=no
24022 support_tray_monitor=no
24023 support_tls=no
24024 support_crypto=no
24025 gnome_version=
24026 wx_version=
24027 support_static_tools=no
24028 support_static_fd=no
24029 support_static_sd=no
24030 support_static_dir=no
24031 support_static_cons=no
24032 support_python=no
24033 build_client_only=no
24034 build_dird=yes
24035 build_stored=yes
24036 cats=
24037 db_type=Internal
24038 support_lockmgr=no
24039 DB_TYPE=bdb
24040
24041
24042 # Check whether --enable-gnome was given.
24043 if test "${enable_gnome+set}" = set; then
24044   enableval=$enable_gnome;
24045        if test x$enableval = xyes; then
24046           support_gnome=yes
24047        fi
24048
24049
24050 fi
24051
24052
24053 GNOME_DIR=
24054 if test x$support_gnome = xyes; then
24055    { { echo "$as_me:$LINENO: error: bgnome-console no longer supported" >&5
24056 echo "$as_me: error: bgnome-console no longer supported" >&2;}
24057    { (exit 1); exit 1; }; }
24058    { { echo "$as_me:$LINENO: error: --enable-gnome option no longer supported" >&5
24059 echo "$as_me: error: --enable-gnome option no longer supported" >&2;}
24060    { (exit 1); exit 1; }; }
24061 fi
24062 # AC_SUBST(GNOME_DIR)
24063
24064 # Check whether --enable-bat was given.
24065 if test "${enable_bat+set}" = set; then
24066   enableval=$enable_bat;
24067        if test x$enableval = xyes; then
24068
24069 cat >>confdefs.h <<\_ACEOF
24070 #define HAVE_BAT 1
24071 _ACEOF
24072
24073           support_bat=yes
24074        fi
24075
24076
24077 fi
24078
24079
24080 BAT_DIR=
24081 if test x$support_bat = xyes; then
24082    abc=`$PKGCONFIG --atleast-version=4.2 QtGui`
24083    pkg=$?
24084    if test $pkg = 0; then
24085       BAT_DIR=src/qt-console
24086    else
24087       { { echo "$as_me:$LINENO: error: Unable to find Qt4 installation needed by bat" >&5
24088 echo "$as_me: error: Unable to find Qt4 installation needed by bat" >&2;}
24089    { (exit 1); exit 1; }; }
24090    fi
24091 fi
24092
24093 got_qwt=no
24094 QWT_INC=
24095 QWT_LDFLAGS=
24096 QWT_LIB=
24097 QWT=
24098 no_qwt=no
24099
24100
24101
24102
24103
24104
24105
24106
24107 # Check whether --enable-bwx-console was given.
24108 if test "${enable_bwx_console+set}" = set; then
24109   enableval=$enable_bwx_console;
24110        if test x$enableval = xyes; then
24111           support_wx_console=yes
24112        fi
24113
24114
24115 fi
24116
24117
24118 WX_DIR=
24119 if test x$support_wx_console = xyes; then
24120    abc=`$WXCONFIG $WXFLAGS --cppflags`
24121    pkg=$?
24122    if test $pkg = 0; then
24123       wx_version="wxWidgets `$WXCONFIG $WXFLAGS --release`"
24124       WXCONS_CPPFLAGS=`$WXCONFIG $WXFLAGS --cppflags`
24125       WXCONS_LDFLAGS=`$WXCONFIG $WXFLAGS --libs`
24126
24127
24128
24129       WX_DIR="src/wx-console"
24130    else
24131       echo " "
24132       echo "wx-config program not found. bwx-console disabled."
24133       echo " "
24134       support_wx_console=no
24135    fi
24136 fi
24137
24138
24139 # Check whether --enable-tray-monitor was given.
24140 if test "${enable_tray_monitor+set}" = set; then
24141   enableval=$enable_tray_monitor;
24142        if test x$enableval = xyes; then
24143           support_tray_monitor=yes
24144        fi
24145
24146
24147 fi
24148
24149
24150 TRAY_MONITOR_DIR=
24151 if test x$support_tray_monitor = xyes; then
24152    abc=`$PKGCONFIG --exists gtk+-2.0`
24153    pkg=$?
24154    if test $pkg = 0; then
24155       TRAY_MONITOR_CPPFLAGS=`$PKGCONFIG --cflags gtk+-2.0`
24156       TRAY_MONITOR_LDFLAGS=`$PKGCONFIG --libs gtk+-2.0`
24157
24158
24159       TRAY_MONITOR_DIR=src/tray-monitor
24160       abc=`$PKGCONFIG --atleast-version=2.4 gtk+-2.0`
24161       pkg=$?
24162       if test $pkg = 0; then
24163
24164 cat >>confdefs.h <<\_ACEOF
24165 #define HAVE_GTK_2_4 1
24166 _ACEOF
24167
24168       fi
24169    fi
24170 fi
24171
24172
24173 # Check whether --enable-smartalloc was given.
24174 if test "${enable_smartalloc+set}" = set; then
24175   enableval=$enable_smartalloc;
24176        if test x$enableval = xno; then
24177           support_smartalloc=no
24178        fi
24179
24180
24181 fi
24182
24183
24184 if test x$support_smartalloc = xyes; then
24185
24186 cat >>confdefs.h <<\_ACEOF
24187 #define SMARTALLOC 1
24188 _ACEOF
24189
24190 fi
24191
24192 # Check whether --enable-lockmgr was given.
24193 if test "${enable_lockmgr+set}" = set; then
24194   enableval=$enable_lockmgr;
24195        if test x$enableval = xyes; then
24196           support_lockmgr=yes
24197        fi
24198
24199
24200 fi
24201
24202
24203 if test x$support_lockmgr = xyes; then
24204
24205 cat >>confdefs.h <<\_ACEOF
24206 #define _USE_LOCKMGR 1
24207 _ACEOF
24208
24209 fi
24210
24211
24212 # Check whether --enable-static-tools was given.
24213 if test "${enable_static_tools+set}" = set; then
24214   enableval=$enable_static_tools;
24215        if test x$enableval = xyes; then
24216           if test x$use_libtool = xyes; then
24217              { { echo "$as_me:$LINENO: error: Libtool is enabled, not compatible with static tools,
24218   please rerun configure with --disable-libtool" >&5
24219 echo "$as_me: error: Libtool is enabled, not compatible with static tools,
24220   please rerun configure with --disable-libtool" >&2;}
24221    { (exit 1); exit 1; }; }
24222           fi
24223           support_static_tools=yes
24224        fi
24225
24226
24227 fi
24228
24229
24230 TTOOL_LDFLAGS=
24231 if test x$support_static_tools = xyes; then
24232    TTOOL_LDFLAGS="-static"
24233 fi
24234
24235
24236 # Check whether --enable-static-fd was given.
24237 if test "${enable_static_fd+set}" = set; then
24238   enableval=$enable_static_fd;
24239        if test x$enableval = xyes; then
24240           if test x$use_libtool = xyes; then
24241              { { echo "$as_me:$LINENO: error: Libtool is enabled, not compatible with static tools,
24242   please rerun configure with --disable-libtool" >&5
24243 echo "$as_me: error: Libtool is enabled, not compatible with static tools,
24244   please rerun configure with --disable-libtool" >&2;}
24245    { (exit 1); exit 1; }; }
24246           fi
24247           support_static_fd=yes
24248        fi
24249
24250
24251 fi
24252
24253
24254 STATIC_FD=
24255 if test x$support_static_fd = xyes; then
24256    STATIC_FD="static-bacula-fd"
24257 fi
24258
24259
24260 # Check whether --enable-static-sd was given.
24261 if test "${enable_static_sd+set}" = set; then
24262   enableval=$enable_static_sd;
24263        if test x$enableval = xyes; then
24264           if test x$use_libtool = xyes; then
24265              { { echo "$as_me:$LINENO: error: Libtool is enabled, not compatible with static tools,
24266   please rerun configure with --disable-libtool" >&5
24267 echo "$as_me: error: Libtool is enabled, not compatible with static tools,
24268   please rerun configure with --disable-libtool" >&2;}
24269    { (exit 1); exit 1; }; }
24270           fi
24271           support_static_sd=yes
24272        fi
24273
24274
24275 fi
24276
24277
24278 STATIC_SD=
24279 if test x$support_static_sd = xyes; then
24280    STATIC_SD="static-bacula-sd"
24281 fi
24282
24283
24284 # Check whether --enable-static-dir was given.
24285 if test "${enable_static_dir+set}" = set; then
24286   enableval=$enable_static_dir;
24287        if test x$enableval = xyes; then
24288           if test x$use_libtool = xyes; then
24289              { { echo "$as_me:$LINENO: error: Libtool is enabled, not compatible with static tools,
24290   please rerun configure with --disable-libtool" >&5
24291 echo "$as_me: error: Libtool is enabled, not compatible with static tools,
24292   please rerun configure with --disable-libtool" >&2;}
24293    { (exit 1); exit 1; }; }
24294           fi
24295           support_static_dir=yes
24296        fi
24297
24298
24299 fi
24300
24301
24302 STATIC_DIR=
24303 if test x$support_static_dir = xyes; then
24304    STATIC_DIR="static-bacula-dir"
24305 fi
24306
24307
24308 # Check whether --enable-static-cons was given.
24309 if test "${enable_static_cons+set}" = set; then
24310   enableval=$enable_static_cons;
24311        if test x$enableval = xyes; then
24312           if test x$use_libtool = xyes; then
24313              { { echo "$as_me:$LINENO: error: Libtool is enabled, not compatible with static tools,
24314   please rerun configure with --disable-libtool" >&5
24315 echo "$as_me: error: Libtool is enabled, not compatible with static tools,
24316   please rerun configure with --disable-libtool" >&2;}
24317    { (exit 1); exit 1; }; }
24318           fi
24319           support_static_cons=yes
24320        fi
24321
24322
24323 fi
24324
24325
24326 STATIC_CONS=
24327 STATIC_GNOME_CONS=
24328 STATIC_WX_CONS=
24329 if test x$support_static_cons = xyes; then
24330    STATIC_CONS="static-bconsole"
24331    STATIC_GNOME_CONS="static-bgnome-console"
24332    STATIC_WX_CONS="static-bwx-console"
24333 fi
24334
24335
24336
24337
24338 # Check whether --enable-client-only was given.
24339 if test "${enable_client_only+set}" = set; then
24340   enableval=$enable_client_only;
24341        if test x$enableval = xyes; then
24342           build_client_only=yes
24343           db_type=None
24344           DB_TYPE=none
24345        fi
24346
24347
24348 fi
24349
24350 if test x$build_client_only = xno; then
24351    ALL_DIRS="subdirs"
24352 else
24353    ALL_DIRS=""
24354 fi
24355
24356
24357 # Check whether --enable-build-dird was given.
24358 if test "${enable_build_dird+set}" = set; then
24359   enableval=$enable_build_dird;
24360        if test x$enableval = xno; then
24361           build_dird=no
24362        fi
24363
24364
24365 fi
24366
24367 if test x$build_dird = xyes; then
24368    DIRD_DIR="src/dird"
24369    DIR_TOOLS="DIRTOOLS"
24370 else
24371    DIRD_DIR=""
24372    DIR_TOOLS="NODIRTOOLS"
24373 fi
24374
24375
24376
24377 # Check whether --enable-build-stored was given.
24378 if test "${enable_build_stored+set}" = set; then
24379   enableval=$enable_build_stored;
24380       if test x$enableval = xno; then
24381          build_stored=no
24382       fi
24383
24384
24385 fi
24386
24387 if test x$build_stored = xyes; then
24388    STORED_DIR="src/stored"
24389 else
24390    STORED_DIR=""
24391 fi
24392
24393
24394 # Check whether --enable-conio was given.
24395 if test "${enable_conio+set}" = set; then
24396   enableval=$enable_conio;
24397        if test x$enableval = xno; then
24398           support_conio=no
24399        fi
24400
24401
24402 fi
24403
24404
24405
24406 support_ipv6=yes
24407 # Check whether --enable-ipv6 was given.
24408 if test "${enable_ipv6+set}" = set; then
24409   enableval=$enable_ipv6;
24410        if test x$enableval = xno; then
24411           support_ipv6=no
24412        fi
24413
24414
24415 fi
24416
24417
24418 if test x$support_ipv6 = xyes; then
24419     cat >conftest.$ac_ext <<_ACEOF
24420 /* confdefs.h.  */
24421 _ACEOF
24422 cat confdefs.h >>conftest.$ac_ext
24423 cat >>conftest.$ac_ext <<_ACEOF
24424 /* end confdefs.h.  */
24425  #include <sys/types.h>
24426 #include <sys/socket.h>
24427 #include <netinet/in.h>
24428 int
24429 main ()
24430 {
24431 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] = 0;
24432   ;
24433   return 0;
24434 }
24435 _ACEOF
24436 rm -f conftest.$ac_objext conftest$ac_exeext
24437 if { (ac_try="$ac_link"
24438 case "(($ac_try" in
24439   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24440   *) ac_try_echo=$ac_try;;
24441 esac
24442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24443   (eval "$ac_link") 2>conftest.er1
24444   ac_status=$?
24445   grep -v '^ *+' conftest.er1 >conftest.err
24446   rm -f conftest.er1
24447   cat conftest.err >&5
24448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24449   (exit $ac_status); } && {
24450          test -z "$ac_c_werror_flag" ||
24451          test ! -s conftest.err
24452        } && test -s conftest$ac_exeext &&
24453        $as_test_x conftest$ac_exeext; then
24454   support_ipv6=yes
24455 else
24456   echo "$as_me: failed program was:" >&5
24457 sed 's/^/| /' conftest.$ac_ext >&5
24458
24459         support_ipv6=no
24460 fi
24461
24462 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24463       conftest$ac_exeext conftest.$ac_ext
24464 fi
24465
24466 if test x$support_ipv6 = xyes; then
24467
24468 cat >>confdefs.h <<\_ACEOF
24469 #define HAVE_IPV6 1
24470 _ACEOF
24471
24472 fi
24473
24474 TERM_LIB=""
24475 if test "${ac_cv_header_curses_h+set}" = set; then
24476   { echo "$as_me:$LINENO: checking for curses.h" >&5
24477 echo $ECHO_N "checking for curses.h... $ECHO_C" >&6; }
24478 if test "${ac_cv_header_curses_h+set}" = set; then
24479   echo $ECHO_N "(cached) $ECHO_C" >&6
24480 fi
24481 { echo "$as_me:$LINENO: result: $ac_cv_header_curses_h" >&5
24482 echo "${ECHO_T}$ac_cv_header_curses_h" >&6; }
24483 else
24484   # Is the header compilable?
24485 { echo "$as_me:$LINENO: checking curses.h usability" >&5
24486 echo $ECHO_N "checking curses.h usability... $ECHO_C" >&6; }
24487 cat >conftest.$ac_ext <<_ACEOF
24488 /* confdefs.h.  */
24489 _ACEOF
24490 cat confdefs.h >>conftest.$ac_ext
24491 cat >>conftest.$ac_ext <<_ACEOF
24492 /* end confdefs.h.  */
24493 $ac_includes_default
24494 #include <curses.h>
24495 _ACEOF
24496 rm -f conftest.$ac_objext
24497 if { (ac_try="$ac_compile"
24498 case "(($ac_try" in
24499   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24500   *) ac_try_echo=$ac_try;;
24501 esac
24502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24503   (eval "$ac_compile") 2>conftest.er1
24504   ac_status=$?
24505   grep -v '^ *+' conftest.er1 >conftest.err
24506   rm -f conftest.er1
24507   cat conftest.err >&5
24508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24509   (exit $ac_status); } && {
24510          test -z "$ac_c_werror_flag" ||
24511          test ! -s conftest.err
24512        } && test -s conftest.$ac_objext; then
24513   ac_header_compiler=yes
24514 else
24515   echo "$as_me: failed program was:" >&5
24516 sed 's/^/| /' conftest.$ac_ext >&5
24517
24518         ac_header_compiler=no
24519 fi
24520
24521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24522 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24523 echo "${ECHO_T}$ac_header_compiler" >&6; }
24524
24525 # Is the header present?
24526 { echo "$as_me:$LINENO: checking curses.h presence" >&5
24527 echo $ECHO_N "checking curses.h presence... $ECHO_C" >&6; }
24528 cat >conftest.$ac_ext <<_ACEOF
24529 /* confdefs.h.  */
24530 _ACEOF
24531 cat confdefs.h >>conftest.$ac_ext
24532 cat >>conftest.$ac_ext <<_ACEOF
24533 /* end confdefs.h.  */
24534 #include <curses.h>
24535 _ACEOF
24536 if { (ac_try="$ac_cpp conftest.$ac_ext"
24537 case "(($ac_try" in
24538   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24539   *) ac_try_echo=$ac_try;;
24540 esac
24541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24542   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24543   ac_status=$?
24544   grep -v '^ *+' conftest.er1 >conftest.err
24545   rm -f conftest.er1
24546   cat conftest.err >&5
24547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24548   (exit $ac_status); } >/dev/null && {
24549          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24550          test ! -s conftest.err
24551        }; then
24552   ac_header_preproc=yes
24553 else
24554   echo "$as_me: failed program was:" >&5
24555 sed 's/^/| /' conftest.$ac_ext >&5
24556
24557   ac_header_preproc=no
24558 fi
24559
24560 rm -f conftest.err conftest.$ac_ext
24561 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24562 echo "${ECHO_T}$ac_header_preproc" >&6; }
24563
24564 # So?  What about this header?
24565 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24566   yes:no: )
24567     { echo "$as_me:$LINENO: WARNING: curses.h: accepted by the compiler, rejected by the preprocessor!" >&5
24568 echo "$as_me: WARNING: curses.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24569     { echo "$as_me:$LINENO: WARNING: curses.h: proceeding with the compiler's result" >&5
24570 echo "$as_me: WARNING: curses.h: proceeding with the compiler's result" >&2;}
24571     ac_header_preproc=yes
24572     ;;
24573   no:yes:* )
24574     { echo "$as_me:$LINENO: WARNING: curses.h: present but cannot be compiled" >&5
24575 echo "$as_me: WARNING: curses.h: present but cannot be compiled" >&2;}
24576     { echo "$as_me:$LINENO: WARNING: curses.h:     check for missing prerequisite headers?" >&5
24577 echo "$as_me: WARNING: curses.h:     check for missing prerequisite headers?" >&2;}
24578     { echo "$as_me:$LINENO: WARNING: curses.h: see the Autoconf documentation" >&5
24579 echo "$as_me: WARNING: curses.h: see the Autoconf documentation" >&2;}
24580     { echo "$as_me:$LINENO: WARNING: curses.h:     section \"Present But Cannot Be Compiled\"" >&5
24581 echo "$as_me: WARNING: curses.h:     section \"Present But Cannot Be Compiled\"" >&2;}
24582     { echo "$as_me:$LINENO: WARNING: curses.h: proceeding with the preprocessor's result" >&5
24583 echo "$as_me: WARNING: curses.h: proceeding with the preprocessor's result" >&2;}
24584     { echo "$as_me:$LINENO: WARNING: curses.h: in the future, the compiler will take precedence" >&5
24585 echo "$as_me: WARNING: curses.h: in the future, the compiler will take precedence" >&2;}
24586
24587     ;;
24588 esac
24589 { echo "$as_me:$LINENO: checking for curses.h" >&5
24590 echo $ECHO_N "checking for curses.h... $ECHO_C" >&6; }
24591 if test "${ac_cv_header_curses_h+set}" = set; then
24592   echo $ECHO_N "(cached) $ECHO_C" >&6
24593 else
24594   ac_cv_header_curses_h=$ac_header_preproc
24595 fi
24596 { echo "$as_me:$LINENO: result: $ac_cv_header_curses_h" >&5
24597 echo "${ECHO_T}$ac_cv_header_curses_h" >&6; }
24598
24599 fi
24600 if test $ac_cv_header_curses_h = yes; then
24601    { echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
24602 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6; }
24603 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
24604   echo $ECHO_N "(cached) $ECHO_C" >&6
24605 else
24606   ac_check_lib_save_LIBS=$LIBS
24607 LIBS="-lncurses  $LIBS"
24608 cat >conftest.$ac_ext <<_ACEOF
24609 /* confdefs.h.  */
24610 _ACEOF
24611 cat confdefs.h >>conftest.$ac_ext
24612 cat >>conftest.$ac_ext <<_ACEOF
24613 /* end confdefs.h.  */
24614
24615 /* Override any GCC internal prototype to avoid an error.
24616    Use char because int might match the return type of a GCC
24617    builtin and then its argument prototype would still apply.  */
24618 #ifdef __cplusplus
24619 extern "C"
24620 #endif
24621 char tgetent ();
24622 int
24623 main ()
24624 {
24625 return tgetent ();
24626   ;
24627   return 0;
24628 }
24629 _ACEOF
24630 rm -f conftest.$ac_objext conftest$ac_exeext
24631 if { (ac_try="$ac_link"
24632 case "(($ac_try" in
24633   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24634   *) ac_try_echo=$ac_try;;
24635 esac
24636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24637   (eval "$ac_link") 2>conftest.er1
24638   ac_status=$?
24639   grep -v '^ *+' conftest.er1 >conftest.err
24640   rm -f conftest.er1
24641   cat conftest.err >&5
24642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24643   (exit $ac_status); } && {
24644          test -z "$ac_c_werror_flag" ||
24645          test ! -s conftest.err
24646        } && test -s conftest$ac_exeext &&
24647        $as_test_x conftest$ac_exeext; then
24648   ac_cv_lib_ncurses_tgetent=yes
24649 else
24650   echo "$as_me: failed program was:" >&5
24651 sed 's/^/| /' conftest.$ac_ext >&5
24652
24653         ac_cv_lib_ncurses_tgetent=no
24654 fi
24655
24656 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24657       conftest$ac_exeext conftest.$ac_ext
24658 LIBS=$ac_check_lib_save_LIBS
24659 fi
24660 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
24661 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6; }
24662 if test $ac_cv_lib_ncurses_tgetent = yes; then
24663    TERM_LIB="-lncurses"
24664 else
24665    { echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
24666 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6; }
24667 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
24668   echo $ECHO_N "(cached) $ECHO_C" >&6
24669 else
24670   ac_check_lib_save_LIBS=$LIBS
24671 LIBS="-ltermcap  $LIBS"
24672 cat >conftest.$ac_ext <<_ACEOF
24673 /* confdefs.h.  */
24674 _ACEOF
24675 cat confdefs.h >>conftest.$ac_ext
24676 cat >>conftest.$ac_ext <<_ACEOF
24677 /* end confdefs.h.  */
24678
24679 /* Override any GCC internal prototype to avoid an error.
24680    Use char because int might match the return type of a GCC
24681    builtin and then its argument prototype would still apply.  */
24682 #ifdef __cplusplus
24683 extern "C"
24684 #endif
24685 char tgetent ();
24686 int
24687 main ()
24688 {
24689 return tgetent ();
24690   ;
24691   return 0;
24692 }
24693 _ACEOF
24694 rm -f conftest.$ac_objext conftest$ac_exeext
24695 if { (ac_try="$ac_link"
24696 case "(($ac_try" in
24697   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24698   *) ac_try_echo=$ac_try;;
24699 esac
24700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24701   (eval "$ac_link") 2>conftest.er1
24702   ac_status=$?
24703   grep -v '^ *+' conftest.er1 >conftest.err
24704   rm -f conftest.er1
24705   cat conftest.err >&5
24706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24707   (exit $ac_status); } && {
24708          test -z "$ac_c_werror_flag" ||
24709          test ! -s conftest.err
24710        } && test -s conftest$ac_exeext &&
24711        $as_test_x conftest$ac_exeext; then
24712   ac_cv_lib_termcap_tgetent=yes
24713 else
24714   echo "$as_me: failed program was:" >&5
24715 sed 's/^/| /' conftest.$ac_ext >&5
24716
24717         ac_cv_lib_termcap_tgetent=no
24718 fi
24719
24720 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24721       conftest$ac_exeext conftest.$ac_ext
24722 LIBS=$ac_check_lib_save_LIBS
24723 fi
24724 { echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
24725 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6; }
24726 if test $ac_cv_lib_termcap_tgetent = yes; then
24727    TERM_LIB="-ltermcap"
24728 fi
24729
24730
24731 fi
24732
24733
24734 else
24735
24736 for ac_header in curses.h
24737 do
24738 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24739 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24740   { echo "$as_me:$LINENO: checking for $ac_header" >&5
24741 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24742 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24743   echo $ECHO_N "(cached) $ECHO_C" >&6
24744 fi
24745 ac_res=`eval echo '${'$as_ac_Header'}'`
24746                { echo "$as_me:$LINENO: result: $ac_res" >&5
24747 echo "${ECHO_T}$ac_res" >&6; }
24748 else
24749   # Is the header compilable?
24750 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
24751 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
24752 cat >conftest.$ac_ext <<_ACEOF
24753 /* confdefs.h.  */
24754 _ACEOF
24755 cat confdefs.h >>conftest.$ac_ext
24756 cat >>conftest.$ac_ext <<_ACEOF
24757 /* end confdefs.h.  */
24758 $ac_includes_default
24759 #include <$ac_header>
24760 _ACEOF
24761 rm -f conftest.$ac_objext
24762 if { (ac_try="$ac_compile"
24763 case "(($ac_try" in
24764   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24765   *) ac_try_echo=$ac_try;;
24766 esac
24767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24768   (eval "$ac_compile") 2>conftest.er1
24769   ac_status=$?
24770   grep -v '^ *+' conftest.er1 >conftest.err
24771   rm -f conftest.er1
24772   cat conftest.err >&5
24773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24774   (exit $ac_status); } && {
24775          test -z "$ac_c_werror_flag" ||
24776          test ! -s conftest.err
24777        } && test -s conftest.$ac_objext; then
24778   ac_header_compiler=yes
24779 else
24780   echo "$as_me: failed program was:" >&5
24781 sed 's/^/| /' conftest.$ac_ext >&5
24782
24783         ac_header_compiler=no
24784 fi
24785
24786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24787 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24788 echo "${ECHO_T}$ac_header_compiler" >&6; }
24789
24790 # Is the header present?
24791 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
24792 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
24793 cat >conftest.$ac_ext <<_ACEOF
24794 /* confdefs.h.  */
24795 _ACEOF
24796 cat confdefs.h >>conftest.$ac_ext
24797 cat >>conftest.$ac_ext <<_ACEOF
24798 /* end confdefs.h.  */
24799 #include <$ac_header>
24800 _ACEOF
24801 if { (ac_try="$ac_cpp conftest.$ac_ext"
24802 case "(($ac_try" in
24803   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24804   *) ac_try_echo=$ac_try;;
24805 esac
24806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24807   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24808   ac_status=$?
24809   grep -v '^ *+' conftest.er1 >conftest.err
24810   rm -f conftest.er1
24811   cat conftest.err >&5
24812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24813   (exit $ac_status); } >/dev/null && {
24814          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24815          test ! -s conftest.err
24816        }; then
24817   ac_header_preproc=yes
24818 else
24819   echo "$as_me: failed program was:" >&5
24820 sed 's/^/| /' conftest.$ac_ext >&5
24821
24822   ac_header_preproc=no
24823 fi
24824
24825 rm -f conftest.err conftest.$ac_ext
24826 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24827 echo "${ECHO_T}$ac_header_preproc" >&6; }
24828
24829 # So?  What about this header?
24830 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24831   yes:no: )
24832     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24833 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24834     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24835 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24836     ac_header_preproc=yes
24837     ;;
24838   no:yes:* )
24839     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24840 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24841     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
24842 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
24843     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24844 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24845     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
24846 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
24847     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24848 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24849     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24850 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24851
24852     ;;
24853 esac
24854 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24855 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24856 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24857   echo $ECHO_N "(cached) $ECHO_C" >&6
24858 else
24859   eval "$as_ac_Header=\$ac_header_preproc"
24860 fi
24861 ac_res=`eval echo '${'$as_ac_Header'}'`
24862                { echo "$as_me:$LINENO: result: $ac_res" >&5
24863 echo "${ECHO_T}$ac_res" >&6; }
24864
24865 fi
24866 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24867   cat >>confdefs.h <<_ACEOF
24868 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24869 _ACEOF
24870
24871 fi
24872
24873 done
24874
24875      if test "${ac_cv_header_term_h+set}" = set; then
24876   { echo "$as_me:$LINENO: checking for term.h" >&5
24877 echo $ECHO_N "checking for term.h... $ECHO_C" >&6; }
24878 if test "${ac_cv_header_term_h+set}" = set; then
24879   echo $ECHO_N "(cached) $ECHO_C" >&6
24880 fi
24881 { echo "$as_me:$LINENO: result: $ac_cv_header_term_h" >&5
24882 echo "${ECHO_T}$ac_cv_header_term_h" >&6; }
24883 else
24884   # Is the header compilable?
24885 { echo "$as_me:$LINENO: checking term.h usability" >&5
24886 echo $ECHO_N "checking term.h usability... $ECHO_C" >&6; }
24887 cat >conftest.$ac_ext <<_ACEOF
24888 /* confdefs.h.  */
24889 _ACEOF
24890 cat confdefs.h >>conftest.$ac_ext
24891 cat >>conftest.$ac_ext <<_ACEOF
24892 /* end confdefs.h.  */
24893 $ac_includes_default
24894 #include <term.h>
24895 _ACEOF
24896 rm -f conftest.$ac_objext
24897 if { (ac_try="$ac_compile"
24898 case "(($ac_try" in
24899   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24900   *) ac_try_echo=$ac_try;;
24901 esac
24902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24903   (eval "$ac_compile") 2>conftest.er1
24904   ac_status=$?
24905   grep -v '^ *+' conftest.er1 >conftest.err
24906   rm -f conftest.er1
24907   cat conftest.err >&5
24908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24909   (exit $ac_status); } && {
24910          test -z "$ac_c_werror_flag" ||
24911          test ! -s conftest.err
24912        } && test -s conftest.$ac_objext; then
24913   ac_header_compiler=yes
24914 else
24915   echo "$as_me: failed program was:" >&5
24916 sed 's/^/| /' conftest.$ac_ext >&5
24917
24918         ac_header_compiler=no
24919 fi
24920
24921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24922 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24923 echo "${ECHO_T}$ac_header_compiler" >&6; }
24924
24925 # Is the header present?
24926 { echo "$as_me:$LINENO: checking term.h presence" >&5
24927 echo $ECHO_N "checking term.h presence... $ECHO_C" >&6; }
24928 cat >conftest.$ac_ext <<_ACEOF
24929 /* confdefs.h.  */
24930 _ACEOF
24931 cat confdefs.h >>conftest.$ac_ext
24932 cat >>conftest.$ac_ext <<_ACEOF
24933 /* end confdefs.h.  */
24934 #include <term.h>
24935 _ACEOF
24936 if { (ac_try="$ac_cpp conftest.$ac_ext"
24937 case "(($ac_try" in
24938   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24939   *) ac_try_echo=$ac_try;;
24940 esac
24941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24942   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24943   ac_status=$?
24944   grep -v '^ *+' conftest.er1 >conftest.err
24945   rm -f conftest.er1
24946   cat conftest.err >&5
24947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24948   (exit $ac_status); } >/dev/null && {
24949          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24950          test ! -s conftest.err
24951        }; then
24952   ac_header_preproc=yes
24953 else
24954   echo "$as_me: failed program was:" >&5
24955 sed 's/^/| /' conftest.$ac_ext >&5
24956
24957   ac_header_preproc=no
24958 fi
24959
24960 rm -f conftest.err conftest.$ac_ext
24961 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24962 echo "${ECHO_T}$ac_header_preproc" >&6; }
24963
24964 # So?  What about this header?
24965 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24966   yes:no: )
24967     { echo "$as_me:$LINENO: WARNING: term.h: accepted by the compiler, rejected by the preprocessor!" >&5
24968 echo "$as_me: WARNING: term.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24969     { echo "$as_me:$LINENO: WARNING: term.h: proceeding with the compiler's result" >&5
24970 echo "$as_me: WARNING: term.h: proceeding with the compiler's result" >&2;}
24971     ac_header_preproc=yes
24972     ;;
24973   no:yes:* )
24974     { echo "$as_me:$LINENO: WARNING: term.h: present but cannot be compiled" >&5
24975 echo "$as_me: WARNING: term.h: present but cannot be compiled" >&2;}
24976     { echo "$as_me:$LINENO: WARNING: term.h:     check for missing prerequisite headers?" >&5
24977 echo "$as_me: WARNING: term.h:     check for missing prerequisite headers?" >&2;}
24978     { echo "$as_me:$LINENO: WARNING: term.h: see the Autoconf documentation" >&5
24979 echo "$as_me: WARNING: term.h: see the Autoconf documentation" >&2;}
24980     { echo "$as_me:$LINENO: WARNING: term.h:     section \"Present But Cannot Be Compiled\"" >&5
24981 echo "$as_me: WARNING: term.h:     section \"Present But Cannot Be Compiled\"" >&2;}
24982     { echo "$as_me:$LINENO: WARNING: term.h: proceeding with the preprocessor's result" >&5
24983 echo "$as_me: WARNING: term.h: proceeding with the preprocessor's result" >&2;}
24984     { echo "$as_me:$LINENO: WARNING: term.h: in the future, the compiler will take precedence" >&5
24985 echo "$as_me: WARNING: term.h: in the future, the compiler will take precedence" >&2;}
24986
24987     ;;
24988 esac
24989 { echo "$as_me:$LINENO: checking for term.h" >&5
24990 echo $ECHO_N "checking for term.h... $ECHO_C" >&6; }
24991 if test "${ac_cv_header_term_h+set}" = set; then
24992   echo $ECHO_N "(cached) $ECHO_C" >&6
24993 else
24994   ac_cv_header_term_h=$ac_header_preproc
24995 fi
24996 { echo "$as_me:$LINENO: result: $ac_cv_header_term_h" >&5
24997 echo "${ECHO_T}$ac_cv_header_term_h" >&6; }
24998
24999 fi
25000 if test $ac_cv_header_term_h = yes; then
25001    { echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
25002 echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6; }
25003 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
25004   echo $ECHO_N "(cached) $ECHO_C" >&6
25005 else
25006   ac_check_lib_save_LIBS=$LIBS
25007 LIBS="-lcurses  $LIBS"
25008 cat >conftest.$ac_ext <<_ACEOF
25009 /* confdefs.h.  */
25010 _ACEOF
25011 cat confdefs.h >>conftest.$ac_ext
25012 cat >>conftest.$ac_ext <<_ACEOF
25013 /* end confdefs.h.  */
25014
25015 /* Override any GCC internal prototype to avoid an error.
25016    Use char because int might match the return type of a GCC
25017    builtin and then its argument prototype would still apply.  */
25018 #ifdef __cplusplus
25019 extern "C"
25020 #endif
25021 char tgetent ();
25022 int
25023 main ()
25024 {
25025 return tgetent ();
25026   ;
25027   return 0;
25028 }
25029 _ACEOF
25030 rm -f conftest.$ac_objext conftest$ac_exeext
25031 if { (ac_try="$ac_link"
25032 case "(($ac_try" in
25033   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25034   *) ac_try_echo=$ac_try;;
25035 esac
25036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25037   (eval "$ac_link") 2>conftest.er1
25038   ac_status=$?
25039   grep -v '^ *+' conftest.er1 >conftest.err
25040   rm -f conftest.er1
25041   cat conftest.err >&5
25042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25043   (exit $ac_status); } && {
25044          test -z "$ac_c_werror_flag" ||
25045          test ! -s conftest.err
25046        } && test -s conftest$ac_exeext &&
25047        $as_test_x conftest$ac_exeext; then
25048   ac_cv_lib_curses_tgetent=yes
25049 else
25050   echo "$as_me: failed program was:" >&5
25051 sed 's/^/| /' conftest.$ac_ext >&5
25052
25053         ac_cv_lib_curses_tgetent=no
25054 fi
25055
25056 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25057       conftest$ac_exeext conftest.$ac_ext
25058 LIBS=$ac_check_lib_save_LIBS
25059 fi
25060 { echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
25061 echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6; }
25062 if test $ac_cv_lib_curses_tgetent = yes; then
25063    TERM_LIB="-lcurses"
25064 fi
25065
25066
25067 fi
25068
25069
25070
25071 fi
25072
25073
25074
25075
25076 got_conio="no"
25077 if test x$support_conio = xyes; then
25078    if test x$TERM_LIB != x; then
25079       CONS_LIBS=$TERM_LIB
25080       CONS_OBJ="conio.o"
25081       CONS_SRC="conio.c"
25082       got_conio="yes"
25083       support_readline=no
25084
25085 cat >>confdefs.h <<\_ACEOF
25086 #define HAVE_CONIO 1
25087 _ACEOF
25088
25089    else
25090       echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "],
25091    fi
25092 fi
25093
25094
25095 # Check whether --enable-readline was given.
25096 if test "${enable_readline+set}" = set; then
25097   enableval=$enable_readline;
25098        if test x$enableval = xno; then
25099           support_readline=no
25100        fi
25101
25102
25103 fi
25104
25105 if test x$TERM_LIB = x ; then
25106    support_readline=no
25107 fi
25108
25109 got_readline="no"
25110 READLINE_SRC=
25111 if test x$support_readline = xyes; then
25112
25113 # Check whether --with-readline was given.
25114 if test "${with_readline+set}" = set; then
25115   withval=$with_readline;
25116           case "$with_readline" in
25117           no)
25118              :
25119              ;;
25120           yes|*)
25121              if test -f ${with_readline}/readline.h; then
25122                 CONS_INC="-I${with_readline}"
25123                 CONS_LDFLAGS="-L$with_readline"
25124              elif test -f ${with_readline}/include/readline/readline.h; then
25125                 CONS_INC="-I${with_readline}/include/readline"
25126                 CONS_LDFLAGS="-L${with_readline}/lib"
25127                 with_readline="${with_readline}/include/readline"
25128              else
25129                 with_readline="/usr/include/readline"
25130              fi
25131
25132              as_ac_Header=`echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
25133 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25134   { echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
25135 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6; }
25136 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25137   echo $ECHO_N "(cached) $ECHO_C" >&6
25138 fi
25139 ac_res=`eval echo '${'$as_ac_Header'}'`
25140                { echo "$as_me:$LINENO: result: $ac_res" >&5
25141 echo "${ECHO_T}$ac_res" >&6; }
25142 else
25143   # Is the header compilable?
25144 { echo "$as_me:$LINENO: checking ${with_readline}/readline.h usability" >&5
25145 echo $ECHO_N "checking ${with_readline}/readline.h usability... $ECHO_C" >&6; }
25146 cat >conftest.$ac_ext <<_ACEOF
25147 /* confdefs.h.  */
25148 _ACEOF
25149 cat confdefs.h >>conftest.$ac_ext
25150 cat >>conftest.$ac_ext <<_ACEOF
25151 /* end confdefs.h.  */
25152 $ac_includes_default
25153 #include <${with_readline}/readline.h>
25154 _ACEOF
25155 rm -f conftest.$ac_objext
25156 if { (ac_try="$ac_compile"
25157 case "(($ac_try" in
25158   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25159   *) ac_try_echo=$ac_try;;
25160 esac
25161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25162   (eval "$ac_compile") 2>conftest.er1
25163   ac_status=$?
25164   grep -v '^ *+' conftest.er1 >conftest.err
25165   rm -f conftest.er1
25166   cat conftest.err >&5
25167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25168   (exit $ac_status); } && {
25169          test -z "$ac_c_werror_flag" ||
25170          test ! -s conftest.err
25171        } && test -s conftest.$ac_objext; then
25172   ac_header_compiler=yes
25173 else
25174   echo "$as_me: failed program was:" >&5
25175 sed 's/^/| /' conftest.$ac_ext >&5
25176
25177         ac_header_compiler=no
25178 fi
25179
25180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25181 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25182 echo "${ECHO_T}$ac_header_compiler" >&6; }
25183
25184 # Is the header present?
25185 { echo "$as_me:$LINENO: checking ${with_readline}/readline.h presence" >&5
25186 echo $ECHO_N "checking ${with_readline}/readline.h presence... $ECHO_C" >&6; }
25187 cat >conftest.$ac_ext <<_ACEOF
25188 /* confdefs.h.  */
25189 _ACEOF
25190 cat confdefs.h >>conftest.$ac_ext
25191 cat >>conftest.$ac_ext <<_ACEOF
25192 /* end confdefs.h.  */
25193 #include <${with_readline}/readline.h>
25194 _ACEOF
25195 if { (ac_try="$ac_cpp conftest.$ac_ext"
25196 case "(($ac_try" in
25197   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25198   *) ac_try_echo=$ac_try;;
25199 esac
25200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25201   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25202   ac_status=$?
25203   grep -v '^ *+' conftest.er1 >conftest.err
25204   rm -f conftest.er1
25205   cat conftest.err >&5
25206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25207   (exit $ac_status); } >/dev/null && {
25208          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25209          test ! -s conftest.err
25210        }; then
25211   ac_header_preproc=yes
25212 else
25213   echo "$as_me: failed program was:" >&5
25214 sed 's/^/| /' conftest.$ac_ext >&5
25215
25216   ac_header_preproc=no
25217 fi
25218
25219 rm -f conftest.err conftest.$ac_ext
25220 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25221 echo "${ECHO_T}$ac_header_preproc" >&6; }
25222
25223 # So?  What about this header?
25224 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25225   yes:no: )
25226     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
25227 echo "$as_me: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25228     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&5
25229 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&2;}
25230     ac_header_preproc=yes
25231     ;;
25232   no:yes:* )
25233     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&5
25234 echo "$as_me: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&2;}
25235     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h:     check for missing prerequisite headers?" >&5
25236 echo "$as_me: WARNING: ${with_readline}/readline.h:     check for missing prerequisite headers?" >&2;}
25237     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&5
25238 echo "$as_me: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&2;}
25239     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
25240 echo "$as_me: WARNING: ${with_readline}/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
25241     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
25242 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
25243     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&5
25244 echo "$as_me: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&2;}
25245
25246     ;;
25247 esac
25248 { echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
25249 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6; }
25250 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25251   echo $ECHO_N "(cached) $ECHO_C" >&6
25252 else
25253   eval "$as_ac_Header=\$ac_header_preproc"
25254 fi
25255 ac_res=`eval echo '${'$as_ac_Header'}'`
25256                { echo "$as_me:$LINENO: result: $ac_res" >&5
25257 echo "${ECHO_T}$ac_res" >&6; }
25258
25259 fi
25260 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25261
25262
25263 cat >>confdefs.h <<\_ACEOF
25264 #define HAVE_READLINE 1
25265 _ACEOF
25266
25267                     CONS_LIBS="-lreadline -lhistory $TERM_LIB"
25268                     got_readline="yes"
25269
25270 else
25271
25272                     echo " "
25273                     echo "readline.h not found. readline turned off ..."
25274                     echo " "
25275
25276
25277 fi
25278
25279
25280              ;;
25281           esac
25282
25283 else
25284
25285                  if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
25286   { echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
25287 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6; }
25288 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
25289   echo $ECHO_N "(cached) $ECHO_C" >&6
25290 fi
25291 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
25292 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6; }
25293 else
25294   # Is the header compilable?
25295 { echo "$as_me:$LINENO: checking /usr/include/readline/readline.h usability" >&5
25296 echo $ECHO_N "checking /usr/include/readline/readline.h usability... $ECHO_C" >&6; }
25297 cat >conftest.$ac_ext <<_ACEOF
25298 /* confdefs.h.  */
25299 _ACEOF
25300 cat confdefs.h >>conftest.$ac_ext
25301 cat >>conftest.$ac_ext <<_ACEOF
25302 /* end confdefs.h.  */
25303 $ac_includes_default
25304 #include </usr/include/readline/readline.h>
25305 _ACEOF
25306 rm -f conftest.$ac_objext
25307 if { (ac_try="$ac_compile"
25308 case "(($ac_try" in
25309   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25310   *) ac_try_echo=$ac_try;;
25311 esac
25312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25313   (eval "$ac_compile") 2>conftest.er1
25314   ac_status=$?
25315   grep -v '^ *+' conftest.er1 >conftest.err
25316   rm -f conftest.er1
25317   cat conftest.err >&5
25318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25319   (exit $ac_status); } && {
25320          test -z "$ac_c_werror_flag" ||
25321          test ! -s conftest.err
25322        } && test -s conftest.$ac_objext; then
25323   ac_header_compiler=yes
25324 else
25325   echo "$as_me: failed program was:" >&5
25326 sed 's/^/| /' conftest.$ac_ext >&5
25327
25328         ac_header_compiler=no
25329 fi
25330
25331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25332 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25333 echo "${ECHO_T}$ac_header_compiler" >&6; }
25334
25335 # Is the header present?
25336 { echo "$as_me:$LINENO: checking /usr/include/readline/readline.h presence" >&5
25337 echo $ECHO_N "checking /usr/include/readline/readline.h presence... $ECHO_C" >&6; }
25338 cat >conftest.$ac_ext <<_ACEOF
25339 /* confdefs.h.  */
25340 _ACEOF
25341 cat confdefs.h >>conftest.$ac_ext
25342 cat >>conftest.$ac_ext <<_ACEOF
25343 /* end confdefs.h.  */
25344 #include </usr/include/readline/readline.h>
25345 _ACEOF
25346 if { (ac_try="$ac_cpp conftest.$ac_ext"
25347 case "(($ac_try" in
25348   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25349   *) ac_try_echo=$ac_try;;
25350 esac
25351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25352   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25353   ac_status=$?
25354   grep -v '^ *+' conftest.er1 >conftest.err
25355   rm -f conftest.er1
25356   cat conftest.err >&5
25357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25358   (exit $ac_status); } >/dev/null && {
25359          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25360          test ! -s conftest.err
25361        }; then
25362   ac_header_preproc=yes
25363 else
25364   echo "$as_me: failed program was:" >&5
25365 sed 's/^/| /' conftest.$ac_ext >&5
25366
25367   ac_header_preproc=no
25368 fi
25369
25370 rm -f conftest.err conftest.$ac_ext
25371 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25372 echo "${ECHO_T}$ac_header_preproc" >&6; }
25373
25374 # So?  What about this header?
25375 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25376   yes:no: )
25377     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
25378 echo "$as_me: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25379     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&5
25380 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&2;}
25381     ac_header_preproc=yes
25382     ;;
25383   no:yes:* )
25384     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&5
25385 echo "$as_me: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&2;}
25386     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h:     check for missing prerequisite headers?" >&5
25387 echo "$as_me: WARNING: /usr/include/readline/readline.h:     check for missing prerequisite headers?" >&2;}
25388     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&5
25389 echo "$as_me: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&2;}
25390     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
25391 echo "$as_me: WARNING: /usr/include/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
25392     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
25393 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
25394     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&5
25395 echo "$as_me: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&2;}
25396
25397     ;;
25398 esac
25399 { echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
25400 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6; }
25401 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
25402   echo $ECHO_N "(cached) $ECHO_C" >&6
25403 else
25404   ac_cv_header__usr_include_readline_readline_h=$ac_header_preproc
25405 fi
25406 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
25407 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6; }
25408
25409 fi
25410 if test $ac_cv_header__usr_include_readline_readline_h = yes; then
25411
25412
25413 cat >>confdefs.h <<\_ACEOF
25414 #define HAVE_READLINE 1
25415 _ACEOF
25416
25417                 got_readline="yes"
25418                 CONS_INC="-I/usr/include/readline"
25419                 CONS_LIBS="-lreadline $TERM_LIB"
25420
25421 else
25422
25423                                 as_ac_Header=`echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
25424 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25425   { echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
25426 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6; }
25427 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25428   echo $ECHO_N "(cached) $ECHO_C" >&6
25429 fi
25430 ac_res=`eval echo '${'$as_ac_Header'}'`
25431                { echo "$as_me:$LINENO: result: $ac_res" >&5
25432 echo "${ECHO_T}$ac_res" >&6; }
25433 else
25434   # Is the header compilable?
25435 { echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h usability" >&5
25436 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h usability... $ECHO_C" >&6; }
25437 cat >conftest.$ac_ext <<_ACEOF
25438 /* confdefs.h.  */
25439 _ACEOF
25440 cat confdefs.h >>conftest.$ac_ext
25441 cat >>conftest.$ac_ext <<_ACEOF
25442 /* end confdefs.h.  */
25443 $ac_includes_default
25444 #include <${TOP_DIR}/depkgs/readline/readline.h>
25445 _ACEOF
25446 rm -f conftest.$ac_objext
25447 if { (ac_try="$ac_compile"
25448 case "(($ac_try" in
25449   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25450   *) ac_try_echo=$ac_try;;
25451 esac
25452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25453   (eval "$ac_compile") 2>conftest.er1
25454   ac_status=$?
25455   grep -v '^ *+' conftest.er1 >conftest.err
25456   rm -f conftest.er1
25457   cat conftest.err >&5
25458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25459   (exit $ac_status); } && {
25460          test -z "$ac_c_werror_flag" ||
25461          test ! -s conftest.err
25462        } && test -s conftest.$ac_objext; then
25463   ac_header_compiler=yes
25464 else
25465   echo "$as_me: failed program was:" >&5
25466 sed 's/^/| /' conftest.$ac_ext >&5
25467
25468         ac_header_compiler=no
25469 fi
25470
25471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25472 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25473 echo "${ECHO_T}$ac_header_compiler" >&6; }
25474
25475 # Is the header present?
25476 { echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h presence" >&5
25477 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h presence... $ECHO_C" >&6; }
25478 cat >conftest.$ac_ext <<_ACEOF
25479 /* confdefs.h.  */
25480 _ACEOF
25481 cat confdefs.h >>conftest.$ac_ext
25482 cat >>conftest.$ac_ext <<_ACEOF
25483 /* end confdefs.h.  */
25484 #include <${TOP_DIR}/depkgs/readline/readline.h>
25485 _ACEOF
25486 if { (ac_try="$ac_cpp conftest.$ac_ext"
25487 case "(($ac_try" in
25488   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25489   *) ac_try_echo=$ac_try;;
25490 esac
25491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25492   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25493   ac_status=$?
25494   grep -v '^ *+' conftest.er1 >conftest.err
25495   rm -f conftest.er1
25496   cat conftest.err >&5
25497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25498   (exit $ac_status); } >/dev/null && {
25499          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25500          test ! -s conftest.err
25501        }; then
25502   ac_header_preproc=yes
25503 else
25504   echo "$as_me: failed program was:" >&5
25505 sed 's/^/| /' conftest.$ac_ext >&5
25506
25507   ac_header_preproc=no
25508 fi
25509
25510 rm -f conftest.err conftest.$ac_ext
25511 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25512 echo "${ECHO_T}$ac_header_preproc" >&6; }
25513
25514 # So?  What about this header?
25515 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25516   yes:no: )
25517     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
25518 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25519     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&5
25520 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&2;}
25521     ac_header_preproc=yes
25522     ;;
25523   no:yes:* )
25524     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&5
25525 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&2;}
25526     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     check for missing prerequisite headers?" >&5
25527 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     check for missing prerequisite headers?" >&2;}
25528     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&5
25529 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&2;}
25530     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
25531 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
25532     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
25533 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
25534     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&5
25535 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&2;}
25536
25537     ;;
25538 esac
25539 { echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
25540 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6; }
25541 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25542   echo $ECHO_N "(cached) $ECHO_C" >&6
25543 else
25544   eval "$as_ac_Header=\$ac_header_preproc"
25545 fi
25546 ac_res=`eval echo '${'$as_ac_Header'}'`
25547                { echo "$as_me:$LINENO: result: $ac_res" >&5
25548 echo "${ECHO_T}$ac_res" >&6; }
25549
25550 fi
25551 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25552
25553
25554 cat >>confdefs.h <<\_ACEOF
25555 #define HAVE_READLINE 1
25556 _ACEOF
25557
25558                         got_readline="yes"
25559                         CONS_INC="-I${TOP_DIR}/depkgs/readline"
25560                         CONS_LIBS="-lreadline -lhistory $TERM_LIB"
25561                         CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
25562                         PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
25563
25564 else
25565
25566                         echo " "
25567                         echo "readline.h not found. readline turned off ..."
25568                         echo " "
25569
25570
25571 fi
25572
25573
25574
25575
25576 fi
25577
25578
25579
25580
25581 fi
25582
25583 fi
25584
25585
25586
25587
25588
25589
25590
25591
25592 MAKE_SHELL=/bin/sh
25593
25594 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
25595 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
25596 if test "${ac_cv_header_stat_broken+set}" = set; then
25597   echo $ECHO_N "(cached) $ECHO_C" >&6
25598 else
25599   cat >conftest.$ac_ext <<_ACEOF
25600 /* confdefs.h.  */
25601 _ACEOF
25602 cat confdefs.h >>conftest.$ac_ext
25603 cat >>conftest.$ac_ext <<_ACEOF
25604 /* end confdefs.h.  */
25605 #include <sys/types.h>
25606 #include <sys/stat.h>
25607
25608 #if defined S_ISBLK && defined S_IFDIR
25609 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
25610 #endif
25611
25612 #if defined S_ISBLK && defined S_IFCHR
25613 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
25614 #endif
25615
25616 #if defined S_ISLNK && defined S_IFREG
25617 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
25618 #endif
25619
25620 #if defined S_ISSOCK && defined S_IFREG
25621 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
25622 #endif
25623
25624 _ACEOF
25625 rm -f conftest.$ac_objext
25626 if { (ac_try="$ac_compile"
25627 case "(($ac_try" in
25628   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25629   *) ac_try_echo=$ac_try;;
25630 esac
25631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25632   (eval "$ac_compile") 2>conftest.er1
25633   ac_status=$?
25634   grep -v '^ *+' conftest.er1 >conftest.err
25635   rm -f conftest.er1
25636   cat conftest.err >&5
25637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25638   (exit $ac_status); } && {
25639          test -z "$ac_c_werror_flag" ||
25640          test ! -s conftest.err
25641        } && test -s conftest.$ac_objext; then
25642   ac_cv_header_stat_broken=no
25643 else
25644   echo "$as_me: failed program was:" >&5
25645 sed 's/^/| /' conftest.$ac_ext >&5
25646
25647         ac_cv_header_stat_broken=yes
25648 fi
25649
25650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25651 fi
25652 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
25653 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
25654 if test $ac_cv_header_stat_broken = yes; then
25655
25656 cat >>confdefs.h <<\_ACEOF
25657 #define STAT_MACROS_BROKEN 1
25658 _ACEOF
25659
25660 fi
25661
25662
25663
25664
25665
25666
25667 ac_header_dirent=no
25668 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
25669   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
25670 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
25671 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
25672 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25673   echo $ECHO_N "(cached) $ECHO_C" >&6
25674 else
25675   cat >conftest.$ac_ext <<_ACEOF
25676 /* confdefs.h.  */
25677 _ACEOF
25678 cat confdefs.h >>conftest.$ac_ext
25679 cat >>conftest.$ac_ext <<_ACEOF
25680 /* end confdefs.h.  */
25681 #include <sys/types.h>
25682 #include <$ac_hdr>
25683
25684 int
25685 main ()
25686 {
25687 if ((DIR *) 0)
25688 return 0;
25689   ;
25690   return 0;
25691 }
25692 _ACEOF
25693 rm -f conftest.$ac_objext
25694 if { (ac_try="$ac_compile"
25695 case "(($ac_try" in
25696   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25697   *) ac_try_echo=$ac_try;;
25698 esac
25699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25700   (eval "$ac_compile") 2>conftest.er1
25701   ac_status=$?
25702   grep -v '^ *+' conftest.er1 >conftest.err
25703   rm -f conftest.er1
25704   cat conftest.err >&5
25705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25706   (exit $ac_status); } && {
25707          test -z "$ac_c_werror_flag" ||
25708          test ! -s conftest.err
25709        } && test -s conftest.$ac_objext; then
25710   eval "$as_ac_Header=yes"
25711 else
25712   echo "$as_me: failed program was:" >&5
25713 sed 's/^/| /' conftest.$ac_ext >&5
25714
25715         eval "$as_ac_Header=no"
25716 fi
25717
25718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25719 fi
25720 ac_res=`eval echo '${'$as_ac_Header'}'`
25721                { echo "$as_me:$LINENO: result: $ac_res" >&5
25722 echo "${ECHO_T}$ac_res" >&6; }
25723 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25724   cat >>confdefs.h <<_ACEOF
25725 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
25726 _ACEOF
25727
25728 ac_header_dirent=$ac_hdr; break
25729 fi
25730
25731 done
25732 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
25733 if test $ac_header_dirent = dirent.h; then
25734   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
25735 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
25736 if test "${ac_cv_search_opendir+set}" = set; then
25737   echo $ECHO_N "(cached) $ECHO_C" >&6
25738 else
25739   ac_func_search_save_LIBS=$LIBS
25740 cat >conftest.$ac_ext <<_ACEOF
25741 /* confdefs.h.  */
25742 _ACEOF
25743 cat confdefs.h >>conftest.$ac_ext
25744 cat >>conftest.$ac_ext <<_ACEOF
25745 /* end confdefs.h.  */
25746
25747 /* Override any GCC internal prototype to avoid an error.
25748    Use char because int might match the return type of a GCC
25749    builtin and then its argument prototype would still apply.  */
25750 #ifdef __cplusplus
25751 extern "C"
25752 #endif
25753 char opendir ();
25754 int
25755 main ()
25756 {
25757 return opendir ();
25758   ;
25759   return 0;
25760 }
25761 _ACEOF
25762 for ac_lib in '' dir; do
25763   if test -z "$ac_lib"; then
25764     ac_res="none required"
25765   else
25766     ac_res=-l$ac_lib
25767     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25768   fi
25769   rm -f conftest.$ac_objext conftest$ac_exeext
25770 if { (ac_try="$ac_link"
25771 case "(($ac_try" in
25772   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25773   *) ac_try_echo=$ac_try;;
25774 esac
25775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25776   (eval "$ac_link") 2>conftest.er1
25777   ac_status=$?
25778   grep -v '^ *+' conftest.er1 >conftest.err
25779   rm -f conftest.er1
25780   cat conftest.err >&5
25781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25782   (exit $ac_status); } && {
25783          test -z "$ac_c_werror_flag" ||
25784          test ! -s conftest.err
25785        } && test -s conftest$ac_exeext &&
25786        $as_test_x conftest$ac_exeext; then
25787   ac_cv_search_opendir=$ac_res
25788 else
25789   echo "$as_me: failed program was:" >&5
25790 sed 's/^/| /' conftest.$ac_ext >&5
25791
25792
25793 fi
25794
25795 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25796       conftest$ac_exeext
25797   if test "${ac_cv_search_opendir+set}" = set; then
25798   break
25799 fi
25800 done
25801 if test "${ac_cv_search_opendir+set}" = set; then
25802   :
25803 else
25804   ac_cv_search_opendir=no
25805 fi
25806 rm conftest.$ac_ext
25807 LIBS=$ac_func_search_save_LIBS
25808 fi
25809 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25810 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
25811 ac_res=$ac_cv_search_opendir
25812 if test "$ac_res" != no; then
25813   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25814
25815 fi
25816
25817 else
25818   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
25819 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
25820 if test "${ac_cv_search_opendir+set}" = set; then
25821   echo $ECHO_N "(cached) $ECHO_C" >&6
25822 else
25823   ac_func_search_save_LIBS=$LIBS
25824 cat >conftest.$ac_ext <<_ACEOF
25825 /* confdefs.h.  */
25826 _ACEOF
25827 cat confdefs.h >>conftest.$ac_ext
25828 cat >>conftest.$ac_ext <<_ACEOF
25829 /* end confdefs.h.  */
25830
25831 /* Override any GCC internal prototype to avoid an error.
25832    Use char because int might match the return type of a GCC
25833    builtin and then its argument prototype would still apply.  */
25834 #ifdef __cplusplus
25835 extern "C"
25836 #endif
25837 char opendir ();
25838 int
25839 main ()
25840 {
25841 return opendir ();
25842   ;
25843   return 0;
25844 }
25845 _ACEOF
25846 for ac_lib in '' x; do
25847   if test -z "$ac_lib"; then
25848     ac_res="none required"
25849   else
25850     ac_res=-l$ac_lib
25851     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25852   fi
25853   rm -f conftest.$ac_objext conftest$ac_exeext
25854 if { (ac_try="$ac_link"
25855 case "(($ac_try" in
25856   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25857   *) ac_try_echo=$ac_try;;
25858 esac
25859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25860   (eval "$ac_link") 2>conftest.er1
25861   ac_status=$?
25862   grep -v '^ *+' conftest.er1 >conftest.err
25863   rm -f conftest.er1
25864   cat conftest.err >&5
25865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25866   (exit $ac_status); } && {
25867          test -z "$ac_c_werror_flag" ||
25868          test ! -s conftest.err
25869        } && test -s conftest$ac_exeext &&
25870        $as_test_x conftest$ac_exeext; then
25871   ac_cv_search_opendir=$ac_res
25872 else
25873   echo "$as_me: failed program was:" >&5
25874 sed 's/^/| /' conftest.$ac_ext >&5
25875
25876
25877 fi
25878
25879 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25880       conftest$ac_exeext
25881   if test "${ac_cv_search_opendir+set}" = set; then
25882   break
25883 fi
25884 done
25885 if test "${ac_cv_search_opendir+set}" = set; then
25886   :
25887 else
25888   ac_cv_search_opendir=no
25889 fi
25890 rm conftest.$ac_ext
25891 LIBS=$ac_func_search_save_LIBS
25892 fi
25893 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25894 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
25895 ac_res=$ac_cv_search_opendir
25896 if test "$ac_res" != no; then
25897   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25898
25899 fi
25900
25901 fi
25902
25903
25904
25905
25906
25907
25908
25909
25910 for ac_func in strcasecmp select setenv putenv tcgetattr lstat lchown
25911 do
25912 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25913 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25914 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25915 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25916   echo $ECHO_N "(cached) $ECHO_C" >&6
25917 else
25918   cat >conftest.$ac_ext <<_ACEOF
25919 /* confdefs.h.  */
25920 _ACEOF
25921 cat confdefs.h >>conftest.$ac_ext
25922 cat >>conftest.$ac_ext <<_ACEOF
25923 /* end confdefs.h.  */
25924 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25925    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25926 #define $ac_func innocuous_$ac_func
25927
25928 /* System header to define __stub macros and hopefully few prototypes,
25929     which can conflict with char $ac_func (); below.
25930     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25931     <limits.h> exists even on freestanding compilers.  */
25932
25933 #ifdef __STDC__
25934 # include <limits.h>
25935 #else
25936 # include <assert.h>
25937 #endif
25938
25939 #undef $ac_func
25940
25941 /* Override any GCC internal prototype to avoid an error.
25942    Use char because int might match the return type of a GCC
25943    builtin and then its argument prototype would still apply.  */
25944 #ifdef __cplusplus
25945 extern "C"
25946 #endif
25947 char $ac_func ();
25948 /* The GNU C library defines this for functions which it implements
25949     to always fail with ENOSYS.  Some functions are actually named
25950     something starting with __ and the normal name is an alias.  */
25951 #if defined __stub_$ac_func || defined __stub___$ac_func
25952 choke me
25953 #endif
25954
25955 int
25956 main ()
25957 {
25958 return $ac_func ();
25959   ;
25960   return 0;
25961 }
25962 _ACEOF
25963 rm -f conftest.$ac_objext conftest$ac_exeext
25964 if { (ac_try="$ac_link"
25965 case "(($ac_try" in
25966   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25967   *) ac_try_echo=$ac_try;;
25968 esac
25969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25970   (eval "$ac_link") 2>conftest.er1
25971   ac_status=$?
25972   grep -v '^ *+' conftest.er1 >conftest.err
25973   rm -f conftest.er1
25974   cat conftest.err >&5
25975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25976   (exit $ac_status); } && {
25977          test -z "$ac_c_werror_flag" ||
25978          test ! -s conftest.err
25979        } && test -s conftest$ac_exeext &&
25980        $as_test_x conftest$ac_exeext; then
25981   eval "$as_ac_var=yes"
25982 else
25983   echo "$as_me: failed program was:" >&5
25984 sed 's/^/| /' conftest.$ac_ext >&5
25985
25986         eval "$as_ac_var=no"
25987 fi
25988
25989 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25990       conftest$ac_exeext conftest.$ac_ext
25991 fi
25992 ac_res=`eval echo '${'$as_ac_var'}'`
25993                { echo "$as_me:$LINENO: result: $ac_res" >&5
25994 echo "${ECHO_T}$ac_res" >&6; }
25995 if test `eval echo '${'$as_ac_var'}'` = yes; then
25996   cat >>confdefs.h <<_ACEOF
25997 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25998 _ACEOF
25999
26000 fi
26001 done
26002
26003
26004
26005 for ac_func in nanosleep nl_langinfo
26006 do
26007 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26008 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26009 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26010 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26011   echo $ECHO_N "(cached) $ECHO_C" >&6
26012 else
26013   cat >conftest.$ac_ext <<_ACEOF
26014 /* confdefs.h.  */
26015 _ACEOF
26016 cat confdefs.h >>conftest.$ac_ext
26017 cat >>conftest.$ac_ext <<_ACEOF
26018 /* end confdefs.h.  */
26019 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26020    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26021 #define $ac_func innocuous_$ac_func
26022
26023 /* System header to define __stub macros and hopefully few prototypes,
26024     which can conflict with char $ac_func (); below.
26025     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26026     <limits.h> exists even on freestanding compilers.  */
26027
26028 #ifdef __STDC__
26029 # include <limits.h>
26030 #else
26031 # include <assert.h>
26032 #endif
26033
26034 #undef $ac_func
26035
26036 /* Override any GCC internal prototype to avoid an error.
26037    Use char because int might match the return type of a GCC
26038    builtin and then its argument prototype would still apply.  */
26039 #ifdef __cplusplus
26040 extern "C"
26041 #endif
26042 char $ac_func ();
26043 /* The GNU C library defines this for functions which it implements
26044     to always fail with ENOSYS.  Some functions are actually named
26045     something starting with __ and the normal name is an alias.  */
26046 #if defined __stub_$ac_func || defined __stub___$ac_func
26047 choke me
26048 #endif
26049
26050 int
26051 main ()
26052 {
26053 return $ac_func ();
26054   ;
26055   return 0;
26056 }
26057 _ACEOF
26058 rm -f conftest.$ac_objext conftest$ac_exeext
26059 if { (ac_try="$ac_link"
26060 case "(($ac_try" in
26061   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26062   *) ac_try_echo=$ac_try;;
26063 esac
26064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26065   (eval "$ac_link") 2>conftest.er1
26066   ac_status=$?
26067   grep -v '^ *+' conftest.er1 >conftest.err
26068   rm -f conftest.er1
26069   cat conftest.err >&5
26070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26071   (exit $ac_status); } && {
26072          test -z "$ac_c_werror_flag" ||
26073          test ! -s conftest.err
26074        } && test -s conftest$ac_exeext &&
26075        $as_test_x conftest$ac_exeext; then
26076   eval "$as_ac_var=yes"
26077 else
26078   echo "$as_me: failed program was:" >&5
26079 sed 's/^/| /' conftest.$ac_ext >&5
26080
26081         eval "$as_ac_var=no"
26082 fi
26083
26084 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26085       conftest$ac_exeext conftest.$ac_ext
26086 fi
26087 ac_res=`eval echo '${'$as_ac_var'}'`
26088                { echo "$as_me:$LINENO: result: $ac_res" >&5
26089 echo "${ECHO_T}$ac_res" >&6; }
26090 if test `eval echo '${'$as_ac_var'}'` = yes; then
26091   cat >>confdefs.h <<_ACEOF
26092 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26093 _ACEOF
26094
26095 fi
26096 done
26097
26098
26099 for ac_header in varargs.h
26100 do
26101 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26102 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26103   { echo "$as_me:$LINENO: checking for $ac_header" >&5
26104 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26105 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26106   echo $ECHO_N "(cached) $ECHO_C" >&6
26107 fi
26108 ac_res=`eval echo '${'$as_ac_Header'}'`
26109                { echo "$as_me:$LINENO: result: $ac_res" >&5
26110 echo "${ECHO_T}$ac_res" >&6; }
26111 else
26112   # Is the header compilable?
26113 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
26114 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
26115 cat >conftest.$ac_ext <<_ACEOF
26116 /* confdefs.h.  */
26117 _ACEOF
26118 cat confdefs.h >>conftest.$ac_ext
26119 cat >>conftest.$ac_ext <<_ACEOF
26120 /* end confdefs.h.  */
26121 $ac_includes_default
26122 #include <$ac_header>
26123 _ACEOF
26124 rm -f conftest.$ac_objext
26125 if { (ac_try="$ac_compile"
26126 case "(($ac_try" in
26127   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26128   *) ac_try_echo=$ac_try;;
26129 esac
26130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26131   (eval "$ac_compile") 2>conftest.er1
26132   ac_status=$?
26133   grep -v '^ *+' conftest.er1 >conftest.err
26134   rm -f conftest.er1
26135   cat conftest.err >&5
26136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26137   (exit $ac_status); } && {
26138          test -z "$ac_c_werror_flag" ||
26139          test ! -s conftest.err
26140        } && test -s conftest.$ac_objext; then
26141   ac_header_compiler=yes
26142 else
26143   echo "$as_me: failed program was:" >&5
26144 sed 's/^/| /' conftest.$ac_ext >&5
26145
26146         ac_header_compiler=no
26147 fi
26148
26149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26150 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26151 echo "${ECHO_T}$ac_header_compiler" >&6; }
26152
26153 # Is the header present?
26154 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
26155 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
26156 cat >conftest.$ac_ext <<_ACEOF
26157 /* confdefs.h.  */
26158 _ACEOF
26159 cat confdefs.h >>conftest.$ac_ext
26160 cat >>conftest.$ac_ext <<_ACEOF
26161 /* end confdefs.h.  */
26162 #include <$ac_header>
26163 _ACEOF
26164 if { (ac_try="$ac_cpp conftest.$ac_ext"
26165 case "(($ac_try" in
26166   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26167   *) ac_try_echo=$ac_try;;
26168 esac
26169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26170   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26171   ac_status=$?
26172   grep -v '^ *+' conftest.er1 >conftest.err
26173   rm -f conftest.er1
26174   cat conftest.err >&5
26175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26176   (exit $ac_status); } >/dev/null && {
26177          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26178          test ! -s conftest.err
26179        }; then
26180   ac_header_preproc=yes
26181 else
26182   echo "$as_me: failed program was:" >&5
26183 sed 's/^/| /' conftest.$ac_ext >&5
26184
26185   ac_header_preproc=no
26186 fi
26187
26188 rm -f conftest.err conftest.$ac_ext
26189 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26190 echo "${ECHO_T}$ac_header_preproc" >&6; }
26191
26192 # So?  What about this header?
26193 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26194   yes:no: )
26195     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26196 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26197     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26198 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26199     ac_header_preproc=yes
26200     ;;
26201   no:yes:* )
26202     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26203 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26204     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26205 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26206     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26207 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26208     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26209 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26210     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26211 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26212     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26213 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26214
26215     ;;
26216 esac
26217 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26218 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26219 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26220   echo $ECHO_N "(cached) $ECHO_C" >&6
26221 else
26222   eval "$as_ac_Header=\$ac_header_preproc"
26223 fi
26224 ac_res=`eval echo '${'$as_ac_Header'}'`
26225                { echo "$as_me:$LINENO: result: $ac_res" >&5
26226 echo "${ECHO_T}$ac_res" >&6; }
26227
26228 fi
26229 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26230   cat >>confdefs.h <<_ACEOF
26231 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26232 _ACEOF
26233
26234 fi
26235
26236 done
26237
26238
26239
26240 { echo "$as_me:$LINENO: checking for Python support" >&5
26241 echo $ECHO_N "checking for Python support... $ECHO_C" >&6; }
26242
26243 # Check whether --with-python was given.
26244 if test "${with_python+set}" = set; then
26245   withval=$with_python;
26246        PYTHON_INCDIR=
26247        PYTHON_LIBS=
26248        if test "$withval" != "no"; then
26249           if test "$withval" = "yes"; then
26250              if test -e /usr/bin/python-config ; then
26251                 PYTHON_INCDIR=`/usr/bin/python-config --includes`
26252                 PYTHON_LIBS=`/usr/bin/python-config --libs`
26253              else
26254                 for python_root in /usr /usr/local /usr/sfw; do
26255                    for ver in python2.2 python2.3 python2.4 python2.5 python2.6 python3; do
26256                       if test -f $python_root/include/${ver}/Python.h; then
26257                          PYTHON_INCDIR=-I$python_root/include/${ver}
26258                          if test -d $python_root/lib64/${ver}/config; then
26259                             PYTHON_LIBS="-L$python_root/lib64/${ver}/config -l${ver}"
26260                          else
26261                             PYTHON_LIBS="-L$python_root/lib/${ver}/config -l${ver}"
26262                          fi
26263                          break
26264                       fi
26265                    done
26266                 done
26267
26268                 if test x$PYTHON_INCDIR = x; then
26269                    if test -f $prefix/include/Python.h; then
26270                       PYTHON_INCDIR=-I$prefix/include
26271                       if test -d $prefix/lib64/config; then
26272                          PYTHON_LIBS="-L$prefix/lib64/config -lpython"
26273                       else
26274                          PYTHON_LIBS="-L$prefix/lib/config -lpython"
26275                       fi
26276                    else
26277                       { echo "$as_me:$LINENO: result: no" >&5
26278 echo "${ECHO_T}no" >&6; }
26279                       { { echo "$as_me:$LINENO: error: Unable to find Python.h in standard locations" >&5
26280 echo "$as_me: error: Unable to find Python.h in standard locations" >&2;}
26281    { (exit 1); exit 1; }; }
26282                    fi
26283                 fi
26284              fi
26285           else
26286              if test -e $withval/bin/python-config ; then
26287                 PYTHON_INCDIR=`$withval/bin/python-config --includes`
26288                 PYTHON_LIBS=`$withval/bin/python-config --libs`
26289              elif test -f $withval/Python.h; then
26290                 PYTHON_INCDIR=-I$withval
26291                 PYTHON_LIBS="-L$withval/config -lpython"
26292              elif test -f $withval/include/Python.h; then
26293                 PYTHON_INCDIR=-I$withval/include
26294                 if test -d $withval/lib64/config; then
26295                    PYTHON_LIBS="-L$withval/lib64/config -lpython"
26296                 else
26297                    PYTHON_LIBS="-L$withval/lib/config -lpython"
26298                 fi
26299              elif test -f $withval/include/python/Python.h; then
26300                 PYTHON_INCDIR=-I$withval/include/python
26301                 if test -d $withval/lib64/python/config; then
26302                    PYTHON_LIBS="-L$withval/lib64/python/config -lpython"
26303                 else
26304                    PYTHON_LIBS="-L$withval/lib/python/config -lpython"
26305                 fi
26306              else
26307                 { echo "$as_me:$LINENO: result: no" >&5
26308 echo "${ECHO_T}no" >&6; }
26309                 { { echo "$as_me:$LINENO: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&5
26310 echo "$as_me: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&2;}
26311    { (exit 1); exit 1; }; }
26312              fi
26313           fi
26314
26315           cat >>confdefs.h <<\_ACEOF
26316 #define HAVE_PYTHON 1
26317 _ACEOF
26318
26319           { echo "$as_me:$LINENO: result: yes" >&5
26320 echo "${ECHO_T}yes" >&6; }
26321           support_python=yes
26322           { echo "$as_me:$LINENO: checking for more Python libs" >&5
26323 echo "$as_me: checking for more Python libs" >&6;}
26324           saved_LIBS="$LIBS"; LIBS=
26325           { echo "$as_me:$LINENO: checking for library containing shm_open" >&5
26326 echo $ECHO_N "checking for library containing shm_open... $ECHO_C" >&6; }
26327 if test "${ac_cv_search_shm_open+set}" = set; then
26328   echo $ECHO_N "(cached) $ECHO_C" >&6
26329 else
26330   ac_func_search_save_LIBS=$LIBS
26331 cat >conftest.$ac_ext <<_ACEOF
26332 /* confdefs.h.  */
26333 _ACEOF
26334 cat confdefs.h >>conftest.$ac_ext
26335 cat >>conftest.$ac_ext <<_ACEOF
26336 /* end confdefs.h.  */
26337
26338 /* Override any GCC internal prototype to avoid an error.
26339    Use char because int might match the return type of a GCC
26340    builtin and then its argument prototype would still apply.  */
26341 #ifdef __cplusplus
26342 extern "C"
26343 #endif
26344 char shm_open ();
26345 int
26346 main ()
26347 {
26348 return shm_open ();
26349   ;
26350   return 0;
26351 }
26352 _ACEOF
26353 for ac_lib in '' rt; do
26354   if test -z "$ac_lib"; then
26355     ac_res="none required"
26356   else
26357     ac_res=-l$ac_lib
26358     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
26359   fi
26360   rm -f conftest.$ac_objext conftest$ac_exeext
26361 if { (ac_try="$ac_link"
26362 case "(($ac_try" in
26363   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26364   *) ac_try_echo=$ac_try;;
26365 esac
26366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26367   (eval "$ac_link") 2>conftest.er1
26368   ac_status=$?
26369   grep -v '^ *+' conftest.er1 >conftest.err
26370   rm -f conftest.er1
26371   cat conftest.err >&5
26372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26373   (exit $ac_status); } && {
26374          test -z "$ac_c_werror_flag" ||
26375          test ! -s conftest.err
26376        } && test -s conftest$ac_exeext &&
26377        $as_test_x conftest$ac_exeext; then
26378   ac_cv_search_shm_open=$ac_res
26379 else
26380   echo "$as_me: failed program was:" >&5
26381 sed 's/^/| /' conftest.$ac_ext >&5
26382
26383
26384 fi
26385
26386 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26387       conftest$ac_exeext
26388   if test "${ac_cv_search_shm_open+set}" = set; then
26389   break
26390 fi
26391 done
26392 if test "${ac_cv_search_shm_open+set}" = set; then
26393   :
26394 else
26395   ac_cv_search_shm_open=no
26396 fi
26397 rm conftest.$ac_ext
26398 LIBS=$ac_func_search_save_LIBS
26399 fi
26400 { echo "$as_me:$LINENO: result: $ac_cv_search_shm_open" >&5
26401 echo "${ECHO_T}$ac_cv_search_shm_open" >&6; }
26402 ac_res=$ac_cv_search_shm_open
26403 if test "$ac_res" != no; then
26404   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26405
26406 fi
26407
26408
26409 { echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
26410 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6; }
26411 if test "${ac_cv_lib_util_openpty+set}" = set; then
26412   echo $ECHO_N "(cached) $ECHO_C" >&6
26413 else
26414   ac_check_lib_save_LIBS=$LIBS
26415 LIBS="-lutil  $LIBS"
26416 cat >conftest.$ac_ext <<_ACEOF
26417 /* confdefs.h.  */
26418 _ACEOF
26419 cat confdefs.h >>conftest.$ac_ext
26420 cat >>conftest.$ac_ext <<_ACEOF
26421 /* end confdefs.h.  */
26422
26423 /* Override any GCC internal prototype to avoid an error.
26424    Use char because int might match the return type of a GCC
26425    builtin and then its argument prototype would still apply.  */
26426 #ifdef __cplusplus
26427 extern "C"
26428 #endif
26429 char openpty ();
26430 int
26431 main ()
26432 {
26433 return openpty ();
26434   ;
26435   return 0;
26436 }
26437 _ACEOF
26438 rm -f conftest.$ac_objext conftest$ac_exeext
26439 if { (ac_try="$ac_link"
26440 case "(($ac_try" in
26441   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26442   *) ac_try_echo=$ac_try;;
26443 esac
26444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26445   (eval "$ac_link") 2>conftest.er1
26446   ac_status=$?
26447   grep -v '^ *+' conftest.er1 >conftest.err
26448   rm -f conftest.er1
26449   cat conftest.err >&5
26450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26451   (exit $ac_status); } && {
26452          test -z "$ac_c_werror_flag" ||
26453          test ! -s conftest.err
26454        } && test -s conftest$ac_exeext &&
26455        $as_test_x conftest$ac_exeext; then
26456   ac_cv_lib_util_openpty=yes
26457 else
26458   echo "$as_me: failed program was:" >&5
26459 sed 's/^/| /' conftest.$ac_ext >&5
26460
26461         ac_cv_lib_util_openpty=no
26462 fi
26463
26464 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26465       conftest$ac_exeext conftest.$ac_ext
26466 LIBS=$ac_check_lib_save_LIBS
26467 fi
26468 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
26469 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6; }
26470 if test $ac_cv_lib_util_openpty = yes; then
26471   cat >>confdefs.h <<_ACEOF
26472 #define HAVE_LIBUTIL 1
26473 _ACEOF
26474
26475   LIBS="-lutil $LIBS"
26476
26477 fi
26478
26479           PYTHON_LIBS="$PYTHON_LIBS $LIBS"
26480           LIBS="$saved_LIBS"
26481        else
26482           { echo "$as_me:$LINENO: result: no" >&5
26483 echo "${ECHO_T}no" >&6; }
26484        fi
26485
26486 else
26487
26488        { echo "$as_me:$LINENO: result: no" >&5
26489 echo "${ECHO_T}no" >&6; }
26490
26491
26492 fi
26493
26494
26495
26496
26497 { echo "$as_me:$LINENO: checking for socket" >&5
26498 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
26499 if test "${ac_cv_func_socket+set}" = set; then
26500   echo $ECHO_N "(cached) $ECHO_C" >&6
26501 else
26502   cat >conftest.$ac_ext <<_ACEOF
26503 /* confdefs.h.  */
26504 _ACEOF
26505 cat confdefs.h >>conftest.$ac_ext
26506 cat >>conftest.$ac_ext <<_ACEOF
26507 /* end confdefs.h.  */
26508 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
26509    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26510 #define socket innocuous_socket
26511
26512 /* System header to define __stub macros and hopefully few prototypes,
26513     which can conflict with char socket (); below.
26514     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26515     <limits.h> exists even on freestanding compilers.  */
26516
26517 #ifdef __STDC__
26518 # include <limits.h>
26519 #else
26520 # include <assert.h>
26521 #endif
26522
26523 #undef socket
26524
26525 /* Override any GCC internal prototype to avoid an error.
26526    Use char because int might match the return type of a GCC
26527    builtin and then its argument prototype would still apply.  */
26528 #ifdef __cplusplus
26529 extern "C"
26530 #endif
26531 char socket ();
26532 /* The GNU C library defines this for functions which it implements
26533     to always fail with ENOSYS.  Some functions are actually named
26534     something starting with __ and the normal name is an alias.  */
26535 #if defined __stub_socket || defined __stub___socket
26536 choke me
26537 #endif
26538
26539 int
26540 main ()
26541 {
26542 return socket ();
26543   ;
26544   return 0;
26545 }
26546 _ACEOF
26547 rm -f conftest.$ac_objext conftest$ac_exeext
26548 if { (ac_try="$ac_link"
26549 case "(($ac_try" in
26550   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26551   *) ac_try_echo=$ac_try;;
26552 esac
26553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26554   (eval "$ac_link") 2>conftest.er1
26555   ac_status=$?
26556   grep -v '^ *+' conftest.er1 >conftest.err
26557   rm -f conftest.er1
26558   cat conftest.err >&5
26559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26560   (exit $ac_status); } && {
26561          test -z "$ac_c_werror_flag" ||
26562          test ! -s conftest.err
26563        } && test -s conftest$ac_exeext &&
26564        $as_test_x conftest$ac_exeext; then
26565   ac_cv_func_socket=yes
26566 else
26567   echo "$as_me: failed program was:" >&5
26568 sed 's/^/| /' conftest.$ac_ext >&5
26569
26570         ac_cv_func_socket=no
26571 fi
26572
26573 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26574       conftest$ac_exeext conftest.$ac_ext
26575 fi
26576 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
26577 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
26578 if test $ac_cv_func_socket = yes; then
26579   { echo "$as_me:$LINENO: result: using libc's socket" >&5
26580 echo "${ECHO_T}using libc's socket" >&6; }
26581 else
26582
26583 { echo "$as_me:$LINENO: checking for socket in -lxnet" >&5
26584 echo $ECHO_N "checking for socket in -lxnet... $ECHO_C" >&6; }
26585 if test "${ac_cv_lib_xnet_socket+set}" = set; then
26586   echo $ECHO_N "(cached) $ECHO_C" >&6
26587 else
26588   ac_check_lib_save_LIBS=$LIBS
26589 LIBS="-lxnet  $LIBS"
26590 cat >conftest.$ac_ext <<_ACEOF
26591 /* confdefs.h.  */
26592 _ACEOF
26593 cat confdefs.h >>conftest.$ac_ext
26594 cat >>conftest.$ac_ext <<_ACEOF
26595 /* end confdefs.h.  */
26596
26597 /* Override any GCC internal prototype to avoid an error.
26598    Use char because int might match the return type of a GCC
26599    builtin and then its argument prototype would still apply.  */
26600 #ifdef __cplusplus
26601 extern "C"
26602 #endif
26603 char socket ();
26604 int
26605 main ()
26606 {
26607 return socket ();
26608   ;
26609   return 0;
26610 }
26611 _ACEOF
26612 rm -f conftest.$ac_objext conftest$ac_exeext
26613 if { (ac_try="$ac_link"
26614 case "(($ac_try" in
26615   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26616   *) ac_try_echo=$ac_try;;
26617 esac
26618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26619   (eval "$ac_link") 2>conftest.er1
26620   ac_status=$?
26621   grep -v '^ *+' conftest.er1 >conftest.err
26622   rm -f conftest.er1
26623   cat conftest.err >&5
26624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26625   (exit $ac_status); } && {
26626          test -z "$ac_c_werror_flag" ||
26627          test ! -s conftest.err
26628        } && test -s conftest$ac_exeext &&
26629        $as_test_x conftest$ac_exeext; then
26630   ac_cv_lib_xnet_socket=yes
26631 else
26632   echo "$as_me: failed program was:" >&5
26633 sed 's/^/| /' conftest.$ac_ext >&5
26634
26635         ac_cv_lib_xnet_socket=no
26636 fi
26637
26638 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26639       conftest$ac_exeext conftest.$ac_ext
26640 LIBS=$ac_check_lib_save_LIBS
26641 fi
26642 { echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_socket" >&5
26643 echo "${ECHO_T}$ac_cv_lib_xnet_socket" >&6; }
26644 if test $ac_cv_lib_xnet_socket = yes; then
26645   cat >>confdefs.h <<_ACEOF
26646 #define HAVE_LIBXNET 1
26647 _ACEOF
26648
26649   LIBS="-lxnet $LIBS"
26650
26651 fi
26652
26653
26654 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
26655 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
26656 if test "${ac_cv_lib_socket_socket+set}" = set; then
26657   echo $ECHO_N "(cached) $ECHO_C" >&6
26658 else
26659   ac_check_lib_save_LIBS=$LIBS
26660 LIBS="-lsocket  $LIBS"
26661 cat >conftest.$ac_ext <<_ACEOF
26662 /* confdefs.h.  */
26663 _ACEOF
26664 cat confdefs.h >>conftest.$ac_ext
26665 cat >>conftest.$ac_ext <<_ACEOF
26666 /* end confdefs.h.  */
26667
26668 /* Override any GCC internal prototype to avoid an error.
26669    Use char because int might match the return type of a GCC
26670    builtin and then its argument prototype would still apply.  */
26671 #ifdef __cplusplus
26672 extern "C"
26673 #endif
26674 char socket ();
26675 int
26676 main ()
26677 {
26678 return socket ();
26679   ;
26680   return 0;
26681 }
26682 _ACEOF
26683 rm -f conftest.$ac_objext conftest$ac_exeext
26684 if { (ac_try="$ac_link"
26685 case "(($ac_try" in
26686   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26687   *) ac_try_echo=$ac_try;;
26688 esac
26689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26690   (eval "$ac_link") 2>conftest.er1
26691   ac_status=$?
26692   grep -v '^ *+' conftest.er1 >conftest.err
26693   rm -f conftest.er1
26694   cat conftest.err >&5
26695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26696   (exit $ac_status); } && {
26697          test -z "$ac_c_werror_flag" ||
26698          test ! -s conftest.err
26699        } && test -s conftest$ac_exeext &&
26700        $as_test_x conftest$ac_exeext; then
26701   ac_cv_lib_socket_socket=yes
26702 else
26703   echo "$as_me: failed program was:" >&5
26704 sed 's/^/| /' conftest.$ac_ext >&5
26705
26706         ac_cv_lib_socket_socket=no
26707 fi
26708
26709 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26710       conftest$ac_exeext conftest.$ac_ext
26711 LIBS=$ac_check_lib_save_LIBS
26712 fi
26713 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
26714 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
26715 if test $ac_cv_lib_socket_socket = yes; then
26716   cat >>confdefs.h <<_ACEOF
26717 #define HAVE_LIBSOCKET 1
26718 _ACEOF
26719
26720   LIBS="-lsocket $LIBS"
26721
26722 fi
26723
26724
26725 { echo "$as_me:$LINENO: checking for socket in -linet" >&5
26726 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6; }
26727 if test "${ac_cv_lib_inet_socket+set}" = set; then
26728   echo $ECHO_N "(cached) $ECHO_C" >&6
26729 else
26730   ac_check_lib_save_LIBS=$LIBS
26731 LIBS="-linet  $LIBS"
26732 cat >conftest.$ac_ext <<_ACEOF
26733 /* confdefs.h.  */
26734 _ACEOF
26735 cat confdefs.h >>conftest.$ac_ext
26736 cat >>conftest.$ac_ext <<_ACEOF
26737 /* end confdefs.h.  */
26738
26739 /* Override any GCC internal prototype to avoid an error.
26740    Use char because int might match the return type of a GCC
26741    builtin and then its argument prototype would still apply.  */
26742 #ifdef __cplusplus
26743 extern "C"
26744 #endif
26745 char socket ();
26746 int
26747 main ()
26748 {
26749 return socket ();
26750   ;
26751   return 0;
26752 }
26753 _ACEOF
26754 rm -f conftest.$ac_objext conftest$ac_exeext
26755 if { (ac_try="$ac_link"
26756 case "(($ac_try" in
26757   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26758   *) ac_try_echo=$ac_try;;
26759 esac
26760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26761   (eval "$ac_link") 2>conftest.er1
26762   ac_status=$?
26763   grep -v '^ *+' conftest.er1 >conftest.err
26764   rm -f conftest.er1
26765   cat conftest.err >&5
26766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26767   (exit $ac_status); } && {
26768          test -z "$ac_c_werror_flag" ||
26769          test ! -s conftest.err
26770        } && test -s conftest$ac_exeext &&
26771        $as_test_x conftest$ac_exeext; then
26772   ac_cv_lib_inet_socket=yes
26773 else
26774   echo "$as_me: failed program was:" >&5
26775 sed 's/^/| /' conftest.$ac_ext >&5
26776
26777         ac_cv_lib_inet_socket=no
26778 fi
26779
26780 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26781       conftest$ac_exeext conftest.$ac_ext
26782 LIBS=$ac_check_lib_save_LIBS
26783 fi
26784 { echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
26785 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6; }
26786 if test $ac_cv_lib_inet_socket = yes; then
26787   cat >>confdefs.h <<_ACEOF
26788 #define HAVE_LIBINET 1
26789 _ACEOF
26790
26791   LIBS="-linet $LIBS"
26792
26793 fi
26794
26795 fi
26796
26797
26798 TCPW_MSG="no"
26799 WRAPLIBS=""
26800
26801 # Check whether --with-tcp-wrappers was given.
26802 if test "${with_tcp_wrappers+set}" = set; then
26803   withval=$with_tcp_wrappers;
26804        if test "x$withval" != "xno" ; then
26805           saved_LIBS="$LIBS"
26806           LIBS="$saved_LIBS -lwrap"
26807           { echo "$as_me:$LINENO: checking for library containing nanosleep" >&5
26808 echo $ECHO_N "checking for library containing nanosleep... $ECHO_C" >&6; }
26809 if test "${ac_cv_search_nanosleep+set}" = set; then
26810   echo $ECHO_N "(cached) $ECHO_C" >&6
26811 else
26812   ac_func_search_save_LIBS=$LIBS
26813 cat >conftest.$ac_ext <<_ACEOF
26814 /* confdefs.h.  */
26815 _ACEOF
26816 cat confdefs.h >>conftest.$ac_ext
26817 cat >>conftest.$ac_ext <<_ACEOF
26818 /* end confdefs.h.  */
26819
26820 /* Override any GCC internal prototype to avoid an error.
26821    Use char because int might match the return type of a GCC
26822    builtin and then its argument prototype would still apply.  */
26823 #ifdef __cplusplus
26824 extern "C"
26825 #endif
26826 char nanosleep ();
26827 int
26828 main ()
26829 {
26830 return nanosleep ();
26831   ;
26832   return 0;
26833 }
26834 _ACEOF
26835 for ac_lib in '' rt; do
26836   if test -z "$ac_lib"; then
26837     ac_res="none required"
26838   else
26839     ac_res=-l$ac_lib
26840     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
26841   fi
26842   rm -f conftest.$ac_objext conftest$ac_exeext
26843 if { (ac_try="$ac_link"
26844 case "(($ac_try" in
26845   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26846   *) ac_try_echo=$ac_try;;
26847 esac
26848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26849   (eval "$ac_link") 2>conftest.er1
26850   ac_status=$?
26851   grep -v '^ *+' conftest.er1 >conftest.err
26852   rm -f conftest.er1
26853   cat conftest.err >&5
26854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26855   (exit $ac_status); } && {
26856          test -z "$ac_c_werror_flag" ||
26857          test ! -s conftest.err
26858        } && test -s conftest$ac_exeext &&
26859        $as_test_x conftest$ac_exeext; then
26860   ac_cv_search_nanosleep=$ac_res
26861 else
26862   echo "$as_me: failed program was:" >&5
26863 sed 's/^/| /' conftest.$ac_ext >&5
26864
26865
26866 fi
26867
26868 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26869       conftest$ac_exeext
26870   if test "${ac_cv_search_nanosleep+set}" = set; then
26871   break
26872 fi
26873 done
26874 if test "${ac_cv_search_nanosleep+set}" = set; then
26875   :
26876 else
26877   ac_cv_search_nanosleep=no
26878 fi
26879 rm conftest.$ac_ext
26880 LIBS=$ac_func_search_save_LIBS
26881 fi
26882 { echo "$as_me:$LINENO: result: $ac_cv_search_nanosleep" >&5
26883 echo "${ECHO_T}$ac_cv_search_nanosleep" >&6; }
26884 ac_res=$ac_cv_search_nanosleep
26885 if test "$ac_res" != no; then
26886   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26887
26888 fi
26889
26890           { echo "$as_me:$LINENO: checking for libwrap" >&5
26891 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6; }
26892           cat >conftest.$ac_ext <<_ACEOF
26893 /* confdefs.h.  */
26894 _ACEOF
26895 cat confdefs.h >>conftest.$ac_ext
26896 cat >>conftest.$ac_ext <<_ACEOF
26897 /* end confdefs.h.  */
26898
26899                #include <sys/types.h>
26900                #include <tcpd.h>
26901                int deny_severity = 0;
26902                int allow_severity = 0;
26903                struct request_info *req;
26904
26905 int
26906 main ()
26907 {
26908
26909                 hosts_access(req);
26910
26911   ;
26912   return 0;
26913 }
26914 _ACEOF
26915 rm -f conftest.$ac_objext conftest$ac_exeext
26916 if { (ac_try="$ac_link"
26917 case "(($ac_try" in
26918   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26919   *) ac_try_echo=$ac_try;;
26920 esac
26921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26922   (eval "$ac_link") 2>conftest.er1
26923   ac_status=$?
26924   grep -v '^ *+' conftest.er1 >conftest.err
26925   rm -f conftest.er1
26926   cat conftest.err >&5
26927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26928   (exit $ac_status); } && {
26929          test -z "$ac_c_werror_flag" ||
26930          test ! -s conftest.err
26931        } && test -s conftest$ac_exeext &&
26932        $as_test_x conftest$ac_exeext; then
26933
26934                  { echo "$as_me:$LINENO: result: yes" >&5
26935 echo "${ECHO_T}yes" >&6; }
26936
26937 cat >>confdefs.h <<\_ACEOF
26938 #define HAVE_LIBWRAP 1
26939 _ACEOF
26940
26941                  TCPW_MSG="yes"
26942                  LIBS="$saved_LIBS"
26943                  WRAPLIBS="-lwrap"
26944
26945 else
26946   echo "$as_me: failed program was:" >&5
26947 sed 's/^/| /' conftest.$ac_ext >&5
26948
26949
26950                  LIBS="$saved_LIBS -lwrap -lnsl"
26951                  WRAPLIBS="$saved_LIBS -lwrap -lnsl"
26952                  cat >conftest.$ac_ext <<_ACEOF
26953 /* confdefs.h.  */
26954 _ACEOF
26955 cat confdefs.h >>conftest.$ac_ext
26956 cat >>conftest.$ac_ext <<_ACEOF
26957 /* end confdefs.h.  */
26958
26959                        #include <sys/types.h>
26960                        #include <tcpd.h>
26961                        int deny_severity = 0;
26962                        int allow_severity = 0;
26963                        struct request_info *req;
26964
26965 int
26966 main ()
26967 {
26968
26969                        hosts_access(req);
26970
26971   ;
26972   return 0;
26973 }
26974 _ACEOF
26975 rm -f conftest.$ac_objext conftest$ac_exeext
26976 if { (ac_try="$ac_link"
26977 case "(($ac_try" in
26978   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26979   *) ac_try_echo=$ac_try;;
26980 esac
26981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26982   (eval "$ac_link") 2>conftest.er1
26983   ac_status=$?
26984   grep -v '^ *+' conftest.er1 >conftest.err
26985   rm -f conftest.er1
26986   cat conftest.err >&5
26987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26988   (exit $ac_status); } && {
26989          test -z "$ac_c_werror_flag" ||
26990          test ! -s conftest.err
26991        } && test -s conftest$ac_exeext &&
26992        $as_test_x conftest$ac_exeext; then
26993
26994                       { echo "$as_me:$LINENO: result: yes" >&5
26995 echo "${ECHO_T}yes" >&6; }
26996
26997 cat >>confdefs.h <<\_ACEOF
26998 #define HAVE_LIBWRAP 1
26999 _ACEOF
27000
27001                       TCPW_MSG="yes"
27002                       LIBS="$saved_LIBS"
27003                       WRAPLIBS="-lwrap"
27004
27005 else
27006   echo "$as_me: failed program was:" >&5
27007 sed 's/^/| /' conftest.$ac_ext >&5
27008
27009
27010                       { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
27011 echo "$as_me: error: *** libwrap missing" >&2;}
27012    { (exit 1); exit 1; }; }
27013
27014
27015 fi
27016
27017 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27018       conftest$ac_exeext conftest.$ac_ext
27019
27020
27021 fi
27022
27023 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27024       conftest$ac_exeext conftest.$ac_ext
27025        fi
27026
27027
27028 fi
27029
27030
27031 { echo "$as_me:$LINENO: checking for OpenSSL" >&5
27032 echo $ECHO_N "checking for OpenSSL... $ECHO_C" >&6; }
27033
27034 # Check whether --with-openssl was given.
27035 if test "${with_openssl+set}" = set; then
27036   withval=$with_openssl;
27037         with_openssl_directory=${withval}
27038
27039
27040 fi
27041
27042
27043 if test "x$with_openssl_directory" != "xno"; then
27044    OPENSSL_LIBS="-lssl -lcrypto"
27045    OPENSSL_INC=""
27046
27047    if test "x$with_openssl_directory" != "xyes" && test x"${with_openssl_directory}" != "x"; then
27048       #
27049       # Make sure the $with_openssl_directory also makes sense
27050       #
27051       if test -d "$with_openssl_directory/lib" -a -d "$with_openssl_directory/include"; then
27052          OPENSSL_LIBS="-L$with_openssl_directory/lib $OPENSSL_LIBS"
27053          OPENSSL_INC="-I$with_openssl_directory/include $OPENSSL_INC"
27054       fi
27055    fi
27056
27057    saved_LIBS="${LIBS}"
27058    saved_CFLAGS="${CFLAGS}"
27059    LIBS="${saved_LIBS} ${OPENSSL_LIBS}"
27060    CFLAGS="${saved_CFLAGS} ${OPENSSL_INC}"
27061
27062    cat >conftest.$ac_ext <<_ACEOF
27063 /* confdefs.h.  */
27064 _ACEOF
27065 cat confdefs.h >>conftest.$ac_ext
27066 cat >>conftest.$ac_ext <<_ACEOF
27067 /* end confdefs.h.  */
27068
27069           #include <openssl/ssl.h>
27070
27071 int
27072 main ()
27073 {
27074
27075            CRYPTO_set_id_callback(NULL);
27076
27077   ;
27078   return 0;
27079 }
27080 _ACEOF
27081 rm -f conftest.$ac_objext conftest$ac_exeext
27082 if { (ac_try="$ac_link"
27083 case "(($ac_try" in
27084   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27085   *) ac_try_echo=$ac_try;;
27086 esac
27087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27088   (eval "$ac_link") 2>conftest.er1
27089   ac_status=$?
27090   grep -v '^ *+' conftest.er1 >conftest.err
27091   rm -f conftest.er1
27092   cat conftest.err >&5
27093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27094   (exit $ac_status); } && {
27095          test -z "$ac_c_werror_flag" ||
27096          test ! -s conftest.err
27097        } && test -s conftest$ac_exeext &&
27098        $as_test_x conftest$ac_exeext; then
27099
27100           support_tls="yes"
27101           support_crypto="yes"
27102
27103 else
27104   echo "$as_me: failed program was:" >&5
27105 sed 's/^/| /' conftest.$ac_ext >&5
27106
27107
27108           support_tls="no"
27109           support_crypto="no"
27110
27111
27112 fi
27113
27114 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27115       conftest$ac_exeext conftest.$ac_ext
27116
27117    cat >conftest.$ac_ext <<_ACEOF
27118 /* confdefs.h.  */
27119 _ACEOF
27120 cat confdefs.h >>conftest.$ac_ext
27121 cat >>conftest.$ac_ext <<_ACEOF
27122 /* end confdefs.h.  */
27123
27124           #include <openssl/evp.h>
27125
27126 int
27127 main ()
27128 {
27129
27130           EVP_sha512();
27131
27132   ;
27133   return 0;
27134 }
27135 _ACEOF
27136 rm -f conftest.$ac_objext conftest$ac_exeext
27137 if { (ac_try="$ac_link"
27138 case "(($ac_try" in
27139   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27140   *) ac_try_echo=$ac_try;;
27141 esac
27142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27143   (eval "$ac_link") 2>conftest.er1
27144   ac_status=$?
27145   grep -v '^ *+' conftest.er1 >conftest.err
27146   rm -f conftest.er1
27147   cat conftest.err >&5
27148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27149   (exit $ac_status); } && {
27150          test -z "$ac_c_werror_flag" ||
27151          test ! -s conftest.err
27152        } && test -s conftest$ac_exeext &&
27153        $as_test_x conftest$ac_exeext; then
27154
27155           ac_cv_openssl_sha2="yes"
27156
27157 else
27158   echo "$as_me: failed program was:" >&5
27159 sed 's/^/| /' conftest.$ac_ext >&5
27160
27161
27162           ac_cv_openssl_sha2="no"
27163
27164
27165 fi
27166
27167 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27168       conftest$ac_exeext conftest.$ac_ext
27169
27170                cat >conftest.$ac_ext <<_ACEOF
27171 /* confdefs.h.  */
27172 _ACEOF
27173 cat confdefs.h >>conftest.$ac_ext
27174 cat >>conftest.$ac_ext <<_ACEOF
27175 /* end confdefs.h.  */
27176
27177           #include <openssl/evp.h>
27178
27179 int
27180 main ()
27181 {
27182
27183           EVP_aes_192_cbc();
27184
27185   ;
27186   return 0;
27187 }
27188 _ACEOF
27189 rm -f conftest.$ac_objext conftest$ac_exeext
27190 if { (ac_try="$ac_link"
27191 case "(($ac_try" in
27192   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27193   *) ac_try_echo=$ac_try;;
27194 esac
27195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27196   (eval "$ac_link") 2>conftest.er1
27197   ac_status=$?
27198   grep -v '^ *+' conftest.er1 >conftest.err
27199   rm -f conftest.er1
27200   cat conftest.err >&5
27201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27202   (exit $ac_status); } && {
27203          test -z "$ac_c_werror_flag" ||
27204          test ! -s conftest.err
27205        } && test -s conftest$ac_exeext &&
27206        $as_test_x conftest$ac_exeext; then
27207
27208           ac_cv_openssl_export="no"
27209
27210 else
27211   echo "$as_me: failed program was:" >&5
27212 sed 's/^/| /' conftest.$ac_ext >&5
27213
27214
27215           ac_cv_openssl_export="yes"
27216
27217
27218 fi
27219
27220 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27221       conftest$ac_exeext conftest.$ac_ext
27222
27223    LIBS="${saved_LIBS}"
27224    CFLAGS="${saved_CFLAGS}"
27225
27226    if test "$support_tls" = "yes"; then
27227
27228 cat >>confdefs.h <<\_ACEOF
27229 #define HAVE_OPENSSL 1
27230 _ACEOF
27231
27232
27233 cat >>confdefs.h <<\_ACEOF
27234 #define HAVE_TLS 1
27235 _ACEOF
27236
27237
27238 cat >>confdefs.h <<\_ACEOF
27239 #define HAVE_CRYPTO 1
27240 _ACEOF
27241
27242    fi
27243
27244    if test "$ac_cv_openssl_sha2" = "yes"; then
27245
27246 cat >>confdefs.h <<\_ACEOF
27247 #define HAVE_SHA2 1
27248 _ACEOF
27249
27250    fi
27251
27252    if test "$ac_cv_openssl_export" = "yes"; then
27253
27254 cat >>confdefs.h <<\_ACEOF
27255 #define HAVE_OPENSSL_EXPORT_LIBRARY 1
27256 _ACEOF
27257
27258    fi
27259 else
27260    support_tls="no"
27261    support_crypto="no"
27262    OPENSSL_LIBS=""
27263    OPENSSL_INC=""
27264 fi
27265 { echo "$as_me:$LINENO: result: $support_tls" >&5
27266 echo "${ECHO_T}$support_tls" >&6; }
27267
27268 if test "$support_tls" = "no"; then
27269    OPENSSL_LIBS=""
27270    OPENSSL_INC=""
27271 fi
27272 if test "$support_crypto" = "no"; then
27273    OPENSSL_LIBS=""
27274    OPENSSL_INC=""
27275 else
27276    { echo "$as_me:$LINENO: checking for EVP_PKEY_encrypt_old in -lssl" >&5
27277 echo $ECHO_N "checking for EVP_PKEY_encrypt_old in -lssl... $ECHO_C" >&6; }
27278 if test "${ac_cv_lib_ssl_EVP_PKEY_encrypt_old+set}" = set; then
27279   echo $ECHO_N "(cached) $ECHO_C" >&6
27280 else
27281   ac_check_lib_save_LIBS=$LIBS
27282 LIBS="-lssl  $LIBS"
27283 cat >conftest.$ac_ext <<_ACEOF
27284 /* confdefs.h.  */
27285 _ACEOF
27286 cat confdefs.h >>conftest.$ac_ext
27287 cat >>conftest.$ac_ext <<_ACEOF
27288 /* end confdefs.h.  */
27289
27290 /* Override any GCC internal prototype to avoid an error.
27291    Use char because int might match the return type of a GCC
27292    builtin and then its argument prototype would still apply.  */
27293 #ifdef __cplusplus
27294 extern "C"
27295 #endif
27296 char EVP_PKEY_encrypt_old ();
27297 int
27298 main ()
27299 {
27300 return EVP_PKEY_encrypt_old ();
27301   ;
27302   return 0;
27303 }
27304 _ACEOF
27305 rm -f conftest.$ac_objext conftest$ac_exeext
27306 if { (ac_try="$ac_link"
27307 case "(($ac_try" in
27308   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27309   *) ac_try_echo=$ac_try;;
27310 esac
27311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27312   (eval "$ac_link") 2>conftest.er1
27313   ac_status=$?
27314   grep -v '^ *+' conftest.er1 >conftest.err
27315   rm -f conftest.er1
27316   cat conftest.err >&5
27317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27318   (exit $ac_status); } && {
27319          test -z "$ac_c_werror_flag" ||
27320          test ! -s conftest.err
27321        } && test -s conftest$ac_exeext &&
27322        $as_test_x conftest$ac_exeext; then
27323   ac_cv_lib_ssl_EVP_PKEY_encrypt_old=yes
27324 else
27325   echo "$as_me: failed program was:" >&5
27326 sed 's/^/| /' conftest.$ac_ext >&5
27327
27328         ac_cv_lib_ssl_EVP_PKEY_encrypt_old=no
27329 fi
27330
27331 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27332       conftest$ac_exeext conftest.$ac_ext
27333 LIBS=$ac_check_lib_save_LIBS
27334 fi
27335 { echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_EVP_PKEY_encrypt_old" >&5
27336 echo "${ECHO_T}$ac_cv_lib_ssl_EVP_PKEY_encrypt_old" >&6; }
27337 if test $ac_cv_lib_ssl_EVP_PKEY_encrypt_old = yes; then
27338
27339 cat >>confdefs.h <<\_ACEOF
27340 #define HAVE_OPENSSLv1 1
27341 _ACEOF
27342
27343 fi
27344
27345 fi
27346
27347
27348
27349
27350 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
27351 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
27352 if test "${ac_cv_search_dlopen+set}" = set; then
27353   echo $ECHO_N "(cached) $ECHO_C" >&6
27354 else
27355   ac_func_search_save_LIBS=$LIBS
27356 cat >conftest.$ac_ext <<_ACEOF
27357 /* confdefs.h.  */
27358 _ACEOF
27359 cat confdefs.h >>conftest.$ac_ext
27360 cat >>conftest.$ac_ext <<_ACEOF
27361 /* end confdefs.h.  */
27362
27363 /* Override any GCC internal prototype to avoid an error.
27364    Use char because int might match the return type of a GCC
27365    builtin and then its argument prototype would still apply.  */
27366 #ifdef __cplusplus
27367 extern "C"
27368 #endif
27369 char dlopen ();
27370 int
27371 main ()
27372 {
27373 return dlopen ();
27374   ;
27375   return 0;
27376 }
27377 _ACEOF
27378 for ac_lib in '' dl; do
27379   if test -z "$ac_lib"; then
27380     ac_res="none required"
27381   else
27382     ac_res=-l$ac_lib
27383     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27384   fi
27385   rm -f conftest.$ac_objext conftest$ac_exeext
27386 if { (ac_try="$ac_link"
27387 case "(($ac_try" in
27388   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27389   *) ac_try_echo=$ac_try;;
27390 esac
27391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27392   (eval "$ac_link") 2>conftest.er1
27393   ac_status=$?
27394   grep -v '^ *+' conftest.er1 >conftest.err
27395   rm -f conftest.er1
27396   cat conftest.err >&5
27397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27398   (exit $ac_status); } && {
27399          test -z "$ac_c_werror_flag" ||
27400          test ! -s conftest.err
27401        } && test -s conftest$ac_exeext &&
27402        $as_test_x conftest$ac_exeext; then
27403   ac_cv_search_dlopen=$ac_res
27404 else
27405   echo "$as_me: failed program was:" >&5
27406 sed 's/^/| /' conftest.$ac_ext >&5
27407
27408
27409 fi
27410
27411 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27412       conftest$ac_exeext
27413   if test "${ac_cv_search_dlopen+set}" = set; then
27414   break
27415 fi
27416 done
27417 if test "${ac_cv_search_dlopen+set}" = set; then
27418   :
27419 else
27420   ac_cv_search_dlopen=no
27421 fi
27422 rm conftest.$ac_ext
27423 LIBS=$ac_func_search_save_LIBS
27424 fi
27425 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
27426 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
27427 ac_res=$ac_cv_search_dlopen
27428 if test "$ac_res" != no; then
27429   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27430
27431 fi
27432
27433
27434 working_dir=`eval echo ${prefix}/var/bacula/working`
27435
27436 # Check whether --with-working-dir was given.
27437 if test "${with_working_dir+set}" = set; then
27438   withval=$with_working_dir;
27439        if test "x$withval" != "xno" ; then
27440          working_dir=$withval
27441        fi
27442
27443
27444 fi
27445
27446
27447
27448
27449 archivedir=/tmp
27450
27451 # Check whether --with-archivedir was given.
27452 if test "${with_archivedir+set}" = set; then
27453   withval=$with_archivedir;
27454        if test "x$withval" != "xno" ; then
27455           archivedir=$withval
27456        fi
27457
27458
27459 fi
27460
27461
27462
27463
27464 basename=`hostname`
27465
27466 # Check whether --with-basename was given.
27467 if test "${with_basename+set}" = set; then
27468   withval=$with_basename;
27469        if test "x$withval" != "xno" ; then
27470           basename=$withval
27471        fi
27472
27473
27474 fi
27475
27476
27477
27478
27479 hostname=`uname -n | cut -d '.' -f 1`
27480 if test x${hostname} = x ; then
27481   hostname="localhost"
27482 fi
27483
27484 # Check whether --with-hostname was given.
27485 if test "${with_hostname+set}" = set; then
27486   withval=$with_hostname;
27487        if test "x$withval" != "xno" ; then
27488          hostname=$withval
27489        fi
27490
27491
27492 fi
27493
27494
27495
27496
27497
27498 scriptdir=`eval echo ${sysconfdir}`
27499
27500 # Check whether --with-scriptdir was given.
27501 if test "${with_scriptdir+set}" = set; then
27502   withval=$with_scriptdir;
27503        if test "x$withval" != "xno" ; then
27504           scriptdir=$withval
27505        fi
27506
27507
27508 fi
27509
27510
27511
27512
27513
27514 bsrdir=/tmp
27515
27516 # Check whether --with-bsrdir was given.
27517 if test "${with_bsrdir+set}" = set; then
27518   withval=$with_bsrdir;
27519        if test "x$withval" != "xno" ; then
27520           bsrdir=$withval
27521        fi
27522
27523
27524 fi
27525
27526
27527
27528
27529 logdir=/tmp
27530
27531 # Check whether --with-logdir was given.
27532 if test "${with_logdir+set}" = set; then
27533   withval=$with_logdir;
27534        if test "x$withval" != "xno" ; then
27535           logdir=$withval
27536        fi
27537
27538
27539 fi
27540
27541
27542
27543
27544
27545 # ------------------------------------------
27546 # Where to place plugindir (plugin files)
27547 # ------------------------------------------
27548 plugindir=`eval echo ${libdir}`
27549
27550 # Check whether --with-plugindir was given.
27551 if test "${with_plugindir+set}" = set; then
27552   withval=$with_plugindir;
27553        if test "x$withval" != "xno" ; then
27554           plugindir=$withval
27555        fi
27556
27557
27558 fi
27559
27560
27561
27562
27563 dump_email=root@localhost
27564
27565 # Check whether --with-dump-email was given.
27566 if test "${with_dump_email+set}" = set; then
27567   withval=$with_dump_email;
27568        if test "x$withval" != "xno" ; then
27569           dump_email=$withval
27570        fi
27571
27572
27573 fi
27574
27575
27576
27577
27578 job_email=root@localhost
27579
27580 # Check whether --with-job-email was given.
27581 if test "${with_job_email+set}" = set; then
27582   withval=$with_job_email;
27583        if test "x$withval" != "xno" ; then
27584           job_email=$withval
27585        fi
27586
27587
27588 fi
27589
27590
27591
27592
27593 smtp_host=localhost
27594
27595 # Check whether --with-smtp_host was given.
27596 if test "${with_smtp_host+set}" = set; then
27597   withval=$with_smtp_host;
27598        if test "x$withval" != "xno" ; then
27599           smtp_host=$withval
27600        fi
27601
27602
27603 fi
27604
27605
27606
27607
27608 piddir=/var/run
27609
27610 # Check whether --with-pid-dir was given.
27611 if test "${with_pid_dir+set}" = set; then
27612   withval=$with_pid_dir;
27613        if test "x$withval" != "xno" ; then
27614           piddir=$withval
27615        fi
27616
27617
27618 fi
27619
27620
27621 cat >>confdefs.h <<_ACEOF
27622 #define _PATH_BACULA_PIDDIR "$piddir"
27623 _ACEOF
27624
27625
27626
27627 subsysdir=/var/run/subsys
27628 if test -d /var/run/subsys; then
27629    subsysdir=/var/run/subsys
27630 elif test -d /var/lock/subsys; then
27631    subsysdir=/var/lock/subsys
27632 else
27633    subsysdir=/var/run/subsys
27634 fi
27635
27636 # Check whether --with-subsys-dir was given.
27637 if test "${with_subsys_dir+set}" = set; then
27638   withval=$with_subsys_dir;
27639        if test "x$withval" != "xno" ; then
27640           subsysdir=$withval
27641        fi
27642
27643
27644 fi
27645
27646
27647
27648
27649 baseport=9101
27650
27651 # Check whether --with-baseport was given.
27652 if test "${with_baseport+set}" = set; then
27653   withval=$with_baseport;
27654        if test "x$withval" != "xno" ; then
27655           baseport=$withval
27656        fi
27657
27658
27659 fi
27660
27661
27662
27663 dir_port=`expr $baseport`
27664 fd_port=`expr $baseport + 1`
27665 sd_port=`expr $fd_port + 1`
27666
27667
27668
27669
27670
27671 dir_password=
27672
27673 # Check whether --with-dir-password was given.
27674 if test "${with_dir_password+set}" = set; then
27675   withval=$with_dir_password;
27676        if test "x$withval" != "xno" ; then
27677           dir_password=$withval
27678        fi
27679
27680
27681 fi
27682
27683
27684 if test "x$dir_password" = "x" ; then
27685    if test "x$OPENSSL" = "xnone" ; then
27686       key=`autoconf/randpass 33`
27687    else
27688       key=`openssl rand -base64 33`
27689    fi
27690    dir_password=$key
27691 fi
27692
27693 fd_password=
27694
27695 # Check whether --with-fd-password was given.
27696 if test "${with_fd_password+set}" = set; then
27697   withval=$with_fd_password;
27698        if test "x$withval" != "xno" ; then
27699           fd_password=$withval
27700        fi
27701
27702
27703 fi
27704
27705
27706 if test "x$fd_password" = "x" ; then
27707    if test "x$OPENSSL" = "xnone" ; then
27708       key=`autoconf/randpass 37`
27709    else
27710       key=`openssl rand -base64 33`
27711    fi
27712    fd_password=$key
27713 fi
27714
27715 sd_password=
27716
27717 # Check whether --with-sd-password was given.
27718 if test "${with_sd_password+set}" = set; then
27719   withval=$with_sd_password;
27720        if test "x$withval" != "xno" ; then
27721           sd_password=$withval
27722        fi
27723
27724
27725 fi
27726
27727
27728 if test "x$sd_password" = "x" ; then
27729    if test "x$OPENSSL" = "xnone" ; then
27730       key=`autoconf/randpass 41`
27731    else
27732       key=`openssl rand -base64 33`
27733    fi
27734    sd_password=$key
27735 fi
27736
27737 mon_dir_password=
27738
27739 # Check whether --with-mon-dir-password was given.
27740 if test "${with_mon_dir_password+set}" = set; then
27741   withval=$with_mon_dir_password;
27742        if test "x$withval" != "xno" ; then
27743           mon_dir_password=$withval
27744        fi
27745
27746
27747 fi
27748
27749
27750 if test "x$mon_dir_password" = "x" ; then
27751    if test "x$OPENSSL" = "xnone" ; then
27752       key=`autoconf/randpass 33`
27753    else
27754       key=`openssl rand -base64 33`
27755    fi
27756    mon_dir_password=$key
27757 fi
27758
27759 mon_fd_password=
27760
27761 # Check whether --with-mon-fd-password was given.
27762 if test "${with_mon_fd_password+set}" = set; then
27763   withval=$with_mon_fd_password;
27764        if test "x$withval" != "xno" ; then
27765           mon_fd_password=$withval
27766        fi
27767
27768
27769 fi
27770
27771
27772 if test "x$mon_fd_password" = "x" ; then
27773    if test "x$OPENSSL" = "xnone" ; then
27774       key=`autoconf/randpass 37`
27775    else
27776       key=`openssl rand -base64 33`
27777    fi
27778    mon_fd_password=$key
27779 fi
27780
27781 mon_sd_password=
27782
27783 # Check whether --with-mon-sd-password was given.
27784 if test "${with_mon_sd_password+set}" = set; then
27785   withval=$with_mon_sd_password;
27786        if test "x$withval" != "xno" ; then
27787           mon_sd_password=$withval
27788        fi
27789
27790
27791 fi
27792
27793
27794 if test "x$mon_sd_password" = "x" ; then
27795    if test "x$OPENSSL" = "xnone" ; then
27796       key=`autoconf/randpass 41`
27797    else
27798       key=`openssl rand -base64 33`
27799    fi
27800    mon_sd_password=$key
27801 fi
27802
27803
27804
27805
27806
27807
27808
27809
27810 db_name=bacula
27811
27812 # Check whether --with-db_name was given.
27813 if test "${with_db_name+set}" = set; then
27814   withval=$with_db_name;
27815        if test "x$withval" != "x" ; then
27816           db_name=$withval
27817        fi
27818
27819
27820 fi
27821
27822
27823
27824 db_user=bacula
27825
27826 # Check whether --with-db_user was given.
27827 if test "${with_db_user+set}" = set; then
27828   withval=$with_db_user;
27829        if test "x$withval" != "x" ; then
27830           db_user=$withval
27831        fi
27832
27833
27834 fi
27835
27836
27837
27838 db_password=
27839
27840 # Check whether --with-db_password was given.
27841 if test "${with_db_password+set}" = set; then
27842   withval=$with_db_password;
27843        if test "x$withval" != "x" ; then
27844           db_password=$withval
27845        fi
27846
27847
27848 fi
27849
27850
27851
27852 db_port=" "
27853
27854 # Check whether --with-db_port was given.
27855 if test "${with_db_port+set}" = set; then
27856   withval=$with_db_port;
27857        if test "x$withval" != "x" ; then
27858           db_port=$withval
27859        fi
27860
27861
27862 fi
27863
27864
27865
27866 #
27867 # Handle users and groups for each daemon
27868 #
27869 dir_user=
27870
27871 # Check whether --with-dir_user was given.
27872 if test "${with_dir_user+set}" = set; then
27873   withval=$with_dir_user;
27874        if test "x$withval" != "x" ; then
27875            dir_user=$withval
27876        fi
27877
27878
27879 fi
27880
27881
27882 dir_group=
27883
27884 # Check whether --with-dir_group was given.
27885 if test "${with_dir_group+set}" = set; then
27886   withval=$with_dir_group;
27887        if test "x$withval" != "x" ; then
27888           dir_group=$withval
27889        fi
27890
27891
27892 fi
27893
27894
27895 sd_user=
27896
27897 # Check whether --with-sd_user was given.
27898 if test "${with_sd_user+set}" = set; then
27899   withval=$with_sd_user;
27900        if test "x$withval" != "x" ; then
27901           sd_user=$withval
27902        fi
27903
27904
27905 fi
27906
27907
27908 sd_group=
27909
27910 # Check whether --with-sd_group was given.
27911 if test "${with_sd_group+set}" = set; then
27912   withval=$with_sd_group;
27913        if test "x$withval" != "x" ; then
27914           sd_group=$withval
27915        fi
27916
27917
27918 fi
27919
27920
27921 fd_user=
27922
27923 # Check whether --with-fd_user was given.
27924 if test "${with_fd_user+set}" = set; then
27925   withval=$with_fd_user;
27926        if test "x$withval" != "x" ; then
27927           fd_user=$withval
27928        fi
27929
27930
27931 fi
27932
27933
27934 fd_group=
27935
27936 # Check whether --with-fd_group was given.
27937 if test "${with_fd_group+set}" = set; then
27938   withval=$with_fd_group;
27939        if test "x$withval" != "x" ; then
27940           fd_group=$withval
27941        fi
27942
27943
27944 fi
27945
27946
27947
27948
27949
27950
27951
27952
27953
27954 SBINPERM=0750
27955
27956 # Check whether --with-sbin-perm was given.
27957 if test "${with_sbin_perm+set}" = set; then
27958   withval=$with_sbin_perm;
27959        if test "x$withval" != "x" ; then
27960           SBINPERM=$withval
27961        fi
27962
27963
27964 fi
27965
27966
27967
27968
27969 SQL_LIB=
27970
27971 db_found=no
27972 { echo "$as_me:$LINENO: checking for PostgreSQL support" >&5
27973 echo $ECHO_N "checking for PostgreSQL support... $ECHO_C" >&6; }
27974
27975 # Check whether --with-postgresql was given.
27976 if test "${with_postgresql+set}" = set; then
27977   withval=$with_postgresql;
27978   if test "$withval" != "no"; then
27979       if test "$db_found" = "yes"; then
27980           { echo "$as_me:$LINENO: result: error" >&5
27981 echo "${ECHO_T}error" >&6; }
27982           { { echo "$as_me:$LINENO: error: \"You can configure for only one database.\"" >&5
27983 echo "$as_me: error: \"You can configure for only one database.\"" >&2;}
27984    { (exit 1); exit 1; }; };
27985       fi
27986       if test "$withval" = "yes"; then
27987           PG_CONFIG=`which pg_config`
27988           if test -n "$PG_CONFIG";then
27989               POSTGRESQL_INCDIR=`"$PG_CONFIG" --includedir`
27990               POSTGRESQL_LIBDIR=`"$PG_CONFIG" --libdir`
27991               POSTGRESQL_BINDIR=`"$PG_CONFIG" --bindir`
27992           elif test -f /usr/local/include/libpq-fe.h; then
27993               POSTGRESQL_INCDIR=/usr/local/include
27994               if test -d /usr/local/lib64; then
27995                  POSTGRESQL_LIBDIR=/usr/local/lib64
27996               else
27997                  POSTGRESQL_LIBDIR=/usr/local/lib
27998               fi
27999               POSTGRESQL_BINDIR=/usr/local/bin
28000           elif test -f /usr/include/libpq-fe.h; then
28001               POSTGRESQL_INCDIR=/usr/include
28002               if test -d /usr/lib64; then
28003                  POSTGRESQL_LIBDIR=/usr/lib64
28004               else
28005                  POSTGRESQL_LIBDIR=/usr/lib
28006               fi
28007               POSTGRESQL_BINDIR=/usr/bin
28008           elif test -f /usr/include/pgsql/libpq-fe.h; then
28009               POSTGRESQL_INCDIR=/usr/include/pgsql
28010               if test -d /usr/lib64/pgsql; then
28011                  POSTGRESQL_LIBDIR=/usr/lib64/pgsql
28012               else
28013                  POSTGRESQL_LIBDIR=/usr/lib/pgsql
28014               fi
28015               POSTGRESQL_BINDIR=/usr/bin
28016           elif test -f /usr/include/postgresql/libpq-fe.h; then
28017               POSTGRESQL_INCDIR=/usr/include/postgresql
28018               if test -d /usr/lib64/postgresql; then
28019                  POSTGRESQL_LIBDIR=/usr/lib64/postgresql
28020               else
28021                  POSTGRESQL_LIBDIR=/usr/lib/postgresql
28022               fi
28023               POSTGRESQL_BINDIR=/usr/bin
28024           else
28025               { echo "$as_me:$LINENO: result: no" >&5
28026 echo "${ECHO_T}no" >&6; }
28027               { { echo "$as_me:$LINENO: error: Unable to find libpq-fe.h in standard locations" >&5
28028 echo "$as_me: error: Unable to find libpq-fe.h in standard locations" >&2;}
28029    { (exit 1); exit 1; }; }
28030           fi
28031       elif test -f $withval/include/libpq-fe.h; then
28032           POSTGRESQL_INCDIR=$withval/include
28033           POSTGRESQL_LIBDIR=$withval/lib
28034           POSTGRESQL_BINDIR=$withval/bin
28035       elif test -f $withval/include/postgresql/libpq-fe.h; then
28036           POSTGRESQL_INCDIR=$withval/include/postgresql
28037      if test -d $withval/lib64; then
28038          POSTGRESQL_LIBDIR=$withval/lib64
28039      else
28040          POSTGRESQL_LIBDIR=$withval/lib
28041      fi
28042           POSTGRESQL_BINDIR=$withval/bin
28043       else
28044           { echo "$as_me:$LINENO: result: no" >&5
28045 echo "${ECHO_T}no" >&6; }
28046           { { echo "$as_me:$LINENO: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&5
28047 echo "$as_me: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&2;}
28048    { (exit 1); exit 1; }; }
28049       fi
28050       cat >>confdefs.h <<\_ACEOF
28051 #define HAVE_POSTGRESQL 1
28052 _ACEOF
28053
28054       { echo "$as_me:$LINENO: result: yes" >&5
28055 echo "${ECHO_T}yes" >&6; }
28056       POSTGRESQL_LFLAGS="-L$POSTGRESQL_LIBDIR -lpq"
28057       { echo "$as_me:$LINENO: checking for crypt" >&5
28058 echo $ECHO_N "checking for crypt... $ECHO_C" >&6; }
28059 if test "${ac_cv_func_crypt+set}" = set; then
28060   echo $ECHO_N "(cached) $ECHO_C" >&6
28061 else
28062   cat >conftest.$ac_ext <<_ACEOF
28063 /* confdefs.h.  */
28064 _ACEOF
28065 cat confdefs.h >>conftest.$ac_ext
28066 cat >>conftest.$ac_ext <<_ACEOF
28067 /* end confdefs.h.  */
28068 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
28069    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28070 #define crypt innocuous_crypt
28071
28072 /* System header to define __stub macros and hopefully few prototypes,
28073     which can conflict with char crypt (); below.
28074     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28075     <limits.h> exists even on freestanding compilers.  */
28076
28077 #ifdef __STDC__
28078 # include <limits.h>
28079 #else
28080 # include <assert.h>
28081 #endif
28082
28083 #undef crypt
28084
28085 /* Override any GCC internal prototype to avoid an error.
28086    Use char because int might match the return type of a GCC
28087    builtin and then its argument prototype would still apply.  */
28088 #ifdef __cplusplus
28089 extern "C"
28090 #endif
28091 char crypt ();
28092 /* The GNU C library defines this for functions which it implements
28093     to always fail with ENOSYS.  Some functions are actually named
28094     something starting with __ and the normal name is an alias.  */
28095 #if defined __stub_crypt || defined __stub___crypt
28096 choke me
28097 #endif
28098
28099 int
28100 main ()
28101 {
28102 return crypt ();
28103   ;
28104   return 0;
28105 }
28106 _ACEOF
28107 rm -f conftest.$ac_objext conftest$ac_exeext
28108 if { (ac_try="$ac_link"
28109 case "(($ac_try" in
28110   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28111   *) ac_try_echo=$ac_try;;
28112 esac
28113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28114   (eval "$ac_link") 2>conftest.er1
28115   ac_status=$?
28116   grep -v '^ *+' conftest.er1 >conftest.err
28117   rm -f conftest.er1
28118   cat conftest.err >&5
28119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28120   (exit $ac_status); } && {
28121          test -z "$ac_c_werror_flag" ||
28122          test ! -s conftest.err
28123        } && test -s conftest$ac_exeext &&
28124        $as_test_x conftest$ac_exeext; then
28125   ac_cv_func_crypt=yes
28126 else
28127   echo "$as_me: failed program was:" >&5
28128 sed 's/^/| /' conftest.$ac_ext >&5
28129
28130         ac_cv_func_crypt=no
28131 fi
28132
28133 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28134       conftest$ac_exeext conftest.$ac_ext
28135 fi
28136 { echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
28137 echo "${ECHO_T}$ac_cv_func_crypt" >&6; }
28138 if test $ac_cv_func_crypt = yes; then
28139   :
28140 else
28141   { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
28142 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
28143 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
28144   echo $ECHO_N "(cached) $ECHO_C" >&6
28145 else
28146   ac_check_lib_save_LIBS=$LIBS
28147 LIBS="-lcrypt  $LIBS"
28148 cat >conftest.$ac_ext <<_ACEOF
28149 /* confdefs.h.  */
28150 _ACEOF
28151 cat confdefs.h >>conftest.$ac_ext
28152 cat >>conftest.$ac_ext <<_ACEOF
28153 /* end confdefs.h.  */
28154
28155 /* Override any GCC internal prototype to avoid an error.
28156    Use char because int might match the return type of a GCC
28157    builtin and then its argument prototype would still apply.  */
28158 #ifdef __cplusplus
28159 extern "C"
28160 #endif
28161 char crypt ();
28162 int
28163 main ()
28164 {
28165 return crypt ();
28166   ;
28167   return 0;
28168 }
28169 _ACEOF
28170 rm -f conftest.$ac_objext conftest$ac_exeext
28171 if { (ac_try="$ac_link"
28172 case "(($ac_try" in
28173   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28174   *) ac_try_echo=$ac_try;;
28175 esac
28176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28177   (eval "$ac_link") 2>conftest.er1
28178   ac_status=$?
28179   grep -v '^ *+' conftest.er1 >conftest.err
28180   rm -f conftest.er1
28181   cat conftest.err >&5
28182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28183   (exit $ac_status); } && {
28184          test -z "$ac_c_werror_flag" ||
28185          test ! -s conftest.err
28186        } && test -s conftest$ac_exeext &&
28187        $as_test_x conftest$ac_exeext; then
28188   ac_cv_lib_crypt_crypt=yes
28189 else
28190   echo "$as_me: failed program was:" >&5
28191 sed 's/^/| /' conftest.$ac_ext >&5
28192
28193         ac_cv_lib_crypt_crypt=no
28194 fi
28195
28196 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28197       conftest$ac_exeext conftest.$ac_ext
28198 LIBS=$ac_check_lib_save_LIBS
28199 fi
28200 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
28201 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
28202 if test $ac_cv_lib_crypt_crypt = yes; then
28203   POSTGRESQL_LFLAGS="$POSTGRESQL_LFLAGS -lcrypt"
28204 fi
28205
28206 fi
28207
28208       SQL_INCLUDE=-I$POSTGRESQL_INCDIR
28209       SQL_LFLAGS=$POSTGRESQL_LFLAGS
28210       SQL_BINDIR=$POSTGRESQL_BINDIR
28211       SQL_LIB=$POSTGRESQL_LIBDIR/libpq.a
28212
28213       db_found=yes
28214       support_postgresql=yes
28215       db_type=PostgreSQL
28216       DB_TYPE=postgresql
28217   else
28218       { echo "$as_me:$LINENO: result: no" >&5
28219 echo "${ECHO_T}no" >&6; }
28220   fi
28221
28222 else
28223
28224   { echo "$as_me:$LINENO: result: no" >&5
28225 echo "${ECHO_T}no" >&6; }
28226
28227 fi
28228
28229
28230
28231
28232
28233
28234
28235
28236 db_found=no
28237 { echo "$as_me:$LINENO: checking for MySQL support" >&5
28238 echo $ECHO_N "checking for MySQL support... $ECHO_C" >&6; }
28239
28240 # Check whether --with-mysql was given.
28241 if test "${with_mysql+set}" = set; then
28242   withval=$with_mysql;
28243   if test "$withval" != "no"; then
28244         if test "$withval" = "yes"; then
28245            if test -f /usr/local/mysql/include/mysql/mysql.h; then
28246                    MYSQL_INCDIR=/usr/local/mysql/include/mysql
28247                    if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
28248                         -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
28249                            MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
28250                    else
28251                            MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
28252                    fi
28253                    MYSQL_BINDIR=/usr/local/mysql/bin
28254            elif test -f /usr/include/mysql/mysql.h; then
28255                    MYSQL_INCDIR=/usr/include/mysql
28256                    if test -f /usr/lib64/mysql/libmysqlclient_r.a \
28257                         -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
28258                            MYSQL_LIBDIR=/usr/lib64/mysql
28259                    elif test -f /usr/lib64/libmysqlclient_r.a \
28260                         -o -f /usr/lib64/libmysqlclient_r.so; then
28261                            MYSQL_LIBDIR=/usr/lib64
28262                    elif test -f /usr/lib/mysql/libmysqlclient_r.a \
28263                           -o -f /usr/lib/mysql/libmysqlclient_r.so; then
28264                            MYSQL_LIBDIR=/usr/lib/mysql
28265                    else
28266                            MYSQL_LIBDIR=/usr/lib
28267                    fi
28268                    MYSQL_BINDIR=/usr/bin
28269            elif test -f /usr/include/mysql.h; then
28270                    MYSQL_INCDIR=/usr/include
28271                    if test -f /usr/lib64/libmysqlclient_r.a \
28272                         -o -f /usr/lib64/libmysqlclient_r.so; then
28273                            MYSQL_LIBDIR=/usr/lib64
28274                    else
28275                            MYSQL_LIBDIR=/usr/lib
28276                    fi
28277                    MYSQL_BINDIR=/usr/bin
28278            elif test -f /usr/local/include/mysql/mysql.h; then
28279                    MYSQL_INCDIR=/usr/local/include/mysql
28280                    if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
28281                         -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
28282                            MYSQL_LIBDIR=/usr/local/lib64/mysql
28283                    else
28284                            MYSQL_LIBDIR=/usr/local/lib/mysql
28285                    fi
28286                    MYSQL_BINDIR=/usr/local/bin
28287            elif test -f /usr/local/include/mysql.h; then
28288                    MYSQL_INCDIR=/usr/local/include
28289                    if test -f /usr/local/lib64/libmysqlclient_r.a \
28290                         -o -f /usr/local/lib64/libmysqlclient_r.so; then
28291                            MYSQL_LIBDIR=/usr/local/lib64
28292                    else
28293                            MYSQL_LIBDIR=/usr/local/lib
28294                    fi
28295                    MYSQL_BINDIR=/usr/local/bin
28296            else
28297               { echo "$as_me:$LINENO: result: no" >&5
28298 echo "${ECHO_T}no" >&6; }
28299               { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
28300 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
28301    { (exit 1); exit 1; }; }
28302            fi
28303         else
28304            if test -f $withval/include/mysql/mysql.h; then
28305               MYSQL_INCDIR=$withval/include/mysql
28306               if test -f $withval/lib64/mysql/libmysqlclient_r.a \
28307                    -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
28308                  MYSQL_LIBDIR=$withval/lib64/mysql
28309               elif test -f $withval/lib64/libmysqlclient_r.a \
28310                    -o -f $withval/lib64/libmysqlclient_r.so; then
28311                  MYSQL_LIBDIR=$withval/lib64
28312               elif test -f $withval/lib/libmysqlclient_r.a \
28313                    -o -f $withval/lib/libmysqlclient_r.so; then
28314                  MYSQL_LIBDIR=$withval/lib
28315               else
28316                  MYSQL_LIBDIR=$withval/lib/mysql
28317               fi
28318               MYSQL_BINDIR=$withval/bin
28319            elif test -f $withval/include/mysql.h; then
28320               MYSQL_INCDIR=$withval/include
28321               if test -f $withval/lib64/libmysqlclient_r.a \
28322                    -o -f $withval/lib64/libmysqlclient_r.so; then
28323                  MYSQL_LIBDIR=$withval/lib64
28324               else
28325                  MYSQL_LIBDIR=$withval/lib
28326               fi
28327               MYSQL_BINDIR=$withval/bin
28328            else
28329               { echo "$as_me:$LINENO: result: no" >&5
28330 echo "${ECHO_T}no" >&6; }
28331               { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
28332 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
28333    { (exit 1); exit 1; }; }
28334            fi
28335         fi
28336     SQL_INCLUDE=-I$MYSQL_INCDIR
28337     if test -f $MYSQL_LIBDIR/libmysqlclient_r.a \
28338          -o -f $MYSQL_LIBDIR/libmysqlclient_r.so; then
28339        SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
28340        cat >>confdefs.h <<\_ACEOF
28341 #define HAVE_THREAD_SAFE_MYSQL 1
28342 _ACEOF
28343
28344     fi
28345     SQL_BINDIR=$MYSQL_BINDIR
28346     SQL_LIB=$MYSQL_LIBDIR/libmysqlclient_r.a
28347
28348
28349 cat >>confdefs.h <<\_ACEOF
28350 #define HAVE_MYSQL 1
28351 _ACEOF
28352
28353     { echo "$as_me:$LINENO: result: yes" >&5
28354 echo "${ECHO_T}yes" >&6; }
28355     db_found=yes
28356     support_mysql=yes
28357     db_type=MySQL
28358     DB_TYPE=mysql
28359
28360   else
28361         { echo "$as_me:$LINENO: result: no" >&5
28362 echo "${ECHO_T}no" >&6; }
28363   fi
28364
28365
28366 fi
28367
28368
28369
28370 # Check whether --with-embedded-mysql was given.
28371 if test "${with_embedded_mysql+set}" = set; then
28372   withval=$with_embedded_mysql;
28373   if test "$withval" != "no"; then
28374         if test "$withval" = "yes"; then
28375                 if test -f /usr/local/mysql/include/mysql/mysql.h; then
28376                         MYSQL_INCDIR=/usr/local/mysql/include/mysql
28377                         if test -d /usr/local/mysql/lib64/mysql; then
28378                                 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
28379                         else
28380                                 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
28381                         fi
28382                         MYSQL_BINDIR=/usr/local/mysql/bin
28383                 elif test -f /usr/include/mysql/mysql.h; then
28384                         MYSQL_INCDIR=/usr/include/mysql
28385                         if test -d /usr/lib64/mysql; then
28386                                 MYSQL_LIBDIR=/usr/lib64/mysql
28387                         else
28388                                 MYSQL_LIBDIR=/usr/lib/mysql
28389                         fi
28390                         MYSQL_BINDIR=/usr/bin
28391                 elif test -f /usr/include/mysql.h; then
28392                         MYSQL_INCDIR=/usr/include
28393                         if test -d /usr/lib64; then
28394                                 MYSQL_LIBDIR=/usr/lib64
28395                         else
28396                                 MYSQL_LIBDIR=/usr/lib
28397                         fi
28398                         MYSQL_BINDIR=/usr/bin
28399                 elif test -f /usr/local/include/mysql/mysql.h; then
28400                         MYSQL_INCDIR=/usr/local/include/mysql
28401                         if test -d /usr/local/lib64/mysql; then
28402                                 MYSQL_LIBDIR=/usr/local/lib64/mysql
28403                         else
28404                                 MYSQL_LIBDIR=/usr/local/lib/mysql
28405                         fi
28406                         MYSQL_BINDIR=/usr/local/bin
28407                 elif test -f /usr/local/include/mysql.h; then
28408                         MYSQL_INCDIR=/usr/local/include
28409                         if test -d /usr/local/lib64; then
28410                                 MYSQL_LIBDIR=/usr/local/lib64
28411                         else
28412                                 MYSQL_LIBDIR=/usr/local/lib
28413                         fi
28414                         MYSQL_BINDIR=/usr/local/bin
28415                 else
28416                    { echo "$as_me:$LINENO: result: no" >&5
28417 echo "${ECHO_T}no" >&6; }
28418                    { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
28419 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
28420    { (exit 1); exit 1; }; }
28421                 fi
28422         else
28423                 if test -f $withval/include/mysql/mysql.h; then
28424                         MYSQL_INCDIR=$withval/include/mysql
28425                         if test -d $withval/lib64/mysql; then
28426                                 MYSQL_LIBDIR=$withval/lib64/mysql
28427                         else
28428                                 MYSQL_LIBDIR=$withval/lib/mysql
28429                         fi
28430                         MYSQL_BINDIR=$withval/bin
28431                 elif test -f $withval/include/mysql.h; then
28432                         MYSQL_INCDIR=$withval/include
28433                         if test -d $withval/lib64; then
28434                                 MYSQL_LIBDIR=$withval/lib64
28435                         else
28436                                 MYSQL_LIBDIR=$withval/lib
28437                         fi
28438                         MYSQL_BINDIR=$withval/bin
28439                 else
28440                    { echo "$as_me:$LINENO: result: no" >&5
28441 echo "${ECHO_T}no" >&6; }
28442                    { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
28443 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
28444    { (exit 1); exit 1; }; }
28445                 fi
28446         fi
28447     SQL_INCLUDE=-I$MYSQL_INCDIR
28448     SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
28449     SQL_BINDIR=$MYSQL_BINDIR
28450     SQL_LIB=$MYSQL_LIBDIR/libmysqld.a
28451
28452     cat >>confdefs.h <<\_ACEOF
28453 #define HAVE_MYSQL 1
28454 _ACEOF
28455
28456     cat >>confdefs.h <<\_ACEOF
28457 #define HAVE_EMBEDDED_MYSQL 1
28458 _ACEOF
28459
28460     { echo "$as_me:$LINENO: result: yes" >&5
28461 echo "${ECHO_T}yes" >&6; }
28462     db_found=yes
28463     support_mysql=yes
28464     db_type=MySQL
28465     DB_TYPE=mysql
28466
28467   else
28468         { echo "$as_me:$LINENO: result: no" >&5
28469 echo "${ECHO_T}no" >&6; }
28470   fi
28471
28472
28473 fi
28474
28475
28476
28477
28478
28479
28480
28481
28482
28483
28484 db_found=no
28485 { echo "$as_me:$LINENO: checking for Ingres support" >&5
28486 echo $ECHO_N "checking for Ingres support... $ECHO_C" >&6; }
28487
28488 # Check whether --with-ingres was given.
28489 if test "${with_ingres+set}" = set; then
28490   withval=$with_ingres;
28491   if test "$withval" != "no"; then
28492      if test "$withval" = "yes"; then
28493         if test -f ${II_SYSTEM}/files/eqdefc.h; then
28494            INGRES_INCDIR=${II_SYSTEM}/files
28495            INGRES_LIBDIR=${II_SYSTEM}/lib
28496            INGRES_BINDIR=${II_SYSTEM}/bin
28497         elif test -f ${II_SYSTEM}/ingres/files/eqdefc.h; then
28498            INGRES_INCDIR=${II_SYSTEM}/ingres/files
28499            INGRES_LIBDIR=${II_SYSTEM}/ingres/lib
28500            INGRES_BINDIR=${II_SYSTEM}/ingres/bin
28501         else
28502            { echo "$as_me:$LINENO: result: no" >&5
28503 echo "${ECHO_T}no" >&6; }
28504            { { echo "$as_me:$LINENO: error: Unable to find eqdefc.h in standard locations" >&5
28505 echo "$as_me: error: Unable to find eqdefc.h in standard locations" >&2;}
28506    { (exit 1); exit 1; }; }
28507         fi
28508      else
28509         if test -f $withval/files/eqdefc.h; then
28510            INGRES_INCDIR=$withval/files
28511            INGRES_LIBDIR=$withval/lib
28512            INGRES_BINDIR=$withval/bin
28513         else
28514            { echo "$as_me:$LINENO: result: no" >&5
28515 echo "${ECHO_T}no" >&6; }
28516            { { echo "$as_me:$LINENO: error: Invalid Ingres directory $withval - unable to find Ingres headers under $withval" >&5
28517 echo "$as_me: error: Invalid Ingres directory $withval - unable to find Ingres headers under $withval" >&2;}
28518    { (exit 1); exit 1; }; }
28519         fi
28520      fi
28521      SQL_INCLUDE=-I$INGRES_INCDIR
28522      SQL_LFLAGS="-L$INGRES_LIBDIR -lq.1 -lcompat.1 -lframe.1"
28523      SQL_BINDIR=$INGRES_BINDIR
28524      SQL_LIB=$INGRES_LIBDIR/libingres.a
28525
28526 cat >>confdefs.h <<\_ACEOF
28527 #define HAVE_INGRES 1
28528 _ACEOF
28529
28530      { echo "$as_me:$LINENO: result: yes" >&5
28531 echo "${ECHO_T}yes" >&6; }
28532      db_found=yes
28533      support_ingres=yes
28534      db_type=Ingres
28535      DB_TYPE=ingres
28536
28537   else
28538      { echo "$as_me:$LINENO: result: no" >&5
28539 echo "${ECHO_T}no" >&6; }
28540   fi
28541
28542 else
28543
28544   { echo "$as_me:$LINENO: result: no" >&5
28545 echo "${ECHO_T}no" >&6; }
28546
28547 fi
28548
28549
28550
28551
28552
28553
28554
28555
28556 db_found=no
28557 { echo "$as_me:$LINENO: checking for SQLite3 support" >&5
28558 echo $ECHO_N "checking for SQLite3 support... $ECHO_C" >&6; }
28559
28560 # Check whether --with-sqlite3 was given.
28561 if test "${with_sqlite3+set}" = set; then
28562   withval=$with_sqlite3;
28563   if test "$withval" != "no"; then
28564      if test "$withval" = "yes"; then
28565         if test -f /usr/local/include/sqlite3.h; then
28566            SQLITE_INCDIR=/usr/local/include
28567            if test -d /usr/local/lib64; then
28568               SQLITE_LIBDIR=/usr/local/lib64
28569            else
28570               SQLITE_LIBDIR=/usr/local/lib
28571            fi
28572            SQLITE_BINDIR=/usr/local/bin
28573         elif test -f /usr/include/sqlite3.h; then
28574            SQLITE_INCDIR=/usr/include
28575            if test -d /usr/lib64; then
28576               SQLITE_LIBDIR=/usr/lib64
28577            else
28578               SQLITE_LIBDIR=/usr/lib
28579            fi
28580            SQLITE_BINDIR=/usr/bin
28581         elif test -f $prefix/include/sqlite3.h; then
28582            SQLITE_INCDIR=$prefix/include
28583            if test -d $prefix/lib64; then
28584               SQLITE_LIBDIR=$prefix/lib64
28585            else
28586               SQLITE_LIBDIR=$prefix/lib
28587            fi
28588            SQLITE_BINDIR=$prefix/bin
28589         else
28590            { echo "$as_me:$LINENO: result: no" >&5
28591 echo "${ECHO_T}no" >&6; }
28592            { { echo "$as_me:$LINENO: error: Unable to find sqlite3.h in standard locations" >&5
28593 echo "$as_me: error: Unable to find sqlite3.h in standard locations" >&2;}
28594    { (exit 1); exit 1; }; }
28595         fi
28596      else
28597         if test -f $withval/sqlite3.h; then
28598            SQLITE_INCDIR=$withval
28599            SQLITE_LIBDIR=$withval
28600            SQLITE_BINDIR=$withval
28601         elif test -f $withval/include/sqlite3.h; then
28602            SQLITE_INCDIR=$withval/include
28603            if test -d $withval/lib64; then
28604               SQLITE_LIBDIR=$withval/lib64
28605            else
28606               SQLITE_LIBDIR=$withval/lib
28607            fi
28608            SQLITE_BINDIR=$withval/bin
28609         else
28610            { echo "$as_me:$LINENO: result: no" >&5
28611 echo "${ECHO_T}no" >&6; }
28612            { { echo "$as_me:$LINENO: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&5
28613 echo "$as_me: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&2;}
28614    { (exit 1); exit 1; }; }
28615         fi
28616      fi
28617      SQL_INCLUDE=-I$SQLITE_INCDIR
28618      SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite3"
28619      SQL_BINDIR=$SQLITE_BINDIR
28620      SQL_LIB=$SQLITE_LIBDIR/libsqlite3.a
28621
28622      cat >>confdefs.h <<\_ACEOF
28623 #define HAVE_SQLITE3 1
28624 _ACEOF
28625
28626      { echo "$as_me:$LINENO: result: yes" >&5
28627 echo "${ECHO_T}yes" >&6; }
28628      db_found=yes
28629      support_sqlite3=yes
28630      db_type=SQLite3
28631      DB_TYPE=sqlite3
28632
28633   else
28634      { echo "$as_me:$LINENO: result: no" >&5
28635 echo "${ECHO_T}no" >&6; }
28636   fi
28637
28638 else
28639
28640   { echo "$as_me:$LINENO: result: no" >&5
28641 echo "${ECHO_T}no" >&6; }
28642
28643 fi
28644
28645
28646
28647
28648
28649
28650
28651 # BA_CHECK_SQLITE_DB
28652
28653
28654 db_found=no
28655 { echo "$as_me:$LINENO: checking for DBI support" >&5
28656 echo $ECHO_N "checking for DBI support... $ECHO_C" >&6; }
28657
28658 # Check whether --with-dbi was given.
28659 if test "${with_dbi+set}" = set; then
28660   withval=$with_dbi;
28661   if test "$withval" != "no"; then
28662      if test "$withval" = "yes"; then
28663         if test -f /usr/local/include/dbi/dbi.h; then
28664            DBI_INCDIR=/usr/local/dbi/include
28665            if test -d /usr/local/lib64; then
28666               DBI_LIBDIR=/usr/local/lib64
28667            else
28668               DBI_LIBDIR=/usr/local/lib
28669            fi
28670            DBI_BINDIR=/usr/local/bin
28671         elif test -f /usr/include/dbi/dbi.h; then
28672            DBI_INCDIR=/usr/include
28673            if test -d /usr/lib64; then
28674               DBI_LIBDIR=/usr/lib64
28675            else
28676               DBI_LIBDIR=/usr/lib
28677            fi
28678            DBI_BINDIR=/usr/bin
28679         elif test -f $prefix/include/dbi/dbi.h; then
28680            DBI_INCDIR=$prefix/include
28681            if test -d $prefix/lib64; then
28682               DBI_LIBDIR=$prefix/lib64
28683            else
28684               DBI_LIBDIR=$prefix/lib
28685            fi
28686            DBI_BINDIR=$prefix/bin
28687         else
28688            { echo "$as_me:$LINENO: result: no" >&5
28689 echo "${ECHO_T}no" >&6; }
28690            { { echo "$as_me:$LINENO: error: Unable to find dbi.h in standard locations" >&5
28691 echo "$as_me: error: Unable to find dbi.h in standard locations" >&2;}
28692    { (exit 1); exit 1; }; }
28693         fi
28694         if test -d /usr/local/lib/dbd; then
28695            DRIVERDIR=/usr/local/lib/dbd
28696            if test -d /usr/local/lib64/dbd; then
28697               DRIVERDIR=/usr/local/lib64/dbd
28698            else
28699               DRIVERDIR=/usr/local/lib/dbd
28700            fi
28701         elif test -d /usr/lib/dbd; then
28702            DRIVERDIR=/usr/lib/dbd
28703            if test -d /usr/lib64/dbd; then
28704               DRIVERDIR=/usr/lib64/dbd
28705            else
28706               DRIVERDIR=/usr/lib/dbd
28707            fi
28708         elif test -d $prefix/lib/dbd; then
28709            if test -d $prefix/lib64/dbd; then
28710               DRIVERDIR=$prefix/lib64/dbd
28711            else
28712               DRIVERDIR=$prefix/lib/dbd
28713            fi
28714         elif test -d /usr/local/lib64/dbd; then
28715            DRIVERDIR=/usr/local/lib64/dbd
28716         elif test -d /usr/lib64/dbd; then
28717            DRIVERDIR=/usr/lib64/dbd
28718         elif test -d $prefix/lib64/dbd; then
28719            DRIVERDIR=$prefix/lib64/dbd
28720         else
28721            { echo "$as_me:$LINENO: result: no" >&5
28722 echo "${ECHO_T}no" >&6; }
28723            { { echo "$as_me:$LINENO: error: Unable to find DBD drivers in standard locations" >&5
28724 echo "$as_me: error: Unable to find DBD drivers in standard locations" >&2;}
28725    { (exit 1); exit 1; }; }
28726         fi
28727      else
28728         if test -f $withval/dbi.h; then
28729            DBI_INCDIR=$withval
28730            DBI_LIBDIR=$withval
28731            DBI_BINDIR=$withval
28732         elif test -f $withval/include/dbi/dbi.h; then
28733            DBI_INCDIR=$withval/include
28734            if test -d $withval/lib64; then
28735               DBI_LIBDIR=$withval/lib64
28736            else
28737               DBI_LIBDIR=$withval/lib
28738            fi
28739            DBI_BINDIR=$withval/bin
28740         else
28741            { echo "$as_me:$LINENO: result: no" >&5
28742 echo "${ECHO_T}no" >&6; }
28743            { { echo "$as_me:$LINENO: error: Invalid DBI directory $withval - unable to find dbi.h under $withval" >&5
28744 echo "$as_me: error: Invalid DBI directory $withval - unable to find dbi.h under $withval" >&2;}
28745    { (exit 1); exit 1; }; }
28746         fi
28747         if test -d $withval/dbd; then
28748            DRIVERDIR=$withval/dbd
28749         elif test -d $withval/lib/; then
28750            if test -d $withval/lib64/dbd; then
28751               DRIVERDIR=$withval/lib64/dbd
28752            else
28753               DRIVERDIR=$withval/lib/dbd
28754            fi
28755         elif test -d $withval/lib64/dbd; then
28756            DRIVERDIR=$withval/lib64/dbd
28757         else
28758            { echo "$as_me:$LINENO: result: no" >&5
28759 echo "${ECHO_T}no" >&6; }
28760            { { echo "$as_me:$LINENO: error: Invalid DBD driver directory $withval - unable to find DBD drivers under $withval" >&5
28761 echo "$as_me: error: Invalid DBD driver directory $withval - unable to find DBD drivers under $withval" >&2;}
28762    { (exit 1); exit 1; }; }
28763         fi
28764      fi
28765      SQL_INCLUDE=-I$DBI_INCDIR
28766      SQL_LFLAGS="-L$DBI_LIBDIR -ldbi"
28767      SQL_BINDIR=$DBI_BINDIR
28768      SQL_LIB=$DBI_LIBDIR/libdbi.a
28769      DBI_DBD_DRIVERDIR="-D DBI_DRIVER_DIR=\\\"$DRIVERDIR\\\""
28770
28771
28772 cat >>confdefs.h <<\_ACEOF
28773 #define HAVE_DBI 1
28774 _ACEOF
28775
28776      { echo "$as_me:$LINENO: result: yes" >&5
28777 echo "${ECHO_T}yes" >&6; }
28778      db_found=yes
28779      support_dbi=yes
28780      db_type=DBI
28781      DB_TYPE=dbi
28782      uncomment_dbi=" "
28783
28784   else
28785      { echo "$as_me:$LINENO: result: no" >&5
28786 echo "${ECHO_T}no" >&6; }
28787   fi
28788
28789 else
28790
28791   { echo "$as_me:$LINENO: result: no" >&5
28792 echo "${ECHO_T}no" >&6; }
28793
28794 fi
28795
28796
28797
28798
28799
28800
28801
28802
28803
28804
28805 db_found=no
28806 db_prog=no
28807 { echo "$as_me:$LINENO: checking for DBI drivers support" >&5
28808 echo $ECHO_N "checking for DBI drivers support... $ECHO_C" >&6; }
28809
28810 # Check whether --with-dbi-driver was given.
28811 if test "${with_dbi_driver+set}" = set; then
28812   withval=$with_dbi_driver;
28813   if test "$withval" != "no"; then
28814      case $withval in
28815         "mysql")
28816            db_prog="mysql"
28817            if test -f /usr/local/mysql/bin/mysql; then
28818               SQL_BINDIR=/usr/local/mysql/bin
28819               if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
28820                  -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
28821                  SQL_LIBDIR=/usr/local/mysql/lib64/mysql
28822               else
28823                  SQL_LIBDIR=/usr/local/mysql/lib/mysql
28824               fi
28825            elif test -f /usr/bin/mysql; then
28826               SQL_BINDIR=/usr/bin
28827               if test -f /usr/lib64/mysql/libmysqlclient_r.a \
28828                   -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
28829                   SQL_LIBDIR=/usr/lib64/mysql
28830               elif test -f /usr/lib/mysql/libmysqlclient_r.a \
28831                   -o -f /usr/lib/mysql/libmysqlclient_r.so; then
28832                   SQL_LIBDIR=/usr/lib/mysql
28833               else
28834                   SQL_LIBDIR=/usr/lib
28835               fi
28836            elif test -f /usr/local/bin/mysql; then
28837               SQL_BINDIR=/usr/local/bin
28838               if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
28839                   -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
28840                   SQL_LIBDIR=/usr/local/lib64/mysql
28841               elif test -f /usr/local/lib/mysql/libmysqlclient_r.a \
28842                   -o -f /usr/local/lib/mysql/libmysqlclient_r.so; then
28843                   SQL_LIBDIR=/usr/local/lib/mysql
28844               else
28845                   SQL_LIBDIR=/usr/local/lib
28846               fi
28847            elif test -f $withval/bin/mysql; then
28848               SQL_BINDIR=$withval/bin
28849               if test -f $withval/lib64/mysql/libmysqlclient_r.a \
28850                   -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
28851                   SQL_LIBDIR=$withval/lib64/mysql
28852               elif test -f $withval/lib64/libmysqlclient_r.a \
28853                   -o -f $withval/lib64/libmysqlclient_r.so; then
28854                   SQL_LIBDIR=$withval/lib64
28855               elif test -f $withval/lib/libmysqlclient_r.a \
28856                   -o -f $withval/lib/libmysqlclient_r.so; then
28857                   SQL_LIBDIR=$withval/lib/
28858               else
28859                   SQL_LIBDIR=$withval/lib/mysql
28860               fi
28861            else
28862               { echo "$as_me:$LINENO: result: no" >&5
28863 echo "${ECHO_T}no" >&6; }
28864               { { echo "$as_me:$LINENO: error: Unable to find mysql in standard locations" >&5
28865 echo "$as_me: error: Unable to find mysql in standard locations" >&2;}
28866    { (exit 1); exit 1; }; }
28867            fi
28868            if test -f $SQL_LIBDIR/libmysqlclient_r.so; then
28869               DB_PROG_LIB=$SQL_LIBDIR/libmysqlclient_r.so
28870            else
28871               DB_PROG_LIB=$SQL_LIBDIR/libmysqlclient_r.a
28872            fi
28873         ;;
28874         "postgresql")
28875            db_prog="postgresql"
28876            PG_CONFIG=`which pg_config`
28877            if test -n "$PG_CONFIG"; then
28878               SQL_BINDIR=`"$PG_CONFIG" --bindir`
28879               SQL_LIBDIR=`"$PG_CONFIG" --libdir`
28880            elif test -f /usr/local/bin/psql; then
28881               SQL_BINDIR=/usr/local/bin
28882               if test -d /usr/local/lib64; then
28883                  SQL_LIBDIR=/usr/local/lib64
28884               else
28885                  SQL_LIBDIR=/usr/local/lib
28886               fi
28887            elif test -f /usr/bin/psql; then
28888               SQL_BINDIR=/usr/local/bin
28889               if test -d /usr/lib64/postgresql; then
28890                  SQL_LIBDIR=/usr/lib64/postgresql
28891               elif test -d /usr/lib/postgresql; then
28892                  SQL_LIBDIR=/usr/lib/postgresql
28893               elif test -d /usr/lib64; then
28894                  SQL_LIBDIR=/usr/lib64
28895               else
28896                  SQL_LIBDIR=/usr/lib
28897               fi
28898            elif test -f $withval/bin/psql; then
28899               SQL_BINDIR=$withval/bin
28900               if test -d $withval/lib64; then
28901                  SQL_LIBDIR=$withval/lib64
28902               else
28903                  SQL_LIBDIR=$withval/lib
28904               fi
28905            else
28906               { echo "$as_me:$LINENO: result: no" >&5
28907 echo "${ECHO_T}no" >&6; }
28908               { { echo "$as_me:$LINENO: error: Unable to find psql in standard locations" >&5
28909 echo "$as_me: error: Unable to find psql in standard locations" >&2;}
28910    { (exit 1); exit 1; }; }
28911            fi
28912            if test -f $SQL_LIBDIR/libpq.so; then
28913               DB_PROG_LIB=$SQL_LIBDIR/libpq.so
28914            else
28915               DB_PROG_LIB=$SQL_LIBDIR/libpq.a
28916            fi
28917         ;;
28918         "sqlite")
28919            db_prog="sqlite"
28920            if test -f /usr/local/bin/sqlite; then
28921               SQL_BINDIR=/usr/local/bin
28922               if test -d /usr/local/lib64; then
28923                  SQL_LIBDIR=/usr/local/lib64
28924               else
28925                  SQL_LIBDIR=/usr/local/lib
28926               fi
28927            elif test -f /usr/bin/sqlite; then
28928               SQL_BINDIR=/usr/bin
28929               if test -d /usr/lib64; then
28930                  SQL_LIBDIR=/usr/lib64
28931               else
28932                  SQL_LIBDIR=/usr/lib
28933               fi
28934            elif test -f $withval/bin/sqlite; then
28935               SQL_BINDIR=$withval/bin
28936               if test -d $withval/lib64; then
28937                  SQL_LIBDIR=$withval/lib64
28938               else
28939                  SQL_LIBDIR=$withval/lib
28940               fi
28941            else
28942               { echo "$as_me:$LINENO: result: no" >&5
28943 echo "${ECHO_T}no" >&6; }
28944               { { echo "$as_me:$LINENO: error: Unable to find sqlite in standard locations" >&5
28945 echo "$as_me: error: Unable to find sqlite in standard locations" >&2;}
28946    { (exit 1); exit 1; }; }
28947            fi
28948            if test -f $SQL_LIBDIR/libsqlite.so; then
28949               DB_PROG_LIB=$SQL_LIBDIR/libsqlite.so
28950            else
28951               DB_PROG_LIB=$SQL_LIBDIR/libsqlite.a
28952            fi
28953         ;;
28954         "sqlite3")
28955            db_prog="sqlite3"
28956            if test -f /usr/local/bin/sqlite3; then
28957               SQL_BINDIR=/usr/local/bin
28958               if test -d /usr/local/lib64; then
28959                  SQL_LIBDIR=/usr/local/lib64
28960               else
28961                  SQL_LIBDIR=/usr/local/lib
28962               fi
28963            elif test -f /usr/bin/sqlite3; then
28964               SQL_BINDIR=/usr/bin
28965               if test -d /usr/lib64; then
28966                  SQL_LIBDIR=/usr/lib64
28967               else
28968                  SQL_LIBDIR=/usr/lib
28969               fi
28970            elif test -f $withval/bin/sqlite3; then
28971               SQL_BINDIR=$withval/bin
28972               if test -d $withval/lib64; then
28973                  SQL_LIBDIR=$withval/lib64
28974               else
28975                  SQL_LIBDIR=$withval/lib
28976               fi
28977            else
28978               { echo "$as_me:$LINENO: result: no" >&5
28979 echo "${ECHO_T}no" >&6; }
28980               { { echo "$as_me:$LINENO: error: Unable to find sqlite in standard locations" >&5
28981 echo "$as_me: error: Unable to find sqlite in standard locations" >&2;}
28982    { (exit 1); exit 1; }; }
28983            fi
28984            if test -f $SQL_LIBDIR/libsqlite3.so; then
28985               DB_PROG_LIB=$SQL_LIBDIR/libsqlite3.so
28986            else
28987               DB_PROG_LIB=$SQL_LIBDIR/libsqlite3.a
28988            fi
28989         ;;
28990         *)
28991            { echo "$as_me:$LINENO: result: no" >&5
28992 echo "${ECHO_T}no" >&6; }
28993            { { echo "$as_me:$LINENO: error: Unable to set DBI driver. $withval is not supported" >&5
28994 echo "$as_me: error: Unable to set DBI driver. $withval is not supported" >&2;}
28995    { (exit 1); exit 1; }; }
28996         ;;
28997      esac
28998
28999      { echo "$as_me:$LINENO: result: yes" >&5
29000 echo "${ECHO_T}yes" >&6; }
29001      DB_PROG=$db_prog
29002   else
29003      { echo "$as_me:$LINENO: result: no" >&5
29004 echo "${ECHO_T}no" >&6; }
29005   fi
29006
29007 else
29008
29009   { echo "$as_me:$LINENO: result: no" >&5
29010 echo "${ECHO_T}no" >&6; }
29011
29012 fi
29013
29014
29015
29016
29017
29018
29019
29020
29021
29022
29023 support_batch_insert=no
29024 A=`test -f $SQL_LIB && nm $SQL_LIB | grep pthread_mutex_lock`
29025 pkg=$?
29026 if test $pkg = 0; then
29027    support_batch_insert=yes
29028    # Check whether --enable-batch-insert was given.
29029 if test "${enable_batch_insert+set}" = set; then
29030   enableval=$enable_batch_insert;
29031           if test x$enableval = xno; then
29032              support_batch_insert=no
29033           else
29034              support_batch_insert=yes
29035           fi
29036
29037
29038 fi
29039
29040 fi
29041
29042 if test x$DB_TYPE = xpostgresql; then
29043    { echo "$as_me:$LINENO: checking for PQisthreadsafe in -lpq" >&5
29044 echo $ECHO_N "checking for PQisthreadsafe in -lpq... $ECHO_C" >&6; }
29045 if test "${ac_cv_lib_pq_PQisthreadsafe+set}" = set; then
29046   echo $ECHO_N "(cached) $ECHO_C" >&6
29047 else
29048   ac_check_lib_save_LIBS=$LIBS
29049 LIBS="-lpq  $LIBS"
29050 cat >conftest.$ac_ext <<_ACEOF
29051 /* confdefs.h.  */
29052 _ACEOF
29053 cat confdefs.h >>conftest.$ac_ext
29054 cat >>conftest.$ac_ext <<_ACEOF
29055 /* end confdefs.h.  */
29056
29057 /* Override any GCC internal prototype to avoid an error.
29058    Use char because int might match the return type of a GCC
29059    builtin and then its argument prototype would still apply.  */
29060 #ifdef __cplusplus
29061 extern "C"
29062 #endif
29063 char PQisthreadsafe ();
29064 int
29065 main ()
29066 {
29067 return PQisthreadsafe ();
29068   ;
29069   return 0;
29070 }
29071 _ACEOF
29072 rm -f conftest.$ac_objext conftest$ac_exeext
29073 if { (ac_try="$ac_link"
29074 case "(($ac_try" in
29075   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29076   *) ac_try_echo=$ac_try;;
29077 esac
29078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29079   (eval "$ac_link") 2>conftest.er1
29080   ac_status=$?
29081   grep -v '^ *+' conftest.er1 >conftest.err
29082   rm -f conftest.er1
29083   cat conftest.err >&5
29084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29085   (exit $ac_status); } && {
29086          test -z "$ac_c_werror_flag" ||
29087          test ! -s conftest.err
29088        } && test -s conftest$ac_exeext &&
29089        $as_test_x conftest$ac_exeext; then
29090   ac_cv_lib_pq_PQisthreadsafe=yes
29091 else
29092   echo "$as_me: failed program was:" >&5
29093 sed 's/^/| /' conftest.$ac_ext >&5
29094
29095         ac_cv_lib_pq_PQisthreadsafe=no
29096 fi
29097
29098 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29099       conftest$ac_exeext conftest.$ac_ext
29100 LIBS=$ac_check_lib_save_LIBS
29101 fi
29102 { echo "$as_me:$LINENO: result: $ac_cv_lib_pq_PQisthreadsafe" >&5
29103 echo "${ECHO_T}$ac_cv_lib_pq_PQisthreadsafe" >&6; }
29104 if test $ac_cv_lib_pq_PQisthreadsafe = yes; then
29105
29106 cat >>confdefs.h <<\_ACEOF
29107 #define HAVE_PQISTHREADSAFE 1
29108 _ACEOF
29109
29110 fi
29111
29112    { echo "$as_me:$LINENO: checking for PQputCopyData in -lpq" >&5
29113 echo $ECHO_N "checking for PQputCopyData in -lpq... $ECHO_C" >&6; }
29114 if test "${ac_cv_lib_pq_PQputCopyData+set}" = set; then
29115   echo $ECHO_N "(cached) $ECHO_C" >&6
29116 else
29117   ac_check_lib_save_LIBS=$LIBS
29118 LIBS="-lpq  $LIBS"
29119 cat >conftest.$ac_ext <<_ACEOF
29120 /* confdefs.h.  */
29121 _ACEOF
29122 cat confdefs.h >>conftest.$ac_ext
29123 cat >>conftest.$ac_ext <<_ACEOF
29124 /* end confdefs.h.  */
29125
29126 /* Override any GCC internal prototype to avoid an error.
29127    Use char because int might match the return type of a GCC
29128    builtin and then its argument prototype would still apply.  */
29129 #ifdef __cplusplus
29130 extern "C"
29131 #endif
29132 char PQputCopyData ();
29133 int
29134 main ()
29135 {
29136 return PQputCopyData ();
29137   ;
29138   return 0;
29139 }
29140 _ACEOF
29141 rm -f conftest.$ac_objext conftest$ac_exeext
29142 if { (ac_try="$ac_link"
29143 case "(($ac_try" in
29144   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29145   *) ac_try_echo=$ac_try;;
29146 esac
29147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29148   (eval "$ac_link") 2>conftest.er1
29149   ac_status=$?
29150   grep -v '^ *+' conftest.er1 >conftest.err
29151   rm -f conftest.er1
29152   cat conftest.err >&5
29153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29154   (exit $ac_status); } && {
29155          test -z "$ac_c_werror_flag" ||
29156          test ! -s conftest.err
29157        } && test -s conftest$ac_exeext &&
29158        $as_test_x conftest$ac_exeext; then
29159   ac_cv_lib_pq_PQputCopyData=yes
29160 else
29161   echo "$as_me: failed program was:" >&5
29162 sed 's/^/| /' conftest.$ac_ext >&5
29163
29164         ac_cv_lib_pq_PQputCopyData=no
29165 fi
29166
29167 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29168       conftest$ac_exeext conftest.$ac_ext
29169 LIBS=$ac_check_lib_save_LIBS
29170 fi
29171 { echo "$as_me:$LINENO: result: $ac_cv_lib_pq_PQputCopyData" >&5
29172 echo "${ECHO_T}$ac_cv_lib_pq_PQputCopyData" >&6; }
29173 if test $ac_cv_lib_pq_PQputCopyData = yes; then
29174
29175 cat >>confdefs.h <<\_ACEOF
29176 #define HAVE_PQ_COPY 1
29177 _ACEOF
29178
29179 fi
29180
29181    if test "x$ac_cv_lib_pq_PQputCopyData" != "xyes"
29182     then
29183         support_batch_insert=no
29184    fi
29185 fi
29186
29187 if test x$DB_TYPE = xdbi; then
29188    DB_TYPE=$DB_PROG
29189    db_type=$DB_PROG
29190    pkg=1
29191       if test $DB_PROG = postgresql; then
29192       { echo "$as_me:$LINENO: checking for PQisthreadsafe in -lpq" >&5
29193 echo $ECHO_N "checking for PQisthreadsafe in -lpq... $ECHO_C" >&6; }
29194 if test "${ac_cv_lib_pq_PQisthreadsafe+set}" = set; then
29195   echo $ECHO_N "(cached) $ECHO_C" >&6
29196 else
29197   ac_check_lib_save_LIBS=$LIBS
29198 LIBS="-lpq  $LIBS"
29199 cat >conftest.$ac_ext <<_ACEOF
29200 /* confdefs.h.  */
29201 _ACEOF
29202 cat confdefs.h >>conftest.$ac_ext
29203 cat >>conftest.$ac_ext <<_ACEOF
29204 /* end confdefs.h.  */
29205
29206 /* Override any GCC internal prototype to avoid an error.
29207    Use char because int might match the return type of a GCC
29208    builtin and then its argument prototype would still apply.  */
29209 #ifdef __cplusplus
29210 extern "C"
29211 #endif
29212 char PQisthreadsafe ();
29213 int
29214 main ()
29215 {
29216 return PQisthreadsafe ();
29217   ;
29218   return 0;
29219 }
29220 _ACEOF
29221 rm -f conftest.$ac_objext conftest$ac_exeext
29222 if { (ac_try="$ac_link"
29223 case "(($ac_try" in
29224   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29225   *) ac_try_echo=$ac_try;;
29226 esac
29227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29228   (eval "$ac_link") 2>conftest.er1
29229   ac_status=$?
29230   grep -v '^ *+' conftest.er1 >conftest.err
29231   rm -f conftest.er1
29232   cat conftest.err >&5
29233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29234   (exit $ac_status); } && {
29235          test -z "$ac_c_werror_flag" ||
29236          test ! -s conftest.err
29237        } && test -s conftest$ac_exeext &&
29238        $as_test_x conftest$ac_exeext; then
29239   ac_cv_lib_pq_PQisthreadsafe=yes
29240 else
29241   echo "$as_me: failed program was:" >&5
29242 sed 's/^/| /' conftest.$ac_ext >&5
29243
29244         ac_cv_lib_pq_PQisthreadsafe=no
29245 fi
29246
29247 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29248       conftest$ac_exeext conftest.$ac_ext
29249 LIBS=$ac_check_lib_save_LIBS
29250 fi
29251 { echo "$as_me:$LINENO: result: $ac_cv_lib_pq_PQisthreadsafe" >&5
29252 echo "${ECHO_T}$ac_cv_lib_pq_PQisthreadsafe" >&6; }
29253 if test $ac_cv_lib_pq_PQisthreadsafe = yes; then
29254   cat >>confdefs.h <<\_ACEOF
29255 #define HAVE_PQISTHREADSAFE 1
29256 _ACEOF
29257
29258 fi
29259
29260       { echo "$as_me:$LINENO: checking for PQputCopyData in -lpq" >&5
29261 echo $ECHO_N "checking for PQputCopyData in -lpq... $ECHO_C" >&6; }
29262 if test "${ac_cv_lib_pq_PQputCopyData+set}" = set; then
29263   echo $ECHO_N "(cached) $ECHO_C" >&6
29264 else
29265   ac_check_lib_save_LIBS=$LIBS
29266 LIBS="-lpq  $LIBS"
29267 cat >conftest.$ac_ext <<_ACEOF
29268 /* confdefs.h.  */
29269 _ACEOF
29270 cat confdefs.h >>conftest.$ac_ext
29271 cat >>conftest.$ac_ext <<_ACEOF
29272 /* end confdefs.h.  */
29273
29274 /* Override any GCC internal prototype to avoid an error.
29275    Use char because int might match the return type of a GCC
29276    builtin and then its argument prototype would still apply.  */
29277 #ifdef __cplusplus
29278 extern "C"
29279 #endif
29280 char PQputCopyData ();
29281 int
29282 main ()
29283 {
29284 return PQputCopyData ();
29285   ;
29286   return 0;
29287 }
29288 _ACEOF
29289 rm -f conftest.$ac_objext conftest$ac_exeext
29290 if { (ac_try="$ac_link"
29291 case "(($ac_try" in
29292   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29293   *) ac_try_echo=$ac_try;;
29294 esac
29295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29296   (eval "$ac_link") 2>conftest.er1
29297   ac_status=$?
29298   grep -v '^ *+' conftest.er1 >conftest.err
29299   rm -f conftest.er1
29300   cat conftest.err >&5
29301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29302   (exit $ac_status); } && {
29303          test -z "$ac_c_werror_flag" ||
29304          test ! -s conftest.err
29305        } && test -s conftest$ac_exeext &&
29306        $as_test_x conftest$ac_exeext; then
29307   ac_cv_lib_pq_PQputCopyData=yes
29308 else
29309   echo "$as_me: failed program was:" >&5
29310 sed 's/^/| /' conftest.$ac_ext >&5
29311
29312         ac_cv_lib_pq_PQputCopyData=no
29313 fi
29314
29315 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29316       conftest$ac_exeext conftest.$ac_ext
29317 LIBS=$ac_check_lib_save_LIBS
29318 fi
29319 { echo "$as_me:$LINENO: result: $ac_cv_lib_pq_PQputCopyData" >&5
29320 echo "${ECHO_T}$ac_cv_lib_pq_PQputCopyData" >&6; }
29321 if test $ac_cv_lib_pq_PQputCopyData = yes; then
29322   cat >>confdefs.h <<\_ACEOF
29323 #define HAVE_PQ_COPY 1
29324 _ACEOF
29325
29326 fi
29327
29328       test "x$ac_cv_lib_pq_PQputCopyData" != "xyes"
29329       pkg=$?
29330    fi
29331
29332    if test $DB_PROG = mysql; then
29333       A=`test -f $SQL_LIB && nm $DB_PROG_LIB | grep pthread_mutex_lock`
29334       pkg=$?
29335    fi
29336
29337    if test $DB_PROG = sqlite3; then
29338       A=`test -f $SQL_LIB && nm $DB_PROG_LIB | grep pthread_mutex_lock`
29339       pkg=$?
29340       { echo "$as_me:$LINENO: checking for sqlite3_threadsafe in -lsqlite3" >&5
29341 echo $ECHO_N "checking for sqlite3_threadsafe in -lsqlite3... $ECHO_C" >&6; }
29342 if test "${ac_cv_lib_sqlite3_sqlite3_threadsafe+set}" = set; then
29343   echo $ECHO_N "(cached) $ECHO_C" >&6
29344 else
29345   ac_check_lib_save_LIBS=$LIBS
29346 LIBS="-lsqlite3  $LIBS"
29347 cat >conftest.$ac_ext <<_ACEOF
29348 /* confdefs.h.  */
29349 _ACEOF
29350 cat confdefs.h >>conftest.$ac_ext
29351 cat >>conftest.$ac_ext <<_ACEOF
29352 /* end confdefs.h.  */
29353
29354 /* Override any GCC internal prototype to avoid an error.
29355    Use char because int might match the return type of a GCC
29356    builtin and then its argument prototype would still apply.  */
29357 #ifdef __cplusplus
29358 extern "C"
29359 #endif
29360 char sqlite3_threadsafe ();
29361 int
29362 main ()
29363 {
29364 return sqlite3_threadsafe ();
29365   ;
29366   return 0;
29367 }
29368 _ACEOF
29369 rm -f conftest.$ac_objext conftest$ac_exeext
29370 if { (ac_try="$ac_link"
29371 case "(($ac_try" in
29372   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29373   *) ac_try_echo=$ac_try;;
29374 esac
29375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29376   (eval "$ac_link") 2>conftest.er1
29377   ac_status=$?
29378   grep -v '^ *+' conftest.er1 >conftest.err
29379   rm -f conftest.er1
29380   cat conftest.err >&5
29381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29382   (exit $ac_status); } && {
29383          test -z "$ac_c_werror_flag" ||
29384          test ! -s conftest.err
29385        } && test -s conftest$ac_exeext &&
29386        $as_test_x conftest$ac_exeext; then
29387   ac_cv_lib_sqlite3_sqlite3_threadsafe=yes
29388 else
29389   echo "$as_me: failed program was:" >&5
29390 sed 's/^/| /' conftest.$ac_ext >&5
29391
29392         ac_cv_lib_sqlite3_sqlite3_threadsafe=no
29393 fi
29394
29395 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29396       conftest$ac_exeext conftest.$ac_ext
29397 LIBS=$ac_check_lib_save_LIBS
29398 fi
29399 { echo "$as_me:$LINENO: result: $ac_cv_lib_sqlite3_sqlite3_threadsafe" >&5
29400 echo "${ECHO_T}$ac_cv_lib_sqlite3_sqlite3_threadsafe" >&6; }
29401 if test $ac_cv_lib_sqlite3_sqlite3_threadsafe = yes; then
29402
29403 cat >>confdefs.h <<\_ACEOF
29404 #define HAVE_SQLITE3_THREADSAFE 1
29405 _ACEOF
29406
29407 fi
29408
29409    fi
29410
29411    if test $pkg = 0; then
29412       # Check whether --enable-batch-insert was given.
29413 if test "${enable_batch_insert+set}" = set; then
29414   enableval=$enable_batch_insert;
29415              if test x$enableval = xno; then
29416                 support_batch_insert=no
29417              else
29418                 support_batch_insert=yes
29419              fi
29420
29421
29422 fi
29423
29424    fi
29425 else
29426       uncomment_dbi="#"
29427 fi
29428
29429
29430
29431 if test x$DB_TYPE = xingres; then
29432    support_batch_insert=yes
29433 fi
29434
29435 if test $support_batch_insert = yes ; then
29436
29437 cat >>confdefs.h <<\_ACEOF
29438 #define HAVE_BATCH_FILE_INSERT 1
29439 _ACEOF
29440
29441 fi
29442
29443 cat >>confdefs.h <<\_ACEOF
29444 #define PROTOTYPES 1
29445 _ACEOF
29446
29447
29448 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
29449    if test -z "$CCOPTS"; then
29450       CCOPTS='-g -O2 -Wall'
29451    fi
29452    CFLAGS="$CCOPTS"
29453 fi
29454
29455
29456
29457 largefile_support="no"
29458
29459    # Check whether --enable-largefile was given.
29460 if test "${enable_largefile+set}" = set; then
29461   enableval=$enable_largefile;
29462 fi
29463
29464    if test "$enable_largefile" != no; then
29465      if test -n "$ac_tool_prefix"; then
29466   # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
29467 set dummy ${ac_tool_prefix}getconf; ac_word=$2
29468 { echo "$as_me:$LINENO: checking for $ac_word" >&5
29469 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
29470 if test "${ac_cv_prog_GETCONF+set}" = set; then
29471   echo $ECHO_N "(cached) $ECHO_C" >&6
29472 else
29473   if test -n "$GETCONF"; then
29474   ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
29475 else
29476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29477 for as_dir in $PATH
29478 do
29479   IFS=$as_save_IFS
29480   test -z "$as_dir" && as_dir=.
29481   for ac_exec_ext in '' $ac_executable_extensions; do
29482   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29483     ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
29484     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29485     break 2
29486   fi
29487 done
29488 done
29489 IFS=$as_save_IFS
29490
29491 fi
29492 fi
29493 GETCONF=$ac_cv_prog_GETCONF
29494 if test -n "$GETCONF"; then
29495   { echo "$as_me:$LINENO: result: $GETCONF" >&5
29496 echo "${ECHO_T}$GETCONF" >&6; }
29497 else
29498   { echo "$as_me:$LINENO: result: no" >&5
29499 echo "${ECHO_T}no" >&6; }
29500 fi
29501
29502
29503 fi
29504 if test -z "$ac_cv_prog_GETCONF"; then
29505   ac_ct_GETCONF=$GETCONF
29506   # Extract the first word of "getconf", so it can be a program name with args.
29507 set dummy getconf; ac_word=$2
29508 { echo "$as_me:$LINENO: checking for $ac_word" >&5
29509 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
29510 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
29511   echo $ECHO_N "(cached) $ECHO_C" >&6
29512 else
29513   if test -n "$ac_ct_GETCONF"; then
29514   ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
29515 else
29516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29517 for as_dir in $PATH
29518 do
29519   IFS=$as_save_IFS
29520   test -z "$as_dir" && as_dir=.
29521   for ac_exec_ext in '' $ac_executable_extensions; do
29522   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29523     ac_cv_prog_ac_ct_GETCONF="getconf"
29524     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29525     break 2
29526   fi
29527 done
29528 done
29529 IFS=$as_save_IFS
29530
29531 fi
29532 fi
29533 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
29534 if test -n "$ac_ct_GETCONF"; then
29535   { echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
29536 echo "${ECHO_T}$ac_ct_GETCONF" >&6; }
29537 else
29538   { echo "$as_me:$LINENO: result: no" >&5
29539 echo "${ECHO_T}no" >&6; }
29540 fi
29541
29542   if test "x$ac_ct_GETCONF" = x; then
29543     GETCONF=""
29544   else
29545     case $cross_compiling:$ac_tool_warned in
29546 yes:)
29547 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
29548 whose name does not start with the host triplet.  If you think this
29549 configuration is useful to you, please write to autoconf@gnu.org." >&5
29550 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
29551 whose name does not start with the host triplet.  If you think this
29552 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
29553 ac_tool_warned=yes ;;
29554 esac
29555     GETCONF=$ac_ct_GETCONF
29556   fi
29557 else
29558   GETCONF="$ac_cv_prog_GETCONF"
29559 fi
29560
29561      { echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
29562 echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" >&6; }
29563 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
29564   echo $ECHO_N "(cached) $ECHO_C" >&6
29565 else
29566   ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
29567         ac_cv_sys_largefile_CFLAGS=no
29568         case "$host_os" in
29569            # IRIX 6.2 and later require cc -n32.
29570            irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
29571              if test "$GCC" != yes; then
29572                ac_cv_sys_largefile_CFLAGS=-n32
29573              fi
29574              ac_save_CC="$CC"
29575              CC="$CC $ac_cv_sys_largefile_CFLAGS"
29576              cat >conftest.$ac_ext <<_ACEOF
29577 /* confdefs.h.  */
29578 _ACEOF
29579 cat confdefs.h >>conftest.$ac_ext
29580 cat >>conftest.$ac_ext <<_ACEOF
29581 /* end confdefs.h.  */
29582
29583 int
29584 main ()
29585 {
29586
29587   ;
29588   return 0;
29589 }
29590 _ACEOF
29591 rm -f conftest.$ac_objext conftest$ac_exeext
29592 if { (ac_try="$ac_link"
29593 case "(($ac_try" in
29594   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29595   *) ac_try_echo=$ac_try;;
29596 esac
29597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29598   (eval "$ac_link") 2>conftest.er1
29599   ac_status=$?
29600   grep -v '^ *+' conftest.er1 >conftest.err
29601   rm -f conftest.er1
29602   cat conftest.err >&5
29603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29604   (exit $ac_status); } && {
29605          test -z "$ac_c_werror_flag" ||
29606          test ! -s conftest.err
29607        } && test -s conftest$ac_exeext &&
29608        $as_test_x conftest$ac_exeext; then
29609   :
29610 else
29611   echo "$as_me: failed program was:" >&5
29612 sed 's/^/| /' conftest.$ac_ext >&5
29613
29614         ac_cv_sys_largefile_CFLAGS=no
29615 fi
29616
29617 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29618       conftest$ac_exeext conftest.$ac_ext
29619              CC="$ac_save_CC"
29620            esac
29621       }
29622 fi
29623 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
29624 echo "${ECHO_T}$ac_cv_sys_largefile_CFLAGS" >&6; }
29625      { echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
29626 echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" >&6; }
29627 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
29628   echo $ECHO_N "(cached) $ECHO_C" >&6
29629 else
29630   ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
29631         ac_cv_sys_largefile_LDFLAGS=no
29632
29633       }
29634 fi
29635 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
29636 echo "${ECHO_T}$ac_cv_sys_largefile_LDFLAGS" >&6; }
29637      { echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
29638 echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" >&6; }
29639 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
29640   echo $ECHO_N "(cached) $ECHO_C" >&6
29641 else
29642   ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
29643         ac_cv_sys_largefile_LIBS=no
29644
29645       }
29646 fi
29647 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
29648 echo "${ECHO_T}$ac_cv_sys_largefile_LIBS" >&6; }
29649
29650      for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
29651        case "$ac_flag" in
29652        no) ;;
29653        -D_FILE_OFFSET_BITS=*) ;;
29654        -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
29655        -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
29656        -D?* | -I?*)
29657          case "$ac_flag" in
29658    no) ;;
29659    ?*)
29660      case "$CPPFLAGS" in
29661      '') CPPFLAGS="$ac_flag" ;;
29662      *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
29663      esac ;;
29664    esac ;;
29665        *)
29666          case "$ac_flag" in
29667    no) ;;
29668    ?*)
29669      case "$CFLAGS" in
29670      '') CFLAGS="$ac_flag" ;;
29671      *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
29672      esac ;;
29673    esac ;;
29674        esac
29675      done
29676      case "$ac_cv_sys_largefile_LDFLAGS" in
29677    no) ;;
29678    ?*)
29679      case "$LDFLAGS" in
29680      '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
29681      *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
29682      esac ;;
29683    esac
29684      case "$ac_cv_sys_largefile_LIBS" in
29685    no) ;;
29686    ?*)
29687      case "$LIBS" in
29688      '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
29689      *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
29690      esac ;;
29691    esac
29692      { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
29693 echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" >&6; }
29694 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
29695   echo $ECHO_N "(cached) $ECHO_C" >&6
29696 else
29697   ac_cv_sys_file_offset_bits=no
29698       ac_cv_sys_file_offset_bits=64
29699       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
29700         case "$ac_flag" in
29701         -D_FILE_OFFSET_BITS)
29702           ac_cv_sys_file_offset_bits=1 ;;
29703         -D_FILE_OFFSET_BITS=*)
29704           ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
29705         esac
29706       done
29707
29708 fi
29709 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
29710 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
29711    if test "$ac_cv_sys_file_offset_bits" != no; then
29712
29713 cat >>confdefs.h <<_ACEOF
29714 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
29715 _ACEOF
29716
29717    fi
29718      { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
29719 echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" >&6; }
29720 if test "${ac_cv_sys_largefile_source+set}" = set; then
29721   echo $ECHO_N "(cached) $ECHO_C" >&6
29722 else
29723   ac_cv_sys_largefile_source=no
29724       ac_cv_sys_largefile_source=1
29725       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
29726         case "$ac_flag" in
29727         -D_LARGEFILE_SOURCE)
29728           ac_cv_sys_largefile_source=1 ;;
29729         -D_LARGEFILE_SOURCE=*)
29730           ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
29731         esac
29732       done
29733
29734 fi
29735 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
29736 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
29737    if test "$ac_cv_sys_largefile_source" != no; then
29738
29739 cat >>confdefs.h <<_ACEOF
29740 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
29741 _ACEOF
29742
29743    fi
29744      { echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
29745 echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" >&6; }
29746 if test "${ac_cv_sys_large_files+set}" = set; then
29747   echo $ECHO_N "(cached) $ECHO_C" >&6
29748 else
29749   ac_cv_sys_large_files=no
29750       ac_cv_sys_large_files=1
29751       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
29752         case "$ac_flag" in
29753         -D_LARGE_FILES)
29754           ac_cv_sys_large_files=1 ;;
29755         -D_LARGE_FILES=*)
29756           ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
29757         esac
29758       done
29759
29760 fi
29761 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
29762 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
29763    if test "$ac_cv_sys_large_files" != no; then
29764
29765 cat >>confdefs.h <<_ACEOF
29766 #define _LARGE_FILES $ac_cv_sys_large_files
29767 _ACEOF
29768
29769    fi
29770    fi
29771
29772
29773 { echo "$as_me:$LINENO: checking for X" >&5
29774 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
29775
29776
29777 # Check whether --with-x was given.
29778 if test "${with_x+set}" = set; then
29779   withval=$with_x;
29780 fi
29781
29782 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
29783 if test "x$with_x" = xno; then
29784   # The user explicitly disabled X.
29785   have_x=disabled
29786 else
29787   case $x_includes,$x_libraries in #(
29788     *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
29789 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
29790    { (exit 1); exit 1; }; };; #(
29791     *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
29792   echo $ECHO_N "(cached) $ECHO_C" >&6
29793 else
29794   # One or both of the vars are not set, and there is no cached value.
29795 ac_x_includes=no ac_x_libraries=no
29796 rm -f -r conftest.dir
29797 if mkdir conftest.dir; then
29798   cd conftest.dir
29799   cat >Imakefile <<'_ACEOF'
29800 incroot:
29801         @echo incroot='${INCROOT}'
29802 usrlibdir:
29803         @echo usrlibdir='${USRLIBDIR}'
29804 libdir:
29805         @echo libdir='${LIBDIR}'
29806 _ACEOF
29807   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
29808     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
29809     for ac_var in incroot usrlibdir libdir; do
29810       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
29811     done
29812     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
29813     for ac_extension in a so sl; do
29814       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
29815          test -f "$ac_im_libdir/libX11.$ac_extension"; then
29816         ac_im_usrlibdir=$ac_im_libdir; break
29817       fi
29818     done
29819     # Screen out bogus values from the imake configuration.  They are
29820     # bogus both because they are the default anyway, and because
29821     # using them would break gcc on systems where it needs fixed includes.
29822     case $ac_im_incroot in
29823         /usr/include) ac_x_includes= ;;
29824         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
29825     esac
29826     case $ac_im_usrlibdir in
29827         /usr/lib | /lib) ;;
29828         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
29829     esac
29830   fi
29831   cd ..
29832   rm -f -r conftest.dir
29833 fi
29834
29835 # Standard set of common directories for X headers.
29836 # Check X11 before X11Rn because it is often a symlink to the current release.
29837 ac_x_header_dirs='
29838 /usr/X11/include
29839 /usr/X11R6/include
29840 /usr/X11R5/include
29841 /usr/X11R4/include
29842
29843 /usr/include/X11
29844 /usr/include/X11R6
29845 /usr/include/X11R5
29846 /usr/include/X11R4
29847
29848 /usr/local/X11/include
29849 /usr/local/X11R6/include
29850 /usr/local/X11R5/include
29851 /usr/local/X11R4/include
29852
29853 /usr/local/include/X11
29854 /usr/local/include/X11R6
29855 /usr/local/include/X11R5
29856 /usr/local/include/X11R4
29857
29858 /usr/X386/include
29859 /usr/x386/include
29860 /usr/XFree86/include/X11
29861
29862 /usr/include
29863 /usr/local/include
29864 /usr/unsupported/include
29865 /usr/athena/include
29866 /usr/local/x11r5/include
29867 /usr/lpp/Xamples/include
29868
29869 /usr/openwin/include
29870 /usr/openwin/share/include'
29871
29872 if test "$ac_x_includes" = no; then
29873   # Guess where to find include files, by looking for Xlib.h.
29874   # First, try using that file with no special directory specified.
29875   cat >conftest.$ac_ext <<_ACEOF
29876 /* confdefs.h.  */
29877 _ACEOF
29878 cat confdefs.h >>conftest.$ac_ext
29879 cat >>conftest.$ac_ext <<_ACEOF
29880 /* end confdefs.h.  */
29881 #include <X11/Xlib.h>
29882 _ACEOF
29883 if { (ac_try="$ac_cpp conftest.$ac_ext"
29884 case "(($ac_try" in
29885   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29886   *) ac_try_echo=$ac_try;;
29887 esac
29888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29889   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29890   ac_status=$?
29891   grep -v '^ *+' conftest.er1 >conftest.err
29892   rm -f conftest.er1
29893   cat conftest.err >&5
29894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29895   (exit $ac_status); } >/dev/null && {
29896          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29897          test ! -s conftest.err
29898        }; then
29899   # We can compile using X headers with no special include directory.
29900 ac_x_includes=
29901 else
29902   echo "$as_me: failed program was:" >&5
29903 sed 's/^/| /' conftest.$ac_ext >&5
29904
29905   for ac_dir in $ac_x_header_dirs; do
29906   if test -r "$ac_dir/X11/Xlib.h"; then
29907     ac_x_includes=$ac_dir
29908     break
29909   fi
29910 done
29911 fi
29912
29913 rm -f conftest.err conftest.$ac_ext
29914 fi # $ac_x_includes = no
29915
29916 if test "$ac_x_libraries" = no; then
29917   # Check for the libraries.
29918   # See if we find them without any special options.
29919   # Don't add to $LIBS permanently.
29920   ac_save_LIBS=$LIBS
29921   LIBS="-lX11 $LIBS"
29922   cat >conftest.$ac_ext <<_ACEOF
29923 /* confdefs.h.  */
29924 _ACEOF
29925 cat confdefs.h >>conftest.$ac_ext
29926 cat >>conftest.$ac_ext <<_ACEOF
29927 /* end confdefs.h.  */
29928 #include <X11/Xlib.h>
29929 int
29930 main ()
29931 {
29932 XrmInitialize ()
29933   ;
29934   return 0;
29935 }
29936 _ACEOF
29937 rm -f conftest.$ac_objext conftest$ac_exeext
29938 if { (ac_try="$ac_link"
29939 case "(($ac_try" in
29940   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29941   *) ac_try_echo=$ac_try;;
29942 esac
29943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29944   (eval "$ac_link") 2>conftest.er1
29945   ac_status=$?
29946   grep -v '^ *+' conftest.er1 >conftest.err
29947   rm -f conftest.er1
29948   cat conftest.err >&5
29949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29950   (exit $ac_status); } && {
29951          test -z "$ac_c_werror_flag" ||
29952          test ! -s conftest.err
29953        } && test -s conftest$ac_exeext &&
29954        $as_test_x conftest$ac_exeext; then
29955   LIBS=$ac_save_LIBS
29956 # We can link X programs with no special library path.
29957 ac_x_libraries=
29958 else
29959   echo "$as_me: failed program was:" >&5
29960 sed 's/^/| /' conftest.$ac_ext >&5
29961
29962         LIBS=$ac_save_LIBS
29963 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
29964 do
29965   # Don't even attempt the hair of trying to link an X program!
29966   for ac_extension in a so sl; do
29967     if test -r "$ac_dir/libX11.$ac_extension"; then
29968       ac_x_libraries=$ac_dir
29969       break 2
29970     fi
29971   done
29972 done
29973 fi
29974
29975 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29976       conftest$ac_exeext conftest.$ac_ext
29977 fi # $ac_x_libraries = no
29978
29979 case $ac_x_includes,$ac_x_libraries in #(
29980   no,* | *,no | *\'*)
29981     # Didn't find X, or a directory has "'" in its name.
29982     ac_cv_have_x="have_x=no";; #(
29983   *)
29984     # Record where we found X for the cache.
29985     ac_cv_have_x="have_x=yes\
29986         ac_x_includes='$ac_x_includes'\
29987         ac_x_libraries='$ac_x_libraries'"
29988 esac
29989 fi
29990 ;; #(
29991     *) have_x=yes;;
29992   esac
29993   eval "$ac_cv_have_x"
29994 fi # $with_x != no
29995
29996 if test "$have_x" != yes; then
29997   { echo "$as_me:$LINENO: result: $have_x" >&5
29998 echo "${ECHO_T}$have_x" >&6; }
29999   no_x=yes
30000 else
30001   # If each of the values was on the command line, it overrides each guess.
30002   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
30003   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
30004   # Update the cache value to reflect the command line values.
30005   ac_cv_have_x="have_x=yes\
30006         ac_x_includes='$x_includes'\
30007         ac_x_libraries='$x_libraries'"
30008   { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
30009 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
30010 fi
30011
30012 if test "$no_x" = yes; then
30013   # Not all programs may use this symbol, but it does not hurt to define it.
30014
30015 cat >>confdefs.h <<\_ACEOF
30016 #define X_DISPLAY_MISSING 1
30017 _ACEOF
30018
30019   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
30020 else
30021   if test -n "$x_includes"; then
30022     X_CFLAGS="$X_CFLAGS -I$x_includes"
30023   fi
30024
30025   # It would also be nice to do this for all -L options, not just this one.
30026   if test -n "$x_libraries"; then
30027     X_LIBS="$X_LIBS -L$x_libraries"
30028     # For Solaris; some versions of Sun CC require a space after -R and
30029     # others require no space.  Words are not sufficient . . . .
30030     { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
30031 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
30032     ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
30033     ac_xsave_c_werror_flag=$ac_c_werror_flag
30034     ac_c_werror_flag=yes
30035     cat >conftest.$ac_ext <<_ACEOF
30036 /* confdefs.h.  */
30037 _ACEOF
30038 cat confdefs.h >>conftest.$ac_ext
30039 cat >>conftest.$ac_ext <<_ACEOF
30040 /* end confdefs.h.  */
30041
30042 int
30043 main ()
30044 {
30045
30046   ;
30047   return 0;
30048 }
30049 _ACEOF
30050 rm -f conftest.$ac_objext conftest$ac_exeext
30051 if { (ac_try="$ac_link"
30052 case "(($ac_try" in
30053   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30054   *) ac_try_echo=$ac_try;;
30055 esac
30056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30057   (eval "$ac_link") 2>conftest.er1
30058   ac_status=$?
30059   grep -v '^ *+' conftest.er1 >conftest.err
30060   rm -f conftest.er1
30061   cat conftest.err >&5
30062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30063   (exit $ac_status); } && {
30064          test -z "$ac_c_werror_flag" ||
30065          test ! -s conftest.err
30066        } && test -s conftest$ac_exeext &&
30067        $as_test_x conftest$ac_exeext; then
30068   { echo "$as_me:$LINENO: result: no" >&5
30069 echo "${ECHO_T}no" >&6; }
30070        X_LIBS="$X_LIBS -R$x_libraries"
30071 else
30072   echo "$as_me: failed program was:" >&5
30073 sed 's/^/| /' conftest.$ac_ext >&5
30074
30075         LIBS="$ac_xsave_LIBS -R $x_libraries"
30076        cat >conftest.$ac_ext <<_ACEOF
30077 /* confdefs.h.  */
30078 _ACEOF
30079 cat confdefs.h >>conftest.$ac_ext
30080 cat >>conftest.$ac_ext <<_ACEOF
30081 /* end confdefs.h.  */
30082
30083 int
30084 main ()
30085 {
30086
30087   ;
30088   return 0;
30089 }
30090 _ACEOF
30091 rm -f conftest.$ac_objext conftest$ac_exeext
30092 if { (ac_try="$ac_link"
30093 case "(($ac_try" in
30094   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30095   *) ac_try_echo=$ac_try;;
30096 esac
30097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30098   (eval "$ac_link") 2>conftest.er1
30099   ac_status=$?
30100   grep -v '^ *+' conftest.er1 >conftest.err
30101   rm -f conftest.er1
30102   cat conftest.err >&5
30103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30104   (exit $ac_status); } && {
30105          test -z "$ac_c_werror_flag" ||
30106          test ! -s conftest.err
30107        } && test -s conftest$ac_exeext &&
30108        $as_test_x conftest$ac_exeext; then
30109   { echo "$as_me:$LINENO: result: yes" >&5
30110 echo "${ECHO_T}yes" >&6; }
30111           X_LIBS="$X_LIBS -R $x_libraries"
30112 else
30113   echo "$as_me: failed program was:" >&5
30114 sed 's/^/| /' conftest.$ac_ext >&5
30115
30116         { echo "$as_me:$LINENO: result: neither works" >&5
30117 echo "${ECHO_T}neither works" >&6; }
30118 fi
30119
30120 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30121       conftest$ac_exeext conftest.$ac_ext
30122 fi
30123
30124 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30125       conftest$ac_exeext conftest.$ac_ext
30126     ac_c_werror_flag=$ac_xsave_c_werror_flag
30127     LIBS=$ac_xsave_LIBS
30128   fi
30129
30130   # Check for system-dependent libraries X programs must link with.
30131   # Do this before checking for the system-independent R6 libraries
30132   # (-lICE), since we may need -lsocket or whatever for X linking.
30133
30134   if test "$ISC" = yes; then
30135     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
30136   else
30137     # Martyn Johnson says this is needed for Ultrix, if the X
30138     # libraries were built with DECnet support.  And Karl Berry says
30139     # the Alpha needs dnet_stub (dnet does not exist).
30140     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
30141     cat >conftest.$ac_ext <<_ACEOF
30142 /* confdefs.h.  */
30143 _ACEOF
30144 cat confdefs.h >>conftest.$ac_ext
30145 cat >>conftest.$ac_ext <<_ACEOF
30146 /* end confdefs.h.  */
30147
30148 /* Override any GCC internal prototype to avoid an error.
30149    Use char because int might match the return type of a GCC
30150    builtin and then its argument prototype would still apply.  */
30151 #ifdef __cplusplus
30152 extern "C"
30153 #endif
30154 char XOpenDisplay ();
30155 int
30156 main ()
30157 {
30158 return XOpenDisplay ();
30159   ;
30160   return 0;
30161 }
30162 _ACEOF
30163 rm -f conftest.$ac_objext conftest$ac_exeext
30164 if { (ac_try="$ac_link"
30165 case "(($ac_try" in
30166   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30167   *) ac_try_echo=$ac_try;;
30168 esac
30169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30170   (eval "$ac_link") 2>conftest.er1
30171   ac_status=$?
30172   grep -v '^ *+' conftest.er1 >conftest.err
30173   rm -f conftest.er1
30174   cat conftest.err >&5
30175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30176   (exit $ac_status); } && {
30177          test -z "$ac_c_werror_flag" ||
30178          test ! -s conftest.err
30179        } && test -s conftest$ac_exeext &&
30180        $as_test_x conftest$ac_exeext; then
30181   :
30182 else
30183   echo "$as_me: failed program was:" >&5
30184 sed 's/^/| /' conftest.$ac_ext >&5
30185
30186         { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
30187 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
30188 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
30189   echo $ECHO_N "(cached) $ECHO_C" >&6
30190 else
30191   ac_check_lib_save_LIBS=$LIBS
30192 LIBS="-ldnet  $LIBS"
30193 cat >conftest.$ac_ext <<_ACEOF
30194 /* confdefs.h.  */
30195 _ACEOF
30196 cat confdefs.h >>conftest.$ac_ext
30197 cat >>conftest.$ac_ext <<_ACEOF
30198 /* end confdefs.h.  */
30199
30200 /* Override any GCC internal prototype to avoid an error.
30201    Use char because int might match the return type of a GCC
30202    builtin and then its argument prototype would still apply.  */
30203 #ifdef __cplusplus
30204 extern "C"
30205 #endif
30206 char dnet_ntoa ();
30207 int
30208 main ()
30209 {
30210 return dnet_ntoa ();
30211   ;
30212   return 0;
30213 }
30214 _ACEOF
30215 rm -f conftest.$ac_objext conftest$ac_exeext
30216 if { (ac_try="$ac_link"
30217 case "(($ac_try" in
30218   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30219   *) ac_try_echo=$ac_try;;
30220 esac
30221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30222   (eval "$ac_link") 2>conftest.er1
30223   ac_status=$?
30224   grep -v '^ *+' conftest.er1 >conftest.err
30225   rm -f conftest.er1
30226   cat conftest.err >&5
30227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30228   (exit $ac_status); } && {
30229          test -z "$ac_c_werror_flag" ||
30230          test ! -s conftest.err
30231        } && test -s conftest$ac_exeext &&
30232        $as_test_x conftest$ac_exeext; then
30233   ac_cv_lib_dnet_dnet_ntoa=yes
30234 else
30235   echo "$as_me: failed program was:" >&5
30236 sed 's/^/| /' conftest.$ac_ext >&5
30237
30238         ac_cv_lib_dnet_dnet_ntoa=no
30239 fi
30240
30241 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30242       conftest$ac_exeext conftest.$ac_ext
30243 LIBS=$ac_check_lib_save_LIBS
30244 fi
30245 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
30246 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
30247 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
30248   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
30249 fi
30250
30251     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
30252       { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
30253 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
30254 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
30255   echo $ECHO_N "(cached) $ECHO_C" >&6
30256 else
30257   ac_check_lib_save_LIBS=$LIBS
30258 LIBS="-ldnet_stub  $LIBS"
30259 cat >conftest.$ac_ext <<_ACEOF
30260 /* confdefs.h.  */
30261 _ACEOF
30262 cat confdefs.h >>conftest.$ac_ext
30263 cat >>conftest.$ac_ext <<_ACEOF
30264 /* end confdefs.h.  */
30265
30266 /* Override any GCC internal prototype to avoid an error.
30267    Use char because int might match the return type of a GCC
30268    builtin and then its argument prototype would still apply.  */
30269 #ifdef __cplusplus
30270 extern "C"
30271 #endif
30272 char dnet_ntoa ();
30273 int
30274 main ()
30275 {
30276 return dnet_ntoa ();
30277   ;
30278   return 0;
30279 }
30280 _ACEOF
30281 rm -f conftest.$ac_objext conftest$ac_exeext
30282 if { (ac_try="$ac_link"
30283 case "(($ac_try" in
30284   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30285   *) ac_try_echo=$ac_try;;
30286 esac
30287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30288   (eval "$ac_link") 2>conftest.er1
30289   ac_status=$?
30290   grep -v '^ *+' conftest.er1 >conftest.err
30291   rm -f conftest.er1
30292   cat conftest.err >&5
30293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30294   (exit $ac_status); } && {
30295          test -z "$ac_c_werror_flag" ||
30296          test ! -s conftest.err
30297        } && test -s conftest$ac_exeext &&
30298        $as_test_x conftest$ac_exeext; then
30299   ac_cv_lib_dnet_stub_dnet_ntoa=yes
30300 else
30301   echo "$as_me: failed program was:" >&5
30302 sed 's/^/| /' conftest.$ac_ext >&5
30303
30304         ac_cv_lib_dnet_stub_dnet_ntoa=no
30305 fi
30306
30307 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30308       conftest$ac_exeext conftest.$ac_ext
30309 LIBS=$ac_check_lib_save_LIBS
30310 fi
30311 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
30312 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
30313 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
30314   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
30315 fi
30316
30317     fi
30318 fi
30319
30320 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30321       conftest$ac_exeext conftest.$ac_ext
30322     LIBS="$ac_xsave_LIBS"
30323
30324     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
30325     # to get the SysV transport functions.
30326     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
30327     # needs -lnsl.
30328     # The nsl library prevents programs from opening the X display
30329     # on Irix 5.2, according to T.E. Dickey.
30330     # The functions gethostbyname, getservbyname, and inet_addr are
30331     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
30332     { echo "$as_me:$LINENO: checking for gethostbyname" >&5
30333 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
30334 if test "${ac_cv_func_gethostbyname+set}" = set; then
30335   echo $ECHO_N "(cached) $ECHO_C" >&6
30336 else
30337   cat >conftest.$ac_ext <<_ACEOF
30338 /* confdefs.h.  */
30339 _ACEOF
30340 cat confdefs.h >>conftest.$ac_ext
30341 cat >>conftest.$ac_ext <<_ACEOF
30342 /* end confdefs.h.  */
30343 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
30344    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30345 #define gethostbyname innocuous_gethostbyname
30346
30347 /* System header to define __stub macros and hopefully few prototypes,
30348     which can conflict with char gethostbyname (); below.
30349     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30350     <limits.h> exists even on freestanding compilers.  */
30351
30352 #ifdef __STDC__
30353 # include <limits.h>
30354 #else
30355 # include <assert.h>
30356 #endif
30357
30358 #undef gethostbyname
30359
30360 /* Override any GCC internal prototype to avoid an error.
30361    Use char because int might match the return type of a GCC
30362    builtin and then its argument prototype would still apply.  */
30363 #ifdef __cplusplus
30364 extern "C"
30365 #endif
30366 char gethostbyname ();
30367 /* The GNU C library defines this for functions which it implements
30368     to always fail with ENOSYS.  Some functions are actually named
30369     something starting with __ and the normal name is an alias.  */
30370 #if defined __stub_gethostbyname || defined __stub___gethostbyname
30371 choke me
30372 #endif
30373
30374 int
30375 main ()
30376 {
30377 return gethostbyname ();
30378   ;
30379   return 0;
30380 }
30381 _ACEOF
30382 rm -f conftest.$ac_objext conftest$ac_exeext
30383 if { (ac_try="$ac_link"
30384 case "(($ac_try" in
30385   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30386   *) ac_try_echo=$ac_try;;
30387 esac
30388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30389   (eval "$ac_link") 2>conftest.er1
30390   ac_status=$?
30391   grep -v '^ *+' conftest.er1 >conftest.err
30392   rm -f conftest.er1
30393   cat conftest.err >&5
30394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30395   (exit $ac_status); } && {
30396          test -z "$ac_c_werror_flag" ||
30397          test ! -s conftest.err
30398        } && test -s conftest$ac_exeext &&
30399        $as_test_x conftest$ac_exeext; then
30400   ac_cv_func_gethostbyname=yes
30401 else
30402   echo "$as_me: failed program was:" >&5
30403 sed 's/^/| /' conftest.$ac_ext >&5
30404
30405         ac_cv_func_gethostbyname=no
30406 fi
30407
30408 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30409       conftest$ac_exeext conftest.$ac_ext
30410 fi
30411 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
30412 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
30413
30414     if test $ac_cv_func_gethostbyname = no; then
30415       { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
30416 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
30417 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
30418   echo $ECHO_N "(cached) $ECHO_C" >&6
30419 else
30420   ac_check_lib_save_LIBS=$LIBS
30421 LIBS="-lnsl  $LIBS"
30422 cat >conftest.$ac_ext <<_ACEOF
30423 /* confdefs.h.  */
30424 _ACEOF
30425 cat confdefs.h >>conftest.$ac_ext
30426 cat >>conftest.$ac_ext <<_ACEOF
30427 /* end confdefs.h.  */
30428
30429 /* Override any GCC internal prototype to avoid an error.
30430    Use char because int might match the return type of a GCC
30431    builtin and then its argument prototype would still apply.  */
30432 #ifdef __cplusplus
30433 extern "C"
30434 #endif
30435 char gethostbyname ();
30436 int
30437 main ()
30438 {
30439 return gethostbyname ();
30440   ;
30441   return 0;
30442 }
30443 _ACEOF
30444 rm -f conftest.$ac_objext conftest$ac_exeext
30445 if { (ac_try="$ac_link"
30446 case "(($ac_try" in
30447   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30448   *) ac_try_echo=$ac_try;;
30449 esac
30450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30451   (eval "$ac_link") 2>conftest.er1
30452   ac_status=$?
30453   grep -v '^ *+' conftest.er1 >conftest.err
30454   rm -f conftest.er1
30455   cat conftest.err >&5
30456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30457   (exit $ac_status); } && {
30458          test -z "$ac_c_werror_flag" ||
30459          test ! -s conftest.err
30460        } && test -s conftest$ac_exeext &&
30461        $as_test_x conftest$ac_exeext; then
30462   ac_cv_lib_nsl_gethostbyname=yes
30463 else
30464   echo "$as_me: failed program was:" >&5
30465 sed 's/^/| /' conftest.$ac_ext >&5
30466
30467         ac_cv_lib_nsl_gethostbyname=no
30468 fi
30469
30470 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30471       conftest$ac_exeext conftest.$ac_ext
30472 LIBS=$ac_check_lib_save_LIBS
30473 fi
30474 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
30475 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
30476 if test $ac_cv_lib_nsl_gethostbyname = yes; then
30477   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
30478 fi
30479
30480       if test $ac_cv_lib_nsl_gethostbyname = no; then
30481         { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
30482 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
30483 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
30484   echo $ECHO_N "(cached) $ECHO_C" >&6
30485 else
30486   ac_check_lib_save_LIBS=$LIBS
30487 LIBS="-lbsd  $LIBS"
30488 cat >conftest.$ac_ext <<_ACEOF
30489 /* confdefs.h.  */
30490 _ACEOF
30491 cat confdefs.h >>conftest.$ac_ext
30492 cat >>conftest.$ac_ext <<_ACEOF
30493 /* end confdefs.h.  */
30494
30495 /* Override any GCC internal prototype to avoid an error.
30496    Use char because int might match the return type of a GCC
30497    builtin and then its argument prototype would still apply.  */
30498 #ifdef __cplusplus
30499 extern "C"
30500 #endif
30501 char gethostbyname ();
30502 int
30503 main ()
30504 {
30505 return gethostbyname ();
30506   ;
30507   return 0;
30508 }
30509 _ACEOF
30510 rm -f conftest.$ac_objext conftest$ac_exeext
30511 if { (ac_try="$ac_link"
30512 case "(($ac_try" in
30513   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30514   *) ac_try_echo=$ac_try;;
30515 esac
30516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30517   (eval "$ac_link") 2>conftest.er1
30518   ac_status=$?
30519   grep -v '^ *+' conftest.er1 >conftest.err
30520   rm -f conftest.er1
30521   cat conftest.err >&5
30522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30523   (exit $ac_status); } && {
30524          test -z "$ac_c_werror_flag" ||
30525          test ! -s conftest.err
30526        } && test -s conftest$ac_exeext &&
30527        $as_test_x conftest$ac_exeext; then
30528   ac_cv_lib_bsd_gethostbyname=yes
30529 else
30530   echo "$as_me: failed program was:" >&5
30531 sed 's/^/| /' conftest.$ac_ext >&5
30532
30533         ac_cv_lib_bsd_gethostbyname=no
30534 fi
30535
30536 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30537       conftest$ac_exeext conftest.$ac_ext
30538 LIBS=$ac_check_lib_save_LIBS
30539 fi
30540 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
30541 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
30542 if test $ac_cv_lib_bsd_gethostbyname = yes; then
30543   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
30544 fi
30545
30546       fi
30547     fi
30548
30549     # lieder@skyler.mavd.honeywell.com says without -lsocket,
30550     # socket/setsockopt and other routines are undefined under SCO ODT
30551     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
30552     # on later versions), says Simon Leinen: it contains gethostby*
30553     # variants that don't use the name server (or something).  -lsocket
30554     # must be given before -lnsl if both are needed.  We assume that
30555     # if connect needs -lnsl, so does gethostbyname.
30556     { echo "$as_me:$LINENO: checking for connect" >&5
30557 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
30558 if test "${ac_cv_func_connect+set}" = set; then
30559   echo $ECHO_N "(cached) $ECHO_C" >&6
30560 else
30561   cat >conftest.$ac_ext <<_ACEOF
30562 /* confdefs.h.  */
30563 _ACEOF
30564 cat confdefs.h >>conftest.$ac_ext
30565 cat >>conftest.$ac_ext <<_ACEOF
30566 /* end confdefs.h.  */
30567 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
30568    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30569 #define connect innocuous_connect
30570
30571 /* System header to define __stub macros and hopefully few prototypes,
30572     which can conflict with char connect (); below.
30573     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30574     <limits.h> exists even on freestanding compilers.  */
30575
30576 #ifdef __STDC__
30577 # include <limits.h>
30578 #else
30579 # include <assert.h>
30580 #endif
30581
30582 #undef connect
30583
30584 /* Override any GCC internal prototype to avoid an error.
30585    Use char because int might match the return type of a GCC
30586    builtin and then its argument prototype would still apply.  */
30587 #ifdef __cplusplus
30588 extern "C"
30589 #endif
30590 char connect ();
30591 /* The GNU C library defines this for functions which it implements
30592     to always fail with ENOSYS.  Some functions are actually named
30593     something starting with __ and the normal name is an alias.  */
30594 #if defined __stub_connect || defined __stub___connect
30595 choke me
30596 #endif
30597
30598 int
30599 main ()
30600 {
30601 return connect ();
30602   ;
30603   return 0;
30604 }
30605 _ACEOF
30606 rm -f conftest.$ac_objext conftest$ac_exeext
30607 if { (ac_try="$ac_link"
30608 case "(($ac_try" in
30609   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30610   *) ac_try_echo=$ac_try;;
30611 esac
30612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30613   (eval "$ac_link") 2>conftest.er1
30614   ac_status=$?
30615   grep -v '^ *+' conftest.er1 >conftest.err
30616   rm -f conftest.er1
30617   cat conftest.err >&5
30618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30619   (exit $ac_status); } && {
30620          test -z "$ac_c_werror_flag" ||
30621          test ! -s conftest.err
30622        } && test -s conftest$ac_exeext &&
30623        $as_test_x conftest$ac_exeext; then
30624   ac_cv_func_connect=yes
30625 else
30626   echo "$as_me: failed program was:" >&5
30627 sed 's/^/| /' conftest.$ac_ext >&5
30628
30629         ac_cv_func_connect=no
30630 fi
30631
30632 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30633       conftest$ac_exeext conftest.$ac_ext
30634 fi
30635 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
30636 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
30637
30638     if test $ac_cv_func_connect = no; then
30639       { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
30640 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
30641 if test "${ac_cv_lib_socket_connect+set}" = set; then
30642   echo $ECHO_N "(cached) $ECHO_C" >&6
30643 else
30644   ac_check_lib_save_LIBS=$LIBS
30645 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
30646 cat >conftest.$ac_ext <<_ACEOF
30647 /* confdefs.h.  */
30648 _ACEOF
30649 cat confdefs.h >>conftest.$ac_ext
30650 cat >>conftest.$ac_ext <<_ACEOF
30651 /* end confdefs.h.  */
30652
30653 /* Override any GCC internal prototype to avoid an error.
30654    Use char because int might match the return type of a GCC
30655    builtin and then its argument prototype would still apply.  */
30656 #ifdef __cplusplus
30657 extern "C"
30658 #endif
30659 char connect ();
30660 int
30661 main ()
30662 {
30663 return connect ();
30664   ;
30665   return 0;
30666 }
30667 _ACEOF
30668 rm -f conftest.$ac_objext conftest$ac_exeext
30669 if { (ac_try="$ac_link"
30670 case "(($ac_try" in
30671   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30672   *) ac_try_echo=$ac_try;;
30673 esac
30674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30675   (eval "$ac_link") 2>conftest.er1
30676   ac_status=$?
30677   grep -v '^ *+' conftest.er1 >conftest.err
30678   rm -f conftest.er1
30679   cat conftest.err >&5
30680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30681   (exit $ac_status); } && {
30682          test -z "$ac_c_werror_flag" ||
30683          test ! -s conftest.err
30684        } && test -s conftest$ac_exeext &&
30685        $as_test_x conftest$ac_exeext; then
30686   ac_cv_lib_socket_connect=yes
30687 else
30688   echo "$as_me: failed program was:" >&5
30689 sed 's/^/| /' conftest.$ac_ext >&5
30690
30691         ac_cv_lib_socket_connect=no
30692 fi
30693
30694 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30695       conftest$ac_exeext conftest.$ac_ext
30696 LIBS=$ac_check_lib_save_LIBS
30697 fi
30698 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
30699 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
30700 if test $ac_cv_lib_socket_connect = yes; then
30701   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
30702 fi
30703
30704     fi
30705
30706     # Guillermo Gomez says -lposix is necessary on A/UX.
30707     { echo "$as_me:$LINENO: checking for remove" >&5
30708 echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
30709 if test "${ac_cv_func_remove+set}" = set; then
30710   echo $ECHO_N "(cached) $ECHO_C" >&6
30711 else
30712   cat >conftest.$ac_ext <<_ACEOF
30713 /* confdefs.h.  */
30714 _ACEOF
30715 cat confdefs.h >>conftest.$ac_ext
30716 cat >>conftest.$ac_ext <<_ACEOF
30717 /* end confdefs.h.  */
30718 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
30719    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30720 #define remove innocuous_remove
30721
30722 /* System header to define __stub macros and hopefully few prototypes,
30723     which can conflict with char remove (); below.
30724     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30725     <limits.h> exists even on freestanding compilers.  */
30726
30727 #ifdef __STDC__
30728 # include <limits.h>
30729 #else
30730 # include <assert.h>
30731 #endif
30732
30733 #undef remove
30734
30735 /* Override any GCC internal prototype to avoid an error.
30736    Use char because int might match the return type of a GCC
30737    builtin and then its argument prototype would still apply.  */
30738 #ifdef __cplusplus
30739 extern "C"
30740 #endif
30741 char remove ();
30742 /* The GNU C library defines this for functions which it implements
30743     to always fail with ENOSYS.  Some functions are actually named
30744     something starting with __ and the normal name is an alias.  */
30745 #if defined __stub_remove || defined __stub___remove
30746 choke me
30747 #endif
30748
30749 int
30750 main ()
30751 {
30752 return remove ();
30753   ;
30754   return 0;
30755 }
30756 _ACEOF
30757 rm -f conftest.$ac_objext conftest$ac_exeext
30758 if { (ac_try="$ac_link"
30759 case "(($ac_try" in
30760   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30761   *) ac_try_echo=$ac_try;;
30762 esac
30763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30764   (eval "$ac_link") 2>conftest.er1
30765   ac_status=$?
30766   grep -v '^ *+' conftest.er1 >conftest.err
30767   rm -f conftest.er1
30768   cat conftest.err >&5
30769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30770   (exit $ac_status); } && {
30771          test -z "$ac_c_werror_flag" ||
30772          test ! -s conftest.err
30773        } && test -s conftest$ac_exeext &&
30774        $as_test_x conftest$ac_exeext; then
30775   ac_cv_func_remove=yes
30776 else
30777   echo "$as_me: failed program was:" >&5
30778 sed 's/^/| /' conftest.$ac_ext >&5
30779
30780         ac_cv_func_remove=no
30781 fi
30782
30783 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30784       conftest$ac_exeext conftest.$ac_ext
30785 fi
30786 { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
30787 echo "${ECHO_T}$ac_cv_func_remove" >&6; }
30788
30789     if test $ac_cv_func_remove = no; then
30790       { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
30791 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
30792 if test "${ac_cv_lib_posix_remove+set}" = set; then
30793   echo $ECHO_N "(cached) $ECHO_C" >&6
30794 else
30795   ac_check_lib_save_LIBS=$LIBS
30796 LIBS="-lposix  $LIBS"
30797 cat >conftest.$ac_ext <<_ACEOF
30798 /* confdefs.h.  */
30799 _ACEOF
30800 cat confdefs.h >>conftest.$ac_ext
30801 cat >>conftest.$ac_ext <<_ACEOF
30802 /* end confdefs.h.  */
30803
30804 /* Override any GCC internal prototype to avoid an error.
30805    Use char because int might match the return type of a GCC
30806    builtin and then its argument prototype would still apply.  */
30807 #ifdef __cplusplus
30808 extern "C"
30809 #endif
30810 char remove ();
30811 int
30812 main ()
30813 {
30814 return remove ();
30815   ;
30816   return 0;
30817 }
30818 _ACEOF
30819 rm -f conftest.$ac_objext conftest$ac_exeext
30820 if { (ac_try="$ac_link"
30821 case "(($ac_try" in
30822   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30823   *) ac_try_echo=$ac_try;;
30824 esac
30825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30826   (eval "$ac_link") 2>conftest.er1
30827   ac_status=$?
30828   grep -v '^ *+' conftest.er1 >conftest.err
30829   rm -f conftest.er1
30830   cat conftest.err >&5
30831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30832   (exit $ac_status); } && {
30833          test -z "$ac_c_werror_flag" ||
30834          test ! -s conftest.err
30835        } && test -s conftest$ac_exeext &&
30836        $as_test_x conftest$ac_exeext; then
30837   ac_cv_lib_posix_remove=yes
30838 else
30839   echo "$as_me: failed program was:" >&5
30840 sed 's/^/| /' conftest.$ac_ext >&5
30841
30842         ac_cv_lib_posix_remove=no
30843 fi
30844
30845 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30846       conftest$ac_exeext conftest.$ac_ext
30847 LIBS=$ac_check_lib_save_LIBS
30848 fi
30849 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
30850 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
30851 if test $ac_cv_lib_posix_remove = yes; then
30852   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
30853 fi
30854
30855     fi
30856
30857     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
30858     { echo "$as_me:$LINENO: checking for shmat" >&5
30859 echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
30860 if test "${ac_cv_func_shmat+set}" = set; then
30861   echo $ECHO_N "(cached) $ECHO_C" >&6
30862 else
30863   cat >conftest.$ac_ext <<_ACEOF
30864 /* confdefs.h.  */
30865 _ACEOF
30866 cat confdefs.h >>conftest.$ac_ext
30867 cat >>conftest.$ac_ext <<_ACEOF
30868 /* end confdefs.h.  */
30869 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
30870    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30871 #define shmat innocuous_shmat
30872
30873 /* System header to define __stub macros and hopefully few prototypes,
30874     which can conflict with char shmat (); below.
30875     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30876     <limits.h> exists even on freestanding compilers.  */
30877
30878 #ifdef __STDC__
30879 # include <limits.h>
30880 #else
30881 # include <assert.h>
30882 #endif
30883
30884 #undef shmat
30885
30886 /* Override any GCC internal prototype to avoid an error.
30887    Use char because int might match the return type of a GCC
30888    builtin and then its argument prototype would still apply.  */
30889 #ifdef __cplusplus
30890 extern "C"
30891 #endif
30892 char shmat ();
30893 /* The GNU C library defines this for functions which it implements
30894     to always fail with ENOSYS.  Some functions are actually named
30895     something starting with __ and the normal name is an alias.  */
30896 #if defined __stub_shmat || defined __stub___shmat
30897 choke me
30898 #endif
30899
30900 int
30901 main ()
30902 {
30903 return shmat ();
30904   ;
30905   return 0;
30906 }
30907 _ACEOF
30908 rm -f conftest.$ac_objext conftest$ac_exeext
30909 if { (ac_try="$ac_link"
30910 case "(($ac_try" in
30911   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30912   *) ac_try_echo=$ac_try;;
30913 esac
30914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30915   (eval "$ac_link") 2>conftest.er1
30916   ac_status=$?
30917   grep -v '^ *+' conftest.er1 >conftest.err
30918   rm -f conftest.er1
30919   cat conftest.err >&5
30920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30921   (exit $ac_status); } && {
30922          test -z "$ac_c_werror_flag" ||
30923          test ! -s conftest.err
30924        } && test -s conftest$ac_exeext &&
30925        $as_test_x conftest$ac_exeext; then
30926   ac_cv_func_shmat=yes
30927 else
30928   echo "$as_me: failed program was:" >&5
30929 sed 's/^/| /' conftest.$ac_ext >&5
30930
30931         ac_cv_func_shmat=no
30932 fi
30933
30934 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30935       conftest$ac_exeext conftest.$ac_ext
30936 fi
30937 { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
30938 echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
30939
30940     if test $ac_cv_func_shmat = no; then
30941       { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
30942 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
30943 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
30944   echo $ECHO_N "(cached) $ECHO_C" >&6
30945 else
30946   ac_check_lib_save_LIBS=$LIBS
30947 LIBS="-lipc  $LIBS"
30948 cat >conftest.$ac_ext <<_ACEOF
30949 /* confdefs.h.  */
30950 _ACEOF
30951 cat confdefs.h >>conftest.$ac_ext
30952 cat >>conftest.$ac_ext <<_ACEOF
30953 /* end confdefs.h.  */
30954
30955 /* Override any GCC internal prototype to avoid an error.
30956    Use char because int might match the return type of a GCC
30957    builtin and then its argument prototype would still apply.  */
30958 #ifdef __cplusplus
30959 extern "C"
30960 #endif
30961 char shmat ();
30962 int
30963 main ()
30964 {
30965 return shmat ();
30966   ;
30967   return 0;
30968 }
30969 _ACEOF
30970 rm -f conftest.$ac_objext conftest$ac_exeext
30971 if { (ac_try="$ac_link"
30972 case "(($ac_try" in
30973   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30974   *) ac_try_echo=$ac_try;;
30975 esac
30976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30977   (eval "$ac_link") 2>conftest.er1
30978   ac_status=$?
30979   grep -v '^ *+' conftest.er1 >conftest.err
30980   rm -f conftest.er1
30981   cat conftest.err >&5
30982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30983   (exit $ac_status); } && {
30984          test -z "$ac_c_werror_flag" ||
30985          test ! -s conftest.err
30986        } && test -s conftest$ac_exeext &&
30987        $as_test_x conftest$ac_exeext; then
30988   ac_cv_lib_ipc_shmat=yes
30989 else
30990   echo "$as_me: failed program was:" >&5
30991 sed 's/^/| /' conftest.$ac_ext >&5
30992
30993         ac_cv_lib_ipc_shmat=no
30994 fi
30995
30996 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30997       conftest$ac_exeext conftest.$ac_ext
30998 LIBS=$ac_check_lib_save_LIBS
30999 fi
31000 { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
31001 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
31002 if test $ac_cv_lib_ipc_shmat = yes; then
31003   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
31004 fi
31005
31006     fi
31007   fi
31008
31009   # Check for libraries that X11R6 Xt/Xaw programs need.
31010   ac_save_LDFLAGS=$LDFLAGS
31011   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
31012   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
31013   # check for ICE first), but we must link in the order -lSM -lICE or
31014   # we get undefined symbols.  So assume we have SM if we have ICE.
31015   # These have to be linked with before -lX11, unlike the other
31016   # libraries we check for below, so use a different variable.
31017   # John Interrante, Karl Berry
31018   { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
31019 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
31020 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
31021   echo $ECHO_N "(cached) $ECHO_C" >&6
31022 else
31023   ac_check_lib_save_LIBS=$LIBS
31024 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
31025 cat >conftest.$ac_ext <<_ACEOF
31026 /* confdefs.h.  */
31027 _ACEOF
31028 cat confdefs.h >>conftest.$ac_ext
31029 cat >>conftest.$ac_ext <<_ACEOF
31030 /* end confdefs.h.  */
31031
31032 /* Override any GCC internal prototype to avoid an error.
31033    Use char because int might match the return type of a GCC
31034    builtin and then its argument prototype would still apply.  */
31035 #ifdef __cplusplus
31036 extern "C"
31037 #endif
31038 char IceConnectionNumber ();
31039 int
31040 main ()
31041 {
31042 return IceConnectionNumber ();
31043   ;
31044   return 0;
31045 }
31046 _ACEOF
31047 rm -f conftest.$ac_objext conftest$ac_exeext
31048 if { (ac_try="$ac_link"
31049 case "(($ac_try" in
31050   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31051   *) ac_try_echo=$ac_try;;
31052 esac
31053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31054   (eval "$ac_link") 2>conftest.er1
31055   ac_status=$?
31056   grep -v '^ *+' conftest.er1 >conftest.err
31057   rm -f conftest.er1
31058   cat conftest.err >&5
31059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31060   (exit $ac_status); } && {
31061          test -z "$ac_c_werror_flag" ||
31062          test ! -s conftest.err
31063        } && test -s conftest$ac_exeext &&
31064        $as_test_x conftest$ac_exeext; then
31065   ac_cv_lib_ICE_IceConnectionNumber=yes
31066 else
31067   echo "$as_me: failed program was:" >&5
31068 sed 's/^/| /' conftest.$ac_ext >&5
31069
31070         ac_cv_lib_ICE_IceConnectionNumber=no
31071 fi
31072
31073 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31074       conftest$ac_exeext conftest.$ac_ext
31075 LIBS=$ac_check_lib_save_LIBS
31076 fi
31077 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
31078 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
31079 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
31080   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
31081 fi
31082
31083   LDFLAGS=$ac_save_LDFLAGS
31084
31085 fi
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
31117 for ac_header in \
31118    assert.h \
31119    fcntl.h \
31120    grp.h \
31121    pwd.h \
31122    libc.h \
31123    limits.h \
31124    stdarg.h \
31125    stdlib.h \
31126    stdint.h \
31127    string.h \
31128    strings.h \
31129    termios.h \
31130    termcap.h \
31131    term.h \
31132    unistd.h \
31133    sys/bitypes.h \
31134    sys/byteorder.h \
31135    sys/ioctl.h \
31136    sys/select.h \
31137    sys/socket.h \
31138    sys/sockio.h \
31139    sys/stat.h \
31140    sys/time.h \
31141    sys/types.h \
31142    arpa/nameser.h \
31143    mtio.h \
31144    sys/mtio.h \
31145    sys/tape.h \
31146    regex.h \
31147
31148 do
31149 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31150 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31151   { echo "$as_me:$LINENO: checking for $ac_header" >&5
31152 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
31153 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31154   echo $ECHO_N "(cached) $ECHO_C" >&6
31155 fi
31156 ac_res=`eval echo '${'$as_ac_Header'}'`
31157                { echo "$as_me:$LINENO: result: $ac_res" >&5
31158 echo "${ECHO_T}$ac_res" >&6; }
31159 else
31160   # Is the header compilable?
31161 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
31162 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
31163 cat >conftest.$ac_ext <<_ACEOF
31164 /* confdefs.h.  */
31165 _ACEOF
31166 cat confdefs.h >>conftest.$ac_ext
31167 cat >>conftest.$ac_ext <<_ACEOF
31168 /* end confdefs.h.  */
31169 $ac_includes_default
31170 #include <$ac_header>
31171 _ACEOF
31172 rm -f conftest.$ac_objext
31173 if { (ac_try="$ac_compile"
31174 case "(($ac_try" in
31175   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31176   *) ac_try_echo=$ac_try;;
31177 esac
31178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31179   (eval "$ac_compile") 2>conftest.er1
31180   ac_status=$?
31181   grep -v '^ *+' conftest.er1 >conftest.err
31182   rm -f conftest.er1
31183   cat conftest.err >&5
31184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31185   (exit $ac_status); } && {
31186          test -z "$ac_c_werror_flag" ||
31187          test ! -s conftest.err
31188        } && test -s conftest.$ac_objext; then
31189   ac_header_compiler=yes
31190 else
31191   echo "$as_me: failed program was:" >&5
31192 sed 's/^/| /' conftest.$ac_ext >&5
31193
31194         ac_header_compiler=no
31195 fi
31196
31197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31198 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31199 echo "${ECHO_T}$ac_header_compiler" >&6; }
31200
31201 # Is the header present?
31202 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
31203 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
31204 cat >conftest.$ac_ext <<_ACEOF
31205 /* confdefs.h.  */
31206 _ACEOF
31207 cat confdefs.h >>conftest.$ac_ext
31208 cat >>conftest.$ac_ext <<_ACEOF
31209 /* end confdefs.h.  */
31210 #include <$ac_header>
31211 _ACEOF
31212 if { (ac_try="$ac_cpp conftest.$ac_ext"
31213 case "(($ac_try" in
31214   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31215   *) ac_try_echo=$ac_try;;
31216 esac
31217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31218   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31219   ac_status=$?
31220   grep -v '^ *+' conftest.er1 >conftest.err
31221   rm -f conftest.er1
31222   cat conftest.err >&5
31223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31224   (exit $ac_status); } >/dev/null && {
31225          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31226          test ! -s conftest.err
31227        }; then
31228   ac_header_preproc=yes
31229 else
31230   echo "$as_me: failed program was:" >&5
31231 sed 's/^/| /' conftest.$ac_ext >&5
31232
31233   ac_header_preproc=no
31234 fi
31235
31236 rm -f conftest.err conftest.$ac_ext
31237 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31238 echo "${ECHO_T}$ac_header_preproc" >&6; }
31239
31240 # So?  What about this header?
31241 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31242   yes:no: )
31243     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31244 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31245     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31246 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31247     ac_header_preproc=yes
31248     ;;
31249   no:yes:* )
31250     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31251 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31252     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
31253 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
31254     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31255 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31256     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
31257 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
31258     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31259 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31260     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31261 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31262
31263     ;;
31264 esac
31265 { echo "$as_me:$LINENO: checking for $ac_header" >&5
31266 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
31267 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31268   echo $ECHO_N "(cached) $ECHO_C" >&6
31269 else
31270   eval "$as_ac_Header=\$ac_header_preproc"
31271 fi
31272 ac_res=`eval echo '${'$as_ac_Header'}'`
31273                { echo "$as_me:$LINENO: result: $ac_res" >&5
31274 echo "${ECHO_T}$ac_res" >&6; }
31275
31276 fi
31277 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31278   cat >>confdefs.h <<_ACEOF
31279 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31280 _ACEOF
31281
31282 fi
31283
31284 done
31285
31286 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
31287 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
31288 if test "${ac_cv_header_stdc+set}" = set; then
31289   echo $ECHO_N "(cached) $ECHO_C" >&6
31290 else
31291   cat >conftest.$ac_ext <<_ACEOF
31292 /* confdefs.h.  */
31293 _ACEOF
31294 cat confdefs.h >>conftest.$ac_ext
31295 cat >>conftest.$ac_ext <<_ACEOF
31296 /* end confdefs.h.  */
31297 #include <stdlib.h>
31298 #include <stdarg.h>
31299 #include <string.h>
31300 #include <float.h>
31301
31302 int
31303 main ()
31304 {
31305
31306   ;
31307   return 0;
31308 }
31309 _ACEOF
31310 rm -f conftest.$ac_objext
31311 if { (ac_try="$ac_compile"
31312 case "(($ac_try" in
31313   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31314   *) ac_try_echo=$ac_try;;
31315 esac
31316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31317   (eval "$ac_compile") 2>conftest.er1
31318   ac_status=$?
31319   grep -v '^ *+' conftest.er1 >conftest.err
31320   rm -f conftest.er1
31321   cat conftest.err >&5
31322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31323   (exit $ac_status); } && {
31324          test -z "$ac_c_werror_flag" ||
31325          test ! -s conftest.err
31326        } && test -s conftest.$ac_objext; then
31327   ac_cv_header_stdc=yes
31328 else
31329   echo "$as_me: failed program was:" >&5
31330 sed 's/^/| /' conftest.$ac_ext >&5
31331
31332         ac_cv_header_stdc=no
31333 fi
31334
31335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31336
31337 if test $ac_cv_header_stdc = yes; then
31338   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
31339   cat >conftest.$ac_ext <<_ACEOF
31340 /* confdefs.h.  */
31341 _ACEOF
31342 cat confdefs.h >>conftest.$ac_ext
31343 cat >>conftest.$ac_ext <<_ACEOF
31344 /* end confdefs.h.  */
31345 #include <string.h>
31346
31347 _ACEOF
31348 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31349   $EGREP "memchr" >/dev/null 2>&1; then
31350   :
31351 else
31352   ac_cv_header_stdc=no
31353 fi
31354 rm -f conftest*
31355
31356 fi
31357
31358 if test $ac_cv_header_stdc = yes; then
31359   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
31360   cat >conftest.$ac_ext <<_ACEOF
31361 /* confdefs.h.  */
31362 _ACEOF
31363 cat confdefs.h >>conftest.$ac_ext
31364 cat >>conftest.$ac_ext <<_ACEOF
31365 /* end confdefs.h.  */
31366 #include <stdlib.h>
31367
31368 _ACEOF
31369 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31370   $EGREP "free" >/dev/null 2>&1; then
31371   :
31372 else
31373   ac_cv_header_stdc=no
31374 fi
31375 rm -f conftest*
31376
31377 fi
31378
31379 if test $ac_cv_header_stdc = yes; then
31380   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
31381   if test "$cross_compiling" = yes; then
31382   :
31383 else
31384   cat >conftest.$ac_ext <<_ACEOF
31385 /* confdefs.h.  */
31386 _ACEOF
31387 cat confdefs.h >>conftest.$ac_ext
31388 cat >>conftest.$ac_ext <<_ACEOF
31389 /* end confdefs.h.  */
31390 #include <ctype.h>
31391 #include <stdlib.h>
31392 #if ((' ' & 0x0FF) == 0x020)
31393 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
31394 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
31395 #else
31396 # define ISLOWER(c) \
31397                    (('a' <= (c) && (c) <= 'i') \
31398                      || ('j' <= (c) && (c) <= 'r') \
31399                      || ('s' <= (c) && (c) <= 'z'))
31400 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
31401 #endif
31402
31403 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
31404 int
31405 main ()
31406 {
31407   int i;
31408   for (i = 0; i < 256; i++)
31409     if (XOR (islower (i), ISLOWER (i))
31410         || toupper (i) != TOUPPER (i))
31411       return 2;
31412   return 0;
31413 }
31414 _ACEOF
31415 rm -f conftest$ac_exeext
31416 if { (ac_try="$ac_link"
31417 case "(($ac_try" in
31418   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31419   *) ac_try_echo=$ac_try;;
31420 esac
31421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31422   (eval "$ac_link") 2>&5
31423   ac_status=$?
31424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31425   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31426   { (case "(($ac_try" in
31427   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31428   *) ac_try_echo=$ac_try;;
31429 esac
31430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31431   (eval "$ac_try") 2>&5
31432   ac_status=$?
31433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31434   (exit $ac_status); }; }; then
31435   :
31436 else
31437   echo "$as_me: program exited with status $ac_status" >&5
31438 echo "$as_me: failed program was:" >&5
31439 sed 's/^/| /' conftest.$ac_ext >&5
31440
31441 ( exit $ac_status )
31442 ac_cv_header_stdc=no
31443 fi
31444 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31445 fi
31446
31447
31448 fi
31449 fi
31450 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
31451 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
31452 if test $ac_cv_header_stdc = yes; then
31453
31454 cat >>confdefs.h <<\_ACEOF
31455 #define STDC_HEADERS 1
31456 _ACEOF
31457
31458 fi
31459
31460 { echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
31461 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6; }
31462 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
31463   echo $ECHO_N "(cached) $ECHO_C" >&6
31464 else
31465   cat >conftest.$ac_ext <<_ACEOF
31466 /* confdefs.h.  */
31467 _ACEOF
31468 cat confdefs.h >>conftest.$ac_ext
31469 cat >>conftest.$ac_ext <<_ACEOF
31470 /* end confdefs.h.  */
31471 #include <sys/types.h>
31472 int
31473 main ()
31474 {
31475 return makedev(0, 0);
31476   ;
31477   return 0;
31478 }
31479 _ACEOF
31480 rm -f conftest.$ac_objext conftest$ac_exeext
31481 if { (ac_try="$ac_link"
31482 case "(($ac_try" in
31483   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31484   *) ac_try_echo=$ac_try;;
31485 esac
31486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31487   (eval "$ac_link") 2>conftest.er1
31488   ac_status=$?
31489   grep -v '^ *+' conftest.er1 >conftest.err
31490   rm -f conftest.er1
31491   cat conftest.err >&5
31492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31493   (exit $ac_status); } && {
31494          test -z "$ac_c_werror_flag" ||
31495          test ! -s conftest.err
31496        } && test -s conftest$ac_exeext &&
31497        $as_test_x conftest$ac_exeext; then
31498   ac_cv_header_sys_types_h_makedev=yes
31499 else
31500   echo "$as_me: failed program was:" >&5
31501 sed 's/^/| /' conftest.$ac_ext >&5
31502
31503         ac_cv_header_sys_types_h_makedev=no
31504 fi
31505
31506 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31507       conftest$ac_exeext conftest.$ac_ext
31508
31509 fi
31510 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
31511 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6; }
31512
31513 if test $ac_cv_header_sys_types_h_makedev = no; then
31514 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
31515   { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
31516 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
31517 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
31518   echo $ECHO_N "(cached) $ECHO_C" >&6
31519 fi
31520 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
31521 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
31522 else
31523   # Is the header compilable?
31524 { echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
31525 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6; }
31526 cat >conftest.$ac_ext <<_ACEOF
31527 /* confdefs.h.  */
31528 _ACEOF
31529 cat confdefs.h >>conftest.$ac_ext
31530 cat >>conftest.$ac_ext <<_ACEOF
31531 /* end confdefs.h.  */
31532 $ac_includes_default
31533 #include <sys/mkdev.h>
31534 _ACEOF
31535 rm -f conftest.$ac_objext
31536 if { (ac_try="$ac_compile"
31537 case "(($ac_try" in
31538   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31539   *) ac_try_echo=$ac_try;;
31540 esac
31541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31542   (eval "$ac_compile") 2>conftest.er1
31543   ac_status=$?
31544   grep -v '^ *+' conftest.er1 >conftest.err
31545   rm -f conftest.er1
31546   cat conftest.err >&5
31547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31548   (exit $ac_status); } && {
31549          test -z "$ac_c_werror_flag" ||
31550          test ! -s conftest.err
31551        } && test -s conftest.$ac_objext; then
31552   ac_header_compiler=yes
31553 else
31554   echo "$as_me: failed program was:" >&5
31555 sed 's/^/| /' conftest.$ac_ext >&5
31556
31557         ac_header_compiler=no
31558 fi
31559
31560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31561 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31562 echo "${ECHO_T}$ac_header_compiler" >&6; }
31563
31564 # Is the header present?
31565 { echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
31566 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6; }
31567 cat >conftest.$ac_ext <<_ACEOF
31568 /* confdefs.h.  */
31569 _ACEOF
31570 cat confdefs.h >>conftest.$ac_ext
31571 cat >>conftest.$ac_ext <<_ACEOF
31572 /* end confdefs.h.  */
31573 #include <sys/mkdev.h>
31574 _ACEOF
31575 if { (ac_try="$ac_cpp conftest.$ac_ext"
31576 case "(($ac_try" in
31577   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31578   *) ac_try_echo=$ac_try;;
31579 esac
31580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31581   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31582   ac_status=$?
31583   grep -v '^ *+' conftest.er1 >conftest.err
31584   rm -f conftest.er1
31585   cat conftest.err >&5
31586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31587   (exit $ac_status); } >/dev/null && {
31588          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31589          test ! -s conftest.err
31590        }; then
31591   ac_header_preproc=yes
31592 else
31593   echo "$as_me: failed program was:" >&5
31594 sed 's/^/| /' conftest.$ac_ext >&5
31595
31596   ac_header_preproc=no
31597 fi
31598
31599 rm -f conftest.err conftest.$ac_ext
31600 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31601 echo "${ECHO_T}$ac_header_preproc" >&6; }
31602
31603 # So?  What about this header?
31604 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31605   yes:no: )
31606     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
31607 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31608     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
31609 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
31610     ac_header_preproc=yes
31611     ;;
31612   no:yes:* )
31613     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
31614 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
31615     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&5
31616 echo "$as_me: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&2;}
31617     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
31618 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
31619     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&5
31620 echo "$as_me: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&2;}
31621     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
31622 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
31623     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
31624 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
31625
31626     ;;
31627 esac
31628 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
31629 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
31630 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
31631   echo $ECHO_N "(cached) $ECHO_C" >&6
31632 else
31633   ac_cv_header_sys_mkdev_h=$ac_header_preproc
31634 fi
31635 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
31636 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
31637
31638 fi
31639 if test $ac_cv_header_sys_mkdev_h = yes; then
31640
31641 cat >>confdefs.h <<\_ACEOF
31642 #define MAJOR_IN_MKDEV 1
31643 _ACEOF
31644
31645 fi
31646
31647
31648
31649   if test $ac_cv_header_sys_mkdev_h = no; then
31650     if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
31651   { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
31652 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
31653 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
31654   echo $ECHO_N "(cached) $ECHO_C" >&6
31655 fi
31656 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
31657 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
31658 else
31659   # Is the header compilable?
31660 { echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
31661 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6; }
31662 cat >conftest.$ac_ext <<_ACEOF
31663 /* confdefs.h.  */
31664 _ACEOF
31665 cat confdefs.h >>conftest.$ac_ext
31666 cat >>conftest.$ac_ext <<_ACEOF
31667 /* end confdefs.h.  */
31668 $ac_includes_default
31669 #include <sys/sysmacros.h>
31670 _ACEOF
31671 rm -f conftest.$ac_objext
31672 if { (ac_try="$ac_compile"
31673 case "(($ac_try" in
31674   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31675   *) ac_try_echo=$ac_try;;
31676 esac
31677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31678   (eval "$ac_compile") 2>conftest.er1
31679   ac_status=$?
31680   grep -v '^ *+' conftest.er1 >conftest.err
31681   rm -f conftest.er1
31682   cat conftest.err >&5
31683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31684   (exit $ac_status); } && {
31685          test -z "$ac_c_werror_flag" ||
31686          test ! -s conftest.err
31687        } && test -s conftest.$ac_objext; then
31688   ac_header_compiler=yes
31689 else
31690   echo "$as_me: failed program was:" >&5
31691 sed 's/^/| /' conftest.$ac_ext >&5
31692
31693         ac_header_compiler=no
31694 fi
31695
31696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31697 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31698 echo "${ECHO_T}$ac_header_compiler" >&6; }
31699
31700 # Is the header present?
31701 { echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
31702 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6; }
31703 cat >conftest.$ac_ext <<_ACEOF
31704 /* confdefs.h.  */
31705 _ACEOF
31706 cat confdefs.h >>conftest.$ac_ext
31707 cat >>conftest.$ac_ext <<_ACEOF
31708 /* end confdefs.h.  */
31709 #include <sys/sysmacros.h>
31710 _ACEOF
31711 if { (ac_try="$ac_cpp conftest.$ac_ext"
31712 case "(($ac_try" in
31713   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31714   *) ac_try_echo=$ac_try;;
31715 esac
31716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31717   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31718   ac_status=$?
31719   grep -v '^ *+' conftest.er1 >conftest.err
31720   rm -f conftest.er1
31721   cat conftest.err >&5
31722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31723   (exit $ac_status); } >/dev/null && {
31724          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31725          test ! -s conftest.err
31726        }; then
31727   ac_header_preproc=yes
31728 else
31729   echo "$as_me: failed program was:" >&5
31730 sed 's/^/| /' conftest.$ac_ext >&5
31731
31732   ac_header_preproc=no
31733 fi
31734
31735 rm -f conftest.err conftest.$ac_ext
31736 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31737 echo "${ECHO_T}$ac_header_preproc" >&6; }
31738
31739 # So?  What about this header?
31740 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31741   yes:no: )
31742     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
31743 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31744     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
31745 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
31746     ac_header_preproc=yes
31747     ;;
31748   no:yes:* )
31749     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
31750 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
31751     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&5
31752 echo "$as_me: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&2;}
31753     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
31754 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
31755     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&5
31756 echo "$as_me: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&2;}
31757     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
31758 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
31759     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
31760 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
31761
31762     ;;
31763 esac
31764 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
31765 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
31766 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
31767   echo $ECHO_N "(cached) $ECHO_C" >&6
31768 else
31769   ac_cv_header_sys_sysmacros_h=$ac_header_preproc
31770 fi
31771 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
31772 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
31773
31774 fi
31775 if test $ac_cv_header_sys_sysmacros_h = yes; then
31776
31777 cat >>confdefs.h <<\_ACEOF
31778 #define MAJOR_IN_SYSMACROS 1
31779 _ACEOF
31780
31781 fi
31782
31783
31784   fi
31785 fi
31786
31787
31788
31789
31790
31791
31792 ac_header_dirent=no
31793 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
31794   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
31795 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
31796 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
31797 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31798   echo $ECHO_N "(cached) $ECHO_C" >&6
31799 else
31800   cat >conftest.$ac_ext <<_ACEOF
31801 /* confdefs.h.  */
31802 _ACEOF
31803 cat confdefs.h >>conftest.$ac_ext
31804 cat >>conftest.$ac_ext <<_ACEOF
31805 /* end confdefs.h.  */
31806 #include <sys/types.h>
31807 #include <$ac_hdr>
31808
31809 int
31810 main ()
31811 {
31812 if ((DIR *) 0)
31813 return 0;
31814   ;
31815   return 0;
31816 }
31817 _ACEOF
31818 rm -f conftest.$ac_objext
31819 if { (ac_try="$ac_compile"
31820 case "(($ac_try" in
31821   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31822   *) ac_try_echo=$ac_try;;
31823 esac
31824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31825   (eval "$ac_compile") 2>conftest.er1
31826   ac_status=$?
31827   grep -v '^ *+' conftest.er1 >conftest.err
31828   rm -f conftest.er1
31829   cat conftest.err >&5
31830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31831   (exit $ac_status); } && {
31832          test -z "$ac_c_werror_flag" ||
31833          test ! -s conftest.err
31834        } && test -s conftest.$ac_objext; then
31835   eval "$as_ac_Header=yes"
31836 else
31837   echo "$as_me: failed program was:" >&5
31838 sed 's/^/| /' conftest.$ac_ext >&5
31839
31840         eval "$as_ac_Header=no"
31841 fi
31842
31843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31844 fi
31845 ac_res=`eval echo '${'$as_ac_Header'}'`
31846                { echo "$as_me:$LINENO: result: $ac_res" >&5
31847 echo "${ECHO_T}$ac_res" >&6; }
31848 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31849   cat >>confdefs.h <<_ACEOF
31850 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
31851 _ACEOF
31852
31853 ac_header_dirent=$ac_hdr; break
31854 fi
31855
31856 done
31857 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
31858 if test $ac_header_dirent = dirent.h; then
31859   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
31860 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
31861 if test "${ac_cv_search_opendir+set}" = set; then
31862   echo $ECHO_N "(cached) $ECHO_C" >&6
31863 else
31864   ac_func_search_save_LIBS=$LIBS
31865 cat >conftest.$ac_ext <<_ACEOF
31866 /* confdefs.h.  */
31867 _ACEOF
31868 cat confdefs.h >>conftest.$ac_ext
31869 cat >>conftest.$ac_ext <<_ACEOF
31870 /* end confdefs.h.  */
31871
31872 /* Override any GCC internal prototype to avoid an error.
31873    Use char because int might match the return type of a GCC
31874    builtin and then its argument prototype would still apply.  */
31875 #ifdef __cplusplus
31876 extern "C"
31877 #endif
31878 char opendir ();
31879 int
31880 main ()
31881 {
31882 return opendir ();
31883   ;
31884   return 0;
31885 }
31886 _ACEOF
31887 for ac_lib in '' dir; do
31888   if test -z "$ac_lib"; then
31889     ac_res="none required"
31890   else
31891     ac_res=-l$ac_lib
31892     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
31893   fi
31894   rm -f conftest.$ac_objext conftest$ac_exeext
31895 if { (ac_try="$ac_link"
31896 case "(($ac_try" in
31897   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31898   *) ac_try_echo=$ac_try;;
31899 esac
31900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31901   (eval "$ac_link") 2>conftest.er1
31902   ac_status=$?
31903   grep -v '^ *+' conftest.er1 >conftest.err
31904   rm -f conftest.er1
31905   cat conftest.err >&5
31906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31907   (exit $ac_status); } && {
31908          test -z "$ac_c_werror_flag" ||
31909          test ! -s conftest.err
31910        } && test -s conftest$ac_exeext &&
31911        $as_test_x conftest$ac_exeext; then
31912   ac_cv_search_opendir=$ac_res
31913 else
31914   echo "$as_me: failed program was:" >&5
31915 sed 's/^/| /' conftest.$ac_ext >&5
31916
31917
31918 fi
31919
31920 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31921       conftest$ac_exeext
31922   if test "${ac_cv_search_opendir+set}" = set; then
31923   break
31924 fi
31925 done
31926 if test "${ac_cv_search_opendir+set}" = set; then
31927   :
31928 else
31929   ac_cv_search_opendir=no
31930 fi
31931 rm conftest.$ac_ext
31932 LIBS=$ac_func_search_save_LIBS
31933 fi
31934 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
31935 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
31936 ac_res=$ac_cv_search_opendir
31937 if test "$ac_res" != no; then
31938   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
31939
31940 fi
31941
31942 else
31943   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
31944 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
31945 if test "${ac_cv_search_opendir+set}" = set; then
31946   echo $ECHO_N "(cached) $ECHO_C" >&6
31947 else
31948   ac_func_search_save_LIBS=$LIBS
31949 cat >conftest.$ac_ext <<_ACEOF
31950 /* confdefs.h.  */
31951 _ACEOF
31952 cat confdefs.h >>conftest.$ac_ext
31953 cat >>conftest.$ac_ext <<_ACEOF
31954 /* end confdefs.h.  */
31955
31956 /* Override any GCC internal prototype to avoid an error.
31957    Use char because int might match the return type of a GCC
31958    builtin and then its argument prototype would still apply.  */
31959 #ifdef __cplusplus
31960 extern "C"
31961 #endif
31962 char opendir ();
31963 int
31964 main ()
31965 {
31966 return opendir ();
31967   ;
31968   return 0;
31969 }
31970 _ACEOF
31971 for ac_lib in '' x; do
31972   if test -z "$ac_lib"; then
31973     ac_res="none required"
31974   else
31975     ac_res=-l$ac_lib
31976     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
31977   fi
31978   rm -f conftest.$ac_objext conftest$ac_exeext
31979 if { (ac_try="$ac_link"
31980 case "(($ac_try" in
31981   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31982   *) ac_try_echo=$ac_try;;
31983 esac
31984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31985   (eval "$ac_link") 2>conftest.er1
31986   ac_status=$?
31987   grep -v '^ *+' conftest.er1 >conftest.err
31988   rm -f conftest.er1
31989   cat conftest.err >&5
31990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31991   (exit $ac_status); } && {
31992          test -z "$ac_c_werror_flag" ||
31993          test ! -s conftest.err
31994        } && test -s conftest$ac_exeext &&
31995        $as_test_x conftest$ac_exeext; then
31996   ac_cv_search_opendir=$ac_res
31997 else
31998   echo "$as_me: failed program was:" >&5
31999 sed 's/^/| /' conftest.$ac_ext >&5
32000
32001
32002 fi
32003
32004 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32005       conftest$ac_exeext
32006   if test "${ac_cv_search_opendir+set}" = set; then
32007   break
32008 fi
32009 done
32010 if test "${ac_cv_search_opendir+set}" = set; then
32011   :
32012 else
32013   ac_cv_search_opendir=no
32014 fi
32015 rm conftest.$ac_ext
32016 LIBS=$ac_func_search_save_LIBS
32017 fi
32018 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
32019 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
32020 ac_res=$ac_cv_search_opendir
32021 if test "$ac_res" != no; then
32022   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
32023
32024 fi
32025
32026 fi
32027
32028 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
32029 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
32030 if test "${ac_cv_header_stat_broken+set}" = set; then
32031   echo $ECHO_N "(cached) $ECHO_C" >&6
32032 else
32033   cat >conftest.$ac_ext <<_ACEOF
32034 /* confdefs.h.  */
32035 _ACEOF
32036 cat confdefs.h >>conftest.$ac_ext
32037 cat >>conftest.$ac_ext <<_ACEOF
32038 /* end confdefs.h.  */
32039 #include <sys/types.h>
32040 #include <sys/stat.h>
32041
32042 #if defined S_ISBLK && defined S_IFDIR
32043 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
32044 #endif
32045
32046 #if defined S_ISBLK && defined S_IFCHR
32047 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
32048 #endif
32049
32050 #if defined S_ISLNK && defined S_IFREG
32051 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
32052 #endif
32053
32054 #if defined S_ISSOCK && defined S_IFREG
32055 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
32056 #endif
32057
32058 _ACEOF
32059 rm -f conftest.$ac_objext
32060 if { (ac_try="$ac_compile"
32061 case "(($ac_try" in
32062   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32063   *) ac_try_echo=$ac_try;;
32064 esac
32065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32066   (eval "$ac_compile") 2>conftest.er1
32067   ac_status=$?
32068   grep -v '^ *+' conftest.er1 >conftest.err
32069   rm -f conftest.er1
32070   cat conftest.err >&5
32071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32072   (exit $ac_status); } && {
32073          test -z "$ac_c_werror_flag" ||
32074          test ! -s conftest.err
32075        } && test -s conftest.$ac_objext; then
32076   ac_cv_header_stat_broken=no
32077 else
32078   echo "$as_me: failed program was:" >&5
32079 sed 's/^/| /' conftest.$ac_ext >&5
32080
32081         ac_cv_header_stat_broken=yes
32082 fi
32083
32084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32085 fi
32086 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
32087 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
32088 if test $ac_cv_header_stat_broken = yes; then
32089
32090 cat >>confdefs.h <<\_ACEOF
32091 #define STAT_MACROS_BROKEN 1
32092 _ACEOF
32093
32094 fi
32095
32096 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
32097 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
32098 if test "${ac_cv_header_sys_wait_h+set}" = set; then
32099   echo $ECHO_N "(cached) $ECHO_C" >&6
32100 else
32101   cat >conftest.$ac_ext <<_ACEOF
32102 /* confdefs.h.  */
32103 _ACEOF
32104 cat confdefs.h >>conftest.$ac_ext
32105 cat >>conftest.$ac_ext <<_ACEOF
32106 /* end confdefs.h.  */
32107 #include <sys/types.h>
32108 #include <sys/wait.h>
32109 #ifndef WEXITSTATUS
32110 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
32111 #endif
32112 #ifndef WIFEXITED
32113 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
32114 #endif
32115
32116 int
32117 main ()
32118 {
32119   int s;
32120   wait (&s);
32121   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
32122   ;
32123   return 0;
32124 }
32125 _ACEOF
32126 rm -f conftest.$ac_objext
32127 if { (ac_try="$ac_compile"
32128 case "(($ac_try" in
32129   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32130   *) ac_try_echo=$ac_try;;
32131 esac
32132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32133   (eval "$ac_compile") 2>conftest.er1
32134   ac_status=$?
32135   grep -v '^ *+' conftest.er1 >conftest.err
32136   rm -f conftest.er1
32137   cat conftest.err >&5
32138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32139   (exit $ac_status); } && {
32140          test -z "$ac_c_werror_flag" ||
32141          test ! -s conftest.err
32142        } && test -s conftest.$ac_objext; then
32143   ac_cv_header_sys_wait_h=yes
32144 else
32145   echo "$as_me: failed program was:" >&5
32146 sed 's/^/| /' conftest.$ac_ext >&5
32147
32148         ac_cv_header_sys_wait_h=no
32149 fi
32150
32151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32152 fi
32153 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
32154 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
32155 if test $ac_cv_header_sys_wait_h = yes; then
32156
32157 cat >>confdefs.h <<\_ACEOF
32158 #define HAVE_SYS_WAIT_H 1
32159 _ACEOF
32160
32161 fi
32162
32163 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
32164 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
32165 if test "${ac_cv_header_time+set}" = set; then
32166   echo $ECHO_N "(cached) $ECHO_C" >&6
32167 else
32168   cat >conftest.$ac_ext <<_ACEOF
32169 /* confdefs.h.  */
32170 _ACEOF
32171 cat confdefs.h >>conftest.$ac_ext
32172 cat >>conftest.$ac_ext <<_ACEOF
32173 /* end confdefs.h.  */
32174 #include <sys/types.h>
32175 #include <sys/time.h>
32176 #include <time.h>
32177
32178 int
32179 main ()
32180 {
32181 if ((struct tm *) 0)
32182 return 0;
32183   ;
32184   return 0;
32185 }
32186 _ACEOF
32187 rm -f conftest.$ac_objext
32188 if { (ac_try="$ac_compile"
32189 case "(($ac_try" in
32190   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32191   *) ac_try_echo=$ac_try;;
32192 esac
32193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32194   (eval "$ac_compile") 2>conftest.er1
32195   ac_status=$?
32196   grep -v '^ *+' conftest.er1 >conftest.err
32197   rm -f conftest.er1
32198   cat conftest.err >&5
32199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32200   (exit $ac_status); } && {
32201          test -z "$ac_c_werror_flag" ||
32202          test ! -s conftest.err
32203        } && test -s conftest.$ac_objext; then
32204   ac_cv_header_time=yes
32205 else
32206   echo "$as_me: failed program was:" >&5
32207 sed 's/^/| /' conftest.$ac_ext >&5
32208
32209         ac_cv_header_time=no
32210 fi
32211
32212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32213 fi
32214 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
32215 echo "${ECHO_T}$ac_cv_header_time" >&6; }
32216 if test $ac_cv_header_time = yes; then
32217
32218 cat >>confdefs.h <<\_ACEOF
32219 #define TIME_WITH_SYS_TIME 1
32220 _ACEOF
32221
32222 fi
32223
32224 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
32225 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
32226 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
32227   echo $ECHO_N "(cached) $ECHO_C" >&6
32228 else
32229   cat >conftest.$ac_ext <<_ACEOF
32230 /* confdefs.h.  */
32231 _ACEOF
32232 cat confdefs.h >>conftest.$ac_ext
32233 cat >>conftest.$ac_ext <<_ACEOF
32234 /* end confdefs.h.  */
32235 $ac_includes_default
32236 int
32237 main ()
32238 {
32239 static struct stat ac_aggr;
32240 if (ac_aggr.st_blksize)
32241 return 0;
32242   ;
32243   return 0;
32244 }
32245 _ACEOF
32246 rm -f conftest.$ac_objext
32247 if { (ac_try="$ac_compile"
32248 case "(($ac_try" in
32249   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32250   *) ac_try_echo=$ac_try;;
32251 esac
32252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32253   (eval "$ac_compile") 2>conftest.er1
32254   ac_status=$?
32255   grep -v '^ *+' conftest.er1 >conftest.err
32256   rm -f conftest.er1
32257   cat conftest.err >&5
32258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32259   (exit $ac_status); } && {
32260          test -z "$ac_c_werror_flag" ||
32261          test ! -s conftest.err
32262        } && test -s conftest.$ac_objext; then
32263   ac_cv_member_struct_stat_st_blksize=yes
32264 else
32265   echo "$as_me: failed program was:" >&5
32266 sed 's/^/| /' conftest.$ac_ext >&5
32267
32268         cat >conftest.$ac_ext <<_ACEOF
32269 /* confdefs.h.  */
32270 _ACEOF
32271 cat confdefs.h >>conftest.$ac_ext
32272 cat >>conftest.$ac_ext <<_ACEOF
32273 /* end confdefs.h.  */
32274 $ac_includes_default
32275 int
32276 main ()
32277 {
32278 static struct stat ac_aggr;
32279 if (sizeof ac_aggr.st_blksize)
32280 return 0;
32281   ;
32282   return 0;
32283 }
32284 _ACEOF
32285 rm -f conftest.$ac_objext
32286 if { (ac_try="$ac_compile"
32287 case "(($ac_try" in
32288   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32289   *) ac_try_echo=$ac_try;;
32290 esac
32291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32292   (eval "$ac_compile") 2>conftest.er1
32293   ac_status=$?
32294   grep -v '^ *+' conftest.er1 >conftest.err
32295   rm -f conftest.er1
32296   cat conftest.err >&5
32297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32298   (exit $ac_status); } && {
32299          test -z "$ac_c_werror_flag" ||
32300          test ! -s conftest.err
32301        } && test -s conftest.$ac_objext; then
32302   ac_cv_member_struct_stat_st_blksize=yes
32303 else
32304   echo "$as_me: failed program was:" >&5
32305 sed 's/^/| /' conftest.$ac_ext >&5
32306
32307         ac_cv_member_struct_stat_st_blksize=no
32308 fi
32309
32310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32311 fi
32312
32313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32314 fi
32315 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
32316 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
32317 if test $ac_cv_member_struct_stat_st_blksize = yes; then
32318
32319 cat >>confdefs.h <<_ACEOF
32320 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
32321 _ACEOF
32322
32323
32324 cat >>confdefs.h <<\_ACEOF
32325 #define HAVE_ST_BLKSIZE 1
32326 _ACEOF
32327
32328 fi
32329
32330
32331 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
32332 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
32333 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
32334   echo $ECHO_N "(cached) $ECHO_C" >&6
32335 else
32336   cat >conftest.$ac_ext <<_ACEOF
32337 /* confdefs.h.  */
32338 _ACEOF
32339 cat confdefs.h >>conftest.$ac_ext
32340 cat >>conftest.$ac_ext <<_ACEOF
32341 /* end confdefs.h.  */
32342 $ac_includes_default
32343 int
32344 main ()
32345 {
32346 static struct stat ac_aggr;
32347 if (ac_aggr.st_blocks)
32348 return 0;
32349   ;
32350   return 0;
32351 }
32352 _ACEOF
32353 rm -f conftest.$ac_objext
32354 if { (ac_try="$ac_compile"
32355 case "(($ac_try" in
32356   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32357   *) ac_try_echo=$ac_try;;
32358 esac
32359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32360   (eval "$ac_compile") 2>conftest.er1
32361   ac_status=$?
32362   grep -v '^ *+' conftest.er1 >conftest.err
32363   rm -f conftest.er1
32364   cat conftest.err >&5
32365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32366   (exit $ac_status); } && {
32367          test -z "$ac_c_werror_flag" ||
32368          test ! -s conftest.err
32369        } && test -s conftest.$ac_objext; then
32370   ac_cv_member_struct_stat_st_blocks=yes
32371 else
32372   echo "$as_me: failed program was:" >&5
32373 sed 's/^/| /' conftest.$ac_ext >&5
32374
32375         cat >conftest.$ac_ext <<_ACEOF
32376 /* confdefs.h.  */
32377 _ACEOF
32378 cat confdefs.h >>conftest.$ac_ext
32379 cat >>conftest.$ac_ext <<_ACEOF
32380 /* end confdefs.h.  */
32381 $ac_includes_default
32382 int
32383 main ()
32384 {
32385 static struct stat ac_aggr;
32386 if (sizeof ac_aggr.st_blocks)
32387 return 0;
32388   ;
32389   return 0;
32390 }
32391 _ACEOF
32392 rm -f conftest.$ac_objext
32393 if { (ac_try="$ac_compile"
32394 case "(($ac_try" in
32395   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32396   *) ac_try_echo=$ac_try;;
32397 esac
32398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32399   (eval "$ac_compile") 2>conftest.er1
32400   ac_status=$?
32401   grep -v '^ *+' conftest.er1 >conftest.err
32402   rm -f conftest.er1
32403   cat conftest.err >&5
32404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32405   (exit $ac_status); } && {
32406          test -z "$ac_c_werror_flag" ||
32407          test ! -s conftest.err
32408        } && test -s conftest.$ac_objext; then
32409   ac_cv_member_struct_stat_st_blocks=yes
32410 else
32411   echo "$as_me: failed program was:" >&5
32412 sed 's/^/| /' conftest.$ac_ext >&5
32413
32414         ac_cv_member_struct_stat_st_blocks=no
32415 fi
32416
32417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32418 fi
32419
32420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32421 fi
32422 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
32423 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
32424 if test $ac_cv_member_struct_stat_st_blocks = yes; then
32425
32426 cat >>confdefs.h <<_ACEOF
32427 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
32428 _ACEOF
32429
32430
32431 cat >>confdefs.h <<\_ACEOF
32432 #define HAVE_ST_BLOCKS 1
32433 _ACEOF
32434
32435 else
32436   case " $LIBOBJS " in
32437   *" fileblocks.$ac_objext "* ) ;;
32438   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
32439  ;;
32440 esac
32441
32442 fi
32443
32444
32445 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
32446 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
32447 if test "${ac_cv_struct_tm+set}" = set; then
32448   echo $ECHO_N "(cached) $ECHO_C" >&6
32449 else
32450   cat >conftest.$ac_ext <<_ACEOF
32451 /* confdefs.h.  */
32452 _ACEOF
32453 cat confdefs.h >>conftest.$ac_ext
32454 cat >>conftest.$ac_ext <<_ACEOF
32455 /* end confdefs.h.  */
32456 #include <sys/types.h>
32457 #include <time.h>
32458
32459 int
32460 main ()
32461 {
32462 struct tm tm;
32463                                      int *p = &tm.tm_sec;
32464                                      return !p;
32465   ;
32466   return 0;
32467 }
32468 _ACEOF
32469 rm -f conftest.$ac_objext
32470 if { (ac_try="$ac_compile"
32471 case "(($ac_try" in
32472   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32473   *) ac_try_echo=$ac_try;;
32474 esac
32475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32476   (eval "$ac_compile") 2>conftest.er1
32477   ac_status=$?
32478   grep -v '^ *+' conftest.er1 >conftest.err
32479   rm -f conftest.er1
32480   cat conftest.err >&5
32481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32482   (exit $ac_status); } && {
32483          test -z "$ac_c_werror_flag" ||
32484          test ! -s conftest.err
32485        } && test -s conftest.$ac_objext; then
32486   ac_cv_struct_tm=time.h
32487 else
32488   echo "$as_me: failed program was:" >&5
32489 sed 's/^/| /' conftest.$ac_ext >&5
32490
32491         ac_cv_struct_tm=sys/time.h
32492 fi
32493
32494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32495 fi
32496 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
32497 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
32498 if test $ac_cv_struct_tm = sys/time.h; then
32499
32500 cat >>confdefs.h <<\_ACEOF
32501 #define TM_IN_SYS_TIME 1
32502 _ACEOF
32503
32504 fi
32505
32506 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
32507 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
32508 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
32509   echo $ECHO_N "(cached) $ECHO_C" >&6
32510 else
32511   cat >conftest.$ac_ext <<_ACEOF
32512 /* confdefs.h.  */
32513 _ACEOF
32514 cat confdefs.h >>conftest.$ac_ext
32515 cat >>conftest.$ac_ext <<_ACEOF
32516 /* end confdefs.h.  */
32517 #include <sys/types.h>
32518 #include <$ac_cv_struct_tm>
32519
32520
32521 int
32522 main ()
32523 {
32524 static struct tm ac_aggr;
32525 if (ac_aggr.tm_zone)
32526 return 0;
32527   ;
32528   return 0;
32529 }
32530 _ACEOF
32531 rm -f conftest.$ac_objext
32532 if { (ac_try="$ac_compile"
32533 case "(($ac_try" in
32534   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32535   *) ac_try_echo=$ac_try;;
32536 esac
32537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32538   (eval "$ac_compile") 2>conftest.er1
32539   ac_status=$?
32540   grep -v '^ *+' conftest.er1 >conftest.err
32541   rm -f conftest.er1
32542   cat conftest.err >&5
32543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32544   (exit $ac_status); } && {
32545          test -z "$ac_c_werror_flag" ||
32546          test ! -s conftest.err
32547        } && test -s conftest.$ac_objext; then
32548   ac_cv_member_struct_tm_tm_zone=yes
32549 else
32550   echo "$as_me: failed program was:" >&5
32551 sed 's/^/| /' conftest.$ac_ext >&5
32552
32553         cat >conftest.$ac_ext <<_ACEOF
32554 /* confdefs.h.  */
32555 _ACEOF
32556 cat confdefs.h >>conftest.$ac_ext
32557 cat >>conftest.$ac_ext <<_ACEOF
32558 /* end confdefs.h.  */
32559 #include <sys/types.h>
32560 #include <$ac_cv_struct_tm>
32561
32562
32563 int
32564 main ()
32565 {
32566 static struct tm ac_aggr;
32567 if (sizeof ac_aggr.tm_zone)
32568 return 0;
32569   ;
32570   return 0;
32571 }
32572 _ACEOF
32573 rm -f conftest.$ac_objext
32574 if { (ac_try="$ac_compile"
32575 case "(($ac_try" in
32576   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32577   *) ac_try_echo=$ac_try;;
32578 esac
32579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32580   (eval "$ac_compile") 2>conftest.er1
32581   ac_status=$?
32582   grep -v '^ *+' conftest.er1 >conftest.err
32583   rm -f conftest.er1
32584   cat conftest.err >&5
32585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32586   (exit $ac_status); } && {
32587          test -z "$ac_c_werror_flag" ||
32588          test ! -s conftest.err
32589        } && test -s conftest.$ac_objext; then
32590   ac_cv_member_struct_tm_tm_zone=yes
32591 else
32592   echo "$as_me: failed program was:" >&5
32593 sed 's/^/| /' conftest.$ac_ext >&5
32594
32595         ac_cv_member_struct_tm_tm_zone=no
32596 fi
32597
32598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32599 fi
32600
32601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32602 fi
32603 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
32604 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
32605 if test $ac_cv_member_struct_tm_tm_zone = yes; then
32606
32607 cat >>confdefs.h <<_ACEOF
32608 #define HAVE_STRUCT_TM_TM_ZONE 1
32609 _ACEOF
32610
32611
32612 fi
32613
32614 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
32615
32616 cat >>confdefs.h <<\_ACEOF
32617 #define HAVE_TM_ZONE 1
32618 _ACEOF
32619
32620 else
32621   { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
32622 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
32623 if test "${ac_cv_have_decl_tzname+set}" = set; then
32624   echo $ECHO_N "(cached) $ECHO_C" >&6
32625 else
32626   cat >conftest.$ac_ext <<_ACEOF
32627 /* confdefs.h.  */
32628 _ACEOF
32629 cat confdefs.h >>conftest.$ac_ext
32630 cat >>conftest.$ac_ext <<_ACEOF
32631 /* end confdefs.h.  */
32632 #include <time.h>
32633
32634 int
32635 main ()
32636 {
32637 #ifndef tzname
32638   (void) tzname;
32639 #endif
32640
32641   ;
32642   return 0;
32643 }
32644 _ACEOF
32645 rm -f conftest.$ac_objext
32646 if { (ac_try="$ac_compile"
32647 case "(($ac_try" in
32648   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32649   *) ac_try_echo=$ac_try;;
32650 esac
32651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32652   (eval "$ac_compile") 2>conftest.er1
32653   ac_status=$?
32654   grep -v '^ *+' conftest.er1 >conftest.err
32655   rm -f conftest.er1
32656   cat conftest.err >&5
32657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32658   (exit $ac_status); } && {
32659          test -z "$ac_c_werror_flag" ||
32660          test ! -s conftest.err
32661        } && test -s conftest.$ac_objext; then
32662   ac_cv_have_decl_tzname=yes
32663 else
32664   echo "$as_me: failed program was:" >&5
32665 sed 's/^/| /' conftest.$ac_ext >&5
32666
32667         ac_cv_have_decl_tzname=no
32668 fi
32669
32670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32671 fi
32672 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
32673 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
32674 if test $ac_cv_have_decl_tzname = yes; then
32675
32676 cat >>confdefs.h <<_ACEOF
32677 #define HAVE_DECL_TZNAME 1
32678 _ACEOF
32679
32680
32681 else
32682   cat >>confdefs.h <<_ACEOF
32683 #define HAVE_DECL_TZNAME 0
32684 _ACEOF
32685
32686
32687 fi
32688
32689
32690   { echo "$as_me:$LINENO: checking for tzname" >&5
32691 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
32692 if test "${ac_cv_var_tzname+set}" = set; then
32693   echo $ECHO_N "(cached) $ECHO_C" >&6
32694 else
32695   cat >conftest.$ac_ext <<_ACEOF
32696 /* confdefs.h.  */
32697 _ACEOF
32698 cat confdefs.h >>conftest.$ac_ext
32699 cat >>conftest.$ac_ext <<_ACEOF
32700 /* end confdefs.h.  */
32701 #include <time.h>
32702 #if !HAVE_DECL_TZNAME
32703 extern char *tzname[];
32704 #endif
32705
32706 int
32707 main ()
32708 {
32709 return tzname[0][0];
32710   ;
32711   return 0;
32712 }
32713 _ACEOF
32714 rm -f conftest.$ac_objext conftest$ac_exeext
32715 if { (ac_try="$ac_link"
32716 case "(($ac_try" in
32717   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32718   *) ac_try_echo=$ac_try;;
32719 esac
32720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32721   (eval "$ac_link") 2>conftest.er1
32722   ac_status=$?
32723   grep -v '^ *+' conftest.er1 >conftest.err
32724   rm -f conftest.er1
32725   cat conftest.err >&5
32726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32727   (exit $ac_status); } && {
32728          test -z "$ac_c_werror_flag" ||
32729          test ! -s conftest.err
32730        } && test -s conftest$ac_exeext &&
32731        $as_test_x conftest$ac_exeext; then
32732   ac_cv_var_tzname=yes
32733 else
32734   echo "$as_me: failed program was:" >&5
32735 sed 's/^/| /' conftest.$ac_ext >&5
32736
32737         ac_cv_var_tzname=no
32738 fi
32739
32740 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32741       conftest$ac_exeext conftest.$ac_ext
32742 fi
32743 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
32744 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
32745   if test $ac_cv_var_tzname = yes; then
32746
32747 cat >>confdefs.h <<\_ACEOF
32748 #define HAVE_TZNAME 1
32749 _ACEOF
32750
32751   fi
32752 fi
32753
32754
32755 { echo "$as_me:$LINENO: checking for utime.h" >&5
32756 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6; }
32757 if test "${ba_cv_header_utime_h+set}" = set; then
32758   echo $ECHO_N "(cached) $ECHO_C" >&6
32759 else
32760
32761        cat >conftest.$ac_ext <<_ACEOF
32762 /* confdefs.h.  */
32763 _ACEOF
32764 cat confdefs.h >>conftest.$ac_ext
32765 cat >>conftest.$ac_ext <<_ACEOF
32766 /* end confdefs.h.  */
32767
32768               #include <sys/types.h>
32769               #include <utime.h>
32770
32771 int
32772 main ()
32773 {
32774
32775               struct utimbuf foo
32776
32777   ;
32778   return 0;
32779 }
32780 _ACEOF
32781 rm -f conftest.$ac_objext
32782 if { (ac_try="$ac_compile"
32783 case "(($ac_try" in
32784   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32785   *) ac_try_echo=$ac_try;;
32786 esac
32787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32788   (eval "$ac_compile") 2>conftest.er1
32789   ac_status=$?
32790   grep -v '^ *+' conftest.er1 >conftest.err
32791   rm -f conftest.er1
32792   cat conftest.err >&5
32793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32794   (exit $ac_status); } && {
32795          test -z "$ac_c_werror_flag" ||
32796          test ! -s conftest.err
32797        } && test -s conftest.$ac_objext; then
32798
32799               ba_cv_header_utime_h=yes
32800
32801 else
32802   echo "$as_me: failed program was:" >&5
32803 sed 's/^/| /' conftest.$ac_ext >&5
32804
32805
32806               ba_cv_header_utime_h=no
32807
32808
32809 fi
32810
32811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32812
32813
32814 fi
32815 { echo "$as_me:$LINENO: result: $ba_cv_header_utime_h" >&5
32816 echo "${ECHO_T}$ba_cv_header_utime_h" >&6; }
32817 test $ba_cv_header_utime_h = yes &&
32818 cat >>confdefs.h <<\_ACEOF
32819 #define HAVE_UTIME_H 1
32820 _ACEOF
32821
32822
32823 { echo "$as_me:$LINENO: checking for socklen_t" >&5
32824 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
32825 if test "${ba_cv_header_socklen_t+set}" = set; then
32826   echo $ECHO_N "(cached) $ECHO_C" >&6
32827 else
32828
32829        cat >conftest.$ac_ext <<_ACEOF
32830 /* confdefs.h.  */
32831 _ACEOF
32832 cat confdefs.h >>conftest.$ac_ext
32833 cat >>conftest.$ac_ext <<_ACEOF
32834 /* end confdefs.h.  */
32835
32836               #include <sys/types.h>
32837               #include <sys/socket.h>
32838
32839 int
32840 main ()
32841 {
32842
32843               socklen_t x
32844
32845   ;
32846   return 0;
32847 }
32848 _ACEOF
32849 rm -f conftest.$ac_objext
32850 if { (ac_try="$ac_compile"
32851 case "(($ac_try" in
32852   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32853   *) ac_try_echo=$ac_try;;
32854 esac
32855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32856   (eval "$ac_compile") 2>conftest.er1
32857   ac_status=$?
32858   grep -v '^ *+' conftest.er1 >conftest.err
32859   rm -f conftest.er1
32860   cat conftest.err >&5
32861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32862   (exit $ac_status); } && {
32863          test -z "$ac_c_werror_flag" ||
32864          test ! -s conftest.err
32865        } && test -s conftest.$ac_objext; then
32866
32867              ba_cv_header_socklen_t=yes
32868
32869 else
32870   echo "$as_me: failed program was:" >&5
32871 sed 's/^/| /' conftest.$ac_ext >&5
32872
32873
32874              ba_cv_header_socklen_t=no
32875
32876
32877 fi
32878
32879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32880
32881
32882 fi
32883 { echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
32884 echo "${ECHO_T}$ba_cv_header_socklen_t" >&6; }
32885 test $ba_cv_header_socklen_t = yes &&
32886 cat >>confdefs.h <<\_ACEOF
32887 #define HAVE_SOCKLEN_T 1
32888 _ACEOF
32889
32890
32891 ac_ext=cpp
32892 ac_cpp='$CXXCPP $CPPFLAGS'
32893 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32894 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32895 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32896
32897 { echo "$as_me:$LINENO: checking for ioctl_req_t" >&5
32898 echo $ECHO_N "checking for ioctl_req_t... $ECHO_C" >&6; }
32899 if test "${ba_cv_header_ioctl_req_t+set}" = set; then
32900   echo $ECHO_N "(cached) $ECHO_C" >&6
32901 else
32902
32903        cat >conftest.$ac_ext <<_ACEOF
32904 /* confdefs.h.  */
32905 _ACEOF
32906 cat confdefs.h >>conftest.$ac_ext
32907 cat >>conftest.$ac_ext <<_ACEOF
32908 /* end confdefs.h.  */
32909
32910               #include <unistd.h>
32911               #include <sys/types.h>
32912               #include <sys/ioctl.h>
32913
32914 int
32915 main ()
32916 {
32917
32918               int (*d_ioctl)(int fd, unsigned long int request, ...);
32919               d_ioctl = ::ioctl;
32920
32921   ;
32922   return 0;
32923 }
32924 _ACEOF
32925 rm -f conftest.$ac_objext
32926 if { (ac_try="$ac_compile"
32927 case "(($ac_try" in
32928   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32929   *) ac_try_echo=$ac_try;;
32930 esac
32931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32932   (eval "$ac_compile") 2>conftest.er1
32933   ac_status=$?
32934   grep -v '^ *+' conftest.er1 >conftest.err
32935   rm -f conftest.er1
32936   cat conftest.err >&5
32937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32938   (exit $ac_status); } && {
32939          test -z "$ac_cxx_werror_flag" ||
32940          test ! -s conftest.err
32941        } && test -s conftest.$ac_objext; then
32942
32943              ba_cv_header_ioctl_req_t=yes
32944
32945 else
32946   echo "$as_me: failed program was:" >&5
32947 sed 's/^/| /' conftest.$ac_ext >&5
32948
32949
32950              ba_cv_header_ioctl_req_t=no
32951
32952
32953 fi
32954
32955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32956
32957
32958 fi
32959 { echo "$as_me:$LINENO: result: $ba_cv_header_ioctl_req_t" >&5
32960 echo "${ECHO_T}$ba_cv_header_ioctl_req_t" >&6; }
32961 test $ba_cv_header_ioctl_req_t = yes &&
32962 cat >>confdefs.h <<\_ACEOF
32963 #define HAVE_IOCTL_ULINT_REQUEST 1
32964 _ACEOF
32965
32966
32967 ac_ext=c
32968 ac_cpp='$CPP $CPPFLAGS'
32969 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32970 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32971 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32972
32973
32974 ac_ext=cpp
32975 ac_cpp='$CXXCPP $CPPFLAGS'
32976 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32977 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32978 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32979
32980 { echo "$as_me:$LINENO: checking for typeof" >&5
32981 echo $ECHO_N "checking for typeof... $ECHO_C" >&6; }
32982 if test "${ba_cv_have_typeof+set}" = set; then
32983   echo $ECHO_N "(cached) $ECHO_C" >&6
32984 else
32985
32986        if test "$cross_compiling" = yes; then
32987
32988               ba_cv_have_typeof=no
32989
32990
32991 else
32992   cat >conftest.$ac_ext <<_ACEOF
32993 /* confdefs.h.  */
32994 _ACEOF
32995 cat confdefs.h >>conftest.$ac_ext
32996 cat >>conftest.$ac_ext <<_ACEOF
32997 /* end confdefs.h.  */
32998
32999               main(){char *a = 0; a = (typeof a)a;}
33000
33001 _ACEOF
33002 rm -f conftest$ac_exeext
33003 if { (ac_try="$ac_link"
33004 case "(($ac_try" in
33005   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33006   *) ac_try_echo=$ac_try;;
33007 esac
33008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33009   (eval "$ac_link") 2>&5
33010   ac_status=$?
33011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33012   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33013   { (case "(($ac_try" in
33014   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33015   *) ac_try_echo=$ac_try;;
33016 esac
33017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33018   (eval "$ac_try") 2>&5
33019   ac_status=$?
33020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33021   (exit $ac_status); }; }; then
33022
33023               ba_cv_have_typeof=yes
33024
33025 else
33026   echo "$as_me: program exited with status $ac_status" >&5
33027 echo "$as_me: failed program was:" >&5
33028 sed 's/^/| /' conftest.$ac_ext >&5
33029
33030 ( exit $ac_status )
33031
33032               ba_cv_have_typeof=no
33033
33034 fi
33035 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33036 fi
33037
33038
33039
33040
33041 fi
33042 { echo "$as_me:$LINENO: result: $ba_cv_have_typeof" >&5
33043 echo "${ECHO_T}$ba_cv_have_typeof" >&6; }
33044 test $ba_cv_have_typeof = yes &&
33045 cat >>confdefs.h <<\_ACEOF
33046 #define HAVE_TYPEOF 1
33047 _ACEOF
33048
33049 ac_ext=c
33050 ac_cpp='$CPP $CPPFLAGS'
33051 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33052 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33053 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33054
33055
33056 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
33057 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
33058 if test "${ac_cv_c_const+set}" = set; then
33059   echo $ECHO_N "(cached) $ECHO_C" >&6
33060 else
33061   cat >conftest.$ac_ext <<_ACEOF
33062 /* confdefs.h.  */
33063 _ACEOF
33064 cat confdefs.h >>conftest.$ac_ext
33065 cat >>conftest.$ac_ext <<_ACEOF
33066 /* end confdefs.h.  */
33067
33068 int
33069 main ()
33070 {
33071 /* FIXME: Include the comments suggested by Paul. */
33072 #ifndef __cplusplus
33073   /* Ultrix mips cc rejects this.  */
33074   typedef int charset[2];
33075   const charset cs;
33076   /* SunOS 4.1.1 cc rejects this.  */
33077   char const *const *pcpcc;
33078   char **ppc;
33079   /* NEC SVR4.0.2 mips cc rejects this.  */
33080   struct point {int x, y;};
33081   static struct point const zero = {0,0};
33082   /* AIX XL C 1.02.0.0 rejects this.
33083      It does not let you subtract one const X* pointer from another in
33084      an arm of an if-expression whose if-part is not a constant
33085      expression */
33086   const char *g = "string";
33087   pcpcc = &g + (g ? g-g : 0);
33088   /* HPUX 7.0 cc rejects these. */
33089   ++pcpcc;
33090   ppc = (char**) pcpcc;
33091   pcpcc = (char const *const *) ppc;
33092   { /* SCO 3.2v4 cc rejects this.  */
33093     char *t;
33094     char const *s = 0 ? (char *) 0 : (char const *) 0;
33095
33096     *t++ = 0;
33097     if (s) return 0;
33098   }
33099   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
33100     int x[] = {25, 17};
33101     const int *foo = &x[0];
33102     ++foo;
33103   }
33104   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
33105     typedef const int *iptr;
33106     iptr p = 0;
33107     ++p;
33108   }
33109   { /* AIX XL C 1.02.0.0 rejects this saying
33110        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
33111     struct s { int j; const int *ap[3]; };
33112     struct s *b; b->j = 5;
33113   }
33114   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
33115     const int foo = 10;
33116     if (!foo) return 0;
33117   }
33118   return !cs[0] && !zero.x;
33119 #endif
33120
33121   ;
33122   return 0;
33123 }
33124 _ACEOF
33125 rm -f conftest.$ac_objext
33126 if { (ac_try="$ac_compile"
33127 case "(($ac_try" in
33128   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33129   *) ac_try_echo=$ac_try;;
33130 esac
33131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33132   (eval "$ac_compile") 2>conftest.er1
33133   ac_status=$?
33134   grep -v '^ *+' conftest.er1 >conftest.err
33135   rm -f conftest.er1
33136   cat conftest.err >&5
33137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33138   (exit $ac_status); } && {
33139          test -z "$ac_c_werror_flag" ||
33140          test ! -s conftest.err
33141        } && test -s conftest.$ac_objext; then
33142   ac_cv_c_const=yes
33143 else
33144   echo "$as_me: failed program was:" >&5
33145 sed 's/^/| /' conftest.$ac_ext >&5
33146
33147         ac_cv_c_const=no
33148 fi
33149
33150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33151 fi
33152 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
33153 echo "${ECHO_T}$ac_cv_c_const" >&6; }
33154 if test $ac_cv_c_const = no; then
33155
33156 cat >>confdefs.h <<\_ACEOF
33157 #define const
33158 _ACEOF
33159
33160 fi
33161
33162
33163 { echo "$as_me:$LINENO: checking how to get filesystem type" >&5
33164 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" >&6; }
33165 fstype=no
33166 # The order of these tests is important.
33167 cat >conftest.$ac_ext <<_ACEOF
33168 /* confdefs.h.  */
33169 _ACEOF
33170 cat confdefs.h >>conftest.$ac_ext
33171 cat >>conftest.$ac_ext <<_ACEOF
33172 /* end confdefs.h.  */
33173
33174        #include <sys/statvfs.h>
33175        #include <sys/fstyp.h>
33176
33177 _ACEOF
33178 if { (ac_try="$ac_cpp conftest.$ac_ext"
33179 case "(($ac_try" in
33180   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33181   *) ac_try_echo=$ac_try;;
33182 esac
33183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33184   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33185   ac_status=$?
33186   grep -v '^ *+' conftest.er1 >conftest.err
33187   rm -f conftest.er1
33188   cat conftest.err >&5
33189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33190   (exit $ac_status); } >/dev/null && {
33191          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33192          test ! -s conftest.err
33193        }; then
33194   cat >>confdefs.h <<\_ACEOF
33195 #define FSTYPE_STATVFS 1
33196 _ACEOF
33197  fstype=SVR4
33198
33199 else
33200   echo "$as_me: failed program was:" >&5
33201 sed 's/^/| /' conftest.$ac_ext >&5
33202
33203
33204 fi
33205
33206 rm -f conftest.err conftest.$ac_ext
33207 if test $fstype = no; then
33208    cat >conftest.$ac_ext <<_ACEOF
33209 /* confdefs.h.  */
33210 _ACEOF
33211 cat confdefs.h >>conftest.$ac_ext
33212 cat >>conftest.$ac_ext <<_ACEOF
33213 /* end confdefs.h.  */
33214
33215           #include <sys/statfs.h>
33216           #include <sys/fstyp.h>
33217
33218 _ACEOF
33219 if { (ac_try="$ac_cpp conftest.$ac_ext"
33220 case "(($ac_try" in
33221   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33222   *) ac_try_echo=$ac_try;;
33223 esac
33224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33225   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33226   ac_status=$?
33227   grep -v '^ *+' conftest.er1 >conftest.err
33228   rm -f conftest.er1
33229   cat conftest.err >&5
33230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33231   (exit $ac_status); } >/dev/null && {
33232          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33233          test ! -s conftest.err
33234        }; then
33235   cat >>confdefs.h <<\_ACEOF
33236 #define FSTYPE_USG_STATFS 1
33237 _ACEOF
33238  fstype=SVR3
33239
33240 else
33241   echo "$as_me: failed program was:" >&5
33242 sed 's/^/| /' conftest.$ac_ext >&5
33243
33244
33245 fi
33246
33247 rm -f conftest.err conftest.$ac_ext
33248 fi
33249 if test $fstype = no; then
33250    cat >conftest.$ac_ext <<_ACEOF
33251 /* confdefs.h.  */
33252 _ACEOF
33253 cat confdefs.h >>conftest.$ac_ext
33254 cat >>conftest.$ac_ext <<_ACEOF
33255 /* end confdefs.h.  */
33256
33257           #include <sys/statfs.h>
33258           #include <sys/vmount.h>
33259
33260 _ACEOF
33261 if { (ac_try="$ac_cpp conftest.$ac_ext"
33262 case "(($ac_try" in
33263   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33264   *) ac_try_echo=$ac_try;;
33265 esac
33266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33267   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33268   ac_status=$?
33269   grep -v '^ *+' conftest.er1 >conftest.err
33270   rm -f conftest.er1
33271   cat conftest.err >&5
33272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33273   (exit $ac_status); } >/dev/null && {
33274          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33275          test ! -s conftest.err
33276        }; then
33277   cat >>confdefs.h <<\_ACEOF
33278 #define FSTYPE_AIX_STATFS 1
33279 _ACEOF
33280  fstype=AIX
33281
33282 else
33283   echo "$as_me: failed program was:" >&5
33284 sed 's/^/| /' conftest.$ac_ext >&5
33285
33286
33287 fi
33288
33289 rm -f conftest.err conftest.$ac_ext
33290 fi
33291 if test $fstype = no; then
33292    cat >conftest.$ac_ext <<_ACEOF
33293 /* confdefs.h.  */
33294 _ACEOF
33295 cat confdefs.h >>conftest.$ac_ext
33296 cat >>conftest.$ac_ext <<_ACEOF
33297 /* end confdefs.h.  */
33298
33299           #include <mntent.h>
33300
33301 _ACEOF
33302 if { (ac_try="$ac_cpp conftest.$ac_ext"
33303 case "(($ac_try" in
33304   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33305   *) ac_try_echo=$ac_try;;
33306 esac
33307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33308   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33309   ac_status=$?
33310   grep -v '^ *+' conftest.er1 >conftest.err
33311   rm -f conftest.er1
33312   cat conftest.err >&5
33313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33314   (exit $ac_status); } >/dev/null && {
33315          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33316          test ! -s conftest.err
33317        }; then
33318   cat >>confdefs.h <<\_ACEOF
33319 #define FSTYPE_MNTENT 1
33320 _ACEOF
33321  fstype=4.3BSD
33322
33323 else
33324   echo "$as_me: failed program was:" >&5
33325 sed 's/^/| /' conftest.$ac_ext >&5
33326
33327
33328 fi
33329
33330 rm -f conftest.err conftest.$ac_ext
33331 fi
33332 if test $fstype = no; then
33333    cat >conftest.$ac_ext <<_ACEOF
33334 /* confdefs.h.  */
33335 _ACEOF
33336 cat confdefs.h >>conftest.$ac_ext
33337 cat >>conftest.$ac_ext <<_ACEOF
33338 /* end confdefs.h.  */
33339 #include <sys/mount.h>
33340
33341 _ACEOF
33342 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33343   $EGREP "f_type;" >/dev/null 2>&1; then
33344   cat >>confdefs.h <<\_ACEOF
33345 #define FSTYPE_STATFS 1
33346 _ACEOF
33347  fstype=4.4BSD/OSF1
33348 fi
33349 rm -f conftest*
33350
33351 fi
33352 if test $fstype = no; then
33353    cat >conftest.$ac_ext <<_ACEOF
33354 /* confdefs.h.  */
33355 _ACEOF
33356 cat confdefs.h >>conftest.$ac_ext
33357 cat >>conftest.$ac_ext <<_ACEOF
33358 /* end confdefs.h.  */
33359
33360           #include <sys/mount.h>
33361           #include <sys/fs_types.h>
33362
33363 _ACEOF
33364 if { (ac_try="$ac_cpp conftest.$ac_ext"
33365 case "(($ac_try" in
33366   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33367   *) ac_try_echo=$ac_try;;
33368 esac
33369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33370   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33371   ac_status=$?
33372   grep -v '^ *+' conftest.er1 >conftest.err
33373   rm -f conftest.er1
33374   cat conftest.err >&5
33375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33376   (exit $ac_status); } >/dev/null && {
33377          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33378          test ! -s conftest.err
33379        }; then
33380   cat >>confdefs.h <<\_ACEOF
33381 #define FSTYPE_GETMNT 1
33382 _ACEOF
33383  fstype=Ultrix
33384
33385 else
33386   echo "$as_me: failed program was:" >&5
33387 sed 's/^/| /' conftest.$ac_ext >&5
33388
33389
33390 fi
33391
33392 rm -f conftest.err conftest.$ac_ext
33393 fi
33394 { echo "$as_me:$LINENO: result: $fstype" >&5
33395 echo "${ECHO_T}$fstype" >&6; }
33396
33397 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
33398   { echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
33399 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6; }
33400 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
33401   echo $ECHO_N "(cached) $ECHO_C" >&6
33402 fi
33403 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
33404 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6; }
33405 else
33406   # Is the header compilable?
33407 { echo "$as_me:$LINENO: checking sys/statvfs.h usability" >&5
33408 echo $ECHO_N "checking sys/statvfs.h usability... $ECHO_C" >&6; }
33409 cat >conftest.$ac_ext <<_ACEOF
33410 /* confdefs.h.  */
33411 _ACEOF
33412 cat confdefs.h >>conftest.$ac_ext
33413 cat >>conftest.$ac_ext <<_ACEOF
33414 /* end confdefs.h.  */
33415 $ac_includes_default
33416 #include <sys/statvfs.h>
33417 _ACEOF
33418 rm -f conftest.$ac_objext
33419 if { (ac_try="$ac_compile"
33420 case "(($ac_try" in
33421   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33422   *) ac_try_echo=$ac_try;;
33423 esac
33424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33425   (eval "$ac_compile") 2>conftest.er1
33426   ac_status=$?
33427   grep -v '^ *+' conftest.er1 >conftest.err
33428   rm -f conftest.er1
33429   cat conftest.err >&5
33430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33431   (exit $ac_status); } && {
33432          test -z "$ac_c_werror_flag" ||
33433          test ! -s conftest.err
33434        } && test -s conftest.$ac_objext; then
33435   ac_header_compiler=yes
33436 else
33437   echo "$as_me: failed program was:" >&5
33438 sed 's/^/| /' conftest.$ac_ext >&5
33439
33440         ac_header_compiler=no
33441 fi
33442
33443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33444 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33445 echo "${ECHO_T}$ac_header_compiler" >&6; }
33446
33447 # Is the header present?
33448 { echo "$as_me:$LINENO: checking sys/statvfs.h presence" >&5
33449 echo $ECHO_N "checking sys/statvfs.h presence... $ECHO_C" >&6; }
33450 cat >conftest.$ac_ext <<_ACEOF
33451 /* confdefs.h.  */
33452 _ACEOF
33453 cat confdefs.h >>conftest.$ac_ext
33454 cat >>conftest.$ac_ext <<_ACEOF
33455 /* end confdefs.h.  */
33456 #include <sys/statvfs.h>
33457 _ACEOF
33458 if { (ac_try="$ac_cpp conftest.$ac_ext"
33459 case "(($ac_try" in
33460   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33461   *) ac_try_echo=$ac_try;;
33462 esac
33463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33464   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33465   ac_status=$?
33466   grep -v '^ *+' conftest.er1 >conftest.err
33467   rm -f conftest.er1
33468   cat conftest.err >&5
33469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33470   (exit $ac_status); } >/dev/null && {
33471          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33472          test ! -s conftest.err
33473        }; then
33474   ac_header_preproc=yes
33475 else
33476   echo "$as_me: failed program was:" >&5
33477 sed 's/^/| /' conftest.$ac_ext >&5
33478
33479   ac_header_preproc=no
33480 fi
33481
33482 rm -f conftest.err conftest.$ac_ext
33483 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33484 echo "${ECHO_T}$ac_header_preproc" >&6; }
33485
33486 # So?  What about this header?
33487 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33488   yes:no: )
33489     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&5
33490 echo "$as_me: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
33491     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&5
33492 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&2;}
33493     ac_header_preproc=yes
33494     ;;
33495   no:yes:* )
33496     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: present but cannot be compiled" >&5
33497 echo "$as_me: WARNING: sys/statvfs.h: present but cannot be compiled" >&2;}
33498     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h:     check for missing prerequisite headers?" >&5
33499 echo "$as_me: WARNING: sys/statvfs.h:     check for missing prerequisite headers?" >&2;}
33500     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: see the Autoconf documentation" >&5
33501 echo "$as_me: WARNING: sys/statvfs.h: see the Autoconf documentation" >&2;}
33502     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h:     section \"Present But Cannot Be Compiled\"" >&5
33503 echo "$as_me: WARNING: sys/statvfs.h:     section \"Present But Cannot Be Compiled\"" >&2;}
33504     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&5
33505 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&2;}
33506     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&5
33507 echo "$as_me: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&2;}
33508
33509     ;;
33510 esac
33511 { echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
33512 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6; }
33513 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
33514   echo $ECHO_N "(cached) $ECHO_C" >&6
33515 else
33516   ac_cv_header_sys_statvfs_h=$ac_header_preproc
33517 fi
33518 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
33519 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6; }
33520
33521 fi
33522 if test $ac_cv_header_sys_statvfs_h = yes; then
33523
33524 cat >>confdefs.h <<\_ACEOF
33525 #define HAVE_SYS_STATVFS_H 1
33526 _ACEOF
33527
33528 fi
33529
33530
33531
33532 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
33533 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
33534 if test "${ac_cv_type_signal+set}" = set; then
33535   echo $ECHO_N "(cached) $ECHO_C" >&6
33536 else
33537   cat >conftest.$ac_ext <<_ACEOF
33538 /* confdefs.h.  */
33539 _ACEOF
33540 cat confdefs.h >>conftest.$ac_ext
33541 cat >>conftest.$ac_ext <<_ACEOF
33542 /* end confdefs.h.  */
33543 #include <sys/types.h>
33544 #include <signal.h>
33545
33546 int
33547 main ()
33548 {
33549 return *(signal (0, 0)) (0) == 1;
33550   ;
33551   return 0;
33552 }
33553 _ACEOF
33554 rm -f conftest.$ac_objext
33555 if { (ac_try="$ac_compile"
33556 case "(($ac_try" in
33557   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33558   *) ac_try_echo=$ac_try;;
33559 esac
33560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33561   (eval "$ac_compile") 2>conftest.er1
33562   ac_status=$?
33563   grep -v '^ *+' conftest.er1 >conftest.err
33564   rm -f conftest.er1
33565   cat conftest.err >&5
33566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33567   (exit $ac_status); } && {
33568          test -z "$ac_c_werror_flag" ||
33569          test ! -s conftest.err
33570        } && test -s conftest.$ac_objext; then
33571   ac_cv_type_signal=int
33572 else
33573   echo "$as_me: failed program was:" >&5
33574 sed 's/^/| /' conftest.$ac_ext >&5
33575
33576         ac_cv_type_signal=void
33577 fi
33578
33579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33580 fi
33581 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
33582 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
33583
33584 cat >>confdefs.h <<_ACEOF
33585 #define RETSIGTYPE $ac_cv_type_signal
33586 _ACEOF
33587
33588
33589
33590   { echo "$as_me:$LINENO: checking for type of signal functions" >&5
33591 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6; }
33592   if test "${bash_cv_signal_vintage+set}" = set; then
33593   echo $ECHO_N "(cached) $ECHO_C" >&6
33594 else
33595
33596     cat >conftest.$ac_ext <<_ACEOF
33597 /* confdefs.h.  */
33598 _ACEOF
33599 cat confdefs.h >>conftest.$ac_ext
33600 cat >>conftest.$ac_ext <<_ACEOF
33601 /* end confdefs.h.  */
33602 #include <signal.h>
33603 int
33604 main ()
33605 {
33606
33607       sigset_t ss;
33608       struct sigaction sa;
33609       sigemptyset(&ss); sigsuspend(&ss);
33610       sigaction(SIGINT, &sa, (struct sigaction *) 0);
33611       sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
33612
33613   ;
33614   return 0;
33615 }
33616 _ACEOF
33617 rm -f conftest.$ac_objext conftest$ac_exeext
33618 if { (ac_try="$ac_link"
33619 case "(($ac_try" in
33620   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33621   *) ac_try_echo=$ac_try;;
33622 esac
33623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33624   (eval "$ac_link") 2>conftest.er1
33625   ac_status=$?
33626   grep -v '^ *+' conftest.er1 >conftest.err
33627   rm -f conftest.er1
33628   cat conftest.err >&5
33629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33630   (exit $ac_status); } && {
33631          test -z "$ac_c_werror_flag" ||
33632          test ! -s conftest.err
33633        } && test -s conftest$ac_exeext &&
33634        $as_test_x conftest$ac_exeext; then
33635   bash_cv_signal_vintage="posix"
33636 else
33637   echo "$as_me: failed program was:" >&5
33638 sed 's/^/| /' conftest.$ac_ext >&5
33639
33640
33641       cat >conftest.$ac_ext <<_ACEOF
33642 /* confdefs.h.  */
33643 _ACEOF
33644 cat confdefs.h >>conftest.$ac_ext
33645 cat >>conftest.$ac_ext <<_ACEOF
33646 /* end confdefs.h.  */
33647 #include <signal.h>
33648 int
33649 main ()
33650 {
33651
33652           int mask = sigmask(SIGINT);
33653           sigsetmask(mask); sigblock(mask); sigpause(mask);
33654
33655   ;
33656   return 0;
33657 }
33658 _ACEOF
33659 rm -f conftest.$ac_objext conftest$ac_exeext
33660 if { (ac_try="$ac_link"
33661 case "(($ac_try" in
33662   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33663   *) ac_try_echo=$ac_try;;
33664 esac
33665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33666   (eval "$ac_link") 2>conftest.er1
33667   ac_status=$?
33668   grep -v '^ *+' conftest.er1 >conftest.err
33669   rm -f conftest.er1
33670   cat conftest.err >&5
33671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33672   (exit $ac_status); } && {
33673          test -z "$ac_c_werror_flag" ||
33674          test ! -s conftest.err
33675        } && test -s conftest$ac_exeext &&
33676        $as_test_x conftest$ac_exeext; then
33677   bash_cv_signal_vintage="4.2bsd"
33678 else
33679   echo "$as_me: failed program was:" >&5
33680 sed 's/^/| /' conftest.$ac_ext >&5
33681
33682
33683         cat >conftest.$ac_ext <<_ACEOF
33684 /* confdefs.h.  */
33685 _ACEOF
33686 cat confdefs.h >>conftest.$ac_ext
33687 cat >>conftest.$ac_ext <<_ACEOF
33688 /* end confdefs.h.  */
33689
33690           #include <signal.h>
33691           RETSIGTYPE foo() { }
33692 int
33693 main ()
33694 {
33695
33696                   int mask = sigmask(SIGINT);
33697                   sigset(SIGINT, foo); sigrelse(SIGINT);
33698                   sighold(SIGINT); sigpause(SIGINT);
33699
33700   ;
33701   return 0;
33702 }
33703 _ACEOF
33704 rm -f conftest.$ac_objext conftest$ac_exeext
33705 if { (ac_try="$ac_link"
33706 case "(($ac_try" in
33707   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33708   *) ac_try_echo=$ac_try;;
33709 esac
33710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33711   (eval "$ac_link") 2>conftest.er1
33712   ac_status=$?
33713   grep -v '^ *+' conftest.er1 >conftest.err
33714   rm -f conftest.er1
33715   cat conftest.err >&5
33716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33717   (exit $ac_status); } && {
33718          test -z "$ac_c_werror_flag" ||
33719          test ! -s conftest.err
33720        } && test -s conftest$ac_exeext &&
33721        $as_test_x conftest$ac_exeext; then
33722   bash_cv_signal_vintage="svr3"
33723 else
33724   echo "$as_me: failed program was:" >&5
33725 sed 's/^/| /' conftest.$ac_ext >&5
33726
33727         bash_cv_signal_vintage="v7"
33728
33729 fi
33730
33731 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33732       conftest$ac_exeext conftest.$ac_ext
33733
33734 fi
33735
33736 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33737       conftest$ac_exeext conftest.$ac_ext
33738
33739 fi
33740
33741 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33742       conftest$ac_exeext conftest.$ac_ext
33743
33744 fi
33745
33746   { echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
33747 echo "${ECHO_T}$bash_cv_signal_vintage" >&6; }
33748   if test "$bash_cv_signal_vintage" = "posix"; then
33749     cat >>confdefs.h <<\_ACEOF
33750 #define HAVE_POSIX_SIGNALS 1
33751 _ACEOF
33752
33753   elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
33754     cat >>confdefs.h <<\_ACEOF
33755 #define HAVE_BSD_SIGNALS 1
33756 _ACEOF
33757
33758   elif test "$bash_cv_signal_vintage" = "svr3"; then
33759     cat >>confdefs.h <<\_ACEOF
33760 #define HAVE_USG_SIGHOLD 1
33761 _ACEOF
33762
33763   fi
33764
33765 { echo "$as_me:$LINENO: checking for mode_t" >&5
33766 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
33767 if test "${ac_cv_type_mode_t+set}" = set; then
33768   echo $ECHO_N "(cached) $ECHO_C" >&6
33769 else
33770   cat >conftest.$ac_ext <<_ACEOF
33771 /* confdefs.h.  */
33772 _ACEOF
33773 cat confdefs.h >>conftest.$ac_ext
33774 cat >>conftest.$ac_ext <<_ACEOF
33775 /* end confdefs.h.  */
33776 $ac_includes_default
33777 typedef mode_t ac__type_new_;
33778 int
33779 main ()
33780 {
33781 if ((ac__type_new_ *) 0)
33782   return 0;
33783 if (sizeof (ac__type_new_))
33784   return 0;
33785   ;
33786   return 0;
33787 }
33788 _ACEOF
33789 rm -f conftest.$ac_objext
33790 if { (ac_try="$ac_compile"
33791 case "(($ac_try" in
33792   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33793   *) ac_try_echo=$ac_try;;
33794 esac
33795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33796   (eval "$ac_compile") 2>conftest.er1
33797   ac_status=$?
33798   grep -v '^ *+' conftest.er1 >conftest.err
33799   rm -f conftest.er1
33800   cat conftest.err >&5
33801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33802   (exit $ac_status); } && {
33803          test -z "$ac_c_werror_flag" ||
33804          test ! -s conftest.err
33805        } && test -s conftest.$ac_objext; then
33806   ac_cv_type_mode_t=yes
33807 else
33808   echo "$as_me: failed program was:" >&5
33809 sed 's/^/| /' conftest.$ac_ext >&5
33810
33811         ac_cv_type_mode_t=no
33812 fi
33813
33814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33815 fi
33816 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
33817 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
33818 if test $ac_cv_type_mode_t = yes; then
33819   :
33820 else
33821
33822 cat >>confdefs.h <<_ACEOF
33823 #define mode_t int
33824 _ACEOF
33825
33826 fi
33827
33828 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
33829 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
33830 if test "${ac_cv_type_uid_t+set}" = set; then
33831   echo $ECHO_N "(cached) $ECHO_C" >&6
33832 else
33833   cat >conftest.$ac_ext <<_ACEOF
33834 /* confdefs.h.  */
33835 _ACEOF
33836 cat confdefs.h >>conftest.$ac_ext
33837 cat >>conftest.$ac_ext <<_ACEOF
33838 /* end confdefs.h.  */
33839 #include <sys/types.h>
33840
33841 _ACEOF
33842 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33843   $EGREP "uid_t" >/dev/null 2>&1; then
33844   ac_cv_type_uid_t=yes
33845 else
33846   ac_cv_type_uid_t=no
33847 fi
33848 rm -f conftest*
33849
33850 fi
33851 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
33852 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
33853 if test $ac_cv_type_uid_t = no; then
33854
33855 cat >>confdefs.h <<\_ACEOF
33856 #define uid_t int
33857 _ACEOF
33858
33859
33860 cat >>confdefs.h <<\_ACEOF
33861 #define gid_t int
33862 _ACEOF
33863
33864 fi
33865
33866 { echo "$as_me:$LINENO: checking for size_t" >&5
33867 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
33868 if test "${ac_cv_type_size_t+set}" = set; then
33869   echo $ECHO_N "(cached) $ECHO_C" >&6
33870 else
33871   cat >conftest.$ac_ext <<_ACEOF
33872 /* confdefs.h.  */
33873 _ACEOF
33874 cat confdefs.h >>conftest.$ac_ext
33875 cat >>conftest.$ac_ext <<_ACEOF
33876 /* end confdefs.h.  */
33877 $ac_includes_default
33878 typedef size_t ac__type_new_;
33879 int
33880 main ()
33881 {
33882 if ((ac__type_new_ *) 0)
33883   return 0;
33884 if (sizeof (ac__type_new_))
33885   return 0;
33886   ;
33887   return 0;
33888 }
33889 _ACEOF
33890 rm -f conftest.$ac_objext
33891 if { (ac_try="$ac_compile"
33892 case "(($ac_try" in
33893   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33894   *) ac_try_echo=$ac_try;;
33895 esac
33896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33897   (eval "$ac_compile") 2>conftest.er1
33898   ac_status=$?
33899   grep -v '^ *+' conftest.er1 >conftest.err
33900   rm -f conftest.er1
33901   cat conftest.err >&5
33902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33903   (exit $ac_status); } && {
33904          test -z "$ac_c_werror_flag" ||
33905          test ! -s conftest.err
33906        } && test -s conftest.$ac_objext; then
33907   ac_cv_type_size_t=yes
33908 else
33909   echo "$as_me: failed program was:" >&5
33910 sed 's/^/| /' conftest.$ac_ext >&5
33911
33912         ac_cv_type_size_t=no
33913 fi
33914
33915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33916 fi
33917 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
33918 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
33919 if test $ac_cv_type_size_t = yes; then
33920   :
33921 else
33922
33923 cat >>confdefs.h <<_ACEOF
33924 #define size_t unsigned int
33925 _ACEOF
33926
33927 fi
33928
33929 { echo "$as_me:$LINENO: checking for pid_t" >&5
33930 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
33931 if test "${ac_cv_type_pid_t+set}" = set; then
33932   echo $ECHO_N "(cached) $ECHO_C" >&6
33933 else
33934   cat >conftest.$ac_ext <<_ACEOF
33935 /* confdefs.h.  */
33936 _ACEOF
33937 cat confdefs.h >>conftest.$ac_ext
33938 cat >>conftest.$ac_ext <<_ACEOF
33939 /* end confdefs.h.  */
33940 $ac_includes_default
33941 typedef pid_t ac__type_new_;
33942 int
33943 main ()
33944 {
33945 if ((ac__type_new_ *) 0)
33946   return 0;
33947 if (sizeof (ac__type_new_))
33948   return 0;
33949   ;
33950   return 0;
33951 }
33952 _ACEOF
33953 rm -f conftest.$ac_objext
33954 if { (ac_try="$ac_compile"
33955 case "(($ac_try" in
33956   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33957   *) ac_try_echo=$ac_try;;
33958 esac
33959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33960   (eval "$ac_compile") 2>conftest.er1
33961   ac_status=$?
33962   grep -v '^ *+' conftest.er1 >conftest.err
33963   rm -f conftest.er1
33964   cat conftest.err >&5
33965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33966   (exit $ac_status); } && {
33967          test -z "$ac_c_werror_flag" ||
33968          test ! -s conftest.err
33969        } && test -s conftest.$ac_objext; then
33970   ac_cv_type_pid_t=yes
33971 else
33972   echo "$as_me: failed program was:" >&5
33973 sed 's/^/| /' conftest.$ac_ext >&5
33974
33975         ac_cv_type_pid_t=no
33976 fi
33977
33978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33979 fi
33980 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
33981 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
33982 if test $ac_cv_type_pid_t = yes; then
33983   :
33984 else
33985
33986 cat >>confdefs.h <<_ACEOF
33987 #define pid_t int
33988 _ACEOF
33989
33990 fi
33991
33992 { echo "$as_me:$LINENO: checking for off_t" >&5
33993 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
33994 if test "${ac_cv_type_off_t+set}" = set; then
33995   echo $ECHO_N "(cached) $ECHO_C" >&6
33996 else
33997   cat >conftest.$ac_ext <<_ACEOF
33998 /* confdefs.h.  */
33999 _ACEOF
34000 cat confdefs.h >>conftest.$ac_ext
34001 cat >>conftest.$ac_ext <<_ACEOF
34002 /* end confdefs.h.  */
34003 $ac_includes_default
34004 typedef off_t ac__type_new_;
34005 int
34006 main ()
34007 {
34008 if ((ac__type_new_ *) 0)
34009   return 0;
34010 if (sizeof (ac__type_new_))
34011   return 0;
34012   ;
34013   return 0;
34014 }
34015 _ACEOF
34016 rm -f conftest.$ac_objext
34017 if { (ac_try="$ac_compile"
34018 case "(($ac_try" in
34019   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34020   *) ac_try_echo=$ac_try;;
34021 esac
34022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34023   (eval "$ac_compile") 2>conftest.er1
34024   ac_status=$?
34025   grep -v '^ *+' conftest.er1 >conftest.err
34026   rm -f conftest.er1
34027   cat conftest.err >&5
34028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34029   (exit $ac_status); } && {
34030          test -z "$ac_c_werror_flag" ||
34031          test ! -s conftest.err
34032        } && test -s conftest.$ac_objext; then
34033   ac_cv_type_off_t=yes
34034 else
34035   echo "$as_me: failed program was:" >&5
34036 sed 's/^/| /' conftest.$ac_ext >&5
34037
34038         ac_cv_type_off_t=no
34039 fi
34040
34041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34042 fi
34043 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
34044 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
34045 if test $ac_cv_type_off_t = yes; then
34046   :
34047 else
34048
34049 cat >>confdefs.h <<_ACEOF
34050 #define off_t long int
34051 _ACEOF
34052
34053 fi
34054
34055
34056   { echo "$as_me:$LINENO: checking for intptr_t" >&5
34057 echo $ECHO_N "checking for intptr_t... $ECHO_C" >&6; }
34058 if test "${ac_cv_type_intptr_t+set}" = set; then
34059   echo $ECHO_N "(cached) $ECHO_C" >&6
34060 else
34061   cat >conftest.$ac_ext <<_ACEOF
34062 /* confdefs.h.  */
34063 _ACEOF
34064 cat confdefs.h >>conftest.$ac_ext
34065 cat >>conftest.$ac_ext <<_ACEOF
34066 /* end confdefs.h.  */
34067 $ac_includes_default
34068 typedef intptr_t ac__type_new_;
34069 int
34070 main ()
34071 {
34072 if ((ac__type_new_ *) 0)
34073   return 0;
34074 if (sizeof (ac__type_new_))
34075   return 0;
34076   ;
34077   return 0;
34078 }
34079 _ACEOF
34080 rm -f conftest.$ac_objext
34081 if { (ac_try="$ac_compile"
34082 case "(($ac_try" in
34083   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34084   *) ac_try_echo=$ac_try;;
34085 esac
34086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34087   (eval "$ac_compile") 2>conftest.er1
34088   ac_status=$?
34089   grep -v '^ *+' conftest.er1 >conftest.err
34090   rm -f conftest.er1
34091   cat conftest.err >&5
34092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34093   (exit $ac_status); } && {
34094          test -z "$ac_c_werror_flag" ||
34095          test ! -s conftest.err
34096        } && test -s conftest.$ac_objext; then
34097   ac_cv_type_intptr_t=yes
34098 else
34099   echo "$as_me: failed program was:" >&5
34100 sed 's/^/| /' conftest.$ac_ext >&5
34101
34102         ac_cv_type_intptr_t=no
34103 fi
34104
34105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34106 fi
34107 { echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
34108 echo "${ECHO_T}$ac_cv_type_intptr_t" >&6; }
34109 if test $ac_cv_type_intptr_t = yes; then
34110
34111 cat >>confdefs.h <<\_ACEOF
34112 #define HAVE_INTPTR_T 1
34113 _ACEOF
34114
34115 else
34116   for ac_type in 'int' 'long int' 'long long int'; do
34117        cat >conftest.$ac_ext <<_ACEOF
34118 /* confdefs.h.  */
34119 _ACEOF
34120 cat confdefs.h >>conftest.$ac_ext
34121 cat >>conftest.$ac_ext <<_ACEOF
34122 /* end confdefs.h.  */
34123 $ac_includes_default
34124 int
34125 main ()
34126 {
34127 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
34128 test_array [0] = 0
34129
34130   ;
34131   return 0;
34132 }
34133 _ACEOF
34134 rm -f conftest.$ac_objext
34135 if { (ac_try="$ac_compile"
34136 case "(($ac_try" in
34137   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34138   *) ac_try_echo=$ac_try;;
34139 esac
34140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34141   (eval "$ac_compile") 2>conftest.er1
34142   ac_status=$?
34143   grep -v '^ *+' conftest.er1 >conftest.err
34144   rm -f conftest.er1
34145   cat conftest.err >&5
34146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34147   (exit $ac_status); } && {
34148          test -z "$ac_c_werror_flag" ||
34149          test ! -s conftest.err
34150        } && test -s conftest.$ac_objext; then
34151
34152 cat >>confdefs.h <<_ACEOF
34153 #define intptr_t $ac_type
34154 _ACEOF
34155
34156           ac_type=
34157 else
34158   echo "$as_me: failed program was:" >&5
34159 sed 's/^/| /' conftest.$ac_ext >&5
34160
34161
34162 fi
34163
34164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34165        test -z "$ac_type" && break
34166      done
34167 fi
34168
34169
34170
34171   { echo "$as_me:$LINENO: checking for uintptr_t" >&5
34172 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; }
34173 if test "${ac_cv_type_uintptr_t+set}" = set; then
34174   echo $ECHO_N "(cached) $ECHO_C" >&6
34175 else
34176   cat >conftest.$ac_ext <<_ACEOF
34177 /* confdefs.h.  */
34178 _ACEOF
34179 cat confdefs.h >>conftest.$ac_ext
34180 cat >>conftest.$ac_ext <<_ACEOF
34181 /* end confdefs.h.  */
34182 $ac_includes_default
34183 typedef uintptr_t ac__type_new_;
34184 int
34185 main ()
34186 {
34187 if ((ac__type_new_ *) 0)
34188   return 0;
34189 if (sizeof (ac__type_new_))
34190   return 0;
34191   ;
34192   return 0;
34193 }
34194 _ACEOF
34195 rm -f conftest.$ac_objext
34196 if { (ac_try="$ac_compile"
34197 case "(($ac_try" in
34198   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34199   *) ac_try_echo=$ac_try;;
34200 esac
34201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34202   (eval "$ac_compile") 2>conftest.er1
34203   ac_status=$?
34204   grep -v '^ *+' conftest.er1 >conftest.err
34205   rm -f conftest.er1
34206   cat conftest.err >&5
34207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34208   (exit $ac_status); } && {
34209          test -z "$ac_c_werror_flag" ||
34210          test ! -s conftest.err
34211        } && test -s conftest.$ac_objext; then
34212   ac_cv_type_uintptr_t=yes
34213 else
34214   echo "$as_me: failed program was:" >&5
34215 sed 's/^/| /' conftest.$ac_ext >&5
34216
34217         ac_cv_type_uintptr_t=no
34218 fi
34219
34220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34221 fi
34222 { echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
34223 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; }
34224 if test $ac_cv_type_uintptr_t = yes; then
34225
34226 cat >>confdefs.h <<\_ACEOF
34227 #define HAVE_UINTPTR_T 1
34228 _ACEOF
34229
34230 else
34231   for ac_type in 'unsigned int' 'unsigned long int' \
34232         'unsigned long long int'; do
34233        cat >conftest.$ac_ext <<_ACEOF
34234 /* confdefs.h.  */
34235 _ACEOF
34236 cat confdefs.h >>conftest.$ac_ext
34237 cat >>conftest.$ac_ext <<_ACEOF
34238 /* end confdefs.h.  */
34239 $ac_includes_default
34240 int
34241 main ()
34242 {
34243 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
34244 test_array [0] = 0
34245
34246   ;
34247   return 0;
34248 }
34249 _ACEOF
34250 rm -f conftest.$ac_objext
34251 if { (ac_try="$ac_compile"
34252 case "(($ac_try" in
34253   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34254   *) ac_try_echo=$ac_try;;
34255 esac
34256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34257   (eval "$ac_compile") 2>conftest.er1
34258   ac_status=$?
34259   grep -v '^ *+' conftest.er1 >conftest.err
34260   rm -f conftest.er1
34261   cat conftest.err >&5
34262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34263   (exit $ac_status); } && {
34264          test -z "$ac_c_werror_flag" ||
34265          test ! -s conftest.err
34266        } && test -s conftest.$ac_objext; then
34267
34268 cat >>confdefs.h <<_ACEOF
34269 #define uintptr_t $ac_type
34270 _ACEOF
34271
34272           ac_type=
34273 else
34274   echo "$as_me: failed program was:" >&5
34275 sed 's/^/| /' conftest.$ac_ext >&5
34276
34277
34278 fi
34279
34280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34281        test -z "$ac_type" && break
34282      done
34283 fi
34284
34285
34286 { echo "$as_me:$LINENO: checking for ino_t" >&5
34287 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6; }
34288 if test "${ac_cv_type_ino_t+set}" = set; then
34289   echo $ECHO_N "(cached) $ECHO_C" >&6
34290 else
34291   cat >conftest.$ac_ext <<_ACEOF
34292 /* confdefs.h.  */
34293 _ACEOF
34294 cat confdefs.h >>conftest.$ac_ext
34295 cat >>conftest.$ac_ext <<_ACEOF
34296 /* end confdefs.h.  */
34297 $ac_includes_default
34298 typedef ino_t ac__type_new_;
34299 int
34300 main ()
34301 {
34302 if ((ac__type_new_ *) 0)
34303   return 0;
34304 if (sizeof (ac__type_new_))
34305   return 0;
34306   ;
34307   return 0;
34308 }
34309 _ACEOF
34310 rm -f conftest.$ac_objext
34311 if { (ac_try="$ac_compile"
34312 case "(($ac_try" in
34313   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34314   *) ac_try_echo=$ac_try;;
34315 esac
34316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34317   (eval "$ac_compile") 2>conftest.er1
34318   ac_status=$?
34319   grep -v '^ *+' conftest.er1 >conftest.err
34320   rm -f conftest.er1
34321   cat conftest.err >&5
34322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34323   (exit $ac_status); } && {
34324          test -z "$ac_c_werror_flag" ||
34325          test ! -s conftest.err
34326        } && test -s conftest.$ac_objext; then
34327   ac_cv_type_ino_t=yes
34328 else
34329   echo "$as_me: failed program was:" >&5
34330 sed 's/^/| /' conftest.$ac_ext >&5
34331
34332         ac_cv_type_ino_t=no
34333 fi
34334
34335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34336 fi
34337 { echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
34338 echo "${ECHO_T}$ac_cv_type_ino_t" >&6; }
34339 if test $ac_cv_type_ino_t = yes; then
34340   :
34341 else
34342
34343 cat >>confdefs.h <<_ACEOF
34344 #define ino_t unsigned long
34345 _ACEOF
34346
34347 fi
34348
34349 { echo "$as_me:$LINENO: checking for dev_t" >&5
34350 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6; }
34351 if test "${ac_cv_type_dev_t+set}" = set; then
34352   echo $ECHO_N "(cached) $ECHO_C" >&6
34353 else
34354   cat >conftest.$ac_ext <<_ACEOF
34355 /* confdefs.h.  */
34356 _ACEOF
34357 cat confdefs.h >>conftest.$ac_ext
34358 cat >>conftest.$ac_ext <<_ACEOF
34359 /* end confdefs.h.  */
34360 $ac_includes_default
34361 typedef dev_t ac__type_new_;
34362 int
34363 main ()
34364 {
34365 if ((ac__type_new_ *) 0)
34366   return 0;
34367 if (sizeof (ac__type_new_))
34368   return 0;
34369   ;
34370   return 0;
34371 }
34372 _ACEOF
34373 rm -f conftest.$ac_objext
34374 if { (ac_try="$ac_compile"
34375 case "(($ac_try" in
34376   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34377   *) ac_try_echo=$ac_try;;
34378 esac
34379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34380   (eval "$ac_compile") 2>conftest.er1
34381   ac_status=$?
34382   grep -v '^ *+' conftest.er1 >conftest.err
34383   rm -f conftest.er1
34384   cat conftest.err >&5
34385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34386   (exit $ac_status); } && {
34387          test -z "$ac_c_werror_flag" ||
34388          test ! -s conftest.err
34389        } && test -s conftest.$ac_objext; then
34390   ac_cv_type_dev_t=yes
34391 else
34392   echo "$as_me: failed program was:" >&5
34393 sed 's/^/| /' conftest.$ac_ext >&5
34394
34395         ac_cv_type_dev_t=no
34396 fi
34397
34398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34399 fi
34400 { echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
34401 echo "${ECHO_T}$ac_cv_type_dev_t" >&6; }
34402 if test $ac_cv_type_dev_t = yes; then
34403   :
34404 else
34405
34406 cat >>confdefs.h <<_ACEOF
34407 #define dev_t unsigned long
34408 _ACEOF
34409
34410 fi
34411
34412 { echo "$as_me:$LINENO: checking for daddr_t" >&5
34413 echo $ECHO_N "checking for daddr_t... $ECHO_C" >&6; }
34414 if test "${ac_cv_type_daddr_t+set}" = set; then
34415   echo $ECHO_N "(cached) $ECHO_C" >&6
34416 else
34417   cat >conftest.$ac_ext <<_ACEOF
34418 /* confdefs.h.  */
34419 _ACEOF
34420 cat confdefs.h >>conftest.$ac_ext
34421 cat >>conftest.$ac_ext <<_ACEOF
34422 /* end confdefs.h.  */
34423 $ac_includes_default
34424 typedef daddr_t ac__type_new_;
34425 int
34426 main ()
34427 {
34428 if ((ac__type_new_ *) 0)
34429   return 0;
34430 if (sizeof (ac__type_new_))
34431   return 0;
34432   ;
34433   return 0;
34434 }
34435 _ACEOF
34436 rm -f conftest.$ac_objext
34437 if { (ac_try="$ac_compile"
34438 case "(($ac_try" in
34439   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34440   *) ac_try_echo=$ac_try;;
34441 esac
34442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34443   (eval "$ac_compile") 2>conftest.er1
34444   ac_status=$?
34445   grep -v '^ *+' conftest.er1 >conftest.err
34446   rm -f conftest.er1
34447   cat conftest.err >&5
34448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34449   (exit $ac_status); } && {
34450          test -z "$ac_c_werror_flag" ||
34451          test ! -s conftest.err
34452        } && test -s conftest.$ac_objext; then
34453   ac_cv_type_daddr_t=yes
34454 else
34455   echo "$as_me: failed program was:" >&5
34456 sed 's/^/| /' conftest.$ac_ext >&5
34457
34458         ac_cv_type_daddr_t=no
34459 fi
34460
34461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34462 fi
34463 { echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
34464 echo "${ECHO_T}$ac_cv_type_daddr_t" >&6; }
34465 if test $ac_cv_type_daddr_t = yes; then
34466   :
34467 else
34468
34469 cat >>confdefs.h <<_ACEOF
34470 #define daddr_t long
34471 _ACEOF
34472
34473 fi
34474
34475 { echo "$as_me:$LINENO: checking for major_t" >&5
34476 echo $ECHO_N "checking for major_t... $ECHO_C" >&6; }
34477 if test "${ac_cv_type_major_t+set}" = set; then
34478   echo $ECHO_N "(cached) $ECHO_C" >&6
34479 else
34480   cat >conftest.$ac_ext <<_ACEOF
34481 /* confdefs.h.  */
34482 _ACEOF
34483 cat confdefs.h >>conftest.$ac_ext
34484 cat >>conftest.$ac_ext <<_ACEOF
34485 /* end confdefs.h.  */
34486 $ac_includes_default
34487 typedef major_t ac__type_new_;
34488 int
34489 main ()
34490 {
34491 if ((ac__type_new_ *) 0)
34492   return 0;
34493 if (sizeof (ac__type_new_))
34494   return 0;
34495   ;
34496   return 0;
34497 }
34498 _ACEOF
34499 rm -f conftest.$ac_objext
34500 if { (ac_try="$ac_compile"
34501 case "(($ac_try" in
34502   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34503   *) ac_try_echo=$ac_try;;
34504 esac
34505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34506   (eval "$ac_compile") 2>conftest.er1
34507   ac_status=$?
34508   grep -v '^ *+' conftest.er1 >conftest.err
34509   rm -f conftest.er1
34510   cat conftest.err >&5
34511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34512   (exit $ac_status); } && {
34513          test -z "$ac_c_werror_flag" ||
34514          test ! -s conftest.err
34515        } && test -s conftest.$ac_objext; then
34516   ac_cv_type_major_t=yes
34517 else
34518   echo "$as_me: failed program was:" >&5
34519 sed 's/^/| /' conftest.$ac_ext >&5
34520
34521         ac_cv_type_major_t=no
34522 fi
34523
34524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34525 fi
34526 { echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
34527 echo "${ECHO_T}$ac_cv_type_major_t" >&6; }
34528 if test $ac_cv_type_major_t = yes; then
34529   :
34530 else
34531
34532 cat >>confdefs.h <<_ACEOF
34533 #define major_t int
34534 _ACEOF
34535
34536 fi
34537
34538 { echo "$as_me:$LINENO: checking for minor_t" >&5
34539 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6; }
34540 if test "${ac_cv_type_minor_t+set}" = set; then
34541   echo $ECHO_N "(cached) $ECHO_C" >&6
34542 else
34543   cat >conftest.$ac_ext <<_ACEOF
34544 /* confdefs.h.  */
34545 _ACEOF
34546 cat confdefs.h >>conftest.$ac_ext
34547 cat >>conftest.$ac_ext <<_ACEOF
34548 /* end confdefs.h.  */
34549 $ac_includes_default
34550 typedef minor_t ac__type_new_;
34551 int
34552 main ()
34553 {
34554 if ((ac__type_new_ *) 0)
34555   return 0;
34556 if (sizeof (ac__type_new_))
34557   return 0;
34558   ;
34559   return 0;
34560 }
34561 _ACEOF
34562 rm -f conftest.$ac_objext
34563 if { (ac_try="$ac_compile"
34564 case "(($ac_try" in
34565   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34566   *) ac_try_echo=$ac_try;;
34567 esac
34568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34569   (eval "$ac_compile") 2>conftest.er1
34570   ac_status=$?
34571   grep -v '^ *+' conftest.er1 >conftest.err
34572   rm -f conftest.er1
34573   cat conftest.err >&5
34574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34575   (exit $ac_status); } && {
34576          test -z "$ac_c_werror_flag" ||
34577          test ! -s conftest.err
34578        } && test -s conftest.$ac_objext; then
34579   ac_cv_type_minor_t=yes
34580 else
34581   echo "$as_me: failed program was:" >&5
34582 sed 's/^/| /' conftest.$ac_ext >&5
34583
34584         ac_cv_type_minor_t=no
34585 fi
34586
34587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34588 fi
34589 { echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
34590 echo "${ECHO_T}$ac_cv_type_minor_t" >&6; }
34591 if test $ac_cv_type_minor_t = yes; then
34592   :
34593 else
34594
34595 cat >>confdefs.h <<_ACEOF
34596 #define minor_t int
34597 _ACEOF
34598
34599 fi
34600
34601 { echo "$as_me:$LINENO: checking for ssize_t" >&5
34602 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
34603 if test "${ac_cv_type_ssize_t+set}" = set; then
34604   echo $ECHO_N "(cached) $ECHO_C" >&6
34605 else
34606   cat >conftest.$ac_ext <<_ACEOF
34607 /* confdefs.h.  */
34608 _ACEOF
34609 cat confdefs.h >>conftest.$ac_ext
34610 cat >>conftest.$ac_ext <<_ACEOF
34611 /* end confdefs.h.  */
34612 $ac_includes_default
34613 typedef ssize_t ac__type_new_;
34614 int
34615 main ()
34616 {
34617 if ((ac__type_new_ *) 0)
34618   return 0;
34619 if (sizeof (ac__type_new_))
34620   return 0;
34621   ;
34622   return 0;
34623 }
34624 _ACEOF
34625 rm -f conftest.$ac_objext
34626 if { (ac_try="$ac_compile"
34627 case "(($ac_try" in
34628   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34629   *) ac_try_echo=$ac_try;;
34630 esac
34631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34632   (eval "$ac_compile") 2>conftest.er1
34633   ac_status=$?
34634   grep -v '^ *+' conftest.er1 >conftest.err
34635   rm -f conftest.er1
34636   cat conftest.err >&5
34637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34638   (exit $ac_status); } && {
34639          test -z "$ac_c_werror_flag" ||
34640          test ! -s conftest.err
34641        } && test -s conftest.$ac_objext; then
34642   ac_cv_type_ssize_t=yes
34643 else
34644   echo "$as_me: failed program was:" >&5
34645 sed 's/^/| /' conftest.$ac_ext >&5
34646
34647         ac_cv_type_ssize_t=no
34648 fi
34649
34650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34651 fi
34652 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
34653 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
34654 if test $ac_cv_type_ssize_t = yes; then
34655   :
34656 else
34657
34658 cat >>confdefs.h <<_ACEOF
34659 #define ssize_t int
34660 _ACEOF
34661
34662 fi
34663
34664 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
34665 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
34666 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
34667   echo $ECHO_N "(cached) $ECHO_C" >&6
34668 else
34669   cat >conftest.$ac_ext <<_ACEOF
34670 /* confdefs.h.  */
34671 _ACEOF
34672 cat confdefs.h >>conftest.$ac_ext
34673 cat >>conftest.$ac_ext <<_ACEOF
34674 /* end confdefs.h.  */
34675 $ac_includes_default
34676 int
34677 main ()
34678 {
34679 static struct stat ac_aggr;
34680 if (ac_aggr.st_blocks)
34681 return 0;
34682   ;
34683   return 0;
34684 }
34685 _ACEOF
34686 rm -f conftest.$ac_objext
34687 if { (ac_try="$ac_compile"
34688 case "(($ac_try" in
34689   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34690   *) ac_try_echo=$ac_try;;
34691 esac
34692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34693   (eval "$ac_compile") 2>conftest.er1
34694   ac_status=$?
34695   grep -v '^ *+' conftest.er1 >conftest.err
34696   rm -f conftest.er1
34697   cat conftest.err >&5
34698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34699   (exit $ac_status); } && {
34700          test -z "$ac_c_werror_flag" ||
34701          test ! -s conftest.err
34702        } && test -s conftest.$ac_objext; then
34703   ac_cv_member_struct_stat_st_blocks=yes
34704 else
34705   echo "$as_me: failed program was:" >&5
34706 sed 's/^/| /' conftest.$ac_ext >&5
34707
34708         cat >conftest.$ac_ext <<_ACEOF
34709 /* confdefs.h.  */
34710 _ACEOF
34711 cat confdefs.h >>conftest.$ac_ext
34712 cat >>conftest.$ac_ext <<_ACEOF
34713 /* end confdefs.h.  */
34714 $ac_includes_default
34715 int
34716 main ()
34717 {
34718 static struct stat ac_aggr;
34719 if (sizeof ac_aggr.st_blocks)
34720 return 0;
34721   ;
34722   return 0;
34723 }
34724 _ACEOF
34725 rm -f conftest.$ac_objext
34726 if { (ac_try="$ac_compile"
34727 case "(($ac_try" in
34728   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34729   *) ac_try_echo=$ac_try;;
34730 esac
34731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34732   (eval "$ac_compile") 2>conftest.er1
34733   ac_status=$?
34734   grep -v '^ *+' conftest.er1 >conftest.err
34735   rm -f conftest.er1
34736   cat conftest.err >&5
34737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34738   (exit $ac_status); } && {
34739          test -z "$ac_c_werror_flag" ||
34740          test ! -s conftest.err
34741        } && test -s conftest.$ac_objext; then
34742   ac_cv_member_struct_stat_st_blocks=yes
34743 else
34744   echo "$as_me: failed program was:" >&5
34745 sed 's/^/| /' conftest.$ac_ext >&5
34746
34747         ac_cv_member_struct_stat_st_blocks=no
34748 fi
34749
34750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34751 fi
34752
34753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34754 fi
34755 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
34756 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
34757 if test $ac_cv_member_struct_stat_st_blocks = yes; then
34758
34759 cat >>confdefs.h <<_ACEOF
34760 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
34761 _ACEOF
34762
34763
34764 cat >>confdefs.h <<\_ACEOF
34765 #define HAVE_ST_BLOCKS 1
34766 _ACEOF
34767
34768 else
34769   case " $LIBOBJS " in
34770   *" fileblocks.$ac_objext "* ) ;;
34771   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
34772  ;;
34773 esac
34774
34775 fi
34776
34777
34778 { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
34779 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
34780 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
34781   echo $ECHO_N "(cached) $ECHO_C" >&6
34782 else
34783   cat >conftest.$ac_ext <<_ACEOF
34784 /* confdefs.h.  */
34785 _ACEOF
34786 cat confdefs.h >>conftest.$ac_ext
34787 cat >>conftest.$ac_ext <<_ACEOF
34788 /* end confdefs.h.  */
34789 $ac_includes_default
34790 int
34791 main ()
34792 {
34793 static struct stat ac_aggr;
34794 if (ac_aggr.st_rdev)
34795 return 0;
34796   ;
34797   return 0;
34798 }
34799 _ACEOF
34800 rm -f conftest.$ac_objext
34801 if { (ac_try="$ac_compile"
34802 case "(($ac_try" in
34803   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34804   *) ac_try_echo=$ac_try;;
34805 esac
34806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34807   (eval "$ac_compile") 2>conftest.er1
34808   ac_status=$?
34809   grep -v '^ *+' conftest.er1 >conftest.err
34810   rm -f conftest.er1
34811   cat conftest.err >&5
34812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34813   (exit $ac_status); } && {
34814          test -z "$ac_c_werror_flag" ||
34815          test ! -s conftest.err
34816        } && test -s conftest.$ac_objext; then
34817   ac_cv_member_struct_stat_st_rdev=yes
34818 else
34819   echo "$as_me: failed program was:" >&5
34820 sed 's/^/| /' conftest.$ac_ext >&5
34821
34822         cat >conftest.$ac_ext <<_ACEOF
34823 /* confdefs.h.  */
34824 _ACEOF
34825 cat confdefs.h >>conftest.$ac_ext
34826 cat >>conftest.$ac_ext <<_ACEOF
34827 /* end confdefs.h.  */
34828 $ac_includes_default
34829 int
34830 main ()
34831 {
34832 static struct stat ac_aggr;
34833 if (sizeof ac_aggr.st_rdev)
34834 return 0;
34835   ;
34836   return 0;
34837 }
34838 _ACEOF
34839 rm -f conftest.$ac_objext
34840 if { (ac_try="$ac_compile"
34841 case "(($ac_try" in
34842   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34843   *) ac_try_echo=$ac_try;;
34844 esac
34845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34846   (eval "$ac_compile") 2>conftest.er1
34847   ac_status=$?
34848   grep -v '^ *+' conftest.er1 >conftest.err
34849   rm -f conftest.er1
34850   cat conftest.err >&5
34851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34852   (exit $ac_status); } && {
34853          test -z "$ac_c_werror_flag" ||
34854          test ! -s conftest.err
34855        } && test -s conftest.$ac_objext; then
34856   ac_cv_member_struct_stat_st_rdev=yes
34857 else
34858   echo "$as_me: failed program was:" >&5
34859 sed 's/^/| /' conftest.$ac_ext >&5
34860
34861         ac_cv_member_struct_stat_st_rdev=no
34862 fi
34863
34864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34865 fi
34866
34867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34868 fi
34869 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
34870 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
34871 if test $ac_cv_member_struct_stat_st_rdev = yes; then
34872
34873 cat >>confdefs.h <<_ACEOF
34874 #define HAVE_STRUCT_STAT_ST_RDEV 1
34875 _ACEOF
34876
34877
34878 cat >>confdefs.h <<\_ACEOF
34879 #define HAVE_ST_RDEV 1
34880 _ACEOF
34881
34882 fi
34883
34884
34885 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
34886 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
34887 if test "${ac_cv_struct_tm+set}" = set; then
34888   echo $ECHO_N "(cached) $ECHO_C" >&6
34889 else
34890   cat >conftest.$ac_ext <<_ACEOF
34891 /* confdefs.h.  */
34892 _ACEOF
34893 cat confdefs.h >>conftest.$ac_ext
34894 cat >>conftest.$ac_ext <<_ACEOF
34895 /* end confdefs.h.  */
34896 #include <sys/types.h>
34897 #include <time.h>
34898
34899 int
34900 main ()
34901 {
34902 struct tm tm;
34903                                      int *p = &tm.tm_sec;
34904                                      return !p;
34905   ;
34906   return 0;
34907 }
34908 _ACEOF
34909 rm -f conftest.$ac_objext
34910 if { (ac_try="$ac_compile"
34911 case "(($ac_try" in
34912   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34913   *) ac_try_echo=$ac_try;;
34914 esac
34915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34916   (eval "$ac_compile") 2>conftest.er1
34917   ac_status=$?
34918   grep -v '^ *+' conftest.er1 >conftest.err
34919   rm -f conftest.er1
34920   cat conftest.err >&5
34921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34922   (exit $ac_status); } && {
34923          test -z "$ac_c_werror_flag" ||
34924          test ! -s conftest.err
34925        } && test -s conftest.$ac_objext; then
34926   ac_cv_struct_tm=time.h
34927 else
34928   echo "$as_me: failed program was:" >&5
34929 sed 's/^/| /' conftest.$ac_ext >&5
34930
34931         ac_cv_struct_tm=sys/time.h
34932 fi
34933
34934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34935 fi
34936 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
34937 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
34938 if test $ac_cv_struct_tm = sys/time.h; then
34939
34940 cat >>confdefs.h <<\_ACEOF
34941 #define TM_IN_SYS_TIME 1
34942 _ACEOF
34943
34944 fi
34945
34946 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
34947 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
34948 if test "${ac_cv_c_const+set}" = set; then
34949   echo $ECHO_N "(cached) $ECHO_C" >&6
34950 else
34951   cat >conftest.$ac_ext <<_ACEOF
34952 /* confdefs.h.  */
34953 _ACEOF
34954 cat confdefs.h >>conftest.$ac_ext
34955 cat >>conftest.$ac_ext <<_ACEOF
34956 /* end confdefs.h.  */
34957
34958 int
34959 main ()
34960 {
34961 /* FIXME: Include the comments suggested by Paul. */
34962 #ifndef __cplusplus
34963   /* Ultrix mips cc rejects this.  */
34964   typedef int charset[2];
34965   const charset cs;
34966   /* SunOS 4.1.1 cc rejects this.  */
34967   char const *const *pcpcc;
34968   char **ppc;
34969   /* NEC SVR4.0.2 mips cc rejects this.  */
34970   struct point {int x, y;};
34971   static struct point const zero = {0,0};
34972   /* AIX XL C 1.02.0.0 rejects this.
34973      It does not let you subtract one const X* pointer from another in
34974      an arm of an if-expression whose if-part is not a constant
34975      expression */
34976   const char *g = "string";
34977   pcpcc = &g + (g ? g-g : 0);
34978   /* HPUX 7.0 cc rejects these. */
34979   ++pcpcc;
34980   ppc = (char**) pcpcc;
34981   pcpcc = (char const *const *) ppc;
34982   { /* SCO 3.2v4 cc rejects this.  */
34983     char *t;
34984     char const *s = 0 ? (char *) 0 : (char const *) 0;
34985
34986     *t++ = 0;
34987     if (s) return 0;
34988   }
34989   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
34990     int x[] = {25, 17};
34991     const int *foo = &x[0];
34992     ++foo;
34993   }
34994   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
34995     typedef const int *iptr;
34996     iptr p = 0;
34997     ++p;
34998   }
34999   { /* AIX XL C 1.02.0.0 rejects this saying
35000        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
35001     struct s { int j; const int *ap[3]; };
35002     struct s *b; b->j = 5;
35003   }
35004   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
35005     const int foo = 10;
35006     if (!foo) return 0;
35007   }
35008   return !cs[0] && !zero.x;
35009 #endif
35010
35011   ;
35012   return 0;
35013 }
35014 _ACEOF
35015 rm -f conftest.$ac_objext
35016 if { (ac_try="$ac_compile"
35017 case "(($ac_try" in
35018   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35019   *) ac_try_echo=$ac_try;;
35020 esac
35021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35022   (eval "$ac_compile") 2>conftest.er1
35023   ac_status=$?
35024   grep -v '^ *+' conftest.er1 >conftest.err
35025   rm -f conftest.er1
35026   cat conftest.err >&5
35027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35028   (exit $ac_status); } && {
35029          test -z "$ac_c_werror_flag" ||
35030          test ! -s conftest.err
35031        } && test -s conftest.$ac_objext; then
35032   ac_cv_c_const=yes
35033 else
35034   echo "$as_me: failed program was:" >&5
35035 sed 's/^/| /' conftest.$ac_ext >&5
35036
35037         ac_cv_c_const=no
35038 fi
35039
35040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35041 fi
35042 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
35043 echo "${ECHO_T}$ac_cv_c_const" >&6; }
35044 if test $ac_cv_c_const = no; then
35045
35046 cat >>confdefs.h <<\_ACEOF
35047 #define const
35048 _ACEOF
35049
35050 fi
35051
35052
35053 { echo "$as_me:$LINENO: checking for char" >&5
35054 echo $ECHO_N "checking for char... $ECHO_C" >&6; }
35055 if test "${ac_cv_type_char+set}" = set; then
35056   echo $ECHO_N "(cached) $ECHO_C" >&6
35057 else
35058   cat >conftest.$ac_ext <<_ACEOF
35059 /* confdefs.h.  */
35060 _ACEOF
35061 cat confdefs.h >>conftest.$ac_ext
35062 cat >>conftest.$ac_ext <<_ACEOF
35063 /* end confdefs.h.  */
35064 $ac_includes_default
35065 typedef char ac__type_new_;
35066 int
35067 main ()
35068 {
35069 if ((ac__type_new_ *) 0)
35070   return 0;
35071 if (sizeof (ac__type_new_))
35072   return 0;
35073   ;
35074   return 0;
35075 }
35076 _ACEOF
35077 rm -f conftest.$ac_objext
35078 if { (ac_try="$ac_compile"
35079 case "(($ac_try" in
35080   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35081   *) ac_try_echo=$ac_try;;
35082 esac
35083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35084   (eval "$ac_compile") 2>conftest.er1
35085   ac_status=$?
35086   grep -v '^ *+' conftest.er1 >conftest.err
35087   rm -f conftest.er1
35088   cat conftest.err >&5
35089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35090   (exit $ac_status); } && {
35091          test -z "$ac_c_werror_flag" ||
35092          test ! -s conftest.err
35093        } && test -s conftest.$ac_objext; then
35094   ac_cv_type_char=yes
35095 else
35096   echo "$as_me: failed program was:" >&5
35097 sed 's/^/| /' conftest.$ac_ext >&5
35098
35099         ac_cv_type_char=no
35100 fi
35101
35102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35103 fi
35104 { echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
35105 echo "${ECHO_T}$ac_cv_type_char" >&6; }
35106
35107 # The cast to long int works around a bug in the HP C Compiler
35108 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
35109 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
35110 # This bug is HP SR number 8606223364.
35111 { echo "$as_me:$LINENO: checking size of char" >&5
35112 echo $ECHO_N "checking size of char... $ECHO_C" >&6; }
35113 if test "${ac_cv_sizeof_char+set}" = set; then
35114   echo $ECHO_N "(cached) $ECHO_C" >&6
35115 else
35116   if test "$cross_compiling" = yes; then
35117   # Depending upon the size, compute the lo and hi bounds.
35118 cat >conftest.$ac_ext <<_ACEOF
35119 /* confdefs.h.  */
35120 _ACEOF
35121 cat confdefs.h >>conftest.$ac_ext
35122 cat >>conftest.$ac_ext <<_ACEOF
35123 /* end confdefs.h.  */
35124 $ac_includes_default
35125    typedef char ac__type_sizeof_;
35126 int
35127 main ()
35128 {
35129 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
35130 test_array [0] = 0
35131
35132   ;
35133   return 0;
35134 }
35135 _ACEOF
35136 rm -f conftest.$ac_objext
35137 if { (ac_try="$ac_compile"
35138 case "(($ac_try" in
35139   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35140   *) ac_try_echo=$ac_try;;
35141 esac
35142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35143   (eval "$ac_compile") 2>conftest.er1
35144   ac_status=$?
35145   grep -v '^ *+' conftest.er1 >conftest.err
35146   rm -f conftest.er1
35147   cat conftest.err >&5
35148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35149   (exit $ac_status); } && {
35150          test -z "$ac_c_werror_flag" ||
35151          test ! -s conftest.err
35152        } && test -s conftest.$ac_objext; then
35153   ac_lo=0 ac_mid=0
35154   while :; do
35155     cat >conftest.$ac_ext <<_ACEOF
35156 /* confdefs.h.  */
35157 _ACEOF
35158 cat confdefs.h >>conftest.$ac_ext
35159 cat >>conftest.$ac_ext <<_ACEOF
35160 /* end confdefs.h.  */
35161 $ac_includes_default
35162    typedef char ac__type_sizeof_;
35163 int
35164 main ()
35165 {
35166 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35167 test_array [0] = 0
35168
35169   ;
35170   return 0;
35171 }
35172 _ACEOF
35173 rm -f conftest.$ac_objext
35174 if { (ac_try="$ac_compile"
35175 case "(($ac_try" in
35176   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35177   *) ac_try_echo=$ac_try;;
35178 esac
35179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35180   (eval "$ac_compile") 2>conftest.er1
35181   ac_status=$?
35182   grep -v '^ *+' conftest.er1 >conftest.err
35183   rm -f conftest.er1
35184   cat conftest.err >&5
35185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35186   (exit $ac_status); } && {
35187          test -z "$ac_c_werror_flag" ||
35188          test ! -s conftest.err
35189        } && test -s conftest.$ac_objext; then
35190   ac_hi=$ac_mid; break
35191 else
35192   echo "$as_me: failed program was:" >&5
35193 sed 's/^/| /' conftest.$ac_ext >&5
35194
35195         ac_lo=`expr $ac_mid + 1`
35196                         if test $ac_lo -le $ac_mid; then
35197                           ac_lo= ac_hi=
35198                           break
35199                         fi
35200                         ac_mid=`expr 2 '*' $ac_mid + 1`
35201 fi
35202
35203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35204   done
35205 else
35206   echo "$as_me: failed program was:" >&5
35207 sed 's/^/| /' conftest.$ac_ext >&5
35208
35209         cat >conftest.$ac_ext <<_ACEOF
35210 /* confdefs.h.  */
35211 _ACEOF
35212 cat confdefs.h >>conftest.$ac_ext
35213 cat >>conftest.$ac_ext <<_ACEOF
35214 /* end confdefs.h.  */
35215 $ac_includes_default
35216    typedef char ac__type_sizeof_;
35217 int
35218 main ()
35219 {
35220 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
35221 test_array [0] = 0
35222
35223   ;
35224   return 0;
35225 }
35226 _ACEOF
35227 rm -f conftest.$ac_objext
35228 if { (ac_try="$ac_compile"
35229 case "(($ac_try" in
35230   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35231   *) ac_try_echo=$ac_try;;
35232 esac
35233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35234   (eval "$ac_compile") 2>conftest.er1
35235   ac_status=$?
35236   grep -v '^ *+' conftest.er1 >conftest.err
35237   rm -f conftest.er1
35238   cat conftest.err >&5
35239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35240   (exit $ac_status); } && {
35241          test -z "$ac_c_werror_flag" ||
35242          test ! -s conftest.err
35243        } && test -s conftest.$ac_objext; then
35244   ac_hi=-1 ac_mid=-1
35245   while :; do
35246     cat >conftest.$ac_ext <<_ACEOF
35247 /* confdefs.h.  */
35248 _ACEOF
35249 cat confdefs.h >>conftest.$ac_ext
35250 cat >>conftest.$ac_ext <<_ACEOF
35251 /* end confdefs.h.  */
35252 $ac_includes_default
35253    typedef char ac__type_sizeof_;
35254 int
35255 main ()
35256 {
35257 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
35258 test_array [0] = 0
35259
35260   ;
35261   return 0;
35262 }
35263 _ACEOF
35264 rm -f conftest.$ac_objext
35265 if { (ac_try="$ac_compile"
35266 case "(($ac_try" in
35267   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35268   *) ac_try_echo=$ac_try;;
35269 esac
35270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35271   (eval "$ac_compile") 2>conftest.er1
35272   ac_status=$?
35273   grep -v '^ *+' conftest.er1 >conftest.err
35274   rm -f conftest.er1
35275   cat conftest.err >&5
35276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35277   (exit $ac_status); } && {
35278          test -z "$ac_c_werror_flag" ||
35279          test ! -s conftest.err
35280        } && test -s conftest.$ac_objext; then
35281   ac_lo=$ac_mid; break
35282 else
35283   echo "$as_me: failed program was:" >&5
35284 sed 's/^/| /' conftest.$ac_ext >&5
35285
35286         ac_hi=`expr '(' $ac_mid ')' - 1`
35287                         if test $ac_mid -le $ac_hi; then
35288                           ac_lo= ac_hi=
35289                           break
35290                         fi
35291                         ac_mid=`expr 2 '*' $ac_mid`
35292 fi
35293
35294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35295   done
35296 else
35297   echo "$as_me: failed program was:" >&5
35298 sed 's/^/| /' conftest.$ac_ext >&5
35299
35300         ac_lo= ac_hi=
35301 fi
35302
35303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35304 fi
35305
35306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35307 # Binary search between lo and hi bounds.
35308 while test "x$ac_lo" != "x$ac_hi"; do
35309   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
35310   cat >conftest.$ac_ext <<_ACEOF
35311 /* confdefs.h.  */
35312 _ACEOF
35313 cat confdefs.h >>conftest.$ac_ext
35314 cat >>conftest.$ac_ext <<_ACEOF
35315 /* end confdefs.h.  */
35316 $ac_includes_default
35317    typedef char ac__type_sizeof_;
35318 int
35319 main ()
35320 {
35321 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35322 test_array [0] = 0
35323
35324   ;
35325   return 0;
35326 }
35327 _ACEOF
35328 rm -f conftest.$ac_objext
35329 if { (ac_try="$ac_compile"
35330 case "(($ac_try" in
35331   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35332   *) ac_try_echo=$ac_try;;
35333 esac
35334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35335   (eval "$ac_compile") 2>conftest.er1
35336   ac_status=$?
35337   grep -v '^ *+' conftest.er1 >conftest.err
35338   rm -f conftest.er1
35339   cat conftest.err >&5
35340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35341   (exit $ac_status); } && {
35342          test -z "$ac_c_werror_flag" ||
35343          test ! -s conftest.err
35344        } && test -s conftest.$ac_objext; then
35345   ac_hi=$ac_mid
35346 else
35347   echo "$as_me: failed program was:" >&5
35348 sed 's/^/| /' conftest.$ac_ext >&5
35349
35350         ac_lo=`expr '(' $ac_mid ')' + 1`
35351 fi
35352
35353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35354 done
35355 case $ac_lo in
35356 ?*) ac_cv_sizeof_char=$ac_lo;;
35357 '') if test "$ac_cv_type_char" = yes; then
35358      { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
35359 See \`config.log' for more details." >&5
35360 echo "$as_me: error: cannot compute sizeof (char)
35361 See \`config.log' for more details." >&2;}
35362    { (exit 77); exit 77; }; }
35363    else
35364      ac_cv_sizeof_char=0
35365    fi ;;
35366 esac
35367 else
35368   cat >conftest.$ac_ext <<_ACEOF
35369 /* confdefs.h.  */
35370 _ACEOF
35371 cat confdefs.h >>conftest.$ac_ext
35372 cat >>conftest.$ac_ext <<_ACEOF
35373 /* end confdefs.h.  */
35374 $ac_includes_default
35375    typedef char ac__type_sizeof_;
35376 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
35377 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
35378 #include <stdio.h>
35379 #include <stdlib.h>
35380 int
35381 main ()
35382 {
35383
35384   FILE *f = fopen ("conftest.val", "w");
35385   if (! f)
35386     return 1;
35387   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
35388     {
35389       long int i = longval ();
35390       if (i != ((long int) (sizeof (ac__type_sizeof_))))
35391         return 1;
35392       fprintf (f, "%ld\n", i);
35393     }
35394   else
35395     {
35396       unsigned long int i = ulongval ();
35397       if (i != ((long int) (sizeof (ac__type_sizeof_))))
35398         return 1;
35399       fprintf (f, "%lu\n", i);
35400     }
35401   return ferror (f) || fclose (f) != 0;
35402
35403   ;
35404   return 0;
35405 }
35406 _ACEOF
35407 rm -f conftest$ac_exeext
35408 if { (ac_try="$ac_link"
35409 case "(($ac_try" in
35410   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35411   *) ac_try_echo=$ac_try;;
35412 esac
35413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35414   (eval "$ac_link") 2>&5
35415   ac_status=$?
35416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35417   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35418   { (case "(($ac_try" in
35419   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35420   *) ac_try_echo=$ac_try;;
35421 esac
35422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35423   (eval "$ac_try") 2>&5
35424   ac_status=$?
35425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35426   (exit $ac_status); }; }; then
35427   ac_cv_sizeof_char=`cat conftest.val`
35428 else
35429   echo "$as_me: program exited with status $ac_status" >&5
35430 echo "$as_me: failed program was:" >&5
35431 sed 's/^/| /' conftest.$ac_ext >&5
35432
35433 ( exit $ac_status )
35434 if test "$ac_cv_type_char" = yes; then
35435      { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
35436 See \`config.log' for more details." >&5
35437 echo "$as_me: error: cannot compute sizeof (char)
35438 See \`config.log' for more details." >&2;}
35439    { (exit 77); exit 77; }; }
35440    else
35441      ac_cv_sizeof_char=0
35442    fi
35443 fi
35444 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35445 fi
35446 rm -f conftest.val
35447 fi
35448 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
35449 echo "${ECHO_T}$ac_cv_sizeof_char" >&6; }
35450
35451
35452
35453 cat >>confdefs.h <<_ACEOF
35454 #define SIZEOF_CHAR $ac_cv_sizeof_char
35455 _ACEOF
35456
35457
35458 { echo "$as_me:$LINENO: checking for short int" >&5
35459 echo $ECHO_N "checking for short int... $ECHO_C" >&6; }
35460 if test "${ac_cv_type_short_int+set}" = set; then
35461   echo $ECHO_N "(cached) $ECHO_C" >&6
35462 else
35463   cat >conftest.$ac_ext <<_ACEOF
35464 /* confdefs.h.  */
35465 _ACEOF
35466 cat confdefs.h >>conftest.$ac_ext
35467 cat >>conftest.$ac_ext <<_ACEOF
35468 /* end confdefs.h.  */
35469 $ac_includes_default
35470 typedef short int ac__type_new_;
35471 int
35472 main ()
35473 {
35474 if ((ac__type_new_ *) 0)
35475   return 0;
35476 if (sizeof (ac__type_new_))
35477   return 0;
35478   ;
35479   return 0;
35480 }
35481 _ACEOF
35482 rm -f conftest.$ac_objext
35483 if { (ac_try="$ac_compile"
35484 case "(($ac_try" in
35485   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35486   *) ac_try_echo=$ac_try;;
35487 esac
35488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35489   (eval "$ac_compile") 2>conftest.er1
35490   ac_status=$?
35491   grep -v '^ *+' conftest.er1 >conftest.err
35492   rm -f conftest.er1
35493   cat conftest.err >&5
35494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35495   (exit $ac_status); } && {
35496          test -z "$ac_c_werror_flag" ||
35497          test ! -s conftest.err
35498        } && test -s conftest.$ac_objext; then
35499   ac_cv_type_short_int=yes
35500 else
35501   echo "$as_me: failed program was:" >&5
35502 sed 's/^/| /' conftest.$ac_ext >&5
35503
35504         ac_cv_type_short_int=no
35505 fi
35506
35507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35508 fi
35509 { echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
35510 echo "${ECHO_T}$ac_cv_type_short_int" >&6; }
35511
35512 # The cast to long int works around a bug in the HP C Compiler
35513 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
35514 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
35515 # This bug is HP SR number 8606223364.
35516 { echo "$as_me:$LINENO: checking size of short int" >&5
35517 echo $ECHO_N "checking size of short int... $ECHO_C" >&6; }
35518 if test "${ac_cv_sizeof_short_int+set}" = set; then
35519   echo $ECHO_N "(cached) $ECHO_C" >&6
35520 else
35521   if test "$cross_compiling" = yes; then
35522   # Depending upon the size, compute the lo and hi bounds.
35523 cat >conftest.$ac_ext <<_ACEOF
35524 /* confdefs.h.  */
35525 _ACEOF
35526 cat confdefs.h >>conftest.$ac_ext
35527 cat >>conftest.$ac_ext <<_ACEOF
35528 /* end confdefs.h.  */
35529 $ac_includes_default
35530    typedef short int ac__type_sizeof_;
35531 int
35532 main ()
35533 {
35534 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
35535 test_array [0] = 0
35536
35537   ;
35538   return 0;
35539 }
35540 _ACEOF
35541 rm -f conftest.$ac_objext
35542 if { (ac_try="$ac_compile"
35543 case "(($ac_try" in
35544   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35545   *) ac_try_echo=$ac_try;;
35546 esac
35547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35548   (eval "$ac_compile") 2>conftest.er1
35549   ac_status=$?
35550   grep -v '^ *+' conftest.er1 >conftest.err
35551   rm -f conftest.er1
35552   cat conftest.err >&5
35553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35554   (exit $ac_status); } && {
35555          test -z "$ac_c_werror_flag" ||
35556          test ! -s conftest.err
35557        } && test -s conftest.$ac_objext; then
35558   ac_lo=0 ac_mid=0
35559   while :; do
35560     cat >conftest.$ac_ext <<_ACEOF
35561 /* confdefs.h.  */
35562 _ACEOF
35563 cat confdefs.h >>conftest.$ac_ext
35564 cat >>conftest.$ac_ext <<_ACEOF
35565 /* end confdefs.h.  */
35566 $ac_includes_default
35567    typedef short int ac__type_sizeof_;
35568 int
35569 main ()
35570 {
35571 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35572 test_array [0] = 0
35573
35574   ;
35575   return 0;
35576 }
35577 _ACEOF
35578 rm -f conftest.$ac_objext
35579 if { (ac_try="$ac_compile"
35580 case "(($ac_try" in
35581   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35582   *) ac_try_echo=$ac_try;;
35583 esac
35584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35585   (eval "$ac_compile") 2>conftest.er1
35586   ac_status=$?
35587   grep -v '^ *+' conftest.er1 >conftest.err
35588   rm -f conftest.er1
35589   cat conftest.err >&5
35590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35591   (exit $ac_status); } && {
35592          test -z "$ac_c_werror_flag" ||
35593          test ! -s conftest.err
35594        } && test -s conftest.$ac_objext; then
35595   ac_hi=$ac_mid; break
35596 else
35597   echo "$as_me: failed program was:" >&5
35598 sed 's/^/| /' conftest.$ac_ext >&5
35599
35600         ac_lo=`expr $ac_mid + 1`
35601                         if test $ac_lo -le $ac_mid; then
35602                           ac_lo= ac_hi=
35603                           break
35604                         fi
35605                         ac_mid=`expr 2 '*' $ac_mid + 1`
35606 fi
35607
35608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35609   done
35610 else
35611   echo "$as_me: failed program was:" >&5
35612 sed 's/^/| /' conftest.$ac_ext >&5
35613
35614         cat >conftest.$ac_ext <<_ACEOF
35615 /* confdefs.h.  */
35616 _ACEOF
35617 cat confdefs.h >>conftest.$ac_ext
35618 cat >>conftest.$ac_ext <<_ACEOF
35619 /* end confdefs.h.  */
35620 $ac_includes_default
35621    typedef short int ac__type_sizeof_;
35622 int
35623 main ()
35624 {
35625 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
35626 test_array [0] = 0
35627
35628   ;
35629   return 0;
35630 }
35631 _ACEOF
35632 rm -f conftest.$ac_objext
35633 if { (ac_try="$ac_compile"
35634 case "(($ac_try" in
35635   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35636   *) ac_try_echo=$ac_try;;
35637 esac
35638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35639   (eval "$ac_compile") 2>conftest.er1
35640   ac_status=$?
35641   grep -v '^ *+' conftest.er1 >conftest.err
35642   rm -f conftest.er1
35643   cat conftest.err >&5
35644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35645   (exit $ac_status); } && {
35646          test -z "$ac_c_werror_flag" ||
35647          test ! -s conftest.err
35648        } && test -s conftest.$ac_objext; then
35649   ac_hi=-1 ac_mid=-1
35650   while :; do
35651     cat >conftest.$ac_ext <<_ACEOF
35652 /* confdefs.h.  */
35653 _ACEOF
35654 cat confdefs.h >>conftest.$ac_ext
35655 cat >>conftest.$ac_ext <<_ACEOF
35656 /* end confdefs.h.  */
35657 $ac_includes_default
35658    typedef short int ac__type_sizeof_;
35659 int
35660 main ()
35661 {
35662 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
35663 test_array [0] = 0
35664
35665   ;
35666   return 0;
35667 }
35668 _ACEOF
35669 rm -f conftest.$ac_objext
35670 if { (ac_try="$ac_compile"
35671 case "(($ac_try" in
35672   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35673   *) ac_try_echo=$ac_try;;
35674 esac
35675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35676   (eval "$ac_compile") 2>conftest.er1
35677   ac_status=$?
35678   grep -v '^ *+' conftest.er1 >conftest.err
35679   rm -f conftest.er1
35680   cat conftest.err >&5
35681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35682   (exit $ac_status); } && {
35683          test -z "$ac_c_werror_flag" ||
35684          test ! -s conftest.err
35685        } && test -s conftest.$ac_objext; then
35686   ac_lo=$ac_mid; break
35687 else
35688   echo "$as_me: failed program was:" >&5
35689 sed 's/^/| /' conftest.$ac_ext >&5
35690
35691         ac_hi=`expr '(' $ac_mid ')' - 1`
35692                         if test $ac_mid -le $ac_hi; then
35693                           ac_lo= ac_hi=
35694                           break
35695                         fi
35696                         ac_mid=`expr 2 '*' $ac_mid`
35697 fi
35698
35699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35700   done
35701 else
35702   echo "$as_me: failed program was:" >&5
35703 sed 's/^/| /' conftest.$ac_ext >&5
35704
35705         ac_lo= ac_hi=
35706 fi
35707
35708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35709 fi
35710
35711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35712 # Binary search between lo and hi bounds.
35713 while test "x$ac_lo" != "x$ac_hi"; do
35714   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
35715   cat >conftest.$ac_ext <<_ACEOF
35716 /* confdefs.h.  */
35717 _ACEOF
35718 cat confdefs.h >>conftest.$ac_ext
35719 cat >>conftest.$ac_ext <<_ACEOF
35720 /* end confdefs.h.  */
35721 $ac_includes_default
35722    typedef short int ac__type_sizeof_;
35723 int
35724 main ()
35725 {
35726 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35727 test_array [0] = 0
35728
35729   ;
35730   return 0;
35731 }
35732 _ACEOF
35733 rm -f conftest.$ac_objext
35734 if { (ac_try="$ac_compile"
35735 case "(($ac_try" in
35736   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35737   *) ac_try_echo=$ac_try;;
35738 esac
35739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35740   (eval "$ac_compile") 2>conftest.er1
35741   ac_status=$?
35742   grep -v '^ *+' conftest.er1 >conftest.err
35743   rm -f conftest.er1
35744   cat conftest.err >&5
35745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35746   (exit $ac_status); } && {
35747          test -z "$ac_c_werror_flag" ||
35748          test ! -s conftest.err
35749        } && test -s conftest.$ac_objext; then
35750   ac_hi=$ac_mid
35751 else
35752   echo "$as_me: failed program was:" >&5
35753 sed 's/^/| /' conftest.$ac_ext >&5
35754
35755         ac_lo=`expr '(' $ac_mid ')' + 1`
35756 fi
35757
35758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35759 done
35760 case $ac_lo in
35761 ?*) ac_cv_sizeof_short_int=$ac_lo;;
35762 '') if test "$ac_cv_type_short_int" = yes; then
35763      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
35764 See \`config.log' for more details." >&5
35765 echo "$as_me: error: cannot compute sizeof (short int)
35766 See \`config.log' for more details." >&2;}
35767    { (exit 77); exit 77; }; }
35768    else
35769      ac_cv_sizeof_short_int=0
35770    fi ;;
35771 esac
35772 else
35773   cat >conftest.$ac_ext <<_ACEOF
35774 /* confdefs.h.  */
35775 _ACEOF
35776 cat confdefs.h >>conftest.$ac_ext
35777 cat >>conftest.$ac_ext <<_ACEOF
35778 /* end confdefs.h.  */
35779 $ac_includes_default
35780    typedef short int ac__type_sizeof_;
35781 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
35782 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
35783 #include <stdio.h>
35784 #include <stdlib.h>
35785 int
35786 main ()
35787 {
35788
35789   FILE *f = fopen ("conftest.val", "w");
35790   if (! f)
35791     return 1;
35792   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
35793     {
35794       long int i = longval ();
35795       if (i != ((long int) (sizeof (ac__type_sizeof_))))
35796         return 1;
35797       fprintf (f, "%ld\n", i);
35798     }
35799   else
35800     {
35801       unsigned long int i = ulongval ();
35802       if (i != ((long int) (sizeof (ac__type_sizeof_))))
35803         return 1;
35804       fprintf (f, "%lu\n", i);
35805     }
35806   return ferror (f) || fclose (f) != 0;
35807
35808   ;
35809   return 0;
35810 }
35811 _ACEOF
35812 rm -f conftest$ac_exeext
35813 if { (ac_try="$ac_link"
35814 case "(($ac_try" in
35815   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35816   *) ac_try_echo=$ac_try;;
35817 esac
35818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35819   (eval "$ac_link") 2>&5
35820   ac_status=$?
35821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35822   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35823   { (case "(($ac_try" in
35824   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35825   *) ac_try_echo=$ac_try;;
35826 esac
35827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35828   (eval "$ac_try") 2>&5
35829   ac_status=$?
35830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35831   (exit $ac_status); }; }; then
35832   ac_cv_sizeof_short_int=`cat conftest.val`
35833 else
35834   echo "$as_me: program exited with status $ac_status" >&5
35835 echo "$as_me: failed program was:" >&5
35836 sed 's/^/| /' conftest.$ac_ext >&5
35837
35838 ( exit $ac_status )
35839 if test "$ac_cv_type_short_int" = yes; then
35840      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
35841 See \`config.log' for more details." >&5
35842 echo "$as_me: error: cannot compute sizeof (short int)
35843 See \`config.log' for more details." >&2;}
35844    { (exit 77); exit 77; }; }
35845    else
35846      ac_cv_sizeof_short_int=0
35847    fi
35848 fi
35849 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35850 fi
35851 rm -f conftest.val
35852 fi
35853 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
35854 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6; }
35855
35856
35857
35858 cat >>confdefs.h <<_ACEOF
35859 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
35860 _ACEOF
35861
35862
35863 { echo "$as_me:$LINENO: checking for int" >&5
35864 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
35865 if test "${ac_cv_type_int+set}" = set; then
35866   echo $ECHO_N "(cached) $ECHO_C" >&6
35867 else
35868   cat >conftest.$ac_ext <<_ACEOF
35869 /* confdefs.h.  */
35870 _ACEOF
35871 cat confdefs.h >>conftest.$ac_ext
35872 cat >>conftest.$ac_ext <<_ACEOF
35873 /* end confdefs.h.  */
35874 $ac_includes_default
35875 typedef int ac__type_new_;
35876 int
35877 main ()
35878 {
35879 if ((ac__type_new_ *) 0)
35880   return 0;
35881 if (sizeof (ac__type_new_))
35882   return 0;
35883   ;
35884   return 0;
35885 }
35886 _ACEOF
35887 rm -f conftest.$ac_objext
35888 if { (ac_try="$ac_compile"
35889 case "(($ac_try" in
35890   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35891   *) ac_try_echo=$ac_try;;
35892 esac
35893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35894   (eval "$ac_compile") 2>conftest.er1
35895   ac_status=$?
35896   grep -v '^ *+' conftest.er1 >conftest.err
35897   rm -f conftest.er1
35898   cat conftest.err >&5
35899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35900   (exit $ac_status); } && {
35901          test -z "$ac_c_werror_flag" ||
35902          test ! -s conftest.err
35903        } && test -s conftest.$ac_objext; then
35904   ac_cv_type_int=yes
35905 else
35906   echo "$as_me: failed program was:" >&5
35907 sed 's/^/| /' conftest.$ac_ext >&5
35908
35909         ac_cv_type_int=no
35910 fi
35911
35912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35913 fi
35914 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
35915 echo "${ECHO_T}$ac_cv_type_int" >&6; }
35916
35917 # The cast to long int works around a bug in the HP C Compiler
35918 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
35919 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
35920 # This bug is HP SR number 8606223364.
35921 { echo "$as_me:$LINENO: checking size of int" >&5
35922 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
35923 if test "${ac_cv_sizeof_int+set}" = set; then
35924   echo $ECHO_N "(cached) $ECHO_C" >&6
35925 else
35926   if test "$cross_compiling" = yes; then
35927   # Depending upon the size, compute the lo and hi bounds.
35928 cat >conftest.$ac_ext <<_ACEOF
35929 /* confdefs.h.  */
35930 _ACEOF
35931 cat confdefs.h >>conftest.$ac_ext
35932 cat >>conftest.$ac_ext <<_ACEOF
35933 /* end confdefs.h.  */
35934 $ac_includes_default
35935    typedef int ac__type_sizeof_;
35936 int
35937 main ()
35938 {
35939 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
35940 test_array [0] = 0
35941
35942   ;
35943   return 0;
35944 }
35945 _ACEOF
35946 rm -f conftest.$ac_objext
35947 if { (ac_try="$ac_compile"
35948 case "(($ac_try" in
35949   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35950   *) ac_try_echo=$ac_try;;
35951 esac
35952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35953   (eval "$ac_compile") 2>conftest.er1
35954   ac_status=$?
35955   grep -v '^ *+' conftest.er1 >conftest.err
35956   rm -f conftest.er1
35957   cat conftest.err >&5
35958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35959   (exit $ac_status); } && {
35960          test -z "$ac_c_werror_flag" ||
35961          test ! -s conftest.err
35962        } && test -s conftest.$ac_objext; then
35963   ac_lo=0 ac_mid=0
35964   while :; do
35965     cat >conftest.$ac_ext <<_ACEOF
35966 /* confdefs.h.  */
35967 _ACEOF
35968 cat confdefs.h >>conftest.$ac_ext
35969 cat >>conftest.$ac_ext <<_ACEOF
35970 /* end confdefs.h.  */
35971 $ac_includes_default
35972    typedef int ac__type_sizeof_;
35973 int
35974 main ()
35975 {
35976 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35977 test_array [0] = 0
35978
35979   ;
35980   return 0;
35981 }
35982 _ACEOF
35983 rm -f conftest.$ac_objext
35984 if { (ac_try="$ac_compile"
35985 case "(($ac_try" in
35986   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35987   *) ac_try_echo=$ac_try;;
35988 esac
35989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35990   (eval "$ac_compile") 2>conftest.er1
35991   ac_status=$?
35992   grep -v '^ *+' conftest.er1 >conftest.err
35993   rm -f conftest.er1
35994   cat conftest.err >&5
35995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35996   (exit $ac_status); } && {
35997          test -z "$ac_c_werror_flag" ||
35998          test ! -s conftest.err
35999        } && test -s conftest.$ac_objext; then
36000   ac_hi=$ac_mid; break
36001 else
36002   echo "$as_me: failed program was:" >&5
36003 sed 's/^/| /' conftest.$ac_ext >&5
36004
36005         ac_lo=`expr $ac_mid + 1`
36006                         if test $ac_lo -le $ac_mid; then
36007                           ac_lo= ac_hi=
36008                           break
36009                         fi
36010                         ac_mid=`expr 2 '*' $ac_mid + 1`
36011 fi
36012
36013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36014   done
36015 else
36016   echo "$as_me: failed program was:" >&5
36017 sed 's/^/| /' conftest.$ac_ext >&5
36018
36019         cat >conftest.$ac_ext <<_ACEOF
36020 /* confdefs.h.  */
36021 _ACEOF
36022 cat confdefs.h >>conftest.$ac_ext
36023 cat >>conftest.$ac_ext <<_ACEOF
36024 /* end confdefs.h.  */
36025 $ac_includes_default
36026    typedef int ac__type_sizeof_;
36027 int
36028 main ()
36029 {
36030 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
36031 test_array [0] = 0
36032
36033   ;
36034   return 0;
36035 }
36036 _ACEOF
36037 rm -f conftest.$ac_objext
36038 if { (ac_try="$ac_compile"
36039 case "(($ac_try" in
36040   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36041   *) ac_try_echo=$ac_try;;
36042 esac
36043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36044   (eval "$ac_compile") 2>conftest.er1
36045   ac_status=$?
36046   grep -v '^ *+' conftest.er1 >conftest.err
36047   rm -f conftest.er1
36048   cat conftest.err >&5
36049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36050   (exit $ac_status); } && {
36051          test -z "$ac_c_werror_flag" ||
36052          test ! -s conftest.err
36053        } && test -s conftest.$ac_objext; then
36054   ac_hi=-1 ac_mid=-1
36055   while :; do
36056     cat >conftest.$ac_ext <<_ACEOF
36057 /* confdefs.h.  */
36058 _ACEOF
36059 cat confdefs.h >>conftest.$ac_ext
36060 cat >>conftest.$ac_ext <<_ACEOF
36061 /* end confdefs.h.  */
36062 $ac_includes_default
36063    typedef int ac__type_sizeof_;
36064 int
36065 main ()
36066 {
36067 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
36068 test_array [0] = 0
36069
36070   ;
36071   return 0;
36072 }
36073 _ACEOF
36074 rm -f conftest.$ac_objext
36075 if { (ac_try="$ac_compile"
36076 case "(($ac_try" in
36077   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36078   *) ac_try_echo=$ac_try;;
36079 esac
36080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36081   (eval "$ac_compile") 2>conftest.er1
36082   ac_status=$?
36083   grep -v '^ *+' conftest.er1 >conftest.err
36084   rm -f conftest.er1
36085   cat conftest.err >&5
36086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36087   (exit $ac_status); } && {
36088          test -z "$ac_c_werror_flag" ||
36089          test ! -s conftest.err
36090        } && test -s conftest.$ac_objext; then
36091   ac_lo=$ac_mid; break
36092 else
36093   echo "$as_me: failed program was:" >&5
36094 sed 's/^/| /' conftest.$ac_ext >&5
36095
36096         ac_hi=`expr '(' $ac_mid ')' - 1`
36097                         if test $ac_mid -le $ac_hi; then
36098                           ac_lo= ac_hi=
36099                           break
36100                         fi
36101                         ac_mid=`expr 2 '*' $ac_mid`
36102 fi
36103
36104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36105   done
36106 else
36107   echo "$as_me: failed program was:" >&5
36108 sed 's/^/| /' conftest.$ac_ext >&5
36109
36110         ac_lo= ac_hi=
36111 fi
36112
36113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36114 fi
36115
36116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36117 # Binary search between lo and hi bounds.
36118 while test "x$ac_lo" != "x$ac_hi"; do
36119   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
36120   cat >conftest.$ac_ext <<_ACEOF
36121 /* confdefs.h.  */
36122 _ACEOF
36123 cat confdefs.h >>conftest.$ac_ext
36124 cat >>conftest.$ac_ext <<_ACEOF
36125 /* end confdefs.h.  */
36126 $ac_includes_default
36127    typedef int ac__type_sizeof_;
36128 int
36129 main ()
36130 {
36131 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36132 test_array [0] = 0
36133
36134   ;
36135   return 0;
36136 }
36137 _ACEOF
36138 rm -f conftest.$ac_objext
36139 if { (ac_try="$ac_compile"
36140 case "(($ac_try" in
36141   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36142   *) ac_try_echo=$ac_try;;
36143 esac
36144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36145   (eval "$ac_compile") 2>conftest.er1
36146   ac_status=$?
36147   grep -v '^ *+' conftest.er1 >conftest.err
36148   rm -f conftest.er1
36149   cat conftest.err >&5
36150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36151   (exit $ac_status); } && {
36152          test -z "$ac_c_werror_flag" ||
36153          test ! -s conftest.err
36154        } && test -s conftest.$ac_objext; then
36155   ac_hi=$ac_mid
36156 else
36157   echo "$as_me: failed program was:" >&5
36158 sed 's/^/| /' conftest.$ac_ext >&5
36159
36160         ac_lo=`expr '(' $ac_mid ')' + 1`
36161 fi
36162
36163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36164 done
36165 case $ac_lo in
36166 ?*) ac_cv_sizeof_int=$ac_lo;;
36167 '') if test "$ac_cv_type_int" = yes; then
36168      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
36169 See \`config.log' for more details." >&5
36170 echo "$as_me: error: cannot compute sizeof (int)
36171 See \`config.log' for more details." >&2;}
36172    { (exit 77); exit 77; }; }
36173    else
36174      ac_cv_sizeof_int=0
36175    fi ;;
36176 esac
36177 else
36178   cat >conftest.$ac_ext <<_ACEOF
36179 /* confdefs.h.  */
36180 _ACEOF
36181 cat confdefs.h >>conftest.$ac_ext
36182 cat >>conftest.$ac_ext <<_ACEOF
36183 /* end confdefs.h.  */
36184 $ac_includes_default
36185    typedef int ac__type_sizeof_;
36186 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
36187 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
36188 #include <stdio.h>
36189 #include <stdlib.h>
36190 int
36191 main ()
36192 {
36193
36194   FILE *f = fopen ("conftest.val", "w");
36195   if (! f)
36196     return 1;
36197   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
36198     {
36199       long int i = longval ();
36200       if (i != ((long int) (sizeof (ac__type_sizeof_))))
36201         return 1;
36202       fprintf (f, "%ld\n", i);
36203     }
36204   else
36205     {
36206       unsigned long int i = ulongval ();
36207       if (i != ((long int) (sizeof (ac__type_sizeof_))))
36208         return 1;
36209       fprintf (f, "%lu\n", i);
36210     }
36211   return ferror (f) || fclose (f) != 0;
36212
36213   ;
36214   return 0;
36215 }
36216 _ACEOF
36217 rm -f conftest$ac_exeext
36218 if { (ac_try="$ac_link"
36219 case "(($ac_try" in
36220   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36221   *) ac_try_echo=$ac_try;;
36222 esac
36223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36224   (eval "$ac_link") 2>&5
36225   ac_status=$?
36226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36227   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36228   { (case "(($ac_try" in
36229   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36230   *) ac_try_echo=$ac_try;;
36231 esac
36232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36233   (eval "$ac_try") 2>&5
36234   ac_status=$?
36235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36236   (exit $ac_status); }; }; then
36237   ac_cv_sizeof_int=`cat conftest.val`
36238 else
36239   echo "$as_me: program exited with status $ac_status" >&5
36240 echo "$as_me: failed program was:" >&5
36241 sed 's/^/| /' conftest.$ac_ext >&5
36242
36243 ( exit $ac_status )
36244 if test "$ac_cv_type_int" = yes; then
36245      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
36246 See \`config.log' for more details." >&5
36247 echo "$as_me: error: cannot compute sizeof (int)
36248 See \`config.log' for more details." >&2;}
36249    { (exit 77); exit 77; }; }
36250    else
36251      ac_cv_sizeof_int=0
36252    fi
36253 fi
36254 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36255 fi
36256 rm -f conftest.val
36257 fi
36258 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
36259 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
36260
36261
36262
36263 cat >>confdefs.h <<_ACEOF
36264 #define SIZEOF_INT $ac_cv_sizeof_int
36265 _ACEOF
36266
36267
36268 { echo "$as_me:$LINENO: checking for long int" >&5
36269 echo $ECHO_N "checking for long int... $ECHO_C" >&6; }
36270 if test "${ac_cv_type_long_int+set}" = set; then
36271   echo $ECHO_N "(cached) $ECHO_C" >&6
36272 else
36273   cat >conftest.$ac_ext <<_ACEOF
36274 /* confdefs.h.  */
36275 _ACEOF
36276 cat confdefs.h >>conftest.$ac_ext
36277 cat >>conftest.$ac_ext <<_ACEOF
36278 /* end confdefs.h.  */
36279 $ac_includes_default
36280 typedef long int ac__type_new_;
36281 int
36282 main ()
36283 {
36284 if ((ac__type_new_ *) 0)
36285   return 0;
36286 if (sizeof (ac__type_new_))
36287   return 0;
36288   ;
36289   return 0;
36290 }
36291 _ACEOF
36292 rm -f conftest.$ac_objext
36293 if { (ac_try="$ac_compile"
36294 case "(($ac_try" in
36295   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36296   *) ac_try_echo=$ac_try;;
36297 esac
36298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36299   (eval "$ac_compile") 2>conftest.er1
36300   ac_status=$?
36301   grep -v '^ *+' conftest.er1 >conftest.err
36302   rm -f conftest.er1
36303   cat conftest.err >&5
36304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36305   (exit $ac_status); } && {
36306          test -z "$ac_c_werror_flag" ||
36307          test ! -s conftest.err
36308        } && test -s conftest.$ac_objext; then
36309   ac_cv_type_long_int=yes
36310 else
36311   echo "$as_me: failed program was:" >&5
36312 sed 's/^/| /' conftest.$ac_ext >&5
36313
36314         ac_cv_type_long_int=no
36315 fi
36316
36317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36318 fi
36319 { echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
36320 echo "${ECHO_T}$ac_cv_type_long_int" >&6; }
36321
36322 # The cast to long int works around a bug in the HP C Compiler
36323 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
36324 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
36325 # This bug is HP SR number 8606223364.
36326 { echo "$as_me:$LINENO: checking size of long int" >&5
36327 echo $ECHO_N "checking size of long int... $ECHO_C" >&6; }
36328 if test "${ac_cv_sizeof_long_int+set}" = set; then
36329   echo $ECHO_N "(cached) $ECHO_C" >&6
36330 else
36331   if test "$cross_compiling" = yes; then
36332   # Depending upon the size, compute the lo and hi bounds.
36333 cat >conftest.$ac_ext <<_ACEOF
36334 /* confdefs.h.  */
36335 _ACEOF
36336 cat confdefs.h >>conftest.$ac_ext
36337 cat >>conftest.$ac_ext <<_ACEOF
36338 /* end confdefs.h.  */
36339 $ac_includes_default
36340    typedef long int ac__type_sizeof_;
36341 int
36342 main ()
36343 {
36344 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
36345 test_array [0] = 0
36346
36347   ;
36348   return 0;
36349 }
36350 _ACEOF
36351 rm -f conftest.$ac_objext
36352 if { (ac_try="$ac_compile"
36353 case "(($ac_try" in
36354   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36355   *) ac_try_echo=$ac_try;;
36356 esac
36357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36358   (eval "$ac_compile") 2>conftest.er1
36359   ac_status=$?
36360   grep -v '^ *+' conftest.er1 >conftest.err
36361   rm -f conftest.er1
36362   cat conftest.err >&5
36363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36364   (exit $ac_status); } && {
36365          test -z "$ac_c_werror_flag" ||
36366          test ! -s conftest.err
36367        } && test -s conftest.$ac_objext; then
36368   ac_lo=0 ac_mid=0
36369   while :; do
36370     cat >conftest.$ac_ext <<_ACEOF
36371 /* confdefs.h.  */
36372 _ACEOF
36373 cat confdefs.h >>conftest.$ac_ext
36374 cat >>conftest.$ac_ext <<_ACEOF
36375 /* end confdefs.h.  */
36376 $ac_includes_default
36377    typedef long int ac__type_sizeof_;
36378 int
36379 main ()
36380 {
36381 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36382 test_array [0] = 0
36383
36384   ;
36385   return 0;
36386 }
36387 _ACEOF
36388 rm -f conftest.$ac_objext
36389 if { (ac_try="$ac_compile"
36390 case "(($ac_try" in
36391   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36392   *) ac_try_echo=$ac_try;;
36393 esac
36394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36395   (eval "$ac_compile") 2>conftest.er1
36396   ac_status=$?
36397   grep -v '^ *+' conftest.er1 >conftest.err
36398   rm -f conftest.er1
36399   cat conftest.err >&5
36400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36401   (exit $ac_status); } && {
36402          test -z "$ac_c_werror_flag" ||
36403          test ! -s conftest.err
36404        } && test -s conftest.$ac_objext; then
36405   ac_hi=$ac_mid; break
36406 else
36407   echo "$as_me: failed program was:" >&5
36408 sed 's/^/| /' conftest.$ac_ext >&5
36409
36410         ac_lo=`expr $ac_mid + 1`
36411                         if test $ac_lo -le $ac_mid; then
36412                           ac_lo= ac_hi=
36413                           break
36414                         fi
36415                         ac_mid=`expr 2 '*' $ac_mid + 1`
36416 fi
36417
36418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36419   done
36420 else
36421   echo "$as_me: failed program was:" >&5
36422 sed 's/^/| /' conftest.$ac_ext >&5
36423
36424         cat >conftest.$ac_ext <<_ACEOF
36425 /* confdefs.h.  */
36426 _ACEOF
36427 cat confdefs.h >>conftest.$ac_ext
36428 cat >>conftest.$ac_ext <<_ACEOF
36429 /* end confdefs.h.  */
36430 $ac_includes_default
36431    typedef long int ac__type_sizeof_;
36432 int
36433 main ()
36434 {
36435 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
36436 test_array [0] = 0
36437
36438   ;
36439   return 0;
36440 }
36441 _ACEOF
36442 rm -f conftest.$ac_objext
36443 if { (ac_try="$ac_compile"
36444 case "(($ac_try" in
36445   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36446   *) ac_try_echo=$ac_try;;
36447 esac
36448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36449   (eval "$ac_compile") 2>conftest.er1
36450   ac_status=$?
36451   grep -v '^ *+' conftest.er1 >conftest.err
36452   rm -f conftest.er1
36453   cat conftest.err >&5
36454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36455   (exit $ac_status); } && {
36456          test -z "$ac_c_werror_flag" ||
36457          test ! -s conftest.err
36458        } && test -s conftest.$ac_objext; then
36459   ac_hi=-1 ac_mid=-1
36460   while :; do
36461     cat >conftest.$ac_ext <<_ACEOF
36462 /* confdefs.h.  */
36463 _ACEOF
36464 cat confdefs.h >>conftest.$ac_ext
36465 cat >>conftest.$ac_ext <<_ACEOF
36466 /* end confdefs.h.  */
36467 $ac_includes_default
36468    typedef long int ac__type_sizeof_;
36469 int
36470 main ()
36471 {
36472 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
36473 test_array [0] = 0
36474
36475   ;
36476   return 0;
36477 }
36478 _ACEOF
36479 rm -f conftest.$ac_objext
36480 if { (ac_try="$ac_compile"
36481 case "(($ac_try" in
36482   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36483   *) ac_try_echo=$ac_try;;
36484 esac
36485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36486   (eval "$ac_compile") 2>conftest.er1
36487   ac_status=$?
36488   grep -v '^ *+' conftest.er1 >conftest.err
36489   rm -f conftest.er1
36490   cat conftest.err >&5
36491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36492   (exit $ac_status); } && {
36493          test -z "$ac_c_werror_flag" ||
36494          test ! -s conftest.err
36495        } && test -s conftest.$ac_objext; then
36496   ac_lo=$ac_mid; break
36497 else
36498   echo "$as_me: failed program was:" >&5
36499 sed 's/^/| /' conftest.$ac_ext >&5
36500
36501         ac_hi=`expr '(' $ac_mid ')' - 1`
36502                         if test $ac_mid -le $ac_hi; then
36503                           ac_lo= ac_hi=
36504                           break
36505                         fi
36506                         ac_mid=`expr 2 '*' $ac_mid`
36507 fi
36508
36509 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36510   done
36511 else
36512   echo "$as_me: failed program was:" >&5
36513 sed 's/^/| /' conftest.$ac_ext >&5
36514
36515         ac_lo= ac_hi=
36516 fi
36517
36518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36519 fi
36520
36521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36522 # Binary search between lo and hi bounds.
36523 while test "x$ac_lo" != "x$ac_hi"; do
36524   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
36525   cat >conftest.$ac_ext <<_ACEOF
36526 /* confdefs.h.  */
36527 _ACEOF
36528 cat confdefs.h >>conftest.$ac_ext
36529 cat >>conftest.$ac_ext <<_ACEOF
36530 /* end confdefs.h.  */
36531 $ac_includes_default
36532    typedef long int ac__type_sizeof_;
36533 int
36534 main ()
36535 {
36536 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36537 test_array [0] = 0
36538
36539   ;
36540   return 0;
36541 }
36542 _ACEOF
36543 rm -f conftest.$ac_objext
36544 if { (ac_try="$ac_compile"
36545 case "(($ac_try" in
36546   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36547   *) ac_try_echo=$ac_try;;
36548 esac
36549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36550   (eval "$ac_compile") 2>conftest.er1
36551   ac_status=$?
36552   grep -v '^ *+' conftest.er1 >conftest.err
36553   rm -f conftest.er1
36554   cat conftest.err >&5
36555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36556   (exit $ac_status); } && {
36557          test -z "$ac_c_werror_flag" ||
36558          test ! -s conftest.err
36559        } && test -s conftest.$ac_objext; then
36560   ac_hi=$ac_mid
36561 else
36562   echo "$as_me: failed program was:" >&5
36563 sed 's/^/| /' conftest.$ac_ext >&5
36564
36565         ac_lo=`expr '(' $ac_mid ')' + 1`
36566 fi
36567
36568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36569 done
36570 case $ac_lo in
36571 ?*) ac_cv_sizeof_long_int=$ac_lo;;
36572 '') if test "$ac_cv_type_long_int" = yes; then
36573      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
36574 See \`config.log' for more details." >&5
36575 echo "$as_me: error: cannot compute sizeof (long int)
36576 See \`config.log' for more details." >&2;}
36577    { (exit 77); exit 77; }; }
36578    else
36579      ac_cv_sizeof_long_int=0
36580    fi ;;
36581 esac
36582 else
36583   cat >conftest.$ac_ext <<_ACEOF
36584 /* confdefs.h.  */
36585 _ACEOF
36586 cat confdefs.h >>conftest.$ac_ext
36587 cat >>conftest.$ac_ext <<_ACEOF
36588 /* end confdefs.h.  */
36589 $ac_includes_default
36590    typedef long int ac__type_sizeof_;
36591 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
36592 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
36593 #include <stdio.h>
36594 #include <stdlib.h>
36595 int
36596 main ()
36597 {
36598
36599   FILE *f = fopen ("conftest.val", "w");
36600   if (! f)
36601     return 1;
36602   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
36603     {
36604       long int i = longval ();
36605       if (i != ((long int) (sizeof (ac__type_sizeof_))))
36606         return 1;
36607       fprintf (f, "%ld\n", i);
36608     }
36609   else
36610     {
36611       unsigned long int i = ulongval ();
36612       if (i != ((long int) (sizeof (ac__type_sizeof_))))
36613         return 1;
36614       fprintf (f, "%lu\n", i);
36615     }
36616   return ferror (f) || fclose (f) != 0;
36617
36618   ;
36619   return 0;
36620 }
36621 _ACEOF
36622 rm -f conftest$ac_exeext
36623 if { (ac_try="$ac_link"
36624 case "(($ac_try" in
36625   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36626   *) ac_try_echo=$ac_try;;
36627 esac
36628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36629   (eval "$ac_link") 2>&5
36630   ac_status=$?
36631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36632   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36633   { (case "(($ac_try" in
36634   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36635   *) ac_try_echo=$ac_try;;
36636 esac
36637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36638   (eval "$ac_try") 2>&5
36639   ac_status=$?
36640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36641   (exit $ac_status); }; }; then
36642   ac_cv_sizeof_long_int=`cat conftest.val`
36643 else
36644   echo "$as_me: program exited with status $ac_status" >&5
36645 echo "$as_me: failed program was:" >&5
36646 sed 's/^/| /' conftest.$ac_ext >&5
36647
36648 ( exit $ac_status )
36649 if test "$ac_cv_type_long_int" = yes; then
36650      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
36651 See \`config.log' for more details." >&5
36652 echo "$as_me: error: cannot compute sizeof (long int)
36653 See \`config.log' for more details." >&2;}
36654    { (exit 77); exit 77; }; }
36655    else
36656      ac_cv_sizeof_long_int=0
36657    fi
36658 fi
36659 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36660 fi
36661 rm -f conftest.val
36662 fi
36663 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
36664 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6; }
36665
36666
36667
36668 cat >>confdefs.h <<_ACEOF
36669 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
36670 _ACEOF
36671
36672
36673 { echo "$as_me:$LINENO: checking for long long int" >&5
36674 echo $ECHO_N "checking for long long int... $ECHO_C" >&6; }
36675 if test "${ac_cv_type_long_long_int+set}" = set; then
36676   echo $ECHO_N "(cached) $ECHO_C" >&6
36677 else
36678   cat >conftest.$ac_ext <<_ACEOF
36679 /* confdefs.h.  */
36680 _ACEOF
36681 cat confdefs.h >>conftest.$ac_ext
36682 cat >>conftest.$ac_ext <<_ACEOF
36683 /* end confdefs.h.  */
36684 $ac_includes_default
36685 typedef long long int ac__type_new_;
36686 int
36687 main ()
36688 {
36689 if ((ac__type_new_ *) 0)
36690   return 0;
36691 if (sizeof (ac__type_new_))
36692   return 0;
36693   ;
36694   return 0;
36695 }
36696 _ACEOF
36697 rm -f conftest.$ac_objext
36698 if { (ac_try="$ac_compile"
36699 case "(($ac_try" in
36700   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36701   *) ac_try_echo=$ac_try;;
36702 esac
36703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36704   (eval "$ac_compile") 2>conftest.er1
36705   ac_status=$?
36706   grep -v '^ *+' conftest.er1 >conftest.err
36707   rm -f conftest.er1
36708   cat conftest.err >&5
36709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36710   (exit $ac_status); } && {
36711          test -z "$ac_c_werror_flag" ||
36712          test ! -s conftest.err
36713        } && test -s conftest.$ac_objext; then
36714   ac_cv_type_long_long_int=yes
36715 else
36716   echo "$as_me: failed program was:" >&5
36717 sed 's/^/| /' conftest.$ac_ext >&5
36718
36719         ac_cv_type_long_long_int=no
36720 fi
36721
36722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36723 fi
36724 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
36725 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6; }
36726
36727 # The cast to long int works around a bug in the HP C Compiler
36728 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
36729 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
36730 # This bug is HP SR number 8606223364.
36731 { echo "$as_me:$LINENO: checking size of long long int" >&5
36732 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6; }
36733 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
36734   echo $ECHO_N "(cached) $ECHO_C" >&6
36735 else
36736   if test "$cross_compiling" = yes; then
36737   # Depending upon the size, compute the lo and hi bounds.
36738 cat >conftest.$ac_ext <<_ACEOF
36739 /* confdefs.h.  */
36740 _ACEOF
36741 cat confdefs.h >>conftest.$ac_ext
36742 cat >>conftest.$ac_ext <<_ACEOF
36743 /* end confdefs.h.  */
36744 $ac_includes_default
36745    typedef long long int ac__type_sizeof_;
36746 int
36747 main ()
36748 {
36749 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
36750 test_array [0] = 0
36751
36752   ;
36753   return 0;
36754 }
36755 _ACEOF
36756 rm -f conftest.$ac_objext
36757 if { (ac_try="$ac_compile"
36758 case "(($ac_try" in
36759   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36760   *) ac_try_echo=$ac_try;;
36761 esac
36762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36763   (eval "$ac_compile") 2>conftest.er1
36764   ac_status=$?
36765   grep -v '^ *+' conftest.er1 >conftest.err
36766   rm -f conftest.er1
36767   cat conftest.err >&5
36768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36769   (exit $ac_status); } && {
36770          test -z "$ac_c_werror_flag" ||
36771          test ! -s conftest.err
36772        } && test -s conftest.$ac_objext; then
36773   ac_lo=0 ac_mid=0
36774   while :; do
36775     cat >conftest.$ac_ext <<_ACEOF
36776 /* confdefs.h.  */
36777 _ACEOF
36778 cat confdefs.h >>conftest.$ac_ext
36779 cat >>conftest.$ac_ext <<_ACEOF
36780 /* end confdefs.h.  */
36781 $ac_includes_default
36782    typedef long long int ac__type_sizeof_;
36783 int
36784 main ()
36785 {
36786 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36787 test_array [0] = 0
36788
36789   ;
36790   return 0;
36791 }
36792 _ACEOF
36793 rm -f conftest.$ac_objext
36794 if { (ac_try="$ac_compile"
36795 case "(($ac_try" in
36796   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36797   *) ac_try_echo=$ac_try;;
36798 esac
36799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36800   (eval "$ac_compile") 2>conftest.er1
36801   ac_status=$?
36802   grep -v '^ *+' conftest.er1 >conftest.err
36803   rm -f conftest.er1
36804   cat conftest.err >&5
36805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36806   (exit $ac_status); } && {
36807          test -z "$ac_c_werror_flag" ||
36808          test ! -s conftest.err
36809        } && test -s conftest.$ac_objext; then
36810   ac_hi=$ac_mid; break
36811 else
36812   echo "$as_me: failed program was:" >&5
36813 sed 's/^/| /' conftest.$ac_ext >&5
36814
36815         ac_lo=`expr $ac_mid + 1`
36816                         if test $ac_lo -le $ac_mid; then
36817                           ac_lo= ac_hi=
36818                           break
36819                         fi
36820                         ac_mid=`expr 2 '*' $ac_mid + 1`
36821 fi
36822
36823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36824   done
36825 else
36826   echo "$as_me: failed program was:" >&5
36827 sed 's/^/| /' conftest.$ac_ext >&5
36828
36829         cat >conftest.$ac_ext <<_ACEOF
36830 /* confdefs.h.  */
36831 _ACEOF
36832 cat confdefs.h >>conftest.$ac_ext
36833 cat >>conftest.$ac_ext <<_ACEOF
36834 /* end confdefs.h.  */
36835 $ac_includes_default
36836    typedef long long int ac__type_sizeof_;
36837 int
36838 main ()
36839 {
36840 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
36841 test_array [0] = 0
36842
36843   ;
36844   return 0;
36845 }
36846 _ACEOF
36847 rm -f conftest.$ac_objext
36848 if { (ac_try="$ac_compile"
36849 case "(($ac_try" in
36850   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36851   *) ac_try_echo=$ac_try;;
36852 esac
36853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36854   (eval "$ac_compile") 2>conftest.er1
36855   ac_status=$?
36856   grep -v '^ *+' conftest.er1 >conftest.err
36857   rm -f conftest.er1
36858   cat conftest.err >&5
36859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36860   (exit $ac_status); } && {
36861          test -z "$ac_c_werror_flag" ||
36862          test ! -s conftest.err
36863        } && test -s conftest.$ac_objext; then
36864   ac_hi=-1 ac_mid=-1
36865   while :; do
36866     cat >conftest.$ac_ext <<_ACEOF
36867 /* confdefs.h.  */
36868 _ACEOF
36869 cat confdefs.h >>conftest.$ac_ext
36870 cat >>conftest.$ac_ext <<_ACEOF
36871 /* end confdefs.h.  */
36872 $ac_includes_default
36873    typedef long long int ac__type_sizeof_;
36874 int
36875 main ()
36876 {
36877 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
36878 test_array [0] = 0
36879
36880   ;
36881   return 0;
36882 }
36883 _ACEOF
36884 rm -f conftest.$ac_objext
36885 if { (ac_try="$ac_compile"
36886 case "(($ac_try" in
36887   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36888   *) ac_try_echo=$ac_try;;
36889 esac
36890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36891   (eval "$ac_compile") 2>conftest.er1
36892   ac_status=$?
36893   grep -v '^ *+' conftest.er1 >conftest.err
36894   rm -f conftest.er1
36895   cat conftest.err >&5
36896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36897   (exit $ac_status); } && {
36898          test -z "$ac_c_werror_flag" ||
36899          test ! -s conftest.err
36900        } && test -s conftest.$ac_objext; then
36901   ac_lo=$ac_mid; break
36902 else
36903   echo "$as_me: failed program was:" >&5
36904 sed 's/^/| /' conftest.$ac_ext >&5
36905
36906         ac_hi=`expr '(' $ac_mid ')' - 1`
36907                         if test $ac_mid -le $ac_hi; then
36908                           ac_lo= ac_hi=
36909                           break
36910                         fi
36911                         ac_mid=`expr 2 '*' $ac_mid`
36912 fi
36913
36914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36915   done
36916 else
36917   echo "$as_me: failed program was:" >&5
36918 sed 's/^/| /' conftest.$ac_ext >&5
36919
36920         ac_lo= ac_hi=
36921 fi
36922
36923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36924 fi
36925
36926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36927 # Binary search between lo and hi bounds.
36928 while test "x$ac_lo" != "x$ac_hi"; do
36929   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
36930   cat >conftest.$ac_ext <<_ACEOF
36931 /* confdefs.h.  */
36932 _ACEOF
36933 cat confdefs.h >>conftest.$ac_ext
36934 cat >>conftest.$ac_ext <<_ACEOF
36935 /* end confdefs.h.  */
36936 $ac_includes_default
36937    typedef long long int ac__type_sizeof_;
36938 int
36939 main ()
36940 {
36941 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36942 test_array [0] = 0
36943
36944   ;
36945   return 0;
36946 }
36947 _ACEOF
36948 rm -f conftest.$ac_objext
36949 if { (ac_try="$ac_compile"
36950 case "(($ac_try" in
36951   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36952   *) ac_try_echo=$ac_try;;
36953 esac
36954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36955   (eval "$ac_compile") 2>conftest.er1
36956   ac_status=$?
36957   grep -v '^ *+' conftest.er1 >conftest.err
36958   rm -f conftest.er1
36959   cat conftest.err >&5
36960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36961   (exit $ac_status); } && {
36962          test -z "$ac_c_werror_flag" ||
36963          test ! -s conftest.err
36964        } && test -s conftest.$ac_objext; then
36965   ac_hi=$ac_mid
36966 else
36967   echo "$as_me: failed program was:" >&5
36968 sed 's/^/| /' conftest.$ac_ext >&5
36969
36970         ac_lo=`expr '(' $ac_mid ')' + 1`
36971 fi
36972
36973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36974 done
36975 case $ac_lo in
36976 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
36977 '') if test "$ac_cv_type_long_long_int" = yes; then
36978      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
36979 See \`config.log' for more details." >&5
36980 echo "$as_me: error: cannot compute sizeof (long long int)
36981 See \`config.log' for more details." >&2;}
36982    { (exit 77); exit 77; }; }
36983    else
36984      ac_cv_sizeof_long_long_int=0
36985    fi ;;
36986 esac
36987 else
36988   cat >conftest.$ac_ext <<_ACEOF
36989 /* confdefs.h.  */
36990 _ACEOF
36991 cat confdefs.h >>conftest.$ac_ext
36992 cat >>conftest.$ac_ext <<_ACEOF
36993 /* end confdefs.h.  */
36994 $ac_includes_default
36995    typedef long long int ac__type_sizeof_;
36996 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
36997 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
36998 #include <stdio.h>
36999 #include <stdlib.h>
37000 int
37001 main ()
37002 {
37003
37004   FILE *f = fopen ("conftest.val", "w");
37005   if (! f)
37006     return 1;
37007   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
37008     {
37009       long int i = longval ();
37010       if (i != ((long int) (sizeof (ac__type_sizeof_))))
37011         return 1;
37012       fprintf (f, "%ld\n", i);
37013     }
37014   else
37015     {
37016       unsigned long int i = ulongval ();
37017       if (i != ((long int) (sizeof (ac__type_sizeof_))))
37018         return 1;
37019       fprintf (f, "%lu\n", i);
37020     }
37021   return ferror (f) || fclose (f) != 0;
37022
37023   ;
37024   return 0;
37025 }
37026 _ACEOF
37027 rm -f conftest$ac_exeext
37028 if { (ac_try="$ac_link"
37029 case "(($ac_try" in
37030   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37031   *) ac_try_echo=$ac_try;;
37032 esac
37033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37034   (eval "$ac_link") 2>&5
37035   ac_status=$?
37036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37037   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
37038   { (case "(($ac_try" in
37039   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37040   *) ac_try_echo=$ac_try;;
37041 esac
37042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37043   (eval "$ac_try") 2>&5
37044   ac_status=$?
37045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37046   (exit $ac_status); }; }; then
37047   ac_cv_sizeof_long_long_int=`cat conftest.val`
37048 else
37049   echo "$as_me: program exited with status $ac_status" >&5
37050 echo "$as_me: failed program was:" >&5
37051 sed 's/^/| /' conftest.$ac_ext >&5
37052
37053 ( exit $ac_status )
37054 if test "$ac_cv_type_long_long_int" = yes; then
37055      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
37056 See \`config.log' for more details." >&5
37057 echo "$as_me: error: cannot compute sizeof (long long int)
37058 See \`config.log' for more details." >&2;}
37059    { (exit 77); exit 77; }; }
37060    else
37061      ac_cv_sizeof_long_long_int=0
37062    fi
37063 fi
37064 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
37065 fi
37066 rm -f conftest.val
37067 fi
37068 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
37069 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6; }
37070
37071
37072
37073 cat >>confdefs.h <<_ACEOF
37074 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
37075 _ACEOF
37076
37077
37078 { echo "$as_me:$LINENO: checking for int *" >&5
37079 echo $ECHO_N "checking for int *... $ECHO_C" >&6; }
37080 if test "${ac_cv_type_int_p+set}" = set; then
37081   echo $ECHO_N "(cached) $ECHO_C" >&6
37082 else
37083   cat >conftest.$ac_ext <<_ACEOF
37084 /* confdefs.h.  */
37085 _ACEOF
37086 cat confdefs.h >>conftest.$ac_ext
37087 cat >>conftest.$ac_ext <<_ACEOF
37088 /* end confdefs.h.  */
37089 $ac_includes_default
37090 typedef int * ac__type_new_;
37091 int
37092 main ()
37093 {
37094 if ((ac__type_new_ *) 0)
37095   return 0;
37096 if (sizeof (ac__type_new_))
37097   return 0;
37098   ;
37099   return 0;
37100 }
37101 _ACEOF
37102 rm -f conftest.$ac_objext
37103 if { (ac_try="$ac_compile"
37104 case "(($ac_try" in
37105   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37106   *) ac_try_echo=$ac_try;;
37107 esac
37108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37109   (eval "$ac_compile") 2>conftest.er1
37110   ac_status=$?
37111   grep -v '^ *+' conftest.er1 >conftest.err
37112   rm -f conftest.er1
37113   cat conftest.err >&5
37114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37115   (exit $ac_status); } && {
37116          test -z "$ac_c_werror_flag" ||
37117          test ! -s conftest.err
37118        } && test -s conftest.$ac_objext; then
37119   ac_cv_type_int_p=yes
37120 else
37121   echo "$as_me: failed program was:" >&5
37122 sed 's/^/| /' conftest.$ac_ext >&5
37123
37124         ac_cv_type_int_p=no
37125 fi
37126
37127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37128 fi
37129 { echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
37130 echo "${ECHO_T}$ac_cv_type_int_p" >&6; }
37131
37132 # The cast to long int works around a bug in the HP C Compiler
37133 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
37134 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
37135 # This bug is HP SR number 8606223364.
37136 { echo "$as_me:$LINENO: checking size of int *" >&5
37137 echo $ECHO_N "checking size of int *... $ECHO_C" >&6; }
37138 if test "${ac_cv_sizeof_int_p+set}" = set; then
37139   echo $ECHO_N "(cached) $ECHO_C" >&6
37140 else
37141   if test "$cross_compiling" = yes; then
37142   # Depending upon the size, compute the lo and hi bounds.
37143 cat >conftest.$ac_ext <<_ACEOF
37144 /* confdefs.h.  */
37145 _ACEOF
37146 cat confdefs.h >>conftest.$ac_ext
37147 cat >>conftest.$ac_ext <<_ACEOF
37148 /* end confdefs.h.  */
37149 $ac_includes_default
37150    typedef int * ac__type_sizeof_;
37151 int
37152 main ()
37153 {
37154 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
37155 test_array [0] = 0
37156
37157   ;
37158   return 0;
37159 }
37160 _ACEOF
37161 rm -f conftest.$ac_objext
37162 if { (ac_try="$ac_compile"
37163 case "(($ac_try" in
37164   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37165   *) ac_try_echo=$ac_try;;
37166 esac
37167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37168   (eval "$ac_compile") 2>conftest.er1
37169   ac_status=$?
37170   grep -v '^ *+' conftest.er1 >conftest.err
37171   rm -f conftest.er1
37172   cat conftest.err >&5
37173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37174   (exit $ac_status); } && {
37175          test -z "$ac_c_werror_flag" ||
37176          test ! -s conftest.err
37177        } && test -s conftest.$ac_objext; then
37178   ac_lo=0 ac_mid=0
37179   while :; do
37180     cat >conftest.$ac_ext <<_ACEOF
37181 /* confdefs.h.  */
37182 _ACEOF
37183 cat confdefs.h >>conftest.$ac_ext
37184 cat >>conftest.$ac_ext <<_ACEOF
37185 /* end confdefs.h.  */
37186 $ac_includes_default
37187    typedef int * ac__type_sizeof_;
37188 int
37189 main ()
37190 {
37191 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
37192 test_array [0] = 0
37193
37194   ;
37195   return 0;
37196 }
37197 _ACEOF
37198 rm -f conftest.$ac_objext
37199 if { (ac_try="$ac_compile"
37200 case "(($ac_try" in
37201   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37202   *) ac_try_echo=$ac_try;;
37203 esac
37204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37205   (eval "$ac_compile") 2>conftest.er1
37206   ac_status=$?
37207   grep -v '^ *+' conftest.er1 >conftest.err
37208   rm -f conftest.er1
37209   cat conftest.err >&5
37210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37211   (exit $ac_status); } && {
37212          test -z "$ac_c_werror_flag" ||
37213          test ! -s conftest.err
37214        } && test -s conftest.$ac_objext; then
37215   ac_hi=$ac_mid; break
37216 else
37217   echo "$as_me: failed program was:" >&5
37218 sed 's/^/| /' conftest.$ac_ext >&5
37219
37220         ac_lo=`expr $ac_mid + 1`
37221                         if test $ac_lo -le $ac_mid; then
37222                           ac_lo= ac_hi=
37223                           break
37224                         fi
37225                         ac_mid=`expr 2 '*' $ac_mid + 1`
37226 fi
37227
37228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37229   done
37230 else
37231   echo "$as_me: failed program was:" >&5
37232 sed 's/^/| /' conftest.$ac_ext >&5
37233
37234         cat >conftest.$ac_ext <<_ACEOF
37235 /* confdefs.h.  */
37236 _ACEOF
37237 cat confdefs.h >>conftest.$ac_ext
37238 cat >>conftest.$ac_ext <<_ACEOF
37239 /* end confdefs.h.  */
37240 $ac_includes_default
37241    typedef int * ac__type_sizeof_;
37242 int
37243 main ()
37244 {
37245 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
37246 test_array [0] = 0
37247
37248   ;
37249   return 0;
37250 }
37251 _ACEOF
37252 rm -f conftest.$ac_objext
37253 if { (ac_try="$ac_compile"
37254 case "(($ac_try" in
37255   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37256   *) ac_try_echo=$ac_try;;
37257 esac
37258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37259   (eval "$ac_compile") 2>conftest.er1
37260   ac_status=$?
37261   grep -v '^ *+' conftest.er1 >conftest.err
37262   rm -f conftest.er1
37263   cat conftest.err >&5
37264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37265   (exit $ac_status); } && {
37266          test -z "$ac_c_werror_flag" ||
37267          test ! -s conftest.err
37268        } && test -s conftest.$ac_objext; then
37269   ac_hi=-1 ac_mid=-1
37270   while :; do
37271     cat >conftest.$ac_ext <<_ACEOF
37272 /* confdefs.h.  */
37273 _ACEOF
37274 cat confdefs.h >>conftest.$ac_ext
37275 cat >>conftest.$ac_ext <<_ACEOF
37276 /* end confdefs.h.  */
37277 $ac_includes_default
37278    typedef int * ac__type_sizeof_;
37279 int
37280 main ()
37281 {
37282 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
37283 test_array [0] = 0
37284
37285   ;
37286   return 0;
37287 }
37288 _ACEOF
37289 rm -f conftest.$ac_objext
37290 if { (ac_try="$ac_compile"
37291 case "(($ac_try" in
37292   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37293   *) ac_try_echo=$ac_try;;
37294 esac
37295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37296   (eval "$ac_compile") 2>conftest.er1
37297   ac_status=$?
37298   grep -v '^ *+' conftest.er1 >conftest.err
37299   rm -f conftest.er1
37300   cat conftest.err >&5
37301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37302   (exit $ac_status); } && {
37303          test -z "$ac_c_werror_flag" ||
37304          test ! -s conftest.err
37305        } && test -s conftest.$ac_objext; then
37306   ac_lo=$ac_mid; break
37307 else
37308   echo "$as_me: failed program was:" >&5
37309 sed 's/^/| /' conftest.$ac_ext >&5
37310
37311         ac_hi=`expr '(' $ac_mid ')' - 1`
37312                         if test $ac_mid -le $ac_hi; then
37313                           ac_lo= ac_hi=
37314                           break
37315                         fi
37316                         ac_mid=`expr 2 '*' $ac_mid`
37317 fi
37318
37319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37320   done
37321 else
37322   echo "$as_me: failed program was:" >&5
37323 sed 's/^/| /' conftest.$ac_ext >&5
37324
37325         ac_lo= ac_hi=
37326 fi
37327
37328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37329 fi
37330
37331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37332 # Binary search between lo and hi bounds.
37333 while test "x$ac_lo" != "x$ac_hi"; do
37334   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
37335   cat >conftest.$ac_ext <<_ACEOF
37336 /* confdefs.h.  */
37337 _ACEOF
37338 cat confdefs.h >>conftest.$ac_ext
37339 cat >>conftest.$ac_ext <<_ACEOF
37340 /* end confdefs.h.  */
37341 $ac_includes_default
37342    typedef int * ac__type_sizeof_;
37343 int
37344 main ()
37345 {
37346 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
37347 test_array [0] = 0
37348
37349   ;
37350   return 0;
37351 }
37352 _ACEOF
37353 rm -f conftest.$ac_objext
37354 if { (ac_try="$ac_compile"
37355 case "(($ac_try" in
37356   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37357   *) ac_try_echo=$ac_try;;
37358 esac
37359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37360   (eval "$ac_compile") 2>conftest.er1
37361   ac_status=$?
37362   grep -v '^ *+' conftest.er1 >conftest.err
37363   rm -f conftest.er1
37364   cat conftest.err >&5
37365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37366   (exit $ac_status); } && {
37367          test -z "$ac_c_werror_flag" ||
37368          test ! -s conftest.err
37369        } && test -s conftest.$ac_objext; then
37370   ac_hi=$ac_mid
37371 else
37372   echo "$as_me: failed program was:" >&5
37373 sed 's/^/| /' conftest.$ac_ext >&5
37374
37375         ac_lo=`expr '(' $ac_mid ')' + 1`
37376 fi
37377
37378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37379 done
37380 case $ac_lo in
37381 ?*) ac_cv_sizeof_int_p=$ac_lo;;
37382 '') if test "$ac_cv_type_int_p" = yes; then
37383      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
37384 See \`config.log' for more details." >&5
37385 echo "$as_me: error: cannot compute sizeof (int *)
37386 See \`config.log' for more details." >&2;}
37387    { (exit 77); exit 77; }; }
37388    else
37389      ac_cv_sizeof_int_p=0
37390    fi ;;
37391 esac
37392 else
37393   cat >conftest.$ac_ext <<_ACEOF
37394 /* confdefs.h.  */
37395 _ACEOF
37396 cat confdefs.h >>conftest.$ac_ext
37397 cat >>conftest.$ac_ext <<_ACEOF
37398 /* end confdefs.h.  */
37399 $ac_includes_default
37400    typedef int * ac__type_sizeof_;
37401 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
37402 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
37403 #include <stdio.h>
37404 #include <stdlib.h>
37405 int
37406 main ()
37407 {
37408
37409   FILE *f = fopen ("conftest.val", "w");
37410   if (! f)
37411     return 1;
37412   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
37413     {
37414       long int i = longval ();
37415       if (i != ((long int) (sizeof (ac__type_sizeof_))))
37416         return 1;
37417       fprintf (f, "%ld\n", i);
37418     }
37419   else
37420     {
37421       unsigned long int i = ulongval ();
37422       if (i != ((long int) (sizeof (ac__type_sizeof_))))
37423         return 1;
37424       fprintf (f, "%lu\n", i);
37425     }
37426   return ferror (f) || fclose (f) != 0;
37427
37428   ;
37429   return 0;
37430 }
37431 _ACEOF
37432 rm -f conftest$ac_exeext
37433 if { (ac_try="$ac_link"
37434 case "(($ac_try" in
37435   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37436   *) ac_try_echo=$ac_try;;
37437 esac
37438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37439   (eval "$ac_link") 2>&5
37440   ac_status=$?
37441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37442   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
37443   { (case "(($ac_try" in
37444   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37445   *) ac_try_echo=$ac_try;;
37446 esac
37447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37448   (eval "$ac_try") 2>&5
37449   ac_status=$?
37450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37451   (exit $ac_status); }; }; then
37452   ac_cv_sizeof_int_p=`cat conftest.val`
37453 else
37454   echo "$as_me: program exited with status $ac_status" >&5
37455 echo "$as_me: failed program was:" >&5
37456 sed 's/^/| /' conftest.$ac_ext >&5
37457
37458 ( exit $ac_status )
37459 if test "$ac_cv_type_int_p" = yes; then
37460      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
37461 See \`config.log' for more details." >&5
37462 echo "$as_me: error: cannot compute sizeof (int *)
37463 See \`config.log' for more details." >&2;}
37464    { (exit 77); exit 77; }; }
37465    else
37466      ac_cv_sizeof_int_p=0
37467    fi
37468 fi
37469 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
37470 fi
37471 rm -f conftest.val
37472 fi
37473 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
37474 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6; }
37475
37476
37477
37478 cat >>confdefs.h <<_ACEOF
37479 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
37480 _ACEOF
37481
37482
37483
37484 { echo "$as_me:$LINENO: checking for u_int type" >&5
37485 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6; }
37486 if test "${ac_cv_have_u_int+set}" = set; then
37487   echo $ECHO_N "(cached) $ECHO_C" >&6
37488 else
37489
37490        cat >conftest.$ac_ext <<_ACEOF
37491 /* confdefs.h.  */
37492 _ACEOF
37493 cat confdefs.h >>conftest.$ac_ext
37494 cat >>conftest.$ac_ext <<_ACEOF
37495 /* end confdefs.h.  */
37496
37497               #include <sys/types.h>
37498
37499 int
37500 main ()
37501 {
37502
37503               u_int a; a = 1;
37504
37505   ;
37506   return 0;
37507 }
37508 _ACEOF
37509 rm -f conftest.$ac_objext
37510 if { (ac_try="$ac_compile"
37511 case "(($ac_try" in
37512   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37513   *) ac_try_echo=$ac_try;;
37514 esac
37515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37516   (eval "$ac_compile") 2>conftest.er1
37517   ac_status=$?
37518   grep -v '^ *+' conftest.er1 >conftest.err
37519   rm -f conftest.er1
37520   cat conftest.err >&5
37521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37522   (exit $ac_status); } && {
37523          test -z "$ac_c_werror_flag" ||
37524          test ! -s conftest.err
37525        } && test -s conftest.$ac_objext; then
37526
37527               ac_cv_have_u_int="yes"
37528
37529 else
37530   echo "$as_me: failed program was:" >&5
37531 sed 's/^/| /' conftest.$ac_ext >&5
37532
37533
37534               ac_cv_have_u_int="no"
37535
37536
37537 fi
37538
37539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37540
37541
37542 fi
37543 { echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
37544 echo "${ECHO_T}$ac_cv_have_u_int" >&6; }
37545 if test "x$ac_cv_have_u_int" = "xyes" ; then
37546    cat >>confdefs.h <<\_ACEOF
37547 #define HAVE_U_INT 1
37548 _ACEOF
37549
37550    have_u_int=1
37551 fi
37552
37553 { echo "$as_me:$LINENO: checking for intmax_t type" >&5
37554 echo $ECHO_N "checking for intmax_t type... $ECHO_C" >&6; }
37555 if test "${ac_cv_have_intmax_t+set}" = set; then
37556   echo $ECHO_N "(cached) $ECHO_C" >&6
37557 else
37558
37559        cat >conftest.$ac_ext <<_ACEOF
37560 /* confdefs.h.  */
37561 _ACEOF
37562 cat confdefs.h >>conftest.$ac_ext
37563 cat >>conftest.$ac_ext <<_ACEOF
37564 /* end confdefs.h.  */
37565
37566               #include <sys/types.h>
37567
37568 int
37569 main ()
37570 {
37571
37572               intmax_t a; a = 1;
37573
37574   ;
37575   return 0;
37576 }
37577 _ACEOF
37578 rm -f conftest.$ac_objext
37579 if { (ac_try="$ac_compile"
37580 case "(($ac_try" in
37581   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37582   *) ac_try_echo=$ac_try;;
37583 esac
37584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37585   (eval "$ac_compile") 2>conftest.er1
37586   ac_status=$?
37587   grep -v '^ *+' conftest.er1 >conftest.err
37588   rm -f conftest.er1
37589   cat conftest.err >&5
37590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37591   (exit $ac_status); } && {
37592          test -z "$ac_c_werror_flag" ||
37593          test ! -s conftest.err
37594        } && test -s conftest.$ac_objext; then
37595
37596               ac_cv_have_intmax_t="yes"
37597
37598 else
37599   echo "$as_me: failed program was:" >&5
37600 sed 's/^/| /' conftest.$ac_ext >&5
37601
37602
37603               cat >conftest.$ac_ext <<_ACEOF
37604 /* confdefs.h.  */
37605 _ACEOF
37606 cat confdefs.h >>conftest.$ac_ext
37607 cat >>conftest.$ac_ext <<_ACEOF
37608 /* end confdefs.h.  */
37609
37610                      #include <stdint.h>
37611
37612 int
37613 main ()
37614 {
37615
37616                      intmax_t a; a = 1;
37617
37618   ;
37619   return 0;
37620 }
37621 _ACEOF
37622 rm -f conftest.$ac_objext
37623 if { (ac_try="$ac_compile"
37624 case "(($ac_try" in
37625   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37626   *) ac_try_echo=$ac_try;;
37627 esac
37628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37629   (eval "$ac_compile") 2>conftest.er1
37630   ac_status=$?
37631   grep -v '^ *+' conftest.er1 >conftest.err
37632   rm -f conftest.er1
37633   cat conftest.err >&5
37634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37635   (exit $ac_status); } && {
37636          test -z "$ac_c_werror_flag" ||
37637          test ! -s conftest.err
37638        } && test -s conftest.$ac_objext; then
37639
37640                      ac_cv_have_intmax_t="yes"
37641
37642 else
37643   echo "$as_me: failed program was:" >&5
37644 sed 's/^/| /' conftest.$ac_ext >&5
37645
37646
37647                      ac_cv_have_intmax_t="no"
37648
37649
37650 fi
37651
37652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37653
37654
37655 fi
37656
37657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37658
37659
37660 fi
37661 { echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
37662 echo "${ECHO_T}$ac_cv_have_intmax_t" >&6; }
37663 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
37664    cat >>confdefs.h <<\_ACEOF
37665 #define HAVE_INTMAX_T 1
37666 _ACEOF
37667
37668    have_intmax_t=1
37669 fi
37670
37671 { echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
37672 echo $ECHO_N "checking for u_intmax_t type... $ECHO_C" >&6; }
37673 if test "${ac_cv_have_u_intmax_t+set}" = set; then
37674   echo $ECHO_N "(cached) $ECHO_C" >&6
37675 else
37676
37677        cat >conftest.$ac_ext <<_ACEOF
37678 /* confdefs.h.  */
37679 _ACEOF
37680 cat confdefs.h >>conftest.$ac_ext
37681 cat >>conftest.$ac_ext <<_ACEOF
37682 /* end confdefs.h.  */
37683
37684               #include <sys/types.h>
37685
37686 int
37687 main ()
37688 {
37689
37690               u_intmax_t a; a = 1;
37691
37692   ;
37693   return 0;
37694 }
37695 _ACEOF
37696 rm -f conftest.$ac_objext
37697 if { (ac_try="$ac_compile"
37698 case "(($ac_try" in
37699   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37700   *) ac_try_echo=$ac_try;;
37701 esac
37702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37703   (eval "$ac_compile") 2>conftest.er1
37704   ac_status=$?
37705   grep -v '^ *+' conftest.er1 >conftest.err
37706   rm -f conftest.er1
37707   cat conftest.err >&5
37708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37709   (exit $ac_status); } && {
37710          test -z "$ac_c_werror_flag" ||
37711          test ! -s conftest.err
37712        } && test -s conftest.$ac_objext; then
37713
37714               ac_cv_have_u_intmax_t="yes"
37715
37716 else
37717   echo "$as_me: failed program was:" >&5
37718 sed 's/^/| /' conftest.$ac_ext >&5
37719
37720
37721               cat >conftest.$ac_ext <<_ACEOF
37722 /* confdefs.h.  */
37723 _ACEOF
37724 cat confdefs.h >>conftest.$ac_ext
37725 cat >>conftest.$ac_ext <<_ACEOF
37726 /* end confdefs.h.  */
37727
37728                      #include <stdint.h>
37729
37730 int
37731 main ()
37732 {
37733
37734                     u_intmax_t a; a = 1;
37735
37736   ;
37737   return 0;
37738 }
37739 _ACEOF
37740 rm -f conftest.$ac_objext
37741 if { (ac_try="$ac_compile"
37742 case "(($ac_try" in
37743   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37744   *) ac_try_echo=$ac_try;;
37745 esac
37746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37747   (eval "$ac_compile") 2>conftest.er1
37748   ac_status=$?
37749   grep -v '^ *+' conftest.er1 >conftest.err
37750   rm -f conftest.er1
37751   cat conftest.err >&5
37752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37753   (exit $ac_status); } && {
37754          test -z "$ac_c_werror_flag" ||
37755          test ! -s conftest.err
37756        } && test -s conftest.$ac_objext; then
37757
37758                     ac_cv_have_u_intmax_t="yes"
37759
37760 else
37761   echo "$as_me: failed program was:" >&5
37762 sed 's/^/| /' conftest.$ac_ext >&5
37763
37764
37765                     ac_cv_have_u_intmax_t="no"
37766
37767
37768 fi
37769
37770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37771
37772
37773 fi
37774
37775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37776
37777
37778 fi
37779 { echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
37780 echo "${ECHO_T}$ac_cv_have_u_intmax_t" >&6; }
37781 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
37782    cat >>confdefs.h <<\_ACEOF
37783 #define HAVE_U_INTMAX_T 1
37784 _ACEOF
37785
37786    have_u_intmax_t=1
37787 fi
37788
37789 { echo "$as_me:$LINENO: checking for intXX_t types" >&5
37790 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6; }
37791 if test "${ac_cv_have_intxx_t+set}" = set; then
37792   echo $ECHO_N "(cached) $ECHO_C" >&6
37793 else
37794
37795        cat >conftest.$ac_ext <<_ACEOF
37796 /* confdefs.h.  */
37797 _ACEOF
37798 cat confdefs.h >>conftest.$ac_ext
37799 cat >>conftest.$ac_ext <<_ACEOF
37800 /* end confdefs.h.  */
37801
37802               #include <sys/types.h>
37803
37804 int
37805 main ()
37806 {
37807
37808               int8_t a; int16_t b; int32_t c; a = b = c = 1;
37809
37810   ;
37811   return 0;
37812 }
37813 _ACEOF
37814 rm -f conftest.$ac_objext
37815 if { (ac_try="$ac_compile"
37816 case "(($ac_try" in
37817   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37818   *) ac_try_echo=$ac_try;;
37819 esac
37820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37821   (eval "$ac_compile") 2>conftest.er1
37822   ac_status=$?
37823   grep -v '^ *+' conftest.er1 >conftest.err
37824   rm -f conftest.er1
37825   cat conftest.err >&5
37826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37827   (exit $ac_status); } && {
37828          test -z "$ac_c_werror_flag" ||
37829          test ! -s conftest.err
37830        } && test -s conftest.$ac_objext; then
37831
37832               ac_cv_have_intxx_t="yes"
37833
37834 else
37835   echo "$as_me: failed program was:" >&5
37836 sed 's/^/| /' conftest.$ac_ext >&5
37837
37838
37839               ac_cv_have_intxx_t="no"
37840
37841
37842 fi
37843
37844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37845
37846
37847 fi
37848 { echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
37849 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6; }
37850 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
37851    cat >>confdefs.h <<\_ACEOF
37852 #define HAVE_INTXX_T 1
37853 _ACEOF
37854
37855    have_intxx_t=1
37856 fi
37857
37858 { echo "$as_me:$LINENO: checking for int64_t type" >&5
37859 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6; }
37860 if test "${ac_cv_have_int64_t+set}" = set; then
37861   echo $ECHO_N "(cached) $ECHO_C" >&6
37862 else
37863
37864        cat >conftest.$ac_ext <<_ACEOF
37865 /* confdefs.h.  */
37866 _ACEOF
37867 cat confdefs.h >>conftest.$ac_ext
37868 cat >>conftest.$ac_ext <<_ACEOF
37869 /* end confdefs.h.  */
37870
37871               #include <sys/types.h>
37872
37873 int
37874 main ()
37875 {
37876
37877               int64_t a; a = 1;
37878
37879   ;
37880   return 0;
37881 }
37882 _ACEOF
37883 rm -f conftest.$ac_objext
37884 if { (ac_try="$ac_compile"
37885 case "(($ac_try" in
37886   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37887   *) ac_try_echo=$ac_try;;
37888 esac
37889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37890   (eval "$ac_compile") 2>conftest.er1
37891   ac_status=$?
37892   grep -v '^ *+' conftest.er1 >conftest.err
37893   rm -f conftest.er1
37894   cat conftest.err >&5
37895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37896   (exit $ac_status); } && {
37897          test -z "$ac_c_werror_flag" ||
37898          test ! -s conftest.err
37899        } && test -s conftest.$ac_objext; then
37900
37901               ac_cv_have_int64_t="yes"
37902
37903 else
37904   echo "$as_me: failed program was:" >&5
37905 sed 's/^/| /' conftest.$ac_ext >&5
37906
37907
37908               ac_cv_have_int64_t="no"
37909
37910
37911 fi
37912
37913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37914
37915
37916 fi
37917 { echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
37918 echo "${ECHO_T}$ac_cv_have_int64_t" >&6; }
37919 if test "x$ac_cv_have_int64_t" = "xyes" ; then
37920    cat >>confdefs.h <<\_ACEOF
37921 #define HAVE_INT64_T 1
37922 _ACEOF
37923
37924    have_int64_t=1
37925 fi
37926
37927 { echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
37928 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6; }
37929 if test "${ac_cv_have_u_intxx_t+set}" = set; then
37930   echo $ECHO_N "(cached) $ECHO_C" >&6
37931 else
37932
37933        cat >conftest.$ac_ext <<_ACEOF
37934 /* confdefs.h.  */
37935 _ACEOF
37936 cat confdefs.h >>conftest.$ac_ext
37937 cat >>conftest.$ac_ext <<_ACEOF
37938 /* end confdefs.h.  */
37939
37940               #include <sys/types.h>
37941
37942 int
37943 main ()
37944 {
37945
37946               u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
37947
37948   ;
37949   return 0;
37950 }
37951 _ACEOF
37952 rm -f conftest.$ac_objext
37953 if { (ac_try="$ac_compile"
37954 case "(($ac_try" in
37955   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37956   *) ac_try_echo=$ac_try;;
37957 esac
37958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37959   (eval "$ac_compile") 2>conftest.er1
37960   ac_status=$?
37961   grep -v '^ *+' conftest.er1 >conftest.err
37962   rm -f conftest.er1
37963   cat conftest.err >&5
37964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37965   (exit $ac_status); } && {
37966          test -z "$ac_c_werror_flag" ||
37967          test ! -s conftest.err
37968        } && test -s conftest.$ac_objext; then
37969
37970              ac_cv_have_u_intxx_t="yes"
37971
37972 else
37973   echo "$as_me: failed program was:" >&5
37974 sed 's/^/| /' conftest.$ac_ext >&5
37975
37976
37977              ac_cv_have_u_intxx_t="no"
37978
37979
37980 fi
37981
37982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37983
37984
37985 fi
37986 { echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
37987 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6; }
37988 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
37989    cat >>confdefs.h <<\_ACEOF
37990 #define HAVE_U_INTXX_T 1
37991 _ACEOF
37992
37993    have_u_intxx_t=1
37994 fi
37995
37996 { echo "$as_me:$LINENO: checking for u_int64_t types" >&5
37997 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6; }
37998 if test "${ac_cv_have_u_int64_t+set}" = set; then
37999   echo $ECHO_N "(cached) $ECHO_C" >&6
38000 else
38001
38002        cat >conftest.$ac_ext <<_ACEOF
38003 /* confdefs.h.  */
38004 _ACEOF
38005 cat confdefs.h >>conftest.$ac_ext
38006 cat >>conftest.$ac_ext <<_ACEOF
38007 /* end confdefs.h.  */
38008
38009               #include <sys/types.h>
38010
38011 int
38012 main ()
38013 {
38014
38015               u_int64_t a; a = 1;
38016
38017   ;
38018   return 0;
38019 }
38020 _ACEOF
38021 rm -f conftest.$ac_objext
38022 if { (ac_try="$ac_compile"
38023 case "(($ac_try" in
38024   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38025   *) ac_try_echo=$ac_try;;
38026 esac
38027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38028   (eval "$ac_compile") 2>conftest.er1
38029   ac_status=$?
38030   grep -v '^ *+' conftest.er1 >conftest.err
38031   rm -f conftest.er1
38032   cat conftest.err >&5
38033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38034   (exit $ac_status); } && {
38035          test -z "$ac_c_werror_flag" ||
38036          test ! -s conftest.err
38037        } && test -s conftest.$ac_objext; then
38038
38039              ac_cv_have_u_int64_t="yes"
38040
38041 else
38042   echo "$as_me: failed program was:" >&5
38043 sed 's/^/| /' conftest.$ac_ext >&5
38044
38045
38046              ac_cv_have_u_int64_t="no"
38047
38048
38049 fi
38050
38051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38052
38053
38054 fi
38055 { echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
38056 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6; }
38057 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
38058    cat >>confdefs.h <<\_ACEOF
38059 #define HAVE_U_INT64_T 1
38060 _ACEOF
38061
38062    have_u_int64_t=1
38063 fi
38064
38065 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
38066     test "x$ac_cv_header_sys_bitypes_h" = "xyes")
38067 then
38068    { echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
38069 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6; }
38070    cat >conftest.$ac_ext <<_ACEOF
38071 /* confdefs.h.  */
38072 _ACEOF
38073 cat confdefs.h >>conftest.$ac_ext
38074 cat >>conftest.$ac_ext <<_ACEOF
38075 /* end confdefs.h.  */
38076
38077           #include <sys/bitypes.h>
38078
38079 int
38080 main ()
38081 {
38082
38083           int8_t a; int16_t b; int32_t c;
38084           u_int8_t e; u_int16_t f; u_int32_t g;
38085           a = b = c = e = f = g = 1;
38086
38087   ;
38088   return 0;
38089 }
38090 _ACEOF
38091 rm -f conftest.$ac_objext
38092 if { (ac_try="$ac_compile"
38093 case "(($ac_try" in
38094   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38095   *) ac_try_echo=$ac_try;;
38096 esac
38097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38098   (eval "$ac_compile") 2>conftest.er1
38099   ac_status=$?
38100   grep -v '^ *+' conftest.er1 >conftest.err
38101   rm -f conftest.er1
38102   cat conftest.err >&5
38103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38104   (exit $ac_status); } && {
38105          test -z "$ac_c_werror_flag" ||
38106          test ! -s conftest.err
38107        } && test -s conftest.$ac_objext; then
38108
38109           cat >>confdefs.h <<\_ACEOF
38110 #define HAVE_U_INTXX_T 1
38111 _ACEOF
38112
38113           cat >>confdefs.h <<\_ACEOF
38114 #define HAVE_INTXX_T 1
38115 _ACEOF
38116
38117           cat >>confdefs.h <<\_ACEOF
38118 #define HAVE_SYS_BITYPES_H 1
38119 _ACEOF
38120
38121           { echo "$as_me:$LINENO: result: yes" >&5
38122 echo "${ECHO_T}yes" >&6; }
38123
38124 else
38125   echo "$as_me: failed program was:" >&5
38126 sed 's/^/| /' conftest.$ac_ext >&5
38127
38128
38129           { echo "$as_me:$LINENO: result: no" >&5
38130 echo "${ECHO_T}no" >&6; }
38131
38132
38133 fi
38134
38135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38136 fi
38137
38138 if test -z "$have_u_intxx_t" ; then
38139    { echo "$as_me:$LINENO: checking for uintXX_t types" >&5
38140 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6; }
38141 if test "${ac_cv_have_uintxx_t+set}" = set; then
38142   echo $ECHO_N "(cached) $ECHO_C" >&6
38143 else
38144
38145           cat >conftest.$ac_ext <<_ACEOF
38146 /* confdefs.h.  */
38147 _ACEOF
38148 cat confdefs.h >>conftest.$ac_ext
38149 cat >>conftest.$ac_ext <<_ACEOF
38150 /* end confdefs.h.  */
38151
38152                  #include <sys/types.h>
38153
38154 int
38155 main ()
38156 {
38157
38158                  uint8_t a; uint16_t b;
38159                  uint32_t c; a = b = c = 1;
38160
38161   ;
38162   return 0;
38163 }
38164 _ACEOF
38165 rm -f conftest.$ac_objext
38166 if { (ac_try="$ac_compile"
38167 case "(($ac_try" in
38168   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38169   *) ac_try_echo=$ac_try;;
38170 esac
38171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38172   (eval "$ac_compile") 2>conftest.er1
38173   ac_status=$?
38174   grep -v '^ *+' conftest.er1 >conftest.err
38175   rm -f conftest.er1
38176   cat conftest.err >&5
38177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38178   (exit $ac_status); } && {
38179          test -z "$ac_c_werror_flag" ||
38180          test ! -s conftest.err
38181        } && test -s conftest.$ac_objext; then
38182
38183                 ac_cv_have_uintxx_t="yes"
38184
38185 else
38186   echo "$as_me: failed program was:" >&5
38187 sed 's/^/| /' conftest.$ac_ext >&5
38188
38189
38190                 ac_cv_have_uintxx_t="no"
38191
38192
38193 fi
38194
38195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38196
38197
38198 fi
38199 { echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
38200 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6; }
38201    if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
38202       cat >>confdefs.h <<\_ACEOF
38203 #define HAVE_UINTXX_T 1
38204 _ACEOF
38205
38206    fi
38207 fi
38208
38209 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
38210     test "x$ac_cv_header_sys_bitypes_h" = "xyes")
38211 then
38212    { echo "$as_me:$LINENO: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
38213 echo $ECHO_N "checking for int64_t and u_int64_t types in sys/bitypes.h... $ECHO_C" >&6; }
38214    cat >conftest.$ac_ext <<_ACEOF
38215 /* confdefs.h.  */
38216 _ACEOF
38217 cat confdefs.h >>conftest.$ac_ext
38218 cat >>conftest.$ac_ext <<_ACEOF
38219 /* end confdefs.h.  */
38220
38221           #include <sys/bitypes.h>
38222
38223 int
38224 main ()
38225 {
38226
38227           int64_t a; u_int64_t b;
38228           a = b = 1;
38229
38230   ;
38231   return 0;
38232 }
38233 _ACEOF
38234 rm -f conftest.$ac_objext
38235 if { (ac_try="$ac_compile"
38236 case "(($ac_try" in
38237   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38238   *) ac_try_echo=$ac_try;;
38239 esac
38240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38241   (eval "$ac_compile") 2>conftest.er1
38242   ac_status=$?
38243   grep -v '^ *+' conftest.er1 >conftest.err
38244   rm -f conftest.er1
38245   cat conftest.err >&5
38246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38247   (exit $ac_status); } && {
38248          test -z "$ac_c_werror_flag" ||
38249          test ! -s conftest.err
38250        } && test -s conftest.$ac_objext; then
38251
38252           cat >>confdefs.h <<\_ACEOF
38253 #define HAVE_U_INT64_T 1
38254 _ACEOF
38255
38256           cat >>confdefs.h <<\_ACEOF
38257 #define HAVE_INT64_T 1
38258 _ACEOF
38259
38260           { echo "$as_me:$LINENO: result: yes" >&5
38261 echo "${ECHO_T}yes" >&6; }
38262
38263 else
38264   echo "$as_me: failed program was:" >&5
38265 sed 's/^/| /' conftest.$ac_ext >&5
38266
38267
38268           { echo "$as_me:$LINENO: result: no" >&5
38269 echo "${ECHO_T}no" >&6; }
38270
38271
38272 fi
38273
38274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38275 fi
38276
38277 if (test -z "$have_uintxx_t" && \
38278     test "x$ac_cv_header_sys_bitypes_h" = "xyes")
38279 then
38280    { echo "$as_me:$LINENO: checking for uintXX_t types in sys/bitypes.h" >&5
38281 echo $ECHO_N "checking for uintXX_t types in sys/bitypes.h... $ECHO_C" >&6; }
38282    cat >conftest.$ac_ext <<_ACEOF
38283 /* confdefs.h.  */
38284 _ACEOF
38285 cat confdefs.h >>conftest.$ac_ext
38286 cat >>conftest.$ac_ext <<_ACEOF
38287 /* end confdefs.h.  */
38288
38289           #include <sys/bitypes.h>
38290
38291 int
38292 main ()
38293 {
38294
38295           uint8_t a; uint16_t b;
38296           uint32_t c; a = b = c = 1;
38297
38298   ;
38299   return 0;
38300 }
38301 _ACEOF
38302 rm -f conftest.$ac_objext
38303 if { (ac_try="$ac_compile"
38304 case "(($ac_try" in
38305   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38306   *) ac_try_echo=$ac_try;;
38307 esac
38308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38309   (eval "$ac_compile") 2>conftest.er1
38310   ac_status=$?
38311   grep -v '^ *+' conftest.er1 >conftest.err
38312   rm -f conftest.er1
38313   cat conftest.err >&5
38314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38315   (exit $ac_status); } && {
38316          test -z "$ac_c_werror_flag" ||
38317          test ! -s conftest.err
38318        } && test -s conftest.$ac_objext; then
38319
38320           cat >>confdefs.h <<\_ACEOF
38321 #define HAVE_UINTXX_T 1
38322 _ACEOF
38323
38324           { echo "$as_me:$LINENO: result: yes" >&5
38325 echo "${ECHO_T}yes" >&6; }
38326
38327 else
38328   echo "$as_me: failed program was:" >&5
38329 sed 's/^/| /' conftest.$ac_ext >&5
38330
38331
38332           { echo "$as_me:$LINENO: result: no" >&5
38333 echo "${ECHO_T}no" >&6; }
38334
38335
38336 fi
38337
38338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38339 fi
38340
38341
38342
38343
38344
38345
38346
38347
38348
38349
38350
38351
38352
38353
38354 for ac_func in \
38355    fork \
38356    getcwd \
38357    gethostname \
38358    getpid \
38359    gettimeofday \
38360    setpgid \
38361    setpgrp \
38362    setsid \
38363    signal \
38364    strerror \
38365    strncmp \
38366    strncpy \
38367    vfprintf \
38368
38369 do
38370 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38371 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38372 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38373 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38374   echo $ECHO_N "(cached) $ECHO_C" >&6
38375 else
38376   cat >conftest.$ac_ext <<_ACEOF
38377 /* confdefs.h.  */
38378 _ACEOF
38379 cat confdefs.h >>conftest.$ac_ext
38380 cat >>conftest.$ac_ext <<_ACEOF
38381 /* end confdefs.h.  */
38382 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38383    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38384 #define $ac_func innocuous_$ac_func
38385
38386 /* System header to define __stub macros and hopefully few prototypes,
38387     which can conflict with char $ac_func (); below.
38388     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38389     <limits.h> exists even on freestanding compilers.  */
38390
38391 #ifdef __STDC__
38392 # include <limits.h>
38393 #else
38394 # include <assert.h>
38395 #endif
38396
38397 #undef $ac_func
38398
38399 /* Override any GCC internal prototype to avoid an error.
38400    Use char because int might match the return type of a GCC
38401    builtin and then its argument prototype would still apply.  */
38402 #ifdef __cplusplus
38403 extern "C"
38404 #endif
38405 char $ac_func ();
38406 /* The GNU C library defines this for functions which it implements
38407     to always fail with ENOSYS.  Some functions are actually named
38408     something starting with __ and the normal name is an alias.  */
38409 #if defined __stub_$ac_func || defined __stub___$ac_func
38410 choke me
38411 #endif
38412
38413 int
38414 main ()
38415 {
38416 return $ac_func ();
38417   ;
38418   return 0;
38419 }
38420 _ACEOF
38421 rm -f conftest.$ac_objext conftest$ac_exeext
38422 if { (ac_try="$ac_link"
38423 case "(($ac_try" in
38424   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38425   *) ac_try_echo=$ac_try;;
38426 esac
38427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38428   (eval "$ac_link") 2>conftest.er1
38429   ac_status=$?
38430   grep -v '^ *+' conftest.er1 >conftest.err
38431   rm -f conftest.er1
38432   cat conftest.err >&5
38433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38434   (exit $ac_status); } && {
38435          test -z "$ac_c_werror_flag" ||
38436          test ! -s conftest.err
38437        } && test -s conftest$ac_exeext &&
38438        $as_test_x conftest$ac_exeext; then
38439   eval "$as_ac_var=yes"
38440 else
38441   echo "$as_me: failed program was:" >&5
38442 sed 's/^/| /' conftest.$ac_ext >&5
38443
38444         eval "$as_ac_var=no"
38445 fi
38446
38447 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38448       conftest$ac_exeext conftest.$ac_ext
38449 fi
38450 ac_res=`eval echo '${'$as_ac_var'}'`
38451                { echo "$as_me:$LINENO: result: $ac_res" >&5
38452 echo "${ECHO_T}$ac_res" >&6; }
38453 if test `eval echo '${'$as_ac_var'}'` = yes; then
38454   cat >>confdefs.h <<_ACEOF
38455 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38456 _ACEOF
38457
38458 else
38459   echo 'configure: cannot find needed function.'; exit 1
38460
38461 fi
38462 done
38463
38464
38465
38466 for ac_func in fchdir
38467 do
38468 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38469 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38470 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38471 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38472   echo $ECHO_N "(cached) $ECHO_C" >&6
38473 else
38474   cat >conftest.$ac_ext <<_ACEOF
38475 /* confdefs.h.  */
38476 _ACEOF
38477 cat confdefs.h >>conftest.$ac_ext
38478 cat >>conftest.$ac_ext <<_ACEOF
38479 /* end confdefs.h.  */
38480 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38481    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38482 #define $ac_func innocuous_$ac_func
38483
38484 /* System header to define __stub macros and hopefully few prototypes,
38485     which can conflict with char $ac_func (); below.
38486     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38487     <limits.h> exists even on freestanding compilers.  */
38488
38489 #ifdef __STDC__
38490 # include <limits.h>
38491 #else
38492 # include <assert.h>
38493 #endif
38494
38495 #undef $ac_func
38496
38497 /* Override any GCC internal prototype to avoid an error.
38498    Use char because int might match the return type of a GCC
38499    builtin and then its argument prototype would still apply.  */
38500 #ifdef __cplusplus
38501 extern "C"
38502 #endif
38503 char $ac_func ();
38504 /* The GNU C library defines this for functions which it implements
38505     to always fail with ENOSYS.  Some functions are actually named
38506     something starting with __ and the normal name is an alias.  */
38507 #if defined __stub_$ac_func || defined __stub___$ac_func
38508 choke me
38509 #endif
38510
38511 int
38512 main ()
38513 {
38514 return $ac_func ();
38515   ;
38516   return 0;
38517 }
38518 _ACEOF
38519 rm -f conftest.$ac_objext conftest$ac_exeext
38520 if { (ac_try="$ac_link"
38521 case "(($ac_try" in
38522   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38523   *) ac_try_echo=$ac_try;;
38524 esac
38525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38526   (eval "$ac_link") 2>conftest.er1
38527   ac_status=$?
38528   grep -v '^ *+' conftest.er1 >conftest.err
38529   rm -f conftest.er1
38530   cat conftest.err >&5
38531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38532   (exit $ac_status); } && {
38533          test -z "$ac_c_werror_flag" ||
38534          test ! -s conftest.err
38535        } && test -s conftest$ac_exeext &&
38536        $as_test_x conftest$ac_exeext; then
38537   eval "$as_ac_var=yes"
38538 else
38539   echo "$as_me: failed program was:" >&5
38540 sed 's/^/| /' conftest.$ac_ext >&5
38541
38542         eval "$as_ac_var=no"
38543 fi
38544
38545 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38546       conftest$ac_exeext conftest.$ac_ext
38547 fi
38548 ac_res=`eval echo '${'$as_ac_var'}'`
38549                { echo "$as_me:$LINENO: result: $ac_res" >&5
38550 echo "${ECHO_T}$ac_res" >&6; }
38551 if test `eval echo '${'$as_ac_var'}'` = yes; then
38552   cat >>confdefs.h <<_ACEOF
38553 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38554 _ACEOF
38555  cat >>confdefs.h <<\_ACEOF
38556 #define HAVE_FCHDIR 1
38557 _ACEOF
38558
38559 fi
38560 done
38561
38562
38563 for ac_func in strtoll
38564 do
38565 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38566 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38567 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38568 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38569   echo $ECHO_N "(cached) $ECHO_C" >&6
38570 else
38571   cat >conftest.$ac_ext <<_ACEOF
38572 /* confdefs.h.  */
38573 _ACEOF
38574 cat confdefs.h >>conftest.$ac_ext
38575 cat >>conftest.$ac_ext <<_ACEOF
38576 /* end confdefs.h.  */
38577 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38578    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38579 #define $ac_func innocuous_$ac_func
38580
38581 /* System header to define __stub macros and hopefully few prototypes,
38582     which can conflict with char $ac_func (); below.
38583     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38584     <limits.h> exists even on freestanding compilers.  */
38585
38586 #ifdef __STDC__
38587 # include <limits.h>
38588 #else
38589 # include <assert.h>
38590 #endif
38591
38592 #undef $ac_func
38593
38594 /* Override any GCC internal prototype to avoid an error.
38595    Use char because int might match the return type of a GCC
38596    builtin and then its argument prototype would still apply.  */
38597 #ifdef __cplusplus
38598 extern "C"
38599 #endif
38600 char $ac_func ();
38601 /* The GNU C library defines this for functions which it implements
38602     to always fail with ENOSYS.  Some functions are actually named
38603     something starting with __ and the normal name is an alias.  */
38604 #if defined __stub_$ac_func || defined __stub___$ac_func
38605 choke me
38606 #endif
38607
38608 int
38609 main ()
38610 {
38611 return $ac_func ();
38612   ;
38613   return 0;
38614 }
38615 _ACEOF
38616 rm -f conftest.$ac_objext conftest$ac_exeext
38617 if { (ac_try="$ac_link"
38618 case "(($ac_try" in
38619   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38620   *) ac_try_echo=$ac_try;;
38621 esac
38622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38623   (eval "$ac_link") 2>conftest.er1
38624   ac_status=$?
38625   grep -v '^ *+' conftest.er1 >conftest.err
38626   rm -f conftest.er1
38627   cat conftest.err >&5
38628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38629   (exit $ac_status); } && {
38630          test -z "$ac_c_werror_flag" ||
38631          test ! -s conftest.err
38632        } && test -s conftest$ac_exeext &&
38633        $as_test_x conftest$ac_exeext; then
38634   eval "$as_ac_var=yes"
38635 else
38636   echo "$as_me: failed program was:" >&5
38637 sed 's/^/| /' conftest.$ac_ext >&5
38638
38639         eval "$as_ac_var=no"
38640 fi
38641
38642 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38643       conftest$ac_exeext conftest.$ac_ext
38644 fi
38645 ac_res=`eval echo '${'$as_ac_var'}'`
38646                { echo "$as_me:$LINENO: result: $ac_res" >&5
38647 echo "${ECHO_T}$ac_res" >&6; }
38648 if test `eval echo '${'$as_ac_var'}'` = yes; then
38649   cat >>confdefs.h <<_ACEOF
38650 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38651 _ACEOF
38652  cat >>confdefs.h <<\_ACEOF
38653 #define HAVE_STRTOLL 1
38654 _ACEOF
38655
38656 fi
38657 done
38658
38659
38660 for ac_func in posix_fadvise
38661 do
38662 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38663 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38664 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38665 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38666   echo $ECHO_N "(cached) $ECHO_C" >&6
38667 else
38668   cat >conftest.$ac_ext <<_ACEOF
38669 /* confdefs.h.  */
38670 _ACEOF
38671 cat confdefs.h >>conftest.$ac_ext
38672 cat >>conftest.$ac_ext <<_ACEOF
38673 /* end confdefs.h.  */
38674 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38675    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38676 #define $ac_func innocuous_$ac_func
38677
38678 /* System header to define __stub macros and hopefully few prototypes,
38679     which can conflict with char $ac_func (); below.
38680     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38681     <limits.h> exists even on freestanding compilers.  */
38682
38683 #ifdef __STDC__
38684 # include <limits.h>
38685 #else
38686 # include <assert.h>
38687 #endif
38688
38689 #undef $ac_func
38690
38691 /* Override any GCC internal prototype to avoid an error.
38692    Use char because int might match the return type of a GCC
38693    builtin and then its argument prototype would still apply.  */
38694 #ifdef __cplusplus
38695 extern "C"
38696 #endif
38697 char $ac_func ();
38698 /* The GNU C library defines this for functions which it implements
38699     to always fail with ENOSYS.  Some functions are actually named
38700     something starting with __ and the normal name is an alias.  */
38701 #if defined __stub_$ac_func || defined __stub___$ac_func
38702 choke me
38703 #endif
38704
38705 int
38706 main ()
38707 {
38708 return $ac_func ();
38709   ;
38710   return 0;
38711 }
38712 _ACEOF
38713 rm -f conftest.$ac_objext conftest$ac_exeext
38714 if { (ac_try="$ac_link"
38715 case "(($ac_try" in
38716   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38717   *) ac_try_echo=$ac_try;;
38718 esac
38719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38720   (eval "$ac_link") 2>conftest.er1
38721   ac_status=$?
38722   grep -v '^ *+' conftest.er1 >conftest.err
38723   rm -f conftest.er1
38724   cat conftest.err >&5
38725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38726   (exit $ac_status); } && {
38727          test -z "$ac_c_werror_flag" ||
38728          test ! -s conftest.err
38729        } && test -s conftest$ac_exeext &&
38730        $as_test_x conftest$ac_exeext; then
38731   eval "$as_ac_var=yes"
38732 else
38733   echo "$as_me: failed program was:" >&5
38734 sed 's/^/| /' conftest.$ac_ext >&5
38735
38736         eval "$as_ac_var=no"
38737 fi
38738
38739 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38740       conftest$ac_exeext conftest.$ac_ext
38741 fi
38742 ac_res=`eval echo '${'$as_ac_var'}'`
38743                { echo "$as_me:$LINENO: result: $ac_res" >&5
38744 echo "${ECHO_T}$ac_res" >&6; }
38745 if test `eval echo '${'$as_ac_var'}'` = yes; then
38746   cat >>confdefs.h <<_ACEOF
38747 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38748 _ACEOF
38749
38750 fi
38751 done
38752
38753
38754 for ac_func in fdatasync
38755 do
38756 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38757 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38758 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38759 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38760   echo $ECHO_N "(cached) $ECHO_C" >&6
38761 else
38762   cat >conftest.$ac_ext <<_ACEOF
38763 /* confdefs.h.  */
38764 _ACEOF
38765 cat confdefs.h >>conftest.$ac_ext
38766 cat >>conftest.$ac_ext <<_ACEOF
38767 /* end confdefs.h.  */
38768 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38769    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38770 #define $ac_func innocuous_$ac_func
38771
38772 /* System header to define __stub macros and hopefully few prototypes,
38773     which can conflict with char $ac_func (); below.
38774     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38775     <limits.h> exists even on freestanding compilers.  */
38776
38777 #ifdef __STDC__
38778 # include <limits.h>
38779 #else
38780 # include <assert.h>
38781 #endif
38782
38783 #undef $ac_func
38784
38785 /* Override any GCC internal prototype to avoid an error.
38786    Use char because int might match the return type of a GCC
38787    builtin and then its argument prototype would still apply.  */
38788 #ifdef __cplusplus
38789 extern "C"
38790 #endif
38791 char $ac_func ();
38792 /* The GNU C library defines this for functions which it implements
38793     to always fail with ENOSYS.  Some functions are actually named
38794     something starting with __ and the normal name is an alias.  */
38795 #if defined __stub_$ac_func || defined __stub___$ac_func
38796 choke me
38797 #endif
38798
38799 int
38800 main ()
38801 {
38802 return $ac_func ();
38803   ;
38804   return 0;
38805 }
38806 _ACEOF
38807 rm -f conftest.$ac_objext conftest$ac_exeext
38808 if { (ac_try="$ac_link"
38809 case "(($ac_try" in
38810   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38811   *) ac_try_echo=$ac_try;;
38812 esac
38813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38814   (eval "$ac_link") 2>conftest.er1
38815   ac_status=$?
38816   grep -v '^ *+' conftest.er1 >conftest.err
38817   rm -f conftest.er1
38818   cat conftest.err >&5
38819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38820   (exit $ac_status); } && {
38821          test -z "$ac_c_werror_flag" ||
38822          test ! -s conftest.err
38823        } && test -s conftest$ac_exeext &&
38824        $as_test_x conftest$ac_exeext; then
38825   eval "$as_ac_var=yes"
38826 else
38827   echo "$as_me: failed program was:" >&5
38828 sed 's/^/| /' conftest.$ac_ext >&5
38829
38830         eval "$as_ac_var=no"
38831 fi
38832
38833 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38834       conftest$ac_exeext conftest.$ac_ext
38835 fi
38836 ac_res=`eval echo '${'$as_ac_var'}'`
38837                { echo "$as_me:$LINENO: result: $ac_res" >&5
38838 echo "${ECHO_T}$ac_res" >&6; }
38839 if test `eval echo '${'$as_ac_var'}'` = yes; then
38840   cat >>confdefs.h <<_ACEOF
38841 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38842 _ACEOF
38843
38844 fi
38845 done
38846
38847
38848
38849 for ac_func in chflags
38850 do
38851 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38852 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38853 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38854 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38855   echo $ECHO_N "(cached) $ECHO_C" >&6
38856 else
38857   cat >conftest.$ac_ext <<_ACEOF
38858 /* confdefs.h.  */
38859 _ACEOF
38860 cat confdefs.h >>conftest.$ac_ext
38861 cat >>conftest.$ac_ext <<_ACEOF
38862 /* end confdefs.h.  */
38863 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38864    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38865 #define $ac_func innocuous_$ac_func
38866
38867 /* System header to define __stub macros and hopefully few prototypes,
38868     which can conflict with char $ac_func (); below.
38869     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38870     <limits.h> exists even on freestanding compilers.  */
38871
38872 #ifdef __STDC__
38873 # include <limits.h>
38874 #else
38875 # include <assert.h>
38876 #endif
38877
38878 #undef $ac_func
38879
38880 /* Override any GCC internal prototype to avoid an error.
38881    Use char because int might match the return type of a GCC
38882    builtin and then its argument prototype would still apply.  */
38883 #ifdef __cplusplus
38884 extern "C"
38885 #endif
38886 char $ac_func ();
38887 /* The GNU C library defines this for functions which it implements
38888     to always fail with ENOSYS.  Some functions are actually named
38889     something starting with __ and the normal name is an alias.  */
38890 #if defined __stub_$ac_func || defined __stub___$ac_func
38891 choke me
38892 #endif
38893
38894 int
38895 main ()
38896 {
38897 return $ac_func ();
38898   ;
38899   return 0;
38900 }
38901 _ACEOF
38902 rm -f conftest.$ac_objext conftest$ac_exeext
38903 if { (ac_try="$ac_link"
38904 case "(($ac_try" in
38905   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38906   *) ac_try_echo=$ac_try;;
38907 esac
38908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38909   (eval "$ac_link") 2>conftest.er1
38910   ac_status=$?
38911   grep -v '^ *+' conftest.er1 >conftest.err
38912   rm -f conftest.er1
38913   cat conftest.err >&5
38914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38915   (exit $ac_status); } && {
38916          test -z "$ac_c_werror_flag" ||
38917          test ! -s conftest.err
38918        } && test -s conftest$ac_exeext &&
38919        $as_test_x conftest$ac_exeext; then
38920   eval "$as_ac_var=yes"
38921 else
38922   echo "$as_me: failed program was:" >&5
38923 sed 's/^/| /' conftest.$ac_ext >&5
38924
38925         eval "$as_ac_var=no"
38926 fi
38927
38928 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38929       conftest$ac_exeext conftest.$ac_ext
38930 fi
38931 ac_res=`eval echo '${'$as_ac_var'}'`
38932                { echo "$as_me:$LINENO: result: $ac_res" >&5
38933 echo "${ECHO_T}$ac_res" >&6; }
38934 if test `eval echo '${'$as_ac_var'}'` = yes; then
38935   cat >>confdefs.h <<_ACEOF
38936 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38937 _ACEOF
38938
38939 fi
38940 done
38941
38942
38943
38944
38945
38946
38947 for ac_func in snprintf vsnprintf gethostid fseeko
38948 do
38949 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38950 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38951 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38952 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38953   echo $ECHO_N "(cached) $ECHO_C" >&6
38954 else
38955   cat >conftest.$ac_ext <<_ACEOF
38956 /* confdefs.h.  */
38957 _ACEOF
38958 cat confdefs.h >>conftest.$ac_ext
38959 cat >>conftest.$ac_ext <<_ACEOF
38960 /* end confdefs.h.  */
38961 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38962    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38963 #define $ac_func innocuous_$ac_func
38964
38965 /* System header to define __stub macros and hopefully few prototypes,
38966     which can conflict with char $ac_func (); below.
38967     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38968     <limits.h> exists even on freestanding compilers.  */
38969
38970 #ifdef __STDC__
38971 # include <limits.h>
38972 #else
38973 # include <assert.h>
38974 #endif
38975
38976 #undef $ac_func
38977
38978 /* Override any GCC internal prototype to avoid an error.
38979    Use char because int might match the return type of a GCC
38980    builtin and then its argument prototype would still apply.  */
38981 #ifdef __cplusplus
38982 extern "C"
38983 #endif
38984 char $ac_func ();
38985 /* The GNU C library defines this for functions which it implements
38986     to always fail with ENOSYS.  Some functions are actually named
38987     something starting with __ and the normal name is an alias.  */
38988 #if defined __stub_$ac_func || defined __stub___$ac_func
38989 choke me
38990 #endif
38991
38992 int
38993 main ()
38994 {
38995 return $ac_func ();
38996   ;
38997   return 0;
38998 }
38999 _ACEOF
39000 rm -f conftest.$ac_objext conftest$ac_exeext
39001 if { (ac_try="$ac_link"
39002 case "(($ac_try" in
39003   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39004   *) ac_try_echo=$ac_try;;
39005 esac
39006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39007   (eval "$ac_link") 2>conftest.er1
39008   ac_status=$?
39009   grep -v '^ *+' conftest.er1 >conftest.err
39010   rm -f conftest.er1
39011   cat conftest.err >&5
39012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39013   (exit $ac_status); } && {
39014          test -z "$ac_c_werror_flag" ||
39015          test ! -s conftest.err
39016        } && test -s conftest$ac_exeext &&
39017        $as_test_x conftest$ac_exeext; then
39018   eval "$as_ac_var=yes"
39019 else
39020   echo "$as_me: failed program was:" >&5
39021 sed 's/^/| /' conftest.$ac_ext >&5
39022
39023         eval "$as_ac_var=no"
39024 fi
39025
39026 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39027       conftest$ac_exeext conftest.$ac_ext
39028 fi
39029 ac_res=`eval echo '${'$as_ac_var'}'`
39030                { echo "$as_me:$LINENO: result: $ac_res" >&5
39031 echo "${ECHO_T}$ac_res" >&6; }
39032 if test `eval echo '${'$as_ac_var'}'` = yes; then
39033   cat >>confdefs.h <<_ACEOF
39034 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39035 _ACEOF
39036
39037 fi
39038 done
39039
39040
39041 { echo "$as_me:$LINENO: checking for va_copy" >&5
39042 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6; }
39043 if test "${ba_cv_va_copy+set}" = set; then
39044   echo $ECHO_N "(cached) $ECHO_C" >&6
39045 else
39046
39047        cat >conftest.$ac_ext <<_ACEOF
39048 /* confdefs.h.  */
39049 _ACEOF
39050 cat confdefs.h >>conftest.$ac_ext
39051 cat >>conftest.$ac_ext <<_ACEOF
39052 /* end confdefs.h.  */
39053
39054               #include <stdarg.h>
39055               void use_va_copy(va_list args){va_list args2; va_copy(args2,args); va_end(args2);}
39056               void call_use_va_copy(int junk,...){va_list args; va_start(args,junk); use_va_copy(args); va_end(args);}
39057
39058 int
39059 main ()
39060 {
39061
39062               call_use_va_copy(1,2,3)
39063
39064   ;
39065   return 0;
39066 }
39067 _ACEOF
39068 rm -f conftest.$ac_objext conftest$ac_exeext
39069 if { (ac_try="$ac_link"
39070 case "(($ac_try" in
39071   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39072   *) ac_try_echo=$ac_try;;
39073 esac
39074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39075   (eval "$ac_link") 2>conftest.er1
39076   ac_status=$?
39077   grep -v '^ *+' conftest.er1 >conftest.err
39078   rm -f conftest.er1
39079   cat conftest.err >&5
39080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39081   (exit $ac_status); } && {
39082          test -z "$ac_c_werror_flag" ||
39083          test ! -s conftest.err
39084        } && test -s conftest$ac_exeext &&
39085        $as_test_x conftest$ac_exeext; then
39086
39087               ba_cv_va_copy=yes,
39088
39089 else
39090   echo "$as_me: failed program was:" >&5
39091 sed 's/^/| /' conftest.$ac_ext >&5
39092
39093
39094               ba_cv_va_copy=no
39095
39096
39097 fi
39098
39099 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39100       conftest$ac_exeext conftest.$ac_ext
39101
39102
39103 fi
39104 { echo "$as_me:$LINENO: result: $ba_cv_va_copy" >&5
39105 echo "${ECHO_T}$ba_cv_va_copy" >&6; }
39106 test $ba_cv_va_copy = yes &&
39107 cat >>confdefs.h <<\_ACEOF
39108 #define HAVE_VA_COPY 1
39109 _ACEOF
39110
39111
39112
39113
39114
39115
39116 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
39117 do
39118 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39119 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39120 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39121 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39122   echo $ECHO_N "(cached) $ECHO_C" >&6
39123 else
39124   cat >conftest.$ac_ext <<_ACEOF
39125 /* confdefs.h.  */
39126 _ACEOF
39127 cat confdefs.h >>conftest.$ac_ext
39128 cat >>conftest.$ac_ext <<_ACEOF
39129 /* end confdefs.h.  */
39130 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39131    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39132 #define $ac_func innocuous_$ac_func
39133
39134 /* System header to define __stub macros and hopefully few prototypes,
39135     which can conflict with char $ac_func (); below.
39136     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39137     <limits.h> exists even on freestanding compilers.  */
39138
39139 #ifdef __STDC__
39140 # include <limits.h>
39141 #else
39142 # include <assert.h>
39143 #endif
39144
39145 #undef $ac_func
39146
39147 /* Override any GCC internal prototype to avoid an error.
39148    Use char because int might match the return type of a GCC
39149    builtin and then its argument prototype would still apply.  */
39150 #ifdef __cplusplus
39151 extern "C"
39152 #endif
39153 char $ac_func ();
39154 /* The GNU C library defines this for functions which it implements
39155     to always fail with ENOSYS.  Some functions are actually named
39156     something starting with __ and the normal name is an alias.  */
39157 #if defined __stub_$ac_func || defined __stub___$ac_func
39158 choke me
39159 #endif
39160
39161 int
39162 main ()
39163 {
39164 return $ac_func ();
39165   ;
39166   return 0;
39167 }
39168 _ACEOF
39169 rm -f conftest.$ac_objext conftest$ac_exeext
39170 if { (ac_try="$ac_link"
39171 case "(($ac_try" in
39172   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39173   *) ac_try_echo=$ac_try;;
39174 esac
39175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39176   (eval "$ac_link") 2>conftest.er1
39177   ac_status=$?
39178   grep -v '^ *+' conftest.er1 >conftest.err
39179   rm -f conftest.er1
39180   cat conftest.err >&5
39181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39182   (exit $ac_status); } && {
39183          test -z "$ac_c_werror_flag" ||
39184          test ! -s conftest.err
39185        } && test -s conftest$ac_exeext &&
39186        $as_test_x conftest$ac_exeext; then
39187   eval "$as_ac_var=yes"
39188 else
39189   echo "$as_me: failed program was:" >&5
39190 sed 's/^/| /' conftest.$ac_ext >&5
39191
39192         eval "$as_ac_var=no"
39193 fi
39194
39195 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39196       conftest$ac_exeext conftest.$ac_ext
39197 fi
39198 ac_res=`eval echo '${'$as_ac_var'}'`
39199                { echo "$as_me:$LINENO: result: $ac_res" >&5
39200 echo "${ECHO_T}$ac_res" >&6; }
39201 if test `eval echo '${'$as_ac_var'}'` = yes; then
39202   cat >>confdefs.h <<_ACEOF
39203 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39204 _ACEOF
39205
39206 fi
39207 done
39208
39209
39210 # If resolver functions are not in libc check for -lnsl or -lresolv.
39211 { echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
39212 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6; }
39213 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
39214   echo $ECHO_N "(cached) $ECHO_C" >&6
39215 else
39216   cat >conftest.$ac_ext <<_ACEOF
39217 /* confdefs.h.  */
39218 _ACEOF
39219 cat confdefs.h >>conftest.$ac_ext
39220 cat >>conftest.$ac_ext <<_ACEOF
39221 /* end confdefs.h.  */
39222 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
39223    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39224 #define gethostbyname_r innocuous_gethostbyname_r
39225
39226 /* System header to define __stub macros and hopefully few prototypes,
39227     which can conflict with char gethostbyname_r (); below.
39228     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39229     <limits.h> exists even on freestanding compilers.  */
39230
39231 #ifdef __STDC__
39232 # include <limits.h>
39233 #else
39234 # include <assert.h>
39235 #endif
39236
39237 #undef gethostbyname_r
39238
39239 /* Override any GCC internal prototype to avoid an error.
39240    Use char because int might match the return type of a GCC
39241    builtin and then its argument prototype would still apply.  */
39242 #ifdef __cplusplus
39243 extern "C"
39244 #endif
39245 char gethostbyname_r ();
39246 /* The GNU C library defines this for functions which it implements
39247     to always fail with ENOSYS.  Some functions are actually named
39248     something starting with __ and the normal name is an alias.  */
39249 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
39250 choke me
39251 #endif
39252
39253 int
39254 main ()
39255 {
39256 return gethostbyname_r ();
39257   ;
39258   return 0;
39259 }
39260 _ACEOF
39261 rm -f conftest.$ac_objext conftest$ac_exeext
39262 if { (ac_try="$ac_link"
39263 case "(($ac_try" in
39264   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39265   *) ac_try_echo=$ac_try;;
39266 esac
39267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39268   (eval "$ac_link") 2>conftest.er1
39269   ac_status=$?
39270   grep -v '^ *+' conftest.er1 >conftest.err
39271   rm -f conftest.er1
39272   cat conftest.err >&5
39273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39274   (exit $ac_status); } && {
39275          test -z "$ac_c_werror_flag" ||
39276          test ! -s conftest.err
39277        } && test -s conftest$ac_exeext &&
39278        $as_test_x conftest$ac_exeext; then
39279   ac_cv_func_gethostbyname_r=yes
39280 else
39281   echo "$as_me: failed program was:" >&5
39282 sed 's/^/| /' conftest.$ac_ext >&5
39283
39284         ac_cv_func_gethostbyname_r=no
39285 fi
39286
39287 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39288       conftest$ac_exeext conftest.$ac_ext
39289 fi
39290 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
39291 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6; }
39292 if test $ac_cv_func_gethostbyname_r = yes; then
39293   { echo "$as_me:$LINENO: result: using libc's resolver" >&5
39294 echo "${ECHO_T}using libc's resolver" >&6; }
39295 else
39296
39297 { echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
39298 echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6; }
39299 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
39300   echo $ECHO_N "(cached) $ECHO_C" >&6
39301 else
39302   ac_check_lib_save_LIBS=$LIBS
39303 LIBS="-lnsl  $LIBS"
39304 cat >conftest.$ac_ext <<_ACEOF
39305 /* confdefs.h.  */
39306 _ACEOF
39307 cat confdefs.h >>conftest.$ac_ext
39308 cat >>conftest.$ac_ext <<_ACEOF
39309 /* end confdefs.h.  */
39310
39311 /* Override any GCC internal prototype to avoid an error.
39312    Use char because int might match the return type of a GCC
39313    builtin and then its argument prototype would still apply.  */
39314 #ifdef __cplusplus
39315 extern "C"
39316 #endif
39317 char gethostbyname_r ();
39318 int
39319 main ()
39320 {
39321 return gethostbyname_r ();
39322   ;
39323   return 0;
39324 }
39325 _ACEOF
39326 rm -f conftest.$ac_objext conftest$ac_exeext
39327 if { (ac_try="$ac_link"
39328 case "(($ac_try" in
39329   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39330   *) ac_try_echo=$ac_try;;
39331 esac
39332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39333   (eval "$ac_link") 2>conftest.er1
39334   ac_status=$?
39335   grep -v '^ *+' conftest.er1 >conftest.err
39336   rm -f conftest.er1
39337   cat conftest.err >&5
39338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39339   (exit $ac_status); } && {
39340          test -z "$ac_c_werror_flag" ||
39341          test ! -s conftest.err
39342        } && test -s conftest$ac_exeext &&
39343        $as_test_x conftest$ac_exeext; then
39344   ac_cv_lib_nsl_gethostbyname_r=yes
39345 else
39346   echo "$as_me: failed program was:" >&5
39347 sed 's/^/| /' conftest.$ac_ext >&5
39348
39349         ac_cv_lib_nsl_gethostbyname_r=no
39350 fi
39351
39352 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39353       conftest$ac_exeext conftest.$ac_ext
39354 LIBS=$ac_check_lib_save_LIBS
39355 fi
39356 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
39357 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6; }
39358 if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
39359   cat >>confdefs.h <<_ACEOF
39360 #define HAVE_LIBNSL 1
39361 _ACEOF
39362
39363   LIBS="-lnsl $LIBS"
39364
39365 fi
39366
39367
39368 { echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
39369 echo $ECHO_N "checking for gethostbyname_r in -lresolv... $ECHO_C" >&6; }
39370 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
39371   echo $ECHO_N "(cached) $ECHO_C" >&6
39372 else
39373   ac_check_lib_save_LIBS=$LIBS
39374 LIBS="-lresolv  $LIBS"
39375 cat >conftest.$ac_ext <<_ACEOF
39376 /* confdefs.h.  */
39377 _ACEOF
39378 cat confdefs.h >>conftest.$ac_ext
39379 cat >>conftest.$ac_ext <<_ACEOF
39380 /* end confdefs.h.  */
39381
39382 /* Override any GCC internal prototype to avoid an error.
39383    Use char because int might match the return type of a GCC
39384    builtin and then its argument prototype would still apply.  */
39385 #ifdef __cplusplus
39386 extern "C"
39387 #endif
39388 char gethostbyname_r ();
39389 int
39390 main ()
39391 {
39392 return gethostbyname_r ();
39393   ;
39394   return 0;
39395 }
39396 _ACEOF
39397 rm -f conftest.$ac_objext conftest$ac_exeext
39398 if { (ac_try="$ac_link"
39399 case "(($ac_try" in
39400   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39401   *) ac_try_echo=$ac_try;;
39402 esac
39403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39404   (eval "$ac_link") 2>conftest.er1
39405   ac_status=$?
39406   grep -v '^ *+' conftest.er1 >conftest.err
39407   rm -f conftest.er1
39408   cat conftest.err >&5
39409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39410   (exit $ac_status); } && {
39411          test -z "$ac_c_werror_flag" ||
39412          test ! -s conftest.err
39413        } && test -s conftest$ac_exeext &&
39414        $as_test_x conftest$ac_exeext; then
39415   ac_cv_lib_resolv_gethostbyname_r=yes
39416 else
39417   echo "$as_me: failed program was:" >&5
39418 sed 's/^/| /' conftest.$ac_ext >&5
39419
39420         ac_cv_lib_resolv_gethostbyname_r=no
39421 fi
39422
39423 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39424       conftest$ac_exeext conftest.$ac_ext
39425 LIBS=$ac_check_lib_save_LIBS
39426 fi
39427 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
39428 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname_r" >&6; }
39429 if test $ac_cv_lib_resolv_gethostbyname_r = yes; then
39430   cat >>confdefs.h <<_ACEOF
39431 #define HAVE_LIBRESOLV 1
39432 _ACEOF
39433
39434   LIBS="-lresolv $LIBS"
39435
39436 fi
39437
39438 fi
39439
39440
39441
39442 for ac_func in inet_pton
39443 do
39444 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39445 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39446 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39447 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39448   echo $ECHO_N "(cached) $ECHO_C" >&6
39449 else
39450   cat >conftest.$ac_ext <<_ACEOF
39451 /* confdefs.h.  */
39452 _ACEOF
39453 cat confdefs.h >>conftest.$ac_ext
39454 cat >>conftest.$ac_ext <<_ACEOF
39455 /* end confdefs.h.  */
39456 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39457    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39458 #define $ac_func innocuous_$ac_func
39459
39460 /* System header to define __stub macros and hopefully few prototypes,
39461     which can conflict with char $ac_func (); below.
39462     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39463     <limits.h> exists even on freestanding compilers.  */
39464
39465 #ifdef __STDC__
39466 # include <limits.h>
39467 #else
39468 # include <assert.h>
39469 #endif
39470
39471 #undef $ac_func
39472
39473 /* Override any GCC internal prototype to avoid an error.
39474    Use char because int might match the return type of a GCC
39475    builtin and then its argument prototype would still apply.  */
39476 #ifdef __cplusplus
39477 extern "C"
39478 #endif
39479 char $ac_func ();
39480 /* The GNU C library defines this for functions which it implements
39481     to always fail with ENOSYS.  Some functions are actually named
39482     something starting with __ and the normal name is an alias.  */
39483 #if defined __stub_$ac_func || defined __stub___$ac_func
39484 choke me
39485 #endif
39486
39487 int
39488 main ()
39489 {
39490 return $ac_func ();
39491   ;
39492   return 0;
39493 }
39494 _ACEOF
39495 rm -f conftest.$ac_objext conftest$ac_exeext
39496 if { (ac_try="$ac_link"
39497 case "(($ac_try" in
39498   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39499   *) ac_try_echo=$ac_try;;
39500 esac
39501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39502   (eval "$ac_link") 2>conftest.er1
39503   ac_status=$?
39504   grep -v '^ *+' conftest.er1 >conftest.err
39505   rm -f conftest.er1
39506   cat conftest.err >&5
39507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39508   (exit $ac_status); } && {
39509          test -z "$ac_c_werror_flag" ||
39510          test ! -s conftest.err
39511        } && test -s conftest$ac_exeext &&
39512        $as_test_x conftest$ac_exeext; then
39513   eval "$as_ac_var=yes"
39514 else
39515   echo "$as_me: failed program was:" >&5
39516 sed 's/^/| /' conftest.$ac_ext >&5
39517
39518         eval "$as_ac_var=no"
39519 fi
39520
39521 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39522       conftest$ac_exeext conftest.$ac_ext
39523 fi
39524 ac_res=`eval echo '${'$as_ac_var'}'`
39525                { echo "$as_me:$LINENO: result: $ac_res" >&5
39526 echo "${ECHO_T}$ac_res" >&6; }
39527 if test `eval echo '${'$as_ac_var'}'` = yes; then
39528   cat >>confdefs.h <<_ACEOF
39529 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39530 _ACEOF
39531  cat >>confdefs.h <<\_ACEOF
39532 #define HAVE_INET_PTON 1
39533 _ACEOF
39534
39535 fi
39536 done
39537
39538
39539 for ac_func in inet_ntop
39540 do
39541 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39542 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39543 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39544 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39545   echo $ECHO_N "(cached) $ECHO_C" >&6
39546 else
39547   cat >conftest.$ac_ext <<_ACEOF
39548 /* confdefs.h.  */
39549 _ACEOF
39550 cat confdefs.h >>conftest.$ac_ext
39551 cat >>conftest.$ac_ext <<_ACEOF
39552 /* end confdefs.h.  */
39553 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39554    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39555 #define $ac_func innocuous_$ac_func
39556
39557 /* System header to define __stub macros and hopefully few prototypes,
39558     which can conflict with char $ac_func (); below.
39559     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39560     <limits.h> exists even on freestanding compilers.  */
39561
39562 #ifdef __STDC__
39563 # include <limits.h>
39564 #else
39565 # include <assert.h>
39566 #endif
39567
39568 #undef $ac_func
39569
39570 /* Override any GCC internal prototype to avoid an error.
39571    Use char because int might match the return type of a GCC
39572    builtin and then its argument prototype would still apply.  */
39573 #ifdef __cplusplus
39574 extern "C"
39575 #endif
39576 char $ac_func ();
39577 /* The GNU C library defines this for functions which it implements
39578     to always fail with ENOSYS.  Some functions are actually named
39579     something starting with __ and the normal name is an alias.  */
39580 #if defined __stub_$ac_func || defined __stub___$ac_func
39581 choke me
39582 #endif
39583
39584 int
39585 main ()
39586 {
39587 return $ac_func ();
39588   ;
39589   return 0;
39590 }
39591 _ACEOF
39592 rm -f conftest.$ac_objext conftest$ac_exeext
39593 if { (ac_try="$ac_link"
39594 case "(($ac_try" in
39595   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39596   *) ac_try_echo=$ac_try;;
39597 esac
39598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39599   (eval "$ac_link") 2>conftest.er1
39600   ac_status=$?
39601   grep -v '^ *+' conftest.er1 >conftest.err
39602   rm -f conftest.er1
39603   cat conftest.err >&5
39604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39605   (exit $ac_status); } && {
39606          test -z "$ac_c_werror_flag" ||
39607          test ! -s conftest.err
39608        } && test -s conftest$ac_exeext &&
39609        $as_test_x conftest$ac_exeext; then
39610   eval "$as_ac_var=yes"
39611 else
39612   echo "$as_me: failed program was:" >&5
39613 sed 's/^/| /' conftest.$ac_ext >&5
39614
39615         eval "$as_ac_var=no"
39616 fi
39617
39618 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39619       conftest$ac_exeext conftest.$ac_ext
39620 fi
39621 ac_res=`eval echo '${'$as_ac_var'}'`
39622                { echo "$as_me:$LINENO: result: $ac_res" >&5
39623 echo "${ECHO_T}$ac_res" >&6; }
39624 if test `eval echo '${'$as_ac_var'}'` = yes; then
39625   cat >>confdefs.h <<_ACEOF
39626 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39627 _ACEOF
39628  cat >>confdefs.h <<\_ACEOF
39629 #define HAVE_INET_NTOP 1
39630 _ACEOF
39631
39632 fi
39633 done
39634
39635
39636 for ac_func in gethostbyname2
39637 do
39638 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39639 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39640 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39641 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39642   echo $ECHO_N "(cached) $ECHO_C" >&6
39643 else
39644   cat >conftest.$ac_ext <<_ACEOF
39645 /* confdefs.h.  */
39646 _ACEOF
39647 cat confdefs.h >>conftest.$ac_ext
39648 cat >>conftest.$ac_ext <<_ACEOF
39649 /* end confdefs.h.  */
39650 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39651    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39652 #define $ac_func innocuous_$ac_func
39653
39654 /* System header to define __stub macros and hopefully few prototypes,
39655     which can conflict with char $ac_func (); below.
39656     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39657     <limits.h> exists even on freestanding compilers.  */
39658
39659 #ifdef __STDC__
39660 # include <limits.h>
39661 #else
39662 # include <assert.h>
39663 #endif
39664
39665 #undef $ac_func
39666
39667 /* Override any GCC internal prototype to avoid an error.
39668    Use char because int might match the return type of a GCC
39669    builtin and then its argument prototype would still apply.  */
39670 #ifdef __cplusplus
39671 extern "C"
39672 #endif
39673 char $ac_func ();
39674 /* The GNU C library defines this for functions which it implements
39675     to always fail with ENOSYS.  Some functions are actually named
39676     something starting with __ and the normal name is an alias.  */
39677 #if defined __stub_$ac_func || defined __stub___$ac_func
39678 choke me
39679 #endif
39680
39681 int
39682 main ()
39683 {
39684 return $ac_func ();
39685   ;
39686   return 0;
39687 }
39688 _ACEOF
39689 rm -f conftest.$ac_objext conftest$ac_exeext
39690 if { (ac_try="$ac_link"
39691 case "(($ac_try" in
39692   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39693   *) ac_try_echo=$ac_try;;
39694 esac
39695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39696   (eval "$ac_link") 2>conftest.er1
39697   ac_status=$?
39698   grep -v '^ *+' conftest.er1 >conftest.err
39699   rm -f conftest.er1
39700   cat conftest.err >&5
39701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39702   (exit $ac_status); } && {
39703          test -z "$ac_c_werror_flag" ||
39704          test ! -s conftest.err
39705        } && test -s conftest$ac_exeext &&
39706        $as_test_x conftest$ac_exeext; then
39707   eval "$as_ac_var=yes"
39708 else
39709   echo "$as_me: failed program was:" >&5
39710 sed 's/^/| /' conftest.$ac_ext >&5
39711
39712         eval "$as_ac_var=no"
39713 fi
39714
39715 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39716       conftest$ac_exeext conftest.$ac_ext
39717 fi
39718 ac_res=`eval echo '${'$as_ac_var'}'`
39719                { echo "$as_me:$LINENO: result: $ac_res" >&5
39720 echo "${ECHO_T}$ac_res" >&6; }
39721 if test `eval echo '${'$as_ac_var'}'` = yes; then
39722   cat >>confdefs.h <<_ACEOF
39723 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39724 _ACEOF
39725  cat >>confdefs.h <<\_ACEOF
39726 #define HAVE_GETHOSTBYNAME2 1
39727 _ACEOF
39728
39729 fi
39730 done
39731
39732
39733 { echo "$as_me:$LINENO: checking for struct sockaddr has a sa_len field" >&5
39734 echo $ECHO_N "checking for struct sockaddr has a sa_len field... $ECHO_C" >&6; }
39735 if test "${ac_cv_struct_sockaddr_sa_len+set}" = set; then
39736   echo $ECHO_N "(cached) $ECHO_C" >&6
39737 else
39738
39739        cat >conftest.$ac_ext <<_ACEOF
39740 /* confdefs.h.  */
39741 _ACEOF
39742 cat confdefs.h >>conftest.$ac_ext
39743 cat >>conftest.$ac_ext <<_ACEOF
39744 /* end confdefs.h.  */
39745
39746               #include <sys/socket.h>
39747
39748 int
39749 main ()
39750 {
39751
39752               struct sockaddr s; s.sa_len;
39753
39754   ;
39755   return 0;
39756 }
39757 _ACEOF
39758 rm -f conftest.$ac_objext
39759 if { (ac_try="$ac_compile"
39760 case "(($ac_try" in
39761   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39762   *) ac_try_echo=$ac_try;;
39763 esac
39764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39765   (eval "$ac_compile") 2>conftest.er1
39766   ac_status=$?
39767   grep -v '^ *+' conftest.er1 >conftest.err
39768   rm -f conftest.er1
39769   cat conftest.err >&5
39770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39771   (exit $ac_status); } && {
39772          test -z "$ac_c_werror_flag" ||
39773          test ! -s conftest.err
39774        } && test -s conftest.$ac_objext; then
39775
39776              ac_cv_struct_sockaddr_sa_len=yes
39777
39778 else
39779   echo "$as_me: failed program was:" >&5
39780 sed 's/^/| /' conftest.$ac_ext >&5
39781
39782         ac_cv_struct_sockaddr_sa_len=no
39783
39784
39785 fi
39786
39787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39788
39789
39790 fi
39791 { echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_sa_len" >&5
39792 echo "${ECHO_T}$ac_cv_struct_sockaddr_sa_len" >&6; }
39793
39794 if test $ac_cv_struct_sockaddr_sa_len = yes; then
39795
39796 cat >>confdefs.h <<\_ACEOF
39797 #define HAVE_SA_LEN 1
39798 _ACEOF
39799
39800 fi
39801
39802
39803 for ac_func in strftime
39804 do
39805 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39806 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39807 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39808 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39809   echo $ECHO_N "(cached) $ECHO_C" >&6
39810 else
39811   cat >conftest.$ac_ext <<_ACEOF
39812 /* confdefs.h.  */
39813 _ACEOF
39814 cat confdefs.h >>conftest.$ac_ext
39815 cat >>conftest.$ac_ext <<_ACEOF
39816 /* end confdefs.h.  */
39817 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39818    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39819 #define $ac_func innocuous_$ac_func
39820
39821 /* System header to define __stub macros and hopefully few prototypes,
39822     which can conflict with char $ac_func (); below.
39823     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39824     <limits.h> exists even on freestanding compilers.  */
39825
39826 #ifdef __STDC__
39827 # include <limits.h>
39828 #else
39829 # include <assert.h>
39830 #endif
39831
39832 #undef $ac_func
39833
39834 /* Override any GCC internal prototype to avoid an error.
39835    Use char because int might match the return type of a GCC
39836    builtin and then its argument prototype would still apply.  */
39837 #ifdef __cplusplus
39838 extern "C"
39839 #endif
39840 char $ac_func ();
39841 /* The GNU C library defines this for functions which it implements
39842     to always fail with ENOSYS.  Some functions are actually named
39843     something starting with __ and the normal name is an alias.  */
39844 #if defined __stub_$ac_func || defined __stub___$ac_func
39845 choke me
39846 #endif
39847
39848 int
39849 main ()
39850 {
39851 return $ac_func ();
39852   ;
39853   return 0;
39854 }
39855 _ACEOF
39856 rm -f conftest.$ac_objext conftest$ac_exeext
39857 if { (ac_try="$ac_link"
39858 case "(($ac_try" in
39859   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39860   *) ac_try_echo=$ac_try;;
39861 esac
39862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39863   (eval "$ac_link") 2>conftest.er1
39864   ac_status=$?
39865   grep -v '^ *+' conftest.er1 >conftest.err
39866   rm -f conftest.er1
39867   cat conftest.err >&5
39868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39869   (exit $ac_status); } && {
39870          test -z "$ac_c_werror_flag" ||
39871          test ! -s conftest.err
39872        } && test -s conftest$ac_exeext &&
39873        $as_test_x conftest$ac_exeext; then
39874   eval "$as_ac_var=yes"
39875 else
39876   echo "$as_me: failed program was:" >&5
39877 sed 's/^/| /' conftest.$ac_ext >&5
39878
39879         eval "$as_ac_var=no"
39880 fi
39881
39882 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39883       conftest$ac_exeext conftest.$ac_ext
39884 fi
39885 ac_res=`eval echo '${'$as_ac_var'}'`
39886                { echo "$as_me:$LINENO: result: $ac_res" >&5
39887 echo "${ECHO_T}$ac_res" >&6; }
39888 if test `eval echo '${'$as_ac_var'}'` = yes; then
39889   cat >>confdefs.h <<_ACEOF
39890 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39891 _ACEOF
39892
39893 else
39894   # strftime is in -lintl on SCO UNIX.
39895 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
39896 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
39897 if test "${ac_cv_lib_intl_strftime+set}" = set; then
39898   echo $ECHO_N "(cached) $ECHO_C" >&6
39899 else
39900   ac_check_lib_save_LIBS=$LIBS
39901 LIBS="-lintl  $LIBS"
39902 cat >conftest.$ac_ext <<_ACEOF
39903 /* confdefs.h.  */
39904 _ACEOF
39905 cat confdefs.h >>conftest.$ac_ext
39906 cat >>conftest.$ac_ext <<_ACEOF
39907 /* end confdefs.h.  */
39908
39909 /* Override any GCC internal prototype to avoid an error.
39910    Use char because int might match the return type of a GCC
39911    builtin and then its argument prototype would still apply.  */
39912 #ifdef __cplusplus
39913 extern "C"
39914 #endif
39915 char strftime ();
39916 int
39917 main ()
39918 {
39919 return strftime ();
39920   ;
39921   return 0;
39922 }
39923 _ACEOF
39924 rm -f conftest.$ac_objext conftest$ac_exeext
39925 if { (ac_try="$ac_link"
39926 case "(($ac_try" in
39927   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39928   *) ac_try_echo=$ac_try;;
39929 esac
39930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39931   (eval "$ac_link") 2>conftest.er1
39932   ac_status=$?
39933   grep -v '^ *+' conftest.er1 >conftest.err
39934   rm -f conftest.er1
39935   cat conftest.err >&5
39936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39937   (exit $ac_status); } && {
39938          test -z "$ac_c_werror_flag" ||
39939          test ! -s conftest.err
39940        } && test -s conftest$ac_exeext &&
39941        $as_test_x conftest$ac_exeext; then
39942   ac_cv_lib_intl_strftime=yes
39943 else
39944   echo "$as_me: failed program was:" >&5
39945 sed 's/^/| /' conftest.$ac_ext >&5
39946
39947         ac_cv_lib_intl_strftime=no
39948 fi
39949
39950 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39951       conftest$ac_exeext conftest.$ac_ext
39952 LIBS=$ac_check_lib_save_LIBS
39953 fi
39954 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
39955 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
39956 if test $ac_cv_lib_intl_strftime = yes; then
39957   cat >>confdefs.h <<\_ACEOF
39958 #define HAVE_STRFTIME 1
39959 _ACEOF
39960
39961 LIBS="-lintl $LIBS"
39962 fi
39963
39964 fi
39965 done
39966
39967
39968 for ac_func in vprintf
39969 do
39970 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39971 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39972 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39973 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39974   echo $ECHO_N "(cached) $ECHO_C" >&6
39975 else
39976   cat >conftest.$ac_ext <<_ACEOF
39977 /* confdefs.h.  */
39978 _ACEOF
39979 cat confdefs.h >>conftest.$ac_ext
39980 cat >>conftest.$ac_ext <<_ACEOF
39981 /* end confdefs.h.  */
39982 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39983    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39984 #define $ac_func innocuous_$ac_func
39985
39986 /* System header to define __stub macros and hopefully few prototypes,
39987     which can conflict with char $ac_func (); below.
39988     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39989     <limits.h> exists even on freestanding compilers.  */
39990
39991 #ifdef __STDC__
39992 # include <limits.h>
39993 #else
39994 # include <assert.h>
39995 #endif
39996
39997 #undef $ac_func
39998
39999 /* Override any GCC internal prototype to avoid an error.
40000    Use char because int might match the return type of a GCC
40001    builtin and then its argument prototype would still apply.  */
40002 #ifdef __cplusplus
40003 extern "C"
40004 #endif
40005 char $ac_func ();
40006 /* The GNU C library defines this for functions which it implements
40007     to always fail with ENOSYS.  Some functions are actually named
40008     something starting with __ and the normal name is an alias.  */
40009 #if defined __stub_$ac_func || defined __stub___$ac_func
40010 choke me
40011 #endif
40012
40013 int
40014 main ()
40015 {
40016 return $ac_func ();
40017   ;
40018   return 0;
40019 }
40020 _ACEOF
40021 rm -f conftest.$ac_objext conftest$ac_exeext
40022 if { (ac_try="$ac_link"
40023 case "(($ac_try" in
40024   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40025   *) ac_try_echo=$ac_try;;
40026 esac
40027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40028   (eval "$ac_link") 2>conftest.er1
40029   ac_status=$?
40030   grep -v '^ *+' conftest.er1 >conftest.err
40031   rm -f conftest.er1
40032   cat conftest.err >&5
40033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40034   (exit $ac_status); } && {
40035          test -z "$ac_c_werror_flag" ||
40036          test ! -s conftest.err
40037        } && test -s conftest$ac_exeext &&
40038        $as_test_x conftest$ac_exeext; then
40039   eval "$as_ac_var=yes"
40040 else
40041   echo "$as_me: failed program was:" >&5
40042 sed 's/^/| /' conftest.$ac_ext >&5
40043
40044         eval "$as_ac_var=no"
40045 fi
40046
40047 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40048       conftest$ac_exeext conftest.$ac_ext
40049 fi
40050 ac_res=`eval echo '${'$as_ac_var'}'`
40051                { echo "$as_me:$LINENO: result: $ac_res" >&5
40052 echo "${ECHO_T}$ac_res" >&6; }
40053 if test `eval echo '${'$as_ac_var'}'` = yes; then
40054   cat >>confdefs.h <<_ACEOF
40055 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40056 _ACEOF
40057
40058 { echo "$as_me:$LINENO: checking for _doprnt" >&5
40059 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
40060 if test "${ac_cv_func__doprnt+set}" = set; then
40061   echo $ECHO_N "(cached) $ECHO_C" >&6
40062 else
40063   cat >conftest.$ac_ext <<_ACEOF
40064 /* confdefs.h.  */
40065 _ACEOF
40066 cat confdefs.h >>conftest.$ac_ext
40067 cat >>conftest.$ac_ext <<_ACEOF
40068 /* end confdefs.h.  */
40069 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
40070    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40071 #define _doprnt innocuous__doprnt
40072
40073 /* System header to define __stub macros and hopefully few prototypes,
40074     which can conflict with char _doprnt (); below.
40075     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40076     <limits.h> exists even on freestanding compilers.  */
40077
40078 #ifdef __STDC__
40079 # include <limits.h>
40080 #else
40081 # include <assert.h>
40082 #endif
40083
40084 #undef _doprnt
40085
40086 /* Override any GCC internal prototype to avoid an error.
40087    Use char because int might match the return type of a GCC
40088    builtin and then its argument prototype would still apply.  */
40089 #ifdef __cplusplus
40090 extern "C"
40091 #endif
40092 char _doprnt ();
40093 /* The GNU C library defines this for functions which it implements
40094     to always fail with ENOSYS.  Some functions are actually named
40095     something starting with __ and the normal name is an alias.  */
40096 #if defined __stub__doprnt || defined __stub____doprnt
40097 choke me
40098 #endif
40099
40100 int
40101 main ()
40102 {
40103 return _doprnt ();
40104   ;
40105   return 0;
40106 }
40107 _ACEOF
40108 rm -f conftest.$ac_objext conftest$ac_exeext
40109 if { (ac_try="$ac_link"
40110 case "(($ac_try" in
40111   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40112   *) ac_try_echo=$ac_try;;
40113 esac
40114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40115   (eval "$ac_link") 2>conftest.er1
40116   ac_status=$?
40117   grep -v '^ *+' conftest.er1 >conftest.err
40118   rm -f conftest.er1
40119   cat conftest.err >&5
40120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40121   (exit $ac_status); } && {
40122          test -z "$ac_c_werror_flag" ||
40123          test ! -s conftest.err
40124        } && test -s conftest$ac_exeext &&
40125        $as_test_x conftest$ac_exeext; then
40126   ac_cv_func__doprnt=yes
40127 else
40128   echo "$as_me: failed program was:" >&5
40129 sed 's/^/| /' conftest.$ac_ext >&5
40130
40131         ac_cv_func__doprnt=no
40132 fi
40133
40134 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40135       conftest$ac_exeext conftest.$ac_ext
40136 fi
40137 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
40138 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
40139 if test $ac_cv_func__doprnt = yes; then
40140
40141 cat >>confdefs.h <<\_ACEOF
40142 #define HAVE_DOPRNT 1
40143 _ACEOF
40144
40145 fi
40146
40147 fi
40148 done
40149
40150
40151 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
40152 # for constant arguments.  Useless!
40153 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
40154 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
40155 if test "${ac_cv_working_alloca_h+set}" = set; then
40156   echo $ECHO_N "(cached) $ECHO_C" >&6
40157 else
40158   cat >conftest.$ac_ext <<_ACEOF
40159 /* confdefs.h.  */
40160 _ACEOF
40161 cat confdefs.h >>conftest.$ac_ext
40162 cat >>conftest.$ac_ext <<_ACEOF
40163 /* end confdefs.h.  */
40164 #include <alloca.h>
40165 int
40166 main ()
40167 {
40168 char *p = (char *) alloca (2 * sizeof (int));
40169                           if (p) return 0;
40170   ;
40171   return 0;
40172 }
40173 _ACEOF
40174 rm -f conftest.$ac_objext conftest$ac_exeext
40175 if { (ac_try="$ac_link"
40176 case "(($ac_try" in
40177   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40178   *) ac_try_echo=$ac_try;;
40179 esac
40180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40181   (eval "$ac_link") 2>conftest.er1
40182   ac_status=$?
40183   grep -v '^ *+' conftest.er1 >conftest.err
40184   rm -f conftest.er1
40185   cat conftest.err >&5
40186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40187   (exit $ac_status); } && {
40188          test -z "$ac_c_werror_flag" ||
40189          test ! -s conftest.err
40190        } && test -s conftest$ac_exeext &&
40191        $as_test_x conftest$ac_exeext; then
40192   ac_cv_working_alloca_h=yes
40193 else
40194   echo "$as_me: failed program was:" >&5
40195 sed 's/^/| /' conftest.$ac_ext >&5
40196
40197         ac_cv_working_alloca_h=no
40198 fi
40199
40200 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40201       conftest$ac_exeext conftest.$ac_ext
40202 fi
40203 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
40204 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
40205 if test $ac_cv_working_alloca_h = yes; then
40206
40207 cat >>confdefs.h <<\_ACEOF
40208 #define HAVE_ALLOCA_H 1
40209 _ACEOF
40210
40211 fi
40212
40213 { echo "$as_me:$LINENO: checking for alloca" >&5
40214 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
40215 if test "${ac_cv_func_alloca_works+set}" = set; then
40216   echo $ECHO_N "(cached) $ECHO_C" >&6
40217 else
40218   cat >conftest.$ac_ext <<_ACEOF
40219 /* confdefs.h.  */
40220 _ACEOF
40221 cat confdefs.h >>conftest.$ac_ext
40222 cat >>conftest.$ac_ext <<_ACEOF
40223 /* end confdefs.h.  */
40224 #ifdef __GNUC__
40225 # define alloca __builtin_alloca
40226 #else
40227 # ifdef _MSC_VER
40228 #  include <malloc.h>
40229 #  define alloca _alloca
40230 # else
40231 #  ifdef HAVE_ALLOCA_H
40232 #   include <alloca.h>
40233 #  else
40234 #   ifdef _AIX
40235  #pragma alloca
40236 #   else
40237 #    ifndef alloca /* predefined by HP cc +Olibcalls */
40238 char *alloca ();
40239 #    endif
40240 #   endif
40241 #  endif
40242 # endif
40243 #endif
40244
40245 int
40246 main ()
40247 {
40248 char *p = (char *) alloca (1);
40249                                     if (p) return 0;
40250   ;
40251   return 0;
40252 }
40253 _ACEOF
40254 rm -f conftest.$ac_objext conftest$ac_exeext
40255 if { (ac_try="$ac_link"
40256 case "(($ac_try" in
40257   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40258   *) ac_try_echo=$ac_try;;
40259 esac
40260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40261   (eval "$ac_link") 2>conftest.er1
40262   ac_status=$?
40263   grep -v '^ *+' conftest.er1 >conftest.err
40264   rm -f conftest.er1
40265   cat conftest.err >&5
40266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40267   (exit $ac_status); } && {
40268          test -z "$ac_c_werror_flag" ||
40269          test ! -s conftest.err
40270        } && test -s conftest$ac_exeext &&
40271        $as_test_x conftest$ac_exeext; then
40272   ac_cv_func_alloca_works=yes
40273 else
40274   echo "$as_me: failed program was:" >&5
40275 sed 's/^/| /' conftest.$ac_ext >&5
40276
40277         ac_cv_func_alloca_works=no
40278 fi
40279
40280 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40281       conftest$ac_exeext conftest.$ac_ext
40282 fi
40283 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
40284 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
40285
40286 if test $ac_cv_func_alloca_works = yes; then
40287
40288 cat >>confdefs.h <<\_ACEOF
40289 #define HAVE_ALLOCA 1
40290 _ACEOF
40291
40292 else
40293   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
40294 # that cause trouble.  Some versions do not even contain alloca or
40295 # contain a buggy version.  If you still want to use their alloca,
40296 # use ar to extract alloca.o from them instead of compiling alloca.c.
40297
40298 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
40299
40300 cat >>confdefs.h <<\_ACEOF
40301 #define C_ALLOCA 1
40302 _ACEOF
40303
40304
40305 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
40306 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
40307 if test "${ac_cv_os_cray+set}" = set; then
40308   echo $ECHO_N "(cached) $ECHO_C" >&6
40309 else
40310   cat >conftest.$ac_ext <<_ACEOF
40311 /* confdefs.h.  */
40312 _ACEOF
40313 cat confdefs.h >>conftest.$ac_ext
40314 cat >>conftest.$ac_ext <<_ACEOF
40315 /* end confdefs.h.  */
40316 #if defined CRAY && ! defined CRAY2
40317 webecray
40318 #else
40319 wenotbecray
40320 #endif
40321
40322 _ACEOF
40323 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40324   $EGREP "webecray" >/dev/null 2>&1; then
40325   ac_cv_os_cray=yes
40326 else
40327   ac_cv_os_cray=no
40328 fi
40329 rm -f conftest*
40330
40331 fi
40332 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
40333 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
40334 if test $ac_cv_os_cray = yes; then
40335   for ac_func in _getb67 GETB67 getb67; do
40336     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40337 { echo "$as_me:$LINENO: checking for $ac_func" >&5
40338 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
40339 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
40340   echo $ECHO_N "(cached) $ECHO_C" >&6
40341 else
40342   cat >conftest.$ac_ext <<_ACEOF
40343 /* confdefs.h.  */
40344 _ACEOF
40345 cat confdefs.h >>conftest.$ac_ext
40346 cat >>conftest.$ac_ext <<_ACEOF
40347 /* end confdefs.h.  */
40348 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40349    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40350 #define $ac_func innocuous_$ac_func
40351
40352 /* System header to define __stub macros and hopefully few prototypes,
40353     which can conflict with char $ac_func (); below.
40354     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40355     <limits.h> exists even on freestanding compilers.  */
40356
40357 #ifdef __STDC__
40358 # include <limits.h>
40359 #else
40360 # include <assert.h>
40361 #endif
40362
40363 #undef $ac_func
40364
40365 /* Override any GCC internal prototype to avoid an error.
40366    Use char because int might match the return type of a GCC
40367    builtin and then its argument prototype would still apply.  */
40368 #ifdef __cplusplus
40369 extern "C"
40370 #endif
40371 char $ac_func ();
40372 /* The GNU C library defines this for functions which it implements
40373     to always fail with ENOSYS.  Some functions are actually named
40374     something starting with __ and the normal name is an alias.  */
40375 #if defined __stub_$ac_func || defined __stub___$ac_func
40376 choke me
40377 #endif
40378
40379 int
40380 main ()
40381 {
40382 return $ac_func ();
40383   ;
40384   return 0;
40385 }
40386 _ACEOF
40387 rm -f conftest.$ac_objext conftest$ac_exeext
40388 if { (ac_try="$ac_link"
40389 case "(($ac_try" in
40390   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40391   *) ac_try_echo=$ac_try;;
40392 esac
40393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40394   (eval "$ac_link") 2>conftest.er1
40395   ac_status=$?
40396   grep -v '^ *+' conftest.er1 >conftest.err
40397   rm -f conftest.er1
40398   cat conftest.err >&5
40399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40400   (exit $ac_status); } && {
40401          test -z "$ac_c_werror_flag" ||
40402          test ! -s conftest.err
40403        } && test -s conftest$ac_exeext &&
40404        $as_test_x conftest$ac_exeext; then
40405   eval "$as_ac_var=yes"
40406 else
40407   echo "$as_me: failed program was:" >&5
40408 sed 's/^/| /' conftest.$ac_ext >&5
40409
40410         eval "$as_ac_var=no"
40411 fi
40412
40413 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40414       conftest$ac_exeext conftest.$ac_ext
40415 fi
40416 ac_res=`eval echo '${'$as_ac_var'}'`
40417                { echo "$as_me:$LINENO: result: $ac_res" >&5
40418 echo "${ECHO_T}$ac_res" >&6; }
40419 if test `eval echo '${'$as_ac_var'}'` = yes; then
40420
40421 cat >>confdefs.h <<_ACEOF
40422 #define CRAY_STACKSEG_END $ac_func
40423 _ACEOF
40424
40425     break
40426 fi
40427
40428   done
40429 fi
40430
40431 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
40432 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
40433 if test "${ac_cv_c_stack_direction+set}" = set; then
40434   echo $ECHO_N "(cached) $ECHO_C" >&6
40435 else
40436   if test "$cross_compiling" = yes; then
40437   ac_cv_c_stack_direction=0
40438 else
40439   cat >conftest.$ac_ext <<_ACEOF
40440 /* confdefs.h.  */
40441 _ACEOF
40442 cat confdefs.h >>conftest.$ac_ext
40443 cat >>conftest.$ac_ext <<_ACEOF
40444 /* end confdefs.h.  */
40445 $ac_includes_default
40446 int
40447 find_stack_direction ()
40448 {
40449   static char *addr = 0;
40450   auto char dummy;
40451   if (addr == 0)
40452     {
40453       addr = &dummy;
40454       return find_stack_direction ();
40455     }
40456   else
40457     return (&dummy > addr) ? 1 : -1;
40458 }
40459
40460 int
40461 main ()
40462 {
40463   return find_stack_direction () < 0;
40464 }
40465 _ACEOF
40466 rm -f conftest$ac_exeext
40467 if { (ac_try="$ac_link"
40468 case "(($ac_try" in
40469   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40470   *) ac_try_echo=$ac_try;;
40471 esac
40472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40473   (eval "$ac_link") 2>&5
40474   ac_status=$?
40475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40476   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
40477   { (case "(($ac_try" in
40478   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40479   *) ac_try_echo=$ac_try;;
40480 esac
40481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40482   (eval "$ac_try") 2>&5
40483   ac_status=$?
40484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40485   (exit $ac_status); }; }; then
40486   ac_cv_c_stack_direction=1
40487 else
40488   echo "$as_me: program exited with status $ac_status" >&5
40489 echo "$as_me: failed program was:" >&5
40490 sed 's/^/| /' conftest.$ac_ext >&5
40491
40492 ( exit $ac_status )
40493 ac_cv_c_stack_direction=-1
40494 fi
40495 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
40496 fi
40497
40498
40499 fi
40500 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
40501 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
40502
40503 cat >>confdefs.h <<_ACEOF
40504 #define STACK_DIRECTION $ac_cv_c_stack_direction
40505 _ACEOF
40506
40507
40508 fi
40509
40510 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
40511 # -lseq on Dynix/PTX, -lgen on Unixware.
40512 { echo "$as_me:$LINENO: checking for library containing getmntent" >&5
40513 echo $ECHO_N "checking for library containing getmntent... $ECHO_C" >&6; }
40514 if test "${ac_cv_search_getmntent+set}" = set; then
40515   echo $ECHO_N "(cached) $ECHO_C" >&6
40516 else
40517   ac_func_search_save_LIBS=$LIBS
40518 cat >conftest.$ac_ext <<_ACEOF
40519 /* confdefs.h.  */
40520 _ACEOF
40521 cat confdefs.h >>conftest.$ac_ext
40522 cat >>conftest.$ac_ext <<_ACEOF
40523 /* end confdefs.h.  */
40524
40525 /* Override any GCC internal prototype to avoid an error.
40526    Use char because int might match the return type of a GCC
40527    builtin and then its argument prototype would still apply.  */
40528 #ifdef __cplusplus
40529 extern "C"
40530 #endif
40531 char getmntent ();
40532 int
40533 main ()
40534 {
40535 return getmntent ();
40536   ;
40537   return 0;
40538 }
40539 _ACEOF
40540 for ac_lib in '' sun seq gen; do
40541   if test -z "$ac_lib"; then
40542     ac_res="none required"
40543   else
40544     ac_res=-l$ac_lib
40545     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
40546   fi
40547   rm -f conftest.$ac_objext conftest$ac_exeext
40548 if { (ac_try="$ac_link"
40549 case "(($ac_try" in
40550   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40551   *) ac_try_echo=$ac_try;;
40552 esac
40553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40554   (eval "$ac_link") 2>conftest.er1
40555   ac_status=$?
40556   grep -v '^ *+' conftest.er1 >conftest.err
40557   rm -f conftest.er1
40558   cat conftest.err >&5
40559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40560   (exit $ac_status); } && {
40561          test -z "$ac_c_werror_flag" ||
40562          test ! -s conftest.err
40563        } && test -s conftest$ac_exeext &&
40564        $as_test_x conftest$ac_exeext; then
40565   ac_cv_search_getmntent=$ac_res
40566 else
40567   echo "$as_me: failed program was:" >&5
40568 sed 's/^/| /' conftest.$ac_ext >&5
40569
40570
40571 fi
40572
40573 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40574       conftest$ac_exeext
40575   if test "${ac_cv_search_getmntent+set}" = set; then
40576   break
40577 fi
40578 done
40579 if test "${ac_cv_search_getmntent+set}" = set; then
40580   :
40581 else
40582   ac_cv_search_getmntent=no
40583 fi
40584 rm conftest.$ac_ext
40585 LIBS=$ac_func_search_save_LIBS
40586 fi
40587 { echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5
40588 echo "${ECHO_T}$ac_cv_search_getmntent" >&6; }
40589 ac_res=$ac_cv_search_getmntent
40590 if test "$ac_res" != no; then
40591   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
40592   ac_cv_func_getmntent=yes
40593
40594 cat >>confdefs.h <<\_ACEOF
40595 #define HAVE_GETMNTENT 1
40596 _ACEOF
40597
40598 else
40599   ac_cv_func_getmntent=no
40600 fi
40601
40602
40603
40604 for ac_func in getmntinfo
40605 do
40606 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40607 { echo "$as_me:$LINENO: checking for $ac_func" >&5
40608 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
40609 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
40610   echo $ECHO_N "(cached) $ECHO_C" >&6
40611 else
40612   cat >conftest.$ac_ext <<_ACEOF
40613 /* confdefs.h.  */
40614 _ACEOF
40615 cat confdefs.h >>conftest.$ac_ext
40616 cat >>conftest.$ac_ext <<_ACEOF
40617 /* end confdefs.h.  */
40618 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40619    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40620 #define $ac_func innocuous_$ac_func
40621
40622 /* System header to define __stub macros and hopefully few prototypes,
40623     which can conflict with char $ac_func (); below.
40624     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40625     <limits.h> exists even on freestanding compilers.  */
40626
40627 #ifdef __STDC__
40628 # include <limits.h>
40629 #else
40630 # include <assert.h>
40631 #endif
40632
40633 #undef $ac_func
40634
40635 /* Override any GCC internal prototype to avoid an error.
40636    Use char because int might match the return type of a GCC
40637    builtin and then its argument prototype would still apply.  */
40638 #ifdef __cplusplus
40639 extern "C"
40640 #endif
40641 char $ac_func ();
40642 /* The GNU C library defines this for functions which it implements
40643     to always fail with ENOSYS.  Some functions are actually named
40644     something starting with __ and the normal name is an alias.  */
40645 #if defined __stub_$ac_func || defined __stub___$ac_func
40646 choke me
40647 #endif
40648
40649 int
40650 main ()
40651 {
40652 return $ac_func ();
40653   ;
40654   return 0;
40655 }
40656 _ACEOF
40657 rm -f conftest.$ac_objext conftest$ac_exeext
40658 if { (ac_try="$ac_link"
40659 case "(($ac_try" in
40660   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40661   *) ac_try_echo=$ac_try;;
40662 esac
40663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40664   (eval "$ac_link") 2>conftest.er1
40665   ac_status=$?
40666   grep -v '^ *+' conftest.er1 >conftest.err
40667   rm -f conftest.er1
40668   cat conftest.err >&5
40669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40670   (exit $ac_status); } && {
40671          test -z "$ac_c_werror_flag" ||
40672          test ! -s conftest.err
40673        } && test -s conftest$ac_exeext &&
40674        $as_test_x conftest$ac_exeext; then
40675   eval "$as_ac_var=yes"
40676 else
40677   echo "$as_me: failed program was:" >&5
40678 sed 's/^/| /' conftest.$ac_ext >&5
40679
40680         eval "$as_ac_var=no"
40681 fi
40682
40683 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40684       conftest$ac_exeext conftest.$ac_ext
40685 fi
40686 ac_res=`eval echo '${'$as_ac_var'}'`
40687                { echo "$as_me:$LINENO: result: $ac_res" >&5
40688 echo "${ECHO_T}$ac_res" >&6; }
40689 if test `eval echo '${'$as_ac_var'}'` = yes; then
40690   cat >>confdefs.h <<_ACEOF
40691 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40692 _ACEOF
40693  cat >>confdefs.h <<\_ACEOF
40694 #define HAVE_GETMNTINFO 1
40695 _ACEOF
40696
40697 fi
40698 done
40699
40700 { echo "$as_me:$LINENO: checking whether closedir returns void" >&5
40701 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6; }
40702 if test "${ac_cv_func_closedir_void+set}" = set; then
40703   echo $ECHO_N "(cached) $ECHO_C" >&6
40704 else
40705   if test "$cross_compiling" = yes; then
40706   ac_cv_func_closedir_void=yes
40707 else
40708   cat >conftest.$ac_ext <<_ACEOF
40709 /* confdefs.h.  */
40710 _ACEOF
40711 cat confdefs.h >>conftest.$ac_ext
40712 cat >>conftest.$ac_ext <<_ACEOF
40713 /* end confdefs.h.  */
40714 $ac_includes_default
40715 #include <$ac_header_dirent>
40716 #ifndef __cplusplus
40717 int closedir ();
40718 #endif
40719
40720 int
40721 main ()
40722 {
40723 return closedir (opendir (".")) != 0;
40724   ;
40725   return 0;
40726 }
40727 _ACEOF
40728 rm -f conftest$ac_exeext
40729 if { (ac_try="$ac_link"
40730 case "(($ac_try" in
40731   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40732   *) ac_try_echo=$ac_try;;
40733 esac
40734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40735   (eval "$ac_link") 2>&5
40736   ac_status=$?
40737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40738   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
40739   { (case "(($ac_try" in
40740   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40741   *) ac_try_echo=$ac_try;;
40742 esac
40743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40744   (eval "$ac_try") 2>&5
40745   ac_status=$?
40746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40747   (exit $ac_status); }; }; then
40748   ac_cv_func_closedir_void=no
40749 else
40750   echo "$as_me: program exited with status $ac_status" >&5
40751 echo "$as_me: failed program was:" >&5
40752 sed 's/^/| /' conftest.$ac_ext >&5
40753
40754 ( exit $ac_status )
40755 ac_cv_func_closedir_void=yes
40756 fi
40757 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
40758 fi
40759
40760
40761 fi
40762 { echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
40763 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; }
40764 if test $ac_cv_func_closedir_void = yes; then
40765
40766 cat >>confdefs.h <<\_ACEOF
40767 #define CLOSEDIR_VOID 1
40768 _ACEOF
40769
40770 fi
40771
40772 { echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
40773 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6; }
40774 if test "${ac_cv_func_setpgrp_void+set}" = set; then
40775   echo $ECHO_N "(cached) $ECHO_C" >&6
40776 else
40777   if test "$cross_compiling" = yes; then
40778   { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
40779 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
40780    { (exit 1); exit 1; }; }
40781 else
40782   cat >conftest.$ac_ext <<_ACEOF
40783 /* confdefs.h.  */
40784 _ACEOF
40785 cat confdefs.h >>conftest.$ac_ext
40786 cat >>conftest.$ac_ext <<_ACEOF
40787 /* end confdefs.h.  */
40788 $ac_includes_default
40789 int
40790 main ()
40791 {
40792 /* If this system has a BSD-style setpgrp which takes arguments,
40793   setpgrp(1, 1) will fail with ESRCH and return -1, in that case
40794   exit successfully. */
40795   return setpgrp (1,1) != -1;
40796   ;
40797   return 0;
40798 }
40799 _ACEOF
40800 rm -f conftest$ac_exeext
40801 if { (ac_try="$ac_link"
40802 case "(($ac_try" in
40803   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40804   *) ac_try_echo=$ac_try;;
40805 esac
40806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40807   (eval "$ac_link") 2>&5
40808   ac_status=$?
40809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40810   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
40811   { (case "(($ac_try" in
40812   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40813   *) ac_try_echo=$ac_try;;
40814 esac
40815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40816   (eval "$ac_try") 2>&5
40817   ac_status=$?
40818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40819   (exit $ac_status); }; }; then
40820   ac_cv_func_setpgrp_void=no
40821 else
40822   echo "$as_me: program exited with status $ac_status" >&5
40823 echo "$as_me: failed program was:" >&5
40824 sed 's/^/| /' conftest.$ac_ext >&5
40825
40826 ( exit $ac_status )
40827 ac_cv_func_setpgrp_void=yes
40828 fi
40829 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
40830 fi
40831
40832
40833 fi
40834 { echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
40835 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6; }
40836 if test $ac_cv_func_setpgrp_void = yes; then
40837
40838 cat >>confdefs.h <<\_ACEOF
40839 #define SETPGRP_VOID 1
40840 _ACEOF
40841
40842 fi
40843             # AC_FUNC_FNMATCH    dnl use local version
40844
40845 { echo "$as_me:$LINENO: checking for gettext in -lintl" >&5
40846 echo $ECHO_N "checking for gettext in -lintl... $ECHO_C" >&6; }
40847 if test "${ac_cv_lib_intl_gettext+set}" = set; then
40848   echo $ECHO_N "(cached) $ECHO_C" >&6
40849 else
40850   ac_check_lib_save_LIBS=$LIBS
40851 LIBS="-lintl  $LIBS"
40852 cat >conftest.$ac_ext <<_ACEOF
40853 /* confdefs.h.  */
40854 _ACEOF
40855 cat confdefs.h >>conftest.$ac_ext
40856 cat >>conftest.$ac_ext <<_ACEOF
40857 /* end confdefs.h.  */
40858
40859 /* Override any GCC internal prototype to avoid an error.
40860    Use char because int might match the return type of a GCC
40861    builtin and then its argument prototype would still apply.  */
40862 #ifdef __cplusplus
40863 extern "C"
40864 #endif
40865 char gettext ();
40866 int
40867 main ()
40868 {
40869 return gettext ();
40870   ;
40871   return 0;
40872 }
40873 _ACEOF
40874 rm -f conftest.$ac_objext conftest$ac_exeext
40875 if { (ac_try="$ac_link"
40876 case "(($ac_try" in
40877   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40878   *) ac_try_echo=$ac_try;;
40879 esac
40880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40881   (eval "$ac_link") 2>conftest.er1
40882   ac_status=$?
40883   grep -v '^ *+' conftest.er1 >conftest.err
40884   rm -f conftest.er1
40885   cat conftest.err >&5
40886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40887   (exit $ac_status); } && {
40888          test -z "$ac_c_werror_flag" ||
40889          test ! -s conftest.err
40890        } && test -s conftest$ac_exeext &&
40891        $as_test_x conftest$ac_exeext; then
40892   ac_cv_lib_intl_gettext=yes
40893 else
40894   echo "$as_me: failed program was:" >&5
40895 sed 's/^/| /' conftest.$ac_ext >&5
40896
40897         ac_cv_lib_intl_gettext=no
40898 fi
40899
40900 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40901       conftest$ac_exeext conftest.$ac_ext
40902 LIBS=$ac_check_lib_save_LIBS
40903 fi
40904 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_gettext" >&5
40905 echo "${ECHO_T}$ac_cv_lib_intl_gettext" >&6; }
40906 if test $ac_cv_lib_intl_gettext = yes; then
40907   LIBS="$LIBS -lintl"
40908 fi
40909
40910
40911
40912 { echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
40913 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6; }
40914 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
40915   echo $ECHO_N "(cached) $ECHO_C" >&6
40916 else
40917   ac_check_lib_save_LIBS=$LIBS
40918 LIBS="-lsun  $LIBS"
40919 cat >conftest.$ac_ext <<_ACEOF
40920 /* confdefs.h.  */
40921 _ACEOF
40922 cat confdefs.h >>conftest.$ac_ext
40923 cat >>conftest.$ac_ext <<_ACEOF
40924 /* end confdefs.h.  */
40925
40926 /* Override any GCC internal prototype to avoid an error.
40927    Use char because int might match the return type of a GCC
40928    builtin and then its argument prototype would still apply.  */
40929 #ifdef __cplusplus
40930 extern "C"
40931 #endif
40932 char getpwnam ();
40933 int
40934 main ()
40935 {
40936 return getpwnam ();
40937   ;
40938   return 0;
40939 }
40940 _ACEOF
40941 rm -f conftest.$ac_objext conftest$ac_exeext
40942 if { (ac_try="$ac_link"
40943 case "(($ac_try" in
40944   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40945   *) ac_try_echo=$ac_try;;
40946 esac
40947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40948   (eval "$ac_link") 2>conftest.er1
40949   ac_status=$?
40950   grep -v '^ *+' conftest.er1 >conftest.err
40951   rm -f conftest.er1
40952   cat conftest.err >&5
40953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40954   (exit $ac_status); } && {
40955          test -z "$ac_c_werror_flag" ||
40956          test ! -s conftest.err
40957        } && test -s conftest$ac_exeext &&
40958        $as_test_x conftest$ac_exeext; then
40959   ac_cv_lib_sun_getpwnam=yes
40960 else
40961   echo "$as_me: failed program was:" >&5
40962 sed 's/^/| /' conftest.$ac_ext >&5
40963
40964         ac_cv_lib_sun_getpwnam=no
40965 fi
40966
40967 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40968       conftest$ac_exeext conftest.$ac_ext
40969 LIBS=$ac_check_lib_save_LIBS
40970 fi
40971 { echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
40972 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6; }
40973 if test $ac_cv_lib_sun_getpwnam = yes; then
40974   cat >>confdefs.h <<_ACEOF
40975 #define HAVE_LIBSUN 1
40976 _ACEOF
40977
40978   LIBS="-lsun $LIBS"
40979
40980 fi
40981
40982
40983
40984 for ac_header in zlib.h
40985 do
40986 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
40987 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40988   { echo "$as_me:$LINENO: checking for $ac_header" >&5
40989 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
40990 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40991   echo $ECHO_N "(cached) $ECHO_C" >&6
40992 fi
40993 ac_res=`eval echo '${'$as_ac_Header'}'`
40994                { echo "$as_me:$LINENO: result: $ac_res" >&5
40995 echo "${ECHO_T}$ac_res" >&6; }
40996 else
40997   # Is the header compilable?
40998 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
40999 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
41000 cat >conftest.$ac_ext <<_ACEOF
41001 /* confdefs.h.  */
41002 _ACEOF
41003 cat confdefs.h >>conftest.$ac_ext
41004 cat >>conftest.$ac_ext <<_ACEOF
41005 /* end confdefs.h.  */
41006 $ac_includes_default
41007 #include <$ac_header>
41008 _ACEOF
41009 rm -f conftest.$ac_objext
41010 if { (ac_try="$ac_compile"
41011 case "(($ac_try" in
41012   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41013   *) ac_try_echo=$ac_try;;
41014 esac
41015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41016   (eval "$ac_compile") 2>conftest.er1
41017   ac_status=$?
41018   grep -v '^ *+' conftest.er1 >conftest.err
41019   rm -f conftest.er1
41020   cat conftest.err >&5
41021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41022   (exit $ac_status); } && {
41023          test -z "$ac_c_werror_flag" ||
41024          test ! -s conftest.err
41025        } && test -s conftest.$ac_objext; then
41026   ac_header_compiler=yes
41027 else
41028   echo "$as_me: failed program was:" >&5
41029 sed 's/^/| /' conftest.$ac_ext >&5
41030
41031         ac_header_compiler=no
41032 fi
41033
41034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41035 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
41036 echo "${ECHO_T}$ac_header_compiler" >&6; }
41037
41038 # Is the header present?
41039 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
41040 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
41041 cat >conftest.$ac_ext <<_ACEOF
41042 /* confdefs.h.  */
41043 _ACEOF
41044 cat confdefs.h >>conftest.$ac_ext
41045 cat >>conftest.$ac_ext <<_ACEOF
41046 /* end confdefs.h.  */
41047 #include <$ac_header>
41048 _ACEOF
41049 if { (ac_try="$ac_cpp conftest.$ac_ext"
41050 case "(($ac_try" in
41051   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41052   *) ac_try_echo=$ac_try;;
41053 esac
41054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41055   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
41056   ac_status=$?
41057   grep -v '^ *+' conftest.er1 >conftest.err
41058   rm -f conftest.er1
41059   cat conftest.err >&5
41060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41061   (exit $ac_status); } >/dev/null && {
41062          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
41063          test ! -s conftest.err
41064        }; then
41065   ac_header_preproc=yes
41066 else
41067   echo "$as_me: failed program was:" >&5
41068 sed 's/^/| /' conftest.$ac_ext >&5
41069
41070   ac_header_preproc=no
41071 fi
41072
41073 rm -f conftest.err conftest.$ac_ext
41074 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
41075 echo "${ECHO_T}$ac_header_preproc" >&6; }
41076
41077 # So?  What about this header?
41078 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
41079   yes:no: )
41080     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
41081 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
41082     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
41083 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
41084     ac_header_preproc=yes
41085     ;;
41086   no:yes:* )
41087     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
41088 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
41089     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
41090 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
41091     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
41092 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
41093     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
41094 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
41095     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
41096 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
41097     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
41098 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
41099
41100     ;;
41101 esac
41102 { echo "$as_me:$LINENO: checking for $ac_header" >&5
41103 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
41104 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
41105   echo $ECHO_N "(cached) $ECHO_C" >&6
41106 else
41107   eval "$as_ac_Header=\$ac_header_preproc"
41108 fi
41109 ac_res=`eval echo '${'$as_ac_Header'}'`
41110                { echo "$as_me:$LINENO: result: $ac_res" >&5
41111 echo "${ECHO_T}$ac_res" >&6; }
41112
41113 fi
41114 if test `eval echo '${'$as_ac_Header'}'` = yes; then
41115   cat >>confdefs.h <<_ACEOF
41116 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
41117 _ACEOF
41118
41119 fi
41120
41121 done
41122
41123 { echo "$as_me:$LINENO: checking for deflate in -lz" >&5
41124 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6; }
41125 if test "${ac_cv_lib_z_deflate+set}" = set; then
41126   echo $ECHO_N "(cached) $ECHO_C" >&6
41127 else
41128   ac_check_lib_save_LIBS=$LIBS
41129 LIBS="-lz  $LIBS"
41130 cat >conftest.$ac_ext <<_ACEOF
41131 /* confdefs.h.  */
41132 _ACEOF
41133 cat confdefs.h >>conftest.$ac_ext
41134 cat >>conftest.$ac_ext <<_ACEOF
41135 /* end confdefs.h.  */
41136
41137 /* Override any GCC internal prototype to avoid an error.
41138    Use char because int might match the return type of a GCC
41139    builtin and then its argument prototype would still apply.  */
41140 #ifdef __cplusplus
41141 extern "C"
41142 #endif
41143 char deflate ();
41144 int
41145 main ()
41146 {
41147 return deflate ();
41148   ;
41149   return 0;
41150 }
41151 _ACEOF
41152 rm -f conftest.$ac_objext conftest$ac_exeext
41153 if { (ac_try="$ac_link"
41154 case "(($ac_try" in
41155   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41156   *) ac_try_echo=$ac_try;;
41157 esac
41158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41159   (eval "$ac_link") 2>conftest.er1
41160   ac_status=$?
41161   grep -v '^ *+' conftest.er1 >conftest.err
41162   rm -f conftest.er1
41163   cat conftest.err >&5
41164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41165   (exit $ac_status); } && {
41166          test -z "$ac_c_werror_flag" ||
41167          test ! -s conftest.err
41168        } && test -s conftest$ac_exeext &&
41169        $as_test_x conftest$ac_exeext; then
41170   ac_cv_lib_z_deflate=yes
41171 else
41172   echo "$as_me: failed program was:" >&5
41173 sed 's/^/| /' conftest.$ac_ext >&5
41174
41175         ac_cv_lib_z_deflate=no
41176 fi
41177
41178 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41179       conftest$ac_exeext conftest.$ac_ext
41180 LIBS=$ac_check_lib_save_LIBS
41181 fi
41182 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
41183 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6; }
41184 if test $ac_cv_lib_z_deflate = yes; then
41185   ZLIBS="-lz"
41186 fi
41187
41188 have_zlib=no
41189 if test x$ZLIBS = x-lz; then
41190    cat >>confdefs.h <<\_ACEOF
41191 #define HAVE_LIBZ 1
41192 _ACEOF
41193
41194    have_zlib=yes
41195 fi
41196
41197
41198 AFS_CFLAGS=""
41199 AFS_LIBS=""
41200 support_afs=auto
41201 # Check whether --enable-afs was given.
41202 if test "${enable_afs+set}" = set; then
41203   enableval=$enable_afs;
41204        if test x$enableval = xyes; then
41205           support_afs=yes
41206        elif test x$enableval = xno; then
41207           support_afs=no
41208        fi
41209
41210
41211 fi
41212
41213
41214 have_afs=no
41215 if test x$support_afs = xyes -o x$support_afs = xauto; then
41216
41217 # Check whether --with-afsdir was given.
41218 if test "${with_afsdir+set}" = set; then
41219   withval=$with_afsdir; with_afsdir=$withval
41220
41221 fi
41222
41223
41224             if test x$with_afsdir = x; then
41225       for root in /usr /usr/local; do
41226          if test -d ${root}/include/afs/ ; then
41227             with_afsdir=${root}
41228             break
41229          fi
41230       done
41231    fi
41232
41233    AFS_CFLAGS="-I${with_afsdir}/include"
41234
41235    saved_CFLAGS="${CFLAGS}"
41236    CFLAGS="${AFS_CFLAGS} ${saved_CFLAGS}"
41237
41238
41239 for ac_header in afs/stds.h
41240 do
41241 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
41242 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
41243   { echo "$as_me:$LINENO: checking for $ac_header" >&5
41244 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
41245 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
41246   echo $ECHO_N "(cached) $ECHO_C" >&6
41247 fi
41248 ac_res=`eval echo '${'$as_ac_Header'}'`
41249                { echo "$as_me:$LINENO: result: $ac_res" >&5
41250 echo "${ECHO_T}$ac_res" >&6; }
41251 else
41252   # Is the header compilable?
41253 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
41254 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
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 $ac_includes_default
41262 #include <$ac_header>
41263 _ACEOF
41264 rm -f conftest.$ac_objext
41265 if { (ac_try="$ac_compile"
41266 case "(($ac_try" in
41267   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41268   *) ac_try_echo=$ac_try;;
41269 esac
41270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41271   (eval "$ac_compile") 2>conftest.er1
41272   ac_status=$?
41273   grep -v '^ *+' conftest.er1 >conftest.err
41274   rm -f conftest.er1
41275   cat conftest.err >&5
41276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41277   (exit $ac_status); } && {
41278          test -z "$ac_c_werror_flag" ||
41279          test ! -s conftest.err
41280        } && test -s conftest.$ac_objext; then
41281   ac_header_compiler=yes
41282 else
41283   echo "$as_me: failed program was:" >&5
41284 sed 's/^/| /' conftest.$ac_ext >&5
41285
41286         ac_header_compiler=no
41287 fi
41288
41289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41290 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
41291 echo "${ECHO_T}$ac_header_compiler" >&6; }
41292
41293 # Is the header present?
41294 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
41295 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
41296 cat >conftest.$ac_ext <<_ACEOF
41297 /* confdefs.h.  */
41298 _ACEOF
41299 cat confdefs.h >>conftest.$ac_ext
41300 cat >>conftest.$ac_ext <<_ACEOF
41301 /* end confdefs.h.  */
41302 #include <$ac_header>
41303 _ACEOF
41304 if { (ac_try="$ac_cpp conftest.$ac_ext"
41305 case "(($ac_try" in
41306   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41307   *) ac_try_echo=$ac_try;;
41308 esac
41309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41310   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
41311   ac_status=$?
41312   grep -v '^ *+' conftest.er1 >conftest.err
41313   rm -f conftest.er1
41314   cat conftest.err >&5
41315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41316   (exit $ac_status); } >/dev/null && {
41317          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
41318          test ! -s conftest.err
41319        }; then
41320   ac_header_preproc=yes
41321 else
41322   echo "$as_me: failed program was:" >&5
41323 sed 's/^/| /' conftest.$ac_ext >&5
41324
41325   ac_header_preproc=no
41326 fi
41327
41328 rm -f conftest.err conftest.$ac_ext
41329 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
41330 echo "${ECHO_T}$ac_header_preproc" >&6; }
41331
41332 # So?  What about this header?
41333 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
41334   yes:no: )
41335     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
41336 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
41337     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
41338 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
41339     ac_header_preproc=yes
41340     ;;
41341   no:yes:* )
41342     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
41343 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
41344     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
41345 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
41346     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
41347 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
41348     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
41349 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
41350     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
41351 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
41352     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
41353 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
41354
41355     ;;
41356 esac
41357 { echo "$as_me:$LINENO: checking for $ac_header" >&5
41358 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
41359 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
41360   echo $ECHO_N "(cached) $ECHO_C" >&6
41361 else
41362   eval "$as_ac_Header=\$ac_header_preproc"
41363 fi
41364 ac_res=`eval echo '${'$as_ac_Header'}'`
41365                { echo "$as_me:$LINENO: result: $ac_res" >&5
41366 echo "${ECHO_T}$ac_res" >&6; }
41367
41368 fi
41369 if test `eval echo '${'$as_ac_Header'}'` = yes; then
41370   cat >>confdefs.h <<_ACEOF
41371 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
41372 _ACEOF
41373
41374 fi
41375
41376 done
41377
41378
41379    CFLAGS="${saved_CFLAGS}"
41380
41381             for dir in ${with_afsdir}/lib ${with_afsdir}/lib/afs
41382    do
41383       for arch_type in .a .so
41384       do
41385          A=`test -f ${dir}/libsys${arch_type} && nm ${dir}/libsys${arch_type} | grep pioctl`
41386          pkg=$?
41387          if test $pkg = 0; then
41388             have_afs=yes
41389             AFS_LIBS="-L${dir} -lsys -lrx -llwp ${dir}/util.a"
41390             break
41391          fi
41392       done
41393    done
41394
41395    if test x$support_afs = xyes -a $have_afs != yes; then
41396       { { echo "$as_me:$LINENO: error: afs support explicitly enabled but no supported afs implementation found,
41397   please either load the afs libraries or rerun configure without --enable-afs" >&5
41398 echo "$as_me: error: afs support explicitly enabled but no supported afs implementation found,
41399   please either load the afs libraries or rerun configure without --enable-afs" >&2;}
41400    { (exit 1); exit 1; }; }
41401    else
41402       if test $have_afs = yes; then
41403
41404 cat >>confdefs.h <<\_ACEOF
41405 #define HAVE_AFS 1
41406 _ACEOF
41407
41408
41409 cat >>confdefs.h <<\_ACEOF
41410 #define HAVE_AFS_ACL 1
41411 _ACEOF
41412
41413       fi
41414    fi
41415 fi
41416
41417
41418
41419
41420 support_acl=auto
41421 # Check whether --enable-acl was given.
41422 if test "${enable_acl+set}" = set; then
41423   enableval=$enable_acl;
41424        if test x$enableval = xyes; then
41425           support_acl=yes
41426        elif test x$enableval = xno; then
41427           support_acl=no
41428        fi
41429
41430
41431 fi
41432
41433
41434 have_acl=no
41435 have_extended_acl=no
41436 if test x$support_acl = xyes -o x$support_acl = xauto; then
41437    if test "${ac_cv_header_sys_acl_h+set}" = set; then
41438   { echo "$as_me:$LINENO: checking for sys/acl.h" >&5
41439 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6; }
41440 if test "${ac_cv_header_sys_acl_h+set}" = set; then
41441   echo $ECHO_N "(cached) $ECHO_C" >&6
41442 fi
41443 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
41444 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6; }
41445 else
41446   # Is the header compilable?
41447 { echo "$as_me:$LINENO: checking sys/acl.h usability" >&5
41448 echo $ECHO_N "checking sys/acl.h usability... $ECHO_C" >&6; }
41449 cat >conftest.$ac_ext <<_ACEOF
41450 /* confdefs.h.  */
41451 _ACEOF
41452 cat confdefs.h >>conftest.$ac_ext
41453 cat >>conftest.$ac_ext <<_ACEOF
41454 /* end confdefs.h.  */
41455 $ac_includes_default
41456 #include <sys/acl.h>
41457 _ACEOF
41458 rm -f conftest.$ac_objext
41459 if { (ac_try="$ac_compile"
41460 case "(($ac_try" in
41461   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41462   *) ac_try_echo=$ac_try;;
41463 esac
41464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41465   (eval "$ac_compile") 2>conftest.er1
41466   ac_status=$?
41467   grep -v '^ *+' conftest.er1 >conftest.err
41468   rm -f conftest.er1
41469   cat conftest.err >&5
41470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41471   (exit $ac_status); } && {
41472          test -z "$ac_c_werror_flag" ||
41473          test ! -s conftest.err
41474        } && test -s conftest.$ac_objext; then
41475   ac_header_compiler=yes
41476 else
41477   echo "$as_me: failed program was:" >&5
41478 sed 's/^/| /' conftest.$ac_ext >&5
41479
41480         ac_header_compiler=no
41481 fi
41482
41483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41484 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
41485 echo "${ECHO_T}$ac_header_compiler" >&6; }
41486
41487 # Is the header present?
41488 { echo "$as_me:$LINENO: checking sys/acl.h presence" >&5
41489 echo $ECHO_N "checking sys/acl.h presence... $ECHO_C" >&6; }
41490 cat >conftest.$ac_ext <<_ACEOF
41491 /* confdefs.h.  */
41492 _ACEOF
41493 cat confdefs.h >>conftest.$ac_ext
41494 cat >>conftest.$ac_ext <<_ACEOF
41495 /* end confdefs.h.  */
41496 #include <sys/acl.h>
41497 _ACEOF
41498 if { (ac_try="$ac_cpp conftest.$ac_ext"
41499 case "(($ac_try" in
41500   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41501   *) ac_try_echo=$ac_try;;
41502 esac
41503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41504   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
41505   ac_status=$?
41506   grep -v '^ *+' conftest.er1 >conftest.err
41507   rm -f conftest.er1
41508   cat conftest.err >&5
41509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41510   (exit $ac_status); } >/dev/null && {
41511          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
41512          test ! -s conftest.err
41513        }; then
41514   ac_header_preproc=yes
41515 else
41516   echo "$as_me: failed program was:" >&5
41517 sed 's/^/| /' conftest.$ac_ext >&5
41518
41519   ac_header_preproc=no
41520 fi
41521
41522 rm -f conftest.err conftest.$ac_ext
41523 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
41524 echo "${ECHO_T}$ac_header_preproc" >&6; }
41525
41526 # So?  What about this header?
41527 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
41528   yes:no: )
41529     { echo "$as_me:$LINENO: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&5
41530 echo "$as_me: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
41531     { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the compiler's result" >&5
41532 echo "$as_me: WARNING: sys/acl.h: proceeding with the compiler's result" >&2;}
41533     ac_header_preproc=yes
41534     ;;
41535   no:yes:* )
41536     { echo "$as_me:$LINENO: WARNING: sys/acl.h: present but cannot be compiled" >&5
41537 echo "$as_me: WARNING: sys/acl.h: present but cannot be compiled" >&2;}
41538     { echo "$as_me:$LINENO: WARNING: sys/acl.h:     check for missing prerequisite headers?" >&5
41539 echo "$as_me: WARNING: sys/acl.h:     check for missing prerequisite headers?" >&2;}
41540     { echo "$as_me:$LINENO: WARNING: sys/acl.h: see the Autoconf documentation" >&5
41541 echo "$as_me: WARNING: sys/acl.h: see the Autoconf documentation" >&2;}
41542     { echo "$as_me:$LINENO: WARNING: sys/acl.h:     section \"Present But Cannot Be Compiled\"" >&5
41543 echo "$as_me: WARNING: sys/acl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
41544     { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
41545 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
41546     { echo "$as_me:$LINENO: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&5
41547 echo "$as_me: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&2;}
41548
41549     ;;
41550 esac
41551 { echo "$as_me:$LINENO: checking for sys/acl.h" >&5
41552 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6; }
41553 if test "${ac_cv_header_sys_acl_h+set}" = set; then
41554   echo $ECHO_N "(cached) $ECHO_C" >&6
41555 else
41556   ac_cv_header_sys_acl_h=$ac_header_preproc
41557 fi
41558 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
41559 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6; }
41560
41561 fi
41562 if test $ac_cv_header_sys_acl_h = yes; then
41563
41564 cat >>confdefs.h <<\_ACEOF
41565 #define HAVE_SYS_ACL_H 1
41566 _ACEOF
41567
41568 fi
41569
41570
41571    { echo "$as_me:$LINENO: checking for acl_get_file" >&5
41572 echo $ECHO_N "checking for acl_get_file... $ECHO_C" >&6; }
41573 if test "${ac_cv_func_acl_get_file+set}" = set; then
41574   echo $ECHO_N "(cached) $ECHO_C" >&6
41575 else
41576   cat >conftest.$ac_ext <<_ACEOF
41577 /* confdefs.h.  */
41578 _ACEOF
41579 cat confdefs.h >>conftest.$ac_ext
41580 cat >>conftest.$ac_ext <<_ACEOF
41581 /* end confdefs.h.  */
41582 /* Define acl_get_file to an innocuous variant, in case <limits.h> declares acl_get_file.
41583    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41584 #define acl_get_file innocuous_acl_get_file
41585
41586 /* System header to define __stub macros and hopefully few prototypes,
41587     which can conflict with char acl_get_file (); below.
41588     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41589     <limits.h> exists even on freestanding compilers.  */
41590
41591 #ifdef __STDC__
41592 # include <limits.h>
41593 #else
41594 # include <assert.h>
41595 #endif
41596
41597 #undef acl_get_file
41598
41599 /* Override any GCC internal prototype to avoid an error.
41600    Use char because int might match the return type of a GCC
41601    builtin and then its argument prototype would still apply.  */
41602 #ifdef __cplusplus
41603 extern "C"
41604 #endif
41605 char acl_get_file ();
41606 /* The GNU C library defines this for functions which it implements
41607     to always fail with ENOSYS.  Some functions are actually named
41608     something starting with __ and the normal name is an alias.  */
41609 #if defined __stub_acl_get_file || defined __stub___acl_get_file
41610 choke me
41611 #endif
41612
41613 int
41614 main ()
41615 {
41616 return acl_get_file ();
41617   ;
41618   return 0;
41619 }
41620 _ACEOF
41621 rm -f conftest.$ac_objext conftest$ac_exeext
41622 if { (ac_try="$ac_link"
41623 case "(($ac_try" in
41624   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41625   *) ac_try_echo=$ac_try;;
41626 esac
41627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41628   (eval "$ac_link") 2>conftest.er1
41629   ac_status=$?
41630   grep -v '^ *+' conftest.er1 >conftest.err
41631   rm -f conftest.er1
41632   cat conftest.err >&5
41633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41634   (exit $ac_status); } && {
41635          test -z "$ac_c_werror_flag" ||
41636          test ! -s conftest.err
41637        } && test -s conftest$ac_exeext &&
41638        $as_test_x conftest$ac_exeext; then
41639   ac_cv_func_acl_get_file=yes
41640 else
41641   echo "$as_me: failed program was:" >&5
41642 sed 's/^/| /' conftest.$ac_ext >&5
41643
41644         ac_cv_func_acl_get_file=no
41645 fi
41646
41647 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41648       conftest$ac_exeext conftest.$ac_ext
41649 fi
41650 { echo "$as_me:$LINENO: result: $ac_cv_func_acl_get_file" >&5
41651 echo "${ECHO_T}$ac_cv_func_acl_get_file" >&6; }
41652 if test $ac_cv_func_acl_get_file = yes; then
41653
41654           have_acl=yes
41655
41656 else
41657
41658           { echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
41659 echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6; }
41660 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
41661   echo $ECHO_N "(cached) $ECHO_C" >&6
41662 else
41663   ac_check_lib_save_LIBS=$LIBS
41664 LIBS="-lacl  $LIBS"
41665 cat >conftest.$ac_ext <<_ACEOF
41666 /* confdefs.h.  */
41667 _ACEOF
41668 cat confdefs.h >>conftest.$ac_ext
41669 cat >>conftest.$ac_ext <<_ACEOF
41670 /* end confdefs.h.  */
41671
41672 /* Override any GCC internal prototype to avoid an error.
41673    Use char because int might match the return type of a GCC
41674    builtin and then its argument prototype would still apply.  */
41675 #ifdef __cplusplus
41676 extern "C"
41677 #endif
41678 char acl_get_file ();
41679 int
41680 main ()
41681 {
41682 return acl_get_file ();
41683   ;
41684   return 0;
41685 }
41686 _ACEOF
41687 rm -f conftest.$ac_objext conftest$ac_exeext
41688 if { (ac_try="$ac_link"
41689 case "(($ac_try" in
41690   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41691   *) ac_try_echo=$ac_try;;
41692 esac
41693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41694   (eval "$ac_link") 2>conftest.er1
41695   ac_status=$?
41696   grep -v '^ *+' conftest.er1 >conftest.err
41697   rm -f conftest.er1
41698   cat conftest.err >&5
41699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41700   (exit $ac_status); } && {
41701          test -z "$ac_c_werror_flag" ||
41702          test ! -s conftest.err
41703        } && test -s conftest$ac_exeext &&
41704        $as_test_x conftest$ac_exeext; then
41705   ac_cv_lib_acl_acl_get_file=yes
41706 else
41707   echo "$as_me: failed program was:" >&5
41708 sed 's/^/| /' conftest.$ac_ext >&5
41709
41710         ac_cv_lib_acl_acl_get_file=no
41711 fi
41712
41713 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41714       conftest$ac_exeext conftest.$ac_ext
41715 LIBS=$ac_check_lib_save_LIBS
41716 fi
41717 { echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
41718 echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6; }
41719 if test $ac_cv_lib_acl_acl_get_file = yes; then
41720
41721                  have_acl=yes;
41722                  if test $have_afs = yes; then
41723                                                                     if test -d /usr/lib64/; then
41724                        FDLIBS="-L/usr/lib64 -lacl $FDLIBS"
41725                     else
41726                        FDLIBS="-L/usr/lib -lacl $FDLIBS"
41727                     fi
41728                  else
41729                     FDLIBS="-lacl $FDLIBS"
41730                  fi
41731
41732 else
41733
41734                  { echo "$as_me:$LINENO: checking for acl_get_file in -lpacl" >&5
41735 echo $ECHO_N "checking for acl_get_file in -lpacl... $ECHO_C" >&6; }
41736 if test "${ac_cv_lib_pacl_acl_get_file+set}" = set; then
41737   echo $ECHO_N "(cached) $ECHO_C" >&6
41738 else
41739   ac_check_lib_save_LIBS=$LIBS
41740 LIBS="-lpacl  $LIBS"
41741 cat >conftest.$ac_ext <<_ACEOF
41742 /* confdefs.h.  */
41743 _ACEOF
41744 cat confdefs.h >>conftest.$ac_ext
41745 cat >>conftest.$ac_ext <<_ACEOF
41746 /* end confdefs.h.  */
41747
41748 /* Override any GCC internal prototype to avoid an error.
41749    Use char because int might match the return type of a GCC
41750    builtin and then its argument prototype would still apply.  */
41751 #ifdef __cplusplus
41752 extern "C"
41753 #endif
41754 char acl_get_file ();
41755 int
41756 main ()
41757 {
41758 return acl_get_file ();
41759   ;
41760   return 0;
41761 }
41762 _ACEOF
41763 rm -f conftest.$ac_objext conftest$ac_exeext
41764 if { (ac_try="$ac_link"
41765 case "(($ac_try" in
41766   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41767   *) ac_try_echo=$ac_try;;
41768 esac
41769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41770   (eval "$ac_link") 2>conftest.er1
41771   ac_status=$?
41772   grep -v '^ *+' conftest.er1 >conftest.err
41773   rm -f conftest.er1
41774   cat conftest.err >&5
41775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41776   (exit $ac_status); } && {
41777          test -z "$ac_c_werror_flag" ||
41778          test ! -s conftest.err
41779        } && test -s conftest$ac_exeext &&
41780        $as_test_x conftest$ac_exeext; then
41781   ac_cv_lib_pacl_acl_get_file=yes
41782 else
41783   echo "$as_me: failed program was:" >&5
41784 sed 's/^/| /' conftest.$ac_ext >&5
41785
41786         ac_cv_lib_pacl_acl_get_file=no
41787 fi
41788
41789 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41790       conftest$ac_exeext conftest.$ac_ext
41791 LIBS=$ac_check_lib_save_LIBS
41792 fi
41793 { echo "$as_me:$LINENO: result: $ac_cv_lib_pacl_acl_get_file" >&5
41794 echo "${ECHO_T}$ac_cv_lib_pacl_acl_get_file" >&6; }
41795 if test $ac_cv_lib_pacl_acl_get_file = yes; then
41796
41797                         have_acl=yes;
41798                         FDLIBS="-lpacl $FDLIBS"
41799
41800 else
41801
41802                         { echo "$as_me:$LINENO: checking for acltotext in -lsec" >&5
41803 echo $ECHO_N "checking for acltotext in -lsec... $ECHO_C" >&6; }
41804 if test "${ac_cv_lib_sec_acltotext+set}" = set; then
41805   echo $ECHO_N "(cached) $ECHO_C" >&6
41806 else
41807   ac_check_lib_save_LIBS=$LIBS
41808 LIBS="-lsec  $LIBS"
41809 cat >conftest.$ac_ext <<_ACEOF
41810 /* confdefs.h.  */
41811 _ACEOF
41812 cat confdefs.h >>conftest.$ac_ext
41813 cat >>conftest.$ac_ext <<_ACEOF
41814 /* end confdefs.h.  */
41815
41816 /* Override any GCC internal prototype to avoid an error.
41817    Use char because int might match the return type of a GCC
41818    builtin and then its argument prototype would still apply.  */
41819 #ifdef __cplusplus
41820 extern "C"
41821 #endif
41822 char acltotext ();
41823 int
41824 main ()
41825 {
41826 return acltotext ();
41827   ;
41828   return 0;
41829 }
41830 _ACEOF
41831 rm -f conftest.$ac_objext conftest$ac_exeext
41832 if { (ac_try="$ac_link"
41833 case "(($ac_try" in
41834   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41835   *) ac_try_echo=$ac_try;;
41836 esac
41837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41838   (eval "$ac_link") 2>conftest.er1
41839   ac_status=$?
41840   grep -v '^ *+' conftest.er1 >conftest.err
41841   rm -f conftest.er1
41842   cat conftest.err >&5
41843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41844   (exit $ac_status); } && {
41845          test -z "$ac_c_werror_flag" ||
41846          test ! -s conftest.err
41847        } && test -s conftest$ac_exeext &&
41848        $as_test_x conftest$ac_exeext; then
41849   ac_cv_lib_sec_acltotext=yes
41850 else
41851   echo "$as_me: failed program was:" >&5
41852 sed 's/^/| /' conftest.$ac_ext >&5
41853
41854         ac_cv_lib_sec_acltotext=no
41855 fi
41856
41857 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41858       conftest$ac_exeext conftest.$ac_ext
41859 LIBS=$ac_check_lib_save_LIBS
41860 fi
41861 { echo "$as_me:$LINENO: result: $ac_cv_lib_sec_acltotext" >&5
41862 echo "${ECHO_T}$ac_cv_lib_sec_acltotext" >&6; }
41863 if test $ac_cv_lib_sec_acltotext = yes; then
41864
41865                                have_acl=yes;
41866                                FDLIBS="-lsec $FDLIBS"
41867
41868                                { echo "$as_me:$LINENO: checking for acl_totext in -lsec" >&5
41869 echo $ECHO_N "checking for acl_totext in -lsec... $ECHO_C" >&6; }
41870 if test "${ac_cv_lib_sec_acl_totext+set}" = set; then
41871   echo $ECHO_N "(cached) $ECHO_C" >&6
41872 else
41873   ac_check_lib_save_LIBS=$LIBS
41874 LIBS="-lsec  $LIBS"
41875 cat >conftest.$ac_ext <<_ACEOF
41876 /* confdefs.h.  */
41877 _ACEOF
41878 cat confdefs.h >>conftest.$ac_ext
41879 cat >>conftest.$ac_ext <<_ACEOF
41880 /* end confdefs.h.  */
41881
41882 /* Override any GCC internal prototype to avoid an error.
41883    Use char because int might match the return type of a GCC
41884    builtin and then its argument prototype would still apply.  */
41885 #ifdef __cplusplus
41886 extern "C"
41887 #endif
41888 char acl_totext ();
41889 int
41890 main ()
41891 {
41892 return acl_totext ();
41893   ;
41894   return 0;
41895 }
41896 _ACEOF
41897 rm -f conftest.$ac_objext conftest$ac_exeext
41898 if { (ac_try="$ac_link"
41899 case "(($ac_try" in
41900   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41901   *) ac_try_echo=$ac_try;;
41902 esac
41903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41904   (eval "$ac_link") 2>conftest.er1
41905   ac_status=$?
41906   grep -v '^ *+' conftest.er1 >conftest.err
41907   rm -f conftest.er1
41908   cat conftest.err >&5
41909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41910   (exit $ac_status); } && {
41911          test -z "$ac_c_werror_flag" ||
41912          test ! -s conftest.err
41913        } && test -s conftest$ac_exeext &&
41914        $as_test_x conftest$ac_exeext; then
41915   ac_cv_lib_sec_acl_totext=yes
41916 else
41917   echo "$as_me: failed program was:" >&5
41918 sed 's/^/| /' conftest.$ac_ext >&5
41919
41920         ac_cv_lib_sec_acl_totext=no
41921 fi
41922
41923 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41924       conftest$ac_exeext conftest.$ac_ext
41925 LIBS=$ac_check_lib_save_LIBS
41926 fi
41927 { echo "$as_me:$LINENO: result: $ac_cv_lib_sec_acl_totext" >&5
41928 echo "${ECHO_T}$ac_cv_lib_sec_acl_totext" >&6; }
41929 if test $ac_cv_lib_sec_acl_totext = yes; then
41930
41931                                       have_extended_acl=yes
41932
41933
41934 fi
41935
41936
41937
41938 fi
41939
41940
41941
41942 fi
41943
41944
41945
41946 fi
41947
41948
41949
41950 fi
41951
41952
41953    if test x$support_acl = xyes -a $have_acl != yes; then
41954       { { echo "$as_me:$LINENO: error: acl support explicitly enabled but no supported acl implementation found,
41955   please either load the acl libraries or rerun configure without --enable-acl" >&5
41956 echo "$as_me: error: acl support explicitly enabled but no supported acl implementation found,
41957   please either load the acl libraries or rerun configure without --enable-acl" >&2;}
41958    { (exit 1); exit 1; }; }
41959    else
41960       if test $have_acl = yes; then
41961
41962 cat >>confdefs.h <<\_ACEOF
41963 #define HAVE_ACL 1
41964 _ACEOF
41965
41966       fi
41967
41968       if test $have_extended_acl = yes; then
41969
41970 cat >>confdefs.h <<\_ACEOF
41971 #define HAVE_EXTENDED_ACL 1
41972 _ACEOF
41973
41974       fi
41975    fi
41976 fi
41977
41978 support_xattr=auto
41979 # Check whether --enable-xattr was given.
41980 if test "${enable_xattr+set}" = set; then
41981   enableval=$enable_xattr;
41982        if test x$enableval = xyes; then
41983           support_xattr=yes
41984        elif test x$enableval = xno; then
41985           support_xattr=no
41986        fi
41987
41988
41989 fi
41990
41991
41992 have_xattr=no
41993 if test x$support_xattr = xyes -o x$support_xattr = xauto; then
41994             if test "${ac_cv_header_sys_extattr_h+set}" = set; then
41995   { echo "$as_me:$LINENO: checking for sys/extattr.h" >&5
41996 echo $ECHO_N "checking for sys/extattr.h... $ECHO_C" >&6; }
41997 if test "${ac_cv_header_sys_extattr_h+set}" = set; then
41998   echo $ECHO_N "(cached) $ECHO_C" >&6
41999 fi
42000 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_extattr_h" >&5
42001 echo "${ECHO_T}$ac_cv_header_sys_extattr_h" >&6; }
42002 else
42003   # Is the header compilable?
42004 { echo "$as_me:$LINENO: checking sys/extattr.h usability" >&5
42005 echo $ECHO_N "checking sys/extattr.h usability... $ECHO_C" >&6; }
42006 cat >conftest.$ac_ext <<_ACEOF
42007 /* confdefs.h.  */
42008 _ACEOF
42009 cat confdefs.h >>conftest.$ac_ext
42010 cat >>conftest.$ac_ext <<_ACEOF
42011 /* end confdefs.h.  */
42012 $ac_includes_default
42013 #include <sys/extattr.h>
42014 _ACEOF
42015 rm -f conftest.$ac_objext
42016 if { (ac_try="$ac_compile"
42017 case "(($ac_try" in
42018   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42019   *) ac_try_echo=$ac_try;;
42020 esac
42021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42022   (eval "$ac_compile") 2>conftest.er1
42023   ac_status=$?
42024   grep -v '^ *+' conftest.er1 >conftest.err
42025   rm -f conftest.er1
42026   cat conftest.err >&5
42027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42028   (exit $ac_status); } && {
42029          test -z "$ac_c_werror_flag" ||
42030          test ! -s conftest.err
42031        } && test -s conftest.$ac_objext; then
42032   ac_header_compiler=yes
42033 else
42034   echo "$as_me: failed program was:" >&5
42035 sed 's/^/| /' conftest.$ac_ext >&5
42036
42037         ac_header_compiler=no
42038 fi
42039
42040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42041 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
42042 echo "${ECHO_T}$ac_header_compiler" >&6; }
42043
42044 # Is the header present?
42045 { echo "$as_me:$LINENO: checking sys/extattr.h presence" >&5
42046 echo $ECHO_N "checking sys/extattr.h presence... $ECHO_C" >&6; }
42047 cat >conftest.$ac_ext <<_ACEOF
42048 /* confdefs.h.  */
42049 _ACEOF
42050 cat confdefs.h >>conftest.$ac_ext
42051 cat >>conftest.$ac_ext <<_ACEOF
42052 /* end confdefs.h.  */
42053 #include <sys/extattr.h>
42054 _ACEOF
42055 if { (ac_try="$ac_cpp conftest.$ac_ext"
42056 case "(($ac_try" in
42057   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42058   *) ac_try_echo=$ac_try;;
42059 esac
42060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42061   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
42062   ac_status=$?
42063   grep -v '^ *+' conftest.er1 >conftest.err
42064   rm -f conftest.er1
42065   cat conftest.err >&5
42066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42067   (exit $ac_status); } >/dev/null && {
42068          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
42069          test ! -s conftest.err
42070        }; then
42071   ac_header_preproc=yes
42072 else
42073   echo "$as_me: failed program was:" >&5
42074 sed 's/^/| /' conftest.$ac_ext >&5
42075
42076   ac_header_preproc=no
42077 fi
42078
42079 rm -f conftest.err conftest.$ac_ext
42080 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
42081 echo "${ECHO_T}$ac_header_preproc" >&6; }
42082
42083 # So?  What about this header?
42084 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
42085   yes:no: )
42086     { echo "$as_me:$LINENO: WARNING: sys/extattr.h: accepted by the compiler, rejected by the preprocessor!" >&5
42087 echo "$as_me: WARNING: sys/extattr.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
42088     { echo "$as_me:$LINENO: WARNING: sys/extattr.h: proceeding with the compiler's result" >&5
42089 echo "$as_me: WARNING: sys/extattr.h: proceeding with the compiler's result" >&2;}
42090     ac_header_preproc=yes
42091     ;;
42092   no:yes:* )
42093     { echo "$as_me:$LINENO: WARNING: sys/extattr.h: present but cannot be compiled" >&5
42094 echo "$as_me: WARNING: sys/extattr.h: present but cannot be compiled" >&2;}
42095     { echo "$as_me:$LINENO: WARNING: sys/extattr.h:     check for missing prerequisite headers?" >&5
42096 echo "$as_me: WARNING: sys/extattr.h:     check for missing prerequisite headers?" >&2;}
42097     { echo "$as_me:$LINENO: WARNING: sys/extattr.h: see the Autoconf documentation" >&5
42098 echo "$as_me: WARNING: sys/extattr.h: see the Autoconf documentation" >&2;}
42099     { echo "$as_me:$LINENO: WARNING: sys/extattr.h:     section \"Present But Cannot Be Compiled\"" >&5
42100 echo "$as_me: WARNING: sys/extattr.h:     section \"Present But Cannot Be Compiled\"" >&2;}
42101     { echo "$as_me:$LINENO: WARNING: sys/extattr.h: proceeding with the preprocessor's result" >&5
42102 echo "$as_me: WARNING: sys/extattr.h: proceeding with the preprocessor's result" >&2;}
42103     { echo "$as_me:$LINENO: WARNING: sys/extattr.h: in the future, the compiler will take precedence" >&5
42104 echo "$as_me: WARNING: sys/extattr.h: in the future, the compiler will take precedence" >&2;}
42105
42106     ;;
42107 esac
42108 { echo "$as_me:$LINENO: checking for sys/extattr.h" >&5
42109 echo $ECHO_N "checking for sys/extattr.h... $ECHO_C" >&6; }
42110 if test "${ac_cv_header_sys_extattr_h+set}" = set; then
42111   echo $ECHO_N "(cached) $ECHO_C" >&6
42112 else
42113   ac_cv_header_sys_extattr_h=$ac_header_preproc
42114 fi
42115 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_extattr_h" >&5
42116 echo "${ECHO_T}$ac_cv_header_sys_extattr_h" >&6; }
42117
42118 fi
42119 if test $ac_cv_header_sys_extattr_h = yes; then
42120
42121 cat >>confdefs.h <<\_ACEOF
42122 #define HAVE_SYS_EXTATTR_H 1
42123 _ACEOF
42124
42125 fi
42126
42127
42128    if test "${ac_cv_header_libutil_h+set}" = set; then
42129   { echo "$as_me:$LINENO: checking for libutil.h" >&5
42130 echo $ECHO_N "checking for libutil.h... $ECHO_C" >&6; }
42131 if test "${ac_cv_header_libutil_h+set}" = set; then
42132   echo $ECHO_N "(cached) $ECHO_C" >&6
42133 fi
42134 { echo "$as_me:$LINENO: result: $ac_cv_header_libutil_h" >&5
42135 echo "${ECHO_T}$ac_cv_header_libutil_h" >&6; }
42136 else
42137   # Is the header compilable?
42138 { echo "$as_me:$LINENO: checking libutil.h usability" >&5
42139 echo $ECHO_N "checking libutil.h usability... $ECHO_C" >&6; }
42140 cat >conftest.$ac_ext <<_ACEOF
42141 /* confdefs.h.  */
42142 _ACEOF
42143 cat confdefs.h >>conftest.$ac_ext
42144 cat >>conftest.$ac_ext <<_ACEOF
42145 /* end confdefs.h.  */
42146 $ac_includes_default
42147 #include <libutil.h>
42148 _ACEOF
42149 rm -f conftest.$ac_objext
42150 if { (ac_try="$ac_compile"
42151 case "(($ac_try" in
42152   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42153   *) ac_try_echo=$ac_try;;
42154 esac
42155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42156   (eval "$ac_compile") 2>conftest.er1
42157   ac_status=$?
42158   grep -v '^ *+' conftest.er1 >conftest.err
42159   rm -f conftest.er1
42160   cat conftest.err >&5
42161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42162   (exit $ac_status); } && {
42163          test -z "$ac_c_werror_flag" ||
42164          test ! -s conftest.err
42165        } && test -s conftest.$ac_objext; then
42166   ac_header_compiler=yes
42167 else
42168   echo "$as_me: failed program was:" >&5
42169 sed 's/^/| /' conftest.$ac_ext >&5
42170
42171         ac_header_compiler=no
42172 fi
42173
42174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42175 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
42176 echo "${ECHO_T}$ac_header_compiler" >&6; }
42177
42178 # Is the header present?
42179 { echo "$as_me:$LINENO: checking libutil.h presence" >&5
42180 echo $ECHO_N "checking libutil.h presence... $ECHO_C" >&6; }
42181 cat >conftest.$ac_ext <<_ACEOF
42182 /* confdefs.h.  */
42183 _ACEOF
42184 cat confdefs.h >>conftest.$ac_ext
42185 cat >>conftest.$ac_ext <<_ACEOF
42186 /* end confdefs.h.  */
42187 #include <libutil.h>
42188 _ACEOF
42189 if { (ac_try="$ac_cpp conftest.$ac_ext"
42190 case "(($ac_try" in
42191   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42192   *) ac_try_echo=$ac_try;;
42193 esac
42194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42195   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
42196   ac_status=$?
42197   grep -v '^ *+' conftest.er1 >conftest.err
42198   rm -f conftest.er1
42199   cat conftest.err >&5
42200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42201   (exit $ac_status); } >/dev/null && {
42202          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
42203          test ! -s conftest.err
42204        }; then
42205   ac_header_preproc=yes
42206 else
42207   echo "$as_me: failed program was:" >&5
42208 sed 's/^/| /' conftest.$ac_ext >&5
42209
42210   ac_header_preproc=no
42211 fi
42212
42213 rm -f conftest.err conftest.$ac_ext
42214 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
42215 echo "${ECHO_T}$ac_header_preproc" >&6; }
42216
42217 # So?  What about this header?
42218 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
42219   yes:no: )
42220     { echo "$as_me:$LINENO: WARNING: libutil.h: accepted by the compiler, rejected by the preprocessor!" >&5
42221 echo "$as_me: WARNING: libutil.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
42222     { echo "$as_me:$LINENO: WARNING: libutil.h: proceeding with the compiler's result" >&5
42223 echo "$as_me: WARNING: libutil.h: proceeding with the compiler's result" >&2;}
42224     ac_header_preproc=yes
42225     ;;
42226   no:yes:* )
42227     { echo "$as_me:$LINENO: WARNING: libutil.h: present but cannot be compiled" >&5
42228 echo "$as_me: WARNING: libutil.h: present but cannot be compiled" >&2;}
42229     { echo "$as_me:$LINENO: WARNING: libutil.h:     check for missing prerequisite headers?" >&5
42230 echo "$as_me: WARNING: libutil.h:     check for missing prerequisite headers?" >&2;}
42231     { echo "$as_me:$LINENO: WARNING: libutil.h: see the Autoconf documentation" >&5
42232 echo "$as_me: WARNING: libutil.h: see the Autoconf documentation" >&2;}
42233     { echo "$as_me:$LINENO: WARNING: libutil.h:     section \"Present But Cannot Be Compiled\"" >&5
42234 echo "$as_me: WARNING: libutil.h:     section \"Present But Cannot Be Compiled\"" >&2;}
42235     { echo "$as_me:$LINENO: WARNING: libutil.h: proceeding with the preprocessor's result" >&5
42236 echo "$as_me: WARNING: libutil.h: proceeding with the preprocessor's result" >&2;}
42237     { echo "$as_me:$LINENO: WARNING: libutil.h: in the future, the compiler will take precedence" >&5
42238 echo "$as_me: WARNING: libutil.h: in the future, the compiler will take precedence" >&2;}
42239
42240     ;;
42241 esac
42242 { echo "$as_me:$LINENO: checking for libutil.h" >&5
42243 echo $ECHO_N "checking for libutil.h... $ECHO_C" >&6; }
42244 if test "${ac_cv_header_libutil_h+set}" = set; then
42245   echo $ECHO_N "(cached) $ECHO_C" >&6
42246 else
42247   ac_cv_header_libutil_h=$ac_header_preproc
42248 fi
42249 { echo "$as_me:$LINENO: result: $ac_cv_header_libutil_h" >&5
42250 echo "${ECHO_T}$ac_cv_header_libutil_h" >&6; }
42251
42252 fi
42253 if test $ac_cv_header_libutil_h = yes; then
42254
42255 cat >>confdefs.h <<\_ACEOF
42256 #define HAVE_LIBUTIL_H 1
42257 _ACEOF
42258
42259 fi
42260
42261
42262
42263
42264
42265 for ac_func in extattr_get_link extattr_set_link extattr_list_link
42266 do
42267 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42268 { echo "$as_me:$LINENO: checking for $ac_func" >&5
42269 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
42270 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
42271   echo $ECHO_N "(cached) $ECHO_C" >&6
42272 else
42273   cat >conftest.$ac_ext <<_ACEOF
42274 /* confdefs.h.  */
42275 _ACEOF
42276 cat confdefs.h >>conftest.$ac_ext
42277 cat >>conftest.$ac_ext <<_ACEOF
42278 /* end confdefs.h.  */
42279 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42280    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42281 #define $ac_func innocuous_$ac_func
42282
42283 /* System header to define __stub macros and hopefully few prototypes,
42284     which can conflict with char $ac_func (); below.
42285     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42286     <limits.h> exists even on freestanding compilers.  */
42287
42288 #ifdef __STDC__
42289 # include <limits.h>
42290 #else
42291 # include <assert.h>
42292 #endif
42293
42294 #undef $ac_func
42295
42296 /* Override any GCC internal prototype to avoid an error.
42297    Use char because int might match the return type of a GCC
42298    builtin and then its argument prototype would still apply.  */
42299 #ifdef __cplusplus
42300 extern "C"
42301 #endif
42302 char $ac_func ();
42303 /* The GNU C library defines this for functions which it implements
42304     to always fail with ENOSYS.  Some functions are actually named
42305     something starting with __ and the normal name is an alias.  */
42306 #if defined __stub_$ac_func || defined __stub___$ac_func
42307 choke me
42308 #endif
42309
42310 int
42311 main ()
42312 {
42313 return $ac_func ();
42314   ;
42315   return 0;
42316 }
42317 _ACEOF
42318 rm -f conftest.$ac_objext conftest$ac_exeext
42319 if { (ac_try="$ac_link"
42320 case "(($ac_try" in
42321   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42322   *) ac_try_echo=$ac_try;;
42323 esac
42324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42325   (eval "$ac_link") 2>conftest.er1
42326   ac_status=$?
42327   grep -v '^ *+' conftest.er1 >conftest.err
42328   rm -f conftest.er1
42329   cat conftest.err >&5
42330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42331   (exit $ac_status); } && {
42332          test -z "$ac_c_werror_flag" ||
42333          test ! -s conftest.err
42334        } && test -s conftest$ac_exeext &&
42335        $as_test_x conftest$ac_exeext; then
42336   eval "$as_ac_var=yes"
42337 else
42338   echo "$as_me: failed program was:" >&5
42339 sed 's/^/| /' conftest.$ac_ext >&5
42340
42341         eval "$as_ac_var=no"
42342 fi
42343
42344 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42345       conftest$ac_exeext conftest.$ac_ext
42346 fi
42347 ac_res=`eval echo '${'$as_ac_var'}'`
42348                { echo "$as_me:$LINENO: result: $ac_res" >&5
42349 echo "${ECHO_T}$ac_res" >&6; }
42350 if test `eval echo '${'$as_ac_var'}'` = yes; then
42351   cat >>confdefs.h <<_ACEOF
42352 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42353 _ACEOF
42354
42355           have_xattr=yes
42356
42357 cat >>confdefs.h <<\_ACEOF
42358 #define HAVE_EXTATTR_GET_LINK 1
42359 _ACEOF
42360
42361
42362 cat >>confdefs.h <<\_ACEOF
42363 #define HAVE_EXTATTR_SET_LINK 1
42364 _ACEOF
42365
42366
42367 cat >>confdefs.h <<\_ACEOF
42368 #define HAVE_EXTATTR_LIST_LINK 1
42369 _ACEOF
42370
42371
42372
42373 fi
42374 done
42375
42376
42377    if test $have_xattr = no; then
42378
42379
42380
42381 for ac_func in extattr_get_file extattr_set_file extattr_list_file
42382 do
42383 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42384 { echo "$as_me:$LINENO: checking for $ac_func" >&5
42385 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
42386 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
42387   echo $ECHO_N "(cached) $ECHO_C" >&6
42388 else
42389   cat >conftest.$ac_ext <<_ACEOF
42390 /* confdefs.h.  */
42391 _ACEOF
42392 cat confdefs.h >>conftest.$ac_ext
42393 cat >>conftest.$ac_ext <<_ACEOF
42394 /* end confdefs.h.  */
42395 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42396    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42397 #define $ac_func innocuous_$ac_func
42398
42399 /* System header to define __stub macros and hopefully few prototypes,
42400     which can conflict with char $ac_func (); below.
42401     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42402     <limits.h> exists even on freestanding compilers.  */
42403
42404 #ifdef __STDC__
42405 # include <limits.h>
42406 #else
42407 # include <assert.h>
42408 #endif
42409
42410 #undef $ac_func
42411
42412 /* Override any GCC internal prototype to avoid an error.
42413    Use char because int might match the return type of a GCC
42414    builtin and then its argument prototype would still apply.  */
42415 #ifdef __cplusplus
42416 extern "C"
42417 #endif
42418 char $ac_func ();
42419 /* The GNU C library defines this for functions which it implements
42420     to always fail with ENOSYS.  Some functions are actually named
42421     something starting with __ and the normal name is an alias.  */
42422 #if defined __stub_$ac_func || defined __stub___$ac_func
42423 choke me
42424 #endif
42425
42426 int
42427 main ()
42428 {
42429 return $ac_func ();
42430   ;
42431   return 0;
42432 }
42433 _ACEOF
42434 rm -f conftest.$ac_objext conftest$ac_exeext
42435 if { (ac_try="$ac_link"
42436 case "(($ac_try" in
42437   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42438   *) ac_try_echo=$ac_try;;
42439 esac
42440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42441   (eval "$ac_link") 2>conftest.er1
42442   ac_status=$?
42443   grep -v '^ *+' conftest.er1 >conftest.err
42444   rm -f conftest.er1
42445   cat conftest.err >&5
42446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42447   (exit $ac_status); } && {
42448          test -z "$ac_c_werror_flag" ||
42449          test ! -s conftest.err
42450        } && test -s conftest$ac_exeext &&
42451        $as_test_x conftest$ac_exeext; then
42452   eval "$as_ac_var=yes"
42453 else
42454   echo "$as_me: failed program was:" >&5
42455 sed 's/^/| /' conftest.$ac_ext >&5
42456
42457         eval "$as_ac_var=no"
42458 fi
42459
42460 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42461       conftest$ac_exeext conftest.$ac_ext
42462 fi
42463 ac_res=`eval echo '${'$as_ac_var'}'`
42464                { echo "$as_me:$LINENO: result: $ac_res" >&5
42465 echo "${ECHO_T}$ac_res" >&6; }
42466 if test `eval echo '${'$as_ac_var'}'` = yes; then
42467   cat >>confdefs.h <<_ACEOF
42468 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42469 _ACEOF
42470
42471              have_xattr=yes
42472
42473 cat >>confdefs.h <<\_ACEOF
42474 #define HAVE_EXTATTR_GET_FILE 1
42475 _ACEOF
42476
42477
42478 cat >>confdefs.h <<\_ACEOF
42479 #define HAVE_EXTATTR_SET_FILE 1
42480 _ACEOF
42481
42482
42483 cat >>confdefs.h <<\_ACEOF
42484 #define HAVE_EXTATTR_LIST_FILE 1
42485 _ACEOF
42486
42487
42488
42489 fi
42490 done
42491
42492    fi
42493
42494    if test $have_xattr = yes; then
42495       have_extattr_string_in_libc=no
42496
42497
42498 for ac_func in extattr_namespace_to_string extattr_string_to_namespace
42499 do
42500 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42501 { echo "$as_me:$LINENO: checking for $ac_func" >&5
42502 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
42503 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
42504   echo $ECHO_N "(cached) $ECHO_C" >&6
42505 else
42506   cat >conftest.$ac_ext <<_ACEOF
42507 /* confdefs.h.  */
42508 _ACEOF
42509 cat confdefs.h >>conftest.$ac_ext
42510 cat >>conftest.$ac_ext <<_ACEOF
42511 /* end confdefs.h.  */
42512 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42513    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42514 #define $ac_func innocuous_$ac_func
42515
42516 /* System header to define __stub macros and hopefully few prototypes,
42517     which can conflict with char $ac_func (); below.
42518     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42519     <limits.h> exists even on freestanding compilers.  */
42520
42521 #ifdef __STDC__
42522 # include <limits.h>
42523 #else
42524 # include <assert.h>
42525 #endif
42526
42527 #undef $ac_func
42528
42529 /* Override any GCC internal prototype to avoid an error.
42530    Use char because int might match the return type of a GCC
42531    builtin and then its argument prototype would still apply.  */
42532 #ifdef __cplusplus
42533 extern "C"
42534 #endif
42535 char $ac_func ();
42536 /* The GNU C library defines this for functions which it implements
42537     to always fail with ENOSYS.  Some functions are actually named
42538     something starting with __ and the normal name is an alias.  */
42539 #if defined __stub_$ac_func || defined __stub___$ac_func
42540 choke me
42541 #endif
42542
42543 int
42544 main ()
42545 {
42546 return $ac_func ();
42547   ;
42548   return 0;
42549 }
42550 _ACEOF
42551 rm -f conftest.$ac_objext conftest$ac_exeext
42552 if { (ac_try="$ac_link"
42553 case "(($ac_try" in
42554   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42555   *) ac_try_echo=$ac_try;;
42556 esac
42557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42558   (eval "$ac_link") 2>conftest.er1
42559   ac_status=$?
42560   grep -v '^ *+' conftest.er1 >conftest.err
42561   rm -f conftest.er1
42562   cat conftest.err >&5
42563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42564   (exit $ac_status); } && {
42565          test -z "$ac_c_werror_flag" ||
42566          test ! -s conftest.err
42567        } && test -s conftest$ac_exeext &&
42568        $as_test_x conftest$ac_exeext; then
42569   eval "$as_ac_var=yes"
42570 else
42571   echo "$as_me: failed program was:" >&5
42572 sed 's/^/| /' conftest.$ac_ext >&5
42573
42574         eval "$as_ac_var=no"
42575 fi
42576
42577 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42578       conftest$ac_exeext conftest.$ac_ext
42579 fi
42580 ac_res=`eval echo '${'$as_ac_var'}'`
42581                { echo "$as_me:$LINENO: result: $ac_res" >&5
42582 echo "${ECHO_T}$ac_res" >&6; }
42583 if test `eval echo '${'$as_ac_var'}'` = yes; then
42584   cat >>confdefs.h <<_ACEOF
42585 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42586 _ACEOF
42587
42588              have_extattr_string_in_libc=yes
42589
42590 cat >>confdefs.h <<\_ACEOF
42591 #define HAVE_EXTATTR_NAMESPACE_TO_STRING 1
42592 _ACEOF
42593
42594
42595 cat >>confdefs.h <<\_ACEOF
42596 #define HAVE_EXTATTR_STRING_TO_NAMESPACE 1
42597 _ACEOF
42598
42599
42600
42601 fi
42602 done
42603
42604
42605                         if test $have_extattr_string_in_libc = no; then
42606          { echo "$as_me:$LINENO: checking for extattr_namespace_to_string extattr_string_to_namespace in -lutil" >&5
42607 echo $ECHO_N "checking for extattr_namespace_to_string extattr_string_to_namespace in -lutil... $ECHO_C" >&6; }
42608 if test "${ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace+set}" = set; then
42609   echo $ECHO_N "(cached) $ECHO_C" >&6
42610 else
42611   ac_check_lib_save_LIBS=$LIBS
42612 LIBS="-lutil  $LIBS"
42613 cat >conftest.$ac_ext <<_ACEOF
42614 /* confdefs.h.  */
42615 _ACEOF
42616 cat confdefs.h >>conftest.$ac_ext
42617 cat >>conftest.$ac_ext <<_ACEOF
42618 /* end confdefs.h.  */
42619
42620 /* Override any GCC internal prototype to avoid an error.
42621    Use char because int might match the return type of a GCC
42622    builtin and then its argument prototype would still apply.  */
42623 #ifdef __cplusplus
42624 extern "C"
42625 #endif
42626 char extattr_namespace_to_string extattr_string_to_namespace ();
42627 int
42628 main ()
42629 {
42630 return extattr_namespace_to_string extattr_string_to_namespace ();
42631   ;
42632   return 0;
42633 }
42634 _ACEOF
42635 rm -f conftest.$ac_objext conftest$ac_exeext
42636 if { (ac_try="$ac_link"
42637 case "(($ac_try" in
42638   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42639   *) ac_try_echo=$ac_try;;
42640 esac
42641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42642   (eval "$ac_link") 2>conftest.er1
42643   ac_status=$?
42644   grep -v '^ *+' conftest.er1 >conftest.err
42645   rm -f conftest.er1
42646   cat conftest.err >&5
42647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42648   (exit $ac_status); } && {
42649          test -z "$ac_c_werror_flag" ||
42650          test ! -s conftest.err
42651        } && test -s conftest$ac_exeext &&
42652        $as_test_x conftest$ac_exeext; then
42653   ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace=yes
42654 else
42655   echo "$as_me: failed program was:" >&5
42656 sed 's/^/| /' conftest.$ac_ext >&5
42657
42658         ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace=no
42659 fi
42660
42661 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42662       conftest$ac_exeext conftest.$ac_ext
42663 LIBS=$ac_check_lib_save_LIBS
42664 fi
42665 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" >&5
42666 echo "${ECHO_T}$ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" >&6; }
42667 if test $ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace = yes; then
42668
42669
42670 cat >>confdefs.h <<\_ACEOF
42671 #define HAVE_EXTATTR_NAMESPACE_TO_STRING 1
42672 _ACEOF
42673
42674
42675 cat >>confdefs.h <<\_ACEOF
42676 #define HAVE_EXTATTR_STRING_TO_NAMESPACE 1
42677 _ACEOF
42678
42679                 FDLIBS="-lutil $FDLIBS"
42680
42681
42682 fi
42683
42684       fi
42685    fi
42686
42687             if test $have_xattr = no; then
42688       if test "${ac_cv_header_sys_xattr_h+set}" = set; then
42689   { echo "$as_me:$LINENO: checking for sys/xattr.h" >&5
42690 echo $ECHO_N "checking for sys/xattr.h... $ECHO_C" >&6; }
42691 if test "${ac_cv_header_sys_xattr_h+set}" = set; then
42692   echo $ECHO_N "(cached) $ECHO_C" >&6
42693 fi
42694 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_xattr_h" >&5
42695 echo "${ECHO_T}$ac_cv_header_sys_xattr_h" >&6; }
42696 else
42697   # Is the header compilable?
42698 { echo "$as_me:$LINENO: checking sys/xattr.h usability" >&5
42699 echo $ECHO_N "checking sys/xattr.h usability... $ECHO_C" >&6; }
42700 cat >conftest.$ac_ext <<_ACEOF
42701 /* confdefs.h.  */
42702 _ACEOF
42703 cat confdefs.h >>conftest.$ac_ext
42704 cat >>conftest.$ac_ext <<_ACEOF
42705 /* end confdefs.h.  */
42706 $ac_includes_default
42707 #include <sys/xattr.h>
42708 _ACEOF
42709 rm -f conftest.$ac_objext
42710 if { (ac_try="$ac_compile"
42711 case "(($ac_try" in
42712   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42713   *) ac_try_echo=$ac_try;;
42714 esac
42715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42716   (eval "$ac_compile") 2>conftest.er1
42717   ac_status=$?
42718   grep -v '^ *+' conftest.er1 >conftest.err
42719   rm -f conftest.er1
42720   cat conftest.err >&5
42721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42722   (exit $ac_status); } && {
42723          test -z "$ac_c_werror_flag" ||
42724          test ! -s conftest.err
42725        } && test -s conftest.$ac_objext; then
42726   ac_header_compiler=yes
42727 else
42728   echo "$as_me: failed program was:" >&5
42729 sed 's/^/| /' conftest.$ac_ext >&5
42730
42731         ac_header_compiler=no
42732 fi
42733
42734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42735 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
42736 echo "${ECHO_T}$ac_header_compiler" >&6; }
42737
42738 # Is the header present?
42739 { echo "$as_me:$LINENO: checking sys/xattr.h presence" >&5
42740 echo $ECHO_N "checking sys/xattr.h presence... $ECHO_C" >&6; }
42741 cat >conftest.$ac_ext <<_ACEOF
42742 /* confdefs.h.  */
42743 _ACEOF
42744 cat confdefs.h >>conftest.$ac_ext
42745 cat >>conftest.$ac_ext <<_ACEOF
42746 /* end confdefs.h.  */
42747 #include <sys/xattr.h>
42748 _ACEOF
42749 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 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); } >/dev/null && {
42762          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
42763          test ! -s conftest.err
42764        }; then
42765   ac_header_preproc=yes
42766 else
42767   echo "$as_me: failed program was:" >&5
42768 sed 's/^/| /' conftest.$ac_ext >&5
42769
42770   ac_header_preproc=no
42771 fi
42772
42773 rm -f conftest.err conftest.$ac_ext
42774 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
42775 echo "${ECHO_T}$ac_header_preproc" >&6; }
42776
42777 # So?  What about this header?
42778 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
42779   yes:no: )
42780     { echo "$as_me:$LINENO: WARNING: sys/xattr.h: accepted by the compiler, rejected by the preprocessor!" >&5
42781 echo "$as_me: WARNING: sys/xattr.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
42782     { echo "$as_me:$LINENO: WARNING: sys/xattr.h: proceeding with the compiler's result" >&5
42783 echo "$as_me: WARNING: sys/xattr.h: proceeding with the compiler's result" >&2;}
42784     ac_header_preproc=yes
42785     ;;
42786   no:yes:* )
42787     { echo "$as_me:$LINENO: WARNING: sys/xattr.h: present but cannot be compiled" >&5
42788 echo "$as_me: WARNING: sys/xattr.h: present but cannot be compiled" >&2;}
42789     { echo "$as_me:$LINENO: WARNING: sys/xattr.h:     check for missing prerequisite headers?" >&5
42790 echo "$as_me: WARNING: sys/xattr.h:     check for missing prerequisite headers?" >&2;}
42791     { echo "$as_me:$LINENO: WARNING: sys/xattr.h: see the Autoconf documentation" >&5
42792 echo "$as_me: WARNING: sys/xattr.h: see the Autoconf documentation" >&2;}
42793     { echo "$as_me:$LINENO: WARNING: sys/xattr.h:     section \"Present But Cannot Be Compiled\"" >&5
42794 echo "$as_me: WARNING: sys/xattr.h:     section \"Present But Cannot Be Compiled\"" >&2;}
42795     { echo "$as_me:$LINENO: WARNING: sys/xattr.h: proceeding with the preprocessor's result" >&5
42796 echo "$as_me: WARNING: sys/xattr.h: proceeding with the preprocessor's result" >&2;}
42797     { echo "$as_me:$LINENO: WARNING: sys/xattr.h: in the future, the compiler will take precedence" >&5
42798 echo "$as_me: WARNING: sys/xattr.h: in the future, the compiler will take precedence" >&2;}
42799
42800     ;;
42801 esac
42802 { echo "$as_me:$LINENO: checking for sys/xattr.h" >&5
42803 echo $ECHO_N "checking for sys/xattr.h... $ECHO_C" >&6; }
42804 if test "${ac_cv_header_sys_xattr_h+set}" = set; then
42805   echo $ECHO_N "(cached) $ECHO_C" >&6
42806 else
42807   ac_cv_header_sys_xattr_h=$ac_header_preproc
42808 fi
42809 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_xattr_h" >&5
42810 echo "${ECHO_T}$ac_cv_header_sys_xattr_h" >&6; }
42811
42812 fi
42813 if test $ac_cv_header_sys_xattr_h = yes; then
42814
42815 cat >>confdefs.h <<\_ACEOF
42816 #define HAVE_SYS_XATTR_H 1
42817 _ACEOF
42818
42819 fi
42820
42821
42822
42823
42824
42825 for ac_func in llistxattr lgetxattr lsetxattr
42826 do
42827 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42828 { echo "$as_me:$LINENO: checking for $ac_func" >&5
42829 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
42830 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
42831   echo $ECHO_N "(cached) $ECHO_C" >&6
42832 else
42833   cat >conftest.$ac_ext <<_ACEOF
42834 /* confdefs.h.  */
42835 _ACEOF
42836 cat confdefs.h >>conftest.$ac_ext
42837 cat >>conftest.$ac_ext <<_ACEOF
42838 /* end confdefs.h.  */
42839 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42840    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42841 #define $ac_func innocuous_$ac_func
42842
42843 /* System header to define __stub macros and hopefully few prototypes,
42844     which can conflict with char $ac_func (); below.
42845     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42846     <limits.h> exists even on freestanding compilers.  */
42847
42848 #ifdef __STDC__
42849 # include <limits.h>
42850 #else
42851 # include <assert.h>
42852 #endif
42853
42854 #undef $ac_func
42855
42856 /* Override any GCC internal prototype to avoid an error.
42857    Use char because int might match the return type of a GCC
42858    builtin and then its argument prototype would still apply.  */
42859 #ifdef __cplusplus
42860 extern "C"
42861 #endif
42862 char $ac_func ();
42863 /* The GNU C library defines this for functions which it implements
42864     to always fail with ENOSYS.  Some functions are actually named
42865     something starting with __ and the normal name is an alias.  */
42866 #if defined __stub_$ac_func || defined __stub___$ac_func
42867 choke me
42868 #endif
42869
42870 int
42871 main ()
42872 {
42873 return $ac_func ();
42874   ;
42875   return 0;
42876 }
42877 _ACEOF
42878 rm -f conftest.$ac_objext conftest$ac_exeext
42879 if { (ac_try="$ac_link"
42880 case "(($ac_try" in
42881   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42882   *) ac_try_echo=$ac_try;;
42883 esac
42884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42885   (eval "$ac_link") 2>conftest.er1
42886   ac_status=$?
42887   grep -v '^ *+' conftest.er1 >conftest.err
42888   rm -f conftest.er1
42889   cat conftest.err >&5
42890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42891   (exit $ac_status); } && {
42892          test -z "$ac_c_werror_flag" ||
42893          test ! -s conftest.err
42894        } && test -s conftest$ac_exeext &&
42895        $as_test_x conftest$ac_exeext; then
42896   eval "$as_ac_var=yes"
42897 else
42898   echo "$as_me: failed program was:" >&5
42899 sed 's/^/| /' conftest.$ac_ext >&5
42900
42901         eval "$as_ac_var=no"
42902 fi
42903
42904 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42905       conftest$ac_exeext conftest.$ac_ext
42906 fi
42907 ac_res=`eval echo '${'$as_ac_var'}'`
42908                { echo "$as_me:$LINENO: result: $ac_res" >&5
42909 echo "${ECHO_T}$ac_res" >&6; }
42910 if test `eval echo '${'$as_ac_var'}'` = yes; then
42911   cat >>confdefs.h <<_ACEOF
42912 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42913 _ACEOF
42914
42915              have_xattr=yes
42916
42917 cat >>confdefs.h <<\_ACEOF
42918 #define HAVE_LLISTXATTR 1
42919 _ACEOF
42920
42921
42922 cat >>confdefs.h <<\_ACEOF
42923 #define HAVE_LGETXATTR 1
42924 _ACEOF
42925
42926
42927 cat >>confdefs.h <<\_ACEOF
42928 #define HAVE_LSETXATTR 1
42929 _ACEOF
42930
42931
42932
42933 fi
42934 done
42935
42936
42937       if test $have_xattr = no; then
42938
42939
42940
42941 for ac_func in listxattr getxattr setxattr
42942 do
42943 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42944 { echo "$as_me:$LINENO: checking for $ac_func" >&5
42945 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
42946 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
42947   echo $ECHO_N "(cached) $ECHO_C" >&6
42948 else
42949   cat >conftest.$ac_ext <<_ACEOF
42950 /* confdefs.h.  */
42951 _ACEOF
42952 cat confdefs.h >>conftest.$ac_ext
42953 cat >>conftest.$ac_ext <<_ACEOF
42954 /* end confdefs.h.  */
42955 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42956    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42957 #define $ac_func innocuous_$ac_func
42958
42959 /* System header to define __stub macros and hopefully few prototypes,
42960     which can conflict with char $ac_func (); below.
42961     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42962     <limits.h> exists even on freestanding compilers.  */
42963
42964 #ifdef __STDC__
42965 # include <limits.h>
42966 #else
42967 # include <assert.h>
42968 #endif
42969
42970 #undef $ac_func
42971
42972 /* Override any GCC internal prototype to avoid an error.
42973    Use char because int might match the return type of a GCC
42974    builtin and then its argument prototype would still apply.  */
42975 #ifdef __cplusplus
42976 extern "C"
42977 #endif
42978 char $ac_func ();
42979 /* The GNU C library defines this for functions which it implements
42980     to always fail with ENOSYS.  Some functions are actually named
42981     something starting with __ and the normal name is an alias.  */
42982 #if defined __stub_$ac_func || defined __stub___$ac_func
42983 choke me
42984 #endif
42985
42986 int
42987 main ()
42988 {
42989 return $ac_func ();
42990   ;
42991   return 0;
42992 }
42993 _ACEOF
42994 rm -f conftest.$ac_objext conftest$ac_exeext
42995 if { (ac_try="$ac_link"
42996 case "(($ac_try" in
42997   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42998   *) ac_try_echo=$ac_try;;
42999 esac
43000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43001   (eval "$ac_link") 2>conftest.er1
43002   ac_status=$?
43003   grep -v '^ *+' conftest.er1 >conftest.err
43004   rm -f conftest.er1
43005   cat conftest.err >&5
43006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43007   (exit $ac_status); } && {
43008          test -z "$ac_c_werror_flag" ||
43009          test ! -s conftest.err
43010        } && test -s conftest$ac_exeext &&
43011        $as_test_x conftest$ac_exeext; then
43012   eval "$as_ac_var=yes"
43013 else
43014   echo "$as_me: failed program was:" >&5
43015 sed 's/^/| /' conftest.$ac_ext >&5
43016
43017         eval "$as_ac_var=no"
43018 fi
43019
43020 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43021       conftest$ac_exeext conftest.$ac_ext
43022 fi
43023 ac_res=`eval echo '${'$as_ac_var'}'`
43024                { echo "$as_me:$LINENO: result: $ac_res" >&5
43025 echo "${ECHO_T}$ac_res" >&6; }
43026 if test `eval echo '${'$as_ac_var'}'` = yes; then
43027   cat >>confdefs.h <<_ACEOF
43028 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43029 _ACEOF
43030
43031                 have_xattr=yes
43032
43033 cat >>confdefs.h <<\_ACEOF
43034 #define HAVE_LISTXATTR 1
43035 _ACEOF
43036
43037
43038 cat >>confdefs.h <<\_ACEOF
43039 #define HAVE_GETXATTR 1
43040 _ACEOF
43041
43042
43043 cat >>confdefs.h <<\_ACEOF
43044 #define HAVE_SETXATTR 1
43045 _ACEOF
43046
43047
43048
43049 fi
43050 done
43051
43052       fi
43053    fi
43054
43055             if test $have_xattr = no; then
43056       if test "${ac_cv_header_sys_attr_h+set}" = set; then
43057   { echo "$as_me:$LINENO: checking for sys/attr.h" >&5
43058 echo $ECHO_N "checking for sys/attr.h... $ECHO_C" >&6; }
43059 if test "${ac_cv_header_sys_attr_h+set}" = set; then
43060   echo $ECHO_N "(cached) $ECHO_C" >&6
43061 fi
43062 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_attr_h" >&5
43063 echo "${ECHO_T}$ac_cv_header_sys_attr_h" >&6; }
43064 else
43065   # Is the header compilable?
43066 { echo "$as_me:$LINENO: checking sys/attr.h usability" >&5
43067 echo $ECHO_N "checking sys/attr.h usability... $ECHO_C" >&6; }
43068 cat >conftest.$ac_ext <<_ACEOF
43069 /* confdefs.h.  */
43070 _ACEOF
43071 cat confdefs.h >>conftest.$ac_ext
43072 cat >>conftest.$ac_ext <<_ACEOF
43073 /* end confdefs.h.  */
43074 $ac_includes_default
43075 #include <sys/attr.h>
43076 _ACEOF
43077 rm -f conftest.$ac_objext
43078 if { (ac_try="$ac_compile"
43079 case "(($ac_try" in
43080   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43081   *) ac_try_echo=$ac_try;;
43082 esac
43083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43084   (eval "$ac_compile") 2>conftest.er1
43085   ac_status=$?
43086   grep -v '^ *+' conftest.er1 >conftest.err
43087   rm -f conftest.er1
43088   cat conftest.err >&5
43089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43090   (exit $ac_status); } && {
43091          test -z "$ac_c_werror_flag" ||
43092          test ! -s conftest.err
43093        } && test -s conftest.$ac_objext; then
43094   ac_header_compiler=yes
43095 else
43096   echo "$as_me: failed program was:" >&5
43097 sed 's/^/| /' conftest.$ac_ext >&5
43098
43099         ac_header_compiler=no
43100 fi
43101
43102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43103 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
43104 echo "${ECHO_T}$ac_header_compiler" >&6; }
43105
43106 # Is the header present?
43107 { echo "$as_me:$LINENO: checking sys/attr.h presence" >&5
43108 echo $ECHO_N "checking sys/attr.h presence... $ECHO_C" >&6; }
43109 cat >conftest.$ac_ext <<_ACEOF
43110 /* confdefs.h.  */
43111 _ACEOF
43112 cat confdefs.h >>conftest.$ac_ext
43113 cat >>conftest.$ac_ext <<_ACEOF
43114 /* end confdefs.h.  */
43115 #include <sys/attr.h>
43116 _ACEOF
43117 if { (ac_try="$ac_cpp conftest.$ac_ext"
43118 case "(($ac_try" in
43119   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43120   *) ac_try_echo=$ac_try;;
43121 esac
43122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43123   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
43124   ac_status=$?
43125   grep -v '^ *+' conftest.er1 >conftest.err
43126   rm -f conftest.er1
43127   cat conftest.err >&5
43128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43129   (exit $ac_status); } >/dev/null && {
43130          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
43131          test ! -s conftest.err
43132        }; then
43133   ac_header_preproc=yes
43134 else
43135   echo "$as_me: failed program was:" >&5
43136 sed 's/^/| /' conftest.$ac_ext >&5
43137
43138   ac_header_preproc=no
43139 fi
43140
43141 rm -f conftest.err conftest.$ac_ext
43142 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
43143 echo "${ECHO_T}$ac_header_preproc" >&6; }
43144
43145 # So?  What about this header?
43146 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
43147   yes:no: )
43148     { echo "$as_me:$LINENO: WARNING: sys/attr.h: accepted by the compiler, rejected by the preprocessor!" >&5
43149 echo "$as_me: WARNING: sys/attr.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
43150     { echo "$as_me:$LINENO: WARNING: sys/attr.h: proceeding with the compiler's result" >&5
43151 echo "$as_me: WARNING: sys/attr.h: proceeding with the compiler's result" >&2;}
43152     ac_header_preproc=yes
43153     ;;
43154   no:yes:* )
43155     { echo "$as_me:$LINENO: WARNING: sys/attr.h: present but cannot be compiled" >&5
43156 echo "$as_me: WARNING: sys/attr.h: present but cannot be compiled" >&2;}
43157     { echo "$as_me:$LINENO: WARNING: sys/attr.h:     check for missing prerequisite headers?" >&5
43158 echo "$as_me: WARNING: sys/attr.h:     check for missing prerequisite headers?" >&2;}
43159     { echo "$as_me:$LINENO: WARNING: sys/attr.h: see the Autoconf documentation" >&5
43160 echo "$as_me: WARNING: sys/attr.h: see the Autoconf documentation" >&2;}
43161     { echo "$as_me:$LINENO: WARNING: sys/attr.h:     section \"Present But Cannot Be Compiled\"" >&5
43162 echo "$as_me: WARNING: sys/attr.h:     section \"Present But Cannot Be Compiled\"" >&2;}
43163     { echo "$as_me:$LINENO: WARNING: sys/attr.h: proceeding with the preprocessor's result" >&5
43164 echo "$as_me: WARNING: sys/attr.h: proceeding with the preprocessor's result" >&2;}
43165     { echo "$as_me:$LINENO: WARNING: sys/attr.h: in the future, the compiler will take precedence" >&5
43166 echo "$as_me: WARNING: sys/attr.h: in the future, the compiler will take precedence" >&2;}
43167
43168     ;;
43169 esac
43170 { echo "$as_me:$LINENO: checking for sys/attr.h" >&5
43171 echo $ECHO_N "checking for sys/attr.h... $ECHO_C" >&6; }
43172 if test "${ac_cv_header_sys_attr_h+set}" = set; then
43173   echo $ECHO_N "(cached) $ECHO_C" >&6
43174 else
43175   ac_cv_header_sys_attr_h=$ac_header_preproc
43176 fi
43177 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_attr_h" >&5
43178 echo "${ECHO_T}$ac_cv_header_sys_attr_h" >&6; }
43179
43180 fi
43181 if test $ac_cv_header_sys_attr_h = yes; then
43182
43183 cat >>confdefs.h <<\_ACEOF
43184 #define HAVE_SYS_ATTR_H 1
43185 _ACEOF
43186
43187 fi
43188
43189
43190       if test "${ac_cv_header_sys_nvpair_h+set}" = set; then
43191   { echo "$as_me:$LINENO: checking for sys/nvpair.h" >&5
43192 echo $ECHO_N "checking for sys/nvpair.h... $ECHO_C" >&6; }
43193 if test "${ac_cv_header_sys_nvpair_h+set}" = set; then
43194   echo $ECHO_N "(cached) $ECHO_C" >&6
43195 fi
43196 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_nvpair_h" >&5
43197 echo "${ECHO_T}$ac_cv_header_sys_nvpair_h" >&6; }
43198 else
43199   # Is the header compilable?
43200 { echo "$as_me:$LINENO: checking sys/nvpair.h usability" >&5
43201 echo $ECHO_N "checking sys/nvpair.h usability... $ECHO_C" >&6; }
43202 cat >conftest.$ac_ext <<_ACEOF
43203 /* confdefs.h.  */
43204 _ACEOF
43205 cat confdefs.h >>conftest.$ac_ext
43206 cat >>conftest.$ac_ext <<_ACEOF
43207 /* end confdefs.h.  */
43208 $ac_includes_default
43209 #include <sys/nvpair.h>
43210 _ACEOF
43211 rm -f conftest.$ac_objext
43212 if { (ac_try="$ac_compile"
43213 case "(($ac_try" in
43214   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43215   *) ac_try_echo=$ac_try;;
43216 esac
43217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43218   (eval "$ac_compile") 2>conftest.er1
43219   ac_status=$?
43220   grep -v '^ *+' conftest.er1 >conftest.err
43221   rm -f conftest.er1
43222   cat conftest.err >&5
43223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43224   (exit $ac_status); } && {
43225          test -z "$ac_c_werror_flag" ||
43226          test ! -s conftest.err
43227        } && test -s conftest.$ac_objext; then
43228   ac_header_compiler=yes
43229 else
43230   echo "$as_me: failed program was:" >&5
43231 sed 's/^/| /' conftest.$ac_ext >&5
43232
43233         ac_header_compiler=no
43234 fi
43235
43236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43237 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
43238 echo "${ECHO_T}$ac_header_compiler" >&6; }
43239
43240 # Is the header present?
43241 { echo "$as_me:$LINENO: checking sys/nvpair.h presence" >&5
43242 echo $ECHO_N "checking sys/nvpair.h presence... $ECHO_C" >&6; }
43243 cat >conftest.$ac_ext <<_ACEOF
43244 /* confdefs.h.  */
43245 _ACEOF
43246 cat confdefs.h >>conftest.$ac_ext
43247 cat >>conftest.$ac_ext <<_ACEOF
43248 /* end confdefs.h.  */
43249 #include <sys/nvpair.h>
43250 _ACEOF
43251 if { (ac_try="$ac_cpp conftest.$ac_ext"
43252 case "(($ac_try" in
43253   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43254   *) ac_try_echo=$ac_try;;
43255 esac
43256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43257   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
43258   ac_status=$?
43259   grep -v '^ *+' conftest.er1 >conftest.err
43260   rm -f conftest.er1
43261   cat conftest.err >&5
43262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43263   (exit $ac_status); } >/dev/null && {
43264          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
43265          test ! -s conftest.err
43266        }; then
43267   ac_header_preproc=yes
43268 else
43269   echo "$as_me: failed program was:" >&5
43270 sed 's/^/| /' conftest.$ac_ext >&5
43271
43272   ac_header_preproc=no
43273 fi
43274
43275 rm -f conftest.err conftest.$ac_ext
43276 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
43277 echo "${ECHO_T}$ac_header_preproc" >&6; }
43278
43279 # So?  What about this header?
43280 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
43281   yes:no: )
43282     { echo "$as_me:$LINENO: WARNING: sys/nvpair.h: accepted by the compiler, rejected by the preprocessor!" >&5
43283 echo "$as_me: WARNING: sys/nvpair.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
43284     { echo "$as_me:$LINENO: WARNING: sys/nvpair.h: proceeding with the compiler's result" >&5
43285 echo "$as_me: WARNING: sys/nvpair.h: proceeding with the compiler's result" >&2;}
43286     ac_header_preproc=yes
43287     ;;
43288   no:yes:* )
43289     { echo "$as_me:$LINENO: WARNING: sys/nvpair.h: present but cannot be compiled" >&5
43290 echo "$as_me: WARNING: sys/nvpair.h: present but cannot be compiled" >&2;}
43291     { echo "$as_me:$LINENO: WARNING: sys/nvpair.h:     check for missing prerequisite headers?" >&5
43292 echo "$as_me: WARNING: sys/nvpair.h:     check for missing prerequisite headers?" >&2;}
43293     { echo "$as_me:$LINENO: WARNING: sys/nvpair.h: see the Autoconf documentation" >&5
43294 echo "$as_me: WARNING: sys/nvpair.h: see the Autoconf documentation" >&2;}
43295     { echo "$as_me:$LINENO: WARNING: sys/nvpair.h:     section \"Present But Cannot Be Compiled\"" >&5
43296 echo "$as_me: WARNING: sys/nvpair.h:     section \"Present But Cannot Be Compiled\"" >&2;}
43297     { echo "$as_me:$LINENO: WARNING: sys/nvpair.h: proceeding with the preprocessor's result" >&5
43298 echo "$as_me: WARNING: sys/nvpair.h: proceeding with the preprocessor's result" >&2;}
43299     { echo "$as_me:$LINENO: WARNING: sys/nvpair.h: in the future, the compiler will take precedence" >&5
43300 echo "$as_me: WARNING: sys/nvpair.h: in the future, the compiler will take precedence" >&2;}
43301
43302     ;;
43303 esac
43304 { echo "$as_me:$LINENO: checking for sys/nvpair.h" >&5
43305 echo $ECHO_N "checking for sys/nvpair.h... $ECHO_C" >&6; }
43306 if test "${ac_cv_header_sys_nvpair_h+set}" = set; then
43307   echo $ECHO_N "(cached) $ECHO_C" >&6
43308 else
43309   ac_cv_header_sys_nvpair_h=$ac_header_preproc
43310 fi
43311 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_nvpair_h" >&5
43312 echo "${ECHO_T}$ac_cv_header_sys_nvpair_h" >&6; }
43313
43314 fi
43315 if test $ac_cv_header_sys_nvpair_h = yes; then
43316
43317 cat >>confdefs.h <<\_ACEOF
43318 #define HAVE_SYS_NVPAIR_H 1
43319 _ACEOF
43320
43321 fi
43322
43323
43324       if test "${ac_cv_header_attr_h+set}" = set; then
43325   { echo "$as_me:$LINENO: checking for attr.h" >&5
43326 echo $ECHO_N "checking for attr.h... $ECHO_C" >&6; }
43327 if test "${ac_cv_header_attr_h+set}" = set; then
43328   echo $ECHO_N "(cached) $ECHO_C" >&6
43329 fi
43330 { echo "$as_me:$LINENO: result: $ac_cv_header_attr_h" >&5
43331 echo "${ECHO_T}$ac_cv_header_attr_h" >&6; }
43332 else
43333   # Is the header compilable?
43334 { echo "$as_me:$LINENO: checking attr.h usability" >&5
43335 echo $ECHO_N "checking attr.h usability... $ECHO_C" >&6; }
43336 cat >conftest.$ac_ext <<_ACEOF
43337 /* confdefs.h.  */
43338 _ACEOF
43339 cat confdefs.h >>conftest.$ac_ext
43340 cat >>conftest.$ac_ext <<_ACEOF
43341 /* end confdefs.h.  */
43342 $ac_includes_default
43343 #include <attr.h>
43344 _ACEOF
43345 rm -f conftest.$ac_objext
43346 if { (ac_try="$ac_compile"
43347 case "(($ac_try" in
43348   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43349   *) ac_try_echo=$ac_try;;
43350 esac
43351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43352   (eval "$ac_compile") 2>conftest.er1
43353   ac_status=$?
43354   grep -v '^ *+' conftest.er1 >conftest.err
43355   rm -f conftest.er1
43356   cat conftest.err >&5
43357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43358   (exit $ac_status); } && {
43359          test -z "$ac_c_werror_flag" ||
43360          test ! -s conftest.err
43361        } && test -s conftest.$ac_objext; then
43362   ac_header_compiler=yes
43363 else
43364   echo "$as_me: failed program was:" >&5
43365 sed 's/^/| /' conftest.$ac_ext >&5
43366
43367         ac_header_compiler=no
43368 fi
43369
43370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43371 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
43372 echo "${ECHO_T}$ac_header_compiler" >&6; }
43373
43374 # Is the header present?
43375 { echo "$as_me:$LINENO: checking attr.h presence" >&5
43376 echo $ECHO_N "checking attr.h presence... $ECHO_C" >&6; }
43377 cat >conftest.$ac_ext <<_ACEOF
43378 /* confdefs.h.  */
43379 _ACEOF
43380 cat confdefs.h >>conftest.$ac_ext
43381 cat >>conftest.$ac_ext <<_ACEOF
43382 /* end confdefs.h.  */
43383 #include <attr.h>
43384 _ACEOF
43385 if { (ac_try="$ac_cpp conftest.$ac_ext"
43386 case "(($ac_try" in
43387   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43388   *) ac_try_echo=$ac_try;;
43389 esac
43390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43391   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
43392   ac_status=$?
43393   grep -v '^ *+' conftest.er1 >conftest.err
43394   rm -f conftest.er1
43395   cat conftest.err >&5
43396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43397   (exit $ac_status); } >/dev/null && {
43398          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
43399          test ! -s conftest.err
43400        }; then
43401   ac_header_preproc=yes
43402 else
43403   echo "$as_me: failed program was:" >&5
43404 sed 's/^/| /' conftest.$ac_ext >&5
43405
43406   ac_header_preproc=no
43407 fi
43408
43409 rm -f conftest.err conftest.$ac_ext
43410 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
43411 echo "${ECHO_T}$ac_header_preproc" >&6; }
43412
43413 # So?  What about this header?
43414 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
43415   yes:no: )
43416     { echo "$as_me:$LINENO: WARNING: attr.h: accepted by the compiler, rejected by the preprocessor!" >&5
43417 echo "$as_me: WARNING: attr.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
43418     { echo "$as_me:$LINENO: WARNING: attr.h: proceeding with the compiler's result" >&5
43419 echo "$as_me: WARNING: attr.h: proceeding with the compiler's result" >&2;}
43420     ac_header_preproc=yes
43421     ;;
43422   no:yes:* )
43423     { echo "$as_me:$LINENO: WARNING: attr.h: present but cannot be compiled" >&5
43424 echo "$as_me: WARNING: attr.h: present but cannot be compiled" >&2;}
43425     { echo "$as_me:$LINENO: WARNING: attr.h:     check for missing prerequisite headers?" >&5
43426 echo "$as_me: WARNING: attr.h:     check for missing prerequisite headers?" >&2;}
43427     { echo "$as_me:$LINENO: WARNING: attr.h: see the Autoconf documentation" >&5
43428 echo "$as_me: WARNING: attr.h: see the Autoconf documentation" >&2;}
43429     { echo "$as_me:$LINENO: WARNING: attr.h:     section \"Present But Cannot Be Compiled\"" >&5
43430 echo "$as_me: WARNING: attr.h:     section \"Present But Cannot Be Compiled\"" >&2;}
43431     { echo "$as_me:$LINENO: WARNING: attr.h: proceeding with the preprocessor's result" >&5
43432 echo "$as_me: WARNING: attr.h: proceeding with the preprocessor's result" >&2;}
43433     { echo "$as_me:$LINENO: WARNING: attr.h: in the future, the compiler will take precedence" >&5
43434 echo "$as_me: WARNING: attr.h: in the future, the compiler will take precedence" >&2;}
43435
43436     ;;
43437 esac
43438 { echo "$as_me:$LINENO: checking for attr.h" >&5
43439 echo $ECHO_N "checking for attr.h... $ECHO_C" >&6; }
43440 if test "${ac_cv_header_attr_h+set}" = set; then
43441   echo $ECHO_N "(cached) $ECHO_C" >&6
43442 else
43443   ac_cv_header_attr_h=$ac_header_preproc
43444 fi
43445 { echo "$as_me:$LINENO: result: $ac_cv_header_attr_h" >&5
43446 echo "${ECHO_T}$ac_cv_header_attr_h" >&6; }
43447
43448 fi
43449 if test $ac_cv_header_attr_h = yes; then
43450
43451 cat >>confdefs.h <<\_ACEOF
43452 #define HAVE_ATTR_H 1
43453 _ACEOF
43454
43455 fi
43456
43457
43458
43459
43460
43461
43462
43463
43464 for ac_func in openat fstatat unlinkat fchownat futimesat
43465 do
43466 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43467 { echo "$as_me:$LINENO: checking for $ac_func" >&5
43468 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
43469 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
43470   echo $ECHO_N "(cached) $ECHO_C" >&6
43471 else
43472   cat >conftest.$ac_ext <<_ACEOF
43473 /* confdefs.h.  */
43474 _ACEOF
43475 cat confdefs.h >>conftest.$ac_ext
43476 cat >>conftest.$ac_ext <<_ACEOF
43477 /* end confdefs.h.  */
43478 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43479    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43480 #define $ac_func innocuous_$ac_func
43481
43482 /* System header to define __stub macros and hopefully few prototypes,
43483     which can conflict with char $ac_func (); below.
43484     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43485     <limits.h> exists even on freestanding compilers.  */
43486
43487 #ifdef __STDC__
43488 # include <limits.h>
43489 #else
43490 # include <assert.h>
43491 #endif
43492
43493 #undef $ac_func
43494
43495 /* Override any GCC internal prototype to avoid an error.
43496    Use char because int might match the return type of a GCC
43497    builtin and then its argument prototype would still apply.  */
43498 #ifdef __cplusplus
43499 extern "C"
43500 #endif
43501 char $ac_func ();
43502 /* The GNU C library defines this for functions which it implements
43503     to always fail with ENOSYS.  Some functions are actually named
43504     something starting with __ and the normal name is an alias.  */
43505 #if defined __stub_$ac_func || defined __stub___$ac_func
43506 choke me
43507 #endif
43508
43509 int
43510 main ()
43511 {
43512 return $ac_func ();
43513   ;
43514   return 0;
43515 }
43516 _ACEOF
43517 rm -f conftest.$ac_objext conftest$ac_exeext
43518 if { (ac_try="$ac_link"
43519 case "(($ac_try" in
43520   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43521   *) ac_try_echo=$ac_try;;
43522 esac
43523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43524   (eval "$ac_link") 2>conftest.er1
43525   ac_status=$?
43526   grep -v '^ *+' conftest.er1 >conftest.err
43527   rm -f conftest.er1
43528   cat conftest.err >&5
43529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43530   (exit $ac_status); } && {
43531          test -z "$ac_c_werror_flag" ||
43532          test ! -s conftest.err
43533        } && test -s conftest$ac_exeext &&
43534        $as_test_x conftest$ac_exeext; then
43535   eval "$as_ac_var=yes"
43536 else
43537   echo "$as_me: failed program was:" >&5
43538 sed 's/^/| /' conftest.$ac_ext >&5
43539
43540         eval "$as_ac_var=no"
43541 fi
43542
43543 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43544       conftest$ac_exeext conftest.$ac_ext
43545 fi
43546 ac_res=`eval echo '${'$as_ac_var'}'`
43547                { echo "$as_me:$LINENO: result: $ac_res" >&5
43548 echo "${ECHO_T}$ac_res" >&6; }
43549 if test `eval echo '${'$as_ac_var'}'` = yes; then
43550   cat >>confdefs.h <<_ACEOF
43551 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43552 _ACEOF
43553
43554              have_xattr=yes
43555
43556 cat >>confdefs.h <<\_ACEOF
43557 #define HAVE_OPENAT 1
43558 _ACEOF
43559
43560
43561 cat >>confdefs.h <<\_ACEOF
43562 #define HAVE_FSTATAT 1
43563 _ACEOF
43564
43565
43566 cat >>confdefs.h <<\_ACEOF
43567 #define HAVE_UNLINKAT 1
43568 _ACEOF
43569
43570
43571 cat >>confdefs.h <<\_ACEOF
43572 #define HAVE_FCHOWNAT 1
43573 _ACEOF
43574
43575
43576 cat >>confdefs.h <<\_ACEOF
43577 #define HAVE_FUTIMESAT 1
43578 _ACEOF
43579
43580
43581
43582 fi
43583 done
43584
43585
43586       if test $have_xattr = yes; then
43587          { echo "$as_me:$LINENO: checking for nvlist_next_nvpair in -lnvpair" >&5
43588 echo $ECHO_N "checking for nvlist_next_nvpair in -lnvpair... $ECHO_C" >&6; }
43589 if test "${ac_cv_lib_nvpair_nvlist_next_nvpair+set}" = set; then
43590   echo $ECHO_N "(cached) $ECHO_C" >&6
43591 else
43592   ac_check_lib_save_LIBS=$LIBS
43593 LIBS="-lnvpair  $LIBS"
43594 cat >conftest.$ac_ext <<_ACEOF
43595 /* confdefs.h.  */
43596 _ACEOF
43597 cat confdefs.h >>conftest.$ac_ext
43598 cat >>conftest.$ac_ext <<_ACEOF
43599 /* end confdefs.h.  */
43600
43601 /* Override any GCC internal prototype to avoid an error.
43602    Use char because int might match the return type of a GCC
43603    builtin and then its argument prototype would still apply.  */
43604 #ifdef __cplusplus
43605 extern "C"
43606 #endif
43607 char nvlist_next_nvpair ();
43608 int
43609 main ()
43610 {
43611 return nvlist_next_nvpair ();
43612   ;
43613   return 0;
43614 }
43615 _ACEOF
43616 rm -f conftest.$ac_objext conftest$ac_exeext
43617 if { (ac_try="$ac_link"
43618 case "(($ac_try" in
43619   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43620   *) ac_try_echo=$ac_try;;
43621 esac
43622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43623   (eval "$ac_link") 2>conftest.er1
43624   ac_status=$?
43625   grep -v '^ *+' conftest.er1 >conftest.err
43626   rm -f conftest.er1
43627   cat conftest.err >&5
43628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43629   (exit $ac_status); } && {
43630          test -z "$ac_c_werror_flag" ||
43631          test ! -s conftest.err
43632        } && test -s conftest$ac_exeext &&
43633        $as_test_x conftest$ac_exeext; then
43634   ac_cv_lib_nvpair_nvlist_next_nvpair=yes
43635 else
43636   echo "$as_me: failed program was:" >&5
43637 sed 's/^/| /' conftest.$ac_ext >&5
43638
43639         ac_cv_lib_nvpair_nvlist_next_nvpair=no
43640 fi
43641
43642 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43643       conftest$ac_exeext conftest.$ac_ext
43644 LIBS=$ac_check_lib_save_LIBS
43645 fi
43646 { echo "$as_me:$LINENO: result: $ac_cv_lib_nvpair_nvlist_next_nvpair" >&5
43647 echo "${ECHO_T}$ac_cv_lib_nvpair_nvlist_next_nvpair" >&6; }
43648 if test $ac_cv_lib_nvpair_nvlist_next_nvpair = yes; then
43649
43650
43651 cat >>confdefs.h <<\_ACEOF
43652 #define HAVE_NVLIST_NEXT_NVPAIR 1
43653 _ACEOF
43654
43655                 FDLIBS="-lnvpair $FDLIBS"
43656
43657
43658 fi
43659
43660       fi
43661    fi
43662
43663    if test x$support_xattr = xyes -a $have_xattr != yes; then
43664       { { echo "$as_me:$LINENO: error: xattr support explicitly enabled but no supported xattr implementation found,
43665   please either load the xattr libraries or rerun configure without --enable-xattr" >&5
43666 echo "$as_me: error: xattr support explicitly enabled but no supported xattr implementation found,
43667   please either load the xattr libraries or rerun configure without --enable-xattr" >&2;}
43668    { (exit 1); exit 1; }; }
43669    else
43670       if test $have_xattr = yes; then
43671
43672 cat >>confdefs.h <<\_ACEOF
43673 #define HAVE_XATTR 1
43674 _ACEOF
43675
43676       fi
43677    fi
43678 fi
43679
43680 PTHREAD_LIB=""
43681 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
43682 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
43683 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
43684   echo $ECHO_N "(cached) $ECHO_C" >&6
43685 else
43686   ac_check_lib_save_LIBS=$LIBS
43687 LIBS="-lpthread  $LIBS"
43688 cat >conftest.$ac_ext <<_ACEOF
43689 /* confdefs.h.  */
43690 _ACEOF
43691 cat confdefs.h >>conftest.$ac_ext
43692 cat >>conftest.$ac_ext <<_ACEOF
43693 /* end confdefs.h.  */
43694
43695 /* Override any GCC internal prototype to avoid an error.
43696    Use char because int might match the return type of a GCC
43697    builtin and then its argument prototype would still apply.  */
43698 #ifdef __cplusplus
43699 extern "C"
43700 #endif
43701 char pthread_create ();
43702 int
43703 main ()
43704 {
43705 return pthread_create ();
43706   ;
43707   return 0;
43708 }
43709 _ACEOF
43710 rm -f conftest.$ac_objext conftest$ac_exeext
43711 if { (ac_try="$ac_link"
43712 case "(($ac_try" in
43713   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43714   *) ac_try_echo=$ac_try;;
43715 esac
43716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43717   (eval "$ac_link") 2>conftest.er1
43718   ac_status=$?
43719   grep -v '^ *+' conftest.er1 >conftest.err
43720   rm -f conftest.er1
43721   cat conftest.err >&5
43722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43723   (exit $ac_status); } && {
43724          test -z "$ac_c_werror_flag" ||
43725          test ! -s conftest.err
43726        } && test -s conftest$ac_exeext &&
43727        $as_test_x conftest$ac_exeext; then
43728   ac_cv_lib_pthread_pthread_create=yes
43729 else
43730   echo "$as_me: failed program was:" >&5
43731 sed 's/^/| /' conftest.$ac_ext >&5
43732
43733         ac_cv_lib_pthread_pthread_create=no
43734 fi
43735
43736 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43737       conftest$ac_exeext conftest.$ac_ext
43738 LIBS=$ac_check_lib_save_LIBS
43739 fi
43740 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
43741 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
43742 if test $ac_cv_lib_pthread_pthread_create = yes; then
43743   PTHREAD_LIB="-lpthread"
43744 else
43745
43746        { echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
43747 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6; }
43748 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
43749   echo $ECHO_N "(cached) $ECHO_C" >&6
43750 else
43751   ac_check_lib_save_LIBS=$LIBS
43752 LIBS="-lpthreads  $LIBS"
43753 cat >conftest.$ac_ext <<_ACEOF
43754 /* confdefs.h.  */
43755 _ACEOF
43756 cat confdefs.h >>conftest.$ac_ext
43757 cat >>conftest.$ac_ext <<_ACEOF
43758 /* end confdefs.h.  */
43759
43760 /* Override any GCC internal prototype to avoid an error.
43761    Use char because int might match the return type of a GCC
43762    builtin and then its argument prototype would still apply.  */
43763 #ifdef __cplusplus
43764 extern "C"
43765 #endif
43766 char pthread_create ();
43767 int
43768 main ()
43769 {
43770 return pthread_create ();
43771   ;
43772   return 0;
43773 }
43774 _ACEOF
43775 rm -f conftest.$ac_objext conftest$ac_exeext
43776 if { (ac_try="$ac_link"
43777 case "(($ac_try" in
43778   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43779   *) ac_try_echo=$ac_try;;
43780 esac
43781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43782   (eval "$ac_link") 2>conftest.er1
43783   ac_status=$?
43784   grep -v '^ *+' conftest.er1 >conftest.err
43785   rm -f conftest.er1
43786   cat conftest.err >&5
43787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43788   (exit $ac_status); } && {
43789          test -z "$ac_c_werror_flag" ||
43790          test ! -s conftest.err
43791        } && test -s conftest$ac_exeext &&
43792        $as_test_x conftest$ac_exeext; then
43793   ac_cv_lib_pthreads_pthread_create=yes
43794 else
43795   echo "$as_me: failed program was:" >&5
43796 sed 's/^/| /' conftest.$ac_ext >&5
43797
43798         ac_cv_lib_pthreads_pthread_create=no
43799 fi
43800
43801 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43802       conftest$ac_exeext conftest.$ac_ext
43803 LIBS=$ac_check_lib_save_LIBS
43804 fi
43805 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
43806 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6; }
43807 if test $ac_cv_lib_pthreads_pthread_create = yes; then
43808   PTHREAD_LIB="-lpthreads"
43809 else
43810
43811               { echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
43812 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6; }
43813 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
43814   echo $ECHO_N "(cached) $ECHO_C" >&6
43815 else
43816   ac_check_lib_save_LIBS=$LIBS
43817 LIBS="-lc_r  $LIBS"
43818 cat >conftest.$ac_ext <<_ACEOF
43819 /* confdefs.h.  */
43820 _ACEOF
43821 cat confdefs.h >>conftest.$ac_ext
43822 cat >>conftest.$ac_ext <<_ACEOF
43823 /* end confdefs.h.  */
43824
43825 /* Override any GCC internal prototype to avoid an error.
43826    Use char because int might match the return type of a GCC
43827    builtin and then its argument prototype would still apply.  */
43828 #ifdef __cplusplus
43829 extern "C"
43830 #endif
43831 char pthread_create ();
43832 int
43833 main ()
43834 {
43835 return pthread_create ();
43836   ;
43837   return 0;
43838 }
43839 _ACEOF
43840 rm -f conftest.$ac_objext conftest$ac_exeext
43841 if { (ac_try="$ac_link"
43842 case "(($ac_try" in
43843   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43844   *) ac_try_echo=$ac_try;;
43845 esac
43846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43847   (eval "$ac_link") 2>conftest.er1
43848   ac_status=$?
43849   grep -v '^ *+' conftest.er1 >conftest.err
43850   rm -f conftest.er1
43851   cat conftest.err >&5
43852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43853   (exit $ac_status); } && {
43854          test -z "$ac_c_werror_flag" ||
43855          test ! -s conftest.err
43856        } && test -s conftest$ac_exeext &&
43857        $as_test_x conftest$ac_exeext; then
43858   ac_cv_lib_c_r_pthread_create=yes
43859 else
43860   echo "$as_me: failed program was:" >&5
43861 sed 's/^/| /' conftest.$ac_ext >&5
43862
43863         ac_cv_lib_c_r_pthread_create=no
43864 fi
43865
43866 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43867       conftest$ac_exeext conftest.$ac_ext
43868 LIBS=$ac_check_lib_save_LIBS
43869 fi
43870 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
43871 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6; }
43872 if test $ac_cv_lib_c_r_pthread_create = yes; then
43873   PTHREAD_LIB="-lc_r"
43874 else
43875
43876                      { echo "$as_me:$LINENO: checking for pthread_create" >&5
43877 echo $ECHO_N "checking for pthread_create... $ECHO_C" >&6; }
43878 if test "${ac_cv_func_pthread_create+set}" = set; then
43879   echo $ECHO_N "(cached) $ECHO_C" >&6
43880 else
43881   cat >conftest.$ac_ext <<_ACEOF
43882 /* confdefs.h.  */
43883 _ACEOF
43884 cat confdefs.h >>conftest.$ac_ext
43885 cat >>conftest.$ac_ext <<_ACEOF
43886 /* end confdefs.h.  */
43887 /* Define pthread_create to an innocuous variant, in case <limits.h> declares pthread_create.
43888    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43889 #define pthread_create innocuous_pthread_create
43890
43891 /* System header to define __stub macros and hopefully few prototypes,
43892     which can conflict with char pthread_create (); below.
43893     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43894     <limits.h> exists even on freestanding compilers.  */
43895
43896 #ifdef __STDC__
43897 # include <limits.h>
43898 #else
43899 # include <assert.h>
43900 #endif
43901
43902 #undef pthread_create
43903
43904 /* Override any GCC internal prototype to avoid an error.
43905    Use char because int might match the return type of a GCC
43906    builtin and then its argument prototype would still apply.  */
43907 #ifdef __cplusplus
43908 extern "C"
43909 #endif
43910 char pthread_create ();
43911 /* The GNU C library defines this for functions which it implements
43912     to always fail with ENOSYS.  Some functions are actually named
43913     something starting with __ and the normal name is an alias.  */
43914 #if defined __stub_pthread_create || defined __stub___pthread_create
43915 choke me
43916 #endif
43917
43918 int
43919 main ()
43920 {
43921 return pthread_create ();
43922   ;
43923   return 0;
43924 }
43925 _ACEOF
43926 rm -f conftest.$ac_objext conftest$ac_exeext
43927 if { (ac_try="$ac_link"
43928 case "(($ac_try" in
43929   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43930   *) ac_try_echo=$ac_try;;
43931 esac
43932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43933   (eval "$ac_link") 2>conftest.er1
43934   ac_status=$?
43935   grep -v '^ *+' conftest.er1 >conftest.err
43936   rm -f conftest.er1
43937   cat conftest.err >&5
43938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43939   (exit $ac_status); } && {
43940          test -z "$ac_c_werror_flag" ||
43941          test ! -s conftest.err
43942        } && test -s conftest$ac_exeext &&
43943        $as_test_x conftest$ac_exeext; then
43944   ac_cv_func_pthread_create=yes
43945 else
43946   echo "$as_me: failed program was:" >&5
43947 sed 's/^/| /' conftest.$ac_ext >&5
43948
43949         ac_cv_func_pthread_create=no
43950 fi
43951
43952 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43953       conftest$ac_exeext conftest.$ac_ext
43954 fi
43955 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
43956 echo "${ECHO_T}$ac_cv_func_pthread_create" >&6; }
43957
43958
43959
43960 fi
43961
43962
43963
43964 fi
43965
43966
43967
43968 fi
43969
43970
43971
43972
43973 for ac_header in sys/prctl.h sys/capability.h
43974 do
43975 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
43976 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
43977   { echo "$as_me:$LINENO: checking for $ac_header" >&5
43978 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
43979 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
43980   echo $ECHO_N "(cached) $ECHO_C" >&6
43981 fi
43982 ac_res=`eval echo '${'$as_ac_Header'}'`
43983                { echo "$as_me:$LINENO: result: $ac_res" >&5
43984 echo "${ECHO_T}$ac_res" >&6; }
43985 else
43986   # Is the header compilable?
43987 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
43988 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
43989 cat >conftest.$ac_ext <<_ACEOF
43990 /* confdefs.h.  */
43991 _ACEOF
43992 cat confdefs.h >>conftest.$ac_ext
43993 cat >>conftest.$ac_ext <<_ACEOF
43994 /* end confdefs.h.  */
43995 $ac_includes_default
43996 #include <$ac_header>
43997 _ACEOF
43998 rm -f conftest.$ac_objext
43999 if { (ac_try="$ac_compile"
44000 case "(($ac_try" in
44001   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44002   *) ac_try_echo=$ac_try;;
44003 esac
44004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44005   (eval "$ac_compile") 2>conftest.er1
44006   ac_status=$?
44007   grep -v '^ *+' conftest.er1 >conftest.err
44008   rm -f conftest.er1
44009   cat conftest.err >&5
44010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44011   (exit $ac_status); } && {
44012          test -z "$ac_c_werror_flag" ||
44013          test ! -s conftest.err
44014        } && test -s conftest.$ac_objext; then
44015   ac_header_compiler=yes
44016 else
44017   echo "$as_me: failed program was:" >&5
44018 sed 's/^/| /' conftest.$ac_ext >&5
44019
44020         ac_header_compiler=no
44021 fi
44022
44023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44024 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
44025 echo "${ECHO_T}$ac_header_compiler" >&6; }
44026
44027 # Is the header present?
44028 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
44029 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
44030 cat >conftest.$ac_ext <<_ACEOF
44031 /* confdefs.h.  */
44032 _ACEOF
44033 cat confdefs.h >>conftest.$ac_ext
44034 cat >>conftest.$ac_ext <<_ACEOF
44035 /* end confdefs.h.  */
44036 #include <$ac_header>
44037 _ACEOF
44038 if { (ac_try="$ac_cpp conftest.$ac_ext"
44039 case "(($ac_try" in
44040   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44041   *) ac_try_echo=$ac_try;;
44042 esac
44043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44044   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
44045   ac_status=$?
44046   grep -v '^ *+' conftest.er1 >conftest.err
44047   rm -f conftest.er1
44048   cat conftest.err >&5
44049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44050   (exit $ac_status); } >/dev/null && {
44051          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
44052          test ! -s conftest.err
44053        }; then
44054   ac_header_preproc=yes
44055 else
44056   echo "$as_me: failed program was:" >&5
44057 sed 's/^/| /' conftest.$ac_ext >&5
44058
44059   ac_header_preproc=no
44060 fi
44061
44062 rm -f conftest.err conftest.$ac_ext
44063 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
44064 echo "${ECHO_T}$ac_header_preproc" >&6; }
44065
44066 # So?  What about this header?
44067 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
44068   yes:no: )
44069     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
44070 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
44071     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
44072 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
44073     ac_header_preproc=yes
44074     ;;
44075   no:yes:* )
44076     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
44077 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
44078     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
44079 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
44080     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
44081 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
44082     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
44083 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
44084     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
44085 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
44086     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
44087 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
44088
44089     ;;
44090 esac
44091 { echo "$as_me:$LINENO: checking for $ac_header" >&5
44092 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
44093 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
44094   echo $ECHO_N "(cached) $ECHO_C" >&6
44095 else
44096   eval "$as_ac_Header=\$ac_header_preproc"
44097 fi
44098 ac_res=`eval echo '${'$as_ac_Header'}'`
44099                { echo "$as_me:$LINENO: result: $ac_res" >&5
44100 echo "${ECHO_T}$ac_res" >&6; }
44101
44102 fi
44103 if test `eval echo '${'$as_ac_Header'}'` = yes; then
44104   cat >>confdefs.h <<_ACEOF
44105 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
44106 _ACEOF
44107
44108 fi
44109
44110 done
44111
44112
44113
44114 for ac_func in prctl setreuid
44115 do
44116 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
44117 { echo "$as_me:$LINENO: checking for $ac_func" >&5
44118 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
44119 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
44120   echo $ECHO_N "(cached) $ECHO_C" >&6
44121 else
44122   cat >conftest.$ac_ext <<_ACEOF
44123 /* confdefs.h.  */
44124 _ACEOF
44125 cat confdefs.h >>conftest.$ac_ext
44126 cat >>conftest.$ac_ext <<_ACEOF
44127 /* end confdefs.h.  */
44128 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44129    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
44130 #define $ac_func innocuous_$ac_func
44131
44132 /* System header to define __stub macros and hopefully few prototypes,
44133     which can conflict with char $ac_func (); below.
44134     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44135     <limits.h> exists even on freestanding compilers.  */
44136
44137 #ifdef __STDC__
44138 # include <limits.h>
44139 #else
44140 # include <assert.h>
44141 #endif
44142
44143 #undef $ac_func
44144
44145 /* Override any GCC internal prototype to avoid an error.
44146    Use char because int might match the return type of a GCC
44147    builtin and then its argument prototype would still apply.  */
44148 #ifdef __cplusplus
44149 extern "C"
44150 #endif
44151 char $ac_func ();
44152 /* The GNU C library defines this for functions which it implements
44153     to always fail with ENOSYS.  Some functions are actually named
44154     something starting with __ and the normal name is an alias.  */
44155 #if defined __stub_$ac_func || defined __stub___$ac_func
44156 choke me
44157 #endif
44158
44159 int
44160 main ()
44161 {
44162 return $ac_func ();
44163   ;
44164   return 0;
44165 }
44166 _ACEOF
44167 rm -f conftest.$ac_objext conftest$ac_exeext
44168 if { (ac_try="$ac_link"
44169 case "(($ac_try" in
44170   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44171   *) ac_try_echo=$ac_try;;
44172 esac
44173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44174   (eval "$ac_link") 2>conftest.er1
44175   ac_status=$?
44176   grep -v '^ *+' conftest.er1 >conftest.err
44177   rm -f conftest.er1
44178   cat conftest.err >&5
44179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44180   (exit $ac_status); } && {
44181          test -z "$ac_c_werror_flag" ||
44182          test ! -s conftest.err
44183        } && test -s conftest$ac_exeext &&
44184        $as_test_x conftest$ac_exeext; then
44185   eval "$as_ac_var=yes"
44186 else
44187   echo "$as_me: failed program was:" >&5
44188 sed 's/^/| /' conftest.$ac_ext >&5
44189
44190         eval "$as_ac_var=no"
44191 fi
44192
44193 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44194       conftest$ac_exeext conftest.$ac_ext
44195 fi
44196 ac_res=`eval echo '${'$as_ac_var'}'`
44197                { echo "$as_me:$LINENO: result: $ac_res" >&5
44198 echo "${ECHO_T}$ac_res" >&6; }
44199 if test `eval echo '${'$as_ac_var'}'` = yes; then
44200   cat >>confdefs.h <<_ACEOF
44201 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44202 _ACEOF
44203
44204 fi
44205 done
44206
44207 { echo "$as_me:$LINENO: checking for cap_set_proc in -lcap" >&5
44208 echo $ECHO_N "checking for cap_set_proc in -lcap... $ECHO_C" >&6; }
44209 if test "${ac_cv_lib_cap_cap_set_proc+set}" = set; then
44210   echo $ECHO_N "(cached) $ECHO_C" >&6
44211 else
44212   ac_check_lib_save_LIBS=$LIBS
44213 LIBS="-lcap  $LIBS"
44214 cat >conftest.$ac_ext <<_ACEOF
44215 /* confdefs.h.  */
44216 _ACEOF
44217 cat confdefs.h >>conftest.$ac_ext
44218 cat >>conftest.$ac_ext <<_ACEOF
44219 /* end confdefs.h.  */
44220
44221 /* Override any GCC internal prototype to avoid an error.
44222    Use char because int might match the return type of a GCC
44223    builtin and then its argument prototype would still apply.  */
44224 #ifdef __cplusplus
44225 extern "C"
44226 #endif
44227 char cap_set_proc ();
44228 int
44229 main ()
44230 {
44231 return cap_set_proc ();
44232   ;
44233   return 0;
44234 }
44235 _ACEOF
44236 rm -f conftest.$ac_objext conftest$ac_exeext
44237 if { (ac_try="$ac_link"
44238 case "(($ac_try" in
44239   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44240   *) ac_try_echo=$ac_try;;
44241 esac
44242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44243   (eval "$ac_link") 2>conftest.er1
44244   ac_status=$?
44245   grep -v '^ *+' conftest.er1 >conftest.err
44246   rm -f conftest.er1
44247   cat conftest.err >&5
44248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44249   (exit $ac_status); } && {
44250          test -z "$ac_c_werror_flag" ||
44251          test ! -s conftest.err
44252        } && test -s conftest$ac_exeext &&
44253        $as_test_x conftest$ac_exeext; then
44254   ac_cv_lib_cap_cap_set_proc=yes
44255 else
44256   echo "$as_me: failed program was:" >&5
44257 sed 's/^/| /' conftest.$ac_ext >&5
44258
44259         ac_cv_lib_cap_cap_set_proc=no
44260 fi
44261
44262 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44263       conftest$ac_exeext conftest.$ac_ext
44264 LIBS=$ac_check_lib_save_LIBS
44265 fi
44266 { echo "$as_me:$LINENO: result: $ac_cv_lib_cap_cap_set_proc" >&5
44267 echo "${ECHO_T}$ac_cv_lib_cap_cap_set_proc" >&6; }
44268 if test $ac_cv_lib_cap_cap_set_proc = yes; then
44269   CAP_LIBS="-lcap"
44270 else
44271   CAP_LIBS=
44272 fi
44273
44274 if test x$CAP_LIBS = x-lcap; then
44275
44276 cat >>confdefs.h <<\_ACEOF
44277 #define HAVE_LIBCAP 1
44278 _ACEOF
44279
44280 fi
44281
44282
44283
44284 cat >>confdefs.h <<\_ACEOF
44285 #define FDLIBS 1
44286 _ACEOF
44287
44288
44289 CFLAGS=${CFLAGS--O}
44290
44291 if test x$have_gcc = xyes ; then
44292    CPPFLAGS="$CPPFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
44293    CFLAGS="$CFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
44294 fi
44295 LDFLAGS=${LDFLAGS--O}
44296 DB_LIBS="${SQL_LFLAGS}"
44297 CPPFLAGS="$CPPFLAGS"
44298 CFLAGS="$CFLAGS"
44299
44300
44301
44302
44303
44304
44305
44306
44307
44308
44309
44310
44311
44312
44313
44314
44315 OBJLIST=
44316
44317
44318 lld="lld"
44319 llu="llu"
44320
44321 WCFLAGS=
44322 WLDFLAGS=
44323
44324 PFILES="platforms/Makefile"
44325 PSCMD="ps -e"
44326 WIN32=
44327 MACOSX=
44328
44329 hostname=`uname -n | cut -d '.' -f 1`
44330 if test x${hostname} = x ; then
44331    hostname="localhost"
44332 fi
44333 ping -c 1 $hostname 2>/dev/null 1>/dev/null
44334 if test ! $? = 0; then
44335   hostname="localhost"
44336 fi
44337
44338 case "$DISTNAME" in
44339 aix)
44340    DISTVER=`uname -r`
44341    PSCMD="ps -e -o pid,comm"
44342    PFILES="${PFILES} \
44343       platforms/aix/Makefile"
44344    TAPEDRIVE="/dev/rmt0.1"
44345   ;;
44346 alpha)
44347    DISTVER=`uname -r`
44348    PTHREAD_LIB="-lpthread -lexc"
44349    if test "${CC}" = "gcc" ; then
44350       lld="lld"
44351       llu="llu"
44352    else
44353       lld="ld"
44354       llu="lu"
44355    fi
44356    TAPEDRIVE="/dev/nrmt0"
44357   ;;
44358 bsdi)
44359    DISTVER=`uname -a |awk '{print $3}'`
44360    TAPEDRIVE="/dev/nrmt0"
44361    PTHREAD_LIB="-pthread"
44362    CFLAGS="${CFLAGS} -pthread"
44363    PSCMD="ps -ax -o pid,command"
44364    lld="qd"
44365    llu="qu"
44366    PFILES="${PFILES} \
44367        platforms/bsdi/Makefile \
44368        platforms/bsdi/bacula-fd \
44369        platforms/bsdi/bacula-sd \
44370        platforms/bsdi/bacula-dir"
44371    largefile_support="yes"
44372   ;;
44373 cygwin)
44374    DISTVER=`uname -a |awk '{print $3}'`
44375    TAPEDRIVE="/dev/nrst0"
44376    WIN32=win32
44377    WCFLAGS="-mwindows"
44378    WLDFLAGS="-mwindows"
44379   ;;
44380 darwin)
44381    DISTVER=`uname -r`
44382    TAPEDRIVE="/dev/nst0"
44383    PSCMD="ps -e -o pid,command"
44384    MACOSX=macosx
44385    PFILES="${PFILES} \
44386       platforms/darwin/Makefile"
44387   ;;
44388 osx)
44389    DISTVER=`uname -r`
44390    TAPEDRIVE="/dev/nst0"
44391    PSCMD="ps -e -o pid,command"
44392    MACOSX=macosx
44393    PFILES="${PFILES} \
44394       platforms/osx/Makefile"
44395   ;;
44396 debian)
44397    if `test -f /etc/apt/sources.list && grep -q ubuntu /etc/apt/sources.list`; then
44398       DISTNAME="ubuntu"
44399    fi
44400    DISTVER=`cat /etc/debian_version`
44401    if test -f /etc/lsb-release ; then
44402       . /etc/lsb-release
44403       if test "x$DISTRIB_ID" != "x" ; then
44404          DISTNAME=$DISTRIB_ID
44405       fi
44406       if test "x$DISTRIB_RELEASE" != "x" ; then
44407          DISTVER=$DISTRIB_RELEASE
44408       fi
44409    fi
44410    if test "$DISTNAME" = "Ubuntu" ; then
44411       DISTNAME="ubuntu"
44412    fi
44413    TAPEDRIVE="/dev/nst0"
44414    PSCMD="ps -e -o pid,command"
44415    if test "$DISTNAME" = "ubuntu" ; then
44416       PFILES="${PFILES} \
44417          platforms/ubuntu/Makefile \
44418          platforms/ubuntu/bacula-fd \
44419          platforms/ubuntu/bacula-sd \
44420          platforms/ubuntu/bacula-dir"
44421    else
44422       PFILES="${PFILES} \
44423          platforms/debian/Makefile \
44424          platforms/debian/bacula-fd \
44425          platforms/debian/bacula-sd \
44426          platforms/debian/bacula-dir"
44427    fi
44428   ;;
44429 freebsd)
44430    DISTVER=`uname -a |awk '{print $3}'`
44431    VER=`echo $DISTVER | cut -c 1`
44432    if test x$VER = x4 ; then
44433       PTHREAD_LIB="${PTHREAD_LIBS:--pthread}"
44434       CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS:--pthread}"
44435    fi
44436    lld="qd"
44437    llu="qu"
44438    TAPEDRIVE="/dev/nrsa0"
44439    PSCMD="ps -ax -o pid,command"
44440    PFILES="${PFILES} \
44441        platforms/freebsd/Makefile \
44442        platforms/freebsd/bacula-fd \
44443        platforms/freebsd/bacula-sd \
44444        platforms/freebsd/bacula-dir"
44445    largefile_support="yes"
44446   ;;
44447 hpux)
44448    PSCMD="UNIX95=1; ps -e -o pid,comm"
44449    CFLAGS="${CFLAGS} -D_XOPEN_SOURCE_EXTENDED=1"
44450    DISTVER=`uname -r`
44451    TAPEDRIVE="/dev/rmt/0hnb"
44452    PTHREAD_LIB="-lpthread"
44453    cat >>confdefs.h <<\_ACEOF
44454 #define _INCLUDE_LONGLONG 1
44455 _ACEOF
44456
44457   ;;
44458 irix)
44459    DISTVER=`uname -r`
44460    TAPEDRIVE="/dev/rmt/0cbn"
44461    PSCMD="ps -e -o pid,comm"
44462    PFILES="${PFILES} \
44463        platforms/irix/Makefile \
44464        platforms/irix/bacula-fd \
44465        platforms/irix/bacula-sd \
44466        platforms/irix/bacula-dir"
44467   ;;
44468 netbsd)
44469    DISTVER=`uname -a |awk '{print $3}'`
44470    lld="qd"
44471    llu="qu"
44472    TAPEDRIVE="/dev/nrst0"
44473    PSCMD="ps -ax -o pid,command"
44474    PTHREAD_LIB="-pthread"
44475    CFLAGS="${CFLAGS} -pthread"
44476   ;;
44477 openbsd)
44478    DISTVER=`uname -a |awk '{print $3}'`
44479    lld="qd"
44480    llu="qu"
44481    TAPEDRIVE="/dev/nrst0"
44482    PSCMD="ps -ax -o pid,command"
44483    PTHREAD_LIB="-pthread"
44484    CFLAGS="${CFLAGS} -pthread"
44485    PFILES="${PFILES} \
44486        platforms/openbsd/Makefile \
44487        platforms/openbsd/bacula-fd \
44488        platforms/openbsd/bacula-sd \
44489        platforms/openbsd/bacula-dir"
44490   ;;
44491 redhat)
44492    if test -f /etc/whitebox-release ; then
44493       f=/etc/whitebox-release
44494    else
44495       f=/etc/redhat-release
44496    fi
44497    if test `cat $f | grep release |\
44498          cut -f 3 -d ' '`x = "Enterprise"x ; then
44499       DISTVER="Enterprise "`cat $f | grep release |\
44500           cut -f 6 -d ' '`
44501    else
44502        DISTVER=`cat /etc/redhat-release | grep release |\
44503            cut -f 5 -d ' '`
44504    fi
44505    TAPEDRIVE="/dev/nst0"
44506    PSCMD="ps -e -o pid,command"
44507    PFILES="${PFILES} \
44508        platforms/redhat/Makefile \
44509        platforms/redhat/bacula-fd \
44510        platforms/redhat/bacula-sd \
44511        platforms/redhat/bacula-dir
44512        "
44513   ;;
44514 mandrake)
44515    DISTVER=`cat /etc/mandrake-release | grep release |\
44516       cut -f 5 -d ' '`
44517    TAPEDRIVE="/dev/nst0"
44518    PSCMD="ps -e -o pid,command"
44519    PFILES="${PFILES} \
44520        platforms/mandrake/Makefile \
44521        platforms/mandrake/bacula-fd \
44522        platforms/mandrake/bacula-sd \
44523        platforms/mandrake/bacula-dir \
44524        "
44525   ;;
44526 gentoo)
44527    DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
44528    TAPEDRIVE="/dev/nst0"
44529    PSCMD="ps -e -o pid,command"
44530    PFILES="${PFILES} \
44531        platforms/gentoo/Makefile \
44532     platforms/gentoo/bacula-init \
44533        platforms/gentoo/bacula-fd \
44534        platforms/gentoo/bacula-sd \
44535        platforms/gentoo/bacula-dir"
44536   ;;
44537 slackware)
44538    DISTVER=`cat /etc/slackware-version`
44539    TAPEDRIVE="/dev/nst0"
44540    PSCMD="ps -e -o pid,command"
44541    PFILES="${PFILES} \
44542        platforms/slackware/Makefile \
44543        platforms/slackware/rc.bacula-fd \
44544        platforms/slackware/rc.bacula-sd \
44545        platforms/slackware/rc.bacula-dir\
44546        platforms/slackware/functions.bacula"
44547   ;;
44548 solaris)
44549    DISTVER=`uname -r`
44550    TAPEDRIVE="/dev/rmt/0cbn"
44551    PSCMD="ps -e -o pid,comm"
44552    PFILES="${PFILES} \
44553        platforms/solaris/Makefile \
44554        platforms/solaris/bacula-fd \
44555        platforms/solaris/bacula-sd \
44556        platforms/solaris/bacula-dir"
44557    if test x$DISTVER = x5.6 ; then
44558        cat >>confdefs.h <<\_ACEOF
44559 #define HAVE_OLD_SOCKOPT 1
44560 _ACEOF
44561
44562    fi
44563    LIBS="$LIBS -lresolv -lrt"
44564   ;;
44565 suse)
44566    DISTVER=`cat /etc/SuSE-release |grep VERSION|\
44567        cut -f 3 -d ' '`
44568    TAPEDRIVE="/dev/nst0"
44569    PSCMD="ps -e -o pid,command"
44570    PFILES="${PFILES} \
44571        platforms/suse/Makefile \
44572        platforms/suse/bacula-fd \
44573        platforms/suse/bacula-sd \
44574        platforms/suse/bacula-dir \
44575        platforms/suse/bacula"
44576   ;;
44577 suse5)
44578    DISTNAME=suse
44579    DISTVER=5.x
44580    TAPEDRIVE="/dev/nst0"
44581    PSCMD="ps -e -o pid,command"
44582    PFILES="${PFILES} \
44583        platforms/suse/Makefile \
44584        platforms/suse/bacula-fd \
44585        platforms/suse/bacula-sd \
44586        platforms/suse/bacula-dir"
44587   ;;
44588 unknown)
44589    DISTVER=unknown
44590    TAPEDRIVE="/dev/nst0"
44591   ;;
44592 *)
44593   echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
44594   ;;
44595 esac
44596
44597
44598
44599 LIBS="$PTHREAD_LIB $LIBS"
44600
44601 cat >>confdefs.h <<_ACEOF
44602 #define lld "$lld"
44603 _ACEOF
44604
44605 cat >>confdefs.h <<_ACEOF
44606 #define llu "$llu"
44607 _ACEOF
44608
44609
44610
44611
44612
44613
44614
44615
44616 MCOMMON=./autoconf/Make.common
44617
44618
44619 if test "x${subsysdir}" = "x${sbindir}" ; then
44620    echo " "
44621    echo " "
44622    echo "You have set both --sbindir and --with-subsys-dir"
44623    echo "  equal to: ${subsysdir} "
44624    echo "This is not permitted. Please reconfigure."
44625    echo " "
44626    echo "Aborting configuration ..."
44627    echo " "
44628    echo " "
44629    exit 1
44630 fi
44631
44632 ac_config_files="$ac_config_files autoconf/Make.common Makefile manpages/Makefile scripts/startmysql scripts/stopmysql scripts/btraceback scripts/startit scripts/stopit scripts/bconsole scripts/gconsole scripts/bacula scripts/bacula-ctl-dir scripts/bacula-ctl-fd scripts/bacula-ctl-sd scripts/devel_bacula scripts/Makefile scripts/logrotate scripts/bacula.desktop.gnome1 scripts/bacula.desktop.gnome2 scripts/bacula.desktop.gnome1.consolehelper scripts/bacula.desktop.gnome2.consolehelper scripts/bacula.desktop.gnome1.xsu scripts/bacula.desktop.gnome2.xsu scripts/bgnome-console.console_apps scripts/mtx-changer scripts/disk-changer scripts/dvd-handler scripts/dvd-simulator scripts/bacula-tray-monitor.desktop scripts/logwatch/Makefile scripts/logwatch/logfile.bacula.conf scripts/wxconsole.console_apps scripts/wxconsole.desktop.consolehelper scripts/wxconsole.desktop.xsu scripts/bat.desktop scripts/bat.desktop.xsu scripts/bat.desktop.consolehelper scripts/bat.console_apps src/Makefile src/host.h src/console/Makefile src/console/bconsole.conf src/qt-console/bat.conf src/qt-console/bat.pro src/qt-console/bat.pro.mingw32 src/qt-console/install_conf_file src/wx-console/Makefile src/wx-console/bwx-console.conf src/tray-monitor/Makefile src/tray-monitor/tray-monitor.conf src/dird/Makefile src/dird/bacula-dir.conf src/lib/Makefile src/stored/Makefile src/stored/bacula-sd.conf src/filed/Makefile src/filed/bacula-fd.conf src/cats/Makefile src/cats/make_catalog_backup.pl src/cats/make_catalog_backup src/cats/delete_catalog_backup src/cats/create_postgresql_database src/cats/update_postgresql_tables src/cats/make_postgresql_tables src/cats/grant_postgresql_privileges src/cats/drop_postgresql_tables src/cats/drop_postgresql_database src/cats/create_mysql_database src/cats/update_mysql_tables src/cats/make_mysql_tables src/cats/grant_mysql_privileges src/cats/drop_mysql_tables src/cats/drop_mysql_database src/cats/create_sqlite3_database src/cats/update_sqlite3_tables src/cats/make_sqlite3_tables src/cats/grant_sqlite3_privileges src/cats/drop_sqlite3_tables src/cats/drop_sqlite3_database src/cats/create_ingres_database src/cats/update_ingres_tables src/cats/make_ingres_tables src/cats/grant_ingres_privileges src/cats/drop_ingres_tables src/cats/drop_ingres_database src/cats/sqlite src/cats/mysql src/cats/create_bacula_database src/cats/update_bacula_tables src/cats/grant_bacula_privileges src/cats/make_bacula_tables src/cats/drop_bacula_tables src/cats/drop_bacula_database src/findlib/Makefile src/tools/Makefile src/plugins/fd/Makefile src/plugins/sd/Makefile src/plugins/dir/Makefile src/win32/Makefile.inc po/Makefile.in updatedb/update_mysql_tables_9_to_10 updatedb/update_sqlite3_tables_9_to_10 updatedb/update_postgresql_tables_9_to_10 updatedb/update_mysql_tables_10_to_11 updatedb/update_sqlite3_tables_10_to_11 updatedb/update_postgresql_tables_10_to_11 updatedb/update_mysql_tables_11_to_12 updatedb/update_sqlite3_tables_11_to_12 updatedb/update_postgresql_tables_11_to_12 examples/nagios/check_bacula/Makefile $PFILES"
44633
44634 ac_config_commands="$ac_config_commands default"
44635
44636 cat >confcache <<\_ACEOF
44637 # This file is a shell script that caches the results of configure
44638 # tests run on this system so they can be shared between configure
44639 # scripts and configure runs, see configure's option --config-cache.
44640 # It is not useful on other systems.  If it contains results you don't
44641 # want to keep, you may remove or edit it.
44642 #
44643 # config.status only pays attention to the cache file if you give it
44644 # the --recheck option to rerun configure.
44645 #
44646 # `ac_cv_env_foo' variables (set or unset) will be overridden when
44647 # loading this file, other *unset* `ac_cv_foo' will be assigned the
44648 # following values.
44649
44650 _ACEOF
44651
44652 # The following way of writing the cache mishandles newlines in values,
44653 # but we know of no workaround that is simple, portable, and efficient.
44654 # So, we kill variables containing newlines.
44655 # Ultrix sh set writes to stderr and can't be redirected directly,
44656 # and sets the high bit in the cache file unless we assign to the vars.
44657 (
44658   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
44659     eval ac_val=\$$ac_var
44660     case $ac_val in #(
44661     *${as_nl}*)
44662       case $ac_var in #(
44663       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
44664 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
44665       esac
44666       case $ac_var in #(
44667       _ | IFS | as_nl) ;; #(
44668       *) $as_unset $ac_var ;;
44669       esac ;;
44670     esac
44671   done
44672
44673   (set) 2>&1 |
44674     case $as_nl`(ac_space=' '; set) 2>&1` in #(
44675     *${as_nl}ac_space=\ *)
44676       # `set' does not quote correctly, so add quotes (double-quote
44677       # substitution turns \\\\ into \\, and sed turns \\ into \).
44678       sed -n \
44679         "s/'/'\\\\''/g;
44680           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
44681       ;; #(
44682     *)
44683       # `set' quotes correctly as required by POSIX, so do not add quotes.
44684       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
44685       ;;
44686     esac |
44687     sort
44688 ) |
44689   sed '
44690      /^ac_cv_env_/b end
44691      t clear
44692      :clear
44693      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
44694      t end
44695      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
44696      :end' >>confcache
44697 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
44698   if test -w "$cache_file"; then
44699     test "x$cache_file" != "x/dev/null" &&
44700       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
44701 echo "$as_me: updating cache $cache_file" >&6;}
44702     cat confcache >$cache_file
44703   else
44704     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
44705 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
44706   fi
44707 fi
44708 rm -f confcache
44709
44710 test "x$prefix" = xNONE && prefix=$ac_default_prefix
44711 # Let make expand exec_prefix.
44712 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
44713
44714 DEFS=-DHAVE_CONFIG_H
44715
44716 ac_libobjs=
44717 ac_ltlibobjs=
44718 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
44719   # 1. Remove the extension, and $U if already installed.
44720   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
44721   ac_i=`echo "$ac_i" | sed "$ac_script"`
44722   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
44723   #    will be set to the directory where LIBOBJS objects are built.
44724   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
44725   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
44726 done
44727 LIBOBJS=$ac_libobjs
44728
44729 LTLIBOBJS=$ac_ltlibobjs
44730
44731
44732
44733 : ${CONFIG_STATUS=./config.status}
44734 ac_clean_files_save=$ac_clean_files
44735 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
44736 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
44737 echo "$as_me: creating $CONFIG_STATUS" >&6;}
44738 cat >$CONFIG_STATUS <<_ACEOF
44739 #! $SHELL
44740 # Generated by $as_me.
44741 # Run this file to recreate the current configuration.
44742 # Compiler output produced by configure, useful for debugging
44743 # configure, is in config.log if it exists.
44744
44745 debug=false
44746 ac_cs_recheck=false
44747 ac_cs_silent=false
44748 SHELL=\${CONFIG_SHELL-$SHELL}
44749 _ACEOF
44750
44751 cat >>$CONFIG_STATUS <<\_ACEOF
44752 ## --------------------- ##
44753 ## M4sh Initialization.  ##
44754 ## --------------------- ##
44755
44756 # Be more Bourne compatible
44757 DUALCASE=1; export DUALCASE # for MKS sh
44758 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
44759   emulate sh
44760   NULLCMD=:
44761   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
44762   # is contrary to our usage.  Disable this feature.
44763   alias -g '${1+"$@"}'='"$@"'
44764   setopt NO_GLOB_SUBST
44765 else
44766   case `(set -o) 2>/dev/null` in
44767   *posix*) set -o posix ;;
44768 esac
44769
44770 fi
44771
44772
44773
44774
44775 # PATH needs CR
44776 # Avoid depending upon Character Ranges.
44777 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
44778 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
44779 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
44780 as_cr_digits='0123456789'
44781 as_cr_alnum=$as_cr_Letters$as_cr_digits
44782
44783 # The user is always right.
44784 if test "${PATH_SEPARATOR+set}" != set; then
44785   echo "#! /bin/sh" >conf$$.sh
44786   echo  "exit 0"   >>conf$$.sh
44787   chmod +x conf$$.sh
44788   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
44789     PATH_SEPARATOR=';'
44790   else
44791     PATH_SEPARATOR=:
44792   fi
44793   rm -f conf$$.sh
44794 fi
44795
44796 # Support unset when possible.
44797 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
44798   as_unset=unset
44799 else
44800   as_unset=false
44801 fi
44802
44803
44804 # IFS
44805 # We need space, tab and new line, in precisely that order.  Quoting is
44806 # there to prevent editors from complaining about space-tab.
44807 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
44808 # splitting by setting IFS to empty value.)
44809 as_nl='
44810 '
44811 IFS=" ""        $as_nl"
44812
44813 # Find who we are.  Look in the path if we contain no directory separator.
44814 case $0 in
44815   *[\\/]* ) as_myself=$0 ;;
44816   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44817 for as_dir in $PATH
44818 do
44819   IFS=$as_save_IFS
44820   test -z "$as_dir" && as_dir=.
44821   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
44822 done
44823 IFS=$as_save_IFS
44824
44825      ;;
44826 esac
44827 # We did not find ourselves, most probably we were run as `sh COMMAND'
44828 # in which case we are not to be found in the path.
44829 if test "x$as_myself" = x; then
44830   as_myself=$0
44831 fi
44832 if test ! -f "$as_myself"; then
44833   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
44834   { (exit 1); exit 1; }
44835 fi
44836
44837 # Work around bugs in pre-3.0 UWIN ksh.
44838 for as_var in ENV MAIL MAILPATH
44839 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
44840 done
44841 PS1='$ '
44842 PS2='> '
44843 PS4='+ '
44844
44845 # NLS nuisances.
44846 for as_var in \
44847   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
44848   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44849   LC_TELEPHONE LC_TIME
44850 do
44851   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
44852     eval $as_var=C; export $as_var
44853   else
44854     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
44855   fi
44856 done
44857
44858 # Required to use basename.
44859 if expr a : '\(a\)' >/dev/null 2>&1 &&
44860    test "X`expr 00001 : '.*\(...\)'`" = X001; then
44861   as_expr=expr
44862 else
44863   as_expr=false
44864 fi
44865
44866 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
44867   as_basename=basename
44868 else
44869   as_basename=false
44870 fi
44871
44872
44873 # Name of the executable.
44874 as_me=`$as_basename -- "$0" ||
44875 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
44876          X"$0" : 'X\(//\)$' \| \
44877          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
44878 echo X/"$0" |
44879     sed '/^.*\/\([^/][^/]*\)\/*$/{
44880             s//\1/
44881             q
44882           }
44883           /^X\/\(\/\/\)$/{
44884             s//\1/
44885             q
44886           }
44887           /^X\/\(\/\).*/{
44888             s//\1/
44889             q
44890           }
44891           s/.*/./; q'`
44892
44893 # CDPATH.
44894 $as_unset CDPATH
44895
44896
44897
44898   as_lineno_1=$LINENO
44899   as_lineno_2=$LINENO
44900   test "x$as_lineno_1" != "x$as_lineno_2" &&
44901   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
44902
44903   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
44904   # uniformly replaced by the line number.  The first 'sed' inserts a
44905   # line-number line after each line using $LINENO; the second 'sed'
44906   # does the real work.  The second script uses 'N' to pair each
44907   # line-number line with the line containing $LINENO, and appends
44908   # trailing '-' during substitution so that $LINENO is not a special
44909   # case at line end.
44910   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
44911   # scripts with optimization help from Paolo Bonzini.  Blame Lee
44912   # E. McMahon (1931-1989) for sed's syntax.  :-)
44913   sed -n '
44914     p
44915     /[$]LINENO/=
44916   ' <$as_myself |
44917     sed '
44918       s/[$]LINENO.*/&-/
44919       t lineno
44920       b
44921       :lineno
44922       N
44923       :loop
44924       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
44925       t loop
44926       s/-\n.*//
44927     ' >$as_me.lineno &&
44928   chmod +x "$as_me.lineno" ||
44929     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
44930    { (exit 1); exit 1; }; }
44931
44932   # Don't try to exec as it changes $[0], causing all sort of problems
44933   # (the dirname of $[0] is not the place where we might find the
44934   # original and so on.  Autoconf is especially sensitive to this).
44935   . "./$as_me.lineno"
44936   # Exit status is that of the last command.
44937   exit
44938 }
44939
44940
44941 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
44942   as_dirname=dirname
44943 else
44944   as_dirname=false
44945 fi
44946
44947 ECHO_C= ECHO_N= ECHO_T=
44948 case `echo -n x` in
44949 -n*)
44950   case `echo 'x\c'` in
44951   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
44952   *)   ECHO_C='\c';;
44953   esac;;
44954 *)
44955   ECHO_N='-n';;
44956 esac
44957
44958 if expr a : '\(a\)' >/dev/null 2>&1 &&
44959    test "X`expr 00001 : '.*\(...\)'`" = X001; then
44960   as_expr=expr
44961 else
44962   as_expr=false
44963 fi
44964
44965 rm -f conf$$ conf$$.exe conf$$.file
44966 if test -d conf$$.dir; then
44967   rm -f conf$$.dir/conf$$.file
44968 else
44969   rm -f conf$$.dir
44970   mkdir conf$$.dir
44971 fi
44972 echo >conf$$.file
44973 if ln -s conf$$.file conf$$ 2>/dev/null; then
44974   as_ln_s='ln -s'
44975   # ... but there are two gotchas:
44976   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
44977   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
44978   # In both cases, we have to default to `cp -p'.
44979   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
44980     as_ln_s='cp -p'
44981 elif ln conf$$.file conf$$ 2>/dev/null; then
44982   as_ln_s=ln
44983 else
44984   as_ln_s='cp -p'
44985 fi
44986 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
44987 rmdir conf$$.dir 2>/dev/null
44988
44989 if mkdir -p . 2>/dev/null; then
44990   as_mkdir_p=:
44991 else
44992   test -d ./-p && rmdir ./-p
44993   as_mkdir_p=false
44994 fi
44995
44996 if test -x / >/dev/null 2>&1; then
44997   as_test_x='test -x'
44998 else
44999   if ls -dL / >/dev/null 2>&1; then
45000     as_ls_L_option=L
45001   else
45002     as_ls_L_option=
45003   fi
45004   as_test_x='
45005     eval sh -c '\''
45006       if test -d "$1"; then
45007         test -d "$1/.";
45008       else
45009         case $1 in
45010         -*)set "./$1";;
45011         esac;
45012         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
45013         ???[sx]*):;;*)false;;esac;fi
45014     '\'' sh
45015   '
45016 fi
45017 as_executable_p=$as_test_x
45018
45019 # Sed expression to map a string onto a valid CPP name.
45020 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
45021
45022 # Sed expression to map a string onto a valid variable name.
45023 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
45024
45025
45026 exec 6>&1
45027
45028 # Save the log message, to keep $[0] and so on meaningful, and to
45029 # report actual input values of CONFIG_FILES etc. instead of their
45030 # values after options handling.
45031 ac_log="
45032 This file was extended by $as_me, which was
45033 generated by GNU Autoconf 2.61.  Invocation command line was
45034
45035   CONFIG_FILES    = $CONFIG_FILES
45036   CONFIG_HEADERS  = $CONFIG_HEADERS
45037   CONFIG_LINKS    = $CONFIG_LINKS
45038   CONFIG_COMMANDS = $CONFIG_COMMANDS
45039   $ $0 $@
45040
45041 on `(hostname || uname -n) 2>/dev/null | sed 1q`
45042 "
45043
45044 _ACEOF
45045
45046 cat >>$CONFIG_STATUS <<_ACEOF
45047 # Files that config.status was made for.
45048 config_files="$ac_config_files"
45049 config_headers="$ac_config_headers"
45050 config_commands="$ac_config_commands"
45051
45052 _ACEOF
45053
45054 cat >>$CONFIG_STATUS <<\_ACEOF
45055 ac_cs_usage="\
45056 \`$as_me' instantiates files from templates according to the
45057 current configuration.
45058
45059 Usage: $0 [OPTIONS] [FILE]...
45060
45061   -h, --help       print this help, then exit
45062   -V, --version    print version number and configuration settings, then exit
45063   -q, --quiet      do not print progress messages
45064   -d, --debug      don't remove temporary files
45065       --recheck    update $as_me by reconfiguring in the same conditions
45066   --file=FILE[:TEMPLATE]
45067                    instantiate the configuration file FILE
45068   --header=FILE[:TEMPLATE]
45069                    instantiate the configuration header FILE
45070
45071 Configuration files:
45072 $config_files
45073
45074 Configuration headers:
45075 $config_headers
45076
45077 Configuration commands:
45078 $config_commands
45079
45080 Report bugs to <bug-autoconf@gnu.org>."
45081
45082 _ACEOF
45083 cat >>$CONFIG_STATUS <<_ACEOF
45084 ac_cs_version="\\
45085 config.status
45086 configured by $0, generated by GNU Autoconf 2.61,
45087   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
45088
45089 Copyright (C) 2006 Free Software Foundation, Inc.
45090 This config.status script is free software; the Free Software Foundation
45091 gives unlimited permission to copy, distribute and modify it."
45092
45093 ac_pwd='$ac_pwd'
45094 srcdir='$srcdir'
45095 INSTALL='$INSTALL'
45096 _ACEOF
45097
45098 cat >>$CONFIG_STATUS <<\_ACEOF
45099 # If no file are specified by the user, then we need to provide default
45100 # value.  By we need to know if files were specified by the user.
45101 ac_need_defaults=:
45102 while test $# != 0
45103 do
45104   case $1 in
45105   --*=*)
45106     ac_option=`expr "X$1" : 'X\([^=]*\)='`
45107     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
45108     ac_shift=:
45109     ;;
45110   *)
45111     ac_option=$1
45112     ac_optarg=$2
45113     ac_shift=shift
45114     ;;
45115   esac
45116
45117   case $ac_option in
45118   # Handling of the options.
45119   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
45120     ac_cs_recheck=: ;;
45121   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
45122     echo "$ac_cs_version"; exit ;;
45123   --debug | --debu | --deb | --de | --d | -d )
45124     debug=: ;;
45125   --file | --fil | --fi | --f )
45126     $ac_shift
45127     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
45128     ac_need_defaults=false;;
45129   --header | --heade | --head | --hea )
45130     $ac_shift
45131     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
45132     ac_need_defaults=false;;
45133   --he | --h)
45134     # Conflict between --help and --header
45135     { echo "$as_me: error: ambiguous option: $1
45136 Try \`$0 --help' for more information." >&2
45137    { (exit 1); exit 1; }; };;
45138   --help | --hel | -h )
45139     echo "$ac_cs_usage"; exit ;;
45140   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
45141   | -silent | --silent | --silen | --sile | --sil | --si | --s)
45142     ac_cs_silent=: ;;
45143
45144   # This is an error.
45145   -*) { echo "$as_me: error: unrecognized option: $1
45146 Try \`$0 --help' for more information." >&2
45147    { (exit 1); exit 1; }; } ;;
45148
45149   *) ac_config_targets="$ac_config_targets $1"
45150      ac_need_defaults=false ;;
45151
45152   esac
45153   shift
45154 done
45155
45156 ac_configure_extra_args=
45157
45158 if $ac_cs_silent; then
45159   exec 6>/dev/null
45160   ac_configure_extra_args="$ac_configure_extra_args --silent"
45161 fi
45162
45163 _ACEOF
45164 cat >>$CONFIG_STATUS <<_ACEOF
45165 if \$ac_cs_recheck; then
45166   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
45167   CONFIG_SHELL=$SHELL
45168   export CONFIG_SHELL
45169   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
45170 fi
45171
45172 _ACEOF
45173 cat >>$CONFIG_STATUS <<\_ACEOF
45174 exec 5>>config.log
45175 {
45176   echo
45177   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
45178 ## Running $as_me. ##
45179 _ASBOX
45180   echo "$ac_log"
45181 } >&5
45182
45183 _ACEOF
45184 cat >>$CONFIG_STATUS <<_ACEOF
45185 #
45186 # INIT-COMMANDS
45187 #
45188
45189
45190 # The HP-UX ksh and POSIX shell print the target directory to stdout
45191 # if CDPATH is set.
45192 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
45193
45194 sed_quote_subst='$sed_quote_subst'
45195 double_quote_subst='$double_quote_subst'
45196 delay_variable_subst='$delay_variable_subst'
45197 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
45198 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
45199 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
45200 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
45201 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
45202 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
45203 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
45204 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
45205 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
45206 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
45207 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
45208 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
45209 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
45210 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
45211 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
45212 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
45213 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
45214 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
45215 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
45216 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
45217 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
45218 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
45219 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
45220 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
45221 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
45222 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
45223 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
45224 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
45225 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
45226 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
45227 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
45228 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
45229 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
45230 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
45231 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
45232 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
45233 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
45234 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
45235 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
45236 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
45237 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
45238 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
45239 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
45240 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
45241 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"`'
45242 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"`'
45243 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
45244 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
45245 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
45246 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
45247 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
45248 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
45249 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
45250 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
45251 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
45252 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
45253 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
45254 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
45255 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
45256 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
45257 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
45258 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
45259 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
45260 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
45261 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
45262 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
45263 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
45264 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
45265 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
45266 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
45267 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
45268 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
45269 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
45270 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
45271 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
45272 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
45273 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
45274 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
45275 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
45276 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
45277 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
45278 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
45279 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
45280 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
45281 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
45282 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
45283 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
45284 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
45285 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
45286 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
45287 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
45288 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
45289 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
45290 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
45291 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
45292 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
45293 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
45294 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
45295 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
45296 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
45297 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
45298 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
45299 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
45300 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
45301 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
45302 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
45303 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
45304 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
45305 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
45306 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
45307 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
45308 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
45309 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
45310 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
45311 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
45312 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
45313 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
45314 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
45315 compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
45316 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
45317 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
45318 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
45319 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
45320 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
45321 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45322 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45323 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45324 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45325 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45326 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45327 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45328 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45329 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45330 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45331 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45332 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45333 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45334 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45335 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45336 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45337 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45338 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45339 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45340 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45341 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45342 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45343 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45344 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45345 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45346 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45347 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45348 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45349 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45350 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45351 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45352 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45353 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45354 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45355 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45356 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45357 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45358 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45359 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45360 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45361 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45362 compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45363 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45364 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45365 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45366 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45367 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45368
45369 LTCC='$LTCC'
45370 LTCFLAGS='$LTCFLAGS'
45371 compiler='$compiler_DEFAULT'
45372
45373 # Quote evaled strings.
45374 for var in SED \
45375 GREP \
45376 EGREP \
45377 FGREP \
45378 LD \
45379 NM \
45380 LN_S \
45381 lt_SP2NL \
45382 lt_NL2SP \
45383 reload_flag \
45384 OBJDUMP \
45385 deplibs_check_method \
45386 file_magic_cmd \
45387 AR \
45388 AR_FLAGS \
45389 STRIP \
45390 RANLIB \
45391 CC \
45392 CFLAGS \
45393 compiler \
45394 lt_cv_sys_global_symbol_pipe \
45395 lt_cv_sys_global_symbol_to_cdecl \
45396 lt_cv_sys_global_symbol_to_c_name_address \
45397 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
45398 SHELL \
45399 ECHO \
45400 lt_prog_compiler_no_builtin_flag \
45401 lt_prog_compiler_wl \
45402 lt_prog_compiler_pic \
45403 lt_prog_compiler_static \
45404 lt_cv_prog_compiler_c_o \
45405 need_locks \
45406 DSYMUTIL \
45407 NMEDIT \
45408 LIPO \
45409 OTOOL \
45410 OTOOL64 \
45411 shrext_cmds \
45412 export_dynamic_flag_spec \
45413 whole_archive_flag_spec \
45414 compiler_needs_object \
45415 with_gnu_ld \
45416 allow_undefined_flag \
45417 no_undefined_flag \
45418 hardcode_libdir_flag_spec \
45419 hardcode_libdir_flag_spec_ld \
45420 hardcode_libdir_separator \
45421 fix_srcfile_path \
45422 exclude_expsyms \
45423 include_expsyms \
45424 file_list_spec \
45425 variables_saved_for_relink \
45426 libname_spec \
45427 library_names_spec \
45428 soname_spec \
45429 finish_eval \
45430 old_striplib \
45431 striplib \
45432 compiler_lib_search_dirs \
45433 predep_objects \
45434 postdep_objects \
45435 predeps \
45436 postdeps \
45437 compiler_lib_search_path \
45438 LD_CXX \
45439 compiler_CXX \
45440 lt_prog_compiler_no_builtin_flag_CXX \
45441 lt_prog_compiler_wl_CXX \
45442 lt_prog_compiler_pic_CXX \
45443 lt_prog_compiler_static_CXX \
45444 lt_cv_prog_compiler_c_o_CXX \
45445 export_dynamic_flag_spec_CXX \
45446 whole_archive_flag_spec_CXX \
45447 compiler_needs_object_CXX \
45448 with_gnu_ld_CXX \
45449 allow_undefined_flag_CXX \
45450 no_undefined_flag_CXX \
45451 hardcode_libdir_flag_spec_CXX \
45452 hardcode_libdir_flag_spec_ld_CXX \
45453 hardcode_libdir_separator_CXX \
45454 fix_srcfile_path_CXX \
45455 exclude_expsyms_CXX \
45456 include_expsyms_CXX \
45457 file_list_spec_CXX \
45458 compiler_lib_search_dirs_CXX \
45459 predep_objects_CXX \
45460 postdep_objects_CXX \
45461 predeps_CXX \
45462 postdeps_CXX \
45463 compiler_lib_search_path_CXX; do
45464     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
45465     *[\\\\\\\`\\"\\\$]*)
45466       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
45467       ;;
45468     *)
45469       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
45470       ;;
45471     esac
45472 done
45473
45474 # Double-quote double-evaled strings.
45475 for var in reload_cmds \
45476 old_postinstall_cmds \
45477 old_postuninstall_cmds \
45478 old_archive_cmds \
45479 extract_expsyms_cmds \
45480 old_archive_from_new_cmds \
45481 old_archive_from_expsyms_cmds \
45482 archive_cmds \
45483 archive_expsym_cmds \
45484 module_cmds \
45485 module_expsym_cmds \
45486 export_symbols_cmds \
45487 prelink_cmds \
45488 postinstall_cmds \
45489 postuninstall_cmds \
45490 finish_cmds \
45491 sys_lib_search_path_spec \
45492 sys_lib_dlsearch_path_spec \
45493 old_archive_cmds_CXX \
45494 old_archive_from_new_cmds_CXX \
45495 old_archive_from_expsyms_cmds_CXX \
45496 archive_cmds_CXX \
45497 archive_expsym_cmds_CXX \
45498 module_cmds_CXX \
45499 module_expsym_cmds_CXX \
45500 export_symbols_cmds_CXX \
45501 prelink_cmds_CXX; do
45502     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
45503     *[\\\\\\\`\\"\\\$]*)
45504       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
45505       ;;
45506     *)
45507       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
45508       ;;
45509     esac
45510 done
45511
45512 # Fix-up fallback echo if it was mangled by the above quoting rules.
45513 case \$lt_ECHO in
45514 *'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
45515   ;;
45516 esac
45517
45518 ac_aux_dir='$ac_aux_dir'
45519 xsi_shell='$xsi_shell'
45520 lt_shell_append='$lt_shell_append'
45521
45522 # See if we are running on zsh, and set the options which allow our
45523 # commands through without removal of \ escapes INIT.
45524 if test -n "\${ZSH_VERSION+set}" ; then
45525    setopt NO_GLOB_SUBST
45526 fi
45527
45528
45529     PACKAGE='$PACKAGE'
45530     VERSION='$VERSION'
45531     TIMESTAMP='$TIMESTAMP'
45532     RM='$RM'
45533     ofile='$ofile'
45534
45535
45536
45537
45538
45539 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
45540     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
45541     # from automake.
45542     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
45543     # Capture the value of LINGUAS because we need it to compute CATALOGS.
45544     LINGUAS="${LINGUAS-%UNSET%}"
45545
45546
45547 _ACEOF
45548
45549 cat >>$CONFIG_STATUS <<\_ACEOF
45550
45551 # Handling of arguments.
45552 for ac_config_target in $ac_config_targets
45553 do
45554   case $ac_config_target in
45555     "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
45556     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
45557     "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
45558     "autoconf/Make.common") CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
45559     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
45560     "manpages/Makefile") CONFIG_FILES="$CONFIG_FILES manpages/Makefile" ;;
45561     "scripts/startmysql") CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
45562     "scripts/stopmysql") CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
45563     "scripts/btraceback") CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
45564     "scripts/startit") CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
45565     "scripts/stopit") CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
45566     "scripts/bconsole") CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
45567     "scripts/gconsole") CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
45568     "scripts/bacula") CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
45569     "scripts/bacula-ctl-dir") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-dir" ;;
45570     "scripts/bacula-ctl-fd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-fd" ;;
45571     "scripts/bacula-ctl-sd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-sd" ;;
45572     "scripts/devel_bacula") CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
45573     "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
45574     "scripts/logrotate") CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
45575     "scripts/bacula.desktop.gnome1") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
45576     "scripts/bacula.desktop.gnome2") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
45577     "scripts/bacula.desktop.gnome1.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
45578     "scripts/bacula.desktop.gnome2.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
45579     "scripts/bacula.desktop.gnome1.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
45580     "scripts/bacula.desktop.gnome2.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
45581     "scripts/bgnome-console.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bgnome-console.console_apps" ;;
45582     "scripts/mtx-changer") CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
45583     "scripts/disk-changer") CONFIG_FILES="$CONFIG_FILES scripts/disk-changer" ;;
45584     "scripts/dvd-handler") CONFIG_FILES="$CONFIG_FILES scripts/dvd-handler" ;;
45585     "scripts/dvd-simulator") CONFIG_FILES="$CONFIG_FILES scripts/dvd-simulator" ;;
45586     "scripts/bacula-tray-monitor.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bacula-tray-monitor.desktop" ;;
45587     "scripts/logwatch/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/Makefile" ;;
45588     "scripts/logwatch/logfile.bacula.conf") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/logfile.bacula.conf" ;;
45589     "scripts/wxconsole.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.console_apps" ;;
45590     "scripts/wxconsole.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.consolehelper" ;;
45591     "scripts/wxconsole.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.xsu" ;;
45592     "scripts/bat.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop" ;;
45593     "scripts/bat.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.xsu" ;;
45594     "scripts/bat.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.consolehelper" ;;
45595     "scripts/bat.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bat.console_apps" ;;
45596     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
45597     "src/host.h") CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
45598     "src/console/Makefile") CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
45599     "src/console/bconsole.conf") CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
45600     "src/qt-console/bat.conf") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.conf" ;;
45601     "src/qt-console/bat.pro") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro" ;;
45602     "src/qt-console/bat.pro.mingw32") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro.mingw32" ;;
45603     "src/qt-console/install_conf_file") CONFIG_FILES="$CONFIG_FILES src/qt-console/install_conf_file" ;;
45604     "src/wx-console/Makefile") CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
45605     "src/wx-console/bwx-console.conf") CONFIG_FILES="$CONFIG_FILES src/wx-console/bwx-console.conf" ;;
45606     "src/tray-monitor/Makefile") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/Makefile" ;;
45607     "src/tray-monitor/tray-monitor.conf") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/tray-monitor.conf" ;;
45608     "src/dird/Makefile") CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
45609     "src/dird/bacula-dir.conf") CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
45610     "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
45611     "src/stored/Makefile") CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
45612     "src/stored/bacula-sd.conf") CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
45613     "src/filed/Makefile") CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
45614     "src/filed/bacula-fd.conf") CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
45615     "src/cats/Makefile") CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
45616     "src/cats/make_catalog_backup.pl") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup.pl" ;;
45617     "src/cats/make_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
45618     "src/cats/delete_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
45619     "src/cats/create_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
45620     "src/cats/update_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
45621     "src/cats/make_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
45622     "src/cats/grant_postgresql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
45623     "src/cats/drop_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
45624     "src/cats/drop_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
45625     "src/cats/create_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
45626     "src/cats/update_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
45627     "src/cats/make_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
45628     "src/cats/grant_mysql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
45629     "src/cats/drop_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
45630     "src/cats/drop_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
45631     "src/cats/create_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite3_database" ;;
45632     "src/cats/update_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite3_tables" ;;
45633     "src/cats/make_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite3_tables" ;;
45634     "src/cats/grant_sqlite3_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite3_privileges" ;;
45635     "src/cats/drop_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_tables" ;;
45636     "src/cats/drop_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_database" ;;
45637     "src/cats/create_ingres_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_ingres_database" ;;
45638     "src/cats/update_ingres_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_ingres_tables" ;;
45639     "src/cats/make_ingres_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_ingres_tables" ;;
45640     "src/cats/grant_ingres_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_ingres_privileges" ;;
45641     "src/cats/drop_ingres_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_ingres_tables" ;;
45642     "src/cats/drop_ingres_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_ingres_database" ;;
45643     "src/cats/sqlite") CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
45644     "src/cats/mysql") CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
45645     "src/cats/create_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
45646     "src/cats/update_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
45647     "src/cats/grant_bacula_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
45648     "src/cats/make_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
45649     "src/cats/drop_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
45650     "src/cats/drop_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
45651     "src/findlib/Makefile") CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
45652     "src/tools/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
45653     "src/plugins/fd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/fd/Makefile" ;;
45654     "src/plugins/sd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/sd/Makefile" ;;
45655     "src/plugins/dir/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/dir/Makefile" ;;
45656     "src/win32/Makefile.inc") CONFIG_FILES="$CONFIG_FILES src/win32/Makefile.inc" ;;
45657     "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
45658     "updatedb/update_mysql_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_9_to_10" ;;
45659     "updatedb/update_sqlite3_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_9_to_10" ;;
45660     "updatedb/update_postgresql_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_9_to_10" ;;
45661     "updatedb/update_mysql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_10_to_11" ;;
45662     "updatedb/update_sqlite3_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_10_to_11" ;;
45663     "updatedb/update_postgresql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_10_to_11" ;;
45664     "updatedb/update_mysql_tables_11_to_12") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_11_to_12" ;;
45665     "updatedb/update_sqlite3_tables_11_to_12") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_11_to_12" ;;
45666     "updatedb/update_postgresql_tables_11_to_12") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_11_to_12" ;;
45667     "examples/nagios/check_bacula/Makefile") CONFIG_FILES="$CONFIG_FILES examples/nagios/check_bacula/Makefile" ;;
45668     "$PFILES") CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
45669     "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
45670
45671   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
45672 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
45673    { (exit 1); exit 1; }; };;
45674   esac
45675 done
45676
45677
45678 # If the user did not use the arguments to specify the items to instantiate,
45679 # then the envvar interface is used.  Set only those that are not.
45680 # We use the long form for the default assignment because of an extremely
45681 # bizarre bug on SunOS 4.1.3.
45682 if $ac_need_defaults; then
45683   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
45684   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
45685   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
45686 fi
45687
45688 # Have a temporary directory for convenience.  Make it in the build tree
45689 # simply because there is no reason against having it here, and in addition,
45690 # creating and moving files from /tmp can sometimes cause problems.
45691 # Hook for its removal unless debugging.
45692 # Note that there is a small window in which the directory will not be cleaned:
45693 # after its creation but before its name has been assigned to `$tmp'.
45694 $debug ||
45695 {
45696   tmp=
45697   trap 'exit_status=$?
45698   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
45699 ' 0
45700   trap '{ (exit 1); exit 1; }' 1 2 13 15
45701 }
45702 # Create a (secure) tmp directory for tmp files.
45703
45704 {
45705   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
45706   test -n "$tmp" && test -d "$tmp"
45707 }  ||
45708 {
45709   tmp=./conf$$-$RANDOM
45710   (umask 077 && mkdir "$tmp")
45711 } ||
45712 {
45713    echo "$me: cannot create a temporary directory in ." >&2
45714    { (exit 1); exit 1; }
45715 }
45716
45717 #
45718 # Set up the sed scripts for CONFIG_FILES section.
45719 #
45720
45721 # No need to generate the scripts if there are no CONFIG_FILES.
45722 # This happens for instance when ./config.status config.h
45723 if test -n "$CONFIG_FILES"; then
45724
45725 _ACEOF
45726
45727 # Create sed commands to just substitute file output variables.
45728
45729 # Remaining file output variables are in a fragment that also has non-file
45730 # output varibles.
45731
45732
45733
45734 ac_delim='%!_!# '
45735 for ac_last_try in false false false false false :; do
45736   cat >conf$$subs.sed <<_ACEOF
45737 SHELL!$SHELL$ac_delim
45738 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
45739 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
45740 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
45741 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
45742 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
45743 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
45744 exec_prefix!$exec_prefix$ac_delim
45745 prefix!$prefix$ac_delim
45746 program_transform_name!$program_transform_name$ac_delim
45747 bindir!$bindir$ac_delim
45748 sbindir!$sbindir$ac_delim
45749 libexecdir!$libexecdir$ac_delim
45750 datarootdir!$datarootdir$ac_delim
45751 datadir!$datadir$ac_delim
45752 sysconfdir!$sysconfdir$ac_delim
45753 sharedstatedir!$sharedstatedir$ac_delim
45754 localstatedir!$localstatedir$ac_delim
45755 includedir!$includedir$ac_delim
45756 oldincludedir!$oldincludedir$ac_delim
45757 docdir!$docdir$ac_delim
45758 infodir!$infodir$ac_delim
45759 htmldir!$htmldir$ac_delim
45760 dvidir!$dvidir$ac_delim
45761 pdfdir!$pdfdir$ac_delim
45762 psdir!$psdir$ac_delim
45763 libdir!$libdir$ac_delim
45764 localedir!$localedir$ac_delim
45765 mandir!$mandir$ac_delim
45766 DEFS!$DEFS$ac_delim
45767 ECHO_C!$ECHO_C$ac_delim
45768 ECHO_N!$ECHO_N$ac_delim
45769 ECHO_T!$ECHO_T$ac_delim
45770 LIBS!$LIBS$ac_delim
45771 build_alias!$build_alias$ac_delim
45772 host_alias!$host_alias$ac_delim
45773 target_alias!$target_alias$ac_delim
45774 BUILD_DIR!$BUILD_DIR$ac_delim
45775 TOP_DIR!$TOP_DIR$ac_delim
45776 WIN32BUILDDIR!$WIN32BUILDDIR$ac_delim
45777 WIN32MAINDIR!$WIN32MAINDIR$ac_delim
45778 WIN32TOPDIR!$WIN32TOPDIR$ac_delim
45779 TRUEPRG!$TRUEPRG$ac_delim
45780 FALSEPRG!$FALSEPRG$ac_delim
45781 VERSION!$VERSION$ac_delim
45782 DATE!$DATE$ac_delim
45783 LSMDATE!$LSMDATE$ac_delim
45784 BACULA!$BACULA$ac_delim
45785 post_host!$post_host$ac_delim
45786 BDB_VERSION!$BDB_VERSION$ac_delim
45787 LIBBAC_LT_RELEASE!$LIBBAC_LT_RELEASE$ac_delim
45788 LIBBACCFG_LT_RELEASE!$LIBBACCFG_LT_RELEASE$ac_delim
45789 LIBBACPY_LT_RELEASE!$LIBBACPY_LT_RELEASE$ac_delim
45790 LIBBACSQL_LT_RELEASE!$LIBBACSQL_LT_RELEASE$ac_delim
45791 LIBBACFIND_LT_RELEASE!$LIBBACFIND_LT_RELEASE$ac_delim
45792 CC!$CC$ac_delim
45793 CFLAGS!$CFLAGS$ac_delim
45794 LDFLAGS!$LDFLAGS$ac_delim
45795 CPPFLAGS!$CPPFLAGS$ac_delim
45796 ac_ct_CC!$ac_ct_CC$ac_delim
45797 EXEEXT!$EXEEXT$ac_delim
45798 OBJEXT!$OBJEXT$ac_delim
45799 CXX!$CXX$ac_delim
45800 CXXFLAGS!$CXXFLAGS$ac_delim
45801 ac_ct_CXX!$ac_ct_CXX$ac_delim
45802 CPP!$CPP$ac_delim
45803 GREP!$GREP$ac_delim
45804 EGREP!$EGREP$ac_delim
45805 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
45806 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
45807 INSTALL_DATA!$INSTALL_DATA$ac_delim
45808 MV!$MV$ac_delim
45809 REMOVE!$REMOVE$ac_delim
45810 CP!$CP$ac_delim
45811 SED!$SED$ac_delim
45812 ECHO!$ECHO$ac_delim
45813 CMP!$CMP$ac_delim
45814 TBL!$TBL$ac_delim
45815 AR!$AR$ac_delim
45816 OPENSSL!$OPENSSL$ac_delim
45817 MTX!$MTX$ac_delim
45818 DD!$DD$ac_delim
45819 MKISOFS!$MKISOFS$ac_delim
45820 PYTHON!$PYTHON$ac_delim
45821 GROWISOFS!$GROWISOFS$ac_delim
45822 DVDRWMEDIAINFO!$DVDRWMEDIAINFO$ac_delim
45823 DVDRWFORMAT!$DVDRWFORMAT$ac_delim
45824 PKGCONFIG!$PKGCONFIG$ac_delim
45825 QMAKE!$QMAKE$ac_delim
45826 GMAKE!$GMAKE$ac_delim
45827 WXCONFIG!$WXCONFIG$ac_delim
45828 WXFLAGS!$WXFLAGS$ac_delim
45829 CDRECORD!$CDRECORD$ac_delim
45830 PIDOF!$PIDOF$ac_delim
45831 _ACEOF
45832
45833   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 94; then
45834     break
45835   elif $ac_last_try; then
45836     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
45837 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
45838    { (exit 1); exit 1; }; }
45839   else
45840     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
45841   fi
45842 done
45843
45844 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
45845 if test -n "$ac_eof"; then
45846   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
45847   ac_eof=`expr $ac_eof + 1`
45848 fi
45849
45850 cat >>$CONFIG_STATUS <<_ACEOF
45851 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
45852 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
45853 /^[      ]*@MCOMMON@[    ]*$/{
45854 r $MCOMMON
45855 d
45856 }
45857 _ACEOF
45858 sed '
45859 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
45860 s/^/s,@/; s/!/@,|#_!!_#|/
45861 :n
45862 t n
45863 s/'"$ac_delim"'$/,g/; t
45864 s/$/\\/; p
45865 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
45866 ' >>$CONFIG_STATUS <conf$$subs.sed
45867 rm -f conf$$subs.sed
45868 cat >>$CONFIG_STATUS <<_ACEOF
45869 CEOF$ac_eof
45870 _ACEOF
45871
45872
45873 ac_delim='%!_!# '
45874 for ac_last_try in false false false false false :; do
45875   cat >conf$$subs.sed <<_ACEOF
45876 AWK!$AWK$ac_delim
45877 ARFLAGS!$ARFLAGS$ac_delim
45878 MAKE_SHELL!$MAKE_SHELL$ac_delim
45879 LOCAL_LIBS!$LOCAL_LIBS$ac_delim
45880 LOCAL_CFLAGS!$LOCAL_CFLAGS$ac_delim
45881 LOCAL_LDFLAGS!$LOCAL_LDFLAGS$ac_delim
45882 LOCAL_DEFS!$LOCAL_DEFS$ac_delim
45883 LIBTOOL!$LIBTOOL$ac_delim
45884 build!$build$ac_delim
45885 build_cpu!$build_cpu$ac_delim
45886 build_vendor!$build_vendor$ac_delim
45887 build_os!$build_os$ac_delim
45888 host!$host$ac_delim
45889 host_cpu!$host_cpu$ac_delim
45890 host_vendor!$host_vendor$ac_delim
45891 host_os!$host_os$ac_delim
45892 FGREP!$FGREP$ac_delim
45893 LD!$LD$ac_delim
45894 DUMPBIN!$DUMPBIN$ac_delim
45895 ac_ct_DUMPBIN!$ac_ct_DUMPBIN$ac_delim
45896 NM!$NM$ac_delim
45897 LN_S!$LN_S$ac_delim
45898 OBJDUMP!$OBJDUMP$ac_delim
45899 STRIP!$STRIP$ac_delim
45900 RANLIB!$RANLIB$ac_delim
45901 lt_ECHO!$lt_ECHO$ac_delim
45902 DSYMUTIL!$DSYMUTIL$ac_delim
45903 NMEDIT!$NMEDIT$ac_delim
45904 LIPO!$LIPO$ac_delim
45905 OTOOL!$OTOOL$ac_delim
45906 OTOOL64!$OTOOL64$ac_delim
45907 CXXCPP!$CXXCPP$ac_delim
45908 DEFAULT_OBJECT_TYPE!$DEFAULT_OBJECT_TYPE$ac_delim
45909 DEFAULT_ARCHIVE_TYPE!$DEFAULT_ARCHIVE_TYPE$ac_delim
45910 DEFAULT_SHARED_OBJECT_TYPE!$DEFAULT_SHARED_OBJECT_TYPE$ac_delim
45911 LIBTOOL_INSTALL_TARGET!$LIBTOOL_INSTALL_TARGET$ac_delim
45912 LIBTOOL_UNINSTALL_TARGET!$LIBTOOL_UNINSTALL_TARGET$ac_delim
45913 LIBTOOL_CLEAN_TARGET!$LIBTOOL_CLEAN_TARGET$ac_delim
45914 QMAKE_LIBTOOL!$QMAKE_LIBTOOL$ac_delim
45915 FD_PLUGIN_DIR!$FD_PLUGIN_DIR$ac_delim
45916 INCLUDE_INSTALL_TARGET!$INCLUDE_INSTALL_TARGET$ac_delim
45917 INCLUDE_UNINSTALL_TARGET!$INCLUDE_UNINSTALL_TARGET$ac_delim
45918 HAVE_SUN_OS_TRUE!$HAVE_SUN_OS_TRUE$ac_delim
45919 HAVE_SUN_OS_FALSE!$HAVE_SUN_OS_FALSE$ac_delim
45920 HAVE_OSF1_OS_TRUE!$HAVE_OSF1_OS_TRUE$ac_delim
45921 HAVE_OSF1_OS_FALSE!$HAVE_OSF1_OS_FALSE$ac_delim
45922 HAVE_AIX_OS_TRUE!$HAVE_AIX_OS_TRUE$ac_delim
45923 HAVE_AIX_OS_FALSE!$HAVE_AIX_OS_FALSE$ac_delim
45924 HAVE_HPUX_OS_TRUE!$HAVE_HPUX_OS_TRUE$ac_delim
45925 HAVE_HPUX_OS_FALSE!$HAVE_HPUX_OS_FALSE$ac_delim
45926 HAVE_LINUX_OS_TRUE!$HAVE_LINUX_OS_TRUE$ac_delim
45927 HAVE_LINUX_OS_FALSE!$HAVE_LINUX_OS_FALSE$ac_delim
45928 HAVE_FREEBSD_OS_TRUE!$HAVE_FREEBSD_OS_TRUE$ac_delim
45929 HAVE_FREEBSD_OS_FALSE!$HAVE_FREEBSD_OS_FALSE$ac_delim
45930 HAVE_NETBSD_OS_TRUE!$HAVE_NETBSD_OS_TRUE$ac_delim
45931 HAVE_NETBSD_OS_FALSE!$HAVE_NETBSD_OS_FALSE$ac_delim
45932 HAVE_OPENBSD_OS_TRUE!$HAVE_OPENBSD_OS_TRUE$ac_delim
45933 HAVE_OPENBSD_OS_FALSE!$HAVE_OPENBSD_OS_FALSE$ac_delim
45934 HAVE_BSDI_OS_TRUE!$HAVE_BSDI_OS_TRUE$ac_delim
45935 HAVE_BSDI_OS_FALSE!$HAVE_BSDI_OS_FALSE$ac_delim
45936 HAVE_SGI_OS_TRUE!$HAVE_SGI_OS_TRUE$ac_delim
45937 HAVE_SGI_OS_FALSE!$HAVE_SGI_OS_FALSE$ac_delim
45938 HAVE_IRIX_OS_TRUE!$HAVE_IRIX_OS_TRUE$ac_delim
45939 HAVE_IRIX_OS_FALSE!$HAVE_IRIX_OS_FALSE$ac_delim
45940 HAVE_DARWIN_OS_TRUE!$HAVE_DARWIN_OS_TRUE$ac_delim
45941 HAVE_DARWIN_OS_FALSE!$HAVE_DARWIN_OS_FALSE$ac_delim
45942 SET_MAKE!$SET_MAKE$ac_delim
45943 MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
45944 USE_NLS!$USE_NLS$ac_delim
45945 MSGFMT!$MSGFMT$ac_delim
45946 GMSGFMT!$GMSGFMT$ac_delim
45947 XGETTEXT!$XGETTEXT$ac_delim
45948 MSGMERGE!$MSGMERGE$ac_delim
45949 INTL_MACOSX_LIBS!$INTL_MACOSX_LIBS$ac_delim
45950 LIBICONV!$LIBICONV$ac_delim
45951 LTLIBICONV!$LTLIBICONV$ac_delim
45952 INTLLIBS!$INTLLIBS$ac_delim
45953 LIBINTL!$LIBINTL$ac_delim
45954 LTLIBINTL!$LTLIBINTL$ac_delim
45955 POSUB!$POSUB$ac_delim
45956 GLIBC2!$GLIBC2$ac_delim
45957 ALLOCA!$ALLOCA$ac_delim
45958 GLIBC21!$GLIBC21$ac_delim
45959 HAVE_POSIX_PRINTF!$HAVE_POSIX_PRINTF$ac_delim
45960 HAVE_ASPRINTF!$HAVE_ASPRINTF$ac_delim
45961 HAVE_SNPRINTF!$HAVE_SNPRINTF$ac_delim
45962 HAVE_WPRINTF!$HAVE_WPRINTF$ac_delim
45963 INTLBISON!$INTLBISON$ac_delim
45964 BUILD_INCLUDED_LIBINTL!$BUILD_INCLUDED_LIBINTL$ac_delim
45965 USE_INCLUDED_LIBINTL!$USE_INCLUDED_LIBINTL$ac_delim
45966 CATOBJEXT!$CATOBJEXT$ac_delim
45967 DATADIRNAME!$DATADIRNAME$ac_delim
45968 INSTOBJEXT!$INSTOBJEXT$ac_delim
45969 GENCAT!$GENCAT$ac_delim
45970 INTLOBJS!$INTLOBJS$ac_delim
45971 INTL_LIBTOOL_SUFFIX_PREFIX!$INTL_LIBTOOL_SUFFIX_PREFIX$ac_delim
45972 BAT_DIR!$BAT_DIR$ac_delim
45973 _ACEOF
45974
45975   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
45976     break
45977   elif $ac_last_try; then
45978     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
45979 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
45980    { (exit 1); exit 1; }; }
45981   else
45982     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
45983   fi
45984 done
45985
45986 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
45987 if test -n "$ac_eof"; then
45988   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
45989   ac_eof=`expr $ac_eof + 1`
45990 fi
45991
45992 cat >>$CONFIG_STATUS <<_ACEOF
45993 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
45994 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
45995 _ACEOF
45996 sed '
45997 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
45998 s/^/s,@/; s/!/@,|#_!!_#|/
45999 :n
46000 t n
46001 s/'"$ac_delim"'$/,g/; t
46002 s/$/\\/; p
46003 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
46004 ' >>$CONFIG_STATUS <conf$$subs.sed
46005 rm -f conf$$subs.sed
46006 cat >>$CONFIG_STATUS <<_ACEOF
46007 CEOF$ac_eof
46008 _ACEOF
46009
46010
46011 ac_delim='%!_!# '
46012 for ac_last_try in false false false false false :; do
46013   cat >conf$$subs.sed <<_ACEOF
46014 QWT_INC!$QWT_INC$ac_delim
46015 QWT_LDFLAGS!$QWT_LDFLAGS$ac_delim
46016 QWT_LIB!$QWT_LIB$ac_delim
46017 QWT!$QWT$ac_delim
46018 WXCONS_CPPFLAGS!$WXCONS_CPPFLAGS$ac_delim
46019 WXCONS_LDFLAGS!$WXCONS_LDFLAGS$ac_delim
46020 WX_DIR!$WX_DIR$ac_delim
46021 TRAY_MONITOR_CPPFLAGS!$TRAY_MONITOR_CPPFLAGS$ac_delim
46022 TRAY_MONITOR_LDFLAGS!$TRAY_MONITOR_LDFLAGS$ac_delim
46023 TRAY_MONITOR_DIR!$TRAY_MONITOR_DIR$ac_delim
46024 TTOOL_LDFLAGS!$TTOOL_LDFLAGS$ac_delim
46025 STATIC_FD!$STATIC_FD$ac_delim
46026 STATIC_SD!$STATIC_SD$ac_delim
46027 STATIC_DIR!$STATIC_DIR$ac_delim
46028 STATIC_CONS!$STATIC_CONS$ac_delim
46029 STATIC_GNOME_CONS!$STATIC_GNOME_CONS$ac_delim
46030 STATIC_WX_CONS!$STATIC_WX_CONS$ac_delim
46031 ALL_DIRS!$ALL_DIRS$ac_delim
46032 DIRD_DIR!$DIRD_DIR$ac_delim
46033 DIR_TOOLS!$DIR_TOOLS$ac_delim
46034 STORED_DIR!$STORED_DIR$ac_delim
46035 CONS_INC!$CONS_INC$ac_delim
46036 CONS_OBJ!$CONS_OBJ$ac_delim
46037 CONS_SRC!$CONS_SRC$ac_delim
46038 CONS_LIBS!$CONS_LIBS$ac_delim
46039 CONS_LDFLAGS!$CONS_LDFLAGS$ac_delim
46040 READLINE_SRC!$READLINE_SRC$ac_delim
46041 PYTHON_LIBS!$PYTHON_LIBS$ac_delim
46042 PYTHON_INCDIR!$PYTHON_INCDIR$ac_delim
46043 OPENSSL_LIBS!$OPENSSL_LIBS$ac_delim
46044 OPENSSL_INC!$OPENSSL_INC$ac_delim
46045 working_dir!$working_dir$ac_delim
46046 archivedir!$archivedir$ac_delim
46047 basename!$basename$ac_delim
46048 hostname!$hostname$ac_delim
46049 scriptdir!$scriptdir$ac_delim
46050 bsrdir!$bsrdir$ac_delim
46051 logdir!$logdir$ac_delim
46052 plugindir!$plugindir$ac_delim
46053 dump_email!$dump_email$ac_delim
46054 job_email!$job_email$ac_delim
46055 smtp_host!$smtp_host$ac_delim
46056 piddir!$piddir$ac_delim
46057 subsysdir!$subsysdir$ac_delim
46058 baseport!$baseport$ac_delim
46059 dir_port!$dir_port$ac_delim
46060 fd_port!$fd_port$ac_delim
46061 sd_port!$sd_port$ac_delim
46062 dir_password!$dir_password$ac_delim
46063 fd_password!$fd_password$ac_delim
46064 sd_password!$sd_password$ac_delim
46065 mon_dir_password!$mon_dir_password$ac_delim
46066 mon_fd_password!$mon_fd_password$ac_delim
46067 mon_sd_password!$mon_sd_password$ac_delim
46068 db_name!$db_name$ac_delim
46069 db_user!$db_user$ac_delim
46070 db_password!$db_password$ac_delim
46071 db_port!$db_port$ac_delim
46072 dir_user!$dir_user$ac_delim
46073 dir_group!$dir_group$ac_delim
46074 sd_user!$sd_user$ac_delim
46075 sd_group!$sd_group$ac_delim
46076 fd_user!$fd_user$ac_delim
46077 fd_group!$fd_group$ac_delim
46078 SBINPERM!$SBINPERM$ac_delim
46079 SQL_LFLAGS!$SQL_LFLAGS$ac_delim
46080 SQL_INCLUDE!$SQL_INCLUDE$ac_delim
46081 SQL_BINDIR!$SQL_BINDIR$ac_delim
46082 DBI_DBD_DRIVERDIR!$DBI_DBD_DRIVERDIR$ac_delim
46083 uncomment_dbi!$uncomment_dbi$ac_delim
46084 DB_PROG!$DB_PROG$ac_delim
46085 DB_PROG_LIB!$DB_PROG_LIB$ac_delim
46086 cats!$cats$ac_delim
46087 DB_TYPE!$DB_TYPE$ac_delim
46088 GETCONF!$GETCONF$ac_delim
46089 XMKMF!$XMKMF$ac_delim
46090 X_CFLAGS!$X_CFLAGS$ac_delim
46091 X_PRE_LIBS!$X_PRE_LIBS$ac_delim
46092 X_LIBS!$X_LIBS$ac_delim
46093 X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
46094 LIBOBJS!$LIBOBJS$ac_delim
46095 ZLIBS!$ZLIBS$ac_delim
46096 AFS_CFLAGS!$AFS_CFLAGS$ac_delim
46097 AFS_LIBS!$AFS_LIBS$ac_delim
46098 CAP_LIBS!$CAP_LIBS$ac_delim
46099 FDLIBS!$FDLIBS$ac_delim
46100 DEBUG!$DEBUG$ac_delim
46101 DINCLUDE!$DINCLUDE$ac_delim
46102 DLIB!$DLIB$ac_delim
46103 DB_LIBS!$DB_LIBS$ac_delim
46104 WCFLAGS!$WCFLAGS$ac_delim
46105 WLDFLAGS!$WLDFLAGS$ac_delim
46106 WRAPLIBS!$WRAPLIBS$ac_delim
46107 OBJLIST!$OBJLIST$ac_delim
46108 TAPEDRIVE!$TAPEDRIVE$ac_delim
46109 PSCMD!$PSCMD$ac_delim
46110 WIN32!$WIN32$ac_delim
46111 _ACEOF
46112
46113   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
46114     break
46115   elif $ac_last_try; then
46116     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
46117 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
46118    { (exit 1); exit 1; }; }
46119   else
46120     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
46121   fi
46122 done
46123
46124 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
46125 if test -n "$ac_eof"; then
46126   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
46127   ac_eof=`expr $ac_eof + 1`
46128 fi
46129
46130 cat >>$CONFIG_STATUS <<_ACEOF
46131 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
46132 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
46133 _ACEOF
46134 sed '
46135 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
46136 s/^/s,@/; s/!/@,|#_!!_#|/
46137 :n
46138 t n
46139 s/'"$ac_delim"'$/,g/; t
46140 s/$/\\/; p
46141 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
46142 ' >>$CONFIG_STATUS <conf$$subs.sed
46143 rm -f conf$$subs.sed
46144 cat >>$CONFIG_STATUS <<_ACEOF
46145 CEOF$ac_eof
46146 _ACEOF
46147
46148
46149 ac_delim='%!_!# '
46150 for ac_last_try in false false false false false :; do
46151   cat >conf$$subs.sed <<_ACEOF
46152 MACOSX!$MACOSX$ac_delim
46153 DISTNAME!$DISTNAME$ac_delim
46154 DISTVER!$DISTVER$ac_delim
46155 LTLIBOBJS!$LTLIBOBJS$ac_delim
46156 _ACEOF
46157
46158   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 4; then
46159     break
46160   elif $ac_last_try; then
46161     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
46162 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
46163    { (exit 1); exit 1; }; }
46164   else
46165     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
46166   fi
46167 done
46168
46169 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
46170 if test -n "$ac_eof"; then
46171   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
46172   ac_eof=`expr $ac_eof + 1`
46173 fi
46174
46175 cat >>$CONFIG_STATUS <<_ACEOF
46176 cat >"\$tmp/subs-4.sed" <<\CEOF$ac_eof
46177 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
46178 _ACEOF
46179 sed '
46180 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
46181 s/^/s,@/; s/!/@,|#_!!_#|/
46182 :n
46183 t n
46184 s/'"$ac_delim"'$/,g/; t
46185 s/$/\\/; p
46186 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
46187 ' >>$CONFIG_STATUS <conf$$subs.sed
46188 rm -f conf$$subs.sed
46189 cat >>$CONFIG_STATUS <<_ACEOF
46190 :end
46191 s/|#_!!_#|//g
46192 CEOF$ac_eof
46193 _ACEOF
46194
46195
46196 # VPATH may cause trouble with some makes, so we remove $(srcdir),
46197 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
46198 # trailing colons and then remove the whole line if VPATH becomes empty
46199 # (actually we leave an empty line to preserve line numbers).
46200 if test "x$srcdir" = x.; then
46201   ac_vpsub='/^[  ]*VPATH[        ]*=/{
46202 s/:*\$(srcdir):*/:/
46203 s/:*\${srcdir}:*/:/
46204 s/:*@srcdir@:*/:/
46205 s/^\([^=]*=[     ]*\):*/\1/
46206 s/:*$//
46207 s/^[^=]*=[       ]*$//
46208 }'
46209 fi
46210
46211 cat >>$CONFIG_STATUS <<\_ACEOF
46212 fi # test -n "$CONFIG_FILES"
46213
46214
46215 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
46216 do
46217   case $ac_tag in
46218   :[FHLC]) ac_mode=$ac_tag; continue;;
46219   esac
46220   case $ac_mode$ac_tag in
46221   :[FHL]*:*);;
46222   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
46223 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
46224    { (exit 1); exit 1; }; };;
46225   :[FH]-) ac_tag=-:-;;
46226   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
46227   esac
46228   ac_save_IFS=$IFS
46229   IFS=:
46230   set x $ac_tag
46231   IFS=$ac_save_IFS
46232   shift
46233   ac_file=$1
46234   shift
46235
46236   case $ac_mode in
46237   :L) ac_source=$1;;
46238   :[FH])
46239     ac_file_inputs=
46240     for ac_f
46241     do
46242       case $ac_f in
46243       -) ac_f="$tmp/stdin";;
46244       *) # Look for the file first in the build tree, then in the source tree
46245          # (if the path is not absolute).  The absolute path cannot be DOS-style,
46246          # because $ac_f cannot contain `:'.
46247          test -f "$ac_f" ||
46248            case $ac_f in
46249            [\\/$]*) false;;
46250            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
46251            esac ||
46252            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
46253 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
46254    { (exit 1); exit 1; }; };;
46255       esac
46256       ac_file_inputs="$ac_file_inputs $ac_f"
46257     done
46258
46259     # Let's still pretend it is `configure' which instantiates (i.e., don't
46260     # use $as_me), people would be surprised to read:
46261     #    /* config.h.  Generated by config.status.  */
46262     configure_input="Generated from "`IFS=:
46263           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
46264     if test x"$ac_file" != x-; then
46265       configure_input="$ac_file.  $configure_input"
46266       { echo "$as_me:$LINENO: creating $ac_file" >&5
46267 echo "$as_me: creating $ac_file" >&6;}
46268     fi
46269
46270     case $ac_tag in
46271     *:-:* | *:-) cat >"$tmp/stdin";;
46272     esac
46273     ;;
46274   esac
46275
46276   ac_dir=`$as_dirname -- "$ac_file" ||
46277 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
46278          X"$ac_file" : 'X\(//\)[^/]' \| \
46279          X"$ac_file" : 'X\(//\)$' \| \
46280          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
46281 echo X"$ac_file" |
46282     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
46283             s//\1/
46284             q
46285           }
46286           /^X\(\/\/\)[^/].*/{
46287             s//\1/
46288             q
46289           }
46290           /^X\(\/\/\)$/{
46291             s//\1/
46292             q
46293           }
46294           /^X\(\/\).*/{
46295             s//\1/
46296             q
46297           }
46298           s/.*/./; q'`
46299   { as_dir="$ac_dir"
46300   case $as_dir in #(
46301   -*) as_dir=./$as_dir;;
46302   esac
46303   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
46304     as_dirs=
46305     while :; do
46306       case $as_dir in #(
46307       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
46308       *) as_qdir=$as_dir;;
46309       esac
46310       as_dirs="'$as_qdir' $as_dirs"
46311       as_dir=`$as_dirname -- "$as_dir" ||
46312 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
46313          X"$as_dir" : 'X\(//\)[^/]' \| \
46314          X"$as_dir" : 'X\(//\)$' \| \
46315          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
46316 echo X"$as_dir" |
46317     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
46318             s//\1/
46319             q
46320           }
46321           /^X\(\/\/\)[^/].*/{
46322             s//\1/
46323             q
46324           }
46325           /^X\(\/\/\)$/{
46326             s//\1/
46327             q
46328           }
46329           /^X\(\/\).*/{
46330             s//\1/
46331             q
46332           }
46333           s/.*/./; q'`
46334       test -d "$as_dir" && break
46335     done
46336     test -z "$as_dirs" || eval "mkdir $as_dirs"
46337   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
46338 echo "$as_me: error: cannot create directory $as_dir" >&2;}
46339    { (exit 1); exit 1; }; }; }
46340   ac_builddir=.
46341
46342 case "$ac_dir" in
46343 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
46344 *)
46345   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
46346   # A ".." for each directory in $ac_dir_suffix.
46347   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
46348   case $ac_top_builddir_sub in
46349   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
46350   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
46351   esac ;;
46352 esac
46353 ac_abs_top_builddir=$ac_pwd
46354 ac_abs_builddir=$ac_pwd$ac_dir_suffix
46355 # for backward compatibility:
46356 ac_top_builddir=$ac_top_build_prefix
46357
46358 case $srcdir in
46359   .)  # We are building in place.
46360     ac_srcdir=.
46361     ac_top_srcdir=$ac_top_builddir_sub
46362     ac_abs_top_srcdir=$ac_pwd ;;
46363   [\\/]* | ?:[\\/]* )  # Absolute name.
46364     ac_srcdir=$srcdir$ac_dir_suffix;
46365     ac_top_srcdir=$srcdir
46366     ac_abs_top_srcdir=$srcdir ;;
46367   *) # Relative name.
46368     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
46369     ac_top_srcdir=$ac_top_build_prefix$srcdir
46370     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
46371 esac
46372 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
46373
46374
46375   case $ac_mode in
46376   :F)
46377   #
46378   # CONFIG_FILE
46379   #
46380
46381   case $INSTALL in
46382   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
46383   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
46384   esac
46385 _ACEOF
46386
46387 cat >>$CONFIG_STATUS <<\_ACEOF
46388 # If the template does not know about datarootdir, expand it.
46389 # FIXME: This hack should be removed a few years after 2.60.
46390 ac_datarootdir_hack=; ac_datarootdir_seen=
46391
46392 case `sed -n '/datarootdir/ {
46393   p
46394   q
46395 }
46396 /@datadir@/p
46397 /@docdir@/p
46398 /@infodir@/p
46399 /@localedir@/p
46400 /@mandir@/p
46401 ' $ac_file_inputs` in
46402 *datarootdir*) ac_datarootdir_seen=yes;;
46403 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
46404   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
46405 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
46406 _ACEOF
46407 cat >>$CONFIG_STATUS <<_ACEOF
46408   ac_datarootdir_hack='
46409   s&@datadir@&$datadir&g
46410   s&@docdir@&$docdir&g
46411   s&@infodir@&$infodir&g
46412   s&@localedir@&$localedir&g
46413   s&@mandir@&$mandir&g
46414     s&\\\${datarootdir}&$datarootdir&g' ;;
46415 esac
46416 _ACEOF
46417
46418 # Neutralize VPATH when `$srcdir' = `.'.
46419 # Shell code in configure.ac might set extrasub.
46420 # FIXME: do we really want to maintain this feature?
46421 cat >>$CONFIG_STATUS <<_ACEOF
46422   sed "$ac_vpsub
46423 $extrasub
46424 _ACEOF
46425 cat >>$CONFIG_STATUS <<\_ACEOF
46426 :t
46427 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
46428 s&@configure_input@&$configure_input&;t t
46429 s&@top_builddir@&$ac_top_builddir_sub&;t t
46430 s&@srcdir@&$ac_srcdir&;t t
46431 s&@abs_srcdir@&$ac_abs_srcdir&;t t
46432 s&@top_srcdir@&$ac_top_srcdir&;t t
46433 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
46434 s&@builddir@&$ac_builddir&;t t
46435 s&@abs_builddir@&$ac_abs_builddir&;t t
46436 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
46437 s&@INSTALL@&$ac_INSTALL&;t t
46438 $ac_datarootdir_hack
46439 " $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
46440
46441 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
46442   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
46443   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
46444   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
46445 which seems to be undefined.  Please make sure it is defined." >&5
46446 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
46447 which seems to be undefined.  Please make sure it is defined." >&2;}
46448
46449   rm -f "$tmp/stdin"
46450   case $ac_file in
46451   -) cat "$tmp/out"; rm -f "$tmp/out";;
46452   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
46453   esac
46454  ;;
46455   :H)
46456   #
46457   # CONFIG_HEADER
46458   #
46459 _ACEOF
46460
46461 # Transform confdefs.h into a sed script `conftest.defines', that
46462 # substitutes the proper values into config.h.in to produce config.h.
46463 rm -f conftest.defines conftest.tail
46464 # First, append a space to every undef/define line, to ease matching.
46465 echo 's/$/ /' >conftest.defines
46466 # Then, protect against being on the right side of a sed subst, or in
46467 # an unquoted here document, in config.status.  If some macros were
46468 # called several times there might be several #defines for the same
46469 # symbol, which is useless.  But do not sort them, since the last
46470 # AC_DEFINE must be honored.
46471 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
46472 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
46473 # NAME is the cpp macro being defined, VALUE is the value it is being given.
46474 # PARAMS is the parameter list in the macro definition--in most cases, it's
46475 # just an empty string.
46476 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
46477 ac_dB='\\)[      (].*,\\1define\\2'
46478 ac_dC=' '
46479 ac_dD=' ,'
46480
46481 uniq confdefs.h |
46482   sed -n '
46483         t rset
46484         :rset
46485         s/^[     ]*#[    ]*define[       ][      ]*//
46486         t ok
46487         d
46488         :ok
46489         s/[\\&,]/\\&/g
46490         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
46491         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
46492   ' >>conftest.defines
46493
46494 # Remove the space that was appended to ease matching.
46495 # Then replace #undef with comments.  This is necessary, for
46496 # example, in the case of _POSIX_SOURCE, which is predefined and required
46497 # on some systems where configure will not decide to define it.
46498 # (The regexp can be short, since the line contains either #define or #undef.)
46499 echo 's/ $//
46500 s,^[     #]*u.*,/* & */,' >>conftest.defines
46501
46502 # Break up conftest.defines:
46503 ac_max_sed_lines=50
46504
46505 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
46506 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
46507 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
46508 # et cetera.
46509 ac_in='$ac_file_inputs'
46510 ac_out='"$tmp/out1"'
46511 ac_nxt='"$tmp/out2"'
46512
46513 while :
46514 do
46515   # Write a here document:
46516     cat >>$CONFIG_STATUS <<_ACEOF
46517     # First, check the format of the line:
46518     cat >"\$tmp/defines.sed" <<\\CEOF
46519 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
46520 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
46521 b
46522 :def
46523 _ACEOF
46524   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
46525   echo 'CEOF
46526     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
46527   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
46528   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
46529   grep . conftest.tail >/dev/null || break
46530   rm -f conftest.defines
46531   mv conftest.tail conftest.defines
46532 done
46533 rm -f conftest.defines conftest.tail
46534
46535 echo "ac_result=$ac_in" >>$CONFIG_STATUS
46536 cat >>$CONFIG_STATUS <<\_ACEOF
46537   if test x"$ac_file" != x-; then
46538     echo "/* $configure_input  */" >"$tmp/config.h"
46539     cat "$ac_result" >>"$tmp/config.h"
46540     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
46541       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
46542 echo "$as_me: $ac_file is unchanged" >&6;}
46543     else
46544       rm -f $ac_file
46545       mv "$tmp/config.h" $ac_file
46546     fi
46547   else
46548     echo "/* $configure_input  */"
46549     cat "$ac_result"
46550   fi
46551   rm -f "$tmp/out12"
46552  ;;
46553
46554   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
46555 echo "$as_me: executing $ac_file commands" >&6;}
46556  ;;
46557   esac
46558
46559
46560   case $ac_file$ac_mode in
46561     "libtool":C)
46562
46563     # See if we are running on zsh, and set the options which allow our
46564     # commands through without removal of \ escapes.
46565     if test -n "${ZSH_VERSION+set}" ; then
46566       setopt NO_GLOB_SUBST
46567     fi
46568
46569     cfgfile="${ofile}T"
46570     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
46571     $RM "$cfgfile"
46572
46573     cat <<_LT_EOF >> "$cfgfile"
46574 #! $SHELL
46575
46576 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
46577 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
46578 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
46579 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
46580 #
46581 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
46582 #                 2006, 2007, 2008 Free Software Foundation, Inc.
46583 #   Written by Gordon Matzigkeit, 1996
46584 #
46585 #   This file is part of GNU Libtool.
46586 #
46587 # GNU Libtool is free software; you can redistribute it and/or
46588 # modify it under the terms of the GNU General Public License as
46589 # published by the Free Software Foundation; either version 2 of
46590 # the License, or (at your option) any later version.
46591 #
46592 # As a special exception to the GNU General Public License,
46593 # if you distribute this file as part of a program or library that
46594 # is built using GNU Libtool, you may include this file under the
46595 # same distribution terms that you use for the rest of that program.
46596 #
46597 # GNU Libtool is distributed in the hope that it will be useful,
46598 # but WITHOUT ANY WARRANTY; without even the implied warranty of
46599 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
46600 # GNU General Public License for more details.
46601 #
46602 # You should have received a copy of the GNU General Public License
46603 # along with GNU Libtool; see the file COPYING.  If not, a copy
46604 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
46605 # obtained by writing to the Free Software Foundation, Inc.,
46606 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
46607
46608
46609 # The names of the tagged configurations supported by this script.
46610 available_tags="CXX "
46611
46612 # ### BEGIN LIBTOOL CONFIG
46613
46614 # Which release of libtool.m4 was used?
46615 macro_version=$macro_version
46616 macro_revision=$macro_revision
46617
46618 # Whether or not to build shared libraries.
46619 build_libtool_libs=$enable_shared
46620
46621 # Whether or not to build static libraries.
46622 build_old_libs=$enable_static
46623
46624 # What type of objects to build.
46625 pic_mode=$pic_mode
46626
46627 # Whether or not to optimize for fast installation.
46628 fast_install=$enable_fast_install
46629
46630 # The host system.
46631 host_alias=$host_alias
46632 host=$host
46633 host_os=$host_os
46634
46635 # The build system.
46636 build_alias=$build_alias
46637 build=$build
46638 build_os=$build_os
46639
46640 # A sed program that does not truncate output.
46641 SED=$lt_SED
46642
46643 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
46644 Xsed="\$SED -e 1s/^X//"
46645
46646 # A grep program that handles long lines.
46647 GREP=$lt_GREP
46648
46649 # An ERE matcher.
46650 EGREP=$lt_EGREP
46651
46652 # A literal string matcher.
46653 FGREP=$lt_FGREP
46654
46655 # A BSD- or MS-compatible name lister.
46656 NM=$lt_NM
46657
46658 # Whether we need soft or hard links.
46659 LN_S=$lt_LN_S
46660
46661 # What is the maximum length of a command?
46662 max_cmd_len=$max_cmd_len
46663
46664 # Object file suffix (normally "o").
46665 objext=$ac_objext
46666
46667 # Executable file suffix (normally "").
46668 exeext=$exeext
46669
46670 # whether the shell understands "unset".
46671 lt_unset=$lt_unset
46672
46673 # turn spaces into newlines.
46674 SP2NL=$lt_lt_SP2NL
46675
46676 # turn newlines into spaces.
46677 NL2SP=$lt_lt_NL2SP
46678
46679 # How to create reloadable object files.
46680 reload_flag=$lt_reload_flag
46681 reload_cmds=$lt_reload_cmds
46682
46683 # An object symbol dumper.
46684 OBJDUMP=$lt_OBJDUMP
46685
46686 # Method to check whether dependent libraries are shared objects.
46687 deplibs_check_method=$lt_deplibs_check_method
46688
46689 # Command to use when deplibs_check_method == "file_magic".
46690 file_magic_cmd=$lt_file_magic_cmd
46691
46692 # The archiver.
46693 AR=$lt_AR
46694 AR_FLAGS=$lt_AR_FLAGS
46695
46696 # A symbol stripping program.
46697 STRIP=$lt_STRIP
46698
46699 # Commands used to install an old-style archive.
46700 RANLIB=$lt_RANLIB
46701 old_postinstall_cmds=$lt_old_postinstall_cmds
46702 old_postuninstall_cmds=$lt_old_postuninstall_cmds
46703
46704 # A C compiler.
46705 LTCC=$lt_CC
46706
46707 # LTCC compiler flags.
46708 LTCFLAGS=$lt_CFLAGS
46709
46710 # Take the output of nm and produce a listing of raw symbols and C names.
46711 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
46712
46713 # Transform the output of nm in a proper C declaration.
46714 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
46715
46716 # Transform the output of nm in a C name address pair.
46717 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
46718
46719 # Transform the output of nm in a C name address pair when lib prefix is needed.
46720 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
46721
46722 # The name of the directory that contains temporary libtool files.
46723 objdir=$objdir
46724
46725 # Shell to use when invoking shell scripts.
46726 SHELL=$lt_SHELL
46727
46728 # An echo program that does not interpret backslashes.
46729 ECHO=$lt_ECHO
46730
46731 # Used to examine libraries when file_magic_cmd begins with "file".
46732 MAGIC_CMD=$MAGIC_CMD
46733
46734 # Must we lock files when doing compilation?
46735 need_locks=$lt_need_locks
46736
46737 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
46738 DSYMUTIL=$lt_DSYMUTIL
46739
46740 # Tool to change global to local symbols on Mac OS X.
46741 NMEDIT=$lt_NMEDIT
46742
46743 # Tool to manipulate fat objects and archives on Mac OS X.
46744 LIPO=$lt_LIPO
46745
46746 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
46747 OTOOL=$lt_OTOOL
46748
46749 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
46750 OTOOL64=$lt_OTOOL64
46751
46752 # Old archive suffix (normally "a").
46753 libext=$libext
46754
46755 # Shared library suffix (normally ".so").
46756 shrext_cmds=$lt_shrext_cmds
46757
46758 # The commands to extract the exported symbol list from a shared archive.
46759 extract_expsyms_cmds=$lt_extract_expsyms_cmds
46760
46761 # Variables whose values should be saved in libtool wrapper scripts and
46762 # restored at link time.
46763 variables_saved_for_relink=$lt_variables_saved_for_relink
46764
46765 # Do we need the "lib" prefix for modules?
46766 need_lib_prefix=$need_lib_prefix
46767
46768 # Do we need a version for libraries?
46769 need_version=$need_version
46770
46771 # Library versioning type.
46772 version_type=$version_type
46773
46774 # Shared library runtime path variable.
46775 runpath_var=$runpath_var
46776
46777 # Shared library path variable.
46778 shlibpath_var=$shlibpath_var
46779
46780 # Is shlibpath searched before the hard-coded library search path?
46781 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
46782
46783 # Format of library name prefix.
46784 libname_spec=$lt_libname_spec
46785
46786 # List of archive names.  First name is the real one, the rest are links.
46787 # The last name is the one that the linker finds with -lNAME
46788 library_names_spec=$lt_library_names_spec
46789
46790 # The coded name of the library, if different from the real name.
46791 soname_spec=$lt_soname_spec
46792
46793 # Command to use after installation of a shared archive.
46794 postinstall_cmds=$lt_postinstall_cmds
46795
46796 # Command to use after uninstallation of a shared archive.
46797 postuninstall_cmds=$lt_postuninstall_cmds
46798
46799 # Commands used to finish a libtool library installation in a directory.
46800 finish_cmds=$lt_finish_cmds
46801
46802 # As "finish_cmds", except a single script fragment to be evaled but
46803 # not shown.
46804 finish_eval=$lt_finish_eval
46805
46806 # Whether we should hardcode library paths into libraries.
46807 hardcode_into_libs=$hardcode_into_libs
46808
46809 # Compile-time system search path for libraries.
46810 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
46811
46812 # Run-time system search path for libraries.
46813 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
46814
46815 # Whether dlopen is supported.
46816 dlopen_support=$enable_dlopen
46817
46818 # Whether dlopen of programs is supported.
46819 dlopen_self=$enable_dlopen_self
46820
46821 # Whether dlopen of statically linked programs is supported.
46822 dlopen_self_static=$enable_dlopen_self_static
46823
46824 # Commands to strip libraries.
46825 old_striplib=$lt_old_striplib
46826 striplib=$lt_striplib
46827
46828
46829 # The linker used to build libraries.
46830 LD=$lt_LD
46831
46832 # Commands used to build an old-style archive.
46833 old_archive_cmds=$lt_old_archive_cmds
46834
46835 # A language specific compiler.
46836 CC=$lt_compiler
46837
46838 # Is the compiler the GNU compiler?
46839 with_gcc=$GCC
46840
46841 # Compiler flag to turn off builtin functions.
46842 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
46843
46844 # How to pass a linker flag through the compiler.
46845 wl=$lt_lt_prog_compiler_wl
46846
46847 # Additional compiler flags for building library objects.
46848 pic_flag=$lt_lt_prog_compiler_pic
46849
46850 # Compiler flag to prevent dynamic linking.
46851 link_static_flag=$lt_lt_prog_compiler_static
46852
46853 # Does compiler simultaneously support -c and -o options?
46854 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
46855
46856 # Whether or not to add -lc for building shared libraries.
46857 build_libtool_need_lc=$archive_cmds_need_lc
46858
46859 # Whether or not to disallow shared libs when runtime libs are static.
46860 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
46861
46862 # Compiler flag to allow reflexive dlopens.
46863 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
46864
46865 # Compiler flag to generate shared objects directly from archives.
46866 whole_archive_flag_spec=$lt_whole_archive_flag_spec
46867
46868 # Whether the compiler copes with passing no objects directly.
46869 compiler_needs_object=$lt_compiler_needs_object
46870
46871 # Create an old-style archive from a shared archive.
46872 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
46873
46874 # Create a temporary old-style archive to link instead of a shared archive.
46875 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
46876
46877 # Commands used to build a shared archive.
46878 archive_cmds=$lt_archive_cmds
46879 archive_expsym_cmds=$lt_archive_expsym_cmds
46880
46881 # Commands used to build a loadable module if different from building
46882 # a shared archive.
46883 module_cmds=$lt_module_cmds
46884 module_expsym_cmds=$lt_module_expsym_cmds
46885
46886 # Whether we are building with GNU ld or not.
46887 with_gnu_ld=$lt_with_gnu_ld
46888
46889 # Flag that allows shared libraries with undefined symbols to be built.
46890 allow_undefined_flag=$lt_allow_undefined_flag
46891
46892 # Flag that enforces no undefined symbols.
46893 no_undefined_flag=$lt_no_undefined_flag
46894
46895 # Flag to hardcode \$libdir into a binary during linking.
46896 # This must work even if \$libdir does not exist
46897 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
46898
46899 # If ld is used when linking, flag to hardcode \$libdir into a binary
46900 # during linking.  This must work even if \$libdir does not exist.
46901 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
46902
46903 # Whether we need a single "-rpath" flag with a separated argument.
46904 hardcode_libdir_separator=$lt_hardcode_libdir_separator
46905
46906 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
46907 # DIR into the resulting binary.
46908 hardcode_direct=$hardcode_direct
46909
46910 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
46911 # DIR into the resulting binary and the resulting library dependency is
46912 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
46913 # library is relocated.
46914 hardcode_direct_absolute=$hardcode_direct_absolute
46915
46916 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
46917 # into the resulting binary.
46918 hardcode_minus_L=$hardcode_minus_L
46919
46920 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
46921 # into the resulting binary.
46922 hardcode_shlibpath_var=$hardcode_shlibpath_var
46923
46924 # Set to "yes" if building a shared library automatically hardcodes DIR
46925 # into the library and all subsequent libraries and executables linked
46926 # against it.
46927 hardcode_automatic=$hardcode_automatic
46928
46929 # Set to yes if linker adds runtime paths of dependent libraries
46930 # to runtime path list.
46931 inherit_rpath=$inherit_rpath
46932
46933 # Whether libtool must link a program against all its dependency libraries.
46934 link_all_deplibs=$link_all_deplibs
46935
46936 # Fix the shell variable \$srcfile for the compiler.
46937 fix_srcfile_path=$lt_fix_srcfile_path
46938
46939 # Set to "yes" if exported symbols are required.
46940 always_export_symbols=$always_export_symbols
46941
46942 # The commands to list exported symbols.
46943 export_symbols_cmds=$lt_export_symbols_cmds
46944
46945 # Symbols that should not be listed in the preloaded symbols.
46946 exclude_expsyms=$lt_exclude_expsyms
46947
46948 # Symbols that must always be exported.
46949 include_expsyms=$lt_include_expsyms
46950
46951 # Commands necessary for linking programs (against libraries) with templates.
46952 prelink_cmds=$lt_prelink_cmds
46953
46954 # Specify filename containing input files.
46955 file_list_spec=$lt_file_list_spec
46956
46957 # How to hardcode a shared library path into an executable.
46958 hardcode_action=$hardcode_action
46959
46960 # The directories searched by this compiler when creating a shared library.
46961 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
46962
46963 # Dependencies to place before and after the objects being linked to
46964 # create a shared library.
46965 predep_objects=$lt_predep_objects
46966 postdep_objects=$lt_postdep_objects
46967 predeps=$lt_predeps
46968 postdeps=$lt_postdeps
46969
46970 # The library search path used internally by the compiler when linking
46971 # a shared library.
46972 compiler_lib_search_path=$lt_compiler_lib_search_path
46973
46974 # ### END LIBTOOL CONFIG
46975
46976 _LT_EOF
46977
46978   case $host_os in
46979   aix3*)
46980     cat <<\_LT_EOF >> "$cfgfile"
46981 # AIX sometimes has problems with the GCC collect2 program.  For some
46982 # reason, if we set the COLLECT_NAMES environment variable, the problems
46983 # vanish in a puff of smoke.
46984 if test "X${COLLECT_NAMES+set}" != Xset; then
46985   COLLECT_NAMES=
46986   export COLLECT_NAMES
46987 fi
46988 _LT_EOF
46989     ;;
46990   esac
46991
46992
46993 ltmain="$ac_aux_dir/ltmain.sh"
46994
46995
46996   # We use sed instead of cat because bash on DJGPP gets confused if
46997   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
46998   # text mode, it properly converts lines to CR/LF.  This bash problem
46999   # is reportedly fixed, but why not run on old versions too?
47000   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
47001     || (rm -f "$cfgfile"; exit 1)
47002
47003   case $xsi_shell in
47004   yes)
47005     cat << \_LT_EOF >> "$cfgfile"
47006
47007 # func_dirname file append nondir_replacement
47008 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
47009 # otherwise set result to NONDIR_REPLACEMENT.
47010 func_dirname ()
47011 {
47012   case ${1} in
47013     */*) func_dirname_result="${1%/*}${2}" ;;
47014     *  ) func_dirname_result="${3}" ;;
47015   esac
47016 }
47017
47018 # func_basename file
47019 func_basename ()
47020 {
47021   func_basename_result="${1##*/}"
47022 }
47023
47024 # func_dirname_and_basename file append nondir_replacement
47025 # perform func_basename and func_dirname in a single function
47026 # call:
47027 #   dirname:  Compute the dirname of FILE.  If nonempty,
47028 #             add APPEND to the result, otherwise set result
47029 #             to NONDIR_REPLACEMENT.
47030 #             value returned in "$func_dirname_result"
47031 #   basename: Compute filename of FILE.
47032 #             value retuned in "$func_basename_result"
47033 # Implementation must be kept synchronized with func_dirname
47034 # and func_basename. For efficiency, we do not delegate to
47035 # those functions but instead duplicate the functionality here.
47036 func_dirname_and_basename ()
47037 {
47038   case ${1} in
47039     */*) func_dirname_result="${1%/*}${2}" ;;
47040     *  ) func_dirname_result="${3}" ;;
47041   esac
47042   func_basename_result="${1##*/}"
47043 }
47044
47045 # func_stripname prefix suffix name
47046 # strip PREFIX and SUFFIX off of NAME.
47047 # PREFIX and SUFFIX must not contain globbing or regex special
47048 # characters, hashes, percent signs, but SUFFIX may contain a leading
47049 # dot (in which case that matches only a dot).
47050 func_stripname ()
47051 {
47052   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
47053   # positional parameters, so assign one to ordinary parameter first.
47054   func_stripname_result=${3}
47055   func_stripname_result=${func_stripname_result#"${1}"}
47056   func_stripname_result=${func_stripname_result%"${2}"}
47057 }
47058
47059 # func_opt_split
47060 func_opt_split ()
47061 {
47062   func_opt_split_opt=${1%%=*}
47063   func_opt_split_arg=${1#*=}
47064 }
47065
47066 # func_lo2o object
47067 func_lo2o ()
47068 {
47069   case ${1} in
47070     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
47071     *)    func_lo2o_result=${1} ;;
47072   esac
47073 }
47074
47075 # func_xform libobj-or-source
47076 func_xform ()
47077 {
47078   func_xform_result=${1%.*}.lo
47079 }
47080
47081 # func_arith arithmetic-term...
47082 func_arith ()
47083 {
47084   func_arith_result=$(( $* ))
47085 }
47086
47087 # func_len string
47088 # STRING may not start with a hyphen.
47089 func_len ()
47090 {
47091   func_len_result=${#1}
47092 }
47093
47094 _LT_EOF
47095     ;;
47096   *) # Bourne compatible functions.
47097     cat << \_LT_EOF >> "$cfgfile"
47098
47099 # func_dirname file append nondir_replacement
47100 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
47101 # otherwise set result to NONDIR_REPLACEMENT.
47102 func_dirname ()
47103 {
47104   # Extract subdirectory from the argument.
47105   func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
47106   if test "X$func_dirname_result" = "X${1}"; then
47107     func_dirname_result="${3}"
47108   else
47109     func_dirname_result="$func_dirname_result${2}"
47110   fi
47111 }
47112
47113 # func_basename file
47114 func_basename ()
47115 {
47116   func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
47117 }
47118
47119
47120 # func_stripname prefix suffix name
47121 # strip PREFIX and SUFFIX off of NAME.
47122 # PREFIX and SUFFIX must not contain globbing or regex special
47123 # characters, hashes, percent signs, but SUFFIX may contain a leading
47124 # dot (in which case that matches only a dot).
47125 # func_strip_suffix prefix name
47126 func_stripname ()
47127 {
47128   case ${2} in
47129     .*) func_stripname_result=`$ECHO "X${3}" \
47130            | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
47131     *)  func_stripname_result=`$ECHO "X${3}" \
47132            | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
47133   esac
47134 }
47135
47136 # sed scripts:
47137 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
47138 my_sed_long_arg='1s/^-[^=]*=//'
47139
47140 # func_opt_split
47141 func_opt_split ()
47142 {
47143   func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
47144   func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
47145 }
47146
47147 # func_lo2o object
47148 func_lo2o ()
47149 {
47150   func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
47151 }
47152
47153 # func_xform libobj-or-source
47154 func_xform ()
47155 {
47156   func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
47157 }
47158
47159 # func_arith arithmetic-term...
47160 func_arith ()
47161 {
47162   func_arith_result=`expr "$@"`
47163 }
47164
47165 # func_len string
47166 # STRING may not start with a hyphen.
47167 func_len ()
47168 {
47169   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
47170 }
47171
47172 _LT_EOF
47173 esac
47174
47175 case $lt_shell_append in
47176   yes)
47177     cat << \_LT_EOF >> "$cfgfile"
47178
47179 # func_append var value
47180 # Append VALUE to the end of shell variable VAR.
47181 func_append ()
47182 {
47183   eval "$1+=\$2"
47184 }
47185 _LT_EOF
47186     ;;
47187   *)
47188     cat << \_LT_EOF >> "$cfgfile"
47189
47190 # func_append var value
47191 # Append VALUE to the end of shell variable VAR.
47192 func_append ()
47193 {
47194   eval "$1=\$$1\$2"
47195 }
47196
47197 _LT_EOF
47198     ;;
47199   esac
47200
47201
47202   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
47203     || (rm -f "$cfgfile"; exit 1)
47204
47205   mv -f "$cfgfile" "$ofile" ||
47206     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
47207   chmod +x "$ofile"
47208
47209
47210     cat <<_LT_EOF >> "$ofile"
47211
47212 # ### BEGIN LIBTOOL TAG CONFIG: CXX
47213
47214 # The linker used to build libraries.
47215 LD=$lt_LD_CXX
47216
47217 # Commands used to build an old-style archive.
47218 old_archive_cmds=$lt_old_archive_cmds_CXX
47219
47220 # A language specific compiler.
47221 CC=$lt_compiler_CXX
47222
47223 # Is the compiler the GNU compiler?
47224 with_gcc=$GCC_CXX
47225
47226 # Compiler flag to turn off builtin functions.
47227 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
47228
47229 # How to pass a linker flag through the compiler.
47230 wl=$lt_lt_prog_compiler_wl_CXX
47231
47232 # Additional compiler flags for building library objects.
47233 pic_flag=$lt_lt_prog_compiler_pic_CXX
47234
47235 # Compiler flag to prevent dynamic linking.
47236 link_static_flag=$lt_lt_prog_compiler_static_CXX
47237
47238 # Does compiler simultaneously support -c and -o options?
47239 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
47240
47241 # Whether or not to add -lc for building shared libraries.
47242 build_libtool_need_lc=$archive_cmds_need_lc_CXX
47243
47244 # Whether or not to disallow shared libs when runtime libs are static.
47245 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
47246
47247 # Compiler flag to allow reflexive dlopens.
47248 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
47249
47250 # Compiler flag to generate shared objects directly from archives.
47251 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
47252
47253 # Whether the compiler copes with passing no objects directly.
47254 compiler_needs_object=$lt_compiler_needs_object_CXX
47255
47256 # Create an old-style archive from a shared archive.
47257 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
47258
47259 # Create a temporary old-style archive to link instead of a shared archive.
47260 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
47261
47262 # Commands used to build a shared archive.
47263 archive_cmds=$lt_archive_cmds_CXX
47264 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
47265
47266 # Commands used to build a loadable module if different from building
47267 # a shared archive.
47268 module_cmds=$lt_module_cmds_CXX
47269 module_expsym_cmds=$lt_module_expsym_cmds_CXX
47270
47271 # Whether we are building with GNU ld or not.
47272 with_gnu_ld=$lt_with_gnu_ld_CXX
47273
47274 # Flag that allows shared libraries with undefined symbols to be built.
47275 allow_undefined_flag=$lt_allow_undefined_flag_CXX
47276
47277 # Flag that enforces no undefined symbols.
47278 no_undefined_flag=$lt_no_undefined_flag_CXX
47279
47280 # Flag to hardcode \$libdir into a binary during linking.
47281 # This must work even if \$libdir does not exist
47282 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
47283
47284 # If ld is used when linking, flag to hardcode \$libdir into a binary
47285 # during linking.  This must work even if \$libdir does not exist.
47286 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
47287
47288 # Whether we need a single "-rpath" flag with a separated argument.
47289 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
47290
47291 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
47292 # DIR into the resulting binary.
47293 hardcode_direct=$hardcode_direct_CXX
47294
47295 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
47296 # DIR into the resulting binary and the resulting library dependency is
47297 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
47298 # library is relocated.
47299 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
47300
47301 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
47302 # into the resulting binary.
47303 hardcode_minus_L=$hardcode_minus_L_CXX
47304
47305 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
47306 # into the resulting binary.
47307 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
47308
47309 # Set to "yes" if building a shared library automatically hardcodes DIR
47310 # into the library and all subsequent libraries and executables linked
47311 # against it.
47312 hardcode_automatic=$hardcode_automatic_CXX
47313
47314 # Set to yes if linker adds runtime paths of dependent libraries
47315 # to runtime path list.
47316 inherit_rpath=$inherit_rpath_CXX
47317
47318 # Whether libtool must link a program against all its dependency libraries.
47319 link_all_deplibs=$link_all_deplibs_CXX
47320
47321 # Fix the shell variable \$srcfile for the compiler.
47322 fix_srcfile_path=$lt_fix_srcfile_path_CXX
47323
47324 # Set to "yes" if exported symbols are required.
47325 always_export_symbols=$always_export_symbols_CXX
47326
47327 # The commands to list exported symbols.
47328 export_symbols_cmds=$lt_export_symbols_cmds_CXX
47329
47330 # Symbols that should not be listed in the preloaded symbols.
47331 exclude_expsyms=$lt_exclude_expsyms_CXX
47332
47333 # Symbols that must always be exported.
47334 include_expsyms=$lt_include_expsyms_CXX
47335
47336 # Commands necessary for linking programs (against libraries) with templates.
47337 prelink_cmds=$lt_prelink_cmds_CXX
47338
47339 # Specify filename containing input files.
47340 file_list_spec=$lt_file_list_spec_CXX
47341
47342 # How to hardcode a shared library path into an executable.
47343 hardcode_action=$hardcode_action_CXX
47344
47345 # The directories searched by this compiler when creating a shared library.
47346 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
47347
47348 # Dependencies to place before and after the objects being linked to
47349 # create a shared library.
47350 predep_objects=$lt_predep_objects_CXX
47351 postdep_objects=$lt_postdep_objects_CXX
47352 predeps=$lt_predeps_CXX
47353 postdeps=$lt_postdeps_CXX
47354
47355 # The library search path used internally by the compiler when linking
47356 # a shared library.
47357 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
47358
47359 # ### END LIBTOOL TAG CONFIG: CXX
47360 _LT_EOF
47361
47362  ;;
47363     "default-1":C)
47364     for ac_file in $CONFIG_FILES; do
47365       # Support "outfile[:infile[:infile...]]"
47366       case "$ac_file" in
47367         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
47368       esac
47369       # PO directories have a Makefile.in generated from Makefile.in.in.
47370       case "$ac_file" in */Makefile.in)
47371         # Adjust a relative srcdir.
47372         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
47373         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
47374         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
47375         # In autoconf-2.13 it is called $ac_given_srcdir.
47376         # In autoconf-2.50 it is called $srcdir.
47377         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
47378         case "$ac_given_srcdir" in
47379           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
47380           /*) top_srcdir="$ac_given_srcdir" ;;
47381           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
47382         esac
47383         # Treat a directory as a PO directory if and only if it has a
47384         # POTFILES.in file. This allows packages to have multiple PO
47385         # directories under different names or in different locations.
47386         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
47387           rm -f "$ac_dir/POTFILES"
47388           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
47389           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
47390           POMAKEFILEDEPS="POTFILES.in"
47391           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
47392           # on $ac_dir but don't depend on user-specified configuration
47393           # parameters.
47394           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
47395             # The LINGUAS file contains the set of available languages.
47396             if test -n "$OBSOLETE_ALL_LINGUAS"; then
47397               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
47398             fi
47399             ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
47400             # Hide the ALL_LINGUAS assigment from automake.
47401             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
47402             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
47403           else
47404             # The set of available languages was given in configure.in.
47405             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
47406           fi
47407           # Compute POFILES
47408           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
47409           # Compute UPDATEPOFILES
47410           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
47411           # Compute DUMMYPOFILES
47412           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
47413           # Compute GMOFILES
47414           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
47415           case "$ac_given_srcdir" in
47416             .) srcdirpre= ;;
47417             *) srcdirpre='$(srcdir)/' ;;
47418           esac
47419           POFILES=
47420           UPDATEPOFILES=
47421           DUMMYPOFILES=
47422           GMOFILES=
47423           for lang in $ALL_LINGUAS; do
47424             POFILES="$POFILES $srcdirpre$lang.po"
47425             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
47426             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
47427             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
47428           done
47429           # CATALOGS depends on both $ac_dir and the user's LINGUAS
47430           # environment variable.
47431           INST_LINGUAS=
47432           if test -n "$ALL_LINGUAS"; then
47433             for presentlang in $ALL_LINGUAS; do
47434               useit=no
47435               if test "%UNSET%" != "$LINGUAS"; then
47436                 desiredlanguages="$LINGUAS"
47437               else
47438                 desiredlanguages="$ALL_LINGUAS"
47439               fi
47440               for desiredlang in $desiredlanguages; do
47441                 # Use the presentlang catalog if desiredlang is
47442                 #   a. equal to presentlang, or
47443                 #   b. a variant of presentlang (because in this case,
47444                 #      presentlang can be used as a fallback for messages
47445                 #      which are not translated in the desiredlang catalog).
47446                 case "$desiredlang" in
47447                   "$presentlang"*) useit=yes;;
47448                 esac
47449               done
47450               if test $useit = yes; then
47451                 INST_LINGUAS="$INST_LINGUAS $presentlang"
47452               fi
47453             done
47454           fi
47455           CATALOGS=
47456           if test -n "$INST_LINGUAS"; then
47457             for lang in $INST_LINGUAS; do
47458               CATALOGS="$CATALOGS $lang.gmo"
47459             done
47460           fi
47461           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
47462           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"
47463           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
47464             if test -f "$f"; then
47465               case "$f" in
47466                 *.orig | *.bak | *~) ;;
47467                 *) cat "$f" >> "$ac_dir/Makefile" ;;
47468               esac
47469             fi
47470           done
47471         fi
47472         ;;
47473       esac
47474     done ;;
47475     "default":C)
47476  ;;
47477
47478   esac
47479 done # for ac_tag
47480
47481
47482 { (exit 0); exit 0; }
47483 _ACEOF
47484 chmod +x $CONFIG_STATUS
47485 ac_clean_files=$ac_clean_files_save
47486
47487
47488 # configure is writing to config.log, and then calls config.status.
47489 # config.status does its own redirection, appending to config.log.
47490 # Unfortunately, on DOS this fails, as config.log is still kept open
47491 # by configure, so config.status won't be able to write to it; its
47492 # output is simply discarded.  So we exec the FD to /dev/null,
47493 # effectively closing config.log, so it can be properly (re)opened and
47494 # appended to by config.status.  When coming back to configure, we
47495 # need to make the FD available again.
47496 if test "$no_create" != yes; then
47497   ac_cs_success=:
47498   ac_config_status_args=
47499   test "$silent" = yes &&
47500     ac_config_status_args="$ac_config_status_args --quiet"
47501   exec 5>/dev/null
47502   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
47503   exec 5>>config.log
47504   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
47505   # would make configure fail if this is the last instruction.
47506   $ac_cs_success || { (exit 1); exit 1; }
47507 fi
47508
47509
47510 if test "${support_bat}" = "yes" ; then
47511    if test "x$QMAKE" = "xnone"; then
47512       { { echo "$as_me:$LINENO: error: Could not find qmake $PATH. Check your Qt installation" >&5
47513 echo "$as_me: error: Could not find qmake $PATH. Check your Qt installation" >&2;}
47514    { (exit 1); exit 1; }; }
47515    fi
47516
47517    QMAKEBIN="qmake"
47518    cd src/qt-console
47519    echo "Creating bat Makefile"
47520    touch bat
47521    chmod 755 bat
47522    rm -f Makefile
47523    $QMAKEBIN
47524    ${MAKE:-make} clean
47525    cd ${BUILD_DIR}
47526 fi
47527
47528 if test X"$GCC" = "Xyes" ; then
47529   echo "Doing make of dependencies"
47530   ${MAKE:-make} depend
47531 fi
47532
47533 cd src/qt-console
47534 chmod 755 install_conf_file build-depkgs-qt-console
47535 cd ${BUILD_DIR}
47536
47537 cd scripts
47538 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
47539 chmod 755 dvd-handler dvd-simulator
47540 chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
47541 cd ..
47542
47543 c=updatedb
47544 chmod 755 $c/update_mysql_tables_10_to_11   $c/update_sqlite3_tables_10_to_11
47545 chmod 755 $c/update_postgresql_tables_10_to_11
47546
47547 c=src/cats
47548
47549 chmod 755 $c/create_bacula_database   $c/update_bacula_tables  $c/make_bacula_tables
47550 chmod 755 $c/grant_bacula_privileges  $c/drop_bacula_tables    $c/drop_bacula_database
47551
47552 chmod 755 $c/create_bdb_database      $c/update_bdb_tables     $c/make_bdb_tables
47553 chmod 755 $c/grant_bdb_privileges     $c/drop_bdb_tables       $c/drop_bdb_database
47554
47555 chmod 755 $c/create_mysql_database    $c/update_mysql_tables   $c/make_mysql_tables
47556 chmod 755 $c/grant_mysql_privileges   $c/drop_mysql_tables     $c/drop_mysql_database
47557
47558 chmod 755 $c/create_sqlite3_database   $c/update_sqlite3_tables  $c/make_sqlite3_tables
47559 chmod 755 $c/grant_sqlite3_privileges  $c/drop_sqlite3_tables    $c/drop_sqlite3_database
47560
47561 chmod 755 $c/create_postgresql_database  $c/update_postgresql_tables $c/make_postgresql_tables
47562 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables   $c/drop_postgresql_database
47563
47564 chmod 755 $c/create_ingres_database  $c/update_ingres_tables $c/make_ingres_tables
47565 chmod 755 $c/grant_ingres_privileges $c/drop_ingres_tables   $c/drop_ingres_database
47566
47567
47568 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup  $c/make_catalog_backup.pl
47569 chmod 755 $c/sqlite
47570 chmod 755 $c/mysql
47571
47572 chmod 755 src/win32/build-depkgs-mingw32
47573
47574 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
47575    largefile_support="yes"
47576 fi
47577
47578 if test X"$GCC" = "Xyes" ; then
47579                CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
47580    if test "x${CCVERSION}" = "x" ; then
47581       CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
47582    fi
47583    CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
47584    if test x"${CXXVERSION}" = x ; then
47585       CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
47586    fi
47587 fi
47588
47589 # clean up any old junk
47590 echo " "
47591 echo "Cleaning up"
47592 echo " "
47593 ${MAKE:-make} clean
47594
47595 if test "x${db_type}" = "xInternal" ; then
47596    echo " "
47597    echo " "
47598    echo "You have not specified either --enable-client-only or one of the"
47599    echo "  supported databases: MySQL, PostgreSQL, Ingres, SQLite3 or DBI."
47600    echo "  This is not permitted. Please reconfigure."
47601    echo " "
47602    echo "Aborting the configuration ..."
47603    echo " "
47604    echo " "
47605    exit 1
47606 fi
47607
47608 echo "
47609 Configuration on `date`:
47610
47611    Host:                    ${host}${post_host} -- ${DISTNAME} ${DISTVER}
47612    Bacula version:          ${BACULA} ${VERSION} (${DATE})
47613    Source code location:    ${srcdir}
47614    Install binaries:        ${sbindir}
47615    Install libraries:       ${libdir}
47616    Install config files:    ${sysconfdir}
47617    Scripts directory:       ${scriptdir}
47618    Archive directory:       ${archivedir}
47619    Working directory:       ${working_dir}
47620    PID directory:           ${piddir}
47621    Subsys directory:        ${subsysdir}
47622    Man directory:           ${mandir}
47623    Data directory:          ${datarootdir}
47624    Plugin directory:        ${plugindir}
47625    C Compiler:              ${CC} ${CCVERSION}
47626    C++ Compiler:            ${CXX} ${CXXVERSION}
47627    Compiler flags:          ${WCFLAGS} ${CFLAGS}
47628    Linker flags:            ${WLDFLAGS} ${LDFLAGS}
47629    Libraries:               ${LIBS}
47630    Statically Linked Tools: ${support_static_tools}
47631    Statically Linked FD:    ${support_static_fd}
47632    Statically Linked SD:    ${support_static_sd}
47633    Statically Linked DIR:   ${support_static_dir}
47634    Statically Linked CONS:  ${support_static_cons}
47635    Database type:           ${db_type}
47636    Database port:           ${db_port}
47637    Database lib:            ${DB_LIBS}
47638    Database name:           ${db_name}
47639    Database user:           ${db_user}
47640
47641    Job Output Email:        ${job_email}
47642    Traceback Email:         ${dump_email}
47643    SMTP Host Address:       ${smtp_host}
47644
47645    Director Port:           ${dir_port}
47646    File daemon Port:        ${fd_port}
47647    Storage daemon Port:     ${sd_port}
47648
47649    Director User:           ${dir_user}
47650    Director Group:          ${dir_group}
47651    Storage Daemon User:     ${sd_user}
47652    Storage DaemonGroup:     ${sd_group}
47653    File Daemon User:        ${fd_user}
47654    File Daemon Group:       ${fd_group}
47655
47656    SQL binaries Directory   ${SQL_BINDIR}
47657
47658    Large file support:      $largefile_support
47659    Bacula conio support:    ${got_conio} ${CONS_LIBS}
47660    readline support:        ${got_readline} ${PRTREADLINE_SRC}
47661    TCP Wrappers support:    ${TCPW_MSG} ${WRAPLIBS}
47662    TLS support:             ${support_tls}
47663    Encryption support:      ${support_crypto}
47664    ZLIB support:            ${have_zlib}
47665    enable-smartalloc:       ${support_smartalloc}
47666    enable-lockmgr:          ${support_lockmgr}
47667    bat support:             ${support_bat}
47668    enable-gnome:            ${support_gnome} ${gnome_version}
47669    enable-bwx-console:      ${support_wx_console} ${wx_version}
47670    enable-tray-monitor:     ${support_tray_monitor}
47671    client-only:             ${build_client_only}
47672    build-dird:              ${build_dird}
47673    build-stored:            ${build_stored}
47674    Plugin support:          ${have_plugins}
47675    AFS support:             ${have_afs}
47676    ACL support:             ${have_acl}
47677    XATTR support:           ${have_xattr}
47678    Python support:          ${support_python} ${PYTHON_LIBS}
47679    Batch insert enabled:    ${support_batch_insert}
47680
47681   " > config.out
47682
47683 # create a small shell script useful for support with
47684 # configure options and config.out info
47685 cat > scripts/bacula_config << EOF
47686 #!/bin/sh
47687 cat << __EOC__
47688 $ $0 $ac_configure_args
47689 EOF
47690 cat config.out >> scripts/bacula_config
47691 echo __EOC__ >> scripts/bacula_config
47692 chmod 755 scripts/bacula_config
47693
47694 cat config.out
47695
47696 # Display a warning message if postgresql client lib is <= 8.1
47697 if test x$DB_TYPE = xpostgresql -a x$ac_cv_lib_pq_PQisthreadsafe != xyes \
47698         -a x$support_batch_insert = xyes
47699 then
47700         echo "WARNING: Your PostgreSQL client library is too old to detect "
47701         echo " if it was compiled with --enable-thread-safety, consider to"
47702         echo " upgrade it in order to avoid problems with Batch insert mode"
47703         echo
47704 fi