]> git.sur5r.net Git - bacula/bacula/blob - bacula/configure
Merge branch 'master' into basejobv3
[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 CC
815 CFLAGS
816 LDFLAGS
817 CPPFLAGS
818 ac_ct_CC
819 EXEEXT
820 OBJEXT
821 CXX
822 CXXFLAGS
823 ac_ct_CXX
824 CPP
825 GREP
826 EGREP
827 INSTALL_PROGRAM
828 INSTALL_SCRIPT
829 INSTALL_DATA
830 MV
831 REMOVE
832 CP
833 SED
834 ECHO
835 CMP
836 TBL
837 AR
838 OPENSSL
839 MTX
840 DD
841 MKISOFS
842 PYTHON
843 GROWISOFS
844 DVDRWMEDIAINFO
845 DVDRWFORMAT
846 PKGCONFIG
847 QMAKE
848 QMAKEQT4
849 GMAKE
850 WXCONFIG
851 WXFLAGS
852 CDRECORD
853 PIDOF
854 AWK
855 ARFLAGS
856 MAKE_SHELL
857 LOCAL_LIBS
858 LOCAL_CFLAGS
859 LOCAL_LDFLAGS
860 LOCAL_DEFS
861 LIBTOOL
862 build
863 build_cpu
864 build_vendor
865 build_os
866 host
867 host_cpu
868 host_vendor
869 host_os
870 FGREP
871 LD
872 DUMPBIN
873 ac_ct_DUMPBIN
874 NM
875 LN_S
876 OBJDUMP
877 STRIP
878 RANLIB
879 lt_ECHO
880 DSYMUTIL
881 NMEDIT
882 LIPO
883 OTOOL
884 OTOOL64
885 CXXCPP
886 DEFAULT_OBJECT_TYPE
887 DEFAULT_ARCHIVE_TYPE
888 DEFAULT_SHARED_OBJECT_TYPE
889 LIBTOOL_INSTALL_TARGET
890 LIBTOOL_UNINSTALL_TARGET
891 LIBTOOL_CLEAN_TARGET
892 QMAKE_LIBTOOL
893 INCLUDE_INSTALL_TARGET
894 INCLUDE_UNINSTALL_TARGET
895 HAVE_SUN_OS_TRUE
896 HAVE_SUN_OS_FALSE
897 HAVE_OSF1_OS_TRUE
898 HAVE_OSF1_OS_FALSE
899 HAVE_AIX_OS_TRUE
900 HAVE_AIX_OS_FALSE
901 HAVE_HPUX_OS_TRUE
902 HAVE_HPUX_OS_FALSE
903 HAVE_LINUX_OS_TRUE
904 HAVE_LINUX_OS_FALSE
905 HAVE_FREEBSD_OS_TRUE
906 HAVE_FREEBSD_OS_FALSE
907 HAVE_NETBSD_OS_TRUE
908 HAVE_NETBSD_OS_FALSE
909 HAVE_OPENBSD_OS_TRUE
910 HAVE_OPENBSD_OS_FALSE
911 HAVE_BSDI_OS_TRUE
912 HAVE_BSDI_OS_FALSE
913 HAVE_SGI_OS_TRUE
914 HAVE_SGI_OS_FALSE
915 HAVE_IRIX_OS_TRUE
916 HAVE_IRIX_OS_FALSE
917 HAVE_DARWIN_OS_TRUE
918 HAVE_DARWIN_OS_FALSE
919 SET_MAKE
920 MKINSTALLDIRS
921 USE_NLS
922 MSGFMT
923 GMSGFMT
924 XGETTEXT
925 MSGMERGE
926 INTL_MACOSX_LIBS
927 LIBICONV
928 LTLIBICONV
929 INTLLIBS
930 LIBINTL
931 LTLIBINTL
932 POSUB
933 GLIBC2
934 ALLOCA
935 GLIBC21
936 HAVE_POSIX_PRINTF
937 HAVE_ASPRINTF
938 HAVE_SNPRINTF
939 HAVE_WPRINTF
940 INTLBISON
941 BUILD_INCLUDED_LIBINTL
942 USE_INCLUDED_LIBINTL
943 CATOBJEXT
944 DATADIRNAME
945 INSTOBJEXT
946 GENCAT
947 INTLOBJS
948 INTL_LIBTOOL_SUFFIX_PREFIX
949 BAT_DIR
950 QWT_INC
951 QWT_LDFLAGS
952 QWT_LIB
953 QWT
954 WXCONS_CPPFLAGS
955 WXCONS_LDFLAGS
956 WX_DIR
957 TRAY_MONITOR_CPPFLAGS
958 TRAY_MONITOR_LDFLAGS
959 TRAY_MONITOR_DIR
960 TTOOL_LDFLAGS
961 STATIC_FD
962 STATIC_SD
963 STATIC_DIR
964 STATIC_CONS
965 STATIC_GNOME_CONS
966 STATIC_WX_CONS
967 ALL_DIRS
968 DIRD_DIR
969 DIR_TOOLS
970 STORED_DIR
971 CONS_INC
972 CONS_OBJ
973 CONS_SRC
974 CONS_LIBS
975 CONS_LDFLAGS
976 READLINE_SRC
977 PYTHON_LIBS
978 PYTHON_INCDIR
979 OPENSSL_LIBS
980 OPENSSL_INC
981 working_dir
982 archivedir
983 basename
984 hostname
985 scriptdir
986 bsrdir
987 logdir
988 plugindir
989 dump_email
990 job_email
991 smtp_host
992 piddir
993 subsysdir
994 baseport
995 dir_port
996 fd_port
997 sd_port
998 dir_password
999 fd_password
1000 sd_password
1001 mon_dir_password
1002 mon_fd_password
1003 mon_sd_password
1004 db_name
1005 db_user
1006 db_password
1007 db_port
1008 dir_user
1009 dir_group
1010 sd_user
1011 sd_group
1012 fd_user
1013 fd_group
1014 SBINPERM
1015 SQL_LFLAGS
1016 SQL_INCLUDE
1017 SQL_BINDIR
1018 DBI_DBD_DRIVERDIR
1019 uncomment_dbi
1020 DB_PROG
1021 DB_PROG_LIB
1022 cats
1023 DB_TYPE
1024 GETCONF
1025 XMKMF
1026 X_CFLAGS
1027 X_PRE_LIBS
1028 X_LIBS
1029 X_EXTRA_LIBS
1030 LIBOBJS
1031 CAP_LIBS
1032 FDLIBS
1033 DEBUG
1034 DINCLUDE
1035 DLIB
1036 DB_LIBS
1037 WCFLAGS
1038 WLDFLAGS
1039 WRAPLIBS
1040 OBJLIST
1041 TAPEDRIVE
1042 PSCMD
1043 WIN32
1044 MACOSX
1045 DISTNAME
1046 DISTVER
1047 LTLIBOBJS'
1048 ac_subst_files='MCOMMON'
1049       ac_precious_vars='build_alias
1050 host_alias
1051 target_alias
1052 CC
1053 CFLAGS
1054 LDFLAGS
1055 LIBS
1056 CPPFLAGS
1057 CXX
1058 CXXFLAGS
1059 CCC
1060 CPP
1061 WXCONFIG
1062 WXFLAGS
1063 CXXCPP
1064 XMKMF'
1065
1066
1067 # Initialize some variables set by options.
1068 ac_init_help=
1069 ac_init_version=false
1070 # The variables have the same names as the options, with
1071 # dashes changed to underlines.
1072 cache_file=/dev/null
1073 exec_prefix=NONE
1074 no_create=
1075 no_recursion=
1076 prefix=NONE
1077 program_prefix=NONE
1078 program_suffix=NONE
1079 program_transform_name=s,x,x,
1080 silent=
1081 site=
1082 srcdir=
1083 verbose=
1084 x_includes=NONE
1085 x_libraries=NONE
1086
1087 # Installation directory options.
1088 # These are left unexpanded so users can "make install exec_prefix=/foo"
1089 # and all the variables that are supposed to be based on exec_prefix
1090 # by default will actually change.
1091 # Use braces instead of parens because sh, perl, etc. also accept them.
1092 # (The list follows the same order as the GNU Coding Standards.)
1093 bindir='${exec_prefix}/bin'
1094 sbindir='${exec_prefix}/sbin'
1095 libexecdir='${exec_prefix}/libexec'
1096 datarootdir='${prefix}/share'
1097 datadir='${datarootdir}'
1098 sysconfdir='${prefix}/etc'
1099 sharedstatedir='${prefix}/com'
1100 localstatedir='${prefix}/var'
1101 includedir='${prefix}/include'
1102 oldincludedir='/usr/include'
1103 docdir='${datarootdir}/doc/${PACKAGE}'
1104 infodir='${datarootdir}/info'
1105 htmldir='${docdir}'
1106 dvidir='${docdir}'
1107 pdfdir='${docdir}'
1108 psdir='${docdir}'
1109 libdir='${exec_prefix}/lib'
1110 localedir='${datarootdir}/locale'
1111 mandir='${datarootdir}/man'
1112
1113 ac_prev=
1114 ac_dashdash=
1115 for ac_option
1116 do
1117   # If the previous option needs an argument, assign it.
1118   if test -n "$ac_prev"; then
1119     eval $ac_prev=\$ac_option
1120     ac_prev=
1121     continue
1122   fi
1123
1124   case $ac_option in
1125   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1126   *)    ac_optarg=yes ;;
1127   esac
1128
1129   # Accept the important Cygnus configure options, so we can diagnose typos.
1130
1131   case $ac_dashdash$ac_option in
1132   --)
1133     ac_dashdash=yes ;;
1134
1135   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1136     ac_prev=bindir ;;
1137   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1138     bindir=$ac_optarg ;;
1139
1140   -build | --build | --buil | --bui | --bu)
1141     ac_prev=build_alias ;;
1142   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1143     build_alias=$ac_optarg ;;
1144
1145   -cache-file | --cache-file | --cache-fil | --cache-fi \
1146   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1147     ac_prev=cache_file ;;
1148   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1149   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1150     cache_file=$ac_optarg ;;
1151
1152   --config-cache | -C)
1153     cache_file=config.cache ;;
1154
1155   -datadir | --datadir | --datadi | --datad)
1156     ac_prev=datadir ;;
1157   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1158     datadir=$ac_optarg ;;
1159
1160   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1161   | --dataroo | --dataro | --datar)
1162     ac_prev=datarootdir ;;
1163   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1164   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1165     datarootdir=$ac_optarg ;;
1166
1167   -disable-* | --disable-*)
1168     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1169     # Reject names that are not valid shell variable names.
1170     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1171       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1172    { (exit 1); exit 1; }; }
1173     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1174     eval enable_$ac_feature=no ;;
1175
1176   -docdir | --docdir | --docdi | --doc | --do)
1177     ac_prev=docdir ;;
1178   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1179     docdir=$ac_optarg ;;
1180
1181   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1182     ac_prev=dvidir ;;
1183   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1184     dvidir=$ac_optarg ;;
1185
1186   -enable-* | --enable-*)
1187     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1188     # Reject names that are not valid shell variable names.
1189     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1190       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1191    { (exit 1); exit 1; }; }
1192     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1193     eval enable_$ac_feature=\$ac_optarg ;;
1194
1195   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1196   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1197   | --exec | --exe | --ex)
1198     ac_prev=exec_prefix ;;
1199   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1200   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1201   | --exec=* | --exe=* | --ex=*)
1202     exec_prefix=$ac_optarg ;;
1203
1204   -gas | --gas | --ga | --g)
1205     # Obsolete; use --with-gas.
1206     with_gas=yes ;;
1207
1208   -help | --help | --hel | --he | -h)
1209     ac_init_help=long ;;
1210   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1211     ac_init_help=recursive ;;
1212   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1213     ac_init_help=short ;;
1214
1215   -host | --host | --hos | --ho)
1216     ac_prev=host_alias ;;
1217   -host=* | --host=* | --hos=* | --ho=*)
1218     host_alias=$ac_optarg ;;
1219
1220   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1221     ac_prev=htmldir ;;
1222   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1223   | --ht=*)
1224     htmldir=$ac_optarg ;;
1225
1226   -includedir | --includedir | --includedi | --included | --include \
1227   | --includ | --inclu | --incl | --inc)
1228     ac_prev=includedir ;;
1229   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1230   | --includ=* | --inclu=* | --incl=* | --inc=*)
1231     includedir=$ac_optarg ;;
1232
1233   -infodir | --infodir | --infodi | --infod | --info | --inf)
1234     ac_prev=infodir ;;
1235   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1236     infodir=$ac_optarg ;;
1237
1238   -libdir | --libdir | --libdi | --libd)
1239     ac_prev=libdir ;;
1240   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1241     libdir=$ac_optarg ;;
1242
1243   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1244   | --libexe | --libex | --libe)
1245     ac_prev=libexecdir ;;
1246   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1247   | --libexe=* | --libex=* | --libe=*)
1248     libexecdir=$ac_optarg ;;
1249
1250   -localedir | --localedir | --localedi | --localed | --locale)
1251     ac_prev=localedir ;;
1252   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1253     localedir=$ac_optarg ;;
1254
1255   -localstatedir | --localstatedir | --localstatedi | --localstated \
1256   | --localstate | --localstat | --localsta | --localst | --locals)
1257     ac_prev=localstatedir ;;
1258   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1259   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1260     localstatedir=$ac_optarg ;;
1261
1262   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1263     ac_prev=mandir ;;
1264   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1265     mandir=$ac_optarg ;;
1266
1267   -nfp | --nfp | --nf)
1268     # Obsolete; use --without-fp.
1269     with_fp=no ;;
1270
1271   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1272   | --no-cr | --no-c | -n)
1273     no_create=yes ;;
1274
1275   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1276   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1277     no_recursion=yes ;;
1278
1279   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1280   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1281   | --oldin | --oldi | --old | --ol | --o)
1282     ac_prev=oldincludedir ;;
1283   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1284   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1285   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1286     oldincludedir=$ac_optarg ;;
1287
1288   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1289     ac_prev=prefix ;;
1290   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1291     prefix=$ac_optarg ;;
1292
1293   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1294   | --program-pre | --program-pr | --program-p)
1295     ac_prev=program_prefix ;;
1296   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1297   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1298     program_prefix=$ac_optarg ;;
1299
1300   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1301   | --program-suf | --program-su | --program-s)
1302     ac_prev=program_suffix ;;
1303   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1304   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1305     program_suffix=$ac_optarg ;;
1306
1307   -program-transform-name | --program-transform-name \
1308   | --program-transform-nam | --program-transform-na \
1309   | --program-transform-n | --program-transform- \
1310   | --program-transform | --program-transfor \
1311   | --program-transfo | --program-transf \
1312   | --program-trans | --program-tran \
1313   | --progr-tra | --program-tr | --program-t)
1314     ac_prev=program_transform_name ;;
1315   -program-transform-name=* | --program-transform-name=* \
1316   | --program-transform-nam=* | --program-transform-na=* \
1317   | --program-transform-n=* | --program-transform-=* \
1318   | --program-transform=* | --program-transfor=* \
1319   | --program-transfo=* | --program-transf=* \
1320   | --program-trans=* | --program-tran=* \
1321   | --progr-tra=* | --program-tr=* | --program-t=*)
1322     program_transform_name=$ac_optarg ;;
1323
1324   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1325     ac_prev=pdfdir ;;
1326   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1327     pdfdir=$ac_optarg ;;
1328
1329   -psdir | --psdir | --psdi | --psd | --ps)
1330     ac_prev=psdir ;;
1331   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1332     psdir=$ac_optarg ;;
1333
1334   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1335   | -silent | --silent | --silen | --sile | --sil)
1336     silent=yes ;;
1337
1338   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1339     ac_prev=sbindir ;;
1340   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1341   | --sbi=* | --sb=*)
1342     sbindir=$ac_optarg ;;
1343
1344   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1345   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1346   | --sharedst | --shareds | --shared | --share | --shar \
1347   | --sha | --sh)
1348     ac_prev=sharedstatedir ;;
1349   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1350   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1351   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1352   | --sha=* | --sh=*)
1353     sharedstatedir=$ac_optarg ;;
1354
1355   -site | --site | --sit)
1356     ac_prev=site ;;
1357   -site=* | --site=* | --sit=*)
1358     site=$ac_optarg ;;
1359
1360   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1361     ac_prev=srcdir ;;
1362   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1363     srcdir=$ac_optarg ;;
1364
1365   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1366   | --syscon | --sysco | --sysc | --sys | --sy)
1367     ac_prev=sysconfdir ;;
1368   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1369   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1370     sysconfdir=$ac_optarg ;;
1371
1372   -target | --target | --targe | --targ | --tar | --ta | --t)
1373     ac_prev=target_alias ;;
1374   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1375     target_alias=$ac_optarg ;;
1376
1377   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1378     verbose=yes ;;
1379
1380   -version | --version | --versio | --versi | --vers | -V)
1381     ac_init_version=: ;;
1382
1383   -with-* | --with-*)
1384     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1385     # Reject names that are not valid shell variable names.
1386     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1387       { echo "$as_me: error: invalid package name: $ac_package" >&2
1388    { (exit 1); exit 1; }; }
1389     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1390     eval with_$ac_package=\$ac_optarg ;;
1391
1392   -without-* | --without-*)
1393     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
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=no ;;
1400
1401   --x)
1402     # Obsolete; use --with-x.
1403     with_x=yes ;;
1404
1405   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1406   | --x-incl | --x-inc | --x-in | --x-i)
1407     ac_prev=x_includes ;;
1408   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1409   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1410     x_includes=$ac_optarg ;;
1411
1412   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1413   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1414     ac_prev=x_libraries ;;
1415   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1416   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1417     x_libraries=$ac_optarg ;;
1418
1419   -*) { echo "$as_me: error: unrecognized option: $ac_option
1420 Try \`$0 --help' for more information." >&2
1421    { (exit 1); exit 1; }; }
1422     ;;
1423
1424   *=*)
1425     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1426     # Reject names that are not valid shell variable names.
1427     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1428       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1429    { (exit 1); exit 1; }; }
1430     eval $ac_envvar=\$ac_optarg
1431     export $ac_envvar ;;
1432
1433   *)
1434     # FIXME: should be removed in autoconf 3.0.
1435     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1436     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1437       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1438     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1439     ;;
1440
1441   esac
1442 done
1443
1444 if test -n "$ac_prev"; then
1445   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1446   { echo "$as_me: error: missing argument to $ac_option" >&2
1447    { (exit 1); exit 1; }; }
1448 fi
1449
1450 # Be sure to have absolute directory names.
1451 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1452                 datadir sysconfdir sharedstatedir localstatedir includedir \
1453                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1454                 libdir localedir mandir
1455 do
1456   eval ac_val=\$$ac_var
1457   case $ac_val in
1458     [\\/$]* | ?:[\\/]* )  continue;;
1459     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1460   esac
1461   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1462    { (exit 1); exit 1; }; }
1463 done
1464
1465 # There might be people who depend on the old broken behavior: `$host'
1466 # used to hold the argument of --host etc.
1467 # FIXME: To remove some day.
1468 build=$build_alias
1469 host=$host_alias
1470 target=$target_alias
1471
1472 # FIXME: To remove some day.
1473 if test "x$host_alias" != x; then
1474   if test "x$build_alias" = x; then
1475     cross_compiling=maybe
1476     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1477     If a cross compiler is detected then cross compile mode will be used." >&2
1478   elif test "x$build_alias" != "x$host_alias"; then
1479     cross_compiling=yes
1480   fi
1481 fi
1482
1483 ac_tool_prefix=
1484 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1485
1486 test "$silent" = yes && exec 6>/dev/null
1487
1488
1489 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1490 ac_ls_di=`ls -di .` &&
1491 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1492   { echo "$as_me: error: Working directory cannot be determined" >&2
1493    { (exit 1); exit 1; }; }
1494 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1495   { echo "$as_me: error: pwd does not report name of working directory" >&2
1496    { (exit 1); exit 1; }; }
1497
1498
1499 # Find the source files, if location was not specified.
1500 if test -z "$srcdir"; then
1501   ac_srcdir_defaulted=yes
1502   # Try the directory containing this script, then the parent directory.
1503   ac_confdir=`$as_dirname -- "$0" ||
1504 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1505          X"$0" : 'X\(//\)[^/]' \| \
1506          X"$0" : 'X\(//\)$' \| \
1507          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1508 echo X"$0" |
1509     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1510             s//\1/
1511             q
1512           }
1513           /^X\(\/\/\)[^/].*/{
1514             s//\1/
1515             q
1516           }
1517           /^X\(\/\/\)$/{
1518             s//\1/
1519             q
1520           }
1521           /^X\(\/\).*/{
1522             s//\1/
1523             q
1524           }
1525           s/.*/./; q'`
1526   srcdir=$ac_confdir
1527   if test ! -r "$srcdir/$ac_unique_file"; then
1528     srcdir=..
1529   fi
1530 else
1531   ac_srcdir_defaulted=no
1532 fi
1533 if test ! -r "$srcdir/$ac_unique_file"; then
1534   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1535   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1536    { (exit 1); exit 1; }; }
1537 fi
1538 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1539 ac_abs_confdir=`(
1540         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1541    { (exit 1); exit 1; }; }
1542         pwd)`
1543 # When building in place, set srcdir=.
1544 if test "$ac_abs_confdir" = "$ac_pwd"; then
1545   srcdir=.
1546 fi
1547 # Remove unnecessary trailing slashes from srcdir.
1548 # Double slashes in file names in object file debugging info
1549 # mess up M-x gdb in Emacs.
1550 case $srcdir in
1551 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1552 esac
1553 for ac_var in $ac_precious_vars; do
1554   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1555   eval ac_env_${ac_var}_value=\$${ac_var}
1556   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1557   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1558 done
1559
1560 #
1561 # Report the --help message.
1562 #
1563 if test "$ac_init_help" = "long"; then
1564   # Omit some internal or obsolete options to make the list less imposing.
1565   # This message is too long to be a string in the A/UX 3.1 sh.
1566   cat <<_ACEOF
1567 \`configure' configures this package to adapt to many kinds of systems.
1568
1569 Usage: $0 [OPTION]... [VAR=VALUE]...
1570
1571 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1572 VAR=VALUE.  See below for descriptions of some of the useful variables.
1573
1574 Defaults for the options are specified in brackets.
1575
1576 Configuration:
1577   -h, --help              display this help and exit
1578       --help=short        display options specific to this package
1579       --help=recursive    display the short help of all the included packages
1580   -V, --version           display version information and exit
1581   -q, --quiet, --silent   do not print \`checking...' messages
1582       --cache-file=FILE   cache test results in FILE [disabled]
1583   -C, --config-cache      alias for \`--cache-file=config.cache'
1584   -n, --no-create         do not create output files
1585       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1586
1587 Installation directories:
1588   --prefix=PREFIX         install architecture-independent files in PREFIX
1589                           [$ac_default_prefix]
1590   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1591                           [PREFIX]
1592
1593 By default, \`make install' will install all the files in
1594 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1595 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1596 for instance \`--prefix=\$HOME'.
1597
1598 For better control, use the options below.
1599
1600 Fine tuning of the installation directories:
1601   --bindir=DIR           user executables [EPREFIX/bin]
1602   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1603   --libexecdir=DIR       program executables [EPREFIX/libexec]
1604   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1605   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1606   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1607   --libdir=DIR           object code libraries [EPREFIX/lib]
1608   --includedir=DIR       C header files [PREFIX/include]
1609   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1610   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1611   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1612   --infodir=DIR          info documentation [DATAROOTDIR/info]
1613   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1614   --mandir=DIR           man documentation [DATAROOTDIR/man]
1615   --docdir=DIR           documentation root [DATAROOTDIR/doc/PACKAGE]
1616   --htmldir=DIR          html documentation [DOCDIR]
1617   --dvidir=DIR           dvi documentation [DOCDIR]
1618   --pdfdir=DIR           pdf documentation [DOCDIR]
1619   --psdir=DIR            ps documentation [DOCDIR]
1620 _ACEOF
1621
1622   cat <<\_ACEOF
1623
1624 X features:
1625   --x-includes=DIR    X include files are in DIR
1626   --x-libraries=DIR   X library files are in DIR
1627
1628 System types:
1629   --build=BUILD     configure for building on BUILD [guessed]
1630   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1631 _ACEOF
1632 fi
1633
1634 if test -n "$ac_init_help"; then
1635
1636   cat <<\_ACEOF
1637
1638 Optional Features:
1639   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1640   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1641   --enable-libtool        enable building using GNU libtool [default=yes]
1642   --enable-shared[=PKGS]  build shared libraries [default=yes]
1643   --enable-static[=PKGS]  build static libraries [default=no]
1644   --enable-fast-install[=PKGS]
1645                           optimize for fast installation [default=yes]
1646   --disable-libtool-lock  avoid locking (might break parallel builds)
1647   --enable-includes       enable installing of include files [default=no]
1648   --disable-nls           do not use Native Language Support
1649   --disable-rpath         do not hardcode runtime library paths
1650   --enable-gnome          enable build of bgnome-console GUI [default=no]
1651   --enable-bat            enable build of bat Qt4 GUI [default=no]
1652   --enable-bwx-console    enable build of wxWidgets console [default=no]
1653   --enable-tray-monitor   enable build of Gnome tray monitor (compatible with
1654                           KDE [default=no]
1655   --enable-smartalloc     enable smartalloc debugging support [default=no]
1656   --enable-lockmgr        enable lock manager support [default=no]
1657   --enable-static-tools   enable static tape tools [default=no]
1658   --enable-static-fd      enable static File daemon [default=no]
1659   --enable-static-sd      enable static Storage daemon [default=no]
1660   --enable-static-dir     enable static Director [default=no]
1661   --enable-static-cons    enable static Console [default=no]
1662   --enable-client-only    build client (File daemon) only [default=no]
1663   --enable-build-dird     enable building of dird (Director) [default=yes]
1664   --enable-build-stored   enable building of stored (Storage daemon)
1665                           [default=yes]
1666   --disable-conio         disable conio support [default=no]
1667   --enable-ipv6           enable ipv6 support [default=yes]
1668   --disable-readline      disable readline support [default=yes]
1669   --enable-batch-insert   enable the DB batch insert code [default=no]
1670   --disable-largefile     omit support for large files
1671   --disable-acl           disable acl support [default=auto]
1672   --disable-xattr         disable xattr support [default=auto]
1673
1674 Optional Packages:
1675   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1676   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1677   --with-pic              try to use only PIC/non-PIC objects [default=use
1678                           both]
1679   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1680   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1681   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1682   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1683   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1684   --without-libintl-prefix     don't search for libintl in includedir and libdir
1685   --with-included-gettext use the GNU gettext library included here
1686   --with-qwt[=DIR]        specify qwt library directory
1687   --with-readline[=DIR]   specify readline library directory
1688   --with-python[=DIR]     Include Python support. DIR is the Python base
1689                           install directory, default is to search through a
1690                           number of common places for the Python files.
1691   --with-tcp-wrappers[=DIR]
1692                           enable tcpwrappers support
1693   --with-openssl[=DIR]    Include OpenSSL support. DIR is the OpenSSL base
1694   --with-working-dir=PATH specify path of Bacula working directory
1695   --with-archivedir=PATH  specify path of SD archive directory
1696   --with-basename=RESNAME specify base resource name for daemons
1697   --with-hostname=RESNAME specify host name for daemons
1698   --with-scriptdir=PATH   specify path of Bacula scripts directory
1699   --with-bsrdir=PATH      specify path of Bacula bsrs directory
1700   --with-logdir=PATH      specify path of Bacula logs directory
1701   --with-plugindir=PATH   specify path of Bacula plugins directory
1702   --with-dump-email=EMAIL dump email address
1703   --with-job-email=EMAIL  job output email address
1704   --with-smtp-host=HOST   SMTP mail host address
1705   --with-pid-dir=PATH     specify location of Bacula pid files
1706   --with-subsys-dir=PATH  specify location of Bacula subsys file
1707   --with-baseport=PORT    specify base port address for daemons
1708   --with-dir-password=PASSWORD
1709                           specify Director's password
1710   --with-fd-password=PASSWORD
1711                           specify Client's password
1712   --with-sd-password=PASSWORD
1713                           specify Storage daemon's password
1714   --with-mon-dir-password=PASSWORD
1715                           specify Director's password used by the monitor
1716   --with-mon-fd-password=PASSWORD
1717                           specify Client's password used by the monitor
1718   --with-mon-sd-password=PASSWORD
1719                           specify Storage daemon's password used by the
1720                           monitor
1721   --with-db-name=DBNAME   specify database name [default=bacula]
1722   --with-db-user=UNAME    specify database user [default=bacula]
1723   --with-db-password=PWD  specify database password [default=*none*]
1724   --with-db-port=DBPORT   specify a database port [default=null]
1725   --with-dir-user=USER    specify user for Director daemon
1726   --with-dir-group=GROUP  specify group for Director daemon
1727   --with-sd-user=USER     specify user for Storage daemon
1728   --with-sd-group=GROUP   specify group for Storage daemon
1729   --with-fd-user=USER     specify user for File daemon
1730   --with-fd-group=GROUP   specify group for File daemon
1731   --with-sbin-perm=MODE   specify permissions for sbin binaries [default=0754]
1732   --with-postgresql[=DIR] Include PostgreSQL support. DIR is the PostgreSQL
1733                           base install directory, [default=/usr/local/pgsql]
1734   --with-mysql[=DIR]      Include MySQL support. DIR is the MySQL base install
1735                           directory, default is to search through a number of
1736                           common places for the MySQL files.
1737   --with-embedded-mysql[=DIR]
1738                           Include MySQL support. DIR is the MySQL base install
1739                           directory, default is to search through a number of
1740                           common places for the MySQL files.
1741   --with-sqlite3[=DIR]    Include SQLite3 support. DIR is the SQLite3 base
1742                           install directory, default is to search through a
1743                           number of common places for the SQLite3 files.
1744   --with-sqlite[=DIR]     Include SQLite support. DIR is the SQLite base
1745                           install directory, default is to search through a
1746                           number of common places for the SQLite files.
1747   --with-dbi[=DIR]        Include DBI support. DIR is the DBD base install
1748                           directory, default is to search through a number of
1749                           common places for the DBI files.
1750   --with-dbi-driver[=DRIVER]
1751                           Suport for DBI driver. DRIVER is the one DBI driver
1752                           like Mysql, Postgresql, others. Default is to not
1753                           configure any driver.
1754   --with-x                use the X Window System
1755
1756 Some influential environment variables:
1757   CC          C compiler command
1758   CFLAGS      C compiler flags
1759   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1760               nonstandard directory <lib dir>
1761   LIBS        libraries to pass to the linker, e.g. -l<library>
1762   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1763               you have headers in a nonstandard directory <include dir>
1764   CXX         C++ compiler command
1765   CXXFLAGS    C++ compiler flags
1766   CPP         C preprocessor
1767   WXCONFIG    wx-config command. On some systems, you must set it to
1768               wx-config-2.6 to use wxWidgets 2.6.
1769   WXFLAGS     Parameters to pass to wx-config (e.g. --unicode=no).
1770   CXXCPP      C++ preprocessor
1771   XMKMF       Path to xmkmf, Makefile generator for X Window System
1772
1773 Use these variables to override the choices made by `configure' or to help
1774 it to find libraries and programs with nonstandard names/locations.
1775
1776 _ACEOF
1777 ac_status=$?
1778 fi
1779
1780 if test "$ac_init_help" = "recursive"; then
1781   # If there are subdirs, report their specific --help.
1782   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1783     test -d "$ac_dir" || continue
1784     ac_builddir=.
1785
1786 case "$ac_dir" in
1787 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1788 *)
1789   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1790   # A ".." for each directory in $ac_dir_suffix.
1791   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1792   case $ac_top_builddir_sub in
1793   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1794   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1795   esac ;;
1796 esac
1797 ac_abs_top_builddir=$ac_pwd
1798 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1799 # for backward compatibility:
1800 ac_top_builddir=$ac_top_build_prefix
1801
1802 case $srcdir in
1803   .)  # We are building in place.
1804     ac_srcdir=.
1805     ac_top_srcdir=$ac_top_builddir_sub
1806     ac_abs_top_srcdir=$ac_pwd ;;
1807   [\\/]* | ?:[\\/]* )  # Absolute name.
1808     ac_srcdir=$srcdir$ac_dir_suffix;
1809     ac_top_srcdir=$srcdir
1810     ac_abs_top_srcdir=$srcdir ;;
1811   *) # Relative name.
1812     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1813     ac_top_srcdir=$ac_top_build_prefix$srcdir
1814     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1815 esac
1816 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1817
1818     cd "$ac_dir" || { ac_status=$?; continue; }
1819     # Check for guested configure.
1820     if test -f "$ac_srcdir/configure.gnu"; then
1821       echo &&
1822       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1823     elif test -f "$ac_srcdir/configure"; then
1824       echo &&
1825       $SHELL "$ac_srcdir/configure" --help=recursive
1826     else
1827       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1828     fi || ac_status=$?
1829     cd "$ac_pwd" || { ac_status=$?; break; }
1830   done
1831 fi
1832
1833 test -n "$ac_init_help" && exit $ac_status
1834 if $ac_init_version; then
1835   cat <<\_ACEOF
1836 configure
1837 generated by GNU Autoconf 2.61
1838
1839 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1840 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1841 This configure script is free software; the Free Software Foundation
1842 gives unlimited permission to copy, distribute and modify it.
1843 _ACEOF
1844   exit
1845 fi
1846 cat >config.log <<_ACEOF
1847 This file contains any messages produced by compilers while
1848 running configure, to aid debugging if configure makes a mistake.
1849
1850 It was created by $as_me, which was
1851 generated by GNU Autoconf 2.61.  Invocation command line was
1852
1853   $ $0 $@
1854
1855 _ACEOF
1856 exec 5>>config.log
1857 {
1858 cat <<_ASUNAME
1859 ## --------- ##
1860 ## Platform. ##
1861 ## --------- ##
1862
1863 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1864 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1865 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1866 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1867 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1868
1869 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1870 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1871
1872 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1873 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1874 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1875 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1876 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1877 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1878 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1879
1880 _ASUNAME
1881
1882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1883 for as_dir in $PATH
1884 do
1885   IFS=$as_save_IFS
1886   test -z "$as_dir" && as_dir=.
1887   echo "PATH: $as_dir"
1888 done
1889 IFS=$as_save_IFS
1890
1891 } >&5
1892
1893 cat >&5 <<_ACEOF
1894
1895
1896 ## ----------- ##
1897 ## Core tests. ##
1898 ## ----------- ##
1899
1900 _ACEOF
1901
1902
1903 # Keep a trace of the command line.
1904 # Strip out --no-create and --no-recursion so they do not pile up.
1905 # Strip out --silent because we don't want to record it for future runs.
1906 # Also quote any args containing shell meta-characters.
1907 # Make two passes to allow for proper duplicate-argument suppression.
1908 ac_configure_args=
1909 ac_configure_args0=
1910 ac_configure_args1=
1911 ac_must_keep_next=false
1912 for ac_pass in 1 2
1913 do
1914   for ac_arg
1915   do
1916     case $ac_arg in
1917     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1918     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1919     | -silent | --silent | --silen | --sile | --sil)
1920       continue ;;
1921     *\'*)
1922       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1923     esac
1924     case $ac_pass in
1925     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1926     2)
1927       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1928       if test $ac_must_keep_next = true; then
1929         ac_must_keep_next=false # Got value, back to normal.
1930       else
1931         case $ac_arg in
1932           *=* | --config-cache | -C | -disable-* | --disable-* \
1933           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1934           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1935           | -with-* | --with-* | -without-* | --without-* | --x)
1936             case "$ac_configure_args0 " in
1937               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1938             esac
1939             ;;
1940           -* ) ac_must_keep_next=true ;;
1941         esac
1942       fi
1943       ac_configure_args="$ac_configure_args '$ac_arg'"
1944       ;;
1945     esac
1946   done
1947 done
1948 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1949 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1950
1951 # When interrupted or exit'd, cleanup temporary files, and complete
1952 # config.log.  We remove comments because anyway the quotes in there
1953 # would cause problems or look ugly.
1954 # WARNING: Use '\'' to represent an apostrophe within the trap.
1955 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1956 trap 'exit_status=$?
1957   # Save into config.log some information that might help in debugging.
1958   {
1959     echo
1960
1961     cat <<\_ASBOX
1962 ## ---------------- ##
1963 ## Cache variables. ##
1964 ## ---------------- ##
1965 _ASBOX
1966     echo
1967     # The following way of writing the cache mishandles newlines in values,
1968 (
1969   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1970     eval ac_val=\$$ac_var
1971     case $ac_val in #(
1972     *${as_nl}*)
1973       case $ac_var in #(
1974       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1975 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1976       esac
1977       case $ac_var in #(
1978       _ | IFS | as_nl) ;; #(
1979       *) $as_unset $ac_var ;;
1980       esac ;;
1981     esac
1982   done
1983   (set) 2>&1 |
1984     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1985     *${as_nl}ac_space=\ *)
1986       sed -n \
1987         "s/'\''/'\''\\\\'\'''\''/g;
1988           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1989       ;; #(
1990     *)
1991       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1992       ;;
1993     esac |
1994     sort
1995 )
1996     echo
1997
1998     cat <<\_ASBOX
1999 ## ----------------- ##
2000 ## Output variables. ##
2001 ## ----------------- ##
2002 _ASBOX
2003     echo
2004     for ac_var in $ac_subst_vars
2005     do
2006       eval ac_val=\$$ac_var
2007       case $ac_val in
2008       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2009       esac
2010       echo "$ac_var='\''$ac_val'\''"
2011     done | sort
2012     echo
2013
2014     if test -n "$ac_subst_files"; then
2015       cat <<\_ASBOX
2016 ## ------------------- ##
2017 ## File substitutions. ##
2018 ## ------------------- ##
2019 _ASBOX
2020       echo
2021       for ac_var in $ac_subst_files
2022       do
2023         eval ac_val=\$$ac_var
2024         case $ac_val in
2025         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2026         esac
2027         echo "$ac_var='\''$ac_val'\''"
2028       done | sort
2029       echo
2030     fi
2031
2032     if test -s confdefs.h; then
2033       cat <<\_ASBOX
2034 ## ----------- ##
2035 ## confdefs.h. ##
2036 ## ----------- ##
2037 _ASBOX
2038       echo
2039       cat confdefs.h
2040       echo
2041     fi
2042     test "$ac_signal" != 0 &&
2043       echo "$as_me: caught signal $ac_signal"
2044     echo "$as_me: exit $exit_status"
2045   } >&5
2046   rm -f core *.core core.conftest.* &&
2047     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2048     exit $exit_status
2049 ' 0
2050 for ac_signal in 1 2 13 15; do
2051   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
2052 done
2053 ac_signal=0
2054
2055 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2056 rm -f -r conftest* confdefs.h
2057
2058 # Predefined preprocessor variables.
2059
2060 cat >>confdefs.h <<_ACEOF
2061 #define PACKAGE_NAME "$PACKAGE_NAME"
2062 _ACEOF
2063
2064
2065 cat >>confdefs.h <<_ACEOF
2066 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2067 _ACEOF
2068
2069
2070 cat >>confdefs.h <<_ACEOF
2071 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2072 _ACEOF
2073
2074
2075 cat >>confdefs.h <<_ACEOF
2076 #define PACKAGE_STRING "$PACKAGE_STRING"
2077 _ACEOF
2078
2079
2080 cat >>confdefs.h <<_ACEOF
2081 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2082 _ACEOF
2083
2084
2085 # Let the site file select an alternate cache file if it wants to.
2086 # Prefer explicitly selected file to automatically selected ones.
2087 if test -n "$CONFIG_SITE"; then
2088   set x "$CONFIG_SITE"
2089 elif test "x$prefix" != xNONE; then
2090   set x "$prefix/share/config.site" "$prefix/etc/config.site"
2091 else
2092   set x "$ac_default_prefix/share/config.site" \
2093         "$ac_default_prefix/etc/config.site"
2094 fi
2095 shift
2096 for ac_site_file
2097 do
2098   if test -r "$ac_site_file"; then
2099     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2100 echo "$as_me: loading site script $ac_site_file" >&6;}
2101     sed 's/^/| /' "$ac_site_file" >&5
2102     . "$ac_site_file"
2103   fi
2104 done
2105
2106 if test -r "$cache_file"; then
2107   # Some versions of bash will fail to source /dev/null (special
2108   # files actually), so we avoid doing that.
2109   if test -f "$cache_file"; then
2110     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
2111 echo "$as_me: loading cache $cache_file" >&6;}
2112     case $cache_file in
2113       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2114       *)                      . "./$cache_file";;
2115     esac
2116   fi
2117 else
2118   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
2119 echo "$as_me: creating cache $cache_file" >&6;}
2120   >$cache_file
2121 fi
2122
2123 # Check that the precious variables saved in the cache have kept the same
2124 # value.
2125 ac_cache_corrupted=false
2126 for ac_var in $ac_precious_vars; do
2127   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2128   eval ac_new_set=\$ac_env_${ac_var}_set
2129   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2130   eval ac_new_val=\$ac_env_${ac_var}_value
2131   case $ac_old_set,$ac_new_set in
2132     set,)
2133       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2134 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2135       ac_cache_corrupted=: ;;
2136     ,set)
2137       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2138 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2139       ac_cache_corrupted=: ;;
2140     ,);;
2141     *)
2142       if test "x$ac_old_val" != "x$ac_new_val"; then
2143         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2144 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2145         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
2146 echo "$as_me:   former value:  $ac_old_val" >&2;}
2147         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
2148 echo "$as_me:   current value: $ac_new_val" >&2;}
2149         ac_cache_corrupted=:
2150       fi;;
2151   esac
2152   # Pass precious variables to config.status.
2153   if test "$ac_new_set" = set; then
2154     case $ac_new_val in
2155     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2156     *) ac_arg=$ac_var=$ac_new_val ;;
2157     esac
2158     case " $ac_configure_args " in
2159       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2160       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2161     esac
2162   fi
2163 done
2164 if $ac_cache_corrupted; then
2165   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2166 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2167   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2168 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2169    { (exit 1); exit 1; }; }
2170 fi
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188 ac_ext=c
2189 ac_cpp='$CPP $CPPFLAGS'
2190 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2191 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2192 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2193
2194
2195 BUILD_DIR=`pwd`
2196 cd ..
2197 TOP_DIR=`pwd`
2198 cd ${BUILD_DIR}
2199
2200
2201 ac_aux_dir=
2202 for ac_dir in ${BUILD_DIR}/autoconf "$srcdir"/${BUILD_DIR}/autoconf; do
2203   if test -f "$ac_dir/install-sh"; then
2204     ac_aux_dir=$ac_dir
2205     ac_install_sh="$ac_aux_dir/install-sh -c"
2206     break
2207   elif test -f "$ac_dir/install.sh"; then
2208     ac_aux_dir=$ac_dir
2209     ac_install_sh="$ac_aux_dir/install.sh -c"
2210     break
2211   elif test -f "$ac_dir/shtool"; then
2212     ac_aux_dir=$ac_dir
2213     ac_install_sh="$ac_aux_dir/shtool install -c"
2214     break
2215   fi
2216 done
2217 if test -z "$ac_aux_dir"; then
2218   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" >&5
2219 echo "$as_me: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" >&2;}
2220    { (exit 1); exit 1; }; }
2221 fi
2222
2223 # These three variables are undocumented and unsupported,
2224 # and are intended to be withdrawn in a future Autoconf release.
2225 # They can cause serious problems if a builder's source tree is in a directory
2226 # whose full name contains unusual characters.
2227 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2228 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2229 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2230
2231
2232 ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
2233
2234
2235 WIN32BUILDDIR=${BUILD_DIR}/src/win32
2236 WIN32MAINDIR=${BUILD_DIR}
2237 WIN32TOPDIR=${TOP_DIR}
2238
2239
2240
2241
2242
2243
2244
2245 for ac_prog in true
2246 do
2247   # Extract the first word of "$ac_prog", so it can be a program name with args.
2248 set dummy $ac_prog; ac_word=$2
2249 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2250 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2251 if test "${ac_cv_path_TRUEPRG+set}" = set; then
2252   echo $ECHO_N "(cached) $ECHO_C" >&6
2253 else
2254   case $TRUEPRG in
2255   [\\/]* | ?:[\\/]*)
2256   ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
2257   ;;
2258   *)
2259   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2260 for as_dir in $PATH
2261 do
2262   IFS=$as_save_IFS
2263   test -z "$as_dir" && as_dir=.
2264   for ac_exec_ext in '' $ac_executable_extensions; do
2265   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2266     ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
2267     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2268     break 2
2269   fi
2270 done
2271 done
2272 IFS=$as_save_IFS
2273
2274   ;;
2275 esac
2276 fi
2277 TRUEPRG=$ac_cv_path_TRUEPRG
2278 if test -n "$TRUEPRG"; then
2279   { echo "$as_me:$LINENO: result: $TRUEPRG" >&5
2280 echo "${ECHO_T}$TRUEPRG" >&6; }
2281 else
2282   { echo "$as_me:$LINENO: result: no" >&5
2283 echo "${ECHO_T}no" >&6; }
2284 fi
2285
2286
2287   test -n "$TRUEPRG" && break
2288 done
2289 test -n "$TRUEPRG" || TRUEPRG=":"
2290
2291 for ac_prog in false
2292 do
2293   # Extract the first word of "$ac_prog", so it can be a program name with args.
2294 set dummy $ac_prog; ac_word=$2
2295 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2296 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2297 if test "${ac_cv_path_FALSEPRG+set}" = set; then
2298   echo $ECHO_N "(cached) $ECHO_C" >&6
2299 else
2300   case $FALSEPRG in
2301   [\\/]* | ?:[\\/]*)
2302   ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
2303   ;;
2304   *)
2305   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2306 for as_dir in $PATH
2307 do
2308   IFS=$as_save_IFS
2309   test -z "$as_dir" && as_dir=.
2310   for ac_exec_ext in '' $ac_executable_extensions; do
2311   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2312     ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
2313     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2314     break 2
2315   fi
2316 done
2317 done
2318 IFS=$as_save_IFS
2319
2320   ;;
2321 esac
2322 fi
2323 FALSEPRG=$ac_cv_path_FALSEPRG
2324 if test -n "$FALSEPRG"; then
2325   { echo "$as_me:$LINENO: result: $FALSEPRG" >&5
2326 echo "${ECHO_T}$FALSEPRG" >&6; }
2327 else
2328   { echo "$as_me:$LINENO: result: no" >&5
2329 echo "${ECHO_T}no" >&6; }
2330 fi
2331
2332
2333   test -n "$FALSEPRG" && break
2334 done
2335 test -n "$FALSEPRG" || FALSEPRG=":"
2336
2337
2338
2339 post_host=
2340 if test "x$BACULA" != x; then
2341    post_host=`echo -${BACULA} | tr 'A-Z ' 'a-z-'`
2342 fi
2343 BACULA=${BACULA:-Bacula}
2344 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2345 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2346 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2347 echo "configuring for ${BACULA} $VERSION ($DATE)"
2348
2349
2350 ac_ext=c
2351 ac_cpp='$CPP $CPPFLAGS'
2352 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2353 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2354 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2355 if test -n "$ac_tool_prefix"; then
2356   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2357 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2358 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2359 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2360 if test "${ac_cv_prog_CC+set}" = set; then
2361   echo $ECHO_N "(cached) $ECHO_C" >&6
2362 else
2363   if test -n "$CC"; then
2364   ac_cv_prog_CC="$CC" # Let the user override the test.
2365 else
2366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2367 for as_dir in $PATH
2368 do
2369   IFS=$as_save_IFS
2370   test -z "$as_dir" && as_dir=.
2371   for ac_exec_ext in '' $ac_executable_extensions; do
2372   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2373     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2374     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2375     break 2
2376   fi
2377 done
2378 done
2379 IFS=$as_save_IFS
2380
2381 fi
2382 fi
2383 CC=$ac_cv_prog_CC
2384 if test -n "$CC"; then
2385   { echo "$as_me:$LINENO: result: $CC" >&5
2386 echo "${ECHO_T}$CC" >&6; }
2387 else
2388   { echo "$as_me:$LINENO: result: no" >&5
2389 echo "${ECHO_T}no" >&6; }
2390 fi
2391
2392
2393 fi
2394 if test -z "$ac_cv_prog_CC"; then
2395   ac_ct_CC=$CC
2396   # Extract the first word of "gcc", so it can be a program name with args.
2397 set dummy gcc; ac_word=$2
2398 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2399 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2400 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2401   echo $ECHO_N "(cached) $ECHO_C" >&6
2402 else
2403   if test -n "$ac_ct_CC"; then
2404   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2405 else
2406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2407 for as_dir in $PATH
2408 do
2409   IFS=$as_save_IFS
2410   test -z "$as_dir" && as_dir=.
2411   for ac_exec_ext in '' $ac_executable_extensions; do
2412   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2413     ac_cv_prog_ac_ct_CC="gcc"
2414     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2415     break 2
2416   fi
2417 done
2418 done
2419 IFS=$as_save_IFS
2420
2421 fi
2422 fi
2423 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2424 if test -n "$ac_ct_CC"; then
2425   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2426 echo "${ECHO_T}$ac_ct_CC" >&6; }
2427 else
2428   { echo "$as_me:$LINENO: result: no" >&5
2429 echo "${ECHO_T}no" >&6; }
2430 fi
2431
2432   if test "x$ac_ct_CC" = x; then
2433     CC=""
2434   else
2435     case $cross_compiling:$ac_tool_warned in
2436 yes:)
2437 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2438 whose name does not start with the host triplet.  If you think this
2439 configuration is useful to you, please write to autoconf@gnu.org." >&5
2440 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2441 whose name does not start with the host triplet.  If you think this
2442 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2443 ac_tool_warned=yes ;;
2444 esac
2445     CC=$ac_ct_CC
2446   fi
2447 else
2448   CC="$ac_cv_prog_CC"
2449 fi
2450
2451 if test -z "$CC"; then
2452           if test -n "$ac_tool_prefix"; then
2453     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2454 set dummy ${ac_tool_prefix}cc; ac_word=$2
2455 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2456 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2457 if test "${ac_cv_prog_CC+set}" = set; then
2458   echo $ECHO_N "(cached) $ECHO_C" >&6
2459 else
2460   if test -n "$CC"; then
2461   ac_cv_prog_CC="$CC" # Let the user override the test.
2462 else
2463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2464 for as_dir in $PATH
2465 do
2466   IFS=$as_save_IFS
2467   test -z "$as_dir" && as_dir=.
2468   for ac_exec_ext in '' $ac_executable_extensions; do
2469   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2470     ac_cv_prog_CC="${ac_tool_prefix}cc"
2471     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2472     break 2
2473   fi
2474 done
2475 done
2476 IFS=$as_save_IFS
2477
2478 fi
2479 fi
2480 CC=$ac_cv_prog_CC
2481 if test -n "$CC"; then
2482   { echo "$as_me:$LINENO: result: $CC" >&5
2483 echo "${ECHO_T}$CC" >&6; }
2484 else
2485   { echo "$as_me:$LINENO: result: no" >&5
2486 echo "${ECHO_T}no" >&6; }
2487 fi
2488
2489
2490   fi
2491 fi
2492 if test -z "$CC"; then
2493   # Extract the first word of "cc", so it can be a program name with args.
2494 set dummy cc; ac_word=$2
2495 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2496 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2497 if test "${ac_cv_prog_CC+set}" = set; then
2498   echo $ECHO_N "(cached) $ECHO_C" >&6
2499 else
2500   if test -n "$CC"; then
2501   ac_cv_prog_CC="$CC" # Let the user override the test.
2502 else
2503   ac_prog_rejected=no
2504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2505 for as_dir in $PATH
2506 do
2507   IFS=$as_save_IFS
2508   test -z "$as_dir" && as_dir=.
2509   for ac_exec_ext in '' $ac_executable_extensions; do
2510   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2511     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2512        ac_prog_rejected=yes
2513        continue
2514      fi
2515     ac_cv_prog_CC="cc"
2516     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2517     break 2
2518   fi
2519 done
2520 done
2521 IFS=$as_save_IFS
2522
2523 if test $ac_prog_rejected = yes; then
2524   # We found a bogon in the path, so make sure we never use it.
2525   set dummy $ac_cv_prog_CC
2526   shift
2527   if test $# != 0; then
2528     # We chose a different compiler from the bogus one.
2529     # However, it has the same basename, so the bogon will be chosen
2530     # first if we set CC to just the basename; use the full file name.
2531     shift
2532     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2533   fi
2534 fi
2535 fi
2536 fi
2537 CC=$ac_cv_prog_CC
2538 if test -n "$CC"; then
2539   { echo "$as_me:$LINENO: result: $CC" >&5
2540 echo "${ECHO_T}$CC" >&6; }
2541 else
2542   { echo "$as_me:$LINENO: result: no" >&5
2543 echo "${ECHO_T}no" >&6; }
2544 fi
2545
2546
2547 fi
2548 if test -z "$CC"; then
2549   if test -n "$ac_tool_prefix"; then
2550   for ac_prog in cl.exe
2551   do
2552     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2553 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2554 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2555 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2556 if test "${ac_cv_prog_CC+set}" = set; then
2557   echo $ECHO_N "(cached) $ECHO_C" >&6
2558 else
2559   if test -n "$CC"; then
2560   ac_cv_prog_CC="$CC" # Let the user override the test.
2561 else
2562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2563 for as_dir in $PATH
2564 do
2565   IFS=$as_save_IFS
2566   test -z "$as_dir" && as_dir=.
2567   for ac_exec_ext in '' $ac_executable_extensions; do
2568   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2569     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2570     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2571     break 2
2572   fi
2573 done
2574 done
2575 IFS=$as_save_IFS
2576
2577 fi
2578 fi
2579 CC=$ac_cv_prog_CC
2580 if test -n "$CC"; then
2581   { echo "$as_me:$LINENO: result: $CC" >&5
2582 echo "${ECHO_T}$CC" >&6; }
2583 else
2584   { echo "$as_me:$LINENO: result: no" >&5
2585 echo "${ECHO_T}no" >&6; }
2586 fi
2587
2588
2589     test -n "$CC" && break
2590   done
2591 fi
2592 if test -z "$CC"; then
2593   ac_ct_CC=$CC
2594   for ac_prog in cl.exe
2595 do
2596   # Extract the first word of "$ac_prog", so it can be a program name with args.
2597 set dummy $ac_prog; ac_word=$2
2598 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2599 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2600 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2601   echo $ECHO_N "(cached) $ECHO_C" >&6
2602 else
2603   if test -n "$ac_ct_CC"; then
2604   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2605 else
2606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2607 for as_dir in $PATH
2608 do
2609   IFS=$as_save_IFS
2610   test -z "$as_dir" && as_dir=.
2611   for ac_exec_ext in '' $ac_executable_extensions; do
2612   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2613     ac_cv_prog_ac_ct_CC="$ac_prog"
2614     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2615     break 2
2616   fi
2617 done
2618 done
2619 IFS=$as_save_IFS
2620
2621 fi
2622 fi
2623 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2624 if test -n "$ac_ct_CC"; then
2625   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2626 echo "${ECHO_T}$ac_ct_CC" >&6; }
2627 else
2628   { echo "$as_me:$LINENO: result: no" >&5
2629 echo "${ECHO_T}no" >&6; }
2630 fi
2631
2632
2633   test -n "$ac_ct_CC" && break
2634 done
2635
2636   if test "x$ac_ct_CC" = x; then
2637     CC=""
2638   else
2639     case $cross_compiling:$ac_tool_warned in
2640 yes:)
2641 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2642 whose name does not start with the host triplet.  If you think this
2643 configuration is useful to you, please write to autoconf@gnu.org." >&5
2644 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2645 whose name does not start with the host triplet.  If you think this
2646 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2647 ac_tool_warned=yes ;;
2648 esac
2649     CC=$ac_ct_CC
2650   fi
2651 fi
2652
2653 fi
2654
2655
2656 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2657 See \`config.log' for more details." >&5
2658 echo "$as_me: error: no acceptable C compiler found in \$PATH
2659 See \`config.log' for more details." >&2;}
2660    { (exit 1); exit 1; }; }
2661
2662 # Provide some information about the compiler.
2663 echo "$as_me:$LINENO: checking for C compiler version" >&5
2664 ac_compiler=`set X $ac_compile; echo $2`
2665 { (ac_try="$ac_compiler --version >&5"
2666 case "(($ac_try" in
2667   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2668   *) ac_try_echo=$ac_try;;
2669 esac
2670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2671   (eval "$ac_compiler --version >&5") 2>&5
2672   ac_status=$?
2673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2674   (exit $ac_status); }
2675 { (ac_try="$ac_compiler -v >&5"
2676 case "(($ac_try" in
2677   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2678   *) ac_try_echo=$ac_try;;
2679 esac
2680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2681   (eval "$ac_compiler -v >&5") 2>&5
2682   ac_status=$?
2683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2684   (exit $ac_status); }
2685 { (ac_try="$ac_compiler -V >&5"
2686 case "(($ac_try" in
2687   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2688   *) ac_try_echo=$ac_try;;
2689 esac
2690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2691   (eval "$ac_compiler -V >&5") 2>&5
2692   ac_status=$?
2693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2694   (exit $ac_status); }
2695
2696 cat >conftest.$ac_ext <<_ACEOF
2697 /* confdefs.h.  */
2698 _ACEOF
2699 cat confdefs.h >>conftest.$ac_ext
2700 cat >>conftest.$ac_ext <<_ACEOF
2701 /* end confdefs.h.  */
2702
2703 int
2704 main ()
2705 {
2706
2707   ;
2708   return 0;
2709 }
2710 _ACEOF
2711 ac_clean_files_save=$ac_clean_files
2712 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2713 # Try to create an executable without -o first, disregard a.out.
2714 # It will help us diagnose broken compilers, and finding out an intuition
2715 # of exeext.
2716 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2717 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2718 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2719 #
2720 # List of possible output files, starting from the most likely.
2721 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2722 # only as a last resort.  b.out is created by i960 compilers.
2723 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2724 #
2725 # The IRIX 6 linker writes into existing files which may not be
2726 # executable, retaining their permissions.  Remove them first so a
2727 # subsequent execution test works.
2728 ac_rmfiles=
2729 for ac_file in $ac_files
2730 do
2731   case $ac_file in
2732     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2733     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2734   esac
2735 done
2736 rm -f $ac_rmfiles
2737
2738 if { (ac_try="$ac_link_default"
2739 case "(($ac_try" in
2740   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2741   *) ac_try_echo=$ac_try;;
2742 esac
2743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2744   (eval "$ac_link_default") 2>&5
2745   ac_status=$?
2746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2747   (exit $ac_status); }; then
2748   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2749 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2750 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2751 # so that the user can short-circuit this test for compilers unknown to
2752 # Autoconf.
2753 for ac_file in $ac_files ''
2754 do
2755   test -f "$ac_file" || continue
2756   case $ac_file in
2757     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2758         ;;
2759     [ab].out )
2760         # We found the default executable, but exeext='' is most
2761         # certainly right.
2762         break;;
2763     *.* )
2764         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2765         then :; else
2766            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2767         fi
2768         # We set ac_cv_exeext here because the later test for it is not
2769         # safe: cross compilers may not add the suffix if given an `-o'
2770         # argument, so we may need to know it at that point already.
2771         # Even if this section looks crufty: it has the advantage of
2772         # actually working.
2773         break;;
2774     * )
2775         break;;
2776   esac
2777 done
2778 test "$ac_cv_exeext" = no && ac_cv_exeext=
2779
2780 else
2781   ac_file=''
2782 fi
2783
2784 { echo "$as_me:$LINENO: result: $ac_file" >&5
2785 echo "${ECHO_T}$ac_file" >&6; }
2786 if test -z "$ac_file"; then
2787   echo "$as_me: failed program was:" >&5
2788 sed 's/^/| /' conftest.$ac_ext >&5
2789
2790 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2791 See \`config.log' for more details." >&5
2792 echo "$as_me: error: C compiler cannot create executables
2793 See \`config.log' for more details." >&2;}
2794    { (exit 77); exit 77; }; }
2795 fi
2796
2797 ac_exeext=$ac_cv_exeext
2798
2799 # Check that the compiler produces executables we can run.  If not, either
2800 # the compiler is broken, or we cross compile.
2801 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2802 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2803 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2804 # If not cross compiling, check that we can run a simple program.
2805 if test "$cross_compiling" != yes; then
2806   if { ac_try='./$ac_file'
2807   { (case "(($ac_try" in
2808   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2809   *) ac_try_echo=$ac_try;;
2810 esac
2811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2812   (eval "$ac_try") 2>&5
2813   ac_status=$?
2814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2815   (exit $ac_status); }; }; then
2816     cross_compiling=no
2817   else
2818     if test "$cross_compiling" = maybe; then
2819         cross_compiling=yes
2820     else
2821         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2822 If you meant to cross compile, use \`--host'.
2823 See \`config.log' for more details." >&5
2824 echo "$as_me: error: cannot run C compiled programs.
2825 If you meant to cross compile, use \`--host'.
2826 See \`config.log' for more details." >&2;}
2827    { (exit 1); exit 1; }; }
2828     fi
2829   fi
2830 fi
2831 { echo "$as_me:$LINENO: result: yes" >&5
2832 echo "${ECHO_T}yes" >&6; }
2833
2834 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2835 ac_clean_files=$ac_clean_files_save
2836 # Check that the compiler produces executables we can run.  If not, either
2837 # the compiler is broken, or we cross compile.
2838 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2839 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2840 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2841 echo "${ECHO_T}$cross_compiling" >&6; }
2842
2843 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2844 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2845 if { (ac_try="$ac_link"
2846 case "(($ac_try" in
2847   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2848   *) ac_try_echo=$ac_try;;
2849 esac
2850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2851   (eval "$ac_link") 2>&5
2852   ac_status=$?
2853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2854   (exit $ac_status); }; then
2855   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2856 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2857 # work properly (i.e., refer to `conftest.exe'), while it won't with
2858 # `rm'.
2859 for ac_file in conftest.exe conftest conftest.*; do
2860   test -f "$ac_file" || continue
2861   case $ac_file in
2862     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2863     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2864           break;;
2865     * ) break;;
2866   esac
2867 done
2868 else
2869   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2870 See \`config.log' for more details." >&5
2871 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2872 See \`config.log' for more details." >&2;}
2873    { (exit 1); exit 1; }; }
2874 fi
2875
2876 rm -f conftest$ac_cv_exeext
2877 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2878 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2879
2880 rm -f conftest.$ac_ext
2881 EXEEXT=$ac_cv_exeext
2882 ac_exeext=$EXEEXT
2883 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2884 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2885 if test "${ac_cv_objext+set}" = set; then
2886   echo $ECHO_N "(cached) $ECHO_C" >&6
2887 else
2888   cat >conftest.$ac_ext <<_ACEOF
2889 /* confdefs.h.  */
2890 _ACEOF
2891 cat confdefs.h >>conftest.$ac_ext
2892 cat >>conftest.$ac_ext <<_ACEOF
2893 /* end confdefs.h.  */
2894
2895 int
2896 main ()
2897 {
2898
2899   ;
2900   return 0;
2901 }
2902 _ACEOF
2903 rm -f conftest.o conftest.obj
2904 if { (ac_try="$ac_compile"
2905 case "(($ac_try" in
2906   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2907   *) ac_try_echo=$ac_try;;
2908 esac
2909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2910   (eval "$ac_compile") 2>&5
2911   ac_status=$?
2912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2913   (exit $ac_status); }; then
2914   for ac_file in conftest.o conftest.obj conftest.*; do
2915   test -f "$ac_file" || continue;
2916   case $ac_file in
2917     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2918     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2919        break;;
2920   esac
2921 done
2922 else
2923   echo "$as_me: failed program was:" >&5
2924 sed 's/^/| /' conftest.$ac_ext >&5
2925
2926 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2927 See \`config.log' for more details." >&5
2928 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2929 See \`config.log' for more details." >&2;}
2930    { (exit 1); exit 1; }; }
2931 fi
2932
2933 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2934 fi
2935 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2936 echo "${ECHO_T}$ac_cv_objext" >&6; }
2937 OBJEXT=$ac_cv_objext
2938 ac_objext=$OBJEXT
2939 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2940 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2941 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2942   echo $ECHO_N "(cached) $ECHO_C" >&6
2943 else
2944   cat >conftest.$ac_ext <<_ACEOF
2945 /* confdefs.h.  */
2946 _ACEOF
2947 cat confdefs.h >>conftest.$ac_ext
2948 cat >>conftest.$ac_ext <<_ACEOF
2949 /* end confdefs.h.  */
2950
2951 int
2952 main ()
2953 {
2954 #ifndef __GNUC__
2955        choke me
2956 #endif
2957
2958   ;
2959   return 0;
2960 }
2961 _ACEOF
2962 rm -f conftest.$ac_objext
2963 if { (ac_try="$ac_compile"
2964 case "(($ac_try" in
2965   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2966   *) ac_try_echo=$ac_try;;
2967 esac
2968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2969   (eval "$ac_compile") 2>conftest.er1
2970   ac_status=$?
2971   grep -v '^ *+' conftest.er1 >conftest.err
2972   rm -f conftest.er1
2973   cat conftest.err >&5
2974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2975   (exit $ac_status); } && {
2976          test -z "$ac_c_werror_flag" ||
2977          test ! -s conftest.err
2978        } && test -s conftest.$ac_objext; then
2979   ac_compiler_gnu=yes
2980 else
2981   echo "$as_me: failed program was:" >&5
2982 sed 's/^/| /' conftest.$ac_ext >&5
2983
2984         ac_compiler_gnu=no
2985 fi
2986
2987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2988 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2989
2990 fi
2991 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2992 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2993 GCC=`test $ac_compiler_gnu = yes && echo yes`
2994 ac_test_CFLAGS=${CFLAGS+set}
2995 ac_save_CFLAGS=$CFLAGS
2996 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2997 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2998 if test "${ac_cv_prog_cc_g+set}" = set; then
2999   echo $ECHO_N "(cached) $ECHO_C" >&6
3000 else
3001   ac_save_c_werror_flag=$ac_c_werror_flag
3002    ac_c_werror_flag=yes
3003    ac_cv_prog_cc_g=no
3004    CFLAGS="-g"
3005    cat >conftest.$ac_ext <<_ACEOF
3006 /* confdefs.h.  */
3007 _ACEOF
3008 cat confdefs.h >>conftest.$ac_ext
3009 cat >>conftest.$ac_ext <<_ACEOF
3010 /* end confdefs.h.  */
3011
3012 int
3013 main ()
3014 {
3015
3016   ;
3017   return 0;
3018 }
3019 _ACEOF
3020 rm -f conftest.$ac_objext
3021 if { (ac_try="$ac_compile"
3022 case "(($ac_try" in
3023   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3024   *) ac_try_echo=$ac_try;;
3025 esac
3026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3027   (eval "$ac_compile") 2>conftest.er1
3028   ac_status=$?
3029   grep -v '^ *+' conftest.er1 >conftest.err
3030   rm -f conftest.er1
3031   cat conftest.err >&5
3032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3033   (exit $ac_status); } && {
3034          test -z "$ac_c_werror_flag" ||
3035          test ! -s conftest.err
3036        } && test -s conftest.$ac_objext; then
3037   ac_cv_prog_cc_g=yes
3038 else
3039   echo "$as_me: failed program was:" >&5
3040 sed 's/^/| /' conftest.$ac_ext >&5
3041
3042         CFLAGS=""
3043       cat >conftest.$ac_ext <<_ACEOF
3044 /* confdefs.h.  */
3045 _ACEOF
3046 cat confdefs.h >>conftest.$ac_ext
3047 cat >>conftest.$ac_ext <<_ACEOF
3048 /* end confdefs.h.  */
3049
3050 int
3051 main ()
3052 {
3053
3054   ;
3055   return 0;
3056 }
3057 _ACEOF
3058 rm -f conftest.$ac_objext
3059 if { (ac_try="$ac_compile"
3060 case "(($ac_try" in
3061   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3062   *) ac_try_echo=$ac_try;;
3063 esac
3064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3065   (eval "$ac_compile") 2>conftest.er1
3066   ac_status=$?
3067   grep -v '^ *+' conftest.er1 >conftest.err
3068   rm -f conftest.er1
3069   cat conftest.err >&5
3070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3071   (exit $ac_status); } && {
3072          test -z "$ac_c_werror_flag" ||
3073          test ! -s conftest.err
3074        } && test -s conftest.$ac_objext; then
3075   :
3076 else
3077   echo "$as_me: failed program was:" >&5
3078 sed 's/^/| /' conftest.$ac_ext >&5
3079
3080         ac_c_werror_flag=$ac_save_c_werror_flag
3081          CFLAGS="-g"
3082          cat >conftest.$ac_ext <<_ACEOF
3083 /* confdefs.h.  */
3084 _ACEOF
3085 cat confdefs.h >>conftest.$ac_ext
3086 cat >>conftest.$ac_ext <<_ACEOF
3087 /* end confdefs.h.  */
3088
3089 int
3090 main ()
3091 {
3092
3093   ;
3094   return 0;
3095 }
3096 _ACEOF
3097 rm -f conftest.$ac_objext
3098 if { (ac_try="$ac_compile"
3099 case "(($ac_try" in
3100   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3101   *) ac_try_echo=$ac_try;;
3102 esac
3103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3104   (eval "$ac_compile") 2>conftest.er1
3105   ac_status=$?
3106   grep -v '^ *+' conftest.er1 >conftest.err
3107   rm -f conftest.er1
3108   cat conftest.err >&5
3109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3110   (exit $ac_status); } && {
3111          test -z "$ac_c_werror_flag" ||
3112          test ! -s conftest.err
3113        } && test -s conftest.$ac_objext; then
3114   ac_cv_prog_cc_g=yes
3115 else
3116   echo "$as_me: failed program was:" >&5
3117 sed 's/^/| /' conftest.$ac_ext >&5
3118
3119
3120 fi
3121
3122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3123 fi
3124
3125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3126 fi
3127
3128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3129    ac_c_werror_flag=$ac_save_c_werror_flag
3130 fi
3131 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3132 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3133 if test "$ac_test_CFLAGS" = set; then
3134   CFLAGS=$ac_save_CFLAGS
3135 elif test $ac_cv_prog_cc_g = yes; then
3136   if test "$GCC" = yes; then
3137     CFLAGS="-g -O2"
3138   else
3139     CFLAGS="-g"
3140   fi
3141 else
3142   if test "$GCC" = yes; then
3143     CFLAGS="-O2"
3144   else
3145     CFLAGS=
3146   fi
3147 fi
3148 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3149 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3150 if test "${ac_cv_prog_cc_c89+set}" = set; then
3151   echo $ECHO_N "(cached) $ECHO_C" >&6
3152 else
3153   ac_cv_prog_cc_c89=no
3154 ac_save_CC=$CC
3155 cat >conftest.$ac_ext <<_ACEOF
3156 /* confdefs.h.  */
3157 _ACEOF
3158 cat confdefs.h >>conftest.$ac_ext
3159 cat >>conftest.$ac_ext <<_ACEOF
3160 /* end confdefs.h.  */
3161 #include <stdarg.h>
3162 #include <stdio.h>
3163 #include <sys/types.h>
3164 #include <sys/stat.h>
3165 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3166 struct buf { int x; };
3167 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3168 static char *e (p, i)
3169      char **p;
3170      int i;
3171 {
3172   return p[i];
3173 }
3174 static char *f (char * (*g) (char **, int), char **p, ...)
3175 {
3176   char *s;
3177   va_list v;
3178   va_start (v,p);
3179   s = g (p, va_arg (v,int));
3180   va_end (v);
3181   return s;
3182 }
3183
3184 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3185    function prototypes and stuff, but not '\xHH' hex character constants.
3186    These don't provoke an error unfortunately, instead are silently treated
3187    as 'x'.  The following induces an error, until -std is added to get
3188    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3189    array size at least.  It's necessary to write '\x00'==0 to get something
3190    that's true only with -std.  */
3191 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3192
3193 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3194    inside strings and character constants.  */
3195 #define FOO(x) 'x'
3196 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3197
3198 int test (int i, double x);
3199 struct s1 {int (*f) (int a);};
3200 struct s2 {int (*f) (double a);};
3201 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3202 int argc;
3203 char **argv;
3204 int
3205 main ()
3206 {
3207 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3208   ;
3209   return 0;
3210 }
3211 _ACEOF
3212 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3213         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3214 do
3215   CC="$ac_save_CC $ac_arg"
3216   rm -f conftest.$ac_objext
3217 if { (ac_try="$ac_compile"
3218 case "(($ac_try" in
3219   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3220   *) ac_try_echo=$ac_try;;
3221 esac
3222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3223   (eval "$ac_compile") 2>conftest.er1
3224   ac_status=$?
3225   grep -v '^ *+' conftest.er1 >conftest.err
3226   rm -f conftest.er1
3227   cat conftest.err >&5
3228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3229   (exit $ac_status); } && {
3230          test -z "$ac_c_werror_flag" ||
3231          test ! -s conftest.err
3232        } && test -s conftest.$ac_objext; then
3233   ac_cv_prog_cc_c89=$ac_arg
3234 else
3235   echo "$as_me: failed program was:" >&5
3236 sed 's/^/| /' conftest.$ac_ext >&5
3237
3238
3239 fi
3240
3241 rm -f core conftest.err conftest.$ac_objext
3242   test "x$ac_cv_prog_cc_c89" != "xno" && break
3243 done
3244 rm -f conftest.$ac_ext
3245 CC=$ac_save_CC
3246
3247 fi
3248 # AC_CACHE_VAL
3249 case "x$ac_cv_prog_cc_c89" in
3250   x)
3251     { echo "$as_me:$LINENO: result: none needed" >&5
3252 echo "${ECHO_T}none needed" >&6; } ;;
3253   xno)
3254     { echo "$as_me:$LINENO: result: unsupported" >&5
3255 echo "${ECHO_T}unsupported" >&6; } ;;
3256   *)
3257     CC="$CC $ac_cv_prog_cc_c89"
3258     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3259 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3260 esac
3261
3262
3263 ac_ext=c
3264 ac_cpp='$CPP $CPPFLAGS'
3265 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3266 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3267 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3268
3269 ac_ext=cpp
3270 ac_cpp='$CXXCPP $CPPFLAGS'
3271 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3272 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3273 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3274 if test -z "$CXX"; then
3275   if test -n "$CCC"; then
3276     CXX=$CCC
3277   else
3278     if test -n "$ac_tool_prefix"; then
3279   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3280   do
3281     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3282 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3283 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3284 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3285 if test "${ac_cv_prog_CXX+set}" = set; then
3286   echo $ECHO_N "(cached) $ECHO_C" >&6
3287 else
3288   if test -n "$CXX"; then
3289   ac_cv_prog_CXX="$CXX" # Let the user override the test.
3290 else
3291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3292 for as_dir in $PATH
3293 do
3294   IFS=$as_save_IFS
3295   test -z "$as_dir" && as_dir=.
3296   for ac_exec_ext in '' $ac_executable_extensions; do
3297   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3298     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3299     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3300     break 2
3301   fi
3302 done
3303 done
3304 IFS=$as_save_IFS
3305
3306 fi
3307 fi
3308 CXX=$ac_cv_prog_CXX
3309 if test -n "$CXX"; then
3310   { echo "$as_me:$LINENO: result: $CXX" >&5
3311 echo "${ECHO_T}$CXX" >&6; }
3312 else
3313   { echo "$as_me:$LINENO: result: no" >&5
3314 echo "${ECHO_T}no" >&6; }
3315 fi
3316
3317
3318     test -n "$CXX" && break
3319   done
3320 fi
3321 if test -z "$CXX"; then
3322   ac_ct_CXX=$CXX
3323   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3324 do
3325   # Extract the first word of "$ac_prog", so it can be a program name with args.
3326 set dummy $ac_prog; ac_word=$2
3327 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3328 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3329 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3330   echo $ECHO_N "(cached) $ECHO_C" >&6
3331 else
3332   if test -n "$ac_ct_CXX"; then
3333   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3334 else
3335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3336 for as_dir in $PATH
3337 do
3338   IFS=$as_save_IFS
3339   test -z "$as_dir" && as_dir=.
3340   for ac_exec_ext in '' $ac_executable_extensions; do
3341   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3342     ac_cv_prog_ac_ct_CXX="$ac_prog"
3343     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3344     break 2
3345   fi
3346 done
3347 done
3348 IFS=$as_save_IFS
3349
3350 fi
3351 fi
3352 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3353 if test -n "$ac_ct_CXX"; then
3354   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3355 echo "${ECHO_T}$ac_ct_CXX" >&6; }
3356 else
3357   { echo "$as_me:$LINENO: result: no" >&5
3358 echo "${ECHO_T}no" >&6; }
3359 fi
3360
3361
3362   test -n "$ac_ct_CXX" && break
3363 done
3364
3365   if test "x$ac_ct_CXX" = x; then
3366     CXX="g++"
3367   else
3368     case $cross_compiling:$ac_tool_warned in
3369 yes:)
3370 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3371 whose name does not start with the host triplet.  If you think this
3372 configuration is useful to you, please write to autoconf@gnu.org." >&5
3373 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3374 whose name does not start with the host triplet.  If you think this
3375 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3376 ac_tool_warned=yes ;;
3377 esac
3378     CXX=$ac_ct_CXX
3379   fi
3380 fi
3381
3382   fi
3383 fi
3384 # Provide some information about the compiler.
3385 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3386 ac_compiler=`set X $ac_compile; echo $2`
3387 { (ac_try="$ac_compiler --version >&5"
3388 case "(($ac_try" in
3389   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3390   *) ac_try_echo=$ac_try;;
3391 esac
3392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3393   (eval "$ac_compiler --version >&5") 2>&5
3394   ac_status=$?
3395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3396   (exit $ac_status); }
3397 { (ac_try="$ac_compiler -v >&5"
3398 case "(($ac_try" in
3399   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3400   *) ac_try_echo=$ac_try;;
3401 esac
3402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3403   (eval "$ac_compiler -v >&5") 2>&5
3404   ac_status=$?
3405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3406   (exit $ac_status); }
3407 { (ac_try="$ac_compiler -V >&5"
3408 case "(($ac_try" in
3409   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3410   *) ac_try_echo=$ac_try;;
3411 esac
3412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3413   (eval "$ac_compiler -V >&5") 2>&5
3414   ac_status=$?
3415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3416   (exit $ac_status); }
3417
3418 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3419 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3420 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3421   echo $ECHO_N "(cached) $ECHO_C" >&6
3422 else
3423   cat >conftest.$ac_ext <<_ACEOF
3424 /* confdefs.h.  */
3425 _ACEOF
3426 cat confdefs.h >>conftest.$ac_ext
3427 cat >>conftest.$ac_ext <<_ACEOF
3428 /* end confdefs.h.  */
3429
3430 int
3431 main ()
3432 {
3433 #ifndef __GNUC__
3434        choke me
3435 #endif
3436
3437   ;
3438   return 0;
3439 }
3440 _ACEOF
3441 rm -f conftest.$ac_objext
3442 if { (ac_try="$ac_compile"
3443 case "(($ac_try" in
3444   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3445   *) ac_try_echo=$ac_try;;
3446 esac
3447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3448   (eval "$ac_compile") 2>conftest.er1
3449   ac_status=$?
3450   grep -v '^ *+' conftest.er1 >conftest.err
3451   rm -f conftest.er1
3452   cat conftest.err >&5
3453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3454   (exit $ac_status); } && {
3455          test -z "$ac_cxx_werror_flag" ||
3456          test ! -s conftest.err
3457        } && test -s conftest.$ac_objext; then
3458   ac_compiler_gnu=yes
3459 else
3460   echo "$as_me: failed program was:" >&5
3461 sed 's/^/| /' conftest.$ac_ext >&5
3462
3463         ac_compiler_gnu=no
3464 fi
3465
3466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3467 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3468
3469 fi
3470 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3471 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3472 GXX=`test $ac_compiler_gnu = yes && echo yes`
3473 ac_test_CXXFLAGS=${CXXFLAGS+set}
3474 ac_save_CXXFLAGS=$CXXFLAGS
3475 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3476 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3477 if test "${ac_cv_prog_cxx_g+set}" = set; then
3478   echo $ECHO_N "(cached) $ECHO_C" >&6
3479 else
3480   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3481    ac_cxx_werror_flag=yes
3482    ac_cv_prog_cxx_g=no
3483    CXXFLAGS="-g"
3484    cat >conftest.$ac_ext <<_ACEOF
3485 /* confdefs.h.  */
3486 _ACEOF
3487 cat confdefs.h >>conftest.$ac_ext
3488 cat >>conftest.$ac_ext <<_ACEOF
3489 /* end confdefs.h.  */
3490
3491 int
3492 main ()
3493 {
3494
3495   ;
3496   return 0;
3497 }
3498 _ACEOF
3499 rm -f conftest.$ac_objext
3500 if { (ac_try="$ac_compile"
3501 case "(($ac_try" in
3502   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3503   *) ac_try_echo=$ac_try;;
3504 esac
3505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3506   (eval "$ac_compile") 2>conftest.er1
3507   ac_status=$?
3508   grep -v '^ *+' conftest.er1 >conftest.err
3509   rm -f conftest.er1
3510   cat conftest.err >&5
3511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3512   (exit $ac_status); } && {
3513          test -z "$ac_cxx_werror_flag" ||
3514          test ! -s conftest.err
3515        } && test -s conftest.$ac_objext; then
3516   ac_cv_prog_cxx_g=yes
3517 else
3518   echo "$as_me: failed program was:" >&5
3519 sed 's/^/| /' conftest.$ac_ext >&5
3520
3521         CXXFLAGS=""
3522       cat >conftest.$ac_ext <<_ACEOF
3523 /* confdefs.h.  */
3524 _ACEOF
3525 cat confdefs.h >>conftest.$ac_ext
3526 cat >>conftest.$ac_ext <<_ACEOF
3527 /* end confdefs.h.  */
3528
3529 int
3530 main ()
3531 {
3532
3533   ;
3534   return 0;
3535 }
3536 _ACEOF
3537 rm -f conftest.$ac_objext
3538 if { (ac_try="$ac_compile"
3539 case "(($ac_try" in
3540   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3541   *) ac_try_echo=$ac_try;;
3542 esac
3543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3544   (eval "$ac_compile") 2>conftest.er1
3545   ac_status=$?
3546   grep -v '^ *+' conftest.er1 >conftest.err
3547   rm -f conftest.er1
3548   cat conftest.err >&5
3549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3550   (exit $ac_status); } && {
3551          test -z "$ac_cxx_werror_flag" ||
3552          test ! -s conftest.err
3553        } && test -s conftest.$ac_objext; then
3554   :
3555 else
3556   echo "$as_me: failed program was:" >&5
3557 sed 's/^/| /' conftest.$ac_ext >&5
3558
3559         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3560          CXXFLAGS="-g"
3561          cat >conftest.$ac_ext <<_ACEOF
3562 /* confdefs.h.  */
3563 _ACEOF
3564 cat confdefs.h >>conftest.$ac_ext
3565 cat >>conftest.$ac_ext <<_ACEOF
3566 /* end confdefs.h.  */
3567
3568 int
3569 main ()
3570 {
3571
3572   ;
3573   return 0;
3574 }
3575 _ACEOF
3576 rm -f conftest.$ac_objext
3577 if { (ac_try="$ac_compile"
3578 case "(($ac_try" in
3579   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3580   *) ac_try_echo=$ac_try;;
3581 esac
3582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3583   (eval "$ac_compile") 2>conftest.er1
3584   ac_status=$?
3585   grep -v '^ *+' conftest.er1 >conftest.err
3586   rm -f conftest.er1
3587   cat conftest.err >&5
3588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3589   (exit $ac_status); } && {
3590          test -z "$ac_cxx_werror_flag" ||
3591          test ! -s conftest.err
3592        } && test -s conftest.$ac_objext; then
3593   ac_cv_prog_cxx_g=yes
3594 else
3595   echo "$as_me: failed program was:" >&5
3596 sed 's/^/| /' conftest.$ac_ext >&5
3597
3598
3599 fi
3600
3601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3602 fi
3603
3604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3605 fi
3606
3607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3608    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3609 fi
3610 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3611 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3612 if test "$ac_test_CXXFLAGS" = set; then
3613   CXXFLAGS=$ac_save_CXXFLAGS
3614 elif test $ac_cv_prog_cxx_g = yes; then
3615   if test "$GXX" = yes; then
3616     CXXFLAGS="-g -O2"
3617   else
3618     CXXFLAGS="-g"
3619   fi
3620 else
3621   if test "$GXX" = yes; then
3622     CXXFLAGS="-O2"
3623   else
3624     CXXFLAGS=
3625   fi
3626 fi
3627 ac_ext=c
3628 ac_cpp='$CPP $CPPFLAGS'
3629 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3630 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3631 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3632
3633 if test "x$CC" != xcc; then
3634   { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
3635 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; }
3636 else
3637   { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
3638 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; }
3639 fi
3640 set dummy $CC; ac_cc=`echo $2 |
3641                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3642 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
3643   echo $ECHO_N "(cached) $ECHO_C" >&6
3644 else
3645   cat >conftest.$ac_ext <<_ACEOF
3646 /* confdefs.h.  */
3647 _ACEOF
3648 cat confdefs.h >>conftest.$ac_ext
3649 cat >>conftest.$ac_ext <<_ACEOF
3650 /* end confdefs.h.  */
3651
3652 int
3653 main ()
3654 {
3655
3656   ;
3657   return 0;
3658 }
3659 _ACEOF
3660 # Make sure it works both with $CC and with simple cc.
3661 # We do the test twice because some compilers refuse to overwrite an
3662 # existing .o file with -o, though they will create one.
3663 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3664 rm -f conftest2.*
3665 if { (case "(($ac_try" in
3666   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3667   *) ac_try_echo=$ac_try;;
3668 esac
3669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3670   (eval "$ac_try") 2>&5
3671   ac_status=$?
3672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3673   (exit $ac_status); } &&
3674    test -f conftest2.$ac_objext && { (case "(($ac_try" in
3675   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3676   *) ac_try_echo=$ac_try;;
3677 esac
3678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3679   (eval "$ac_try") 2>&5
3680   ac_status=$?
3681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3682   (exit $ac_status); };
3683 then
3684   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3685   if test "x$CC" != xcc; then
3686     # Test first that cc exists at all.
3687     if { ac_try='cc -c conftest.$ac_ext >&5'
3688   { (case "(($ac_try" in
3689   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3690   *) ac_try_echo=$ac_try;;
3691 esac
3692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3693   (eval "$ac_try") 2>&5
3694   ac_status=$?
3695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3696   (exit $ac_status); }; }; then
3697       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3698       rm -f conftest2.*
3699       if { (case "(($ac_try" in
3700   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3701   *) ac_try_echo=$ac_try;;
3702 esac
3703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3704   (eval "$ac_try") 2>&5
3705   ac_status=$?
3706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3707   (exit $ac_status); } &&
3708          test -f conftest2.$ac_objext && { (case "(($ac_try" in
3709   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3710   *) ac_try_echo=$ac_try;;
3711 esac
3712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3713   (eval "$ac_try") 2>&5
3714   ac_status=$?
3715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3716   (exit $ac_status); };
3717       then
3718         # cc works too.
3719         :
3720       else
3721         # cc exists but doesn't like -o.
3722         eval ac_cv_prog_cc_${ac_cc}_c_o=no
3723       fi
3724     fi
3725   fi
3726 else
3727   eval ac_cv_prog_cc_${ac_cc}_c_o=no
3728 fi
3729 rm -f core conftest*
3730
3731 fi
3732 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
3733   { echo "$as_me:$LINENO: result: yes" >&5
3734 echo "${ECHO_T}yes" >&6; }
3735 else
3736   { echo "$as_me:$LINENO: result: no" >&5
3737 echo "${ECHO_T}no" >&6; }
3738
3739 cat >>confdefs.h <<\_ACEOF
3740 #define NO_MINUS_C_MINUS_O 1
3741 _ACEOF
3742
3743 fi
3744
3745 ac_ext=c
3746 ac_cpp='$CPP $CPPFLAGS'
3747 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3748 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3749 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3750 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3751 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3752 # On Suns, sometimes $CPP names a directory.
3753 if test -n "$CPP" && test -d "$CPP"; then
3754   CPP=
3755 fi
3756 if test -z "$CPP"; then
3757   if test "${ac_cv_prog_CPP+set}" = set; then
3758   echo $ECHO_N "(cached) $ECHO_C" >&6
3759 else
3760       # Double quotes because CPP needs to be expanded
3761     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3762     do
3763       ac_preproc_ok=false
3764 for ac_c_preproc_warn_flag in '' yes
3765 do
3766   # Use a header file that comes with gcc, so configuring glibc
3767   # with a fresh cross-compiler works.
3768   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3769   # <limits.h> exists even on freestanding compilers.
3770   # On the NeXT, cc -E runs the code through the compiler's parser,
3771   # not just through cpp. "Syntax error" is here to catch this case.
3772   cat >conftest.$ac_ext <<_ACEOF
3773 /* confdefs.h.  */
3774 _ACEOF
3775 cat confdefs.h >>conftest.$ac_ext
3776 cat >>conftest.$ac_ext <<_ACEOF
3777 /* end confdefs.h.  */
3778 #ifdef __STDC__
3779 # include <limits.h>
3780 #else
3781 # include <assert.h>
3782 #endif
3783                      Syntax error
3784 _ACEOF
3785 if { (ac_try="$ac_cpp conftest.$ac_ext"
3786 case "(($ac_try" in
3787   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3788   *) ac_try_echo=$ac_try;;
3789 esac
3790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3791   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3792   ac_status=$?
3793   grep -v '^ *+' conftest.er1 >conftest.err
3794   rm -f conftest.er1
3795   cat conftest.err >&5
3796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3797   (exit $ac_status); } >/dev/null && {
3798          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3799          test ! -s conftest.err
3800        }; then
3801   :
3802 else
3803   echo "$as_me: failed program was:" >&5
3804 sed 's/^/| /' conftest.$ac_ext >&5
3805
3806   # Broken: fails on valid input.
3807 continue
3808 fi
3809
3810 rm -f conftest.err conftest.$ac_ext
3811
3812   # OK, works on sane cases.  Now check whether nonexistent headers
3813   # can be detected and how.
3814   cat >conftest.$ac_ext <<_ACEOF
3815 /* confdefs.h.  */
3816 _ACEOF
3817 cat confdefs.h >>conftest.$ac_ext
3818 cat >>conftest.$ac_ext <<_ACEOF
3819 /* end confdefs.h.  */
3820 #include <ac_nonexistent.h>
3821 _ACEOF
3822 if { (ac_try="$ac_cpp conftest.$ac_ext"
3823 case "(($ac_try" in
3824   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3825   *) ac_try_echo=$ac_try;;
3826 esac
3827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3828   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3829   ac_status=$?
3830   grep -v '^ *+' conftest.er1 >conftest.err
3831   rm -f conftest.er1
3832   cat conftest.err >&5
3833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3834   (exit $ac_status); } >/dev/null && {
3835          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3836          test ! -s conftest.err
3837        }; then
3838   # Broken: success on invalid input.
3839 continue
3840 else
3841   echo "$as_me: failed program was:" >&5
3842 sed 's/^/| /' conftest.$ac_ext >&5
3843
3844   # Passes both tests.
3845 ac_preproc_ok=:
3846 break
3847 fi
3848
3849 rm -f conftest.err conftest.$ac_ext
3850
3851 done
3852 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3853 rm -f conftest.err conftest.$ac_ext
3854 if $ac_preproc_ok; then
3855   break
3856 fi
3857
3858     done
3859     ac_cv_prog_CPP=$CPP
3860
3861 fi
3862   CPP=$ac_cv_prog_CPP
3863 else
3864   ac_cv_prog_CPP=$CPP
3865 fi
3866 { echo "$as_me:$LINENO: result: $CPP" >&5
3867 echo "${ECHO_T}$CPP" >&6; }
3868 ac_preproc_ok=false
3869 for ac_c_preproc_warn_flag in '' yes
3870 do
3871   # Use a header file that comes with gcc, so configuring glibc
3872   # with a fresh cross-compiler works.
3873   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3874   # <limits.h> exists even on freestanding compilers.
3875   # On the NeXT, cc -E runs the code through the compiler's parser,
3876   # not just through cpp. "Syntax error" is here to catch this case.
3877   cat >conftest.$ac_ext <<_ACEOF
3878 /* confdefs.h.  */
3879 _ACEOF
3880 cat confdefs.h >>conftest.$ac_ext
3881 cat >>conftest.$ac_ext <<_ACEOF
3882 /* end confdefs.h.  */
3883 #ifdef __STDC__
3884 # include <limits.h>
3885 #else
3886 # include <assert.h>
3887 #endif
3888                      Syntax error
3889 _ACEOF
3890 if { (ac_try="$ac_cpp conftest.$ac_ext"
3891 case "(($ac_try" in
3892   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3893   *) ac_try_echo=$ac_try;;
3894 esac
3895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3896   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3897   ac_status=$?
3898   grep -v '^ *+' conftest.er1 >conftest.err
3899   rm -f conftest.er1
3900   cat conftest.err >&5
3901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3902   (exit $ac_status); } >/dev/null && {
3903          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3904          test ! -s conftest.err
3905        }; then
3906   :
3907 else
3908   echo "$as_me: failed program was:" >&5
3909 sed 's/^/| /' conftest.$ac_ext >&5
3910
3911   # Broken: fails on valid input.
3912 continue
3913 fi
3914
3915 rm -f conftest.err conftest.$ac_ext
3916
3917   # OK, works on sane cases.  Now check whether nonexistent headers
3918   # can be detected and how.
3919   cat >conftest.$ac_ext <<_ACEOF
3920 /* confdefs.h.  */
3921 _ACEOF
3922 cat confdefs.h >>conftest.$ac_ext
3923 cat >>conftest.$ac_ext <<_ACEOF
3924 /* end confdefs.h.  */
3925 #include <ac_nonexistent.h>
3926 _ACEOF
3927 if { (ac_try="$ac_cpp conftest.$ac_ext"
3928 case "(($ac_try" in
3929   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3930   *) ac_try_echo=$ac_try;;
3931 esac
3932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3933   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3934   ac_status=$?
3935   grep -v '^ *+' conftest.er1 >conftest.err
3936   rm -f conftest.er1
3937   cat conftest.err >&5
3938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3939   (exit $ac_status); } >/dev/null && {
3940          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3941          test ! -s conftest.err
3942        }; then
3943   # Broken: success on invalid input.
3944 continue
3945 else
3946   echo "$as_me: failed program was:" >&5
3947 sed 's/^/| /' conftest.$ac_ext >&5
3948
3949   # Passes both tests.
3950 ac_preproc_ok=:
3951 break
3952 fi
3953
3954 rm -f conftest.err conftest.$ac_ext
3955
3956 done
3957 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3958 rm -f conftest.err conftest.$ac_ext
3959 if $ac_preproc_ok; then
3960   :
3961 else
3962   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3963 See \`config.log' for more details." >&5
3964 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3965 See \`config.log' for more details." >&2;}
3966    { (exit 1); exit 1; }; }
3967 fi
3968
3969 ac_ext=c
3970 ac_cpp='$CPP $CPPFLAGS'
3971 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3972 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3973 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3974
3975
3976 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3977 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3978 if test "${ac_cv_path_GREP+set}" = set; then
3979   echo $ECHO_N "(cached) $ECHO_C" >&6
3980 else
3981   # Extract the first word of "grep ggrep" to use in msg output
3982 if test -z "$GREP"; then
3983 set dummy grep ggrep; ac_prog_name=$2
3984 if test "${ac_cv_path_GREP+set}" = set; then
3985   echo $ECHO_N "(cached) $ECHO_C" >&6
3986 else
3987   ac_path_GREP_found=false
3988 # Loop through the user's path and test for each of PROGNAME-LIST
3989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3990 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3991 do
3992   IFS=$as_save_IFS
3993   test -z "$as_dir" && as_dir=.
3994   for ac_prog in grep ggrep; do
3995   for ac_exec_ext in '' $ac_executable_extensions; do
3996     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3997     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3998     # Check for GNU ac_path_GREP and select it if it is found.
3999   # Check for GNU $ac_path_GREP
4000 case `"$ac_path_GREP" --version 2>&1` in
4001 *GNU*)
4002   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4003 *)
4004   ac_count=0
4005   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4006   while :
4007   do
4008     cat "conftest.in" "conftest.in" >"conftest.tmp"
4009     mv "conftest.tmp" "conftest.in"
4010     cp "conftest.in" "conftest.nl"
4011     echo 'GREP' >> "conftest.nl"
4012     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4013     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4014     ac_count=`expr $ac_count + 1`
4015     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4016       # Best one so far, save it but keep looking for a better one
4017       ac_cv_path_GREP="$ac_path_GREP"
4018       ac_path_GREP_max=$ac_count
4019     fi
4020     # 10*(2^10) chars as input seems more than enough
4021     test $ac_count -gt 10 && break
4022   done
4023   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4024 esac
4025
4026
4027     $ac_path_GREP_found && break 3
4028   done
4029 done
4030
4031 done
4032 IFS=$as_save_IFS
4033
4034
4035 fi
4036
4037 GREP="$ac_cv_path_GREP"
4038 if test -z "$GREP"; then
4039   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4040 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4041    { (exit 1); exit 1; }; }
4042 fi
4043
4044 else
4045   ac_cv_path_GREP=$GREP
4046 fi
4047
4048
4049 fi
4050 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4051 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4052  GREP="$ac_cv_path_GREP"
4053
4054
4055 { echo "$as_me:$LINENO: checking for egrep" >&5
4056 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4057 if test "${ac_cv_path_EGREP+set}" = set; then
4058   echo $ECHO_N "(cached) $ECHO_C" >&6
4059 else
4060   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4061    then ac_cv_path_EGREP="$GREP -E"
4062    else
4063      # Extract the first word of "egrep" to use in msg output
4064 if test -z "$EGREP"; then
4065 set dummy egrep; ac_prog_name=$2
4066 if test "${ac_cv_path_EGREP+set}" = set; then
4067   echo $ECHO_N "(cached) $ECHO_C" >&6
4068 else
4069   ac_path_EGREP_found=false
4070 # Loop through the user's path and test for each of PROGNAME-LIST
4071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4072 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4073 do
4074   IFS=$as_save_IFS
4075   test -z "$as_dir" && as_dir=.
4076   for ac_prog in egrep; do
4077   for ac_exec_ext in '' $ac_executable_extensions; do
4078     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4079     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4080     # Check for GNU ac_path_EGREP and select it if it is found.
4081   # Check for GNU $ac_path_EGREP
4082 case `"$ac_path_EGREP" --version 2>&1` in
4083 *GNU*)
4084   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4085 *)
4086   ac_count=0
4087   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4088   while :
4089   do
4090     cat "conftest.in" "conftest.in" >"conftest.tmp"
4091     mv "conftest.tmp" "conftest.in"
4092     cp "conftest.in" "conftest.nl"
4093     echo 'EGREP' >> "conftest.nl"
4094     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4095     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4096     ac_count=`expr $ac_count + 1`
4097     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4098       # Best one so far, save it but keep looking for a better one
4099       ac_cv_path_EGREP="$ac_path_EGREP"
4100       ac_path_EGREP_max=$ac_count
4101     fi
4102     # 10*(2^10) chars as input seems more than enough
4103     test $ac_count -gt 10 && break
4104   done
4105   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4106 esac
4107
4108
4109     $ac_path_EGREP_found && break 3
4110   done
4111 done
4112
4113 done
4114 IFS=$as_save_IFS
4115
4116
4117 fi
4118
4119 EGREP="$ac_cv_path_EGREP"
4120 if test -z "$EGREP"; then
4121   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4122 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4123    { (exit 1); exit 1; }; }
4124 fi
4125
4126 else
4127   ac_cv_path_EGREP=$EGREP
4128 fi
4129
4130
4131    fi
4132 fi
4133 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4134 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4135  EGREP="$ac_cv_path_EGREP"
4136
4137
4138 if test $ac_cv_c_compiler_gnu = yes; then
4139     { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
4140 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
4141 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
4142   echo $ECHO_N "(cached) $ECHO_C" >&6
4143 else
4144     ac_pattern="Autoconf.*'x'"
4145   cat >conftest.$ac_ext <<_ACEOF
4146 /* confdefs.h.  */
4147 _ACEOF
4148 cat confdefs.h >>conftest.$ac_ext
4149 cat >>conftest.$ac_ext <<_ACEOF
4150 /* end confdefs.h.  */
4151 #include <sgtty.h>
4152 Autoconf TIOCGETP
4153 _ACEOF
4154 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4155   $EGREP "$ac_pattern" >/dev/null 2>&1; then
4156   ac_cv_prog_gcc_traditional=yes
4157 else
4158   ac_cv_prog_gcc_traditional=no
4159 fi
4160 rm -f conftest*
4161
4162
4163   if test $ac_cv_prog_gcc_traditional = no; then
4164     cat >conftest.$ac_ext <<_ACEOF
4165 /* confdefs.h.  */
4166 _ACEOF
4167 cat confdefs.h >>conftest.$ac_ext
4168 cat >>conftest.$ac_ext <<_ACEOF
4169 /* end confdefs.h.  */
4170 #include <termio.h>
4171 Autoconf TCGETA
4172 _ACEOF
4173 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4174   $EGREP "$ac_pattern" >/dev/null 2>&1; then
4175   ac_cv_prog_gcc_traditional=yes
4176 fi
4177 rm -f conftest*
4178
4179   fi
4180 fi
4181 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
4182 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
4183   if test $ac_cv_prog_gcc_traditional = yes; then
4184     CC="$CC -traditional"
4185   fi
4186 fi
4187
4188 BASECC=`basename $CC`
4189 have_gcc=no
4190 if test "x$BASECC" = xgcc; then
4191    cat >>confdefs.h <<\_ACEOF
4192 #define HAVE_GCC 1
4193 _ACEOF
4194
4195    have_gcc=yes
4196 fi
4197 # Extract the first word of "$CXX", so it can be a program name with args.
4198 set dummy $CXX; ac_word=$2
4199 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4200 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4201 if test "${ac_cv_path_CXX+set}" = set; then
4202   echo $ECHO_N "(cached) $ECHO_C" >&6
4203 else
4204   case $CXX in
4205   [\\/]* | ?:[\\/]*)
4206   ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
4207   ;;
4208   *)
4209   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4210 for as_dir in $PATH
4211 do
4212   IFS=$as_save_IFS
4213   test -z "$as_dir" && as_dir=.
4214   for ac_exec_ext in '' $ac_executable_extensions; do
4215   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4216     ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
4217     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4218     break 2
4219   fi
4220 done
4221 done
4222 IFS=$as_save_IFS
4223
4224   test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="$CXX"
4225   ;;
4226 esac
4227 fi
4228 CXX=$ac_cv_path_CXX
4229 if test -n "$CXX"; then
4230   { echo "$as_me:$LINENO: result: $CXX" >&5
4231 echo "${ECHO_T}$CXX" >&6; }
4232 else
4233   { echo "$as_me:$LINENO: result: no" >&5
4234 echo "${ECHO_T}no" >&6; }
4235 fi
4236
4237
4238 if test ! -e $CXX; then
4239    { { echo "$as_me:$LINENO: error: Unable to find C++ compiler" >&5
4240 echo "$as_me: error: Unable to find C++ compiler" >&2;}
4241    { (exit 1); exit 1; }; }
4242 fi
4243
4244 # Find a good install program.  We prefer a C program (faster),
4245 # so one script is as good as another.  But avoid the broken or
4246 # incompatible versions:
4247 # SysV /etc/install, /usr/sbin/install
4248 # SunOS /usr/etc/install
4249 # IRIX /sbin/install
4250 # AIX /bin/install
4251 # AmigaOS /C/install, which installs bootblocks on floppy discs
4252 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4253 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4254 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4255 # OS/2's system install, which has a completely different semantic
4256 # ./install, which can be erroneously created by make from ./install.sh.
4257 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4258 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4259 if test -z "$INSTALL"; then
4260 if test "${ac_cv_path_install+set}" = set; then
4261   echo $ECHO_N "(cached) $ECHO_C" >&6
4262 else
4263   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4264 for as_dir in $PATH
4265 do
4266   IFS=$as_save_IFS
4267   test -z "$as_dir" && as_dir=.
4268   # Account for people who put trailing slashes in PATH elements.
4269 case $as_dir/ in
4270   ./ | .// | /cC/* | \
4271   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4272   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4273   /usr/ucb/* ) ;;
4274   *)
4275     # OSF1 and SCO ODT 3.0 have their own names for install.
4276     # Don't use installbsd from OSF since it installs stuff as root
4277     # by default.
4278     for ac_prog in ginstall scoinst install; do
4279       for ac_exec_ext in '' $ac_executable_extensions; do
4280         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4281           if test $ac_prog = install &&
4282             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4283             # AIX install.  It has an incompatible calling convention.
4284             :
4285           elif test $ac_prog = install &&
4286             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4287             # program-specific install script used by HP pwplus--don't use.
4288             :
4289           else
4290             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4291             break 3
4292           fi
4293         fi
4294       done
4295     done
4296     ;;
4297 esac
4298 done
4299 IFS=$as_save_IFS
4300
4301
4302 fi
4303   if test "${ac_cv_path_install+set}" = set; then
4304     INSTALL=$ac_cv_path_install
4305   else
4306     # As a last resort, use the slow shell script.  Don't cache a
4307     # value for INSTALL within a source directory, because that will
4308     # break other packages using the cache if that directory is
4309     # removed, or if the value is a relative name.
4310     INSTALL=$ac_install_sh
4311   fi
4312 fi
4313 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4314 echo "${ECHO_T}$INSTALL" >&6; }
4315
4316 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4317 # It thinks the first close brace ends the variable substitution.
4318 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4319
4320 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4321
4322 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4323
4324 # Extract the first word of "mv", so it can be a program name with args.
4325 set dummy mv; ac_word=$2
4326 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4327 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4328 if test "${ac_cv_path_MV+set}" = set; then
4329   echo $ECHO_N "(cached) $ECHO_C" >&6
4330 else
4331   case $MV in
4332   [\\/]* | ?:[\\/]*)
4333   ac_cv_path_MV="$MV" # Let the user override the test with a path.
4334   ;;
4335   *)
4336   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4337 for as_dir in $PATH
4338 do
4339   IFS=$as_save_IFS
4340   test -z "$as_dir" && as_dir=.
4341   for ac_exec_ext in '' $ac_executable_extensions; do
4342   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4343     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4344     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4345     break 2
4346   fi
4347 done
4348 done
4349 IFS=$as_save_IFS
4350
4351   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4352   ;;
4353 esac
4354 fi
4355 MV=$ac_cv_path_MV
4356 if test -n "$MV"; then
4357   { echo "$as_me:$LINENO: result: $MV" >&5
4358 echo "${ECHO_T}$MV" >&6; }
4359 else
4360   { echo "$as_me:$LINENO: result: no" >&5
4361 echo "${ECHO_T}no" >&6; }
4362 fi
4363
4364
4365 # Extract the first word of "rm", so it can be a program name with args.
4366 set dummy rm; ac_word=$2
4367 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4368 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4369 if test "${ac_cv_path_REMOVE+set}" = set; then
4370   echo $ECHO_N "(cached) $ECHO_C" >&6
4371 else
4372   case $REMOVE in
4373   [\\/]* | ?:[\\/]*)
4374   ac_cv_path_REMOVE="$REMOVE" # Let the user override the test with a path.
4375   ;;
4376   *)
4377   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4378 for as_dir in $PATH
4379 do
4380   IFS=$as_save_IFS
4381   test -z "$as_dir" && as_dir=.
4382   for ac_exec_ext in '' $ac_executable_extensions; do
4383   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4384     ac_cv_path_REMOVE="$as_dir/$ac_word$ac_exec_ext"
4385     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4386     break 2
4387   fi
4388 done
4389 done
4390 IFS=$as_save_IFS
4391
4392   test -z "$ac_cv_path_REMOVE" && ac_cv_path_REMOVE="rm"
4393   ;;
4394 esac
4395 fi
4396 REMOVE=$ac_cv_path_REMOVE
4397 if test -n "$REMOVE"; then
4398   { echo "$as_me:$LINENO: result: $REMOVE" >&5
4399 echo "${ECHO_T}$REMOVE" >&6; }
4400 else
4401   { echo "$as_me:$LINENO: result: no" >&5
4402 echo "${ECHO_T}no" >&6; }
4403 fi
4404
4405
4406 # Extract the first word of "cp", so it can be a program name with args.
4407 set dummy cp; ac_word=$2
4408 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4409 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4410 if test "${ac_cv_path_CP+set}" = set; then
4411   echo $ECHO_N "(cached) $ECHO_C" >&6
4412 else
4413   case $CP in
4414   [\\/]* | ?:[\\/]*)
4415   ac_cv_path_CP="$CP" # Let the user override the test with a path.
4416   ;;
4417   *)
4418   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4419 for as_dir in $PATH
4420 do
4421   IFS=$as_save_IFS
4422   test -z "$as_dir" && as_dir=.
4423   for ac_exec_ext in '' $ac_executable_extensions; do
4424   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4425     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4426     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4427     break 2
4428   fi
4429 done
4430 done
4431 IFS=$as_save_IFS
4432
4433   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
4434   ;;
4435 esac
4436 fi
4437 CP=$ac_cv_path_CP
4438 if test -n "$CP"; then
4439   { echo "$as_me:$LINENO: result: $CP" >&5
4440 echo "${ECHO_T}$CP" >&6; }
4441 else
4442   { echo "$as_me:$LINENO: result: no" >&5
4443 echo "${ECHO_T}no" >&6; }
4444 fi
4445
4446
4447 # Extract the first word of "sed", so it can be a program name with args.
4448 set dummy sed; ac_word=$2
4449 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4450 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4451 if test "${ac_cv_path_SED+set}" = set; then
4452   echo $ECHO_N "(cached) $ECHO_C" >&6
4453 else
4454   case $SED in
4455   [\\/]* | ?:[\\/]*)
4456   ac_cv_path_SED="$SED" # Let the user override the test with a path.
4457   ;;
4458   *)
4459   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4460 for as_dir in $PATH
4461 do
4462   IFS=$as_save_IFS
4463   test -z "$as_dir" && as_dir=.
4464   for ac_exec_ext in '' $ac_executable_extensions; do
4465   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4466     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
4467     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4468     break 2
4469   fi
4470 done
4471 done
4472 IFS=$as_save_IFS
4473
4474   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
4475   ;;
4476 esac
4477 fi
4478 SED=$ac_cv_path_SED
4479 if test -n "$SED"; then
4480   { echo "$as_me:$LINENO: result: $SED" >&5
4481 echo "${ECHO_T}$SED" >&6; }
4482 else
4483   { echo "$as_me:$LINENO: result: no" >&5
4484 echo "${ECHO_T}no" >&6; }
4485 fi
4486
4487
4488 # Extract the first word of "echo", so it can be a program name with args.
4489 set dummy echo; ac_word=$2
4490 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4491 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4492 if test "${ac_cv_path_ECHO+set}" = set; then
4493   echo $ECHO_N "(cached) $ECHO_C" >&6
4494 else
4495   case $ECHO in
4496   [\\/]* | ?:[\\/]*)
4497   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
4498   ;;
4499   *)
4500   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4501 for as_dir in $PATH
4502 do
4503   IFS=$as_save_IFS
4504   test -z "$as_dir" && as_dir=.
4505   for ac_exec_ext in '' $ac_executable_extensions; do
4506   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4507     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
4508     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4509     break 2
4510   fi
4511 done
4512 done
4513 IFS=$as_save_IFS
4514
4515   test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
4516   ;;
4517 esac
4518 fi
4519 ECHO=$ac_cv_path_ECHO
4520 if test -n "$ECHO"; then
4521   { echo "$as_me:$LINENO: result: $ECHO" >&5
4522 echo "${ECHO_T}$ECHO" >&6; }
4523 else
4524   { echo "$as_me:$LINENO: result: no" >&5
4525 echo "${ECHO_T}no" >&6; }
4526 fi
4527
4528
4529 # Extract the first word of "cmp", so it can be a program name with args.
4530 set dummy cmp; ac_word=$2
4531 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4532 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4533 if test "${ac_cv_path_CMP+set}" = set; then
4534   echo $ECHO_N "(cached) $ECHO_C" >&6
4535 else
4536   case $CMP in
4537   [\\/]* | ?:[\\/]*)
4538   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
4539   ;;
4540   *)
4541   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4542 for as_dir in $PATH
4543 do
4544   IFS=$as_save_IFS
4545   test -z "$as_dir" && as_dir=.
4546   for ac_exec_ext in '' $ac_executable_extensions; do
4547   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4548     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
4549     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4550     break 2
4551   fi
4552 done
4553 done
4554 IFS=$as_save_IFS
4555
4556   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
4557   ;;
4558 esac
4559 fi
4560 CMP=$ac_cv_path_CMP
4561 if test -n "$CMP"; then
4562   { echo "$as_me:$LINENO: result: $CMP" >&5
4563 echo "${ECHO_T}$CMP" >&6; }
4564 else
4565   { echo "$as_me:$LINENO: result: no" >&5
4566 echo "${ECHO_T}no" >&6; }
4567 fi
4568
4569
4570 # Extract the first word of "tbl", so it can be a program name with args.
4571 set dummy tbl; ac_word=$2
4572 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4573 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4574 if test "${ac_cv_path_TBL+set}" = set; then
4575   echo $ECHO_N "(cached) $ECHO_C" >&6
4576 else
4577   case $TBL in
4578   [\\/]* | ?:[\\/]*)
4579   ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
4580   ;;
4581   *)
4582   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4583 for as_dir in $PATH
4584 do
4585   IFS=$as_save_IFS
4586   test -z "$as_dir" && as_dir=.
4587   for ac_exec_ext in '' $ac_executable_extensions; do
4588   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4589     ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
4590     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4591     break 2
4592   fi
4593 done
4594 done
4595 IFS=$as_save_IFS
4596
4597   test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
4598   ;;
4599 esac
4600 fi
4601 TBL=$ac_cv_path_TBL
4602 if test -n "$TBL"; then
4603   { echo "$as_me:$LINENO: result: $TBL" >&5
4604 echo "${ECHO_T}$TBL" >&6; }
4605 else
4606   { echo "$as_me:$LINENO: result: no" >&5
4607 echo "${ECHO_T}no" >&6; }
4608 fi
4609
4610
4611 # Extract the first word of "ar", so it can be a program name with args.
4612 set dummy ar; ac_word=$2
4613 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4614 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4615 if test "${ac_cv_path_AR+set}" = set; then
4616   echo $ECHO_N "(cached) $ECHO_C" >&6
4617 else
4618   case $AR in
4619   [\\/]* | ?:[\\/]*)
4620   ac_cv_path_AR="$AR" # Let the user override the test with a path.
4621   ;;
4622   *)
4623   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4624 for as_dir in $PATH
4625 do
4626   IFS=$as_save_IFS
4627   test -z "$as_dir" && as_dir=.
4628   for ac_exec_ext in '' $ac_executable_extensions; do
4629   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4630     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
4631     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4632     break 2
4633   fi
4634 done
4635 done
4636 IFS=$as_save_IFS
4637
4638   test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
4639   ;;
4640 esac
4641 fi
4642 AR=$ac_cv_path_AR
4643 if test -n "$AR"; then
4644   { echo "$as_me:$LINENO: result: $AR" >&5
4645 echo "${ECHO_T}$AR" >&6; }
4646 else
4647   { echo "$as_me:$LINENO: result: no" >&5
4648 echo "${ECHO_T}no" >&6; }
4649 fi
4650
4651
4652 # Extract the first word of "openssl", so it can be a program name with args.
4653 set dummy openssl; ac_word=$2
4654 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4655 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4656 if test "${ac_cv_path_OPENSSL+set}" = set; then
4657   echo $ECHO_N "(cached) $ECHO_C" >&6
4658 else
4659   case $OPENSSL in
4660   [\\/]* | ?:[\\/]*)
4661   ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
4662   ;;
4663   *)
4664   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4665 for as_dir in $PATH
4666 do
4667   IFS=$as_save_IFS
4668   test -z "$as_dir" && as_dir=.
4669   for ac_exec_ext in '' $ac_executable_extensions; do
4670   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4671     ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
4672     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4673     break 2
4674   fi
4675 done
4676 done
4677 IFS=$as_save_IFS
4678
4679   test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
4680   ;;
4681 esac
4682 fi
4683 OPENSSL=$ac_cv_path_OPENSSL
4684 if test -n "$OPENSSL"; then
4685   { echo "$as_me:$LINENO: result: $OPENSSL" >&5
4686 echo "${ECHO_T}$OPENSSL" >&6; }
4687 else
4688   { echo "$as_me:$LINENO: result: no" >&5
4689 echo "${ECHO_T}no" >&6; }
4690 fi
4691
4692
4693 # Extract the first word of "mtx", so it can be a program name with args.
4694 set dummy mtx; ac_word=$2
4695 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4696 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4697 if test "${ac_cv_path_MTX+set}" = set; then
4698   echo $ECHO_N "(cached) $ECHO_C" >&6
4699 else
4700   case $MTX in
4701   [\\/]* | ?:[\\/]*)
4702   ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
4703   ;;
4704   *)
4705   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4706 for as_dir in $PATH
4707 do
4708   IFS=$as_save_IFS
4709   test -z "$as_dir" && as_dir=.
4710   for ac_exec_ext in '' $ac_executable_extensions; do
4711   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4712     ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
4713     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4714     break 2
4715   fi
4716 done
4717 done
4718 IFS=$as_save_IFS
4719
4720   test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
4721   ;;
4722 esac
4723 fi
4724 MTX=$ac_cv_path_MTX
4725 if test -n "$MTX"; then
4726   { echo "$as_me:$LINENO: result: $MTX" >&5
4727 echo "${ECHO_T}$MTX" >&6; }
4728 else
4729   { echo "$as_me:$LINENO: result: no" >&5
4730 echo "${ECHO_T}no" >&6; }
4731 fi
4732
4733
4734 # Extract the first word of "dd", so it can be a program name with args.
4735 set dummy dd; ac_word=$2
4736 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4737 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4738 if test "${ac_cv_path_DD+set}" = set; then
4739   echo $ECHO_N "(cached) $ECHO_C" >&6
4740 else
4741   case $DD in
4742   [\\/]* | ?:[\\/]*)
4743   ac_cv_path_DD="$DD" # Let the user override the test with a path.
4744   ;;
4745   *)
4746   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4747 for as_dir in $PATH
4748 do
4749   IFS=$as_save_IFS
4750   test -z "$as_dir" && as_dir=.
4751   for ac_exec_ext in '' $ac_executable_extensions; do
4752   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4753     ac_cv_path_DD="$as_dir/$ac_word$ac_exec_ext"
4754     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4755     break 2
4756   fi
4757 done
4758 done
4759 IFS=$as_save_IFS
4760
4761   test -z "$ac_cv_path_DD" && ac_cv_path_DD="dd"
4762   ;;
4763 esac
4764 fi
4765 DD=$ac_cv_path_DD
4766 if test -n "$DD"; then
4767   { echo "$as_me:$LINENO: result: $DD" >&5
4768 echo "${ECHO_T}$DD" >&6; }
4769 else
4770   { echo "$as_me:$LINENO: result: no" >&5
4771 echo "${ECHO_T}no" >&6; }
4772 fi
4773
4774
4775 # Extract the first word of "mkisofs", so it can be a program name with args.
4776 set dummy mkisofs; ac_word=$2
4777 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4778 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4779 if test "${ac_cv_path_MKISOFS+set}" = set; then
4780   echo $ECHO_N "(cached) $ECHO_C" >&6
4781 else
4782   case $MKISOFS in
4783   [\\/]* | ?:[\\/]*)
4784   ac_cv_path_MKISOFS="$MKISOFS" # Let the user override the test with a path.
4785   ;;
4786   *)
4787   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4788 for as_dir in $PATH
4789 do
4790   IFS=$as_save_IFS
4791   test -z "$as_dir" && as_dir=.
4792   for ac_exec_ext in '' $ac_executable_extensions; do
4793   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4794     ac_cv_path_MKISOFS="$as_dir/$ac_word$ac_exec_ext"
4795     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4796     break 2
4797   fi
4798 done
4799 done
4800 IFS=$as_save_IFS
4801
4802   test -z "$ac_cv_path_MKISOFS" && ac_cv_path_MKISOFS="mkisofs"
4803   ;;
4804 esac
4805 fi
4806 MKISOFS=$ac_cv_path_MKISOFS
4807 if test -n "$MKISOFS"; then
4808   { echo "$as_me:$LINENO: result: $MKISOFS" >&5
4809 echo "${ECHO_T}$MKISOFS" >&6; }
4810 else
4811   { echo "$as_me:$LINENO: result: no" >&5
4812 echo "${ECHO_T}no" >&6; }
4813 fi
4814
4815
4816 # Extract the first word of "python", so it can be a program name with args.
4817 set dummy python; ac_word=$2
4818 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4819 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4820 if test "${ac_cv_path_PYTHON+set}" = set; then
4821   echo $ECHO_N "(cached) $ECHO_C" >&6
4822 else
4823   case $PYTHON in
4824   [\\/]* | ?:[\\/]*)
4825   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
4826   ;;
4827   *)
4828   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4829 for as_dir in $PATH
4830 do
4831   IFS=$as_save_IFS
4832   test -z "$as_dir" && as_dir=.
4833   for ac_exec_ext in '' $ac_executable_extensions; do
4834   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4835     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
4836     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4837     break 2
4838   fi
4839 done
4840 done
4841 IFS=$as_save_IFS
4842
4843   test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="python"
4844   ;;
4845 esac
4846 fi
4847 PYTHON=$ac_cv_path_PYTHON
4848 if test -n "$PYTHON"; then
4849   { echo "$as_me:$LINENO: result: $PYTHON" >&5
4850 echo "${ECHO_T}$PYTHON" >&6; }
4851 else
4852   { echo "$as_me:$LINENO: result: no" >&5
4853 echo "${ECHO_T}no" >&6; }
4854 fi
4855
4856
4857 # Extract the first word of "growisofs", so it can be a program name with args.
4858 set dummy growisofs; ac_word=$2
4859 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4860 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4861 if test "${ac_cv_path_GROWISOFS+set}" = set; then
4862   echo $ECHO_N "(cached) $ECHO_C" >&6
4863 else
4864   case $GROWISOFS in
4865   [\\/]* | ?:[\\/]*)
4866   ac_cv_path_GROWISOFS="$GROWISOFS" # Let the user override the test with a path.
4867   ;;
4868   *)
4869   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4870 for as_dir in $PATH
4871 do
4872   IFS=$as_save_IFS
4873   test -z "$as_dir" && as_dir=.
4874   for ac_exec_ext in '' $ac_executable_extensions; do
4875   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4876     ac_cv_path_GROWISOFS="$as_dir/$ac_word$ac_exec_ext"
4877     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4878     break 2
4879   fi
4880 done
4881 done
4882 IFS=$as_save_IFS
4883
4884   test -z "$ac_cv_path_GROWISOFS" && ac_cv_path_GROWISOFS="growisofs"
4885   ;;
4886 esac
4887 fi
4888 GROWISOFS=$ac_cv_path_GROWISOFS
4889 if test -n "$GROWISOFS"; then
4890   { echo "$as_me:$LINENO: result: $GROWISOFS" >&5
4891 echo "${ECHO_T}$GROWISOFS" >&6; }
4892 else
4893   { echo "$as_me:$LINENO: result: no" >&5
4894 echo "${ECHO_T}no" >&6; }
4895 fi
4896
4897
4898 # Extract the first word of "dvd+rw-mediainfo", so it can be a program name with args.
4899 set dummy dvd+rw-mediainfo; ac_word=$2
4900 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4901 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4902 if test "${ac_cv_path_DVDRWMEDIAINFO+set}" = set; then
4903   echo $ECHO_N "(cached) $ECHO_C" >&6
4904 else
4905   case $DVDRWMEDIAINFO in
4906   [\\/]* | ?:[\\/]*)
4907   ac_cv_path_DVDRWMEDIAINFO="$DVDRWMEDIAINFO" # Let the user override the test with a path.
4908   ;;
4909   *)
4910   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4911 for as_dir in $PATH
4912 do
4913   IFS=$as_save_IFS
4914   test -z "$as_dir" && as_dir=.
4915   for ac_exec_ext in '' $ac_executable_extensions; do
4916   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4917     ac_cv_path_DVDRWMEDIAINFO="$as_dir/$ac_word$ac_exec_ext"
4918     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4919     break 2
4920   fi
4921 done
4922 done
4923 IFS=$as_save_IFS
4924
4925   test -z "$ac_cv_path_DVDRWMEDIAINFO" && ac_cv_path_DVDRWMEDIAINFO="dvd+rw-mediainfo"
4926   ;;
4927 esac
4928 fi
4929 DVDRWMEDIAINFO=$ac_cv_path_DVDRWMEDIAINFO
4930 if test -n "$DVDRWMEDIAINFO"; then
4931   { echo "$as_me:$LINENO: result: $DVDRWMEDIAINFO" >&5
4932 echo "${ECHO_T}$DVDRWMEDIAINFO" >&6; }
4933 else
4934   { echo "$as_me:$LINENO: result: no" >&5
4935 echo "${ECHO_T}no" >&6; }
4936 fi
4937
4938
4939 # Extract the first word of "dvd+rw-format", so it can be a program name with args.
4940 set dummy dvd+rw-format; ac_word=$2
4941 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4942 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4943 if test "${ac_cv_path_DVDRWFORMAT+set}" = set; then
4944   echo $ECHO_N "(cached) $ECHO_C" >&6
4945 else
4946   case $DVDRWFORMAT in
4947   [\\/]* | ?:[\\/]*)
4948   ac_cv_path_DVDRWFORMAT="$DVDRWFORMAT" # Let the user override the test with a path.
4949   ;;
4950   *)
4951   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4952 for as_dir in $PATH
4953 do
4954   IFS=$as_save_IFS
4955   test -z "$as_dir" && as_dir=.
4956   for ac_exec_ext in '' $ac_executable_extensions; do
4957   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4958     ac_cv_path_DVDRWFORMAT="$as_dir/$ac_word$ac_exec_ext"
4959     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4960     break 2
4961   fi
4962 done
4963 done
4964 IFS=$as_save_IFS
4965
4966   test -z "$ac_cv_path_DVDRWFORMAT" && ac_cv_path_DVDRWFORMAT="dvd+rw-format"
4967   ;;
4968 esac
4969 fi
4970 DVDRWFORMAT=$ac_cv_path_DVDRWFORMAT
4971 if test -n "$DVDRWFORMAT"; then
4972   { echo "$as_me:$LINENO: result: $DVDRWFORMAT" >&5
4973 echo "${ECHO_T}$DVDRWFORMAT" >&6; }
4974 else
4975   { echo "$as_me:$LINENO: result: no" >&5
4976 echo "${ECHO_T}no" >&6; }
4977 fi
4978
4979
4980 # Extract the first word of "pkg-config", so it can be a program name with args.
4981 set dummy pkg-config; ac_word=$2
4982 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4983 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4984 if test "${ac_cv_path_PKGCONFIG+set}" = set; then
4985   echo $ECHO_N "(cached) $ECHO_C" >&6
4986 else
4987   case $PKGCONFIG in
4988   [\\/]* | ?:[\\/]*)
4989   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
4990   ;;
4991   *)
4992   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4993 for as_dir in $PATH
4994 do
4995   IFS=$as_save_IFS
4996   test -z "$as_dir" && as_dir=.
4997   for ac_exec_ext in '' $ac_executable_extensions; do
4998   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4999     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
5000     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5001     break 2
5002   fi
5003 done
5004 done
5005 IFS=$as_save_IFS
5006
5007   test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
5008   ;;
5009 esac
5010 fi
5011 PKGCONFIG=$ac_cv_path_PKGCONFIG
5012 if test -n "$PKGCONFIG"; then
5013   { echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
5014 echo "${ECHO_T}$PKGCONFIG" >&6; }
5015 else
5016   { echo "$as_me:$LINENO: result: no" >&5
5017 echo "${ECHO_T}no" >&6; }
5018 fi
5019
5020
5021 # Extract the first word of "qmake", so it can be a program name with args.
5022 set dummy qmake; ac_word=$2
5023 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5024 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5025 if test "${ac_cv_path_QMAKE+set}" = set; then
5026   echo $ECHO_N "(cached) $ECHO_C" >&6
5027 else
5028   case $QMAKE in
5029   [\\/]* | ?:[\\/]*)
5030   ac_cv_path_QMAKE="$QMAKE" # Let the user override the test with a path.
5031   ;;
5032   *)
5033   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5034 for as_dir in $PATH
5035 do
5036   IFS=$as_save_IFS
5037   test -z "$as_dir" && as_dir=.
5038   for ac_exec_ext in '' $ac_executable_extensions; do
5039   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5040     ac_cv_path_QMAKE="$as_dir/$ac_word$ac_exec_ext"
5041     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5042     break 2
5043   fi
5044 done
5045 done
5046 IFS=$as_save_IFS
5047
5048   test -z "$ac_cv_path_QMAKE" && ac_cv_path_QMAKE="none"
5049   ;;
5050 esac
5051 fi
5052 QMAKE=$ac_cv_path_QMAKE
5053 if test -n "$QMAKE"; then
5054   { echo "$as_me:$LINENO: result: $QMAKE" >&5
5055 echo "${ECHO_T}$QMAKE" >&6; }
5056 else
5057   { echo "$as_me:$LINENO: result: no" >&5
5058 echo "${ECHO_T}no" >&6; }
5059 fi
5060
5061
5062 # Extract the first word of "qmake-qt4", so it can be a program name with args.
5063 set dummy qmake-qt4; ac_word=$2
5064 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5065 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5066 if test "${ac_cv_path_QMAKEQT4+set}" = set; then
5067   echo $ECHO_N "(cached) $ECHO_C" >&6
5068 else
5069   case $QMAKEQT4 in
5070   [\\/]* | ?:[\\/]*)
5071   ac_cv_path_QMAKEQT4="$QMAKEQT4" # Let the user override the test with a path.
5072   ;;
5073   *)
5074   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5075 for as_dir in $PATH
5076 do
5077   IFS=$as_save_IFS
5078   test -z "$as_dir" && as_dir=.
5079   for ac_exec_ext in '' $ac_executable_extensions; do
5080   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5081     ac_cv_path_QMAKEQT4="$as_dir/$ac_word$ac_exec_ext"
5082     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5083     break 2
5084   fi
5085 done
5086 done
5087 IFS=$as_save_IFS
5088
5089   test -z "$ac_cv_path_QMAKEQT4" && ac_cv_path_QMAKEQT4="none"
5090   ;;
5091 esac
5092 fi
5093 QMAKEQT4=$ac_cv_path_QMAKEQT4
5094 if test -n "$QMAKEQT4"; then
5095   { echo "$as_me:$LINENO: result: $QMAKEQT4" >&5
5096 echo "${ECHO_T}$QMAKEQT4" >&6; }
5097 else
5098   { echo "$as_me:$LINENO: result: no" >&5
5099 echo "${ECHO_T}no" >&6; }
5100 fi
5101
5102
5103 # Extract the first word of "gmake", so it can be a program name with args.
5104 set dummy gmake; ac_word=$2
5105 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5106 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5107 if test "${ac_cv_path_GMAKE+set}" = set; then
5108   echo $ECHO_N "(cached) $ECHO_C" >&6
5109 else
5110   case $GMAKE in
5111   [\\/]* | ?:[\\/]*)
5112   ac_cv_path_GMAKE="$GMAKE" # Let the user override the test with a path.
5113   ;;
5114   *)
5115   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5116 for as_dir in $PATH
5117 do
5118   IFS=$as_save_IFS
5119   test -z "$as_dir" && as_dir=.
5120   for ac_exec_ext in '' $ac_executable_extensions; do
5121   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5122     ac_cv_path_GMAKE="$as_dir/$ac_word$ac_exec_ext"
5123     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5124     break 2
5125   fi
5126 done
5127 done
5128 IFS=$as_save_IFS
5129
5130   test -z "$ac_cv_path_GMAKE" && ac_cv_path_GMAKE="none"
5131   ;;
5132 esac
5133 fi
5134 GMAKE=$ac_cv_path_GMAKE
5135 if test -n "$GMAKE"; then
5136   { echo "$as_me:$LINENO: result: $GMAKE" >&5
5137 echo "${ECHO_T}$GMAKE" >&6; }
5138 else
5139   { echo "$as_me:$LINENO: result: no" >&5
5140 echo "${ECHO_T}no" >&6; }
5141 fi
5142
5143
5144
5145 if test "x$WXCONFIG" = x; then
5146    WXCONFIG=wx-config
5147 fi
5148 # Extract the first word of "${WXCONFIG}", so it can be a program name with args.
5149 set dummy ${WXCONFIG}; ac_word=$2
5150 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5151 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5152 if test "${ac_cv_path_WXCONFIG+set}" = set; then
5153   echo $ECHO_N "(cached) $ECHO_C" >&6
5154 else
5155   case $WXCONFIG in
5156   [\\/]* | ?:[\\/]*)
5157   ac_cv_path_WXCONFIG="$WXCONFIG" # Let the user override the test with a path.
5158   ;;
5159   *)
5160   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5161 for as_dir in $PATH
5162 do
5163   IFS=$as_save_IFS
5164   test -z "$as_dir" && as_dir=.
5165   for ac_exec_ext in '' $ac_executable_extensions; do
5166   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5167     ac_cv_path_WXCONFIG="$as_dir/$ac_word$ac_exec_ext"
5168     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5169     break 2
5170   fi
5171 done
5172 done
5173 IFS=$as_save_IFS
5174
5175   test -z "$ac_cv_path_WXCONFIG" && ac_cv_path_WXCONFIG="${WXCONFIG}"
5176   ;;
5177 esac
5178 fi
5179 WXCONFIG=$ac_cv_path_WXCONFIG
5180 if test -n "$WXCONFIG"; then
5181   { echo "$as_me:$LINENO: result: $WXCONFIG" >&5
5182 echo "${ECHO_T}$WXCONFIG" >&6; }
5183 else
5184   { echo "$as_me:$LINENO: result: no" >&5
5185 echo "${ECHO_T}no" >&6; }
5186 fi
5187
5188
5189
5190 # Extract the first word of "cdrecord", so it can be a program name with args.
5191 set dummy cdrecord; ac_word=$2
5192 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5193 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5194 if test "${ac_cv_path_CDRECORD+set}" = set; then
5195   echo $ECHO_N "(cached) $ECHO_C" >&6
5196 else
5197   case $CDRECORD in
5198   [\\/]* | ?:[\\/]*)
5199   ac_cv_path_CDRECORD="$CDRECORD" # Let the user override the test with a path.
5200   ;;
5201   *)
5202   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5203 for as_dir in $PATH
5204 do
5205   IFS=$as_save_IFS
5206   test -z "$as_dir" && as_dir=.
5207   for ac_exec_ext in '' $ac_executable_extensions; do
5208   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5209     ac_cv_path_CDRECORD="$as_dir/$ac_word$ac_exec_ext"
5210     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5211     break 2
5212   fi
5213 done
5214 done
5215 IFS=$as_save_IFS
5216
5217   test -z "$ac_cv_path_CDRECORD" && ac_cv_path_CDRECORD="cdrecord"
5218   ;;
5219 esac
5220 fi
5221 CDRECORD=$ac_cv_path_CDRECORD
5222 if test -n "$CDRECORD"; then
5223   { echo "$as_me:$LINENO: result: $CDRECORD" >&5
5224 echo "${ECHO_T}$CDRECORD" >&6; }
5225 else
5226   { echo "$as_me:$LINENO: result: no" >&5
5227 echo "${ECHO_T}no" >&6; }
5228 fi
5229
5230
5231 # Extract the first word of "pidof", so it can be a program name with args.
5232 set dummy pidof; ac_word=$2
5233 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5234 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5235 if test "${ac_cv_path_PIDOF+set}" = set; then
5236   echo $ECHO_N "(cached) $ECHO_C" >&6
5237 else
5238   case $PIDOF in
5239   [\\/]* | ?:[\\/]*)
5240   ac_cv_path_PIDOF="$PIDOF" # Let the user override the test with a path.
5241   ;;
5242   *)
5243   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5244 for as_dir in $PATH
5245 do
5246   IFS=$as_save_IFS
5247   test -z "$as_dir" && as_dir=.
5248   for ac_exec_ext in '' $ac_executable_extensions; do
5249   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5250     ac_cv_path_PIDOF="$as_dir/$ac_word$ac_exec_ext"
5251     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5252     break 2
5253   fi
5254 done
5255 done
5256 IFS=$as_save_IFS
5257
5258   test -z "$ac_cv_path_PIDOF" && ac_cv_path_PIDOF="pidof"
5259   ;;
5260 esac
5261 fi
5262 PIDOF=$ac_cv_path_PIDOF
5263 if test -n "$PIDOF"; then
5264   { echo "$as_me:$LINENO: result: $PIDOF" >&5
5265 echo "${ECHO_T}$PIDOF" >&6; }
5266 else
5267   { echo "$as_me:$LINENO: result: no" >&5
5268 echo "${ECHO_T}no" >&6; }
5269 fi
5270
5271
5272 for ac_prog in gawk mawk nawk awk
5273 do
5274   # Extract the first word of "$ac_prog", so it can be a program name with args.
5275 set dummy $ac_prog; ac_word=$2
5276 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5277 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5278 if test "${ac_cv_prog_AWK+set}" = set; then
5279   echo $ECHO_N "(cached) $ECHO_C" >&6
5280 else
5281   if test -n "$AWK"; then
5282   ac_cv_prog_AWK="$AWK" # Let the user override the test.
5283 else
5284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5285 for as_dir in $PATH
5286 do
5287   IFS=$as_save_IFS
5288   test -z "$as_dir" && as_dir=.
5289   for ac_exec_ext in '' $ac_executable_extensions; do
5290   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5291     ac_cv_prog_AWK="$ac_prog"
5292     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5293     break 2
5294   fi
5295 done
5296 done
5297 IFS=$as_save_IFS
5298
5299 fi
5300 fi
5301 AWK=$ac_cv_prog_AWK
5302 if test -n "$AWK"; then
5303   { echo "$as_me:$LINENO: result: $AWK" >&5
5304 echo "${ECHO_T}$AWK" >&6; }
5305 else
5306   { echo "$as_me:$LINENO: result: no" >&5
5307 echo "${ECHO_T}no" >&6; }
5308 fi
5309
5310
5311   test -n "$AWK" && break
5312 done
5313
5314 # Some AWK programs fail, so test it and warn the user
5315 if echo xfoo | $AWK 'BEGIN { prog=ARGV1; ARGC=1 }
5316       { if ((prog == $2) || (("(" prog ")") == $2) ||
5317       (("" prog "") == $2) ||
5318       ((prog ":") == $2)) { print $1 ; exit 0 } }' xfoo>/dev/null; then :;
5319 else
5320   { { echo "$as_me:$LINENO: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
5321    The regex engine of $AWK is too broken to be used you
5322    might want to install GNU AWK.
5323    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&5
5324 echo "$as_me: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
5325    The regex engine of $AWK is too broken to be used you
5326    might want to install GNU AWK.
5327    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&2;}
5328    { (exit 1); exit 1; }; }
5329 fi
5330 THE_AWK=$AWK
5331 # Extract the first word of "$THE_AWK", so it can be a program name with args.
5332 set dummy $THE_AWK; ac_word=$2
5333 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5334 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5335 if test "${ac_cv_path_AWK+set}" = set; then
5336   echo $ECHO_N "(cached) $ECHO_C" >&6
5337 else
5338   case $AWK in
5339   [\\/]* | ?:[\\/]*)
5340   ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
5341   ;;
5342   *)
5343   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5344 for as_dir in $PATH
5345 do
5346   IFS=$as_save_IFS
5347   test -z "$as_dir" && as_dir=.
5348   for ac_exec_ext in '' $ac_executable_extensions; do
5349   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5350     ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
5351     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5352     break 2
5353   fi
5354 done
5355 done
5356 IFS=$as_save_IFS
5357
5358   test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="$THE_AWK"
5359   ;;
5360 esac
5361 fi
5362 AWK=$ac_cv_path_AWK
5363 if test -n "$AWK"; then
5364   { echo "$as_me:$LINENO: result: $AWK" >&5
5365 echo "${ECHO_T}$AWK" >&6; }
5366 else
5367   { echo "$as_me:$LINENO: result: no" >&5
5368 echo "${ECHO_T}no" >&6; }
5369 fi
5370
5371
5372
5373
5374 test -n "$ARFLAG" || ARFLAGS="cr"
5375
5376
5377 MAKE_SHELL=/bin/sh
5378
5379
5380
5381
5382
5383
5384
5385 # Check whether --enable-libtool was given.
5386 if test "${enable_libtool+set}" = set; then
5387   enableval=$enable_libtool;
5388        if test x$enableval = xno; then
5389           use_libtool=no
5390        fi
5391
5392
5393 fi
5394
5395 case `pwd` in
5396   *\ * | *\     *)
5397     { echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5398 echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5399 esac
5400
5401
5402
5403 macro_version='2.2.6'
5404 macro_revision='1.3012'
5405
5406
5407
5408
5409
5410
5411
5412
5413
5414
5415
5416
5417
5418 ltmain="$ac_aux_dir/ltmain.sh"
5419
5420 # Make sure we can run config.sub.
5421 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5422   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
5423 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
5424    { (exit 1); exit 1; }; }
5425
5426 { echo "$as_me:$LINENO: checking build system type" >&5
5427 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
5428 if test "${ac_cv_build+set}" = set; then
5429   echo $ECHO_N "(cached) $ECHO_C" >&6
5430 else
5431   ac_build_alias=$build_alias
5432 test "x$ac_build_alias" = x &&
5433   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5434 test "x$ac_build_alias" = x &&
5435   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
5436 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
5437    { (exit 1); exit 1; }; }
5438 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5439   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
5440 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
5441    { (exit 1); exit 1; }; }
5442
5443 fi
5444 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
5445 echo "${ECHO_T}$ac_cv_build" >&6; }
5446 case $ac_cv_build in
5447 *-*-*) ;;
5448 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
5449 echo "$as_me: error: invalid value of canonical build" >&2;}
5450    { (exit 1); exit 1; }; };;
5451 esac
5452 build=$ac_cv_build
5453 ac_save_IFS=$IFS; IFS='-'
5454 set x $ac_cv_build
5455 shift
5456 build_cpu=$1
5457 build_vendor=$2
5458 shift; shift
5459 # Remember, the first character of IFS is used to create $*,
5460 # except with old shells:
5461 build_os=$*
5462 IFS=$ac_save_IFS
5463 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5464
5465
5466 { echo "$as_me:$LINENO: checking host system type" >&5
5467 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
5468 if test "${ac_cv_host+set}" = set; then
5469   echo $ECHO_N "(cached) $ECHO_C" >&6
5470 else
5471   if test "x$host_alias" = x; then
5472   ac_cv_host=$ac_cv_build
5473 else
5474   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5475     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
5476 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
5477    { (exit 1); exit 1; }; }
5478 fi
5479
5480 fi
5481 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5482 echo "${ECHO_T}$ac_cv_host" >&6; }
5483 case $ac_cv_host in
5484 *-*-*) ;;
5485 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
5486 echo "$as_me: error: invalid value of canonical host" >&2;}
5487    { (exit 1); exit 1; }; };;
5488 esac
5489 host=$ac_cv_host
5490 ac_save_IFS=$IFS; IFS='-'
5491 set x $ac_cv_host
5492 shift
5493 host_cpu=$1
5494 host_vendor=$2
5495 shift; shift
5496 # Remember, the first character of IFS is used to create $*,
5497 # except with old shells:
5498 host_os=$*
5499 IFS=$ac_save_IFS
5500 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5501
5502
5503 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5504 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
5505 if test "${ac_cv_path_SED+set}" = set; then
5506   echo $ECHO_N "(cached) $ECHO_C" >&6
5507 else
5508             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5509      for ac_i in 1 2 3 4 5 6 7; do
5510        ac_script="$ac_script$as_nl$ac_script"
5511      done
5512      echo "$ac_script" | sed 99q >conftest.sed
5513      $as_unset ac_script || ac_script=
5514      # Extract the first word of "sed gsed" to use in msg output
5515 if test -z "$SED"; then
5516 set dummy sed gsed; ac_prog_name=$2
5517 if test "${ac_cv_path_SED+set}" = set; then
5518   echo $ECHO_N "(cached) $ECHO_C" >&6
5519 else
5520   ac_path_SED_found=false
5521 # Loop through the user's path and test for each of PROGNAME-LIST
5522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5523 for as_dir in $PATH
5524 do
5525   IFS=$as_save_IFS
5526   test -z "$as_dir" && as_dir=.
5527   for ac_prog in sed gsed; do
5528   for ac_exec_ext in '' $ac_executable_extensions; do
5529     ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5530     { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5531     # Check for GNU ac_path_SED and select it if it is found.
5532   # Check for GNU $ac_path_SED
5533 case `"$ac_path_SED" --version 2>&1` in
5534 *GNU*)
5535   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5536 *)
5537   ac_count=0
5538   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5539   while :
5540   do
5541     cat "conftest.in" "conftest.in" >"conftest.tmp"
5542     mv "conftest.tmp" "conftest.in"
5543     cp "conftest.in" "conftest.nl"
5544     echo '' >> "conftest.nl"
5545     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5546     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5547     ac_count=`expr $ac_count + 1`
5548     if test $ac_count -gt ${ac_path_SED_max-0}; then
5549       # Best one so far, save it but keep looking for a better one
5550       ac_cv_path_SED="$ac_path_SED"
5551       ac_path_SED_max=$ac_count
5552     fi
5553     # 10*(2^10) chars as input seems more than enough
5554     test $ac_count -gt 10 && break
5555   done
5556   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5557 esac
5558
5559
5560     $ac_path_SED_found && break 3
5561   done
5562 done
5563
5564 done
5565 IFS=$as_save_IFS
5566
5567
5568 fi
5569
5570 SED="$ac_cv_path_SED"
5571 if test -z "$SED"; then
5572   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in \$PATH" >&5
5573 echo "$as_me: error: no acceptable $ac_prog_name could be found in \$PATH" >&2;}
5574    { (exit 1); exit 1; }; }
5575 fi
5576
5577 else
5578   ac_cv_path_SED=$SED
5579 fi
5580
5581 fi
5582 { echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
5583 echo "${ECHO_T}$ac_cv_path_SED" >&6; }
5584  SED="$ac_cv_path_SED"
5585   rm -f conftest.sed
5586
5587 test -z "$SED" && SED=sed
5588 Xsed="$SED -e 1s/^X//"
5589
5590
5591
5592
5593
5594
5595
5596
5597
5598
5599
5600 { echo "$as_me:$LINENO: checking for fgrep" >&5
5601 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6; }
5602 if test "${ac_cv_path_FGREP+set}" = set; then
5603   echo $ECHO_N "(cached) $ECHO_C" >&6
5604 else
5605   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5606    then ac_cv_path_FGREP="$GREP -F"
5607    else
5608      # Extract the first word of "fgrep" to use in msg output
5609 if test -z "$FGREP"; then
5610 set dummy fgrep; ac_prog_name=$2
5611 if test "${ac_cv_path_FGREP+set}" = set; then
5612   echo $ECHO_N "(cached) $ECHO_C" >&6
5613 else
5614   ac_path_FGREP_found=false
5615 # Loop through the user's path and test for each of PROGNAME-LIST
5616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5617 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5618 do
5619   IFS=$as_save_IFS
5620   test -z "$as_dir" && as_dir=.
5621   for ac_prog in fgrep; do
5622   for ac_exec_ext in '' $ac_executable_extensions; do
5623     ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5624     { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5625     # Check for GNU ac_path_FGREP and select it if it is found.
5626   # Check for GNU $ac_path_FGREP
5627 case `"$ac_path_FGREP" --version 2>&1` in
5628 *GNU*)
5629   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5630 *)
5631   ac_count=0
5632   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5633   while :
5634   do
5635     cat "conftest.in" "conftest.in" >"conftest.tmp"
5636     mv "conftest.tmp" "conftest.in"
5637     cp "conftest.in" "conftest.nl"
5638     echo 'FGREP' >> "conftest.nl"
5639     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5640     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5641     ac_count=`expr $ac_count + 1`
5642     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5643       # Best one so far, save it but keep looking for a better one
5644       ac_cv_path_FGREP="$ac_path_FGREP"
5645       ac_path_FGREP_max=$ac_count
5646     fi
5647     # 10*(2^10) chars as input seems more than enough
5648     test $ac_count -gt 10 && break
5649   done
5650   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5651 esac
5652
5653
5654     $ac_path_FGREP_found && break 3
5655   done
5656 done
5657
5658 done
5659 IFS=$as_save_IFS
5660
5661
5662 fi
5663
5664 FGREP="$ac_cv_path_FGREP"
5665 if test -z "$FGREP"; then
5666   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5667 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5668    { (exit 1); exit 1; }; }
5669 fi
5670
5671 else
5672   ac_cv_path_FGREP=$FGREP
5673 fi
5674
5675
5676    fi
5677 fi
5678 { echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
5679 echo "${ECHO_T}$ac_cv_path_FGREP" >&6; }
5680  FGREP="$ac_cv_path_FGREP"
5681
5682
5683 test -z "$GREP" && GREP=grep
5684
5685
5686
5687
5688
5689
5690
5691
5692
5693
5694
5695
5696
5697
5698
5699
5700
5701
5702
5703 # Check whether --with-gnu-ld was given.
5704 if test "${with_gnu_ld+set}" = set; then
5705   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5706 else
5707   with_gnu_ld=no
5708 fi
5709
5710 ac_prog=ld
5711 if test "$GCC" = yes; then
5712   # Check if gcc -print-prog-name=ld gives a path.
5713   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5714 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
5715   case $host in
5716   *-*-mingw*)
5717     # gcc leaves a trailing carriage return which upsets mingw
5718     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5719   *)
5720     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5721   esac
5722   case $ac_prog in
5723     # Accept absolute paths.
5724     [\\/]* | ?:[\\/]*)
5725       re_direlt='/[^/][^/]*/\.\./'
5726       # Canonicalize the pathname of ld
5727       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5728       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5729         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5730       done
5731       test -z "$LD" && LD="$ac_prog"
5732       ;;
5733   "")
5734     # If it fails, then pretend we aren't using GCC.
5735     ac_prog=ld
5736     ;;
5737   *)
5738     # If it is relative, then search for the first ld in PATH.
5739     with_gnu_ld=unknown
5740     ;;
5741   esac
5742 elif test "$with_gnu_ld" = yes; then
5743   { echo "$as_me:$LINENO: checking for GNU ld" >&5
5744 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
5745 else
5746   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5747 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
5748 fi
5749 if test "${lt_cv_path_LD+set}" = set; then
5750   echo $ECHO_N "(cached) $ECHO_C" >&6
5751 else
5752   if test -z "$LD"; then
5753   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5754   for ac_dir in $PATH; do
5755     IFS="$lt_save_ifs"
5756     test -z "$ac_dir" && ac_dir=.
5757     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5758       lt_cv_path_LD="$ac_dir/$ac_prog"
5759       # Check to see if the program is GNU ld.  I'd rather use --version,
5760       # but apparently some variants of GNU ld only accept -v.
5761       # Break only if it was the GNU/non-GNU ld that we prefer.
5762       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5763       *GNU* | *'with BFD'*)
5764         test "$with_gnu_ld" != no && break
5765         ;;
5766       *)
5767         test "$with_gnu_ld" != yes && break
5768         ;;
5769       esac
5770     fi
5771   done
5772   IFS="$lt_save_ifs"
5773 else
5774   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5775 fi
5776 fi
5777
5778 LD="$lt_cv_path_LD"
5779 if test -n "$LD"; then
5780   { echo "$as_me:$LINENO: result: $LD" >&5
5781 echo "${ECHO_T}$LD" >&6; }
5782 else
5783   { echo "$as_me:$LINENO: result: no" >&5
5784 echo "${ECHO_T}no" >&6; }
5785 fi
5786 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5787 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5788    { (exit 1); exit 1; }; }
5789 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5790 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
5791 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5792   echo $ECHO_N "(cached) $ECHO_C" >&6
5793 else
5794   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5795 case `$LD -v 2>&1 </dev/null` in
5796 *GNU* | *'with BFD'*)
5797   lt_cv_prog_gnu_ld=yes
5798   ;;
5799 *)
5800   lt_cv_prog_gnu_ld=no
5801   ;;
5802 esac
5803 fi
5804 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5805 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
5806 with_gnu_ld=$lt_cv_prog_gnu_ld
5807
5808
5809
5810
5811
5812
5813
5814
5815
5816 { echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
5817 echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6; }
5818 if test "${lt_cv_path_NM+set}" = set; then
5819   echo $ECHO_N "(cached) $ECHO_C" >&6
5820 else
5821   if test -n "$NM"; then
5822   # Let the user override the test.
5823   lt_cv_path_NM="$NM"
5824 else
5825   lt_nm_to_check="${ac_tool_prefix}nm"
5826   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5827     lt_nm_to_check="$lt_nm_to_check nm"
5828   fi
5829   for lt_tmp_nm in $lt_nm_to_check; do
5830     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5831     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5832       IFS="$lt_save_ifs"
5833       test -z "$ac_dir" && ac_dir=.
5834       tmp_nm="$ac_dir/$lt_tmp_nm"
5835       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5836         # Check to see if the nm accepts a BSD-compat flag.
5837         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5838         #   nm: unknown option "B" ignored
5839         # Tru64's nm complains that /dev/null is an invalid object file
5840         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5841         */dev/null* | *'Invalid file or object type'*)
5842           lt_cv_path_NM="$tmp_nm -B"
5843           break
5844           ;;
5845         *)
5846           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5847           */dev/null*)
5848             lt_cv_path_NM="$tmp_nm -p"
5849             break
5850             ;;
5851           *)
5852             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5853             continue # so that we can try to find one that supports BSD flags
5854             ;;
5855           esac
5856           ;;
5857         esac
5858       fi
5859     done
5860     IFS="$lt_save_ifs"
5861   done
5862   : ${lt_cv_path_NM=no}
5863 fi
5864 fi
5865 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5866 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5867 if test "$lt_cv_path_NM" != "no"; then
5868   NM="$lt_cv_path_NM"
5869 else
5870   # Didn't find any BSD compatible name lister, look for dumpbin.
5871   if test -n "$ac_tool_prefix"; then
5872   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5873   do
5874     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5875 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5876 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5877 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5878 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
5879   echo $ECHO_N "(cached) $ECHO_C" >&6
5880 else
5881   if test -n "$DUMPBIN"; then
5882   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5883 else
5884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5885 for as_dir in $PATH
5886 do
5887   IFS=$as_save_IFS
5888   test -z "$as_dir" && as_dir=.
5889   for ac_exec_ext in '' $ac_executable_extensions; do
5890   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5891     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5892     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5893     break 2
5894   fi
5895 done
5896 done
5897 IFS=$as_save_IFS
5898
5899 fi
5900 fi
5901 DUMPBIN=$ac_cv_prog_DUMPBIN
5902 if test -n "$DUMPBIN"; then
5903   { echo "$as_me:$LINENO: result: $DUMPBIN" >&5
5904 echo "${ECHO_T}$DUMPBIN" >&6; }
5905 else
5906   { echo "$as_me:$LINENO: result: no" >&5
5907 echo "${ECHO_T}no" >&6; }
5908 fi
5909
5910
5911     test -n "$DUMPBIN" && break
5912   done
5913 fi
5914 if test -z "$DUMPBIN"; then
5915   ac_ct_DUMPBIN=$DUMPBIN
5916   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5917 do
5918   # Extract the first word of "$ac_prog", so it can be a program name with args.
5919 set dummy $ac_prog; ac_word=$2
5920 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5921 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5922 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
5923   echo $ECHO_N "(cached) $ECHO_C" >&6
5924 else
5925   if test -n "$ac_ct_DUMPBIN"; then
5926   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5927 else
5928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5929 for as_dir in $PATH
5930 do
5931   IFS=$as_save_IFS
5932   test -z "$as_dir" && as_dir=.
5933   for ac_exec_ext in '' $ac_executable_extensions; do
5934   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5935     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5936     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5937     break 2
5938   fi
5939 done
5940 done
5941 IFS=$as_save_IFS
5942
5943 fi
5944 fi
5945 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5946 if test -n "$ac_ct_DUMPBIN"; then
5947   { echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
5948 echo "${ECHO_T}$ac_ct_DUMPBIN" >&6; }
5949 else
5950   { echo "$as_me:$LINENO: result: no" >&5
5951 echo "${ECHO_T}no" >&6; }
5952 fi
5953
5954
5955   test -n "$ac_ct_DUMPBIN" && break
5956 done
5957
5958   if test "x$ac_ct_DUMPBIN" = x; then
5959     DUMPBIN=":"
5960   else
5961     case $cross_compiling:$ac_tool_warned in
5962 yes:)
5963 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5964 whose name does not start with the host triplet.  If you think this
5965 configuration is useful to you, please write to autoconf@gnu.org." >&5
5966 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5967 whose name does not start with the host triplet.  If you think this
5968 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5969 ac_tool_warned=yes ;;
5970 esac
5971     DUMPBIN=$ac_ct_DUMPBIN
5972   fi
5973 fi
5974
5975
5976   if test "$DUMPBIN" != ":"; then
5977     NM="$DUMPBIN"
5978   fi
5979 fi
5980 test -z "$NM" && NM=nm
5981
5982
5983
5984
5985
5986
5987 { echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
5988 echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6; }
5989 if test "${lt_cv_nm_interface+set}" = set; then
5990   echo $ECHO_N "(cached) $ECHO_C" >&6
5991 else
5992   lt_cv_nm_interface="BSD nm"
5993   echo "int some_variable = 0;" > conftest.$ac_ext
5994   (eval echo "\"\$as_me:5994: $ac_compile\"" >&5)
5995   (eval "$ac_compile" 2>conftest.err)
5996   cat conftest.err >&5
5997   (eval echo "\"\$as_me:5997: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5998   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5999   cat conftest.err >&5
6000   (eval echo "\"\$as_me:6000: output\"" >&5)
6001   cat conftest.out >&5
6002   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6003     lt_cv_nm_interface="MS dumpbin"
6004   fi
6005   rm -f conftest*
6006 fi
6007 { echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
6008 echo "${ECHO_T}$lt_cv_nm_interface" >&6; }
6009
6010 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6011 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6012 LN_S=$as_ln_s
6013 if test "$LN_S" = "ln -s"; then
6014   { echo "$as_me:$LINENO: result: yes" >&5
6015 echo "${ECHO_T}yes" >&6; }
6016 else
6017   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6018 echo "${ECHO_T}no, using $LN_S" >&6; }
6019 fi
6020
6021 # find the maximum length of command line arguments
6022 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6023 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6024 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6025   echo $ECHO_N "(cached) $ECHO_C" >&6
6026 else
6027     i=0
6028   teststring="ABCD"
6029
6030   case $build_os in
6031   msdosdjgpp*)
6032     # On DJGPP, this test can blow up pretty badly due to problems in libc
6033     # (any single argument exceeding 2000 bytes causes a buffer overrun
6034     # during glob expansion).  Even if it were fixed, the result of this
6035     # check would be larger than it should be.
6036     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6037     ;;
6038
6039   gnu*)
6040     # Under GNU Hurd, this test is not required because there is
6041     # no limit to the length of command line arguments.
6042     # Libtool will interpret -1 as no limit whatsoever
6043     lt_cv_sys_max_cmd_len=-1;
6044     ;;
6045
6046   cygwin* | mingw* | cegcc*)
6047     # On Win9x/ME, this test blows up -- it succeeds, but takes
6048     # about 5 minutes as the teststring grows exponentially.
6049     # Worse, since 9x/ME are not pre-emptively multitasking,
6050     # you end up with a "frozen" computer, even though with patience
6051     # the test eventually succeeds (with a max line length of 256k).
6052     # Instead, let's just punt: use the minimum linelength reported by
6053     # all of the supported platforms: 8192 (on NT/2K/XP).
6054     lt_cv_sys_max_cmd_len=8192;
6055     ;;
6056
6057   amigaos*)
6058     # On AmigaOS with pdksh, this test takes hours, literally.
6059     # So we just punt and use a minimum line length of 8192.
6060     lt_cv_sys_max_cmd_len=8192;
6061     ;;
6062
6063   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6064     # This has been around since 386BSD, at least.  Likely further.
6065     if test -x /sbin/sysctl; then
6066       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6067     elif test -x /usr/sbin/sysctl; then
6068       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6069     else
6070       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6071     fi
6072     # And add a safety zone
6073     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6074     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6075     ;;
6076
6077   interix*)
6078     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6079     lt_cv_sys_max_cmd_len=196608
6080     ;;
6081
6082   osf*)
6083     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6084     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6085     # nice to cause kernel panics so lets avoid the loop below.
6086     # First set a reasonable default.
6087     lt_cv_sys_max_cmd_len=16384
6088     #
6089     if test -x /sbin/sysconfig; then
6090       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6091         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6092       esac
6093     fi
6094     ;;
6095   sco3.2v5*)
6096     lt_cv_sys_max_cmd_len=102400
6097     ;;
6098   sysv5* | sco5v6* | sysv4.2uw2*)
6099     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6100     if test -n "$kargmax"; then
6101       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
6102     else
6103       lt_cv_sys_max_cmd_len=32768
6104     fi
6105     ;;
6106   *)
6107     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6108     if test -n "$lt_cv_sys_max_cmd_len"; then
6109       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6110       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6111     else
6112       # Make teststring a little bigger before we do anything with it.
6113       # a 1K string should be a reasonable start.
6114       for i in 1 2 3 4 5 6 7 8 ; do
6115         teststring=$teststring$teststring
6116       done
6117       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6118       # If test is not a shell built-in, we'll probably end up computing a
6119       # maximum length that is only half of the actual maximum length, but
6120       # we can't tell.
6121       while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
6122                  = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
6123               test $i != 17 # 1/2 MB should be enough
6124       do
6125         i=`expr $i + 1`
6126         teststring=$teststring$teststring
6127       done
6128       # Only check the string length outside the loop.
6129       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6130       teststring=
6131       # Add a significant safety factor because C++ compilers can tack on
6132       # massive amounts of additional arguments before passing them to the
6133       # linker.  It appears as though 1/2 is a usable value.
6134       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6135     fi
6136     ;;
6137   esac
6138
6139 fi
6140
6141 if test -n $lt_cv_sys_max_cmd_len ; then
6142   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6143 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6144 else
6145   { echo "$as_me:$LINENO: result: none" >&5
6146 echo "${ECHO_T}none" >&6; }
6147 fi
6148 max_cmd_len=$lt_cv_sys_max_cmd_len
6149
6150
6151
6152
6153
6154
6155 : ${CP="cp -f"}
6156 : ${MV="mv -f"}
6157 : ${RM="rm -f"}
6158
6159 { echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
6160 echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6; }
6161 # Try some XSI features
6162 xsi_shell=no
6163 ( _lt_dummy="a/b/c"
6164   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6165       = c,a/b,, \
6166     && eval 'test $(( 1 + 1 )) -eq 2 \
6167     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6168   && xsi_shell=yes
6169 { echo "$as_me:$LINENO: result: $xsi_shell" >&5
6170 echo "${ECHO_T}$xsi_shell" >&6; }
6171
6172
6173 { echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
6174 echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6; }
6175 lt_shell_append=no
6176 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6177     >/dev/null 2>&1 \
6178   && lt_shell_append=yes
6179 { echo "$as_me:$LINENO: result: $lt_shell_append" >&5
6180 echo "${ECHO_T}$lt_shell_append" >&6; }
6181
6182
6183 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6184   lt_unset=unset
6185 else
6186   lt_unset=false
6187 fi
6188
6189
6190
6191
6192
6193 # test EBCDIC or ASCII
6194 case `echo X|tr X '\101'` in
6195  A) # ASCII based system
6196     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6197   lt_SP2NL='tr \040 \012'
6198   lt_NL2SP='tr \015\012 \040\040'
6199   ;;
6200  *) # EBCDIC based system
6201   lt_SP2NL='tr \100 \n'
6202   lt_NL2SP='tr \r\n \100\100'
6203   ;;
6204 esac
6205
6206
6207
6208
6209
6210
6211
6212
6213
6214 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6215 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
6216 if test "${lt_cv_ld_reload_flag+set}" = set; then
6217   echo $ECHO_N "(cached) $ECHO_C" >&6
6218 else
6219   lt_cv_ld_reload_flag='-r'
6220 fi
6221 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6222 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
6223 reload_flag=$lt_cv_ld_reload_flag
6224 case $reload_flag in
6225 "" | " "*) ;;
6226 *) reload_flag=" $reload_flag" ;;
6227 esac
6228 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6229 case $host_os in
6230   darwin*)
6231     if test "$GCC" = yes; then
6232       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6233     else
6234       reload_cmds='$LD$reload_flag -o $output$reload_objs'
6235     fi
6236     ;;
6237 esac
6238
6239
6240
6241
6242
6243
6244
6245
6246
6247 if test -n "$ac_tool_prefix"; then
6248   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6249 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6250 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6251 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6252 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
6253   echo $ECHO_N "(cached) $ECHO_C" >&6
6254 else
6255   if test -n "$OBJDUMP"; then
6256   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6257 else
6258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6259 for as_dir in $PATH
6260 do
6261   IFS=$as_save_IFS
6262   test -z "$as_dir" && as_dir=.
6263   for ac_exec_ext in '' $ac_executable_extensions; do
6264   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6265     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6266     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6267     break 2
6268   fi
6269 done
6270 done
6271 IFS=$as_save_IFS
6272
6273 fi
6274 fi
6275 OBJDUMP=$ac_cv_prog_OBJDUMP
6276 if test -n "$OBJDUMP"; then
6277   { echo "$as_me:$LINENO: result: $OBJDUMP" >&5
6278 echo "${ECHO_T}$OBJDUMP" >&6; }
6279 else
6280   { echo "$as_me:$LINENO: result: no" >&5
6281 echo "${ECHO_T}no" >&6; }
6282 fi
6283
6284
6285 fi
6286 if test -z "$ac_cv_prog_OBJDUMP"; then
6287   ac_ct_OBJDUMP=$OBJDUMP
6288   # Extract the first word of "objdump", so it can be a program name with args.
6289 set dummy objdump; ac_word=$2
6290 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6291 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6292 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
6293   echo $ECHO_N "(cached) $ECHO_C" >&6
6294 else
6295   if test -n "$ac_ct_OBJDUMP"; then
6296   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6297 else
6298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6299 for as_dir in $PATH
6300 do
6301   IFS=$as_save_IFS
6302   test -z "$as_dir" && as_dir=.
6303   for ac_exec_ext in '' $ac_executable_extensions; do
6304   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6305     ac_cv_prog_ac_ct_OBJDUMP="objdump"
6306     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6307     break 2
6308   fi
6309 done
6310 done
6311 IFS=$as_save_IFS
6312
6313 fi
6314 fi
6315 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6316 if test -n "$ac_ct_OBJDUMP"; then
6317   { echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
6318 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6; }
6319 else
6320   { echo "$as_me:$LINENO: result: no" >&5
6321 echo "${ECHO_T}no" >&6; }
6322 fi
6323
6324   if test "x$ac_ct_OBJDUMP" = x; then
6325     OBJDUMP="false"
6326   else
6327     case $cross_compiling:$ac_tool_warned in
6328 yes:)
6329 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6330 whose name does not start with the host triplet.  If you think this
6331 configuration is useful to you, please write to autoconf@gnu.org." >&5
6332 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6333 whose name does not start with the host triplet.  If you think this
6334 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6335 ac_tool_warned=yes ;;
6336 esac
6337     OBJDUMP=$ac_ct_OBJDUMP
6338   fi
6339 else
6340   OBJDUMP="$ac_cv_prog_OBJDUMP"
6341 fi
6342
6343 test -z "$OBJDUMP" && OBJDUMP=objdump
6344
6345
6346
6347
6348
6349
6350
6351
6352
6353 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
6354 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
6355 if test "${lt_cv_deplibs_check_method+set}" = set; then
6356   echo $ECHO_N "(cached) $ECHO_C" >&6
6357 else
6358   lt_cv_file_magic_cmd='$MAGIC_CMD'
6359 lt_cv_file_magic_test_file=
6360 lt_cv_deplibs_check_method='unknown'
6361 # Need to set the preceding variable on all platforms that support
6362 # interlibrary dependencies.
6363 # 'none' -- dependencies not supported.
6364 # `unknown' -- same as none, but documents that we really don't know.
6365 # 'pass_all' -- all dependencies passed with no checks.
6366 # 'test_compile' -- check by making test program.
6367 # 'file_magic [[regex]]' -- check by looking for files in library path
6368 # which responds to the $file_magic_cmd with a given extended regex.
6369 # If you have `file' or equivalent on your system and you're not sure
6370 # whether `pass_all' will *always* work, you probably want this one.
6371
6372 case $host_os in
6373 aix[4-9]*)
6374   lt_cv_deplibs_check_method=pass_all
6375   ;;
6376
6377 beos*)
6378   lt_cv_deplibs_check_method=pass_all
6379   ;;
6380
6381 bsdi[45]*)
6382   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6383   lt_cv_file_magic_cmd='/usr/bin/file -L'
6384   lt_cv_file_magic_test_file=/shlib/libc.so
6385   ;;
6386
6387 cygwin*)
6388   # func_win32_libid is a shell function defined in ltmain.sh
6389   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6390   lt_cv_file_magic_cmd='func_win32_libid'
6391   ;;
6392
6393 mingw* | pw32*)
6394   # Base MSYS/MinGW do not provide the 'file' command needed by
6395   # func_win32_libid shell function, so use a weaker test based on 'objdump',
6396   # unless we find 'file', for example because we are cross-compiling.
6397   if ( file / ) >/dev/null 2>&1; then
6398     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6399     lt_cv_file_magic_cmd='func_win32_libid'
6400   else
6401     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6402     lt_cv_file_magic_cmd='$OBJDUMP -f'
6403   fi
6404   ;;
6405
6406 cegcc)
6407   # use the weaker test based on 'objdump'. See mingw*.
6408   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6409   lt_cv_file_magic_cmd='$OBJDUMP -f'
6410   ;;
6411
6412 darwin* | rhapsody*)
6413   lt_cv_deplibs_check_method=pass_all
6414   ;;
6415
6416 freebsd* | dragonfly*)
6417   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6418     case $host_cpu in
6419     i*86 )
6420       # Not sure whether the presence of OpenBSD here was a mistake.
6421       # Let's accept both of them until this is cleared up.
6422       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6423       lt_cv_file_magic_cmd=/usr/bin/file
6424       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6425       ;;
6426     esac
6427   else
6428     lt_cv_deplibs_check_method=pass_all
6429   fi
6430   ;;
6431
6432 gnu*)
6433   lt_cv_deplibs_check_method=pass_all
6434   ;;
6435
6436 hpux10.20* | hpux11*)
6437   lt_cv_file_magic_cmd=/usr/bin/file
6438   case $host_cpu in
6439   ia64*)
6440     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6441     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6442     ;;
6443   hppa*64*)
6444     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]'
6445     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6446     ;;
6447   *)
6448     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6449     lt_cv_file_magic_test_file=/usr/lib/libc.sl
6450     ;;
6451   esac
6452   ;;
6453
6454 interix[3-9]*)
6455   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6456   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6457   ;;
6458
6459 irix5* | irix6* | nonstopux*)
6460   case $LD in
6461   *-32|*"-32 ") libmagic=32-bit;;
6462   *-n32|*"-n32 ") libmagic=N32;;
6463   *-64|*"-64 ") libmagic=64-bit;;
6464   *) libmagic=never-match;;
6465   esac
6466   lt_cv_deplibs_check_method=pass_all
6467   ;;
6468
6469 # This must be Linux ELF.
6470 linux* | k*bsd*-gnu)
6471   lt_cv_deplibs_check_method=pass_all
6472   ;;
6473
6474 netbsd*)
6475   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6476     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6477   else
6478     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6479   fi
6480   ;;
6481
6482 newos6*)
6483   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6484   lt_cv_file_magic_cmd=/usr/bin/file
6485   lt_cv_file_magic_test_file=/usr/lib/libnls.so
6486   ;;
6487
6488 *nto* | *qnx*)
6489   lt_cv_deplibs_check_method=pass_all
6490   ;;
6491
6492 openbsd*)
6493   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6494     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6495   else
6496     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6497   fi
6498   ;;
6499
6500 osf3* | osf4* | osf5*)
6501   lt_cv_deplibs_check_method=pass_all
6502   ;;
6503
6504 rdos*)
6505   lt_cv_deplibs_check_method=pass_all
6506   ;;
6507
6508 solaris*)
6509   lt_cv_deplibs_check_method=pass_all
6510   ;;
6511
6512 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6513   lt_cv_deplibs_check_method=pass_all
6514   ;;
6515
6516 sysv4 | sysv4.3*)
6517   case $host_vendor in
6518   motorola)
6519     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]'
6520     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6521     ;;
6522   ncr)
6523     lt_cv_deplibs_check_method=pass_all
6524     ;;
6525   sequent)
6526     lt_cv_file_magic_cmd='/bin/file'
6527     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6528     ;;
6529   sni)
6530     lt_cv_file_magic_cmd='/bin/file'
6531     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6532     lt_cv_file_magic_test_file=/lib/libc.so
6533     ;;
6534   siemens)
6535     lt_cv_deplibs_check_method=pass_all
6536     ;;
6537   pc)
6538     lt_cv_deplibs_check_method=pass_all
6539     ;;
6540   esac
6541   ;;
6542
6543 tpf*)
6544   lt_cv_deplibs_check_method=pass_all
6545   ;;
6546 esac
6547
6548 fi
6549 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6550 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
6551 file_magic_cmd=$lt_cv_file_magic_cmd
6552 deplibs_check_method=$lt_cv_deplibs_check_method
6553 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6554
6555
6556
6557
6558
6559
6560
6561
6562
6563
6564
6565
6566 if test -n "$ac_tool_prefix"; then
6567   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6568 set dummy ${ac_tool_prefix}ar; ac_word=$2
6569 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6570 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6571 if test "${ac_cv_prog_AR+set}" = set; then
6572   echo $ECHO_N "(cached) $ECHO_C" >&6
6573 else
6574   if test -n "$AR"; then
6575   ac_cv_prog_AR="$AR" # Let the user override the test.
6576 else
6577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6578 for as_dir in $PATH
6579 do
6580   IFS=$as_save_IFS
6581   test -z "$as_dir" && as_dir=.
6582   for ac_exec_ext in '' $ac_executable_extensions; do
6583   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6584     ac_cv_prog_AR="${ac_tool_prefix}ar"
6585     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6586     break 2
6587   fi
6588 done
6589 done
6590 IFS=$as_save_IFS
6591
6592 fi
6593 fi
6594 AR=$ac_cv_prog_AR
6595 if test -n "$AR"; then
6596   { echo "$as_me:$LINENO: result: $AR" >&5
6597 echo "${ECHO_T}$AR" >&6; }
6598 else
6599   { echo "$as_me:$LINENO: result: no" >&5
6600 echo "${ECHO_T}no" >&6; }
6601 fi
6602
6603
6604 fi
6605 if test -z "$ac_cv_prog_AR"; then
6606   ac_ct_AR=$AR
6607   # Extract the first word of "ar", so it can be a program name with args.
6608 set dummy ar; ac_word=$2
6609 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6610 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6611 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6612   echo $ECHO_N "(cached) $ECHO_C" >&6
6613 else
6614   if test -n "$ac_ct_AR"; then
6615   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6616 else
6617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6618 for as_dir in $PATH
6619 do
6620   IFS=$as_save_IFS
6621   test -z "$as_dir" && as_dir=.
6622   for ac_exec_ext in '' $ac_executable_extensions; do
6623   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6624     ac_cv_prog_ac_ct_AR="ar"
6625     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6626     break 2
6627   fi
6628 done
6629 done
6630 IFS=$as_save_IFS
6631
6632 fi
6633 fi
6634 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6635 if test -n "$ac_ct_AR"; then
6636   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6637 echo "${ECHO_T}$ac_ct_AR" >&6; }
6638 else
6639   { echo "$as_me:$LINENO: result: no" >&5
6640 echo "${ECHO_T}no" >&6; }
6641 fi
6642
6643   if test "x$ac_ct_AR" = x; then
6644     AR="false"
6645   else
6646     case $cross_compiling:$ac_tool_warned in
6647 yes:)
6648 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6649 whose name does not start with the host triplet.  If you think this
6650 configuration is useful to you, please write to autoconf@gnu.org." >&5
6651 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6652 whose name does not start with the host triplet.  If you think this
6653 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6654 ac_tool_warned=yes ;;
6655 esac
6656     AR=$ac_ct_AR
6657   fi
6658 else
6659   AR="$ac_cv_prog_AR"
6660 fi
6661
6662 test -z "$AR" && AR=ar
6663 test -z "$AR_FLAGS" && AR_FLAGS=cru
6664
6665
6666
6667
6668
6669
6670
6671
6672
6673
6674
6675 if test -n "$ac_tool_prefix"; then
6676   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6677 set dummy ${ac_tool_prefix}strip; ac_word=$2
6678 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6679 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6680 if test "${ac_cv_prog_STRIP+set}" = set; then
6681   echo $ECHO_N "(cached) $ECHO_C" >&6
6682 else
6683   if test -n "$STRIP"; then
6684   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6685 else
6686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6687 for as_dir in $PATH
6688 do
6689   IFS=$as_save_IFS
6690   test -z "$as_dir" && as_dir=.
6691   for ac_exec_ext in '' $ac_executable_extensions; do
6692   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6693     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6694     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6695     break 2
6696   fi
6697 done
6698 done
6699 IFS=$as_save_IFS
6700
6701 fi
6702 fi
6703 STRIP=$ac_cv_prog_STRIP
6704 if test -n "$STRIP"; then
6705   { echo "$as_me:$LINENO: result: $STRIP" >&5
6706 echo "${ECHO_T}$STRIP" >&6; }
6707 else
6708   { echo "$as_me:$LINENO: result: no" >&5
6709 echo "${ECHO_T}no" >&6; }
6710 fi
6711
6712
6713 fi
6714 if test -z "$ac_cv_prog_STRIP"; then
6715   ac_ct_STRIP=$STRIP
6716   # Extract the first word of "strip", so it can be a program name with args.
6717 set dummy strip; ac_word=$2
6718 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6719 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6720 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6721   echo $ECHO_N "(cached) $ECHO_C" >&6
6722 else
6723   if test -n "$ac_ct_STRIP"; then
6724   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6725 else
6726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6727 for as_dir in $PATH
6728 do
6729   IFS=$as_save_IFS
6730   test -z "$as_dir" && as_dir=.
6731   for ac_exec_ext in '' $ac_executable_extensions; do
6732   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6733     ac_cv_prog_ac_ct_STRIP="strip"
6734     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6735     break 2
6736   fi
6737 done
6738 done
6739 IFS=$as_save_IFS
6740
6741 fi
6742 fi
6743 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6744 if test -n "$ac_ct_STRIP"; then
6745   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6746 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6747 else
6748   { echo "$as_me:$LINENO: result: no" >&5
6749 echo "${ECHO_T}no" >&6; }
6750 fi
6751
6752   if test "x$ac_ct_STRIP" = x; then
6753     STRIP=":"
6754   else
6755     case $cross_compiling:$ac_tool_warned in
6756 yes:)
6757 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6758 whose name does not start with the host triplet.  If you think this
6759 configuration is useful to you, please write to autoconf@gnu.org." >&5
6760 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6761 whose name does not start with the host triplet.  If you think this
6762 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6763 ac_tool_warned=yes ;;
6764 esac
6765     STRIP=$ac_ct_STRIP
6766   fi
6767 else
6768   STRIP="$ac_cv_prog_STRIP"
6769 fi
6770
6771 test -z "$STRIP" && STRIP=:
6772
6773
6774
6775
6776
6777
6778 if test -n "$ac_tool_prefix"; then
6779   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6780 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6781 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6782 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6783 if test "${ac_cv_prog_RANLIB+set}" = set; then
6784   echo $ECHO_N "(cached) $ECHO_C" >&6
6785 else
6786   if test -n "$RANLIB"; then
6787   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6788 else
6789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6790 for as_dir in $PATH
6791 do
6792   IFS=$as_save_IFS
6793   test -z "$as_dir" && as_dir=.
6794   for ac_exec_ext in '' $ac_executable_extensions; do
6795   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6796     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6797     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6798     break 2
6799   fi
6800 done
6801 done
6802 IFS=$as_save_IFS
6803
6804 fi
6805 fi
6806 RANLIB=$ac_cv_prog_RANLIB
6807 if test -n "$RANLIB"; then
6808   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6809 echo "${ECHO_T}$RANLIB" >&6; }
6810 else
6811   { echo "$as_me:$LINENO: result: no" >&5
6812 echo "${ECHO_T}no" >&6; }
6813 fi
6814
6815
6816 fi
6817 if test -z "$ac_cv_prog_RANLIB"; then
6818   ac_ct_RANLIB=$RANLIB
6819   # Extract the first word of "ranlib", so it can be a program name with args.
6820 set dummy ranlib; ac_word=$2
6821 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6822 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6823 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6824   echo $ECHO_N "(cached) $ECHO_C" >&6
6825 else
6826   if test -n "$ac_ct_RANLIB"; then
6827   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6828 else
6829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6830 for as_dir in $PATH
6831 do
6832   IFS=$as_save_IFS
6833   test -z "$as_dir" && as_dir=.
6834   for ac_exec_ext in '' $ac_executable_extensions; do
6835   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6836     ac_cv_prog_ac_ct_RANLIB="ranlib"
6837     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6838     break 2
6839   fi
6840 done
6841 done
6842 IFS=$as_save_IFS
6843
6844 fi
6845 fi
6846 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6847 if test -n "$ac_ct_RANLIB"; then
6848   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6849 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6850 else
6851   { echo "$as_me:$LINENO: result: no" >&5
6852 echo "${ECHO_T}no" >&6; }
6853 fi
6854
6855   if test "x$ac_ct_RANLIB" = x; then
6856     RANLIB=":"
6857   else
6858     case $cross_compiling:$ac_tool_warned in
6859 yes:)
6860 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6861 whose name does not start with the host triplet.  If you think this
6862 configuration is useful to you, please write to autoconf@gnu.org." >&5
6863 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6864 whose name does not start with the host triplet.  If you think this
6865 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6866 ac_tool_warned=yes ;;
6867 esac
6868     RANLIB=$ac_ct_RANLIB
6869   fi
6870 else
6871   RANLIB="$ac_cv_prog_RANLIB"
6872 fi
6873
6874 test -z "$RANLIB" && RANLIB=:
6875
6876
6877
6878
6879
6880
6881 # Determine commands to create old-style static archives.
6882 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6883 old_postinstall_cmds='chmod 644 $oldlib'
6884 old_postuninstall_cmds=
6885
6886 if test -n "$RANLIB"; then
6887   case $host_os in
6888   openbsd*)
6889     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6890     ;;
6891   *)
6892     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6893     ;;
6894   esac
6895   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6896 fi
6897
6898
6899
6900
6901
6902
6903
6904
6905
6906
6907
6908
6909
6910
6911
6912
6913
6914
6915
6916
6917
6918
6919
6920
6921
6922
6923
6924
6925
6926
6927
6928
6929
6930
6931 # If no C compiler was specified, use CC.
6932 LTCC=${LTCC-"$CC"}
6933
6934 # If no C compiler flags were specified, use CFLAGS.
6935 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6936
6937 # Allow CC to be a program name with arguments.
6938 compiler=$CC
6939
6940
6941 # Check for command to grab the raw symbol name followed by C symbol from nm.
6942 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6943 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6944 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6945   echo $ECHO_N "(cached) $ECHO_C" >&6
6946 else
6947
6948 # These are sane defaults that work on at least a few old systems.
6949 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6950
6951 # Character class describing NM global symbol codes.
6952 symcode='[BCDEGRST]'
6953
6954 # Regexp to match symbols that can be accessed directly from C.
6955 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6956
6957 # Define system-specific variables.
6958 case $host_os in
6959 aix*)
6960   symcode='[BCDT]'
6961   ;;
6962 cygwin* | mingw* | pw32* | cegcc*)
6963   symcode='[ABCDGISTW]'
6964   ;;
6965 hpux*)
6966   if test "$host_cpu" = ia64; then
6967     symcode='[ABCDEGRST]'
6968   fi
6969   ;;
6970 irix* | nonstopux*)
6971   symcode='[BCDEGRST]'
6972   ;;
6973 osf*)
6974   symcode='[BCDEGQRST]'
6975   ;;
6976 solaris*)
6977   symcode='[BDRT]'
6978   ;;
6979 sco3.2v5*)
6980   symcode='[DT]'
6981   ;;
6982 sysv4.2uw2*)
6983   symcode='[DT]'
6984   ;;
6985 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6986   symcode='[ABDT]'
6987   ;;
6988 sysv4)
6989   symcode='[DFNSTU]'
6990   ;;
6991 esac
6992
6993 # If we're using GNU nm, then use its standard symbol codes.
6994 case `$NM -V 2>&1` in
6995 *GNU* | *'with BFD'*)
6996   symcode='[ABCDGIRSTW]' ;;
6997 esac
6998
6999 # Transform an extracted symbol line into a proper C declaration.
7000 # Some systems (esp. on ia64) link data and code symbols differently,
7001 # so use this general approach.
7002 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7003
7004 # Transform an extracted symbol line into symbol name and symbol address
7005 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
7006 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'"
7007
7008 # Handle CRLF in mingw tool chain
7009 opt_cr=
7010 case $build_os in
7011 mingw*)
7012   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7013   ;;
7014 esac
7015
7016 # Try without a prefix underscore, then with it.
7017 for ac_symprfx in "" "_"; do
7018
7019   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7020   symxfrm="\\1 $ac_symprfx\\2 \\2"
7021
7022   # Write the raw and C identifiers.
7023   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7024     # Fake it for dumpbin and say T for any non-static function
7025     # and D for any global variable.
7026     # Also find C++ and __fastcall symbols from MSVC++,
7027     # which start with @ or ?.
7028     lt_cv_sys_global_symbol_pipe="$AWK '"\
7029 "     {last_section=section; section=\$ 3};"\
7030 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7031 "     \$ 0!~/External *\|/{next};"\
7032 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7033 "     {if(hide[section]) next};"\
7034 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7035 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7036 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
7037 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7038 "     ' prfx=^$ac_symprfx"
7039   else
7040     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7041   fi
7042
7043   # Check to see that the pipe works correctly.
7044   pipe_works=no
7045
7046   rm -f conftest*
7047   cat > conftest.$ac_ext <<_LT_EOF
7048 #ifdef __cplusplus
7049 extern "C" {
7050 #endif
7051 char nm_test_var;
7052 void nm_test_func(void);
7053 void nm_test_func(void){}
7054 #ifdef __cplusplus
7055 }
7056 #endif
7057 int main(){nm_test_var='a';nm_test_func();return(0);}
7058 _LT_EOF
7059
7060   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7061   (eval $ac_compile) 2>&5
7062   ac_status=$?
7063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7064   (exit $ac_status); }; then
7065     # Now try to grab the symbols.
7066     nlist=conftest.nm
7067     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7068   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7069   ac_status=$?
7070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7071   (exit $ac_status); } && test -s "$nlist"; then
7072       # Try sorting and uniquifying the output.
7073       if sort "$nlist" | uniq > "$nlist"T; then
7074         mv -f "$nlist"T "$nlist"
7075       else
7076         rm -f "$nlist"T
7077       fi
7078
7079       # Make sure that we snagged all the symbols we need.
7080       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7081         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7082           cat <<_LT_EOF > conftest.$ac_ext
7083 #ifdef __cplusplus
7084 extern "C" {
7085 #endif
7086
7087 _LT_EOF
7088           # Now generate the symbol file.
7089           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7090
7091           cat <<_LT_EOF >> conftest.$ac_ext
7092
7093 /* The mapping between symbol names and symbols.  */
7094 const struct {
7095   const char *name;
7096   void       *address;
7097 }
7098 lt__PROGRAM__LTX_preloaded_symbols[] =
7099 {
7100   { "@PROGRAM@", (void *) 0 },
7101 _LT_EOF
7102           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7103           cat <<\_LT_EOF >> conftest.$ac_ext
7104   {0, (void *) 0}
7105 };
7106
7107 /* This works around a problem in FreeBSD linker */
7108 #ifdef FREEBSD_WORKAROUND
7109 static const void *lt_preloaded_setup() {
7110   return lt__PROGRAM__LTX_preloaded_symbols;
7111 }
7112 #endif
7113
7114 #ifdef __cplusplus
7115 }
7116 #endif
7117 _LT_EOF
7118           # Now try linking the two files.
7119           mv conftest.$ac_objext conftstm.$ac_objext
7120           lt_save_LIBS="$LIBS"
7121           lt_save_CFLAGS="$CFLAGS"
7122           LIBS="conftstm.$ac_objext"
7123           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7124           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7125   (eval $ac_link) 2>&5
7126   ac_status=$?
7127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7128   (exit $ac_status); } && test -s conftest${ac_exeext}; then
7129             pipe_works=yes
7130           fi
7131           LIBS="$lt_save_LIBS"
7132           CFLAGS="$lt_save_CFLAGS"
7133         else
7134           echo "cannot find nm_test_func in $nlist" >&5
7135         fi
7136       else
7137         echo "cannot find nm_test_var in $nlist" >&5
7138       fi
7139     else
7140       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7141     fi
7142   else
7143     echo "$progname: failed program was:" >&5
7144     cat conftest.$ac_ext >&5
7145   fi
7146   rm -rf conftest* conftst*
7147
7148   # Do not use the global_symbol_pipe unless it works.
7149   if test "$pipe_works" = yes; then
7150     break
7151   else
7152     lt_cv_sys_global_symbol_pipe=
7153   fi
7154 done
7155
7156 fi
7157
7158 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7159   lt_cv_sys_global_symbol_to_cdecl=
7160 fi
7161 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7162   { echo "$as_me:$LINENO: result: failed" >&5
7163 echo "${ECHO_T}failed" >&6; }
7164 else
7165   { echo "$as_me:$LINENO: result: ok" >&5
7166 echo "${ECHO_T}ok" >&6; }
7167 fi
7168
7169
7170
7171
7172
7173
7174
7175
7176
7177
7178
7179
7180
7181
7182
7183
7184
7185
7186
7187
7188
7189
7190 # Check whether --enable-libtool-lock was given.
7191 if test "${enable_libtool_lock+set}" = set; then
7192   enableval=$enable_libtool_lock;
7193 fi
7194
7195 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7196
7197 # Some flags need to be propagated to the compiler or linker for good
7198 # libtool support.
7199 case $host in
7200 ia64-*-hpux*)
7201   # Find out which ABI we are using.
7202   echo 'int i;' > conftest.$ac_ext
7203   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7204   (eval $ac_compile) 2>&5
7205   ac_status=$?
7206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7207   (exit $ac_status); }; then
7208     case `/usr/bin/file conftest.$ac_objext` in
7209       *ELF-32*)
7210         HPUX_IA64_MODE="32"
7211         ;;
7212       *ELF-64*)
7213         HPUX_IA64_MODE="64"
7214         ;;
7215     esac
7216   fi
7217   rm -rf conftest*
7218   ;;
7219 *-*-irix6*)
7220   # Find out which ABI we are using.
7221   echo '#line 7221 "configure"' > conftest.$ac_ext
7222   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7223   (eval $ac_compile) 2>&5
7224   ac_status=$?
7225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7226   (exit $ac_status); }; then
7227     if test "$lt_cv_prog_gnu_ld" = yes; then
7228       case `/usr/bin/file conftest.$ac_objext` in
7229         *32-bit*)
7230           LD="${LD-ld} -melf32bsmip"
7231           ;;
7232         *N32*)
7233           LD="${LD-ld} -melf32bmipn32"
7234           ;;
7235         *64-bit*)
7236           LD="${LD-ld} -melf64bmip"
7237         ;;
7238       esac
7239     else
7240       case `/usr/bin/file conftest.$ac_objext` in
7241         *32-bit*)
7242           LD="${LD-ld} -32"
7243           ;;
7244         *N32*)
7245           LD="${LD-ld} -n32"
7246           ;;
7247         *64-bit*)
7248           LD="${LD-ld} -64"
7249           ;;
7250       esac
7251     fi
7252   fi
7253   rm -rf conftest*
7254   ;;
7255
7256 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7257 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7258   # Find out which ABI we are using.
7259   echo 'int i;' > conftest.$ac_ext
7260   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7261   (eval $ac_compile) 2>&5
7262   ac_status=$?
7263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7264   (exit $ac_status); }; then
7265     case `/usr/bin/file conftest.o` in
7266       *32-bit*)
7267         case $host in
7268           x86_64-*kfreebsd*-gnu)
7269             LD="${LD-ld} -m elf_i386_fbsd"
7270             ;;
7271           x86_64-*linux*)
7272             LD="${LD-ld} -m elf_i386"
7273             ;;
7274           ppc64-*linux*|powerpc64-*linux*)
7275             LD="${LD-ld} -m elf32ppclinux"
7276             ;;
7277           s390x-*linux*)
7278             LD="${LD-ld} -m elf_s390"
7279             ;;
7280           sparc64-*linux*)
7281             LD="${LD-ld} -m elf32_sparc"
7282             ;;
7283         esac
7284         ;;
7285       *64-bit*)
7286         case $host in
7287           x86_64-*kfreebsd*-gnu)
7288             LD="${LD-ld} -m elf_x86_64_fbsd"
7289             ;;
7290           x86_64-*linux*)
7291             LD="${LD-ld} -m elf_x86_64"
7292             ;;
7293           ppc*-*linux*|powerpc*-*linux*)
7294             LD="${LD-ld} -m elf64ppc"
7295             ;;
7296           s390*-*linux*|s390*-*tpf*)
7297             LD="${LD-ld} -m elf64_s390"
7298             ;;
7299           sparc*-*linux*)
7300             LD="${LD-ld} -m elf64_sparc"
7301             ;;
7302         esac
7303         ;;
7304     esac
7305   fi
7306   rm -rf conftest*
7307   ;;
7308
7309 *-*-sco3.2v5*)
7310   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7311   SAVE_CFLAGS="$CFLAGS"
7312   CFLAGS="$CFLAGS -belf"
7313   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
7314 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
7315 if test "${lt_cv_cc_needs_belf+set}" = set; then
7316   echo $ECHO_N "(cached) $ECHO_C" >&6
7317 else
7318   ac_ext=c
7319 ac_cpp='$CPP $CPPFLAGS'
7320 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7321 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7322 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7323
7324      cat >conftest.$ac_ext <<_ACEOF
7325 /* confdefs.h.  */
7326 _ACEOF
7327 cat confdefs.h >>conftest.$ac_ext
7328 cat >>conftest.$ac_ext <<_ACEOF
7329 /* end confdefs.h.  */
7330
7331 int
7332 main ()
7333 {
7334
7335   ;
7336   return 0;
7337 }
7338 _ACEOF
7339 rm -f conftest.$ac_objext conftest$ac_exeext
7340 if { (ac_try="$ac_link"
7341 case "(($ac_try" in
7342   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7343   *) ac_try_echo=$ac_try;;
7344 esac
7345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7346   (eval "$ac_link") 2>conftest.er1
7347   ac_status=$?
7348   grep -v '^ *+' conftest.er1 >conftest.err
7349   rm -f conftest.er1
7350   cat conftest.err >&5
7351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7352   (exit $ac_status); } && {
7353          test -z "$ac_c_werror_flag" ||
7354          test ! -s conftest.err
7355        } && test -s conftest$ac_exeext &&
7356        $as_test_x conftest$ac_exeext; then
7357   lt_cv_cc_needs_belf=yes
7358 else
7359   echo "$as_me: failed program was:" >&5
7360 sed 's/^/| /' conftest.$ac_ext >&5
7361
7362         lt_cv_cc_needs_belf=no
7363 fi
7364
7365 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7366       conftest$ac_exeext conftest.$ac_ext
7367      ac_ext=c
7368 ac_cpp='$CPP $CPPFLAGS'
7369 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7370 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7371 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7372
7373 fi
7374 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
7375 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
7376   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7377     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7378     CFLAGS="$SAVE_CFLAGS"
7379   fi
7380   ;;
7381 sparc*-*solaris*)
7382   # Find out which ABI we are using.
7383   echo 'int i;' > conftest.$ac_ext
7384   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7385   (eval $ac_compile) 2>&5
7386   ac_status=$?
7387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7388   (exit $ac_status); }; then
7389     case `/usr/bin/file conftest.o` in
7390     *64-bit*)
7391       case $lt_cv_prog_gnu_ld in
7392       yes*) LD="${LD-ld} -m elf64_sparc" ;;
7393       *)
7394         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7395           LD="${LD-ld} -64"
7396         fi
7397         ;;
7398       esac
7399       ;;
7400     esac
7401   fi
7402   rm -rf conftest*
7403   ;;
7404 esac
7405
7406 need_locks="$enable_libtool_lock"
7407
7408
7409   case $host_os in
7410     rhapsody* | darwin*)
7411     if test -n "$ac_tool_prefix"; then
7412   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7413 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7414 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7415 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7416 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7417   echo $ECHO_N "(cached) $ECHO_C" >&6
7418 else
7419   if test -n "$DSYMUTIL"; then
7420   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7421 else
7422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7423 for as_dir in $PATH
7424 do
7425   IFS=$as_save_IFS
7426   test -z "$as_dir" && as_dir=.
7427   for ac_exec_ext in '' $ac_executable_extensions; do
7428   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7429     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7430     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7431     break 2
7432   fi
7433 done
7434 done
7435 IFS=$as_save_IFS
7436
7437 fi
7438 fi
7439 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7440 if test -n "$DSYMUTIL"; then
7441   { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7442 echo "${ECHO_T}$DSYMUTIL" >&6; }
7443 else
7444   { echo "$as_me:$LINENO: result: no" >&5
7445 echo "${ECHO_T}no" >&6; }
7446 fi
7447
7448
7449 fi
7450 if test -z "$ac_cv_prog_DSYMUTIL"; then
7451   ac_ct_DSYMUTIL=$DSYMUTIL
7452   # Extract the first word of "dsymutil", so it can be a program name with args.
7453 set dummy dsymutil; ac_word=$2
7454 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7455 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7456 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7457   echo $ECHO_N "(cached) $ECHO_C" >&6
7458 else
7459   if test -n "$ac_ct_DSYMUTIL"; then
7460   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7461 else
7462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7463 for as_dir in $PATH
7464 do
7465   IFS=$as_save_IFS
7466   test -z "$as_dir" && as_dir=.
7467   for ac_exec_ext in '' $ac_executable_extensions; do
7468   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7469     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7470     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7471     break 2
7472   fi
7473 done
7474 done
7475 IFS=$as_save_IFS
7476
7477 fi
7478 fi
7479 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7480 if test -n "$ac_ct_DSYMUTIL"; then
7481   { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7482 echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
7483 else
7484   { echo "$as_me:$LINENO: result: no" >&5
7485 echo "${ECHO_T}no" >&6; }
7486 fi
7487
7488   if test "x$ac_ct_DSYMUTIL" = x; then
7489     DSYMUTIL=":"
7490   else
7491     case $cross_compiling:$ac_tool_warned in
7492 yes:)
7493 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7494 whose name does not start with the host triplet.  If you think this
7495 configuration is useful to you, please write to autoconf@gnu.org." >&5
7496 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7497 whose name does not start with the host triplet.  If you think this
7498 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7499 ac_tool_warned=yes ;;
7500 esac
7501     DSYMUTIL=$ac_ct_DSYMUTIL
7502   fi
7503 else
7504   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7505 fi
7506
7507     if test -n "$ac_tool_prefix"; then
7508   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7509 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7510 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7511 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7512 if test "${ac_cv_prog_NMEDIT+set}" = set; then
7513   echo $ECHO_N "(cached) $ECHO_C" >&6
7514 else
7515   if test -n "$NMEDIT"; then
7516   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7517 else
7518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7519 for as_dir in $PATH
7520 do
7521   IFS=$as_save_IFS
7522   test -z "$as_dir" && as_dir=.
7523   for ac_exec_ext in '' $ac_executable_extensions; do
7524   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7525     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7526     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7527     break 2
7528   fi
7529 done
7530 done
7531 IFS=$as_save_IFS
7532
7533 fi
7534 fi
7535 NMEDIT=$ac_cv_prog_NMEDIT
7536 if test -n "$NMEDIT"; then
7537   { echo "$as_me:$LINENO: result: $NMEDIT" >&5
7538 echo "${ECHO_T}$NMEDIT" >&6; }
7539 else
7540   { echo "$as_me:$LINENO: result: no" >&5
7541 echo "${ECHO_T}no" >&6; }
7542 fi
7543
7544
7545 fi
7546 if test -z "$ac_cv_prog_NMEDIT"; then
7547   ac_ct_NMEDIT=$NMEDIT
7548   # Extract the first word of "nmedit", so it can be a program name with args.
7549 set dummy nmedit; ac_word=$2
7550 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7551 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7552 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7553   echo $ECHO_N "(cached) $ECHO_C" >&6
7554 else
7555   if test -n "$ac_ct_NMEDIT"; then
7556   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7557 else
7558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7559 for as_dir in $PATH
7560 do
7561   IFS=$as_save_IFS
7562   test -z "$as_dir" && as_dir=.
7563   for ac_exec_ext in '' $ac_executable_extensions; do
7564   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7565     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7566     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7567     break 2
7568   fi
7569 done
7570 done
7571 IFS=$as_save_IFS
7572
7573 fi
7574 fi
7575 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7576 if test -n "$ac_ct_NMEDIT"; then
7577   { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7578 echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
7579 else
7580   { echo "$as_me:$LINENO: result: no" >&5
7581 echo "${ECHO_T}no" >&6; }
7582 fi
7583
7584   if test "x$ac_ct_NMEDIT" = x; then
7585     NMEDIT=":"
7586   else
7587     case $cross_compiling:$ac_tool_warned in
7588 yes:)
7589 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7590 whose name does not start with the host triplet.  If you think this
7591 configuration is useful to you, please write to autoconf@gnu.org." >&5
7592 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7593 whose name does not start with the host triplet.  If you think this
7594 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7595 ac_tool_warned=yes ;;
7596 esac
7597     NMEDIT=$ac_ct_NMEDIT
7598   fi
7599 else
7600   NMEDIT="$ac_cv_prog_NMEDIT"
7601 fi
7602
7603     if test -n "$ac_tool_prefix"; then
7604   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7605 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7606 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7607 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7608 if test "${ac_cv_prog_LIPO+set}" = set; then
7609   echo $ECHO_N "(cached) $ECHO_C" >&6
7610 else
7611   if test -n "$LIPO"; then
7612   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7613 else
7614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7615 for as_dir in $PATH
7616 do
7617   IFS=$as_save_IFS
7618   test -z "$as_dir" && as_dir=.
7619   for ac_exec_ext in '' $ac_executable_extensions; do
7620   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7621     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7622     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7623     break 2
7624   fi
7625 done
7626 done
7627 IFS=$as_save_IFS
7628
7629 fi
7630 fi
7631 LIPO=$ac_cv_prog_LIPO
7632 if test -n "$LIPO"; then
7633   { echo "$as_me:$LINENO: result: $LIPO" >&5
7634 echo "${ECHO_T}$LIPO" >&6; }
7635 else
7636   { echo "$as_me:$LINENO: result: no" >&5
7637 echo "${ECHO_T}no" >&6; }
7638 fi
7639
7640
7641 fi
7642 if test -z "$ac_cv_prog_LIPO"; then
7643   ac_ct_LIPO=$LIPO
7644   # Extract the first word of "lipo", so it can be a program name with args.
7645 set dummy lipo; ac_word=$2
7646 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7647 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7648 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
7649   echo $ECHO_N "(cached) $ECHO_C" >&6
7650 else
7651   if test -n "$ac_ct_LIPO"; then
7652   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7653 else
7654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7655 for as_dir in $PATH
7656 do
7657   IFS=$as_save_IFS
7658   test -z "$as_dir" && as_dir=.
7659   for ac_exec_ext in '' $ac_executable_extensions; do
7660   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7661     ac_cv_prog_ac_ct_LIPO="lipo"
7662     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7663     break 2
7664   fi
7665 done
7666 done
7667 IFS=$as_save_IFS
7668
7669 fi
7670 fi
7671 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7672 if test -n "$ac_ct_LIPO"; then
7673   { echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
7674 echo "${ECHO_T}$ac_ct_LIPO" >&6; }
7675 else
7676   { echo "$as_me:$LINENO: result: no" >&5
7677 echo "${ECHO_T}no" >&6; }
7678 fi
7679
7680   if test "x$ac_ct_LIPO" = x; then
7681     LIPO=":"
7682   else
7683     case $cross_compiling:$ac_tool_warned in
7684 yes:)
7685 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7686 whose name does not start with the host triplet.  If you think this
7687 configuration is useful to you, please write to autoconf@gnu.org." >&5
7688 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7689 whose name does not start with the host triplet.  If you think this
7690 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7691 ac_tool_warned=yes ;;
7692 esac
7693     LIPO=$ac_ct_LIPO
7694   fi
7695 else
7696   LIPO="$ac_cv_prog_LIPO"
7697 fi
7698
7699     if test -n "$ac_tool_prefix"; then
7700   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7701 set dummy ${ac_tool_prefix}otool; ac_word=$2
7702 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7703 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7704 if test "${ac_cv_prog_OTOOL+set}" = set; then
7705   echo $ECHO_N "(cached) $ECHO_C" >&6
7706 else
7707   if test -n "$OTOOL"; then
7708   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7709 else
7710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7711 for as_dir in $PATH
7712 do
7713   IFS=$as_save_IFS
7714   test -z "$as_dir" && as_dir=.
7715   for ac_exec_ext in '' $ac_executable_extensions; do
7716   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7717     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7718     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7719     break 2
7720   fi
7721 done
7722 done
7723 IFS=$as_save_IFS
7724
7725 fi
7726 fi
7727 OTOOL=$ac_cv_prog_OTOOL
7728 if test -n "$OTOOL"; then
7729   { echo "$as_me:$LINENO: result: $OTOOL" >&5
7730 echo "${ECHO_T}$OTOOL" >&6; }
7731 else
7732   { echo "$as_me:$LINENO: result: no" >&5
7733 echo "${ECHO_T}no" >&6; }
7734 fi
7735
7736
7737 fi
7738 if test -z "$ac_cv_prog_OTOOL"; then
7739   ac_ct_OTOOL=$OTOOL
7740   # Extract the first word of "otool", so it can be a program name with args.
7741 set dummy otool; ac_word=$2
7742 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7743 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7744 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
7745   echo $ECHO_N "(cached) $ECHO_C" >&6
7746 else
7747   if test -n "$ac_ct_OTOOL"; then
7748   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7749 else
7750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7751 for as_dir in $PATH
7752 do
7753   IFS=$as_save_IFS
7754   test -z "$as_dir" && as_dir=.
7755   for ac_exec_ext in '' $ac_executable_extensions; do
7756   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7757     ac_cv_prog_ac_ct_OTOOL="otool"
7758     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7759     break 2
7760   fi
7761 done
7762 done
7763 IFS=$as_save_IFS
7764
7765 fi
7766 fi
7767 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7768 if test -n "$ac_ct_OTOOL"; then
7769   { echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
7770 echo "${ECHO_T}$ac_ct_OTOOL" >&6; }
7771 else
7772   { echo "$as_me:$LINENO: result: no" >&5
7773 echo "${ECHO_T}no" >&6; }
7774 fi
7775
7776   if test "x$ac_ct_OTOOL" = x; then
7777     OTOOL=":"
7778   else
7779     case $cross_compiling:$ac_tool_warned in
7780 yes:)
7781 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7782 whose name does not start with the host triplet.  If you think this
7783 configuration is useful to you, please write to autoconf@gnu.org." >&5
7784 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7785 whose name does not start with the host triplet.  If you think this
7786 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7787 ac_tool_warned=yes ;;
7788 esac
7789     OTOOL=$ac_ct_OTOOL
7790   fi
7791 else
7792   OTOOL="$ac_cv_prog_OTOOL"
7793 fi
7794
7795     if test -n "$ac_tool_prefix"; then
7796   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7797 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7798 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7799 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7800 if test "${ac_cv_prog_OTOOL64+set}" = set; then
7801   echo $ECHO_N "(cached) $ECHO_C" >&6
7802 else
7803   if test -n "$OTOOL64"; then
7804   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7805 else
7806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7807 for as_dir in $PATH
7808 do
7809   IFS=$as_save_IFS
7810   test -z "$as_dir" && as_dir=.
7811   for ac_exec_ext in '' $ac_executable_extensions; do
7812   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7813     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7814     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7815     break 2
7816   fi
7817 done
7818 done
7819 IFS=$as_save_IFS
7820
7821 fi
7822 fi
7823 OTOOL64=$ac_cv_prog_OTOOL64
7824 if test -n "$OTOOL64"; then
7825   { echo "$as_me:$LINENO: result: $OTOOL64" >&5
7826 echo "${ECHO_T}$OTOOL64" >&6; }
7827 else
7828   { echo "$as_me:$LINENO: result: no" >&5
7829 echo "${ECHO_T}no" >&6; }
7830 fi
7831
7832
7833 fi
7834 if test -z "$ac_cv_prog_OTOOL64"; then
7835   ac_ct_OTOOL64=$OTOOL64
7836   # Extract the first word of "otool64", so it can be a program name with args.
7837 set dummy otool64; ac_word=$2
7838 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7839 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7840 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
7841   echo $ECHO_N "(cached) $ECHO_C" >&6
7842 else
7843   if test -n "$ac_ct_OTOOL64"; then
7844   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7845 else
7846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7847 for as_dir in $PATH
7848 do
7849   IFS=$as_save_IFS
7850   test -z "$as_dir" && as_dir=.
7851   for ac_exec_ext in '' $ac_executable_extensions; do
7852   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7853     ac_cv_prog_ac_ct_OTOOL64="otool64"
7854     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7855     break 2
7856   fi
7857 done
7858 done
7859 IFS=$as_save_IFS
7860
7861 fi
7862 fi
7863 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7864 if test -n "$ac_ct_OTOOL64"; then
7865   { echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
7866 echo "${ECHO_T}$ac_ct_OTOOL64" >&6; }
7867 else
7868   { echo "$as_me:$LINENO: result: no" >&5
7869 echo "${ECHO_T}no" >&6; }
7870 fi
7871
7872   if test "x$ac_ct_OTOOL64" = x; then
7873     OTOOL64=":"
7874   else
7875     case $cross_compiling:$ac_tool_warned in
7876 yes:)
7877 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7878 whose name does not start with the host triplet.  If you think this
7879 configuration is useful to you, please write to autoconf@gnu.org." >&5
7880 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7881 whose name does not start with the host triplet.  If you think this
7882 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7883 ac_tool_warned=yes ;;
7884 esac
7885     OTOOL64=$ac_ct_OTOOL64
7886   fi
7887 else
7888   OTOOL64="$ac_cv_prog_OTOOL64"
7889 fi
7890
7891
7892
7893
7894
7895
7896
7897
7898
7899
7900
7901
7902
7903
7904
7905
7906
7907
7908
7909
7910
7911
7912
7913
7914
7915
7916
7917     { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7918 echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
7919 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7920   echo $ECHO_N "(cached) $ECHO_C" >&6
7921 else
7922   lt_cv_apple_cc_single_mod=no
7923       if test -z "${LT_MULTI_MODULE}"; then
7924         # By default we will add the -single_module flag. You can override
7925         # by either setting the environment variable LT_MULTI_MODULE
7926         # non-empty at configure time, or by adding -multi_module to the
7927         # link flags.
7928         rm -rf libconftest.dylib*
7929         echo "int foo(void){return 1;}" > conftest.c
7930         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7931 -dynamiclib -Wl,-single_module conftest.c" >&5
7932         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7933           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7934         _lt_result=$?
7935         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7936           lt_cv_apple_cc_single_mod=yes
7937         else
7938           cat conftest.err >&5
7939         fi
7940         rm -rf libconftest.dylib*
7941         rm -f conftest.*
7942       fi
7943 fi
7944 { echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7945 echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
7946     { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7947 echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
7948 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7949   echo $ECHO_N "(cached) $ECHO_C" >&6
7950 else
7951   lt_cv_ld_exported_symbols_list=no
7952       save_LDFLAGS=$LDFLAGS
7953       echo "_main" > conftest.sym
7954       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7955       cat >conftest.$ac_ext <<_ACEOF
7956 /* confdefs.h.  */
7957 _ACEOF
7958 cat confdefs.h >>conftest.$ac_ext
7959 cat >>conftest.$ac_ext <<_ACEOF
7960 /* end confdefs.h.  */
7961
7962 int
7963 main ()
7964 {
7965
7966   ;
7967   return 0;
7968 }
7969 _ACEOF
7970 rm -f conftest.$ac_objext conftest$ac_exeext
7971 if { (ac_try="$ac_link"
7972 case "(($ac_try" in
7973   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7974   *) ac_try_echo=$ac_try;;
7975 esac
7976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7977   (eval "$ac_link") 2>conftest.er1
7978   ac_status=$?
7979   grep -v '^ *+' conftest.er1 >conftest.err
7980   rm -f conftest.er1
7981   cat conftest.err >&5
7982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7983   (exit $ac_status); } && {
7984          test -z "$ac_c_werror_flag" ||
7985          test ! -s conftest.err
7986        } && test -s conftest$ac_exeext &&
7987        $as_test_x conftest$ac_exeext; then
7988   lt_cv_ld_exported_symbols_list=yes
7989 else
7990   echo "$as_me: failed program was:" >&5
7991 sed 's/^/| /' conftest.$ac_ext >&5
7992
7993         lt_cv_ld_exported_symbols_list=no
7994 fi
7995
7996 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7997       conftest$ac_exeext conftest.$ac_ext
7998         LDFLAGS="$save_LDFLAGS"
7999
8000 fi
8001 { echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
8002 echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
8003     case $host_os in
8004     rhapsody* | darwin1.[012])
8005       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8006     darwin1.*)
8007       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8008     darwin*) # darwin 5.x on
8009       # if running on 10.5 or later, the deployment target defaults
8010       # to the OS version, if on x86, and 10.4, the deployment
8011       # target defaults to 10.4. Don't you love it?
8012       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8013         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8014           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8015         10.[012]*)
8016           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8017         10.*)
8018           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8019       esac
8020     ;;
8021   esac
8022     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8023       _lt_dar_single_mod='$single_module'
8024     fi
8025     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8026       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8027     else
8028       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8029     fi
8030     if test "$DSYMUTIL" != ":"; then
8031       _lt_dsymutil='~$DSYMUTIL $lib || :'
8032     else
8033       _lt_dsymutil=
8034     fi
8035     ;;
8036   esac
8037
8038 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8039 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
8040 if test "${ac_cv_header_stdc+set}" = set; then
8041   echo $ECHO_N "(cached) $ECHO_C" >&6
8042 else
8043   cat >conftest.$ac_ext <<_ACEOF
8044 /* confdefs.h.  */
8045 _ACEOF
8046 cat confdefs.h >>conftest.$ac_ext
8047 cat >>conftest.$ac_ext <<_ACEOF
8048 /* end confdefs.h.  */
8049 #include <stdlib.h>
8050 #include <stdarg.h>
8051 #include <string.h>
8052 #include <float.h>
8053
8054 int
8055 main ()
8056 {
8057
8058   ;
8059   return 0;
8060 }
8061 _ACEOF
8062 rm -f conftest.$ac_objext
8063 if { (ac_try="$ac_compile"
8064 case "(($ac_try" in
8065   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8066   *) ac_try_echo=$ac_try;;
8067 esac
8068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8069   (eval "$ac_compile") 2>conftest.er1
8070   ac_status=$?
8071   grep -v '^ *+' conftest.er1 >conftest.err
8072   rm -f conftest.er1
8073   cat conftest.err >&5
8074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8075   (exit $ac_status); } && {
8076          test -z "$ac_c_werror_flag" ||
8077          test ! -s conftest.err
8078        } && test -s conftest.$ac_objext; then
8079   ac_cv_header_stdc=yes
8080 else
8081   echo "$as_me: failed program was:" >&5
8082 sed 's/^/| /' conftest.$ac_ext >&5
8083
8084         ac_cv_header_stdc=no
8085 fi
8086
8087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8088
8089 if test $ac_cv_header_stdc = yes; then
8090   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8091   cat >conftest.$ac_ext <<_ACEOF
8092 /* confdefs.h.  */
8093 _ACEOF
8094 cat confdefs.h >>conftest.$ac_ext
8095 cat >>conftest.$ac_ext <<_ACEOF
8096 /* end confdefs.h.  */
8097 #include <string.h>
8098
8099 _ACEOF
8100 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8101   $EGREP "memchr" >/dev/null 2>&1; then
8102   :
8103 else
8104   ac_cv_header_stdc=no
8105 fi
8106 rm -f conftest*
8107
8108 fi
8109
8110 if test $ac_cv_header_stdc = yes; then
8111   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8112   cat >conftest.$ac_ext <<_ACEOF
8113 /* confdefs.h.  */
8114 _ACEOF
8115 cat confdefs.h >>conftest.$ac_ext
8116 cat >>conftest.$ac_ext <<_ACEOF
8117 /* end confdefs.h.  */
8118 #include <stdlib.h>
8119
8120 _ACEOF
8121 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8122   $EGREP "free" >/dev/null 2>&1; then
8123   :
8124 else
8125   ac_cv_header_stdc=no
8126 fi
8127 rm -f conftest*
8128
8129 fi
8130
8131 if test $ac_cv_header_stdc = yes; then
8132   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8133   if test "$cross_compiling" = yes; then
8134   :
8135 else
8136   cat >conftest.$ac_ext <<_ACEOF
8137 /* confdefs.h.  */
8138 _ACEOF
8139 cat confdefs.h >>conftest.$ac_ext
8140 cat >>conftest.$ac_ext <<_ACEOF
8141 /* end confdefs.h.  */
8142 #include <ctype.h>
8143 #include <stdlib.h>
8144 #if ((' ' & 0x0FF) == 0x020)
8145 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8146 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8147 #else
8148 # define ISLOWER(c) \
8149                    (('a' <= (c) && (c) <= 'i') \
8150                      || ('j' <= (c) && (c) <= 'r') \
8151                      || ('s' <= (c) && (c) <= 'z'))
8152 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8153 #endif
8154
8155 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8156 int
8157 main ()
8158 {
8159   int i;
8160   for (i = 0; i < 256; i++)
8161     if (XOR (islower (i), ISLOWER (i))
8162         || toupper (i) != TOUPPER (i))
8163       return 2;
8164   return 0;
8165 }
8166 _ACEOF
8167 rm -f conftest$ac_exeext
8168 if { (ac_try="$ac_link"
8169 case "(($ac_try" in
8170   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8171   *) ac_try_echo=$ac_try;;
8172 esac
8173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8174   (eval "$ac_link") 2>&5
8175   ac_status=$?
8176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8177   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8178   { (case "(($ac_try" in
8179   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8180   *) ac_try_echo=$ac_try;;
8181 esac
8182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8183   (eval "$ac_try") 2>&5
8184   ac_status=$?
8185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8186   (exit $ac_status); }; }; then
8187   :
8188 else
8189   echo "$as_me: program exited with status $ac_status" >&5
8190 echo "$as_me: failed program was:" >&5
8191 sed 's/^/| /' conftest.$ac_ext >&5
8192
8193 ( exit $ac_status )
8194 ac_cv_header_stdc=no
8195 fi
8196 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8197 fi
8198
8199
8200 fi
8201 fi
8202 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8203 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
8204 if test $ac_cv_header_stdc = yes; then
8205
8206 cat >>confdefs.h <<\_ACEOF
8207 #define STDC_HEADERS 1
8208 _ACEOF
8209
8210 fi
8211
8212 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8213
8214
8215
8216
8217
8218
8219
8220
8221
8222 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8223                   inttypes.h stdint.h unistd.h
8224 do
8225 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8226 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8227 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8228 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8229   echo $ECHO_N "(cached) $ECHO_C" >&6
8230 else
8231   cat >conftest.$ac_ext <<_ACEOF
8232 /* confdefs.h.  */
8233 _ACEOF
8234 cat confdefs.h >>conftest.$ac_ext
8235 cat >>conftest.$ac_ext <<_ACEOF
8236 /* end confdefs.h.  */
8237 $ac_includes_default
8238
8239 #include <$ac_header>
8240 _ACEOF
8241 rm -f conftest.$ac_objext
8242 if { (ac_try="$ac_compile"
8243 case "(($ac_try" in
8244   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8245   *) ac_try_echo=$ac_try;;
8246 esac
8247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8248   (eval "$ac_compile") 2>conftest.er1
8249   ac_status=$?
8250   grep -v '^ *+' conftest.er1 >conftest.err
8251   rm -f conftest.er1
8252   cat conftest.err >&5
8253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8254   (exit $ac_status); } && {
8255          test -z "$ac_c_werror_flag" ||
8256          test ! -s conftest.err
8257        } && test -s conftest.$ac_objext; then
8258   eval "$as_ac_Header=yes"
8259 else
8260   echo "$as_me: failed program was:" >&5
8261 sed 's/^/| /' conftest.$ac_ext >&5
8262
8263         eval "$as_ac_Header=no"
8264 fi
8265
8266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8267 fi
8268 ac_res=`eval echo '${'$as_ac_Header'}'`
8269                { echo "$as_me:$LINENO: result: $ac_res" >&5
8270 echo "${ECHO_T}$ac_res" >&6; }
8271 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8272   cat >>confdefs.h <<_ACEOF
8273 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8274 _ACEOF
8275
8276 fi
8277
8278 done
8279
8280
8281
8282 for ac_header in dlfcn.h
8283 do
8284 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8285 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8286 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8287 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8288   echo $ECHO_N "(cached) $ECHO_C" >&6
8289 else
8290   cat >conftest.$ac_ext <<_ACEOF
8291 /* confdefs.h.  */
8292 _ACEOF
8293 cat confdefs.h >>conftest.$ac_ext
8294 cat >>conftest.$ac_ext <<_ACEOF
8295 /* end confdefs.h.  */
8296 $ac_includes_default
8297
8298 #include <$ac_header>
8299 _ACEOF
8300 rm -f conftest.$ac_objext
8301 if { (ac_try="$ac_compile"
8302 case "(($ac_try" in
8303   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8304   *) ac_try_echo=$ac_try;;
8305 esac
8306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8307   (eval "$ac_compile") 2>conftest.er1
8308   ac_status=$?
8309   grep -v '^ *+' conftest.er1 >conftest.err
8310   rm -f conftest.er1
8311   cat conftest.err >&5
8312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8313   (exit $ac_status); } && {
8314          test -z "$ac_c_werror_flag" ||
8315          test ! -s conftest.err
8316        } && test -s conftest.$ac_objext; then
8317   eval "$as_ac_Header=yes"
8318 else
8319   echo "$as_me: failed program was:" >&5
8320 sed 's/^/| /' conftest.$ac_ext >&5
8321
8322         eval "$as_ac_Header=no"
8323 fi
8324
8325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8326 fi
8327 ac_res=`eval echo '${'$as_ac_Header'}'`
8328                { echo "$as_me:$LINENO: result: $ac_res" >&5
8329 echo "${ECHO_T}$ac_res" >&6; }
8330 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8331   cat >>confdefs.h <<_ACEOF
8332 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8333 _ACEOF
8334
8335 fi
8336
8337 done
8338
8339
8340
8341 ac_ext=cpp
8342 ac_cpp='$CXXCPP $CPPFLAGS'
8343 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8344 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8345 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8346 if test -z "$CXX"; then
8347   if test -n "$CCC"; then
8348     CXX=$CCC
8349   else
8350     if test -n "$ac_tool_prefix"; then
8351   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
8352   do
8353     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8354 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8355 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8356 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8357 if test "${ac_cv_prog_CXX+set}" = set; then
8358   echo $ECHO_N "(cached) $ECHO_C" >&6
8359 else
8360   if test -n "$CXX"; then
8361   ac_cv_prog_CXX="$CXX" # Let the user override the test.
8362 else
8363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8364 for as_dir in $PATH
8365 do
8366   IFS=$as_save_IFS
8367   test -z "$as_dir" && as_dir=.
8368   for ac_exec_ext in '' $ac_executable_extensions; do
8369   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8370     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
8371     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8372     break 2
8373   fi
8374 done
8375 done
8376 IFS=$as_save_IFS
8377
8378 fi
8379 fi
8380 CXX=$ac_cv_prog_CXX
8381 if test -n "$CXX"; then
8382   { echo "$as_me:$LINENO: result: $CXX" >&5
8383 echo "${ECHO_T}$CXX" >&6; }
8384 else
8385   { echo "$as_me:$LINENO: result: no" >&5
8386 echo "${ECHO_T}no" >&6; }
8387 fi
8388
8389
8390     test -n "$CXX" && break
8391   done
8392 fi
8393 if test -z "$CXX"; then
8394   ac_ct_CXX=$CXX
8395   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
8396 do
8397   # Extract the first word of "$ac_prog", so it can be a program name with args.
8398 set dummy $ac_prog; ac_word=$2
8399 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8400 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8401 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
8402   echo $ECHO_N "(cached) $ECHO_C" >&6
8403 else
8404   if test -n "$ac_ct_CXX"; then
8405   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
8406 else
8407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8408 for as_dir in $PATH
8409 do
8410   IFS=$as_save_IFS
8411   test -z "$as_dir" && as_dir=.
8412   for ac_exec_ext in '' $ac_executable_extensions; do
8413   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8414     ac_cv_prog_ac_ct_CXX="$ac_prog"
8415     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8416     break 2
8417   fi
8418 done
8419 done
8420 IFS=$as_save_IFS
8421
8422 fi
8423 fi
8424 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
8425 if test -n "$ac_ct_CXX"; then
8426   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
8427 echo "${ECHO_T}$ac_ct_CXX" >&6; }
8428 else
8429   { echo "$as_me:$LINENO: result: no" >&5
8430 echo "${ECHO_T}no" >&6; }
8431 fi
8432
8433
8434   test -n "$ac_ct_CXX" && break
8435 done
8436
8437   if test "x$ac_ct_CXX" = x; then
8438     CXX="g++"
8439   else
8440     case $cross_compiling:$ac_tool_warned in
8441 yes:)
8442 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8443 whose name does not start with the host triplet.  If you think this
8444 configuration is useful to you, please write to autoconf@gnu.org." >&5
8445 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8446 whose name does not start with the host triplet.  If you think this
8447 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8448 ac_tool_warned=yes ;;
8449 esac
8450     CXX=$ac_ct_CXX
8451   fi
8452 fi
8453
8454   fi
8455 fi
8456 # Provide some information about the compiler.
8457 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
8458 ac_compiler=`set X $ac_compile; echo $2`
8459 { (ac_try="$ac_compiler --version >&5"
8460 case "(($ac_try" in
8461   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8462   *) ac_try_echo=$ac_try;;
8463 esac
8464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8465   (eval "$ac_compiler --version >&5") 2>&5
8466   ac_status=$?
8467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8468   (exit $ac_status); }
8469 { (ac_try="$ac_compiler -v >&5"
8470 case "(($ac_try" in
8471   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8472   *) ac_try_echo=$ac_try;;
8473 esac
8474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8475   (eval "$ac_compiler -v >&5") 2>&5
8476   ac_status=$?
8477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8478   (exit $ac_status); }
8479 { (ac_try="$ac_compiler -V >&5"
8480 case "(($ac_try" in
8481   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8482   *) ac_try_echo=$ac_try;;
8483 esac
8484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8485   (eval "$ac_compiler -V >&5") 2>&5
8486   ac_status=$?
8487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8488   (exit $ac_status); }
8489
8490 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
8491 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
8492 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
8493   echo $ECHO_N "(cached) $ECHO_C" >&6
8494 else
8495   cat >conftest.$ac_ext <<_ACEOF
8496 /* confdefs.h.  */
8497 _ACEOF
8498 cat confdefs.h >>conftest.$ac_ext
8499 cat >>conftest.$ac_ext <<_ACEOF
8500 /* end confdefs.h.  */
8501
8502 int
8503 main ()
8504 {
8505 #ifndef __GNUC__
8506        choke me
8507 #endif
8508
8509   ;
8510   return 0;
8511 }
8512 _ACEOF
8513 rm -f conftest.$ac_objext
8514 if { (ac_try="$ac_compile"
8515 case "(($ac_try" in
8516   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8517   *) ac_try_echo=$ac_try;;
8518 esac
8519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8520   (eval "$ac_compile") 2>conftest.er1
8521   ac_status=$?
8522   grep -v '^ *+' conftest.er1 >conftest.err
8523   rm -f conftest.er1
8524   cat conftest.err >&5
8525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8526   (exit $ac_status); } && {
8527          test -z "$ac_cxx_werror_flag" ||
8528          test ! -s conftest.err
8529        } && test -s conftest.$ac_objext; then
8530   ac_compiler_gnu=yes
8531 else
8532   echo "$as_me: failed program was:" >&5
8533 sed 's/^/| /' conftest.$ac_ext >&5
8534
8535         ac_compiler_gnu=no
8536 fi
8537
8538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8539 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
8540
8541 fi
8542 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
8543 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
8544 GXX=`test $ac_compiler_gnu = yes && echo yes`
8545 ac_test_CXXFLAGS=${CXXFLAGS+set}
8546 ac_save_CXXFLAGS=$CXXFLAGS
8547 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
8548 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
8549 if test "${ac_cv_prog_cxx_g+set}" = set; then
8550   echo $ECHO_N "(cached) $ECHO_C" >&6
8551 else
8552   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
8553    ac_cxx_werror_flag=yes
8554    ac_cv_prog_cxx_g=no
8555    CXXFLAGS="-g"
8556    cat >conftest.$ac_ext <<_ACEOF
8557 /* confdefs.h.  */
8558 _ACEOF
8559 cat confdefs.h >>conftest.$ac_ext
8560 cat >>conftest.$ac_ext <<_ACEOF
8561 /* end confdefs.h.  */
8562
8563 int
8564 main ()
8565 {
8566
8567   ;
8568   return 0;
8569 }
8570 _ACEOF
8571 rm -f conftest.$ac_objext
8572 if { (ac_try="$ac_compile"
8573 case "(($ac_try" in
8574   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8575   *) ac_try_echo=$ac_try;;
8576 esac
8577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8578   (eval "$ac_compile") 2>conftest.er1
8579   ac_status=$?
8580   grep -v '^ *+' conftest.er1 >conftest.err
8581   rm -f conftest.er1
8582   cat conftest.err >&5
8583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8584   (exit $ac_status); } && {
8585          test -z "$ac_cxx_werror_flag" ||
8586          test ! -s conftest.err
8587        } && test -s conftest.$ac_objext; then
8588   ac_cv_prog_cxx_g=yes
8589 else
8590   echo "$as_me: failed program was:" >&5
8591 sed 's/^/| /' conftest.$ac_ext >&5
8592
8593         CXXFLAGS=""
8594       cat >conftest.$ac_ext <<_ACEOF
8595 /* confdefs.h.  */
8596 _ACEOF
8597 cat confdefs.h >>conftest.$ac_ext
8598 cat >>conftest.$ac_ext <<_ACEOF
8599 /* end confdefs.h.  */
8600
8601 int
8602 main ()
8603 {
8604
8605   ;
8606   return 0;
8607 }
8608 _ACEOF
8609 rm -f conftest.$ac_objext
8610 if { (ac_try="$ac_compile"
8611 case "(($ac_try" in
8612   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8613   *) ac_try_echo=$ac_try;;
8614 esac
8615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8616   (eval "$ac_compile") 2>conftest.er1
8617   ac_status=$?
8618   grep -v '^ *+' conftest.er1 >conftest.err
8619   rm -f conftest.er1
8620   cat conftest.err >&5
8621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8622   (exit $ac_status); } && {
8623          test -z "$ac_cxx_werror_flag" ||
8624          test ! -s conftest.err
8625        } && test -s conftest.$ac_objext; then
8626   :
8627 else
8628   echo "$as_me: failed program was:" >&5
8629 sed 's/^/| /' conftest.$ac_ext >&5
8630
8631         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8632          CXXFLAGS="-g"
8633          cat >conftest.$ac_ext <<_ACEOF
8634 /* confdefs.h.  */
8635 _ACEOF
8636 cat confdefs.h >>conftest.$ac_ext
8637 cat >>conftest.$ac_ext <<_ACEOF
8638 /* end confdefs.h.  */
8639
8640 int
8641 main ()
8642 {
8643
8644   ;
8645   return 0;
8646 }
8647 _ACEOF
8648 rm -f conftest.$ac_objext
8649 if { (ac_try="$ac_compile"
8650 case "(($ac_try" in
8651   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8652   *) ac_try_echo=$ac_try;;
8653 esac
8654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8655   (eval "$ac_compile") 2>conftest.er1
8656   ac_status=$?
8657   grep -v '^ *+' conftest.er1 >conftest.err
8658   rm -f conftest.er1
8659   cat conftest.err >&5
8660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8661   (exit $ac_status); } && {
8662          test -z "$ac_cxx_werror_flag" ||
8663          test ! -s conftest.err
8664        } && test -s conftest.$ac_objext; then
8665   ac_cv_prog_cxx_g=yes
8666 else
8667   echo "$as_me: failed program was:" >&5
8668 sed 's/^/| /' conftest.$ac_ext >&5
8669
8670
8671 fi
8672
8673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8674 fi
8675
8676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8677 fi
8678
8679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8680    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8681 fi
8682 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
8683 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
8684 if test "$ac_test_CXXFLAGS" = set; then
8685   CXXFLAGS=$ac_save_CXXFLAGS
8686 elif test $ac_cv_prog_cxx_g = yes; then
8687   if test "$GXX" = yes; then
8688     CXXFLAGS="-g -O2"
8689   else
8690     CXXFLAGS="-g"
8691   fi
8692 else
8693   if test "$GXX" = yes; then
8694     CXXFLAGS="-O2"
8695   else
8696     CXXFLAGS=
8697   fi
8698 fi
8699 ac_ext=c
8700 ac_cpp='$CPP $CPPFLAGS'
8701 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8702 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8703 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8704
8705 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
8706     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
8707     (test "X$CXX" != "Xg++"))) ; then
8708   ac_ext=cpp
8709 ac_cpp='$CXXCPP $CPPFLAGS'
8710 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8711 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8712 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8713 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
8714 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
8715 if test -z "$CXXCPP"; then
8716   if test "${ac_cv_prog_CXXCPP+set}" = set; then
8717   echo $ECHO_N "(cached) $ECHO_C" >&6
8718 else
8719       # Double quotes because CXXCPP needs to be expanded
8720     for CXXCPP in "$CXX -E" "/lib/cpp"
8721     do
8722       ac_preproc_ok=false
8723 for ac_cxx_preproc_warn_flag in '' yes
8724 do
8725   # Use a header file that comes with gcc, so configuring glibc
8726   # with a fresh cross-compiler works.
8727   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8728   # <limits.h> exists even on freestanding compilers.
8729   # On the NeXT, cc -E runs the code through the compiler's parser,
8730   # not just through cpp. "Syntax error" is here to catch this case.
8731   cat >conftest.$ac_ext <<_ACEOF
8732 /* confdefs.h.  */
8733 _ACEOF
8734 cat confdefs.h >>conftest.$ac_ext
8735 cat >>conftest.$ac_ext <<_ACEOF
8736 /* end confdefs.h.  */
8737 #ifdef __STDC__
8738 # include <limits.h>
8739 #else
8740 # include <assert.h>
8741 #endif
8742                      Syntax error
8743 _ACEOF
8744 if { (ac_try="$ac_cpp conftest.$ac_ext"
8745 case "(($ac_try" in
8746   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8747   *) ac_try_echo=$ac_try;;
8748 esac
8749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8750   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8751   ac_status=$?
8752   grep -v '^ *+' conftest.er1 >conftest.err
8753   rm -f conftest.er1
8754   cat conftest.err >&5
8755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8756   (exit $ac_status); } >/dev/null && {
8757          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8758          test ! -s conftest.err
8759        }; then
8760   :
8761 else
8762   echo "$as_me: failed program was:" >&5
8763 sed 's/^/| /' conftest.$ac_ext >&5
8764
8765   # Broken: fails on valid input.
8766 continue
8767 fi
8768
8769 rm -f conftest.err conftest.$ac_ext
8770
8771   # OK, works on sane cases.  Now check whether nonexistent headers
8772   # can be detected and how.
8773   cat >conftest.$ac_ext <<_ACEOF
8774 /* confdefs.h.  */
8775 _ACEOF
8776 cat confdefs.h >>conftest.$ac_ext
8777 cat >>conftest.$ac_ext <<_ACEOF
8778 /* end confdefs.h.  */
8779 #include <ac_nonexistent.h>
8780 _ACEOF
8781 if { (ac_try="$ac_cpp conftest.$ac_ext"
8782 case "(($ac_try" in
8783   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8784   *) ac_try_echo=$ac_try;;
8785 esac
8786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8787   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8788   ac_status=$?
8789   grep -v '^ *+' conftest.er1 >conftest.err
8790   rm -f conftest.er1
8791   cat conftest.err >&5
8792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8793   (exit $ac_status); } >/dev/null && {
8794          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8795          test ! -s conftest.err
8796        }; then
8797   # Broken: success on invalid input.
8798 continue
8799 else
8800   echo "$as_me: failed program was:" >&5
8801 sed 's/^/| /' conftest.$ac_ext >&5
8802
8803   # Passes both tests.
8804 ac_preproc_ok=:
8805 break
8806 fi
8807
8808 rm -f conftest.err conftest.$ac_ext
8809
8810 done
8811 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8812 rm -f conftest.err conftest.$ac_ext
8813 if $ac_preproc_ok; then
8814   break
8815 fi
8816
8817     done
8818     ac_cv_prog_CXXCPP=$CXXCPP
8819
8820 fi
8821   CXXCPP=$ac_cv_prog_CXXCPP
8822 else
8823   ac_cv_prog_CXXCPP=$CXXCPP
8824 fi
8825 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
8826 echo "${ECHO_T}$CXXCPP" >&6; }
8827 ac_preproc_ok=false
8828 for ac_cxx_preproc_warn_flag in '' yes
8829 do
8830   # Use a header file that comes with gcc, so configuring glibc
8831   # with a fresh cross-compiler works.
8832   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8833   # <limits.h> exists even on freestanding compilers.
8834   # On the NeXT, cc -E runs the code through the compiler's parser,
8835   # not just through cpp. "Syntax error" is here to catch this case.
8836   cat >conftest.$ac_ext <<_ACEOF
8837 /* confdefs.h.  */
8838 _ACEOF
8839 cat confdefs.h >>conftest.$ac_ext
8840 cat >>conftest.$ac_ext <<_ACEOF
8841 /* end confdefs.h.  */
8842 #ifdef __STDC__
8843 # include <limits.h>
8844 #else
8845 # include <assert.h>
8846 #endif
8847                      Syntax error
8848 _ACEOF
8849 if { (ac_try="$ac_cpp conftest.$ac_ext"
8850 case "(($ac_try" in
8851   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8852   *) ac_try_echo=$ac_try;;
8853 esac
8854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8855   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8856   ac_status=$?
8857   grep -v '^ *+' conftest.er1 >conftest.err
8858   rm -f conftest.er1
8859   cat conftest.err >&5
8860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8861   (exit $ac_status); } >/dev/null && {
8862          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8863          test ! -s conftest.err
8864        }; then
8865   :
8866 else
8867   echo "$as_me: failed program was:" >&5
8868 sed 's/^/| /' conftest.$ac_ext >&5
8869
8870   # Broken: fails on valid input.
8871 continue
8872 fi
8873
8874 rm -f conftest.err conftest.$ac_ext
8875
8876   # OK, works on sane cases.  Now check whether nonexistent headers
8877   # can be detected and how.
8878   cat >conftest.$ac_ext <<_ACEOF
8879 /* confdefs.h.  */
8880 _ACEOF
8881 cat confdefs.h >>conftest.$ac_ext
8882 cat >>conftest.$ac_ext <<_ACEOF
8883 /* end confdefs.h.  */
8884 #include <ac_nonexistent.h>
8885 _ACEOF
8886 if { (ac_try="$ac_cpp conftest.$ac_ext"
8887 case "(($ac_try" in
8888   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8889   *) ac_try_echo=$ac_try;;
8890 esac
8891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8892   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8893   ac_status=$?
8894   grep -v '^ *+' conftest.er1 >conftest.err
8895   rm -f conftest.er1
8896   cat conftest.err >&5
8897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8898   (exit $ac_status); } >/dev/null && {
8899          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8900          test ! -s conftest.err
8901        }; then
8902   # Broken: success on invalid input.
8903 continue
8904 else
8905   echo "$as_me: failed program was:" >&5
8906 sed 's/^/| /' conftest.$ac_ext >&5
8907
8908   # Passes both tests.
8909 ac_preproc_ok=:
8910 break
8911 fi
8912
8913 rm -f conftest.err conftest.$ac_ext
8914
8915 done
8916 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8917 rm -f conftest.err conftest.$ac_ext
8918 if $ac_preproc_ok; then
8919   :
8920 else
8921   _lt_caught_CXX_error=yes
8922 fi
8923
8924 ac_ext=c
8925 ac_cpp='$CPP $CPPFLAGS'
8926 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8927 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8928 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8929
8930 else
8931   _lt_caught_CXX_error=yes
8932 fi
8933
8934
8935
8936
8937
8938 # Set options
8939 # Check whether --enable-shared was given.
8940 if test "${enable_shared+set}" = set; then
8941   enableval=$enable_shared; p=${PACKAGE-default}
8942     case $enableval in
8943     yes) enable_shared=yes ;;
8944     no) enable_shared=no ;;
8945     *)
8946       enable_shared=no
8947       # Look at the argument we got.  We use all the common list separators.
8948       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8949       for pkg in $enableval; do
8950         IFS="$lt_save_ifs"
8951         if test "X$pkg" = "X$p"; then
8952           enable_shared=yes
8953         fi
8954       done
8955       IFS="$lt_save_ifs"
8956       ;;
8957     esac
8958 else
8959   enable_shared=yes
8960 fi
8961
8962
8963
8964
8965
8966
8967
8968 # Check whether --enable-static was given.
8969 if test "${enable_static+set}" = set; then
8970   enableval=$enable_static; p=${PACKAGE-default}
8971     case $enableval in
8972     yes) enable_static=yes ;;
8973     no) enable_static=no ;;
8974     *)
8975      enable_static=no
8976       # Look at the argument we got.  We use all the common list separators.
8977       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8978       for pkg in $enableval; do
8979         IFS="$lt_save_ifs"
8980         if test "X$pkg" = "X$p"; then
8981           enable_static=yes
8982         fi
8983       done
8984       IFS="$lt_save_ifs"
8985       ;;
8986     esac
8987 else
8988   enable_static=no
8989 fi
8990
8991
8992
8993
8994
8995
8996
8997
8998
8999
9000         enable_dlopen=no
9001
9002
9003   enable_win32_dll=no
9004
9005
9006
9007
9008
9009 # Check whether --with-pic was given.
9010 if test "${with_pic+set}" = set; then
9011   withval=$with_pic; pic_mode="$withval"
9012 else
9013   pic_mode=default
9014 fi
9015
9016
9017 test -z "$pic_mode" && pic_mode=default
9018
9019
9020
9021
9022
9023
9024
9025   # Check whether --enable-fast-install was given.
9026 if test "${enable_fast_install+set}" = set; then
9027   enableval=$enable_fast_install; p=${PACKAGE-default}
9028     case $enableval in
9029     yes) enable_fast_install=yes ;;
9030     no) enable_fast_install=no ;;
9031     *)
9032       enable_fast_install=no
9033       # Look at the argument we got.  We use all the common list separators.
9034       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9035       for pkg in $enableval; do
9036         IFS="$lt_save_ifs"
9037         if test "X$pkg" = "X$p"; then
9038           enable_fast_install=yes
9039         fi
9040       done
9041       IFS="$lt_save_ifs"
9042       ;;
9043     esac
9044 else
9045   enable_fast_install=yes
9046 fi
9047
9048
9049
9050
9051
9052
9053
9054
9055
9056
9057
9058 # This can be used to rebuild libtool when needed
9059 LIBTOOL_DEPS="$ltmain"
9060
9061 # Always use our own libtool.
9062 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9063
9064
9065
9066
9067
9068
9069
9070
9071
9072
9073
9074
9075
9076
9077
9078
9079
9080
9081
9082
9083
9084
9085
9086
9087
9088 test -z "$LN_S" && LN_S="ln -s"
9089
9090
9091
9092
9093
9094
9095
9096
9097
9098
9099
9100
9101
9102
9103 if test -n "${ZSH_VERSION+set}" ; then
9104    setopt NO_GLOB_SUBST
9105 fi
9106
9107 { echo "$as_me:$LINENO: checking for objdir" >&5
9108 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9109 if test "${lt_cv_objdir+set}" = set; then
9110   echo $ECHO_N "(cached) $ECHO_C" >&6
9111 else
9112   rm -f .libs 2>/dev/null
9113 mkdir .libs 2>/dev/null
9114 if test -d .libs; then
9115   lt_cv_objdir=.libs
9116 else
9117   # MS-DOS does not allow filenames that begin with a dot.
9118   lt_cv_objdir=_libs
9119 fi
9120 rmdir .libs 2>/dev/null
9121 fi
9122 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
9123 echo "${ECHO_T}$lt_cv_objdir" >&6; }
9124 objdir=$lt_cv_objdir
9125
9126
9127
9128
9129
9130 cat >>confdefs.h <<_ACEOF
9131 #define LT_OBJDIR "$lt_cv_objdir/"
9132 _ACEOF
9133
9134
9135
9136
9137
9138
9139
9140
9141
9142
9143
9144
9145
9146
9147
9148
9149
9150 case $host_os in
9151 aix3*)
9152   # AIX sometimes has problems with the GCC collect2 program.  For some
9153   # reason, if we set the COLLECT_NAMES environment variable, the problems
9154   # vanish in a puff of smoke.
9155   if test "X${COLLECT_NAMES+set}" != Xset; then
9156     COLLECT_NAMES=
9157     export COLLECT_NAMES
9158   fi
9159   ;;
9160 esac
9161
9162 # Sed substitution that helps us do robust quoting.  It backslashifies
9163 # metacharacters that are still active within double-quoted strings.
9164 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
9165
9166 # Same as above, but do not quote variable references.
9167 double_quote_subst='s/\(["`\\]\)/\\\1/g'
9168
9169 # Sed substitution to delay expansion of an escaped shell variable in a
9170 # double_quote_subst'ed string.
9171 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9172
9173 # Sed substitution to delay expansion of an escaped single quote.
9174 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
9175
9176 # Sed substitution to avoid accidental globbing in evaled expressions
9177 no_glob_subst='s/\*/\\\*/g'
9178
9179 # Global variables:
9180 ofile=libtool
9181 can_build_shared=yes
9182
9183 # All known linkers require a `.a' archive for static linking (except MSVC,
9184 # which needs '.lib').
9185 libext=a
9186
9187 with_gnu_ld="$lt_cv_prog_gnu_ld"
9188
9189 old_CC="$CC"
9190 old_CFLAGS="$CFLAGS"
9191
9192 # Set sane defaults for various variables
9193 test -z "$CC" && CC=cc
9194 test -z "$LTCC" && LTCC=$CC
9195 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9196 test -z "$LD" && LD=ld
9197 test -z "$ac_objext" && ac_objext=o
9198
9199 for cc_temp in $compiler""; do
9200   case $cc_temp in
9201     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9202     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9203     \-*) ;;
9204     *) break;;
9205   esac
9206 done
9207 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9208
9209
9210 # Only perform the check for file, if the check method requires it
9211 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9212 case $deplibs_check_method in
9213 file_magic*)
9214   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9215     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
9216 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
9217 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9218   echo $ECHO_N "(cached) $ECHO_C" >&6
9219 else
9220   case $MAGIC_CMD in
9221 [\\/*] |  ?:[\\/]*)
9222   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9223   ;;
9224 *)
9225   lt_save_MAGIC_CMD="$MAGIC_CMD"
9226   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9227   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9228   for ac_dir in $ac_dummy; do
9229     IFS="$lt_save_ifs"
9230     test -z "$ac_dir" && ac_dir=.
9231     if test -f $ac_dir/${ac_tool_prefix}file; then
9232       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9233       if test -n "$file_magic_test_file"; then
9234         case $deplibs_check_method in
9235         "file_magic "*)
9236           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9237           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9238           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9239             $EGREP "$file_magic_regex" > /dev/null; then
9240             :
9241           else
9242             cat <<_LT_EOF 1>&2
9243
9244 *** Warning: the command libtool uses to detect shared libraries,
9245 *** $file_magic_cmd, produces output that libtool cannot recognize.
9246 *** The result is that libtool may fail to recognize shared libraries
9247 *** as such.  This will affect the creation of libtool libraries that
9248 *** depend on shared libraries, but programs linked with such libtool
9249 *** libraries will work regardless of this problem.  Nevertheless, you
9250 *** may want to report the problem to your system manager and/or to
9251 *** bug-libtool@gnu.org
9252
9253 _LT_EOF
9254           fi ;;
9255         esac
9256       fi
9257       break
9258     fi
9259   done
9260   IFS="$lt_save_ifs"
9261   MAGIC_CMD="$lt_save_MAGIC_CMD"
9262   ;;
9263 esac
9264 fi
9265
9266 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9267 if test -n "$MAGIC_CMD"; then
9268   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9269 echo "${ECHO_T}$MAGIC_CMD" >&6; }
9270 else
9271   { echo "$as_me:$LINENO: result: no" >&5
9272 echo "${ECHO_T}no" >&6; }
9273 fi
9274
9275
9276
9277
9278
9279 if test -z "$lt_cv_path_MAGIC_CMD"; then
9280   if test -n "$ac_tool_prefix"; then
9281     { echo "$as_me:$LINENO: checking for file" >&5
9282 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
9283 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9284   echo $ECHO_N "(cached) $ECHO_C" >&6
9285 else
9286   case $MAGIC_CMD in
9287 [\\/*] |  ?:[\\/]*)
9288   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9289   ;;
9290 *)
9291   lt_save_MAGIC_CMD="$MAGIC_CMD"
9292   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9293   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9294   for ac_dir in $ac_dummy; do
9295     IFS="$lt_save_ifs"
9296     test -z "$ac_dir" && ac_dir=.
9297     if test -f $ac_dir/file; then
9298       lt_cv_path_MAGIC_CMD="$ac_dir/file"
9299       if test -n "$file_magic_test_file"; then
9300         case $deplibs_check_method in
9301         "file_magic "*)
9302           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9303           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9304           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9305             $EGREP "$file_magic_regex" > /dev/null; then
9306             :
9307           else
9308             cat <<_LT_EOF 1>&2
9309
9310 *** Warning: the command libtool uses to detect shared libraries,
9311 *** $file_magic_cmd, produces output that libtool cannot recognize.
9312 *** The result is that libtool may fail to recognize shared libraries
9313 *** as such.  This will affect the creation of libtool libraries that
9314 *** depend on shared libraries, but programs linked with such libtool
9315 *** libraries will work regardless of this problem.  Nevertheless, you
9316 *** may want to report the problem to your system manager and/or to
9317 *** bug-libtool@gnu.org
9318
9319 _LT_EOF
9320           fi ;;
9321         esac
9322       fi
9323       break
9324     fi
9325   done
9326   IFS="$lt_save_ifs"
9327   MAGIC_CMD="$lt_save_MAGIC_CMD"
9328   ;;
9329 esac
9330 fi
9331
9332 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9333 if test -n "$MAGIC_CMD"; then
9334   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9335 echo "${ECHO_T}$MAGIC_CMD" >&6; }
9336 else
9337   { echo "$as_me:$LINENO: result: no" >&5
9338 echo "${ECHO_T}no" >&6; }
9339 fi
9340
9341
9342   else
9343     MAGIC_CMD=:
9344   fi
9345 fi
9346
9347   fi
9348   ;;
9349 esac
9350
9351 # Use C for the default configuration in the libtool script
9352
9353 lt_save_CC="$CC"
9354 ac_ext=c
9355 ac_cpp='$CPP $CPPFLAGS'
9356 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9357 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9358 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9359
9360
9361 # Source file extension for C test sources.
9362 ac_ext=c
9363
9364 # Object file extension for compiled C test sources.
9365 objext=o
9366 objext=$objext
9367
9368 # Code to be used in simple compile tests
9369 lt_simple_compile_test_code="int some_variable = 0;"
9370
9371 # Code to be used in simple link tests
9372 lt_simple_link_test_code='int main(){return(0);}'
9373
9374
9375
9376
9377
9378
9379
9380 # If no C compiler was specified, use CC.
9381 LTCC=${LTCC-"$CC"}
9382
9383 # If no C compiler flags were specified, use CFLAGS.
9384 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9385
9386 # Allow CC to be a program name with arguments.
9387 compiler=$CC
9388
9389 # Save the default compiler, since it gets overwritten when the other
9390 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9391 compiler_DEFAULT=$CC
9392
9393 # save warnings/boilerplate of simple test code
9394 ac_outfile=conftest.$ac_objext
9395 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9396 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9397 _lt_compiler_boilerplate=`cat conftest.err`
9398 $RM conftest*
9399
9400 ac_outfile=conftest.$ac_objext
9401 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9402 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9403 _lt_linker_boilerplate=`cat conftest.err`
9404 $RM -r conftest*
9405
9406
9407 ## CAVEAT EMPTOR:
9408 ## There is no encapsulation within the following macros, do not change
9409 ## the running order or otherwise move them around unless you know exactly
9410 ## what you are doing...
9411 if test -n "$compiler"; then
9412
9413 lt_prog_compiler_no_builtin_flag=
9414
9415 if test "$GCC" = yes; then
9416   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
9417
9418   { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9419 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
9420 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
9421   echo $ECHO_N "(cached) $ECHO_C" >&6
9422 else
9423   lt_cv_prog_compiler_rtti_exceptions=no
9424    ac_outfile=conftest.$ac_objext
9425    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9426    lt_compiler_flag="-fno-rtti -fno-exceptions"
9427    # Insert the option either (1) after the last *FLAGS variable, or
9428    # (2) before a word containing "conftest.", or (3) at the end.
9429    # Note that $ac_compile itself does not contain backslashes and begins
9430    # with a dollar sign (not a hyphen), so the echo should work correctly.
9431    # The option is referenced via a variable to avoid confusing sed.
9432    lt_compile=`echo "$ac_compile" | $SED \
9433    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9434    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9435    -e 's:$: $lt_compiler_flag:'`
9436    (eval echo "\"\$as_me:9436: $lt_compile\"" >&5)
9437    (eval "$lt_compile" 2>conftest.err)
9438    ac_status=$?
9439    cat conftest.err >&5
9440    echo "$as_me:9440: \$? = $ac_status" >&5
9441    if (exit $ac_status) && test -s "$ac_outfile"; then
9442      # The compiler can only warn and ignore the option if not recognized
9443      # So say no if there are warnings other than the usual output.
9444      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9445      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9446      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9447        lt_cv_prog_compiler_rtti_exceptions=yes
9448      fi
9449    fi
9450    $RM conftest*
9451
9452 fi
9453 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9454 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9455
9456 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9457     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9458 else
9459     :
9460 fi
9461
9462 fi
9463
9464
9465
9466
9467
9468
9469   lt_prog_compiler_wl=
9470 lt_prog_compiler_pic=
9471 lt_prog_compiler_static=
9472
9473 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
9474 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
9475
9476   if test "$GCC" = yes; then
9477     lt_prog_compiler_wl='-Wl,'
9478     lt_prog_compiler_static='-static'
9479
9480     case $host_os in
9481       aix*)
9482       # All AIX code is PIC.
9483       if test "$host_cpu" = ia64; then
9484         # AIX 5 now supports IA64 processor
9485         lt_prog_compiler_static='-Bstatic'
9486       fi
9487       ;;
9488
9489     amigaos*)
9490       case $host_cpu in
9491       powerpc)
9492             # see comment about AmigaOS4 .so support
9493             lt_prog_compiler_pic='-fPIC'
9494         ;;
9495       m68k)
9496             # FIXME: we need at least 68020 code to build shared libraries, but
9497             # adding the `-m68020' flag to GCC prevents building anything better,
9498             # like `-m68040'.
9499             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9500         ;;
9501       esac
9502       ;;
9503
9504     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9505       # PIC is the default for these OSes.
9506       ;;
9507
9508     mingw* | cygwin* | pw32* | os2* | cegcc*)
9509       # This hack is so that the source file can tell whether it is being
9510       # built for inclusion in a dll (and should export symbols for example).
9511       # Although the cygwin gcc ignores -fPIC, still need this for old-style
9512       # (--disable-auto-import) libraries
9513       lt_prog_compiler_pic='-DDLL_EXPORT'
9514       ;;
9515
9516     darwin* | rhapsody*)
9517       # PIC is the default on this platform
9518       # Common symbols not allowed in MH_DYLIB files
9519       lt_prog_compiler_pic='-fno-common'
9520       ;;
9521
9522     hpux*)
9523       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9524       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9525       # sets the default TLS model and affects inlining.
9526       case $host_cpu in
9527       hppa*64*)
9528         # +Z the default
9529         ;;
9530       *)
9531         lt_prog_compiler_pic='-fPIC'
9532         ;;
9533       esac
9534       ;;
9535
9536     interix[3-9]*)
9537       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9538       # Instead, we relocate shared libraries at runtime.
9539       ;;
9540
9541     msdosdjgpp*)
9542       # Just because we use GCC doesn't mean we suddenly get shared libraries
9543       # on systems that don't support them.
9544       lt_prog_compiler_can_build_shared=no
9545       enable_shared=no
9546       ;;
9547
9548     *nto* | *qnx*)
9549       # QNX uses GNU C++, but need to define -shared option too, otherwise
9550       # it will coredump.
9551       lt_prog_compiler_pic='-fPIC -shared'
9552       ;;
9553
9554     sysv4*MP*)
9555       if test -d /usr/nec; then
9556         lt_prog_compiler_pic=-Kconform_pic
9557       fi
9558       ;;
9559
9560     *)
9561       lt_prog_compiler_pic='-fPIC'
9562       ;;
9563     esac
9564   else
9565     # PORTME Check for flag to pass linker flags through the system compiler.
9566     case $host_os in
9567     aix*)
9568       lt_prog_compiler_wl='-Wl,'
9569       if test "$host_cpu" = ia64; then
9570         # AIX 5 now supports IA64 processor
9571         lt_prog_compiler_static='-Bstatic'
9572       else
9573         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9574       fi
9575       ;;
9576
9577     mingw* | cygwin* | pw32* | os2* | cegcc*)
9578       # This hack is so that the source file can tell whether it is being
9579       # built for inclusion in a dll (and should export symbols for example).
9580       lt_prog_compiler_pic='-DDLL_EXPORT'
9581       ;;
9582
9583     hpux9* | hpux10* | hpux11*)
9584       lt_prog_compiler_wl='-Wl,'
9585       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9586       # not for PA HP-UX.
9587       case $host_cpu in
9588       hppa*64*|ia64*)
9589         # +Z the default
9590         ;;
9591       *)
9592         lt_prog_compiler_pic='+Z'
9593         ;;
9594       esac
9595       # Is there a better lt_prog_compiler_static that works with the bundled CC?
9596       lt_prog_compiler_static='${wl}-a ${wl}archive'
9597       ;;
9598
9599     irix5* | irix6* | nonstopux*)
9600       lt_prog_compiler_wl='-Wl,'
9601       # PIC (with -KPIC) is the default.
9602       lt_prog_compiler_static='-non_shared'
9603       ;;
9604
9605     linux* | k*bsd*-gnu)
9606       case $cc_basename in
9607       # old Intel for x86_64 which still supported -KPIC.
9608       ecc*)
9609         lt_prog_compiler_wl='-Wl,'
9610         lt_prog_compiler_pic='-KPIC'
9611         lt_prog_compiler_static='-static'
9612         ;;
9613       # icc used to be incompatible with GCC.
9614       # ICC 10 doesn't accept -KPIC any more.
9615       icc* | ifort*)
9616         lt_prog_compiler_wl='-Wl,'
9617         lt_prog_compiler_pic='-fPIC'
9618         lt_prog_compiler_static='-static'
9619         ;;
9620       # Lahey Fortran 8.1.
9621       lf95*)
9622         lt_prog_compiler_wl='-Wl,'
9623         lt_prog_compiler_pic='--shared'
9624         lt_prog_compiler_static='--static'
9625         ;;
9626       pgcc* | pgf77* | pgf90* | pgf95*)
9627         # Portland Group compilers (*not* the Pentium gcc compiler,
9628         # which looks to be a dead project)
9629         lt_prog_compiler_wl='-Wl,'
9630         lt_prog_compiler_pic='-fpic'
9631         lt_prog_compiler_static='-Bstatic'
9632         ;;
9633       ccc*)
9634         lt_prog_compiler_wl='-Wl,'
9635         # All Alpha code is PIC.
9636         lt_prog_compiler_static='-non_shared'
9637         ;;
9638       xl*)
9639         # IBM XL C 8.0/Fortran 10.1 on PPC
9640         lt_prog_compiler_wl='-Wl,'
9641         lt_prog_compiler_pic='-qpic'
9642         lt_prog_compiler_static='-qstaticlink'
9643         ;;
9644       *)
9645         case `$CC -V 2>&1 | sed 5q` in
9646         *Sun\ C*)
9647           # Sun C 5.9
9648           lt_prog_compiler_pic='-KPIC'
9649           lt_prog_compiler_static='-Bstatic'
9650           lt_prog_compiler_wl='-Wl,'
9651           ;;
9652         *Sun\ F*)
9653           # Sun Fortran 8.3 passes all unrecognized flags to the linker
9654           lt_prog_compiler_pic='-KPIC'
9655           lt_prog_compiler_static='-Bstatic'
9656           lt_prog_compiler_wl=''
9657           ;;
9658         esac
9659         ;;
9660       esac
9661       ;;
9662
9663     newsos6)
9664       lt_prog_compiler_pic='-KPIC'
9665       lt_prog_compiler_static='-Bstatic'
9666       ;;
9667
9668     *nto* | *qnx*)
9669       # QNX uses GNU C++, but need to define -shared option too, otherwise
9670       # it will coredump.
9671       lt_prog_compiler_pic='-fPIC -shared'
9672       ;;
9673
9674     osf3* | osf4* | osf5*)
9675       lt_prog_compiler_wl='-Wl,'
9676       # All OSF/1 code is PIC.
9677       lt_prog_compiler_static='-non_shared'
9678       ;;
9679
9680     rdos*)
9681       lt_prog_compiler_static='-non_shared'
9682       ;;
9683
9684     solaris*)
9685       lt_prog_compiler_pic='-KPIC'
9686       lt_prog_compiler_static='-Bstatic'
9687       case $cc_basename in
9688       f77* | f90* | f95*)
9689         lt_prog_compiler_wl='-Qoption ld ';;
9690       *)
9691         lt_prog_compiler_wl='-Wl,';;
9692       esac
9693       ;;
9694
9695     sunos4*)
9696       lt_prog_compiler_wl='-Qoption ld '
9697       lt_prog_compiler_pic='-PIC'
9698       lt_prog_compiler_static='-Bstatic'
9699       ;;
9700
9701     sysv4 | sysv4.2uw2* | sysv4.3*)
9702       lt_prog_compiler_wl='-Wl,'
9703       lt_prog_compiler_pic='-KPIC'
9704       lt_prog_compiler_static='-Bstatic'
9705       ;;
9706
9707     sysv4*MP*)
9708       if test -d /usr/nec ;then
9709         lt_prog_compiler_pic='-Kconform_pic'
9710         lt_prog_compiler_static='-Bstatic'
9711       fi
9712       ;;
9713
9714     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9715       lt_prog_compiler_wl='-Wl,'
9716       lt_prog_compiler_pic='-KPIC'
9717       lt_prog_compiler_static='-Bstatic'
9718       ;;
9719
9720     unicos*)
9721       lt_prog_compiler_wl='-Wl,'
9722       lt_prog_compiler_can_build_shared=no
9723       ;;
9724
9725     uts4*)
9726       lt_prog_compiler_pic='-pic'
9727       lt_prog_compiler_static='-Bstatic'
9728       ;;
9729
9730     *)
9731       lt_prog_compiler_can_build_shared=no
9732       ;;
9733     esac
9734   fi
9735
9736 case $host_os in
9737   # For platforms which do not support PIC, -DPIC is meaningless:
9738   *djgpp*)
9739     lt_prog_compiler_pic=
9740     ;;
9741   *)
9742     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9743     ;;
9744 esac
9745 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
9746 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
9747
9748
9749
9750
9751
9752
9753 #
9754 # Check to make sure the PIC flag actually works.
9755 #
9756 if test -n "$lt_prog_compiler_pic"; then
9757   { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9758 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
9759 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
9760   echo $ECHO_N "(cached) $ECHO_C" >&6
9761 else
9762   lt_cv_prog_compiler_pic_works=no
9763    ac_outfile=conftest.$ac_objext
9764    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9765    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9766    # Insert the option either (1) after the last *FLAGS variable, or
9767    # (2) before a word containing "conftest.", or (3) at the end.
9768    # Note that $ac_compile itself does not contain backslashes and begins
9769    # with a dollar sign (not a hyphen), so the echo should work correctly.
9770    # The option is referenced via a variable to avoid confusing sed.
9771    lt_compile=`echo "$ac_compile" | $SED \
9772    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9773    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9774    -e 's:$: $lt_compiler_flag:'`
9775    (eval echo "\"\$as_me:9775: $lt_compile\"" >&5)
9776    (eval "$lt_compile" 2>conftest.err)
9777    ac_status=$?
9778    cat conftest.err >&5
9779    echo "$as_me:9779: \$? = $ac_status" >&5
9780    if (exit $ac_status) && test -s "$ac_outfile"; then
9781      # The compiler can only warn and ignore the option if not recognized
9782      # So say no if there are warnings other than the usual output.
9783      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9784      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9785      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9786        lt_cv_prog_compiler_pic_works=yes
9787      fi
9788    fi
9789    $RM conftest*
9790
9791 fi
9792 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
9793 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
9794
9795 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9796     case $lt_prog_compiler_pic in
9797      "" | " "*) ;;
9798      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9799      esac
9800 else
9801     lt_prog_compiler_pic=
9802      lt_prog_compiler_can_build_shared=no
9803 fi
9804
9805 fi
9806
9807
9808
9809
9810
9811
9812 #
9813 # Check to make sure the static flag actually works.
9814 #
9815 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9816 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9817 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
9818 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
9819   echo $ECHO_N "(cached) $ECHO_C" >&6
9820 else
9821   lt_cv_prog_compiler_static_works=no
9822    save_LDFLAGS="$LDFLAGS"
9823    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9824    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9825    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9826      # The linker can only warn and ignore the option if not recognized
9827      # So say no if there are warnings
9828      if test -s conftest.err; then
9829        # Append any errors to the config.log.
9830        cat conftest.err 1>&5
9831        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9832        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9833        if diff conftest.exp conftest.er2 >/dev/null; then
9834          lt_cv_prog_compiler_static_works=yes
9835        fi
9836      else
9837        lt_cv_prog_compiler_static_works=yes
9838      fi
9839    fi
9840    $RM -r conftest*
9841    LDFLAGS="$save_LDFLAGS"
9842
9843 fi
9844 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
9845 echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
9846
9847 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9848     :
9849 else
9850     lt_prog_compiler_static=
9851 fi
9852
9853
9854
9855
9856
9857
9858
9859   { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9860 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
9861 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9862   echo $ECHO_N "(cached) $ECHO_C" >&6
9863 else
9864   lt_cv_prog_compiler_c_o=no
9865    $RM -r conftest 2>/dev/null
9866    mkdir conftest
9867    cd conftest
9868    mkdir out
9869    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9870
9871    lt_compiler_flag="-o out/conftest2.$ac_objext"
9872    # Insert the option either (1) after the last *FLAGS variable, or
9873    # (2) before a word containing "conftest.", or (3) at the end.
9874    # Note that $ac_compile itself does not contain backslashes and begins
9875    # with a dollar sign (not a hyphen), so the echo should work correctly.
9876    lt_compile=`echo "$ac_compile" | $SED \
9877    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9878    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9879    -e 's:$: $lt_compiler_flag:'`
9880    (eval echo "\"\$as_me:9880: $lt_compile\"" >&5)
9881    (eval "$lt_compile" 2>out/conftest.err)
9882    ac_status=$?
9883    cat out/conftest.err >&5
9884    echo "$as_me:9884: \$? = $ac_status" >&5
9885    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9886    then
9887      # The compiler can only warn and ignore the option if not recognized
9888      # So say no if there are warnings
9889      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9890      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9891      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9892        lt_cv_prog_compiler_c_o=yes
9893      fi
9894    fi
9895    chmod u+w . 2>&5
9896    $RM conftest*
9897    # SGI C++ compiler will create directory out/ii_files/ for
9898    # template instantiation
9899    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9900    $RM out/* && rmdir out
9901    cd ..
9902    $RM -r conftest
9903    $RM conftest*
9904
9905 fi
9906 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9907 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
9908
9909
9910
9911
9912
9913
9914   { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9915 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
9916 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9917   echo $ECHO_N "(cached) $ECHO_C" >&6
9918 else
9919   lt_cv_prog_compiler_c_o=no
9920    $RM -r conftest 2>/dev/null
9921    mkdir conftest
9922    cd conftest
9923    mkdir out
9924    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9925
9926    lt_compiler_flag="-o out/conftest2.$ac_objext"
9927    # Insert the option either (1) after the last *FLAGS variable, or
9928    # (2) before a word containing "conftest.", or (3) at the end.
9929    # Note that $ac_compile itself does not contain backslashes and begins
9930    # with a dollar sign (not a hyphen), so the echo should work correctly.
9931    lt_compile=`echo "$ac_compile" | $SED \
9932    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9933    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9934    -e 's:$: $lt_compiler_flag:'`
9935    (eval echo "\"\$as_me:9935: $lt_compile\"" >&5)
9936    (eval "$lt_compile" 2>out/conftest.err)
9937    ac_status=$?
9938    cat out/conftest.err >&5
9939    echo "$as_me:9939: \$? = $ac_status" >&5
9940    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9941    then
9942      # The compiler can only warn and ignore the option if not recognized
9943      # So say no if there are warnings
9944      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9945      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9946      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9947        lt_cv_prog_compiler_c_o=yes
9948      fi
9949    fi
9950    chmod u+w . 2>&5
9951    $RM conftest*
9952    # SGI C++ compiler will create directory out/ii_files/ for
9953    # template instantiation
9954    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9955    $RM out/* && rmdir out
9956    cd ..
9957    $RM -r conftest
9958    $RM conftest*
9959
9960 fi
9961 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9962 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
9963
9964
9965
9966
9967 hard_links="nottested"
9968 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9969   # do not overwrite the value of need_locks provided by the user
9970   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
9971 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
9972   hard_links=yes
9973   $RM conftest*
9974   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9975   touch conftest.a
9976   ln conftest.a conftest.b 2>&5 || hard_links=no
9977   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9978   { echo "$as_me:$LINENO: result: $hard_links" >&5
9979 echo "${ECHO_T}$hard_links" >&6; }
9980   if test "$hard_links" = no; then
9981     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9982 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9983     need_locks=warn
9984   fi
9985 else
9986   need_locks=no
9987 fi
9988
9989
9990
9991
9992
9993
9994   { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9995 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
9996
9997   runpath_var=
9998   allow_undefined_flag=
9999   always_export_symbols=no
10000   archive_cmds=
10001   archive_expsym_cmds=
10002   compiler_needs_object=no
10003   enable_shared_with_static_runtimes=no
10004   export_dynamic_flag_spec=
10005   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10006   hardcode_automatic=no
10007   hardcode_direct=no
10008   hardcode_direct_absolute=no
10009   hardcode_libdir_flag_spec=
10010   hardcode_libdir_flag_spec_ld=
10011   hardcode_libdir_separator=
10012   hardcode_minus_L=no
10013   hardcode_shlibpath_var=unsupported
10014   inherit_rpath=no
10015   link_all_deplibs=unknown
10016   module_cmds=
10017   module_expsym_cmds=
10018   old_archive_from_new_cmds=
10019   old_archive_from_expsyms_cmds=
10020   thread_safe_flag_spec=
10021   whole_archive_flag_spec=
10022   # include_expsyms should be a list of space-separated symbols to be *always*
10023   # included in the symbol list
10024   include_expsyms=
10025   # exclude_expsyms can be an extended regexp of symbols to exclude
10026   # it will be wrapped by ` (' and `)$', so one must not match beginning or
10027   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10028   # as well as any symbol that contains `d'.
10029   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10030   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10031   # platforms (ab)use it in PIC code, but their linkers get confused if
10032   # the symbol is explicitly referenced.  Since portable code cannot
10033   # rely on this symbol name, it's probably fine to never include it in
10034   # preloaded symbol tables.
10035   # Exclude shared library initialization/finalization symbols.
10036   extract_expsyms_cmds=
10037
10038   case $host_os in
10039   cygwin* | mingw* | pw32* | cegcc*)
10040     # FIXME: the MSVC++ port hasn't been tested in a loooong time
10041     # When not using gcc, we currently assume that we are using
10042     # Microsoft Visual C++.
10043     if test "$GCC" != yes; then
10044       with_gnu_ld=no
10045     fi
10046     ;;
10047   interix*)
10048     # we just hope/assume this is gcc and not c89 (= MSVC++)
10049     with_gnu_ld=yes
10050     ;;
10051   openbsd*)
10052     with_gnu_ld=no
10053     ;;
10054   esac
10055
10056   ld_shlibs=yes
10057   if test "$with_gnu_ld" = yes; then
10058     # If archive_cmds runs LD, not CC, wlarc should be empty
10059     wlarc='${wl}'
10060
10061     # Set some defaults for GNU ld with shared library support. These
10062     # are reset later if shared libraries are not supported. Putting them
10063     # here allows them to be overridden if necessary.
10064     runpath_var=LD_RUN_PATH
10065     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10066     export_dynamic_flag_spec='${wl}--export-dynamic'
10067     # ancient GNU ld didn't support --whole-archive et. al.
10068     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10069       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10070     else
10071       whole_archive_flag_spec=
10072     fi
10073     supports_anon_versioning=no
10074     case `$LD -v 2>&1` in
10075       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10076       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10077       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10078       *\ 2.11.*) ;; # other 2.11 versions
10079       *) supports_anon_versioning=yes ;;
10080     esac
10081
10082     # See if GNU ld supports shared libraries.
10083     case $host_os in
10084     aix[3-9]*)
10085       # On AIX/PPC, the GNU linker is very broken
10086       if test "$host_cpu" != ia64; then
10087         ld_shlibs=no
10088         cat <<_LT_EOF 1>&2
10089
10090 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
10091 *** to be unable to reliably create shared libraries on AIX.
10092 *** Therefore, libtool is disabling shared libraries support.  If you
10093 *** really care for shared libraries, you may want to modify your PATH
10094 *** so that a non-GNU linker is found, and then restart.
10095
10096 _LT_EOF
10097       fi
10098       ;;
10099
10100     amigaos*)
10101       case $host_cpu in
10102       powerpc)
10103             # see comment about AmigaOS4 .so support
10104             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10105             archive_expsym_cmds=''
10106         ;;
10107       m68k)
10108             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)'
10109             hardcode_libdir_flag_spec='-L$libdir'
10110             hardcode_minus_L=yes
10111         ;;
10112       esac
10113       ;;
10114
10115     beos*)
10116       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10117         allow_undefined_flag=unsupported
10118         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10119         # support --undefined.  This deserves some investigation.  FIXME
10120         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10121       else
10122         ld_shlibs=no
10123       fi
10124       ;;
10125
10126     cygwin* | mingw* | pw32* | cegcc*)
10127       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10128       # as there is no search path for DLLs.
10129       hardcode_libdir_flag_spec='-L$libdir'
10130       allow_undefined_flag=unsupported
10131       always_export_symbols=no
10132       enable_shared_with_static_runtimes=yes
10133       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10134
10135       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10136         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10137         # If the export-symbols file already is a .def file (1st line
10138         # is EXPORTS), use it as is; otherwise, prepend...
10139         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10140           cp $export_symbols $output_objdir/$soname.def;
10141         else
10142           echo EXPORTS > $output_objdir/$soname.def;
10143           cat $export_symbols >> $output_objdir/$soname.def;
10144         fi~
10145         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10146       else
10147         ld_shlibs=no
10148       fi
10149       ;;
10150
10151     interix[3-9]*)
10152       hardcode_direct=no
10153       hardcode_shlibpath_var=no
10154       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10155       export_dynamic_flag_spec='${wl}-E'
10156       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10157       # Instead, shared libraries are loaded at an image base (0x10000000 by
10158       # default) and relocated if they conflict, which is a slow very memory
10159       # consuming and fragmenting process.  To avoid this, we pick a random,
10160       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10161       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10162       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10163       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'
10164       ;;
10165
10166     gnu* | linux* | tpf* | k*bsd*-gnu)
10167       tmp_diet=no
10168       if test "$host_os" = linux-dietlibc; then
10169         case $cc_basename in
10170           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
10171         esac
10172       fi
10173       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10174          && test "$tmp_diet" = no
10175       then
10176         tmp_addflag=
10177         tmp_sharedflag='-shared'
10178         case $cc_basename,$host_cpu in
10179         pgcc*)                          # Portland Group C compiler
10180           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'
10181           tmp_addflag=' $pic_flag'
10182           ;;
10183         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
10184           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'
10185           tmp_addflag=' $pic_flag -Mnomain' ;;
10186         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
10187           tmp_addflag=' -i_dynamic' ;;
10188         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
10189           tmp_addflag=' -i_dynamic -nofor_main' ;;
10190         ifc* | ifort*)                  # Intel Fortran compiler
10191           tmp_addflag=' -nofor_main' ;;
10192         lf95*)                          # Lahey Fortran 8.1
10193           whole_archive_flag_spec=
10194           tmp_sharedflag='--shared' ;;
10195         xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
10196           tmp_sharedflag='-qmkshrobj'
10197           tmp_addflag= ;;
10198         esac
10199         case `$CC -V 2>&1 | sed 5q` in
10200         *Sun\ C*)                       # Sun C 5.9
10201           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'
10202           compiler_needs_object=yes
10203           tmp_sharedflag='-G' ;;
10204         *Sun\ F*)                       # Sun Fortran 8.3
10205           tmp_sharedflag='-G' ;;
10206         esac
10207         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10208
10209         if test "x$supports_anon_versioning" = xyes; then
10210           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10211             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10212             echo "local: *; };" >> $output_objdir/$libname.ver~
10213             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10214         fi
10215
10216         case $cc_basename in
10217         xlf*)
10218           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10219           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10220           hardcode_libdir_flag_spec=
10221           hardcode_libdir_flag_spec_ld='-rpath $libdir'
10222           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
10223           if test "x$supports_anon_versioning" = xyes; then
10224             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10225               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10226               echo "local: *; };" >> $output_objdir/$libname.ver~
10227               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10228           fi
10229           ;;
10230         esac
10231       else
10232         ld_shlibs=no
10233       fi
10234       ;;
10235
10236     netbsd*)
10237       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10238         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10239         wlarc=
10240       else
10241         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10242         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10243       fi
10244       ;;
10245
10246     solaris*)
10247       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10248         ld_shlibs=no
10249         cat <<_LT_EOF 1>&2
10250
10251 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10252 *** create shared libraries on Solaris systems.  Therefore, libtool
10253 *** is disabling shared libraries support.  We urge you to upgrade GNU
10254 *** binutils to release 2.9.1 or newer.  Another option is to modify
10255 *** your PATH or compiler configuration so that the native linker is
10256 *** used, and then restart.
10257
10258 _LT_EOF
10259       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10260         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10261         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10262       else
10263         ld_shlibs=no
10264       fi
10265       ;;
10266
10267     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10268       case `$LD -v 2>&1` in
10269         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10270         ld_shlibs=no
10271         cat <<_LT_EOF 1>&2
10272
10273 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10274 *** reliably create shared libraries on SCO systems.  Therefore, libtool
10275 *** is disabling shared libraries support.  We urge you to upgrade GNU
10276 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10277 *** your PATH or compiler configuration so that the native linker is
10278 *** used, and then restart.
10279
10280 _LT_EOF
10281         ;;
10282         *)
10283           # For security reasons, it is highly recommended that you always
10284           # use absolute paths for naming shared libraries, and exclude the
10285           # DT_RUNPATH tag from executables and libraries.  But doing so
10286           # requires that you compile everything twice, which is a pain.
10287           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10288             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10289             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10290             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10291           else
10292             ld_shlibs=no
10293           fi
10294         ;;
10295       esac
10296       ;;
10297
10298     sunos4*)
10299       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10300       wlarc=
10301       hardcode_direct=yes
10302       hardcode_shlibpath_var=no
10303       ;;
10304
10305     *)
10306       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10307         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10308         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10309       else
10310         ld_shlibs=no
10311       fi
10312       ;;
10313     esac
10314
10315     if test "$ld_shlibs" = no; then
10316       runpath_var=
10317       hardcode_libdir_flag_spec=
10318       export_dynamic_flag_spec=
10319       whole_archive_flag_spec=
10320     fi
10321   else
10322     # PORTME fill in a description of your system's linker (not GNU ld)
10323     case $host_os in
10324     aix3*)
10325       allow_undefined_flag=unsupported
10326       always_export_symbols=yes
10327       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'
10328       # Note: this linker hardcodes the directories in LIBPATH if there
10329       # are no directories specified by -L.
10330       hardcode_minus_L=yes
10331       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10332         # Neither direct hardcoding nor static linking is supported with a
10333         # broken collect2.
10334         hardcode_direct=unsupported
10335       fi
10336       ;;
10337
10338     aix[4-9]*)
10339       if test "$host_cpu" = ia64; then
10340         # On IA64, the linker does run time linking by default, so we don't
10341         # have to do anything special.
10342         aix_use_runtimelinking=no
10343         exp_sym_flag='-Bexport'
10344         no_entry_flag=""
10345       else
10346         # If we're using GNU nm, then we don't want the "-C" option.
10347         # -C means demangle to AIX nm, but means don't demangle with GNU nm
10348         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10349           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'
10350         else
10351           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'
10352         fi
10353         aix_use_runtimelinking=no
10354
10355         # Test if we are trying to use run time linking or normal
10356         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10357         # need to do runtime linking.
10358         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10359           for ld_flag in $LDFLAGS; do
10360           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10361             aix_use_runtimelinking=yes
10362             break
10363           fi
10364           done
10365           ;;
10366         esac
10367
10368         exp_sym_flag='-bexport'
10369         no_entry_flag='-bnoentry'
10370       fi
10371
10372       # When large executables or shared objects are built, AIX ld can
10373       # have problems creating the table of contents.  If linking a library
10374       # or program results in "error TOC overflow" add -mminimal-toc to
10375       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10376       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10377
10378       archive_cmds=''
10379       hardcode_direct=yes
10380       hardcode_direct_absolute=yes
10381       hardcode_libdir_separator=':'
10382       link_all_deplibs=yes
10383       file_list_spec='${wl}-f,'
10384
10385       if test "$GCC" = yes; then
10386         case $host_os in aix4.[012]|aix4.[012].*)
10387         # We only want to do this on AIX 4.2 and lower, the check
10388         # below for broken collect2 doesn't work under 4.3+
10389           collect2name=`${CC} -print-prog-name=collect2`
10390           if test -f "$collect2name" &&
10391            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10392           then
10393           # We have reworked collect2
10394           :
10395           else
10396           # We have old collect2
10397           hardcode_direct=unsupported
10398           # It fails to find uninstalled libraries when the uninstalled
10399           # path is not listed in the libpath.  Setting hardcode_minus_L
10400           # to unsupported forces relinking
10401           hardcode_minus_L=yes
10402           hardcode_libdir_flag_spec='-L$libdir'
10403           hardcode_libdir_separator=
10404           fi
10405           ;;
10406         esac
10407         shared_flag='-shared'
10408         if test "$aix_use_runtimelinking" = yes; then
10409           shared_flag="$shared_flag "'${wl}-G'
10410         fi
10411       else
10412         # not using gcc
10413         if test "$host_cpu" = ia64; then
10414         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10415         # chokes on -Wl,-G. The following line is correct:
10416           shared_flag='-G'
10417         else
10418           if test "$aix_use_runtimelinking" = yes; then
10419             shared_flag='${wl}-G'
10420           else
10421             shared_flag='${wl}-bM:SRE'
10422           fi
10423         fi
10424       fi
10425
10426       export_dynamic_flag_spec='${wl}-bexpall'
10427       # It seems that -bexpall does not export symbols beginning with
10428       # underscore (_), so it is better to generate a list of symbols to export.
10429       always_export_symbols=yes
10430       if test "$aix_use_runtimelinking" = yes; then
10431         # Warning - without using the other runtime loading flags (-brtl),
10432         # -berok will link without error, but may produce a broken library.
10433         allow_undefined_flag='-berok'
10434         # Determine the default libpath from the value encoded in an
10435         # empty executable.
10436         cat >conftest.$ac_ext <<_ACEOF
10437 /* confdefs.h.  */
10438 _ACEOF
10439 cat confdefs.h >>conftest.$ac_ext
10440 cat >>conftest.$ac_ext <<_ACEOF
10441 /* end confdefs.h.  */
10442
10443 int
10444 main ()
10445 {
10446
10447   ;
10448   return 0;
10449 }
10450 _ACEOF
10451 rm -f conftest.$ac_objext conftest$ac_exeext
10452 if { (ac_try="$ac_link"
10453 case "(($ac_try" in
10454   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10455   *) ac_try_echo=$ac_try;;
10456 esac
10457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10458   (eval "$ac_link") 2>conftest.er1
10459   ac_status=$?
10460   grep -v '^ *+' conftest.er1 >conftest.err
10461   rm -f conftest.er1
10462   cat conftest.err >&5
10463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10464   (exit $ac_status); } && {
10465          test -z "$ac_c_werror_flag" ||
10466          test ! -s conftest.err
10467        } && test -s conftest$ac_exeext &&
10468        $as_test_x conftest$ac_exeext; then
10469
10470 lt_aix_libpath_sed='
10471     /Import File Strings/,/^$/ {
10472         /^0/ {
10473             s/^0  *\(.*\)$/\1/
10474             p
10475         }
10476     }'
10477 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10478 # Check for a 64-bit object if we didn't find anything.
10479 if test -z "$aix_libpath"; then
10480   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10481 fi
10482 else
10483   echo "$as_me: failed program was:" >&5
10484 sed 's/^/| /' conftest.$ac_ext >&5
10485
10486
10487 fi
10488
10489 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10490       conftest$ac_exeext conftest.$ac_ext
10491 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10492
10493         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10494         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"
10495       else
10496         if test "$host_cpu" = ia64; then
10497           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10498           allow_undefined_flag="-z nodefs"
10499           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"
10500         else
10501          # Determine the default libpath from the value encoded in an
10502          # empty executable.
10503          cat >conftest.$ac_ext <<_ACEOF
10504 /* confdefs.h.  */
10505 _ACEOF
10506 cat confdefs.h >>conftest.$ac_ext
10507 cat >>conftest.$ac_ext <<_ACEOF
10508 /* end confdefs.h.  */
10509
10510 int
10511 main ()
10512 {
10513
10514   ;
10515   return 0;
10516 }
10517 _ACEOF
10518 rm -f conftest.$ac_objext conftest$ac_exeext
10519 if { (ac_try="$ac_link"
10520 case "(($ac_try" in
10521   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10522   *) ac_try_echo=$ac_try;;
10523 esac
10524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10525   (eval "$ac_link") 2>conftest.er1
10526   ac_status=$?
10527   grep -v '^ *+' conftest.er1 >conftest.err
10528   rm -f conftest.er1
10529   cat conftest.err >&5
10530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10531   (exit $ac_status); } && {
10532          test -z "$ac_c_werror_flag" ||
10533          test ! -s conftest.err
10534        } && test -s conftest$ac_exeext &&
10535        $as_test_x conftest$ac_exeext; then
10536
10537 lt_aix_libpath_sed='
10538     /Import File Strings/,/^$/ {
10539         /^0/ {
10540             s/^0  *\(.*\)$/\1/
10541             p
10542         }
10543     }'
10544 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10545 # Check for a 64-bit object if we didn't find anything.
10546 if test -z "$aix_libpath"; then
10547   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10548 fi
10549 else
10550   echo "$as_me: failed program was:" >&5
10551 sed 's/^/| /' conftest.$ac_ext >&5
10552
10553
10554 fi
10555
10556 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10557       conftest$ac_exeext conftest.$ac_ext
10558 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10559
10560          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10561           # Warning - without using the other run time loading flags,
10562           # -berok will link without error, but may produce a broken library.
10563           no_undefined_flag=' ${wl}-bernotok'
10564           allow_undefined_flag=' ${wl}-berok'
10565           # Exported symbols can be pulled into shared objects from archives
10566           whole_archive_flag_spec='$convenience'
10567           archive_cmds_need_lc=yes
10568           # This is similar to how AIX traditionally builds its shared libraries.
10569           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'
10570         fi
10571       fi
10572       ;;
10573
10574     amigaos*)
10575       case $host_cpu in
10576       powerpc)
10577             # see comment about AmigaOS4 .so support
10578             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10579             archive_expsym_cmds=''
10580         ;;
10581       m68k)
10582             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)'
10583             hardcode_libdir_flag_spec='-L$libdir'
10584             hardcode_minus_L=yes
10585         ;;
10586       esac
10587       ;;
10588
10589     bsdi[45]*)
10590       export_dynamic_flag_spec=-rdynamic
10591       ;;
10592
10593     cygwin* | mingw* | pw32* | cegcc*)
10594       # When not using gcc, we currently assume that we are using
10595       # Microsoft Visual C++.
10596       # hardcode_libdir_flag_spec is actually meaningless, as there is
10597       # no search path for DLLs.
10598       hardcode_libdir_flag_spec=' '
10599       allow_undefined_flag=unsupported
10600       # Tell ltmain to make .lib files, not .a files.
10601       libext=lib
10602       # Tell ltmain to make .dll files, not .so files.
10603       shrext_cmds=".dll"
10604       # FIXME: Setting linknames here is a bad hack.
10605       archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
10606       # The linker will automatically build a .lib file if we build a DLL.
10607       old_archive_from_new_cmds='true'
10608       # FIXME: Should let the user specify the lib program.
10609       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10610       fix_srcfile_path='`cygpath -w "$srcfile"`'
10611       enable_shared_with_static_runtimes=yes
10612       ;;
10613
10614     darwin* | rhapsody*)
10615
10616
10617   archive_cmds_need_lc=no
10618   hardcode_direct=no
10619   hardcode_automatic=yes
10620   hardcode_shlibpath_var=unsupported
10621   whole_archive_flag_spec=''
10622   link_all_deplibs=yes
10623   allow_undefined_flag="$_lt_dar_allow_undefined"
10624   case $cc_basename in
10625      ifort*) _lt_dar_can_shared=yes ;;
10626      *) _lt_dar_can_shared=$GCC ;;
10627   esac
10628   if test "$_lt_dar_can_shared" = "yes"; then
10629     output_verbose_link_cmd=echo
10630     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10631     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10632     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}"
10633     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}"
10634
10635   else
10636   ld_shlibs=no
10637   fi
10638
10639       ;;
10640
10641     dgux*)
10642       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10643       hardcode_libdir_flag_spec='-L$libdir'
10644       hardcode_shlibpath_var=no
10645       ;;
10646
10647     freebsd1*)
10648       ld_shlibs=no
10649       ;;
10650
10651     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10652     # support.  Future versions do this automatically, but an explicit c++rt0.o
10653     # does not break anything, and helps significantly (at the cost of a little
10654     # extra space).
10655     freebsd2.2*)
10656       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10657       hardcode_libdir_flag_spec='-R$libdir'
10658       hardcode_direct=yes
10659       hardcode_shlibpath_var=no
10660       ;;
10661
10662     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10663     freebsd2*)
10664       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10665       hardcode_direct=yes
10666       hardcode_minus_L=yes
10667       hardcode_shlibpath_var=no
10668       ;;
10669
10670     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10671     freebsd* | dragonfly*)
10672       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10673       hardcode_libdir_flag_spec='-R$libdir'
10674       hardcode_direct=yes
10675       hardcode_shlibpath_var=no
10676       ;;
10677
10678     hpux9*)
10679       if test "$GCC" = yes; then
10680         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'
10681       else
10682         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'
10683       fi
10684       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10685       hardcode_libdir_separator=:
10686       hardcode_direct=yes
10687
10688       # hardcode_minus_L: Not really in the search PATH,
10689       # but as the default location of the library.
10690       hardcode_minus_L=yes
10691       export_dynamic_flag_spec='${wl}-E'
10692       ;;
10693
10694     hpux10*)
10695       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10696         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10697       else
10698         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10699       fi
10700       if test "$with_gnu_ld" = no; then
10701         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10702         hardcode_libdir_flag_spec_ld='+b $libdir'
10703         hardcode_libdir_separator=:
10704         hardcode_direct=yes
10705         hardcode_direct_absolute=yes
10706         export_dynamic_flag_spec='${wl}-E'
10707         # hardcode_minus_L: Not really in the search PATH,
10708         # but as the default location of the library.
10709         hardcode_minus_L=yes
10710       fi
10711       ;;
10712
10713     hpux11*)
10714       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10715         case $host_cpu in
10716         hppa*64*)
10717           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10718           ;;
10719         ia64*)
10720           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10721           ;;
10722         *)
10723           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10724           ;;
10725         esac
10726       else
10727         case $host_cpu in
10728         hppa*64*)
10729           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10730           ;;
10731         ia64*)
10732           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10733           ;;
10734         *)
10735           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10736           ;;
10737         esac
10738       fi
10739       if test "$with_gnu_ld" = no; then
10740         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10741         hardcode_libdir_separator=:
10742
10743         case $host_cpu in
10744         hppa*64*|ia64*)
10745           hardcode_direct=no
10746           hardcode_shlibpath_var=no
10747           ;;
10748         *)
10749           hardcode_direct=yes
10750           hardcode_direct_absolute=yes
10751           export_dynamic_flag_spec='${wl}-E'
10752
10753           # hardcode_minus_L: Not really in the search PATH,
10754           # but as the default location of the library.
10755           hardcode_minus_L=yes
10756           ;;
10757         esac
10758       fi
10759       ;;
10760
10761     irix5* | irix6* | nonstopux*)
10762       if test "$GCC" = yes; then
10763         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'
10764         # Try to use the -exported_symbol ld option, if it does not
10765         # work, assume that -exports_file does not work either and
10766         # implicitly export all symbols.
10767         save_LDFLAGS="$LDFLAGS"
10768         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10769         cat >conftest.$ac_ext <<_ACEOF
10770 int foo(void) {}
10771 _ACEOF
10772 rm -f conftest.$ac_objext conftest$ac_exeext
10773 if { (ac_try="$ac_link"
10774 case "(($ac_try" in
10775   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10776   *) ac_try_echo=$ac_try;;
10777 esac
10778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10779   (eval "$ac_link") 2>conftest.er1
10780   ac_status=$?
10781   grep -v '^ *+' conftest.er1 >conftest.err
10782   rm -f conftest.er1
10783   cat conftest.err >&5
10784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10785   (exit $ac_status); } && {
10786          test -z "$ac_c_werror_flag" ||
10787          test ! -s conftest.err
10788        } && test -s conftest$ac_exeext &&
10789        $as_test_x conftest$ac_exeext; then
10790   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'
10791
10792 else
10793   echo "$as_me: failed program was:" >&5
10794 sed 's/^/| /' conftest.$ac_ext >&5
10795
10796
10797 fi
10798
10799 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10800       conftest$ac_exeext conftest.$ac_ext
10801         LDFLAGS="$save_LDFLAGS"
10802       else
10803         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'
10804         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'
10805       fi
10806       archive_cmds_need_lc='no'
10807       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10808       hardcode_libdir_separator=:
10809       inherit_rpath=yes
10810       link_all_deplibs=yes
10811       ;;
10812
10813     netbsd*)
10814       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10815         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10816       else
10817         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10818       fi
10819       hardcode_libdir_flag_spec='-R$libdir'
10820       hardcode_direct=yes
10821       hardcode_shlibpath_var=no
10822       ;;
10823
10824     newsos6)
10825       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10826       hardcode_direct=yes
10827       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10828       hardcode_libdir_separator=:
10829       hardcode_shlibpath_var=no
10830       ;;
10831
10832     *nto* | *qnx*)
10833       ;;
10834
10835     openbsd*)
10836       if test -f /usr/libexec/ld.so; then
10837         hardcode_direct=yes
10838         hardcode_shlibpath_var=no
10839         hardcode_direct_absolute=yes
10840         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10841           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10842           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10843           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10844           export_dynamic_flag_spec='${wl}-E'
10845         else
10846           case $host_os in
10847            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10848              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10849              hardcode_libdir_flag_spec='-R$libdir'
10850              ;;
10851            *)
10852              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10853              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10854              ;;
10855           esac
10856         fi
10857       else
10858         ld_shlibs=no
10859       fi
10860       ;;
10861
10862     os2*)
10863       hardcode_libdir_flag_spec='-L$libdir'
10864       hardcode_minus_L=yes
10865       allow_undefined_flag=unsupported
10866       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'
10867       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10868       ;;
10869
10870     osf3*)
10871       if test "$GCC" = yes; then
10872         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10873         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'
10874       else
10875         allow_undefined_flag=' -expect_unresolved \*'
10876         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'
10877       fi
10878       archive_cmds_need_lc='no'
10879       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10880       hardcode_libdir_separator=:
10881       ;;
10882
10883     osf4* | osf5*)      # as osf3* with the addition of -msym flag
10884       if test "$GCC" = yes; then
10885         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10886         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'
10887         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10888       else
10889         allow_undefined_flag=' -expect_unresolved \*'
10890         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'
10891         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~
10892         $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'
10893
10894         # Both c and cxx compiler support -rpath directly
10895         hardcode_libdir_flag_spec='-rpath $libdir'
10896       fi
10897       archive_cmds_need_lc='no'
10898       hardcode_libdir_separator=:
10899       ;;
10900
10901     solaris*)
10902       no_undefined_flag=' -z defs'
10903       if test "$GCC" = yes; then
10904         wlarc='${wl}'
10905         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10906         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10907           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10908       else
10909         case `$CC -V 2>&1` in
10910         *"Compilers 5.0"*)
10911           wlarc=''
10912           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10913           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10914           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10915           ;;
10916         *)
10917           wlarc='${wl}'
10918           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10919           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10920           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10921           ;;
10922         esac
10923       fi
10924       hardcode_libdir_flag_spec='-R$libdir'
10925       hardcode_shlibpath_var=no
10926       case $host_os in
10927       solaris2.[0-5] | solaris2.[0-5].*) ;;
10928       *)
10929         # The compiler driver will combine and reorder linker options,
10930         # but understands `-z linker_flag'.  GCC discards it without `$wl',
10931         # but is careful enough not to reorder.
10932         # Supported since Solaris 2.6 (maybe 2.5.1?)
10933         if test "$GCC" = yes; then
10934           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10935         else
10936           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10937         fi
10938         ;;
10939       esac
10940       link_all_deplibs=yes
10941       ;;
10942
10943     sunos4*)
10944       if test "x$host_vendor" = xsequent; then
10945         # Use $CC to link under sequent, because it throws in some extra .o
10946         # files that make .init and .fini sections work.
10947         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10948       else
10949         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10950       fi
10951       hardcode_libdir_flag_spec='-L$libdir'
10952       hardcode_direct=yes
10953       hardcode_minus_L=yes
10954       hardcode_shlibpath_var=no
10955       ;;
10956
10957     sysv4)
10958       case $host_vendor in
10959         sni)
10960           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10961           hardcode_direct=yes # is this really true???
10962         ;;
10963         siemens)
10964           ## LD is ld it makes a PLAMLIB
10965           ## CC just makes a GrossModule.
10966           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10967           reload_cmds='$CC -r -o $output$reload_objs'
10968           hardcode_direct=no
10969         ;;
10970         motorola)
10971           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10972           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10973         ;;
10974       esac
10975       runpath_var='LD_RUN_PATH'
10976       hardcode_shlibpath_var=no
10977       ;;
10978
10979     sysv4.3*)
10980       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10981       hardcode_shlibpath_var=no
10982       export_dynamic_flag_spec='-Bexport'
10983       ;;
10984
10985     sysv4*MP*)
10986       if test -d /usr/nec; then
10987         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10988         hardcode_shlibpath_var=no
10989         runpath_var=LD_RUN_PATH
10990         hardcode_runpath_var=yes
10991         ld_shlibs=yes
10992       fi
10993       ;;
10994
10995     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10996       no_undefined_flag='${wl}-z,text'
10997       archive_cmds_need_lc=no
10998       hardcode_shlibpath_var=no
10999       runpath_var='LD_RUN_PATH'
11000
11001       if test "$GCC" = yes; then
11002         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11003         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11004       else
11005         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11006         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11007       fi
11008       ;;
11009
11010     sysv5* | sco3.2v5* | sco5v6*)
11011       # Note: We can NOT use -z defs as we might desire, because we do not
11012       # link with -lc, and that would cause any symbols used from libc to
11013       # always be unresolved, which means just about no library would
11014       # ever link correctly.  If we're not using GNU ld we use -z text
11015       # though, which does catch some bad symbols but isn't as heavy-handed
11016       # as -z defs.
11017       no_undefined_flag='${wl}-z,text'
11018       allow_undefined_flag='${wl}-z,nodefs'
11019       archive_cmds_need_lc=no
11020       hardcode_shlibpath_var=no
11021       hardcode_libdir_flag_spec='${wl}-R,$libdir'
11022       hardcode_libdir_separator=':'
11023       link_all_deplibs=yes
11024       export_dynamic_flag_spec='${wl}-Bexport'
11025       runpath_var='LD_RUN_PATH'
11026
11027       if test "$GCC" = yes; then
11028         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11029         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11030       else
11031         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11032         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11033       fi
11034       ;;
11035
11036     uts4*)
11037       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11038       hardcode_libdir_flag_spec='-L$libdir'
11039       hardcode_shlibpath_var=no
11040       ;;
11041
11042     *)
11043       ld_shlibs=no
11044       ;;
11045     esac
11046
11047     if test x$host_vendor = xsni; then
11048       case $host in
11049       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11050         export_dynamic_flag_spec='${wl}-Blargedynsym'
11051         ;;
11052       esac
11053     fi
11054   fi
11055
11056 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
11057 echo "${ECHO_T}$ld_shlibs" >&6; }
11058 test "$ld_shlibs" = no && can_build_shared=no
11059
11060 with_gnu_ld=$with_gnu_ld
11061
11062
11063
11064
11065
11066
11067
11068
11069
11070
11071
11072
11073
11074
11075
11076 #
11077 # Do we need to explicitly link libc?
11078 #
11079 case "x$archive_cmds_need_lc" in
11080 x|xyes)
11081   # Assume -lc should be added
11082   archive_cmds_need_lc=yes
11083
11084   if test "$enable_shared" = yes && test "$GCC" = yes; then
11085     case $archive_cmds in
11086     *'~'*)
11087       # FIXME: we may have to deal with multi-command sequences.
11088       ;;
11089     '$CC '*)
11090       # Test whether the compiler implicitly links with -lc since on some
11091       # systems, -lgcc has to come before -lc. If gcc already passes -lc
11092       # to ld, don't add -lc before -lgcc.
11093       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11094 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
11095       $RM conftest*
11096       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11097
11098       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11099   (eval $ac_compile) 2>&5
11100   ac_status=$?
11101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11102   (exit $ac_status); } 2>conftest.err; then
11103         soname=conftest
11104         lib=conftest
11105         libobjs=conftest.$ac_objext
11106         deplibs=
11107         wl=$lt_prog_compiler_wl
11108         pic_flag=$lt_prog_compiler_pic
11109         compiler_flags=-v
11110         linker_flags=-v
11111         verstring=
11112         output_objdir=.
11113         libname=conftest
11114         lt_save_allow_undefined_flag=$allow_undefined_flag
11115         allow_undefined_flag=
11116         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
11117   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11118   ac_status=$?
11119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11120   (exit $ac_status); }
11121         then
11122           archive_cmds_need_lc=no
11123         else
11124           archive_cmds_need_lc=yes
11125         fi
11126         allow_undefined_flag=$lt_save_allow_undefined_flag
11127       else
11128         cat conftest.err 1>&5
11129       fi
11130       $RM conftest*
11131       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
11132 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
11133       ;;
11134     esac
11135   fi
11136   ;;
11137 esac
11138
11139
11140
11141
11142
11143
11144
11145
11146
11147
11148
11149
11150
11151
11152
11153
11154
11155
11156
11157
11158
11159
11160
11161
11162
11163
11164
11165
11166
11167
11168
11169
11170
11171
11172
11173
11174
11175
11176
11177
11178
11179
11180
11181
11182
11183
11184
11185
11186
11187
11188
11189
11190
11191
11192
11193
11194
11195
11196
11197
11198
11199
11200
11201
11202
11203
11204
11205
11206
11207
11208
11209
11210
11211
11212
11213
11214
11215
11216
11217
11218
11219
11220
11221
11222
11223
11224
11225
11226
11227
11228
11229
11230
11231
11232
11233
11234
11235
11236
11237
11238
11239
11240
11241
11242
11243
11244
11245
11246
11247
11248
11249
11250
11251
11252
11253
11254
11255
11256
11257
11258
11259
11260
11261
11262
11263
11264
11265
11266
11267
11268
11269
11270
11271
11272
11273
11274
11275
11276
11277
11278
11279
11280
11281
11282
11283
11284
11285
11286
11287
11288
11289
11290
11291
11292
11293
11294
11295   { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11296 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
11297
11298 if test "$GCC" = yes; then
11299   case $host_os in
11300     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11301     *) lt_awk_arg="/^libraries:/" ;;
11302   esac
11303   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11304   if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
11305     # if the path contains ";" then we assume it to be the separator
11306     # otherwise default to the standard path separator (i.e. ":") - it is
11307     # assumed that no part of a normal pathname contains ";" but that should
11308     # okay in the real world where ";" in dirpaths is itself problematic.
11309     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
11310   else
11311     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11312   fi
11313   # Ok, now we have the path, separated by spaces, we can step through it
11314   # and add multilib dir if necessary.
11315   lt_tmp_lt_search_path_spec=
11316   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11317   for lt_sys_path in $lt_search_path_spec; do
11318     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11319       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11320     else
11321       test -d "$lt_sys_path" && \
11322         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11323     fi
11324   done
11325   lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
11326 BEGIN {RS=" "; FS="/|\n";} {
11327   lt_foo="";
11328   lt_count=0;
11329   for (lt_i = NF; lt_i > 0; lt_i--) {
11330     if ($lt_i != "" && $lt_i != ".") {
11331       if ($lt_i == "..") {
11332         lt_count++;
11333       } else {
11334         if (lt_count == 0) {
11335           lt_foo="/" $lt_i lt_foo;
11336         } else {
11337           lt_count--;
11338         }
11339       }
11340     }
11341   }
11342   if (lt_foo != "") { lt_freq[lt_foo]++; }
11343   if (lt_freq[lt_foo] == 1) { print lt_foo; }
11344 }'`
11345   sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
11346 else
11347   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11348 fi
11349 library_names_spec=
11350 libname_spec='lib$name'
11351 soname_spec=
11352 shrext_cmds=".so"
11353 postinstall_cmds=
11354 postuninstall_cmds=
11355 finish_cmds=
11356 finish_eval=
11357 shlibpath_var=
11358 shlibpath_overrides_runpath=unknown
11359 version_type=none
11360 dynamic_linker="$host_os ld.so"
11361 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11362 need_lib_prefix=unknown
11363 hardcode_into_libs=no
11364
11365 # when you set need_version to no, make sure it does not cause -set_version
11366 # flags to be left without arguments
11367 need_version=unknown
11368
11369 case $host_os in
11370 aix3*)
11371   version_type=linux
11372   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11373   shlibpath_var=LIBPATH
11374
11375   # AIX 3 has no versioning support, so we append a major version to the name.
11376   soname_spec='${libname}${release}${shared_ext}$major'
11377   ;;
11378
11379 aix[4-9]*)
11380   version_type=linux
11381   need_lib_prefix=no
11382   need_version=no
11383   hardcode_into_libs=yes
11384   if test "$host_cpu" = ia64; then
11385     # AIX 5 supports IA64
11386     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11387     shlibpath_var=LD_LIBRARY_PATH
11388   else
11389     # With GCC up to 2.95.x, collect2 would create an import file
11390     # for dependence libraries.  The import file would start with
11391     # the line `#! .'.  This would cause the generated library to
11392     # depend on `.', always an invalid library.  This was fixed in
11393     # development snapshots of GCC prior to 3.0.
11394     case $host_os in
11395       aix4 | aix4.[01] | aix4.[01].*)
11396       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11397            echo ' yes '
11398            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11399         :
11400       else
11401         can_build_shared=no
11402       fi
11403       ;;
11404     esac
11405     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11406     # soname into executable. Probably we can add versioning support to
11407     # collect2, so additional links can be useful in future.
11408     if test "$aix_use_runtimelinking" = yes; then
11409       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11410       # instead of lib<name>.a to let people know that these are not
11411       # typical AIX shared libraries.
11412       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11413     else
11414       # We preserve .a as extension for shared libraries through AIX4.2
11415       # and later when we are not doing run time linking.
11416       library_names_spec='${libname}${release}.a $libname.a'
11417       soname_spec='${libname}${release}${shared_ext}$major'
11418     fi
11419     shlibpath_var=LIBPATH
11420   fi
11421   ;;
11422
11423 amigaos*)
11424   case $host_cpu in
11425   powerpc)
11426     # Since July 2007 AmigaOS4 officially supports .so libraries.
11427     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11428     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11429     ;;
11430   m68k)
11431     library_names_spec='$libname.ixlibrary $libname.a'
11432     # Create ${libname}_ixlibrary.a entries in /sys/libs.
11433     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'
11434     ;;
11435   esac
11436   ;;
11437
11438 beos*)
11439   library_names_spec='${libname}${shared_ext}'
11440   dynamic_linker="$host_os ld.so"
11441   shlibpath_var=LIBRARY_PATH
11442   ;;
11443
11444 bsdi[45]*)
11445   version_type=linux
11446   need_version=no
11447   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11448   soname_spec='${libname}${release}${shared_ext}$major'
11449   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11450   shlibpath_var=LD_LIBRARY_PATH
11451   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11452   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11453   # the default ld.so.conf also contains /usr/contrib/lib and
11454   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11455   # libtool to hard-code these into programs
11456   ;;
11457
11458 cygwin* | mingw* | pw32* | cegcc*)
11459   version_type=windows
11460   shrext_cmds=".dll"
11461   need_version=no
11462   need_lib_prefix=no
11463
11464   case $GCC,$host_os in
11465   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11466     library_names_spec='$libname.dll.a'
11467     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11468     postinstall_cmds='base_file=`basename \${file}`~
11469       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11470       dldir=$destdir/`dirname \$dlpath`~
11471       test -d \$dldir || mkdir -p \$dldir~
11472       $install_prog $dir/$dlname \$dldir/$dlname~
11473       chmod a+x \$dldir/$dlname~
11474       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11475         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11476       fi'
11477     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11478       dlpath=$dir/\$dldll~
11479        $RM \$dlpath'
11480     shlibpath_overrides_runpath=yes
11481
11482     case $host_os in
11483     cygwin*)
11484       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11485       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11486       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11487       ;;
11488     mingw* | cegcc*)
11489       # MinGW DLLs use traditional 'lib' prefix
11490       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11491       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11492       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11493         # It is most probably a Windows format PATH printed by
11494         # mingw gcc, but we are running on Cygwin. Gcc prints its search
11495         # path with ; separators, and with drive letters. We can handle the
11496         # drive letters (cygwin fileutils understands them), so leave them,
11497         # especially as we might pass files found there to a mingw objdump,
11498         # which wouldn't understand a cygwinified path. Ahh.
11499         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11500       else
11501         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11502       fi
11503       ;;
11504     pw32*)
11505       # pw32 DLLs use 'pw' prefix rather than 'lib'
11506       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11507       ;;
11508     esac
11509     ;;
11510
11511   *)
11512     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11513     ;;
11514   esac
11515   dynamic_linker='Win32 ld.exe'
11516   # FIXME: first we should search . and the directory the executable is in
11517   shlibpath_var=PATH
11518   ;;
11519
11520 darwin* | rhapsody*)
11521   dynamic_linker="$host_os dyld"
11522   version_type=darwin
11523   need_lib_prefix=no
11524   need_version=no
11525   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11526   soname_spec='${libname}${release}${major}$shared_ext'
11527   shlibpath_overrides_runpath=yes
11528   shlibpath_var=DYLD_LIBRARY_PATH
11529   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11530
11531   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11532   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11533   ;;
11534
11535 dgux*)
11536   version_type=linux
11537   need_lib_prefix=no
11538   need_version=no
11539   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11540   soname_spec='${libname}${release}${shared_ext}$major'
11541   shlibpath_var=LD_LIBRARY_PATH
11542   ;;
11543
11544 freebsd1*)
11545   dynamic_linker=no
11546   ;;
11547
11548 freebsd* | dragonfly*)
11549   # DragonFly does not have aout.  When/if they implement a new
11550   # versioning mechanism, adjust this.
11551   if test -x /usr/bin/objformat; then
11552     objformat=`/usr/bin/objformat`
11553   else
11554     case $host_os in
11555     freebsd[123]*) objformat=aout ;;
11556     *) objformat=elf ;;
11557     esac
11558   fi
11559   version_type=freebsd-$objformat
11560   case $version_type in
11561     freebsd-elf*)
11562       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11563       need_version=no
11564       need_lib_prefix=no
11565       ;;
11566     freebsd-*)
11567       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11568       need_version=yes
11569       ;;
11570   esac
11571   shlibpath_var=LD_LIBRARY_PATH
11572   case $host_os in
11573   freebsd2*)
11574     shlibpath_overrides_runpath=yes
11575     ;;
11576   freebsd3.[01]* | freebsdelf3.[01]*)
11577     shlibpath_overrides_runpath=yes
11578     hardcode_into_libs=yes
11579     ;;
11580   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11581   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11582     shlibpath_overrides_runpath=no
11583     hardcode_into_libs=yes
11584     ;;
11585   *) # from 4.6 on, and DragonFly
11586     shlibpath_overrides_runpath=yes
11587     hardcode_into_libs=yes
11588     ;;
11589   esac
11590   ;;
11591
11592 gnu*)
11593   version_type=linux
11594   need_lib_prefix=no
11595   need_version=no
11596   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11597   soname_spec='${libname}${release}${shared_ext}$major'
11598   shlibpath_var=LD_LIBRARY_PATH
11599   hardcode_into_libs=yes
11600   ;;
11601
11602 hpux9* | hpux10* | hpux11*)
11603   # Give a soname corresponding to the major version so that dld.sl refuses to
11604   # link against other versions.
11605   version_type=sunos
11606   need_lib_prefix=no
11607   need_version=no
11608   case $host_cpu in
11609   ia64*)
11610     shrext_cmds='.so'
11611     hardcode_into_libs=yes
11612     dynamic_linker="$host_os dld.so"
11613     shlibpath_var=LD_LIBRARY_PATH
11614     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11615     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11616     soname_spec='${libname}${release}${shared_ext}$major'
11617     if test "X$HPUX_IA64_MODE" = X32; then
11618       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11619     else
11620       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11621     fi
11622     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11623     ;;
11624   hppa*64*)
11625     shrext_cmds='.sl'
11626     hardcode_into_libs=yes
11627     dynamic_linker="$host_os dld.sl"
11628     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11629     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11630     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11631     soname_spec='${libname}${release}${shared_ext}$major'
11632     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11633     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11634     ;;
11635   *)
11636     shrext_cmds='.sl'
11637     dynamic_linker="$host_os dld.sl"
11638     shlibpath_var=SHLIB_PATH
11639     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11640     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11641     soname_spec='${libname}${release}${shared_ext}$major'
11642     ;;
11643   esac
11644   # HP-UX runs *really* slowly unless shared libraries are mode 555.
11645   postinstall_cmds='chmod 555 $lib'
11646   ;;
11647
11648 interix[3-9]*)
11649   version_type=linux
11650   need_lib_prefix=no
11651   need_version=no
11652   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11653   soname_spec='${libname}${release}${shared_ext}$major'
11654   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11655   shlibpath_var=LD_LIBRARY_PATH
11656   shlibpath_overrides_runpath=no
11657   hardcode_into_libs=yes
11658   ;;
11659
11660 irix5* | irix6* | nonstopux*)
11661   case $host_os in
11662     nonstopux*) version_type=nonstopux ;;
11663     *)
11664         if test "$lt_cv_prog_gnu_ld" = yes; then
11665                 version_type=linux
11666         else
11667                 version_type=irix
11668         fi ;;
11669   esac
11670   need_lib_prefix=no
11671   need_version=no
11672   soname_spec='${libname}${release}${shared_ext}$major'
11673   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11674   case $host_os in
11675   irix5* | nonstopux*)
11676     libsuff= shlibsuff=
11677     ;;
11678   *)
11679     case $LD in # libtool.m4 will add one of these switches to LD
11680     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11681       libsuff= shlibsuff= libmagic=32-bit;;
11682     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11683       libsuff=32 shlibsuff=N32 libmagic=N32;;
11684     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11685       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11686     *) libsuff= shlibsuff= libmagic=never-match;;
11687     esac
11688     ;;
11689   esac
11690   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11691   shlibpath_overrides_runpath=no
11692   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11693   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11694   hardcode_into_libs=yes
11695   ;;
11696
11697 # No shared lib support for Linux oldld, aout, or coff.
11698 linux*oldld* | linux*aout* | linux*coff*)
11699   dynamic_linker=no
11700   ;;
11701
11702 # This must be Linux ELF.
11703 linux* | k*bsd*-gnu)
11704   version_type=linux
11705   need_lib_prefix=no
11706   need_version=no
11707   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11708   soname_spec='${libname}${release}${shared_ext}$major'
11709   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11710   shlibpath_var=LD_LIBRARY_PATH
11711   shlibpath_overrides_runpath=no
11712   # Some binutils ld are patched to set DT_RUNPATH
11713   save_LDFLAGS=$LDFLAGS
11714   save_libdir=$libdir
11715   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11716        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11717   cat >conftest.$ac_ext <<_ACEOF
11718 /* confdefs.h.  */
11719 _ACEOF
11720 cat confdefs.h >>conftest.$ac_ext
11721 cat >>conftest.$ac_ext <<_ACEOF
11722 /* end confdefs.h.  */
11723
11724 int
11725 main ()
11726 {
11727
11728   ;
11729   return 0;
11730 }
11731 _ACEOF
11732 rm -f conftest.$ac_objext conftest$ac_exeext
11733 if { (ac_try="$ac_link"
11734 case "(($ac_try" in
11735   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11736   *) ac_try_echo=$ac_try;;
11737 esac
11738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11739   (eval "$ac_link") 2>conftest.er1
11740   ac_status=$?
11741   grep -v '^ *+' conftest.er1 >conftest.err
11742   rm -f conftest.er1
11743   cat conftest.err >&5
11744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11745   (exit $ac_status); } && {
11746          test -z "$ac_c_werror_flag" ||
11747          test ! -s conftest.err
11748        } && test -s conftest$ac_exeext &&
11749        $as_test_x conftest$ac_exeext; then
11750   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
11751   shlibpath_overrides_runpath=yes
11752 fi
11753
11754 else
11755   echo "$as_me: failed program was:" >&5
11756 sed 's/^/| /' conftest.$ac_ext >&5
11757
11758
11759 fi
11760
11761 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11762       conftest$ac_exeext conftest.$ac_ext
11763   LDFLAGS=$save_LDFLAGS
11764   libdir=$save_libdir
11765
11766   # This implies no fast_install, which is unacceptable.
11767   # Some rework will be needed to allow for fast_install
11768   # before this can be enabled.
11769   hardcode_into_libs=yes
11770
11771   # Append ld.so.conf contents to the search path
11772   if test -f /etc/ld.so.conf; then
11773     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' ' '`
11774     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11775   fi
11776
11777   # We used to test for /lib/ld.so.1 and disable shared libraries on
11778   # powerpc, because MkLinux only supported shared libraries with the
11779   # GNU dynamic linker.  Since this was broken with cross compilers,
11780   # most powerpc-linux boxes support dynamic linking these days and
11781   # people can always --disable-shared, the test was removed, and we
11782   # assume the GNU/Linux dynamic linker is in use.
11783   dynamic_linker='GNU/Linux ld.so'
11784   ;;
11785
11786 netbsd*)
11787   version_type=sunos
11788   need_lib_prefix=no
11789   need_version=no
11790   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11791     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11792     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11793     dynamic_linker='NetBSD (a.out) ld.so'
11794   else
11795     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11796     soname_spec='${libname}${release}${shared_ext}$major'
11797     dynamic_linker='NetBSD ld.elf_so'
11798   fi
11799   shlibpath_var=LD_LIBRARY_PATH
11800   shlibpath_overrides_runpath=yes
11801   hardcode_into_libs=yes
11802   ;;
11803
11804 newsos6)
11805   version_type=linux
11806   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11807   shlibpath_var=LD_LIBRARY_PATH
11808   shlibpath_overrides_runpath=yes
11809   ;;
11810
11811 *nto* | *qnx*)
11812   version_type=qnx
11813   need_lib_prefix=no
11814   need_version=no
11815   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11816   soname_spec='${libname}${release}${shared_ext}$major'
11817   shlibpath_var=LD_LIBRARY_PATH
11818   shlibpath_overrides_runpath=no
11819   hardcode_into_libs=yes
11820   dynamic_linker='ldqnx.so'
11821   ;;
11822
11823 openbsd*)
11824   version_type=sunos
11825   sys_lib_dlsearch_path_spec="/usr/lib"
11826   need_lib_prefix=no
11827   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11828   case $host_os in
11829     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
11830     *)                          need_version=no  ;;
11831   esac
11832   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11833   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11834   shlibpath_var=LD_LIBRARY_PATH
11835   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11836     case $host_os in
11837       openbsd2.[89] | openbsd2.[89].*)
11838         shlibpath_overrides_runpath=no
11839         ;;
11840       *)
11841         shlibpath_overrides_runpath=yes
11842         ;;
11843       esac
11844   else
11845     shlibpath_overrides_runpath=yes
11846   fi
11847   ;;
11848
11849 os2*)
11850   libname_spec='$name'
11851   shrext_cmds=".dll"
11852   need_lib_prefix=no
11853   library_names_spec='$libname${shared_ext} $libname.a'
11854   dynamic_linker='OS/2 ld.exe'
11855   shlibpath_var=LIBPATH
11856   ;;
11857
11858 osf3* | osf4* | osf5*)
11859   version_type=osf
11860   need_lib_prefix=no
11861   need_version=no
11862   soname_spec='${libname}${release}${shared_ext}$major'
11863   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11864   shlibpath_var=LD_LIBRARY_PATH
11865   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11866   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11867   ;;
11868
11869 rdos*)
11870   dynamic_linker=no
11871   ;;
11872
11873 solaris*)
11874   version_type=linux
11875   need_lib_prefix=no
11876   need_version=no
11877   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11878   soname_spec='${libname}${release}${shared_ext}$major'
11879   shlibpath_var=LD_LIBRARY_PATH
11880   shlibpath_overrides_runpath=yes
11881   hardcode_into_libs=yes
11882   # ldd complains unless libraries are executable
11883   postinstall_cmds='chmod +x $lib'
11884   ;;
11885
11886 sunos4*)
11887   version_type=sunos
11888   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11889   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11890   shlibpath_var=LD_LIBRARY_PATH
11891   shlibpath_overrides_runpath=yes
11892   if test "$with_gnu_ld" = yes; then
11893     need_lib_prefix=no
11894   fi
11895   need_version=yes
11896   ;;
11897
11898 sysv4 | sysv4.3*)
11899   version_type=linux
11900   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11901   soname_spec='${libname}${release}${shared_ext}$major'
11902   shlibpath_var=LD_LIBRARY_PATH
11903   case $host_vendor in
11904     sni)
11905       shlibpath_overrides_runpath=no
11906       need_lib_prefix=no
11907       runpath_var=LD_RUN_PATH
11908       ;;
11909     siemens)
11910       need_lib_prefix=no
11911       ;;
11912     motorola)
11913       need_lib_prefix=no
11914       need_version=no
11915       shlibpath_overrides_runpath=no
11916       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11917       ;;
11918   esac
11919   ;;
11920
11921 sysv4*MP*)
11922   if test -d /usr/nec ;then
11923     version_type=linux
11924     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11925     soname_spec='$libname${shared_ext}.$major'
11926     shlibpath_var=LD_LIBRARY_PATH
11927   fi
11928   ;;
11929
11930 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11931   version_type=freebsd-elf
11932   need_lib_prefix=no
11933   need_version=no
11934   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11935   soname_spec='${libname}${release}${shared_ext}$major'
11936   shlibpath_var=LD_LIBRARY_PATH
11937   shlibpath_overrides_runpath=yes
11938   hardcode_into_libs=yes
11939   if test "$with_gnu_ld" = yes; then
11940     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11941   else
11942     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11943     case $host_os in
11944       sco3.2v5*)
11945         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11946         ;;
11947     esac
11948   fi
11949   sys_lib_dlsearch_path_spec='/usr/lib'
11950   ;;
11951
11952 tpf*)
11953   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11954   version_type=linux
11955   need_lib_prefix=no
11956   need_version=no
11957   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11958   shlibpath_var=LD_LIBRARY_PATH
11959   shlibpath_overrides_runpath=no
11960   hardcode_into_libs=yes
11961   ;;
11962
11963 uts4*)
11964   version_type=linux
11965   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11966   soname_spec='${libname}${release}${shared_ext}$major'
11967   shlibpath_var=LD_LIBRARY_PATH
11968   ;;
11969
11970 *)
11971   dynamic_linker=no
11972   ;;
11973 esac
11974 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11975 echo "${ECHO_T}$dynamic_linker" >&6; }
11976 test "$dynamic_linker" = no && can_build_shared=no
11977
11978 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11979 if test "$GCC" = yes; then
11980   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11981 fi
11982
11983 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11984   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11985 fi
11986 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11987   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11988 fi
11989
11990
11991
11992
11993
11994
11995
11996
11997
11998
11999
12000
12001
12002
12003
12004
12005
12006
12007
12008
12009
12010
12011
12012
12013
12014
12015
12016
12017
12018
12019
12020
12021
12022
12023
12024
12025
12026
12027
12028
12029
12030
12031
12032
12033
12034
12035
12036
12037
12038
12039
12040
12041
12042
12043
12044
12045
12046
12047
12048
12049
12050
12051
12052
12053
12054
12055
12056
12057
12058
12059
12060
12061
12062
12063
12064
12065
12066
12067
12068
12069
12070
12071
12072
12073
12074
12075
12076   { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12077 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
12078 hardcode_action=
12079 if test -n "$hardcode_libdir_flag_spec" ||
12080    test -n "$runpath_var" ||
12081    test "X$hardcode_automatic" = "Xyes" ; then
12082
12083   # We can hardcode non-existent directories.
12084   if test "$hardcode_direct" != no &&
12085      # If the only mechanism to avoid hardcoding is shlibpath_var, we
12086      # have to relink, otherwise we might link with an installed library
12087      # when we should be linking with a yet-to-be-installed one
12088      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12089      test "$hardcode_minus_L" != no; then
12090     # Linking always hardcodes the temporary library directory.
12091     hardcode_action=relink
12092   else
12093     # We can link without hardcoding, and we can hardcode nonexisting dirs.
12094     hardcode_action=immediate
12095   fi
12096 else
12097   # We cannot hardcode anything, or else we can only hardcode existing
12098   # directories.
12099   hardcode_action=unsupported
12100 fi
12101 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
12102 echo "${ECHO_T}$hardcode_action" >&6; }
12103
12104 if test "$hardcode_action" = relink ||
12105    test "$inherit_rpath" = yes; then
12106   # Fast installation is not supported
12107   enable_fast_install=no
12108 elif test "$shlibpath_overrides_runpath" = yes ||
12109      test "$enable_shared" = no; then
12110   # Fast installation is not necessary
12111   enable_fast_install=needless
12112 fi
12113
12114
12115
12116
12117
12118
12119   if test "x$enable_dlopen" != xyes; then
12120   enable_dlopen=unknown
12121   enable_dlopen_self=unknown
12122   enable_dlopen_self_static=unknown
12123 else
12124   lt_cv_dlopen=no
12125   lt_cv_dlopen_libs=
12126
12127   case $host_os in
12128   beos*)
12129     lt_cv_dlopen="load_add_on"
12130     lt_cv_dlopen_libs=
12131     lt_cv_dlopen_self=yes
12132     ;;
12133
12134   mingw* | pw32* | cegcc*)
12135     lt_cv_dlopen="LoadLibrary"
12136     lt_cv_dlopen_libs=
12137     ;;
12138
12139   cygwin*)
12140     lt_cv_dlopen="dlopen"
12141     lt_cv_dlopen_libs=
12142     ;;
12143
12144   darwin*)
12145   # if libdl is installed we need to link against it
12146     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12147 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
12148 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12149   echo $ECHO_N "(cached) $ECHO_C" >&6
12150 else
12151   ac_check_lib_save_LIBS=$LIBS
12152 LIBS="-ldl  $LIBS"
12153 cat >conftest.$ac_ext <<_ACEOF
12154 /* confdefs.h.  */
12155 _ACEOF
12156 cat confdefs.h >>conftest.$ac_ext
12157 cat >>conftest.$ac_ext <<_ACEOF
12158 /* end confdefs.h.  */
12159
12160 /* Override any GCC internal prototype to avoid an error.
12161    Use char because int might match the return type of a GCC
12162    builtin and then its argument prototype would still apply.  */
12163 #ifdef __cplusplus
12164 extern "C"
12165 #endif
12166 char dlopen ();
12167 int
12168 main ()
12169 {
12170 return dlopen ();
12171   ;
12172   return 0;
12173 }
12174 _ACEOF
12175 rm -f conftest.$ac_objext conftest$ac_exeext
12176 if { (ac_try="$ac_link"
12177 case "(($ac_try" in
12178   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12179   *) ac_try_echo=$ac_try;;
12180 esac
12181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12182   (eval "$ac_link") 2>conftest.er1
12183   ac_status=$?
12184   grep -v '^ *+' conftest.er1 >conftest.err
12185   rm -f conftest.er1
12186   cat conftest.err >&5
12187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12188   (exit $ac_status); } && {
12189          test -z "$ac_c_werror_flag" ||
12190          test ! -s conftest.err
12191        } && test -s conftest$ac_exeext &&
12192        $as_test_x conftest$ac_exeext; then
12193   ac_cv_lib_dl_dlopen=yes
12194 else
12195   echo "$as_me: failed program was:" >&5
12196 sed 's/^/| /' conftest.$ac_ext >&5
12197
12198         ac_cv_lib_dl_dlopen=no
12199 fi
12200
12201 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12202       conftest$ac_exeext conftest.$ac_ext
12203 LIBS=$ac_check_lib_save_LIBS
12204 fi
12205 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12206 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
12207 if test $ac_cv_lib_dl_dlopen = yes; then
12208   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12209 else
12210
12211     lt_cv_dlopen="dyld"
12212     lt_cv_dlopen_libs=
12213     lt_cv_dlopen_self=yes
12214
12215 fi
12216
12217     ;;
12218
12219   *)
12220     { echo "$as_me:$LINENO: checking for shl_load" >&5
12221 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
12222 if test "${ac_cv_func_shl_load+set}" = set; then
12223   echo $ECHO_N "(cached) $ECHO_C" >&6
12224 else
12225   cat >conftest.$ac_ext <<_ACEOF
12226 /* confdefs.h.  */
12227 _ACEOF
12228 cat confdefs.h >>conftest.$ac_ext
12229 cat >>conftest.$ac_ext <<_ACEOF
12230 /* end confdefs.h.  */
12231 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12232    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12233 #define shl_load innocuous_shl_load
12234
12235 /* System header to define __stub macros and hopefully few prototypes,
12236     which can conflict with char shl_load (); below.
12237     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12238     <limits.h> exists even on freestanding compilers.  */
12239
12240 #ifdef __STDC__
12241 # include <limits.h>
12242 #else
12243 # include <assert.h>
12244 #endif
12245
12246 #undef shl_load
12247
12248 /* Override any GCC internal prototype to avoid an error.
12249    Use char because int might match the return type of a GCC
12250    builtin and then its argument prototype would still apply.  */
12251 #ifdef __cplusplus
12252 extern "C"
12253 #endif
12254 char shl_load ();
12255 /* The GNU C library defines this for functions which it implements
12256     to always fail with ENOSYS.  Some functions are actually named
12257     something starting with __ and the normal name is an alias.  */
12258 #if defined __stub_shl_load || defined __stub___shl_load
12259 choke me
12260 #endif
12261
12262 int
12263 main ()
12264 {
12265 return shl_load ();
12266   ;
12267   return 0;
12268 }
12269 _ACEOF
12270 rm -f conftest.$ac_objext conftest$ac_exeext
12271 if { (ac_try="$ac_link"
12272 case "(($ac_try" in
12273   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12274   *) ac_try_echo=$ac_try;;
12275 esac
12276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12277   (eval "$ac_link") 2>conftest.er1
12278   ac_status=$?
12279   grep -v '^ *+' conftest.er1 >conftest.err
12280   rm -f conftest.er1
12281   cat conftest.err >&5
12282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12283   (exit $ac_status); } && {
12284          test -z "$ac_c_werror_flag" ||
12285          test ! -s conftest.err
12286        } && test -s conftest$ac_exeext &&
12287        $as_test_x conftest$ac_exeext; then
12288   ac_cv_func_shl_load=yes
12289 else
12290   echo "$as_me: failed program was:" >&5
12291 sed 's/^/| /' conftest.$ac_ext >&5
12292
12293         ac_cv_func_shl_load=no
12294 fi
12295
12296 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12297       conftest$ac_exeext conftest.$ac_ext
12298 fi
12299 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12300 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
12301 if test $ac_cv_func_shl_load = yes; then
12302   lt_cv_dlopen="shl_load"
12303 else
12304   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12305 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
12306 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12307   echo $ECHO_N "(cached) $ECHO_C" >&6
12308 else
12309   ac_check_lib_save_LIBS=$LIBS
12310 LIBS="-ldld  $LIBS"
12311 cat >conftest.$ac_ext <<_ACEOF
12312 /* confdefs.h.  */
12313 _ACEOF
12314 cat confdefs.h >>conftest.$ac_ext
12315 cat >>conftest.$ac_ext <<_ACEOF
12316 /* end confdefs.h.  */
12317
12318 /* Override any GCC internal prototype to avoid an error.
12319    Use char because int might match the return type of a GCC
12320    builtin and then its argument prototype would still apply.  */
12321 #ifdef __cplusplus
12322 extern "C"
12323 #endif
12324 char shl_load ();
12325 int
12326 main ()
12327 {
12328 return shl_load ();
12329   ;
12330   return 0;
12331 }
12332 _ACEOF
12333 rm -f conftest.$ac_objext conftest$ac_exeext
12334 if { (ac_try="$ac_link"
12335 case "(($ac_try" in
12336   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12337   *) ac_try_echo=$ac_try;;
12338 esac
12339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12340   (eval "$ac_link") 2>conftest.er1
12341   ac_status=$?
12342   grep -v '^ *+' conftest.er1 >conftest.err
12343   rm -f conftest.er1
12344   cat conftest.err >&5
12345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12346   (exit $ac_status); } && {
12347          test -z "$ac_c_werror_flag" ||
12348          test ! -s conftest.err
12349        } && test -s conftest$ac_exeext &&
12350        $as_test_x conftest$ac_exeext; then
12351   ac_cv_lib_dld_shl_load=yes
12352 else
12353   echo "$as_me: failed program was:" >&5
12354 sed 's/^/| /' conftest.$ac_ext >&5
12355
12356         ac_cv_lib_dld_shl_load=no
12357 fi
12358
12359 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12360       conftest$ac_exeext conftest.$ac_ext
12361 LIBS=$ac_check_lib_save_LIBS
12362 fi
12363 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12364 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
12365 if test $ac_cv_lib_dld_shl_load = yes; then
12366   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12367 else
12368   { echo "$as_me:$LINENO: checking for dlopen" >&5
12369 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
12370 if test "${ac_cv_func_dlopen+set}" = set; then
12371   echo $ECHO_N "(cached) $ECHO_C" >&6
12372 else
12373   cat >conftest.$ac_ext <<_ACEOF
12374 /* confdefs.h.  */
12375 _ACEOF
12376 cat confdefs.h >>conftest.$ac_ext
12377 cat >>conftest.$ac_ext <<_ACEOF
12378 /* end confdefs.h.  */
12379 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12380    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12381 #define dlopen innocuous_dlopen
12382
12383 /* System header to define __stub macros and hopefully few prototypes,
12384     which can conflict with char dlopen (); below.
12385     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12386     <limits.h> exists even on freestanding compilers.  */
12387
12388 #ifdef __STDC__
12389 # include <limits.h>
12390 #else
12391 # include <assert.h>
12392 #endif
12393
12394 #undef dlopen
12395
12396 /* Override any GCC internal prototype to avoid an error.
12397    Use char because int might match the return type of a GCC
12398    builtin and then its argument prototype would still apply.  */
12399 #ifdef __cplusplus
12400 extern "C"
12401 #endif
12402 char dlopen ();
12403 /* The GNU C library defines this for functions which it implements
12404     to always fail with ENOSYS.  Some functions are actually named
12405     something starting with __ and the normal name is an alias.  */
12406 #if defined __stub_dlopen || defined __stub___dlopen
12407 choke me
12408 #endif
12409
12410 int
12411 main ()
12412 {
12413 return dlopen ();
12414   ;
12415   return 0;
12416 }
12417 _ACEOF
12418 rm -f conftest.$ac_objext conftest$ac_exeext
12419 if { (ac_try="$ac_link"
12420 case "(($ac_try" in
12421   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12422   *) ac_try_echo=$ac_try;;
12423 esac
12424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12425   (eval "$ac_link") 2>conftest.er1
12426   ac_status=$?
12427   grep -v '^ *+' conftest.er1 >conftest.err
12428   rm -f conftest.er1
12429   cat conftest.err >&5
12430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12431   (exit $ac_status); } && {
12432          test -z "$ac_c_werror_flag" ||
12433          test ! -s conftest.err
12434        } && test -s conftest$ac_exeext &&
12435        $as_test_x conftest$ac_exeext; then
12436   ac_cv_func_dlopen=yes
12437 else
12438   echo "$as_me: failed program was:" >&5
12439 sed 's/^/| /' conftest.$ac_ext >&5
12440
12441         ac_cv_func_dlopen=no
12442 fi
12443
12444 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12445       conftest$ac_exeext conftest.$ac_ext
12446 fi
12447 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12448 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
12449 if test $ac_cv_func_dlopen = yes; then
12450   lt_cv_dlopen="dlopen"
12451 else
12452   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12453 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
12454 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12455   echo $ECHO_N "(cached) $ECHO_C" >&6
12456 else
12457   ac_check_lib_save_LIBS=$LIBS
12458 LIBS="-ldl  $LIBS"
12459 cat >conftest.$ac_ext <<_ACEOF
12460 /* confdefs.h.  */
12461 _ACEOF
12462 cat confdefs.h >>conftest.$ac_ext
12463 cat >>conftest.$ac_ext <<_ACEOF
12464 /* end confdefs.h.  */
12465
12466 /* Override any GCC internal prototype to avoid an error.
12467    Use char because int might match the return type of a GCC
12468    builtin and then its argument prototype would still apply.  */
12469 #ifdef __cplusplus
12470 extern "C"
12471 #endif
12472 char dlopen ();
12473 int
12474 main ()
12475 {
12476 return dlopen ();
12477   ;
12478   return 0;
12479 }
12480 _ACEOF
12481 rm -f conftest.$ac_objext conftest$ac_exeext
12482 if { (ac_try="$ac_link"
12483 case "(($ac_try" in
12484   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12485   *) ac_try_echo=$ac_try;;
12486 esac
12487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12488   (eval "$ac_link") 2>conftest.er1
12489   ac_status=$?
12490   grep -v '^ *+' conftest.er1 >conftest.err
12491   rm -f conftest.er1
12492   cat conftest.err >&5
12493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12494   (exit $ac_status); } && {
12495          test -z "$ac_c_werror_flag" ||
12496          test ! -s conftest.err
12497        } && test -s conftest$ac_exeext &&
12498        $as_test_x conftest$ac_exeext; then
12499   ac_cv_lib_dl_dlopen=yes
12500 else
12501   echo "$as_me: failed program was:" >&5
12502 sed 's/^/| /' conftest.$ac_ext >&5
12503
12504         ac_cv_lib_dl_dlopen=no
12505 fi
12506
12507 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12508       conftest$ac_exeext conftest.$ac_ext
12509 LIBS=$ac_check_lib_save_LIBS
12510 fi
12511 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12512 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
12513 if test $ac_cv_lib_dl_dlopen = yes; then
12514   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12515 else
12516   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12517 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
12518 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12519   echo $ECHO_N "(cached) $ECHO_C" >&6
12520 else
12521   ac_check_lib_save_LIBS=$LIBS
12522 LIBS="-lsvld  $LIBS"
12523 cat >conftest.$ac_ext <<_ACEOF
12524 /* confdefs.h.  */
12525 _ACEOF
12526 cat confdefs.h >>conftest.$ac_ext
12527 cat >>conftest.$ac_ext <<_ACEOF
12528 /* end confdefs.h.  */
12529
12530 /* Override any GCC internal prototype to avoid an error.
12531    Use char because int might match the return type of a GCC
12532    builtin and then its argument prototype would still apply.  */
12533 #ifdef __cplusplus
12534 extern "C"
12535 #endif
12536 char dlopen ();
12537 int
12538 main ()
12539 {
12540 return dlopen ();
12541   ;
12542   return 0;
12543 }
12544 _ACEOF
12545 rm -f conftest.$ac_objext conftest$ac_exeext
12546 if { (ac_try="$ac_link"
12547 case "(($ac_try" in
12548   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12549   *) ac_try_echo=$ac_try;;
12550 esac
12551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12552   (eval "$ac_link") 2>conftest.er1
12553   ac_status=$?
12554   grep -v '^ *+' conftest.er1 >conftest.err
12555   rm -f conftest.er1
12556   cat conftest.err >&5
12557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12558   (exit $ac_status); } && {
12559          test -z "$ac_c_werror_flag" ||
12560          test ! -s conftest.err
12561        } && test -s conftest$ac_exeext &&
12562        $as_test_x conftest$ac_exeext; then
12563   ac_cv_lib_svld_dlopen=yes
12564 else
12565   echo "$as_me: failed program was:" >&5
12566 sed 's/^/| /' conftest.$ac_ext >&5
12567
12568         ac_cv_lib_svld_dlopen=no
12569 fi
12570
12571 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12572       conftest$ac_exeext conftest.$ac_ext
12573 LIBS=$ac_check_lib_save_LIBS
12574 fi
12575 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12576 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
12577 if test $ac_cv_lib_svld_dlopen = yes; then
12578   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12579 else
12580   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12581 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
12582 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12583   echo $ECHO_N "(cached) $ECHO_C" >&6
12584 else
12585   ac_check_lib_save_LIBS=$LIBS
12586 LIBS="-ldld  $LIBS"
12587 cat >conftest.$ac_ext <<_ACEOF
12588 /* confdefs.h.  */
12589 _ACEOF
12590 cat confdefs.h >>conftest.$ac_ext
12591 cat >>conftest.$ac_ext <<_ACEOF
12592 /* end confdefs.h.  */
12593
12594 /* Override any GCC internal prototype to avoid an error.
12595    Use char because int might match the return type of a GCC
12596    builtin and then its argument prototype would still apply.  */
12597 #ifdef __cplusplus
12598 extern "C"
12599 #endif
12600 char dld_link ();
12601 int
12602 main ()
12603 {
12604 return dld_link ();
12605   ;
12606   return 0;
12607 }
12608 _ACEOF
12609 rm -f conftest.$ac_objext conftest$ac_exeext
12610 if { (ac_try="$ac_link"
12611 case "(($ac_try" in
12612   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12613   *) ac_try_echo=$ac_try;;
12614 esac
12615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12616   (eval "$ac_link") 2>conftest.er1
12617   ac_status=$?
12618   grep -v '^ *+' conftest.er1 >conftest.err
12619   rm -f conftest.er1
12620   cat conftest.err >&5
12621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12622   (exit $ac_status); } && {
12623          test -z "$ac_c_werror_flag" ||
12624          test ! -s conftest.err
12625        } && test -s conftest$ac_exeext &&
12626        $as_test_x conftest$ac_exeext; then
12627   ac_cv_lib_dld_dld_link=yes
12628 else
12629   echo "$as_me: failed program was:" >&5
12630 sed 's/^/| /' conftest.$ac_ext >&5
12631
12632         ac_cv_lib_dld_dld_link=no
12633 fi
12634
12635 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12636       conftest$ac_exeext conftest.$ac_ext
12637 LIBS=$ac_check_lib_save_LIBS
12638 fi
12639 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12640 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
12641 if test $ac_cv_lib_dld_dld_link = yes; then
12642   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12643 fi
12644
12645
12646 fi
12647
12648
12649 fi
12650
12651
12652 fi
12653
12654
12655 fi
12656
12657
12658 fi
12659
12660     ;;
12661   esac
12662
12663   if test "x$lt_cv_dlopen" != xno; then
12664     enable_dlopen=yes
12665   else
12666     enable_dlopen=no
12667   fi
12668
12669   case $lt_cv_dlopen in
12670   dlopen)
12671     save_CPPFLAGS="$CPPFLAGS"
12672     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12673
12674     save_LDFLAGS="$LDFLAGS"
12675     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12676
12677     save_LIBS="$LIBS"
12678     LIBS="$lt_cv_dlopen_libs $LIBS"
12679
12680     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12681 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
12682 if test "${lt_cv_dlopen_self+set}" = set; then
12683   echo $ECHO_N "(cached) $ECHO_C" >&6
12684 else
12685           if test "$cross_compiling" = yes; then :
12686   lt_cv_dlopen_self=cross
12687 else
12688   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12689   lt_status=$lt_dlunknown
12690   cat > conftest.$ac_ext <<_LT_EOF
12691 #line 12691 "configure"
12692 #include "confdefs.h"
12693
12694 #if HAVE_DLFCN_H
12695 #include <dlfcn.h>
12696 #endif
12697
12698 #include <stdio.h>
12699
12700 #ifdef RTLD_GLOBAL
12701 #  define LT_DLGLOBAL           RTLD_GLOBAL
12702 #else
12703 #  ifdef DL_GLOBAL
12704 #    define LT_DLGLOBAL         DL_GLOBAL
12705 #  else
12706 #    define LT_DLGLOBAL         0
12707 #  endif
12708 #endif
12709
12710 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12711    find out it does not work in some platform. */
12712 #ifndef LT_DLLAZY_OR_NOW
12713 #  ifdef RTLD_LAZY
12714 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12715 #  else
12716 #    ifdef DL_LAZY
12717 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12718 #    else
12719 #      ifdef RTLD_NOW
12720 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12721 #      else
12722 #        ifdef DL_NOW
12723 #          define LT_DLLAZY_OR_NOW      DL_NOW
12724 #        else
12725 #          define LT_DLLAZY_OR_NOW      0
12726 #        endif
12727 #      endif
12728 #    endif
12729 #  endif
12730 #endif
12731
12732 void fnord() { int i=42;}
12733 int main ()
12734 {
12735   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12736   int status = $lt_dlunknown;
12737
12738   if (self)
12739     {
12740       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12741       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12742       /* dlclose (self); */
12743     }
12744   else
12745     puts (dlerror ());
12746
12747   return status;
12748 }
12749 _LT_EOF
12750   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12751   (eval $ac_link) 2>&5
12752   ac_status=$?
12753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12754   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12755     (./conftest; exit; ) >&5 2>/dev/null
12756     lt_status=$?
12757     case x$lt_status in
12758       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12759       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12760       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12761     esac
12762   else :
12763     # compilation failed
12764     lt_cv_dlopen_self=no
12765   fi
12766 fi
12767 rm -fr conftest*
12768
12769
12770 fi
12771 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12772 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
12773
12774     if test "x$lt_cv_dlopen_self" = xyes; then
12775       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12776       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12777 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
12778 if test "${lt_cv_dlopen_self_static+set}" = set; then
12779   echo $ECHO_N "(cached) $ECHO_C" >&6
12780 else
12781           if test "$cross_compiling" = yes; then :
12782   lt_cv_dlopen_self_static=cross
12783 else
12784   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12785   lt_status=$lt_dlunknown
12786   cat > conftest.$ac_ext <<_LT_EOF
12787 #line 12787 "configure"
12788 #include "confdefs.h"
12789
12790 #if HAVE_DLFCN_H
12791 #include <dlfcn.h>
12792 #endif
12793
12794 #include <stdio.h>
12795
12796 #ifdef RTLD_GLOBAL
12797 #  define LT_DLGLOBAL           RTLD_GLOBAL
12798 #else
12799 #  ifdef DL_GLOBAL
12800 #    define LT_DLGLOBAL         DL_GLOBAL
12801 #  else
12802 #    define LT_DLGLOBAL         0
12803 #  endif
12804 #endif
12805
12806 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12807    find out it does not work in some platform. */
12808 #ifndef LT_DLLAZY_OR_NOW
12809 #  ifdef RTLD_LAZY
12810 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12811 #  else
12812 #    ifdef DL_LAZY
12813 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12814 #    else
12815 #      ifdef RTLD_NOW
12816 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12817 #      else
12818 #        ifdef DL_NOW
12819 #          define LT_DLLAZY_OR_NOW      DL_NOW
12820 #        else
12821 #          define LT_DLLAZY_OR_NOW      0
12822 #        endif
12823 #      endif
12824 #    endif
12825 #  endif
12826 #endif
12827
12828 void fnord() { int i=42;}
12829 int main ()
12830 {
12831   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12832   int status = $lt_dlunknown;
12833
12834   if (self)
12835     {
12836       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12837       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12838       /* dlclose (self); */
12839     }
12840   else
12841     puts (dlerror ());
12842
12843   return status;
12844 }
12845 _LT_EOF
12846   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12847   (eval $ac_link) 2>&5
12848   ac_status=$?
12849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12850   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12851     (./conftest; exit; ) >&5 2>/dev/null
12852     lt_status=$?
12853     case x$lt_status in
12854       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12855       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12856       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12857     esac
12858   else :
12859     # compilation failed
12860     lt_cv_dlopen_self_static=no
12861   fi
12862 fi
12863 rm -fr conftest*
12864
12865
12866 fi
12867 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12868 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
12869     fi
12870
12871     CPPFLAGS="$save_CPPFLAGS"
12872     LDFLAGS="$save_LDFLAGS"
12873     LIBS="$save_LIBS"
12874     ;;
12875   esac
12876
12877   case $lt_cv_dlopen_self in
12878   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12879   *) enable_dlopen_self=unknown ;;
12880   esac
12881
12882   case $lt_cv_dlopen_self_static in
12883   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12884   *) enable_dlopen_self_static=unknown ;;
12885   esac
12886 fi
12887
12888
12889
12890
12891
12892
12893
12894
12895
12896
12897
12898
12899
12900
12901
12902
12903
12904 striplib=
12905 old_striplib=
12906 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12907 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
12908 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12909   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12910   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12911   { echo "$as_me:$LINENO: result: yes" >&5
12912 echo "${ECHO_T}yes" >&6; }
12913 else
12914 # FIXME - insert some real tests, host_os isn't really good enough
12915   case $host_os in
12916   darwin*)
12917     if test -n "$STRIP" ; then
12918       striplib="$STRIP -x"
12919       old_striplib="$STRIP -S"
12920       { echo "$as_me:$LINENO: result: yes" >&5
12921 echo "${ECHO_T}yes" >&6; }
12922     else
12923       { echo "$as_me:$LINENO: result: no" >&5
12924 echo "${ECHO_T}no" >&6; }
12925     fi
12926     ;;
12927   *)
12928     { echo "$as_me:$LINENO: result: no" >&5
12929 echo "${ECHO_T}no" >&6; }
12930     ;;
12931   esac
12932 fi
12933
12934
12935
12936
12937
12938
12939
12940
12941
12942
12943
12944
12945   # Report which library types will actually be built
12946   { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12947 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
12948   { echo "$as_me:$LINENO: result: $can_build_shared" >&5
12949 echo "${ECHO_T}$can_build_shared" >&6; }
12950
12951   { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12952 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
12953   test "$can_build_shared" = "no" && enable_shared=no
12954
12955   # On AIX, shared libraries and static libraries use the same namespace, and
12956   # are all built from PIC.
12957   case $host_os in
12958   aix3*)
12959     test "$enable_shared" = yes && enable_static=no
12960     if test -n "$RANLIB"; then
12961       archive_cmds="$archive_cmds~\$RANLIB \$lib"
12962       postinstall_cmds='$RANLIB $lib'
12963     fi
12964     ;;
12965
12966   aix[4-9]*)
12967     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12968       test "$enable_shared" = yes && enable_static=no
12969     fi
12970     ;;
12971   esac
12972   { echo "$as_me:$LINENO: result: $enable_shared" >&5
12973 echo "${ECHO_T}$enable_shared" >&6; }
12974
12975   { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12976 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
12977   # Make sure either enable_shared or enable_static is yes.
12978   test "$enable_shared" = yes || enable_static=yes
12979   { echo "$as_me:$LINENO: result: $enable_static" >&5
12980 echo "${ECHO_T}$enable_static" >&6; }
12981
12982
12983
12984
12985 fi
12986 ac_ext=c
12987 ac_cpp='$CPP $CPPFLAGS'
12988 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12989 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12990 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12991
12992 CC="$lt_save_CC"
12993
12994
12995 ac_ext=cpp
12996 ac_cpp='$CXXCPP $CPPFLAGS'
12997 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12998 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12999 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13000
13001 archive_cmds_need_lc_CXX=no
13002 allow_undefined_flag_CXX=
13003 always_export_symbols_CXX=no
13004 archive_expsym_cmds_CXX=
13005 compiler_needs_object_CXX=no
13006 export_dynamic_flag_spec_CXX=
13007 hardcode_direct_CXX=no
13008 hardcode_direct_absolute_CXX=no
13009 hardcode_libdir_flag_spec_CXX=
13010 hardcode_libdir_flag_spec_ld_CXX=
13011 hardcode_libdir_separator_CXX=
13012 hardcode_minus_L_CXX=no
13013 hardcode_shlibpath_var_CXX=unsupported
13014 hardcode_automatic_CXX=no
13015 inherit_rpath_CXX=no
13016 module_cmds_CXX=
13017 module_expsym_cmds_CXX=
13018 link_all_deplibs_CXX=unknown
13019 old_archive_cmds_CXX=$old_archive_cmds
13020 no_undefined_flag_CXX=
13021 whole_archive_flag_spec_CXX=
13022 enable_shared_with_static_runtimes_CXX=no
13023
13024 # Source file extension for C++ test sources.
13025 ac_ext=cpp
13026
13027 # Object file extension for compiled C++ test sources.
13028 objext=o
13029 objext_CXX=$objext
13030
13031 # No sense in running all these tests if we already determined that
13032 # the CXX compiler isn't working.  Some variables (like enable_shared)
13033 # are currently assumed to apply to all compilers on this platform,
13034 # and will be corrupted by setting them based on a non-working compiler.
13035 if test "$_lt_caught_CXX_error" != yes; then
13036   # Code to be used in simple compile tests
13037   lt_simple_compile_test_code="int some_variable = 0;"
13038
13039   # Code to be used in simple link tests
13040   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13041
13042   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13043
13044
13045
13046
13047
13048
13049 # If no C compiler was specified, use CC.
13050 LTCC=${LTCC-"$CC"}
13051
13052 # If no C compiler flags were specified, use CFLAGS.
13053 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13054
13055 # Allow CC to be a program name with arguments.
13056 compiler=$CC
13057
13058
13059   # save warnings/boilerplate of simple test code
13060   ac_outfile=conftest.$ac_objext
13061 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13062 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13063 _lt_compiler_boilerplate=`cat conftest.err`
13064 $RM conftest*
13065
13066   ac_outfile=conftest.$ac_objext
13067 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13068 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13069 _lt_linker_boilerplate=`cat conftest.err`
13070 $RM -r conftest*
13071
13072
13073   # Allow CC to be a program name with arguments.
13074   lt_save_CC=$CC
13075   lt_save_LD=$LD
13076   lt_save_GCC=$GCC
13077   GCC=$GXX
13078   lt_save_with_gnu_ld=$with_gnu_ld
13079   lt_save_path_LD=$lt_cv_path_LD
13080   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13081     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13082   else
13083     $as_unset lt_cv_prog_gnu_ld
13084   fi
13085   if test -n "${lt_cv_path_LDCXX+set}"; then
13086     lt_cv_path_LD=$lt_cv_path_LDCXX
13087   else
13088     $as_unset lt_cv_path_LD
13089   fi
13090   test -z "${LDCXX+set}" || LD=$LDCXX
13091   CC=${CXX-"c++"}
13092   compiler=$CC
13093   compiler_CXX=$CC
13094   for cc_temp in $compiler""; do
13095   case $cc_temp in
13096     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13097     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13098     \-*) ;;
13099     *) break;;
13100   esac
13101 done
13102 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13103
13104
13105   if test -n "$compiler"; then
13106     # We don't want -fno-exception when compiling C++ code, so set the
13107     # no_builtin_flag separately
13108     if test "$GXX" = yes; then
13109       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13110     else
13111       lt_prog_compiler_no_builtin_flag_CXX=
13112     fi
13113
13114     if test "$GXX" = yes; then
13115       # Set up default GNU C++ configuration
13116
13117
13118
13119 # Check whether --with-gnu-ld was given.
13120 if test "${with_gnu_ld+set}" = set; then
13121   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13122 else
13123   with_gnu_ld=no
13124 fi
13125
13126 ac_prog=ld
13127 if test "$GCC" = yes; then
13128   # Check if gcc -print-prog-name=ld gives a path.
13129   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
13130 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
13131   case $host in
13132   *-*-mingw*)
13133     # gcc leaves a trailing carriage return which upsets mingw
13134     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13135   *)
13136     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13137   esac
13138   case $ac_prog in
13139     # Accept absolute paths.
13140     [\\/]* | ?:[\\/]*)
13141       re_direlt='/[^/][^/]*/\.\./'
13142       # Canonicalize the pathname of ld
13143       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13144       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13145         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13146       done
13147       test -z "$LD" && LD="$ac_prog"
13148       ;;
13149   "")
13150     # If it fails, then pretend we aren't using GCC.
13151     ac_prog=ld
13152     ;;
13153   *)
13154     # If it is relative, then search for the first ld in PATH.
13155     with_gnu_ld=unknown
13156     ;;
13157   esac
13158 elif test "$with_gnu_ld" = yes; then
13159   { echo "$as_me:$LINENO: checking for GNU ld" >&5
13160 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
13161 else
13162   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
13163 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
13164 fi
13165 if test "${lt_cv_path_LD+set}" = set; then
13166   echo $ECHO_N "(cached) $ECHO_C" >&6
13167 else
13168   if test -z "$LD"; then
13169   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13170   for ac_dir in $PATH; do
13171     IFS="$lt_save_ifs"
13172     test -z "$ac_dir" && ac_dir=.
13173     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13174       lt_cv_path_LD="$ac_dir/$ac_prog"
13175       # Check to see if the program is GNU ld.  I'd rather use --version,
13176       # but apparently some variants of GNU ld only accept -v.
13177       # Break only if it was the GNU/non-GNU ld that we prefer.
13178       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13179       *GNU* | *'with BFD'*)
13180         test "$with_gnu_ld" != no && break
13181         ;;
13182       *)
13183         test "$with_gnu_ld" != yes && break
13184         ;;
13185       esac
13186     fi
13187   done
13188   IFS="$lt_save_ifs"
13189 else
13190   lt_cv_path_LD="$LD" # Let the user override the test with a path.
13191 fi
13192 fi
13193
13194 LD="$lt_cv_path_LD"
13195 if test -n "$LD"; then
13196   { echo "$as_me:$LINENO: result: $LD" >&5
13197 echo "${ECHO_T}$LD" >&6; }
13198 else
13199   { echo "$as_me:$LINENO: result: no" >&5
13200 echo "${ECHO_T}no" >&6; }
13201 fi
13202 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
13203 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
13204    { (exit 1); exit 1; }; }
13205 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
13206 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
13207 if test "${lt_cv_prog_gnu_ld+set}" = set; then
13208   echo $ECHO_N "(cached) $ECHO_C" >&6
13209 else
13210   # I'd rather use --version here, but apparently some GNU lds only accept -v.
13211 case `$LD -v 2>&1 </dev/null` in
13212 *GNU* | *'with BFD'*)
13213   lt_cv_prog_gnu_ld=yes
13214   ;;
13215 *)
13216   lt_cv_prog_gnu_ld=no
13217   ;;
13218 esac
13219 fi
13220 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
13221 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
13222 with_gnu_ld=$lt_cv_prog_gnu_ld
13223
13224
13225
13226
13227
13228
13229
13230       # Check if GNU C++ uses GNU ld as the underlying linker, since the
13231       # archiving commands below assume that GNU ld is being used.
13232       if test "$with_gnu_ld" = yes; then
13233         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13234         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'
13235
13236         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13237         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13238
13239         # If archive_cmds runs LD, not CC, wlarc should be empty
13240         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13241         #     investigate it a little bit more. (MM)
13242         wlarc='${wl}'
13243
13244         # ancient GNU ld didn't support --whole-archive et. al.
13245         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13246           $GREP 'no-whole-archive' > /dev/null; then
13247           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13248         else
13249           whole_archive_flag_spec_CXX=
13250         fi
13251       else
13252         with_gnu_ld=no
13253         wlarc=
13254
13255         # A generic and very simple default shared library creation
13256         # command for GNU C++ for the case where it uses the native
13257         # linker, instead of GNU ld.  If possible, this setting should
13258         # overridden to take advantage of the native linker features on
13259         # the platform it is being used on.
13260         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13261       fi
13262
13263       # Commands to make compiler produce verbose output that lists
13264       # what "hidden" libraries, object files and flags are used when
13265       # linking a shared library.
13266       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13267
13268     else
13269       GXX=no
13270       with_gnu_ld=no
13271       wlarc=
13272     fi
13273
13274     # PORTME: fill in a description of your system's C++ link characteristics
13275     { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13276 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
13277     ld_shlibs_CXX=yes
13278     case $host_os in
13279       aix3*)
13280         # FIXME: insert proper C++ library support
13281         ld_shlibs_CXX=no
13282         ;;
13283       aix[4-9]*)
13284         if test "$host_cpu" = ia64; then
13285           # On IA64, the linker does run time linking by default, so we don't
13286           # have to do anything special.
13287           aix_use_runtimelinking=no
13288           exp_sym_flag='-Bexport'
13289           no_entry_flag=""
13290         else
13291           aix_use_runtimelinking=no
13292
13293           # Test if we are trying to use run time linking or normal
13294           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13295           # need to do runtime linking.
13296           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13297             for ld_flag in $LDFLAGS; do
13298               case $ld_flag in
13299               *-brtl*)
13300                 aix_use_runtimelinking=yes
13301                 break
13302                 ;;
13303               esac
13304             done
13305             ;;
13306           esac
13307
13308           exp_sym_flag='-bexport'
13309           no_entry_flag='-bnoentry'
13310         fi
13311
13312         # When large executables or shared objects are built, AIX ld can
13313         # have problems creating the table of contents.  If linking a library
13314         # or program results in "error TOC overflow" add -mminimal-toc to
13315         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13316         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13317
13318         archive_cmds_CXX=''
13319         hardcode_direct_CXX=yes
13320         hardcode_direct_absolute_CXX=yes
13321         hardcode_libdir_separator_CXX=':'
13322         link_all_deplibs_CXX=yes
13323         file_list_spec_CXX='${wl}-f,'
13324
13325         if test "$GXX" = yes; then
13326           case $host_os in aix4.[012]|aix4.[012].*)
13327           # We only want to do this on AIX 4.2 and lower, the check
13328           # below for broken collect2 doesn't work under 4.3+
13329           collect2name=`${CC} -print-prog-name=collect2`
13330           if test -f "$collect2name" &&
13331              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13332           then
13333             # We have reworked collect2
13334             :
13335           else
13336             # We have old collect2
13337             hardcode_direct_CXX=unsupported
13338             # It fails to find uninstalled libraries when the uninstalled
13339             # path is not listed in the libpath.  Setting hardcode_minus_L
13340             # to unsupported forces relinking
13341             hardcode_minus_L_CXX=yes
13342             hardcode_libdir_flag_spec_CXX='-L$libdir'
13343             hardcode_libdir_separator_CXX=
13344           fi
13345           esac
13346           shared_flag='-shared'
13347           if test "$aix_use_runtimelinking" = yes; then
13348             shared_flag="$shared_flag "'${wl}-G'
13349           fi
13350         else
13351           # not using gcc
13352           if test "$host_cpu" = ia64; then
13353           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13354           # chokes on -Wl,-G. The following line is correct:
13355           shared_flag='-G'
13356           else
13357             if test "$aix_use_runtimelinking" = yes; then
13358               shared_flag='${wl}-G'
13359             else
13360               shared_flag='${wl}-bM:SRE'
13361             fi
13362           fi
13363         fi
13364
13365         export_dynamic_flag_spec_CXX='${wl}-bexpall'
13366         # It seems that -bexpall does not export symbols beginning with
13367         # underscore (_), so it is better to generate a list of symbols to
13368         # export.
13369         always_export_symbols_CXX=yes
13370         if test "$aix_use_runtimelinking" = yes; then
13371           # Warning - without using the other runtime loading flags (-brtl),
13372           # -berok will link without error, but may produce a broken library.
13373           allow_undefined_flag_CXX='-berok'
13374           # Determine the default libpath from the value encoded in an empty
13375           # executable.
13376           cat >conftest.$ac_ext <<_ACEOF
13377 /* confdefs.h.  */
13378 _ACEOF
13379 cat confdefs.h >>conftest.$ac_ext
13380 cat >>conftest.$ac_ext <<_ACEOF
13381 /* end confdefs.h.  */
13382
13383 int
13384 main ()
13385 {
13386
13387   ;
13388   return 0;
13389 }
13390 _ACEOF
13391 rm -f conftest.$ac_objext conftest$ac_exeext
13392 if { (ac_try="$ac_link"
13393 case "(($ac_try" in
13394   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13395   *) ac_try_echo=$ac_try;;
13396 esac
13397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13398   (eval "$ac_link") 2>conftest.er1
13399   ac_status=$?
13400   grep -v '^ *+' conftest.er1 >conftest.err
13401   rm -f conftest.er1
13402   cat conftest.err >&5
13403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13404   (exit $ac_status); } && {
13405          test -z "$ac_cxx_werror_flag" ||
13406          test ! -s conftest.err
13407        } && test -s conftest$ac_exeext &&
13408        $as_test_x conftest$ac_exeext; then
13409
13410 lt_aix_libpath_sed='
13411     /Import File Strings/,/^$/ {
13412         /^0/ {
13413             s/^0  *\(.*\)$/\1/
13414             p
13415         }
13416     }'
13417 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13418 # Check for a 64-bit object if we didn't find anything.
13419 if test -z "$aix_libpath"; then
13420   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13421 fi
13422 else
13423   echo "$as_me: failed program was:" >&5
13424 sed 's/^/| /' conftest.$ac_ext >&5
13425
13426
13427 fi
13428
13429 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13430       conftest$ac_exeext conftest.$ac_ext
13431 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13432
13433           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13434
13435           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"
13436         else
13437           if test "$host_cpu" = ia64; then
13438             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13439             allow_undefined_flag_CXX="-z nodefs"
13440             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"
13441           else
13442             # Determine the default libpath from the value encoded in an
13443             # empty executable.
13444             cat >conftest.$ac_ext <<_ACEOF
13445 /* confdefs.h.  */
13446 _ACEOF
13447 cat confdefs.h >>conftest.$ac_ext
13448 cat >>conftest.$ac_ext <<_ACEOF
13449 /* end confdefs.h.  */
13450
13451 int
13452 main ()
13453 {
13454
13455   ;
13456   return 0;
13457 }
13458 _ACEOF
13459 rm -f conftest.$ac_objext conftest$ac_exeext
13460 if { (ac_try="$ac_link"
13461 case "(($ac_try" in
13462   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13463   *) ac_try_echo=$ac_try;;
13464 esac
13465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13466   (eval "$ac_link") 2>conftest.er1
13467   ac_status=$?
13468   grep -v '^ *+' conftest.er1 >conftest.err
13469   rm -f conftest.er1
13470   cat conftest.err >&5
13471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13472   (exit $ac_status); } && {
13473          test -z "$ac_cxx_werror_flag" ||
13474          test ! -s conftest.err
13475        } && test -s conftest$ac_exeext &&
13476        $as_test_x conftest$ac_exeext; then
13477
13478 lt_aix_libpath_sed='
13479     /Import File Strings/,/^$/ {
13480         /^0/ {
13481             s/^0  *\(.*\)$/\1/
13482             p
13483         }
13484     }'
13485 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13486 # Check for a 64-bit object if we didn't find anything.
13487 if test -z "$aix_libpath"; then
13488   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13489 fi
13490 else
13491   echo "$as_me: failed program was:" >&5
13492 sed 's/^/| /' conftest.$ac_ext >&5
13493
13494
13495 fi
13496
13497 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13498       conftest$ac_exeext conftest.$ac_ext
13499 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13500
13501             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13502             # Warning - without using the other run time loading flags,
13503             # -berok will link without error, but may produce a broken library.
13504             no_undefined_flag_CXX=' ${wl}-bernotok'
13505             allow_undefined_flag_CXX=' ${wl}-berok'
13506             # Exported symbols can be pulled into shared objects from archives
13507             whole_archive_flag_spec_CXX='$convenience'
13508             archive_cmds_need_lc_CXX=yes
13509             # This is similar to how AIX traditionally builds its shared
13510             # libraries.
13511             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'
13512           fi
13513         fi
13514         ;;
13515
13516       beos*)
13517         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13518           allow_undefined_flag_CXX=unsupported
13519           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13520           # support --undefined.  This deserves some investigation.  FIXME
13521           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13522         else
13523           ld_shlibs_CXX=no
13524         fi
13525         ;;
13526
13527       chorus*)
13528         case $cc_basename in
13529           *)
13530           # FIXME: insert proper C++ library support
13531           ld_shlibs_CXX=no
13532           ;;
13533         esac
13534         ;;
13535
13536       cygwin* | mingw* | pw32* | cegcc*)
13537         # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13538         # as there is no search path for DLLs.
13539         hardcode_libdir_flag_spec_CXX='-L$libdir'
13540         allow_undefined_flag_CXX=unsupported
13541         always_export_symbols_CXX=no
13542         enable_shared_with_static_runtimes_CXX=yes
13543
13544         if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13545           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'
13546           # If the export-symbols file already is a .def file (1st line
13547           # is EXPORTS), use it as is; otherwise, prepend...
13548           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13549             cp $export_symbols $output_objdir/$soname.def;
13550           else
13551             echo EXPORTS > $output_objdir/$soname.def;
13552             cat $export_symbols >> $output_objdir/$soname.def;
13553           fi~
13554           $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'
13555         else
13556           ld_shlibs_CXX=no
13557         fi
13558         ;;
13559       darwin* | rhapsody*)
13560
13561
13562   archive_cmds_need_lc_CXX=no
13563   hardcode_direct_CXX=no
13564   hardcode_automatic_CXX=yes
13565   hardcode_shlibpath_var_CXX=unsupported
13566   whole_archive_flag_spec_CXX=''
13567   link_all_deplibs_CXX=yes
13568   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13569   case $cc_basename in
13570      ifort*) _lt_dar_can_shared=yes ;;
13571      *) _lt_dar_can_shared=$GCC ;;
13572   esac
13573   if test "$_lt_dar_can_shared" = "yes"; then
13574     output_verbose_link_cmd=echo
13575     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}"
13576     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13577     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}"
13578     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}"
13579        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13580       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}"
13581       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}"
13582     fi
13583
13584   else
13585   ld_shlibs_CXX=no
13586   fi
13587
13588         ;;
13589
13590       dgux*)
13591         case $cc_basename in
13592           ec++*)
13593             # FIXME: insert proper C++ library support
13594             ld_shlibs_CXX=no
13595             ;;
13596           ghcx*)
13597             # Green Hills C++ Compiler
13598             # FIXME: insert proper C++ library support
13599             ld_shlibs_CXX=no
13600             ;;
13601           *)
13602             # FIXME: insert proper C++ library support
13603             ld_shlibs_CXX=no
13604             ;;
13605         esac
13606         ;;
13607
13608       freebsd[12]*)
13609         # C++ shared libraries reported to be fairly broken before
13610         # switch to ELF
13611         ld_shlibs_CXX=no
13612         ;;
13613
13614       freebsd-elf*)
13615         archive_cmds_need_lc_CXX=no
13616         ;;
13617
13618       freebsd* | dragonfly*)
13619         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13620         # conventions
13621         ld_shlibs_CXX=yes
13622         ;;
13623
13624       gnu*)
13625         ;;
13626
13627       hpux9*)
13628         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13629         hardcode_libdir_separator_CXX=:
13630         export_dynamic_flag_spec_CXX='${wl}-E'
13631         hardcode_direct_CXX=yes
13632         hardcode_minus_L_CXX=yes # Not in the search PATH,
13633                                              # but as the default
13634                                              # location of the library.
13635
13636         case $cc_basename in
13637           CC*)
13638             # FIXME: insert proper C++ library support
13639             ld_shlibs_CXX=no
13640             ;;
13641           aCC*)
13642             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'
13643             # Commands to make compiler produce verbose output that lists
13644             # what "hidden" libraries, object files and flags are used when
13645             # linking a shared library.
13646             #
13647             # There doesn't appear to be a way to prevent this compiler from
13648             # explicitly linking system object files so we need to strip them
13649             # from the output so that they don't get included in the library
13650             # dependencies.
13651             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'
13652             ;;
13653           *)
13654             if test "$GXX" = yes; then
13655               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'
13656             else
13657               # FIXME: insert proper C++ library support
13658               ld_shlibs_CXX=no
13659             fi
13660             ;;
13661         esac
13662         ;;
13663
13664       hpux10*|hpux11*)
13665         if test $with_gnu_ld = no; then
13666           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13667           hardcode_libdir_separator_CXX=:
13668
13669           case $host_cpu in
13670             hppa*64*|ia64*)
13671               ;;
13672             *)
13673               export_dynamic_flag_spec_CXX='${wl}-E'
13674               ;;
13675           esac
13676         fi
13677         case $host_cpu in
13678           hppa*64*|ia64*)
13679             hardcode_direct_CXX=no
13680             hardcode_shlibpath_var_CXX=no
13681             ;;
13682           *)
13683             hardcode_direct_CXX=yes
13684             hardcode_direct_absolute_CXX=yes
13685             hardcode_minus_L_CXX=yes # Not in the search PATH,
13686                                                  # but as the default
13687                                                  # location of the library.
13688             ;;
13689         esac
13690
13691         case $cc_basename in
13692           CC*)
13693             # FIXME: insert proper C++ library support
13694             ld_shlibs_CXX=no
13695             ;;
13696           aCC*)
13697             case $host_cpu in
13698               hppa*64*)
13699                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13700                 ;;
13701               ia64*)
13702                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13703                 ;;
13704               *)
13705                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13706                 ;;
13707             esac
13708             # Commands to make compiler produce verbose output that lists
13709             # what "hidden" libraries, object files and flags are used when
13710             # linking a shared library.
13711             #
13712             # There doesn't appear to be a way to prevent this compiler from
13713             # explicitly linking system object files so we need to strip them
13714             # from the output so that they don't get included in the library
13715             # dependencies.
13716             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'
13717             ;;
13718           *)
13719             if test "$GXX" = yes; then
13720               if test $with_gnu_ld = no; then
13721                 case $host_cpu in
13722                   hppa*64*)
13723                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13724                     ;;
13725                   ia64*)
13726                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13727                     ;;
13728                   *)
13729                     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'
13730                     ;;
13731                 esac
13732               fi
13733             else
13734               # FIXME: insert proper C++ library support
13735               ld_shlibs_CXX=no
13736             fi
13737             ;;
13738         esac
13739         ;;
13740
13741       interix[3-9]*)
13742         hardcode_direct_CXX=no
13743         hardcode_shlibpath_var_CXX=no
13744         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13745         export_dynamic_flag_spec_CXX='${wl}-E'
13746         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13747         # Instead, shared libraries are loaded at an image base (0x10000000 by
13748         # default) and relocated if they conflict, which is a slow very memory
13749         # consuming and fragmenting process.  To avoid this, we pick a random,
13750         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13751         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13752         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'
13753         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'
13754         ;;
13755       irix5* | irix6*)
13756         case $cc_basename in
13757           CC*)
13758             # SGI C++
13759             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'
13760
13761             # Archives containing C++ object files must be created using
13762             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
13763             # necessary to make sure instantiated templates are included
13764             # in the archive.
13765             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13766             ;;
13767           *)
13768             if test "$GXX" = yes; then
13769               if test "$with_gnu_ld" = no; then
13770                 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'
13771               else
13772                 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'
13773               fi
13774             fi
13775             link_all_deplibs_CXX=yes
13776             ;;
13777         esac
13778         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13779         hardcode_libdir_separator_CXX=:
13780         inherit_rpath_CXX=yes
13781         ;;
13782
13783       linux* | k*bsd*-gnu)
13784         case $cc_basename in
13785           KCC*)
13786             # Kuck and Associates, Inc. (KAI) C++ Compiler
13787
13788             # KCC will only create a shared library if the output file
13789             # ends with ".so" (or ".sl" for HP-UX), so rename the library
13790             # to its proper name (with version) after linking.
13791             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'
13792             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'
13793             # Commands to make compiler produce verbose output that lists
13794             # what "hidden" libraries, object files and flags are used when
13795             # linking a shared library.
13796             #
13797             # There doesn't appear to be a way to prevent this compiler from
13798             # explicitly linking system object files so we need to strip them
13799             # from the output so that they don't get included in the library
13800             # dependencies.
13801             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'
13802
13803             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13804             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13805
13806             # Archives containing C++ object files must be created using
13807             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13808             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13809             ;;
13810           icpc* | ecpc* )
13811             # Intel C++
13812             with_gnu_ld=yes
13813             # version 8.0 and above of icpc choke on multiply defined symbols
13814             # if we add $predep_objects and $postdep_objects, however 7.1 and
13815             # earlier do not add the objects themselves.
13816             case `$CC -V 2>&1` in
13817               *"Version 7."*)
13818                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13819                 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'
13820                 ;;
13821               *)  # Version 8.0 or newer
13822                 tmp_idyn=
13823                 case $host_cpu in
13824                   ia64*) tmp_idyn=' -i_dynamic';;
13825                 esac
13826                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13827                 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'
13828                 ;;
13829             esac
13830             archive_cmds_need_lc_CXX=no
13831             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13832             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13833             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13834             ;;
13835           pgCC* | pgcpp*)
13836             # Portland Group C++ compiler
13837             case `$CC -V` in
13838             *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
13839               prelink_cmds_CXX='tpldir=Template.dir~
13840                 rm -rf $tpldir~
13841                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13842                 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
13843               old_archive_cmds_CXX='tpldir=Template.dir~
13844                 rm -rf $tpldir~
13845                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13846                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
13847                 $RANLIB $oldlib'
13848               archive_cmds_CXX='tpldir=Template.dir~
13849                 rm -rf $tpldir~
13850                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13851                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13852               archive_expsym_cmds_CXX='tpldir=Template.dir~
13853                 rm -rf $tpldir~
13854                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13855                 $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'
13856               ;;
13857             *) # Version 6 will use weak symbols
13858               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13859               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'
13860               ;;
13861             esac
13862
13863             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13864             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13865             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'
13866             ;;
13867           cxx*)
13868             # Compaq C++
13869             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13870             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'
13871
13872             runpath_var=LD_RUN_PATH
13873             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13874             hardcode_libdir_separator_CXX=:
13875
13876             # Commands to make compiler produce verbose output that lists
13877             # what "hidden" libraries, object files and flags are used when
13878             # linking a shared library.
13879             #
13880             # There doesn't appear to be a way to prevent this compiler from
13881             # explicitly linking system object files so we need to strip them
13882             # from the output so that they don't get included in the library
13883             # dependencies.
13884             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'
13885             ;;
13886           xl*)
13887             # IBM XL 8.0 on PPC, with GNU ld
13888             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13889             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13890             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13891             if test "x$supports_anon_versioning" = xyes; then
13892               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13893                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13894                 echo "local: *; };" >> $output_objdir/$libname.ver~
13895                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13896             fi
13897             ;;
13898           *)
13899             case `$CC -V 2>&1 | sed 5q` in
13900             *Sun\ C*)
13901               # Sun C++ 5.9
13902               no_undefined_flag_CXX=' -zdefs'
13903               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13904               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'
13905               hardcode_libdir_flag_spec_CXX='-R$libdir'
13906               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'
13907               compiler_needs_object_CXX=yes
13908
13909               # Not sure whether something based on
13910               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13911               # would be better.
13912               output_verbose_link_cmd='echo'
13913
13914               # Archives containing C++ object files must be created using
13915               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13916               # necessary to make sure instantiated templates are included
13917               # in the archive.
13918               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13919               ;;
13920             esac
13921             ;;
13922         esac
13923         ;;
13924
13925       lynxos*)
13926         # FIXME: insert proper C++ library support
13927         ld_shlibs_CXX=no
13928         ;;
13929
13930       m88k*)
13931         # FIXME: insert proper C++ library support
13932         ld_shlibs_CXX=no
13933         ;;
13934
13935       mvs*)
13936         case $cc_basename in
13937           cxx*)
13938             # FIXME: insert proper C++ library support
13939             ld_shlibs_CXX=no
13940             ;;
13941           *)
13942             # FIXME: insert proper C++ library support
13943             ld_shlibs_CXX=no
13944             ;;
13945         esac
13946         ;;
13947
13948       netbsd*)
13949         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13950           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13951           wlarc=
13952           hardcode_libdir_flag_spec_CXX='-R$libdir'
13953           hardcode_direct_CXX=yes
13954           hardcode_shlibpath_var_CXX=no
13955         fi
13956         # Workaround some broken pre-1.5 toolchains
13957         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13958         ;;
13959
13960       *nto* | *qnx*)
13961         ld_shlibs_CXX=yes
13962         ;;
13963
13964       openbsd2*)
13965         # C++ shared libraries are fairly broken
13966         ld_shlibs_CXX=no
13967         ;;
13968
13969       openbsd*)
13970         if test -f /usr/libexec/ld.so; then
13971           hardcode_direct_CXX=yes
13972           hardcode_shlibpath_var_CXX=no
13973           hardcode_direct_absolute_CXX=yes
13974           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13975           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13976           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13977             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13978             export_dynamic_flag_spec_CXX='${wl}-E'
13979             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13980           fi
13981           output_verbose_link_cmd=echo
13982         else
13983           ld_shlibs_CXX=no
13984         fi
13985         ;;
13986
13987       osf3* | osf4* | osf5*)
13988         case $cc_basename in
13989           KCC*)
13990             # Kuck and Associates, Inc. (KAI) C++ Compiler
13991
13992             # KCC will only create a shared library if the output file
13993             # ends with ".so" (or ".sl" for HP-UX), so rename the library
13994             # to its proper name (with version) after linking.
13995             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'
13996
13997             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13998             hardcode_libdir_separator_CXX=:
13999
14000             # Archives containing C++ object files must be created using
14001             # the KAI C++ compiler.
14002             case $host in
14003               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14004               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14005             esac
14006             ;;
14007           RCC*)
14008             # Rational C++ 2.4.1
14009             # FIXME: insert proper C++ library support
14010             ld_shlibs_CXX=no
14011             ;;
14012           cxx*)
14013             case $host in
14014               osf3*)
14015                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14016                 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'
14017                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14018                 ;;
14019               *)
14020                 allow_undefined_flag_CXX=' -expect_unresolved \*'
14021                 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'
14022                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14023                   echo "-hidden">> $lib.exp~
14024                   $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~
14025                   $RM $lib.exp'
14026                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14027                 ;;
14028             esac
14029
14030             hardcode_libdir_separator_CXX=:
14031
14032             # Commands to make compiler produce verbose output that lists
14033             # what "hidden" libraries, object files and flags are used when
14034             # linking a shared library.
14035             #
14036             # There doesn't appear to be a way to prevent this compiler from
14037             # explicitly linking system object files so we need to strip them
14038             # from the output so that they don't get included in the library
14039             # dependencies.
14040             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'
14041             ;;
14042           *)
14043             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14044               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14045               case $host in
14046                 osf3*)
14047                   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'
14048                   ;;
14049                 *)
14050                   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'
14051                   ;;
14052               esac
14053
14054               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14055               hardcode_libdir_separator_CXX=:
14056
14057               # Commands to make compiler produce verbose output that lists
14058               # what "hidden" libraries, object files and flags are used when
14059               # linking a shared library.
14060               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14061
14062             else
14063               # FIXME: insert proper C++ library support
14064               ld_shlibs_CXX=no
14065             fi
14066             ;;
14067         esac
14068         ;;
14069
14070       psos*)
14071         # FIXME: insert proper C++ library support
14072         ld_shlibs_CXX=no
14073         ;;
14074
14075       sunos4*)
14076         case $cc_basename in
14077           CC*)
14078             # Sun C++ 4.x
14079             # FIXME: insert proper C++ library support
14080             ld_shlibs_CXX=no
14081             ;;
14082           lcc*)
14083             # Lucid
14084             # FIXME: insert proper C++ library support
14085             ld_shlibs_CXX=no
14086             ;;
14087           *)
14088             # FIXME: insert proper C++ library support
14089             ld_shlibs_CXX=no
14090             ;;
14091         esac
14092         ;;
14093
14094       solaris*)
14095         case $cc_basename in
14096           CC*)
14097             # Sun C++ 4.2, 5.x and Centerline C++
14098             archive_cmds_need_lc_CXX=yes
14099             no_undefined_flag_CXX=' -zdefs'
14100             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14101             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14102               $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'
14103
14104             hardcode_libdir_flag_spec_CXX='-R$libdir'
14105             hardcode_shlibpath_var_CXX=no
14106             case $host_os in
14107               solaris2.[0-5] | solaris2.[0-5].*) ;;
14108               *)
14109                 # The compiler driver will combine and reorder linker options,
14110                 # but understands `-z linker_flag'.
14111                 # Supported since Solaris 2.6 (maybe 2.5.1?)
14112                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14113                 ;;
14114             esac
14115             link_all_deplibs_CXX=yes
14116
14117             output_verbose_link_cmd='echo'
14118
14119             # Archives containing C++ object files must be created using
14120             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
14121             # necessary to make sure instantiated templates are included
14122             # in the archive.
14123             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14124             ;;
14125           gcx*)
14126             # Green Hills C++ Compiler
14127             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14128
14129             # The C++ compiler must be used to create the archive.
14130             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14131             ;;
14132           *)
14133             # GNU C++ compiler with Solaris linker
14134             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14135               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14136               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14137                 archive_cmds_CXX='$CC -shared -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 -shared -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 -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14145               else
14146                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
14147                 # platform.
14148                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14149                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14150                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14151
14152                 # Commands to make compiler produce verbose output that lists
14153                 # what "hidden" libraries, object files and flags are used when
14154                 # linking a shared library.
14155                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14156               fi
14157
14158               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14159               case $host_os in
14160                 solaris2.[0-5] | solaris2.[0-5].*) ;;
14161                 *)
14162                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14163                   ;;
14164               esac
14165             fi
14166             ;;
14167         esac
14168         ;;
14169
14170     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14171       no_undefined_flag_CXX='${wl}-z,text'
14172       archive_cmds_need_lc_CXX=no
14173       hardcode_shlibpath_var_CXX=no
14174       runpath_var='LD_RUN_PATH'
14175
14176       case $cc_basename in
14177         CC*)
14178           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14179           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14180           ;;
14181         *)
14182           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14183           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14184           ;;
14185       esac
14186       ;;
14187
14188       sysv5* | sco3.2v5* | sco5v6*)
14189         # Note: We can NOT use -z defs as we might desire, because we do not
14190         # link with -lc, and that would cause any symbols used from libc to
14191         # always be unresolved, which means just about no library would
14192         # ever link correctly.  If we're not using GNU ld we use -z text
14193         # though, which does catch some bad symbols but isn't as heavy-handed
14194         # as -z defs.
14195         no_undefined_flag_CXX='${wl}-z,text'
14196         allow_undefined_flag_CXX='${wl}-z,nodefs'
14197         archive_cmds_need_lc_CXX=no
14198         hardcode_shlibpath_var_CXX=no
14199         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14200         hardcode_libdir_separator_CXX=':'
14201         link_all_deplibs_CXX=yes
14202         export_dynamic_flag_spec_CXX='${wl}-Bexport'
14203         runpath_var='LD_RUN_PATH'
14204
14205         case $cc_basename in
14206           CC*)
14207             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14208             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14209             ;;
14210           *)
14211             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14212             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14213             ;;
14214         esac
14215       ;;
14216
14217       tandem*)
14218         case $cc_basename in
14219           NCC*)
14220             # NonStop-UX NCC 3.20
14221             # FIXME: insert proper C++ library support
14222             ld_shlibs_CXX=no
14223             ;;
14224           *)
14225             # FIXME: insert proper C++ library support
14226             ld_shlibs_CXX=no
14227             ;;
14228         esac
14229         ;;
14230
14231       vxworks*)
14232         # FIXME: insert proper C++ library support
14233         ld_shlibs_CXX=no
14234         ;;
14235
14236       *)
14237         # FIXME: insert proper C++ library support
14238         ld_shlibs_CXX=no
14239         ;;
14240     esac
14241
14242     { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14243 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
14244     test "$ld_shlibs_CXX" = no && can_build_shared=no
14245
14246     GCC_CXX="$GXX"
14247     LD_CXX="$LD"
14248
14249     ## CAVEAT EMPTOR:
14250     ## There is no encapsulation within the following macros, do not change
14251     ## the running order or otherwise move them around unless you know exactly
14252     ## what you are doing...
14253     # Dependencies to place before and after the object being linked:
14254 predep_objects_CXX=
14255 postdep_objects_CXX=
14256 predeps_CXX=
14257 postdeps_CXX=
14258 compiler_lib_search_path_CXX=
14259
14260 cat > conftest.$ac_ext <<_LT_EOF
14261 class Foo
14262 {
14263 public:
14264   Foo (void) { a = 0; }
14265 private:
14266   int a;
14267 };
14268 _LT_EOF
14269
14270 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14271   (eval $ac_compile) 2>&5
14272   ac_status=$?
14273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14274   (exit $ac_status); }; then
14275   # Parse the compiler output and extract the necessary
14276   # objects, libraries and library flags.
14277
14278   # Sentinel used to keep track of whether or not we are before
14279   # the conftest object file.
14280   pre_test_object_deps_done=no
14281
14282   for p in `eval "$output_verbose_link_cmd"`; do
14283     case $p in
14284
14285     -L* | -R* | -l*)
14286        # Some compilers place space between "-{L,R}" and the path.
14287        # Remove the space.
14288        if test $p = "-L" ||
14289           test $p = "-R"; then
14290          prev=$p
14291          continue
14292        else
14293          prev=
14294        fi
14295
14296        if test "$pre_test_object_deps_done" = no; then
14297          case $p in
14298          -L* | -R*)
14299            # Internal compiler library paths should come after those
14300            # provided the user.  The postdeps already come after the
14301            # user supplied libs so there is no need to process them.
14302            if test -z "$compiler_lib_search_path_CXX"; then
14303              compiler_lib_search_path_CXX="${prev}${p}"
14304            else
14305              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14306            fi
14307            ;;
14308          # The "-l" case would never come before the object being
14309          # linked, so don't bother handling this case.
14310          esac
14311        else
14312          if test -z "$postdeps_CXX"; then
14313            postdeps_CXX="${prev}${p}"
14314          else
14315            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14316          fi
14317        fi
14318        ;;
14319
14320     *.$objext)
14321        # This assumes that the test object file only shows up
14322        # once in the compiler output.
14323        if test "$p" = "conftest.$objext"; then
14324          pre_test_object_deps_done=yes
14325          continue
14326        fi
14327
14328        if test "$pre_test_object_deps_done" = no; then
14329          if test -z "$predep_objects_CXX"; then
14330            predep_objects_CXX="$p"
14331          else
14332            predep_objects_CXX="$predep_objects_CXX $p"
14333          fi
14334        else
14335          if test -z "$postdep_objects_CXX"; then
14336            postdep_objects_CXX="$p"
14337          else
14338            postdep_objects_CXX="$postdep_objects_CXX $p"
14339          fi
14340        fi
14341        ;;
14342
14343     *) ;; # Ignore the rest.
14344
14345     esac
14346   done
14347
14348   # Clean up.
14349   rm -f a.out a.exe
14350 else
14351   echo "libtool.m4: error: problem compiling CXX test program"
14352 fi
14353
14354 $RM -f confest.$objext
14355
14356 # PORTME: override above test on systems where it is broken
14357 case $host_os in
14358 interix[3-9]*)
14359   # Interix 3.5 installs completely hosed .la files for C++, so rather than
14360   # hack all around it, let's just trust "g++" to DTRT.
14361   predep_objects_CXX=
14362   postdep_objects_CXX=
14363   postdeps_CXX=
14364   ;;
14365
14366 linux*)
14367   case `$CC -V 2>&1 | sed 5q` in
14368   *Sun\ C*)
14369     # Sun C++ 5.9
14370
14371     # The more standards-conforming stlport4 library is
14372     # incompatible with the Cstd library. Avoid specifying
14373     # it if it's in CXXFLAGS. Ignore libCrun as
14374     # -library=stlport4 depends on it.
14375     case " $CXX $CXXFLAGS " in
14376     *" -library=stlport4 "*)
14377       solaris_use_stlport4=yes
14378       ;;
14379     esac
14380
14381     if test "$solaris_use_stlport4" != yes; then
14382       postdeps_CXX='-library=Cstd -library=Crun'
14383     fi
14384     ;;
14385   esac
14386   ;;
14387
14388 solaris*)
14389   case $cc_basename in
14390   CC*)
14391     # The more standards-conforming stlport4 library is
14392     # incompatible with the Cstd library. Avoid specifying
14393     # it if it's in CXXFLAGS. Ignore libCrun as
14394     # -library=stlport4 depends on it.
14395     case " $CXX $CXXFLAGS " in
14396     *" -library=stlport4 "*)
14397       solaris_use_stlport4=yes
14398       ;;
14399     esac
14400
14401     # Adding this requires a known-good setup of shared libraries for
14402     # Sun compiler versions before 5.6, else PIC objects from an old
14403     # archive will be linked into the output, leading to subtle bugs.
14404     if test "$solaris_use_stlport4" != yes; then
14405       postdeps_CXX='-library=Cstd -library=Crun'
14406     fi
14407     ;;
14408   esac
14409   ;;
14410 esac
14411
14412
14413 case " $postdeps_CXX " in
14414 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14415 esac
14416  compiler_lib_search_dirs_CXX=
14417 if test -n "${compiler_lib_search_path_CXX}"; then
14418  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14419 fi
14420
14421
14422
14423
14424
14425
14426
14427
14428
14429
14430
14431
14432
14433
14434
14435
14436
14437
14438
14439
14440
14441
14442
14443
14444
14445
14446
14447
14448
14449
14450
14451     lt_prog_compiler_wl_CXX=
14452 lt_prog_compiler_pic_CXX=
14453 lt_prog_compiler_static_CXX=
14454
14455 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14456 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14457
14458   # C++ specific cases for pic, static, wl, etc.
14459   if test "$GXX" = yes; then
14460     lt_prog_compiler_wl_CXX='-Wl,'
14461     lt_prog_compiler_static_CXX='-static'
14462
14463     case $host_os in
14464     aix*)
14465       # All AIX code is PIC.
14466       if test "$host_cpu" = ia64; then
14467         # AIX 5 now supports IA64 processor
14468         lt_prog_compiler_static_CXX='-Bstatic'
14469       fi
14470       ;;
14471
14472     amigaos*)
14473       case $host_cpu in
14474       powerpc)
14475             # see comment about AmigaOS4 .so support
14476             lt_prog_compiler_pic_CXX='-fPIC'
14477         ;;
14478       m68k)
14479             # FIXME: we need at least 68020 code to build shared libraries, but
14480             # adding the `-m68020' flag to GCC prevents building anything better,
14481             # like `-m68040'.
14482             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14483         ;;
14484       esac
14485       ;;
14486
14487     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14488       # PIC is the default for these OSes.
14489       ;;
14490     mingw* | cygwin* | os2* | pw32* | cegcc*)
14491       # This hack is so that the source file can tell whether it is being
14492       # built for inclusion in a dll (and should export symbols for example).
14493       # Although the cygwin gcc ignores -fPIC, still need this for old-style
14494       # (--disable-auto-import) libraries
14495       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14496       ;;
14497     darwin* | rhapsody*)
14498       # PIC is the default on this platform
14499       # Common symbols not allowed in MH_DYLIB files
14500       lt_prog_compiler_pic_CXX='-fno-common'
14501       ;;
14502     *djgpp*)
14503       # DJGPP does not support shared libraries at all
14504       lt_prog_compiler_pic_CXX=
14505       ;;
14506     interix[3-9]*)
14507       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14508       # Instead, we relocate shared libraries at runtime.
14509       ;;
14510     sysv4*MP*)
14511       if test -d /usr/nec; then
14512         lt_prog_compiler_pic_CXX=-Kconform_pic
14513       fi
14514       ;;
14515     hpux*)
14516       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14517       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
14518       # sets the default TLS model and affects inlining.
14519       case $host_cpu in
14520       hppa*64*)
14521         ;;
14522       *)
14523         lt_prog_compiler_pic_CXX='-fPIC'
14524         ;;
14525       esac
14526       ;;
14527     *qnx* | *nto*)
14528       # QNX uses GNU C++, but need to define -shared option too, otherwise
14529       # it will coredump.
14530       lt_prog_compiler_pic_CXX='-fPIC -shared'
14531       ;;
14532     *)
14533       lt_prog_compiler_pic_CXX='-fPIC'
14534       ;;
14535     esac
14536   else
14537     case $host_os in
14538       aix[4-9]*)
14539         # All AIX code is PIC.
14540         if test "$host_cpu" = ia64; then
14541           # AIX 5 now supports IA64 processor
14542           lt_prog_compiler_static_CXX='-Bstatic'
14543         else
14544           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14545         fi
14546         ;;
14547       chorus*)
14548         case $cc_basename in
14549         cxch68*)
14550           # Green Hills C++ Compiler
14551           # _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"
14552           ;;
14553         esac
14554         ;;
14555       dgux*)
14556         case $cc_basename in
14557           ec++*)
14558             lt_prog_compiler_pic_CXX='-KPIC'
14559             ;;
14560           ghcx*)
14561             # Green Hills C++ Compiler
14562             lt_prog_compiler_pic_CXX='-pic'
14563             ;;
14564           *)
14565             ;;
14566         esac
14567         ;;
14568       freebsd* | dragonfly*)
14569         # FreeBSD uses GNU C++
14570         ;;
14571       hpux9* | hpux10* | hpux11*)
14572         case $cc_basename in
14573           CC*)
14574             lt_prog_compiler_wl_CXX='-Wl,'
14575             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14576             if test "$host_cpu" != ia64; then
14577               lt_prog_compiler_pic_CXX='+Z'
14578             fi
14579             ;;
14580           aCC*)
14581             lt_prog_compiler_wl_CXX='-Wl,'
14582             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14583             case $host_cpu in
14584             hppa*64*|ia64*)
14585               # +Z the default
14586               ;;
14587             *)
14588               lt_prog_compiler_pic_CXX='+Z'
14589               ;;
14590             esac
14591             ;;
14592           *)
14593             ;;
14594         esac
14595         ;;
14596       interix*)
14597         # This is c89, which is MS Visual C++ (no shared libs)
14598         # Anyone wants to do a port?
14599         ;;
14600       irix5* | irix6* | nonstopux*)
14601         case $cc_basename in
14602           CC*)
14603             lt_prog_compiler_wl_CXX='-Wl,'
14604             lt_prog_compiler_static_CXX='-non_shared'
14605             # CC pic flag -KPIC is the default.
14606             ;;
14607           *)
14608             ;;
14609         esac
14610         ;;
14611       linux* | k*bsd*-gnu)
14612         case $cc_basename in
14613           KCC*)
14614             # KAI C++ Compiler
14615             lt_prog_compiler_wl_CXX='--backend -Wl,'
14616             lt_prog_compiler_pic_CXX='-fPIC'
14617             ;;
14618           ecpc* )
14619             # old Intel C++ for x86_64 which still supported -KPIC.
14620             lt_prog_compiler_wl_CXX='-Wl,'
14621             lt_prog_compiler_pic_CXX='-KPIC'
14622             lt_prog_compiler_static_CXX='-static'
14623             ;;
14624           icpc* )
14625             # Intel C++, used to be incompatible with GCC.
14626             # ICC 10 doesn't accept -KPIC any more.
14627             lt_prog_compiler_wl_CXX='-Wl,'
14628             lt_prog_compiler_pic_CXX='-fPIC'
14629             lt_prog_compiler_static_CXX='-static'
14630             ;;
14631           pgCC* | pgcpp*)
14632             # Portland Group C++ compiler
14633             lt_prog_compiler_wl_CXX='-Wl,'
14634             lt_prog_compiler_pic_CXX='-fpic'
14635             lt_prog_compiler_static_CXX='-Bstatic'
14636             ;;
14637           cxx*)
14638             # Compaq C++
14639             # Make sure the PIC flag is empty.  It appears that all Alpha
14640             # Linux and Compaq Tru64 Unix objects are PIC.
14641             lt_prog_compiler_pic_CXX=
14642             lt_prog_compiler_static_CXX='-non_shared'
14643             ;;
14644           xlc* | xlC*)
14645             # IBM XL 8.0 on PPC
14646             lt_prog_compiler_wl_CXX='-Wl,'
14647             lt_prog_compiler_pic_CXX='-qpic'
14648             lt_prog_compiler_static_CXX='-qstaticlink'
14649             ;;
14650           *)
14651             case `$CC -V 2>&1 | sed 5q` in
14652             *Sun\ C*)
14653               # Sun C++ 5.9
14654               lt_prog_compiler_pic_CXX='-KPIC'
14655               lt_prog_compiler_static_CXX='-Bstatic'
14656               lt_prog_compiler_wl_CXX='-Qoption ld '
14657               ;;
14658             esac
14659             ;;
14660         esac
14661         ;;
14662       lynxos*)
14663         ;;
14664       m88k*)
14665         ;;
14666       mvs*)
14667         case $cc_basename in
14668           cxx*)
14669             lt_prog_compiler_pic_CXX='-W c,exportall'
14670             ;;
14671           *)
14672             ;;
14673         esac
14674         ;;
14675       netbsd*)
14676         ;;
14677       *qnx* | *nto*)
14678         # QNX uses GNU C++, but need to define -shared option too, otherwise
14679         # it will coredump.
14680         lt_prog_compiler_pic_CXX='-fPIC -shared'
14681         ;;
14682       osf3* | osf4* | osf5*)
14683         case $cc_basename in
14684           KCC*)
14685             lt_prog_compiler_wl_CXX='--backend -Wl,'
14686             ;;
14687           RCC*)
14688             # Rational C++ 2.4.1
14689             lt_prog_compiler_pic_CXX='-pic'
14690             ;;
14691           cxx*)
14692             # Digital/Compaq C++
14693             lt_prog_compiler_wl_CXX='-Wl,'
14694             # Make sure the PIC flag is empty.  It appears that all Alpha
14695             # Linux and Compaq Tru64 Unix objects are PIC.
14696             lt_prog_compiler_pic_CXX=
14697             lt_prog_compiler_static_CXX='-non_shared'
14698             ;;
14699           *)
14700             ;;
14701         esac
14702         ;;
14703       psos*)
14704         ;;
14705       solaris*)
14706         case $cc_basename in
14707           CC*)
14708             # Sun C++ 4.2, 5.x and Centerline C++
14709             lt_prog_compiler_pic_CXX='-KPIC'
14710             lt_prog_compiler_static_CXX='-Bstatic'
14711             lt_prog_compiler_wl_CXX='-Qoption ld '
14712             ;;
14713           gcx*)
14714             # Green Hills C++ Compiler
14715             lt_prog_compiler_pic_CXX='-PIC'
14716             ;;
14717           *)
14718             ;;
14719         esac
14720         ;;
14721       sunos4*)
14722         case $cc_basename in
14723           CC*)
14724             # Sun C++ 4.x
14725             lt_prog_compiler_pic_CXX='-pic'
14726             lt_prog_compiler_static_CXX='-Bstatic'
14727             ;;
14728           lcc*)
14729             # Lucid
14730             lt_prog_compiler_pic_CXX='-pic'
14731             ;;
14732           *)
14733             ;;
14734         esac
14735         ;;
14736       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14737         case $cc_basename in
14738           CC*)
14739             lt_prog_compiler_wl_CXX='-Wl,'
14740             lt_prog_compiler_pic_CXX='-KPIC'
14741             lt_prog_compiler_static_CXX='-Bstatic'
14742             ;;
14743         esac
14744         ;;
14745       tandem*)
14746         case $cc_basename in
14747           NCC*)
14748             # NonStop-UX NCC 3.20
14749             lt_prog_compiler_pic_CXX='-KPIC'
14750             ;;
14751           *)
14752             ;;
14753         esac
14754         ;;
14755       vxworks*)
14756         ;;
14757       *)
14758         lt_prog_compiler_can_build_shared_CXX=no
14759         ;;
14760     esac
14761   fi
14762
14763 case $host_os in
14764   # For platforms which do not support PIC, -DPIC is meaningless:
14765   *djgpp*)
14766     lt_prog_compiler_pic_CXX=
14767     ;;
14768   *)
14769     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14770     ;;
14771 esac
14772 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
14773 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
14774
14775
14776
14777 #
14778 # Check to make sure the PIC flag actually works.
14779 #
14780 if test -n "$lt_prog_compiler_pic_CXX"; then
14781   { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14782 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
14783 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
14784   echo $ECHO_N "(cached) $ECHO_C" >&6
14785 else
14786   lt_cv_prog_compiler_pic_works_CXX=no
14787    ac_outfile=conftest.$ac_objext
14788    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14789    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14790    # Insert the option either (1) after the last *FLAGS variable, or
14791    # (2) before a word containing "conftest.", or (3) at the end.
14792    # Note that $ac_compile itself does not contain backslashes and begins
14793    # with a dollar sign (not a hyphen), so the echo should work correctly.
14794    # The option is referenced via a variable to avoid confusing sed.
14795    lt_compile=`echo "$ac_compile" | $SED \
14796    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14797    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14798    -e 's:$: $lt_compiler_flag:'`
14799    (eval echo "\"\$as_me:14799: $lt_compile\"" >&5)
14800    (eval "$lt_compile" 2>conftest.err)
14801    ac_status=$?
14802    cat conftest.err >&5
14803    echo "$as_me:14803: \$? = $ac_status" >&5
14804    if (exit $ac_status) && test -s "$ac_outfile"; then
14805      # The compiler can only warn and ignore the option if not recognized
14806      # So say no if there are warnings other than the usual output.
14807      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14808      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14809      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14810        lt_cv_prog_compiler_pic_works_CXX=yes
14811      fi
14812    fi
14813    $RM conftest*
14814
14815 fi
14816 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14817 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14818
14819 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14820     case $lt_prog_compiler_pic_CXX in
14821      "" | " "*) ;;
14822      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14823      esac
14824 else
14825     lt_prog_compiler_pic_CXX=
14826      lt_prog_compiler_can_build_shared_CXX=no
14827 fi
14828
14829 fi
14830
14831
14832
14833 #
14834 # Check to make sure the static flag actually works.
14835 #
14836 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14837 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14838 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14839 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
14840   echo $ECHO_N "(cached) $ECHO_C" >&6
14841 else
14842   lt_cv_prog_compiler_static_works_CXX=no
14843    save_LDFLAGS="$LDFLAGS"
14844    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14845    echo "$lt_simple_link_test_code" > conftest.$ac_ext
14846    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14847      # The linker can only warn and ignore the option if not recognized
14848      # So say no if there are warnings
14849      if test -s conftest.err; then
14850        # Append any errors to the config.log.
14851        cat conftest.err 1>&5
14852        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14853        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14854        if diff conftest.exp conftest.er2 >/dev/null; then
14855          lt_cv_prog_compiler_static_works_CXX=yes
14856        fi
14857      else
14858        lt_cv_prog_compiler_static_works_CXX=yes
14859      fi
14860    fi
14861    $RM -r conftest*
14862    LDFLAGS="$save_LDFLAGS"
14863
14864 fi
14865 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14866 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6; }
14867
14868 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14869     :
14870 else
14871     lt_prog_compiler_static_CXX=
14872 fi
14873
14874
14875
14876
14877     { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14878 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14879 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14880   echo $ECHO_N "(cached) $ECHO_C" >&6
14881 else
14882   lt_cv_prog_compiler_c_o_CXX=no
14883    $RM -r conftest 2>/dev/null
14884    mkdir conftest
14885    cd conftest
14886    mkdir out
14887    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14888
14889    lt_compiler_flag="-o out/conftest2.$ac_objext"
14890    # Insert the option either (1) after the last *FLAGS variable, or
14891    # (2) before a word containing "conftest.", or (3) at the end.
14892    # Note that $ac_compile itself does not contain backslashes and begins
14893    # with a dollar sign (not a hyphen), so the echo should work correctly.
14894    lt_compile=`echo "$ac_compile" | $SED \
14895    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14896    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14897    -e 's:$: $lt_compiler_flag:'`
14898    (eval echo "\"\$as_me:14898: $lt_compile\"" >&5)
14899    (eval "$lt_compile" 2>out/conftest.err)
14900    ac_status=$?
14901    cat out/conftest.err >&5
14902    echo "$as_me:14902: \$? = $ac_status" >&5
14903    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14904    then
14905      # The compiler can only warn and ignore the option if not recognized
14906      # So say no if there are warnings
14907      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14908      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14909      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14910        lt_cv_prog_compiler_c_o_CXX=yes
14911      fi
14912    fi
14913    chmod u+w . 2>&5
14914    $RM conftest*
14915    # SGI C++ compiler will create directory out/ii_files/ for
14916    # template instantiation
14917    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14918    $RM out/* && rmdir out
14919    cd ..
14920    $RM -r conftest
14921    $RM conftest*
14922
14923 fi
14924 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14925 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
14926
14927
14928
14929     { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14930 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14931 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14932   echo $ECHO_N "(cached) $ECHO_C" >&6
14933 else
14934   lt_cv_prog_compiler_c_o_CXX=no
14935    $RM -r conftest 2>/dev/null
14936    mkdir conftest
14937    cd conftest
14938    mkdir out
14939    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14940
14941    lt_compiler_flag="-o out/conftest2.$ac_objext"
14942    # Insert the option either (1) after the last *FLAGS variable, or
14943    # (2) before a word containing "conftest.", or (3) at the end.
14944    # Note that $ac_compile itself does not contain backslashes and begins
14945    # with a dollar sign (not a hyphen), so the echo should work correctly.
14946    lt_compile=`echo "$ac_compile" | $SED \
14947    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14948    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14949    -e 's:$: $lt_compiler_flag:'`
14950    (eval echo "\"\$as_me:14950: $lt_compile\"" >&5)
14951    (eval "$lt_compile" 2>out/conftest.err)
14952    ac_status=$?
14953    cat out/conftest.err >&5
14954    echo "$as_me:14954: \$? = $ac_status" >&5
14955    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14956    then
14957      # The compiler can only warn and ignore the option if not recognized
14958      # So say no if there are warnings
14959      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14960      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14961      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14962        lt_cv_prog_compiler_c_o_CXX=yes
14963      fi
14964    fi
14965    chmod u+w . 2>&5
14966    $RM conftest*
14967    # SGI C++ compiler will create directory out/ii_files/ for
14968    # template instantiation
14969    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14970    $RM out/* && rmdir out
14971    cd ..
14972    $RM -r conftest
14973    $RM conftest*
14974
14975 fi
14976 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14977 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
14978
14979
14980
14981
14982 hard_links="nottested"
14983 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14984   # do not overwrite the value of need_locks provided by the user
14985   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14986 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14987   hard_links=yes
14988   $RM conftest*
14989   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14990   touch conftest.a
14991   ln conftest.a conftest.b 2>&5 || hard_links=no
14992   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14993   { echo "$as_me:$LINENO: result: $hard_links" >&5
14994 echo "${ECHO_T}$hard_links" >&6; }
14995   if test "$hard_links" = no; then
14996     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14997 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14998     need_locks=warn
14999   fi
15000 else
15001   need_locks=no
15002 fi
15003
15004
15005
15006     { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15007 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
15008
15009   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15010   case $host_os in
15011   aix[4-9]*)
15012     # If we're using GNU nm, then we don't want the "-C" option.
15013     # -C means demangle to AIX nm, but means don't demangle with GNU nm
15014     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15015       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'
15016     else
15017       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'
15018     fi
15019     ;;
15020   pw32*)
15021     export_symbols_cmds_CXX="$ltdll_cmds"
15022   ;;
15023   cygwin* | mingw* | cegcc*)
15024     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'
15025   ;;
15026   *)
15027     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15028   ;;
15029   esac
15030   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15031
15032 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
15033 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
15034 test "$ld_shlibs_CXX" = no && can_build_shared=no
15035
15036 with_gnu_ld_CXX=$with_gnu_ld
15037
15038
15039
15040
15041
15042
15043 #
15044 # Do we need to explicitly link libc?
15045 #
15046 case "x$archive_cmds_need_lc_CXX" in
15047 x|xyes)
15048   # Assume -lc should be added
15049   archive_cmds_need_lc_CXX=yes
15050
15051   if test "$enable_shared" = yes && test "$GCC" = yes; then
15052     case $archive_cmds_CXX in
15053     *'~'*)
15054       # FIXME: we may have to deal with multi-command sequences.
15055       ;;
15056     '$CC '*)
15057       # Test whether the compiler implicitly links with -lc since on some
15058       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15059       # to ld, don't add -lc before -lgcc.
15060       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15061 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15062       $RM conftest*
15063       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15064
15065       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15066   (eval $ac_compile) 2>&5
15067   ac_status=$?
15068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15069   (exit $ac_status); } 2>conftest.err; then
15070         soname=conftest
15071         lib=conftest
15072         libobjs=conftest.$ac_objext
15073         deplibs=
15074         wl=$lt_prog_compiler_wl_CXX
15075         pic_flag=$lt_prog_compiler_pic_CXX
15076         compiler_flags=-v
15077         linker_flags=-v
15078         verstring=
15079         output_objdir=.
15080         libname=conftest
15081         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15082         allow_undefined_flag_CXX=
15083         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
15084   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15085   ac_status=$?
15086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15087   (exit $ac_status); }
15088         then
15089           archive_cmds_need_lc_CXX=no
15090         else
15091           archive_cmds_need_lc_CXX=yes
15092         fi
15093         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15094       else
15095         cat conftest.err 1>&5
15096       fi
15097       $RM conftest*
15098       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
15099 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
15100       ;;
15101     esac
15102   fi
15103   ;;
15104 esac
15105
15106
15107
15108
15109
15110
15111
15112
15113
15114
15115
15116
15117
15118
15119
15120
15121
15122
15123
15124
15125
15126
15127
15128
15129
15130
15131
15132
15133
15134
15135
15136
15137
15138
15139
15140
15141
15142
15143
15144
15145
15146
15147
15148
15149
15150
15151
15152
15153
15154
15155
15156
15157
15158
15159
15160
15161
15162
15163
15164
15165
15166
15167
15168
15169     { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15170 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15171
15172 library_names_spec=
15173 libname_spec='lib$name'
15174 soname_spec=
15175 shrext_cmds=".so"
15176 postinstall_cmds=
15177 postuninstall_cmds=
15178 finish_cmds=
15179 finish_eval=
15180 shlibpath_var=
15181 shlibpath_overrides_runpath=unknown
15182 version_type=none
15183 dynamic_linker="$host_os ld.so"
15184 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15185 need_lib_prefix=unknown
15186 hardcode_into_libs=no
15187
15188 # when you set need_version to no, make sure it does not cause -set_version
15189 # flags to be left without arguments
15190 need_version=unknown
15191
15192 case $host_os in
15193 aix3*)
15194   version_type=linux
15195   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15196   shlibpath_var=LIBPATH
15197
15198   # AIX 3 has no versioning support, so we append a major version to the name.
15199   soname_spec='${libname}${release}${shared_ext}$major'
15200   ;;
15201
15202 aix[4-9]*)
15203   version_type=linux
15204   need_lib_prefix=no
15205   need_version=no
15206   hardcode_into_libs=yes
15207   if test "$host_cpu" = ia64; then
15208     # AIX 5 supports IA64
15209     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15210     shlibpath_var=LD_LIBRARY_PATH
15211   else
15212     # With GCC up to 2.95.x, collect2 would create an import file
15213     # for dependence libraries.  The import file would start with
15214     # the line `#! .'.  This would cause the generated library to
15215     # depend on `.', always an invalid library.  This was fixed in
15216     # development snapshots of GCC prior to 3.0.
15217     case $host_os in
15218       aix4 | aix4.[01] | aix4.[01].*)
15219       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15220            echo ' yes '
15221            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15222         :
15223       else
15224         can_build_shared=no
15225       fi
15226       ;;
15227     esac
15228     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15229     # soname into executable. Probably we can add versioning support to
15230     # collect2, so additional links can be useful in future.
15231     if test "$aix_use_runtimelinking" = yes; then
15232       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15233       # instead of lib<name>.a to let people know that these are not
15234       # typical AIX shared libraries.
15235       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15236     else
15237       # We preserve .a as extension for shared libraries through AIX4.2
15238       # and later when we are not doing run time linking.
15239       library_names_spec='${libname}${release}.a $libname.a'
15240       soname_spec='${libname}${release}${shared_ext}$major'
15241     fi
15242     shlibpath_var=LIBPATH
15243   fi
15244   ;;
15245
15246 amigaos*)
15247   case $host_cpu in
15248   powerpc)
15249     # Since July 2007 AmigaOS4 officially supports .so libraries.
15250     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15251     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15252     ;;
15253   m68k)
15254     library_names_spec='$libname.ixlibrary $libname.a'
15255     # Create ${libname}_ixlibrary.a entries in /sys/libs.
15256     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'
15257     ;;
15258   esac
15259   ;;
15260
15261 beos*)
15262   library_names_spec='${libname}${shared_ext}'
15263   dynamic_linker="$host_os ld.so"
15264   shlibpath_var=LIBRARY_PATH
15265   ;;
15266
15267 bsdi[45]*)
15268   version_type=linux
15269   need_version=no
15270   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15271   soname_spec='${libname}${release}${shared_ext}$major'
15272   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15273   shlibpath_var=LD_LIBRARY_PATH
15274   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15275   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15276   # the default ld.so.conf also contains /usr/contrib/lib and
15277   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15278   # libtool to hard-code these into programs
15279   ;;
15280
15281 cygwin* | mingw* | pw32* | cegcc*)
15282   version_type=windows
15283   shrext_cmds=".dll"
15284   need_version=no
15285   need_lib_prefix=no
15286
15287   case $GCC,$host_os in
15288   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
15289     library_names_spec='$libname.dll.a'
15290     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15291     postinstall_cmds='base_file=`basename \${file}`~
15292       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15293       dldir=$destdir/`dirname \$dlpath`~
15294       test -d \$dldir || mkdir -p \$dldir~
15295       $install_prog $dir/$dlname \$dldir/$dlname~
15296       chmod a+x \$dldir/$dlname~
15297       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15298         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15299       fi'
15300     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15301       dlpath=$dir/\$dldll~
15302        $RM \$dlpath'
15303     shlibpath_overrides_runpath=yes
15304
15305     case $host_os in
15306     cygwin*)
15307       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15308       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15309       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15310       ;;
15311     mingw* | cegcc*)
15312       # MinGW DLLs use traditional 'lib' prefix
15313       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15314       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15315       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15316         # It is most probably a Windows format PATH printed by
15317         # mingw gcc, but we are running on Cygwin. Gcc prints its search
15318         # path with ; separators, and with drive letters. We can handle the
15319         # drive letters (cygwin fileutils understands them), so leave them,
15320         # especially as we might pass files found there to a mingw objdump,
15321         # which wouldn't understand a cygwinified path. Ahh.
15322         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15323       else
15324         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15325       fi
15326       ;;
15327     pw32*)
15328       # pw32 DLLs use 'pw' prefix rather than 'lib'
15329       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15330       ;;
15331     esac
15332     ;;
15333
15334   *)
15335     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15336     ;;
15337   esac
15338   dynamic_linker='Win32 ld.exe'
15339   # FIXME: first we should search . and the directory the executable is in
15340   shlibpath_var=PATH
15341   ;;
15342
15343 darwin* | rhapsody*)
15344   dynamic_linker="$host_os dyld"
15345   version_type=darwin
15346   need_lib_prefix=no
15347   need_version=no
15348   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15349   soname_spec='${libname}${release}${major}$shared_ext'
15350   shlibpath_overrides_runpath=yes
15351   shlibpath_var=DYLD_LIBRARY_PATH
15352   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15353
15354   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15355   ;;
15356
15357 dgux*)
15358   version_type=linux
15359   need_lib_prefix=no
15360   need_version=no
15361   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15362   soname_spec='${libname}${release}${shared_ext}$major'
15363   shlibpath_var=LD_LIBRARY_PATH
15364   ;;
15365
15366 freebsd1*)
15367   dynamic_linker=no
15368   ;;
15369
15370 freebsd* | dragonfly*)
15371   # DragonFly does not have aout.  When/if they implement a new
15372   # versioning mechanism, adjust this.
15373   if test -x /usr/bin/objformat; then
15374     objformat=`/usr/bin/objformat`
15375   else
15376     case $host_os in
15377     freebsd[123]*) objformat=aout ;;
15378     *) objformat=elf ;;
15379     esac
15380   fi
15381   version_type=freebsd-$objformat
15382   case $version_type in
15383     freebsd-elf*)
15384       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15385       need_version=no
15386       need_lib_prefix=no
15387       ;;
15388     freebsd-*)
15389       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15390       need_version=yes
15391       ;;
15392   esac
15393   shlibpath_var=LD_LIBRARY_PATH
15394   case $host_os in
15395   freebsd2*)
15396     shlibpath_overrides_runpath=yes
15397     ;;
15398   freebsd3.[01]* | freebsdelf3.[01]*)
15399     shlibpath_overrides_runpath=yes
15400     hardcode_into_libs=yes
15401     ;;
15402   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15403   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15404     shlibpath_overrides_runpath=no
15405     hardcode_into_libs=yes
15406     ;;
15407   *) # from 4.6 on, and DragonFly
15408     shlibpath_overrides_runpath=yes
15409     hardcode_into_libs=yes
15410     ;;
15411   esac
15412   ;;
15413
15414 gnu*)
15415   version_type=linux
15416   need_lib_prefix=no
15417   need_version=no
15418   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15419   soname_spec='${libname}${release}${shared_ext}$major'
15420   shlibpath_var=LD_LIBRARY_PATH
15421   hardcode_into_libs=yes
15422   ;;
15423
15424 hpux9* | hpux10* | hpux11*)
15425   # Give a soname corresponding to the major version so that dld.sl refuses to
15426   # link against other versions.
15427   version_type=sunos
15428   need_lib_prefix=no
15429   need_version=no
15430   case $host_cpu in
15431   ia64*)
15432     shrext_cmds='.so'
15433     hardcode_into_libs=yes
15434     dynamic_linker="$host_os dld.so"
15435     shlibpath_var=LD_LIBRARY_PATH
15436     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15437     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15438     soname_spec='${libname}${release}${shared_ext}$major'
15439     if test "X$HPUX_IA64_MODE" = X32; then
15440       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15441     else
15442       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15443     fi
15444     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15445     ;;
15446   hppa*64*)
15447     shrext_cmds='.sl'
15448     hardcode_into_libs=yes
15449     dynamic_linker="$host_os dld.sl"
15450     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15451     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15452     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15453     soname_spec='${libname}${release}${shared_ext}$major'
15454     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15455     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15456     ;;
15457   *)
15458     shrext_cmds='.sl'
15459     dynamic_linker="$host_os dld.sl"
15460     shlibpath_var=SHLIB_PATH
15461     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15462     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15463     soname_spec='${libname}${release}${shared_ext}$major'
15464     ;;
15465   esac
15466   # HP-UX runs *really* slowly unless shared libraries are mode 555.
15467   postinstall_cmds='chmod 555 $lib'
15468   ;;
15469
15470 interix[3-9]*)
15471   version_type=linux
15472   need_lib_prefix=no
15473   need_version=no
15474   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15475   soname_spec='${libname}${release}${shared_ext}$major'
15476   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15477   shlibpath_var=LD_LIBRARY_PATH
15478   shlibpath_overrides_runpath=no
15479   hardcode_into_libs=yes
15480   ;;
15481
15482 irix5* | irix6* | nonstopux*)
15483   case $host_os in
15484     nonstopux*) version_type=nonstopux ;;
15485     *)
15486         if test "$lt_cv_prog_gnu_ld" = yes; then
15487                 version_type=linux
15488         else
15489                 version_type=irix
15490         fi ;;
15491   esac
15492   need_lib_prefix=no
15493   need_version=no
15494   soname_spec='${libname}${release}${shared_ext}$major'
15495   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15496   case $host_os in
15497   irix5* | nonstopux*)
15498     libsuff= shlibsuff=
15499     ;;
15500   *)
15501     case $LD in # libtool.m4 will add one of these switches to LD
15502     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15503       libsuff= shlibsuff= libmagic=32-bit;;
15504     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15505       libsuff=32 shlibsuff=N32 libmagic=N32;;
15506     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15507       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15508     *) libsuff= shlibsuff= libmagic=never-match;;
15509     esac
15510     ;;
15511   esac
15512   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15513   shlibpath_overrides_runpath=no
15514   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15515   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15516   hardcode_into_libs=yes
15517   ;;
15518
15519 # No shared lib support for Linux oldld, aout, or coff.
15520 linux*oldld* | linux*aout* | linux*coff*)
15521   dynamic_linker=no
15522   ;;
15523
15524 # This must be Linux ELF.
15525 linux* | k*bsd*-gnu)
15526   version_type=linux
15527   need_lib_prefix=no
15528   need_version=no
15529   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15530   soname_spec='${libname}${release}${shared_ext}$major'
15531   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15532   shlibpath_var=LD_LIBRARY_PATH
15533   shlibpath_overrides_runpath=no
15534   # Some binutils ld are patched to set DT_RUNPATH
15535   save_LDFLAGS=$LDFLAGS
15536   save_libdir=$libdir
15537   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15538        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15539   cat >conftest.$ac_ext <<_ACEOF
15540 /* confdefs.h.  */
15541 _ACEOF
15542 cat confdefs.h >>conftest.$ac_ext
15543 cat >>conftest.$ac_ext <<_ACEOF
15544 /* end confdefs.h.  */
15545
15546 int
15547 main ()
15548 {
15549
15550   ;
15551   return 0;
15552 }
15553 _ACEOF
15554 rm -f conftest.$ac_objext conftest$ac_exeext
15555 if { (ac_try="$ac_link"
15556 case "(($ac_try" in
15557   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15558   *) ac_try_echo=$ac_try;;
15559 esac
15560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15561   (eval "$ac_link") 2>conftest.er1
15562   ac_status=$?
15563   grep -v '^ *+' conftest.er1 >conftest.err
15564   rm -f conftest.er1
15565   cat conftest.err >&5
15566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15567   (exit $ac_status); } && {
15568          test -z "$ac_cxx_werror_flag" ||
15569          test ! -s conftest.err
15570        } && test -s conftest$ac_exeext &&
15571        $as_test_x conftest$ac_exeext; then
15572   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
15573   shlibpath_overrides_runpath=yes
15574 fi
15575
15576 else
15577   echo "$as_me: failed program was:" >&5
15578 sed 's/^/| /' conftest.$ac_ext >&5
15579
15580
15581 fi
15582
15583 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15584       conftest$ac_exeext conftest.$ac_ext
15585   LDFLAGS=$save_LDFLAGS
15586   libdir=$save_libdir
15587
15588   # This implies no fast_install, which is unacceptable.
15589   # Some rework will be needed to allow for fast_install
15590   # before this can be enabled.
15591   hardcode_into_libs=yes
15592
15593   # Append ld.so.conf contents to the search path
15594   if test -f /etc/ld.so.conf; then
15595     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' ' '`
15596     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15597   fi
15598
15599   # We used to test for /lib/ld.so.1 and disable shared libraries on
15600   # powerpc, because MkLinux only supported shared libraries with the
15601   # GNU dynamic linker.  Since this was broken with cross compilers,
15602   # most powerpc-linux boxes support dynamic linking these days and
15603   # people can always --disable-shared, the test was removed, and we
15604   # assume the GNU/Linux dynamic linker is in use.
15605   dynamic_linker='GNU/Linux ld.so'
15606   ;;
15607
15608 netbsd*)
15609   version_type=sunos
15610   need_lib_prefix=no
15611   need_version=no
15612   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15613     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15614     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15615     dynamic_linker='NetBSD (a.out) ld.so'
15616   else
15617     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15618     soname_spec='${libname}${release}${shared_ext}$major'
15619     dynamic_linker='NetBSD ld.elf_so'
15620   fi
15621   shlibpath_var=LD_LIBRARY_PATH
15622   shlibpath_overrides_runpath=yes
15623   hardcode_into_libs=yes
15624   ;;
15625
15626 newsos6)
15627   version_type=linux
15628   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15629   shlibpath_var=LD_LIBRARY_PATH
15630   shlibpath_overrides_runpath=yes
15631   ;;
15632
15633 *nto* | *qnx*)
15634   version_type=qnx
15635   need_lib_prefix=no
15636   need_version=no
15637   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15638   soname_spec='${libname}${release}${shared_ext}$major'
15639   shlibpath_var=LD_LIBRARY_PATH
15640   shlibpath_overrides_runpath=no
15641   hardcode_into_libs=yes
15642   dynamic_linker='ldqnx.so'
15643   ;;
15644
15645 openbsd*)
15646   version_type=sunos
15647   sys_lib_dlsearch_path_spec="/usr/lib"
15648   need_lib_prefix=no
15649   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15650   case $host_os in
15651     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
15652     *)                          need_version=no  ;;
15653   esac
15654   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15655   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15656   shlibpath_var=LD_LIBRARY_PATH
15657   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15658     case $host_os in
15659       openbsd2.[89] | openbsd2.[89].*)
15660         shlibpath_overrides_runpath=no
15661         ;;
15662       *)
15663         shlibpath_overrides_runpath=yes
15664         ;;
15665       esac
15666   else
15667     shlibpath_overrides_runpath=yes
15668   fi
15669   ;;
15670
15671 os2*)
15672   libname_spec='$name'
15673   shrext_cmds=".dll"
15674   need_lib_prefix=no
15675   library_names_spec='$libname${shared_ext} $libname.a'
15676   dynamic_linker='OS/2 ld.exe'
15677   shlibpath_var=LIBPATH
15678   ;;
15679
15680 osf3* | osf4* | osf5*)
15681   version_type=osf
15682   need_lib_prefix=no
15683   need_version=no
15684   soname_spec='${libname}${release}${shared_ext}$major'
15685   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15686   shlibpath_var=LD_LIBRARY_PATH
15687   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15688   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15689   ;;
15690
15691 rdos*)
15692   dynamic_linker=no
15693   ;;
15694
15695 solaris*)
15696   version_type=linux
15697   need_lib_prefix=no
15698   need_version=no
15699   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15700   soname_spec='${libname}${release}${shared_ext}$major'
15701   shlibpath_var=LD_LIBRARY_PATH
15702   shlibpath_overrides_runpath=yes
15703   hardcode_into_libs=yes
15704   # ldd complains unless libraries are executable
15705   postinstall_cmds='chmod +x $lib'
15706   ;;
15707
15708 sunos4*)
15709   version_type=sunos
15710   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15711   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15712   shlibpath_var=LD_LIBRARY_PATH
15713   shlibpath_overrides_runpath=yes
15714   if test "$with_gnu_ld" = yes; then
15715     need_lib_prefix=no
15716   fi
15717   need_version=yes
15718   ;;
15719
15720 sysv4 | sysv4.3*)
15721   version_type=linux
15722   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15723   soname_spec='${libname}${release}${shared_ext}$major'
15724   shlibpath_var=LD_LIBRARY_PATH
15725   case $host_vendor in
15726     sni)
15727       shlibpath_overrides_runpath=no
15728       need_lib_prefix=no
15729       runpath_var=LD_RUN_PATH
15730       ;;
15731     siemens)
15732       need_lib_prefix=no
15733       ;;
15734     motorola)
15735       need_lib_prefix=no
15736       need_version=no
15737       shlibpath_overrides_runpath=no
15738       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15739       ;;
15740   esac
15741   ;;
15742
15743 sysv4*MP*)
15744   if test -d /usr/nec ;then
15745     version_type=linux
15746     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15747     soname_spec='$libname${shared_ext}.$major'
15748     shlibpath_var=LD_LIBRARY_PATH
15749   fi
15750   ;;
15751
15752 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15753   version_type=freebsd-elf
15754   need_lib_prefix=no
15755   need_version=no
15756   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15757   soname_spec='${libname}${release}${shared_ext}$major'
15758   shlibpath_var=LD_LIBRARY_PATH
15759   shlibpath_overrides_runpath=yes
15760   hardcode_into_libs=yes
15761   if test "$with_gnu_ld" = yes; then
15762     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15763   else
15764     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15765     case $host_os in
15766       sco3.2v5*)
15767         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15768         ;;
15769     esac
15770   fi
15771   sys_lib_dlsearch_path_spec='/usr/lib'
15772   ;;
15773
15774 tpf*)
15775   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
15776   version_type=linux
15777   need_lib_prefix=no
15778   need_version=no
15779   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15780   shlibpath_var=LD_LIBRARY_PATH
15781   shlibpath_overrides_runpath=no
15782   hardcode_into_libs=yes
15783   ;;
15784
15785 uts4*)
15786   version_type=linux
15787   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15788   soname_spec='${libname}${release}${shared_ext}$major'
15789   shlibpath_var=LD_LIBRARY_PATH
15790   ;;
15791
15792 *)
15793   dynamic_linker=no
15794   ;;
15795 esac
15796 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15797 echo "${ECHO_T}$dynamic_linker" >&6; }
15798 test "$dynamic_linker" = no && can_build_shared=no
15799
15800 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15801 if test "$GCC" = yes; then
15802   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15803 fi
15804
15805 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15806   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15807 fi
15808 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15809   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15810 fi
15811
15812
15813
15814
15815
15816
15817
15818
15819
15820
15821
15822
15823
15824
15825
15826
15827
15828
15829
15830
15831
15832
15833
15834
15835
15836
15837
15838
15839
15840
15841
15842
15843
15844
15845
15846
15847     { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15848 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15849 hardcode_action_CXX=
15850 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15851    test -n "$runpath_var_CXX" ||
15852    test "X$hardcode_automatic_CXX" = "Xyes" ; then
15853
15854   # We can hardcode non-existent directories.
15855   if test "$hardcode_direct_CXX" != no &&
15856      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15857      # have to relink, otherwise we might link with an installed library
15858      # when we should be linking with a yet-to-be-installed one
15859      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15860      test "$hardcode_minus_L_CXX" != no; then
15861     # Linking always hardcodes the temporary library directory.
15862     hardcode_action_CXX=relink
15863   else
15864     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15865     hardcode_action_CXX=immediate
15866   fi
15867 else
15868   # We cannot hardcode anything, or else we can only hardcode existing
15869   # directories.
15870   hardcode_action_CXX=unsupported
15871 fi
15872 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
15873 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
15874
15875 if test "$hardcode_action_CXX" = relink ||
15876    test "$inherit_rpath_CXX" = yes; then
15877   # Fast installation is not supported
15878   enable_fast_install=no
15879 elif test "$shlibpath_overrides_runpath" = yes ||
15880      test "$enable_shared" = no; then
15881   # Fast installation is not necessary
15882   enable_fast_install=needless
15883 fi
15884
15885
15886
15887
15888
15889
15890
15891   fi # test -n "$compiler"
15892
15893   CC=$lt_save_CC
15894   LDCXX=$LD
15895   LD=$lt_save_LD
15896   GCC=$lt_save_GCC
15897   with_gnu_ld=$lt_save_with_gnu_ld
15898   lt_cv_path_LDCXX=$lt_cv_path_LD
15899   lt_cv_path_LD=$lt_save_path_LD
15900   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15901   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15902 fi # test "$_lt_caught_CXX_error" != yes
15903
15904 ac_ext=c
15905 ac_cpp='$CPP $CPPFLAGS'
15906 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15907 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15908 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15909
15910
15911
15912
15913
15914
15915
15916
15917
15918
15919
15920
15921
15922         ac_config_commands="$ac_config_commands libtool"
15923
15924
15925
15926
15927 # Only expand once:
15928
15929
15930
15931
15932 if test x$use_libtool != xno; then
15933    DEFAULT_OBJECT_TYPE=".lo"
15934    DEFAULT_ARCHIVE_TYPE=".la"
15935    DEFAULT_SHARED_OBJECT_TYPE=".la"
15936    LIBTOOL="\$(LIBTOOL)"
15937    LIBTOOL_INSTALL_TARGET="libtool-install"
15938    LIBTOOL_UNINSTALL_TARGET="libtool-uninstall"
15939    LIBTOOL_CLEAN_TARGET="libtool-clean"
15940    QMAKE_LIBTOOL="${BUILD_DIR}/libtool"
15941 else
15942    DEFAULT_OBJECT_TYPE=".o"
15943    DEFAULT_ARCHIVE_TYPE=".a"
15944    DEFAULT_SHARED_OBJECT_TYPE=".so"
15945    LIBTOOL="# \$(LIBTOOL)"
15946    LIBTOOL_INSTALL_TARGET=""
15947    LIBTOOL_UNINSTALL_TARGET=""
15948    LIBTOOL_CLEAN_TARGET=""
15949    QMAKE_LIBTOOL="# ${BUILD_DIR}/libtool"
15950 fi
15951
15952
15953
15954
15955
15956
15957
15958
15959
15960
15961 # Check whether --enable-includes was given.
15962 if test "${enable_includes+set}" = set; then
15963   enableval=$enable_includes;
15964        if test x$enableval = xyes; then
15965           install_includes=yes
15966        fi
15967
15968
15969 fi
15970
15971
15972
15973 if test x$use_libtool != xno -a x$install_includes = xyes; then
15974    INCLUDE_INSTALL_TARGET="install-includes"
15975    INCLUDE_UNINSTALL_TARGET="uninstall-includes"
15976 else
15977    INCLUDE_INSTALL_TARGET=""
15978    INCLUDE_UNINSTALL_TARGET=""
15979 fi
15980
15981
15982
15983
15984 { echo "$as_me:$LINENO: checking host system type" >&5
15985 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
15986 if test "${ac_cv_host+set}" = set; then
15987   echo $ECHO_N "(cached) $ECHO_C" >&6
15988 else
15989   if test "x$host_alias" = x; then
15990   ac_cv_host=$ac_cv_build
15991 else
15992   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
15993     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
15994 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
15995    { (exit 1); exit 1; }; }
15996 fi
15997
15998 fi
15999 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
16000 echo "${ECHO_T}$ac_cv_host" >&6; }
16001 case $ac_cv_host in
16002 *-*-*) ;;
16003 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
16004 echo "$as_me: error: invalid value of canonical host" >&2;}
16005    { (exit 1); exit 1; }; };;
16006 esac
16007 host=$ac_cv_host
16008 ac_save_IFS=$IFS; IFS='-'
16009 set x $ac_cv_host
16010 shift
16011 host_cpu=$1
16012 host_vendor=$2
16013 shift; shift
16014 # Remember, the first character of IFS is used to create $*,
16015 # except with old shells:
16016 host_os=$*
16017 IFS=$ac_save_IFS
16018 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
16019
16020
16021 case $host_os in
16022   *cygwin* ) CYGWIN=yes;;
16023          * ) CYGWIN=no;;
16024 esac
16025
16026 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
16027 then
16028
16029
16030 if $TRUEPRG; then
16031   HAVE_SUN_OS_TRUE=
16032   HAVE_SUN_OS_FALSE='#'
16033 else
16034   HAVE_SUN_OS_TRUE='#'
16035   HAVE_SUN_OS_FALSE=
16036 fi
16037         cat >>confdefs.h <<\_ACEOF
16038 #define HAVE_SUN_OS 1
16039 _ACEOF
16040
16041 else
16042
16043
16044 if $FALSEPRG; then
16045   HAVE_SUN_OS_TRUE=
16046   HAVE_SUN_OS_FALSE='#'
16047 else
16048   HAVE_SUN_OS_TRUE='#'
16049   HAVE_SUN_OS_FALSE=
16050 fi
16051 fi
16052
16053 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
16054 then
16055
16056
16057 if $TRUEPRG; then
16058   HAVE_OSF1_OS_TRUE=
16059   HAVE_OSF1_OS_FALSE='#'
16060 else
16061   HAVE_OSF1_OS_TRUE='#'
16062   HAVE_OSF1_OS_FALSE=
16063 fi
16064         cat >>confdefs.h <<\_ACEOF
16065 #define HAVE_OSF1_OS 1
16066 _ACEOF
16067
16068 else
16069
16070
16071 if $FALSEPRG; then
16072   HAVE_OSF1_OS_TRUE=
16073   HAVE_OSF1_OS_FALSE='#'
16074 else
16075   HAVE_OSF1_OS_TRUE='#'
16076   HAVE_OSF1_OS_FALSE=
16077 fi
16078 fi
16079
16080 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
16081 then
16082
16083
16084 if $TRUEPRG; then
16085   HAVE_AIX_OS_TRUE=
16086   HAVE_AIX_OS_FALSE='#'
16087 else
16088   HAVE_AIX_OS_TRUE='#'
16089   HAVE_AIX_OS_FALSE=
16090 fi
16091         cat >>confdefs.h <<\_ACEOF
16092 #define HAVE_AIX_OS 1
16093 _ACEOF
16094
16095 else
16096
16097
16098 if $FALSEPRG; then
16099   HAVE_AIX_OS_TRUE=
16100   HAVE_AIX_OS_FALSE='#'
16101 else
16102   HAVE_AIX_OS_TRUE='#'
16103   HAVE_AIX_OS_FALSE=
16104 fi
16105 fi
16106
16107 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
16108 then
16109
16110
16111 if $TRUEPRG; then
16112   HAVE_HPUX_OS_TRUE=
16113   HAVE_HPUX_OS_FALSE='#'
16114 else
16115   HAVE_HPUX_OS_TRUE='#'
16116   HAVE_HPUX_OS_FALSE=
16117 fi
16118         cat >>confdefs.h <<\_ACEOF
16119 #define HAVE_HPUX_OS 1
16120 _ACEOF
16121
16122 else
16123
16124
16125 if $FALSEPRG; then
16126   HAVE_HPUX_OS_TRUE=
16127   HAVE_HPUX_OS_FALSE='#'
16128 else
16129   HAVE_HPUX_OS_TRUE='#'
16130   HAVE_HPUX_OS_FALSE=
16131 fi
16132 fi
16133
16134 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
16135 then
16136
16137
16138 if $TRUEPRG; then
16139   HAVE_LINUX_OS_TRUE=
16140   HAVE_LINUX_OS_FALSE='#'
16141 else
16142   HAVE_LINUX_OS_TRUE='#'
16143   HAVE_LINUX_OS_FALSE=
16144 fi
16145         cat >>confdefs.h <<\_ACEOF
16146 #define HAVE_LINUX_OS 1
16147 _ACEOF
16148
16149 else
16150
16151
16152 if $FALSEPRG; then
16153   HAVE_LINUX_OS_TRUE=
16154   HAVE_LINUX_OS_FALSE='#'
16155 else
16156   HAVE_LINUX_OS_TRUE='#'
16157   HAVE_LINUX_OS_FALSE=
16158 fi
16159 fi
16160
16161 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
16162 then
16163
16164
16165 if $TRUEPRG; then
16166   HAVE_FREEBSD_OS_TRUE=
16167   HAVE_FREEBSD_OS_FALSE='#'
16168 else
16169   HAVE_FREEBSD_OS_TRUE='#'
16170   HAVE_FREEBSD_OS_FALSE=
16171 fi
16172         cat >>confdefs.h <<\_ACEOF
16173 #define HAVE_FREEBSD_OS 1
16174 _ACEOF
16175
16176 else
16177
16178
16179 if $FALSEPRG; then
16180   HAVE_FREEBSD_OS_TRUE=
16181   HAVE_FREEBSD_OS_FALSE='#'
16182 else
16183   HAVE_FREEBSD_OS_TRUE='#'
16184   HAVE_FREEBSD_OS_FALSE=
16185 fi
16186 fi
16187
16188 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
16189 then
16190
16191
16192 if $TRUEPRG; then
16193   HAVE_NETBSD_OS_TRUE=
16194   HAVE_NETBSD_OS_FALSE='#'
16195 else
16196   HAVE_NETBSD_OS_TRUE='#'
16197   HAVE_NETBSD_OS_FALSE=
16198 fi
16199         cat >>confdefs.h <<\_ACEOF
16200 #define HAVE_NETBSD_OS 1
16201 _ACEOF
16202
16203 else
16204
16205
16206 if $FALSEPRG; then
16207   HAVE_NETBSD_OS_TRUE=
16208   HAVE_NETBSD_OS_FALSE='#'
16209 else
16210   HAVE_NETBSD_OS_TRUE='#'
16211   HAVE_NETBSD_OS_FALSE=
16212 fi
16213 fi
16214
16215 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
16216 then
16217
16218
16219 if $TRUEPRG; then
16220   HAVE_OPENBSD_OS_TRUE=
16221   HAVE_OPENBSD_OS_FALSE='#'
16222 else
16223   HAVE_OPENBSD_OS_TRUE='#'
16224   HAVE_OPENBSD_OS_FALSE=
16225 fi
16226         cat >>confdefs.h <<\_ACEOF
16227 #define HAVE_OPENBSD_OS 1
16228 _ACEOF
16229
16230 else
16231
16232
16233 if $FALSEPRG; then
16234   HAVE_OPENBSD_OS_TRUE=
16235   HAVE_OPENBSD_OS_FALSE='#'
16236 else
16237   HAVE_OPENBSD_OS_TRUE='#'
16238   HAVE_OPENBSD_OS_FALSE=
16239 fi
16240 fi
16241
16242 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
16243 then
16244
16245
16246 if $TRUEPRG; then
16247   HAVE_BSDI_OS_TRUE=
16248   HAVE_BSDI_OS_FALSE='#'
16249 else
16250   HAVE_BSDI_OS_TRUE='#'
16251   HAVE_BSDI_OS_FALSE=
16252 fi
16253         cat >>confdefs.h <<\_ACEOF
16254 #define HAVE_BSDI_OS 1
16255 _ACEOF
16256
16257 else
16258
16259
16260 if $FALSEPRG; then
16261   HAVE_BSDI_OS_TRUE=
16262   HAVE_BSDI_OS_FALSE='#'
16263 else
16264   HAVE_BSDI_OS_TRUE='#'
16265   HAVE_BSDI_OS_FALSE=
16266 fi
16267 fi
16268
16269 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
16270 then
16271
16272
16273 if $TRUEPRG; then
16274   HAVE_SGI_OS_TRUE=
16275   HAVE_SGI_OS_FALSE='#'
16276 else
16277   HAVE_SGI_OS_TRUE='#'
16278   HAVE_SGI_OS_FALSE=
16279 fi
16280         cat >>confdefs.h <<\_ACEOF
16281 #define HAVE_SGI_OS 1
16282 _ACEOF
16283
16284 else
16285
16286
16287 if $FALSEPRG; then
16288   HAVE_SGI_OS_TRUE=
16289   HAVE_SGI_OS_FALSE='#'
16290 else
16291   HAVE_SGI_OS_TRUE='#'
16292   HAVE_SGI_OS_FALSE=
16293 fi
16294 fi
16295
16296 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX -o x`uname -s` = xIRIX64
16297 then
16298
16299
16300 if $TRUEPRG; then
16301   HAVE_IRIX_OS_TRUE=
16302   HAVE_IRIX_OS_FALSE='#'
16303 else
16304   HAVE_IRIX_OS_TRUE='#'
16305   HAVE_IRIX_OS_FALSE=
16306 fi
16307         cat >>confdefs.h <<\_ACEOF
16308 #define HAVE_IRIX_OS 1
16309 _ACEOF
16310
16311 else
16312
16313
16314 if $FALSEPRG; then
16315   HAVE_IRIX_OS_TRUE=
16316   HAVE_IRIX_OS_FALSE='#'
16317 else
16318   HAVE_IRIX_OS_TRUE='#'
16319   HAVE_IRIX_OS_FALSE=
16320 fi
16321 fi
16322
16323 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
16324 then
16325
16326
16327 if $TRUEPRG; then
16328   HAVE_DARWIN_OS_TRUE=
16329   HAVE_DARWIN_OS_FALSE='#'
16330 else
16331   HAVE_DARWIN_OS_TRUE='#'
16332   HAVE_DARWIN_OS_FALSE=
16333 fi
16334     cat >>confdefs.h <<\_ACEOF
16335 #define HAVE_DARWIN_OS 1
16336 _ACEOF
16337
16338 else
16339
16340
16341 if $FALSEPRG; then
16342   HAVE_DARWIN_OS_TRUE=
16343   HAVE_DARWIN_OS_FALSE='#'
16344 else
16345   HAVE_DARWIN_OS_TRUE='#'
16346   HAVE_DARWIN_OS_FALSE=
16347 fi
16348 fi
16349
16350
16351 { echo "$as_me:$LINENO: checking for Operating System Distribution" >&5
16352 echo $ECHO_N "checking for Operating System Distribution... $ECHO_C" >&6; }
16353 if test "x$DISTNAME" != "x"
16354 then
16355         echo "distname set to $DISTNAME"
16356 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
16357 then
16358         DISTNAME=alpha
16359 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
16360 then
16361         DISTNAME=aix
16362 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
16363 then
16364         DISTNAME=hpux
16365 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
16366 then
16367         DISTNAME=solaris
16368 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
16369 then
16370         DISTNAME=freebsd
16371 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
16372 then
16373         DISTNAME=netbsd
16374 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
16375 then
16376         DISTNAME=openbsd
16377 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
16378 then
16379         DISTNAME=irix
16380 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
16381 then
16382         DISTNAME=bsdi
16383 elif test -f /etc/SuSE-release
16384 then
16385         DISTNAME=suse
16386 elif test -d /etc/SuSEconfig
16387 then
16388         DISTNAME=suse5
16389 elif test -f /etc/mandrake-release
16390 then
16391         DISTNAME=mandrake
16392 elif test -f /etc/whitebox-release
16393 then
16394        DISTNAME=redhat
16395 elif test -f /etc/redhat-release
16396 then
16397         DISTNAME=redhat
16398 elif test -f /etc/gentoo-release
16399 then
16400         DISTNAME=gentoo
16401 elif test -f /etc/debian_version
16402 then
16403         DISTNAME=debian
16404 elif test -f /etc/slackware-version
16405 then
16406         DISTNAME=slackware
16407 elif test x$host_vendor = xapple
16408 then
16409     DISTNAME=osx
16410 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
16411 then
16412     DISTNAME=darwin
16413 elif test -f /etc/engarde-version
16414 then
16415         DISTNAME=engarde
16416 elif test "$CYGWIN" = yes
16417 then
16418         DISTNAME=cygwin
16419         cat >>confdefs.h <<\_ACEOF
16420 #define HAVE_CYGWIN 1
16421 _ACEOF
16422
16423 else
16424         DISTNAME=unknown
16425 fi
16426 { echo "$as_me:$LINENO: result: done" >&5
16427 echo "${ECHO_T}done" >&6; }
16428
16429
16430 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
16431 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
16432 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
16433 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
16434   echo $ECHO_N "(cached) $ECHO_C" >&6
16435 else
16436   cat >conftest.make <<\_ACEOF
16437 SHELL = /bin/sh
16438 all:
16439         @echo '@@@%%%=$(MAKE)=@@@%%%'
16440 _ACEOF
16441 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
16442 case `${MAKE-make} -f conftest.make 2>/dev/null` in
16443   *@@@%%%=?*=@@@%%%*)
16444     eval ac_cv_prog_make_${ac_make}_set=yes;;
16445   *)
16446     eval ac_cv_prog_make_${ac_make}_set=no;;
16447 esac
16448 rm -f conftest.make
16449 fi
16450 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
16451   { echo "$as_me:$LINENO: result: yes" >&5
16452 echo "${ECHO_T}yes" >&6; }
16453   SET_MAKE=
16454 else
16455   { echo "$as_me:$LINENO: result: no" >&5
16456 echo "${ECHO_T}no" >&6; }
16457   SET_MAKE="MAKE=${MAKE-make}"
16458 fi
16459
16460
16461
16462         MKINSTALLDIRS=
16463   if test -n "$ac_aux_dir"; then
16464     case "$ac_aux_dir" in
16465       /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
16466       *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
16467     esac
16468   fi
16469   if test -z "$MKINSTALLDIRS"; then
16470     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
16471   fi
16472
16473
16474
16475   { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
16476 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
16477     # Check whether --enable-nls was given.
16478 if test "${enable_nls+set}" = set; then
16479   enableval=$enable_nls; USE_NLS=$enableval
16480 else
16481   USE_NLS=yes
16482 fi
16483
16484   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
16485 echo "${ECHO_T}$USE_NLS" >&6; }
16486
16487
16488
16489
16490
16491
16492 # Prepare PATH_SEPARATOR.
16493 # The user is always right.
16494 if test "${PATH_SEPARATOR+set}" != set; then
16495   echo "#! /bin/sh" >conf$$.sh
16496   echo  "exit 0"   >>conf$$.sh
16497   chmod +x conf$$.sh
16498   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16499     PATH_SEPARATOR=';'
16500   else
16501     PATH_SEPARATOR=:
16502   fi
16503   rm -f conf$$.sh
16504 fi
16505
16506 # Find out how to test for executable files. Don't use a zero-byte file,
16507 # as systems may use methods other than mode bits to determine executability.
16508 cat >conf$$.file <<_ASEOF
16509 #! /bin/sh
16510 exit 0
16511 _ASEOF
16512 chmod +x conf$$.file
16513 if test -x conf$$.file >/dev/null 2>&1; then
16514   ac_executable_p="test -x"
16515 else
16516   ac_executable_p="test -f"
16517 fi
16518 rm -f conf$$.file
16519
16520 # Extract the first word of "msgfmt", so it can be a program name with args.
16521 set dummy msgfmt; ac_word=$2
16522 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16523 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16524 if test "${ac_cv_path_MSGFMT+set}" = set; then
16525   echo $ECHO_N "(cached) $ECHO_C" >&6
16526 else
16527   case "$MSGFMT" in
16528   [\\/]* | ?:[\\/]*)
16529     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
16530     ;;
16531   *)
16532     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16533     for ac_dir in $PATH; do
16534       IFS="$ac_save_IFS"
16535       test -z "$ac_dir" && ac_dir=.
16536       for ac_exec_ext in '' $ac_executable_extensions; do
16537         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16538           echo "$as_me: trying $ac_dir/$ac_word..." >&5
16539           if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
16540      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16541             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
16542             break 2
16543           fi
16544         fi
16545       done
16546     done
16547     IFS="$ac_save_IFS"
16548   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
16549     ;;
16550 esac
16551 fi
16552 MSGFMT="$ac_cv_path_MSGFMT"
16553 if test "$MSGFMT" != ":"; then
16554   { echo "$as_me:$LINENO: result: $MSGFMT" >&5
16555 echo "${ECHO_T}$MSGFMT" >&6; }
16556 else
16557   { echo "$as_me:$LINENO: result: no" >&5
16558 echo "${ECHO_T}no" >&6; }
16559 fi
16560
16561   # Extract the first word of "gmsgfmt", so it can be a program name with args.
16562 set dummy gmsgfmt; ac_word=$2
16563 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16564 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16565 if test "${ac_cv_path_GMSGFMT+set}" = set; then
16566   echo $ECHO_N "(cached) $ECHO_C" >&6
16567 else
16568   case $GMSGFMT in
16569   [\\/]* | ?:[\\/]*)
16570   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
16571   ;;
16572   *)
16573   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16574 for as_dir in $PATH
16575 do
16576   IFS=$as_save_IFS
16577   test -z "$as_dir" && as_dir=.
16578   for ac_exec_ext in '' $ac_executable_extensions; do
16579   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16580     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
16581     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16582     break 2
16583   fi
16584 done
16585 done
16586 IFS=$as_save_IFS
16587
16588   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
16589   ;;
16590 esac
16591 fi
16592 GMSGFMT=$ac_cv_path_GMSGFMT
16593 if test -n "$GMSGFMT"; then
16594   { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
16595 echo "${ECHO_T}$GMSGFMT" >&6; }
16596 else
16597   { echo "$as_me:$LINENO: result: no" >&5
16598 echo "${ECHO_T}no" >&6; }
16599 fi
16600
16601
16602
16603
16604 # Prepare PATH_SEPARATOR.
16605 # The user is always right.
16606 if test "${PATH_SEPARATOR+set}" != set; then
16607   echo "#! /bin/sh" >conf$$.sh
16608   echo  "exit 0"   >>conf$$.sh
16609   chmod +x conf$$.sh
16610   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16611     PATH_SEPARATOR=';'
16612   else
16613     PATH_SEPARATOR=:
16614   fi
16615   rm -f conf$$.sh
16616 fi
16617
16618 # Find out how to test for executable files. Don't use a zero-byte file,
16619 # as systems may use methods other than mode bits to determine executability.
16620 cat >conf$$.file <<_ASEOF
16621 #! /bin/sh
16622 exit 0
16623 _ASEOF
16624 chmod +x conf$$.file
16625 if test -x conf$$.file >/dev/null 2>&1; then
16626   ac_executable_p="test -x"
16627 else
16628   ac_executable_p="test -f"
16629 fi
16630 rm -f conf$$.file
16631
16632 # Extract the first word of "xgettext", so it can be a program name with args.
16633 set dummy xgettext; ac_word=$2
16634 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16635 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16636 if test "${ac_cv_path_XGETTEXT+set}" = set; then
16637   echo $ECHO_N "(cached) $ECHO_C" >&6
16638 else
16639   case "$XGETTEXT" in
16640   [\\/]* | ?:[\\/]*)
16641     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
16642     ;;
16643   *)
16644     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16645     for ac_dir in $PATH; do
16646       IFS="$ac_save_IFS"
16647       test -z "$ac_dir" && ac_dir=.
16648       for ac_exec_ext in '' $ac_executable_extensions; do
16649         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16650           echo "$as_me: trying $ac_dir/$ac_word..." >&5
16651           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
16652      (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
16653             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
16654             break 2
16655           fi
16656         fi
16657       done
16658     done
16659     IFS="$ac_save_IFS"
16660   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
16661     ;;
16662 esac
16663 fi
16664 XGETTEXT="$ac_cv_path_XGETTEXT"
16665 if test "$XGETTEXT" != ":"; then
16666   { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
16667 echo "${ECHO_T}$XGETTEXT" >&6; }
16668 else
16669   { echo "$as_me:$LINENO: result: no" >&5
16670 echo "${ECHO_T}no" >&6; }
16671 fi
16672
16673     rm -f messages.po
16674
16675
16676 # Prepare PATH_SEPARATOR.
16677 # The user is always right.
16678 if test "${PATH_SEPARATOR+set}" != set; then
16679   echo "#! /bin/sh" >conf$$.sh
16680   echo  "exit 0"   >>conf$$.sh
16681   chmod +x conf$$.sh
16682   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16683     PATH_SEPARATOR=';'
16684   else
16685     PATH_SEPARATOR=:
16686   fi
16687   rm -f conf$$.sh
16688 fi
16689
16690 # Find out how to test for executable files. Don't use a zero-byte file,
16691 # as systems may use methods other than mode bits to determine executability.
16692 cat >conf$$.file <<_ASEOF
16693 #! /bin/sh
16694 exit 0
16695 _ASEOF
16696 chmod +x conf$$.file
16697 if test -x conf$$.file >/dev/null 2>&1; then
16698   ac_executable_p="test -x"
16699 else
16700   ac_executable_p="test -f"
16701 fi
16702 rm -f conf$$.file
16703
16704 # Extract the first word of "msgmerge", so it can be a program name with args.
16705 set dummy msgmerge; ac_word=$2
16706 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16707 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16708 if test "${ac_cv_path_MSGMERGE+set}" = set; then
16709   echo $ECHO_N "(cached) $ECHO_C" >&6
16710 else
16711   case "$MSGMERGE" in
16712   [\\/]* | ?:[\\/]*)
16713     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
16714     ;;
16715   *)
16716     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16717     for ac_dir in $PATH; do
16718       IFS="$ac_save_IFS"
16719       test -z "$ac_dir" && ac_dir=.
16720       for ac_exec_ext in '' $ac_executable_extensions; do
16721         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16722           echo "$as_me: trying $ac_dir/$ac_word..." >&5
16723           if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
16724             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
16725             break 2
16726           fi
16727         fi
16728       done
16729     done
16730     IFS="$ac_save_IFS"
16731   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
16732     ;;
16733 esac
16734 fi
16735 MSGMERGE="$ac_cv_path_MSGMERGE"
16736 if test "$MSGMERGE" != ":"; then
16737   { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
16738 echo "${ECHO_T}$MSGMERGE" >&6; }
16739 else
16740   { echo "$as_me:$LINENO: result: no" >&5
16741 echo "${ECHO_T}no" >&6; }
16742 fi
16743
16744
16745       if test "$GMSGFMT" != ":"; then
16746             if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
16747        (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16748       : ;
16749     else
16750       GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
16751       { echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
16752 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
16753       GMSGFMT=":"
16754     fi
16755   fi
16756
16757       if test "$XGETTEXT" != ":"; then
16758             if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
16759        (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
16760       : ;
16761     else
16762       { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
16763 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; }
16764       XGETTEXT=":"
16765     fi
16766         rm -f messages.po
16767   fi
16768
16769   ac_config_commands="$ac_config_commands default-1"
16770
16771
16772
16773       if test "X$prefix" = "XNONE"; then
16774     acl_final_prefix="$ac_default_prefix"
16775   else
16776     acl_final_prefix="$prefix"
16777   fi
16778   if test "X$exec_prefix" = "XNONE"; then
16779     acl_final_exec_prefix='${prefix}'
16780   else
16781     acl_final_exec_prefix="$exec_prefix"
16782   fi
16783   acl_save_prefix="$prefix"
16784   prefix="$acl_final_prefix"
16785   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
16786   prefix="$acl_save_prefix"
16787
16788
16789 # Check whether --with-gnu-ld was given.
16790 if test "${with_gnu_ld+set}" = set; then
16791   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
16792 else
16793   with_gnu_ld=no
16794 fi
16795
16796 # Prepare PATH_SEPARATOR.
16797 # The user is always right.
16798 if test "${PATH_SEPARATOR+set}" != set; then
16799   echo "#! /bin/sh" >conf$$.sh
16800   echo  "exit 0"   >>conf$$.sh
16801   chmod +x conf$$.sh
16802   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16803     PATH_SEPARATOR=';'
16804   else
16805     PATH_SEPARATOR=:
16806   fi
16807   rm -f conf$$.sh
16808 fi
16809 ac_prog=ld
16810 if test "$GCC" = yes; then
16811   # Check if gcc -print-prog-name=ld gives a path.
16812   { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
16813 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
16814   case $host in
16815   *-*-mingw*)
16816     # gcc leaves a trailing carriage return which upsets mingw
16817     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16818   *)
16819     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16820   esac
16821   case $ac_prog in
16822     # Accept absolute paths.
16823     [\\/]* | [A-Za-z]:[\\/]*)
16824       re_direlt='/[^/][^/]*/\.\./'
16825       # Canonicalize the path of ld
16826       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
16827       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
16828         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
16829       done
16830       test -z "$LD" && LD="$ac_prog"
16831       ;;
16832   "")
16833     # If it fails, then pretend we aren't using GCC.
16834     ac_prog=ld
16835     ;;
16836   *)
16837     # If it is relative, then search for the first ld in PATH.
16838     with_gnu_ld=unknown
16839     ;;
16840   esac
16841 elif test "$with_gnu_ld" = yes; then
16842   { echo "$as_me:$LINENO: checking for GNU ld" >&5
16843 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
16844 else
16845   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
16846 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
16847 fi
16848 if test "${acl_cv_path_LD+set}" = set; then
16849   echo $ECHO_N "(cached) $ECHO_C" >&6
16850 else
16851   if test -z "$LD"; then
16852   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
16853   for ac_dir in $PATH; do
16854     test -z "$ac_dir" && ac_dir=.
16855     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16856       acl_cv_path_LD="$ac_dir/$ac_prog"
16857       # Check to see if the program is GNU ld.  I'd rather use --version,
16858       # but apparently some GNU ld's only accept -v.
16859       # Break only if it was the GNU/non-GNU ld that we prefer.
16860       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
16861       *GNU* | *'with BFD'*)
16862         test "$with_gnu_ld" != no && break ;;
16863       *)
16864         test "$with_gnu_ld" != yes && break ;;
16865       esac
16866     fi
16867   done
16868   IFS="$ac_save_ifs"
16869 else
16870   acl_cv_path_LD="$LD" # Let the user override the test with a path.
16871 fi
16872 fi
16873
16874 LD="$acl_cv_path_LD"
16875 if test -n "$LD"; then
16876   { echo "$as_me:$LINENO: result: $LD" >&5
16877 echo "${ECHO_T}$LD" >&6; }
16878 else
16879   { echo "$as_me:$LINENO: result: no" >&5
16880 echo "${ECHO_T}no" >&6; }
16881 fi
16882 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
16883 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
16884    { (exit 1); exit 1; }; }
16885 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
16886 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
16887 if test "${acl_cv_prog_gnu_ld+set}" = set; then
16888   echo $ECHO_N "(cached) $ECHO_C" >&6
16889 else
16890   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
16891 case `$LD -v 2>&1 </dev/null` in
16892 *GNU* | *'with BFD'*)
16893   acl_cv_prog_gnu_ld=yes ;;
16894 *)
16895   acl_cv_prog_gnu_ld=no ;;
16896 esac
16897 fi
16898 { echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
16899 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
16900 with_gnu_ld=$acl_cv_prog_gnu_ld
16901
16902
16903
16904
16905                                                 { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
16906 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
16907 if test "${acl_cv_rpath+set}" = set; then
16908   echo $ECHO_N "(cached) $ECHO_C" >&6
16909 else
16910
16911     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
16912     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
16913     . ./conftest.sh
16914     rm -f ./conftest.sh
16915     acl_cv_rpath=done
16916
16917 fi
16918 { echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
16919 echo "${ECHO_T}$acl_cv_rpath" >&6; }
16920   wl="$acl_cv_wl"
16921   libext="$acl_cv_libext"
16922   shlibext="$acl_cv_shlibext"
16923   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
16924   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
16925   hardcode_direct="$acl_cv_hardcode_direct"
16926   hardcode_minus_L="$acl_cv_hardcode_minus_L"
16927     # Check whether --enable-rpath was given.
16928 if test "${enable_rpath+set}" = set; then
16929   enableval=$enable_rpath; :
16930 else
16931   enable_rpath=yes
16932 fi
16933
16934
16935
16936
16937
16938
16939
16940
16941     use_additional=yes
16942
16943   acl_save_prefix="$prefix"
16944   prefix="$acl_final_prefix"
16945   acl_save_exec_prefix="$exec_prefix"
16946   exec_prefix="$acl_final_exec_prefix"
16947
16948     eval additional_includedir=\"$includedir\"
16949     eval additional_libdir=\"$libdir\"
16950
16951   exec_prefix="$acl_save_exec_prefix"
16952   prefix="$acl_save_prefix"
16953
16954
16955 # Check whether --with-libiconv-prefix was given.
16956 if test "${with_libiconv_prefix+set}" = set; then
16957   withval=$with_libiconv_prefix;
16958     if test "X$withval" = "Xno"; then
16959       use_additional=no
16960     else
16961       if test "X$withval" = "X"; then
16962
16963   acl_save_prefix="$prefix"
16964   prefix="$acl_final_prefix"
16965   acl_save_exec_prefix="$exec_prefix"
16966   exec_prefix="$acl_final_exec_prefix"
16967
16968           eval additional_includedir=\"$includedir\"
16969           eval additional_libdir=\"$libdir\"
16970
16971   exec_prefix="$acl_save_exec_prefix"
16972   prefix="$acl_save_prefix"
16973
16974       else
16975         additional_includedir="$withval/include"
16976         additional_libdir="$withval/lib"
16977       fi
16978     fi
16979
16980 fi
16981
16982       LIBICONV=
16983   LTLIBICONV=
16984   INCICONV=
16985   rpathdirs=
16986   ltrpathdirs=
16987   names_already_handled=
16988   names_next_round='iconv '
16989   while test -n "$names_next_round"; do
16990     names_this_round="$names_next_round"
16991     names_next_round=
16992     for name in $names_this_round; do
16993       already_handled=
16994       for n in $names_already_handled; do
16995         if test "$n" = "$name"; then
16996           already_handled=yes
16997           break
16998         fi
16999       done
17000       if test -z "$already_handled"; then
17001         names_already_handled="$names_already_handled $name"
17002                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
17003         eval value=\"\$HAVE_LIB$uppername\"
17004         if test -n "$value"; then
17005           if test "$value" = yes; then
17006             eval value=\"\$LIB$uppername\"
17007             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
17008             eval value=\"\$LTLIB$uppername\"
17009             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
17010           else
17011                                     :
17012           fi
17013         else
17014                               found_dir=
17015           found_la=
17016           found_so=
17017           found_a=
17018           if test $use_additional = yes; then
17019             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
17020               found_dir="$additional_libdir"
17021               found_so="$additional_libdir/lib$name.$shlibext"
17022               if test -f "$additional_libdir/lib$name.la"; then
17023                 found_la="$additional_libdir/lib$name.la"
17024               fi
17025             else
17026               if test -f "$additional_libdir/lib$name.$libext"; then
17027                 found_dir="$additional_libdir"
17028                 found_a="$additional_libdir/lib$name.$libext"
17029                 if test -f "$additional_libdir/lib$name.la"; then
17030                   found_la="$additional_libdir/lib$name.la"
17031                 fi
17032               fi
17033             fi
17034           fi
17035           if test "X$found_dir" = "X"; then
17036             for x in $LDFLAGS $LTLIBICONV; do
17037
17038   acl_save_prefix="$prefix"
17039   prefix="$acl_final_prefix"
17040   acl_save_exec_prefix="$exec_prefix"
17041   exec_prefix="$acl_final_exec_prefix"
17042   eval x=\"$x\"
17043   exec_prefix="$acl_save_exec_prefix"
17044   prefix="$acl_save_prefix"
17045
17046               case "$x" in
17047                 -L*)
17048                   dir=`echo "X$x" | sed -e 's/^X-L//'`
17049                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
17050                     found_dir="$dir"
17051                     found_so="$dir/lib$name.$shlibext"
17052                     if test -f "$dir/lib$name.la"; then
17053                       found_la="$dir/lib$name.la"
17054                     fi
17055                   else
17056                     if test -f "$dir/lib$name.$libext"; then
17057                       found_dir="$dir"
17058                       found_a="$dir/lib$name.$libext"
17059                       if test -f "$dir/lib$name.la"; then
17060                         found_la="$dir/lib$name.la"
17061                       fi
17062                     fi
17063                   fi
17064                   ;;
17065               esac
17066               if test "X$found_dir" != "X"; then
17067                 break
17068               fi
17069             done
17070           fi
17071           if test "X$found_dir" != "X"; then
17072                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
17073             if test "X$found_so" != "X"; then
17074                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
17075                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17076               else
17077                                                                                 haveit=
17078                 for x in $ltrpathdirs; do
17079                   if test "X$x" = "X$found_dir"; then
17080                     haveit=yes
17081                     break
17082                   fi
17083                 done
17084                 if test -z "$haveit"; then
17085                   ltrpathdirs="$ltrpathdirs $found_dir"
17086                 fi
17087                                 if test "$hardcode_direct" = yes; then
17088                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17089                 else
17090                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
17091                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17092                                                             haveit=
17093                     for x in $rpathdirs; do
17094                       if test "X$x" = "X$found_dir"; then
17095                         haveit=yes
17096                         break
17097                       fi
17098                     done
17099                     if test -z "$haveit"; then
17100                       rpathdirs="$rpathdirs $found_dir"
17101                     fi
17102                   else
17103                                                                                 haveit=
17104                     for x in $LDFLAGS $LIBICONV; do
17105
17106   acl_save_prefix="$prefix"
17107   prefix="$acl_final_prefix"
17108   acl_save_exec_prefix="$exec_prefix"
17109   exec_prefix="$acl_final_exec_prefix"
17110   eval x=\"$x\"
17111   exec_prefix="$acl_save_exec_prefix"
17112   prefix="$acl_save_prefix"
17113
17114                       if test "X$x" = "X-L$found_dir"; then
17115                         haveit=yes
17116                         break
17117                       fi
17118                     done
17119                     if test -z "$haveit"; then
17120                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
17121                     fi
17122                     if test "$hardcode_minus_L" != no; then
17123                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17124                     else
17125                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
17126                     fi
17127                   fi
17128                 fi
17129               fi
17130             else
17131               if test "X$found_a" != "X"; then
17132                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
17133               else
17134                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
17135               fi
17136             fi
17137                         additional_includedir=
17138             case "$found_dir" in
17139               */lib | */lib/)
17140                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17141                 additional_includedir="$basedir/include"
17142                 ;;
17143             esac
17144             if test "X$additional_includedir" != "X"; then
17145                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
17146                 haveit=
17147                 if test "X$additional_includedir" = "X/usr/local/include"; then
17148                   if test -n "$GCC"; then
17149                     case $host_os in
17150                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17151                     esac
17152                   fi
17153                 fi
17154                 if test -z "$haveit"; then
17155                   for x in $CPPFLAGS $INCICONV; do
17156
17157   acl_save_prefix="$prefix"
17158   prefix="$acl_final_prefix"
17159   acl_save_exec_prefix="$exec_prefix"
17160   exec_prefix="$acl_final_exec_prefix"
17161   eval x=\"$x\"
17162   exec_prefix="$acl_save_exec_prefix"
17163   prefix="$acl_save_prefix"
17164
17165                     if test "X$x" = "X-I$additional_includedir"; then
17166                       haveit=yes
17167                       break
17168                     fi
17169                   done
17170                   if test -z "$haveit"; then
17171                     if test -d "$additional_includedir"; then
17172                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
17173                     fi
17174                   fi
17175                 fi
17176               fi
17177             fi
17178                         if test -n "$found_la"; then
17179                                                         save_libdir="$libdir"
17180               case "$found_la" in
17181                 */* | *\\*) . "$found_la" ;;
17182                 *) . "./$found_la" ;;
17183               esac
17184               libdir="$save_libdir"
17185                             for dep in $dependency_libs; do
17186                 case "$dep" in
17187                   -L*)
17188                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17189                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
17190                       haveit=
17191                       if test "X$additional_libdir" = "X/usr/local/lib"; then
17192                         if test -n "$GCC"; then
17193                           case $host_os in
17194                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17195                           esac
17196                         fi
17197                       fi
17198                       if test -z "$haveit"; then
17199                         haveit=
17200                         for x in $LDFLAGS $LIBICONV; do
17201
17202   acl_save_prefix="$prefix"
17203   prefix="$acl_final_prefix"
17204   acl_save_exec_prefix="$exec_prefix"
17205   exec_prefix="$acl_final_exec_prefix"
17206   eval x=\"$x\"
17207   exec_prefix="$acl_save_exec_prefix"
17208   prefix="$acl_save_prefix"
17209
17210                           if test "X$x" = "X-L$additional_libdir"; then
17211                             haveit=yes
17212                             break
17213                           fi
17214                         done
17215                         if test -z "$haveit"; then
17216                           if test -d "$additional_libdir"; then
17217                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
17218                           fi
17219                         fi
17220                         haveit=
17221                         for x in $LDFLAGS $LTLIBICONV; do
17222
17223   acl_save_prefix="$prefix"
17224   prefix="$acl_final_prefix"
17225   acl_save_exec_prefix="$exec_prefix"
17226   exec_prefix="$acl_final_exec_prefix"
17227   eval x=\"$x\"
17228   exec_prefix="$acl_save_exec_prefix"
17229   prefix="$acl_save_prefix"
17230
17231                           if test "X$x" = "X-L$additional_libdir"; then
17232                             haveit=yes
17233                             break
17234                           fi
17235                         done
17236                         if test -z "$haveit"; then
17237                           if test -d "$additional_libdir"; then
17238                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
17239                           fi
17240                         fi
17241                       fi
17242                     fi
17243                     ;;
17244                   -R*)
17245                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
17246                     if test "$enable_rpath" != no; then
17247                                                                   haveit=
17248                       for x in $rpathdirs; do
17249                         if test "X$x" = "X$dir"; then
17250                           haveit=yes
17251                           break
17252                         fi
17253                       done
17254                       if test -z "$haveit"; then
17255                         rpathdirs="$rpathdirs $dir"
17256                       fi
17257                                                                   haveit=
17258                       for x in $ltrpathdirs; do
17259                         if test "X$x" = "X$dir"; then
17260                           haveit=yes
17261                           break
17262                         fi
17263                       done
17264                       if test -z "$haveit"; then
17265                         ltrpathdirs="$ltrpathdirs $dir"
17266                       fi
17267                     fi
17268                     ;;
17269                   -l*)
17270                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
17271                     ;;
17272                   *.la)
17273                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
17274                     ;;
17275                   *)
17276                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
17277                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
17278                     ;;
17279                 esac
17280               done
17281             fi
17282           else
17283                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
17284             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
17285           fi
17286         fi
17287       fi
17288     done
17289   done
17290   if test "X$rpathdirs" != "X"; then
17291     if test -n "$hardcode_libdir_separator"; then
17292                         alldirs=
17293       for found_dir in $rpathdirs; do
17294         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
17295       done
17296             acl_save_libdir="$libdir"
17297       libdir="$alldirs"
17298       eval flag=\"$hardcode_libdir_flag_spec\"
17299       libdir="$acl_save_libdir"
17300       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
17301     else
17302             for found_dir in $rpathdirs; do
17303         acl_save_libdir="$libdir"
17304         libdir="$found_dir"
17305         eval flag=\"$hardcode_libdir_flag_spec\"
17306         libdir="$acl_save_libdir"
17307         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
17308       done
17309     fi
17310   fi
17311   if test "X$ltrpathdirs" != "X"; then
17312             for found_dir in $ltrpathdirs; do
17313       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
17314     done
17315   fi
17316
17317
17318
17319
17320
17321
17322
17323
17324
17325
17326
17327
17328
17329
17330
17331
17332
17333
17334     { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
17335 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
17336 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
17337   echo $ECHO_N "(cached) $ECHO_C" >&6
17338 else
17339   gt_save_CPPFLAGS="$CPPFLAGS"
17340      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
17341      gt_save_LIBS="$LIBS"
17342      LIBS="$LIBS -framework CoreFoundation"
17343      cat >conftest.$ac_ext <<_ACEOF
17344 /* confdefs.h.  */
17345 _ACEOF
17346 cat confdefs.h >>conftest.$ac_ext
17347 cat >>conftest.$ac_ext <<_ACEOF
17348 /* end confdefs.h.  */
17349 #include <CFPreferences.h>
17350 int
17351 main ()
17352 {
17353 CFPreferencesCopyAppValue(NULL, NULL)
17354   ;
17355   return 0;
17356 }
17357 _ACEOF
17358 rm -f conftest.$ac_objext conftest$ac_exeext
17359 if { (ac_try="$ac_link"
17360 case "(($ac_try" in
17361   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17362   *) ac_try_echo=$ac_try;;
17363 esac
17364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17365   (eval "$ac_link") 2>conftest.er1
17366   ac_status=$?
17367   grep -v '^ *+' conftest.er1 >conftest.err
17368   rm -f conftest.er1
17369   cat conftest.err >&5
17370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17371   (exit $ac_status); } && {
17372          test -z "$ac_c_werror_flag" ||
17373          test ! -s conftest.err
17374        } && test -s conftest$ac_exeext &&
17375        $as_test_x conftest$ac_exeext; then
17376   gt_cv_func_CFPreferencesCopyAppValue=yes
17377 else
17378   echo "$as_me: failed program was:" >&5
17379 sed 's/^/| /' conftest.$ac_ext >&5
17380
17381         gt_cv_func_CFPreferencesCopyAppValue=no
17382 fi
17383
17384 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17385       conftest$ac_exeext conftest.$ac_ext
17386      CPPFLAGS="$gt_save_CPPFLAGS"
17387      LIBS="$gt_save_LIBS"
17388 fi
17389 { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
17390 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
17391   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
17392
17393 cat >>confdefs.h <<\_ACEOF
17394 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
17395 _ACEOF
17396
17397   fi
17398     { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
17399 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
17400 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
17401   echo $ECHO_N "(cached) $ECHO_C" >&6
17402 else
17403   gt_save_CPPFLAGS="$CPPFLAGS"
17404      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
17405      gt_save_LIBS="$LIBS"
17406      LIBS="$LIBS -framework CoreFoundation"
17407      cat >conftest.$ac_ext <<_ACEOF
17408 /* confdefs.h.  */
17409 _ACEOF
17410 cat confdefs.h >>conftest.$ac_ext
17411 cat >>conftest.$ac_ext <<_ACEOF
17412 /* end confdefs.h.  */
17413 #include <CFLocale.h>
17414 int
17415 main ()
17416 {
17417 CFLocaleCopyCurrent();
17418   ;
17419   return 0;
17420 }
17421 _ACEOF
17422 rm -f conftest.$ac_objext conftest$ac_exeext
17423 if { (ac_try="$ac_link"
17424 case "(($ac_try" in
17425   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17426   *) ac_try_echo=$ac_try;;
17427 esac
17428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17429   (eval "$ac_link") 2>conftest.er1
17430   ac_status=$?
17431   grep -v '^ *+' conftest.er1 >conftest.err
17432   rm -f conftest.er1
17433   cat conftest.err >&5
17434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17435   (exit $ac_status); } && {
17436          test -z "$ac_c_werror_flag" ||
17437          test ! -s conftest.err
17438        } && test -s conftest$ac_exeext &&
17439        $as_test_x conftest$ac_exeext; then
17440   gt_cv_func_CFLocaleCopyCurrent=yes
17441 else
17442   echo "$as_me: failed program was:" >&5
17443 sed 's/^/| /' conftest.$ac_ext >&5
17444
17445         gt_cv_func_CFLocaleCopyCurrent=no
17446 fi
17447
17448 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17449       conftest$ac_exeext conftest.$ac_ext
17450      CPPFLAGS="$gt_save_CPPFLAGS"
17451      LIBS="$gt_save_LIBS"
17452 fi
17453 { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
17454 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
17455   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
17456
17457 cat >>confdefs.h <<\_ACEOF
17458 #define HAVE_CFLOCALECOPYCURRENT 1
17459 _ACEOF
17460
17461   fi
17462   INTL_MACOSX_LIBS=
17463   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
17464     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
17465   fi
17466
17467
17468
17469
17470   { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
17471 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
17472     # Check whether --enable-nls was given.
17473 if test "${enable_nls+set}" = set; then
17474   enableval=$enable_nls; USE_NLS=$enableval
17475 else
17476   USE_NLS=yes
17477 fi
17478
17479   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
17480 echo "${ECHO_T}$USE_NLS" >&6; }
17481
17482
17483
17484
17485   LIBINTL=
17486   LTLIBINTL=
17487   POSUB=
17488
17489     if test "$USE_NLS" = "yes"; then
17490     gt_use_preinstalled_gnugettext=no
17491
17492
17493
17494
17495
17496
17497         { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
17498 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
17499 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
17500   echo $ECHO_N "(cached) $ECHO_C" >&6
17501 else
17502   cat >conftest.$ac_ext <<_ACEOF
17503 /* confdefs.h.  */
17504 _ACEOF
17505 cat confdefs.h >>conftest.$ac_ext
17506 cat >>conftest.$ac_ext <<_ACEOF
17507 /* end confdefs.h.  */
17508 #include <libintl.h>
17509 extern int _nl_msg_cat_cntr;
17510 extern int *_nl_domain_bindings;
17511 int
17512 main ()
17513 {
17514 bindtextdomain ("", "");
17515 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
17516   ;
17517   return 0;
17518 }
17519 _ACEOF
17520 rm -f conftest.$ac_objext conftest$ac_exeext
17521 if { (ac_try="$ac_link"
17522 case "(($ac_try" in
17523   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17524   *) ac_try_echo=$ac_try;;
17525 esac
17526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17527   (eval "$ac_link") 2>conftest.er1
17528   ac_status=$?
17529   grep -v '^ *+' conftest.er1 >conftest.err
17530   rm -f conftest.er1
17531   cat conftest.err >&5
17532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17533   (exit $ac_status); } && {
17534          test -z "$ac_c_werror_flag" ||
17535          test ! -s conftest.err
17536        } && test -s conftest$ac_exeext &&
17537        $as_test_x conftest$ac_exeext; then
17538   gt_cv_func_gnugettext1_libc=yes
17539 else
17540   echo "$as_me: failed program was:" >&5
17541 sed 's/^/| /' conftest.$ac_ext >&5
17542
17543         gt_cv_func_gnugettext1_libc=no
17544 fi
17545
17546 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17547       conftest$ac_exeext conftest.$ac_ext
17548 fi
17549 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
17550 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
17551
17552         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
17553
17554
17555
17556
17557
17558           am_save_CPPFLAGS="$CPPFLAGS"
17559
17560   for element in $INCICONV; do
17561     haveit=
17562     for x in $CPPFLAGS; do
17563
17564   acl_save_prefix="$prefix"
17565   prefix="$acl_final_prefix"
17566   acl_save_exec_prefix="$exec_prefix"
17567   exec_prefix="$acl_final_exec_prefix"
17568   eval x=\"$x\"
17569   exec_prefix="$acl_save_exec_prefix"
17570   prefix="$acl_save_prefix"
17571
17572       if test "X$x" = "X$element"; then
17573         haveit=yes
17574         break
17575       fi
17576     done
17577     if test -z "$haveit"; then
17578       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
17579     fi
17580   done
17581
17582
17583   { echo "$as_me:$LINENO: checking for iconv" >&5
17584 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
17585 if test "${am_cv_func_iconv+set}" = set; then
17586   echo $ECHO_N "(cached) $ECHO_C" >&6
17587 else
17588
17589     am_cv_func_iconv="no, consider installing GNU libiconv"
17590     am_cv_lib_iconv=no
17591     cat >conftest.$ac_ext <<_ACEOF
17592 /* confdefs.h.  */
17593 _ACEOF
17594 cat confdefs.h >>conftest.$ac_ext
17595 cat >>conftest.$ac_ext <<_ACEOF
17596 /* end confdefs.h.  */
17597 #include <stdlib.h>
17598 #include <iconv.h>
17599 int
17600 main ()
17601 {
17602 iconv_t cd = iconv_open("","");
17603        iconv(cd,NULL,NULL,NULL,NULL);
17604        iconv_close(cd);
17605   ;
17606   return 0;
17607 }
17608 _ACEOF
17609 rm -f conftest.$ac_objext conftest$ac_exeext
17610 if { (ac_try="$ac_link"
17611 case "(($ac_try" in
17612   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17613   *) ac_try_echo=$ac_try;;
17614 esac
17615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17616   (eval "$ac_link") 2>conftest.er1
17617   ac_status=$?
17618   grep -v '^ *+' conftest.er1 >conftest.err
17619   rm -f conftest.er1
17620   cat conftest.err >&5
17621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17622   (exit $ac_status); } && {
17623          test -z "$ac_c_werror_flag" ||
17624          test ! -s conftest.err
17625        } && test -s conftest$ac_exeext &&
17626        $as_test_x conftest$ac_exeext; then
17627   am_cv_func_iconv=yes
17628 else
17629   echo "$as_me: failed program was:" >&5
17630 sed 's/^/| /' conftest.$ac_ext >&5
17631
17632
17633 fi
17634
17635 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17636       conftest$ac_exeext conftest.$ac_ext
17637     if test "$am_cv_func_iconv" != yes; then
17638       am_save_LIBS="$LIBS"
17639       LIBS="$LIBS $LIBICONV"
17640       cat >conftest.$ac_ext <<_ACEOF
17641 /* confdefs.h.  */
17642 _ACEOF
17643 cat confdefs.h >>conftest.$ac_ext
17644 cat >>conftest.$ac_ext <<_ACEOF
17645 /* end confdefs.h.  */
17646 #include <stdlib.h>
17647 #include <iconv.h>
17648 int
17649 main ()
17650 {
17651 iconv_t cd = iconv_open("","");
17652          iconv(cd,NULL,NULL,NULL,NULL);
17653          iconv_close(cd);
17654   ;
17655   return 0;
17656 }
17657 _ACEOF
17658 rm -f conftest.$ac_objext conftest$ac_exeext
17659 if { (ac_try="$ac_link"
17660 case "(($ac_try" in
17661   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17662   *) ac_try_echo=$ac_try;;
17663 esac
17664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17665   (eval "$ac_link") 2>conftest.er1
17666   ac_status=$?
17667   grep -v '^ *+' conftest.er1 >conftest.err
17668   rm -f conftest.er1
17669   cat conftest.err >&5
17670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17671   (exit $ac_status); } && {
17672          test -z "$ac_c_werror_flag" ||
17673          test ! -s conftest.err
17674        } && test -s conftest$ac_exeext &&
17675        $as_test_x conftest$ac_exeext; then
17676   am_cv_lib_iconv=yes
17677         am_cv_func_iconv=yes
17678 else
17679   echo "$as_me: failed program was:" >&5
17680 sed 's/^/| /' conftest.$ac_ext >&5
17681
17682
17683 fi
17684
17685 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17686       conftest$ac_exeext conftest.$ac_ext
17687       LIBS="$am_save_LIBS"
17688     fi
17689
17690 fi
17691 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
17692 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
17693   if test "$am_cv_func_iconv" = yes; then
17694
17695 cat >>confdefs.h <<\_ACEOF
17696 #define HAVE_ICONV 1
17697 _ACEOF
17698
17699   fi
17700   if test "$am_cv_lib_iconv" = yes; then
17701     { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
17702 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
17703     { echo "$as_me:$LINENO: result: $LIBICONV" >&5
17704 echo "${ECHO_T}$LIBICONV" >&6; }
17705   else
17706             CPPFLAGS="$am_save_CPPFLAGS"
17707     LIBICONV=
17708     LTLIBICONV=
17709   fi
17710
17711
17712
17713
17714
17715
17716     use_additional=yes
17717
17718   acl_save_prefix="$prefix"
17719   prefix="$acl_final_prefix"
17720   acl_save_exec_prefix="$exec_prefix"
17721   exec_prefix="$acl_final_exec_prefix"
17722
17723     eval additional_includedir=\"$includedir\"
17724     eval additional_libdir=\"$libdir\"
17725
17726   exec_prefix="$acl_save_exec_prefix"
17727   prefix="$acl_save_prefix"
17728
17729
17730 # Check whether --with-libintl-prefix was given.
17731 if test "${with_libintl_prefix+set}" = set; then
17732   withval=$with_libintl_prefix;
17733     if test "X$withval" = "Xno"; then
17734       use_additional=no
17735     else
17736       if test "X$withval" = "X"; then
17737
17738   acl_save_prefix="$prefix"
17739   prefix="$acl_final_prefix"
17740   acl_save_exec_prefix="$exec_prefix"
17741   exec_prefix="$acl_final_exec_prefix"
17742
17743           eval additional_includedir=\"$includedir\"
17744           eval additional_libdir=\"$libdir\"
17745
17746   exec_prefix="$acl_save_exec_prefix"
17747   prefix="$acl_save_prefix"
17748
17749       else
17750         additional_includedir="$withval/include"
17751         additional_libdir="$withval/lib"
17752       fi
17753     fi
17754
17755 fi
17756
17757       LIBINTL=
17758   LTLIBINTL=
17759   INCINTL=
17760   rpathdirs=
17761   ltrpathdirs=
17762   names_already_handled=
17763   names_next_round='intl '
17764   while test -n "$names_next_round"; do
17765     names_this_round="$names_next_round"
17766     names_next_round=
17767     for name in $names_this_round; do
17768       already_handled=
17769       for n in $names_already_handled; do
17770         if test "$n" = "$name"; then
17771           already_handled=yes
17772           break
17773         fi
17774       done
17775       if test -z "$already_handled"; then
17776         names_already_handled="$names_already_handled $name"
17777                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
17778         eval value=\"\$HAVE_LIB$uppername\"
17779         if test -n "$value"; then
17780           if test "$value" = yes; then
17781             eval value=\"\$LIB$uppername\"
17782             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
17783             eval value=\"\$LTLIB$uppername\"
17784             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
17785           else
17786                                     :
17787           fi
17788         else
17789                               found_dir=
17790           found_la=
17791           found_so=
17792           found_a=
17793           if test $use_additional = yes; then
17794             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
17795               found_dir="$additional_libdir"
17796               found_so="$additional_libdir/lib$name.$shlibext"
17797               if test -f "$additional_libdir/lib$name.la"; then
17798                 found_la="$additional_libdir/lib$name.la"
17799               fi
17800             else
17801               if test -f "$additional_libdir/lib$name.$libext"; then
17802                 found_dir="$additional_libdir"
17803                 found_a="$additional_libdir/lib$name.$libext"
17804                 if test -f "$additional_libdir/lib$name.la"; then
17805                   found_la="$additional_libdir/lib$name.la"
17806                 fi
17807               fi
17808             fi
17809           fi
17810           if test "X$found_dir" = "X"; then
17811             for x in $LDFLAGS $LTLIBINTL; do
17812
17813   acl_save_prefix="$prefix"
17814   prefix="$acl_final_prefix"
17815   acl_save_exec_prefix="$exec_prefix"
17816   exec_prefix="$acl_final_exec_prefix"
17817   eval x=\"$x\"
17818   exec_prefix="$acl_save_exec_prefix"
17819   prefix="$acl_save_prefix"
17820
17821               case "$x" in
17822                 -L*)
17823                   dir=`echo "X$x" | sed -e 's/^X-L//'`
17824                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
17825                     found_dir="$dir"
17826                     found_so="$dir/lib$name.$shlibext"
17827                     if test -f "$dir/lib$name.la"; then
17828                       found_la="$dir/lib$name.la"
17829                     fi
17830                   else
17831                     if test -f "$dir/lib$name.$libext"; then
17832                       found_dir="$dir"
17833                       found_a="$dir/lib$name.$libext"
17834                       if test -f "$dir/lib$name.la"; then
17835                         found_la="$dir/lib$name.la"
17836                       fi
17837                     fi
17838                   fi
17839                   ;;
17840               esac
17841               if test "X$found_dir" != "X"; then
17842                 break
17843               fi
17844             done
17845           fi
17846           if test "X$found_dir" != "X"; then
17847                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
17848             if test "X$found_so" != "X"; then
17849                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
17850                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17851               else
17852                                                                                 haveit=
17853                 for x in $ltrpathdirs; do
17854                   if test "X$x" = "X$found_dir"; then
17855                     haveit=yes
17856                     break
17857                   fi
17858                 done
17859                 if test -z "$haveit"; then
17860                   ltrpathdirs="$ltrpathdirs $found_dir"
17861                 fi
17862                                 if test "$hardcode_direct" = yes; then
17863                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17864                 else
17865                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
17866                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17867                                                             haveit=
17868                     for x in $rpathdirs; do
17869                       if test "X$x" = "X$found_dir"; then
17870                         haveit=yes
17871                         break
17872                       fi
17873                     done
17874                     if test -z "$haveit"; then
17875                       rpathdirs="$rpathdirs $found_dir"
17876                     fi
17877                   else
17878                                                                                 haveit=
17879                     for x in $LDFLAGS $LIBINTL; do
17880
17881   acl_save_prefix="$prefix"
17882   prefix="$acl_final_prefix"
17883   acl_save_exec_prefix="$exec_prefix"
17884   exec_prefix="$acl_final_exec_prefix"
17885   eval x=\"$x\"
17886   exec_prefix="$acl_save_exec_prefix"
17887   prefix="$acl_save_prefix"
17888
17889                       if test "X$x" = "X-L$found_dir"; then
17890                         haveit=yes
17891                         break
17892                       fi
17893                     done
17894                     if test -z "$haveit"; then
17895                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
17896                     fi
17897                     if test "$hardcode_minus_L" != no; then
17898                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17899                     else
17900                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
17901                     fi
17902                   fi
17903                 fi
17904               fi
17905             else
17906               if test "X$found_a" != "X"; then
17907                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
17908               else
17909                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
17910               fi
17911             fi
17912                         additional_includedir=
17913             case "$found_dir" in
17914               */lib | */lib/)
17915                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17916                 additional_includedir="$basedir/include"
17917                 ;;
17918             esac
17919             if test "X$additional_includedir" != "X"; then
17920                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
17921                 haveit=
17922                 if test "X$additional_includedir" = "X/usr/local/include"; then
17923                   if test -n "$GCC"; then
17924                     case $host_os in
17925                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17926                     esac
17927                   fi
17928                 fi
17929                 if test -z "$haveit"; then
17930                   for x in $CPPFLAGS $INCINTL; do
17931
17932   acl_save_prefix="$prefix"
17933   prefix="$acl_final_prefix"
17934   acl_save_exec_prefix="$exec_prefix"
17935   exec_prefix="$acl_final_exec_prefix"
17936   eval x=\"$x\"
17937   exec_prefix="$acl_save_exec_prefix"
17938   prefix="$acl_save_prefix"
17939
17940                     if test "X$x" = "X-I$additional_includedir"; then
17941                       haveit=yes
17942                       break
17943                     fi
17944                   done
17945                   if test -z "$haveit"; then
17946                     if test -d "$additional_includedir"; then
17947                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
17948                     fi
17949                   fi
17950                 fi
17951               fi
17952             fi
17953                         if test -n "$found_la"; then
17954                                                         save_libdir="$libdir"
17955               case "$found_la" in
17956                 */* | *\\*) . "$found_la" ;;
17957                 *) . "./$found_la" ;;
17958               esac
17959               libdir="$save_libdir"
17960                             for dep in $dependency_libs; do
17961                 case "$dep" in
17962                   -L*)
17963                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17964                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
17965                       haveit=
17966                       if test "X$additional_libdir" = "X/usr/local/lib"; then
17967                         if test -n "$GCC"; then
17968                           case $host_os in
17969                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17970                           esac
17971                         fi
17972                       fi
17973                       if test -z "$haveit"; then
17974                         haveit=
17975                         for x in $LDFLAGS $LIBINTL; do
17976
17977   acl_save_prefix="$prefix"
17978   prefix="$acl_final_prefix"
17979   acl_save_exec_prefix="$exec_prefix"
17980   exec_prefix="$acl_final_exec_prefix"
17981   eval x=\"$x\"
17982   exec_prefix="$acl_save_exec_prefix"
17983   prefix="$acl_save_prefix"
17984
17985                           if test "X$x" = "X-L$additional_libdir"; then
17986                             haveit=yes
17987                             break
17988                           fi
17989                         done
17990                         if test -z "$haveit"; then
17991                           if test -d "$additional_libdir"; then
17992                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
17993                           fi
17994                         fi
17995                         haveit=
17996                         for x in $LDFLAGS $LTLIBINTL; do
17997
17998   acl_save_prefix="$prefix"
17999   prefix="$acl_final_prefix"
18000   acl_save_exec_prefix="$exec_prefix"
18001   exec_prefix="$acl_final_exec_prefix"
18002   eval x=\"$x\"
18003   exec_prefix="$acl_save_exec_prefix"
18004   prefix="$acl_save_prefix"
18005
18006                           if test "X$x" = "X-L$additional_libdir"; then
18007                             haveit=yes
18008                             break
18009                           fi
18010                         done
18011                         if test -z "$haveit"; then
18012                           if test -d "$additional_libdir"; then
18013                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
18014                           fi
18015                         fi
18016                       fi
18017                     fi
18018                     ;;
18019                   -R*)
18020                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
18021                     if test "$enable_rpath" != no; then
18022                                                                   haveit=
18023                       for x in $rpathdirs; do
18024                         if test "X$x" = "X$dir"; then
18025                           haveit=yes
18026                           break
18027                         fi
18028                       done
18029                       if test -z "$haveit"; then
18030                         rpathdirs="$rpathdirs $dir"
18031                       fi
18032                                                                   haveit=
18033                       for x in $ltrpathdirs; do
18034                         if test "X$x" = "X$dir"; then
18035                           haveit=yes
18036                           break
18037                         fi
18038                       done
18039                       if test -z "$haveit"; then
18040                         ltrpathdirs="$ltrpathdirs $dir"
18041                       fi
18042                     fi
18043                     ;;
18044                   -l*)
18045                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
18046                     ;;
18047                   *.la)
18048                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
18049                     ;;
18050                   *)
18051                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
18052                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
18053                     ;;
18054                 esac
18055               done
18056             fi
18057           else
18058                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
18059             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
18060           fi
18061         fi
18062       fi
18063     done
18064   done
18065   if test "X$rpathdirs" != "X"; then
18066     if test -n "$hardcode_libdir_separator"; then
18067                         alldirs=
18068       for found_dir in $rpathdirs; do
18069         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
18070       done
18071             acl_save_libdir="$libdir"
18072       libdir="$alldirs"
18073       eval flag=\"$hardcode_libdir_flag_spec\"
18074       libdir="$acl_save_libdir"
18075       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
18076     else
18077             for found_dir in $rpathdirs; do
18078         acl_save_libdir="$libdir"
18079         libdir="$found_dir"
18080         eval flag=\"$hardcode_libdir_flag_spec\"
18081         libdir="$acl_save_libdir"
18082         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
18083       done
18084     fi
18085   fi
18086   if test "X$ltrpathdirs" != "X"; then
18087             for found_dir in $ltrpathdirs; do
18088       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
18089     done
18090   fi
18091
18092           { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
18093 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
18094 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
18095   echo $ECHO_N "(cached) $ECHO_C" >&6
18096 else
18097   gt_save_CPPFLAGS="$CPPFLAGS"
18098             CPPFLAGS="$CPPFLAGS $INCINTL"
18099             gt_save_LIBS="$LIBS"
18100             LIBS="$LIBS $LIBINTL"
18101                         cat >conftest.$ac_ext <<_ACEOF
18102 /* confdefs.h.  */
18103 _ACEOF
18104 cat confdefs.h >>conftest.$ac_ext
18105 cat >>conftest.$ac_ext <<_ACEOF
18106 /* end confdefs.h.  */
18107 #include <libintl.h>
18108 extern int _nl_msg_cat_cntr;
18109 extern
18110 #ifdef __cplusplus
18111 "C"
18112 #endif
18113 const char *_nl_expand_alias (const char *);
18114 int
18115 main ()
18116 {
18117 bindtextdomain ("", "");
18118 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
18119   ;
18120   return 0;
18121 }
18122 _ACEOF
18123 rm -f conftest.$ac_objext conftest$ac_exeext
18124 if { (ac_try="$ac_link"
18125 case "(($ac_try" in
18126   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18127   *) ac_try_echo=$ac_try;;
18128 esac
18129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18130   (eval "$ac_link") 2>conftest.er1
18131   ac_status=$?
18132   grep -v '^ *+' conftest.er1 >conftest.err
18133   rm -f conftest.er1
18134   cat conftest.err >&5
18135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18136   (exit $ac_status); } && {
18137          test -z "$ac_c_werror_flag" ||
18138          test ! -s conftest.err
18139        } && test -s conftest$ac_exeext &&
18140        $as_test_x conftest$ac_exeext; then
18141   gt_cv_func_gnugettext1_libintl=yes
18142 else
18143   echo "$as_me: failed program was:" >&5
18144 sed 's/^/| /' conftest.$ac_ext >&5
18145
18146         gt_cv_func_gnugettext1_libintl=no
18147 fi
18148
18149 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18150       conftest$ac_exeext conftest.$ac_ext
18151                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
18152               LIBS="$LIBS $LIBICONV"
18153               cat >conftest.$ac_ext <<_ACEOF
18154 /* confdefs.h.  */
18155 _ACEOF
18156 cat confdefs.h >>conftest.$ac_ext
18157 cat >>conftest.$ac_ext <<_ACEOF
18158 /* end confdefs.h.  */
18159 #include <libintl.h>
18160 extern int _nl_msg_cat_cntr;
18161 extern
18162 #ifdef __cplusplus
18163 "C"
18164 #endif
18165 const char *_nl_expand_alias (const char *);
18166 int
18167 main ()
18168 {
18169 bindtextdomain ("", "");
18170 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
18171   ;
18172   return 0;
18173 }
18174 _ACEOF
18175 rm -f conftest.$ac_objext conftest$ac_exeext
18176 if { (ac_try="$ac_link"
18177 case "(($ac_try" in
18178   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18179   *) ac_try_echo=$ac_try;;
18180 esac
18181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18182   (eval "$ac_link") 2>conftest.er1
18183   ac_status=$?
18184   grep -v '^ *+' conftest.er1 >conftest.err
18185   rm -f conftest.er1
18186   cat conftest.err >&5
18187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18188   (exit $ac_status); } && {
18189          test -z "$ac_c_werror_flag" ||
18190          test ! -s conftest.err
18191        } && test -s conftest$ac_exeext &&
18192        $as_test_x conftest$ac_exeext; then
18193   LIBINTL="$LIBINTL $LIBICONV"
18194                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
18195                 gt_cv_func_gnugettext1_libintl=yes
18196
18197 else
18198   echo "$as_me: failed program was:" >&5
18199 sed 's/^/| /' conftest.$ac_ext >&5
18200
18201
18202 fi
18203
18204 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18205       conftest$ac_exeext conftest.$ac_ext
18206             fi
18207             CPPFLAGS="$gt_save_CPPFLAGS"
18208             LIBS="$gt_save_LIBS"
18209 fi
18210 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
18211 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
18212         fi
18213
18214                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
18215            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
18216                 && test "$PACKAGE" != gettext-runtime \
18217                 && test "$PACKAGE" != gettext-tools; }; then
18218           gt_use_preinstalled_gnugettext=yes
18219         else
18220                     LIBINTL=
18221           LTLIBINTL=
18222           INCINTL=
18223         fi
18224
18225
18226
18227     if test -n "$INTL_MACOSX_LIBS"; then
18228       if test "$gt_use_preinstalled_gnugettext" = "yes" \
18229          || test "$nls_cv_use_gnu_gettext" = "yes"; then
18230                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
18231         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
18232       fi
18233     fi
18234
18235     if test "$gt_use_preinstalled_gnugettext" = "yes" \
18236        || test "$nls_cv_use_gnu_gettext" = "yes"; then
18237
18238 cat >>confdefs.h <<\_ACEOF
18239 #define ENABLE_NLS 1
18240 _ACEOF
18241
18242     else
18243       USE_NLS=no
18244     fi
18245   fi
18246
18247   { echo "$as_me:$LINENO: checking whether to use NLS" >&5
18248 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
18249   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
18250 echo "${ECHO_T}$USE_NLS" >&6; }
18251   if test "$USE_NLS" = "yes"; then
18252     { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
18253 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
18254     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
18255       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
18256         gt_source="external libintl"
18257       else
18258         gt_source="libc"
18259       fi
18260     else
18261       gt_source="included intl directory"
18262     fi
18263     { echo "$as_me:$LINENO: result: $gt_source" >&5
18264 echo "${ECHO_T}$gt_source" >&6; }
18265   fi
18266
18267   if test "$USE_NLS" = "yes"; then
18268
18269     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
18270       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
18271         { echo "$as_me:$LINENO: checking how to link with libintl" >&5
18272 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
18273         { echo "$as_me:$LINENO: result: $LIBINTL" >&5
18274 echo "${ECHO_T}$LIBINTL" >&6; }
18275
18276   for element in $INCINTL; do
18277     haveit=
18278     for x in $CPPFLAGS; do
18279
18280   acl_save_prefix="$prefix"
18281   prefix="$acl_final_prefix"
18282   acl_save_exec_prefix="$exec_prefix"
18283   exec_prefix="$acl_final_exec_prefix"
18284   eval x=\"$x\"
18285   exec_prefix="$acl_save_exec_prefix"
18286   prefix="$acl_save_prefix"
18287
18288       if test "X$x" = "X$element"; then
18289         haveit=yes
18290         break
18291       fi
18292     done
18293     if test -z "$haveit"; then
18294       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
18295     fi
18296   done
18297
18298       fi
18299
18300
18301 cat >>confdefs.h <<\_ACEOF
18302 #define HAVE_GETTEXT 1
18303 _ACEOF
18304
18305
18306 cat >>confdefs.h <<\_ACEOF
18307 #define HAVE_DCGETTEXT 1
18308 _ACEOF
18309
18310     fi
18311
18312         POSUB=po
18313   fi
18314
18315
18316
18317     INTLLIBS="$LIBINTL"
18318
18319
18320
18321
18322
18323
18324
18325 os_name=`uname -s 2>/dev/null`
18326 if test x${prefix} = xNONE ; then
18327    if test `eval echo ${sysconfdir}` = NONE/etc ; then
18328       sysconfdir=/etc/bacula
18329    fi
18330
18331    if test `eval echo ${libdir}` = NONE/lib ; then
18332       case ${os_name} in
18333       Linux)
18334          os_processor=`uname -p 2>/dev/null`
18335          case ${os_processor} in
18336          x86_64)
18337             libdir=/usr/lib64
18338             ;;
18339          *)
18340             libdir=/usr/lib
18341             ;;
18342          esac
18343          ;;
18344       *)
18345          libdir=/usr/lib
18346          ;;
18347       esac
18348    fi
18349
18350    if test `eval echo ${includedir}` = NONE/include ; then
18351       includedir=/usr/include
18352    fi
18353
18354    if test `eval echo ${datarootdir}` = NONE/share ; then
18355       datarootdir=/usr/share
18356    fi
18357    prefix=
18358 fi
18359
18360 if test x${exec_prefix} = xNONE ; then
18361    exec_prefix=${prefix}
18362 fi
18363
18364 sysconfdir=`eval echo ${sysconfdir}`
18365 datarootdir=`eval echo ${datarootdir}`
18366 docdir=`eval echo ${docdir}`
18367 htmldir=`eval echo ${htmldir}`
18368 libdir=`eval echo ${libdir}`
18369 includedir=`eval echo ${includedir}`
18370 localedir=`eval echo ${datarootdir}/locale`
18371 cat >>confdefs.h <<_ACEOF
18372 #define SYSCONFDIR "$sysconfdir"
18373 _ACEOF
18374
18375 cat >>confdefs.h <<_ACEOF
18376 #define LOCALEDIR "$localedir"
18377 _ACEOF
18378
18379
18380 if test x$sbindir = x'${exec_prefix}/sbin' ; then
18381    sbindir=${exec_prefix}/sbin
18382 fi
18383 sbindir=`eval echo ${sbindir}`
18384
18385 if test x$mandir = x'${prefix}/man' ; then
18386    mandir=/usr/share/man
18387 fi
18388
18389 if test x$htmldir = x${docdir} ; then
18390    htmldir=`eval echo ${docdir}bacula/html`
18391 fi
18392
18393 if test x$docdir = x'/usr/share/doc/' ; then
18394    docdir=`eval echo ${docdir}bacula`
18395 fi
18396
18397
18398 for ac_prog in msgfmt
18399 do
18400   # Extract the first word of "$ac_prog", so it can be a program name with args.
18401 set dummy $ac_prog; ac_word=$2
18402 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18403 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18404 if test "${ac_cv_path_MSGFMT+set}" = set; then
18405   echo $ECHO_N "(cached) $ECHO_C" >&6
18406 else
18407   case $MSGFMT in
18408   [\\/]* | ?:[\\/]*)
18409   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
18410   ;;
18411   *)
18412   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18413 for as_dir in $PATH
18414 do
18415   IFS=$as_save_IFS
18416   test -z "$as_dir" && as_dir=.
18417   for ac_exec_ext in '' $ac_executable_extensions; do
18418   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18419     ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
18420     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18421     break 2
18422   fi
18423 done
18424 done
18425 IFS=$as_save_IFS
18426
18427   ;;
18428 esac
18429 fi
18430 MSGFMT=$ac_cv_path_MSGFMT
18431 if test -n "$MSGFMT"; then
18432   { echo "$as_me:$LINENO: result: $MSGFMT" >&5
18433 echo "${ECHO_T}$MSGFMT" >&6; }
18434 else
18435   { echo "$as_me:$LINENO: result: no" >&5
18436 echo "${ECHO_T}no" >&6; }
18437 fi
18438
18439
18440   test -n "$MSGFMT" && break
18441 done
18442 test -n "$MSGFMT" || MSGFMT="no"
18443
18444 if test "$MSGFMT" = "no"
18445 then
18446    echo 'msgfmt program not found, disabling NLS !'
18447    USE_NLS=no
18448    USE_INCLUDED_LIBINTL=no
18449 #else
18450
18451     { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2 or newer" >&5
18452 echo $ECHO_N "checking whether we are using the GNU C Library 2 or newer... $ECHO_C" >&6; }
18453 if test "${ac_cv_gnu_library_2+set}" = set; then
18454   echo $ECHO_N "(cached) $ECHO_C" >&6
18455 else
18456   cat >conftest.$ac_ext <<_ACEOF
18457 /* confdefs.h.  */
18458 _ACEOF
18459 cat confdefs.h >>conftest.$ac_ext
18460 cat >>conftest.$ac_ext <<_ACEOF
18461 /* end confdefs.h.  */
18462
18463 #include <features.h>
18464 #ifdef __GNU_LIBRARY__
18465  #if (__GLIBC__ >= 2)
18466   Lucky GNU user
18467  #endif
18468 #endif
18469
18470 _ACEOF
18471 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18472   $EGREP "Lucky GNU user" >/dev/null 2>&1; then
18473   ac_cv_gnu_library_2=yes
18474 else
18475   ac_cv_gnu_library_2=no
18476 fi
18477 rm -f conftest*
18478
18479
18480
18481 fi
18482 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2" >&5
18483 echo "${ECHO_T}$ac_cv_gnu_library_2" >&6; }
18484
18485     GLIBC2="$ac_cv_gnu_library_2"
18486
18487
18488 if test -n "$ac_tool_prefix"; then
18489   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
18490 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
18491 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18492 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18493 if test "${ac_cv_prog_RANLIB+set}" = set; then
18494   echo $ECHO_N "(cached) $ECHO_C" >&6
18495 else
18496   if test -n "$RANLIB"; then
18497   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
18498 else
18499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18500 for as_dir in $PATH
18501 do
18502   IFS=$as_save_IFS
18503   test -z "$as_dir" && as_dir=.
18504   for ac_exec_ext in '' $ac_executable_extensions; do
18505   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18506     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
18507     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18508     break 2
18509   fi
18510 done
18511 done
18512 IFS=$as_save_IFS
18513
18514 fi
18515 fi
18516 RANLIB=$ac_cv_prog_RANLIB
18517 if test -n "$RANLIB"; then
18518   { echo "$as_me:$LINENO: result: $RANLIB" >&5
18519 echo "${ECHO_T}$RANLIB" >&6; }
18520 else
18521   { echo "$as_me:$LINENO: result: no" >&5
18522 echo "${ECHO_T}no" >&6; }
18523 fi
18524
18525
18526 fi
18527 if test -z "$ac_cv_prog_RANLIB"; then
18528   ac_ct_RANLIB=$RANLIB
18529   # Extract the first word of "ranlib", so it can be a program name with args.
18530 set dummy ranlib; ac_word=$2
18531 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18532 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18533 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
18534   echo $ECHO_N "(cached) $ECHO_C" >&6
18535 else
18536   if test -n "$ac_ct_RANLIB"; then
18537   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
18538 else
18539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18540 for as_dir in $PATH
18541 do
18542   IFS=$as_save_IFS
18543   test -z "$as_dir" && as_dir=.
18544   for ac_exec_ext in '' $ac_executable_extensions; do
18545   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18546     ac_cv_prog_ac_ct_RANLIB="ranlib"
18547     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18548     break 2
18549   fi
18550 done
18551 done
18552 IFS=$as_save_IFS
18553
18554 fi
18555 fi
18556 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
18557 if test -n "$ac_ct_RANLIB"; then
18558   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
18559 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
18560 else
18561   { echo "$as_me:$LINENO: result: no" >&5
18562 echo "${ECHO_T}no" >&6; }
18563 fi
18564
18565   if test "x$ac_ct_RANLIB" = x; then
18566     RANLIB=":"
18567   else
18568     case $cross_compiling:$ac_tool_warned in
18569 yes:)
18570 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
18571 whose name does not start with the host triplet.  If you think this
18572 configuration is useful to you, please write to autoconf@gnu.org." >&5
18573 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
18574 whose name does not start with the host triplet.  If you think this
18575 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
18576 ac_tool_warned=yes ;;
18577 esac
18578     RANLIB=$ac_ct_RANLIB
18579   fi
18580 else
18581   RANLIB="$ac_cv_prog_RANLIB"
18582 fi
18583
18584
18585         { echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
18586 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6; }
18587 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
18588   echo $ECHO_N "(cached) $ECHO_C" >&6
18589 else
18590   ac_check_lib_save_LIBS=$LIBS
18591 LIBS="-lcposix  $LIBS"
18592 cat >conftest.$ac_ext <<_ACEOF
18593 /* confdefs.h.  */
18594 _ACEOF
18595 cat confdefs.h >>conftest.$ac_ext
18596 cat >>conftest.$ac_ext <<_ACEOF
18597 /* end confdefs.h.  */
18598
18599 /* Override any GCC internal prototype to avoid an error.
18600    Use char because int might match the return type of a GCC
18601    builtin and then its argument prototype would still apply.  */
18602 #ifdef __cplusplus
18603 extern "C"
18604 #endif
18605 char strerror ();
18606 int
18607 main ()
18608 {
18609 return strerror ();
18610   ;
18611   return 0;
18612 }
18613 _ACEOF
18614 rm -f conftest.$ac_objext conftest$ac_exeext
18615 if { (ac_try="$ac_link"
18616 case "(($ac_try" in
18617   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18618   *) ac_try_echo=$ac_try;;
18619 esac
18620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18621   (eval "$ac_link") 2>conftest.er1
18622   ac_status=$?
18623   grep -v '^ *+' conftest.er1 >conftest.err
18624   rm -f conftest.er1
18625   cat conftest.err >&5
18626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18627   (exit $ac_status); } && {
18628          test -z "$ac_c_werror_flag" ||
18629          test ! -s conftest.err
18630        } && test -s conftest$ac_exeext &&
18631        $as_test_x conftest$ac_exeext; then
18632   ac_cv_lib_cposix_strerror=yes
18633 else
18634   echo "$as_me: failed program was:" >&5
18635 sed 's/^/| /' conftest.$ac_ext >&5
18636
18637         ac_cv_lib_cposix_strerror=no
18638 fi
18639
18640 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18641       conftest$ac_exeext conftest.$ac_ext
18642 LIBS=$ac_check_lib_save_LIBS
18643 fi
18644 { echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
18645 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6; }
18646 if test $ac_cv_lib_cposix_strerror = yes; then
18647   LIBS="$LIBS -lcposix"
18648 fi
18649
18650
18651
18652 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
18653 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
18654 if test "${ac_cv_c_const+set}" = set; then
18655   echo $ECHO_N "(cached) $ECHO_C" >&6
18656 else
18657   cat >conftest.$ac_ext <<_ACEOF
18658 /* confdefs.h.  */
18659 _ACEOF
18660 cat confdefs.h >>conftest.$ac_ext
18661 cat >>conftest.$ac_ext <<_ACEOF
18662 /* end confdefs.h.  */
18663
18664 int
18665 main ()
18666 {
18667 /* FIXME: Include the comments suggested by Paul. */
18668 #ifndef __cplusplus
18669   /* Ultrix mips cc rejects this.  */
18670   typedef int charset[2];
18671   const charset cs;
18672   /* SunOS 4.1.1 cc rejects this.  */
18673   char const *const *pcpcc;
18674   char **ppc;
18675   /* NEC SVR4.0.2 mips cc rejects this.  */
18676   struct point {int x, y;};
18677   static struct point const zero = {0,0};
18678   /* AIX XL C 1.02.0.0 rejects this.
18679      It does not let you subtract one const X* pointer from another in
18680      an arm of an if-expression whose if-part is not a constant
18681      expression */
18682   const char *g = "string";
18683   pcpcc = &g + (g ? g-g : 0);
18684   /* HPUX 7.0 cc rejects these. */
18685   ++pcpcc;
18686   ppc = (char**) pcpcc;
18687   pcpcc = (char const *const *) ppc;
18688   { /* SCO 3.2v4 cc rejects this.  */
18689     char *t;
18690     char const *s = 0 ? (char *) 0 : (char const *) 0;
18691
18692     *t++ = 0;
18693     if (s) return 0;
18694   }
18695   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
18696     int x[] = {25, 17};
18697     const int *foo = &x[0];
18698     ++foo;
18699   }
18700   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
18701     typedef const int *iptr;
18702     iptr p = 0;
18703     ++p;
18704   }
18705   { /* AIX XL C 1.02.0.0 rejects this saying
18706        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
18707     struct s { int j; const int *ap[3]; };
18708     struct s *b; b->j = 5;
18709   }
18710   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
18711     const int foo = 10;
18712     if (!foo) return 0;
18713   }
18714   return !cs[0] && !zero.x;
18715 #endif
18716
18717   ;
18718   return 0;
18719 }
18720 _ACEOF
18721 rm -f conftest.$ac_objext
18722 if { (ac_try="$ac_compile"
18723 case "(($ac_try" in
18724   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18725   *) ac_try_echo=$ac_try;;
18726 esac
18727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18728   (eval "$ac_compile") 2>conftest.er1
18729   ac_status=$?
18730   grep -v '^ *+' conftest.er1 >conftest.err
18731   rm -f conftest.er1
18732   cat conftest.err >&5
18733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18734   (exit $ac_status); } && {
18735          test -z "$ac_c_werror_flag" ||
18736          test ! -s conftest.err
18737        } && test -s conftest.$ac_objext; then
18738   ac_cv_c_const=yes
18739 else
18740   echo "$as_me: failed program was:" >&5
18741 sed 's/^/| /' conftest.$ac_ext >&5
18742
18743         ac_cv_c_const=no
18744 fi
18745
18746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18747 fi
18748 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
18749 echo "${ECHO_T}$ac_cv_c_const" >&6; }
18750 if test $ac_cv_c_const = no; then
18751
18752 cat >>confdefs.h <<\_ACEOF
18753 #define const
18754 _ACEOF
18755
18756 fi
18757
18758
18759   { echo "$as_me:$LINENO: checking for signed" >&5
18760 echo $ECHO_N "checking for signed... $ECHO_C" >&6; }
18761 if test "${bh_cv_c_signed+set}" = set; then
18762   echo $ECHO_N "(cached) $ECHO_C" >&6
18763 else
18764   cat >conftest.$ac_ext <<_ACEOF
18765 /* confdefs.h.  */
18766 _ACEOF
18767 cat confdefs.h >>conftest.$ac_ext
18768 cat >>conftest.$ac_ext <<_ACEOF
18769 /* end confdefs.h.  */
18770
18771 int
18772 main ()
18773 {
18774 signed char x;
18775   ;
18776   return 0;
18777 }
18778 _ACEOF
18779 rm -f conftest.$ac_objext
18780 if { (ac_try="$ac_compile"
18781 case "(($ac_try" in
18782   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18783   *) ac_try_echo=$ac_try;;
18784 esac
18785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18786   (eval "$ac_compile") 2>conftest.er1
18787   ac_status=$?
18788   grep -v '^ *+' conftest.er1 >conftest.err
18789   rm -f conftest.er1
18790   cat conftest.err >&5
18791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18792   (exit $ac_status); } && {
18793          test -z "$ac_c_werror_flag" ||
18794          test ! -s conftest.err
18795        } && test -s conftest.$ac_objext; then
18796   bh_cv_c_signed=yes
18797 else
18798   echo "$as_me: failed program was:" >&5
18799 sed 's/^/| /' conftest.$ac_ext >&5
18800
18801         bh_cv_c_signed=no
18802 fi
18803
18804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18805 fi
18806 { echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
18807 echo "${ECHO_T}$bh_cv_c_signed" >&6; }
18808   if test $bh_cv_c_signed = no; then
18809
18810 cat >>confdefs.h <<\_ACEOF
18811 #define signed
18812 _ACEOF
18813
18814   fi
18815
18816 { echo "$as_me:$LINENO: checking for inline" >&5
18817 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
18818 if test "${ac_cv_c_inline+set}" = set; then
18819   echo $ECHO_N "(cached) $ECHO_C" >&6
18820 else
18821   ac_cv_c_inline=no
18822 for ac_kw in inline __inline__ __inline; do
18823   cat >conftest.$ac_ext <<_ACEOF
18824 /* confdefs.h.  */
18825 _ACEOF
18826 cat confdefs.h >>conftest.$ac_ext
18827 cat >>conftest.$ac_ext <<_ACEOF
18828 /* end confdefs.h.  */
18829 #ifndef __cplusplus
18830 typedef int foo_t;
18831 static $ac_kw foo_t static_foo () {return 0; }
18832 $ac_kw foo_t foo () {return 0; }
18833 #endif
18834
18835 _ACEOF
18836 rm -f conftest.$ac_objext
18837 if { (ac_try="$ac_compile"
18838 case "(($ac_try" in
18839   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18840   *) ac_try_echo=$ac_try;;
18841 esac
18842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18843   (eval "$ac_compile") 2>conftest.er1
18844   ac_status=$?
18845   grep -v '^ *+' conftest.er1 >conftest.err
18846   rm -f conftest.er1
18847   cat conftest.err >&5
18848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18849   (exit $ac_status); } && {
18850          test -z "$ac_c_werror_flag" ||
18851          test ! -s conftest.err
18852        } && test -s conftest.$ac_objext; then
18853   ac_cv_c_inline=$ac_kw
18854 else
18855   echo "$as_me: failed program was:" >&5
18856 sed 's/^/| /' conftest.$ac_ext >&5
18857
18858
18859 fi
18860
18861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18862   test "$ac_cv_c_inline" != no && break
18863 done
18864
18865 fi
18866 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
18867 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
18868
18869
18870 case $ac_cv_c_inline in
18871   inline | yes) ;;
18872   *)
18873     case $ac_cv_c_inline in
18874       no) ac_val=;;
18875       *) ac_val=$ac_cv_c_inline;;
18876     esac
18877     cat >>confdefs.h <<_ACEOF
18878 #ifndef __cplusplus
18879 #define inline $ac_val
18880 #endif
18881 _ACEOF
18882     ;;
18883 esac
18884
18885 { echo "$as_me:$LINENO: checking for off_t" >&5
18886 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
18887 if test "${ac_cv_type_off_t+set}" = set; then
18888   echo $ECHO_N "(cached) $ECHO_C" >&6
18889 else
18890   cat >conftest.$ac_ext <<_ACEOF
18891 /* confdefs.h.  */
18892 _ACEOF
18893 cat confdefs.h >>conftest.$ac_ext
18894 cat >>conftest.$ac_ext <<_ACEOF
18895 /* end confdefs.h.  */
18896 $ac_includes_default
18897 typedef off_t ac__type_new_;
18898 int
18899 main ()
18900 {
18901 if ((ac__type_new_ *) 0)
18902   return 0;
18903 if (sizeof (ac__type_new_))
18904   return 0;
18905   ;
18906   return 0;
18907 }
18908 _ACEOF
18909 rm -f conftest.$ac_objext
18910 if { (ac_try="$ac_compile"
18911 case "(($ac_try" in
18912   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18913   *) ac_try_echo=$ac_try;;
18914 esac
18915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18916   (eval "$ac_compile") 2>conftest.er1
18917   ac_status=$?
18918   grep -v '^ *+' conftest.er1 >conftest.err
18919   rm -f conftest.er1
18920   cat conftest.err >&5
18921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18922   (exit $ac_status); } && {
18923          test -z "$ac_c_werror_flag" ||
18924          test ! -s conftest.err
18925        } && test -s conftest.$ac_objext; then
18926   ac_cv_type_off_t=yes
18927 else
18928   echo "$as_me: failed program was:" >&5
18929 sed 's/^/| /' conftest.$ac_ext >&5
18930
18931         ac_cv_type_off_t=no
18932 fi
18933
18934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18935 fi
18936 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
18937 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
18938 if test $ac_cv_type_off_t = yes; then
18939   :
18940 else
18941
18942 cat >>confdefs.h <<_ACEOF
18943 #define off_t long int
18944 _ACEOF
18945
18946 fi
18947
18948 { echo "$as_me:$LINENO: checking for size_t" >&5
18949 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
18950 if test "${ac_cv_type_size_t+set}" = set; then
18951   echo $ECHO_N "(cached) $ECHO_C" >&6
18952 else
18953   cat >conftest.$ac_ext <<_ACEOF
18954 /* confdefs.h.  */
18955 _ACEOF
18956 cat confdefs.h >>conftest.$ac_ext
18957 cat >>conftest.$ac_ext <<_ACEOF
18958 /* end confdefs.h.  */
18959 $ac_includes_default
18960 typedef size_t ac__type_new_;
18961 int
18962 main ()
18963 {
18964 if ((ac__type_new_ *) 0)
18965   return 0;
18966 if (sizeof (ac__type_new_))
18967   return 0;
18968   ;
18969   return 0;
18970 }
18971 _ACEOF
18972 rm -f conftest.$ac_objext
18973 if { (ac_try="$ac_compile"
18974 case "(($ac_try" in
18975   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18976   *) ac_try_echo=$ac_try;;
18977 esac
18978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18979   (eval "$ac_compile") 2>conftest.er1
18980   ac_status=$?
18981   grep -v '^ *+' conftest.er1 >conftest.err
18982   rm -f conftest.er1
18983   cat conftest.err >&5
18984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18985   (exit $ac_status); } && {
18986          test -z "$ac_c_werror_flag" ||
18987          test ! -s conftest.err
18988        } && test -s conftest.$ac_objext; then
18989   ac_cv_type_size_t=yes
18990 else
18991   echo "$as_me: failed program was:" >&5
18992 sed 's/^/| /' conftest.$ac_ext >&5
18993
18994         ac_cv_type_size_t=no
18995 fi
18996
18997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18998 fi
18999 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
19000 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
19001 if test $ac_cv_type_size_t = yes; then
19002   :
19003 else
19004
19005 cat >>confdefs.h <<_ACEOF
19006 #define size_t unsigned int
19007 _ACEOF
19008
19009 fi
19010
19011
19012   { echo "$as_me:$LINENO: checking for long long" >&5
19013 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
19014 if test "${ac_cv_type_long_long+set}" = set; then
19015   echo $ECHO_N "(cached) $ECHO_C" >&6
19016 else
19017   cat >conftest.$ac_ext <<_ACEOF
19018 /* confdefs.h.  */
19019 _ACEOF
19020 cat confdefs.h >>conftest.$ac_ext
19021 cat >>conftest.$ac_ext <<_ACEOF
19022 /* end confdefs.h.  */
19023 long long ll = 1LL; int i = 63;
19024 int
19025 main ()
19026 {
19027 long long llmax = (long long) -1;
19028      return ll << i | ll >> i | llmax / ll | llmax % ll;
19029   ;
19030   return 0;
19031 }
19032 _ACEOF
19033 rm -f conftest.$ac_objext conftest$ac_exeext
19034 if { (ac_try="$ac_link"
19035 case "(($ac_try" in
19036   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19037   *) ac_try_echo=$ac_try;;
19038 esac
19039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19040   (eval "$ac_link") 2>conftest.er1
19041   ac_status=$?
19042   grep -v '^ *+' conftest.er1 >conftest.err
19043   rm -f conftest.er1
19044   cat conftest.err >&5
19045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19046   (exit $ac_status); } && {
19047          test -z "$ac_c_werror_flag" ||
19048          test ! -s conftest.err
19049        } && test -s conftest$ac_exeext &&
19050        $as_test_x conftest$ac_exeext; then
19051   ac_cv_type_long_long=yes
19052 else
19053   echo "$as_me: failed program was:" >&5
19054 sed 's/^/| /' conftest.$ac_ext >&5
19055
19056         ac_cv_type_long_long=no
19057 fi
19058
19059 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19060       conftest$ac_exeext conftest.$ac_ext
19061 fi
19062 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
19063 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
19064   if test $ac_cv_type_long_long = yes; then
19065
19066 cat >>confdefs.h <<\_ACEOF
19067 #define HAVE_LONG_LONG 1
19068 _ACEOF
19069
19070   fi
19071
19072
19073   { echo "$as_me:$LINENO: checking for long double" >&5
19074 echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
19075 if test "${gt_cv_c_long_double+set}" = set; then
19076   echo $ECHO_N "(cached) $ECHO_C" >&6
19077 else
19078   if test "$GCC" = yes; then
19079        gt_cv_c_long_double=yes
19080      else
19081        cat >conftest.$ac_ext <<_ACEOF
19082 /* confdefs.h.  */
19083 _ACEOF
19084 cat confdefs.h >>conftest.$ac_ext
19085 cat >>conftest.$ac_ext <<_ACEOF
19086 /* end confdefs.h.  */
19087
19088          /* The Stardent Vistra knows sizeof(long double), but does not support it.  */
19089          long double foo = 0.0;
19090          /* On Ultrix 4.3 cc, long double is 4 and double is 8.  */
19091          int array [2*(sizeof(long double) >= sizeof(double)) - 1];
19092
19093 int
19094 main ()
19095 {
19096
19097   ;
19098   return 0;
19099 }
19100 _ACEOF
19101 rm -f conftest.$ac_objext
19102 if { (ac_try="$ac_compile"
19103 case "(($ac_try" in
19104   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19105   *) ac_try_echo=$ac_try;;
19106 esac
19107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19108   (eval "$ac_compile") 2>conftest.er1
19109   ac_status=$?
19110   grep -v '^ *+' conftest.er1 >conftest.err
19111   rm -f conftest.er1
19112   cat conftest.err >&5
19113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19114   (exit $ac_status); } && {
19115          test -z "$ac_c_werror_flag" ||
19116          test ! -s conftest.err
19117        } && test -s conftest.$ac_objext; then
19118   gt_cv_c_long_double=yes
19119 else
19120   echo "$as_me: failed program was:" >&5
19121 sed 's/^/| /' conftest.$ac_ext >&5
19122
19123         gt_cv_c_long_double=no
19124 fi
19125
19126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19127      fi
19128 fi
19129 { echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
19130 echo "${ECHO_T}$gt_cv_c_long_double" >&6; }
19131   if test $gt_cv_c_long_double = yes; then
19132
19133 cat >>confdefs.h <<\_ACEOF
19134 #define HAVE_LONG_DOUBLE 1
19135 _ACEOF
19136
19137   fi
19138
19139
19140   { echo "$as_me:$LINENO: checking for wchar_t" >&5
19141 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
19142 if test "${gt_cv_c_wchar_t+set}" = set; then
19143   echo $ECHO_N "(cached) $ECHO_C" >&6
19144 else
19145   cat >conftest.$ac_ext <<_ACEOF
19146 /* confdefs.h.  */
19147 _ACEOF
19148 cat confdefs.h >>conftest.$ac_ext
19149 cat >>conftest.$ac_ext <<_ACEOF
19150 /* end confdefs.h.  */
19151 #include <stddef.h>
19152        wchar_t foo = (wchar_t)'\0';
19153 int
19154 main ()
19155 {
19156
19157   ;
19158   return 0;
19159 }
19160 _ACEOF
19161 rm -f conftest.$ac_objext
19162 if { (ac_try="$ac_compile"
19163 case "(($ac_try" in
19164   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19165   *) ac_try_echo=$ac_try;;
19166 esac
19167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19168   (eval "$ac_compile") 2>conftest.er1
19169   ac_status=$?
19170   grep -v '^ *+' conftest.er1 >conftest.err
19171   rm -f conftest.er1
19172   cat conftest.err >&5
19173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19174   (exit $ac_status); } && {
19175          test -z "$ac_c_werror_flag" ||
19176          test ! -s conftest.err
19177        } && test -s conftest.$ac_objext; then
19178   gt_cv_c_wchar_t=yes
19179 else
19180   echo "$as_me: failed program was:" >&5
19181 sed 's/^/| /' conftest.$ac_ext >&5
19182
19183         gt_cv_c_wchar_t=no
19184 fi
19185
19186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19187 fi
19188 { echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
19189 echo "${ECHO_T}$gt_cv_c_wchar_t" >&6; }
19190   if test $gt_cv_c_wchar_t = yes; then
19191
19192 cat >>confdefs.h <<\_ACEOF
19193 #define HAVE_WCHAR_T 1
19194 _ACEOF
19195
19196   fi
19197
19198
19199   { echo "$as_me:$LINENO: checking for wint_t" >&5
19200 echo $ECHO_N "checking for wint_t... $ECHO_C" >&6; }
19201 if test "${gt_cv_c_wint_t+set}" = set; then
19202   echo $ECHO_N "(cached) $ECHO_C" >&6
19203 else
19204   cat >conftest.$ac_ext <<_ACEOF
19205 /* confdefs.h.  */
19206 _ACEOF
19207 cat confdefs.h >>conftest.$ac_ext
19208 cat >>conftest.$ac_ext <<_ACEOF
19209 /* end confdefs.h.  */
19210 #include <wchar.h>
19211        wint_t foo = (wchar_t)'\0';
19212 int
19213 main ()
19214 {
19215
19216   ;
19217   return 0;
19218 }
19219 _ACEOF
19220 rm -f conftest.$ac_objext
19221 if { (ac_try="$ac_compile"
19222 case "(($ac_try" in
19223   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19224   *) ac_try_echo=$ac_try;;
19225 esac
19226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19227   (eval "$ac_compile") 2>conftest.er1
19228   ac_status=$?
19229   grep -v '^ *+' conftest.er1 >conftest.err
19230   rm -f conftest.er1
19231   cat conftest.err >&5
19232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19233   (exit $ac_status); } && {
19234          test -z "$ac_c_werror_flag" ||
19235          test ! -s conftest.err
19236        } && test -s conftest.$ac_objext; then
19237   gt_cv_c_wint_t=yes
19238 else
19239   echo "$as_me: failed program was:" >&5
19240 sed 's/^/| /' conftest.$ac_ext >&5
19241
19242         gt_cv_c_wint_t=no
19243 fi
19244
19245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19246 fi
19247 { echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
19248 echo "${ECHO_T}$gt_cv_c_wint_t" >&6; }
19249   if test $gt_cv_c_wint_t = yes; then
19250
19251 cat >>confdefs.h <<\_ACEOF
19252 #define HAVE_WINT_T 1
19253 _ACEOF
19254
19255   fi
19256
19257
19258   { echo "$as_me:$LINENO: checking for inttypes.h" >&5
19259 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
19260 if test "${gl_cv_header_inttypes_h+set}" = set; then
19261   echo $ECHO_N "(cached) $ECHO_C" >&6
19262 else
19263   cat >conftest.$ac_ext <<_ACEOF
19264 /* confdefs.h.  */
19265 _ACEOF
19266 cat confdefs.h >>conftest.$ac_ext
19267 cat >>conftest.$ac_ext <<_ACEOF
19268 /* end confdefs.h.  */
19269 #include <sys/types.h>
19270 #include <inttypes.h>
19271 int
19272 main ()
19273 {
19274 uintmax_t i = (uintmax_t) -1;
19275   ;
19276   return 0;
19277 }
19278 _ACEOF
19279 rm -f conftest.$ac_objext
19280 if { (ac_try="$ac_compile"
19281 case "(($ac_try" in
19282   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19283   *) ac_try_echo=$ac_try;;
19284 esac
19285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19286   (eval "$ac_compile") 2>conftest.er1
19287   ac_status=$?
19288   grep -v '^ *+' conftest.er1 >conftest.err
19289   rm -f conftest.er1
19290   cat conftest.err >&5
19291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19292   (exit $ac_status); } && {
19293          test -z "$ac_c_werror_flag" ||
19294          test ! -s conftest.err
19295        } && test -s conftest.$ac_objext; then
19296   gl_cv_header_inttypes_h=yes
19297 else
19298   echo "$as_me: failed program was:" >&5
19299 sed 's/^/| /' conftest.$ac_ext >&5
19300
19301         gl_cv_header_inttypes_h=no
19302 fi
19303
19304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19305 fi
19306 { echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5
19307 echo "${ECHO_T}$gl_cv_header_inttypes_h" >&6; }
19308   if test $gl_cv_header_inttypes_h = yes; then
19309
19310 cat >>confdefs.h <<_ACEOF
19311 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
19312 _ACEOF
19313
19314   fi
19315
19316
19317   { echo "$as_me:$LINENO: checking for stdint.h" >&5
19318 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
19319 if test "${gl_cv_header_stdint_h+set}" = set; then
19320   echo $ECHO_N "(cached) $ECHO_C" >&6
19321 else
19322   cat >conftest.$ac_ext <<_ACEOF
19323 /* confdefs.h.  */
19324 _ACEOF
19325 cat confdefs.h >>conftest.$ac_ext
19326 cat >>conftest.$ac_ext <<_ACEOF
19327 /* end confdefs.h.  */
19328 #include <sys/types.h>
19329 #include <stdint.h>
19330 int
19331 main ()
19332 {
19333 uintmax_t i = (uintmax_t) -1;
19334   ;
19335   return 0;
19336 }
19337 _ACEOF
19338 rm -f conftest.$ac_objext
19339 if { (ac_try="$ac_compile"
19340 case "(($ac_try" in
19341   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19342   *) ac_try_echo=$ac_try;;
19343 esac
19344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19345   (eval "$ac_compile") 2>conftest.er1
19346   ac_status=$?
19347   grep -v '^ *+' conftest.er1 >conftest.err
19348   rm -f conftest.er1
19349   cat conftest.err >&5
19350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19351   (exit $ac_status); } && {
19352          test -z "$ac_c_werror_flag" ||
19353          test ! -s conftest.err
19354        } && test -s conftest.$ac_objext; then
19355   gl_cv_header_stdint_h=yes
19356 else
19357   echo "$as_me: failed program was:" >&5
19358 sed 's/^/| /' conftest.$ac_ext >&5
19359
19360         gl_cv_header_stdint_h=no
19361 fi
19362
19363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19364 fi
19365 { echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
19366 echo "${ECHO_T}$gl_cv_header_stdint_h" >&6; }
19367   if test $gl_cv_header_stdint_h = yes; then
19368
19369 cat >>confdefs.h <<_ACEOF
19370 #define HAVE_STDINT_H_WITH_UINTMAX 1
19371 _ACEOF
19372
19373   fi
19374
19375
19376
19377
19378   { echo "$as_me:$LINENO: checking for intmax_t" >&5
19379 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; }
19380 if test "${gt_cv_c_intmax_t+set}" = set; then
19381   echo $ECHO_N "(cached) $ECHO_C" >&6
19382 else
19383   cat >conftest.$ac_ext <<_ACEOF
19384 /* confdefs.h.  */
19385 _ACEOF
19386 cat confdefs.h >>conftest.$ac_ext
19387 cat >>conftest.$ac_ext <<_ACEOF
19388 /* end confdefs.h.  */
19389
19390 #include <stddef.h>
19391 #include <stdlib.h>
19392 #if HAVE_STDINT_H_WITH_UINTMAX
19393 #include <stdint.h>
19394 #endif
19395 #if HAVE_INTTYPES_H_WITH_UINTMAX
19396 #include <inttypes.h>
19397 #endif
19398
19399 int
19400 main ()
19401 {
19402 intmax_t x = -1;
19403   ;
19404   return 0;
19405 }
19406 _ACEOF
19407 rm -f conftest.$ac_objext
19408 if { (ac_try="$ac_compile"
19409 case "(($ac_try" in
19410   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19411   *) ac_try_echo=$ac_try;;
19412 esac
19413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19414   (eval "$ac_compile") 2>conftest.er1
19415   ac_status=$?
19416   grep -v '^ *+' conftest.er1 >conftest.err
19417   rm -f conftest.er1
19418   cat conftest.err >&5
19419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19420   (exit $ac_status); } && {
19421          test -z "$ac_c_werror_flag" ||
19422          test ! -s conftest.err
19423        } && test -s conftest.$ac_objext; then
19424   gt_cv_c_intmax_t=yes
19425 else
19426   echo "$as_me: failed program was:" >&5
19427 sed 's/^/| /' conftest.$ac_ext >&5
19428
19429         gt_cv_c_intmax_t=no
19430 fi
19431
19432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19433 fi
19434 { echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
19435 echo "${ECHO_T}$gt_cv_c_intmax_t" >&6; }
19436   if test $gt_cv_c_intmax_t = yes; then
19437
19438 cat >>confdefs.h <<\_ACEOF
19439 #define HAVE_INTMAX_T 1
19440 _ACEOF
19441
19442   fi
19443
19444
19445
19446   { echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
19447 echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6; }
19448 if test "${gt_cv_func_printf_posix+set}" = set; then
19449   echo $ECHO_N "(cached) $ECHO_C" >&6
19450 else
19451
19452       if test "$cross_compiling" = yes; then
19453
19454         cat >conftest.$ac_ext <<_ACEOF
19455 /* confdefs.h.  */
19456 _ACEOF
19457 cat confdefs.h >>conftest.$ac_ext
19458 cat >>conftest.$ac_ext <<_ACEOF
19459 /* end confdefs.h.  */
19460
19461 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
19462   notposix
19463 #endif
19464
19465 _ACEOF
19466 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19467   $EGREP "notposix" >/dev/null 2>&1; then
19468   gt_cv_func_printf_posix="guessing no"
19469 else
19470   gt_cv_func_printf_posix="guessing yes"
19471 fi
19472 rm -f conftest*
19473
19474
19475 else
19476   cat >conftest.$ac_ext <<_ACEOF
19477 /* confdefs.h.  */
19478 _ACEOF
19479 cat confdefs.h >>conftest.$ac_ext
19480 cat >>conftest.$ac_ext <<_ACEOF
19481 /* end confdefs.h.  */
19482
19483 #include <stdio.h>
19484 #include <string.h>
19485 /* The string "%2$d %1$d", with dollar characters protected from the shell's
19486    dollar expansion (possibly an autoconf bug).  */
19487 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
19488 static char buf[100];
19489 int main ()
19490 {
19491   sprintf (buf, format, 33, 55);
19492   return (strcmp (buf, "55 33") != 0);
19493 }
19494 _ACEOF
19495 rm -f conftest$ac_exeext
19496 if { (ac_try="$ac_link"
19497 case "(($ac_try" in
19498   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19499   *) ac_try_echo=$ac_try;;
19500 esac
19501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19502   (eval "$ac_link") 2>&5
19503   ac_status=$?
19504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19505   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19506   { (case "(($ac_try" in
19507   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19508   *) ac_try_echo=$ac_try;;
19509 esac
19510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19511   (eval "$ac_try") 2>&5
19512   ac_status=$?
19513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19514   (exit $ac_status); }; }; then
19515   gt_cv_func_printf_posix=yes
19516 else
19517   echo "$as_me: program exited with status $ac_status" >&5
19518 echo "$as_me: failed program was:" >&5
19519 sed 's/^/| /' conftest.$ac_ext >&5
19520
19521 ( exit $ac_status )
19522 gt_cv_func_printf_posix=no
19523 fi
19524 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19525 fi
19526
19527
19528
19529 fi
19530 { echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
19531 echo "${ECHO_T}$gt_cv_func_printf_posix" >&6; }
19532   case $gt_cv_func_printf_posix in
19533     *yes)
19534
19535 cat >>confdefs.h <<\_ACEOF
19536 #define HAVE_POSIX_PRINTF 1
19537 _ACEOF
19538
19539       ;;
19540   esac
19541
19542 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
19543 # for constant arguments.  Useless!
19544 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
19545 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
19546 if test "${ac_cv_working_alloca_h+set}" = set; then
19547   echo $ECHO_N "(cached) $ECHO_C" >&6
19548 else
19549   cat >conftest.$ac_ext <<_ACEOF
19550 /* confdefs.h.  */
19551 _ACEOF
19552 cat confdefs.h >>conftest.$ac_ext
19553 cat >>conftest.$ac_ext <<_ACEOF
19554 /* end confdefs.h.  */
19555 #include <alloca.h>
19556 int
19557 main ()
19558 {
19559 char *p = (char *) alloca (2 * sizeof (int));
19560                           if (p) return 0;
19561   ;
19562   return 0;
19563 }
19564 _ACEOF
19565 rm -f conftest.$ac_objext conftest$ac_exeext
19566 if { (ac_try="$ac_link"
19567 case "(($ac_try" in
19568   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19569   *) ac_try_echo=$ac_try;;
19570 esac
19571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19572   (eval "$ac_link") 2>conftest.er1
19573   ac_status=$?
19574   grep -v '^ *+' conftest.er1 >conftest.err
19575   rm -f conftest.er1
19576   cat conftest.err >&5
19577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19578   (exit $ac_status); } && {
19579          test -z "$ac_c_werror_flag" ||
19580          test ! -s conftest.err
19581        } && test -s conftest$ac_exeext &&
19582        $as_test_x conftest$ac_exeext; then
19583   ac_cv_working_alloca_h=yes
19584 else
19585   echo "$as_me: failed program was:" >&5
19586 sed 's/^/| /' conftest.$ac_ext >&5
19587
19588         ac_cv_working_alloca_h=no
19589 fi
19590
19591 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19592       conftest$ac_exeext conftest.$ac_ext
19593 fi
19594 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
19595 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
19596 if test $ac_cv_working_alloca_h = yes; then
19597
19598 cat >>confdefs.h <<\_ACEOF
19599 #define HAVE_ALLOCA_H 1
19600 _ACEOF
19601
19602 fi
19603
19604 { echo "$as_me:$LINENO: checking for alloca" >&5
19605 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
19606 if test "${ac_cv_func_alloca_works+set}" = set; then
19607   echo $ECHO_N "(cached) $ECHO_C" >&6
19608 else
19609   cat >conftest.$ac_ext <<_ACEOF
19610 /* confdefs.h.  */
19611 _ACEOF
19612 cat confdefs.h >>conftest.$ac_ext
19613 cat >>conftest.$ac_ext <<_ACEOF
19614 /* end confdefs.h.  */
19615 #ifdef __GNUC__
19616 # define alloca __builtin_alloca
19617 #else
19618 # ifdef _MSC_VER
19619 #  include <malloc.h>
19620 #  define alloca _alloca
19621 # else
19622 #  ifdef HAVE_ALLOCA_H
19623 #   include <alloca.h>
19624 #  else
19625 #   ifdef _AIX
19626  #pragma alloca
19627 #   else
19628 #    ifndef alloca /* predefined by HP cc +Olibcalls */
19629 char *alloca ();
19630 #    endif
19631 #   endif
19632 #  endif
19633 # endif
19634 #endif
19635
19636 int
19637 main ()
19638 {
19639 char *p = (char *) alloca (1);
19640                                     if (p) return 0;
19641   ;
19642   return 0;
19643 }
19644 _ACEOF
19645 rm -f conftest.$ac_objext conftest$ac_exeext
19646 if { (ac_try="$ac_link"
19647 case "(($ac_try" in
19648   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19649   *) ac_try_echo=$ac_try;;
19650 esac
19651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19652   (eval "$ac_link") 2>conftest.er1
19653   ac_status=$?
19654   grep -v '^ *+' conftest.er1 >conftest.err
19655   rm -f conftest.er1
19656   cat conftest.err >&5
19657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19658   (exit $ac_status); } && {
19659          test -z "$ac_c_werror_flag" ||
19660          test ! -s conftest.err
19661        } && test -s conftest$ac_exeext &&
19662        $as_test_x conftest$ac_exeext; then
19663   ac_cv_func_alloca_works=yes
19664 else
19665   echo "$as_me: failed program was:" >&5
19666 sed 's/^/| /' conftest.$ac_ext >&5
19667
19668         ac_cv_func_alloca_works=no
19669 fi
19670
19671 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19672       conftest$ac_exeext conftest.$ac_ext
19673 fi
19674 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
19675 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
19676
19677 if test $ac_cv_func_alloca_works = yes; then
19678
19679 cat >>confdefs.h <<\_ACEOF
19680 #define HAVE_ALLOCA 1
19681 _ACEOF
19682
19683 else
19684   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
19685 # that cause trouble.  Some versions do not even contain alloca or
19686 # contain a buggy version.  If you still want to use their alloca,
19687 # use ar to extract alloca.o from them instead of compiling alloca.c.
19688
19689 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
19690
19691 cat >>confdefs.h <<\_ACEOF
19692 #define C_ALLOCA 1
19693 _ACEOF
19694
19695
19696 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
19697 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
19698 if test "${ac_cv_os_cray+set}" = set; then
19699   echo $ECHO_N "(cached) $ECHO_C" >&6
19700 else
19701   cat >conftest.$ac_ext <<_ACEOF
19702 /* confdefs.h.  */
19703 _ACEOF
19704 cat confdefs.h >>conftest.$ac_ext
19705 cat >>conftest.$ac_ext <<_ACEOF
19706 /* end confdefs.h.  */
19707 #if defined CRAY && ! defined CRAY2
19708 webecray
19709 #else
19710 wenotbecray
19711 #endif
19712
19713 _ACEOF
19714 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19715   $EGREP "webecray" >/dev/null 2>&1; then
19716   ac_cv_os_cray=yes
19717 else
19718   ac_cv_os_cray=no
19719 fi
19720 rm -f conftest*
19721
19722 fi
19723 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
19724 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
19725 if test $ac_cv_os_cray = yes; then
19726   for ac_func in _getb67 GETB67 getb67; do
19727     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19728 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19729 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19730 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19731   echo $ECHO_N "(cached) $ECHO_C" >&6
19732 else
19733   cat >conftest.$ac_ext <<_ACEOF
19734 /* confdefs.h.  */
19735 _ACEOF
19736 cat confdefs.h >>conftest.$ac_ext
19737 cat >>conftest.$ac_ext <<_ACEOF
19738 /* end confdefs.h.  */
19739 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19740    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19741 #define $ac_func innocuous_$ac_func
19742
19743 /* System header to define __stub macros and hopefully few prototypes,
19744     which can conflict with char $ac_func (); below.
19745     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19746     <limits.h> exists even on freestanding compilers.  */
19747
19748 #ifdef __STDC__
19749 # include <limits.h>
19750 #else
19751 # include <assert.h>
19752 #endif
19753
19754 #undef $ac_func
19755
19756 /* Override any GCC internal prototype to avoid an error.
19757    Use char because int might match the return type of a GCC
19758    builtin and then its argument prototype would still apply.  */
19759 #ifdef __cplusplus
19760 extern "C"
19761 #endif
19762 char $ac_func ();
19763 /* The GNU C library defines this for functions which it implements
19764     to always fail with ENOSYS.  Some functions are actually named
19765     something starting with __ and the normal name is an alias.  */
19766 #if defined __stub_$ac_func || defined __stub___$ac_func
19767 choke me
19768 #endif
19769
19770 int
19771 main ()
19772 {
19773 return $ac_func ();
19774   ;
19775   return 0;
19776 }
19777 _ACEOF
19778 rm -f conftest.$ac_objext conftest$ac_exeext
19779 if { (ac_try="$ac_link"
19780 case "(($ac_try" in
19781   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19782   *) ac_try_echo=$ac_try;;
19783 esac
19784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19785   (eval "$ac_link") 2>conftest.er1
19786   ac_status=$?
19787   grep -v '^ *+' conftest.er1 >conftest.err
19788   rm -f conftest.er1
19789   cat conftest.err >&5
19790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19791   (exit $ac_status); } && {
19792          test -z "$ac_c_werror_flag" ||
19793          test ! -s conftest.err
19794        } && test -s conftest$ac_exeext &&
19795        $as_test_x conftest$ac_exeext; then
19796   eval "$as_ac_var=yes"
19797 else
19798   echo "$as_me: failed program was:" >&5
19799 sed 's/^/| /' conftest.$ac_ext >&5
19800
19801         eval "$as_ac_var=no"
19802 fi
19803
19804 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19805       conftest$ac_exeext conftest.$ac_ext
19806 fi
19807 ac_res=`eval echo '${'$as_ac_var'}'`
19808                { echo "$as_me:$LINENO: result: $ac_res" >&5
19809 echo "${ECHO_T}$ac_res" >&6; }
19810 if test `eval echo '${'$as_ac_var'}'` = yes; then
19811
19812 cat >>confdefs.h <<_ACEOF
19813 #define CRAY_STACKSEG_END $ac_func
19814 _ACEOF
19815
19816     break
19817 fi
19818
19819   done
19820 fi
19821
19822 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
19823 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
19824 if test "${ac_cv_c_stack_direction+set}" = set; then
19825   echo $ECHO_N "(cached) $ECHO_C" >&6
19826 else
19827   if test "$cross_compiling" = yes; then
19828   ac_cv_c_stack_direction=0
19829 else
19830   cat >conftest.$ac_ext <<_ACEOF
19831 /* confdefs.h.  */
19832 _ACEOF
19833 cat confdefs.h >>conftest.$ac_ext
19834 cat >>conftest.$ac_ext <<_ACEOF
19835 /* end confdefs.h.  */
19836 $ac_includes_default
19837 int
19838 find_stack_direction ()
19839 {
19840   static char *addr = 0;
19841   auto char dummy;
19842   if (addr == 0)
19843     {
19844       addr = &dummy;
19845       return find_stack_direction ();
19846     }
19847   else
19848     return (&dummy > addr) ? 1 : -1;
19849 }
19850
19851 int
19852 main ()
19853 {
19854   return find_stack_direction () < 0;
19855 }
19856 _ACEOF
19857 rm -f conftest$ac_exeext
19858 if { (ac_try="$ac_link"
19859 case "(($ac_try" in
19860   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19861   *) ac_try_echo=$ac_try;;
19862 esac
19863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19864   (eval "$ac_link") 2>&5
19865   ac_status=$?
19866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19867   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19868   { (case "(($ac_try" in
19869   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19870   *) ac_try_echo=$ac_try;;
19871 esac
19872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19873   (eval "$ac_try") 2>&5
19874   ac_status=$?
19875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19876   (exit $ac_status); }; }; then
19877   ac_cv_c_stack_direction=1
19878 else
19879   echo "$as_me: program exited with status $ac_status" >&5
19880 echo "$as_me: failed program was:" >&5
19881 sed 's/^/| /' conftest.$ac_ext >&5
19882
19883 ( exit $ac_status )
19884 ac_cv_c_stack_direction=-1
19885 fi
19886 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19887 fi
19888
19889
19890 fi
19891 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
19892 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
19893
19894 cat >>confdefs.h <<_ACEOF
19895 #define STACK_DIRECTION $ac_cv_c_stack_direction
19896 _ACEOF
19897
19898
19899 fi
19900
19901
19902
19903 for ac_header in stdlib.h unistd.h
19904 do
19905 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19906 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19907   { echo "$as_me:$LINENO: checking for $ac_header" >&5
19908 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19909 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19910   echo $ECHO_N "(cached) $ECHO_C" >&6
19911 fi
19912 ac_res=`eval echo '${'$as_ac_Header'}'`
19913                { echo "$as_me:$LINENO: result: $ac_res" >&5
19914 echo "${ECHO_T}$ac_res" >&6; }
19915 else
19916   # Is the header compilable?
19917 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19918 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19919 cat >conftest.$ac_ext <<_ACEOF
19920 /* confdefs.h.  */
19921 _ACEOF
19922 cat confdefs.h >>conftest.$ac_ext
19923 cat >>conftest.$ac_ext <<_ACEOF
19924 /* end confdefs.h.  */
19925 $ac_includes_default
19926 #include <$ac_header>
19927 _ACEOF
19928 rm -f conftest.$ac_objext
19929 if { (ac_try="$ac_compile"
19930 case "(($ac_try" in
19931   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19932   *) ac_try_echo=$ac_try;;
19933 esac
19934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19935   (eval "$ac_compile") 2>conftest.er1
19936   ac_status=$?
19937   grep -v '^ *+' conftest.er1 >conftest.err
19938   rm -f conftest.er1
19939   cat conftest.err >&5
19940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19941   (exit $ac_status); } && {
19942          test -z "$ac_c_werror_flag" ||
19943          test ! -s conftest.err
19944        } && test -s conftest.$ac_objext; then
19945   ac_header_compiler=yes
19946 else
19947   echo "$as_me: failed program was:" >&5
19948 sed 's/^/| /' conftest.$ac_ext >&5
19949
19950         ac_header_compiler=no
19951 fi
19952
19953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19954 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19955 echo "${ECHO_T}$ac_header_compiler" >&6; }
19956
19957 # Is the header present?
19958 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19959 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19960 cat >conftest.$ac_ext <<_ACEOF
19961 /* confdefs.h.  */
19962 _ACEOF
19963 cat confdefs.h >>conftest.$ac_ext
19964 cat >>conftest.$ac_ext <<_ACEOF
19965 /* end confdefs.h.  */
19966 #include <$ac_header>
19967 _ACEOF
19968 if { (ac_try="$ac_cpp conftest.$ac_ext"
19969 case "(($ac_try" in
19970   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19971   *) ac_try_echo=$ac_try;;
19972 esac
19973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19974   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19975   ac_status=$?
19976   grep -v '^ *+' conftest.er1 >conftest.err
19977   rm -f conftest.er1
19978   cat conftest.err >&5
19979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19980   (exit $ac_status); } >/dev/null && {
19981          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19982          test ! -s conftest.err
19983        }; then
19984   ac_header_preproc=yes
19985 else
19986   echo "$as_me: failed program was:" >&5
19987 sed 's/^/| /' conftest.$ac_ext >&5
19988
19989   ac_header_preproc=no
19990 fi
19991
19992 rm -f conftest.err conftest.$ac_ext
19993 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19994 echo "${ECHO_T}$ac_header_preproc" >&6; }
19995
19996 # So?  What about this header?
19997 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19998   yes:no: )
19999     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20000 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20001     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20002 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20003     ac_header_preproc=yes
20004     ;;
20005   no:yes:* )
20006     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20007 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20008     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20009 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20010     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20011 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20012     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20013 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20014     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20015 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20016     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20017 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20018
20019     ;;
20020 esac
20021 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20022 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20023 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20024   echo $ECHO_N "(cached) $ECHO_C" >&6
20025 else
20026   eval "$as_ac_Header=\$ac_header_preproc"
20027 fi
20028 ac_res=`eval echo '${'$as_ac_Header'}'`
20029                { echo "$as_me:$LINENO: result: $ac_res" >&5
20030 echo "${ECHO_T}$ac_res" >&6; }
20031
20032 fi
20033 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20034   cat >>confdefs.h <<_ACEOF
20035 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20036 _ACEOF
20037
20038 fi
20039
20040 done
20041
20042
20043 for ac_func in getpagesize
20044 do
20045 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20046 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20047 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20048 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20049   echo $ECHO_N "(cached) $ECHO_C" >&6
20050 else
20051   cat >conftest.$ac_ext <<_ACEOF
20052 /* confdefs.h.  */
20053 _ACEOF
20054 cat confdefs.h >>conftest.$ac_ext
20055 cat >>conftest.$ac_ext <<_ACEOF
20056 /* end confdefs.h.  */
20057 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20058    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20059 #define $ac_func innocuous_$ac_func
20060
20061 /* System header to define __stub macros and hopefully few prototypes,
20062     which can conflict with char $ac_func (); below.
20063     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20064     <limits.h> exists even on freestanding compilers.  */
20065
20066 #ifdef __STDC__
20067 # include <limits.h>
20068 #else
20069 # include <assert.h>
20070 #endif
20071
20072 #undef $ac_func
20073
20074 /* Override any GCC internal prototype to avoid an error.
20075    Use char because int might match the return type of a GCC
20076    builtin and then its argument prototype would still apply.  */
20077 #ifdef __cplusplus
20078 extern "C"
20079 #endif
20080 char $ac_func ();
20081 /* The GNU C library defines this for functions which it implements
20082     to always fail with ENOSYS.  Some functions are actually named
20083     something starting with __ and the normal name is an alias.  */
20084 #if defined __stub_$ac_func || defined __stub___$ac_func
20085 choke me
20086 #endif
20087
20088 int
20089 main ()
20090 {
20091 return $ac_func ();
20092   ;
20093   return 0;
20094 }
20095 _ACEOF
20096 rm -f conftest.$ac_objext conftest$ac_exeext
20097 if { (ac_try="$ac_link"
20098 case "(($ac_try" in
20099   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20100   *) ac_try_echo=$ac_try;;
20101 esac
20102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20103   (eval "$ac_link") 2>conftest.er1
20104   ac_status=$?
20105   grep -v '^ *+' conftest.er1 >conftest.err
20106   rm -f conftest.er1
20107   cat conftest.err >&5
20108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20109   (exit $ac_status); } && {
20110          test -z "$ac_c_werror_flag" ||
20111          test ! -s conftest.err
20112        } && test -s conftest$ac_exeext &&
20113        $as_test_x conftest$ac_exeext; then
20114   eval "$as_ac_var=yes"
20115 else
20116   echo "$as_me: failed program was:" >&5
20117 sed 's/^/| /' conftest.$ac_ext >&5
20118
20119         eval "$as_ac_var=no"
20120 fi
20121
20122 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20123       conftest$ac_exeext conftest.$ac_ext
20124 fi
20125 ac_res=`eval echo '${'$as_ac_var'}'`
20126                { echo "$as_me:$LINENO: result: $ac_res" >&5
20127 echo "${ECHO_T}$ac_res" >&6; }
20128 if test `eval echo '${'$as_ac_var'}'` = yes; then
20129   cat >>confdefs.h <<_ACEOF
20130 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20131 _ACEOF
20132
20133 fi
20134 done
20135
20136 { echo "$as_me:$LINENO: checking for working mmap" >&5
20137 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20138 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20139   echo $ECHO_N "(cached) $ECHO_C" >&6
20140 else
20141   if test "$cross_compiling" = yes; then
20142   ac_cv_func_mmap_fixed_mapped=no
20143 else
20144   cat >conftest.$ac_ext <<_ACEOF
20145 /* confdefs.h.  */
20146 _ACEOF
20147 cat confdefs.h >>conftest.$ac_ext
20148 cat >>conftest.$ac_ext <<_ACEOF
20149 /* end confdefs.h.  */
20150 $ac_includes_default
20151 /* malloc might have been renamed as rpl_malloc. */
20152 #undef malloc
20153
20154 /* Thanks to Mike Haertel and Jim Avera for this test.
20155    Here is a matrix of mmap possibilities:
20156         mmap private not fixed
20157         mmap private fixed at somewhere currently unmapped
20158         mmap private fixed at somewhere already mapped
20159         mmap shared not fixed
20160         mmap shared fixed at somewhere currently unmapped
20161         mmap shared fixed at somewhere already mapped
20162    For private mappings, we should verify that changes cannot be read()
20163    back from the file, nor mmap's back from the file at a different
20164    address.  (There have been systems where private was not correctly
20165    implemented like the infamous i386 svr4.0, and systems where the
20166    VM page cache was not coherent with the file system buffer cache
20167    like early versions of FreeBSD and possibly contemporary NetBSD.)
20168    For shared mappings, we should conversely verify that changes get
20169    propagated back to all the places they're supposed to be.
20170
20171    Grep wants private fixed already mapped.
20172    The main things grep needs to know about mmap are:
20173    * does it exist and is it safe to write into the mmap'd area
20174    * how to use it (BSD variants)  */
20175
20176 #include <fcntl.h>
20177 #include <sys/mman.h>
20178
20179 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
20180 char *malloc ();
20181 #endif
20182
20183 /* This mess was copied from the GNU getpagesize.h.  */
20184 #ifndef HAVE_GETPAGESIZE
20185 /* Assume that all systems that can run configure have sys/param.h.  */
20186 # ifndef HAVE_SYS_PARAM_H
20187 #  define HAVE_SYS_PARAM_H 1
20188 # endif
20189
20190 # ifdef _SC_PAGESIZE
20191 #  define getpagesize() sysconf(_SC_PAGESIZE)
20192 # else /* no _SC_PAGESIZE */
20193 #  ifdef HAVE_SYS_PARAM_H
20194 #   include <sys/param.h>
20195 #   ifdef EXEC_PAGESIZE
20196 #    define getpagesize() EXEC_PAGESIZE
20197 #   else /* no EXEC_PAGESIZE */
20198 #    ifdef NBPG
20199 #     define getpagesize() NBPG * CLSIZE
20200 #     ifndef CLSIZE
20201 #      define CLSIZE 1
20202 #     endif /* no CLSIZE */
20203 #    else /* no NBPG */
20204 #     ifdef NBPC
20205 #      define getpagesize() NBPC
20206 #     else /* no NBPC */
20207 #      ifdef PAGESIZE
20208 #       define getpagesize() PAGESIZE
20209 #      endif /* PAGESIZE */
20210 #     endif /* no NBPC */
20211 #    endif /* no NBPG */
20212 #   endif /* no EXEC_PAGESIZE */
20213 #  else /* no HAVE_SYS_PARAM_H */
20214 #   define getpagesize() 8192   /* punt totally */
20215 #  endif /* no HAVE_SYS_PARAM_H */
20216 # endif /* no _SC_PAGESIZE */
20217
20218 #endif /* no HAVE_GETPAGESIZE */
20219
20220 int
20221 main ()
20222 {
20223   char *data, *data2, *data3;
20224   int i, pagesize;
20225   int fd;
20226
20227   pagesize = getpagesize ();
20228
20229   /* First, make a file with some known garbage in it. */
20230   data = (char *) malloc (pagesize);
20231   if (!data)
20232     return 1;
20233   for (i = 0; i < pagesize; ++i)
20234     *(data + i) = rand ();
20235   umask (0);
20236   fd = creat ("conftest.mmap", 0600);
20237   if (fd < 0)
20238     return 1;
20239   if (write (fd, data, pagesize) != pagesize)
20240     return 1;
20241   close (fd);
20242
20243   /* Next, try to mmap the file at a fixed address which already has
20244      something else allocated at it.  If we can, also make sure that
20245      we see the same garbage.  */
20246   fd = open ("conftest.mmap", O_RDWR);
20247   if (fd < 0)
20248     return 1;
20249   data2 = (char *) malloc (2 * pagesize);
20250   if (!data2)
20251     return 1;
20252   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
20253   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20254                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
20255     return 1;
20256   for (i = 0; i < pagesize; ++i)
20257     if (*(data + i) != *(data2 + i))
20258       return 1;
20259
20260   /* Finally, make sure that changes to the mapped area do not
20261      percolate back to the file as seen by read().  (This is a bug on
20262      some variants of i386 svr4.0.)  */
20263   for (i = 0; i < pagesize; ++i)
20264     *(data2 + i) = *(data2 + i) + 1;
20265   data3 = (char *) malloc (pagesize);
20266   if (!data3)
20267     return 1;
20268   if (read (fd, data3, pagesize) != pagesize)
20269     return 1;
20270   for (i = 0; i < pagesize; ++i)
20271     if (*(data + i) != *(data3 + i))
20272       return 1;
20273   close (fd);
20274   return 0;
20275 }
20276 _ACEOF
20277 rm -f conftest$ac_exeext
20278 if { (ac_try="$ac_link"
20279 case "(($ac_try" in
20280   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20281   *) ac_try_echo=$ac_try;;
20282 esac
20283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20284   (eval "$ac_link") 2>&5
20285   ac_status=$?
20286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20287   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20288   { (case "(($ac_try" in
20289   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20290   *) ac_try_echo=$ac_try;;
20291 esac
20292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20293   (eval "$ac_try") 2>&5
20294   ac_status=$?
20295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20296   (exit $ac_status); }; }; then
20297   ac_cv_func_mmap_fixed_mapped=yes
20298 else
20299   echo "$as_me: program exited with status $ac_status" >&5
20300 echo "$as_me: failed program was:" >&5
20301 sed 's/^/| /' conftest.$ac_ext >&5
20302
20303 ( exit $ac_status )
20304 ac_cv_func_mmap_fixed_mapped=no
20305 fi
20306 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20307 fi
20308
20309
20310 fi
20311 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20312 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
20313 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20314
20315 cat >>confdefs.h <<\_ACEOF
20316 #define HAVE_MMAP 1
20317 _ACEOF
20318
20319 fi
20320 rm -f conftest.mmap
20321
20322
20323     { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
20324 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6; }
20325 if test "${ac_cv_gnu_library_2_1+set}" = set; then
20326   echo $ECHO_N "(cached) $ECHO_C" >&6
20327 else
20328   cat >conftest.$ac_ext <<_ACEOF
20329 /* confdefs.h.  */
20330 _ACEOF
20331 cat confdefs.h >>conftest.$ac_ext
20332 cat >>conftest.$ac_ext <<_ACEOF
20333 /* end confdefs.h.  */
20334
20335 #include <features.h>
20336 #ifdef __GNU_LIBRARY__
20337  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
20338   Lucky GNU user
20339  #endif
20340 #endif
20341
20342 _ACEOF
20343 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20344   $EGREP "Lucky GNU user" >/dev/null 2>&1; then
20345   ac_cv_gnu_library_2_1=yes
20346 else
20347   ac_cv_gnu_library_2_1=no
20348 fi
20349 rm -f conftest*
20350
20351
20352
20353 fi
20354 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
20355 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6; }
20356
20357     GLIBC21="$ac_cv_gnu_library_2_1"
20358
20359
20360
20361
20362   { echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
20363 echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6; }
20364 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
20365   echo $ECHO_N "(cached) $ECHO_C" >&6
20366 else
20367
20368       if test "$cross_compiling" = yes; then
20369
20370           # Guess based on the CPU.
20371           case "$host_cpu" in
20372             alpha* | i3456786 | m68k | s390*)
20373               gt_cv_int_divbyzero_sigfpe="guessing yes";;
20374             *)
20375               gt_cv_int_divbyzero_sigfpe="guessing no";;
20376           esac
20377
20378 else
20379   cat >conftest.$ac_ext <<_ACEOF
20380 /* confdefs.h.  */
20381 _ACEOF
20382 cat confdefs.h >>conftest.$ac_ext
20383 cat >>conftest.$ac_ext <<_ACEOF
20384 /* end confdefs.h.  */
20385
20386 #include <stdlib.h>
20387 #include <signal.h>
20388
20389 static void
20390 #ifdef __cplusplus
20391 sigfpe_handler (int sig)
20392 #else
20393 sigfpe_handler (sig) int sig;
20394 #endif
20395 {
20396   /* Exit with code 0 if SIGFPE, with code 1 if any other signal.  */
20397   exit (sig != SIGFPE);
20398 }
20399
20400 int x = 1;
20401 int y = 0;
20402 int z;
20403 int nan;
20404
20405 int main ()
20406 {
20407   signal (SIGFPE, sigfpe_handler);
20408 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP.  */
20409 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
20410   signal (SIGTRAP, sigfpe_handler);
20411 #endif
20412 /* Linux/SPARC yields signal SIGILL.  */
20413 #if defined (__sparc__) && defined (__linux__)
20414   signal (SIGILL, sigfpe_handler);
20415 #endif
20416
20417   z = x / y;
20418   nan = y / y;
20419   exit (1);
20420 }
20421
20422 _ACEOF
20423 rm -f conftest$ac_exeext
20424 if { (ac_try="$ac_link"
20425 case "(($ac_try" in
20426   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20427   *) ac_try_echo=$ac_try;;
20428 esac
20429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20430   (eval "$ac_link") 2>&5
20431   ac_status=$?
20432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20433   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20434   { (case "(($ac_try" in
20435   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20436   *) ac_try_echo=$ac_try;;
20437 esac
20438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20439   (eval "$ac_try") 2>&5
20440   ac_status=$?
20441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20442   (exit $ac_status); }; }; then
20443   gt_cv_int_divbyzero_sigfpe=yes
20444 else
20445   echo "$as_me: program exited with status $ac_status" >&5
20446 echo "$as_me: failed program was:" >&5
20447 sed 's/^/| /' conftest.$ac_ext >&5
20448
20449 ( exit $ac_status )
20450 gt_cv_int_divbyzero_sigfpe=no
20451 fi
20452 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20453 fi
20454
20455
20456
20457 fi
20458 { echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
20459 echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6; }
20460   case "$gt_cv_int_divbyzero_sigfpe" in
20461     *yes) value=1;;
20462     *) value=0;;
20463   esac
20464
20465 cat >>confdefs.h <<_ACEOF
20466 #define INTDIV0_RAISES_SIGFPE $value
20467 _ACEOF
20468
20469
20470
20471   { echo "$as_me:$LINENO: checking for unsigned long long" >&5
20472 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; }
20473 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
20474   echo $ECHO_N "(cached) $ECHO_C" >&6
20475 else
20476   cat >conftest.$ac_ext <<_ACEOF
20477 /* confdefs.h.  */
20478 _ACEOF
20479 cat confdefs.h >>conftest.$ac_ext
20480 cat >>conftest.$ac_ext <<_ACEOF
20481 /* end confdefs.h.  */
20482 unsigned long long ull = 1ULL; int i = 63;
20483 int
20484 main ()
20485 {
20486 unsigned long long ullmax = (unsigned long long) -1;
20487      return ull << i | ull >> i | ullmax / ull | ullmax % ull;
20488   ;
20489   return 0;
20490 }
20491 _ACEOF
20492 rm -f conftest.$ac_objext conftest$ac_exeext
20493 if { (ac_try="$ac_link"
20494 case "(($ac_try" in
20495   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20496   *) ac_try_echo=$ac_try;;
20497 esac
20498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20499   (eval "$ac_link") 2>conftest.er1
20500   ac_status=$?
20501   grep -v '^ *+' conftest.er1 >conftest.err
20502   rm -f conftest.er1
20503   cat conftest.err >&5
20504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20505   (exit $ac_status); } && {
20506          test -z "$ac_c_werror_flag" ||
20507          test ! -s conftest.err
20508        } && test -s conftest$ac_exeext &&
20509        $as_test_x conftest$ac_exeext; then
20510   ac_cv_type_unsigned_long_long=yes
20511 else
20512   echo "$as_me: failed program was:" >&5
20513 sed 's/^/| /' conftest.$ac_ext >&5
20514
20515         ac_cv_type_unsigned_long_long=no
20516 fi
20517
20518 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20519       conftest$ac_exeext conftest.$ac_ext
20520 fi
20521 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
20522 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; }
20523   if test $ac_cv_type_unsigned_long_long = yes; then
20524
20525 cat >>confdefs.h <<\_ACEOF
20526 #define HAVE_UNSIGNED_LONG_LONG 1
20527 _ACEOF
20528
20529   fi
20530
20531
20532
20533
20534   if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
20535
20536     test $ac_cv_type_unsigned_long_long = yes \
20537       && ac_type='unsigned long long' \
20538       || ac_type='unsigned long'
20539
20540 cat >>confdefs.h <<_ACEOF
20541 #define uintmax_t $ac_type
20542 _ACEOF
20543
20544   else
20545
20546 cat >>confdefs.h <<\_ACEOF
20547 #define HAVE_UINTMAX_T 1
20548 _ACEOF
20549
20550   fi
20551
20552
20553   { echo "$as_me:$LINENO: checking for inttypes.h" >&5
20554 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
20555 if test "${gt_cv_header_inttypes_h+set}" = set; then
20556   echo $ECHO_N "(cached) $ECHO_C" >&6
20557 else
20558
20559     cat >conftest.$ac_ext <<_ACEOF
20560 /* confdefs.h.  */
20561 _ACEOF
20562 cat confdefs.h >>conftest.$ac_ext
20563 cat >>conftest.$ac_ext <<_ACEOF
20564 /* end confdefs.h.  */
20565 #include <sys/types.h>
20566 #include <inttypes.h>
20567 int
20568 main ()
20569 {
20570
20571   ;
20572   return 0;
20573 }
20574 _ACEOF
20575 rm -f conftest.$ac_objext
20576 if { (ac_try="$ac_compile"
20577 case "(($ac_try" in
20578   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20579   *) ac_try_echo=$ac_try;;
20580 esac
20581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20582   (eval "$ac_compile") 2>conftest.er1
20583   ac_status=$?
20584   grep -v '^ *+' conftest.er1 >conftest.err
20585   rm -f conftest.er1
20586   cat conftest.err >&5
20587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20588   (exit $ac_status); } && {
20589          test -z "$ac_c_werror_flag" ||
20590          test ! -s conftest.err
20591        } && test -s conftest.$ac_objext; then
20592   gt_cv_header_inttypes_h=yes
20593 else
20594   echo "$as_me: failed program was:" >&5
20595 sed 's/^/| /' conftest.$ac_ext >&5
20596
20597         gt_cv_header_inttypes_h=no
20598 fi
20599
20600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20601
20602 fi
20603 { echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
20604 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6; }
20605   if test $gt_cv_header_inttypes_h = yes; then
20606
20607 cat >>confdefs.h <<_ACEOF
20608 #define HAVE_INTTYPES_H 1
20609 _ACEOF
20610
20611   fi
20612
20613
20614
20615   if test $gt_cv_header_inttypes_h = yes; then
20616     { echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
20617 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6; }
20618 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
20619   echo $ECHO_N "(cached) $ECHO_C" >&6
20620 else
20621
20622         cat >conftest.$ac_ext <<_ACEOF
20623 /* confdefs.h.  */
20624 _ACEOF
20625 cat confdefs.h >>conftest.$ac_ext
20626 cat >>conftest.$ac_ext <<_ACEOF
20627 /* end confdefs.h.  */
20628 #include <inttypes.h>
20629 #ifdef PRId32
20630 char *p = PRId32;
20631 #endif
20632
20633 int
20634 main ()
20635 {
20636
20637   ;
20638   return 0;
20639 }
20640 _ACEOF
20641 rm -f conftest.$ac_objext
20642 if { (ac_try="$ac_compile"
20643 case "(($ac_try" in
20644   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20645   *) ac_try_echo=$ac_try;;
20646 esac
20647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20648   (eval "$ac_compile") 2>conftest.er1
20649   ac_status=$?
20650   grep -v '^ *+' conftest.er1 >conftest.err
20651   rm -f conftest.er1
20652   cat conftest.err >&5
20653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20654   (exit $ac_status); } && {
20655          test -z "$ac_c_werror_flag" ||
20656          test ! -s conftest.err
20657        } && test -s conftest.$ac_objext; then
20658   gt_cv_inttypes_pri_broken=no
20659 else
20660   echo "$as_me: failed program was:" >&5
20661 sed 's/^/| /' conftest.$ac_ext >&5
20662
20663         gt_cv_inttypes_pri_broken=yes
20664 fi
20665
20666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20667
20668 fi
20669 { echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
20670 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6; }
20671   fi
20672   if test "$gt_cv_inttypes_pri_broken" = yes; then
20673
20674 cat >>confdefs.h <<_ACEOF
20675 #define PRI_MACROS_BROKEN 1
20676 _ACEOF
20677
20678   fi
20679
20680
20681
20682 for ac_header in stdint.h
20683 do
20684 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20685 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20686   { echo "$as_me:$LINENO: checking for $ac_header" >&5
20687 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20688 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20689   echo $ECHO_N "(cached) $ECHO_C" >&6
20690 fi
20691 ac_res=`eval echo '${'$as_ac_Header'}'`
20692                { echo "$as_me:$LINENO: result: $ac_res" >&5
20693 echo "${ECHO_T}$ac_res" >&6; }
20694 else
20695   # Is the header compilable?
20696 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20697 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20698 cat >conftest.$ac_ext <<_ACEOF
20699 /* confdefs.h.  */
20700 _ACEOF
20701 cat confdefs.h >>conftest.$ac_ext
20702 cat >>conftest.$ac_ext <<_ACEOF
20703 /* end confdefs.h.  */
20704 $ac_includes_default
20705 #include <$ac_header>
20706 _ACEOF
20707 rm -f conftest.$ac_objext
20708 if { (ac_try="$ac_compile"
20709 case "(($ac_try" in
20710   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20711   *) ac_try_echo=$ac_try;;
20712 esac
20713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20714   (eval "$ac_compile") 2>conftest.er1
20715   ac_status=$?
20716   grep -v '^ *+' conftest.er1 >conftest.err
20717   rm -f conftest.er1
20718   cat conftest.err >&5
20719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20720   (exit $ac_status); } && {
20721          test -z "$ac_c_werror_flag" ||
20722          test ! -s conftest.err
20723        } && test -s conftest.$ac_objext; then
20724   ac_header_compiler=yes
20725 else
20726   echo "$as_me: failed program was:" >&5
20727 sed 's/^/| /' conftest.$ac_ext >&5
20728
20729         ac_header_compiler=no
20730 fi
20731
20732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20733 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20734 echo "${ECHO_T}$ac_header_compiler" >&6; }
20735
20736 # Is the header present?
20737 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20738 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20739 cat >conftest.$ac_ext <<_ACEOF
20740 /* confdefs.h.  */
20741 _ACEOF
20742 cat confdefs.h >>conftest.$ac_ext
20743 cat >>conftest.$ac_ext <<_ACEOF
20744 /* end confdefs.h.  */
20745 #include <$ac_header>
20746 _ACEOF
20747 if { (ac_try="$ac_cpp conftest.$ac_ext"
20748 case "(($ac_try" in
20749   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20750   *) ac_try_echo=$ac_try;;
20751 esac
20752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20753   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20754   ac_status=$?
20755   grep -v '^ *+' conftest.er1 >conftest.err
20756   rm -f conftest.er1
20757   cat conftest.err >&5
20758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20759   (exit $ac_status); } >/dev/null && {
20760          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20761          test ! -s conftest.err
20762        }; then
20763   ac_header_preproc=yes
20764 else
20765   echo "$as_me: failed program was:" >&5
20766 sed 's/^/| /' conftest.$ac_ext >&5
20767
20768   ac_header_preproc=no
20769 fi
20770
20771 rm -f conftest.err conftest.$ac_ext
20772 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20773 echo "${ECHO_T}$ac_header_preproc" >&6; }
20774
20775 # So?  What about this header?
20776 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20777   yes:no: )
20778     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20779 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20780     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20781 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20782     ac_header_preproc=yes
20783     ;;
20784   no:yes:* )
20785     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20786 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20787     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20788 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20789     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20790 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20791     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20792 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20793     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20794 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20795     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20796 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20797
20798     ;;
20799 esac
20800 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20801 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20802 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20803   echo $ECHO_N "(cached) $ECHO_C" >&6
20804 else
20805   eval "$as_ac_Header=\$ac_header_preproc"
20806 fi
20807 ac_res=`eval echo '${'$as_ac_Header'}'`
20808                { echo "$as_me:$LINENO: result: $ac_res" >&5
20809 echo "${ECHO_T}$ac_res" >&6; }
20810
20811 fi
20812 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20813   cat >>confdefs.h <<_ACEOF
20814 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20815 _ACEOF
20816
20817 fi
20818
20819 done
20820
20821     { echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
20822 echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6; }
20823   result=
20824   cat >conftest.$ac_ext <<_ACEOF
20825 /* confdefs.h.  */
20826 _ACEOF
20827 cat confdefs.h >>conftest.$ac_ext
20828 cat >>conftest.$ac_ext <<_ACEOF
20829 /* end confdefs.h.  */
20830
20831 #include <limits.h>
20832 #if HAVE_STDINT_H
20833 #include <stdint.h>
20834 #endif
20835 #ifdef SIZE_MAX
20836 Found it
20837 #endif
20838
20839 _ACEOF
20840 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20841   $EGREP "Found it" >/dev/null 2>&1; then
20842   result=yes
20843 fi
20844 rm -f conftest*
20845
20846   if test -z "$result"; then
20847                     if test "$cross_compiling" = yes; then
20848   # Depending upon the size, compute the lo and hi bounds.
20849 cat >conftest.$ac_ext <<_ACEOF
20850 /* confdefs.h.  */
20851 _ACEOF
20852 cat confdefs.h >>conftest.$ac_ext
20853 cat >>conftest.$ac_ext <<_ACEOF
20854 /* end confdefs.h.  */
20855 #include <stddef.h>
20856 int
20857 main ()
20858 {
20859 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
20860 test_array [0] = 0
20861
20862   ;
20863   return 0;
20864 }
20865 _ACEOF
20866 rm -f conftest.$ac_objext
20867 if { (ac_try="$ac_compile"
20868 case "(($ac_try" in
20869   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20870   *) ac_try_echo=$ac_try;;
20871 esac
20872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20873   (eval "$ac_compile") 2>conftest.er1
20874   ac_status=$?
20875   grep -v '^ *+' conftest.er1 >conftest.err
20876   rm -f conftest.er1
20877   cat conftest.err >&5
20878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20879   (exit $ac_status); } && {
20880          test -z "$ac_c_werror_flag" ||
20881          test ! -s conftest.err
20882        } && test -s conftest.$ac_objext; then
20883   ac_lo=0 ac_mid=0
20884   while :; do
20885     cat >conftest.$ac_ext <<_ACEOF
20886 /* confdefs.h.  */
20887 _ACEOF
20888 cat confdefs.h >>conftest.$ac_ext
20889 cat >>conftest.$ac_ext <<_ACEOF
20890 /* end confdefs.h.  */
20891 #include <stddef.h>
20892 int
20893 main ()
20894 {
20895 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
20896 test_array [0] = 0
20897
20898   ;
20899   return 0;
20900 }
20901 _ACEOF
20902 rm -f conftest.$ac_objext
20903 if { (ac_try="$ac_compile"
20904 case "(($ac_try" in
20905   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20906   *) ac_try_echo=$ac_try;;
20907 esac
20908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20909   (eval "$ac_compile") 2>conftest.er1
20910   ac_status=$?
20911   grep -v '^ *+' conftest.er1 >conftest.err
20912   rm -f conftest.er1
20913   cat conftest.err >&5
20914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20915   (exit $ac_status); } && {
20916          test -z "$ac_c_werror_flag" ||
20917          test ! -s conftest.err
20918        } && test -s conftest.$ac_objext; then
20919   ac_hi=$ac_mid; break
20920 else
20921   echo "$as_me: failed program was:" >&5
20922 sed 's/^/| /' conftest.$ac_ext >&5
20923
20924         ac_lo=`expr $ac_mid + 1`
20925                         if test $ac_lo -le $ac_mid; then
20926                           ac_lo= ac_hi=
20927                           break
20928                         fi
20929                         ac_mid=`expr 2 '*' $ac_mid + 1`
20930 fi
20931
20932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20933   done
20934 else
20935   echo "$as_me: failed program was:" >&5
20936 sed 's/^/| /' conftest.$ac_ext >&5
20937
20938         cat >conftest.$ac_ext <<_ACEOF
20939 /* confdefs.h.  */
20940 _ACEOF
20941 cat confdefs.h >>conftest.$ac_ext
20942 cat >>conftest.$ac_ext <<_ACEOF
20943 /* end confdefs.h.  */
20944 #include <stddef.h>
20945 int
20946 main ()
20947 {
20948 static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
20949 test_array [0] = 0
20950
20951   ;
20952   return 0;
20953 }
20954 _ACEOF
20955 rm -f conftest.$ac_objext
20956 if { (ac_try="$ac_compile"
20957 case "(($ac_try" in
20958   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20959   *) ac_try_echo=$ac_try;;
20960 esac
20961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20962   (eval "$ac_compile") 2>conftest.er1
20963   ac_status=$?
20964   grep -v '^ *+' conftest.er1 >conftest.err
20965   rm -f conftest.er1
20966   cat conftest.err >&5
20967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20968   (exit $ac_status); } && {
20969          test -z "$ac_c_werror_flag" ||
20970          test ! -s conftest.err
20971        } && test -s conftest.$ac_objext; then
20972   ac_hi=-1 ac_mid=-1
20973   while :; do
20974     cat >conftest.$ac_ext <<_ACEOF
20975 /* confdefs.h.  */
20976 _ACEOF
20977 cat confdefs.h >>conftest.$ac_ext
20978 cat >>conftest.$ac_ext <<_ACEOF
20979 /* end confdefs.h.  */
20980 #include <stddef.h>
20981 int
20982 main ()
20983 {
20984 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
20985 test_array [0] = 0
20986
20987   ;
20988   return 0;
20989 }
20990 _ACEOF
20991 rm -f conftest.$ac_objext
20992 if { (ac_try="$ac_compile"
20993 case "(($ac_try" in
20994   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20995   *) ac_try_echo=$ac_try;;
20996 esac
20997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20998   (eval "$ac_compile") 2>conftest.er1
20999   ac_status=$?
21000   grep -v '^ *+' conftest.er1 >conftest.err
21001   rm -f conftest.er1
21002   cat conftest.err >&5
21003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21004   (exit $ac_status); } && {
21005          test -z "$ac_c_werror_flag" ||
21006          test ! -s conftest.err
21007        } && test -s conftest.$ac_objext; then
21008   ac_lo=$ac_mid; break
21009 else
21010   echo "$as_me: failed program was:" >&5
21011 sed 's/^/| /' conftest.$ac_ext >&5
21012
21013         ac_hi=`expr '(' $ac_mid ')' - 1`
21014                         if test $ac_mid -le $ac_hi; then
21015                           ac_lo= ac_hi=
21016                           break
21017                         fi
21018                         ac_mid=`expr 2 '*' $ac_mid`
21019 fi
21020
21021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21022   done
21023 else
21024   echo "$as_me: failed program was:" >&5
21025 sed 's/^/| /' conftest.$ac_ext >&5
21026
21027         ac_lo= ac_hi=
21028 fi
21029
21030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21031 fi
21032
21033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21034 # Binary search between lo and hi bounds.
21035 while test "x$ac_lo" != "x$ac_hi"; do
21036   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21037   cat >conftest.$ac_ext <<_ACEOF
21038 /* confdefs.h.  */
21039 _ACEOF
21040 cat confdefs.h >>conftest.$ac_ext
21041 cat >>conftest.$ac_ext <<_ACEOF
21042 /* end confdefs.h.  */
21043 #include <stddef.h>
21044 int
21045 main ()
21046 {
21047 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
21048 test_array [0] = 0
21049
21050   ;
21051   return 0;
21052 }
21053 _ACEOF
21054 rm -f conftest.$ac_objext
21055 if { (ac_try="$ac_compile"
21056 case "(($ac_try" in
21057   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21058   *) ac_try_echo=$ac_try;;
21059 esac
21060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21061   (eval "$ac_compile") 2>conftest.er1
21062   ac_status=$?
21063   grep -v '^ *+' conftest.er1 >conftest.err
21064   rm -f conftest.er1
21065   cat conftest.err >&5
21066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21067   (exit $ac_status); } && {
21068          test -z "$ac_c_werror_flag" ||
21069          test ! -s conftest.err
21070        } && test -s conftest.$ac_objext; then
21071   ac_hi=$ac_mid
21072 else
21073   echo "$as_me: failed program was:" >&5
21074 sed 's/^/| /' conftest.$ac_ext >&5
21075
21076         ac_lo=`expr '(' $ac_mid ')' + 1`
21077 fi
21078
21079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21080 done
21081 case $ac_lo in
21082 ?*) res_hi=$ac_lo;;
21083 '') result=? ;;
21084 esac
21085 else
21086   cat >conftest.$ac_ext <<_ACEOF
21087 /* confdefs.h.  */
21088 _ACEOF
21089 cat confdefs.h >>conftest.$ac_ext
21090 cat >>conftest.$ac_ext <<_ACEOF
21091 /* end confdefs.h.  */
21092 #include <stddef.h>
21093 static long int longval () { return ~(size_t)0 / 10; }
21094 static unsigned long int ulongval () { return ~(size_t)0 / 10; }
21095 #include <stdio.h>
21096 #include <stdlib.h>
21097 int
21098 main ()
21099 {
21100
21101   FILE *f = fopen ("conftest.val", "w");
21102   if (! f)
21103     return 1;
21104   if ((~(size_t)0 / 10) < 0)
21105     {
21106       long int i = longval ();
21107       if (i != (~(size_t)0 / 10))
21108         return 1;
21109       fprintf (f, "%ld\n", i);
21110     }
21111   else
21112     {
21113       unsigned long int i = ulongval ();
21114       if (i != (~(size_t)0 / 10))
21115         return 1;
21116       fprintf (f, "%lu\n", i);
21117     }
21118   return ferror (f) || fclose (f) != 0;
21119
21120   ;
21121   return 0;
21122 }
21123 _ACEOF
21124 rm -f conftest$ac_exeext
21125 if { (ac_try="$ac_link"
21126 case "(($ac_try" in
21127   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21128   *) ac_try_echo=$ac_try;;
21129 esac
21130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21131   (eval "$ac_link") 2>&5
21132   ac_status=$?
21133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21134   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21135   { (case "(($ac_try" in
21136   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21137   *) ac_try_echo=$ac_try;;
21138 esac
21139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21140   (eval "$ac_try") 2>&5
21141   ac_status=$?
21142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21143   (exit $ac_status); }; }; then
21144   res_hi=`cat conftest.val`
21145 else
21146   echo "$as_me: program exited with status $ac_status" >&5
21147 echo "$as_me: failed program was:" >&5
21148 sed 's/^/| /' conftest.$ac_ext >&5
21149
21150 ( exit $ac_status )
21151 result=?
21152 fi
21153 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21154 fi
21155 rm -f conftest.val
21156
21157     if test "$cross_compiling" = yes; then
21158   # Depending upon the size, compute the lo and hi bounds.
21159 cat >conftest.$ac_ext <<_ACEOF
21160 /* confdefs.h.  */
21161 _ACEOF
21162 cat confdefs.h >>conftest.$ac_ext
21163 cat >>conftest.$ac_ext <<_ACEOF
21164 /* end confdefs.h.  */
21165 #include <stddef.h>
21166 int
21167 main ()
21168 {
21169 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
21170 test_array [0] = 0
21171
21172   ;
21173   return 0;
21174 }
21175 _ACEOF
21176 rm -f conftest.$ac_objext
21177 if { (ac_try="$ac_compile"
21178 case "(($ac_try" in
21179   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21180   *) ac_try_echo=$ac_try;;
21181 esac
21182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21183   (eval "$ac_compile") 2>conftest.er1
21184   ac_status=$?
21185   grep -v '^ *+' conftest.er1 >conftest.err
21186   rm -f conftest.er1
21187   cat conftest.err >&5
21188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21189   (exit $ac_status); } && {
21190          test -z "$ac_c_werror_flag" ||
21191          test ! -s conftest.err
21192        } && test -s conftest.$ac_objext; then
21193   ac_lo=0 ac_mid=0
21194   while :; do
21195     cat >conftest.$ac_ext <<_ACEOF
21196 /* confdefs.h.  */
21197 _ACEOF
21198 cat confdefs.h >>conftest.$ac_ext
21199 cat >>conftest.$ac_ext <<_ACEOF
21200 /* end confdefs.h.  */
21201 #include <stddef.h>
21202 int
21203 main ()
21204 {
21205 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
21206 test_array [0] = 0
21207
21208   ;
21209   return 0;
21210 }
21211 _ACEOF
21212 rm -f conftest.$ac_objext
21213 if { (ac_try="$ac_compile"
21214 case "(($ac_try" in
21215   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21216   *) ac_try_echo=$ac_try;;
21217 esac
21218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21219   (eval "$ac_compile") 2>conftest.er1
21220   ac_status=$?
21221   grep -v '^ *+' conftest.er1 >conftest.err
21222   rm -f conftest.er1
21223   cat conftest.err >&5
21224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21225   (exit $ac_status); } && {
21226          test -z "$ac_c_werror_flag" ||
21227          test ! -s conftest.err
21228        } && test -s conftest.$ac_objext; then
21229   ac_hi=$ac_mid; break
21230 else
21231   echo "$as_me: failed program was:" >&5
21232 sed 's/^/| /' conftest.$ac_ext >&5
21233
21234         ac_lo=`expr $ac_mid + 1`
21235                         if test $ac_lo -le $ac_mid; then
21236                           ac_lo= ac_hi=
21237                           break
21238                         fi
21239                         ac_mid=`expr 2 '*' $ac_mid + 1`
21240 fi
21241
21242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21243   done
21244 else
21245   echo "$as_me: failed program was:" >&5
21246 sed 's/^/| /' conftest.$ac_ext >&5
21247
21248         cat >conftest.$ac_ext <<_ACEOF
21249 /* confdefs.h.  */
21250 _ACEOF
21251 cat confdefs.h >>conftest.$ac_ext
21252 cat >>conftest.$ac_ext <<_ACEOF
21253 /* end confdefs.h.  */
21254 #include <stddef.h>
21255 int
21256 main ()
21257 {
21258 static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
21259 test_array [0] = 0
21260
21261   ;
21262   return 0;
21263 }
21264 _ACEOF
21265 rm -f conftest.$ac_objext
21266 if { (ac_try="$ac_compile"
21267 case "(($ac_try" in
21268   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21269   *) ac_try_echo=$ac_try;;
21270 esac
21271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21272   (eval "$ac_compile") 2>conftest.er1
21273   ac_status=$?
21274   grep -v '^ *+' conftest.er1 >conftest.err
21275   rm -f conftest.er1
21276   cat conftest.err >&5
21277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21278   (exit $ac_status); } && {
21279          test -z "$ac_c_werror_flag" ||
21280          test ! -s conftest.err
21281        } && test -s conftest.$ac_objext; then
21282   ac_hi=-1 ac_mid=-1
21283   while :; do
21284     cat >conftest.$ac_ext <<_ACEOF
21285 /* confdefs.h.  */
21286 _ACEOF
21287 cat confdefs.h >>conftest.$ac_ext
21288 cat >>conftest.$ac_ext <<_ACEOF
21289 /* end confdefs.h.  */
21290 #include <stddef.h>
21291 int
21292 main ()
21293 {
21294 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
21295 test_array [0] = 0
21296
21297   ;
21298   return 0;
21299 }
21300 _ACEOF
21301 rm -f conftest.$ac_objext
21302 if { (ac_try="$ac_compile"
21303 case "(($ac_try" in
21304   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21305   *) ac_try_echo=$ac_try;;
21306 esac
21307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21308   (eval "$ac_compile") 2>conftest.er1
21309   ac_status=$?
21310   grep -v '^ *+' conftest.er1 >conftest.err
21311   rm -f conftest.er1
21312   cat conftest.err >&5
21313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21314   (exit $ac_status); } && {
21315          test -z "$ac_c_werror_flag" ||
21316          test ! -s conftest.err
21317        } && test -s conftest.$ac_objext; then
21318   ac_lo=$ac_mid; break
21319 else
21320   echo "$as_me: failed program was:" >&5
21321 sed 's/^/| /' conftest.$ac_ext >&5
21322
21323         ac_hi=`expr '(' $ac_mid ')' - 1`
21324                         if test $ac_mid -le $ac_hi; then
21325                           ac_lo= ac_hi=
21326                           break
21327                         fi
21328                         ac_mid=`expr 2 '*' $ac_mid`
21329 fi
21330
21331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21332   done
21333 else
21334   echo "$as_me: failed program was:" >&5
21335 sed 's/^/| /' conftest.$ac_ext >&5
21336
21337         ac_lo= ac_hi=
21338 fi
21339
21340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21341 fi
21342
21343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21344 # Binary search between lo and hi bounds.
21345 while test "x$ac_lo" != "x$ac_hi"; do
21346   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21347   cat >conftest.$ac_ext <<_ACEOF
21348 /* confdefs.h.  */
21349 _ACEOF
21350 cat confdefs.h >>conftest.$ac_ext
21351 cat >>conftest.$ac_ext <<_ACEOF
21352 /* end confdefs.h.  */
21353 #include <stddef.h>
21354 int
21355 main ()
21356 {
21357 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
21358 test_array [0] = 0
21359
21360   ;
21361   return 0;
21362 }
21363 _ACEOF
21364 rm -f conftest.$ac_objext
21365 if { (ac_try="$ac_compile"
21366 case "(($ac_try" in
21367   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21368   *) ac_try_echo=$ac_try;;
21369 esac
21370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21371   (eval "$ac_compile") 2>conftest.er1
21372   ac_status=$?
21373   grep -v '^ *+' conftest.er1 >conftest.err
21374   rm -f conftest.er1
21375   cat conftest.err >&5
21376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21377   (exit $ac_status); } && {
21378          test -z "$ac_c_werror_flag" ||
21379          test ! -s conftest.err
21380        } && test -s conftest.$ac_objext; then
21381   ac_hi=$ac_mid
21382 else
21383   echo "$as_me: failed program was:" >&5
21384 sed 's/^/| /' conftest.$ac_ext >&5
21385
21386         ac_lo=`expr '(' $ac_mid ')' + 1`
21387 fi
21388
21389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21390 done
21391 case $ac_lo in
21392 ?*) res_lo=$ac_lo;;
21393 '') result=? ;;
21394 esac
21395 else
21396   cat >conftest.$ac_ext <<_ACEOF
21397 /* confdefs.h.  */
21398 _ACEOF
21399 cat confdefs.h >>conftest.$ac_ext
21400 cat >>conftest.$ac_ext <<_ACEOF
21401 /* end confdefs.h.  */
21402 #include <stddef.h>
21403 static long int longval () { return ~(size_t)0 % 10; }
21404 static unsigned long int ulongval () { return ~(size_t)0 % 10; }
21405 #include <stdio.h>
21406 #include <stdlib.h>
21407 int
21408 main ()
21409 {
21410
21411   FILE *f = fopen ("conftest.val", "w");
21412   if (! f)
21413     return 1;
21414   if ((~(size_t)0 % 10) < 0)
21415     {
21416       long int i = longval ();
21417       if (i != (~(size_t)0 % 10))
21418         return 1;
21419       fprintf (f, "%ld\n", i);
21420     }
21421   else
21422     {
21423       unsigned long int i = ulongval ();
21424       if (i != (~(size_t)0 % 10))
21425         return 1;
21426       fprintf (f, "%lu\n", i);
21427     }
21428   return ferror (f) || fclose (f) != 0;
21429
21430   ;
21431   return 0;
21432 }
21433 _ACEOF
21434 rm -f conftest$ac_exeext
21435 if { (ac_try="$ac_link"
21436 case "(($ac_try" in
21437   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21438   *) ac_try_echo=$ac_try;;
21439 esac
21440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21441   (eval "$ac_link") 2>&5
21442   ac_status=$?
21443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21444   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21445   { (case "(($ac_try" in
21446   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21447   *) ac_try_echo=$ac_try;;
21448 esac
21449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21450   (eval "$ac_try") 2>&5
21451   ac_status=$?
21452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21453   (exit $ac_status); }; }; then
21454   res_lo=`cat conftest.val`
21455 else
21456   echo "$as_me: program exited with status $ac_status" >&5
21457 echo "$as_me: failed program was:" >&5
21458 sed 's/^/| /' conftest.$ac_ext >&5
21459
21460 ( exit $ac_status )
21461 result=?
21462 fi
21463 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21464 fi
21465 rm -f conftest.val
21466
21467     if test "$cross_compiling" = yes; then
21468   # Depending upon the size, compute the lo and hi bounds.
21469 cat >conftest.$ac_ext <<_ACEOF
21470 /* confdefs.h.  */
21471 _ACEOF
21472 cat confdefs.h >>conftest.$ac_ext
21473 cat >>conftest.$ac_ext <<_ACEOF
21474 /* end confdefs.h.  */
21475 #include <stddef.h>
21476 int
21477 main ()
21478 {
21479 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
21480 test_array [0] = 0
21481
21482   ;
21483   return 0;
21484 }
21485 _ACEOF
21486 rm -f conftest.$ac_objext
21487 if { (ac_try="$ac_compile"
21488 case "(($ac_try" in
21489   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21490   *) ac_try_echo=$ac_try;;
21491 esac
21492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21493   (eval "$ac_compile") 2>conftest.er1
21494   ac_status=$?
21495   grep -v '^ *+' conftest.er1 >conftest.err
21496   rm -f conftest.er1
21497   cat conftest.err >&5
21498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21499   (exit $ac_status); } && {
21500          test -z "$ac_c_werror_flag" ||
21501          test ! -s conftest.err
21502        } && test -s conftest.$ac_objext; then
21503   ac_lo=0 ac_mid=0
21504   while :; do
21505     cat >conftest.$ac_ext <<_ACEOF
21506 /* confdefs.h.  */
21507 _ACEOF
21508 cat confdefs.h >>conftest.$ac_ext
21509 cat >>conftest.$ac_ext <<_ACEOF
21510 /* end confdefs.h.  */
21511 #include <stddef.h>
21512 int
21513 main ()
21514 {
21515 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
21516 test_array [0] = 0
21517
21518   ;
21519   return 0;
21520 }
21521 _ACEOF
21522 rm -f conftest.$ac_objext
21523 if { (ac_try="$ac_compile"
21524 case "(($ac_try" in
21525   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21526   *) ac_try_echo=$ac_try;;
21527 esac
21528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21529   (eval "$ac_compile") 2>conftest.er1
21530   ac_status=$?
21531   grep -v '^ *+' conftest.er1 >conftest.err
21532   rm -f conftest.er1
21533   cat conftest.err >&5
21534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21535   (exit $ac_status); } && {
21536          test -z "$ac_c_werror_flag" ||
21537          test ! -s conftest.err
21538        } && test -s conftest.$ac_objext; then
21539   ac_hi=$ac_mid; break
21540 else
21541   echo "$as_me: failed program was:" >&5
21542 sed 's/^/| /' conftest.$ac_ext >&5
21543
21544         ac_lo=`expr $ac_mid + 1`
21545                         if test $ac_lo -le $ac_mid; then
21546                           ac_lo= ac_hi=
21547                           break
21548                         fi
21549                         ac_mid=`expr 2 '*' $ac_mid + 1`
21550 fi
21551
21552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21553   done
21554 else
21555   echo "$as_me: failed program was:" >&5
21556 sed 's/^/| /' conftest.$ac_ext >&5
21557
21558         cat >conftest.$ac_ext <<_ACEOF
21559 /* confdefs.h.  */
21560 _ACEOF
21561 cat confdefs.h >>conftest.$ac_ext
21562 cat >>conftest.$ac_ext <<_ACEOF
21563 /* end confdefs.h.  */
21564 #include <stddef.h>
21565 int
21566 main ()
21567 {
21568 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
21569 test_array [0] = 0
21570
21571   ;
21572   return 0;
21573 }
21574 _ACEOF
21575 rm -f conftest.$ac_objext
21576 if { (ac_try="$ac_compile"
21577 case "(($ac_try" in
21578   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21579   *) ac_try_echo=$ac_try;;
21580 esac
21581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21582   (eval "$ac_compile") 2>conftest.er1
21583   ac_status=$?
21584   grep -v '^ *+' conftest.er1 >conftest.err
21585   rm -f conftest.er1
21586   cat conftest.err >&5
21587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21588   (exit $ac_status); } && {
21589          test -z "$ac_c_werror_flag" ||
21590          test ! -s conftest.err
21591        } && test -s conftest.$ac_objext; then
21592   ac_hi=-1 ac_mid=-1
21593   while :; do
21594     cat >conftest.$ac_ext <<_ACEOF
21595 /* confdefs.h.  */
21596 _ACEOF
21597 cat confdefs.h >>conftest.$ac_ext
21598 cat >>conftest.$ac_ext <<_ACEOF
21599 /* end confdefs.h.  */
21600 #include <stddef.h>
21601 int
21602 main ()
21603 {
21604 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
21605 test_array [0] = 0
21606
21607   ;
21608   return 0;
21609 }
21610 _ACEOF
21611 rm -f conftest.$ac_objext
21612 if { (ac_try="$ac_compile"
21613 case "(($ac_try" in
21614   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21615   *) ac_try_echo=$ac_try;;
21616 esac
21617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21618   (eval "$ac_compile") 2>conftest.er1
21619   ac_status=$?
21620   grep -v '^ *+' conftest.er1 >conftest.err
21621   rm -f conftest.er1
21622   cat conftest.err >&5
21623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21624   (exit $ac_status); } && {
21625          test -z "$ac_c_werror_flag" ||
21626          test ! -s conftest.err
21627        } && test -s conftest.$ac_objext; then
21628   ac_lo=$ac_mid; break
21629 else
21630   echo "$as_me: failed program was:" >&5
21631 sed 's/^/| /' conftest.$ac_ext >&5
21632
21633         ac_hi=`expr '(' $ac_mid ')' - 1`
21634                         if test $ac_mid -le $ac_hi; then
21635                           ac_lo= ac_hi=
21636                           break
21637                         fi
21638                         ac_mid=`expr 2 '*' $ac_mid`
21639 fi
21640
21641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21642   done
21643 else
21644   echo "$as_me: failed program was:" >&5
21645 sed 's/^/| /' conftest.$ac_ext >&5
21646
21647         ac_lo= ac_hi=
21648 fi
21649
21650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21651 fi
21652
21653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21654 # Binary search between lo and hi bounds.
21655 while test "x$ac_lo" != "x$ac_hi"; do
21656   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21657   cat >conftest.$ac_ext <<_ACEOF
21658 /* confdefs.h.  */
21659 _ACEOF
21660 cat confdefs.h >>conftest.$ac_ext
21661 cat >>conftest.$ac_ext <<_ACEOF
21662 /* end confdefs.h.  */
21663 #include <stddef.h>
21664 int
21665 main ()
21666 {
21667 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
21668 test_array [0] = 0
21669
21670   ;
21671   return 0;
21672 }
21673 _ACEOF
21674 rm -f conftest.$ac_objext
21675 if { (ac_try="$ac_compile"
21676 case "(($ac_try" in
21677   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21678   *) ac_try_echo=$ac_try;;
21679 esac
21680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21681   (eval "$ac_compile") 2>conftest.er1
21682   ac_status=$?
21683   grep -v '^ *+' conftest.er1 >conftest.err
21684   rm -f conftest.er1
21685   cat conftest.err >&5
21686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21687   (exit $ac_status); } && {
21688          test -z "$ac_c_werror_flag" ||
21689          test ! -s conftest.err
21690        } && test -s conftest.$ac_objext; then
21691   ac_hi=$ac_mid
21692 else
21693   echo "$as_me: failed program was:" >&5
21694 sed 's/^/| /' conftest.$ac_ext >&5
21695
21696         ac_lo=`expr '(' $ac_mid ')' + 1`
21697 fi
21698
21699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21700 done
21701 case $ac_lo in
21702 ?*) fits_in_uint=$ac_lo;;
21703 '') result=? ;;
21704 esac
21705 else
21706   cat >conftest.$ac_ext <<_ACEOF
21707 /* confdefs.h.  */
21708 _ACEOF
21709 cat confdefs.h >>conftest.$ac_ext
21710 cat >>conftest.$ac_ext <<_ACEOF
21711 /* end confdefs.h.  */
21712 #include <stddef.h>
21713 static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
21714 static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
21715 #include <stdio.h>
21716 #include <stdlib.h>
21717 int
21718 main ()
21719 {
21720
21721   FILE *f = fopen ("conftest.val", "w");
21722   if (! f)
21723     return 1;
21724   if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
21725     {
21726       long int i = longval ();
21727       if (i != (sizeof (size_t) <= sizeof (unsigned int)))
21728         return 1;
21729       fprintf (f, "%ld\n", i);
21730     }
21731   else
21732     {
21733       unsigned long int i = ulongval ();
21734       if (i != (sizeof (size_t) <= sizeof (unsigned int)))
21735         return 1;
21736       fprintf (f, "%lu\n", i);
21737     }
21738   return ferror (f) || fclose (f) != 0;
21739
21740   ;
21741   return 0;
21742 }
21743 _ACEOF
21744 rm -f conftest$ac_exeext
21745 if { (ac_try="$ac_link"
21746 case "(($ac_try" in
21747   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21748   *) ac_try_echo=$ac_try;;
21749 esac
21750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21751   (eval "$ac_link") 2>&5
21752   ac_status=$?
21753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21754   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21755   { (case "(($ac_try" in
21756   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21757   *) ac_try_echo=$ac_try;;
21758 esac
21759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21760   (eval "$ac_try") 2>&5
21761   ac_status=$?
21762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21763   (exit $ac_status); }; }; then
21764   fits_in_uint=`cat conftest.val`
21765 else
21766   echo "$as_me: program exited with status $ac_status" >&5
21767 echo "$as_me: failed program was:" >&5
21768 sed 's/^/| /' conftest.$ac_ext >&5
21769
21770 ( exit $ac_status )
21771 result=?
21772 fi
21773 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21774 fi
21775 rm -f conftest.val
21776
21777     if test "$fits_in_uint" = 1; then
21778                   cat >conftest.$ac_ext <<_ACEOF
21779 /* confdefs.h.  */
21780 _ACEOF
21781 cat confdefs.h >>conftest.$ac_ext
21782 cat >>conftest.$ac_ext <<_ACEOF
21783 /* end confdefs.h.  */
21784 #include <stddef.h>
21785         extern size_t foo;
21786         extern unsigned long foo;
21787
21788 int
21789 main ()
21790 {
21791
21792   ;
21793   return 0;
21794 }
21795 _ACEOF
21796 rm -f conftest.$ac_objext
21797 if { (ac_try="$ac_compile"
21798 case "(($ac_try" in
21799   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21800   *) ac_try_echo=$ac_try;;
21801 esac
21802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21803   (eval "$ac_compile") 2>conftest.er1
21804   ac_status=$?
21805   grep -v '^ *+' conftest.er1 >conftest.err
21806   rm -f conftest.er1
21807   cat conftest.err >&5
21808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21809   (exit $ac_status); } && {
21810          test -z "$ac_c_werror_flag" ||
21811          test ! -s conftest.err
21812        } && test -s conftest.$ac_objext; then
21813   fits_in_uint=0
21814 else
21815   echo "$as_me: failed program was:" >&5
21816 sed 's/^/| /' conftest.$ac_ext >&5
21817
21818
21819 fi
21820
21821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21822     fi
21823     if test -z "$result"; then
21824       if test "$fits_in_uint" = 1; then
21825         result="$res_hi$res_lo"U
21826       else
21827         result="$res_hi$res_lo"UL
21828       fi
21829     else
21830             result='~(size_t)0'
21831     fi
21832   fi
21833   { echo "$as_me:$LINENO: result: $result" >&5
21834 echo "${ECHO_T}$result" >&6; }
21835   if test "$result" != yes; then
21836
21837 cat >>confdefs.h <<_ACEOF
21838 #define SIZE_MAX $result
21839 _ACEOF
21840
21841   fi
21842
21843
21844
21845
21846
21847 for ac_header in stdint.h
21848 do
21849 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21850 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21851   { echo "$as_me:$LINENO: checking for $ac_header" >&5
21852 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21853 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21854   echo $ECHO_N "(cached) $ECHO_C" >&6
21855 fi
21856 ac_res=`eval echo '${'$as_ac_Header'}'`
21857                { echo "$as_me:$LINENO: result: $ac_res" >&5
21858 echo "${ECHO_T}$ac_res" >&6; }
21859 else
21860   # Is the header compilable?
21861 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21862 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21863 cat >conftest.$ac_ext <<_ACEOF
21864 /* confdefs.h.  */
21865 _ACEOF
21866 cat confdefs.h >>conftest.$ac_ext
21867 cat >>conftest.$ac_ext <<_ACEOF
21868 /* end confdefs.h.  */
21869 $ac_includes_default
21870 #include <$ac_header>
21871 _ACEOF
21872 rm -f conftest.$ac_objext
21873 if { (ac_try="$ac_compile"
21874 case "(($ac_try" in
21875   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21876   *) ac_try_echo=$ac_try;;
21877 esac
21878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21879   (eval "$ac_compile") 2>conftest.er1
21880   ac_status=$?
21881   grep -v '^ *+' conftest.er1 >conftest.err
21882   rm -f conftest.er1
21883   cat conftest.err >&5
21884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21885   (exit $ac_status); } && {
21886          test -z "$ac_c_werror_flag" ||
21887          test ! -s conftest.err
21888        } && test -s conftest.$ac_objext; then
21889   ac_header_compiler=yes
21890 else
21891   echo "$as_me: failed program was:" >&5
21892 sed 's/^/| /' conftest.$ac_ext >&5
21893
21894         ac_header_compiler=no
21895 fi
21896
21897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21898 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21899 echo "${ECHO_T}$ac_header_compiler" >&6; }
21900
21901 # Is the header present?
21902 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21903 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21904 cat >conftest.$ac_ext <<_ACEOF
21905 /* confdefs.h.  */
21906 _ACEOF
21907 cat confdefs.h >>conftest.$ac_ext
21908 cat >>conftest.$ac_ext <<_ACEOF
21909 /* end confdefs.h.  */
21910 #include <$ac_header>
21911 _ACEOF
21912 if { (ac_try="$ac_cpp conftest.$ac_ext"
21913 case "(($ac_try" in
21914   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21915   *) ac_try_echo=$ac_try;;
21916 esac
21917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21918   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21919   ac_status=$?
21920   grep -v '^ *+' conftest.er1 >conftest.err
21921   rm -f conftest.er1
21922   cat conftest.err >&5
21923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21924   (exit $ac_status); } >/dev/null && {
21925          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21926          test ! -s conftest.err
21927        }; then
21928   ac_header_preproc=yes
21929 else
21930   echo "$as_me: failed program was:" >&5
21931 sed 's/^/| /' conftest.$ac_ext >&5
21932
21933   ac_header_preproc=no
21934 fi
21935
21936 rm -f conftest.err conftest.$ac_ext
21937 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21938 echo "${ECHO_T}$ac_header_preproc" >&6; }
21939
21940 # So?  What about this header?
21941 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21942   yes:no: )
21943     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21944 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21945     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21946 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21947     ac_header_preproc=yes
21948     ;;
21949   no:yes:* )
21950     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21951 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21952     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21953 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21954     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21955 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21956     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21957 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21958     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21959 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21960     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21961 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21962
21963     ;;
21964 esac
21965 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21966 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21967 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21968   echo $ECHO_N "(cached) $ECHO_C" >&6
21969 else
21970   eval "$as_ac_Header=\$ac_header_preproc"
21971 fi
21972 ac_res=`eval echo '${'$as_ac_Header'}'`
21973                { echo "$as_me:$LINENO: result: $ac_res" >&5
21974 echo "${ECHO_T}$ac_res" >&6; }
21975
21976 fi
21977 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21978   cat >>confdefs.h <<_ACEOF
21979 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21980 _ACEOF
21981
21982 fi
21983
21984 done
21985
21986
21987
21988
21989
21990
21991
21992
21993   { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
21994 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
21995 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
21996   echo $ECHO_N "(cached) $ECHO_C" >&6
21997 else
21998   cat >conftest.$ac_ext <<_ACEOF
21999 /* confdefs.h.  */
22000 _ACEOF
22001 cat confdefs.h >>conftest.$ac_ext
22002 cat >>conftest.$ac_ext <<_ACEOF
22003 /* end confdefs.h.  */
22004 $ac_includes_default
22005 typedef ptrdiff_t ac__type_new_;
22006 int
22007 main ()
22008 {
22009 if ((ac__type_new_ *) 0)
22010   return 0;
22011 if (sizeof (ac__type_new_))
22012   return 0;
22013   ;
22014   return 0;
22015 }
22016 _ACEOF
22017 rm -f conftest.$ac_objext
22018 if { (ac_try="$ac_compile"
22019 case "(($ac_try" in
22020   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22021   *) ac_try_echo=$ac_try;;
22022 esac
22023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22024   (eval "$ac_compile") 2>conftest.er1
22025   ac_status=$?
22026   grep -v '^ *+' conftest.er1 >conftest.err
22027   rm -f conftest.er1
22028   cat conftest.err >&5
22029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22030   (exit $ac_status); } && {
22031          test -z "$ac_c_werror_flag" ||
22032          test ! -s conftest.err
22033        } && test -s conftest.$ac_objext; then
22034   ac_cv_type_ptrdiff_t=yes
22035 else
22036   echo "$as_me: failed program was:" >&5
22037 sed 's/^/| /' conftest.$ac_ext >&5
22038
22039         ac_cv_type_ptrdiff_t=no
22040 fi
22041
22042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22043 fi
22044 { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
22045 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
22046 if test $ac_cv_type_ptrdiff_t = yes; then
22047   :
22048 else
22049
22050 cat >>confdefs.h <<\_ACEOF
22051 #define ptrdiff_t long
22052 _ACEOF
22053
22054
22055 fi
22056
22057
22058
22059
22060
22061
22062
22063
22064
22065
22066
22067 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
22068 stdlib.h string.h unistd.h sys/param.h
22069 do
22070 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22071 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22072   { echo "$as_me:$LINENO: checking for $ac_header" >&5
22073 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22074 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22075   echo $ECHO_N "(cached) $ECHO_C" >&6
22076 fi
22077 ac_res=`eval echo '${'$as_ac_Header'}'`
22078                { echo "$as_me:$LINENO: result: $ac_res" >&5
22079 echo "${ECHO_T}$ac_res" >&6; }
22080 else
22081   # Is the header compilable?
22082 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22083 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22084 cat >conftest.$ac_ext <<_ACEOF
22085 /* confdefs.h.  */
22086 _ACEOF
22087 cat confdefs.h >>conftest.$ac_ext
22088 cat >>conftest.$ac_ext <<_ACEOF
22089 /* end confdefs.h.  */
22090 $ac_includes_default
22091 #include <$ac_header>
22092 _ACEOF
22093 rm -f conftest.$ac_objext
22094 if { (ac_try="$ac_compile"
22095 case "(($ac_try" in
22096   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22097   *) ac_try_echo=$ac_try;;
22098 esac
22099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22100   (eval "$ac_compile") 2>conftest.er1
22101   ac_status=$?
22102   grep -v '^ *+' conftest.er1 >conftest.err
22103   rm -f conftest.er1
22104   cat conftest.err >&5
22105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22106   (exit $ac_status); } && {
22107          test -z "$ac_c_werror_flag" ||
22108          test ! -s conftest.err
22109        } && test -s conftest.$ac_objext; then
22110   ac_header_compiler=yes
22111 else
22112   echo "$as_me: failed program was:" >&5
22113 sed 's/^/| /' conftest.$ac_ext >&5
22114
22115         ac_header_compiler=no
22116 fi
22117
22118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22119 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22120 echo "${ECHO_T}$ac_header_compiler" >&6; }
22121
22122 # Is the header present?
22123 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22124 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22125 cat >conftest.$ac_ext <<_ACEOF
22126 /* confdefs.h.  */
22127 _ACEOF
22128 cat confdefs.h >>conftest.$ac_ext
22129 cat >>conftest.$ac_ext <<_ACEOF
22130 /* end confdefs.h.  */
22131 #include <$ac_header>
22132 _ACEOF
22133 if { (ac_try="$ac_cpp conftest.$ac_ext"
22134 case "(($ac_try" in
22135   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22136   *) ac_try_echo=$ac_try;;
22137 esac
22138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22139   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22140   ac_status=$?
22141   grep -v '^ *+' conftest.er1 >conftest.err
22142   rm -f conftest.er1
22143   cat conftest.err >&5
22144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22145   (exit $ac_status); } >/dev/null && {
22146          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22147          test ! -s conftest.err
22148        }; then
22149   ac_header_preproc=yes
22150 else
22151   echo "$as_me: failed program was:" >&5
22152 sed 's/^/| /' conftest.$ac_ext >&5
22153
22154   ac_header_preproc=no
22155 fi
22156
22157 rm -f conftest.err conftest.$ac_ext
22158 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22159 echo "${ECHO_T}$ac_header_preproc" >&6; }
22160
22161 # So?  What about this header?
22162 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22163   yes:no: )
22164     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22165 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22166     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22167 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22168     ac_header_preproc=yes
22169     ;;
22170   no:yes:* )
22171     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22172 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22173     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22174 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22175     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22176 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22177     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22178 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22179     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22180 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22181     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22182 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22183
22184     ;;
22185 esac
22186 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22187 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22188 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22189   echo $ECHO_N "(cached) $ECHO_C" >&6
22190 else
22191   eval "$as_ac_Header=\$ac_header_preproc"
22192 fi
22193 ac_res=`eval echo '${'$as_ac_Header'}'`
22194                { echo "$as_me:$LINENO: result: $ac_res" >&5
22195 echo "${ECHO_T}$ac_res" >&6; }
22196
22197 fi
22198 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22199   cat >>confdefs.h <<_ACEOF
22200 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22201 _ACEOF
22202
22203 fi
22204
22205 done
22206
22207
22208
22209
22210
22211
22212
22213
22214
22215
22216
22217
22218
22219
22220
22221
22222
22223
22224
22225
22226
22227
22228
22229
22230 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
22231 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
22232 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
22233 __fsetlocking
22234 do
22235 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22236 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22237 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22238 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22239   echo $ECHO_N "(cached) $ECHO_C" >&6
22240 else
22241   cat >conftest.$ac_ext <<_ACEOF
22242 /* confdefs.h.  */
22243 _ACEOF
22244 cat confdefs.h >>conftest.$ac_ext
22245 cat >>conftest.$ac_ext <<_ACEOF
22246 /* end confdefs.h.  */
22247 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22248    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22249 #define $ac_func innocuous_$ac_func
22250
22251 /* System header to define __stub macros and hopefully few prototypes,
22252     which can conflict with char $ac_func (); below.
22253     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22254     <limits.h> exists even on freestanding compilers.  */
22255
22256 #ifdef __STDC__
22257 # include <limits.h>
22258 #else
22259 # include <assert.h>
22260 #endif
22261
22262 #undef $ac_func
22263
22264 /* Override any GCC internal prototype to avoid an error.
22265    Use char because int might match the return type of a GCC
22266    builtin and then its argument prototype would still apply.  */
22267 #ifdef __cplusplus
22268 extern "C"
22269 #endif
22270 char $ac_func ();
22271 /* The GNU C library defines this for functions which it implements
22272     to always fail with ENOSYS.  Some functions are actually named
22273     something starting with __ and the normal name is an alias.  */
22274 #if defined __stub_$ac_func || defined __stub___$ac_func
22275 choke me
22276 #endif
22277
22278 int
22279 main ()
22280 {
22281 return $ac_func ();
22282   ;
22283   return 0;
22284 }
22285 _ACEOF
22286 rm -f conftest.$ac_objext conftest$ac_exeext
22287 if { (ac_try="$ac_link"
22288 case "(($ac_try" in
22289   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22290   *) ac_try_echo=$ac_try;;
22291 esac
22292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22293   (eval "$ac_link") 2>conftest.er1
22294   ac_status=$?
22295   grep -v '^ *+' conftest.er1 >conftest.err
22296   rm -f conftest.er1
22297   cat conftest.err >&5
22298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22299   (exit $ac_status); } && {
22300          test -z "$ac_c_werror_flag" ||
22301          test ! -s conftest.err
22302        } && test -s conftest$ac_exeext &&
22303        $as_test_x conftest$ac_exeext; then
22304   eval "$as_ac_var=yes"
22305 else
22306   echo "$as_me: failed program was:" >&5
22307 sed 's/^/| /' conftest.$ac_ext >&5
22308
22309         eval "$as_ac_var=no"
22310 fi
22311
22312 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22313       conftest$ac_exeext conftest.$ac_ext
22314 fi
22315 ac_res=`eval echo '${'$as_ac_var'}'`
22316                { echo "$as_me:$LINENO: result: $ac_res" >&5
22317 echo "${ECHO_T}$ac_res" >&6; }
22318 if test `eval echo '${'$as_ac_var'}'` = yes; then
22319   cat >>confdefs.h <<_ACEOF
22320 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22321 _ACEOF
22322
22323 fi
22324 done
22325
22326
22327
22328   { echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
22329 echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6; }
22330 if test "${ac_cv_have_decl__snprintf+set}" = set; then
22331   echo $ECHO_N "(cached) $ECHO_C" >&6
22332 else
22333   cat >conftest.$ac_ext <<_ACEOF
22334 /* confdefs.h.  */
22335 _ACEOF
22336 cat confdefs.h >>conftest.$ac_ext
22337 cat >>conftest.$ac_ext <<_ACEOF
22338 /* end confdefs.h.  */
22339 #include <stdio.h>
22340 int
22341 main ()
22342 {
22343
22344 #ifndef _snprintf
22345   char *p = (char *) _snprintf;
22346 #endif
22347
22348   ;
22349   return 0;
22350 }
22351 _ACEOF
22352 rm -f conftest.$ac_objext
22353 if { (ac_try="$ac_compile"
22354 case "(($ac_try" in
22355   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22356   *) ac_try_echo=$ac_try;;
22357 esac
22358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22359   (eval "$ac_compile") 2>conftest.er1
22360   ac_status=$?
22361   grep -v '^ *+' conftest.er1 >conftest.err
22362   rm -f conftest.er1
22363   cat conftest.err >&5
22364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22365   (exit $ac_status); } && {
22366          test -z "$ac_c_werror_flag" ||
22367          test ! -s conftest.err
22368        } && test -s conftest.$ac_objext; then
22369   ac_cv_have_decl__snprintf=yes
22370 else
22371   echo "$as_me: failed program was:" >&5
22372 sed 's/^/| /' conftest.$ac_ext >&5
22373
22374         ac_cv_have_decl__snprintf=no
22375 fi
22376
22377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22378 fi
22379 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
22380 echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6; }
22381   if test $ac_cv_have_decl__snprintf = yes; then
22382     gt_value=1
22383   else
22384     gt_value=0
22385   fi
22386
22387 cat >>confdefs.h <<_ACEOF
22388 #define HAVE_DECL__SNPRINTF $gt_value
22389 _ACEOF
22390
22391
22392
22393   { echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
22394 echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6; }
22395 if test "${ac_cv_have_decl__snwprintf+set}" = set; then
22396   echo $ECHO_N "(cached) $ECHO_C" >&6
22397 else
22398   cat >conftest.$ac_ext <<_ACEOF
22399 /* confdefs.h.  */
22400 _ACEOF
22401 cat confdefs.h >>conftest.$ac_ext
22402 cat >>conftest.$ac_ext <<_ACEOF
22403 /* end confdefs.h.  */
22404 #include <stdio.h>
22405 int
22406 main ()
22407 {
22408
22409 #ifndef _snwprintf
22410   char *p = (char *) _snwprintf;
22411 #endif
22412
22413   ;
22414   return 0;
22415 }
22416 _ACEOF
22417 rm -f conftest.$ac_objext
22418 if { (ac_try="$ac_compile"
22419 case "(($ac_try" in
22420   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22421   *) ac_try_echo=$ac_try;;
22422 esac
22423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22424   (eval "$ac_compile") 2>conftest.er1
22425   ac_status=$?
22426   grep -v '^ *+' conftest.er1 >conftest.err
22427   rm -f conftest.er1
22428   cat conftest.err >&5
22429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22430   (exit $ac_status); } && {
22431          test -z "$ac_c_werror_flag" ||
22432          test ! -s conftest.err
22433        } && test -s conftest.$ac_objext; then
22434   ac_cv_have_decl__snwprintf=yes
22435 else
22436   echo "$as_me: failed program was:" >&5
22437 sed 's/^/| /' conftest.$ac_ext >&5
22438
22439         ac_cv_have_decl__snwprintf=no
22440 fi
22441
22442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22443 fi
22444 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
22445 echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6; }
22446   if test $ac_cv_have_decl__snwprintf = yes; then
22447     gt_value=1
22448   else
22449     gt_value=0
22450   fi
22451
22452 cat >>confdefs.h <<_ACEOF
22453 #define HAVE_DECL__SNWPRINTF $gt_value
22454 _ACEOF
22455
22456
22457
22458
22459   { echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
22460 echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6; }
22461 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
22462   echo $ECHO_N "(cached) $ECHO_C" >&6
22463 else
22464   cat >conftest.$ac_ext <<_ACEOF
22465 /* confdefs.h.  */
22466 _ACEOF
22467 cat confdefs.h >>conftest.$ac_ext
22468 cat >>conftest.$ac_ext <<_ACEOF
22469 /* end confdefs.h.  */
22470 #include <stdio.h>
22471 int
22472 main ()
22473 {
22474
22475 #ifndef feof_unlocked
22476   char *p = (char *) feof_unlocked;
22477 #endif
22478
22479   ;
22480   return 0;
22481 }
22482 _ACEOF
22483 rm -f conftest.$ac_objext
22484 if { (ac_try="$ac_compile"
22485 case "(($ac_try" in
22486   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22487   *) ac_try_echo=$ac_try;;
22488 esac
22489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22490   (eval "$ac_compile") 2>conftest.er1
22491   ac_status=$?
22492   grep -v '^ *+' conftest.er1 >conftest.err
22493   rm -f conftest.er1
22494   cat conftest.err >&5
22495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22496   (exit $ac_status); } && {
22497          test -z "$ac_c_werror_flag" ||
22498          test ! -s conftest.err
22499        } && test -s conftest.$ac_objext; then
22500   ac_cv_have_decl_feof_unlocked=yes
22501 else
22502   echo "$as_me: failed program was:" >&5
22503 sed 's/^/| /' conftest.$ac_ext >&5
22504
22505         ac_cv_have_decl_feof_unlocked=no
22506 fi
22507
22508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22509 fi
22510 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
22511 echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6; }
22512   if test $ac_cv_have_decl_feof_unlocked = yes; then
22513     gt_value=1
22514   else
22515     gt_value=0
22516   fi
22517
22518 cat >>confdefs.h <<_ACEOF
22519 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
22520 _ACEOF
22521
22522
22523
22524   { echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
22525 echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6; }
22526 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
22527   echo $ECHO_N "(cached) $ECHO_C" >&6
22528 else
22529   cat >conftest.$ac_ext <<_ACEOF
22530 /* confdefs.h.  */
22531 _ACEOF
22532 cat confdefs.h >>conftest.$ac_ext
22533 cat >>conftest.$ac_ext <<_ACEOF
22534 /* end confdefs.h.  */
22535 #include <stdio.h>
22536 int
22537 main ()
22538 {
22539
22540 #ifndef fgets_unlocked
22541   char *p = (char *) fgets_unlocked;
22542 #endif
22543
22544   ;
22545   return 0;
22546 }
22547 _ACEOF
22548 rm -f conftest.$ac_objext
22549 if { (ac_try="$ac_compile"
22550 case "(($ac_try" in
22551   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22552   *) ac_try_echo=$ac_try;;
22553 esac
22554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22555   (eval "$ac_compile") 2>conftest.er1
22556   ac_status=$?
22557   grep -v '^ *+' conftest.er1 >conftest.err
22558   rm -f conftest.er1
22559   cat conftest.err >&5
22560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22561   (exit $ac_status); } && {
22562          test -z "$ac_c_werror_flag" ||
22563          test ! -s conftest.err
22564        } && test -s conftest.$ac_objext; then
22565   ac_cv_have_decl_fgets_unlocked=yes
22566 else
22567   echo "$as_me: failed program was:" >&5
22568 sed 's/^/| /' conftest.$ac_ext >&5
22569
22570         ac_cv_have_decl_fgets_unlocked=no
22571 fi
22572
22573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22574 fi
22575 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
22576 echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6; }
22577   if test $ac_cv_have_decl_fgets_unlocked = yes; then
22578     gt_value=1
22579   else
22580     gt_value=0
22581   fi
22582
22583 cat >>confdefs.h <<_ACEOF
22584 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
22585 _ACEOF
22586
22587
22588
22589   { echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
22590 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6; }
22591 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
22592   echo $ECHO_N "(cached) $ECHO_C" >&6
22593 else
22594   cat >conftest.$ac_ext <<_ACEOF
22595 /* confdefs.h.  */
22596 _ACEOF
22597 cat confdefs.h >>conftest.$ac_ext
22598 cat >>conftest.$ac_ext <<_ACEOF
22599 /* end confdefs.h.  */
22600 #include <stdio.h>
22601 int
22602 main ()
22603 {
22604
22605 #ifndef getc_unlocked
22606   char *p = (char *) getc_unlocked;
22607 #endif
22608
22609   ;
22610   return 0;
22611 }
22612 _ACEOF
22613 rm -f conftest.$ac_objext
22614 if { (ac_try="$ac_compile"
22615 case "(($ac_try" in
22616   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22617   *) ac_try_echo=$ac_try;;
22618 esac
22619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22620   (eval "$ac_compile") 2>conftest.er1
22621   ac_status=$?
22622   grep -v '^ *+' conftest.er1 >conftest.err
22623   rm -f conftest.er1
22624   cat conftest.err >&5
22625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22626   (exit $ac_status); } && {
22627          test -z "$ac_c_werror_flag" ||
22628          test ! -s conftest.err
22629        } && test -s conftest.$ac_objext; then
22630   ac_cv_have_decl_getc_unlocked=yes
22631 else
22632   echo "$as_me: failed program was:" >&5
22633 sed 's/^/| /' conftest.$ac_ext >&5
22634
22635         ac_cv_have_decl_getc_unlocked=no
22636 fi
22637
22638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22639 fi
22640 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
22641 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6; }
22642   if test $ac_cv_have_decl_getc_unlocked = yes; then
22643     gt_value=1
22644   else
22645     gt_value=0
22646   fi
22647
22648 cat >>confdefs.h <<_ACEOF
22649 #define HAVE_DECL_GETC_UNLOCKED $gt_value
22650 _ACEOF
22651
22652
22653
22654   case $gt_cv_func_printf_posix in
22655     *yes) HAVE_POSIX_PRINTF=1 ;;
22656     *) HAVE_POSIX_PRINTF=0 ;;
22657   esac
22658
22659   if test "$ac_cv_func_asprintf" = yes; then
22660     HAVE_ASPRINTF=1
22661   else
22662     HAVE_ASPRINTF=0
22663   fi
22664
22665   if test "$ac_cv_func_snprintf" = yes; then
22666     HAVE_SNPRINTF=1
22667   else
22668     HAVE_SNPRINTF=0
22669   fi
22670
22671   if test "$ac_cv_func_wprintf" = yes; then
22672     HAVE_WPRINTF=1
22673   else
22674     HAVE_WPRINTF=0
22675   fi
22676
22677
22678
22679
22680
22681
22682
22683           am_save_CPPFLAGS="$CPPFLAGS"
22684
22685   for element in $INCICONV; do
22686     haveit=
22687     for x in $CPPFLAGS; do
22688
22689   acl_save_prefix="$prefix"
22690   prefix="$acl_final_prefix"
22691   acl_save_exec_prefix="$exec_prefix"
22692   exec_prefix="$acl_final_exec_prefix"
22693   eval x=\"$x\"
22694   exec_prefix="$acl_save_exec_prefix"
22695   prefix="$acl_save_prefix"
22696
22697       if test "X$x" = "X$element"; then
22698         haveit=yes
22699         break
22700       fi
22701     done
22702     if test -z "$haveit"; then
22703       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
22704     fi
22705   done
22706
22707
22708   { echo "$as_me:$LINENO: checking for iconv" >&5
22709 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
22710 if test "${am_cv_func_iconv+set}" = set; then
22711   echo $ECHO_N "(cached) $ECHO_C" >&6
22712 else
22713
22714     am_cv_func_iconv="no, consider installing GNU libiconv"
22715     am_cv_lib_iconv=no
22716     cat >conftest.$ac_ext <<_ACEOF
22717 /* confdefs.h.  */
22718 _ACEOF
22719 cat confdefs.h >>conftest.$ac_ext
22720 cat >>conftest.$ac_ext <<_ACEOF
22721 /* end confdefs.h.  */
22722 #include <stdlib.h>
22723 #include <iconv.h>
22724 int
22725 main ()
22726 {
22727 iconv_t cd = iconv_open("","");
22728        iconv(cd,NULL,NULL,NULL,NULL);
22729        iconv_close(cd);
22730   ;
22731   return 0;
22732 }
22733 _ACEOF
22734 rm -f conftest.$ac_objext conftest$ac_exeext
22735 if { (ac_try="$ac_link"
22736 case "(($ac_try" in
22737   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22738   *) ac_try_echo=$ac_try;;
22739 esac
22740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22741   (eval "$ac_link") 2>conftest.er1
22742   ac_status=$?
22743   grep -v '^ *+' conftest.er1 >conftest.err
22744   rm -f conftest.er1
22745   cat conftest.err >&5
22746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22747   (exit $ac_status); } && {
22748          test -z "$ac_c_werror_flag" ||
22749          test ! -s conftest.err
22750        } && test -s conftest$ac_exeext &&
22751        $as_test_x conftest$ac_exeext; then
22752   am_cv_func_iconv=yes
22753 else
22754   echo "$as_me: failed program was:" >&5
22755 sed 's/^/| /' conftest.$ac_ext >&5
22756
22757
22758 fi
22759
22760 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22761       conftest$ac_exeext conftest.$ac_ext
22762     if test "$am_cv_func_iconv" != yes; then
22763       am_save_LIBS="$LIBS"
22764       LIBS="$LIBS $LIBICONV"
22765       cat >conftest.$ac_ext <<_ACEOF
22766 /* confdefs.h.  */
22767 _ACEOF
22768 cat confdefs.h >>conftest.$ac_ext
22769 cat >>conftest.$ac_ext <<_ACEOF
22770 /* end confdefs.h.  */
22771 #include <stdlib.h>
22772 #include <iconv.h>
22773 int
22774 main ()
22775 {
22776 iconv_t cd = iconv_open("","");
22777          iconv(cd,NULL,NULL,NULL,NULL);
22778          iconv_close(cd);
22779   ;
22780   return 0;
22781 }
22782 _ACEOF
22783 rm -f conftest.$ac_objext conftest$ac_exeext
22784 if { (ac_try="$ac_link"
22785 case "(($ac_try" in
22786   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22787   *) ac_try_echo=$ac_try;;
22788 esac
22789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22790   (eval "$ac_link") 2>conftest.er1
22791   ac_status=$?
22792   grep -v '^ *+' conftest.er1 >conftest.err
22793   rm -f conftest.er1
22794   cat conftest.err >&5
22795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22796   (exit $ac_status); } && {
22797          test -z "$ac_c_werror_flag" ||
22798          test ! -s conftest.err
22799        } && test -s conftest$ac_exeext &&
22800        $as_test_x conftest$ac_exeext; then
22801   am_cv_lib_iconv=yes
22802         am_cv_func_iconv=yes
22803 else
22804   echo "$as_me: failed program was:" >&5
22805 sed 's/^/| /' conftest.$ac_ext >&5
22806
22807
22808 fi
22809
22810 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22811       conftest$ac_exeext conftest.$ac_ext
22812       LIBS="$am_save_LIBS"
22813     fi
22814
22815 fi
22816 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
22817 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
22818   if test "$am_cv_func_iconv" = yes; then
22819
22820 cat >>confdefs.h <<\_ACEOF
22821 #define HAVE_ICONV 1
22822 _ACEOF
22823
22824   fi
22825   if test "$am_cv_lib_iconv" = yes; then
22826     { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
22827 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
22828     { echo "$as_me:$LINENO: result: $LIBICONV" >&5
22829 echo "${ECHO_T}$LIBICONV" >&6; }
22830   else
22831             CPPFLAGS="$am_save_CPPFLAGS"
22832     LIBICONV=
22833     LTLIBICONV=
22834   fi
22835
22836
22837
22838   if test "$am_cv_func_iconv" = yes; then
22839     { echo "$as_me:$LINENO: checking for iconv declaration" >&5
22840 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
22841     if test "${am_cv_proto_iconv+set}" = set; then
22842   echo $ECHO_N "(cached) $ECHO_C" >&6
22843 else
22844
22845       cat >conftest.$ac_ext <<_ACEOF
22846 /* confdefs.h.  */
22847 _ACEOF
22848 cat confdefs.h >>conftest.$ac_ext
22849 cat >>conftest.$ac_ext <<_ACEOF
22850 /* end confdefs.h.  */
22851
22852 #include <stdlib.h>
22853 #include <iconv.h>
22854 extern
22855 #ifdef __cplusplus
22856 "C"
22857 #endif
22858 #if defined(__STDC__) || defined(__cplusplus)
22859 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
22860 #else
22861 size_t iconv();
22862 #endif
22863
22864 int
22865 main ()
22866 {
22867
22868   ;
22869   return 0;
22870 }
22871 _ACEOF
22872 rm -f conftest.$ac_objext
22873 if { (ac_try="$ac_compile"
22874 case "(($ac_try" in
22875   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22876   *) ac_try_echo=$ac_try;;
22877 esac
22878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22879   (eval "$ac_compile") 2>conftest.er1
22880   ac_status=$?
22881   grep -v '^ *+' conftest.er1 >conftest.err
22882   rm -f conftest.er1
22883   cat conftest.err >&5
22884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22885   (exit $ac_status); } && {
22886          test -z "$ac_c_werror_flag" ||
22887          test ! -s conftest.err
22888        } && test -s conftest.$ac_objext; then
22889   am_cv_proto_iconv_arg1=""
22890 else
22891   echo "$as_me: failed program was:" >&5
22892 sed 's/^/| /' conftest.$ac_ext >&5
22893
22894         am_cv_proto_iconv_arg1="const"
22895 fi
22896
22897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22898       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);"
22899 fi
22900
22901     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
22902     { echo "$as_me:$LINENO: result: ${ac_t:-
22903          }$am_cv_proto_iconv" >&5
22904 echo "${ECHO_T}${ac_t:-
22905          }$am_cv_proto_iconv" >&6; }
22906
22907 cat >>confdefs.h <<_ACEOF
22908 #define ICONV_CONST $am_cv_proto_iconv_arg1
22909 _ACEOF
22910
22911   fi
22912
22913
22914   { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
22915 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
22916 if test "${am_cv_langinfo_codeset+set}" = set; then
22917   echo $ECHO_N "(cached) $ECHO_C" >&6
22918 else
22919   cat >conftest.$ac_ext <<_ACEOF
22920 /* confdefs.h.  */
22921 _ACEOF
22922 cat confdefs.h >>conftest.$ac_ext
22923 cat >>conftest.$ac_ext <<_ACEOF
22924 /* end confdefs.h.  */
22925 #include <langinfo.h>
22926 int
22927 main ()
22928 {
22929 char* cs = nl_langinfo(CODESET);
22930   ;
22931   return 0;
22932 }
22933 _ACEOF
22934 rm -f conftest.$ac_objext conftest$ac_exeext
22935 if { (ac_try="$ac_link"
22936 case "(($ac_try" in
22937   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22938   *) ac_try_echo=$ac_try;;
22939 esac
22940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22941   (eval "$ac_link") 2>conftest.er1
22942   ac_status=$?
22943   grep -v '^ *+' conftest.er1 >conftest.err
22944   rm -f conftest.er1
22945   cat conftest.err >&5
22946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22947   (exit $ac_status); } && {
22948          test -z "$ac_c_werror_flag" ||
22949          test ! -s conftest.err
22950        } && test -s conftest$ac_exeext &&
22951        $as_test_x conftest$ac_exeext; then
22952   am_cv_langinfo_codeset=yes
22953 else
22954   echo "$as_me: failed program was:" >&5
22955 sed 's/^/| /' conftest.$ac_ext >&5
22956
22957         am_cv_langinfo_codeset=no
22958 fi
22959
22960 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22961       conftest$ac_exeext conftest.$ac_ext
22962
22963 fi
22964 { echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
22965 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6; }
22966   if test $am_cv_langinfo_codeset = yes; then
22967
22968 cat >>confdefs.h <<\_ACEOF
22969 #define HAVE_LANGINFO_CODESET 1
22970 _ACEOF
22971
22972   fi
22973
22974   if test $ac_cv_header_locale_h = yes; then
22975
22976   { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
22977 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
22978 if test "${gt_cv_val_LC_MESSAGES+set}" = set; then
22979   echo $ECHO_N "(cached) $ECHO_C" >&6
22980 else
22981   cat >conftest.$ac_ext <<_ACEOF
22982 /* confdefs.h.  */
22983 _ACEOF
22984 cat confdefs.h >>conftest.$ac_ext
22985 cat >>conftest.$ac_ext <<_ACEOF
22986 /* end confdefs.h.  */
22987 #include <locale.h>
22988 int
22989 main ()
22990 {
22991 return LC_MESSAGES
22992   ;
22993   return 0;
22994 }
22995 _ACEOF
22996 rm -f conftest.$ac_objext conftest$ac_exeext
22997 if { (ac_try="$ac_link"
22998 case "(($ac_try" in
22999   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23000   *) ac_try_echo=$ac_try;;
23001 esac
23002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23003   (eval "$ac_link") 2>conftest.er1
23004   ac_status=$?
23005   grep -v '^ *+' conftest.er1 >conftest.err
23006   rm -f conftest.er1
23007   cat conftest.err >&5
23008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23009   (exit $ac_status); } && {
23010          test -z "$ac_c_werror_flag" ||
23011          test ! -s conftest.err
23012        } && test -s conftest$ac_exeext &&
23013        $as_test_x conftest$ac_exeext; then
23014   gt_cv_val_LC_MESSAGES=yes
23015 else
23016   echo "$as_me: failed program was:" >&5
23017 sed 's/^/| /' conftest.$ac_ext >&5
23018
23019         gt_cv_val_LC_MESSAGES=no
23020 fi
23021
23022 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23023       conftest$ac_exeext conftest.$ac_ext
23024 fi
23025 { echo "$as_me:$LINENO: result: $gt_cv_val_LC_MESSAGES" >&5
23026 echo "${ECHO_T}$gt_cv_val_LC_MESSAGES" >&6; }
23027   if test $gt_cv_val_LC_MESSAGES = yes; then
23028
23029 cat >>confdefs.h <<\_ACEOF
23030 #define HAVE_LC_MESSAGES 1
23031 _ACEOF
23032
23033   fi
23034
23035   fi
23036
23037   if test -n "$INTL_MACOSX_LIBS"; then
23038     CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
23039   fi
23040
23041                       for ac_prog in bison
23042 do
23043   # Extract the first word of "$ac_prog", so it can be a program name with args.
23044 set dummy $ac_prog; ac_word=$2
23045 { echo "$as_me:$LINENO: checking for $ac_word" >&5
23046 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
23047 if test "${ac_cv_prog_INTLBISON+set}" = set; then
23048   echo $ECHO_N "(cached) $ECHO_C" >&6
23049 else
23050   if test -n "$INTLBISON"; then
23051   ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
23052 else
23053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23054 for as_dir in $PATH
23055 do
23056   IFS=$as_save_IFS
23057   test -z "$as_dir" && as_dir=.
23058   for ac_exec_ext in '' $ac_executable_extensions; do
23059   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23060     ac_cv_prog_INTLBISON="$ac_prog"
23061     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23062     break 2
23063   fi
23064 done
23065 done
23066 IFS=$as_save_IFS
23067
23068 fi
23069 fi
23070 INTLBISON=$ac_cv_prog_INTLBISON
23071 if test -n "$INTLBISON"; then
23072   { echo "$as_me:$LINENO: result: $INTLBISON" >&5
23073 echo "${ECHO_T}$INTLBISON" >&6; }
23074 else
23075   { echo "$as_me:$LINENO: result: no" >&5
23076 echo "${ECHO_T}no" >&6; }
23077 fi
23078
23079
23080   test -n "$INTLBISON" && break
23081 done
23082
23083   if test -z "$INTLBISON"; then
23084     ac_verc_fail=yes
23085   else
23086         { echo "$as_me:$LINENO: checking version of bison" >&5
23087 echo $ECHO_N "checking version of bison... $ECHO_C" >&6; }
23088     ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
23089     case $ac_prog_version in
23090       '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
23091       1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
23092          ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
23093       *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
23094     esac
23095     { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
23096 echo "${ECHO_T}$ac_prog_version" >&6; }
23097   fi
23098   if test $ac_verc_fail = yes; then
23099     INTLBISON=:
23100   fi
23101
23102
23103
23104
23105
23106
23107
23108
23109
23110
23111
23112
23113
23114
23115
23116
23117     { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
23118 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
23119 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
23120   echo $ECHO_N "(cached) $ECHO_C" >&6
23121 else
23122   gt_save_CPPFLAGS="$CPPFLAGS"
23123      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
23124      gt_save_LIBS="$LIBS"
23125      LIBS="$LIBS -framework CoreFoundation"
23126      cat >conftest.$ac_ext <<_ACEOF
23127 /* confdefs.h.  */
23128 _ACEOF
23129 cat confdefs.h >>conftest.$ac_ext
23130 cat >>conftest.$ac_ext <<_ACEOF
23131 /* end confdefs.h.  */
23132 #include <CFPreferences.h>
23133 int
23134 main ()
23135 {
23136 CFPreferencesCopyAppValue(NULL, NULL)
23137   ;
23138   return 0;
23139 }
23140 _ACEOF
23141 rm -f conftest.$ac_objext conftest$ac_exeext
23142 if { (ac_try="$ac_link"
23143 case "(($ac_try" in
23144   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23145   *) ac_try_echo=$ac_try;;
23146 esac
23147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23148   (eval "$ac_link") 2>conftest.er1
23149   ac_status=$?
23150   grep -v '^ *+' conftest.er1 >conftest.err
23151   rm -f conftest.er1
23152   cat conftest.err >&5
23153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23154   (exit $ac_status); } && {
23155          test -z "$ac_c_werror_flag" ||
23156          test ! -s conftest.err
23157        } && test -s conftest$ac_exeext &&
23158        $as_test_x conftest$ac_exeext; then
23159   gt_cv_func_CFPreferencesCopyAppValue=yes
23160 else
23161   echo "$as_me: failed program was:" >&5
23162 sed 's/^/| /' conftest.$ac_ext >&5
23163
23164         gt_cv_func_CFPreferencesCopyAppValue=no
23165 fi
23166
23167 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23168       conftest$ac_exeext conftest.$ac_ext
23169      CPPFLAGS="$gt_save_CPPFLAGS"
23170      LIBS="$gt_save_LIBS"
23171 fi
23172 { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
23173 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
23174   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
23175
23176 cat >>confdefs.h <<\_ACEOF
23177 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
23178 _ACEOF
23179
23180   fi
23181     { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
23182 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
23183 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
23184   echo $ECHO_N "(cached) $ECHO_C" >&6
23185 else
23186   gt_save_CPPFLAGS="$CPPFLAGS"
23187      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
23188      gt_save_LIBS="$LIBS"
23189      LIBS="$LIBS -framework CoreFoundation"
23190      cat >conftest.$ac_ext <<_ACEOF
23191 /* confdefs.h.  */
23192 _ACEOF
23193 cat confdefs.h >>conftest.$ac_ext
23194 cat >>conftest.$ac_ext <<_ACEOF
23195 /* end confdefs.h.  */
23196 #include <CFLocale.h>
23197 int
23198 main ()
23199 {
23200 CFLocaleCopyCurrent();
23201   ;
23202   return 0;
23203 }
23204 _ACEOF
23205 rm -f conftest.$ac_objext conftest$ac_exeext
23206 if { (ac_try="$ac_link"
23207 case "(($ac_try" in
23208   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23209   *) ac_try_echo=$ac_try;;
23210 esac
23211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23212   (eval "$ac_link") 2>conftest.er1
23213   ac_status=$?
23214   grep -v '^ *+' conftest.er1 >conftest.err
23215   rm -f conftest.er1
23216   cat conftest.err >&5
23217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23218   (exit $ac_status); } && {
23219          test -z "$ac_c_werror_flag" ||
23220          test ! -s conftest.err
23221        } && test -s conftest$ac_exeext &&
23222        $as_test_x conftest$ac_exeext; then
23223   gt_cv_func_CFLocaleCopyCurrent=yes
23224 else
23225   echo "$as_me: failed program was:" >&5
23226 sed 's/^/| /' conftest.$ac_ext >&5
23227
23228         gt_cv_func_CFLocaleCopyCurrent=no
23229 fi
23230
23231 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23232       conftest$ac_exeext conftest.$ac_ext
23233      CPPFLAGS="$gt_save_CPPFLAGS"
23234      LIBS="$gt_save_LIBS"
23235 fi
23236 { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
23237 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
23238   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
23239
23240 cat >>confdefs.h <<\_ACEOF
23241 #define HAVE_CFLOCALECOPYCURRENT 1
23242 _ACEOF
23243
23244   fi
23245   INTL_MACOSX_LIBS=
23246   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
23247     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
23248   fi
23249
23250
23251
23252
23253   { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
23254 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
23255     # Check whether --enable-nls was given.
23256 if test "${enable_nls+set}" = set; then
23257   enableval=$enable_nls; USE_NLS=$enableval
23258 else
23259   USE_NLS=yes
23260 fi
23261
23262   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
23263 echo "${ECHO_T}$USE_NLS" >&6; }
23264
23265
23266
23267
23268     BUILD_INCLUDED_LIBINTL=no
23269     USE_INCLUDED_LIBINTL=no
23270
23271   LIBINTL=
23272   LTLIBINTL=
23273   POSUB=
23274
23275     if test "$USE_NLS" = "yes"; then
23276     gt_use_preinstalled_gnugettext=no
23277
23278       { echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
23279 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6; }
23280
23281 # Check whether --with-included-gettext was given.
23282 if test "${with_included_gettext+set}" = set; then
23283   withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
23284 else
23285   nls_cv_force_use_gnu_gettext=no
23286 fi
23287
23288       { echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
23289 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6; }
23290
23291       nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
23292       if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
23293
23294
23295
23296
23297
23298
23299         { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
23300 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
23301 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
23302   echo $ECHO_N "(cached) $ECHO_C" >&6
23303 else
23304   cat >conftest.$ac_ext <<_ACEOF
23305 /* confdefs.h.  */
23306 _ACEOF
23307 cat confdefs.h >>conftest.$ac_ext
23308 cat >>conftest.$ac_ext <<_ACEOF
23309 /* end confdefs.h.  */
23310 #include <libintl.h>
23311 extern int _nl_msg_cat_cntr;
23312 extern int *_nl_domain_bindings;
23313 int
23314 main ()
23315 {
23316 bindtextdomain ("", "");
23317 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
23318   ;
23319   return 0;
23320 }
23321 _ACEOF
23322 rm -f conftest.$ac_objext conftest$ac_exeext
23323 if { (ac_try="$ac_link"
23324 case "(($ac_try" in
23325   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23326   *) ac_try_echo=$ac_try;;
23327 esac
23328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23329   (eval "$ac_link") 2>conftest.er1
23330   ac_status=$?
23331   grep -v '^ *+' conftest.er1 >conftest.err
23332   rm -f conftest.er1
23333   cat conftest.err >&5
23334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23335   (exit $ac_status); } && {
23336          test -z "$ac_c_werror_flag" ||
23337          test ! -s conftest.err
23338        } && test -s conftest$ac_exeext &&
23339        $as_test_x conftest$ac_exeext; then
23340   gt_cv_func_gnugettext1_libc=yes
23341 else
23342   echo "$as_me: failed program was:" >&5
23343 sed 's/^/| /' conftest.$ac_ext >&5
23344
23345         gt_cv_func_gnugettext1_libc=no
23346 fi
23347
23348 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23349       conftest$ac_exeext conftest.$ac_ext
23350 fi
23351 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
23352 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
23353
23354         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
23355
23356
23357
23358     use_additional=yes
23359
23360   acl_save_prefix="$prefix"
23361   prefix="$acl_final_prefix"
23362   acl_save_exec_prefix="$exec_prefix"
23363   exec_prefix="$acl_final_exec_prefix"
23364
23365     eval additional_includedir=\"$includedir\"
23366     eval additional_libdir=\"$libdir\"
23367
23368   exec_prefix="$acl_save_exec_prefix"
23369   prefix="$acl_save_prefix"
23370
23371
23372 # Check whether --with-libintl-prefix was given.
23373 if test "${with_libintl_prefix+set}" = set; then
23374   withval=$with_libintl_prefix;
23375     if test "X$withval" = "Xno"; then
23376       use_additional=no
23377     else
23378       if test "X$withval" = "X"; then
23379
23380   acl_save_prefix="$prefix"
23381   prefix="$acl_final_prefix"
23382   acl_save_exec_prefix="$exec_prefix"
23383   exec_prefix="$acl_final_exec_prefix"
23384
23385           eval additional_includedir=\"$includedir\"
23386           eval additional_libdir=\"$libdir\"
23387
23388   exec_prefix="$acl_save_exec_prefix"
23389   prefix="$acl_save_prefix"
23390
23391       else
23392         additional_includedir="$withval/include"
23393         additional_libdir="$withval/lib"
23394       fi
23395     fi
23396
23397 fi
23398
23399       LIBINTL=
23400   LTLIBINTL=
23401   INCINTL=
23402   rpathdirs=
23403   ltrpathdirs=
23404   names_already_handled=
23405   names_next_round='intl '
23406   while test -n "$names_next_round"; do
23407     names_this_round="$names_next_round"
23408     names_next_round=
23409     for name in $names_this_round; do
23410       already_handled=
23411       for n in $names_already_handled; do
23412         if test "$n" = "$name"; then
23413           already_handled=yes
23414           break
23415         fi
23416       done
23417       if test -z "$already_handled"; then
23418         names_already_handled="$names_already_handled $name"
23419                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
23420         eval value=\"\$HAVE_LIB$uppername\"
23421         if test -n "$value"; then
23422           if test "$value" = yes; then
23423             eval value=\"\$LIB$uppername\"
23424             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
23425             eval value=\"\$LTLIB$uppername\"
23426             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
23427           else
23428                                     :
23429           fi
23430         else
23431                               found_dir=
23432           found_la=
23433           found_so=
23434           found_a=
23435           if test $use_additional = yes; then
23436             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
23437               found_dir="$additional_libdir"
23438               found_so="$additional_libdir/lib$name.$shlibext"
23439               if test -f "$additional_libdir/lib$name.la"; then
23440                 found_la="$additional_libdir/lib$name.la"
23441               fi
23442             else
23443               if test -f "$additional_libdir/lib$name.$libext"; then
23444                 found_dir="$additional_libdir"
23445                 found_a="$additional_libdir/lib$name.$libext"
23446                 if test -f "$additional_libdir/lib$name.la"; then
23447                   found_la="$additional_libdir/lib$name.la"
23448                 fi
23449               fi
23450             fi
23451           fi
23452           if test "X$found_dir" = "X"; then
23453             for x in $LDFLAGS $LTLIBINTL; do
23454
23455   acl_save_prefix="$prefix"
23456   prefix="$acl_final_prefix"
23457   acl_save_exec_prefix="$exec_prefix"
23458   exec_prefix="$acl_final_exec_prefix"
23459   eval x=\"$x\"
23460   exec_prefix="$acl_save_exec_prefix"
23461   prefix="$acl_save_prefix"
23462
23463               case "$x" in
23464                 -L*)
23465                   dir=`echo "X$x" | sed -e 's/^X-L//'`
23466                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
23467                     found_dir="$dir"
23468                     found_so="$dir/lib$name.$shlibext"
23469                     if test -f "$dir/lib$name.la"; then
23470                       found_la="$dir/lib$name.la"
23471                     fi
23472                   else
23473                     if test -f "$dir/lib$name.$libext"; then
23474                       found_dir="$dir"
23475                       found_a="$dir/lib$name.$libext"
23476                       if test -f "$dir/lib$name.la"; then
23477                         found_la="$dir/lib$name.la"
23478                       fi
23479                     fi
23480                   fi
23481                   ;;
23482               esac
23483               if test "X$found_dir" != "X"; then
23484                 break
23485               fi
23486             done
23487           fi
23488           if test "X$found_dir" != "X"; then
23489                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
23490             if test "X$found_so" != "X"; then
23491                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
23492                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23493               else
23494                                                                                 haveit=
23495                 for x in $ltrpathdirs; do
23496                   if test "X$x" = "X$found_dir"; then
23497                     haveit=yes
23498                     break
23499                   fi
23500                 done
23501                 if test -z "$haveit"; then
23502                   ltrpathdirs="$ltrpathdirs $found_dir"
23503                 fi
23504                                 if test "$hardcode_direct" = yes; then
23505                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23506                 else
23507                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
23508                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23509                                                             haveit=
23510                     for x in $rpathdirs; do
23511                       if test "X$x" = "X$found_dir"; then
23512                         haveit=yes
23513                         break
23514                       fi
23515                     done
23516                     if test -z "$haveit"; then
23517                       rpathdirs="$rpathdirs $found_dir"
23518                     fi
23519                   else
23520                                                                                 haveit=
23521                     for x in $LDFLAGS $LIBINTL; do
23522
23523   acl_save_prefix="$prefix"
23524   prefix="$acl_final_prefix"
23525   acl_save_exec_prefix="$exec_prefix"
23526   exec_prefix="$acl_final_exec_prefix"
23527   eval x=\"$x\"
23528   exec_prefix="$acl_save_exec_prefix"
23529   prefix="$acl_save_prefix"
23530
23531                       if test "X$x" = "X-L$found_dir"; then
23532                         haveit=yes
23533                         break
23534                       fi
23535                     done
23536                     if test -z "$haveit"; then
23537                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
23538                     fi
23539                     if test "$hardcode_minus_L" != no; then
23540                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23541                     else
23542                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
23543                     fi
23544                   fi
23545                 fi
23546               fi
23547             else
23548               if test "X$found_a" != "X"; then
23549                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
23550               else
23551                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
23552               fi
23553             fi
23554                         additional_includedir=
23555             case "$found_dir" in
23556               */lib | */lib/)
23557                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
23558                 additional_includedir="$basedir/include"
23559                 ;;
23560             esac
23561             if test "X$additional_includedir" != "X"; then
23562                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
23563                 haveit=
23564                 if test "X$additional_includedir" = "X/usr/local/include"; then
23565                   if test -n "$GCC"; then
23566                     case $host_os in
23567                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
23568                     esac
23569                   fi
23570                 fi
23571                 if test -z "$haveit"; then
23572                   for x in $CPPFLAGS $INCINTL; do
23573
23574   acl_save_prefix="$prefix"
23575   prefix="$acl_final_prefix"
23576   acl_save_exec_prefix="$exec_prefix"
23577   exec_prefix="$acl_final_exec_prefix"
23578   eval x=\"$x\"
23579   exec_prefix="$acl_save_exec_prefix"
23580   prefix="$acl_save_prefix"
23581
23582                     if test "X$x" = "X-I$additional_includedir"; then
23583                       haveit=yes
23584                       break
23585                     fi
23586                   done
23587                   if test -z "$haveit"; then
23588                     if test -d "$additional_includedir"; then
23589                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
23590                     fi
23591                   fi
23592                 fi
23593               fi
23594             fi
23595                         if test -n "$found_la"; then
23596                                                         save_libdir="$libdir"
23597               case "$found_la" in
23598                 */* | *\\*) . "$found_la" ;;
23599                 *) . "./$found_la" ;;
23600               esac
23601               libdir="$save_libdir"
23602                             for dep in $dependency_libs; do
23603                 case "$dep" in
23604                   -L*)
23605                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
23606                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
23607                       haveit=
23608                       if test "X$additional_libdir" = "X/usr/local/lib"; then
23609                         if test -n "$GCC"; then
23610                           case $host_os in
23611                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
23612                           esac
23613                         fi
23614                       fi
23615                       if test -z "$haveit"; then
23616                         haveit=
23617                         for x in $LDFLAGS $LIBINTL; do
23618
23619   acl_save_prefix="$prefix"
23620   prefix="$acl_final_prefix"
23621   acl_save_exec_prefix="$exec_prefix"
23622   exec_prefix="$acl_final_exec_prefix"
23623   eval x=\"$x\"
23624   exec_prefix="$acl_save_exec_prefix"
23625   prefix="$acl_save_prefix"
23626
23627                           if test "X$x" = "X-L$additional_libdir"; then
23628                             haveit=yes
23629                             break
23630                           fi
23631                         done
23632                         if test -z "$haveit"; then
23633                           if test -d "$additional_libdir"; then
23634                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
23635                           fi
23636                         fi
23637                         haveit=
23638                         for x in $LDFLAGS $LTLIBINTL; do
23639
23640   acl_save_prefix="$prefix"
23641   prefix="$acl_final_prefix"
23642   acl_save_exec_prefix="$exec_prefix"
23643   exec_prefix="$acl_final_exec_prefix"
23644   eval x=\"$x\"
23645   exec_prefix="$acl_save_exec_prefix"
23646   prefix="$acl_save_prefix"
23647
23648                           if test "X$x" = "X-L$additional_libdir"; then
23649                             haveit=yes
23650                             break
23651                           fi
23652                         done
23653                         if test -z "$haveit"; then
23654                           if test -d "$additional_libdir"; then
23655                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
23656                           fi
23657                         fi
23658                       fi
23659                     fi
23660                     ;;
23661                   -R*)
23662                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
23663                     if test "$enable_rpath" != no; then
23664                                                                   haveit=
23665                       for x in $rpathdirs; do
23666                         if test "X$x" = "X$dir"; then
23667                           haveit=yes
23668                           break
23669                         fi
23670                       done
23671                       if test -z "$haveit"; then
23672                         rpathdirs="$rpathdirs $dir"
23673                       fi
23674                                                                   haveit=
23675                       for x in $ltrpathdirs; do
23676                         if test "X$x" = "X$dir"; then
23677                           haveit=yes
23678                           break
23679                         fi
23680                       done
23681                       if test -z "$haveit"; then
23682                         ltrpathdirs="$ltrpathdirs $dir"
23683                       fi
23684                     fi
23685                     ;;
23686                   -l*)
23687                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
23688                     ;;
23689                   *.la)
23690                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
23691                     ;;
23692                   *)
23693                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
23694                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
23695                     ;;
23696                 esac
23697               done
23698             fi
23699           else
23700                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
23701             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
23702           fi
23703         fi
23704       fi
23705     done
23706   done
23707   if test "X$rpathdirs" != "X"; then
23708     if test -n "$hardcode_libdir_separator"; then
23709                         alldirs=
23710       for found_dir in $rpathdirs; do
23711         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
23712       done
23713             acl_save_libdir="$libdir"
23714       libdir="$alldirs"
23715       eval flag=\"$hardcode_libdir_flag_spec\"
23716       libdir="$acl_save_libdir"
23717       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
23718     else
23719             for found_dir in $rpathdirs; do
23720         acl_save_libdir="$libdir"
23721         libdir="$found_dir"
23722         eval flag=\"$hardcode_libdir_flag_spec\"
23723         libdir="$acl_save_libdir"
23724         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
23725       done
23726     fi
23727   fi
23728   if test "X$ltrpathdirs" != "X"; then
23729             for found_dir in $ltrpathdirs; do
23730       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
23731     done
23732   fi
23733
23734           { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
23735 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
23736 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
23737   echo $ECHO_N "(cached) $ECHO_C" >&6
23738 else
23739   gt_save_CPPFLAGS="$CPPFLAGS"
23740             CPPFLAGS="$CPPFLAGS $INCINTL"
23741             gt_save_LIBS="$LIBS"
23742             LIBS="$LIBS $LIBINTL"
23743                         cat >conftest.$ac_ext <<_ACEOF
23744 /* confdefs.h.  */
23745 _ACEOF
23746 cat confdefs.h >>conftest.$ac_ext
23747 cat >>conftest.$ac_ext <<_ACEOF
23748 /* end confdefs.h.  */
23749 #include <libintl.h>
23750 extern int _nl_msg_cat_cntr;
23751 extern
23752 #ifdef __cplusplus
23753 "C"
23754 #endif
23755 const char *_nl_expand_alias (const char *);
23756 int
23757 main ()
23758 {
23759 bindtextdomain ("", "");
23760 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
23761   ;
23762   return 0;
23763 }
23764 _ACEOF
23765 rm -f conftest.$ac_objext conftest$ac_exeext
23766 if { (ac_try="$ac_link"
23767 case "(($ac_try" in
23768   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23769   *) ac_try_echo=$ac_try;;
23770 esac
23771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23772   (eval "$ac_link") 2>conftest.er1
23773   ac_status=$?
23774   grep -v '^ *+' conftest.er1 >conftest.err
23775   rm -f conftest.er1
23776   cat conftest.err >&5
23777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23778   (exit $ac_status); } && {
23779          test -z "$ac_c_werror_flag" ||
23780          test ! -s conftest.err
23781        } && test -s conftest$ac_exeext &&
23782        $as_test_x conftest$ac_exeext; then
23783   gt_cv_func_gnugettext1_libintl=yes
23784 else
23785   echo "$as_me: failed program was:" >&5
23786 sed 's/^/| /' conftest.$ac_ext >&5
23787
23788         gt_cv_func_gnugettext1_libintl=no
23789 fi
23790
23791 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23792       conftest$ac_exeext conftest.$ac_ext
23793                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
23794               LIBS="$LIBS $LIBICONV"
23795               cat >conftest.$ac_ext <<_ACEOF
23796 /* confdefs.h.  */
23797 _ACEOF
23798 cat confdefs.h >>conftest.$ac_ext
23799 cat >>conftest.$ac_ext <<_ACEOF
23800 /* end confdefs.h.  */
23801 #include <libintl.h>
23802 extern int _nl_msg_cat_cntr;
23803 extern
23804 #ifdef __cplusplus
23805 "C"
23806 #endif
23807 const char *_nl_expand_alias (const char *);
23808 int
23809 main ()
23810 {
23811 bindtextdomain ("", "");
23812 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
23813   ;
23814   return 0;
23815 }
23816 _ACEOF
23817 rm -f conftest.$ac_objext conftest$ac_exeext
23818 if { (ac_try="$ac_link"
23819 case "(($ac_try" in
23820   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23821   *) ac_try_echo=$ac_try;;
23822 esac
23823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23824   (eval "$ac_link") 2>conftest.er1
23825   ac_status=$?
23826   grep -v '^ *+' conftest.er1 >conftest.err
23827   rm -f conftest.er1
23828   cat conftest.err >&5
23829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23830   (exit $ac_status); } && {
23831          test -z "$ac_c_werror_flag" ||
23832          test ! -s conftest.err
23833        } && test -s conftest$ac_exeext &&
23834        $as_test_x conftest$ac_exeext; then
23835   LIBINTL="$LIBINTL $LIBICONV"
23836                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
23837                 gt_cv_func_gnugettext1_libintl=yes
23838
23839 else
23840   echo "$as_me: failed program was:" >&5
23841 sed 's/^/| /' conftest.$ac_ext >&5
23842
23843
23844 fi
23845
23846 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23847       conftest$ac_exeext conftest.$ac_ext
23848             fi
23849             CPPFLAGS="$gt_save_CPPFLAGS"
23850             LIBS="$gt_save_LIBS"
23851 fi
23852 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
23853 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
23854         fi
23855
23856                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
23857            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
23858                 && test "$PACKAGE" != gettext-runtime \
23859                 && test "$PACKAGE" != gettext-tools; }; then
23860           gt_use_preinstalled_gnugettext=yes
23861         else
23862                     LIBINTL=
23863           LTLIBINTL=
23864           INCINTL=
23865         fi
23866
23867
23868         if test "$gt_use_preinstalled_gnugettext" != "yes"; then
23869                               nls_cv_use_gnu_gettext=yes
23870         fi
23871       fi
23872
23873       if test "$nls_cv_use_gnu_gettext" = "yes"; then
23874                 BUILD_INCLUDED_LIBINTL=yes
23875         USE_INCLUDED_LIBINTL=yes
23876         LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
23877         LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
23878         LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
23879       fi
23880
23881       CATOBJEXT=
23882       if test "$gt_use_preinstalled_gnugettext" = "yes" \
23883          || test "$nls_cv_use_gnu_gettext" = "yes"; then
23884                 CATOBJEXT=.gmo
23885       fi
23886
23887
23888     if test -n "$INTL_MACOSX_LIBS"; then
23889       if test "$gt_use_preinstalled_gnugettext" = "yes" \
23890          || test "$nls_cv_use_gnu_gettext" = "yes"; then
23891                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
23892         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
23893       fi
23894     fi
23895
23896     if test "$gt_use_preinstalled_gnugettext" = "yes" \
23897        || test "$nls_cv_use_gnu_gettext" = "yes"; then
23898
23899 cat >>confdefs.h <<\_ACEOF
23900 #define ENABLE_NLS 1
23901 _ACEOF
23902
23903     else
23904       USE_NLS=no
23905     fi
23906   fi
23907
23908   { echo "$as_me:$LINENO: checking whether to use NLS" >&5
23909 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
23910   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
23911 echo "${ECHO_T}$USE_NLS" >&6; }
23912   if test "$USE_NLS" = "yes"; then
23913     { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
23914 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
23915     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
23916       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
23917         gt_source="external libintl"
23918       else
23919         gt_source="libc"
23920       fi
23921     else
23922       gt_source="included intl directory"
23923     fi
23924     { echo "$as_me:$LINENO: result: $gt_source" >&5
23925 echo "${ECHO_T}$gt_source" >&6; }
23926   fi
23927
23928   if test "$USE_NLS" = "yes"; then
23929
23930     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
23931       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
23932         { echo "$as_me:$LINENO: checking how to link with libintl" >&5
23933 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
23934         { echo "$as_me:$LINENO: result: $LIBINTL" >&5
23935 echo "${ECHO_T}$LIBINTL" >&6; }
23936
23937   for element in $INCINTL; do
23938     haveit=
23939     for x in $CPPFLAGS; do
23940
23941   acl_save_prefix="$prefix"
23942   prefix="$acl_final_prefix"
23943   acl_save_exec_prefix="$exec_prefix"
23944   exec_prefix="$acl_final_exec_prefix"
23945   eval x=\"$x\"
23946   exec_prefix="$acl_save_exec_prefix"
23947   prefix="$acl_save_prefix"
23948
23949       if test "X$x" = "X$element"; then
23950         haveit=yes
23951         break
23952       fi
23953     done
23954     if test -z "$haveit"; then
23955       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
23956     fi
23957   done
23958
23959       fi
23960
23961
23962 cat >>confdefs.h <<\_ACEOF
23963 #define HAVE_GETTEXT 1
23964 _ACEOF
23965
23966
23967 cat >>confdefs.h <<\_ACEOF
23968 #define HAVE_DCGETTEXT 1
23969 _ACEOF
23970
23971     fi
23972
23973         POSUB=po
23974   fi
23975
23976
23977             if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
23978       BUILD_INCLUDED_LIBINTL=yes
23979     fi
23980
23981
23982
23983
23984
23985         nls_cv_header_intl=
23986     nls_cv_header_libgt=
23987
23988         DATADIRNAME=share
23989
23990
23991         INSTOBJEXT=.mo
23992
23993
23994         GENCAT=gencat
23995
23996
23997         INTLOBJS=
23998     if test "$USE_INCLUDED_LIBINTL" = yes; then
23999       INTLOBJS="\$(GETTOBJS)"
24000     fi
24001
24002
24003         INTL_LIBTOOL_SUFFIX_PREFIX=
24004
24005
24006
24007     INTLLIBS="$LIBINTL"
24008
24009
24010
24011
24012
24013
24014 fi
24015
24016 support_mysql=no
24017 support_sqlite=no
24018 support_sqlite3=no
24019 support_postgresql=no
24020 support_dbi=no
24021 support_smartalloc=yes
24022 support_readline=yes
24023 support_conio=yes
24024 support_gnome=no
24025 support_bat=no
24026 support_wx_console=no
24027 support_tray_monitor=no
24028 support_tls=no
24029 support_crypto=no
24030 gnome_version=
24031 wx_version=
24032 support_static_tools=no
24033 support_static_fd=no
24034 support_static_sd=no
24035 support_static_dir=no
24036 support_static_cons=no
24037 support_python=no
24038 build_client_only=no
24039 build_dird=yes
24040 build_stored=yes
24041 cats=
24042 db_type=Internal
24043 support_lockmgr=no
24044 DB_TYPE=bdb
24045
24046
24047 # Check whether --enable-gnome was given.
24048 if test "${enable_gnome+set}" = set; then
24049   enableval=$enable_gnome;
24050        if test x$enableval = xyes; then
24051           support_gnome=yes
24052        fi
24053
24054
24055 fi
24056
24057
24058 GNOME_DIR=
24059 if test x$support_gnome = xyes; then
24060    { { echo "$as_me:$LINENO: error: bgnome-console no longer supported" >&5
24061 echo "$as_me: error: bgnome-console no longer supported" >&2;}
24062    { (exit 1); exit 1; }; }
24063    { { echo "$as_me:$LINENO: error: --enable-gnome option no longer supported" >&5
24064 echo "$as_me: error: --enable-gnome option no longer supported" >&2;}
24065    { (exit 1); exit 1; }; }
24066 fi
24067 # AC_SUBST(GNOME_DIR)
24068
24069 # Check whether --enable-bat was given.
24070 if test "${enable_bat+set}" = set; then
24071   enableval=$enable_bat;
24072        if test x$enableval = xyes; then
24073
24074 cat >>confdefs.h <<\_ACEOF
24075 #define HAVE_BAT 1
24076 _ACEOF
24077
24078           support_bat=yes
24079        fi
24080
24081
24082 fi
24083
24084
24085 BAT_DIR=
24086 if test x$support_bat = xyes; then
24087    abc=`$PKGCONFIG --atleast-version=4.2 QtGui`
24088    pkg=$?
24089    if test $pkg = 0; then
24090       BAT_DIR=src/qt-console
24091    else
24092       { { echo "$as_me:$LINENO: error: Unable to find Qt4 installation needed by bat" >&5
24093 echo "$as_me: error: Unable to find Qt4 installation needed by bat" >&2;}
24094    { (exit 1); exit 1; }; }
24095    fi
24096 fi
24097
24098 got_qwt=no
24099 QWT_INC=
24100 QWT_LDFLAGS=
24101 QWT_LIB=
24102 QWT=
24103 no_qwt=no
24104 if test x$support_bat = xyes; then
24105    { echo "$as_me:$LINENO: checking for qwt support" >&5
24106 echo $ECHO_N "checking for qwt support... $ECHO_C" >&6; }
24107
24108 # Check whether --with-qwt was given.
24109 if test "${with_qwt+set}" = set; then
24110   withval=$with_qwt;
24111           case "$with_qwt" in
24112           no)
24113              no_qwt=yes
24114              ;;
24115           yes|*)
24116              if test -f ${with_qwt}/include/qwt.h; then
24117                 QWT_INC="${with_qwt}/include"
24118                 QWT_LDFLAGS="-L${with_qwt}/lib"
24119                 QWT_LIB="-lqwt"
24120                 QWT="qwt"
24121              fi
24122              ;;
24123           esac
24124
24125
24126 fi
24127
24128
24129             if test $no_qwt = no; then
24130       if test x$QWT_INC = x; then
24131          for root in /usr /usr/local; do
24132             for ver in qwt qwt5 qwt-qt4; do
24133                if test -f ${root}/include/${ver}/qwt.h; then
24134                   QWT_INC="${root}/include/${ver}"
24135                   if test -d ${root}/lib64/; then
24136                      QWT_LDFLAGS="-L${root}/lib64"
24137                   elif test -d ${root}/lib/64/; then
24138                      QWT_LDFLAGS="-L${root}/64"
24139                   else
24140                      QWT_LDFLAGS="-L${root}/lib"
24141                   fi
24142                   QWT_LIB="-lqwt"
24143                   QWT="qwt"
24144                   got_qwt=yes
24145                   break;
24146                fi
24147             done
24148          done
24149       fi
24150    fi
24151    if test x$QWT_INC = x; then
24152       { echo "$as_me:$LINENO: result: no" >&5
24153 echo "${ECHO_T}no" >&6; }
24154    else
24155
24156 cat >>confdefs.h <<\_ACEOF
24157 #define HAVE_QWT 1
24158 _ACEOF
24159
24160       { echo "$as_me:$LINENO: result: yes" >&5
24161 echo "${ECHO_T}yes" >&6; }
24162    fi
24163 fi
24164
24165
24166
24167
24168
24169
24170
24171 # Check whether --enable-bwx-console was given.
24172 if test "${enable_bwx_console+set}" = set; then
24173   enableval=$enable_bwx_console;
24174        if test x$enableval = xyes; then
24175           support_wx_console=yes
24176        fi
24177
24178
24179 fi
24180
24181
24182 WX_DIR=
24183 if test x$support_wx_console = xyes; then
24184    abc=`$WXCONFIG $WXFLAGS --cppflags`
24185    pkg=$?
24186    if test $pkg = 0; then
24187       wx_version="wxWidgets `$WXCONFIG $WXFLAGS --release`"
24188       WXCONS_CPPFLAGS=`$WXCONFIG $WXFLAGS --cppflags`
24189       WXCONS_LDFLAGS=`$WXCONFIG $WXFLAGS --libs`
24190
24191
24192
24193       WX_DIR="src/wx-console"
24194    else
24195       echo " "
24196       echo "wx-config program not found. bwx-console disabled."
24197       echo " "
24198       support_wx_console=no
24199    fi
24200 fi
24201
24202
24203 # Check whether --enable-tray-monitor was given.
24204 if test "${enable_tray_monitor+set}" = set; then
24205   enableval=$enable_tray_monitor;
24206        if test x$enableval = xyes; then
24207           support_tray_monitor=yes
24208        fi
24209
24210
24211 fi
24212
24213
24214 TRAY_MONITOR_DIR=
24215 if test x$support_tray_monitor = xyes; then
24216    abc=`$PKGCONFIG --exists gtk+-2.0`
24217    pkg=$?
24218    if test $pkg = 0; then
24219       TRAY_MONITOR_CPPFLAGS=`$PKGCONFIG --cflags gtk+-2.0`
24220       TRAY_MONITOR_LDFLAGS=`$PKGCONFIG --libs gtk+-2.0`
24221
24222
24223       TRAY_MONITOR_DIR=src/tray-monitor
24224       abc=`$PKGCONFIG --atleast-version=2.4 gtk+-2.0`
24225       pkg=$?
24226       if test $pkg = 0; then
24227
24228 cat >>confdefs.h <<\_ACEOF
24229 #define HAVE_GTK_2_4 1
24230 _ACEOF
24231
24232       fi
24233    fi
24234 fi
24235
24236
24237 # Check whether --enable-smartalloc was given.
24238 if test "${enable_smartalloc+set}" = set; then
24239   enableval=$enable_smartalloc;
24240        if test x$enableval = xno; then
24241           support_smartalloc=no
24242        fi
24243
24244
24245 fi
24246
24247
24248 if test x$support_smartalloc = xyes; then
24249
24250 cat >>confdefs.h <<\_ACEOF
24251 #define SMARTALLOC 1
24252 _ACEOF
24253
24254 fi
24255
24256 # Check whether --enable-lockmgr was given.
24257 if test "${enable_lockmgr+set}" = set; then
24258   enableval=$enable_lockmgr;
24259        if test x$enableval = xyes; then
24260           support_lockmgr=yes
24261        fi
24262
24263
24264 fi
24265
24266
24267 if test x$support_lockmgr = xyes; then
24268
24269 cat >>confdefs.h <<\_ACEOF
24270 #define _USE_LOCKMGR 1
24271 _ACEOF
24272
24273 fi
24274
24275
24276 # Check whether --enable-static-tools was given.
24277 if test "${enable_static_tools+set}" = set; then
24278   enableval=$enable_static_tools;
24279        if test x$enableval = xyes; then
24280           if test x$use_libtool = xyes; then
24281              { { echo "$as_me:$LINENO: error: Libtool is enabled, not compatible with static tools,
24282   please rerun configure with --disable-libtool" >&5
24283 echo "$as_me: error: Libtool is enabled, not compatible with static tools,
24284   please rerun configure with --disable-libtool" >&2;}
24285    { (exit 1); exit 1; }; }
24286           fi
24287           support_static_tools=yes
24288        fi
24289
24290
24291 fi
24292
24293
24294 TTOOL_LDFLAGS=
24295 if test x$support_static_tools = xyes; then
24296    TTOOL_LDFLAGS="-static"
24297 fi
24298
24299
24300 # Check whether --enable-static-fd was given.
24301 if test "${enable_static_fd+set}" = set; then
24302   enableval=$enable_static_fd;
24303        if test x$enableval = xyes; then
24304           if test x$use_libtool = xyes; then
24305              { { echo "$as_me:$LINENO: error: Libtool is enabled, not compatible with static tools,
24306   please rerun configure with --disable-libtool" >&5
24307 echo "$as_me: error: Libtool is enabled, not compatible with static tools,
24308   please rerun configure with --disable-libtool" >&2;}
24309    { (exit 1); exit 1; }; }
24310           fi
24311           support_static_fd=yes
24312        fi
24313
24314
24315 fi
24316
24317
24318 STATIC_FD=
24319 if test x$support_static_fd = xyes; then
24320    STATIC_FD="static-bacula-fd"
24321 fi
24322
24323
24324 # Check whether --enable-static-sd was given.
24325 if test "${enable_static_sd+set}" = set; then
24326   enableval=$enable_static_sd;
24327        if test x$enableval = xyes; then
24328           if test x$use_libtool = xyes; then
24329              { { echo "$as_me:$LINENO: error: Libtool is enabled, not compatible with static tools,
24330   please rerun configure with --disable-libtool" >&5
24331 echo "$as_me: error: Libtool is enabled, not compatible with static tools,
24332   please rerun configure with --disable-libtool" >&2;}
24333    { (exit 1); exit 1; }; }
24334           fi
24335           support_static_sd=yes
24336        fi
24337
24338
24339 fi
24340
24341
24342 STATIC_SD=
24343 if test x$support_static_sd = xyes; then
24344    STATIC_SD="static-bacula-sd"
24345 fi
24346
24347
24348 # Check whether --enable-static-dir was given.
24349 if test "${enable_static_dir+set}" = set; then
24350   enableval=$enable_static_dir;
24351        if test x$enableval = xyes; then
24352           if test x$use_libtool = xyes; then
24353              { { echo "$as_me:$LINENO: error: Libtool is enabled, not compatible with static tools,
24354   please rerun configure with --disable-libtool" >&5
24355 echo "$as_me: error: Libtool is enabled, not compatible with static tools,
24356   please rerun configure with --disable-libtool" >&2;}
24357    { (exit 1); exit 1; }; }
24358           fi
24359           support_static_dir=yes
24360        fi
24361
24362
24363 fi
24364
24365
24366 STATIC_DIR=
24367 if test x$support_static_dir = xyes; then
24368    STATIC_DIR="static-bacula-dir"
24369 fi
24370
24371
24372 # Check whether --enable-static-cons was given.
24373 if test "${enable_static_cons+set}" = set; then
24374   enableval=$enable_static_cons;
24375        if test x$enableval = xyes; then
24376           if test x$use_libtool = xyes; then
24377              { { echo "$as_me:$LINENO: error: Libtool is enabled, not compatible with static tools,
24378   please rerun configure with --disable-libtool" >&5
24379 echo "$as_me: error: Libtool is enabled, not compatible with static tools,
24380   please rerun configure with --disable-libtool" >&2;}
24381    { (exit 1); exit 1; }; }
24382           fi
24383           support_static_cons=yes
24384        fi
24385
24386
24387 fi
24388
24389
24390 STATIC_CONS=
24391 STATIC_GNOME_CONS=
24392 STATIC_WX_CONS=
24393 if test x$support_static_cons = xyes; then
24394    STATIC_CONS="static-bconsole"
24395    STATIC_GNOME_CONS="static-bgnome-console"
24396    STATIC_WX_CONS="static-bwx-console"
24397 fi
24398
24399
24400
24401
24402 # Check whether --enable-client-only was given.
24403 if test "${enable_client_only+set}" = set; then
24404   enableval=$enable_client_only;
24405        if test x$enableval = xyes; then
24406           build_client_only=yes
24407           db_type=None
24408           DB_TYPE=none
24409        fi
24410
24411
24412 fi
24413
24414 if test x$build_client_only = xno; then
24415    ALL_DIRS="subdirs"
24416 else
24417    ALL_DIRS=""
24418 fi
24419
24420
24421 # Check whether --enable-build-dird was given.
24422 if test "${enable_build_dird+set}" = set; then
24423   enableval=$enable_build_dird;
24424        if test x$enableval = xno; then
24425           build_dird=no
24426        fi
24427
24428
24429 fi
24430
24431 if test x$build_dird = xyes; then
24432    DIRD_DIR="src/dird"
24433    DIR_TOOLS="DIRTOOLS"
24434 else
24435    DIRD_DIR=""
24436    DIR_TOOLS="NODIRTOOLS"
24437 fi
24438
24439
24440
24441 # Check whether --enable-build-stored was given.
24442 if test "${enable_build_stored+set}" = set; then
24443   enableval=$enable_build_stored;
24444       if test x$enableval = xno; then
24445          build_stored=no
24446       fi
24447
24448
24449 fi
24450
24451 if test x$build_stored = xyes; then
24452    STORED_DIR="src/stored"
24453 else
24454    STORED_DIR=""
24455 fi
24456
24457
24458 # Check whether --enable-conio was given.
24459 if test "${enable_conio+set}" = set; then
24460   enableval=$enable_conio;
24461        if test x$enableval = xno; then
24462           support_conio=no
24463        fi
24464
24465
24466 fi
24467
24468
24469
24470 support_ipv6=yes
24471 # Check whether --enable-ipv6 was given.
24472 if test "${enable_ipv6+set}" = set; then
24473   enableval=$enable_ipv6;
24474        if test x$enableval = xno; then
24475           support_ipv6=no
24476        fi
24477
24478
24479 fi
24480
24481
24482 if test x$support_ipv6 = xyes; then
24483     cat >conftest.$ac_ext <<_ACEOF
24484 /* confdefs.h.  */
24485 _ACEOF
24486 cat confdefs.h >>conftest.$ac_ext
24487 cat >>conftest.$ac_ext <<_ACEOF
24488 /* end confdefs.h.  */
24489  #include <sys/types.h>
24490 #include <sys/socket.h>
24491 #include <netinet/in.h>
24492 int
24493 main ()
24494 {
24495 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] = 0;
24496   ;
24497   return 0;
24498 }
24499 _ACEOF
24500 rm -f conftest.$ac_objext conftest$ac_exeext
24501 if { (ac_try="$ac_link"
24502 case "(($ac_try" in
24503   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24504   *) ac_try_echo=$ac_try;;
24505 esac
24506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24507   (eval "$ac_link") 2>conftest.er1
24508   ac_status=$?
24509   grep -v '^ *+' conftest.er1 >conftest.err
24510   rm -f conftest.er1
24511   cat conftest.err >&5
24512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24513   (exit $ac_status); } && {
24514          test -z "$ac_c_werror_flag" ||
24515          test ! -s conftest.err
24516        } && test -s conftest$ac_exeext &&
24517        $as_test_x conftest$ac_exeext; then
24518   support_ipv6=yes
24519 else
24520   echo "$as_me: failed program was:" >&5
24521 sed 's/^/| /' conftest.$ac_ext >&5
24522
24523         support_ipv6=no
24524 fi
24525
24526 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24527       conftest$ac_exeext conftest.$ac_ext
24528 fi
24529
24530 if test x$support_ipv6 = xyes; then
24531
24532 cat >>confdefs.h <<\_ACEOF
24533 #define HAVE_IPV6 1
24534 _ACEOF
24535
24536 fi
24537
24538 got_conio="no"
24539 if test x$support_conio = xyes; then
24540    if test "${ac_cv_header_termcap_h+set}" = set; then
24541   { echo "$as_me:$LINENO: checking for termcap.h" >&5
24542 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6; }
24543 if test "${ac_cv_header_termcap_h+set}" = set; then
24544   echo $ECHO_N "(cached) $ECHO_C" >&6
24545 fi
24546 { echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
24547 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6; }
24548 else
24549   # Is the header compilable?
24550 { echo "$as_me:$LINENO: checking termcap.h usability" >&5
24551 echo $ECHO_N "checking termcap.h usability... $ECHO_C" >&6; }
24552 cat >conftest.$ac_ext <<_ACEOF
24553 /* confdefs.h.  */
24554 _ACEOF
24555 cat confdefs.h >>conftest.$ac_ext
24556 cat >>conftest.$ac_ext <<_ACEOF
24557 /* end confdefs.h.  */
24558 $ac_includes_default
24559 #include <termcap.h>
24560 _ACEOF
24561 rm -f conftest.$ac_objext
24562 if { (ac_try="$ac_compile"
24563 case "(($ac_try" in
24564   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24565   *) ac_try_echo=$ac_try;;
24566 esac
24567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24568   (eval "$ac_compile") 2>conftest.er1
24569   ac_status=$?
24570   grep -v '^ *+' conftest.er1 >conftest.err
24571   rm -f conftest.er1
24572   cat conftest.err >&5
24573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24574   (exit $ac_status); } && {
24575          test -z "$ac_c_werror_flag" ||
24576          test ! -s conftest.err
24577        } && test -s conftest.$ac_objext; then
24578   ac_header_compiler=yes
24579 else
24580   echo "$as_me: failed program was:" >&5
24581 sed 's/^/| /' conftest.$ac_ext >&5
24582
24583         ac_header_compiler=no
24584 fi
24585
24586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24587 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24588 echo "${ECHO_T}$ac_header_compiler" >&6; }
24589
24590 # Is the header present?
24591 { echo "$as_me:$LINENO: checking termcap.h presence" >&5
24592 echo $ECHO_N "checking termcap.h presence... $ECHO_C" >&6; }
24593 cat >conftest.$ac_ext <<_ACEOF
24594 /* confdefs.h.  */
24595 _ACEOF
24596 cat confdefs.h >>conftest.$ac_ext
24597 cat >>conftest.$ac_ext <<_ACEOF
24598 /* end confdefs.h.  */
24599 #include <termcap.h>
24600 _ACEOF
24601 if { (ac_try="$ac_cpp conftest.$ac_ext"
24602 case "(($ac_try" in
24603   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24604   *) ac_try_echo=$ac_try;;
24605 esac
24606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24607   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24608   ac_status=$?
24609   grep -v '^ *+' conftest.er1 >conftest.err
24610   rm -f conftest.er1
24611   cat conftest.err >&5
24612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24613   (exit $ac_status); } >/dev/null && {
24614          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24615          test ! -s conftest.err
24616        }; then
24617   ac_header_preproc=yes
24618 else
24619   echo "$as_me: failed program was:" >&5
24620 sed 's/^/| /' conftest.$ac_ext >&5
24621
24622   ac_header_preproc=no
24623 fi
24624
24625 rm -f conftest.err conftest.$ac_ext
24626 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24627 echo "${ECHO_T}$ac_header_preproc" >&6; }
24628
24629 # So?  What about this header?
24630 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24631   yes:no: )
24632     { echo "$as_me:$LINENO: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&5
24633 echo "$as_me: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24634     { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the compiler's result" >&5
24635 echo "$as_me: WARNING: termcap.h: proceeding with the compiler's result" >&2;}
24636     ac_header_preproc=yes
24637     ;;
24638   no:yes:* )
24639     { echo "$as_me:$LINENO: WARNING: termcap.h: present but cannot be compiled" >&5
24640 echo "$as_me: WARNING: termcap.h: present but cannot be compiled" >&2;}
24641     { echo "$as_me:$LINENO: WARNING: termcap.h:     check for missing prerequisite headers?" >&5
24642 echo "$as_me: WARNING: termcap.h:     check for missing prerequisite headers?" >&2;}
24643     { echo "$as_me:$LINENO: WARNING: termcap.h: see the Autoconf documentation" >&5
24644 echo "$as_me: WARNING: termcap.h: see the Autoconf documentation" >&2;}
24645     { echo "$as_me:$LINENO: WARNING: termcap.h:     section \"Present But Cannot Be Compiled\"" >&5
24646 echo "$as_me: WARNING: termcap.h:     section \"Present But Cannot Be Compiled\"" >&2;}
24647     { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the preprocessor's result" >&5
24648 echo "$as_me: WARNING: termcap.h: proceeding with the preprocessor's result" >&2;}
24649     { echo "$as_me:$LINENO: WARNING: termcap.h: in the future, the compiler will take precedence" >&5
24650 echo "$as_me: WARNING: termcap.h: in the future, the compiler will take precedence" >&2;}
24651
24652     ;;
24653 esac
24654 { echo "$as_me:$LINENO: checking for termcap.h" >&5
24655 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6; }
24656 if test "${ac_cv_header_termcap_h+set}" = set; then
24657   echo $ECHO_N "(cached) $ECHO_C" >&6
24658 else
24659   ac_cv_header_termcap_h=$ac_header_preproc
24660 fi
24661 { echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
24662 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6; }
24663
24664 fi
24665 if test $ac_cv_header_termcap_h = yes; then
24666    { echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
24667 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6; }
24668 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
24669   echo $ECHO_N "(cached) $ECHO_C" >&6
24670 else
24671   ac_check_lib_save_LIBS=$LIBS
24672 LIBS="-ltermcap  $LIBS"
24673 cat >conftest.$ac_ext <<_ACEOF
24674 /* confdefs.h.  */
24675 _ACEOF
24676 cat confdefs.h >>conftest.$ac_ext
24677 cat >>conftest.$ac_ext <<_ACEOF
24678 /* end confdefs.h.  */
24679
24680 /* Override any GCC internal prototype to avoid an error.
24681    Use char because int might match the return type of a GCC
24682    builtin and then its argument prototype would still apply.  */
24683 #ifdef __cplusplus
24684 extern "C"
24685 #endif
24686 char tgetent ();
24687 int
24688 main ()
24689 {
24690 return tgetent ();
24691   ;
24692   return 0;
24693 }
24694 _ACEOF
24695 rm -f conftest.$ac_objext conftest$ac_exeext
24696 if { (ac_try="$ac_link"
24697 case "(($ac_try" in
24698   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24699   *) ac_try_echo=$ac_try;;
24700 esac
24701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24702   (eval "$ac_link") 2>conftest.er1
24703   ac_status=$?
24704   grep -v '^ *+' conftest.er1 >conftest.err
24705   rm -f conftest.er1
24706   cat conftest.err >&5
24707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24708   (exit $ac_status); } && {
24709          test -z "$ac_c_werror_flag" ||
24710          test ! -s conftest.err
24711        } && test -s conftest$ac_exeext &&
24712        $as_test_x conftest$ac_exeext; then
24713   ac_cv_lib_termcap_tgetent=yes
24714 else
24715   echo "$as_me: failed program was:" >&5
24716 sed 's/^/| /' conftest.$ac_ext >&5
24717
24718         ac_cv_lib_termcap_tgetent=no
24719 fi
24720
24721 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24722       conftest$ac_exeext conftest.$ac_ext
24723 LIBS=$ac_check_lib_save_LIBS
24724 fi
24725 { echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
24726 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6; }
24727 if test $ac_cv_lib_termcap_tgetent = yes; then
24728    CONS_LIBS="-ltermcap"
24729     CONS_OBJ="conio.o"
24730     CONS_SRC="conio.c"
24731     got_conio="yes"
24732     support_readline=no
24733
24734 cat >>confdefs.h <<\_ACEOF
24735 #define HAVE_CONIO 1
24736 _ACEOF
24737
24738
24739 else
24740    { echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
24741 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6; }
24742 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
24743   echo $ECHO_N "(cached) $ECHO_C" >&6
24744 else
24745   ac_check_lib_save_LIBS=$LIBS
24746 LIBS="-lncurses  $LIBS"
24747 cat >conftest.$ac_ext <<_ACEOF
24748 /* confdefs.h.  */
24749 _ACEOF
24750 cat confdefs.h >>conftest.$ac_ext
24751 cat >>conftest.$ac_ext <<_ACEOF
24752 /* end confdefs.h.  */
24753
24754 /* Override any GCC internal prototype to avoid an error.
24755    Use char because int might match the return type of a GCC
24756    builtin and then its argument prototype would still apply.  */
24757 #ifdef __cplusplus
24758 extern "C"
24759 #endif
24760 char tgetent ();
24761 int
24762 main ()
24763 {
24764 return tgetent ();
24765   ;
24766   return 0;
24767 }
24768 _ACEOF
24769 rm -f conftest.$ac_objext conftest$ac_exeext
24770 if { (ac_try="$ac_link"
24771 case "(($ac_try" in
24772   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24773   *) ac_try_echo=$ac_try;;
24774 esac
24775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24776   (eval "$ac_link") 2>conftest.er1
24777   ac_status=$?
24778   grep -v '^ *+' conftest.er1 >conftest.err
24779   rm -f conftest.er1
24780   cat conftest.err >&5
24781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24782   (exit $ac_status); } && {
24783          test -z "$ac_c_werror_flag" ||
24784          test ! -s conftest.err
24785        } && test -s conftest$ac_exeext &&
24786        $as_test_x conftest$ac_exeext; then
24787   ac_cv_lib_ncurses_tgetent=yes
24788 else
24789   echo "$as_me: failed program was:" >&5
24790 sed 's/^/| /' conftest.$ac_ext >&5
24791
24792         ac_cv_lib_ncurses_tgetent=no
24793 fi
24794
24795 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24796       conftest$ac_exeext conftest.$ac_ext
24797 LIBS=$ac_check_lib_save_LIBS
24798 fi
24799 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
24800 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6; }
24801 if test $ac_cv_lib_ncurses_tgetent = yes; then
24802    CONS_LIBS="-lncurses"
24803       CONS_OBJ="conio.o"
24804       CONS_SRC="conio.c"
24805       got_conio="yes"
24806       support_readline=no
24807
24808 cat >>confdefs.h <<\_ACEOF
24809 #define HAVE_CONIO 1
24810 _ACEOF
24811
24812
24813 fi
24814
24815
24816 fi
24817
24818
24819 else
24820
24821
24822 for ac_header in curses.h
24823 do
24824 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24825 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24826   { echo "$as_me:$LINENO: checking for $ac_header" >&5
24827 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24828 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24829   echo $ECHO_N "(cached) $ECHO_C" >&6
24830 fi
24831 ac_res=`eval echo '${'$as_ac_Header'}'`
24832                { echo "$as_me:$LINENO: result: $ac_res" >&5
24833 echo "${ECHO_T}$ac_res" >&6; }
24834 else
24835   # Is the header compilable?
24836 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
24837 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
24838 cat >conftest.$ac_ext <<_ACEOF
24839 /* confdefs.h.  */
24840 _ACEOF
24841 cat confdefs.h >>conftest.$ac_ext
24842 cat >>conftest.$ac_ext <<_ACEOF
24843 /* end confdefs.h.  */
24844 $ac_includes_default
24845 #include <$ac_header>
24846 _ACEOF
24847 rm -f conftest.$ac_objext
24848 if { (ac_try="$ac_compile"
24849 case "(($ac_try" in
24850   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24851   *) ac_try_echo=$ac_try;;
24852 esac
24853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24854   (eval "$ac_compile") 2>conftest.er1
24855   ac_status=$?
24856   grep -v '^ *+' conftest.er1 >conftest.err
24857   rm -f conftest.er1
24858   cat conftest.err >&5
24859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24860   (exit $ac_status); } && {
24861          test -z "$ac_c_werror_flag" ||
24862          test ! -s conftest.err
24863        } && test -s conftest.$ac_objext; then
24864   ac_header_compiler=yes
24865 else
24866   echo "$as_me: failed program was:" >&5
24867 sed 's/^/| /' conftest.$ac_ext >&5
24868
24869         ac_header_compiler=no
24870 fi
24871
24872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24873 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24874 echo "${ECHO_T}$ac_header_compiler" >&6; }
24875
24876 # Is the header present?
24877 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
24878 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
24879 cat >conftest.$ac_ext <<_ACEOF
24880 /* confdefs.h.  */
24881 _ACEOF
24882 cat confdefs.h >>conftest.$ac_ext
24883 cat >>conftest.$ac_ext <<_ACEOF
24884 /* end confdefs.h.  */
24885 #include <$ac_header>
24886 _ACEOF
24887 if { (ac_try="$ac_cpp conftest.$ac_ext"
24888 case "(($ac_try" in
24889   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24890   *) ac_try_echo=$ac_try;;
24891 esac
24892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24893   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24894   ac_status=$?
24895   grep -v '^ *+' conftest.er1 >conftest.err
24896   rm -f conftest.er1
24897   cat conftest.err >&5
24898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24899   (exit $ac_status); } >/dev/null && {
24900          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24901          test ! -s conftest.err
24902        }; then
24903   ac_header_preproc=yes
24904 else
24905   echo "$as_me: failed program was:" >&5
24906 sed 's/^/| /' conftest.$ac_ext >&5
24907
24908   ac_header_preproc=no
24909 fi
24910
24911 rm -f conftest.err conftest.$ac_ext
24912 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24913 echo "${ECHO_T}$ac_header_preproc" >&6; }
24914
24915 # So?  What about this header?
24916 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24917   yes:no: )
24918     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24919 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24920     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24921 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24922     ac_header_preproc=yes
24923     ;;
24924   no:yes:* )
24925     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24926 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24927     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
24928 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
24929     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24930 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24931     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
24932 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
24933     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24934 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24935     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24936 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24937
24938     ;;
24939 esac
24940 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24941 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24942 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24943   echo $ECHO_N "(cached) $ECHO_C" >&6
24944 else
24945   eval "$as_ac_Header=\$ac_header_preproc"
24946 fi
24947 ac_res=`eval echo '${'$as_ac_Header'}'`
24948                { echo "$as_me:$LINENO: result: $ac_res" >&5
24949 echo "${ECHO_T}$ac_res" >&6; }
24950
24951 fi
24952 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24953   cat >>confdefs.h <<_ACEOF
24954 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24955 _ACEOF
24956
24957 fi
24958
24959 done
24960
24961     { echo "$as_me:$LINENO: checking for term.h" >&5
24962 echo $ECHO_N "checking for term.h... $ECHO_C" >&6; }
24963 if test "${ac_cv_header_term_h+set}" = set; then
24964   echo $ECHO_N "(cached) $ECHO_C" >&6
24965 else
24966   cat >conftest.$ac_ext <<_ACEOF
24967 /* confdefs.h.  */
24968 _ACEOF
24969 cat confdefs.h >>conftest.$ac_ext
24970 cat >>conftest.$ac_ext <<_ACEOF
24971 /* end confdefs.h.  */
24972 #if HAVE_CURSES_H
24973 #include <curses.h>
24974 #endif
24975
24976
24977 #include <term.h>
24978 _ACEOF
24979 rm -f conftest.$ac_objext
24980 if { (ac_try="$ac_compile"
24981 case "(($ac_try" in
24982   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24983   *) ac_try_echo=$ac_try;;
24984 esac
24985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24986   (eval "$ac_compile") 2>conftest.er1
24987   ac_status=$?
24988   grep -v '^ *+' conftest.er1 >conftest.err
24989   rm -f conftest.er1
24990   cat conftest.err >&5
24991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24992   (exit $ac_status); } && {
24993          test -z "$ac_c_werror_flag" ||
24994          test ! -s conftest.err
24995        } && test -s conftest.$ac_objext; then
24996   ac_cv_header_term_h=yes
24997 else
24998   echo "$as_me: failed program was:" >&5
24999 sed 's/^/| /' conftest.$ac_ext >&5
25000
25001         ac_cv_header_term_h=no
25002 fi
25003
25004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25005 fi
25006 { echo "$as_me:$LINENO: result: $ac_cv_header_term_h" >&5
25007 echo "${ECHO_T}$ac_cv_header_term_h" >&6; }
25008 if test $ac_cv_header_term_h = yes; then
25009    { echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
25010 echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6; }
25011 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
25012   echo $ECHO_N "(cached) $ECHO_C" >&6
25013 else
25014   ac_check_lib_save_LIBS=$LIBS
25015 LIBS="-lcurses  $LIBS"
25016 cat >conftest.$ac_ext <<_ACEOF
25017 /* confdefs.h.  */
25018 _ACEOF
25019 cat confdefs.h >>conftest.$ac_ext
25020 cat >>conftest.$ac_ext <<_ACEOF
25021 /* end confdefs.h.  */
25022
25023 /* Override any GCC internal prototype to avoid an error.
25024    Use char because int might match the return type of a GCC
25025    builtin and then its argument prototype would still apply.  */
25026 #ifdef __cplusplus
25027 extern "C"
25028 #endif
25029 char tgetent ();
25030 int
25031 main ()
25032 {
25033 return tgetent ();
25034   ;
25035   return 0;
25036 }
25037 _ACEOF
25038 rm -f conftest.$ac_objext conftest$ac_exeext
25039 if { (ac_try="$ac_link"
25040 case "(($ac_try" in
25041   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25042   *) ac_try_echo=$ac_try;;
25043 esac
25044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25045   (eval "$ac_link") 2>conftest.er1
25046   ac_status=$?
25047   grep -v '^ *+' conftest.er1 >conftest.err
25048   rm -f conftest.er1
25049   cat conftest.err >&5
25050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25051   (exit $ac_status); } && {
25052          test -z "$ac_c_werror_flag" ||
25053          test ! -s conftest.err
25054        } && test -s conftest$ac_exeext &&
25055        $as_test_x conftest$ac_exeext; then
25056   ac_cv_lib_curses_tgetent=yes
25057 else
25058   echo "$as_me: failed program was:" >&5
25059 sed 's/^/| /' conftest.$ac_ext >&5
25060
25061         ac_cv_lib_curses_tgetent=no
25062 fi
25063
25064 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25065       conftest$ac_exeext conftest.$ac_ext
25066 LIBS=$ac_check_lib_save_LIBS
25067 fi
25068 { echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
25069 echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6; }
25070 if test $ac_cv_lib_curses_tgetent = yes; then
25071    CONS_LIBS="-lcurses"
25072          CONS_OBJ="conio.o"
25073          CONS_SRC="conio.c"
25074          got_conio="yes"
25075          support_readline=no
25076
25077 cat >>confdefs.h <<\_ACEOF
25078 #define HAVE_CONIO 1
25079 _ACEOF
25080
25081
25082 fi
25083
25084
25085 else
25086    echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "
25087 fi
25088
25089
25090
25091 fi
25092
25093
25094 fi
25095
25096
25097 # Check whether --enable-readline was given.
25098 if test "${enable_readline+set}" = set; then
25099   enableval=$enable_readline;
25100        if test x$enableval = xno; then
25101           support_readline=no
25102        fi
25103
25104
25105 fi
25106
25107
25108 got_readline="no"
25109 READLINE_SRC=
25110 if test x$support_readline = xyes; then
25111
25112 # Check whether --with-readline was given.
25113 if test "${with_readline+set}" = set; then
25114   withval=$with_readline;
25115           case "$with_readline" in
25116           no)
25117              :
25118              ;;
25119           yes|*)
25120              if test -f ${with_readline}/readline.h; then
25121                 CONS_INC="-I${with_readline}"
25122                 CONS_LDFLAGS="-L$with_readline"
25123              elif test -f ${with_readline}/include/readline/readline.h; then
25124                 CONS_INC="-I${with_readline}/include/readline"
25125                 CONS_LDFLAGS="-L${with_readline}/lib"
25126                 with_readline="${with_readline}/include/readline"
25127              else
25128                 with_readline="/usr/include/readline"
25129              fi
25130
25131              as_ac_Header=`echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
25132 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25133   { echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
25134 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6; }
25135 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25136   echo $ECHO_N "(cached) $ECHO_C" >&6
25137 fi
25138 ac_res=`eval echo '${'$as_ac_Header'}'`
25139                { echo "$as_me:$LINENO: result: $ac_res" >&5
25140 echo "${ECHO_T}$ac_res" >&6; }
25141 else
25142   # Is the header compilable?
25143 { echo "$as_me:$LINENO: checking ${with_readline}/readline.h usability" >&5
25144 echo $ECHO_N "checking ${with_readline}/readline.h usability... $ECHO_C" >&6; }
25145 cat >conftest.$ac_ext <<_ACEOF
25146 /* confdefs.h.  */
25147 _ACEOF
25148 cat confdefs.h >>conftest.$ac_ext
25149 cat >>conftest.$ac_ext <<_ACEOF
25150 /* end confdefs.h.  */
25151 $ac_includes_default
25152 #include <${with_readline}/readline.h>
25153 _ACEOF
25154 rm -f conftest.$ac_objext
25155 if { (ac_try="$ac_compile"
25156 case "(($ac_try" in
25157   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25158   *) ac_try_echo=$ac_try;;
25159 esac
25160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25161   (eval "$ac_compile") 2>conftest.er1
25162   ac_status=$?
25163   grep -v '^ *+' conftest.er1 >conftest.err
25164   rm -f conftest.er1
25165   cat conftest.err >&5
25166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25167   (exit $ac_status); } && {
25168          test -z "$ac_c_werror_flag" ||
25169          test ! -s conftest.err
25170        } && test -s conftest.$ac_objext; then
25171   ac_header_compiler=yes
25172 else
25173   echo "$as_me: failed program was:" >&5
25174 sed 's/^/| /' conftest.$ac_ext >&5
25175
25176         ac_header_compiler=no
25177 fi
25178
25179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25180 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25181 echo "${ECHO_T}$ac_header_compiler" >&6; }
25182
25183 # Is the header present?
25184 { echo "$as_me:$LINENO: checking ${with_readline}/readline.h presence" >&5
25185 echo $ECHO_N "checking ${with_readline}/readline.h presence... $ECHO_C" >&6; }
25186 cat >conftest.$ac_ext <<_ACEOF
25187 /* confdefs.h.  */
25188 _ACEOF
25189 cat confdefs.h >>conftest.$ac_ext
25190 cat >>conftest.$ac_ext <<_ACEOF
25191 /* end confdefs.h.  */
25192 #include <${with_readline}/readline.h>
25193 _ACEOF
25194 if { (ac_try="$ac_cpp conftest.$ac_ext"
25195 case "(($ac_try" in
25196   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25197   *) ac_try_echo=$ac_try;;
25198 esac
25199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25200   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25201   ac_status=$?
25202   grep -v '^ *+' conftest.er1 >conftest.err
25203   rm -f conftest.er1
25204   cat conftest.err >&5
25205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25206   (exit $ac_status); } >/dev/null && {
25207          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25208          test ! -s conftest.err
25209        }; then
25210   ac_header_preproc=yes
25211 else
25212   echo "$as_me: failed program was:" >&5
25213 sed 's/^/| /' conftest.$ac_ext >&5
25214
25215   ac_header_preproc=no
25216 fi
25217
25218 rm -f conftest.err conftest.$ac_ext
25219 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25220 echo "${ECHO_T}$ac_header_preproc" >&6; }
25221
25222 # So?  What about this header?
25223 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25224   yes:no: )
25225     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
25226 echo "$as_me: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25227     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&5
25228 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&2;}
25229     ac_header_preproc=yes
25230     ;;
25231   no:yes:* )
25232     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&5
25233 echo "$as_me: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&2;}
25234     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h:     check for missing prerequisite headers?" >&5
25235 echo "$as_me: WARNING: ${with_readline}/readline.h:     check for missing prerequisite headers?" >&2;}
25236     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&5
25237 echo "$as_me: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&2;}
25238     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
25239 echo "$as_me: WARNING: ${with_readline}/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
25240     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
25241 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
25242     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&5
25243 echo "$as_me: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&2;}
25244
25245     ;;
25246 esac
25247 { echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
25248 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6; }
25249 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25250   echo $ECHO_N "(cached) $ECHO_C" >&6
25251 else
25252   eval "$as_ac_Header=\$ac_header_preproc"
25253 fi
25254 ac_res=`eval echo '${'$as_ac_Header'}'`
25255                { echo "$as_me:$LINENO: result: $ac_res" >&5
25256 echo "${ECHO_T}$ac_res" >&6; }
25257
25258 fi
25259 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25260
25261
25262 cat >>confdefs.h <<\_ACEOF
25263 #define HAVE_READLINE 1
25264 _ACEOF
25265
25266                     CONS_LIBS="-lreadline -lhistory -ltermcap"
25267                     got_readline="yes"
25268
25269 else
25270
25271                     echo " "
25272                     echo "readline.h not found. readline turned off ..."
25273                     echo " "
25274
25275
25276 fi
25277
25278
25279              ;;
25280           esac
25281
25282 else
25283
25284                  if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
25285   { echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
25286 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6; }
25287 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
25288   echo $ECHO_N "(cached) $ECHO_C" >&6
25289 fi
25290 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
25291 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6; }
25292 else
25293   # Is the header compilable?
25294 { echo "$as_me:$LINENO: checking /usr/include/readline/readline.h usability" >&5
25295 echo $ECHO_N "checking /usr/include/readline/readline.h usability... $ECHO_C" >&6; }
25296 cat >conftest.$ac_ext <<_ACEOF
25297 /* confdefs.h.  */
25298 _ACEOF
25299 cat confdefs.h >>conftest.$ac_ext
25300 cat >>conftest.$ac_ext <<_ACEOF
25301 /* end confdefs.h.  */
25302 $ac_includes_default
25303 #include </usr/include/readline/readline.h>
25304 _ACEOF
25305 rm -f conftest.$ac_objext
25306 if { (ac_try="$ac_compile"
25307 case "(($ac_try" in
25308   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25309   *) ac_try_echo=$ac_try;;
25310 esac
25311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25312   (eval "$ac_compile") 2>conftest.er1
25313   ac_status=$?
25314   grep -v '^ *+' conftest.er1 >conftest.err
25315   rm -f conftest.er1
25316   cat conftest.err >&5
25317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25318   (exit $ac_status); } && {
25319          test -z "$ac_c_werror_flag" ||
25320          test ! -s conftest.err
25321        } && test -s conftest.$ac_objext; then
25322   ac_header_compiler=yes
25323 else
25324   echo "$as_me: failed program was:" >&5
25325 sed 's/^/| /' conftest.$ac_ext >&5
25326
25327         ac_header_compiler=no
25328 fi
25329
25330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25331 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25332 echo "${ECHO_T}$ac_header_compiler" >&6; }
25333
25334 # Is the header present?
25335 { echo "$as_me:$LINENO: checking /usr/include/readline/readline.h presence" >&5
25336 echo $ECHO_N "checking /usr/include/readline/readline.h presence... $ECHO_C" >&6; }
25337 cat >conftest.$ac_ext <<_ACEOF
25338 /* confdefs.h.  */
25339 _ACEOF
25340 cat confdefs.h >>conftest.$ac_ext
25341 cat >>conftest.$ac_ext <<_ACEOF
25342 /* end confdefs.h.  */
25343 #include </usr/include/readline/readline.h>
25344 _ACEOF
25345 if { (ac_try="$ac_cpp conftest.$ac_ext"
25346 case "(($ac_try" in
25347   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25348   *) ac_try_echo=$ac_try;;
25349 esac
25350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25351   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25352   ac_status=$?
25353   grep -v '^ *+' conftest.er1 >conftest.err
25354   rm -f conftest.er1
25355   cat conftest.err >&5
25356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25357   (exit $ac_status); } >/dev/null && {
25358          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25359          test ! -s conftest.err
25360        }; then
25361   ac_header_preproc=yes
25362 else
25363   echo "$as_me: failed program was:" >&5
25364 sed 's/^/| /' conftest.$ac_ext >&5
25365
25366   ac_header_preproc=no
25367 fi
25368
25369 rm -f conftest.err conftest.$ac_ext
25370 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25371 echo "${ECHO_T}$ac_header_preproc" >&6; }
25372
25373 # So?  What about this header?
25374 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25375   yes:no: )
25376     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
25377 echo "$as_me: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25378     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&5
25379 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&2;}
25380     ac_header_preproc=yes
25381     ;;
25382   no:yes:* )
25383     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&5
25384 echo "$as_me: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&2;}
25385     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h:     check for missing prerequisite headers?" >&5
25386 echo "$as_me: WARNING: /usr/include/readline/readline.h:     check for missing prerequisite headers?" >&2;}
25387     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&5
25388 echo "$as_me: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&2;}
25389     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
25390 echo "$as_me: WARNING: /usr/include/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
25391     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
25392 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
25393     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&5
25394 echo "$as_me: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&2;}
25395
25396     ;;
25397 esac
25398 { echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
25399 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6; }
25400 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
25401   echo $ECHO_N "(cached) $ECHO_C" >&6
25402 else
25403   ac_cv_header__usr_include_readline_readline_h=$ac_header_preproc
25404 fi
25405 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
25406 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6; }
25407
25408 fi
25409 if test $ac_cv_header__usr_include_readline_readline_h = yes; then
25410
25411
25412 cat >>confdefs.h <<\_ACEOF
25413 #define HAVE_READLINE 1
25414 _ACEOF
25415
25416                 got_readline="yes"
25417                 CONS_INC="-I/usr/include/readline"
25418                 CONS_LIBS="-lreadline -ltermcap"
25419
25420 else
25421
25422                                 as_ac_Header=`echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
25423 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25424   { echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
25425 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6; }
25426 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25427   echo $ECHO_N "(cached) $ECHO_C" >&6
25428 fi
25429 ac_res=`eval echo '${'$as_ac_Header'}'`
25430                { echo "$as_me:$LINENO: result: $ac_res" >&5
25431 echo "${ECHO_T}$ac_res" >&6; }
25432 else
25433   # Is the header compilable?
25434 { echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h usability" >&5
25435 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h usability... $ECHO_C" >&6; }
25436 cat >conftest.$ac_ext <<_ACEOF
25437 /* confdefs.h.  */
25438 _ACEOF
25439 cat confdefs.h >>conftest.$ac_ext
25440 cat >>conftest.$ac_ext <<_ACEOF
25441 /* end confdefs.h.  */
25442 $ac_includes_default
25443 #include <${TOP_DIR}/depkgs/readline/readline.h>
25444 _ACEOF
25445 rm -f conftest.$ac_objext
25446 if { (ac_try="$ac_compile"
25447 case "(($ac_try" in
25448   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25449   *) ac_try_echo=$ac_try;;
25450 esac
25451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25452   (eval "$ac_compile") 2>conftest.er1
25453   ac_status=$?
25454   grep -v '^ *+' conftest.er1 >conftest.err
25455   rm -f conftest.er1
25456   cat conftest.err >&5
25457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25458   (exit $ac_status); } && {
25459          test -z "$ac_c_werror_flag" ||
25460          test ! -s conftest.err
25461        } && test -s conftest.$ac_objext; then
25462   ac_header_compiler=yes
25463 else
25464   echo "$as_me: failed program was:" >&5
25465 sed 's/^/| /' conftest.$ac_ext >&5
25466
25467         ac_header_compiler=no
25468 fi
25469
25470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25471 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25472 echo "${ECHO_T}$ac_header_compiler" >&6; }
25473
25474 # Is the header present?
25475 { echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h presence" >&5
25476 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h presence... $ECHO_C" >&6; }
25477 cat >conftest.$ac_ext <<_ACEOF
25478 /* confdefs.h.  */
25479 _ACEOF
25480 cat confdefs.h >>conftest.$ac_ext
25481 cat >>conftest.$ac_ext <<_ACEOF
25482 /* end confdefs.h.  */
25483 #include <${TOP_DIR}/depkgs/readline/readline.h>
25484 _ACEOF
25485 if { (ac_try="$ac_cpp conftest.$ac_ext"
25486 case "(($ac_try" in
25487   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25488   *) ac_try_echo=$ac_try;;
25489 esac
25490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25491   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25492   ac_status=$?
25493   grep -v '^ *+' conftest.er1 >conftest.err
25494   rm -f conftest.er1
25495   cat conftest.err >&5
25496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25497   (exit $ac_status); } >/dev/null && {
25498          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25499          test ! -s conftest.err
25500        }; then
25501   ac_header_preproc=yes
25502 else
25503   echo "$as_me: failed program was:" >&5
25504 sed 's/^/| /' conftest.$ac_ext >&5
25505
25506   ac_header_preproc=no
25507 fi
25508
25509 rm -f conftest.err conftest.$ac_ext
25510 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25511 echo "${ECHO_T}$ac_header_preproc" >&6; }
25512
25513 # So?  What about this header?
25514 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25515   yes:no: )
25516     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
25517 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25518     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&5
25519 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&2;}
25520     ac_header_preproc=yes
25521     ;;
25522   no:yes:* )
25523     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&5
25524 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&2;}
25525     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     check for missing prerequisite headers?" >&5
25526 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     check for missing prerequisite headers?" >&2;}
25527     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&5
25528 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&2;}
25529     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
25530 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
25531     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
25532 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
25533     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&5
25534 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&2;}
25535
25536     ;;
25537 esac
25538 { echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
25539 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6; }
25540 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25541   echo $ECHO_N "(cached) $ECHO_C" >&6
25542 else
25543   eval "$as_ac_Header=\$ac_header_preproc"
25544 fi
25545 ac_res=`eval echo '${'$as_ac_Header'}'`
25546                { echo "$as_me:$LINENO: result: $ac_res" >&5
25547 echo "${ECHO_T}$ac_res" >&6; }
25548
25549 fi
25550 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25551
25552
25553 cat >>confdefs.h <<\_ACEOF
25554 #define HAVE_READLINE 1
25555 _ACEOF
25556
25557                         got_readline="yes"
25558                         CONS_INC="-I${TOP_DIR}/depkgs/readline"
25559                         CONS_LIBS="-lreadline -lhistory -ltermcap"
25560                         CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
25561                         PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
25562
25563 else
25564
25565                         echo " "
25566                         echo "readline.h not found. readline turned off ..."
25567                         echo " "
25568
25569
25570 fi
25571
25572
25573
25574
25575 fi
25576
25577
25578
25579
25580 fi
25581
25582 fi
25583
25584
25585
25586
25587
25588
25589
25590
25591 MAKE_SHELL=/bin/sh
25592
25593 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
25594 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
25595 if test "${ac_cv_header_stat_broken+set}" = set; then
25596   echo $ECHO_N "(cached) $ECHO_C" >&6
25597 else
25598   cat >conftest.$ac_ext <<_ACEOF
25599 /* confdefs.h.  */
25600 _ACEOF
25601 cat confdefs.h >>conftest.$ac_ext
25602 cat >>conftest.$ac_ext <<_ACEOF
25603 /* end confdefs.h.  */
25604 #include <sys/types.h>
25605 #include <sys/stat.h>
25606
25607 #if defined S_ISBLK && defined S_IFDIR
25608 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
25609 #endif
25610
25611 #if defined S_ISBLK && defined S_IFCHR
25612 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
25613 #endif
25614
25615 #if defined S_ISLNK && defined S_IFREG
25616 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
25617 #endif
25618
25619 #if defined S_ISSOCK && defined S_IFREG
25620 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
25621 #endif
25622
25623 _ACEOF
25624 rm -f conftest.$ac_objext
25625 if { (ac_try="$ac_compile"
25626 case "(($ac_try" in
25627   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25628   *) ac_try_echo=$ac_try;;
25629 esac
25630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25631   (eval "$ac_compile") 2>conftest.er1
25632   ac_status=$?
25633   grep -v '^ *+' conftest.er1 >conftest.err
25634   rm -f conftest.er1
25635   cat conftest.err >&5
25636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25637   (exit $ac_status); } && {
25638          test -z "$ac_c_werror_flag" ||
25639          test ! -s conftest.err
25640        } && test -s conftest.$ac_objext; then
25641   ac_cv_header_stat_broken=no
25642 else
25643   echo "$as_me: failed program was:" >&5
25644 sed 's/^/| /' conftest.$ac_ext >&5
25645
25646         ac_cv_header_stat_broken=yes
25647 fi
25648
25649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25650 fi
25651 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
25652 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
25653 if test $ac_cv_header_stat_broken = yes; then
25654
25655 cat >>confdefs.h <<\_ACEOF
25656 #define STAT_MACROS_BROKEN 1
25657 _ACEOF
25658
25659 fi
25660
25661
25662
25663
25664
25665
25666 ac_header_dirent=no
25667 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
25668   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
25669 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
25670 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
25671 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25672   echo $ECHO_N "(cached) $ECHO_C" >&6
25673 else
25674   cat >conftest.$ac_ext <<_ACEOF
25675 /* confdefs.h.  */
25676 _ACEOF
25677 cat confdefs.h >>conftest.$ac_ext
25678 cat >>conftest.$ac_ext <<_ACEOF
25679 /* end confdefs.h.  */
25680 #include <sys/types.h>
25681 #include <$ac_hdr>
25682
25683 int
25684 main ()
25685 {
25686 if ((DIR *) 0)
25687 return 0;
25688   ;
25689   return 0;
25690 }
25691 _ACEOF
25692 rm -f conftest.$ac_objext
25693 if { (ac_try="$ac_compile"
25694 case "(($ac_try" in
25695   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25696   *) ac_try_echo=$ac_try;;
25697 esac
25698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25699   (eval "$ac_compile") 2>conftest.er1
25700   ac_status=$?
25701   grep -v '^ *+' conftest.er1 >conftest.err
25702   rm -f conftest.er1
25703   cat conftest.err >&5
25704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25705   (exit $ac_status); } && {
25706          test -z "$ac_c_werror_flag" ||
25707          test ! -s conftest.err
25708        } && test -s conftest.$ac_objext; then
25709   eval "$as_ac_Header=yes"
25710 else
25711   echo "$as_me: failed program was:" >&5
25712 sed 's/^/| /' conftest.$ac_ext >&5
25713
25714         eval "$as_ac_Header=no"
25715 fi
25716
25717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25718 fi
25719 ac_res=`eval echo '${'$as_ac_Header'}'`
25720                { echo "$as_me:$LINENO: result: $ac_res" >&5
25721 echo "${ECHO_T}$ac_res" >&6; }
25722 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25723   cat >>confdefs.h <<_ACEOF
25724 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
25725 _ACEOF
25726
25727 ac_header_dirent=$ac_hdr; break
25728 fi
25729
25730 done
25731 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
25732 if test $ac_header_dirent = dirent.h; then
25733   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
25734 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
25735 if test "${ac_cv_search_opendir+set}" = set; then
25736   echo $ECHO_N "(cached) $ECHO_C" >&6
25737 else
25738   ac_func_search_save_LIBS=$LIBS
25739 cat >conftest.$ac_ext <<_ACEOF
25740 /* confdefs.h.  */
25741 _ACEOF
25742 cat confdefs.h >>conftest.$ac_ext
25743 cat >>conftest.$ac_ext <<_ACEOF
25744 /* end confdefs.h.  */
25745
25746 /* Override any GCC internal prototype to avoid an error.
25747    Use char because int might match the return type of a GCC
25748    builtin and then its argument prototype would still apply.  */
25749 #ifdef __cplusplus
25750 extern "C"
25751 #endif
25752 char opendir ();
25753 int
25754 main ()
25755 {
25756 return opendir ();
25757   ;
25758   return 0;
25759 }
25760 _ACEOF
25761 for ac_lib in '' dir; do
25762   if test -z "$ac_lib"; then
25763     ac_res="none required"
25764   else
25765     ac_res=-l$ac_lib
25766     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25767   fi
25768   rm -f conftest.$ac_objext conftest$ac_exeext
25769 if { (ac_try="$ac_link"
25770 case "(($ac_try" in
25771   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25772   *) ac_try_echo=$ac_try;;
25773 esac
25774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25775   (eval "$ac_link") 2>conftest.er1
25776   ac_status=$?
25777   grep -v '^ *+' conftest.er1 >conftest.err
25778   rm -f conftest.er1
25779   cat conftest.err >&5
25780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25781   (exit $ac_status); } && {
25782          test -z "$ac_c_werror_flag" ||
25783          test ! -s conftest.err
25784        } && test -s conftest$ac_exeext &&
25785        $as_test_x conftest$ac_exeext; then
25786   ac_cv_search_opendir=$ac_res
25787 else
25788   echo "$as_me: failed program was:" >&5
25789 sed 's/^/| /' conftest.$ac_ext >&5
25790
25791
25792 fi
25793
25794 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25795       conftest$ac_exeext
25796   if test "${ac_cv_search_opendir+set}" = set; then
25797   break
25798 fi
25799 done
25800 if test "${ac_cv_search_opendir+set}" = set; then
25801   :
25802 else
25803   ac_cv_search_opendir=no
25804 fi
25805 rm conftest.$ac_ext
25806 LIBS=$ac_func_search_save_LIBS
25807 fi
25808 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25809 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
25810 ac_res=$ac_cv_search_opendir
25811 if test "$ac_res" != no; then
25812   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25813
25814 fi
25815
25816 else
25817   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
25818 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
25819 if test "${ac_cv_search_opendir+set}" = set; then
25820   echo $ECHO_N "(cached) $ECHO_C" >&6
25821 else
25822   ac_func_search_save_LIBS=$LIBS
25823 cat >conftest.$ac_ext <<_ACEOF
25824 /* confdefs.h.  */
25825 _ACEOF
25826 cat confdefs.h >>conftest.$ac_ext
25827 cat >>conftest.$ac_ext <<_ACEOF
25828 /* end confdefs.h.  */
25829
25830 /* Override any GCC internal prototype to avoid an error.
25831    Use char because int might match the return type of a GCC
25832    builtin and then its argument prototype would still apply.  */
25833 #ifdef __cplusplus
25834 extern "C"
25835 #endif
25836 char opendir ();
25837 int
25838 main ()
25839 {
25840 return opendir ();
25841   ;
25842   return 0;
25843 }
25844 _ACEOF
25845 for ac_lib in '' x; do
25846   if test -z "$ac_lib"; then
25847     ac_res="none required"
25848   else
25849     ac_res=-l$ac_lib
25850     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25851   fi
25852   rm -f conftest.$ac_objext conftest$ac_exeext
25853 if { (ac_try="$ac_link"
25854 case "(($ac_try" in
25855   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25856   *) ac_try_echo=$ac_try;;
25857 esac
25858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25859   (eval "$ac_link") 2>conftest.er1
25860   ac_status=$?
25861   grep -v '^ *+' conftest.er1 >conftest.err
25862   rm -f conftest.er1
25863   cat conftest.err >&5
25864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25865   (exit $ac_status); } && {
25866          test -z "$ac_c_werror_flag" ||
25867          test ! -s conftest.err
25868        } && test -s conftest$ac_exeext &&
25869        $as_test_x conftest$ac_exeext; then
25870   ac_cv_search_opendir=$ac_res
25871 else
25872   echo "$as_me: failed program was:" >&5
25873 sed 's/^/| /' conftest.$ac_ext >&5
25874
25875
25876 fi
25877
25878 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25879       conftest$ac_exeext
25880   if test "${ac_cv_search_opendir+set}" = set; then
25881   break
25882 fi
25883 done
25884 if test "${ac_cv_search_opendir+set}" = set; then
25885   :
25886 else
25887   ac_cv_search_opendir=no
25888 fi
25889 rm conftest.$ac_ext
25890 LIBS=$ac_func_search_save_LIBS
25891 fi
25892 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25893 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
25894 ac_res=$ac_cv_search_opendir
25895 if test "$ac_res" != no; then
25896   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25897
25898 fi
25899
25900 fi
25901
25902
25903
25904
25905
25906
25907
25908
25909 for ac_func in strcasecmp select setenv putenv tcgetattr lstat lchown
25910 do
25911 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25912 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25913 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25914 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25915   echo $ECHO_N "(cached) $ECHO_C" >&6
25916 else
25917   cat >conftest.$ac_ext <<_ACEOF
25918 /* confdefs.h.  */
25919 _ACEOF
25920 cat confdefs.h >>conftest.$ac_ext
25921 cat >>conftest.$ac_ext <<_ACEOF
25922 /* end confdefs.h.  */
25923 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25924    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25925 #define $ac_func innocuous_$ac_func
25926
25927 /* System header to define __stub macros and hopefully few prototypes,
25928     which can conflict with char $ac_func (); below.
25929     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25930     <limits.h> exists even on freestanding compilers.  */
25931
25932 #ifdef __STDC__
25933 # include <limits.h>
25934 #else
25935 # include <assert.h>
25936 #endif
25937
25938 #undef $ac_func
25939
25940 /* Override any GCC internal prototype to avoid an error.
25941    Use char because int might match the return type of a GCC
25942    builtin and then its argument prototype would still apply.  */
25943 #ifdef __cplusplus
25944 extern "C"
25945 #endif
25946 char $ac_func ();
25947 /* The GNU C library defines this for functions which it implements
25948     to always fail with ENOSYS.  Some functions are actually named
25949     something starting with __ and the normal name is an alias.  */
25950 #if defined __stub_$ac_func || defined __stub___$ac_func
25951 choke me
25952 #endif
25953
25954 int
25955 main ()
25956 {
25957 return $ac_func ();
25958   ;
25959   return 0;
25960 }
25961 _ACEOF
25962 rm -f conftest.$ac_objext conftest$ac_exeext
25963 if { (ac_try="$ac_link"
25964 case "(($ac_try" in
25965   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25966   *) ac_try_echo=$ac_try;;
25967 esac
25968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25969   (eval "$ac_link") 2>conftest.er1
25970   ac_status=$?
25971   grep -v '^ *+' conftest.er1 >conftest.err
25972   rm -f conftest.er1
25973   cat conftest.err >&5
25974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25975   (exit $ac_status); } && {
25976          test -z "$ac_c_werror_flag" ||
25977          test ! -s conftest.err
25978        } && test -s conftest$ac_exeext &&
25979        $as_test_x conftest$ac_exeext; then
25980   eval "$as_ac_var=yes"
25981 else
25982   echo "$as_me: failed program was:" >&5
25983 sed 's/^/| /' conftest.$ac_ext >&5
25984
25985         eval "$as_ac_var=no"
25986 fi
25987
25988 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25989       conftest$ac_exeext conftest.$ac_ext
25990 fi
25991 ac_res=`eval echo '${'$as_ac_var'}'`
25992                { echo "$as_me:$LINENO: result: $ac_res" >&5
25993 echo "${ECHO_T}$ac_res" >&6; }
25994 if test `eval echo '${'$as_ac_var'}'` = yes; then
25995   cat >>confdefs.h <<_ACEOF
25996 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25997 _ACEOF
25998
25999 fi
26000 done
26001
26002
26003
26004 for ac_func in nanosleep nl_langinfo
26005 do
26006 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26007 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26008 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26009 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26010   echo $ECHO_N "(cached) $ECHO_C" >&6
26011 else
26012   cat >conftest.$ac_ext <<_ACEOF
26013 /* confdefs.h.  */
26014 _ACEOF
26015 cat confdefs.h >>conftest.$ac_ext
26016 cat >>conftest.$ac_ext <<_ACEOF
26017 /* end confdefs.h.  */
26018 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26019    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26020 #define $ac_func innocuous_$ac_func
26021
26022 /* System header to define __stub macros and hopefully few prototypes,
26023     which can conflict with char $ac_func (); below.
26024     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26025     <limits.h> exists even on freestanding compilers.  */
26026
26027 #ifdef __STDC__
26028 # include <limits.h>
26029 #else
26030 # include <assert.h>
26031 #endif
26032
26033 #undef $ac_func
26034
26035 /* Override any GCC internal prototype to avoid an error.
26036    Use char because int might match the return type of a GCC
26037    builtin and then its argument prototype would still apply.  */
26038 #ifdef __cplusplus
26039 extern "C"
26040 #endif
26041 char $ac_func ();
26042 /* The GNU C library defines this for functions which it implements
26043     to always fail with ENOSYS.  Some functions are actually named
26044     something starting with __ and the normal name is an alias.  */
26045 #if defined __stub_$ac_func || defined __stub___$ac_func
26046 choke me
26047 #endif
26048
26049 int
26050 main ()
26051 {
26052 return $ac_func ();
26053   ;
26054   return 0;
26055 }
26056 _ACEOF
26057 rm -f conftest.$ac_objext conftest$ac_exeext
26058 if { (ac_try="$ac_link"
26059 case "(($ac_try" in
26060   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26061   *) ac_try_echo=$ac_try;;
26062 esac
26063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26064   (eval "$ac_link") 2>conftest.er1
26065   ac_status=$?
26066   grep -v '^ *+' conftest.er1 >conftest.err
26067   rm -f conftest.er1
26068   cat conftest.err >&5
26069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26070   (exit $ac_status); } && {
26071          test -z "$ac_c_werror_flag" ||
26072          test ! -s conftest.err
26073        } && test -s conftest$ac_exeext &&
26074        $as_test_x conftest$ac_exeext; then
26075   eval "$as_ac_var=yes"
26076 else
26077   echo "$as_me: failed program was:" >&5
26078 sed 's/^/| /' conftest.$ac_ext >&5
26079
26080         eval "$as_ac_var=no"
26081 fi
26082
26083 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26084       conftest$ac_exeext conftest.$ac_ext
26085 fi
26086 ac_res=`eval echo '${'$as_ac_var'}'`
26087                { echo "$as_me:$LINENO: result: $ac_res" >&5
26088 echo "${ECHO_T}$ac_res" >&6; }
26089 if test `eval echo '${'$as_ac_var'}'` = yes; then
26090   cat >>confdefs.h <<_ACEOF
26091 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26092 _ACEOF
26093
26094 fi
26095 done
26096
26097
26098 for ac_header in varargs.h
26099 do
26100 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26101 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26102   { echo "$as_me:$LINENO: checking for $ac_header" >&5
26103 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26104 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26105   echo $ECHO_N "(cached) $ECHO_C" >&6
26106 fi
26107 ac_res=`eval echo '${'$as_ac_Header'}'`
26108                { echo "$as_me:$LINENO: result: $ac_res" >&5
26109 echo "${ECHO_T}$ac_res" >&6; }
26110 else
26111   # Is the header compilable?
26112 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
26113 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
26114 cat >conftest.$ac_ext <<_ACEOF
26115 /* confdefs.h.  */
26116 _ACEOF
26117 cat confdefs.h >>conftest.$ac_ext
26118 cat >>conftest.$ac_ext <<_ACEOF
26119 /* end confdefs.h.  */
26120 $ac_includes_default
26121 #include <$ac_header>
26122 _ACEOF
26123 rm -f conftest.$ac_objext
26124 if { (ac_try="$ac_compile"
26125 case "(($ac_try" in
26126   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26127   *) ac_try_echo=$ac_try;;
26128 esac
26129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26130   (eval "$ac_compile") 2>conftest.er1
26131   ac_status=$?
26132   grep -v '^ *+' conftest.er1 >conftest.err
26133   rm -f conftest.er1
26134   cat conftest.err >&5
26135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26136   (exit $ac_status); } && {
26137          test -z "$ac_c_werror_flag" ||
26138          test ! -s conftest.err
26139        } && test -s conftest.$ac_objext; then
26140   ac_header_compiler=yes
26141 else
26142   echo "$as_me: failed program was:" >&5
26143 sed 's/^/| /' conftest.$ac_ext >&5
26144
26145         ac_header_compiler=no
26146 fi
26147
26148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26149 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26150 echo "${ECHO_T}$ac_header_compiler" >&6; }
26151
26152 # Is the header present?
26153 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
26154 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
26155 cat >conftest.$ac_ext <<_ACEOF
26156 /* confdefs.h.  */
26157 _ACEOF
26158 cat confdefs.h >>conftest.$ac_ext
26159 cat >>conftest.$ac_ext <<_ACEOF
26160 /* end confdefs.h.  */
26161 #include <$ac_header>
26162 _ACEOF
26163 if { (ac_try="$ac_cpp conftest.$ac_ext"
26164 case "(($ac_try" in
26165   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26166   *) ac_try_echo=$ac_try;;
26167 esac
26168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26169   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26170   ac_status=$?
26171   grep -v '^ *+' conftest.er1 >conftest.err
26172   rm -f conftest.er1
26173   cat conftest.err >&5
26174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26175   (exit $ac_status); } >/dev/null && {
26176          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26177          test ! -s conftest.err
26178        }; then
26179   ac_header_preproc=yes
26180 else
26181   echo "$as_me: failed program was:" >&5
26182 sed 's/^/| /' conftest.$ac_ext >&5
26183
26184   ac_header_preproc=no
26185 fi
26186
26187 rm -f conftest.err conftest.$ac_ext
26188 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26189 echo "${ECHO_T}$ac_header_preproc" >&6; }
26190
26191 # So?  What about this header?
26192 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26193   yes:no: )
26194     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26195 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26196     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26197 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26198     ac_header_preproc=yes
26199     ;;
26200   no:yes:* )
26201     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26202 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26203     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26204 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26205     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26206 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26207     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26208 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26209     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26210 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26211     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26212 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26213
26214     ;;
26215 esac
26216 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26217 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26218 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26219   echo $ECHO_N "(cached) $ECHO_C" >&6
26220 else
26221   eval "$as_ac_Header=\$ac_header_preproc"
26222 fi
26223 ac_res=`eval echo '${'$as_ac_Header'}'`
26224                { echo "$as_me:$LINENO: result: $ac_res" >&5
26225 echo "${ECHO_T}$ac_res" >&6; }
26226
26227 fi
26228 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26229   cat >>confdefs.h <<_ACEOF
26230 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26231 _ACEOF
26232
26233 fi
26234
26235 done
26236
26237
26238
26239 { echo "$as_me:$LINENO: checking for Python support" >&5
26240 echo $ECHO_N "checking for Python support... $ECHO_C" >&6; }
26241
26242 # Check whether --with-python was given.
26243 if test "${with_python+set}" = set; then
26244   withval=$with_python;
26245        PYTHON_INCDIR=
26246        PYTHON_LIBS=
26247        if test "$withval" != "no"; then
26248           if test "$withval" = "yes"; then
26249              if test -e /usr/bin/python-config ; then
26250                 PYTHON_INCDIR=`/usr/bin/python-config --includes`
26251                 PYTHON_LIBS=`/usr/bin/python-config --libs`
26252              else
26253                 for python_root in /usr /usr/local /usr/sfw; do
26254                    for ver in python2.2 python2.3 python2.4 python2.5 python2.6 python3; do
26255                       if test -f $python_root/include/${ver}/Python.h; then
26256                          PYTHON_INCDIR=-I$python_root/include/${ver}
26257                          if test -d $python_root/lib64/${ver}/config; then
26258                             PYTHON_LIBS="-L$python_root/lib64/${ver}/config -l${ver}"
26259                          else
26260                             PYTHON_LIBS="-L$python_root/lib/${ver}/config -l${ver}"
26261                          fi
26262                          break
26263                       fi
26264                    done
26265                 done
26266
26267                 if test x$PYTHON_INCDIR = x; then
26268                    if test -f $prefix/include/Python.h; then
26269                       PYTHON_INCDIR=-I$prefix/include
26270                       if test -d $prefix/lib64/config; then
26271                          PYTHON_LIBS="-L$prefix/lib64/config -lpython"
26272                       else
26273                          PYTHON_LIBS="-L$prefix/lib/config -lpython"
26274                       fi
26275                    else
26276                       { echo "$as_me:$LINENO: result: no" >&5
26277 echo "${ECHO_T}no" >&6; }
26278                       { { echo "$as_me:$LINENO: error: Unable to find Python.h in standard locations" >&5
26279 echo "$as_me: error: Unable to find Python.h in standard locations" >&2;}
26280    { (exit 1); exit 1; }; }
26281                    fi
26282                 fi
26283              fi
26284           else
26285              if test -e $withval/bin/python-config ; then
26286                 PYTHON_INCDIR=`$withval/bin/python-config --includes`
26287                 PYTHON_LIBS=`$withval/bin/python-config --libs`
26288              elif test -f $withval/Python.h; then
26289                 PYTHON_INCDIR=-I$withval
26290                 PYTHON_LIBS="-L$withval/config -lpython"
26291              elif test -f $withval/include/Python.h; then
26292                 PYTHON_INCDIR=-I$withval/include
26293                 if test -d $withval/lib64/config; then
26294                    PYTHON_LIBS="-L$withval/lib64/config -lpython"
26295                 else
26296                    PYTHON_LIBS="-L$withval/lib/config -lpython"
26297                 fi
26298              elif test -f $withval/include/python/Python.h; then
26299                 PYTHON_INCDIR=-I$withval/include/python
26300                 if test -d $withval/lib64/python/config; then
26301                    PYTHON_LIBS="-L$withval/lib64/python/config -lpython"
26302                 else
26303                    PYTHON_LIBS="-L$withval/lib/python/config -lpython"
26304                 fi
26305              else
26306                 { echo "$as_me:$LINENO: result: no" >&5
26307 echo "${ECHO_T}no" >&6; }
26308                 { { echo "$as_me:$LINENO: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&5
26309 echo "$as_me: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&2;}
26310    { (exit 1); exit 1; }; }
26311              fi
26312           fi
26313
26314           cat >>confdefs.h <<\_ACEOF
26315 #define HAVE_PYTHON 1
26316 _ACEOF
26317
26318           { echo "$as_me:$LINENO: result: yes" >&5
26319 echo "${ECHO_T}yes" >&6; }
26320           support_python=yes
26321           { echo "$as_me:$LINENO: checking for more Python libs" >&5
26322 echo "$as_me: checking for more Python libs" >&6;}
26323           saved_LIBS="$LIBS"; LIBS=
26324           { echo "$as_me:$LINENO: checking for library containing shm_open" >&5
26325 echo $ECHO_N "checking for library containing shm_open... $ECHO_C" >&6; }
26326 if test "${ac_cv_search_shm_open+set}" = set; then
26327   echo $ECHO_N "(cached) $ECHO_C" >&6
26328 else
26329   ac_func_search_save_LIBS=$LIBS
26330 cat >conftest.$ac_ext <<_ACEOF
26331 /* confdefs.h.  */
26332 _ACEOF
26333 cat confdefs.h >>conftest.$ac_ext
26334 cat >>conftest.$ac_ext <<_ACEOF
26335 /* end confdefs.h.  */
26336
26337 /* Override any GCC internal prototype to avoid an error.
26338    Use char because int might match the return type of a GCC
26339    builtin and then its argument prototype would still apply.  */
26340 #ifdef __cplusplus
26341 extern "C"
26342 #endif
26343 char shm_open ();
26344 int
26345 main ()
26346 {
26347 return shm_open ();
26348   ;
26349   return 0;
26350 }
26351 _ACEOF
26352 for ac_lib in '' rt; do
26353   if test -z "$ac_lib"; then
26354     ac_res="none required"
26355   else
26356     ac_res=-l$ac_lib
26357     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
26358   fi
26359   rm -f conftest.$ac_objext conftest$ac_exeext
26360 if { (ac_try="$ac_link"
26361 case "(($ac_try" in
26362   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26363   *) ac_try_echo=$ac_try;;
26364 esac
26365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26366   (eval "$ac_link") 2>conftest.er1
26367   ac_status=$?
26368   grep -v '^ *+' conftest.er1 >conftest.err
26369   rm -f conftest.er1
26370   cat conftest.err >&5
26371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26372   (exit $ac_status); } && {
26373          test -z "$ac_c_werror_flag" ||
26374          test ! -s conftest.err
26375        } && test -s conftest$ac_exeext &&
26376        $as_test_x conftest$ac_exeext; then
26377   ac_cv_search_shm_open=$ac_res
26378 else
26379   echo "$as_me: failed program was:" >&5
26380 sed 's/^/| /' conftest.$ac_ext >&5
26381
26382
26383 fi
26384
26385 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26386       conftest$ac_exeext
26387   if test "${ac_cv_search_shm_open+set}" = set; then
26388   break
26389 fi
26390 done
26391 if test "${ac_cv_search_shm_open+set}" = set; then
26392   :
26393 else
26394   ac_cv_search_shm_open=no
26395 fi
26396 rm conftest.$ac_ext
26397 LIBS=$ac_func_search_save_LIBS
26398 fi
26399 { echo "$as_me:$LINENO: result: $ac_cv_search_shm_open" >&5
26400 echo "${ECHO_T}$ac_cv_search_shm_open" >&6; }
26401 ac_res=$ac_cv_search_shm_open
26402 if test "$ac_res" != no; then
26403   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26404
26405 fi
26406
26407
26408 { echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
26409 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6; }
26410 if test "${ac_cv_lib_util_openpty+set}" = set; then
26411   echo $ECHO_N "(cached) $ECHO_C" >&6
26412 else
26413   ac_check_lib_save_LIBS=$LIBS
26414 LIBS="-lutil  $LIBS"
26415 cat >conftest.$ac_ext <<_ACEOF
26416 /* confdefs.h.  */
26417 _ACEOF
26418 cat confdefs.h >>conftest.$ac_ext
26419 cat >>conftest.$ac_ext <<_ACEOF
26420 /* end confdefs.h.  */
26421
26422 /* Override any GCC internal prototype to avoid an error.
26423    Use char because int might match the return type of a GCC
26424    builtin and then its argument prototype would still apply.  */
26425 #ifdef __cplusplus
26426 extern "C"
26427 #endif
26428 char openpty ();
26429 int
26430 main ()
26431 {
26432 return openpty ();
26433   ;
26434   return 0;
26435 }
26436 _ACEOF
26437 rm -f conftest.$ac_objext conftest$ac_exeext
26438 if { (ac_try="$ac_link"
26439 case "(($ac_try" in
26440   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26441   *) ac_try_echo=$ac_try;;
26442 esac
26443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26444   (eval "$ac_link") 2>conftest.er1
26445   ac_status=$?
26446   grep -v '^ *+' conftest.er1 >conftest.err
26447   rm -f conftest.er1
26448   cat conftest.err >&5
26449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26450   (exit $ac_status); } && {
26451          test -z "$ac_c_werror_flag" ||
26452          test ! -s conftest.err
26453        } && test -s conftest$ac_exeext &&
26454        $as_test_x conftest$ac_exeext; then
26455   ac_cv_lib_util_openpty=yes
26456 else
26457   echo "$as_me: failed program was:" >&5
26458 sed 's/^/| /' conftest.$ac_ext >&5
26459
26460         ac_cv_lib_util_openpty=no
26461 fi
26462
26463 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26464       conftest$ac_exeext conftest.$ac_ext
26465 LIBS=$ac_check_lib_save_LIBS
26466 fi
26467 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
26468 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6; }
26469 if test $ac_cv_lib_util_openpty = yes; then
26470   cat >>confdefs.h <<_ACEOF
26471 #define HAVE_LIBUTIL 1
26472 _ACEOF
26473
26474   LIBS="-lutil $LIBS"
26475
26476 fi
26477
26478           PYTHON_LIBS="$PYTHON_LIBS $LIBS"
26479           LIBS="$saved_LIBS"
26480        else
26481           { echo "$as_me:$LINENO: result: no" >&5
26482 echo "${ECHO_T}no" >&6; }
26483        fi
26484
26485 else
26486
26487        { echo "$as_me:$LINENO: result: no" >&5
26488 echo "${ECHO_T}no" >&6; }
26489
26490
26491 fi
26492
26493
26494
26495
26496 { echo "$as_me:$LINENO: checking for socket" >&5
26497 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
26498 if test "${ac_cv_func_socket+set}" = set; then
26499   echo $ECHO_N "(cached) $ECHO_C" >&6
26500 else
26501   cat >conftest.$ac_ext <<_ACEOF
26502 /* confdefs.h.  */
26503 _ACEOF
26504 cat confdefs.h >>conftest.$ac_ext
26505 cat >>conftest.$ac_ext <<_ACEOF
26506 /* end confdefs.h.  */
26507 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
26508    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26509 #define socket innocuous_socket
26510
26511 /* System header to define __stub macros and hopefully few prototypes,
26512     which can conflict with char socket (); below.
26513     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26514     <limits.h> exists even on freestanding compilers.  */
26515
26516 #ifdef __STDC__
26517 # include <limits.h>
26518 #else
26519 # include <assert.h>
26520 #endif
26521
26522 #undef socket
26523
26524 /* Override any GCC internal prototype to avoid an error.
26525    Use char because int might match the return type of a GCC
26526    builtin and then its argument prototype would still apply.  */
26527 #ifdef __cplusplus
26528 extern "C"
26529 #endif
26530 char socket ();
26531 /* The GNU C library defines this for functions which it implements
26532     to always fail with ENOSYS.  Some functions are actually named
26533     something starting with __ and the normal name is an alias.  */
26534 #if defined __stub_socket || defined __stub___socket
26535 choke me
26536 #endif
26537
26538 int
26539 main ()
26540 {
26541 return socket ();
26542   ;
26543   return 0;
26544 }
26545 _ACEOF
26546 rm -f conftest.$ac_objext conftest$ac_exeext
26547 if { (ac_try="$ac_link"
26548 case "(($ac_try" in
26549   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26550   *) ac_try_echo=$ac_try;;
26551 esac
26552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26553   (eval "$ac_link") 2>conftest.er1
26554   ac_status=$?
26555   grep -v '^ *+' conftest.er1 >conftest.err
26556   rm -f conftest.er1
26557   cat conftest.err >&5
26558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26559   (exit $ac_status); } && {
26560          test -z "$ac_c_werror_flag" ||
26561          test ! -s conftest.err
26562        } && test -s conftest$ac_exeext &&
26563        $as_test_x conftest$ac_exeext; then
26564   ac_cv_func_socket=yes
26565 else
26566   echo "$as_me: failed program was:" >&5
26567 sed 's/^/| /' conftest.$ac_ext >&5
26568
26569         ac_cv_func_socket=no
26570 fi
26571
26572 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26573       conftest$ac_exeext conftest.$ac_ext
26574 fi
26575 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
26576 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
26577 if test $ac_cv_func_socket = yes; then
26578   { echo "$as_me:$LINENO: result: using libc's socket" >&5
26579 echo "${ECHO_T}using libc's socket" >&6; }
26580 else
26581
26582 { echo "$as_me:$LINENO: checking for socket in -lxnet" >&5
26583 echo $ECHO_N "checking for socket in -lxnet... $ECHO_C" >&6; }
26584 if test "${ac_cv_lib_xnet_socket+set}" = set; then
26585   echo $ECHO_N "(cached) $ECHO_C" >&6
26586 else
26587   ac_check_lib_save_LIBS=$LIBS
26588 LIBS="-lxnet  $LIBS"
26589 cat >conftest.$ac_ext <<_ACEOF
26590 /* confdefs.h.  */
26591 _ACEOF
26592 cat confdefs.h >>conftest.$ac_ext
26593 cat >>conftest.$ac_ext <<_ACEOF
26594 /* end confdefs.h.  */
26595
26596 /* Override any GCC internal prototype to avoid an error.
26597    Use char because int might match the return type of a GCC
26598    builtin and then its argument prototype would still apply.  */
26599 #ifdef __cplusplus
26600 extern "C"
26601 #endif
26602 char socket ();
26603 int
26604 main ()
26605 {
26606 return socket ();
26607   ;
26608   return 0;
26609 }
26610 _ACEOF
26611 rm -f conftest.$ac_objext conftest$ac_exeext
26612 if { (ac_try="$ac_link"
26613 case "(($ac_try" in
26614   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26615   *) ac_try_echo=$ac_try;;
26616 esac
26617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26618   (eval "$ac_link") 2>conftest.er1
26619   ac_status=$?
26620   grep -v '^ *+' conftest.er1 >conftest.err
26621   rm -f conftest.er1
26622   cat conftest.err >&5
26623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26624   (exit $ac_status); } && {
26625          test -z "$ac_c_werror_flag" ||
26626          test ! -s conftest.err
26627        } && test -s conftest$ac_exeext &&
26628        $as_test_x conftest$ac_exeext; then
26629   ac_cv_lib_xnet_socket=yes
26630 else
26631   echo "$as_me: failed program was:" >&5
26632 sed 's/^/| /' conftest.$ac_ext >&5
26633
26634         ac_cv_lib_xnet_socket=no
26635 fi
26636
26637 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26638       conftest$ac_exeext conftest.$ac_ext
26639 LIBS=$ac_check_lib_save_LIBS
26640 fi
26641 { echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_socket" >&5
26642 echo "${ECHO_T}$ac_cv_lib_xnet_socket" >&6; }
26643 if test $ac_cv_lib_xnet_socket = yes; then
26644   cat >>confdefs.h <<_ACEOF
26645 #define HAVE_LIBXNET 1
26646 _ACEOF
26647
26648   LIBS="-lxnet $LIBS"
26649
26650 fi
26651
26652
26653 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
26654 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
26655 if test "${ac_cv_lib_socket_socket+set}" = set; then
26656   echo $ECHO_N "(cached) $ECHO_C" >&6
26657 else
26658   ac_check_lib_save_LIBS=$LIBS
26659 LIBS="-lsocket  $LIBS"
26660 cat >conftest.$ac_ext <<_ACEOF
26661 /* confdefs.h.  */
26662 _ACEOF
26663 cat confdefs.h >>conftest.$ac_ext
26664 cat >>conftest.$ac_ext <<_ACEOF
26665 /* end confdefs.h.  */
26666
26667 /* Override any GCC internal prototype to avoid an error.
26668    Use char because int might match the return type of a GCC
26669    builtin and then its argument prototype would still apply.  */
26670 #ifdef __cplusplus
26671 extern "C"
26672 #endif
26673 char socket ();
26674 int
26675 main ()
26676 {
26677 return socket ();
26678   ;
26679   return 0;
26680 }
26681 _ACEOF
26682 rm -f conftest.$ac_objext conftest$ac_exeext
26683 if { (ac_try="$ac_link"
26684 case "(($ac_try" in
26685   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26686   *) ac_try_echo=$ac_try;;
26687 esac
26688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26689   (eval "$ac_link") 2>conftest.er1
26690   ac_status=$?
26691   grep -v '^ *+' conftest.er1 >conftest.err
26692   rm -f conftest.er1
26693   cat conftest.err >&5
26694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26695   (exit $ac_status); } && {
26696          test -z "$ac_c_werror_flag" ||
26697          test ! -s conftest.err
26698        } && test -s conftest$ac_exeext &&
26699        $as_test_x conftest$ac_exeext; then
26700   ac_cv_lib_socket_socket=yes
26701 else
26702   echo "$as_me: failed program was:" >&5
26703 sed 's/^/| /' conftest.$ac_ext >&5
26704
26705         ac_cv_lib_socket_socket=no
26706 fi
26707
26708 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26709       conftest$ac_exeext conftest.$ac_ext
26710 LIBS=$ac_check_lib_save_LIBS
26711 fi
26712 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
26713 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
26714 if test $ac_cv_lib_socket_socket = yes; then
26715   cat >>confdefs.h <<_ACEOF
26716 #define HAVE_LIBSOCKET 1
26717 _ACEOF
26718
26719   LIBS="-lsocket $LIBS"
26720
26721 fi
26722
26723
26724 { echo "$as_me:$LINENO: checking for socket in -linet" >&5
26725 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6; }
26726 if test "${ac_cv_lib_inet_socket+set}" = set; then
26727   echo $ECHO_N "(cached) $ECHO_C" >&6
26728 else
26729   ac_check_lib_save_LIBS=$LIBS
26730 LIBS="-linet  $LIBS"
26731 cat >conftest.$ac_ext <<_ACEOF
26732 /* confdefs.h.  */
26733 _ACEOF
26734 cat confdefs.h >>conftest.$ac_ext
26735 cat >>conftest.$ac_ext <<_ACEOF
26736 /* end confdefs.h.  */
26737
26738 /* Override any GCC internal prototype to avoid an error.
26739    Use char because int might match the return type of a GCC
26740    builtin and then its argument prototype would still apply.  */
26741 #ifdef __cplusplus
26742 extern "C"
26743 #endif
26744 char socket ();
26745 int
26746 main ()
26747 {
26748 return socket ();
26749   ;
26750   return 0;
26751 }
26752 _ACEOF
26753 rm -f conftest.$ac_objext conftest$ac_exeext
26754 if { (ac_try="$ac_link"
26755 case "(($ac_try" in
26756   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26757   *) ac_try_echo=$ac_try;;
26758 esac
26759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26760   (eval "$ac_link") 2>conftest.er1
26761   ac_status=$?
26762   grep -v '^ *+' conftest.er1 >conftest.err
26763   rm -f conftest.er1
26764   cat conftest.err >&5
26765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26766   (exit $ac_status); } && {
26767          test -z "$ac_c_werror_flag" ||
26768          test ! -s conftest.err
26769        } && test -s conftest$ac_exeext &&
26770        $as_test_x conftest$ac_exeext; then
26771   ac_cv_lib_inet_socket=yes
26772 else
26773   echo "$as_me: failed program was:" >&5
26774 sed 's/^/| /' conftest.$ac_ext >&5
26775
26776         ac_cv_lib_inet_socket=no
26777 fi
26778
26779 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26780       conftest$ac_exeext conftest.$ac_ext
26781 LIBS=$ac_check_lib_save_LIBS
26782 fi
26783 { echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
26784 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6; }
26785 if test $ac_cv_lib_inet_socket = yes; then
26786   cat >>confdefs.h <<_ACEOF
26787 #define HAVE_LIBINET 1
26788 _ACEOF
26789
26790   LIBS="-linet $LIBS"
26791
26792 fi
26793
26794 fi
26795
26796
26797 TCPW_MSG="no"
26798 WRAPLIBS=""
26799
26800 # Check whether --with-tcp-wrappers was given.
26801 if test "${with_tcp_wrappers+set}" = set; then
26802   withval=$with_tcp_wrappers;
26803        if test "x$withval" != "xno" ; then
26804           saved_LIBS="$LIBS"
26805           LIBS="$saved_LIBS -lwrap"
26806           { echo "$as_me:$LINENO: checking for library containing nanosleep" >&5
26807 echo $ECHO_N "checking for library containing nanosleep... $ECHO_C" >&6; }
26808 if test "${ac_cv_search_nanosleep+set}" = set; then
26809   echo $ECHO_N "(cached) $ECHO_C" >&6
26810 else
26811   ac_func_search_save_LIBS=$LIBS
26812 cat >conftest.$ac_ext <<_ACEOF
26813 /* confdefs.h.  */
26814 _ACEOF
26815 cat confdefs.h >>conftest.$ac_ext
26816 cat >>conftest.$ac_ext <<_ACEOF
26817 /* end confdefs.h.  */
26818
26819 /* Override any GCC internal prototype to avoid an error.
26820    Use char because int might match the return type of a GCC
26821    builtin and then its argument prototype would still apply.  */
26822 #ifdef __cplusplus
26823 extern "C"
26824 #endif
26825 char nanosleep ();
26826 int
26827 main ()
26828 {
26829 return nanosleep ();
26830   ;
26831   return 0;
26832 }
26833 _ACEOF
26834 for ac_lib in '' rt; do
26835   if test -z "$ac_lib"; then
26836     ac_res="none required"
26837   else
26838     ac_res=-l$ac_lib
26839     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
26840   fi
26841   rm -f conftest.$ac_objext conftest$ac_exeext
26842 if { (ac_try="$ac_link"
26843 case "(($ac_try" in
26844   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26845   *) ac_try_echo=$ac_try;;
26846 esac
26847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26848   (eval "$ac_link") 2>conftest.er1
26849   ac_status=$?
26850   grep -v '^ *+' conftest.er1 >conftest.err
26851   rm -f conftest.er1
26852   cat conftest.err >&5
26853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26854   (exit $ac_status); } && {
26855          test -z "$ac_c_werror_flag" ||
26856          test ! -s conftest.err
26857        } && test -s conftest$ac_exeext &&
26858        $as_test_x conftest$ac_exeext; then
26859   ac_cv_search_nanosleep=$ac_res
26860 else
26861   echo "$as_me: failed program was:" >&5
26862 sed 's/^/| /' conftest.$ac_ext >&5
26863
26864
26865 fi
26866
26867 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26868       conftest$ac_exeext
26869   if test "${ac_cv_search_nanosleep+set}" = set; then
26870   break
26871 fi
26872 done
26873 if test "${ac_cv_search_nanosleep+set}" = set; then
26874   :
26875 else
26876   ac_cv_search_nanosleep=no
26877 fi
26878 rm conftest.$ac_ext
26879 LIBS=$ac_func_search_save_LIBS
26880 fi
26881 { echo "$as_me:$LINENO: result: $ac_cv_search_nanosleep" >&5
26882 echo "${ECHO_T}$ac_cv_search_nanosleep" >&6; }
26883 ac_res=$ac_cv_search_nanosleep
26884 if test "$ac_res" != no; then
26885   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26886
26887 fi
26888
26889           { echo "$as_me:$LINENO: checking for libwrap" >&5
26890 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6; }
26891           cat >conftest.$ac_ext <<_ACEOF
26892 /* confdefs.h.  */
26893 _ACEOF
26894 cat confdefs.h >>conftest.$ac_ext
26895 cat >>conftest.$ac_ext <<_ACEOF
26896 /* end confdefs.h.  */
26897
26898                #include <sys/types.h>
26899                #include <tcpd.h>
26900                int deny_severity = 0;
26901                int allow_severity = 0;
26902                struct request_info *req;
26903
26904 int
26905 main ()
26906 {
26907
26908                 hosts_access(req);
26909
26910   ;
26911   return 0;
26912 }
26913 _ACEOF
26914 rm -f conftest.$ac_objext conftest$ac_exeext
26915 if { (ac_try="$ac_link"
26916 case "(($ac_try" in
26917   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26918   *) ac_try_echo=$ac_try;;
26919 esac
26920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26921   (eval "$ac_link") 2>conftest.er1
26922   ac_status=$?
26923   grep -v '^ *+' conftest.er1 >conftest.err
26924   rm -f conftest.er1
26925   cat conftest.err >&5
26926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26927   (exit $ac_status); } && {
26928          test -z "$ac_c_werror_flag" ||
26929          test ! -s conftest.err
26930        } && test -s conftest$ac_exeext &&
26931        $as_test_x conftest$ac_exeext; then
26932
26933                  { echo "$as_me:$LINENO: result: yes" >&5
26934 echo "${ECHO_T}yes" >&6; }
26935
26936 cat >>confdefs.h <<\_ACEOF
26937 #define HAVE_LIBWRAP 1
26938 _ACEOF
26939
26940                  TCPW_MSG="yes"
26941                  LIBS="$saved_LIBS"
26942                  WRAPLIBS="-lwrap"
26943
26944 else
26945   echo "$as_me: failed program was:" >&5
26946 sed 's/^/| /' conftest.$ac_ext >&5
26947
26948
26949                  LIBS="$saved_LIBS -lwrap -lnsl"
26950                  WRAPLIBS="$saved_LIBS -lwrap -lnsl"
26951                  cat >conftest.$ac_ext <<_ACEOF
26952 /* confdefs.h.  */
26953 _ACEOF
26954 cat confdefs.h >>conftest.$ac_ext
26955 cat >>conftest.$ac_ext <<_ACEOF
26956 /* end confdefs.h.  */
26957
26958                        #include <sys/types.h>
26959                        #include <tcpd.h>
26960                        int deny_severity = 0;
26961                        int allow_severity = 0;
26962                        struct request_info *req;
26963
26964 int
26965 main ()
26966 {
26967
26968                        hosts_access(req);
26969
26970   ;
26971   return 0;
26972 }
26973 _ACEOF
26974 rm -f conftest.$ac_objext conftest$ac_exeext
26975 if { (ac_try="$ac_link"
26976 case "(($ac_try" in
26977   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26978   *) ac_try_echo=$ac_try;;
26979 esac
26980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26981   (eval "$ac_link") 2>conftest.er1
26982   ac_status=$?
26983   grep -v '^ *+' conftest.er1 >conftest.err
26984   rm -f conftest.er1
26985   cat conftest.err >&5
26986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26987   (exit $ac_status); } && {
26988          test -z "$ac_c_werror_flag" ||
26989          test ! -s conftest.err
26990        } && test -s conftest$ac_exeext &&
26991        $as_test_x conftest$ac_exeext; then
26992
26993                       { echo "$as_me:$LINENO: result: yes" >&5
26994 echo "${ECHO_T}yes" >&6; }
26995
26996 cat >>confdefs.h <<\_ACEOF
26997 #define HAVE_LIBWRAP 1
26998 _ACEOF
26999
27000                       TCPW_MSG="yes"
27001                       LIBS="$saved_LIBS"
27002                       WRAPLIBS="-lwrap"
27003
27004 else
27005   echo "$as_me: failed program was:" >&5
27006 sed 's/^/| /' conftest.$ac_ext >&5
27007
27008
27009                       { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
27010 echo "$as_me: error: *** libwrap missing" >&2;}
27011    { (exit 1); exit 1; }; }
27012
27013
27014 fi
27015
27016 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27017       conftest$ac_exeext conftest.$ac_ext
27018
27019
27020 fi
27021
27022 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27023       conftest$ac_exeext conftest.$ac_ext
27024        fi
27025
27026
27027 fi
27028
27029
27030 { echo "$as_me:$LINENO: checking for OpenSSL" >&5
27031 echo $ECHO_N "checking for OpenSSL... $ECHO_C" >&6; }
27032
27033 # Check whether --with-openssl was given.
27034 if test "${with_openssl+set}" = set; then
27035   withval=$with_openssl;
27036         with_openssl_directory=${withval}
27037
27038
27039 fi
27040
27041
27042 if test "x$with_openssl_directory" != "xno"; then
27043    OPENSSL_LIBS="-lssl -lcrypto"
27044    OPENSSL_INC=""
27045
27046    if test "x$with_openssl_directory" != "xyes" && test x"${with_openssl_directory}" != "x"; then
27047       #
27048       # Make sure the $with_openssl_directory also makes sense
27049       #
27050       if test -d "$with_openssl_directory/lib" -a -d "$with_openssl_directory/include"; then
27051          OPENSSL_LIBS="-L$with_openssl_directory/lib $OPENSSL_LIBS"
27052          OPENSSL_INC="-I$with_openssl_directory/include $OPENSSL_INC"
27053       fi
27054    fi
27055
27056    saved_LIBS="${LIBS}"
27057    saved_CFLAGS="${CFLAGS}"
27058    LIBS="${saved_LIBS} ${OPENSSL_LIBS}"
27059    CFLAGS="${saved_CFLAGS} ${OPENSSL_INC}"
27060
27061    cat >conftest.$ac_ext <<_ACEOF
27062 /* confdefs.h.  */
27063 _ACEOF
27064 cat confdefs.h >>conftest.$ac_ext
27065 cat >>conftest.$ac_ext <<_ACEOF
27066 /* end confdefs.h.  */
27067
27068           #include <openssl/ssl.h>
27069
27070 int
27071 main ()
27072 {
27073
27074            CRYPTO_set_id_callback(NULL);
27075
27076   ;
27077   return 0;
27078 }
27079 _ACEOF
27080 rm -f conftest.$ac_objext conftest$ac_exeext
27081 if { (ac_try="$ac_link"
27082 case "(($ac_try" in
27083   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27084   *) ac_try_echo=$ac_try;;
27085 esac
27086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27087   (eval "$ac_link") 2>conftest.er1
27088   ac_status=$?
27089   grep -v '^ *+' conftest.er1 >conftest.err
27090   rm -f conftest.er1
27091   cat conftest.err >&5
27092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27093   (exit $ac_status); } && {
27094          test -z "$ac_c_werror_flag" ||
27095          test ! -s conftest.err
27096        } && test -s conftest$ac_exeext &&
27097        $as_test_x conftest$ac_exeext; then
27098
27099           support_tls="yes"
27100           support_crypto="yes"
27101
27102 else
27103   echo "$as_me: failed program was:" >&5
27104 sed 's/^/| /' conftest.$ac_ext >&5
27105
27106
27107           support_tls="no"
27108
27109
27110 fi
27111
27112 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27113       conftest$ac_exeext conftest.$ac_ext
27114
27115    cat >conftest.$ac_ext <<_ACEOF
27116 /* confdefs.h.  */
27117 _ACEOF
27118 cat confdefs.h >>conftest.$ac_ext
27119 cat >>conftest.$ac_ext <<_ACEOF
27120 /* end confdefs.h.  */
27121
27122           #include <openssl/evp.h>
27123
27124 int
27125 main ()
27126 {
27127
27128           EVP_sha512();
27129
27130   ;
27131   return 0;
27132 }
27133 _ACEOF
27134 rm -f conftest.$ac_objext conftest$ac_exeext
27135 if { (ac_try="$ac_link"
27136 case "(($ac_try" in
27137   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27138   *) ac_try_echo=$ac_try;;
27139 esac
27140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27141   (eval "$ac_link") 2>conftest.er1
27142   ac_status=$?
27143   grep -v '^ *+' conftest.er1 >conftest.err
27144   rm -f conftest.er1
27145   cat conftest.err >&5
27146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27147   (exit $ac_status); } && {
27148          test -z "$ac_c_werror_flag" ||
27149          test ! -s conftest.err
27150        } && test -s conftest$ac_exeext &&
27151        $as_test_x conftest$ac_exeext; then
27152
27153           ac_cv_openssl_sha2="yes"
27154
27155 else
27156   echo "$as_me: failed program was:" >&5
27157 sed 's/^/| /' conftest.$ac_ext >&5
27158
27159
27160           ac_cv_openssl_sha2="no"
27161
27162
27163 fi
27164
27165 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27166       conftest$ac_exeext conftest.$ac_ext
27167
27168                cat >conftest.$ac_ext <<_ACEOF
27169 /* confdefs.h.  */
27170 _ACEOF
27171 cat confdefs.h >>conftest.$ac_ext
27172 cat >>conftest.$ac_ext <<_ACEOF
27173 /* end confdefs.h.  */
27174
27175           #include <openssl/evp.h>
27176
27177 int
27178 main ()
27179 {
27180
27181           EVP_aes_192_cbc();
27182
27183   ;
27184   return 0;
27185 }
27186 _ACEOF
27187 rm -f conftest.$ac_objext conftest$ac_exeext
27188 if { (ac_try="$ac_link"
27189 case "(($ac_try" in
27190   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27191   *) ac_try_echo=$ac_try;;
27192 esac
27193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27194   (eval "$ac_link") 2>conftest.er1
27195   ac_status=$?
27196   grep -v '^ *+' conftest.er1 >conftest.err
27197   rm -f conftest.er1
27198   cat conftest.err >&5
27199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27200   (exit $ac_status); } && {
27201          test -z "$ac_c_werror_flag" ||
27202          test ! -s conftest.err
27203        } && test -s conftest$ac_exeext &&
27204        $as_test_x conftest$ac_exeext; then
27205
27206           ac_cv_openssl_export="no"
27207
27208 else
27209   echo "$as_me: failed program was:" >&5
27210 sed 's/^/| /' conftest.$ac_ext >&5
27211
27212
27213           ac_cv_openssl_export="yes"
27214
27215
27216 fi
27217
27218 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27219       conftest$ac_exeext conftest.$ac_ext
27220
27221    LIBS="${saved_LIBS}"
27222    CFLAGS="${saved_CFLAGS}"
27223
27224    if test "$support_tls" = "yes"; then
27225
27226 cat >>confdefs.h <<\_ACEOF
27227 #define HAVE_OPENSSL 1
27228 _ACEOF
27229
27230
27231 cat >>confdefs.h <<\_ACEOF
27232 #define HAVE_TLS 1
27233 _ACEOF
27234
27235
27236 cat >>confdefs.h <<\_ACEOF
27237 #define HAVE_CRYPTO 1
27238 _ACEOF
27239
27240    fi
27241
27242    if test "$ac_cv_openssl_sha2" = "yes"; then
27243
27244 cat >>confdefs.h <<\_ACEOF
27245 #define HAVE_SHA2 1
27246 _ACEOF
27247
27248    fi
27249
27250    if test "$ac_cv_openssl_export" = "yes"; then
27251
27252 cat >>confdefs.h <<\_ACEOF
27253 #define HAVE_OPENSSL_EXPORT_LIBRARY 1
27254 _ACEOF
27255
27256    fi
27257 else
27258    support_tls="no"
27259    support_crypto="no"
27260    OPENSSL_LIBS=""
27261    OPENSSL_INC=""
27262 fi
27263
27264 if test "$support_tls" = "no"; then
27265    OPENSSL_LIBS=""
27266    OPENSSL_INC=""
27267 fi
27268
27269 { echo "$as_me:$LINENO: result: $support_tls" >&5
27270 echo "${ECHO_T}$support_tls" >&6; }
27271
27272
27273
27274 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
27275 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
27276 if test "${ac_cv_search_dlopen+set}" = set; then
27277   echo $ECHO_N "(cached) $ECHO_C" >&6
27278 else
27279   ac_func_search_save_LIBS=$LIBS
27280 cat >conftest.$ac_ext <<_ACEOF
27281 /* confdefs.h.  */
27282 _ACEOF
27283 cat confdefs.h >>conftest.$ac_ext
27284 cat >>conftest.$ac_ext <<_ACEOF
27285 /* end confdefs.h.  */
27286
27287 /* Override any GCC internal prototype to avoid an error.
27288    Use char because int might match the return type of a GCC
27289    builtin and then its argument prototype would still apply.  */
27290 #ifdef __cplusplus
27291 extern "C"
27292 #endif
27293 char dlopen ();
27294 int
27295 main ()
27296 {
27297 return dlopen ();
27298   ;
27299   return 0;
27300 }
27301 _ACEOF
27302 for ac_lib in '' dl; do
27303   if test -z "$ac_lib"; then
27304     ac_res="none required"
27305   else
27306     ac_res=-l$ac_lib
27307     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27308   fi
27309   rm -f conftest.$ac_objext conftest$ac_exeext
27310 if { (ac_try="$ac_link"
27311 case "(($ac_try" in
27312   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27313   *) ac_try_echo=$ac_try;;
27314 esac
27315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27316   (eval "$ac_link") 2>conftest.er1
27317   ac_status=$?
27318   grep -v '^ *+' conftest.er1 >conftest.err
27319   rm -f conftest.er1
27320   cat conftest.err >&5
27321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27322   (exit $ac_status); } && {
27323          test -z "$ac_c_werror_flag" ||
27324          test ! -s conftest.err
27325        } && test -s conftest$ac_exeext &&
27326        $as_test_x conftest$ac_exeext; then
27327   ac_cv_search_dlopen=$ac_res
27328 else
27329   echo "$as_me: failed program was:" >&5
27330 sed 's/^/| /' conftest.$ac_ext >&5
27331
27332
27333 fi
27334
27335 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27336       conftest$ac_exeext
27337   if test "${ac_cv_search_dlopen+set}" = set; then
27338   break
27339 fi
27340 done
27341 if test "${ac_cv_search_dlopen+set}" = set; then
27342   :
27343 else
27344   ac_cv_search_dlopen=no
27345 fi
27346 rm conftest.$ac_ext
27347 LIBS=$ac_func_search_save_LIBS
27348 fi
27349 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
27350 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
27351 ac_res=$ac_cv_search_dlopen
27352 if test "$ac_res" != no; then
27353   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27354
27355 fi
27356
27357
27358 working_dir=`eval echo ${prefix}/var/bacula/working`
27359
27360 # Check whether --with-working-dir was given.
27361 if test "${with_working_dir+set}" = set; then
27362   withval=$with_working_dir;
27363        if test "x$withval" != "xno" ; then
27364          working_dir=$withval
27365        fi
27366
27367
27368 fi
27369
27370
27371
27372
27373 archivedir=/tmp
27374
27375 # Check whether --with-archivedir was given.
27376 if test "${with_archivedir+set}" = set; then
27377   withval=$with_archivedir;
27378        if test "x$withval" != "xno" ; then
27379           archivedir=$withval
27380        fi
27381
27382
27383 fi
27384
27385
27386
27387
27388 basename=`hostname`
27389
27390 # Check whether --with-basename was given.
27391 if test "${with_basename+set}" = set; then
27392   withval=$with_basename;
27393        if test "x$withval" != "xno" ; then
27394           basename=$withval
27395        fi
27396
27397
27398 fi
27399
27400
27401
27402
27403 hostname=`uname -n | cut -d '.' -f 1`
27404 if test x${hostname} = x ; then
27405   hostname="localhost"
27406 fi
27407
27408 # Check whether --with-hostname was given.
27409 if test "${with_hostname+set}" = set; then
27410   withval=$with_hostname;
27411        if test "x$withval" != "xno" ; then
27412          hostname=$withval
27413        fi
27414
27415
27416 fi
27417
27418
27419
27420
27421
27422 scriptdir=`eval echo ${sysconfdir}`
27423
27424 # Check whether --with-scriptdir was given.
27425 if test "${with_scriptdir+set}" = set; then
27426   withval=$with_scriptdir;
27427        if test "x$withval" != "xno" ; then
27428           scriptdir=$withval
27429        fi
27430
27431
27432 fi
27433
27434
27435
27436
27437
27438 bsrdir=/tmp
27439
27440 # Check whether --with-bsrdir was given.
27441 if test "${with_bsrdir+set}" = set; then
27442   withval=$with_bsrdir;
27443        if test "x$withval" != "xno" ; then
27444           bsrdir=$withval
27445        fi
27446
27447
27448 fi
27449
27450
27451
27452
27453 logdir=/tmp
27454
27455 # Check whether --with-logdir was given.
27456 if test "${with_logdir+set}" = set; then
27457   withval=$with_logdir;
27458        if test "x$withval" != "xno" ; then
27459           logdir=$withval
27460        fi
27461
27462
27463 fi
27464
27465
27466
27467
27468
27469 # ------------------------------------------
27470 # Where to place plugindir (plugin files)
27471 # ------------------------------------------
27472 plugindir=`eval echo ${libdir}`
27473
27474 # Check whether --with-plugindir was given.
27475 if test "${with_plugindir+set}" = set; then
27476   withval=$with_plugindir;
27477        if test "x$withval" != "xno" ; then
27478           plugindir=$withval
27479        fi
27480
27481
27482 fi
27483
27484
27485
27486
27487 dump_email=root@localhost
27488
27489 # Check whether --with-dump-email was given.
27490 if test "${with_dump_email+set}" = set; then
27491   withval=$with_dump_email;
27492        if test "x$withval" != "xno" ; then
27493           dump_email=$withval
27494        fi
27495
27496
27497 fi
27498
27499
27500
27501
27502 job_email=root@localhost
27503
27504 # Check whether --with-job-email was given.
27505 if test "${with_job_email+set}" = set; then
27506   withval=$with_job_email;
27507        if test "x$withval" != "xno" ; then
27508           job_email=$withval
27509        fi
27510
27511
27512 fi
27513
27514
27515
27516
27517 smtp_host=localhost
27518
27519 # Check whether --with-smtp_host was given.
27520 if test "${with_smtp_host+set}" = set; then
27521   withval=$with_smtp_host;
27522        if test "x$withval" != "xno" ; then
27523           smtp_host=$withval
27524        fi
27525
27526
27527 fi
27528
27529
27530
27531
27532 piddir=/var/run
27533
27534 # Check whether --with-pid-dir was given.
27535 if test "${with_pid_dir+set}" = set; then
27536   withval=$with_pid_dir;
27537        if test "x$withval" != "xno" ; then
27538           piddir=$withval
27539        fi
27540
27541
27542 fi
27543
27544
27545 cat >>confdefs.h <<_ACEOF
27546 #define _PATH_BACULA_PIDDIR "$piddir"
27547 _ACEOF
27548
27549
27550
27551 subsysdir=/var/run/subsys
27552 if test -d /var/run/subsys; then
27553    subsysdir=/var/run/subsys
27554 elif test -d /var/lock/subsys; then
27555    subsysdir=/var/lock/subsys
27556 else
27557    subsysdir=/var/run/subsys
27558 fi
27559
27560 # Check whether --with-subsys-dir was given.
27561 if test "${with_subsys_dir+set}" = set; then
27562   withval=$with_subsys_dir;
27563        if test "x$withval" != "xno" ; then
27564           subsysdir=$withval
27565        fi
27566
27567
27568 fi
27569
27570
27571
27572
27573 baseport=9101
27574
27575 # Check whether --with-baseport was given.
27576 if test "${with_baseport+set}" = set; then
27577   withval=$with_baseport;
27578        if test "x$withval" != "xno" ; then
27579           baseport=$withval
27580        fi
27581
27582
27583 fi
27584
27585
27586
27587 dir_port=`expr $baseport`
27588 fd_port=`expr $baseport + 1`
27589 sd_port=`expr $fd_port + 1`
27590
27591
27592
27593
27594
27595 dir_password=
27596
27597 # Check whether --with-dir-password was given.
27598 if test "${with_dir_password+set}" = set; then
27599   withval=$with_dir_password;
27600        if test "x$withval" != "xno" ; then
27601           dir_password=$withval
27602        fi
27603
27604
27605 fi
27606
27607
27608 if test "x$dir_password" = "x" ; then
27609    if test "x$OPENSSL" = "xnone" ; then
27610       key=`autoconf/randpass 33`
27611    else
27612       key=`openssl rand -base64 33`
27613    fi
27614    dir_password=$key
27615 fi
27616
27617 fd_password=
27618
27619 # Check whether --with-fd-password was given.
27620 if test "${with_fd_password+set}" = set; then
27621   withval=$with_fd_password;
27622        if test "x$withval" != "xno" ; then
27623           fd_password=$withval
27624        fi
27625
27626
27627 fi
27628
27629
27630 if test "x$fd_password" = "x" ; then
27631    if test "x$OPENSSL" = "xnone" ; then
27632       key=`autoconf/randpass 37`
27633    else
27634       key=`openssl rand -base64 33`
27635    fi
27636    fd_password=$key
27637 fi
27638
27639 sd_password=
27640
27641 # Check whether --with-sd-password was given.
27642 if test "${with_sd_password+set}" = set; then
27643   withval=$with_sd_password;
27644        if test "x$withval" != "xno" ; then
27645           sd_password=$withval
27646        fi
27647
27648
27649 fi
27650
27651
27652 if test "x$sd_password" = "x" ; then
27653    if test "x$OPENSSL" = "xnone" ; then
27654       key=`autoconf/randpass 41`
27655    else
27656       key=`openssl rand -base64 33`
27657    fi
27658    sd_password=$key
27659 fi
27660
27661 mon_dir_password=
27662
27663 # Check whether --with-mon-dir-password was given.
27664 if test "${with_mon_dir_password+set}" = set; then
27665   withval=$with_mon_dir_password;
27666        if test "x$withval" != "xno" ; then
27667           mon_dir_password=$withval
27668        fi
27669
27670
27671 fi
27672
27673
27674 if test "x$mon_dir_password" = "x" ; then
27675    if test "x$OPENSSL" = "xnone" ; then
27676       key=`autoconf/randpass 33`
27677    else
27678       key=`openssl rand -base64 33`
27679    fi
27680    mon_dir_password=$key
27681 fi
27682
27683 mon_fd_password=
27684
27685 # Check whether --with-mon-fd-password was given.
27686 if test "${with_mon_fd_password+set}" = set; then
27687   withval=$with_mon_fd_password;
27688        if test "x$withval" != "xno" ; then
27689           mon_fd_password=$withval
27690        fi
27691
27692
27693 fi
27694
27695
27696 if test "x$mon_fd_password" = "x" ; then
27697    if test "x$OPENSSL" = "xnone" ; then
27698       key=`autoconf/randpass 37`
27699    else
27700       key=`openssl rand -base64 33`
27701    fi
27702    mon_fd_password=$key
27703 fi
27704
27705 mon_sd_password=
27706
27707 # Check whether --with-mon-sd-password was given.
27708 if test "${with_mon_sd_password+set}" = set; then
27709   withval=$with_mon_sd_password;
27710        if test "x$withval" != "xno" ; then
27711           mon_sd_password=$withval
27712        fi
27713
27714
27715 fi
27716
27717
27718 if test "x$mon_sd_password" = "x" ; then
27719    if test "x$OPENSSL" = "xnone" ; then
27720       key=`autoconf/randpass 41`
27721    else
27722       key=`openssl rand -base64 33`
27723    fi
27724    mon_sd_password=$key
27725 fi
27726
27727
27728
27729
27730
27731
27732
27733
27734 db_name=bacula
27735
27736 # Check whether --with-db_name was given.
27737 if test "${with_db_name+set}" = set; then
27738   withval=$with_db_name;
27739        if test "x$withval" != "x" ; then
27740           db_name=$withval
27741        fi
27742
27743
27744 fi
27745
27746
27747
27748 db_user=bacula
27749
27750 # Check whether --with-db_user was given.
27751 if test "${with_db_user+set}" = set; then
27752   withval=$with_db_user;
27753        if test "x$withval" != "x" ; then
27754           db_user=$withval
27755        fi
27756
27757
27758 fi
27759
27760
27761
27762 db_password=
27763
27764 # Check whether --with-db_password was given.
27765 if test "${with_db_password+set}" = set; then
27766   withval=$with_db_password;
27767        if test "x$withval" != "x" ; then
27768           db_password=$withval
27769        fi
27770
27771
27772 fi
27773
27774
27775
27776 db_port=" "
27777
27778 # Check whether --with-db_port was given.
27779 if test "${with_db_port+set}" = set; then
27780   withval=$with_db_port;
27781        if test "x$withval" != "x" ; then
27782           db_port=$withval
27783        fi
27784
27785
27786 fi
27787
27788
27789
27790 #
27791 # Handle users and groups for each daemon
27792 #
27793 dir_user=
27794
27795 # Check whether --with-dir_user was given.
27796 if test "${with_dir_user+set}" = set; then
27797   withval=$with_dir_user;
27798        if test "x$withval" != "x" ; then
27799            dir_user=$withval
27800        fi
27801
27802
27803 fi
27804
27805
27806 dir_group=
27807
27808 # Check whether --with-dir_group was given.
27809 if test "${with_dir_group+set}" = set; then
27810   withval=$with_dir_group;
27811        if test "x$withval" != "x" ; then
27812           dir_group=$withval
27813        fi
27814
27815
27816 fi
27817
27818
27819 sd_user=
27820
27821 # Check whether --with-sd_user was given.
27822 if test "${with_sd_user+set}" = set; then
27823   withval=$with_sd_user;
27824        if test "x$withval" != "x" ; then
27825           sd_user=$withval
27826        fi
27827
27828
27829 fi
27830
27831
27832 sd_group=
27833
27834 # Check whether --with-sd_group was given.
27835 if test "${with_sd_group+set}" = set; then
27836   withval=$with_sd_group;
27837        if test "x$withval" != "x" ; then
27838           sd_group=$withval
27839        fi
27840
27841
27842 fi
27843
27844
27845 fd_user=
27846
27847 # Check whether --with-fd_user was given.
27848 if test "${with_fd_user+set}" = set; then
27849   withval=$with_fd_user;
27850        if test "x$withval" != "x" ; then
27851           fd_user=$withval
27852        fi
27853
27854
27855 fi
27856
27857
27858 fd_group=
27859
27860 # Check whether --with-fd_group was given.
27861 if test "${with_fd_group+set}" = set; then
27862   withval=$with_fd_group;
27863        if test "x$withval" != "x" ; then
27864           fd_group=$withval
27865        fi
27866
27867
27868 fi
27869
27870
27871
27872
27873
27874
27875
27876
27877
27878 SBINPERM=0754
27879
27880 # Check whether --with-sbin-perm was given.
27881 if test "${with_sbin_perm+set}" = set; then
27882   withval=$with_sbin_perm;
27883        if test "x$withval" != "x" ; then
27884           SBINPERM=$withval
27885        fi
27886
27887
27888 fi
27889
27890
27891
27892
27893 SQL_LIB=
27894
27895 db_found=no
27896 { echo "$as_me:$LINENO: checking for PostgreSQL support" >&5
27897 echo $ECHO_N "checking for PostgreSQL support... $ECHO_C" >&6; }
27898
27899 # Check whether --with-postgresql was given.
27900 if test "${with_postgresql+set}" = set; then
27901   withval=$with_postgresql;
27902   if test "$withval" != "no"; then
27903       if test "$db_found" = "yes"; then
27904           { echo "$as_me:$LINENO: result: error" >&5
27905 echo "${ECHO_T}error" >&6; }
27906           { { echo "$as_me:$LINENO: error: \"You can configure for only one database.\"" >&5
27907 echo "$as_me: error: \"You can configure for only one database.\"" >&2;}
27908    { (exit 1); exit 1; }; };
27909       fi
27910       if test "$withval" = "yes"; then
27911           PG_CONFIG=`which pg_config`
27912           if test -n "$PG_CONFIG";then
27913               POSTGRESQL_INCDIR=`"$PG_CONFIG" --includedir`
27914               POSTGRESQL_LIBDIR=`"$PG_CONFIG" --libdir`
27915               POSTGRESQL_BINDIR=`"$PG_CONFIG" --bindir`
27916           elif test -f /usr/local/include/libpq-fe.h; then
27917               POSTGRESQL_INCDIR=/usr/local/include
27918               if test -d /usr/local/lib64; then
27919                  POSTGRESQL_LIBDIR=/usr/local/lib64
27920               else
27921                  POSTGRESQL_LIBDIR=/usr/local/lib
27922               fi
27923               POSTGRESQL_BINDIR=/usr/local/bin
27924           elif test -f /usr/include/libpq-fe.h; then
27925               POSTGRESQL_INCDIR=/usr/include
27926               if test -d /usr/lib64; then
27927                  POSTGRESQL_LIBDIR=/usr/lib64
27928               else
27929                  POSTGRESQL_LIBDIR=/usr/lib
27930               fi
27931               POSTGRESQL_BINDIR=/usr/bin
27932           elif test -f /usr/include/pgsql/libpq-fe.h; then
27933               POSTGRESQL_INCDIR=/usr/include/pgsql
27934               if test -d /usr/lib64/pgsql; then
27935                  POSTGRESQL_LIBDIR=/usr/lib64/pgsql
27936               else
27937                  POSTGRESQL_LIBDIR=/usr/lib/pgsql
27938               fi
27939               POSTGRESQL_BINDIR=/usr/bin
27940           elif test -f /usr/include/postgresql/libpq-fe.h; then
27941               POSTGRESQL_INCDIR=/usr/include/postgresql
27942               if test -d /usr/lib64/postgresql; then
27943                  POSTGRESQL_LIBDIR=/usr/lib64/postgresql
27944               else
27945                  POSTGRESQL_LIBDIR=/usr/lib/postgresql
27946               fi
27947               POSTGRESQL_BINDIR=/usr/bin
27948           else
27949               { echo "$as_me:$LINENO: result: no" >&5
27950 echo "${ECHO_T}no" >&6; }
27951               { { echo "$as_me:$LINENO: error: Unable to find libpq-fe.h in standard locations" >&5
27952 echo "$as_me: error: Unable to find libpq-fe.h in standard locations" >&2;}
27953    { (exit 1); exit 1; }; }
27954           fi
27955       elif test -f $withval/include/libpq-fe.h; then
27956           POSTGRESQL_INCDIR=$withval/include
27957           POSTGRESQL_LIBDIR=$withval/lib
27958           POSTGRESQL_BINDIR=$withval/bin
27959       elif test -f $withval/include/postgresql/libpq-fe.h; then
27960           POSTGRESQL_INCDIR=$withval/include/postgresql
27961      if test -d $withval/lib64; then
27962          POSTGRESQL_LIBDIR=$withval/lib64
27963      else
27964          POSTGRESQL_LIBDIR=$withval/lib
27965      fi
27966           POSTGRESQL_BINDIR=$withval/bin
27967       else
27968           { echo "$as_me:$LINENO: result: no" >&5
27969 echo "${ECHO_T}no" >&6; }
27970           { { echo "$as_me:$LINENO: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&5
27971 echo "$as_me: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&2;}
27972    { (exit 1); exit 1; }; }
27973       fi
27974       POSTGRESQL_LFLAGS="-L$POSTGRESQL_LIBDIR -lpq"
27975       { echo "$as_me:$LINENO: checking for crypt" >&5
27976 echo $ECHO_N "checking for crypt... $ECHO_C" >&6; }
27977 if test "${ac_cv_func_crypt+set}" = set; then
27978   echo $ECHO_N "(cached) $ECHO_C" >&6
27979 else
27980   cat >conftest.$ac_ext <<_ACEOF
27981 /* confdefs.h.  */
27982 _ACEOF
27983 cat confdefs.h >>conftest.$ac_ext
27984 cat >>conftest.$ac_ext <<_ACEOF
27985 /* end confdefs.h.  */
27986 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
27987    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27988 #define crypt innocuous_crypt
27989
27990 /* System header to define __stub macros and hopefully few prototypes,
27991     which can conflict with char crypt (); below.
27992     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27993     <limits.h> exists even on freestanding compilers.  */
27994
27995 #ifdef __STDC__
27996 # include <limits.h>
27997 #else
27998 # include <assert.h>
27999 #endif
28000
28001 #undef crypt
28002
28003 /* Override any GCC internal prototype to avoid an error.
28004    Use char because int might match the return type of a GCC
28005    builtin and then its argument prototype would still apply.  */
28006 #ifdef __cplusplus
28007 extern "C"
28008 #endif
28009 char crypt ();
28010 /* The GNU C library defines this for functions which it implements
28011     to always fail with ENOSYS.  Some functions are actually named
28012     something starting with __ and the normal name is an alias.  */
28013 #if defined __stub_crypt || defined __stub___crypt
28014 choke me
28015 #endif
28016
28017 int
28018 main ()
28019 {
28020 return crypt ();
28021   ;
28022   return 0;
28023 }
28024 _ACEOF
28025 rm -f conftest.$ac_objext conftest$ac_exeext
28026 if { (ac_try="$ac_link"
28027 case "(($ac_try" in
28028   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28029   *) ac_try_echo=$ac_try;;
28030 esac
28031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28032   (eval "$ac_link") 2>conftest.er1
28033   ac_status=$?
28034   grep -v '^ *+' conftest.er1 >conftest.err
28035   rm -f conftest.er1
28036   cat conftest.err >&5
28037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28038   (exit $ac_status); } && {
28039          test -z "$ac_c_werror_flag" ||
28040          test ! -s conftest.err
28041        } && test -s conftest$ac_exeext &&
28042        $as_test_x conftest$ac_exeext; then
28043   ac_cv_func_crypt=yes
28044 else
28045   echo "$as_me: failed program was:" >&5
28046 sed 's/^/| /' conftest.$ac_ext >&5
28047
28048         ac_cv_func_crypt=no
28049 fi
28050
28051 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28052       conftest$ac_exeext conftest.$ac_ext
28053 fi
28054 { echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
28055 echo "${ECHO_T}$ac_cv_func_crypt" >&6; }
28056 if test $ac_cv_func_crypt = yes; then
28057   :
28058 else
28059   { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
28060 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
28061 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
28062   echo $ECHO_N "(cached) $ECHO_C" >&6
28063 else
28064   ac_check_lib_save_LIBS=$LIBS
28065 LIBS="-lcrypt  $LIBS"
28066 cat >conftest.$ac_ext <<_ACEOF
28067 /* confdefs.h.  */
28068 _ACEOF
28069 cat confdefs.h >>conftest.$ac_ext
28070 cat >>conftest.$ac_ext <<_ACEOF
28071 /* end confdefs.h.  */
28072
28073 /* Override any GCC internal prototype to avoid an error.
28074    Use char because int might match the return type of a GCC
28075    builtin and then its argument prototype would still apply.  */
28076 #ifdef __cplusplus
28077 extern "C"
28078 #endif
28079 char crypt ();
28080 int
28081 main ()
28082 {
28083 return crypt ();
28084   ;
28085   return 0;
28086 }
28087 _ACEOF
28088 rm -f conftest.$ac_objext conftest$ac_exeext
28089 if { (ac_try="$ac_link"
28090 case "(($ac_try" in
28091   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28092   *) ac_try_echo=$ac_try;;
28093 esac
28094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28095   (eval "$ac_link") 2>conftest.er1
28096   ac_status=$?
28097   grep -v '^ *+' conftest.er1 >conftest.err
28098   rm -f conftest.er1
28099   cat conftest.err >&5
28100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28101   (exit $ac_status); } && {
28102          test -z "$ac_c_werror_flag" ||
28103          test ! -s conftest.err
28104        } && test -s conftest$ac_exeext &&
28105        $as_test_x conftest$ac_exeext; then
28106   ac_cv_lib_crypt_crypt=yes
28107 else
28108   echo "$as_me: failed program was:" >&5
28109 sed 's/^/| /' conftest.$ac_ext >&5
28110
28111         ac_cv_lib_crypt_crypt=no
28112 fi
28113
28114 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28115       conftest$ac_exeext conftest.$ac_ext
28116 LIBS=$ac_check_lib_save_LIBS
28117 fi
28118 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
28119 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
28120 if test $ac_cv_lib_crypt_crypt = yes; then
28121   POSTGRESQL_LFLAGS="$POSTGRESQL_LFLAGS -lcrypt"
28122 fi
28123
28124 fi
28125
28126       SQL_INCLUDE=-I$POSTGRESQL_INCDIR
28127       SQL_LFLAGS=$POSTGRESQL_LFLAGS
28128       SQL_BINDIR=$POSTGRESQL_BINDIR
28129       SQL_LIB=$POSTGRESQL_LIBDIR/libpq.a
28130
28131       cat >>confdefs.h <<\_ACEOF
28132 #define HAVE_POSTGRESQL 1
28133 _ACEOF
28134
28135       { echo "$as_me:$LINENO: result: yes" >&5
28136 echo "${ECHO_T}yes" >&6; }
28137       db_found=yes
28138       support_postgresql=yes
28139       db_type=PostgreSQL
28140       DB_TYPE=postgresql
28141   else
28142       { echo "$as_me:$LINENO: result: no" >&5
28143 echo "${ECHO_T}no" >&6; }
28144   fi
28145
28146 else
28147
28148   { echo "$as_me:$LINENO: result: no" >&5
28149 echo "${ECHO_T}no" >&6; }
28150
28151 fi
28152
28153
28154
28155
28156
28157
28158
28159
28160 db_found=no
28161 { echo "$as_me:$LINENO: checking for MySQL support" >&5
28162 echo $ECHO_N "checking for MySQL support... $ECHO_C" >&6; }
28163
28164 # Check whether --with-mysql was given.
28165 if test "${with_mysql+set}" = set; then
28166   withval=$with_mysql;
28167   if test "$withval" != "no"; then
28168         if test "$withval" = "yes"; then
28169            if test -f /usr/local/mysql/include/mysql/mysql.h; then
28170                    MYSQL_INCDIR=/usr/local/mysql/include/mysql
28171                    if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
28172                         -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
28173                            MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
28174                    else
28175                            MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
28176                    fi
28177                    MYSQL_BINDIR=/usr/local/mysql/bin
28178            elif test -f /usr/include/mysql/mysql.h; then
28179                    MYSQL_INCDIR=/usr/include/mysql
28180                    if test -f /usr/lib64/mysql/libmysqlclient_r.a \
28181                         -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
28182                            MYSQL_LIBDIR=/usr/lib64/mysql
28183                    elif test -f /usr/lib64/libmysqlclient_r.a \
28184                         -o -f /usr/lib64/libmysqlclient_r.so; then
28185                            MYSQL_LIBDIR=/usr/lib64
28186                    elif test -f /usr/lib/mysql/libmysqlclient_r.a \
28187                           -o -f /usr/lib/mysql/libmysqlclient_r.so; then
28188                            MYSQL_LIBDIR=/usr/lib/mysql
28189                    else
28190                            MYSQL_LIBDIR=/usr/lib
28191                    fi
28192                    MYSQL_BINDIR=/usr/bin
28193            elif test -f /usr/include/mysql.h; then
28194                    MYSQL_INCDIR=/usr/include
28195                    if test -f /usr/lib64/libmysqlclient_r.a \
28196                         -o -f /usr/lib64/libmysqlclient_r.so; then
28197                            MYSQL_LIBDIR=/usr/lib64
28198                    else
28199                            MYSQL_LIBDIR=/usr/lib
28200                    fi
28201                    MYSQL_BINDIR=/usr/bin
28202            elif test -f /usr/local/include/mysql/mysql.h; then
28203                    MYSQL_INCDIR=/usr/local/include/mysql
28204                    if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
28205                         -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
28206                            MYSQL_LIBDIR=/usr/local/lib64/mysql
28207                    else
28208                            MYSQL_LIBDIR=/usr/local/lib/mysql
28209                    fi
28210                    MYSQL_BINDIR=/usr/local/bin
28211            elif test -f /usr/local/include/mysql.h; then
28212                    MYSQL_INCDIR=/usr/local/include
28213                    if test -f /usr/local/lib64/libmysqlclient_r.a \
28214                         -o -f /usr/local/lib64/libmysqlclient_r.so; then
28215                            MYSQL_LIBDIR=/usr/local/lib64
28216                    else
28217                            MYSQL_LIBDIR=/usr/local/lib
28218                    fi
28219                    MYSQL_BINDIR=/usr/local/bin
28220            else
28221               { echo "$as_me:$LINENO: result: no" >&5
28222 echo "${ECHO_T}no" >&6; }
28223               { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
28224 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
28225    { (exit 1); exit 1; }; }
28226            fi
28227         else
28228            if test -f $withval/include/mysql/mysql.h; then
28229               MYSQL_INCDIR=$withval/include/mysql
28230               if test -f $withval/lib64/mysql/libmysqlclient_r.a \
28231                    -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
28232                  MYSQL_LIBDIR=$withval/lib64/mysql
28233               elif test -f $withval/lib64/libmysqlclient_r.a \
28234                    -o -f $withval/lib64/libmysqlclient_r.so; then
28235                  MYSQL_LIBDIR=$withval/lib64
28236               elif test -f $withval/lib/libmysqlclient_r.a \
28237                    -o -f $withval/lib/libmysqlclient_r.so; then
28238                  MYSQL_LIBDIR=$withval/lib
28239               else
28240                  MYSQL_LIBDIR=$withval/lib/mysql
28241               fi
28242               MYSQL_BINDIR=$withval/bin
28243            elif test -f $withval/include/mysql.h; then
28244               MYSQL_INCDIR=$withval/include
28245               if test -f $withval/lib64/libmysqlclient_r.a \
28246                    -o -f $withval/lib64/libmysqlclient_r.so; then
28247                  MYSQL_LIBDIR=$withval/lib64
28248               else
28249                  MYSQL_LIBDIR=$withval/lib
28250               fi
28251               MYSQL_BINDIR=$withval/bin
28252            else
28253               { echo "$as_me:$LINENO: result: no" >&5
28254 echo "${ECHO_T}no" >&6; }
28255               { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
28256 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
28257    { (exit 1); exit 1; }; }
28258            fi
28259         fi
28260     SQL_INCLUDE=-I$MYSQL_INCDIR
28261     if test -f $MYSQL_LIBDIR/libmysqlclient_r.a \
28262          -o -f $MYSQL_LIBDIR/libmysqlclient_r.so; then
28263        SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
28264        cat >>confdefs.h <<\_ACEOF
28265 #define HAVE_THREAD_SAFE_MYSQL 1
28266 _ACEOF
28267
28268     fi
28269     SQL_BINDIR=$MYSQL_BINDIR
28270     SQL_LIB=$MYSQL_LIBDIR/libmysqlclient_r.a
28271
28272     cat >>confdefs.h <<\_ACEOF
28273 #define HAVE_MYSQL 1
28274 _ACEOF
28275
28276     { echo "$as_me:$LINENO: result: yes" >&5
28277 echo "${ECHO_T}yes" >&6; }
28278     db_found=yes
28279     support_mysql=yes
28280     db_type=MySQL
28281     DB_TYPE=mysql
28282
28283   else
28284         { echo "$as_me:$LINENO: result: no" >&5
28285 echo "${ECHO_T}no" >&6; }
28286   fi
28287
28288
28289 fi
28290
28291
28292
28293 # Check whether --with-embedded-mysql was given.
28294 if test "${with_embedded_mysql+set}" = set; then
28295   withval=$with_embedded_mysql;
28296   if test "$withval" != "no"; then
28297         if test "$withval" = "yes"; then
28298                 if test -f /usr/local/mysql/include/mysql/mysql.h; then
28299                         MYSQL_INCDIR=/usr/local/mysql/include/mysql
28300                         if test -d /usr/local/mysql/lib64/mysql; then
28301                                 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
28302                         else
28303                                 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
28304                         fi
28305                         MYSQL_BINDIR=/usr/local/mysql/bin
28306                 elif test -f /usr/include/mysql/mysql.h; then
28307                         MYSQL_INCDIR=/usr/include/mysql
28308                         if test -d /usr/lib64/mysql; then
28309                                 MYSQL_LIBDIR=/usr/lib64/mysql
28310                         else
28311                                 MYSQL_LIBDIR=/usr/lib/mysql
28312                         fi
28313                         MYSQL_BINDIR=/usr/bin
28314                 elif test -f /usr/include/mysql.h; then
28315                         MYSQL_INCDIR=/usr/include
28316                         if test -d /usr/lib64; then
28317                                 MYSQL_LIBDIR=/usr/lib64
28318                         else
28319                                 MYSQL_LIBDIR=/usr/lib
28320                         fi
28321                         MYSQL_BINDIR=/usr/bin
28322                 elif test -f /usr/local/include/mysql/mysql.h; then
28323                         MYSQL_INCDIR=/usr/local/include/mysql
28324                         if test -d /usr/local/lib64/mysql; then
28325                                 MYSQL_LIBDIR=/usr/local/lib64/mysql
28326                         else
28327                                 MYSQL_LIBDIR=/usr/local/lib/mysql
28328                         fi
28329                         MYSQL_BINDIR=/usr/local/bin
28330                 elif test -f /usr/local/include/mysql.h; then
28331                         MYSQL_INCDIR=/usr/local/include
28332                         if test -d /usr/local/lib64; then
28333                                 MYSQL_LIBDIR=/usr/local/lib64
28334                         else
28335                                 MYSQL_LIBDIR=/usr/local/lib
28336                         fi
28337                         MYSQL_BINDIR=/usr/local/bin
28338                 else
28339                    { echo "$as_me:$LINENO: result: no" >&5
28340 echo "${ECHO_T}no" >&6; }
28341                    { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
28342 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
28343    { (exit 1); exit 1; }; }
28344                 fi
28345         else
28346                 if test -f $withval/include/mysql/mysql.h; then
28347                         MYSQL_INCDIR=$withval/include/mysql
28348                         if test -d $withval/lib64/mysql; then
28349                                 MYSQL_LIBDIR=$withval/lib64/mysql
28350                         else
28351                                 MYSQL_LIBDIR=$withval/lib/mysql
28352                         fi
28353                         MYSQL_BINDIR=$withval/bin
28354                 elif test -f $withval/include/mysql.h; then
28355                         MYSQL_INCDIR=$withval/include
28356                         if test -d $withval/lib64; then
28357                                 MYSQL_LIBDIR=$withval/lib64
28358                         else
28359                                 MYSQL_LIBDIR=$withval/lib
28360                         fi
28361                         MYSQL_BINDIR=$withval/bin
28362                 else
28363                    { echo "$as_me:$LINENO: result: no" >&5
28364 echo "${ECHO_T}no" >&6; }
28365                    { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
28366 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
28367    { (exit 1); exit 1; }; }
28368                 fi
28369         fi
28370     SQL_INCLUDE=-I$MYSQL_INCDIR
28371     SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
28372     SQL_BINDIR=$MYSQL_BINDIR
28373     SQL_LIB=$MYSQL_LIBDIR/libmysqld.a
28374
28375     cat >>confdefs.h <<\_ACEOF
28376 #define HAVE_MYSQL 1
28377 _ACEOF
28378
28379     cat >>confdefs.h <<\_ACEOF
28380 #define HAVE_EMBEDDED_MYSQL 1
28381 _ACEOF
28382
28383     { echo "$as_me:$LINENO: result: yes" >&5
28384 echo "${ECHO_T}yes" >&6; }
28385     db_found=yes
28386     support_mysql=yes
28387     db_type=MySQL
28388     DB_TYPE=mysql
28389
28390   else
28391         { echo "$as_me:$LINENO: result: no" >&5
28392 echo "${ECHO_T}no" >&6; }
28393   fi
28394
28395
28396 fi
28397
28398
28399
28400
28401
28402
28403
28404
28405
28406
28407 db_found=no
28408 { echo "$as_me:$LINENO: checking for SQLite3 support" >&5
28409 echo $ECHO_N "checking for SQLite3 support... $ECHO_C" >&6; }
28410
28411 # Check whether --with-sqlite3 was given.
28412 if test "${with_sqlite3+set}" = set; then
28413   withval=$with_sqlite3;
28414   if test "$withval" != "no"; then
28415      if test "$withval" = "yes"; then
28416         if test -f /usr/local/include/sqlite3.h; then
28417            SQLITE_INCDIR=/usr/local/include
28418            if test -d /usr/local/lib64; then
28419               SQLITE_LIBDIR=/usr/local/lib64
28420            else
28421               SQLITE_LIBDIR=/usr/local/lib
28422            fi
28423            SQLITE_BINDIR=/usr/local/bin
28424         elif test -f /usr/include/sqlite3.h; then
28425            SQLITE_INCDIR=/usr/include
28426            if test -d /usr/lib64; then
28427               SQLITE_LIBDIR=/usr/lib64
28428            else
28429               SQLITE_LIBDIR=/usr/lib
28430            fi
28431            SQLITE_BINDIR=/usr/bin
28432         elif test -f $prefix/include/sqlite3.h; then
28433            SQLITE_INCDIR=$prefix/include
28434            if test -d $prefix/lib64; then
28435               SQLITE_LIBDIR=$prefix/lib64
28436            else
28437               SQLITE_LIBDIR=$prefix/lib
28438            fi
28439            SQLITE_BINDIR=$prefix/bin
28440         else
28441            { echo "$as_me:$LINENO: result: no" >&5
28442 echo "${ECHO_T}no" >&6; }
28443            { { echo "$as_me:$LINENO: error: Unable to find sqlite3.h in standard locations" >&5
28444 echo "$as_me: error: Unable to find sqlite3.h in standard locations" >&2;}
28445    { (exit 1); exit 1; }; }
28446         fi
28447      else
28448         if test -f $withval/sqlite3.h; then
28449            SQLITE_INCDIR=$withval
28450            SQLITE_LIBDIR=$withval
28451            SQLITE_BINDIR=$withval
28452         elif test -f $withval/include/sqlite3.h; then
28453            SQLITE_INCDIR=$withval/include
28454            if test -d $withval/lib64; then
28455               SQLITE_LIBDIR=$withval/lib64
28456            else
28457               SQLITE_LIBDIR=$withval/lib
28458            fi
28459            SQLITE_BINDIR=$withval/bin
28460         else
28461            { echo "$as_me:$LINENO: result: no" >&5
28462 echo "${ECHO_T}no" >&6; }
28463            { { echo "$as_me:$LINENO: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&5
28464 echo "$as_me: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&2;}
28465    { (exit 1); exit 1; }; }
28466         fi
28467      fi
28468      SQL_INCLUDE=-I$SQLITE_INCDIR
28469      SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite3"
28470      SQL_BINDIR=$SQLITE_BINDIR
28471      SQL_LIB=$SQLITE_LIBDIR/libsqlite3.a
28472
28473      cat >>confdefs.h <<\_ACEOF
28474 #define HAVE_SQLITE3 1
28475 _ACEOF
28476
28477      { echo "$as_me:$LINENO: result: yes" >&5
28478 echo "${ECHO_T}yes" >&6; }
28479      db_found=yes
28480      support_sqlite3=yes
28481      db_type=SQLite3
28482      DB_TYPE=sqlite3
28483
28484   else
28485      { echo "$as_me:$LINENO: result: no" >&5
28486 echo "${ECHO_T}no" >&6; }
28487   fi
28488
28489 else
28490
28491   { echo "$as_me:$LINENO: result: no" >&5
28492 echo "${ECHO_T}no" >&6; }
28493
28494 fi
28495
28496
28497
28498
28499
28500
28501
28502
28503 db_found=no
28504 { echo "$as_me:$LINENO: checking for SQLite support" >&5
28505 echo $ECHO_N "checking for SQLite support... $ECHO_C" >&6; }
28506
28507 # Check whether --with-sqlite was given.
28508 if test "${with_sqlite+set}" = set; then
28509   withval=$with_sqlite;
28510   if test "$withval" != "no"; then
28511      if test "$withval" = "yes"; then
28512         if test -f /usr/local/include/sqlite.h; then
28513            SQLITE_INCDIR=/usr/local/include
28514            if test -d /usr/local/lib64; then
28515               SQLITE_LIBDIR=/usr/local/lib64
28516            else
28517               SQLITE_LIBDIR=/usr/local/lib
28518            fi
28519            SQLITE_BINDIR=/usr/local/bin
28520         elif test -f /usr/include/sqlite.h; then
28521            SQLITE_INCDIR=/usr/include
28522            if test -d /usr/lib64; then
28523               SQLITE_LIBDIR=/usr/lib64
28524            else
28525               SQLITE_LIBDIR=/usr/lib
28526            fi
28527            SQLITE_BINDIR=/usr/bin
28528         elif test -f $prefix/include/sqlite.h; then
28529            SQLITE_INCDIR=$prefix/include
28530            if test -d $prefix/lib64; then
28531               SQLITE_LIBDIR=$prefix/lib64
28532            else
28533               SQLITE_LIBDIR=$prefix/lib
28534            fi
28535            SQLITE_BINDIR=$prefix/bin
28536         else
28537            { echo "$as_me:$LINENO: result: no" >&5
28538 echo "${ECHO_T}no" >&6; }
28539            { { echo "$as_me:$LINENO: error: Unable to find sqlite.h in standard locations" >&5
28540 echo "$as_me: error: Unable to find sqlite.h in standard locations" >&2;}
28541    { (exit 1); exit 1; }; }
28542         fi
28543      else
28544         if test -f $withval/sqlite.h; then
28545            SQLITE_INCDIR=$withval
28546            SQLITE_LIBDIR=$withval
28547            SQLITE_BINDIR=$withval
28548         elif test -f $withval/include/sqlite.h; then
28549            SQLITE_INCDIR=$withval/include
28550            if test -d $withval/lib64; then
28551               SQLITE_LIBDIR=$withval/lib64
28552            else
28553               SQLITE_LIBDIR=$withval/lib
28554            fi
28555            SQLITE_BINDIR=$withval/bin
28556         else
28557            { echo "$as_me:$LINENO: result: no" >&5
28558 echo "${ECHO_T}no" >&6; }
28559            { { echo "$as_me:$LINENO: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&5
28560 echo "$as_me: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&2;}
28561    { (exit 1); exit 1; }; }
28562         fi
28563      fi
28564      SQL_INCLUDE=-I$SQLITE_INCDIR
28565      SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite"
28566      SQL_BINDIR=$SQLITE_BINDIR
28567      SQL_LIB=$SQLITE_LIBDIR/libsqlite.a
28568
28569      cat >>confdefs.h <<\_ACEOF
28570 #define HAVE_SQLITE 1
28571 _ACEOF
28572
28573      { echo "$as_me:$LINENO: result: yes" >&5
28574 echo "${ECHO_T}yes" >&6; }
28575      db_found=yes
28576      support_sqlite=yes
28577      db_type=SQLite
28578      DB_TYPE=sqlite
28579
28580   else
28581      { echo "$as_me:$LINENO: result: no" >&5
28582 echo "${ECHO_T}no" >&6; }
28583   fi
28584
28585 else
28586
28587   { echo "$as_me:$LINENO: result: no" >&5
28588 echo "${ECHO_T}no" >&6; }
28589
28590 fi
28591
28592
28593
28594
28595
28596
28597
28598
28599 db_found=no
28600 { echo "$as_me:$LINENO: checking for DBI support" >&5
28601 echo $ECHO_N "checking for DBI support... $ECHO_C" >&6; }
28602
28603 # Check whether --with-dbi was given.
28604 if test "${with_dbi+set}" = set; then
28605   withval=$with_dbi;
28606   if test "$withval" != "no"; then
28607      if test "$withval" = "yes"; then
28608         if test -f /usr/local/include/dbi/dbi.h; then
28609            DBI_INCDIR=/usr/local/dbi/include
28610            if test -d /usr/local/lib64; then
28611               DBI_LIBDIR=/usr/local/lib64
28612            else
28613               DBI_LIBDIR=/usr/local/lib
28614            fi
28615            DBI_BINDIR=/usr/local/bin
28616         elif test -f /usr/include/dbi/dbi.h; then
28617            DBI_INCDIR=/usr/include
28618            if test -d /usr/lib64; then
28619               DBI_LIBDIR=/usr/lib64
28620            else
28621               DBI_LIBDIR=/usr/lib
28622            fi
28623            DBI_BINDIR=/usr/bin
28624         elif test -f $prefix/include/dbi/dbi.h; then
28625            DBI_INCDIR=$prefix/include
28626            if test -d $prefix/lib64; then
28627               DBI_LIBDIR=$prefix/lib64
28628            else
28629               DBI_LIBDIR=$prefix/lib
28630            fi
28631            DBI_BINDIR=$prefix/bin
28632         else
28633            { echo "$as_me:$LINENO: result: no" >&5
28634 echo "${ECHO_T}no" >&6; }
28635            { { echo "$as_me:$LINENO: error: Unable to find dbi.h in standard locations" >&5
28636 echo "$as_me: error: Unable to find dbi.h in standard locations" >&2;}
28637    { (exit 1); exit 1; }; }
28638         fi
28639         if test -d /usr/local/lib/dbd; then
28640            DRIVERDIR=/usr/local/lib/dbd
28641            if test -d /usr/local/lib64/dbd; then
28642               DRIVERDIR=/usr/local/lib64/dbd
28643            else
28644               DRIVERDIR=/usr/local/lib/dbd
28645            fi
28646         elif test -d /usr/lib/dbd; then
28647            DRIVERDIR=/usr/lib/dbd
28648            if test -d /usr/lib64/dbd; then
28649               DRIVERDIR=/usr/lib64/dbd
28650            else
28651               DRIVERDIR=/usr/lib/dbd
28652            fi
28653         elif test -d $prefix/lib/dbd; then
28654            if test -d $prefix/lib64/dbd; then
28655               DRIVERDIR=$prefix/lib64/dbd
28656            else
28657               DRIVERDIR=$prefix/lib/dbd
28658            fi
28659         else
28660            { echo "$as_me:$LINENO: result: no" >&5
28661 echo "${ECHO_T}no" >&6; }
28662            { { echo "$as_me:$LINENO: error: Unable to find DBD drivers in standard locations" >&5
28663 echo "$as_me: error: Unable to find DBD drivers in standard locations" >&2;}
28664    { (exit 1); exit 1; }; }
28665         fi
28666      else
28667         if test -f $withval/dbi.h; then
28668            DBI_INCDIR=$withval
28669            DBI_LIBDIR=$withval
28670            DBI_BINDIR=$withval
28671         elif test -f $withval/include/dbi/dbi.h; then
28672            DBI_INCDIR=$withval/include
28673            if test -d $withval/lib64; then
28674               DBI_LIBDIR=$withval/lib64
28675            else
28676               DBI_LIBDIR=$withval/lib
28677            fi
28678            DBI_BINDIR=$withval/bin
28679         else
28680            { echo "$as_me:$LINENO: result: no" >&5
28681 echo "${ECHO_T}no" >&6; }
28682            { { echo "$as_me:$LINENO: error: Invalid DBI directory $withval - unable to find dbi.h under $withval" >&5
28683 echo "$as_me: error: Invalid DBI directory $withval - unable to find dbi.h under $withval" >&2;}
28684    { (exit 1); exit 1; }; }
28685         fi
28686         if test -d $withval/dbd; then
28687            DRIVERDIR=$withval/dbd
28688         elif test -d $withval/lib/; then
28689            if test -d $withval/lib64/dbd; then
28690               DRIVERDIR=$withval/lib64/dbd
28691            else
28692               DRIVERDIR=$withval/lib/dbd
28693            fi
28694         else
28695            { echo "$as_me:$LINENO: result: no" >&5
28696 echo "${ECHO_T}no" >&6; }
28697            { { echo "$as_me:$LINENO: error: Invalid DBD driver directory $withval - unable to find DBD drivers under $withval" >&5
28698 echo "$as_me: error: Invalid DBD driver directory $withval - unable to find DBD drivers under $withval" >&2;}
28699    { (exit 1); exit 1; }; }
28700         fi
28701      fi
28702      SQL_INCLUDE=-I$DBI_INCDIR
28703      SQL_LFLAGS="-L$DBI_LIBDIR -ldbi"
28704      SQL_BINDIR=$DBI_BINDIR
28705      SQL_LIB=$DBI_LIBDIR/libdbi.a
28706      DBI_DBD_DRIVERDIR="-D DBI_DRIVER_DIR=\\\"$DRIVERDIR\\\""
28707
28708
28709 cat >>confdefs.h <<\_ACEOF
28710 #define HAVE_DBI 1
28711 _ACEOF
28712
28713      { echo "$as_me:$LINENO: result: yes" >&5
28714 echo "${ECHO_T}yes" >&6; }
28715      db_found=yes
28716      support_dbi=yes
28717      db_type=DBI
28718      DB_TYPE=dbi
28719      uncomment_dbi=" "
28720
28721   else
28722      { echo "$as_me:$LINENO: result: no" >&5
28723 echo "${ECHO_T}no" >&6; }
28724   fi
28725
28726 else
28727
28728   { echo "$as_me:$LINENO: result: no" >&5
28729 echo "${ECHO_T}no" >&6; }
28730
28731 fi
28732
28733
28734
28735
28736
28737
28738
28739
28740
28741
28742 db_found=no
28743 db_prog=no
28744 { echo "$as_me:$LINENO: checking for DBI drivers support" >&5
28745 echo $ECHO_N "checking for DBI drivers support... $ECHO_C" >&6; }
28746
28747 # Check whether --with-dbi-driver was given.
28748 if test "${with_dbi_driver+set}" = set; then
28749   withval=$with_dbi_driver;
28750   if test "$withval" != "no"; then
28751      case $withval in
28752         "mysql")
28753            db_prog="mysql"
28754            if test -f /usr/local/mysql/bin/mysql; then
28755               SQL_BINDIR=/usr/local/mysql/bin
28756               if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
28757                  -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
28758                  SQL_LIBDIR=/usr/local/mysql/lib64/mysql
28759               else
28760                  SQL_LIBDIR=/usr/local/mysql/lib/mysql
28761               fi
28762            elif test -f /usr/bin/mysql; then
28763               SQL_BINDIR=/usr/bin
28764               if test -f /usr/lib64/mysql/libmysqlclient_r.a \
28765                   -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
28766                   SQL_LIBDIR=/usr/lib64/mysql
28767               elif test -f /usr/lib/mysql/libmysqlclient_r.a \
28768                   -o -f /usr/lib/mysql/libmysqlclient_r.so; then
28769                   SQL_LIBDIR=/usr/lib/mysql
28770               else
28771                   SQL_LIBDIR=/usr/lib
28772               fi
28773            elif test -f /usr/local/bin/mysql; then
28774               SQL_BINDIR=/usr/local/bin
28775               if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
28776                   -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
28777                   SQL_LIBDIR=/usr/local/lib64/mysql
28778               elif test -f /usr/local/lib/mysql/libmysqlclient_r.a \
28779                   -o -f /usr/local/lib/mysql/libmysqlclient_r.so; then
28780                   SQL_LIBDIR=/usr/local/lib/mysql
28781               else
28782                   SQL_LIBDIR=/usr/local/lib
28783               fi
28784            elif test -f $withval/bin/mysql; then
28785               SQL_BINDIR=$withval/bin
28786               if test -f $withval/lib64/mysql/libmysqlclient_r.a \
28787                   -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
28788                   SQL_LIBDIR=$withval/lib64/mysql
28789               elif test -f $withval/lib64/libmysqlclient_r.a \
28790                   -o -f $withval/lib64/libmysqlclient_r.so; then
28791                   SQL_LIBDIR=$withval/lib64
28792               elif test -f $withval/lib/libmysqlclient_r.a \
28793                   -o -f $withval/lib/libmysqlclient_r.so; then
28794                   SQL_LIBDIR=$withval/lib/
28795               else
28796                   SQL_LIBDIR=$withval/lib/mysql
28797               fi
28798            else
28799               { echo "$as_me:$LINENO: result: no" >&5
28800 echo "${ECHO_T}no" >&6; }
28801               { { echo "$as_me:$LINENO: error: Unable to find mysql in standard locations" >&5
28802 echo "$as_me: error: Unable to find mysql in standard locations" >&2;}
28803    { (exit 1); exit 1; }; }
28804            fi
28805            if test -f $SQL_LIBDIR/libmysqlclient_r.so; then
28806               DB_PROG_LIB=$SQL_LIBDIR/libmysqlclient_r.so
28807            else
28808               DB_PROG_LIB=$SQL_LIBDIR/libmysqlclient_r.a
28809            fi
28810         ;;
28811         "postgresql")
28812            db_prog="postgresql"
28813            PG_CONFIG=`which pg_config`
28814            if test -n "$PG_CONFIG"; then
28815               SQL_BINDIR=`"$PG_CONFIG" --bindir`
28816               SQL_LIBDIR=`"$PG_CONFIG" --libdir`
28817            elif test -f /usr/local/bin/psql; then
28818               SQL_BINDIR=/usr/local/bin
28819               if test -d /usr/local/lib64; then
28820                  SQL_LIBDIR=/usr/local/lib64
28821               else
28822                  SQL_LIBDIR=/usr/local/lib
28823               fi
28824            elif test -f /usr/bin/psql; then
28825               SQL_BINDIR=/usr/local/bin
28826               if test -d /usr/lib64/postgresql; then
28827                  SQL_LIBDIR=/usr/lib64/postgresql
28828               elif test -d /usr/lib/postgresql; then
28829                  SQL_LIBDIR=/usr/lib/postgresql
28830               elif test -d /usr/lib64; then
28831                  SQL_LIBDIR=/usr/lib64
28832               else
28833                  SQL_LIBDIR=/usr/lib
28834               fi
28835            elif test -f $withval/bin/psql; then
28836               SQL_BINDIR=$withval/bin
28837               if test -d $withval/lib64; then
28838                  SQL_LIBDIR=$withval/lib64
28839               else
28840                  SQL_LIBDIR=$withval/lib
28841               fi
28842            else
28843               { echo "$as_me:$LINENO: result: no" >&5
28844 echo "${ECHO_T}no" >&6; }
28845               { { echo "$as_me:$LINENO: error: Unable to find psql in standard locations" >&5
28846 echo "$as_me: error: Unable to find psql in standard locations" >&2;}
28847    { (exit 1); exit 1; }; }
28848            fi
28849            if test -f $SQL_LIBDIR/libpq.so; then
28850               DB_PROG_LIB=$SQL_LIBDIR/libpq.so
28851            else
28852               DB_PROG_LIB=$SQL_LIBDIR/libpq.a
28853            fi
28854         ;;
28855         "sqlite")
28856            db_prog="sqlite"
28857            if test -f /usr/local/bin/sqlite; then
28858               SQL_BINDIR=/usr/local/bin
28859               if test -d /usr/local/lib64; then
28860                  SQL_LIBDIR=/usr/local/lib64
28861               else
28862                  SQL_LIBDIR=/usr/local/lib
28863               fi
28864            elif test -f /usr/bin/sqlite; then
28865               SQL_BINDIR=/usr/bin
28866               if test -d /usr/lib64; then
28867                  SQL_LIBDIR=/usr/lib64
28868               else
28869                  SQL_LIBDIR=/usr/lib
28870               fi
28871            elif test -f $withval/bin/sqlite; then
28872               SQL_BINDIR=$withval/bin
28873               if test -d $withval/lib64; then
28874                  SQL_LIBDIR=$withval/lib64
28875               else
28876                  SQL_LIBDIR=$withval/lib
28877               fi
28878            else
28879               { echo "$as_me:$LINENO: result: no" >&5
28880 echo "${ECHO_T}no" >&6; }
28881               { { echo "$as_me:$LINENO: error: Unable to find sqlite in standard locations" >&5
28882 echo "$as_me: error: Unable to find sqlite in standard locations" >&2;}
28883    { (exit 1); exit 1; }; }
28884            fi
28885            if test -f $SQL_LIBDIR/libsqlite.so; then
28886               DB_PROG_LIB=$SQL_LIBDIR/libsqlite.so
28887            else
28888               DB_PROG_LIB=$SQL_LIBDIR/libsqlite.a
28889            fi
28890         ;;
28891         "sqlite3")
28892            db_prog="sqlite3"
28893            if test -f /usr/local/bin/sqlite3; then
28894               SQL_BINDIR=/usr/local/bin
28895               if test -d /usr/local/lib64; then
28896                  SQL_LIBDIR=/usr/local/lib64
28897               else
28898                  SQL_LIBDIR=/usr/local/lib
28899               fi
28900            elif test -f /usr/bin/sqlite3; then
28901               SQL_BINDIR=/usr/bin
28902               if test -d /usr/lib64; then
28903                  SQL_LIBDIR=/usr/lib64
28904               else
28905                  SQL_LIBDIR=/usr/lib
28906               fi
28907            elif test -f $withval/bin/sqlite3; then
28908               SQL_BINDIR=$withval/bin
28909               if test -d $withval/lib64; then
28910                  SQL_LIBDIR=$withval/lib64
28911               else
28912                  SQL_LIBDIR=$withval/lib
28913               fi
28914            else
28915               { echo "$as_me:$LINENO: result: no" >&5
28916 echo "${ECHO_T}no" >&6; }
28917               { { echo "$as_me:$LINENO: error: Unable to find sqlite in standard locations" >&5
28918 echo "$as_me: error: Unable to find sqlite in standard locations" >&2;}
28919    { (exit 1); exit 1; }; }
28920            fi
28921            if test -f $SQL_LIBDIR/libsqlite3.so; then
28922               DB_PROG_LIB=$SQL_LIBDIR/libsqlite3.so
28923            else
28924               DB_PROG_LIB=$SQL_LIBDIR/libsqlite3.a
28925            fi
28926         ;;
28927         *)
28928            { echo "$as_me:$LINENO: result: no" >&5
28929 echo "${ECHO_T}no" >&6; }
28930            { { echo "$as_me:$LINENO: error: Unable to set DBI driver. $withval is not supported" >&5
28931 echo "$as_me: error: Unable to set DBI driver. $withval is not supported" >&2;}
28932    { (exit 1); exit 1; }; }
28933         ;;
28934      esac
28935
28936      { echo "$as_me:$LINENO: result: yes" >&5
28937 echo "${ECHO_T}yes" >&6; }
28938      DB_PROG=$db_prog
28939   else
28940      { echo "$as_me:$LINENO: result: no" >&5
28941 echo "${ECHO_T}no" >&6; }
28942   fi
28943
28944 else
28945
28946   { echo "$as_me:$LINENO: result: no" >&5
28947 echo "${ECHO_T}no" >&6; }
28948
28949 fi
28950
28951
28952
28953
28954
28955
28956
28957
28958
28959
28960 support_batch_insert=no
28961 A=`test -f $SQL_LIB && nm $SQL_LIB | grep pthread_mutex_lock`
28962 pkg=$?
28963 if test $pkg = 0; then
28964    support_batch_insert=yes
28965    # Check whether --enable-batch-insert was given.
28966 if test "${enable_batch_insert+set}" = set; then
28967   enableval=$enable_batch_insert;
28968           if test x$enableval = xno; then
28969              support_batch_insert=no
28970           else
28971              support_batch_insert=yes
28972           fi
28973
28974
28975 fi
28976
28977 fi
28978
28979 if test x$DB_TYPE = xpostgresql; then
28980    A=`test -f $SQL_LIB && nm $SQL_LIB | grep PQputCopyData`
28981    pkg=$?
28982    if test $pkg != 0; then
28983       support_batch_insert=no
28984    fi
28985 fi
28986
28987 if test x$DB_TYPE = xdbi; then
28988    DB_TYPE=$DB_PROG
28989    db_type=$DB_PROG
28990    pkg=1
28991       if test $DB_PROG = postgresql; then
28992       A=`test -f $SQL_LIB && nm $SQL_LIB | grep PQputCopyData`
28993       pkg=$?
28994    fi
28995
28996    if test $DB_PROG = mysql; then
28997       A=`test -f $SQL_LIB && nm $DB_PROG_LIB | grep pthread_mutex_lock`
28998       pkg=$?
28999    fi
29000
29001    if test $DB_PROG = sqlite3; then
29002       A=`test -f $SQL_LIB && nm $DB_PROG_LIB | grep pthread_mutex_lock`
29003       pkg=$?
29004    fi
29005
29006    if test $pkg = 0; then
29007       # Check whether --enable-batch-insert was given.
29008 if test "${enable_batch_insert+set}" = set; then
29009   enableval=$enable_batch_insert;
29010              if test x$enableval = xno; then
29011                 support_batch_insert=no
29012              else
29013                 support_batch_insert=yes
29014              fi
29015
29016
29017 fi
29018
29019    fi
29020 else
29021       uncomment_dbi="#"
29022 fi
29023
29024
29025
29026 if test $support_batch_insert = yes ; then
29027
29028 cat >>confdefs.h <<\_ACEOF
29029 #define HAVE_BATCH_FILE_INSERT 1
29030 _ACEOF
29031
29032 fi
29033
29034 cat >>confdefs.h <<\_ACEOF
29035 #define PROTOTYPES 1
29036 _ACEOF
29037
29038
29039 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
29040    if test -z "$CCOPTS"; then
29041       CCOPTS='-g -O2 -Wall'
29042    fi
29043    CFLAGS="$CCOPTS"
29044 fi
29045
29046
29047
29048 largefile_support="no"
29049
29050    # Check whether --enable-largefile was given.
29051 if test "${enable_largefile+set}" = set; then
29052   enableval=$enable_largefile;
29053 fi
29054
29055    if test "$enable_largefile" != no; then
29056      if test -n "$ac_tool_prefix"; then
29057   # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
29058 set dummy ${ac_tool_prefix}getconf; ac_word=$2
29059 { echo "$as_me:$LINENO: checking for $ac_word" >&5
29060 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
29061 if test "${ac_cv_prog_GETCONF+set}" = set; then
29062   echo $ECHO_N "(cached) $ECHO_C" >&6
29063 else
29064   if test -n "$GETCONF"; then
29065   ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
29066 else
29067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29068 for as_dir in $PATH
29069 do
29070   IFS=$as_save_IFS
29071   test -z "$as_dir" && as_dir=.
29072   for ac_exec_ext in '' $ac_executable_extensions; do
29073   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29074     ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
29075     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29076     break 2
29077   fi
29078 done
29079 done
29080 IFS=$as_save_IFS
29081
29082 fi
29083 fi
29084 GETCONF=$ac_cv_prog_GETCONF
29085 if test -n "$GETCONF"; then
29086   { echo "$as_me:$LINENO: result: $GETCONF" >&5
29087 echo "${ECHO_T}$GETCONF" >&6; }
29088 else
29089   { echo "$as_me:$LINENO: result: no" >&5
29090 echo "${ECHO_T}no" >&6; }
29091 fi
29092
29093
29094 fi
29095 if test -z "$ac_cv_prog_GETCONF"; then
29096   ac_ct_GETCONF=$GETCONF
29097   # Extract the first word of "getconf", so it can be a program name with args.
29098 set dummy getconf; ac_word=$2
29099 { echo "$as_me:$LINENO: checking for $ac_word" >&5
29100 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
29101 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
29102   echo $ECHO_N "(cached) $ECHO_C" >&6
29103 else
29104   if test -n "$ac_ct_GETCONF"; then
29105   ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
29106 else
29107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29108 for as_dir in $PATH
29109 do
29110   IFS=$as_save_IFS
29111   test -z "$as_dir" && as_dir=.
29112   for ac_exec_ext in '' $ac_executable_extensions; do
29113   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29114     ac_cv_prog_ac_ct_GETCONF="getconf"
29115     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29116     break 2
29117   fi
29118 done
29119 done
29120 IFS=$as_save_IFS
29121
29122 fi
29123 fi
29124 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
29125 if test -n "$ac_ct_GETCONF"; then
29126   { echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
29127 echo "${ECHO_T}$ac_ct_GETCONF" >&6; }
29128 else
29129   { echo "$as_me:$LINENO: result: no" >&5
29130 echo "${ECHO_T}no" >&6; }
29131 fi
29132
29133   if test "x$ac_ct_GETCONF" = x; then
29134     GETCONF=""
29135   else
29136     case $cross_compiling:$ac_tool_warned in
29137 yes:)
29138 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
29139 whose name does not start with the host triplet.  If you think this
29140 configuration is useful to you, please write to autoconf@gnu.org." >&5
29141 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
29142 whose name does not start with the host triplet.  If you think this
29143 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
29144 ac_tool_warned=yes ;;
29145 esac
29146     GETCONF=$ac_ct_GETCONF
29147   fi
29148 else
29149   GETCONF="$ac_cv_prog_GETCONF"
29150 fi
29151
29152      { echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
29153 echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" >&6; }
29154 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
29155   echo $ECHO_N "(cached) $ECHO_C" >&6
29156 else
29157   ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
29158         ac_cv_sys_largefile_CFLAGS=no
29159         case "$host_os" in
29160            # IRIX 6.2 and later require cc -n32.
29161            irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
29162              if test "$GCC" != yes; then
29163                ac_cv_sys_largefile_CFLAGS=-n32
29164              fi
29165              ac_save_CC="$CC"
29166              CC="$CC $ac_cv_sys_largefile_CFLAGS"
29167              cat >conftest.$ac_ext <<_ACEOF
29168 /* confdefs.h.  */
29169 _ACEOF
29170 cat confdefs.h >>conftest.$ac_ext
29171 cat >>conftest.$ac_ext <<_ACEOF
29172 /* end confdefs.h.  */
29173
29174 int
29175 main ()
29176 {
29177
29178   ;
29179   return 0;
29180 }
29181 _ACEOF
29182 rm -f conftest.$ac_objext conftest$ac_exeext
29183 if { (ac_try="$ac_link"
29184 case "(($ac_try" in
29185   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29186   *) ac_try_echo=$ac_try;;
29187 esac
29188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29189   (eval "$ac_link") 2>conftest.er1
29190   ac_status=$?
29191   grep -v '^ *+' conftest.er1 >conftest.err
29192   rm -f conftest.er1
29193   cat conftest.err >&5
29194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29195   (exit $ac_status); } && {
29196          test -z "$ac_c_werror_flag" ||
29197          test ! -s conftest.err
29198        } && test -s conftest$ac_exeext &&
29199        $as_test_x conftest$ac_exeext; then
29200   :
29201 else
29202   echo "$as_me: failed program was:" >&5
29203 sed 's/^/| /' conftest.$ac_ext >&5
29204
29205         ac_cv_sys_largefile_CFLAGS=no
29206 fi
29207
29208 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29209       conftest$ac_exeext conftest.$ac_ext
29210              CC="$ac_save_CC"
29211            esac
29212       }
29213 fi
29214 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
29215 echo "${ECHO_T}$ac_cv_sys_largefile_CFLAGS" >&6; }
29216      { echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
29217 echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" >&6; }
29218 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
29219   echo $ECHO_N "(cached) $ECHO_C" >&6
29220 else
29221   ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
29222         ac_cv_sys_largefile_LDFLAGS=no
29223
29224       }
29225 fi
29226 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
29227 echo "${ECHO_T}$ac_cv_sys_largefile_LDFLAGS" >&6; }
29228      { echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
29229 echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" >&6; }
29230 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
29231   echo $ECHO_N "(cached) $ECHO_C" >&6
29232 else
29233   ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
29234         ac_cv_sys_largefile_LIBS=no
29235
29236       }
29237 fi
29238 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
29239 echo "${ECHO_T}$ac_cv_sys_largefile_LIBS" >&6; }
29240
29241      for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
29242        case "$ac_flag" in
29243        no) ;;
29244        -D_FILE_OFFSET_BITS=*) ;;
29245        -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
29246        -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
29247        -D?* | -I?*)
29248          case "$ac_flag" in
29249    no) ;;
29250    ?*)
29251      case "$CPPFLAGS" in
29252      '') CPPFLAGS="$ac_flag" ;;
29253      *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
29254      esac ;;
29255    esac ;;
29256        *)
29257          case "$ac_flag" in
29258    no) ;;
29259    ?*)
29260      case "$CFLAGS" in
29261      '') CFLAGS="$ac_flag" ;;
29262      *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
29263      esac ;;
29264    esac ;;
29265        esac
29266      done
29267      case "$ac_cv_sys_largefile_LDFLAGS" in
29268    no) ;;
29269    ?*)
29270      case "$LDFLAGS" in
29271      '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
29272      *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
29273      esac ;;
29274    esac
29275      case "$ac_cv_sys_largefile_LIBS" in
29276    no) ;;
29277    ?*)
29278      case "$LIBS" in
29279      '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
29280      *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
29281      esac ;;
29282    esac
29283      { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
29284 echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" >&6; }
29285 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
29286   echo $ECHO_N "(cached) $ECHO_C" >&6
29287 else
29288   ac_cv_sys_file_offset_bits=no
29289       ac_cv_sys_file_offset_bits=64
29290       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
29291         case "$ac_flag" in
29292         -D_FILE_OFFSET_BITS)
29293           ac_cv_sys_file_offset_bits=1 ;;
29294         -D_FILE_OFFSET_BITS=*)
29295           ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
29296         esac
29297       done
29298
29299 fi
29300 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
29301 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
29302    if test "$ac_cv_sys_file_offset_bits" != no; then
29303
29304 cat >>confdefs.h <<_ACEOF
29305 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
29306 _ACEOF
29307
29308    fi
29309      { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
29310 echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" >&6; }
29311 if test "${ac_cv_sys_largefile_source+set}" = set; then
29312   echo $ECHO_N "(cached) $ECHO_C" >&6
29313 else
29314   ac_cv_sys_largefile_source=no
29315       ac_cv_sys_largefile_source=1
29316       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
29317         case "$ac_flag" in
29318         -D_LARGEFILE_SOURCE)
29319           ac_cv_sys_largefile_source=1 ;;
29320         -D_LARGEFILE_SOURCE=*)
29321           ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
29322         esac
29323       done
29324
29325 fi
29326 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
29327 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
29328    if test "$ac_cv_sys_largefile_source" != no; then
29329
29330 cat >>confdefs.h <<_ACEOF
29331 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
29332 _ACEOF
29333
29334    fi
29335      { echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
29336 echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" >&6; }
29337 if test "${ac_cv_sys_large_files+set}" = set; then
29338   echo $ECHO_N "(cached) $ECHO_C" >&6
29339 else
29340   ac_cv_sys_large_files=no
29341       ac_cv_sys_large_files=1
29342       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
29343         case "$ac_flag" in
29344         -D_LARGE_FILES)
29345           ac_cv_sys_large_files=1 ;;
29346         -D_LARGE_FILES=*)
29347           ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
29348         esac
29349       done
29350
29351 fi
29352 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
29353 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
29354    if test "$ac_cv_sys_large_files" != no; then
29355
29356 cat >>confdefs.h <<_ACEOF
29357 #define _LARGE_FILES $ac_cv_sys_large_files
29358 _ACEOF
29359
29360    fi
29361    fi
29362
29363
29364 { echo "$as_me:$LINENO: checking for X" >&5
29365 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
29366
29367
29368 # Check whether --with-x was given.
29369 if test "${with_x+set}" = set; then
29370   withval=$with_x;
29371 fi
29372
29373 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
29374 if test "x$with_x" = xno; then
29375   # The user explicitly disabled X.
29376   have_x=disabled
29377 else
29378   case $x_includes,$x_libraries in #(
29379     *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
29380 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
29381    { (exit 1); exit 1; }; };; #(
29382     *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
29383   echo $ECHO_N "(cached) $ECHO_C" >&6
29384 else
29385   # One or both of the vars are not set, and there is no cached value.
29386 ac_x_includes=no ac_x_libraries=no
29387 rm -f -r conftest.dir
29388 if mkdir conftest.dir; then
29389   cd conftest.dir
29390   cat >Imakefile <<'_ACEOF'
29391 incroot:
29392         @echo incroot='${INCROOT}'
29393 usrlibdir:
29394         @echo usrlibdir='${USRLIBDIR}'
29395 libdir:
29396         @echo libdir='${LIBDIR}'
29397 _ACEOF
29398   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
29399     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
29400     for ac_var in incroot usrlibdir libdir; do
29401       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
29402     done
29403     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
29404     for ac_extension in a so sl; do
29405       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
29406          test -f "$ac_im_libdir/libX11.$ac_extension"; then
29407         ac_im_usrlibdir=$ac_im_libdir; break
29408       fi
29409     done
29410     # Screen out bogus values from the imake configuration.  They are
29411     # bogus both because they are the default anyway, and because
29412     # using them would break gcc on systems where it needs fixed includes.
29413     case $ac_im_incroot in
29414         /usr/include) ac_x_includes= ;;
29415         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
29416     esac
29417     case $ac_im_usrlibdir in
29418         /usr/lib | /lib) ;;
29419         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
29420     esac
29421   fi
29422   cd ..
29423   rm -f -r conftest.dir
29424 fi
29425
29426 # Standard set of common directories for X headers.
29427 # Check X11 before X11Rn because it is often a symlink to the current release.
29428 ac_x_header_dirs='
29429 /usr/X11/include
29430 /usr/X11R6/include
29431 /usr/X11R5/include
29432 /usr/X11R4/include
29433
29434 /usr/include/X11
29435 /usr/include/X11R6
29436 /usr/include/X11R5
29437 /usr/include/X11R4
29438
29439 /usr/local/X11/include
29440 /usr/local/X11R6/include
29441 /usr/local/X11R5/include
29442 /usr/local/X11R4/include
29443
29444 /usr/local/include/X11
29445 /usr/local/include/X11R6
29446 /usr/local/include/X11R5
29447 /usr/local/include/X11R4
29448
29449 /usr/X386/include
29450 /usr/x386/include
29451 /usr/XFree86/include/X11
29452
29453 /usr/include
29454 /usr/local/include
29455 /usr/unsupported/include
29456 /usr/athena/include
29457 /usr/local/x11r5/include
29458 /usr/lpp/Xamples/include
29459
29460 /usr/openwin/include
29461 /usr/openwin/share/include'
29462
29463 if test "$ac_x_includes" = no; then
29464   # Guess where to find include files, by looking for Xlib.h.
29465   # First, try using that file with no special directory specified.
29466   cat >conftest.$ac_ext <<_ACEOF
29467 /* confdefs.h.  */
29468 _ACEOF
29469 cat confdefs.h >>conftest.$ac_ext
29470 cat >>conftest.$ac_ext <<_ACEOF
29471 /* end confdefs.h.  */
29472 #include <X11/Xlib.h>
29473 _ACEOF
29474 if { (ac_try="$ac_cpp conftest.$ac_ext"
29475 case "(($ac_try" in
29476   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29477   *) ac_try_echo=$ac_try;;
29478 esac
29479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29480   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29481   ac_status=$?
29482   grep -v '^ *+' conftest.er1 >conftest.err
29483   rm -f conftest.er1
29484   cat conftest.err >&5
29485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29486   (exit $ac_status); } >/dev/null && {
29487          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29488          test ! -s conftest.err
29489        }; then
29490   # We can compile using X headers with no special include directory.
29491 ac_x_includes=
29492 else
29493   echo "$as_me: failed program was:" >&5
29494 sed 's/^/| /' conftest.$ac_ext >&5
29495
29496   for ac_dir in $ac_x_header_dirs; do
29497   if test -r "$ac_dir/X11/Xlib.h"; then
29498     ac_x_includes=$ac_dir
29499     break
29500   fi
29501 done
29502 fi
29503
29504 rm -f conftest.err conftest.$ac_ext
29505 fi # $ac_x_includes = no
29506
29507 if test "$ac_x_libraries" = no; then
29508   # Check for the libraries.
29509   # See if we find them without any special options.
29510   # Don't add to $LIBS permanently.
29511   ac_save_LIBS=$LIBS
29512   LIBS="-lX11 $LIBS"
29513   cat >conftest.$ac_ext <<_ACEOF
29514 /* confdefs.h.  */
29515 _ACEOF
29516 cat confdefs.h >>conftest.$ac_ext
29517 cat >>conftest.$ac_ext <<_ACEOF
29518 /* end confdefs.h.  */
29519 #include <X11/Xlib.h>
29520 int
29521 main ()
29522 {
29523 XrmInitialize ()
29524   ;
29525   return 0;
29526 }
29527 _ACEOF
29528 rm -f conftest.$ac_objext conftest$ac_exeext
29529 if { (ac_try="$ac_link"
29530 case "(($ac_try" in
29531   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29532   *) ac_try_echo=$ac_try;;
29533 esac
29534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29535   (eval "$ac_link") 2>conftest.er1
29536   ac_status=$?
29537   grep -v '^ *+' conftest.er1 >conftest.err
29538   rm -f conftest.er1
29539   cat conftest.err >&5
29540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29541   (exit $ac_status); } && {
29542          test -z "$ac_c_werror_flag" ||
29543          test ! -s conftest.err
29544        } && test -s conftest$ac_exeext &&
29545        $as_test_x conftest$ac_exeext; then
29546   LIBS=$ac_save_LIBS
29547 # We can link X programs with no special library path.
29548 ac_x_libraries=
29549 else
29550   echo "$as_me: failed program was:" >&5
29551 sed 's/^/| /' conftest.$ac_ext >&5
29552
29553         LIBS=$ac_save_LIBS
29554 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
29555 do
29556   # Don't even attempt the hair of trying to link an X program!
29557   for ac_extension in a so sl; do
29558     if test -r "$ac_dir/libX11.$ac_extension"; then
29559       ac_x_libraries=$ac_dir
29560       break 2
29561     fi
29562   done
29563 done
29564 fi
29565
29566 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29567       conftest$ac_exeext conftest.$ac_ext
29568 fi # $ac_x_libraries = no
29569
29570 case $ac_x_includes,$ac_x_libraries in #(
29571   no,* | *,no | *\'*)
29572     # Didn't find X, or a directory has "'" in its name.
29573     ac_cv_have_x="have_x=no";; #(
29574   *)
29575     # Record where we found X for the cache.
29576     ac_cv_have_x="have_x=yes\
29577         ac_x_includes='$ac_x_includes'\
29578         ac_x_libraries='$ac_x_libraries'"
29579 esac
29580 fi
29581 ;; #(
29582     *) have_x=yes;;
29583   esac
29584   eval "$ac_cv_have_x"
29585 fi # $with_x != no
29586
29587 if test "$have_x" != yes; then
29588   { echo "$as_me:$LINENO: result: $have_x" >&5
29589 echo "${ECHO_T}$have_x" >&6; }
29590   no_x=yes
29591 else
29592   # If each of the values was on the command line, it overrides each guess.
29593   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
29594   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
29595   # Update the cache value to reflect the command line values.
29596   ac_cv_have_x="have_x=yes\
29597         ac_x_includes='$x_includes'\
29598         ac_x_libraries='$x_libraries'"
29599   { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
29600 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
29601 fi
29602
29603 if test "$no_x" = yes; then
29604   # Not all programs may use this symbol, but it does not hurt to define it.
29605
29606 cat >>confdefs.h <<\_ACEOF
29607 #define X_DISPLAY_MISSING 1
29608 _ACEOF
29609
29610   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
29611 else
29612   if test -n "$x_includes"; then
29613     X_CFLAGS="$X_CFLAGS -I$x_includes"
29614   fi
29615
29616   # It would also be nice to do this for all -L options, not just this one.
29617   if test -n "$x_libraries"; then
29618     X_LIBS="$X_LIBS -L$x_libraries"
29619     # For Solaris; some versions of Sun CC require a space after -R and
29620     # others require no space.  Words are not sufficient . . . .
29621     { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
29622 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
29623     ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
29624     ac_xsave_c_werror_flag=$ac_c_werror_flag
29625     ac_c_werror_flag=yes
29626     cat >conftest.$ac_ext <<_ACEOF
29627 /* confdefs.h.  */
29628 _ACEOF
29629 cat confdefs.h >>conftest.$ac_ext
29630 cat >>conftest.$ac_ext <<_ACEOF
29631 /* end confdefs.h.  */
29632
29633 int
29634 main ()
29635 {
29636
29637   ;
29638   return 0;
29639 }
29640 _ACEOF
29641 rm -f conftest.$ac_objext conftest$ac_exeext
29642 if { (ac_try="$ac_link"
29643 case "(($ac_try" in
29644   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29645   *) ac_try_echo=$ac_try;;
29646 esac
29647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29648   (eval "$ac_link") 2>conftest.er1
29649   ac_status=$?
29650   grep -v '^ *+' conftest.er1 >conftest.err
29651   rm -f conftest.er1
29652   cat conftest.err >&5
29653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29654   (exit $ac_status); } && {
29655          test -z "$ac_c_werror_flag" ||
29656          test ! -s conftest.err
29657        } && test -s conftest$ac_exeext &&
29658        $as_test_x conftest$ac_exeext; then
29659   { echo "$as_me:$LINENO: result: no" >&5
29660 echo "${ECHO_T}no" >&6; }
29661        X_LIBS="$X_LIBS -R$x_libraries"
29662 else
29663   echo "$as_me: failed program was:" >&5
29664 sed 's/^/| /' conftest.$ac_ext >&5
29665
29666         LIBS="$ac_xsave_LIBS -R $x_libraries"
29667        cat >conftest.$ac_ext <<_ACEOF
29668 /* confdefs.h.  */
29669 _ACEOF
29670 cat confdefs.h >>conftest.$ac_ext
29671 cat >>conftest.$ac_ext <<_ACEOF
29672 /* end confdefs.h.  */
29673
29674 int
29675 main ()
29676 {
29677
29678   ;
29679   return 0;
29680 }
29681 _ACEOF
29682 rm -f conftest.$ac_objext conftest$ac_exeext
29683 if { (ac_try="$ac_link"
29684 case "(($ac_try" in
29685   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29686   *) ac_try_echo=$ac_try;;
29687 esac
29688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29689   (eval "$ac_link") 2>conftest.er1
29690   ac_status=$?
29691   grep -v '^ *+' conftest.er1 >conftest.err
29692   rm -f conftest.er1
29693   cat conftest.err >&5
29694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29695   (exit $ac_status); } && {
29696          test -z "$ac_c_werror_flag" ||
29697          test ! -s conftest.err
29698        } && test -s conftest$ac_exeext &&
29699        $as_test_x conftest$ac_exeext; then
29700   { echo "$as_me:$LINENO: result: yes" >&5
29701 echo "${ECHO_T}yes" >&6; }
29702           X_LIBS="$X_LIBS -R $x_libraries"
29703 else
29704   echo "$as_me: failed program was:" >&5
29705 sed 's/^/| /' conftest.$ac_ext >&5
29706
29707         { echo "$as_me:$LINENO: result: neither works" >&5
29708 echo "${ECHO_T}neither works" >&6; }
29709 fi
29710
29711 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29712       conftest$ac_exeext conftest.$ac_ext
29713 fi
29714
29715 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29716       conftest$ac_exeext conftest.$ac_ext
29717     ac_c_werror_flag=$ac_xsave_c_werror_flag
29718     LIBS=$ac_xsave_LIBS
29719   fi
29720
29721   # Check for system-dependent libraries X programs must link with.
29722   # Do this before checking for the system-independent R6 libraries
29723   # (-lICE), since we may need -lsocket or whatever for X linking.
29724
29725   if test "$ISC" = yes; then
29726     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
29727   else
29728     # Martyn Johnson says this is needed for Ultrix, if the X
29729     # libraries were built with DECnet support.  And Karl Berry says
29730     # the Alpha needs dnet_stub (dnet does not exist).
29731     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
29732     cat >conftest.$ac_ext <<_ACEOF
29733 /* confdefs.h.  */
29734 _ACEOF
29735 cat confdefs.h >>conftest.$ac_ext
29736 cat >>conftest.$ac_ext <<_ACEOF
29737 /* end confdefs.h.  */
29738
29739 /* Override any GCC internal prototype to avoid an error.
29740    Use char because int might match the return type of a GCC
29741    builtin and then its argument prototype would still apply.  */
29742 #ifdef __cplusplus
29743 extern "C"
29744 #endif
29745 char XOpenDisplay ();
29746 int
29747 main ()
29748 {
29749 return XOpenDisplay ();
29750   ;
29751   return 0;
29752 }
29753 _ACEOF
29754 rm -f conftest.$ac_objext conftest$ac_exeext
29755 if { (ac_try="$ac_link"
29756 case "(($ac_try" in
29757   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29758   *) ac_try_echo=$ac_try;;
29759 esac
29760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29761   (eval "$ac_link") 2>conftest.er1
29762   ac_status=$?
29763   grep -v '^ *+' conftest.er1 >conftest.err
29764   rm -f conftest.er1
29765   cat conftest.err >&5
29766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29767   (exit $ac_status); } && {
29768          test -z "$ac_c_werror_flag" ||
29769          test ! -s conftest.err
29770        } && test -s conftest$ac_exeext &&
29771        $as_test_x conftest$ac_exeext; then
29772   :
29773 else
29774   echo "$as_me: failed program was:" >&5
29775 sed 's/^/| /' conftest.$ac_ext >&5
29776
29777         { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
29778 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
29779 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
29780   echo $ECHO_N "(cached) $ECHO_C" >&6
29781 else
29782   ac_check_lib_save_LIBS=$LIBS
29783 LIBS="-ldnet  $LIBS"
29784 cat >conftest.$ac_ext <<_ACEOF
29785 /* confdefs.h.  */
29786 _ACEOF
29787 cat confdefs.h >>conftest.$ac_ext
29788 cat >>conftest.$ac_ext <<_ACEOF
29789 /* end confdefs.h.  */
29790
29791 /* Override any GCC internal prototype to avoid an error.
29792    Use char because int might match the return type of a GCC
29793    builtin and then its argument prototype would still apply.  */
29794 #ifdef __cplusplus
29795 extern "C"
29796 #endif
29797 char dnet_ntoa ();
29798 int
29799 main ()
29800 {
29801 return dnet_ntoa ();
29802   ;
29803   return 0;
29804 }
29805 _ACEOF
29806 rm -f conftest.$ac_objext conftest$ac_exeext
29807 if { (ac_try="$ac_link"
29808 case "(($ac_try" in
29809   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29810   *) ac_try_echo=$ac_try;;
29811 esac
29812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29813   (eval "$ac_link") 2>conftest.er1
29814   ac_status=$?
29815   grep -v '^ *+' conftest.er1 >conftest.err
29816   rm -f conftest.er1
29817   cat conftest.err >&5
29818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29819   (exit $ac_status); } && {
29820          test -z "$ac_c_werror_flag" ||
29821          test ! -s conftest.err
29822        } && test -s conftest$ac_exeext &&
29823        $as_test_x conftest$ac_exeext; then
29824   ac_cv_lib_dnet_dnet_ntoa=yes
29825 else
29826   echo "$as_me: failed program was:" >&5
29827 sed 's/^/| /' conftest.$ac_ext >&5
29828
29829         ac_cv_lib_dnet_dnet_ntoa=no
29830 fi
29831
29832 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29833       conftest$ac_exeext conftest.$ac_ext
29834 LIBS=$ac_check_lib_save_LIBS
29835 fi
29836 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
29837 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
29838 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
29839   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
29840 fi
29841
29842     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
29843       { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
29844 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
29845 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
29846   echo $ECHO_N "(cached) $ECHO_C" >&6
29847 else
29848   ac_check_lib_save_LIBS=$LIBS
29849 LIBS="-ldnet_stub  $LIBS"
29850 cat >conftest.$ac_ext <<_ACEOF
29851 /* confdefs.h.  */
29852 _ACEOF
29853 cat confdefs.h >>conftest.$ac_ext
29854 cat >>conftest.$ac_ext <<_ACEOF
29855 /* end confdefs.h.  */
29856
29857 /* Override any GCC internal prototype to avoid an error.
29858    Use char because int might match the return type of a GCC
29859    builtin and then its argument prototype would still apply.  */
29860 #ifdef __cplusplus
29861 extern "C"
29862 #endif
29863 char dnet_ntoa ();
29864 int
29865 main ()
29866 {
29867 return dnet_ntoa ();
29868   ;
29869   return 0;
29870 }
29871 _ACEOF
29872 rm -f conftest.$ac_objext conftest$ac_exeext
29873 if { (ac_try="$ac_link"
29874 case "(($ac_try" in
29875   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29876   *) ac_try_echo=$ac_try;;
29877 esac
29878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29879   (eval "$ac_link") 2>conftest.er1
29880   ac_status=$?
29881   grep -v '^ *+' conftest.er1 >conftest.err
29882   rm -f conftest.er1
29883   cat conftest.err >&5
29884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29885   (exit $ac_status); } && {
29886          test -z "$ac_c_werror_flag" ||
29887          test ! -s conftest.err
29888        } && test -s conftest$ac_exeext &&
29889        $as_test_x conftest$ac_exeext; then
29890   ac_cv_lib_dnet_stub_dnet_ntoa=yes
29891 else
29892   echo "$as_me: failed program was:" >&5
29893 sed 's/^/| /' conftest.$ac_ext >&5
29894
29895         ac_cv_lib_dnet_stub_dnet_ntoa=no
29896 fi
29897
29898 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29899       conftest$ac_exeext conftest.$ac_ext
29900 LIBS=$ac_check_lib_save_LIBS
29901 fi
29902 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
29903 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
29904 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
29905   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
29906 fi
29907
29908     fi
29909 fi
29910
29911 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29912       conftest$ac_exeext conftest.$ac_ext
29913     LIBS="$ac_xsave_LIBS"
29914
29915     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
29916     # to get the SysV transport functions.
29917     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
29918     # needs -lnsl.
29919     # The nsl library prevents programs from opening the X display
29920     # on Irix 5.2, according to T.E. Dickey.
29921     # The functions gethostbyname, getservbyname, and inet_addr are
29922     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
29923     { echo "$as_me:$LINENO: checking for gethostbyname" >&5
29924 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
29925 if test "${ac_cv_func_gethostbyname+set}" = set; then
29926   echo $ECHO_N "(cached) $ECHO_C" >&6
29927 else
29928   cat >conftest.$ac_ext <<_ACEOF
29929 /* confdefs.h.  */
29930 _ACEOF
29931 cat confdefs.h >>conftest.$ac_ext
29932 cat >>conftest.$ac_ext <<_ACEOF
29933 /* end confdefs.h.  */
29934 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
29935    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29936 #define gethostbyname innocuous_gethostbyname
29937
29938 /* System header to define __stub macros and hopefully few prototypes,
29939     which can conflict with char gethostbyname (); below.
29940     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29941     <limits.h> exists even on freestanding compilers.  */
29942
29943 #ifdef __STDC__
29944 # include <limits.h>
29945 #else
29946 # include <assert.h>
29947 #endif
29948
29949 #undef gethostbyname
29950
29951 /* Override any GCC internal prototype to avoid an error.
29952    Use char because int might match the return type of a GCC
29953    builtin and then its argument prototype would still apply.  */
29954 #ifdef __cplusplus
29955 extern "C"
29956 #endif
29957 char gethostbyname ();
29958 /* The GNU C library defines this for functions which it implements
29959     to always fail with ENOSYS.  Some functions are actually named
29960     something starting with __ and the normal name is an alias.  */
29961 #if defined __stub_gethostbyname || defined __stub___gethostbyname
29962 choke me
29963 #endif
29964
29965 int
29966 main ()
29967 {
29968 return gethostbyname ();
29969   ;
29970   return 0;
29971 }
29972 _ACEOF
29973 rm -f conftest.$ac_objext conftest$ac_exeext
29974 if { (ac_try="$ac_link"
29975 case "(($ac_try" in
29976   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29977   *) ac_try_echo=$ac_try;;
29978 esac
29979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29980   (eval "$ac_link") 2>conftest.er1
29981   ac_status=$?
29982   grep -v '^ *+' conftest.er1 >conftest.err
29983   rm -f conftest.er1
29984   cat conftest.err >&5
29985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29986   (exit $ac_status); } && {
29987          test -z "$ac_c_werror_flag" ||
29988          test ! -s conftest.err
29989        } && test -s conftest$ac_exeext &&
29990        $as_test_x conftest$ac_exeext; then
29991   ac_cv_func_gethostbyname=yes
29992 else
29993   echo "$as_me: failed program was:" >&5
29994 sed 's/^/| /' conftest.$ac_ext >&5
29995
29996         ac_cv_func_gethostbyname=no
29997 fi
29998
29999 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30000       conftest$ac_exeext conftest.$ac_ext
30001 fi
30002 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
30003 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
30004
30005     if test $ac_cv_func_gethostbyname = no; then
30006       { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
30007 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
30008 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
30009   echo $ECHO_N "(cached) $ECHO_C" >&6
30010 else
30011   ac_check_lib_save_LIBS=$LIBS
30012 LIBS="-lnsl  $LIBS"
30013 cat >conftest.$ac_ext <<_ACEOF
30014 /* confdefs.h.  */
30015 _ACEOF
30016 cat confdefs.h >>conftest.$ac_ext
30017 cat >>conftest.$ac_ext <<_ACEOF
30018 /* end confdefs.h.  */
30019
30020 /* Override any GCC internal prototype to avoid an error.
30021    Use char because int might match the return type of a GCC
30022    builtin and then its argument prototype would still apply.  */
30023 #ifdef __cplusplus
30024 extern "C"
30025 #endif
30026 char gethostbyname ();
30027 int
30028 main ()
30029 {
30030 return gethostbyname ();
30031   ;
30032   return 0;
30033 }
30034 _ACEOF
30035 rm -f conftest.$ac_objext conftest$ac_exeext
30036 if { (ac_try="$ac_link"
30037 case "(($ac_try" in
30038   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30039   *) ac_try_echo=$ac_try;;
30040 esac
30041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30042   (eval "$ac_link") 2>conftest.er1
30043   ac_status=$?
30044   grep -v '^ *+' conftest.er1 >conftest.err
30045   rm -f conftest.er1
30046   cat conftest.err >&5
30047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30048   (exit $ac_status); } && {
30049          test -z "$ac_c_werror_flag" ||
30050          test ! -s conftest.err
30051        } && test -s conftest$ac_exeext &&
30052        $as_test_x conftest$ac_exeext; then
30053   ac_cv_lib_nsl_gethostbyname=yes
30054 else
30055   echo "$as_me: failed program was:" >&5
30056 sed 's/^/| /' conftest.$ac_ext >&5
30057
30058         ac_cv_lib_nsl_gethostbyname=no
30059 fi
30060
30061 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30062       conftest$ac_exeext conftest.$ac_ext
30063 LIBS=$ac_check_lib_save_LIBS
30064 fi
30065 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
30066 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
30067 if test $ac_cv_lib_nsl_gethostbyname = yes; then
30068   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
30069 fi
30070
30071       if test $ac_cv_lib_nsl_gethostbyname = no; then
30072         { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
30073 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
30074 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
30075   echo $ECHO_N "(cached) $ECHO_C" >&6
30076 else
30077   ac_check_lib_save_LIBS=$LIBS
30078 LIBS="-lbsd  $LIBS"
30079 cat >conftest.$ac_ext <<_ACEOF
30080 /* confdefs.h.  */
30081 _ACEOF
30082 cat confdefs.h >>conftest.$ac_ext
30083 cat >>conftest.$ac_ext <<_ACEOF
30084 /* end confdefs.h.  */
30085
30086 /* Override any GCC internal prototype to avoid an error.
30087    Use char because int might match the return type of a GCC
30088    builtin and then its argument prototype would still apply.  */
30089 #ifdef __cplusplus
30090 extern "C"
30091 #endif
30092 char gethostbyname ();
30093 int
30094 main ()
30095 {
30096 return gethostbyname ();
30097   ;
30098   return 0;
30099 }
30100 _ACEOF
30101 rm -f conftest.$ac_objext conftest$ac_exeext
30102 if { (ac_try="$ac_link"
30103 case "(($ac_try" in
30104   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30105   *) ac_try_echo=$ac_try;;
30106 esac
30107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30108   (eval "$ac_link") 2>conftest.er1
30109   ac_status=$?
30110   grep -v '^ *+' conftest.er1 >conftest.err
30111   rm -f conftest.er1
30112   cat conftest.err >&5
30113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30114   (exit $ac_status); } && {
30115          test -z "$ac_c_werror_flag" ||
30116          test ! -s conftest.err
30117        } && test -s conftest$ac_exeext &&
30118        $as_test_x conftest$ac_exeext; then
30119   ac_cv_lib_bsd_gethostbyname=yes
30120 else
30121   echo "$as_me: failed program was:" >&5
30122 sed 's/^/| /' conftest.$ac_ext >&5
30123
30124         ac_cv_lib_bsd_gethostbyname=no
30125 fi
30126
30127 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30128       conftest$ac_exeext conftest.$ac_ext
30129 LIBS=$ac_check_lib_save_LIBS
30130 fi
30131 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
30132 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
30133 if test $ac_cv_lib_bsd_gethostbyname = yes; then
30134   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
30135 fi
30136
30137       fi
30138     fi
30139
30140     # lieder@skyler.mavd.honeywell.com says without -lsocket,
30141     # socket/setsockopt and other routines are undefined under SCO ODT
30142     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
30143     # on later versions), says Simon Leinen: it contains gethostby*
30144     # variants that don't use the name server (or something).  -lsocket
30145     # must be given before -lnsl if both are needed.  We assume that
30146     # if connect needs -lnsl, so does gethostbyname.
30147     { echo "$as_me:$LINENO: checking for connect" >&5
30148 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
30149 if test "${ac_cv_func_connect+set}" = set; then
30150   echo $ECHO_N "(cached) $ECHO_C" >&6
30151 else
30152   cat >conftest.$ac_ext <<_ACEOF
30153 /* confdefs.h.  */
30154 _ACEOF
30155 cat confdefs.h >>conftest.$ac_ext
30156 cat >>conftest.$ac_ext <<_ACEOF
30157 /* end confdefs.h.  */
30158 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
30159    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30160 #define connect innocuous_connect
30161
30162 /* System header to define __stub macros and hopefully few prototypes,
30163     which can conflict with char connect (); below.
30164     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30165     <limits.h> exists even on freestanding compilers.  */
30166
30167 #ifdef __STDC__
30168 # include <limits.h>
30169 #else
30170 # include <assert.h>
30171 #endif
30172
30173 #undef connect
30174
30175 /* Override any GCC internal prototype to avoid an error.
30176    Use char because int might match the return type of a GCC
30177    builtin and then its argument prototype would still apply.  */
30178 #ifdef __cplusplus
30179 extern "C"
30180 #endif
30181 char connect ();
30182 /* The GNU C library defines this for functions which it implements
30183     to always fail with ENOSYS.  Some functions are actually named
30184     something starting with __ and the normal name is an alias.  */
30185 #if defined __stub_connect || defined __stub___connect
30186 choke me
30187 #endif
30188
30189 int
30190 main ()
30191 {
30192 return connect ();
30193   ;
30194   return 0;
30195 }
30196 _ACEOF
30197 rm -f conftest.$ac_objext conftest$ac_exeext
30198 if { (ac_try="$ac_link"
30199 case "(($ac_try" in
30200   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30201   *) ac_try_echo=$ac_try;;
30202 esac
30203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30204   (eval "$ac_link") 2>conftest.er1
30205   ac_status=$?
30206   grep -v '^ *+' conftest.er1 >conftest.err
30207   rm -f conftest.er1
30208   cat conftest.err >&5
30209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30210   (exit $ac_status); } && {
30211          test -z "$ac_c_werror_flag" ||
30212          test ! -s conftest.err
30213        } && test -s conftest$ac_exeext &&
30214        $as_test_x conftest$ac_exeext; then
30215   ac_cv_func_connect=yes
30216 else
30217   echo "$as_me: failed program was:" >&5
30218 sed 's/^/| /' conftest.$ac_ext >&5
30219
30220         ac_cv_func_connect=no
30221 fi
30222
30223 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30224       conftest$ac_exeext conftest.$ac_ext
30225 fi
30226 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
30227 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
30228
30229     if test $ac_cv_func_connect = no; then
30230       { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
30231 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
30232 if test "${ac_cv_lib_socket_connect+set}" = set; then
30233   echo $ECHO_N "(cached) $ECHO_C" >&6
30234 else
30235   ac_check_lib_save_LIBS=$LIBS
30236 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
30237 cat >conftest.$ac_ext <<_ACEOF
30238 /* confdefs.h.  */
30239 _ACEOF
30240 cat confdefs.h >>conftest.$ac_ext
30241 cat >>conftest.$ac_ext <<_ACEOF
30242 /* end confdefs.h.  */
30243
30244 /* Override any GCC internal prototype to avoid an error.
30245    Use char because int might match the return type of a GCC
30246    builtin and then its argument prototype would still apply.  */
30247 #ifdef __cplusplus
30248 extern "C"
30249 #endif
30250 char connect ();
30251 int
30252 main ()
30253 {
30254 return connect ();
30255   ;
30256   return 0;
30257 }
30258 _ACEOF
30259 rm -f conftest.$ac_objext conftest$ac_exeext
30260 if { (ac_try="$ac_link"
30261 case "(($ac_try" in
30262   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30263   *) ac_try_echo=$ac_try;;
30264 esac
30265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30266   (eval "$ac_link") 2>conftest.er1
30267   ac_status=$?
30268   grep -v '^ *+' conftest.er1 >conftest.err
30269   rm -f conftest.er1
30270   cat conftest.err >&5
30271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30272   (exit $ac_status); } && {
30273          test -z "$ac_c_werror_flag" ||
30274          test ! -s conftest.err
30275        } && test -s conftest$ac_exeext &&
30276        $as_test_x conftest$ac_exeext; then
30277   ac_cv_lib_socket_connect=yes
30278 else
30279   echo "$as_me: failed program was:" >&5
30280 sed 's/^/| /' conftest.$ac_ext >&5
30281
30282         ac_cv_lib_socket_connect=no
30283 fi
30284
30285 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30286       conftest$ac_exeext conftest.$ac_ext
30287 LIBS=$ac_check_lib_save_LIBS
30288 fi
30289 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
30290 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
30291 if test $ac_cv_lib_socket_connect = yes; then
30292   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
30293 fi
30294
30295     fi
30296
30297     # Guillermo Gomez says -lposix is necessary on A/UX.
30298     { echo "$as_me:$LINENO: checking for remove" >&5
30299 echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
30300 if test "${ac_cv_func_remove+set}" = set; then
30301   echo $ECHO_N "(cached) $ECHO_C" >&6
30302 else
30303   cat >conftest.$ac_ext <<_ACEOF
30304 /* confdefs.h.  */
30305 _ACEOF
30306 cat confdefs.h >>conftest.$ac_ext
30307 cat >>conftest.$ac_ext <<_ACEOF
30308 /* end confdefs.h.  */
30309 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
30310    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30311 #define remove innocuous_remove
30312
30313 /* System header to define __stub macros and hopefully few prototypes,
30314     which can conflict with char remove (); below.
30315     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30316     <limits.h> exists even on freestanding compilers.  */
30317
30318 #ifdef __STDC__
30319 # include <limits.h>
30320 #else
30321 # include <assert.h>
30322 #endif
30323
30324 #undef remove
30325
30326 /* Override any GCC internal prototype to avoid an error.
30327    Use char because int might match the return type of a GCC
30328    builtin and then its argument prototype would still apply.  */
30329 #ifdef __cplusplus
30330 extern "C"
30331 #endif
30332 char remove ();
30333 /* The GNU C library defines this for functions which it implements
30334     to always fail with ENOSYS.  Some functions are actually named
30335     something starting with __ and the normal name is an alias.  */
30336 #if defined __stub_remove || defined __stub___remove
30337 choke me
30338 #endif
30339
30340 int
30341 main ()
30342 {
30343 return remove ();
30344   ;
30345   return 0;
30346 }
30347 _ACEOF
30348 rm -f conftest.$ac_objext conftest$ac_exeext
30349 if { (ac_try="$ac_link"
30350 case "(($ac_try" in
30351   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30352   *) ac_try_echo=$ac_try;;
30353 esac
30354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30355   (eval "$ac_link") 2>conftest.er1
30356   ac_status=$?
30357   grep -v '^ *+' conftest.er1 >conftest.err
30358   rm -f conftest.er1
30359   cat conftest.err >&5
30360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30361   (exit $ac_status); } && {
30362          test -z "$ac_c_werror_flag" ||
30363          test ! -s conftest.err
30364        } && test -s conftest$ac_exeext &&
30365        $as_test_x conftest$ac_exeext; then
30366   ac_cv_func_remove=yes
30367 else
30368   echo "$as_me: failed program was:" >&5
30369 sed 's/^/| /' conftest.$ac_ext >&5
30370
30371         ac_cv_func_remove=no
30372 fi
30373
30374 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30375       conftest$ac_exeext conftest.$ac_ext
30376 fi
30377 { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
30378 echo "${ECHO_T}$ac_cv_func_remove" >&6; }
30379
30380     if test $ac_cv_func_remove = no; then
30381       { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
30382 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
30383 if test "${ac_cv_lib_posix_remove+set}" = set; then
30384   echo $ECHO_N "(cached) $ECHO_C" >&6
30385 else
30386   ac_check_lib_save_LIBS=$LIBS
30387 LIBS="-lposix  $LIBS"
30388 cat >conftest.$ac_ext <<_ACEOF
30389 /* confdefs.h.  */
30390 _ACEOF
30391 cat confdefs.h >>conftest.$ac_ext
30392 cat >>conftest.$ac_ext <<_ACEOF
30393 /* end confdefs.h.  */
30394
30395 /* Override any GCC internal prototype to avoid an error.
30396    Use char because int might match the return type of a GCC
30397    builtin and then its argument prototype would still apply.  */
30398 #ifdef __cplusplus
30399 extern "C"
30400 #endif
30401 char remove ();
30402 int
30403 main ()
30404 {
30405 return remove ();
30406   ;
30407   return 0;
30408 }
30409 _ACEOF
30410 rm -f conftest.$ac_objext conftest$ac_exeext
30411 if { (ac_try="$ac_link"
30412 case "(($ac_try" in
30413   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30414   *) ac_try_echo=$ac_try;;
30415 esac
30416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30417   (eval "$ac_link") 2>conftest.er1
30418   ac_status=$?
30419   grep -v '^ *+' conftest.er1 >conftest.err
30420   rm -f conftest.er1
30421   cat conftest.err >&5
30422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30423   (exit $ac_status); } && {
30424          test -z "$ac_c_werror_flag" ||
30425          test ! -s conftest.err
30426        } && test -s conftest$ac_exeext &&
30427        $as_test_x conftest$ac_exeext; then
30428   ac_cv_lib_posix_remove=yes
30429 else
30430   echo "$as_me: failed program was:" >&5
30431 sed 's/^/| /' conftest.$ac_ext >&5
30432
30433         ac_cv_lib_posix_remove=no
30434 fi
30435
30436 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30437       conftest$ac_exeext conftest.$ac_ext
30438 LIBS=$ac_check_lib_save_LIBS
30439 fi
30440 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
30441 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
30442 if test $ac_cv_lib_posix_remove = yes; then
30443   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
30444 fi
30445
30446     fi
30447
30448     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
30449     { echo "$as_me:$LINENO: checking for shmat" >&5
30450 echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
30451 if test "${ac_cv_func_shmat+set}" = set; then
30452   echo $ECHO_N "(cached) $ECHO_C" >&6
30453 else
30454   cat >conftest.$ac_ext <<_ACEOF
30455 /* confdefs.h.  */
30456 _ACEOF
30457 cat confdefs.h >>conftest.$ac_ext
30458 cat >>conftest.$ac_ext <<_ACEOF
30459 /* end confdefs.h.  */
30460 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
30461    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30462 #define shmat innocuous_shmat
30463
30464 /* System header to define __stub macros and hopefully few prototypes,
30465     which can conflict with char shmat (); below.
30466     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30467     <limits.h> exists even on freestanding compilers.  */
30468
30469 #ifdef __STDC__
30470 # include <limits.h>
30471 #else
30472 # include <assert.h>
30473 #endif
30474
30475 #undef shmat
30476
30477 /* Override any GCC internal prototype to avoid an error.
30478    Use char because int might match the return type of a GCC
30479    builtin and then its argument prototype would still apply.  */
30480 #ifdef __cplusplus
30481 extern "C"
30482 #endif
30483 char shmat ();
30484 /* The GNU C library defines this for functions which it implements
30485     to always fail with ENOSYS.  Some functions are actually named
30486     something starting with __ and the normal name is an alias.  */
30487 #if defined __stub_shmat || defined __stub___shmat
30488 choke me
30489 #endif
30490
30491 int
30492 main ()
30493 {
30494 return shmat ();
30495   ;
30496   return 0;
30497 }
30498 _ACEOF
30499 rm -f conftest.$ac_objext conftest$ac_exeext
30500 if { (ac_try="$ac_link"
30501 case "(($ac_try" in
30502   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30503   *) ac_try_echo=$ac_try;;
30504 esac
30505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30506   (eval "$ac_link") 2>conftest.er1
30507   ac_status=$?
30508   grep -v '^ *+' conftest.er1 >conftest.err
30509   rm -f conftest.er1
30510   cat conftest.err >&5
30511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30512   (exit $ac_status); } && {
30513          test -z "$ac_c_werror_flag" ||
30514          test ! -s conftest.err
30515        } && test -s conftest$ac_exeext &&
30516        $as_test_x conftest$ac_exeext; then
30517   ac_cv_func_shmat=yes
30518 else
30519   echo "$as_me: failed program was:" >&5
30520 sed 's/^/| /' conftest.$ac_ext >&5
30521
30522         ac_cv_func_shmat=no
30523 fi
30524
30525 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30526       conftest$ac_exeext conftest.$ac_ext
30527 fi
30528 { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
30529 echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
30530
30531     if test $ac_cv_func_shmat = no; then
30532       { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
30533 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
30534 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
30535   echo $ECHO_N "(cached) $ECHO_C" >&6
30536 else
30537   ac_check_lib_save_LIBS=$LIBS
30538 LIBS="-lipc  $LIBS"
30539 cat >conftest.$ac_ext <<_ACEOF
30540 /* confdefs.h.  */
30541 _ACEOF
30542 cat confdefs.h >>conftest.$ac_ext
30543 cat >>conftest.$ac_ext <<_ACEOF
30544 /* end confdefs.h.  */
30545
30546 /* Override any GCC internal prototype to avoid an error.
30547    Use char because int might match the return type of a GCC
30548    builtin and then its argument prototype would still apply.  */
30549 #ifdef __cplusplus
30550 extern "C"
30551 #endif
30552 char shmat ();
30553 int
30554 main ()
30555 {
30556 return shmat ();
30557   ;
30558   return 0;
30559 }
30560 _ACEOF
30561 rm -f conftest.$ac_objext conftest$ac_exeext
30562 if { (ac_try="$ac_link"
30563 case "(($ac_try" in
30564   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30565   *) ac_try_echo=$ac_try;;
30566 esac
30567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30568   (eval "$ac_link") 2>conftest.er1
30569   ac_status=$?
30570   grep -v '^ *+' conftest.er1 >conftest.err
30571   rm -f conftest.er1
30572   cat conftest.err >&5
30573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30574   (exit $ac_status); } && {
30575          test -z "$ac_c_werror_flag" ||
30576          test ! -s conftest.err
30577        } && test -s conftest$ac_exeext &&
30578        $as_test_x conftest$ac_exeext; then
30579   ac_cv_lib_ipc_shmat=yes
30580 else
30581   echo "$as_me: failed program was:" >&5
30582 sed 's/^/| /' conftest.$ac_ext >&5
30583
30584         ac_cv_lib_ipc_shmat=no
30585 fi
30586
30587 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30588       conftest$ac_exeext conftest.$ac_ext
30589 LIBS=$ac_check_lib_save_LIBS
30590 fi
30591 { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
30592 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
30593 if test $ac_cv_lib_ipc_shmat = yes; then
30594   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
30595 fi
30596
30597     fi
30598   fi
30599
30600   # Check for libraries that X11R6 Xt/Xaw programs need.
30601   ac_save_LDFLAGS=$LDFLAGS
30602   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
30603   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
30604   # check for ICE first), but we must link in the order -lSM -lICE or
30605   # we get undefined symbols.  So assume we have SM if we have ICE.
30606   # These have to be linked with before -lX11, unlike the other
30607   # libraries we check for below, so use a different variable.
30608   # John Interrante, Karl Berry
30609   { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
30610 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
30611 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
30612   echo $ECHO_N "(cached) $ECHO_C" >&6
30613 else
30614   ac_check_lib_save_LIBS=$LIBS
30615 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
30616 cat >conftest.$ac_ext <<_ACEOF
30617 /* confdefs.h.  */
30618 _ACEOF
30619 cat confdefs.h >>conftest.$ac_ext
30620 cat >>conftest.$ac_ext <<_ACEOF
30621 /* end confdefs.h.  */
30622
30623 /* Override any GCC internal prototype to avoid an error.
30624    Use char because int might match the return type of a GCC
30625    builtin and then its argument prototype would still apply.  */
30626 #ifdef __cplusplus
30627 extern "C"
30628 #endif
30629 char IceConnectionNumber ();
30630 int
30631 main ()
30632 {
30633 return IceConnectionNumber ();
30634   ;
30635   return 0;
30636 }
30637 _ACEOF
30638 rm -f conftest.$ac_objext conftest$ac_exeext
30639 if { (ac_try="$ac_link"
30640 case "(($ac_try" in
30641   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30642   *) ac_try_echo=$ac_try;;
30643 esac
30644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30645   (eval "$ac_link") 2>conftest.er1
30646   ac_status=$?
30647   grep -v '^ *+' conftest.er1 >conftest.err
30648   rm -f conftest.er1
30649   cat conftest.err >&5
30650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30651   (exit $ac_status); } && {
30652          test -z "$ac_c_werror_flag" ||
30653          test ! -s conftest.err
30654        } && test -s conftest$ac_exeext &&
30655        $as_test_x conftest$ac_exeext; then
30656   ac_cv_lib_ICE_IceConnectionNumber=yes
30657 else
30658   echo "$as_me: failed program was:" >&5
30659 sed 's/^/| /' conftest.$ac_ext >&5
30660
30661         ac_cv_lib_ICE_IceConnectionNumber=no
30662 fi
30663
30664 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30665       conftest$ac_exeext conftest.$ac_ext
30666 LIBS=$ac_check_lib_save_LIBS
30667 fi
30668 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
30669 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
30670 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
30671   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
30672 fi
30673
30674   LDFLAGS=$ac_save_LDFLAGS
30675
30676 fi
30677
30678
30679
30680
30681
30682
30683
30684
30685
30686
30687
30688
30689
30690
30691
30692
30693
30694
30695
30696
30697
30698
30699
30700
30701
30702
30703
30704
30705
30706
30707
30708 for ac_header in \
30709    assert.h \
30710    fcntl.h \
30711    grp.h \
30712    pwd.h \
30713    libc.h \
30714    limits.h \
30715    stdarg.h \
30716    stdlib.h \
30717    stdint.h \
30718    string.h \
30719    strings.h \
30720    termios.h \
30721    termcap.h \
30722    term.h \
30723    unistd.h \
30724    sys/bitypes.h \
30725    sys/byteorder.h \
30726    sys/ioctl.h \
30727    sys/select.h \
30728    sys/socket.h \
30729    sys/sockio.h \
30730    sys/stat.h \
30731    sys/time.h \
30732    sys/types.h \
30733    arpa/nameser.h \
30734    mtio.h \
30735    sys/mtio.h \
30736    sys/tape.h \
30737    regex.h \
30738
30739 do
30740 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30741 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30742   { echo "$as_me:$LINENO: checking for $ac_header" >&5
30743 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30744 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30745   echo $ECHO_N "(cached) $ECHO_C" >&6
30746 fi
30747 ac_res=`eval echo '${'$as_ac_Header'}'`
30748                { echo "$as_me:$LINENO: result: $ac_res" >&5
30749 echo "${ECHO_T}$ac_res" >&6; }
30750 else
30751   # Is the header compilable?
30752 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30753 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30754 cat >conftest.$ac_ext <<_ACEOF
30755 /* confdefs.h.  */
30756 _ACEOF
30757 cat confdefs.h >>conftest.$ac_ext
30758 cat >>conftest.$ac_ext <<_ACEOF
30759 /* end confdefs.h.  */
30760 $ac_includes_default
30761 #include <$ac_header>
30762 _ACEOF
30763 rm -f conftest.$ac_objext
30764 if { (ac_try="$ac_compile"
30765 case "(($ac_try" in
30766   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30767   *) ac_try_echo=$ac_try;;
30768 esac
30769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30770   (eval "$ac_compile") 2>conftest.er1
30771   ac_status=$?
30772   grep -v '^ *+' conftest.er1 >conftest.err
30773   rm -f conftest.er1
30774   cat conftest.err >&5
30775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30776   (exit $ac_status); } && {
30777          test -z "$ac_c_werror_flag" ||
30778          test ! -s conftest.err
30779        } && test -s conftest.$ac_objext; then
30780   ac_header_compiler=yes
30781 else
30782   echo "$as_me: failed program was:" >&5
30783 sed 's/^/| /' conftest.$ac_ext >&5
30784
30785         ac_header_compiler=no
30786 fi
30787
30788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30789 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30790 echo "${ECHO_T}$ac_header_compiler" >&6; }
30791
30792 # Is the header present?
30793 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30794 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30795 cat >conftest.$ac_ext <<_ACEOF
30796 /* confdefs.h.  */
30797 _ACEOF
30798 cat confdefs.h >>conftest.$ac_ext
30799 cat >>conftest.$ac_ext <<_ACEOF
30800 /* end confdefs.h.  */
30801 #include <$ac_header>
30802 _ACEOF
30803 if { (ac_try="$ac_cpp conftest.$ac_ext"
30804 case "(($ac_try" in
30805   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30806   *) ac_try_echo=$ac_try;;
30807 esac
30808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30809   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30810   ac_status=$?
30811   grep -v '^ *+' conftest.er1 >conftest.err
30812   rm -f conftest.er1
30813   cat conftest.err >&5
30814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30815   (exit $ac_status); } >/dev/null && {
30816          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30817          test ! -s conftest.err
30818        }; then
30819   ac_header_preproc=yes
30820 else
30821   echo "$as_me: failed program was:" >&5
30822 sed 's/^/| /' conftest.$ac_ext >&5
30823
30824   ac_header_preproc=no
30825 fi
30826
30827 rm -f conftest.err conftest.$ac_ext
30828 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30829 echo "${ECHO_T}$ac_header_preproc" >&6; }
30830
30831 # So?  What about this header?
30832 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30833   yes:no: )
30834     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30835 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30836     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30837 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30838     ac_header_preproc=yes
30839     ;;
30840   no:yes:* )
30841     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30842 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30843     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
30844 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
30845     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30846 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30847     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
30848 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
30849     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30850 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30851     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30852 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30853
30854     ;;
30855 esac
30856 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30857 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30858 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30859   echo $ECHO_N "(cached) $ECHO_C" >&6
30860 else
30861   eval "$as_ac_Header=\$ac_header_preproc"
30862 fi
30863 ac_res=`eval echo '${'$as_ac_Header'}'`
30864                { echo "$as_me:$LINENO: result: $ac_res" >&5
30865 echo "${ECHO_T}$ac_res" >&6; }
30866
30867 fi
30868 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30869   cat >>confdefs.h <<_ACEOF
30870 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30871 _ACEOF
30872
30873 fi
30874
30875 done
30876
30877 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
30878 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
30879 if test "${ac_cv_header_stdc+set}" = set; then
30880   echo $ECHO_N "(cached) $ECHO_C" >&6
30881 else
30882   cat >conftest.$ac_ext <<_ACEOF
30883 /* confdefs.h.  */
30884 _ACEOF
30885 cat confdefs.h >>conftest.$ac_ext
30886 cat >>conftest.$ac_ext <<_ACEOF
30887 /* end confdefs.h.  */
30888 #include <stdlib.h>
30889 #include <stdarg.h>
30890 #include <string.h>
30891 #include <float.h>
30892
30893 int
30894 main ()
30895 {
30896
30897   ;
30898   return 0;
30899 }
30900 _ACEOF
30901 rm -f conftest.$ac_objext
30902 if { (ac_try="$ac_compile"
30903 case "(($ac_try" in
30904   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30905   *) ac_try_echo=$ac_try;;
30906 esac
30907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30908   (eval "$ac_compile") 2>conftest.er1
30909   ac_status=$?
30910   grep -v '^ *+' conftest.er1 >conftest.err
30911   rm -f conftest.er1
30912   cat conftest.err >&5
30913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30914   (exit $ac_status); } && {
30915          test -z "$ac_c_werror_flag" ||
30916          test ! -s conftest.err
30917        } && test -s conftest.$ac_objext; then
30918   ac_cv_header_stdc=yes
30919 else
30920   echo "$as_me: failed program was:" >&5
30921 sed 's/^/| /' conftest.$ac_ext >&5
30922
30923         ac_cv_header_stdc=no
30924 fi
30925
30926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30927
30928 if test $ac_cv_header_stdc = yes; then
30929   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
30930   cat >conftest.$ac_ext <<_ACEOF
30931 /* confdefs.h.  */
30932 _ACEOF
30933 cat confdefs.h >>conftest.$ac_ext
30934 cat >>conftest.$ac_ext <<_ACEOF
30935 /* end confdefs.h.  */
30936 #include <string.h>
30937
30938 _ACEOF
30939 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30940   $EGREP "memchr" >/dev/null 2>&1; then
30941   :
30942 else
30943   ac_cv_header_stdc=no
30944 fi
30945 rm -f conftest*
30946
30947 fi
30948
30949 if test $ac_cv_header_stdc = yes; then
30950   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
30951   cat >conftest.$ac_ext <<_ACEOF
30952 /* confdefs.h.  */
30953 _ACEOF
30954 cat confdefs.h >>conftest.$ac_ext
30955 cat >>conftest.$ac_ext <<_ACEOF
30956 /* end confdefs.h.  */
30957 #include <stdlib.h>
30958
30959 _ACEOF
30960 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30961   $EGREP "free" >/dev/null 2>&1; then
30962   :
30963 else
30964   ac_cv_header_stdc=no
30965 fi
30966 rm -f conftest*
30967
30968 fi
30969
30970 if test $ac_cv_header_stdc = yes; then
30971   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
30972   if test "$cross_compiling" = yes; then
30973   :
30974 else
30975   cat >conftest.$ac_ext <<_ACEOF
30976 /* confdefs.h.  */
30977 _ACEOF
30978 cat confdefs.h >>conftest.$ac_ext
30979 cat >>conftest.$ac_ext <<_ACEOF
30980 /* end confdefs.h.  */
30981 #include <ctype.h>
30982 #include <stdlib.h>
30983 #if ((' ' & 0x0FF) == 0x020)
30984 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
30985 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
30986 #else
30987 # define ISLOWER(c) \
30988                    (('a' <= (c) && (c) <= 'i') \
30989                      || ('j' <= (c) && (c) <= 'r') \
30990                      || ('s' <= (c) && (c) <= 'z'))
30991 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
30992 #endif
30993
30994 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
30995 int
30996 main ()
30997 {
30998   int i;
30999   for (i = 0; i < 256; i++)
31000     if (XOR (islower (i), ISLOWER (i))
31001         || toupper (i) != TOUPPER (i))
31002       return 2;
31003   return 0;
31004 }
31005 _ACEOF
31006 rm -f conftest$ac_exeext
31007 if { (ac_try="$ac_link"
31008 case "(($ac_try" in
31009   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31010   *) ac_try_echo=$ac_try;;
31011 esac
31012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31013   (eval "$ac_link") 2>&5
31014   ac_status=$?
31015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31016   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31017   { (case "(($ac_try" in
31018   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31019   *) ac_try_echo=$ac_try;;
31020 esac
31021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31022   (eval "$ac_try") 2>&5
31023   ac_status=$?
31024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31025   (exit $ac_status); }; }; then
31026   :
31027 else
31028   echo "$as_me: program exited with status $ac_status" >&5
31029 echo "$as_me: failed program was:" >&5
31030 sed 's/^/| /' conftest.$ac_ext >&5
31031
31032 ( exit $ac_status )
31033 ac_cv_header_stdc=no
31034 fi
31035 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31036 fi
31037
31038
31039 fi
31040 fi
31041 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
31042 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
31043 if test $ac_cv_header_stdc = yes; then
31044
31045 cat >>confdefs.h <<\_ACEOF
31046 #define STDC_HEADERS 1
31047 _ACEOF
31048
31049 fi
31050
31051 { echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
31052 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6; }
31053 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
31054   echo $ECHO_N "(cached) $ECHO_C" >&6
31055 else
31056   cat >conftest.$ac_ext <<_ACEOF
31057 /* confdefs.h.  */
31058 _ACEOF
31059 cat confdefs.h >>conftest.$ac_ext
31060 cat >>conftest.$ac_ext <<_ACEOF
31061 /* end confdefs.h.  */
31062 #include <sys/types.h>
31063 int
31064 main ()
31065 {
31066 return makedev(0, 0);
31067   ;
31068   return 0;
31069 }
31070 _ACEOF
31071 rm -f conftest.$ac_objext conftest$ac_exeext
31072 if { (ac_try="$ac_link"
31073 case "(($ac_try" in
31074   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31075   *) ac_try_echo=$ac_try;;
31076 esac
31077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31078   (eval "$ac_link") 2>conftest.er1
31079   ac_status=$?
31080   grep -v '^ *+' conftest.er1 >conftest.err
31081   rm -f conftest.er1
31082   cat conftest.err >&5
31083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31084   (exit $ac_status); } && {
31085          test -z "$ac_c_werror_flag" ||
31086          test ! -s conftest.err
31087        } && test -s conftest$ac_exeext &&
31088        $as_test_x conftest$ac_exeext; then
31089   ac_cv_header_sys_types_h_makedev=yes
31090 else
31091   echo "$as_me: failed program was:" >&5
31092 sed 's/^/| /' conftest.$ac_ext >&5
31093
31094         ac_cv_header_sys_types_h_makedev=no
31095 fi
31096
31097 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31098       conftest$ac_exeext conftest.$ac_ext
31099
31100 fi
31101 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
31102 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6; }
31103
31104 if test $ac_cv_header_sys_types_h_makedev = no; then
31105 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
31106   { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
31107 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
31108 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
31109   echo $ECHO_N "(cached) $ECHO_C" >&6
31110 fi
31111 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
31112 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
31113 else
31114   # Is the header compilable?
31115 { echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
31116 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6; }
31117 cat >conftest.$ac_ext <<_ACEOF
31118 /* confdefs.h.  */
31119 _ACEOF
31120 cat confdefs.h >>conftest.$ac_ext
31121 cat >>conftest.$ac_ext <<_ACEOF
31122 /* end confdefs.h.  */
31123 $ac_includes_default
31124 #include <sys/mkdev.h>
31125 _ACEOF
31126 rm -f conftest.$ac_objext
31127 if { (ac_try="$ac_compile"
31128 case "(($ac_try" in
31129   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31130   *) ac_try_echo=$ac_try;;
31131 esac
31132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31133   (eval "$ac_compile") 2>conftest.er1
31134   ac_status=$?
31135   grep -v '^ *+' conftest.er1 >conftest.err
31136   rm -f conftest.er1
31137   cat conftest.err >&5
31138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31139   (exit $ac_status); } && {
31140          test -z "$ac_c_werror_flag" ||
31141          test ! -s conftest.err
31142        } && test -s conftest.$ac_objext; then
31143   ac_header_compiler=yes
31144 else
31145   echo "$as_me: failed program was:" >&5
31146 sed 's/^/| /' conftest.$ac_ext >&5
31147
31148         ac_header_compiler=no
31149 fi
31150
31151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31152 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31153 echo "${ECHO_T}$ac_header_compiler" >&6; }
31154
31155 # Is the header present?
31156 { echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
31157 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6; }
31158 cat >conftest.$ac_ext <<_ACEOF
31159 /* confdefs.h.  */
31160 _ACEOF
31161 cat confdefs.h >>conftest.$ac_ext
31162 cat >>conftest.$ac_ext <<_ACEOF
31163 /* end confdefs.h.  */
31164 #include <sys/mkdev.h>
31165 _ACEOF
31166 if { (ac_try="$ac_cpp conftest.$ac_ext"
31167 case "(($ac_try" in
31168   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31169   *) ac_try_echo=$ac_try;;
31170 esac
31171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31172   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31173   ac_status=$?
31174   grep -v '^ *+' conftest.er1 >conftest.err
31175   rm -f conftest.er1
31176   cat conftest.err >&5
31177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31178   (exit $ac_status); } >/dev/null && {
31179          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31180          test ! -s conftest.err
31181        }; then
31182   ac_header_preproc=yes
31183 else
31184   echo "$as_me: failed program was:" >&5
31185 sed 's/^/| /' conftest.$ac_ext >&5
31186
31187   ac_header_preproc=no
31188 fi
31189
31190 rm -f conftest.err conftest.$ac_ext
31191 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31192 echo "${ECHO_T}$ac_header_preproc" >&6; }
31193
31194 # So?  What about this header?
31195 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31196   yes:no: )
31197     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
31198 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31199     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
31200 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
31201     ac_header_preproc=yes
31202     ;;
31203   no:yes:* )
31204     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
31205 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
31206     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&5
31207 echo "$as_me: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&2;}
31208     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
31209 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
31210     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&5
31211 echo "$as_me: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&2;}
31212     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
31213 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
31214     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
31215 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
31216
31217     ;;
31218 esac
31219 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
31220 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
31221 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
31222   echo $ECHO_N "(cached) $ECHO_C" >&6
31223 else
31224   ac_cv_header_sys_mkdev_h=$ac_header_preproc
31225 fi
31226 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
31227 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
31228
31229 fi
31230 if test $ac_cv_header_sys_mkdev_h = yes; then
31231
31232 cat >>confdefs.h <<\_ACEOF
31233 #define MAJOR_IN_MKDEV 1
31234 _ACEOF
31235
31236 fi
31237
31238
31239
31240   if test $ac_cv_header_sys_mkdev_h = no; then
31241     if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
31242   { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
31243 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
31244 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
31245   echo $ECHO_N "(cached) $ECHO_C" >&6
31246 fi
31247 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
31248 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
31249 else
31250   # Is the header compilable?
31251 { echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
31252 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6; }
31253 cat >conftest.$ac_ext <<_ACEOF
31254 /* confdefs.h.  */
31255 _ACEOF
31256 cat confdefs.h >>conftest.$ac_ext
31257 cat >>conftest.$ac_ext <<_ACEOF
31258 /* end confdefs.h.  */
31259 $ac_includes_default
31260 #include <sys/sysmacros.h>
31261 _ACEOF
31262 rm -f conftest.$ac_objext
31263 if { (ac_try="$ac_compile"
31264 case "(($ac_try" in
31265   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31266   *) ac_try_echo=$ac_try;;
31267 esac
31268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31269   (eval "$ac_compile") 2>conftest.er1
31270   ac_status=$?
31271   grep -v '^ *+' conftest.er1 >conftest.err
31272   rm -f conftest.er1
31273   cat conftest.err >&5
31274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31275   (exit $ac_status); } && {
31276          test -z "$ac_c_werror_flag" ||
31277          test ! -s conftest.err
31278        } && test -s conftest.$ac_objext; then
31279   ac_header_compiler=yes
31280 else
31281   echo "$as_me: failed program was:" >&5
31282 sed 's/^/| /' conftest.$ac_ext >&5
31283
31284         ac_header_compiler=no
31285 fi
31286
31287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31288 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31289 echo "${ECHO_T}$ac_header_compiler" >&6; }
31290
31291 # Is the header present?
31292 { echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
31293 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6; }
31294 cat >conftest.$ac_ext <<_ACEOF
31295 /* confdefs.h.  */
31296 _ACEOF
31297 cat confdefs.h >>conftest.$ac_ext
31298 cat >>conftest.$ac_ext <<_ACEOF
31299 /* end confdefs.h.  */
31300 #include <sys/sysmacros.h>
31301 _ACEOF
31302 if { (ac_try="$ac_cpp conftest.$ac_ext"
31303 case "(($ac_try" in
31304   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31305   *) ac_try_echo=$ac_try;;
31306 esac
31307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31308   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31309   ac_status=$?
31310   grep -v '^ *+' conftest.er1 >conftest.err
31311   rm -f conftest.er1
31312   cat conftest.err >&5
31313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31314   (exit $ac_status); } >/dev/null && {
31315          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31316          test ! -s conftest.err
31317        }; then
31318   ac_header_preproc=yes
31319 else
31320   echo "$as_me: failed program was:" >&5
31321 sed 's/^/| /' conftest.$ac_ext >&5
31322
31323   ac_header_preproc=no
31324 fi
31325
31326 rm -f conftest.err conftest.$ac_ext
31327 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31328 echo "${ECHO_T}$ac_header_preproc" >&6; }
31329
31330 # So?  What about this header?
31331 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31332   yes:no: )
31333     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
31334 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31335     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
31336 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
31337     ac_header_preproc=yes
31338     ;;
31339   no:yes:* )
31340     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
31341 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
31342     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&5
31343 echo "$as_me: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&2;}
31344     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
31345 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
31346     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&5
31347 echo "$as_me: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&2;}
31348     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
31349 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
31350     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
31351 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
31352
31353     ;;
31354 esac
31355 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
31356 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
31357 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
31358   echo $ECHO_N "(cached) $ECHO_C" >&6
31359 else
31360   ac_cv_header_sys_sysmacros_h=$ac_header_preproc
31361 fi
31362 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
31363 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
31364
31365 fi
31366 if test $ac_cv_header_sys_sysmacros_h = yes; then
31367
31368 cat >>confdefs.h <<\_ACEOF
31369 #define MAJOR_IN_SYSMACROS 1
31370 _ACEOF
31371
31372 fi
31373
31374
31375   fi
31376 fi
31377
31378
31379
31380
31381
31382
31383 ac_header_dirent=no
31384 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
31385   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
31386 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
31387 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
31388 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31389   echo $ECHO_N "(cached) $ECHO_C" >&6
31390 else
31391   cat >conftest.$ac_ext <<_ACEOF
31392 /* confdefs.h.  */
31393 _ACEOF
31394 cat confdefs.h >>conftest.$ac_ext
31395 cat >>conftest.$ac_ext <<_ACEOF
31396 /* end confdefs.h.  */
31397 #include <sys/types.h>
31398 #include <$ac_hdr>
31399
31400 int
31401 main ()
31402 {
31403 if ((DIR *) 0)
31404 return 0;
31405   ;
31406   return 0;
31407 }
31408 _ACEOF
31409 rm -f conftest.$ac_objext
31410 if { (ac_try="$ac_compile"
31411 case "(($ac_try" in
31412   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31413   *) ac_try_echo=$ac_try;;
31414 esac
31415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31416   (eval "$ac_compile") 2>conftest.er1
31417   ac_status=$?
31418   grep -v '^ *+' conftest.er1 >conftest.err
31419   rm -f conftest.er1
31420   cat conftest.err >&5
31421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31422   (exit $ac_status); } && {
31423          test -z "$ac_c_werror_flag" ||
31424          test ! -s conftest.err
31425        } && test -s conftest.$ac_objext; then
31426   eval "$as_ac_Header=yes"
31427 else
31428   echo "$as_me: failed program was:" >&5
31429 sed 's/^/| /' conftest.$ac_ext >&5
31430
31431         eval "$as_ac_Header=no"
31432 fi
31433
31434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31435 fi
31436 ac_res=`eval echo '${'$as_ac_Header'}'`
31437                { echo "$as_me:$LINENO: result: $ac_res" >&5
31438 echo "${ECHO_T}$ac_res" >&6; }
31439 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31440   cat >>confdefs.h <<_ACEOF
31441 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
31442 _ACEOF
31443
31444 ac_header_dirent=$ac_hdr; break
31445 fi
31446
31447 done
31448 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
31449 if test $ac_header_dirent = dirent.h; then
31450   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
31451 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
31452 if test "${ac_cv_search_opendir+set}" = set; then
31453   echo $ECHO_N "(cached) $ECHO_C" >&6
31454 else
31455   ac_func_search_save_LIBS=$LIBS
31456 cat >conftest.$ac_ext <<_ACEOF
31457 /* confdefs.h.  */
31458 _ACEOF
31459 cat confdefs.h >>conftest.$ac_ext
31460 cat >>conftest.$ac_ext <<_ACEOF
31461 /* end confdefs.h.  */
31462
31463 /* Override any GCC internal prototype to avoid an error.
31464    Use char because int might match the return type of a GCC
31465    builtin and then its argument prototype would still apply.  */
31466 #ifdef __cplusplus
31467 extern "C"
31468 #endif
31469 char opendir ();
31470 int
31471 main ()
31472 {
31473 return opendir ();
31474   ;
31475   return 0;
31476 }
31477 _ACEOF
31478 for ac_lib in '' dir; do
31479   if test -z "$ac_lib"; then
31480     ac_res="none required"
31481   else
31482     ac_res=-l$ac_lib
31483     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
31484   fi
31485   rm -f conftest.$ac_objext conftest$ac_exeext
31486 if { (ac_try="$ac_link"
31487 case "(($ac_try" in
31488   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31489   *) ac_try_echo=$ac_try;;
31490 esac
31491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31492   (eval "$ac_link") 2>conftest.er1
31493   ac_status=$?
31494   grep -v '^ *+' conftest.er1 >conftest.err
31495   rm -f conftest.er1
31496   cat conftest.err >&5
31497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31498   (exit $ac_status); } && {
31499          test -z "$ac_c_werror_flag" ||
31500          test ! -s conftest.err
31501        } && test -s conftest$ac_exeext &&
31502        $as_test_x conftest$ac_exeext; then
31503   ac_cv_search_opendir=$ac_res
31504 else
31505   echo "$as_me: failed program was:" >&5
31506 sed 's/^/| /' conftest.$ac_ext >&5
31507
31508
31509 fi
31510
31511 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31512       conftest$ac_exeext
31513   if test "${ac_cv_search_opendir+set}" = set; then
31514   break
31515 fi
31516 done
31517 if test "${ac_cv_search_opendir+set}" = set; then
31518   :
31519 else
31520   ac_cv_search_opendir=no
31521 fi
31522 rm conftest.$ac_ext
31523 LIBS=$ac_func_search_save_LIBS
31524 fi
31525 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
31526 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
31527 ac_res=$ac_cv_search_opendir
31528 if test "$ac_res" != no; then
31529   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
31530
31531 fi
31532
31533 else
31534   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
31535 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
31536 if test "${ac_cv_search_opendir+set}" = set; then
31537   echo $ECHO_N "(cached) $ECHO_C" >&6
31538 else
31539   ac_func_search_save_LIBS=$LIBS
31540 cat >conftest.$ac_ext <<_ACEOF
31541 /* confdefs.h.  */
31542 _ACEOF
31543 cat confdefs.h >>conftest.$ac_ext
31544 cat >>conftest.$ac_ext <<_ACEOF
31545 /* end confdefs.h.  */
31546
31547 /* Override any GCC internal prototype to avoid an error.
31548    Use char because int might match the return type of a GCC
31549    builtin and then its argument prototype would still apply.  */
31550 #ifdef __cplusplus
31551 extern "C"
31552 #endif
31553 char opendir ();
31554 int
31555 main ()
31556 {
31557 return opendir ();
31558   ;
31559   return 0;
31560 }
31561 _ACEOF
31562 for ac_lib in '' x; do
31563   if test -z "$ac_lib"; then
31564     ac_res="none required"
31565   else
31566     ac_res=-l$ac_lib
31567     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
31568   fi
31569   rm -f conftest.$ac_objext conftest$ac_exeext
31570 if { (ac_try="$ac_link"
31571 case "(($ac_try" in
31572   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31573   *) ac_try_echo=$ac_try;;
31574 esac
31575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31576   (eval "$ac_link") 2>conftest.er1
31577   ac_status=$?
31578   grep -v '^ *+' conftest.er1 >conftest.err
31579   rm -f conftest.er1
31580   cat conftest.err >&5
31581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31582   (exit $ac_status); } && {
31583          test -z "$ac_c_werror_flag" ||
31584          test ! -s conftest.err
31585        } && test -s conftest$ac_exeext &&
31586        $as_test_x conftest$ac_exeext; then
31587   ac_cv_search_opendir=$ac_res
31588 else
31589   echo "$as_me: failed program was:" >&5
31590 sed 's/^/| /' conftest.$ac_ext >&5
31591
31592
31593 fi
31594
31595 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31596       conftest$ac_exeext
31597   if test "${ac_cv_search_opendir+set}" = set; then
31598   break
31599 fi
31600 done
31601 if test "${ac_cv_search_opendir+set}" = set; then
31602   :
31603 else
31604   ac_cv_search_opendir=no
31605 fi
31606 rm conftest.$ac_ext
31607 LIBS=$ac_func_search_save_LIBS
31608 fi
31609 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
31610 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
31611 ac_res=$ac_cv_search_opendir
31612 if test "$ac_res" != no; then
31613   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
31614
31615 fi
31616
31617 fi
31618
31619 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
31620 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
31621 if test "${ac_cv_header_stat_broken+set}" = set; then
31622   echo $ECHO_N "(cached) $ECHO_C" >&6
31623 else
31624   cat >conftest.$ac_ext <<_ACEOF
31625 /* confdefs.h.  */
31626 _ACEOF
31627 cat confdefs.h >>conftest.$ac_ext
31628 cat >>conftest.$ac_ext <<_ACEOF
31629 /* end confdefs.h.  */
31630 #include <sys/types.h>
31631 #include <sys/stat.h>
31632
31633 #if defined S_ISBLK && defined S_IFDIR
31634 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
31635 #endif
31636
31637 #if defined S_ISBLK && defined S_IFCHR
31638 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
31639 #endif
31640
31641 #if defined S_ISLNK && defined S_IFREG
31642 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
31643 #endif
31644
31645 #if defined S_ISSOCK && defined S_IFREG
31646 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
31647 #endif
31648
31649 _ACEOF
31650 rm -f conftest.$ac_objext
31651 if { (ac_try="$ac_compile"
31652 case "(($ac_try" in
31653   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31654   *) ac_try_echo=$ac_try;;
31655 esac
31656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31657   (eval "$ac_compile") 2>conftest.er1
31658   ac_status=$?
31659   grep -v '^ *+' conftest.er1 >conftest.err
31660   rm -f conftest.er1
31661   cat conftest.err >&5
31662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31663   (exit $ac_status); } && {
31664          test -z "$ac_c_werror_flag" ||
31665          test ! -s conftest.err
31666        } && test -s conftest.$ac_objext; then
31667   ac_cv_header_stat_broken=no
31668 else
31669   echo "$as_me: failed program was:" >&5
31670 sed 's/^/| /' conftest.$ac_ext >&5
31671
31672         ac_cv_header_stat_broken=yes
31673 fi
31674
31675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31676 fi
31677 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
31678 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
31679 if test $ac_cv_header_stat_broken = yes; then
31680
31681 cat >>confdefs.h <<\_ACEOF
31682 #define STAT_MACROS_BROKEN 1
31683 _ACEOF
31684
31685 fi
31686
31687 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
31688 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
31689 if test "${ac_cv_header_sys_wait_h+set}" = set; then
31690   echo $ECHO_N "(cached) $ECHO_C" >&6
31691 else
31692   cat >conftest.$ac_ext <<_ACEOF
31693 /* confdefs.h.  */
31694 _ACEOF
31695 cat confdefs.h >>conftest.$ac_ext
31696 cat >>conftest.$ac_ext <<_ACEOF
31697 /* end confdefs.h.  */
31698 #include <sys/types.h>
31699 #include <sys/wait.h>
31700 #ifndef WEXITSTATUS
31701 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
31702 #endif
31703 #ifndef WIFEXITED
31704 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
31705 #endif
31706
31707 int
31708 main ()
31709 {
31710   int s;
31711   wait (&s);
31712   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
31713   ;
31714   return 0;
31715 }
31716 _ACEOF
31717 rm -f conftest.$ac_objext
31718 if { (ac_try="$ac_compile"
31719 case "(($ac_try" in
31720   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31721   *) ac_try_echo=$ac_try;;
31722 esac
31723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31724   (eval "$ac_compile") 2>conftest.er1
31725   ac_status=$?
31726   grep -v '^ *+' conftest.er1 >conftest.err
31727   rm -f conftest.er1
31728   cat conftest.err >&5
31729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31730   (exit $ac_status); } && {
31731          test -z "$ac_c_werror_flag" ||
31732          test ! -s conftest.err
31733        } && test -s conftest.$ac_objext; then
31734   ac_cv_header_sys_wait_h=yes
31735 else
31736   echo "$as_me: failed program was:" >&5
31737 sed 's/^/| /' conftest.$ac_ext >&5
31738
31739         ac_cv_header_sys_wait_h=no
31740 fi
31741
31742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31743 fi
31744 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
31745 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
31746 if test $ac_cv_header_sys_wait_h = yes; then
31747
31748 cat >>confdefs.h <<\_ACEOF
31749 #define HAVE_SYS_WAIT_H 1
31750 _ACEOF
31751
31752 fi
31753
31754 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
31755 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
31756 if test "${ac_cv_header_time+set}" = set; then
31757   echo $ECHO_N "(cached) $ECHO_C" >&6
31758 else
31759   cat >conftest.$ac_ext <<_ACEOF
31760 /* confdefs.h.  */
31761 _ACEOF
31762 cat confdefs.h >>conftest.$ac_ext
31763 cat >>conftest.$ac_ext <<_ACEOF
31764 /* end confdefs.h.  */
31765 #include <sys/types.h>
31766 #include <sys/time.h>
31767 #include <time.h>
31768
31769 int
31770 main ()
31771 {
31772 if ((struct tm *) 0)
31773 return 0;
31774   ;
31775   return 0;
31776 }
31777 _ACEOF
31778 rm -f conftest.$ac_objext
31779 if { (ac_try="$ac_compile"
31780 case "(($ac_try" in
31781   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31782   *) ac_try_echo=$ac_try;;
31783 esac
31784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31785   (eval "$ac_compile") 2>conftest.er1
31786   ac_status=$?
31787   grep -v '^ *+' conftest.er1 >conftest.err
31788   rm -f conftest.er1
31789   cat conftest.err >&5
31790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31791   (exit $ac_status); } && {
31792          test -z "$ac_c_werror_flag" ||
31793          test ! -s conftest.err
31794        } && test -s conftest.$ac_objext; then
31795   ac_cv_header_time=yes
31796 else
31797   echo "$as_me: failed program was:" >&5
31798 sed 's/^/| /' conftest.$ac_ext >&5
31799
31800         ac_cv_header_time=no
31801 fi
31802
31803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31804 fi
31805 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
31806 echo "${ECHO_T}$ac_cv_header_time" >&6; }
31807 if test $ac_cv_header_time = yes; then
31808
31809 cat >>confdefs.h <<\_ACEOF
31810 #define TIME_WITH_SYS_TIME 1
31811 _ACEOF
31812
31813 fi
31814
31815 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
31816 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
31817 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
31818   echo $ECHO_N "(cached) $ECHO_C" >&6
31819 else
31820   cat >conftest.$ac_ext <<_ACEOF
31821 /* confdefs.h.  */
31822 _ACEOF
31823 cat confdefs.h >>conftest.$ac_ext
31824 cat >>conftest.$ac_ext <<_ACEOF
31825 /* end confdefs.h.  */
31826 $ac_includes_default
31827 int
31828 main ()
31829 {
31830 static struct stat ac_aggr;
31831 if (ac_aggr.st_blksize)
31832 return 0;
31833   ;
31834   return 0;
31835 }
31836 _ACEOF
31837 rm -f conftest.$ac_objext
31838 if { (ac_try="$ac_compile"
31839 case "(($ac_try" in
31840   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31841   *) ac_try_echo=$ac_try;;
31842 esac
31843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31844   (eval "$ac_compile") 2>conftest.er1
31845   ac_status=$?
31846   grep -v '^ *+' conftest.er1 >conftest.err
31847   rm -f conftest.er1
31848   cat conftest.err >&5
31849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31850   (exit $ac_status); } && {
31851          test -z "$ac_c_werror_flag" ||
31852          test ! -s conftest.err
31853        } && test -s conftest.$ac_objext; then
31854   ac_cv_member_struct_stat_st_blksize=yes
31855 else
31856   echo "$as_me: failed program was:" >&5
31857 sed 's/^/| /' conftest.$ac_ext >&5
31858
31859         cat >conftest.$ac_ext <<_ACEOF
31860 /* confdefs.h.  */
31861 _ACEOF
31862 cat confdefs.h >>conftest.$ac_ext
31863 cat >>conftest.$ac_ext <<_ACEOF
31864 /* end confdefs.h.  */
31865 $ac_includes_default
31866 int
31867 main ()
31868 {
31869 static struct stat ac_aggr;
31870 if (sizeof ac_aggr.st_blksize)
31871 return 0;
31872   ;
31873   return 0;
31874 }
31875 _ACEOF
31876 rm -f conftest.$ac_objext
31877 if { (ac_try="$ac_compile"
31878 case "(($ac_try" in
31879   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31880   *) ac_try_echo=$ac_try;;
31881 esac
31882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31883   (eval "$ac_compile") 2>conftest.er1
31884   ac_status=$?
31885   grep -v '^ *+' conftest.er1 >conftest.err
31886   rm -f conftest.er1
31887   cat conftest.err >&5
31888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31889   (exit $ac_status); } && {
31890          test -z "$ac_c_werror_flag" ||
31891          test ! -s conftest.err
31892        } && test -s conftest.$ac_objext; then
31893   ac_cv_member_struct_stat_st_blksize=yes
31894 else
31895   echo "$as_me: failed program was:" >&5
31896 sed 's/^/| /' conftest.$ac_ext >&5
31897
31898         ac_cv_member_struct_stat_st_blksize=no
31899 fi
31900
31901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31902 fi
31903
31904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31905 fi
31906 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
31907 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
31908 if test $ac_cv_member_struct_stat_st_blksize = yes; then
31909
31910 cat >>confdefs.h <<_ACEOF
31911 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
31912 _ACEOF
31913
31914
31915 cat >>confdefs.h <<\_ACEOF
31916 #define HAVE_ST_BLKSIZE 1
31917 _ACEOF
31918
31919 fi
31920
31921
31922 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
31923 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
31924 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
31925   echo $ECHO_N "(cached) $ECHO_C" >&6
31926 else
31927   cat >conftest.$ac_ext <<_ACEOF
31928 /* confdefs.h.  */
31929 _ACEOF
31930 cat confdefs.h >>conftest.$ac_ext
31931 cat >>conftest.$ac_ext <<_ACEOF
31932 /* end confdefs.h.  */
31933 $ac_includes_default
31934 int
31935 main ()
31936 {
31937 static struct stat ac_aggr;
31938 if (ac_aggr.st_blocks)
31939 return 0;
31940   ;
31941   return 0;
31942 }
31943 _ACEOF
31944 rm -f conftest.$ac_objext
31945 if { (ac_try="$ac_compile"
31946 case "(($ac_try" in
31947   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31948   *) ac_try_echo=$ac_try;;
31949 esac
31950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31951   (eval "$ac_compile") 2>conftest.er1
31952   ac_status=$?
31953   grep -v '^ *+' conftest.er1 >conftest.err
31954   rm -f conftest.er1
31955   cat conftest.err >&5
31956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31957   (exit $ac_status); } && {
31958          test -z "$ac_c_werror_flag" ||
31959          test ! -s conftest.err
31960        } && test -s conftest.$ac_objext; then
31961   ac_cv_member_struct_stat_st_blocks=yes
31962 else
31963   echo "$as_me: failed program was:" >&5
31964 sed 's/^/| /' conftest.$ac_ext >&5
31965
31966         cat >conftest.$ac_ext <<_ACEOF
31967 /* confdefs.h.  */
31968 _ACEOF
31969 cat confdefs.h >>conftest.$ac_ext
31970 cat >>conftest.$ac_ext <<_ACEOF
31971 /* end confdefs.h.  */
31972 $ac_includes_default
31973 int
31974 main ()
31975 {
31976 static struct stat ac_aggr;
31977 if (sizeof ac_aggr.st_blocks)
31978 return 0;
31979   ;
31980   return 0;
31981 }
31982 _ACEOF
31983 rm -f conftest.$ac_objext
31984 if { (ac_try="$ac_compile"
31985 case "(($ac_try" in
31986   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31987   *) ac_try_echo=$ac_try;;
31988 esac
31989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31990   (eval "$ac_compile") 2>conftest.er1
31991   ac_status=$?
31992   grep -v '^ *+' conftest.er1 >conftest.err
31993   rm -f conftest.er1
31994   cat conftest.err >&5
31995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31996   (exit $ac_status); } && {
31997          test -z "$ac_c_werror_flag" ||
31998          test ! -s conftest.err
31999        } && test -s conftest.$ac_objext; then
32000   ac_cv_member_struct_stat_st_blocks=yes
32001 else
32002   echo "$as_me: failed program was:" >&5
32003 sed 's/^/| /' conftest.$ac_ext >&5
32004
32005         ac_cv_member_struct_stat_st_blocks=no
32006 fi
32007
32008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32009 fi
32010
32011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32012 fi
32013 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
32014 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
32015 if test $ac_cv_member_struct_stat_st_blocks = yes; then
32016
32017 cat >>confdefs.h <<_ACEOF
32018 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
32019 _ACEOF
32020
32021
32022 cat >>confdefs.h <<\_ACEOF
32023 #define HAVE_ST_BLOCKS 1
32024 _ACEOF
32025
32026 else
32027   case " $LIBOBJS " in
32028   *" fileblocks.$ac_objext "* ) ;;
32029   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
32030  ;;
32031 esac
32032
32033 fi
32034
32035
32036 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
32037 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
32038 if test "${ac_cv_struct_tm+set}" = set; then
32039   echo $ECHO_N "(cached) $ECHO_C" >&6
32040 else
32041   cat >conftest.$ac_ext <<_ACEOF
32042 /* confdefs.h.  */
32043 _ACEOF
32044 cat confdefs.h >>conftest.$ac_ext
32045 cat >>conftest.$ac_ext <<_ACEOF
32046 /* end confdefs.h.  */
32047 #include <sys/types.h>
32048 #include <time.h>
32049
32050 int
32051 main ()
32052 {
32053 struct tm tm;
32054                                      int *p = &tm.tm_sec;
32055                                      return !p;
32056   ;
32057   return 0;
32058 }
32059 _ACEOF
32060 rm -f conftest.$ac_objext
32061 if { (ac_try="$ac_compile"
32062 case "(($ac_try" in
32063   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32064   *) ac_try_echo=$ac_try;;
32065 esac
32066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32067   (eval "$ac_compile") 2>conftest.er1
32068   ac_status=$?
32069   grep -v '^ *+' conftest.er1 >conftest.err
32070   rm -f conftest.er1
32071   cat conftest.err >&5
32072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32073   (exit $ac_status); } && {
32074          test -z "$ac_c_werror_flag" ||
32075          test ! -s conftest.err
32076        } && test -s conftest.$ac_objext; then
32077   ac_cv_struct_tm=time.h
32078 else
32079   echo "$as_me: failed program was:" >&5
32080 sed 's/^/| /' conftest.$ac_ext >&5
32081
32082         ac_cv_struct_tm=sys/time.h
32083 fi
32084
32085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32086 fi
32087 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
32088 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
32089 if test $ac_cv_struct_tm = sys/time.h; then
32090
32091 cat >>confdefs.h <<\_ACEOF
32092 #define TM_IN_SYS_TIME 1
32093 _ACEOF
32094
32095 fi
32096
32097 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
32098 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
32099 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
32100   echo $ECHO_N "(cached) $ECHO_C" >&6
32101 else
32102   cat >conftest.$ac_ext <<_ACEOF
32103 /* confdefs.h.  */
32104 _ACEOF
32105 cat confdefs.h >>conftest.$ac_ext
32106 cat >>conftest.$ac_ext <<_ACEOF
32107 /* end confdefs.h.  */
32108 #include <sys/types.h>
32109 #include <$ac_cv_struct_tm>
32110
32111
32112 int
32113 main ()
32114 {
32115 static struct tm ac_aggr;
32116 if (ac_aggr.tm_zone)
32117 return 0;
32118   ;
32119   return 0;
32120 }
32121 _ACEOF
32122 rm -f conftest.$ac_objext
32123 if { (ac_try="$ac_compile"
32124 case "(($ac_try" in
32125   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32126   *) ac_try_echo=$ac_try;;
32127 esac
32128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32129   (eval "$ac_compile") 2>conftest.er1
32130   ac_status=$?
32131   grep -v '^ *+' conftest.er1 >conftest.err
32132   rm -f conftest.er1
32133   cat conftest.err >&5
32134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32135   (exit $ac_status); } && {
32136          test -z "$ac_c_werror_flag" ||
32137          test ! -s conftest.err
32138        } && test -s conftest.$ac_objext; then
32139   ac_cv_member_struct_tm_tm_zone=yes
32140 else
32141   echo "$as_me: failed program was:" >&5
32142 sed 's/^/| /' conftest.$ac_ext >&5
32143
32144         cat >conftest.$ac_ext <<_ACEOF
32145 /* confdefs.h.  */
32146 _ACEOF
32147 cat confdefs.h >>conftest.$ac_ext
32148 cat >>conftest.$ac_ext <<_ACEOF
32149 /* end confdefs.h.  */
32150 #include <sys/types.h>
32151 #include <$ac_cv_struct_tm>
32152
32153
32154 int
32155 main ()
32156 {
32157 static struct tm ac_aggr;
32158 if (sizeof ac_aggr.tm_zone)
32159 return 0;
32160   ;
32161   return 0;
32162 }
32163 _ACEOF
32164 rm -f conftest.$ac_objext
32165 if { (ac_try="$ac_compile"
32166 case "(($ac_try" in
32167   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32168   *) ac_try_echo=$ac_try;;
32169 esac
32170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32171   (eval "$ac_compile") 2>conftest.er1
32172   ac_status=$?
32173   grep -v '^ *+' conftest.er1 >conftest.err
32174   rm -f conftest.er1
32175   cat conftest.err >&5
32176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32177   (exit $ac_status); } && {
32178          test -z "$ac_c_werror_flag" ||
32179          test ! -s conftest.err
32180        } && test -s conftest.$ac_objext; then
32181   ac_cv_member_struct_tm_tm_zone=yes
32182 else
32183   echo "$as_me: failed program was:" >&5
32184 sed 's/^/| /' conftest.$ac_ext >&5
32185
32186         ac_cv_member_struct_tm_tm_zone=no
32187 fi
32188
32189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32190 fi
32191
32192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32193 fi
32194 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
32195 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
32196 if test $ac_cv_member_struct_tm_tm_zone = yes; then
32197
32198 cat >>confdefs.h <<_ACEOF
32199 #define HAVE_STRUCT_TM_TM_ZONE 1
32200 _ACEOF
32201
32202
32203 fi
32204
32205 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
32206
32207 cat >>confdefs.h <<\_ACEOF
32208 #define HAVE_TM_ZONE 1
32209 _ACEOF
32210
32211 else
32212   { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
32213 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
32214 if test "${ac_cv_have_decl_tzname+set}" = set; then
32215   echo $ECHO_N "(cached) $ECHO_C" >&6
32216 else
32217   cat >conftest.$ac_ext <<_ACEOF
32218 /* confdefs.h.  */
32219 _ACEOF
32220 cat confdefs.h >>conftest.$ac_ext
32221 cat >>conftest.$ac_ext <<_ACEOF
32222 /* end confdefs.h.  */
32223 #include <time.h>
32224
32225 int
32226 main ()
32227 {
32228 #ifndef tzname
32229   (void) tzname;
32230 #endif
32231
32232   ;
32233   return 0;
32234 }
32235 _ACEOF
32236 rm -f conftest.$ac_objext
32237 if { (ac_try="$ac_compile"
32238 case "(($ac_try" in
32239   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32240   *) ac_try_echo=$ac_try;;
32241 esac
32242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32243   (eval "$ac_compile") 2>conftest.er1
32244   ac_status=$?
32245   grep -v '^ *+' conftest.er1 >conftest.err
32246   rm -f conftest.er1
32247   cat conftest.err >&5
32248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32249   (exit $ac_status); } && {
32250          test -z "$ac_c_werror_flag" ||
32251          test ! -s conftest.err
32252        } && test -s conftest.$ac_objext; then
32253   ac_cv_have_decl_tzname=yes
32254 else
32255   echo "$as_me: failed program was:" >&5
32256 sed 's/^/| /' conftest.$ac_ext >&5
32257
32258         ac_cv_have_decl_tzname=no
32259 fi
32260
32261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32262 fi
32263 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
32264 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
32265 if test $ac_cv_have_decl_tzname = yes; then
32266
32267 cat >>confdefs.h <<_ACEOF
32268 #define HAVE_DECL_TZNAME 1
32269 _ACEOF
32270
32271
32272 else
32273   cat >>confdefs.h <<_ACEOF
32274 #define HAVE_DECL_TZNAME 0
32275 _ACEOF
32276
32277
32278 fi
32279
32280
32281   { echo "$as_me:$LINENO: checking for tzname" >&5
32282 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
32283 if test "${ac_cv_var_tzname+set}" = set; then
32284   echo $ECHO_N "(cached) $ECHO_C" >&6
32285 else
32286   cat >conftest.$ac_ext <<_ACEOF
32287 /* confdefs.h.  */
32288 _ACEOF
32289 cat confdefs.h >>conftest.$ac_ext
32290 cat >>conftest.$ac_ext <<_ACEOF
32291 /* end confdefs.h.  */
32292 #include <time.h>
32293 #if !HAVE_DECL_TZNAME
32294 extern char *tzname[];
32295 #endif
32296
32297 int
32298 main ()
32299 {
32300 return tzname[0][0];
32301   ;
32302   return 0;
32303 }
32304 _ACEOF
32305 rm -f conftest.$ac_objext conftest$ac_exeext
32306 if { (ac_try="$ac_link"
32307 case "(($ac_try" in
32308   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32309   *) ac_try_echo=$ac_try;;
32310 esac
32311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32312   (eval "$ac_link") 2>conftest.er1
32313   ac_status=$?
32314   grep -v '^ *+' conftest.er1 >conftest.err
32315   rm -f conftest.er1
32316   cat conftest.err >&5
32317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32318   (exit $ac_status); } && {
32319          test -z "$ac_c_werror_flag" ||
32320          test ! -s conftest.err
32321        } && test -s conftest$ac_exeext &&
32322        $as_test_x conftest$ac_exeext; then
32323   ac_cv_var_tzname=yes
32324 else
32325   echo "$as_me: failed program was:" >&5
32326 sed 's/^/| /' conftest.$ac_ext >&5
32327
32328         ac_cv_var_tzname=no
32329 fi
32330
32331 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32332       conftest$ac_exeext conftest.$ac_ext
32333 fi
32334 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
32335 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
32336   if test $ac_cv_var_tzname = yes; then
32337
32338 cat >>confdefs.h <<\_ACEOF
32339 #define HAVE_TZNAME 1
32340 _ACEOF
32341
32342   fi
32343 fi
32344
32345
32346 { echo "$as_me:$LINENO: checking for utime.h" >&5
32347 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6; }
32348 if test "${ba_cv_header_utime_h+set}" = set; then
32349   echo $ECHO_N "(cached) $ECHO_C" >&6
32350 else
32351
32352        cat >conftest.$ac_ext <<_ACEOF
32353 /* confdefs.h.  */
32354 _ACEOF
32355 cat confdefs.h >>conftest.$ac_ext
32356 cat >>conftest.$ac_ext <<_ACEOF
32357 /* end confdefs.h.  */
32358
32359               #include <sys/types.h>
32360               #include <utime.h>
32361
32362 int
32363 main ()
32364 {
32365
32366               struct utimbuf foo
32367
32368   ;
32369   return 0;
32370 }
32371 _ACEOF
32372 rm -f conftest.$ac_objext
32373 if { (ac_try="$ac_compile"
32374 case "(($ac_try" in
32375   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32376   *) ac_try_echo=$ac_try;;
32377 esac
32378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32379   (eval "$ac_compile") 2>conftest.er1
32380   ac_status=$?
32381   grep -v '^ *+' conftest.er1 >conftest.err
32382   rm -f conftest.er1
32383   cat conftest.err >&5
32384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32385   (exit $ac_status); } && {
32386          test -z "$ac_c_werror_flag" ||
32387          test ! -s conftest.err
32388        } && test -s conftest.$ac_objext; then
32389
32390               ba_cv_header_utime_h=yes
32391
32392 else
32393   echo "$as_me: failed program was:" >&5
32394 sed 's/^/| /' conftest.$ac_ext >&5
32395
32396
32397               ba_cv_header_utime_h=no
32398
32399
32400 fi
32401
32402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32403
32404
32405 fi
32406 { echo "$as_me:$LINENO: result: $ba_cv_header_utime_h" >&5
32407 echo "${ECHO_T}$ba_cv_header_utime_h" >&6; }
32408 test $ba_cv_header_utime_h = yes &&
32409 cat >>confdefs.h <<\_ACEOF
32410 #define HAVE_UTIME_H 1
32411 _ACEOF
32412
32413
32414 { echo "$as_me:$LINENO: checking for socklen_t" >&5
32415 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
32416 if test "${ba_cv_header_socklen_t+set}" = set; then
32417   echo $ECHO_N "(cached) $ECHO_C" >&6
32418 else
32419
32420        cat >conftest.$ac_ext <<_ACEOF
32421 /* confdefs.h.  */
32422 _ACEOF
32423 cat confdefs.h >>conftest.$ac_ext
32424 cat >>conftest.$ac_ext <<_ACEOF
32425 /* end confdefs.h.  */
32426
32427               #include <sys/types.h>
32428               #include <sys/socket.h>
32429
32430 int
32431 main ()
32432 {
32433
32434               socklen_t x
32435
32436   ;
32437   return 0;
32438 }
32439 _ACEOF
32440 rm -f conftest.$ac_objext
32441 if { (ac_try="$ac_compile"
32442 case "(($ac_try" in
32443   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32444   *) ac_try_echo=$ac_try;;
32445 esac
32446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32447   (eval "$ac_compile") 2>conftest.er1
32448   ac_status=$?
32449   grep -v '^ *+' conftest.er1 >conftest.err
32450   rm -f conftest.er1
32451   cat conftest.err >&5
32452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32453   (exit $ac_status); } && {
32454          test -z "$ac_c_werror_flag" ||
32455          test ! -s conftest.err
32456        } && test -s conftest.$ac_objext; then
32457
32458              ba_cv_header_socklen_t=yes
32459
32460 else
32461   echo "$as_me: failed program was:" >&5
32462 sed 's/^/| /' conftest.$ac_ext >&5
32463
32464
32465              ba_cv_header_socklen_t=no
32466
32467
32468 fi
32469
32470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32471
32472
32473 fi
32474 { echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
32475 echo "${ECHO_T}$ba_cv_header_socklen_t" >&6; }
32476 test $ba_cv_header_socklen_t = yes && cat >>confdefs.h <<\_ACEOF
32477 #define HAVE_SOCKLEN_T 1
32478 _ACEOF
32479
32480
32481 ac_ext=cpp
32482 ac_cpp='$CXXCPP $CPPFLAGS'
32483 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32484 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32485 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32486
32487 { echo "$as_me:$LINENO: checking for typeof" >&5
32488 echo $ECHO_N "checking for typeof... $ECHO_C" >&6; }
32489 if test "${ba_cv_have_typeof+set}" = set; then
32490   echo $ECHO_N "(cached) $ECHO_C" >&6
32491 else
32492
32493        if test "$cross_compiling" = yes; then
32494
32495               ba_cv_have_typeof=no
32496
32497
32498 else
32499   cat >conftest.$ac_ext <<_ACEOF
32500 /* confdefs.h.  */
32501 _ACEOF
32502 cat confdefs.h >>conftest.$ac_ext
32503 cat >>conftest.$ac_ext <<_ACEOF
32504 /* end confdefs.h.  */
32505
32506               main(){char *a = 0; a = (typeof a)a;}
32507
32508 _ACEOF
32509 rm -f conftest$ac_exeext
32510 if { (ac_try="$ac_link"
32511 case "(($ac_try" in
32512   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32513   *) ac_try_echo=$ac_try;;
32514 esac
32515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32516   (eval "$ac_link") 2>&5
32517   ac_status=$?
32518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32519   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32520   { (case "(($ac_try" in
32521   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32522   *) ac_try_echo=$ac_try;;
32523 esac
32524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32525   (eval "$ac_try") 2>&5
32526   ac_status=$?
32527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32528   (exit $ac_status); }; }; then
32529
32530               ba_cv_have_typeof=yes
32531
32532 else
32533   echo "$as_me: program exited with status $ac_status" >&5
32534 echo "$as_me: failed program was:" >&5
32535 sed 's/^/| /' conftest.$ac_ext >&5
32536
32537 ( exit $ac_status )
32538
32539               ba_cv_have_typeof=no
32540
32541 fi
32542 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32543 fi
32544
32545
32546
32547
32548 fi
32549 { echo "$as_me:$LINENO: result: $ba_cv_have_typeof" >&5
32550 echo "${ECHO_T}$ba_cv_have_typeof" >&6; }
32551 test $ba_cv_have_typeof = yes &&
32552 cat >>confdefs.h <<\_ACEOF
32553 #define HAVE_TYPEOF 1
32554 _ACEOF
32555
32556 ac_ext=c
32557 ac_cpp='$CPP $CPPFLAGS'
32558 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32559 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32560 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32561
32562
32563 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
32564 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
32565 if test "${ac_cv_c_const+set}" = set; then
32566   echo $ECHO_N "(cached) $ECHO_C" >&6
32567 else
32568   cat >conftest.$ac_ext <<_ACEOF
32569 /* confdefs.h.  */
32570 _ACEOF
32571 cat confdefs.h >>conftest.$ac_ext
32572 cat >>conftest.$ac_ext <<_ACEOF
32573 /* end confdefs.h.  */
32574
32575 int
32576 main ()
32577 {
32578 /* FIXME: Include the comments suggested by Paul. */
32579 #ifndef __cplusplus
32580   /* Ultrix mips cc rejects this.  */
32581   typedef int charset[2];
32582   const charset cs;
32583   /* SunOS 4.1.1 cc rejects this.  */
32584   char const *const *pcpcc;
32585   char **ppc;
32586   /* NEC SVR4.0.2 mips cc rejects this.  */
32587   struct point {int x, y;};
32588   static struct point const zero = {0,0};
32589   /* AIX XL C 1.02.0.0 rejects this.
32590      It does not let you subtract one const X* pointer from another in
32591      an arm of an if-expression whose if-part is not a constant
32592      expression */
32593   const char *g = "string";
32594   pcpcc = &g + (g ? g-g : 0);
32595   /* HPUX 7.0 cc rejects these. */
32596   ++pcpcc;
32597   ppc = (char**) pcpcc;
32598   pcpcc = (char const *const *) ppc;
32599   { /* SCO 3.2v4 cc rejects this.  */
32600     char *t;
32601     char const *s = 0 ? (char *) 0 : (char const *) 0;
32602
32603     *t++ = 0;
32604     if (s) return 0;
32605   }
32606   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
32607     int x[] = {25, 17};
32608     const int *foo = &x[0];
32609     ++foo;
32610   }
32611   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
32612     typedef const int *iptr;
32613     iptr p = 0;
32614     ++p;
32615   }
32616   { /* AIX XL C 1.02.0.0 rejects this saying
32617        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
32618     struct s { int j; const int *ap[3]; };
32619     struct s *b; b->j = 5;
32620   }
32621   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
32622     const int foo = 10;
32623     if (!foo) return 0;
32624   }
32625   return !cs[0] && !zero.x;
32626 #endif
32627
32628   ;
32629   return 0;
32630 }
32631 _ACEOF
32632 rm -f conftest.$ac_objext
32633 if { (ac_try="$ac_compile"
32634 case "(($ac_try" in
32635   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32636   *) ac_try_echo=$ac_try;;
32637 esac
32638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32639   (eval "$ac_compile") 2>conftest.er1
32640   ac_status=$?
32641   grep -v '^ *+' conftest.er1 >conftest.err
32642   rm -f conftest.er1
32643   cat conftest.err >&5
32644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32645   (exit $ac_status); } && {
32646          test -z "$ac_c_werror_flag" ||
32647          test ! -s conftest.err
32648        } && test -s conftest.$ac_objext; then
32649   ac_cv_c_const=yes
32650 else
32651   echo "$as_me: failed program was:" >&5
32652 sed 's/^/| /' conftest.$ac_ext >&5
32653
32654         ac_cv_c_const=no
32655 fi
32656
32657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32658 fi
32659 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
32660 echo "${ECHO_T}$ac_cv_c_const" >&6; }
32661 if test $ac_cv_c_const = no; then
32662
32663 cat >>confdefs.h <<\_ACEOF
32664 #define const
32665 _ACEOF
32666
32667 fi
32668
32669
32670 { echo "$as_me:$LINENO: checking how to get filesystem type" >&5
32671 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" >&6; }
32672 fstype=no
32673 # The order of these tests is important.
32674 cat >conftest.$ac_ext <<_ACEOF
32675 /* confdefs.h.  */
32676 _ACEOF
32677 cat confdefs.h >>conftest.$ac_ext
32678 cat >>conftest.$ac_ext <<_ACEOF
32679 /* end confdefs.h.  */
32680
32681        #include <sys/statvfs.h>
32682        #include <sys/fstyp.h>
32683
32684 _ACEOF
32685 if { (ac_try="$ac_cpp conftest.$ac_ext"
32686 case "(($ac_try" in
32687   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32688   *) ac_try_echo=$ac_try;;
32689 esac
32690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32691   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32692   ac_status=$?
32693   grep -v '^ *+' conftest.er1 >conftest.err
32694   rm -f conftest.er1
32695   cat conftest.err >&5
32696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32697   (exit $ac_status); } >/dev/null && {
32698          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32699          test ! -s conftest.err
32700        }; then
32701   cat >>confdefs.h <<\_ACEOF
32702 #define FSTYPE_STATVFS 1
32703 _ACEOF
32704  fstype=SVR4
32705
32706 else
32707   echo "$as_me: failed program was:" >&5
32708 sed 's/^/| /' conftest.$ac_ext >&5
32709
32710
32711 fi
32712
32713 rm -f conftest.err conftest.$ac_ext
32714 if test $fstype = no; then
32715    cat >conftest.$ac_ext <<_ACEOF
32716 /* confdefs.h.  */
32717 _ACEOF
32718 cat confdefs.h >>conftest.$ac_ext
32719 cat >>conftest.$ac_ext <<_ACEOF
32720 /* end confdefs.h.  */
32721
32722           #include <sys/statfs.h>
32723           #include <sys/fstyp.h>
32724
32725 _ACEOF
32726 if { (ac_try="$ac_cpp conftest.$ac_ext"
32727 case "(($ac_try" in
32728   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32729   *) ac_try_echo=$ac_try;;
32730 esac
32731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32732   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32733   ac_status=$?
32734   grep -v '^ *+' conftest.er1 >conftest.err
32735   rm -f conftest.er1
32736   cat conftest.err >&5
32737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32738   (exit $ac_status); } >/dev/null && {
32739          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32740          test ! -s conftest.err
32741        }; then
32742   cat >>confdefs.h <<\_ACEOF
32743 #define FSTYPE_USG_STATFS 1
32744 _ACEOF
32745  fstype=SVR3
32746
32747 else
32748   echo "$as_me: failed program was:" >&5
32749 sed 's/^/| /' conftest.$ac_ext >&5
32750
32751
32752 fi
32753
32754 rm -f conftest.err conftest.$ac_ext
32755 fi
32756 if test $fstype = no; then
32757    cat >conftest.$ac_ext <<_ACEOF
32758 /* confdefs.h.  */
32759 _ACEOF
32760 cat confdefs.h >>conftest.$ac_ext
32761 cat >>conftest.$ac_ext <<_ACEOF
32762 /* end confdefs.h.  */
32763
32764           #include <sys/statfs.h>
32765           #include <sys/vmount.h>
32766
32767 _ACEOF
32768 if { (ac_try="$ac_cpp conftest.$ac_ext"
32769 case "(($ac_try" in
32770   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32771   *) ac_try_echo=$ac_try;;
32772 esac
32773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32774   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32775   ac_status=$?
32776   grep -v '^ *+' conftest.er1 >conftest.err
32777   rm -f conftest.er1
32778   cat conftest.err >&5
32779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32780   (exit $ac_status); } >/dev/null && {
32781          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32782          test ! -s conftest.err
32783        }; then
32784   cat >>confdefs.h <<\_ACEOF
32785 #define FSTYPE_AIX_STATFS 1
32786 _ACEOF
32787  fstype=AIX
32788
32789 else
32790   echo "$as_me: failed program was:" >&5
32791 sed 's/^/| /' conftest.$ac_ext >&5
32792
32793
32794 fi
32795
32796 rm -f conftest.err conftest.$ac_ext
32797 fi
32798 if test $fstype = no; then
32799    cat >conftest.$ac_ext <<_ACEOF
32800 /* confdefs.h.  */
32801 _ACEOF
32802 cat confdefs.h >>conftest.$ac_ext
32803 cat >>conftest.$ac_ext <<_ACEOF
32804 /* end confdefs.h.  */
32805
32806           #include <mntent.h>
32807
32808 _ACEOF
32809 if { (ac_try="$ac_cpp conftest.$ac_ext"
32810 case "(($ac_try" in
32811   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32812   *) ac_try_echo=$ac_try;;
32813 esac
32814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32815   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32816   ac_status=$?
32817   grep -v '^ *+' conftest.er1 >conftest.err
32818   rm -f conftest.er1
32819   cat conftest.err >&5
32820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32821   (exit $ac_status); } >/dev/null && {
32822          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32823          test ! -s conftest.err
32824        }; then
32825   cat >>confdefs.h <<\_ACEOF
32826 #define FSTYPE_MNTENT 1
32827 _ACEOF
32828  fstype=4.3BSD
32829
32830 else
32831   echo "$as_me: failed program was:" >&5
32832 sed 's/^/| /' conftest.$ac_ext >&5
32833
32834
32835 fi
32836
32837 rm -f conftest.err conftest.$ac_ext
32838 fi
32839 if test $fstype = no; then
32840    cat >conftest.$ac_ext <<_ACEOF
32841 /* confdefs.h.  */
32842 _ACEOF
32843 cat confdefs.h >>conftest.$ac_ext
32844 cat >>conftest.$ac_ext <<_ACEOF
32845 /* end confdefs.h.  */
32846 #include <sys/mount.h>
32847
32848 _ACEOF
32849 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32850   $EGREP "f_type;" >/dev/null 2>&1; then
32851   cat >>confdefs.h <<\_ACEOF
32852 #define FSTYPE_STATFS 1
32853 _ACEOF
32854  fstype=4.4BSD/OSF1
32855 fi
32856 rm -f conftest*
32857
32858 fi
32859 if test $fstype = no; then
32860    cat >conftest.$ac_ext <<_ACEOF
32861 /* confdefs.h.  */
32862 _ACEOF
32863 cat confdefs.h >>conftest.$ac_ext
32864 cat >>conftest.$ac_ext <<_ACEOF
32865 /* end confdefs.h.  */
32866
32867           #include <sys/mount.h>
32868           #include <sys/fs_types.h>
32869
32870 _ACEOF
32871 if { (ac_try="$ac_cpp conftest.$ac_ext"
32872 case "(($ac_try" in
32873   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32874   *) ac_try_echo=$ac_try;;
32875 esac
32876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32877   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32878   ac_status=$?
32879   grep -v '^ *+' conftest.er1 >conftest.err
32880   rm -f conftest.er1
32881   cat conftest.err >&5
32882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32883   (exit $ac_status); } >/dev/null && {
32884          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32885          test ! -s conftest.err
32886        }; then
32887   cat >>confdefs.h <<\_ACEOF
32888 #define FSTYPE_GETMNT 1
32889 _ACEOF
32890  fstype=Ultrix
32891
32892 else
32893   echo "$as_me: failed program was:" >&5
32894 sed 's/^/| /' conftest.$ac_ext >&5
32895
32896
32897 fi
32898
32899 rm -f conftest.err conftest.$ac_ext
32900 fi
32901 { echo "$as_me:$LINENO: result: $fstype" >&5
32902 echo "${ECHO_T}$fstype" >&6; }
32903
32904 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
32905   { echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
32906 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6; }
32907 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
32908   echo $ECHO_N "(cached) $ECHO_C" >&6
32909 fi
32910 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
32911 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6; }
32912 else
32913   # Is the header compilable?
32914 { echo "$as_me:$LINENO: checking sys/statvfs.h usability" >&5
32915 echo $ECHO_N "checking sys/statvfs.h usability... $ECHO_C" >&6; }
32916 cat >conftest.$ac_ext <<_ACEOF
32917 /* confdefs.h.  */
32918 _ACEOF
32919 cat confdefs.h >>conftest.$ac_ext
32920 cat >>conftest.$ac_ext <<_ACEOF
32921 /* end confdefs.h.  */
32922 $ac_includes_default
32923 #include <sys/statvfs.h>
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_c_werror_flag" ||
32940          test ! -s conftest.err
32941        } && test -s conftest.$ac_objext; then
32942   ac_header_compiler=yes
32943 else
32944   echo "$as_me: failed program was:" >&5
32945 sed 's/^/| /' conftest.$ac_ext >&5
32946
32947         ac_header_compiler=no
32948 fi
32949
32950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32951 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32952 echo "${ECHO_T}$ac_header_compiler" >&6; }
32953
32954 # Is the header present?
32955 { echo "$as_me:$LINENO: checking sys/statvfs.h presence" >&5
32956 echo $ECHO_N "checking sys/statvfs.h presence... $ECHO_C" >&6; }
32957 cat >conftest.$ac_ext <<_ACEOF
32958 /* confdefs.h.  */
32959 _ACEOF
32960 cat confdefs.h >>conftest.$ac_ext
32961 cat >>conftest.$ac_ext <<_ACEOF
32962 /* end confdefs.h.  */
32963 #include <sys/statvfs.h>
32964 _ACEOF
32965 if { (ac_try="$ac_cpp conftest.$ac_ext"
32966 case "(($ac_try" in
32967   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32968   *) ac_try_echo=$ac_try;;
32969 esac
32970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32971   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32972   ac_status=$?
32973   grep -v '^ *+' conftest.er1 >conftest.err
32974   rm -f conftest.er1
32975   cat conftest.err >&5
32976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32977   (exit $ac_status); } >/dev/null && {
32978          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32979          test ! -s conftest.err
32980        }; then
32981   ac_header_preproc=yes
32982 else
32983   echo "$as_me: failed program was:" >&5
32984 sed 's/^/| /' conftest.$ac_ext >&5
32985
32986   ac_header_preproc=no
32987 fi
32988
32989 rm -f conftest.err conftest.$ac_ext
32990 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32991 echo "${ECHO_T}$ac_header_preproc" >&6; }
32992
32993 # So?  What about this header?
32994 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32995   yes:no: )
32996     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&5
32997 echo "$as_me: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32998     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&5
32999 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&2;}
33000     ac_header_preproc=yes
33001     ;;
33002   no:yes:* )
33003     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: present but cannot be compiled" >&5
33004 echo "$as_me: WARNING: sys/statvfs.h: present but cannot be compiled" >&2;}
33005     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h:     check for missing prerequisite headers?" >&5
33006 echo "$as_me: WARNING: sys/statvfs.h:     check for missing prerequisite headers?" >&2;}
33007     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: see the Autoconf documentation" >&5
33008 echo "$as_me: WARNING: sys/statvfs.h: see the Autoconf documentation" >&2;}
33009     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h:     section \"Present But Cannot Be Compiled\"" >&5
33010 echo "$as_me: WARNING: sys/statvfs.h:     section \"Present But Cannot Be Compiled\"" >&2;}
33011     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&5
33012 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&2;}
33013     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&5
33014 echo "$as_me: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&2;}
33015
33016     ;;
33017 esac
33018 { echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
33019 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6; }
33020 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
33021   echo $ECHO_N "(cached) $ECHO_C" >&6
33022 else
33023   ac_cv_header_sys_statvfs_h=$ac_header_preproc
33024 fi
33025 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
33026 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6; }
33027
33028 fi
33029 if test $ac_cv_header_sys_statvfs_h = yes; then
33030
33031 cat >>confdefs.h <<\_ACEOF
33032 #define HAVE_SYS_STATVFS_H 1
33033 _ACEOF
33034
33035 fi
33036
33037
33038
33039 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
33040 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
33041 if test "${ac_cv_type_signal+set}" = set; then
33042   echo $ECHO_N "(cached) $ECHO_C" >&6
33043 else
33044   cat >conftest.$ac_ext <<_ACEOF
33045 /* confdefs.h.  */
33046 _ACEOF
33047 cat confdefs.h >>conftest.$ac_ext
33048 cat >>conftest.$ac_ext <<_ACEOF
33049 /* end confdefs.h.  */
33050 #include <sys/types.h>
33051 #include <signal.h>
33052
33053 int
33054 main ()
33055 {
33056 return *(signal (0, 0)) (0) == 1;
33057   ;
33058   return 0;
33059 }
33060 _ACEOF
33061 rm -f conftest.$ac_objext
33062 if { (ac_try="$ac_compile"
33063 case "(($ac_try" in
33064   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33065   *) ac_try_echo=$ac_try;;
33066 esac
33067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33068   (eval "$ac_compile") 2>conftest.er1
33069   ac_status=$?
33070   grep -v '^ *+' conftest.er1 >conftest.err
33071   rm -f conftest.er1
33072   cat conftest.err >&5
33073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33074   (exit $ac_status); } && {
33075          test -z "$ac_c_werror_flag" ||
33076          test ! -s conftest.err
33077        } && test -s conftest.$ac_objext; then
33078   ac_cv_type_signal=int
33079 else
33080   echo "$as_me: failed program was:" >&5
33081 sed 's/^/| /' conftest.$ac_ext >&5
33082
33083         ac_cv_type_signal=void
33084 fi
33085
33086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33087 fi
33088 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
33089 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
33090
33091 cat >>confdefs.h <<_ACEOF
33092 #define RETSIGTYPE $ac_cv_type_signal
33093 _ACEOF
33094
33095
33096
33097   { echo "$as_me:$LINENO: checking for type of signal functions" >&5
33098 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6; }
33099   if test "${bash_cv_signal_vintage+set}" = set; then
33100   echo $ECHO_N "(cached) $ECHO_C" >&6
33101 else
33102
33103     cat >conftest.$ac_ext <<_ACEOF
33104 /* confdefs.h.  */
33105 _ACEOF
33106 cat confdefs.h >>conftest.$ac_ext
33107 cat >>conftest.$ac_ext <<_ACEOF
33108 /* end confdefs.h.  */
33109 #include <signal.h>
33110 int
33111 main ()
33112 {
33113
33114       sigset_t ss;
33115       struct sigaction sa;
33116       sigemptyset(&ss); sigsuspend(&ss);
33117       sigaction(SIGINT, &sa, (struct sigaction *) 0);
33118       sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
33119
33120   ;
33121   return 0;
33122 }
33123 _ACEOF
33124 rm -f conftest.$ac_objext conftest$ac_exeext
33125 if { (ac_try="$ac_link"
33126 case "(($ac_try" in
33127   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33128   *) ac_try_echo=$ac_try;;
33129 esac
33130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33131   (eval "$ac_link") 2>conftest.er1
33132   ac_status=$?
33133   grep -v '^ *+' conftest.er1 >conftest.err
33134   rm -f conftest.er1
33135   cat conftest.err >&5
33136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33137   (exit $ac_status); } && {
33138          test -z "$ac_c_werror_flag" ||
33139          test ! -s conftest.err
33140        } && test -s conftest$ac_exeext &&
33141        $as_test_x conftest$ac_exeext; then
33142   bash_cv_signal_vintage="posix"
33143 else
33144   echo "$as_me: failed program was:" >&5
33145 sed 's/^/| /' conftest.$ac_ext >&5
33146
33147
33148       cat >conftest.$ac_ext <<_ACEOF
33149 /* confdefs.h.  */
33150 _ACEOF
33151 cat confdefs.h >>conftest.$ac_ext
33152 cat >>conftest.$ac_ext <<_ACEOF
33153 /* end confdefs.h.  */
33154 #include <signal.h>
33155 int
33156 main ()
33157 {
33158
33159           int mask = sigmask(SIGINT);
33160           sigsetmask(mask); sigblock(mask); sigpause(mask);
33161
33162   ;
33163   return 0;
33164 }
33165 _ACEOF
33166 rm -f conftest.$ac_objext conftest$ac_exeext
33167 if { (ac_try="$ac_link"
33168 case "(($ac_try" in
33169   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33170   *) ac_try_echo=$ac_try;;
33171 esac
33172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33173   (eval "$ac_link") 2>conftest.er1
33174   ac_status=$?
33175   grep -v '^ *+' conftest.er1 >conftest.err
33176   rm -f conftest.er1
33177   cat conftest.err >&5
33178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33179   (exit $ac_status); } && {
33180          test -z "$ac_c_werror_flag" ||
33181          test ! -s conftest.err
33182        } && test -s conftest$ac_exeext &&
33183        $as_test_x conftest$ac_exeext; then
33184   bash_cv_signal_vintage="4.2bsd"
33185 else
33186   echo "$as_me: failed program was:" >&5
33187 sed 's/^/| /' conftest.$ac_ext >&5
33188
33189
33190         cat >conftest.$ac_ext <<_ACEOF
33191 /* confdefs.h.  */
33192 _ACEOF
33193 cat confdefs.h >>conftest.$ac_ext
33194 cat >>conftest.$ac_ext <<_ACEOF
33195 /* end confdefs.h.  */
33196
33197           #include <signal.h>
33198           RETSIGTYPE foo() { }
33199 int
33200 main ()
33201 {
33202
33203                   int mask = sigmask(SIGINT);
33204                   sigset(SIGINT, foo); sigrelse(SIGINT);
33205                   sighold(SIGINT); sigpause(SIGINT);
33206
33207   ;
33208   return 0;
33209 }
33210 _ACEOF
33211 rm -f conftest.$ac_objext conftest$ac_exeext
33212 if { (ac_try="$ac_link"
33213 case "(($ac_try" in
33214   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33215   *) ac_try_echo=$ac_try;;
33216 esac
33217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33218   (eval "$ac_link") 2>conftest.er1
33219   ac_status=$?
33220   grep -v '^ *+' conftest.er1 >conftest.err
33221   rm -f conftest.er1
33222   cat conftest.err >&5
33223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33224   (exit $ac_status); } && {
33225          test -z "$ac_c_werror_flag" ||
33226          test ! -s conftest.err
33227        } && test -s conftest$ac_exeext &&
33228        $as_test_x conftest$ac_exeext; then
33229   bash_cv_signal_vintage="svr3"
33230 else
33231   echo "$as_me: failed program was:" >&5
33232 sed 's/^/| /' conftest.$ac_ext >&5
33233
33234         bash_cv_signal_vintage="v7"
33235
33236 fi
33237
33238 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33239       conftest$ac_exeext conftest.$ac_ext
33240
33241 fi
33242
33243 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33244       conftest$ac_exeext conftest.$ac_ext
33245
33246 fi
33247
33248 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33249       conftest$ac_exeext conftest.$ac_ext
33250
33251 fi
33252
33253   { echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
33254 echo "${ECHO_T}$bash_cv_signal_vintage" >&6; }
33255   if test "$bash_cv_signal_vintage" = "posix"; then
33256     cat >>confdefs.h <<\_ACEOF
33257 #define HAVE_POSIX_SIGNALS 1
33258 _ACEOF
33259
33260   elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
33261     cat >>confdefs.h <<\_ACEOF
33262 #define HAVE_BSD_SIGNALS 1
33263 _ACEOF
33264
33265   elif test "$bash_cv_signal_vintage" = "svr3"; then
33266     cat >>confdefs.h <<\_ACEOF
33267 #define HAVE_USG_SIGHOLD 1
33268 _ACEOF
33269
33270   fi
33271
33272 { echo "$as_me:$LINENO: checking for mode_t" >&5
33273 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
33274 if test "${ac_cv_type_mode_t+set}" = set; then
33275   echo $ECHO_N "(cached) $ECHO_C" >&6
33276 else
33277   cat >conftest.$ac_ext <<_ACEOF
33278 /* confdefs.h.  */
33279 _ACEOF
33280 cat confdefs.h >>conftest.$ac_ext
33281 cat >>conftest.$ac_ext <<_ACEOF
33282 /* end confdefs.h.  */
33283 $ac_includes_default
33284 typedef mode_t ac__type_new_;
33285 int
33286 main ()
33287 {
33288 if ((ac__type_new_ *) 0)
33289   return 0;
33290 if (sizeof (ac__type_new_))
33291   return 0;
33292   ;
33293   return 0;
33294 }
33295 _ACEOF
33296 rm -f conftest.$ac_objext
33297 if { (ac_try="$ac_compile"
33298 case "(($ac_try" in
33299   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33300   *) ac_try_echo=$ac_try;;
33301 esac
33302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33303   (eval "$ac_compile") 2>conftest.er1
33304   ac_status=$?
33305   grep -v '^ *+' conftest.er1 >conftest.err
33306   rm -f conftest.er1
33307   cat conftest.err >&5
33308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33309   (exit $ac_status); } && {
33310          test -z "$ac_c_werror_flag" ||
33311          test ! -s conftest.err
33312        } && test -s conftest.$ac_objext; then
33313   ac_cv_type_mode_t=yes
33314 else
33315   echo "$as_me: failed program was:" >&5
33316 sed 's/^/| /' conftest.$ac_ext >&5
33317
33318         ac_cv_type_mode_t=no
33319 fi
33320
33321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33322 fi
33323 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
33324 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
33325 if test $ac_cv_type_mode_t = yes; then
33326   :
33327 else
33328
33329 cat >>confdefs.h <<_ACEOF
33330 #define mode_t int
33331 _ACEOF
33332
33333 fi
33334
33335 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
33336 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
33337 if test "${ac_cv_type_uid_t+set}" = set; then
33338   echo $ECHO_N "(cached) $ECHO_C" >&6
33339 else
33340   cat >conftest.$ac_ext <<_ACEOF
33341 /* confdefs.h.  */
33342 _ACEOF
33343 cat confdefs.h >>conftest.$ac_ext
33344 cat >>conftest.$ac_ext <<_ACEOF
33345 /* end confdefs.h.  */
33346 #include <sys/types.h>
33347
33348 _ACEOF
33349 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33350   $EGREP "uid_t" >/dev/null 2>&1; then
33351   ac_cv_type_uid_t=yes
33352 else
33353   ac_cv_type_uid_t=no
33354 fi
33355 rm -f conftest*
33356
33357 fi
33358 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
33359 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
33360 if test $ac_cv_type_uid_t = no; then
33361
33362 cat >>confdefs.h <<\_ACEOF
33363 #define uid_t int
33364 _ACEOF
33365
33366
33367 cat >>confdefs.h <<\_ACEOF
33368 #define gid_t int
33369 _ACEOF
33370
33371 fi
33372
33373 { echo "$as_me:$LINENO: checking for size_t" >&5
33374 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
33375 if test "${ac_cv_type_size_t+set}" = set; then
33376   echo $ECHO_N "(cached) $ECHO_C" >&6
33377 else
33378   cat >conftest.$ac_ext <<_ACEOF
33379 /* confdefs.h.  */
33380 _ACEOF
33381 cat confdefs.h >>conftest.$ac_ext
33382 cat >>conftest.$ac_ext <<_ACEOF
33383 /* end confdefs.h.  */
33384 $ac_includes_default
33385 typedef size_t ac__type_new_;
33386 int
33387 main ()
33388 {
33389 if ((ac__type_new_ *) 0)
33390   return 0;
33391 if (sizeof (ac__type_new_))
33392   return 0;
33393   ;
33394   return 0;
33395 }
33396 _ACEOF
33397 rm -f conftest.$ac_objext
33398 if { (ac_try="$ac_compile"
33399 case "(($ac_try" in
33400   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33401   *) ac_try_echo=$ac_try;;
33402 esac
33403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33404   (eval "$ac_compile") 2>conftest.er1
33405   ac_status=$?
33406   grep -v '^ *+' conftest.er1 >conftest.err
33407   rm -f conftest.er1
33408   cat conftest.err >&5
33409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33410   (exit $ac_status); } && {
33411          test -z "$ac_c_werror_flag" ||
33412          test ! -s conftest.err
33413        } && test -s conftest.$ac_objext; then
33414   ac_cv_type_size_t=yes
33415 else
33416   echo "$as_me: failed program was:" >&5
33417 sed 's/^/| /' conftest.$ac_ext >&5
33418
33419         ac_cv_type_size_t=no
33420 fi
33421
33422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33423 fi
33424 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
33425 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
33426 if test $ac_cv_type_size_t = yes; then
33427   :
33428 else
33429
33430 cat >>confdefs.h <<_ACEOF
33431 #define size_t unsigned int
33432 _ACEOF
33433
33434 fi
33435
33436 { echo "$as_me:$LINENO: checking for pid_t" >&5
33437 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
33438 if test "${ac_cv_type_pid_t+set}" = set; then
33439   echo $ECHO_N "(cached) $ECHO_C" >&6
33440 else
33441   cat >conftest.$ac_ext <<_ACEOF
33442 /* confdefs.h.  */
33443 _ACEOF
33444 cat confdefs.h >>conftest.$ac_ext
33445 cat >>conftest.$ac_ext <<_ACEOF
33446 /* end confdefs.h.  */
33447 $ac_includes_default
33448 typedef pid_t ac__type_new_;
33449 int
33450 main ()
33451 {
33452 if ((ac__type_new_ *) 0)
33453   return 0;
33454 if (sizeof (ac__type_new_))
33455   return 0;
33456   ;
33457   return 0;
33458 }
33459 _ACEOF
33460 rm -f conftest.$ac_objext
33461 if { (ac_try="$ac_compile"
33462 case "(($ac_try" in
33463   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33464   *) ac_try_echo=$ac_try;;
33465 esac
33466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33467   (eval "$ac_compile") 2>conftest.er1
33468   ac_status=$?
33469   grep -v '^ *+' conftest.er1 >conftest.err
33470   rm -f conftest.er1
33471   cat conftest.err >&5
33472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33473   (exit $ac_status); } && {
33474          test -z "$ac_c_werror_flag" ||
33475          test ! -s conftest.err
33476        } && test -s conftest.$ac_objext; then
33477   ac_cv_type_pid_t=yes
33478 else
33479   echo "$as_me: failed program was:" >&5
33480 sed 's/^/| /' conftest.$ac_ext >&5
33481
33482         ac_cv_type_pid_t=no
33483 fi
33484
33485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33486 fi
33487 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
33488 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
33489 if test $ac_cv_type_pid_t = yes; then
33490   :
33491 else
33492
33493 cat >>confdefs.h <<_ACEOF
33494 #define pid_t int
33495 _ACEOF
33496
33497 fi
33498
33499 { echo "$as_me:$LINENO: checking for off_t" >&5
33500 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
33501 if test "${ac_cv_type_off_t+set}" = set; then
33502   echo $ECHO_N "(cached) $ECHO_C" >&6
33503 else
33504   cat >conftest.$ac_ext <<_ACEOF
33505 /* confdefs.h.  */
33506 _ACEOF
33507 cat confdefs.h >>conftest.$ac_ext
33508 cat >>conftest.$ac_ext <<_ACEOF
33509 /* end confdefs.h.  */
33510 $ac_includes_default
33511 typedef off_t ac__type_new_;
33512 int
33513 main ()
33514 {
33515 if ((ac__type_new_ *) 0)
33516   return 0;
33517 if (sizeof (ac__type_new_))
33518   return 0;
33519   ;
33520   return 0;
33521 }
33522 _ACEOF
33523 rm -f conftest.$ac_objext
33524 if { (ac_try="$ac_compile"
33525 case "(($ac_try" in
33526   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33527   *) ac_try_echo=$ac_try;;
33528 esac
33529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33530   (eval "$ac_compile") 2>conftest.er1
33531   ac_status=$?
33532   grep -v '^ *+' conftest.er1 >conftest.err
33533   rm -f conftest.er1
33534   cat conftest.err >&5
33535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33536   (exit $ac_status); } && {
33537          test -z "$ac_c_werror_flag" ||
33538          test ! -s conftest.err
33539        } && test -s conftest.$ac_objext; then
33540   ac_cv_type_off_t=yes
33541 else
33542   echo "$as_me: failed program was:" >&5
33543 sed 's/^/| /' conftest.$ac_ext >&5
33544
33545         ac_cv_type_off_t=no
33546 fi
33547
33548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33549 fi
33550 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
33551 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
33552 if test $ac_cv_type_off_t = yes; then
33553   :
33554 else
33555
33556 cat >>confdefs.h <<_ACEOF
33557 #define off_t long int
33558 _ACEOF
33559
33560 fi
33561
33562
33563   { echo "$as_me:$LINENO: checking for intptr_t" >&5
33564 echo $ECHO_N "checking for intptr_t... $ECHO_C" >&6; }
33565 if test "${ac_cv_type_intptr_t+set}" = set; then
33566   echo $ECHO_N "(cached) $ECHO_C" >&6
33567 else
33568   cat >conftest.$ac_ext <<_ACEOF
33569 /* confdefs.h.  */
33570 _ACEOF
33571 cat confdefs.h >>conftest.$ac_ext
33572 cat >>conftest.$ac_ext <<_ACEOF
33573 /* end confdefs.h.  */
33574 $ac_includes_default
33575 typedef intptr_t ac__type_new_;
33576 int
33577 main ()
33578 {
33579 if ((ac__type_new_ *) 0)
33580   return 0;
33581 if (sizeof (ac__type_new_))
33582   return 0;
33583   ;
33584   return 0;
33585 }
33586 _ACEOF
33587 rm -f conftest.$ac_objext
33588 if { (ac_try="$ac_compile"
33589 case "(($ac_try" in
33590   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33591   *) ac_try_echo=$ac_try;;
33592 esac
33593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33594   (eval "$ac_compile") 2>conftest.er1
33595   ac_status=$?
33596   grep -v '^ *+' conftest.er1 >conftest.err
33597   rm -f conftest.er1
33598   cat conftest.err >&5
33599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33600   (exit $ac_status); } && {
33601          test -z "$ac_c_werror_flag" ||
33602          test ! -s conftest.err
33603        } && test -s conftest.$ac_objext; then
33604   ac_cv_type_intptr_t=yes
33605 else
33606   echo "$as_me: failed program was:" >&5
33607 sed 's/^/| /' conftest.$ac_ext >&5
33608
33609         ac_cv_type_intptr_t=no
33610 fi
33611
33612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33613 fi
33614 { echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
33615 echo "${ECHO_T}$ac_cv_type_intptr_t" >&6; }
33616 if test $ac_cv_type_intptr_t = yes; then
33617
33618 cat >>confdefs.h <<\_ACEOF
33619 #define HAVE_INTPTR_T 1
33620 _ACEOF
33621
33622 else
33623   for ac_type in 'int' 'long int' 'long long int'; do
33624        cat >conftest.$ac_ext <<_ACEOF
33625 /* confdefs.h.  */
33626 _ACEOF
33627 cat confdefs.h >>conftest.$ac_ext
33628 cat >>conftest.$ac_ext <<_ACEOF
33629 /* end confdefs.h.  */
33630 $ac_includes_default
33631 int
33632 main ()
33633 {
33634 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
33635 test_array [0] = 0
33636
33637   ;
33638   return 0;
33639 }
33640 _ACEOF
33641 rm -f conftest.$ac_objext
33642 if { (ac_try="$ac_compile"
33643 case "(($ac_try" in
33644   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33645   *) ac_try_echo=$ac_try;;
33646 esac
33647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33648   (eval "$ac_compile") 2>conftest.er1
33649   ac_status=$?
33650   grep -v '^ *+' conftest.er1 >conftest.err
33651   rm -f conftest.er1
33652   cat conftest.err >&5
33653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33654   (exit $ac_status); } && {
33655          test -z "$ac_c_werror_flag" ||
33656          test ! -s conftest.err
33657        } && test -s conftest.$ac_objext; then
33658
33659 cat >>confdefs.h <<_ACEOF
33660 #define intptr_t $ac_type
33661 _ACEOF
33662
33663           ac_type=
33664 else
33665   echo "$as_me: failed program was:" >&5
33666 sed 's/^/| /' conftest.$ac_ext >&5
33667
33668
33669 fi
33670
33671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33672        test -z "$ac_type" && break
33673      done
33674 fi
33675
33676
33677
33678   { echo "$as_me:$LINENO: checking for uintptr_t" >&5
33679 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; }
33680 if test "${ac_cv_type_uintptr_t+set}" = set; then
33681   echo $ECHO_N "(cached) $ECHO_C" >&6
33682 else
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 $ac_includes_default
33690 typedef uintptr_t ac__type_new_;
33691 int
33692 main ()
33693 {
33694 if ((ac__type_new_ *) 0)
33695   return 0;
33696 if (sizeof (ac__type_new_))
33697   return 0;
33698   ;
33699   return 0;
33700 }
33701 _ACEOF
33702 rm -f conftest.$ac_objext
33703 if { (ac_try="$ac_compile"
33704 case "(($ac_try" in
33705   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33706   *) ac_try_echo=$ac_try;;
33707 esac
33708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33709   (eval "$ac_compile") 2>conftest.er1
33710   ac_status=$?
33711   grep -v '^ *+' conftest.er1 >conftest.err
33712   rm -f conftest.er1
33713   cat conftest.err >&5
33714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33715   (exit $ac_status); } && {
33716          test -z "$ac_c_werror_flag" ||
33717          test ! -s conftest.err
33718        } && test -s conftest.$ac_objext; then
33719   ac_cv_type_uintptr_t=yes
33720 else
33721   echo "$as_me: failed program was:" >&5
33722 sed 's/^/| /' conftest.$ac_ext >&5
33723
33724         ac_cv_type_uintptr_t=no
33725 fi
33726
33727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33728 fi
33729 { echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
33730 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; }
33731 if test $ac_cv_type_uintptr_t = yes; then
33732
33733 cat >>confdefs.h <<\_ACEOF
33734 #define HAVE_UINTPTR_T 1
33735 _ACEOF
33736
33737 else
33738   for ac_type in 'unsigned int' 'unsigned long int' \
33739         'unsigned long long int'; do
33740        cat >conftest.$ac_ext <<_ACEOF
33741 /* confdefs.h.  */
33742 _ACEOF
33743 cat confdefs.h >>conftest.$ac_ext
33744 cat >>conftest.$ac_ext <<_ACEOF
33745 /* end confdefs.h.  */
33746 $ac_includes_default
33747 int
33748 main ()
33749 {
33750 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
33751 test_array [0] = 0
33752
33753   ;
33754   return 0;
33755 }
33756 _ACEOF
33757 rm -f conftest.$ac_objext
33758 if { (ac_try="$ac_compile"
33759 case "(($ac_try" in
33760   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33761   *) ac_try_echo=$ac_try;;
33762 esac
33763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33764   (eval "$ac_compile") 2>conftest.er1
33765   ac_status=$?
33766   grep -v '^ *+' conftest.er1 >conftest.err
33767   rm -f conftest.er1
33768   cat conftest.err >&5
33769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33770   (exit $ac_status); } && {
33771          test -z "$ac_c_werror_flag" ||
33772          test ! -s conftest.err
33773        } && test -s conftest.$ac_objext; then
33774
33775 cat >>confdefs.h <<_ACEOF
33776 #define uintptr_t $ac_type
33777 _ACEOF
33778
33779           ac_type=
33780 else
33781   echo "$as_me: failed program was:" >&5
33782 sed 's/^/| /' conftest.$ac_ext >&5
33783
33784
33785 fi
33786
33787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33788        test -z "$ac_type" && break
33789      done
33790 fi
33791
33792
33793 { echo "$as_me:$LINENO: checking for ino_t" >&5
33794 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6; }
33795 if test "${ac_cv_type_ino_t+set}" = set; then
33796   echo $ECHO_N "(cached) $ECHO_C" >&6
33797 else
33798   cat >conftest.$ac_ext <<_ACEOF
33799 /* confdefs.h.  */
33800 _ACEOF
33801 cat confdefs.h >>conftest.$ac_ext
33802 cat >>conftest.$ac_ext <<_ACEOF
33803 /* end confdefs.h.  */
33804 $ac_includes_default
33805 typedef ino_t ac__type_new_;
33806 int
33807 main ()
33808 {
33809 if ((ac__type_new_ *) 0)
33810   return 0;
33811 if (sizeof (ac__type_new_))
33812   return 0;
33813   ;
33814   return 0;
33815 }
33816 _ACEOF
33817 rm -f conftest.$ac_objext
33818 if { (ac_try="$ac_compile"
33819 case "(($ac_try" in
33820   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33821   *) ac_try_echo=$ac_try;;
33822 esac
33823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33824   (eval "$ac_compile") 2>conftest.er1
33825   ac_status=$?
33826   grep -v '^ *+' conftest.er1 >conftest.err
33827   rm -f conftest.er1
33828   cat conftest.err >&5
33829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33830   (exit $ac_status); } && {
33831          test -z "$ac_c_werror_flag" ||
33832          test ! -s conftest.err
33833        } && test -s conftest.$ac_objext; then
33834   ac_cv_type_ino_t=yes
33835 else
33836   echo "$as_me: failed program was:" >&5
33837 sed 's/^/| /' conftest.$ac_ext >&5
33838
33839         ac_cv_type_ino_t=no
33840 fi
33841
33842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33843 fi
33844 { echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
33845 echo "${ECHO_T}$ac_cv_type_ino_t" >&6; }
33846 if test $ac_cv_type_ino_t = yes; then
33847   :
33848 else
33849
33850 cat >>confdefs.h <<_ACEOF
33851 #define ino_t unsigned long
33852 _ACEOF
33853
33854 fi
33855
33856 { echo "$as_me:$LINENO: checking for dev_t" >&5
33857 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6; }
33858 if test "${ac_cv_type_dev_t+set}" = set; then
33859   echo $ECHO_N "(cached) $ECHO_C" >&6
33860 else
33861   cat >conftest.$ac_ext <<_ACEOF
33862 /* confdefs.h.  */
33863 _ACEOF
33864 cat confdefs.h >>conftest.$ac_ext
33865 cat >>conftest.$ac_ext <<_ACEOF
33866 /* end confdefs.h.  */
33867 $ac_includes_default
33868 typedef dev_t ac__type_new_;
33869 int
33870 main ()
33871 {
33872 if ((ac__type_new_ *) 0)
33873   return 0;
33874 if (sizeof (ac__type_new_))
33875   return 0;
33876   ;
33877   return 0;
33878 }
33879 _ACEOF
33880 rm -f conftest.$ac_objext
33881 if { (ac_try="$ac_compile"
33882 case "(($ac_try" in
33883   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33884   *) ac_try_echo=$ac_try;;
33885 esac
33886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33887   (eval "$ac_compile") 2>conftest.er1
33888   ac_status=$?
33889   grep -v '^ *+' conftest.er1 >conftest.err
33890   rm -f conftest.er1
33891   cat conftest.err >&5
33892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33893   (exit $ac_status); } && {
33894          test -z "$ac_c_werror_flag" ||
33895          test ! -s conftest.err
33896        } && test -s conftest.$ac_objext; then
33897   ac_cv_type_dev_t=yes
33898 else
33899   echo "$as_me: failed program was:" >&5
33900 sed 's/^/| /' conftest.$ac_ext >&5
33901
33902         ac_cv_type_dev_t=no
33903 fi
33904
33905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33906 fi
33907 { echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
33908 echo "${ECHO_T}$ac_cv_type_dev_t" >&6; }
33909 if test $ac_cv_type_dev_t = yes; then
33910   :
33911 else
33912
33913 cat >>confdefs.h <<_ACEOF
33914 #define dev_t unsigned long
33915 _ACEOF
33916
33917 fi
33918
33919 { echo "$as_me:$LINENO: checking for daddr_t" >&5
33920 echo $ECHO_N "checking for daddr_t... $ECHO_C" >&6; }
33921 if test "${ac_cv_type_daddr_t+set}" = set; then
33922   echo $ECHO_N "(cached) $ECHO_C" >&6
33923 else
33924   cat >conftest.$ac_ext <<_ACEOF
33925 /* confdefs.h.  */
33926 _ACEOF
33927 cat confdefs.h >>conftest.$ac_ext
33928 cat >>conftest.$ac_ext <<_ACEOF
33929 /* end confdefs.h.  */
33930 $ac_includes_default
33931 typedef daddr_t ac__type_new_;
33932 int
33933 main ()
33934 {
33935 if ((ac__type_new_ *) 0)
33936   return 0;
33937 if (sizeof (ac__type_new_))
33938   return 0;
33939   ;
33940   return 0;
33941 }
33942 _ACEOF
33943 rm -f conftest.$ac_objext
33944 if { (ac_try="$ac_compile"
33945 case "(($ac_try" in
33946   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33947   *) ac_try_echo=$ac_try;;
33948 esac
33949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33950   (eval "$ac_compile") 2>conftest.er1
33951   ac_status=$?
33952   grep -v '^ *+' conftest.er1 >conftest.err
33953   rm -f conftest.er1
33954   cat conftest.err >&5
33955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33956   (exit $ac_status); } && {
33957          test -z "$ac_c_werror_flag" ||
33958          test ! -s conftest.err
33959        } && test -s conftest.$ac_objext; then
33960   ac_cv_type_daddr_t=yes
33961 else
33962   echo "$as_me: failed program was:" >&5
33963 sed 's/^/| /' conftest.$ac_ext >&5
33964
33965         ac_cv_type_daddr_t=no
33966 fi
33967
33968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33969 fi
33970 { echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
33971 echo "${ECHO_T}$ac_cv_type_daddr_t" >&6; }
33972 if test $ac_cv_type_daddr_t = yes; then
33973   :
33974 else
33975
33976 cat >>confdefs.h <<_ACEOF
33977 #define daddr_t long
33978 _ACEOF
33979
33980 fi
33981
33982 { echo "$as_me:$LINENO: checking for major_t" >&5
33983 echo $ECHO_N "checking for major_t... $ECHO_C" >&6; }
33984 if test "${ac_cv_type_major_t+set}" = set; then
33985   echo $ECHO_N "(cached) $ECHO_C" >&6
33986 else
33987   cat >conftest.$ac_ext <<_ACEOF
33988 /* confdefs.h.  */
33989 _ACEOF
33990 cat confdefs.h >>conftest.$ac_ext
33991 cat >>conftest.$ac_ext <<_ACEOF
33992 /* end confdefs.h.  */
33993 $ac_includes_default
33994 typedef major_t ac__type_new_;
33995 int
33996 main ()
33997 {
33998 if ((ac__type_new_ *) 0)
33999   return 0;
34000 if (sizeof (ac__type_new_))
34001   return 0;
34002   ;
34003   return 0;
34004 }
34005 _ACEOF
34006 rm -f conftest.$ac_objext
34007 if { (ac_try="$ac_compile"
34008 case "(($ac_try" in
34009   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34010   *) ac_try_echo=$ac_try;;
34011 esac
34012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34013   (eval "$ac_compile") 2>conftest.er1
34014   ac_status=$?
34015   grep -v '^ *+' conftest.er1 >conftest.err
34016   rm -f conftest.er1
34017   cat conftest.err >&5
34018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34019   (exit $ac_status); } && {
34020          test -z "$ac_c_werror_flag" ||
34021          test ! -s conftest.err
34022        } && test -s conftest.$ac_objext; then
34023   ac_cv_type_major_t=yes
34024 else
34025   echo "$as_me: failed program was:" >&5
34026 sed 's/^/| /' conftest.$ac_ext >&5
34027
34028         ac_cv_type_major_t=no
34029 fi
34030
34031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34032 fi
34033 { echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
34034 echo "${ECHO_T}$ac_cv_type_major_t" >&6; }
34035 if test $ac_cv_type_major_t = yes; then
34036   :
34037 else
34038
34039 cat >>confdefs.h <<_ACEOF
34040 #define major_t int
34041 _ACEOF
34042
34043 fi
34044
34045 { echo "$as_me:$LINENO: checking for minor_t" >&5
34046 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6; }
34047 if test "${ac_cv_type_minor_t+set}" = set; then
34048   echo $ECHO_N "(cached) $ECHO_C" >&6
34049 else
34050   cat >conftest.$ac_ext <<_ACEOF
34051 /* confdefs.h.  */
34052 _ACEOF
34053 cat confdefs.h >>conftest.$ac_ext
34054 cat >>conftest.$ac_ext <<_ACEOF
34055 /* end confdefs.h.  */
34056 $ac_includes_default
34057 typedef minor_t ac__type_new_;
34058 int
34059 main ()
34060 {
34061 if ((ac__type_new_ *) 0)
34062   return 0;
34063 if (sizeof (ac__type_new_))
34064   return 0;
34065   ;
34066   return 0;
34067 }
34068 _ACEOF
34069 rm -f conftest.$ac_objext
34070 if { (ac_try="$ac_compile"
34071 case "(($ac_try" in
34072   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34073   *) ac_try_echo=$ac_try;;
34074 esac
34075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34076   (eval "$ac_compile") 2>conftest.er1
34077   ac_status=$?
34078   grep -v '^ *+' conftest.er1 >conftest.err
34079   rm -f conftest.er1
34080   cat conftest.err >&5
34081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34082   (exit $ac_status); } && {
34083          test -z "$ac_c_werror_flag" ||
34084          test ! -s conftest.err
34085        } && test -s conftest.$ac_objext; then
34086   ac_cv_type_minor_t=yes
34087 else
34088   echo "$as_me: failed program was:" >&5
34089 sed 's/^/| /' conftest.$ac_ext >&5
34090
34091         ac_cv_type_minor_t=no
34092 fi
34093
34094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34095 fi
34096 { echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
34097 echo "${ECHO_T}$ac_cv_type_minor_t" >&6; }
34098 if test $ac_cv_type_minor_t = yes; then
34099   :
34100 else
34101
34102 cat >>confdefs.h <<_ACEOF
34103 #define minor_t int
34104 _ACEOF
34105
34106 fi
34107
34108 { echo "$as_me:$LINENO: checking for ssize_t" >&5
34109 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
34110 if test "${ac_cv_type_ssize_t+set}" = set; then
34111   echo $ECHO_N "(cached) $ECHO_C" >&6
34112 else
34113   cat >conftest.$ac_ext <<_ACEOF
34114 /* confdefs.h.  */
34115 _ACEOF
34116 cat confdefs.h >>conftest.$ac_ext
34117 cat >>conftest.$ac_ext <<_ACEOF
34118 /* end confdefs.h.  */
34119 $ac_includes_default
34120 typedef ssize_t ac__type_new_;
34121 int
34122 main ()
34123 {
34124 if ((ac__type_new_ *) 0)
34125   return 0;
34126 if (sizeof (ac__type_new_))
34127   return 0;
34128   ;
34129   return 0;
34130 }
34131 _ACEOF
34132 rm -f conftest.$ac_objext
34133 if { (ac_try="$ac_compile"
34134 case "(($ac_try" in
34135   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34136   *) ac_try_echo=$ac_try;;
34137 esac
34138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34139   (eval "$ac_compile") 2>conftest.er1
34140   ac_status=$?
34141   grep -v '^ *+' conftest.er1 >conftest.err
34142   rm -f conftest.er1
34143   cat conftest.err >&5
34144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34145   (exit $ac_status); } && {
34146          test -z "$ac_c_werror_flag" ||
34147          test ! -s conftest.err
34148        } && test -s conftest.$ac_objext; then
34149   ac_cv_type_ssize_t=yes
34150 else
34151   echo "$as_me: failed program was:" >&5
34152 sed 's/^/| /' conftest.$ac_ext >&5
34153
34154         ac_cv_type_ssize_t=no
34155 fi
34156
34157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34158 fi
34159 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
34160 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
34161 if test $ac_cv_type_ssize_t = yes; then
34162   :
34163 else
34164
34165 cat >>confdefs.h <<_ACEOF
34166 #define ssize_t int
34167 _ACEOF
34168
34169 fi
34170
34171 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
34172 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
34173 if test "${ac_cv_member_struct_stat_st_blocks+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 int
34184 main ()
34185 {
34186 static struct stat ac_aggr;
34187 if (ac_aggr.st_blocks)
34188 return 0;
34189   ;
34190   return 0;
34191 }
34192 _ACEOF
34193 rm -f conftest.$ac_objext
34194 if { (ac_try="$ac_compile"
34195 case "(($ac_try" in
34196   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34197   *) ac_try_echo=$ac_try;;
34198 esac
34199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34200   (eval "$ac_compile") 2>conftest.er1
34201   ac_status=$?
34202   grep -v '^ *+' conftest.er1 >conftest.err
34203   rm -f conftest.er1
34204   cat conftest.err >&5
34205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34206   (exit $ac_status); } && {
34207          test -z "$ac_c_werror_flag" ||
34208          test ! -s conftest.err
34209        } && test -s conftest.$ac_objext; then
34210   ac_cv_member_struct_stat_st_blocks=yes
34211 else
34212   echo "$as_me: failed program was:" >&5
34213 sed 's/^/| /' conftest.$ac_ext >&5
34214
34215         cat >conftest.$ac_ext <<_ACEOF
34216 /* confdefs.h.  */
34217 _ACEOF
34218 cat confdefs.h >>conftest.$ac_ext
34219 cat >>conftest.$ac_ext <<_ACEOF
34220 /* end confdefs.h.  */
34221 $ac_includes_default
34222 int
34223 main ()
34224 {
34225 static struct stat ac_aggr;
34226 if (sizeof ac_aggr.st_blocks)
34227 return 0;
34228   ;
34229   return 0;
34230 }
34231 _ACEOF
34232 rm -f conftest.$ac_objext
34233 if { (ac_try="$ac_compile"
34234 case "(($ac_try" in
34235   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34236   *) ac_try_echo=$ac_try;;
34237 esac
34238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34239   (eval "$ac_compile") 2>conftest.er1
34240   ac_status=$?
34241   grep -v '^ *+' conftest.er1 >conftest.err
34242   rm -f conftest.er1
34243   cat conftest.err >&5
34244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34245   (exit $ac_status); } && {
34246          test -z "$ac_c_werror_flag" ||
34247          test ! -s conftest.err
34248        } && test -s conftest.$ac_objext; then
34249   ac_cv_member_struct_stat_st_blocks=yes
34250 else
34251   echo "$as_me: failed program was:" >&5
34252 sed 's/^/| /' conftest.$ac_ext >&5
34253
34254         ac_cv_member_struct_stat_st_blocks=no
34255 fi
34256
34257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34258 fi
34259
34260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34261 fi
34262 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
34263 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
34264 if test $ac_cv_member_struct_stat_st_blocks = yes; then
34265
34266 cat >>confdefs.h <<_ACEOF
34267 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
34268 _ACEOF
34269
34270
34271 cat >>confdefs.h <<\_ACEOF
34272 #define HAVE_ST_BLOCKS 1
34273 _ACEOF
34274
34275 else
34276   case " $LIBOBJS " in
34277   *" fileblocks.$ac_objext "* ) ;;
34278   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
34279  ;;
34280 esac
34281
34282 fi
34283
34284
34285 { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
34286 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
34287 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
34288   echo $ECHO_N "(cached) $ECHO_C" >&6
34289 else
34290   cat >conftest.$ac_ext <<_ACEOF
34291 /* confdefs.h.  */
34292 _ACEOF
34293 cat confdefs.h >>conftest.$ac_ext
34294 cat >>conftest.$ac_ext <<_ACEOF
34295 /* end confdefs.h.  */
34296 $ac_includes_default
34297 int
34298 main ()
34299 {
34300 static struct stat ac_aggr;
34301 if (ac_aggr.st_rdev)
34302 return 0;
34303   ;
34304   return 0;
34305 }
34306 _ACEOF
34307 rm -f conftest.$ac_objext
34308 if { (ac_try="$ac_compile"
34309 case "(($ac_try" in
34310   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34311   *) ac_try_echo=$ac_try;;
34312 esac
34313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34314   (eval "$ac_compile") 2>conftest.er1
34315   ac_status=$?
34316   grep -v '^ *+' conftest.er1 >conftest.err
34317   rm -f conftest.er1
34318   cat conftest.err >&5
34319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34320   (exit $ac_status); } && {
34321          test -z "$ac_c_werror_flag" ||
34322          test ! -s conftest.err
34323        } && test -s conftest.$ac_objext; then
34324   ac_cv_member_struct_stat_st_rdev=yes
34325 else
34326   echo "$as_me: failed program was:" >&5
34327 sed 's/^/| /' conftest.$ac_ext >&5
34328
34329         cat >conftest.$ac_ext <<_ACEOF
34330 /* confdefs.h.  */
34331 _ACEOF
34332 cat confdefs.h >>conftest.$ac_ext
34333 cat >>conftest.$ac_ext <<_ACEOF
34334 /* end confdefs.h.  */
34335 $ac_includes_default
34336 int
34337 main ()
34338 {
34339 static struct stat ac_aggr;
34340 if (sizeof ac_aggr.st_rdev)
34341 return 0;
34342   ;
34343   return 0;
34344 }
34345 _ACEOF
34346 rm -f conftest.$ac_objext
34347 if { (ac_try="$ac_compile"
34348 case "(($ac_try" in
34349   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34350   *) ac_try_echo=$ac_try;;
34351 esac
34352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34353   (eval "$ac_compile") 2>conftest.er1
34354   ac_status=$?
34355   grep -v '^ *+' conftest.er1 >conftest.err
34356   rm -f conftest.er1
34357   cat conftest.err >&5
34358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34359   (exit $ac_status); } && {
34360          test -z "$ac_c_werror_flag" ||
34361          test ! -s conftest.err
34362        } && test -s conftest.$ac_objext; then
34363   ac_cv_member_struct_stat_st_rdev=yes
34364 else
34365   echo "$as_me: failed program was:" >&5
34366 sed 's/^/| /' conftest.$ac_ext >&5
34367
34368         ac_cv_member_struct_stat_st_rdev=no
34369 fi
34370
34371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34372 fi
34373
34374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34375 fi
34376 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
34377 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
34378 if test $ac_cv_member_struct_stat_st_rdev = yes; then
34379
34380 cat >>confdefs.h <<_ACEOF
34381 #define HAVE_STRUCT_STAT_ST_RDEV 1
34382 _ACEOF
34383
34384
34385 cat >>confdefs.h <<\_ACEOF
34386 #define HAVE_ST_RDEV 1
34387 _ACEOF
34388
34389 fi
34390
34391
34392 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
34393 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
34394 if test "${ac_cv_struct_tm+set}" = set; then
34395   echo $ECHO_N "(cached) $ECHO_C" >&6
34396 else
34397   cat >conftest.$ac_ext <<_ACEOF
34398 /* confdefs.h.  */
34399 _ACEOF
34400 cat confdefs.h >>conftest.$ac_ext
34401 cat >>conftest.$ac_ext <<_ACEOF
34402 /* end confdefs.h.  */
34403 #include <sys/types.h>
34404 #include <time.h>
34405
34406 int
34407 main ()
34408 {
34409 struct tm tm;
34410                                      int *p = &tm.tm_sec;
34411                                      return !p;
34412   ;
34413   return 0;
34414 }
34415 _ACEOF
34416 rm -f conftest.$ac_objext
34417 if { (ac_try="$ac_compile"
34418 case "(($ac_try" in
34419   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34420   *) ac_try_echo=$ac_try;;
34421 esac
34422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34423   (eval "$ac_compile") 2>conftest.er1
34424   ac_status=$?
34425   grep -v '^ *+' conftest.er1 >conftest.err
34426   rm -f conftest.er1
34427   cat conftest.err >&5
34428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34429   (exit $ac_status); } && {
34430          test -z "$ac_c_werror_flag" ||
34431          test ! -s conftest.err
34432        } && test -s conftest.$ac_objext; then
34433   ac_cv_struct_tm=time.h
34434 else
34435   echo "$as_me: failed program was:" >&5
34436 sed 's/^/| /' conftest.$ac_ext >&5
34437
34438         ac_cv_struct_tm=sys/time.h
34439 fi
34440
34441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34442 fi
34443 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
34444 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
34445 if test $ac_cv_struct_tm = sys/time.h; then
34446
34447 cat >>confdefs.h <<\_ACEOF
34448 #define TM_IN_SYS_TIME 1
34449 _ACEOF
34450
34451 fi
34452
34453 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
34454 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
34455 if test "${ac_cv_c_const+set}" = set; then
34456   echo $ECHO_N "(cached) $ECHO_C" >&6
34457 else
34458   cat >conftest.$ac_ext <<_ACEOF
34459 /* confdefs.h.  */
34460 _ACEOF
34461 cat confdefs.h >>conftest.$ac_ext
34462 cat >>conftest.$ac_ext <<_ACEOF
34463 /* end confdefs.h.  */
34464
34465 int
34466 main ()
34467 {
34468 /* FIXME: Include the comments suggested by Paul. */
34469 #ifndef __cplusplus
34470   /* Ultrix mips cc rejects this.  */
34471   typedef int charset[2];
34472   const charset cs;
34473   /* SunOS 4.1.1 cc rejects this.  */
34474   char const *const *pcpcc;
34475   char **ppc;
34476   /* NEC SVR4.0.2 mips cc rejects this.  */
34477   struct point {int x, y;};
34478   static struct point const zero = {0,0};
34479   /* AIX XL C 1.02.0.0 rejects this.
34480      It does not let you subtract one const X* pointer from another in
34481      an arm of an if-expression whose if-part is not a constant
34482      expression */
34483   const char *g = "string";
34484   pcpcc = &g + (g ? g-g : 0);
34485   /* HPUX 7.0 cc rejects these. */
34486   ++pcpcc;
34487   ppc = (char**) pcpcc;
34488   pcpcc = (char const *const *) ppc;
34489   { /* SCO 3.2v4 cc rejects this.  */
34490     char *t;
34491     char const *s = 0 ? (char *) 0 : (char const *) 0;
34492
34493     *t++ = 0;
34494     if (s) return 0;
34495   }
34496   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
34497     int x[] = {25, 17};
34498     const int *foo = &x[0];
34499     ++foo;
34500   }
34501   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
34502     typedef const int *iptr;
34503     iptr p = 0;
34504     ++p;
34505   }
34506   { /* AIX XL C 1.02.0.0 rejects this saying
34507        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
34508     struct s { int j; const int *ap[3]; };
34509     struct s *b; b->j = 5;
34510   }
34511   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
34512     const int foo = 10;
34513     if (!foo) return 0;
34514   }
34515   return !cs[0] && !zero.x;
34516 #endif
34517
34518   ;
34519   return 0;
34520 }
34521 _ACEOF
34522 rm -f conftest.$ac_objext
34523 if { (ac_try="$ac_compile"
34524 case "(($ac_try" in
34525   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34526   *) ac_try_echo=$ac_try;;
34527 esac
34528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34529   (eval "$ac_compile") 2>conftest.er1
34530   ac_status=$?
34531   grep -v '^ *+' conftest.er1 >conftest.err
34532   rm -f conftest.er1
34533   cat conftest.err >&5
34534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34535   (exit $ac_status); } && {
34536          test -z "$ac_c_werror_flag" ||
34537          test ! -s conftest.err
34538        } && test -s conftest.$ac_objext; then
34539   ac_cv_c_const=yes
34540 else
34541   echo "$as_me: failed program was:" >&5
34542 sed 's/^/| /' conftest.$ac_ext >&5
34543
34544         ac_cv_c_const=no
34545 fi
34546
34547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34548 fi
34549 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
34550 echo "${ECHO_T}$ac_cv_c_const" >&6; }
34551 if test $ac_cv_c_const = no; then
34552
34553 cat >>confdefs.h <<\_ACEOF
34554 #define const
34555 _ACEOF
34556
34557 fi
34558
34559
34560 { echo "$as_me:$LINENO: checking for char" >&5
34561 echo $ECHO_N "checking for char... $ECHO_C" >&6; }
34562 if test "${ac_cv_type_char+set}" = set; then
34563   echo $ECHO_N "(cached) $ECHO_C" >&6
34564 else
34565   cat >conftest.$ac_ext <<_ACEOF
34566 /* confdefs.h.  */
34567 _ACEOF
34568 cat confdefs.h >>conftest.$ac_ext
34569 cat >>conftest.$ac_ext <<_ACEOF
34570 /* end confdefs.h.  */
34571 $ac_includes_default
34572 typedef char ac__type_new_;
34573 int
34574 main ()
34575 {
34576 if ((ac__type_new_ *) 0)
34577   return 0;
34578 if (sizeof (ac__type_new_))
34579   return 0;
34580   ;
34581   return 0;
34582 }
34583 _ACEOF
34584 rm -f conftest.$ac_objext
34585 if { (ac_try="$ac_compile"
34586 case "(($ac_try" in
34587   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34588   *) ac_try_echo=$ac_try;;
34589 esac
34590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34591   (eval "$ac_compile") 2>conftest.er1
34592   ac_status=$?
34593   grep -v '^ *+' conftest.er1 >conftest.err
34594   rm -f conftest.er1
34595   cat conftest.err >&5
34596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34597   (exit $ac_status); } && {
34598          test -z "$ac_c_werror_flag" ||
34599          test ! -s conftest.err
34600        } && test -s conftest.$ac_objext; then
34601   ac_cv_type_char=yes
34602 else
34603   echo "$as_me: failed program was:" >&5
34604 sed 's/^/| /' conftest.$ac_ext >&5
34605
34606         ac_cv_type_char=no
34607 fi
34608
34609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34610 fi
34611 { echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
34612 echo "${ECHO_T}$ac_cv_type_char" >&6; }
34613
34614 # The cast to long int works around a bug in the HP C Compiler
34615 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
34616 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
34617 # This bug is HP SR number 8606223364.
34618 { echo "$as_me:$LINENO: checking size of char" >&5
34619 echo $ECHO_N "checking size of char... $ECHO_C" >&6; }
34620 if test "${ac_cv_sizeof_char+set}" = set; then
34621   echo $ECHO_N "(cached) $ECHO_C" >&6
34622 else
34623   if test "$cross_compiling" = yes; then
34624   # Depending upon the size, compute the lo and hi bounds.
34625 cat >conftest.$ac_ext <<_ACEOF
34626 /* confdefs.h.  */
34627 _ACEOF
34628 cat confdefs.h >>conftest.$ac_ext
34629 cat >>conftest.$ac_ext <<_ACEOF
34630 /* end confdefs.h.  */
34631 $ac_includes_default
34632    typedef char ac__type_sizeof_;
34633 int
34634 main ()
34635 {
34636 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
34637 test_array [0] = 0
34638
34639   ;
34640   return 0;
34641 }
34642 _ACEOF
34643 rm -f conftest.$ac_objext
34644 if { (ac_try="$ac_compile"
34645 case "(($ac_try" in
34646   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34647   *) ac_try_echo=$ac_try;;
34648 esac
34649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34650   (eval "$ac_compile") 2>conftest.er1
34651   ac_status=$?
34652   grep -v '^ *+' conftest.er1 >conftest.err
34653   rm -f conftest.er1
34654   cat conftest.err >&5
34655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34656   (exit $ac_status); } && {
34657          test -z "$ac_c_werror_flag" ||
34658          test ! -s conftest.err
34659        } && test -s conftest.$ac_objext; then
34660   ac_lo=0 ac_mid=0
34661   while :; do
34662     cat >conftest.$ac_ext <<_ACEOF
34663 /* confdefs.h.  */
34664 _ACEOF
34665 cat confdefs.h >>conftest.$ac_ext
34666 cat >>conftest.$ac_ext <<_ACEOF
34667 /* end confdefs.h.  */
34668 $ac_includes_default
34669    typedef char ac__type_sizeof_;
34670 int
34671 main ()
34672 {
34673 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34674 test_array [0] = 0
34675
34676   ;
34677   return 0;
34678 }
34679 _ACEOF
34680 rm -f conftest.$ac_objext
34681 if { (ac_try="$ac_compile"
34682 case "(($ac_try" in
34683   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34684   *) ac_try_echo=$ac_try;;
34685 esac
34686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34687   (eval "$ac_compile") 2>conftest.er1
34688   ac_status=$?
34689   grep -v '^ *+' conftest.er1 >conftest.err
34690   rm -f conftest.er1
34691   cat conftest.err >&5
34692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34693   (exit $ac_status); } && {
34694          test -z "$ac_c_werror_flag" ||
34695          test ! -s conftest.err
34696        } && test -s conftest.$ac_objext; then
34697   ac_hi=$ac_mid; break
34698 else
34699   echo "$as_me: failed program was:" >&5
34700 sed 's/^/| /' conftest.$ac_ext >&5
34701
34702         ac_lo=`expr $ac_mid + 1`
34703                         if test $ac_lo -le $ac_mid; then
34704                           ac_lo= ac_hi=
34705                           break
34706                         fi
34707                         ac_mid=`expr 2 '*' $ac_mid + 1`
34708 fi
34709
34710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34711   done
34712 else
34713   echo "$as_me: failed program was:" >&5
34714 sed 's/^/| /' conftest.$ac_ext >&5
34715
34716         cat >conftest.$ac_ext <<_ACEOF
34717 /* confdefs.h.  */
34718 _ACEOF
34719 cat confdefs.h >>conftest.$ac_ext
34720 cat >>conftest.$ac_ext <<_ACEOF
34721 /* end confdefs.h.  */
34722 $ac_includes_default
34723    typedef char ac__type_sizeof_;
34724 int
34725 main ()
34726 {
34727 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
34728 test_array [0] = 0
34729
34730   ;
34731   return 0;
34732 }
34733 _ACEOF
34734 rm -f conftest.$ac_objext
34735 if { (ac_try="$ac_compile"
34736 case "(($ac_try" in
34737   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34738   *) ac_try_echo=$ac_try;;
34739 esac
34740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34741   (eval "$ac_compile") 2>conftest.er1
34742   ac_status=$?
34743   grep -v '^ *+' conftest.er1 >conftest.err
34744   rm -f conftest.er1
34745   cat conftest.err >&5
34746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34747   (exit $ac_status); } && {
34748          test -z "$ac_c_werror_flag" ||
34749          test ! -s conftest.err
34750        } && test -s conftest.$ac_objext; then
34751   ac_hi=-1 ac_mid=-1
34752   while :; do
34753     cat >conftest.$ac_ext <<_ACEOF
34754 /* confdefs.h.  */
34755 _ACEOF
34756 cat confdefs.h >>conftest.$ac_ext
34757 cat >>conftest.$ac_ext <<_ACEOF
34758 /* end confdefs.h.  */
34759 $ac_includes_default
34760    typedef char ac__type_sizeof_;
34761 int
34762 main ()
34763 {
34764 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
34765 test_array [0] = 0
34766
34767   ;
34768   return 0;
34769 }
34770 _ACEOF
34771 rm -f conftest.$ac_objext
34772 if { (ac_try="$ac_compile"
34773 case "(($ac_try" in
34774   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34775   *) ac_try_echo=$ac_try;;
34776 esac
34777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34778   (eval "$ac_compile") 2>conftest.er1
34779   ac_status=$?
34780   grep -v '^ *+' conftest.er1 >conftest.err
34781   rm -f conftest.er1
34782   cat conftest.err >&5
34783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34784   (exit $ac_status); } && {
34785          test -z "$ac_c_werror_flag" ||
34786          test ! -s conftest.err
34787        } && test -s conftest.$ac_objext; then
34788   ac_lo=$ac_mid; break
34789 else
34790   echo "$as_me: failed program was:" >&5
34791 sed 's/^/| /' conftest.$ac_ext >&5
34792
34793         ac_hi=`expr '(' $ac_mid ')' - 1`
34794                         if test $ac_mid -le $ac_hi; then
34795                           ac_lo= ac_hi=
34796                           break
34797                         fi
34798                         ac_mid=`expr 2 '*' $ac_mid`
34799 fi
34800
34801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34802   done
34803 else
34804   echo "$as_me: failed program was:" >&5
34805 sed 's/^/| /' conftest.$ac_ext >&5
34806
34807         ac_lo= ac_hi=
34808 fi
34809
34810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34811 fi
34812
34813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34814 # Binary search between lo and hi bounds.
34815 while test "x$ac_lo" != "x$ac_hi"; do
34816   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
34817   cat >conftest.$ac_ext <<_ACEOF
34818 /* confdefs.h.  */
34819 _ACEOF
34820 cat confdefs.h >>conftest.$ac_ext
34821 cat >>conftest.$ac_ext <<_ACEOF
34822 /* end confdefs.h.  */
34823 $ac_includes_default
34824    typedef char ac__type_sizeof_;
34825 int
34826 main ()
34827 {
34828 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34829 test_array [0] = 0
34830
34831   ;
34832   return 0;
34833 }
34834 _ACEOF
34835 rm -f conftest.$ac_objext
34836 if { (ac_try="$ac_compile"
34837 case "(($ac_try" in
34838   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34839   *) ac_try_echo=$ac_try;;
34840 esac
34841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34842   (eval "$ac_compile") 2>conftest.er1
34843   ac_status=$?
34844   grep -v '^ *+' conftest.er1 >conftest.err
34845   rm -f conftest.er1
34846   cat conftest.err >&5
34847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34848   (exit $ac_status); } && {
34849          test -z "$ac_c_werror_flag" ||
34850          test ! -s conftest.err
34851        } && test -s conftest.$ac_objext; then
34852   ac_hi=$ac_mid
34853 else
34854   echo "$as_me: failed program was:" >&5
34855 sed 's/^/| /' conftest.$ac_ext >&5
34856
34857         ac_lo=`expr '(' $ac_mid ')' + 1`
34858 fi
34859
34860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34861 done
34862 case $ac_lo in
34863 ?*) ac_cv_sizeof_char=$ac_lo;;
34864 '') if test "$ac_cv_type_char" = yes; then
34865      { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
34866 See \`config.log' for more details." >&5
34867 echo "$as_me: error: cannot compute sizeof (char)
34868 See \`config.log' for more details." >&2;}
34869    { (exit 77); exit 77; }; }
34870    else
34871      ac_cv_sizeof_char=0
34872    fi ;;
34873 esac
34874 else
34875   cat >conftest.$ac_ext <<_ACEOF
34876 /* confdefs.h.  */
34877 _ACEOF
34878 cat confdefs.h >>conftest.$ac_ext
34879 cat >>conftest.$ac_ext <<_ACEOF
34880 /* end confdefs.h.  */
34881 $ac_includes_default
34882    typedef char ac__type_sizeof_;
34883 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
34884 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
34885 #include <stdio.h>
34886 #include <stdlib.h>
34887 int
34888 main ()
34889 {
34890
34891   FILE *f = fopen ("conftest.val", "w");
34892   if (! f)
34893     return 1;
34894   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
34895     {
34896       long int i = longval ();
34897       if (i != ((long int) (sizeof (ac__type_sizeof_))))
34898         return 1;
34899       fprintf (f, "%ld\n", i);
34900     }
34901   else
34902     {
34903       unsigned long int i = ulongval ();
34904       if (i != ((long int) (sizeof (ac__type_sizeof_))))
34905         return 1;
34906       fprintf (f, "%lu\n", i);
34907     }
34908   return ferror (f) || fclose (f) != 0;
34909
34910   ;
34911   return 0;
34912 }
34913 _ACEOF
34914 rm -f conftest$ac_exeext
34915 if { (ac_try="$ac_link"
34916 case "(($ac_try" in
34917   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34918   *) ac_try_echo=$ac_try;;
34919 esac
34920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34921   (eval "$ac_link") 2>&5
34922   ac_status=$?
34923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34924   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34925   { (case "(($ac_try" in
34926   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34927   *) ac_try_echo=$ac_try;;
34928 esac
34929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34930   (eval "$ac_try") 2>&5
34931   ac_status=$?
34932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34933   (exit $ac_status); }; }; then
34934   ac_cv_sizeof_char=`cat conftest.val`
34935 else
34936   echo "$as_me: program exited with status $ac_status" >&5
34937 echo "$as_me: failed program was:" >&5
34938 sed 's/^/| /' conftest.$ac_ext >&5
34939
34940 ( exit $ac_status )
34941 if test "$ac_cv_type_char" = yes; then
34942      { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
34943 See \`config.log' for more details." >&5
34944 echo "$as_me: error: cannot compute sizeof (char)
34945 See \`config.log' for more details." >&2;}
34946    { (exit 77); exit 77; }; }
34947    else
34948      ac_cv_sizeof_char=0
34949    fi
34950 fi
34951 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34952 fi
34953 rm -f conftest.val
34954 fi
34955 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
34956 echo "${ECHO_T}$ac_cv_sizeof_char" >&6; }
34957
34958
34959
34960 cat >>confdefs.h <<_ACEOF
34961 #define SIZEOF_CHAR $ac_cv_sizeof_char
34962 _ACEOF
34963
34964
34965 { echo "$as_me:$LINENO: checking for short int" >&5
34966 echo $ECHO_N "checking for short int... $ECHO_C" >&6; }
34967 if test "${ac_cv_type_short_int+set}" = set; then
34968   echo $ECHO_N "(cached) $ECHO_C" >&6
34969 else
34970   cat >conftest.$ac_ext <<_ACEOF
34971 /* confdefs.h.  */
34972 _ACEOF
34973 cat confdefs.h >>conftest.$ac_ext
34974 cat >>conftest.$ac_ext <<_ACEOF
34975 /* end confdefs.h.  */
34976 $ac_includes_default
34977 typedef short int ac__type_new_;
34978 int
34979 main ()
34980 {
34981 if ((ac__type_new_ *) 0)
34982   return 0;
34983 if (sizeof (ac__type_new_))
34984   return 0;
34985   ;
34986   return 0;
34987 }
34988 _ACEOF
34989 rm -f conftest.$ac_objext
34990 if { (ac_try="$ac_compile"
34991 case "(($ac_try" in
34992   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34993   *) ac_try_echo=$ac_try;;
34994 esac
34995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34996   (eval "$ac_compile") 2>conftest.er1
34997   ac_status=$?
34998   grep -v '^ *+' conftest.er1 >conftest.err
34999   rm -f conftest.er1
35000   cat conftest.err >&5
35001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35002   (exit $ac_status); } && {
35003          test -z "$ac_c_werror_flag" ||
35004          test ! -s conftest.err
35005        } && test -s conftest.$ac_objext; then
35006   ac_cv_type_short_int=yes
35007 else
35008   echo "$as_me: failed program was:" >&5
35009 sed 's/^/| /' conftest.$ac_ext >&5
35010
35011         ac_cv_type_short_int=no
35012 fi
35013
35014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35015 fi
35016 { echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
35017 echo "${ECHO_T}$ac_cv_type_short_int" >&6; }
35018
35019 # The cast to long int works around a bug in the HP C Compiler
35020 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
35021 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
35022 # This bug is HP SR number 8606223364.
35023 { echo "$as_me:$LINENO: checking size of short int" >&5
35024 echo $ECHO_N "checking size of short int... $ECHO_C" >&6; }
35025 if test "${ac_cv_sizeof_short_int+set}" = set; then
35026   echo $ECHO_N "(cached) $ECHO_C" >&6
35027 else
35028   if test "$cross_compiling" = yes; then
35029   # Depending upon the size, compute the lo and hi bounds.
35030 cat >conftest.$ac_ext <<_ACEOF
35031 /* confdefs.h.  */
35032 _ACEOF
35033 cat confdefs.h >>conftest.$ac_ext
35034 cat >>conftest.$ac_ext <<_ACEOF
35035 /* end confdefs.h.  */
35036 $ac_includes_default
35037    typedef short int ac__type_sizeof_;
35038 int
35039 main ()
35040 {
35041 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
35042 test_array [0] = 0
35043
35044   ;
35045   return 0;
35046 }
35047 _ACEOF
35048 rm -f conftest.$ac_objext
35049 if { (ac_try="$ac_compile"
35050 case "(($ac_try" in
35051   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35052   *) ac_try_echo=$ac_try;;
35053 esac
35054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35055   (eval "$ac_compile") 2>conftest.er1
35056   ac_status=$?
35057   grep -v '^ *+' conftest.er1 >conftest.err
35058   rm -f conftest.er1
35059   cat conftest.err >&5
35060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35061   (exit $ac_status); } && {
35062          test -z "$ac_c_werror_flag" ||
35063          test ! -s conftest.err
35064        } && test -s conftest.$ac_objext; then
35065   ac_lo=0 ac_mid=0
35066   while :; do
35067     cat >conftest.$ac_ext <<_ACEOF
35068 /* confdefs.h.  */
35069 _ACEOF
35070 cat confdefs.h >>conftest.$ac_ext
35071 cat >>conftest.$ac_ext <<_ACEOF
35072 /* end confdefs.h.  */
35073 $ac_includes_default
35074    typedef short int ac__type_sizeof_;
35075 int
35076 main ()
35077 {
35078 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35079 test_array [0] = 0
35080
35081   ;
35082   return 0;
35083 }
35084 _ACEOF
35085 rm -f conftest.$ac_objext
35086 if { (ac_try="$ac_compile"
35087 case "(($ac_try" in
35088   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35089   *) ac_try_echo=$ac_try;;
35090 esac
35091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35092   (eval "$ac_compile") 2>conftest.er1
35093   ac_status=$?
35094   grep -v '^ *+' conftest.er1 >conftest.err
35095   rm -f conftest.er1
35096   cat conftest.err >&5
35097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35098   (exit $ac_status); } && {
35099          test -z "$ac_c_werror_flag" ||
35100          test ! -s conftest.err
35101        } && test -s conftest.$ac_objext; then
35102   ac_hi=$ac_mid; break
35103 else
35104   echo "$as_me: failed program was:" >&5
35105 sed 's/^/| /' conftest.$ac_ext >&5
35106
35107         ac_lo=`expr $ac_mid + 1`
35108                         if test $ac_lo -le $ac_mid; then
35109                           ac_lo= ac_hi=
35110                           break
35111                         fi
35112                         ac_mid=`expr 2 '*' $ac_mid + 1`
35113 fi
35114
35115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35116   done
35117 else
35118   echo "$as_me: failed program was:" >&5
35119 sed 's/^/| /' conftest.$ac_ext >&5
35120
35121         cat >conftest.$ac_ext <<_ACEOF
35122 /* confdefs.h.  */
35123 _ACEOF
35124 cat confdefs.h >>conftest.$ac_ext
35125 cat >>conftest.$ac_ext <<_ACEOF
35126 /* end confdefs.h.  */
35127 $ac_includes_default
35128    typedef short int ac__type_sizeof_;
35129 int
35130 main ()
35131 {
35132 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
35133 test_array [0] = 0
35134
35135   ;
35136   return 0;
35137 }
35138 _ACEOF
35139 rm -f conftest.$ac_objext
35140 if { (ac_try="$ac_compile"
35141 case "(($ac_try" in
35142   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35143   *) ac_try_echo=$ac_try;;
35144 esac
35145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35146   (eval "$ac_compile") 2>conftest.er1
35147   ac_status=$?
35148   grep -v '^ *+' conftest.er1 >conftest.err
35149   rm -f conftest.er1
35150   cat conftest.err >&5
35151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35152   (exit $ac_status); } && {
35153          test -z "$ac_c_werror_flag" ||
35154          test ! -s conftest.err
35155        } && test -s conftest.$ac_objext; then
35156   ac_hi=-1 ac_mid=-1
35157   while :; do
35158     cat >conftest.$ac_ext <<_ACEOF
35159 /* confdefs.h.  */
35160 _ACEOF
35161 cat confdefs.h >>conftest.$ac_ext
35162 cat >>conftest.$ac_ext <<_ACEOF
35163 /* end confdefs.h.  */
35164 $ac_includes_default
35165    typedef short int ac__type_sizeof_;
35166 int
35167 main ()
35168 {
35169 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
35170 test_array [0] = 0
35171
35172   ;
35173   return 0;
35174 }
35175 _ACEOF
35176 rm -f conftest.$ac_objext
35177 if { (ac_try="$ac_compile"
35178 case "(($ac_try" in
35179   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35180   *) ac_try_echo=$ac_try;;
35181 esac
35182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35183   (eval "$ac_compile") 2>conftest.er1
35184   ac_status=$?
35185   grep -v '^ *+' conftest.er1 >conftest.err
35186   rm -f conftest.er1
35187   cat conftest.err >&5
35188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35189   (exit $ac_status); } && {
35190          test -z "$ac_c_werror_flag" ||
35191          test ! -s conftest.err
35192        } && test -s conftest.$ac_objext; then
35193   ac_lo=$ac_mid; break
35194 else
35195   echo "$as_me: failed program was:" >&5
35196 sed 's/^/| /' conftest.$ac_ext >&5
35197
35198         ac_hi=`expr '(' $ac_mid ')' - 1`
35199                         if test $ac_mid -le $ac_hi; then
35200                           ac_lo= ac_hi=
35201                           break
35202                         fi
35203                         ac_mid=`expr 2 '*' $ac_mid`
35204 fi
35205
35206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35207   done
35208 else
35209   echo "$as_me: failed program was:" >&5
35210 sed 's/^/| /' conftest.$ac_ext >&5
35211
35212         ac_lo= ac_hi=
35213 fi
35214
35215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35216 fi
35217
35218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35219 # Binary search between lo and hi bounds.
35220 while test "x$ac_lo" != "x$ac_hi"; do
35221   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
35222   cat >conftest.$ac_ext <<_ACEOF
35223 /* confdefs.h.  */
35224 _ACEOF
35225 cat confdefs.h >>conftest.$ac_ext
35226 cat >>conftest.$ac_ext <<_ACEOF
35227 /* end confdefs.h.  */
35228 $ac_includes_default
35229    typedef short int ac__type_sizeof_;
35230 int
35231 main ()
35232 {
35233 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35234 test_array [0] = 0
35235
35236   ;
35237   return 0;
35238 }
35239 _ACEOF
35240 rm -f conftest.$ac_objext
35241 if { (ac_try="$ac_compile"
35242 case "(($ac_try" in
35243   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35244   *) ac_try_echo=$ac_try;;
35245 esac
35246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35247   (eval "$ac_compile") 2>conftest.er1
35248   ac_status=$?
35249   grep -v '^ *+' conftest.er1 >conftest.err
35250   rm -f conftest.er1
35251   cat conftest.err >&5
35252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35253   (exit $ac_status); } && {
35254          test -z "$ac_c_werror_flag" ||
35255          test ! -s conftest.err
35256        } && test -s conftest.$ac_objext; then
35257   ac_hi=$ac_mid
35258 else
35259   echo "$as_me: failed program was:" >&5
35260 sed 's/^/| /' conftest.$ac_ext >&5
35261
35262         ac_lo=`expr '(' $ac_mid ')' + 1`
35263 fi
35264
35265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35266 done
35267 case $ac_lo in
35268 ?*) ac_cv_sizeof_short_int=$ac_lo;;
35269 '') if test "$ac_cv_type_short_int" = yes; then
35270      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
35271 See \`config.log' for more details." >&5
35272 echo "$as_me: error: cannot compute sizeof (short int)
35273 See \`config.log' for more details." >&2;}
35274    { (exit 77); exit 77; }; }
35275    else
35276      ac_cv_sizeof_short_int=0
35277    fi ;;
35278 esac
35279 else
35280   cat >conftest.$ac_ext <<_ACEOF
35281 /* confdefs.h.  */
35282 _ACEOF
35283 cat confdefs.h >>conftest.$ac_ext
35284 cat >>conftest.$ac_ext <<_ACEOF
35285 /* end confdefs.h.  */
35286 $ac_includes_default
35287    typedef short int ac__type_sizeof_;
35288 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
35289 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
35290 #include <stdio.h>
35291 #include <stdlib.h>
35292 int
35293 main ()
35294 {
35295
35296   FILE *f = fopen ("conftest.val", "w");
35297   if (! f)
35298     return 1;
35299   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
35300     {
35301       long int i = longval ();
35302       if (i != ((long int) (sizeof (ac__type_sizeof_))))
35303         return 1;
35304       fprintf (f, "%ld\n", i);
35305     }
35306   else
35307     {
35308       unsigned long int i = ulongval ();
35309       if (i != ((long int) (sizeof (ac__type_sizeof_))))
35310         return 1;
35311       fprintf (f, "%lu\n", i);
35312     }
35313   return ferror (f) || fclose (f) != 0;
35314
35315   ;
35316   return 0;
35317 }
35318 _ACEOF
35319 rm -f conftest$ac_exeext
35320 if { (ac_try="$ac_link"
35321 case "(($ac_try" in
35322   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35323   *) ac_try_echo=$ac_try;;
35324 esac
35325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35326   (eval "$ac_link") 2>&5
35327   ac_status=$?
35328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35329   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_try") 2>&5
35336   ac_status=$?
35337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35338   (exit $ac_status); }; }; then
35339   ac_cv_sizeof_short_int=`cat conftest.val`
35340 else
35341   echo "$as_me: program exited with status $ac_status" >&5
35342 echo "$as_me: failed program was:" >&5
35343 sed 's/^/| /' conftest.$ac_ext >&5
35344
35345 ( exit $ac_status )
35346 if test "$ac_cv_type_short_int" = yes; then
35347      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
35348 See \`config.log' for more details." >&5
35349 echo "$as_me: error: cannot compute sizeof (short int)
35350 See \`config.log' for more details." >&2;}
35351    { (exit 77); exit 77; }; }
35352    else
35353      ac_cv_sizeof_short_int=0
35354    fi
35355 fi
35356 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35357 fi
35358 rm -f conftest.val
35359 fi
35360 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
35361 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6; }
35362
35363
35364
35365 cat >>confdefs.h <<_ACEOF
35366 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
35367 _ACEOF
35368
35369
35370 { echo "$as_me:$LINENO: checking for int" >&5
35371 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
35372 if test "${ac_cv_type_int+set}" = set; then
35373   echo $ECHO_N "(cached) $ECHO_C" >&6
35374 else
35375   cat >conftest.$ac_ext <<_ACEOF
35376 /* confdefs.h.  */
35377 _ACEOF
35378 cat confdefs.h >>conftest.$ac_ext
35379 cat >>conftest.$ac_ext <<_ACEOF
35380 /* end confdefs.h.  */
35381 $ac_includes_default
35382 typedef int ac__type_new_;
35383 int
35384 main ()
35385 {
35386 if ((ac__type_new_ *) 0)
35387   return 0;
35388 if (sizeof (ac__type_new_))
35389   return 0;
35390   ;
35391   return 0;
35392 }
35393 _ACEOF
35394 rm -f conftest.$ac_objext
35395 if { (ac_try="$ac_compile"
35396 case "(($ac_try" in
35397   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35398   *) ac_try_echo=$ac_try;;
35399 esac
35400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35401   (eval "$ac_compile") 2>conftest.er1
35402   ac_status=$?
35403   grep -v '^ *+' conftest.er1 >conftest.err
35404   rm -f conftest.er1
35405   cat conftest.err >&5
35406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35407   (exit $ac_status); } && {
35408          test -z "$ac_c_werror_flag" ||
35409          test ! -s conftest.err
35410        } && test -s conftest.$ac_objext; then
35411   ac_cv_type_int=yes
35412 else
35413   echo "$as_me: failed program was:" >&5
35414 sed 's/^/| /' conftest.$ac_ext >&5
35415
35416         ac_cv_type_int=no
35417 fi
35418
35419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35420 fi
35421 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
35422 echo "${ECHO_T}$ac_cv_type_int" >&6; }
35423
35424 # The cast to long int works around a bug in the HP C Compiler
35425 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
35426 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
35427 # This bug is HP SR number 8606223364.
35428 { echo "$as_me:$LINENO: checking size of int" >&5
35429 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
35430 if test "${ac_cv_sizeof_int+set}" = set; then
35431   echo $ECHO_N "(cached) $ECHO_C" >&6
35432 else
35433   if test "$cross_compiling" = yes; then
35434   # Depending upon the size, compute the lo and hi bounds.
35435 cat >conftest.$ac_ext <<_ACEOF
35436 /* confdefs.h.  */
35437 _ACEOF
35438 cat confdefs.h >>conftest.$ac_ext
35439 cat >>conftest.$ac_ext <<_ACEOF
35440 /* end confdefs.h.  */
35441 $ac_includes_default
35442    typedef int ac__type_sizeof_;
35443 int
35444 main ()
35445 {
35446 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
35447 test_array [0] = 0
35448
35449   ;
35450   return 0;
35451 }
35452 _ACEOF
35453 rm -f conftest.$ac_objext
35454 if { (ac_try="$ac_compile"
35455 case "(($ac_try" in
35456   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35457   *) ac_try_echo=$ac_try;;
35458 esac
35459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35460   (eval "$ac_compile") 2>conftest.er1
35461   ac_status=$?
35462   grep -v '^ *+' conftest.er1 >conftest.err
35463   rm -f conftest.er1
35464   cat conftest.err >&5
35465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35466   (exit $ac_status); } && {
35467          test -z "$ac_c_werror_flag" ||
35468          test ! -s conftest.err
35469        } && test -s conftest.$ac_objext; then
35470   ac_lo=0 ac_mid=0
35471   while :; do
35472     cat >conftest.$ac_ext <<_ACEOF
35473 /* confdefs.h.  */
35474 _ACEOF
35475 cat confdefs.h >>conftest.$ac_ext
35476 cat >>conftest.$ac_ext <<_ACEOF
35477 /* end confdefs.h.  */
35478 $ac_includes_default
35479    typedef int ac__type_sizeof_;
35480 int
35481 main ()
35482 {
35483 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35484 test_array [0] = 0
35485
35486   ;
35487   return 0;
35488 }
35489 _ACEOF
35490 rm -f conftest.$ac_objext
35491 if { (ac_try="$ac_compile"
35492 case "(($ac_try" in
35493   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35494   *) ac_try_echo=$ac_try;;
35495 esac
35496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35497   (eval "$ac_compile") 2>conftest.er1
35498   ac_status=$?
35499   grep -v '^ *+' conftest.er1 >conftest.err
35500   rm -f conftest.er1
35501   cat conftest.err >&5
35502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35503   (exit $ac_status); } && {
35504          test -z "$ac_c_werror_flag" ||
35505          test ! -s conftest.err
35506        } && test -s conftest.$ac_objext; then
35507   ac_hi=$ac_mid; break
35508 else
35509   echo "$as_me: failed program was:" >&5
35510 sed 's/^/| /' conftest.$ac_ext >&5
35511
35512         ac_lo=`expr $ac_mid + 1`
35513                         if test $ac_lo -le $ac_mid; then
35514                           ac_lo= ac_hi=
35515                           break
35516                         fi
35517                         ac_mid=`expr 2 '*' $ac_mid + 1`
35518 fi
35519
35520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35521   done
35522 else
35523   echo "$as_me: failed program was:" >&5
35524 sed 's/^/| /' conftest.$ac_ext >&5
35525
35526         cat >conftest.$ac_ext <<_ACEOF
35527 /* confdefs.h.  */
35528 _ACEOF
35529 cat confdefs.h >>conftest.$ac_ext
35530 cat >>conftest.$ac_ext <<_ACEOF
35531 /* end confdefs.h.  */
35532 $ac_includes_default
35533    typedef int ac__type_sizeof_;
35534 int
35535 main ()
35536 {
35537 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
35538 test_array [0] = 0
35539
35540   ;
35541   return 0;
35542 }
35543 _ACEOF
35544 rm -f conftest.$ac_objext
35545 if { (ac_try="$ac_compile"
35546 case "(($ac_try" in
35547   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35548   *) ac_try_echo=$ac_try;;
35549 esac
35550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35551   (eval "$ac_compile") 2>conftest.er1
35552   ac_status=$?
35553   grep -v '^ *+' conftest.er1 >conftest.err
35554   rm -f conftest.er1
35555   cat conftest.err >&5
35556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35557   (exit $ac_status); } && {
35558          test -z "$ac_c_werror_flag" ||
35559          test ! -s conftest.err
35560        } && test -s conftest.$ac_objext; then
35561   ac_hi=-1 ac_mid=-1
35562   while :; do
35563     cat >conftest.$ac_ext <<_ACEOF
35564 /* confdefs.h.  */
35565 _ACEOF
35566 cat confdefs.h >>conftest.$ac_ext
35567 cat >>conftest.$ac_ext <<_ACEOF
35568 /* end confdefs.h.  */
35569 $ac_includes_default
35570    typedef int ac__type_sizeof_;
35571 int
35572 main ()
35573 {
35574 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
35575 test_array [0] = 0
35576
35577   ;
35578   return 0;
35579 }
35580 _ACEOF
35581 rm -f conftest.$ac_objext
35582 if { (ac_try="$ac_compile"
35583 case "(($ac_try" in
35584   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35585   *) ac_try_echo=$ac_try;;
35586 esac
35587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35588   (eval "$ac_compile") 2>conftest.er1
35589   ac_status=$?
35590   grep -v '^ *+' conftest.er1 >conftest.err
35591   rm -f conftest.er1
35592   cat conftest.err >&5
35593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35594   (exit $ac_status); } && {
35595          test -z "$ac_c_werror_flag" ||
35596          test ! -s conftest.err
35597        } && test -s conftest.$ac_objext; then
35598   ac_lo=$ac_mid; break
35599 else
35600   echo "$as_me: failed program was:" >&5
35601 sed 's/^/| /' conftest.$ac_ext >&5
35602
35603         ac_hi=`expr '(' $ac_mid ')' - 1`
35604                         if test $ac_mid -le $ac_hi; then
35605                           ac_lo= ac_hi=
35606                           break
35607                         fi
35608                         ac_mid=`expr 2 '*' $ac_mid`
35609 fi
35610
35611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35612   done
35613 else
35614   echo "$as_me: failed program was:" >&5
35615 sed 's/^/| /' conftest.$ac_ext >&5
35616
35617         ac_lo= ac_hi=
35618 fi
35619
35620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35621 fi
35622
35623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35624 # Binary search between lo and hi bounds.
35625 while test "x$ac_lo" != "x$ac_hi"; do
35626   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
35627   cat >conftest.$ac_ext <<_ACEOF
35628 /* confdefs.h.  */
35629 _ACEOF
35630 cat confdefs.h >>conftest.$ac_ext
35631 cat >>conftest.$ac_ext <<_ACEOF
35632 /* end confdefs.h.  */
35633 $ac_includes_default
35634    typedef int ac__type_sizeof_;
35635 int
35636 main ()
35637 {
35638 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35639 test_array [0] = 0
35640
35641   ;
35642   return 0;
35643 }
35644 _ACEOF
35645 rm -f conftest.$ac_objext
35646 if { (ac_try="$ac_compile"
35647 case "(($ac_try" in
35648   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35649   *) ac_try_echo=$ac_try;;
35650 esac
35651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35652   (eval "$ac_compile") 2>conftest.er1
35653   ac_status=$?
35654   grep -v '^ *+' conftest.er1 >conftest.err
35655   rm -f conftest.er1
35656   cat conftest.err >&5
35657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35658   (exit $ac_status); } && {
35659          test -z "$ac_c_werror_flag" ||
35660          test ! -s conftest.err
35661        } && test -s conftest.$ac_objext; then
35662   ac_hi=$ac_mid
35663 else
35664   echo "$as_me: failed program was:" >&5
35665 sed 's/^/| /' conftest.$ac_ext >&5
35666
35667         ac_lo=`expr '(' $ac_mid ')' + 1`
35668 fi
35669
35670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35671 done
35672 case $ac_lo in
35673 ?*) ac_cv_sizeof_int=$ac_lo;;
35674 '') if test "$ac_cv_type_int" = yes; then
35675      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
35676 See \`config.log' for more details." >&5
35677 echo "$as_me: error: cannot compute sizeof (int)
35678 See \`config.log' for more details." >&2;}
35679    { (exit 77); exit 77; }; }
35680    else
35681      ac_cv_sizeof_int=0
35682    fi ;;
35683 esac
35684 else
35685   cat >conftest.$ac_ext <<_ACEOF
35686 /* confdefs.h.  */
35687 _ACEOF
35688 cat confdefs.h >>conftest.$ac_ext
35689 cat >>conftest.$ac_ext <<_ACEOF
35690 /* end confdefs.h.  */
35691 $ac_includes_default
35692    typedef int ac__type_sizeof_;
35693 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
35694 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
35695 #include <stdio.h>
35696 #include <stdlib.h>
35697 int
35698 main ()
35699 {
35700
35701   FILE *f = fopen ("conftest.val", "w");
35702   if (! f)
35703     return 1;
35704   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
35705     {
35706       long int i = longval ();
35707       if (i != ((long int) (sizeof (ac__type_sizeof_))))
35708         return 1;
35709       fprintf (f, "%ld\n", i);
35710     }
35711   else
35712     {
35713       unsigned long int i = ulongval ();
35714       if (i != ((long int) (sizeof (ac__type_sizeof_))))
35715         return 1;
35716       fprintf (f, "%lu\n", i);
35717     }
35718   return ferror (f) || fclose (f) != 0;
35719
35720   ;
35721   return 0;
35722 }
35723 _ACEOF
35724 rm -f conftest$ac_exeext
35725 if { (ac_try="$ac_link"
35726 case "(($ac_try" in
35727   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35728   *) ac_try_echo=$ac_try;;
35729 esac
35730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35731   (eval "$ac_link") 2>&5
35732   ac_status=$?
35733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35734   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_try") 2>&5
35741   ac_status=$?
35742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35743   (exit $ac_status); }; }; then
35744   ac_cv_sizeof_int=`cat conftest.val`
35745 else
35746   echo "$as_me: program exited with status $ac_status" >&5
35747 echo "$as_me: failed program was:" >&5
35748 sed 's/^/| /' conftest.$ac_ext >&5
35749
35750 ( exit $ac_status )
35751 if test "$ac_cv_type_int" = yes; then
35752      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
35753 See \`config.log' for more details." >&5
35754 echo "$as_me: error: cannot compute sizeof (int)
35755 See \`config.log' for more details." >&2;}
35756    { (exit 77); exit 77; }; }
35757    else
35758      ac_cv_sizeof_int=0
35759    fi
35760 fi
35761 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35762 fi
35763 rm -f conftest.val
35764 fi
35765 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
35766 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
35767
35768
35769
35770 cat >>confdefs.h <<_ACEOF
35771 #define SIZEOF_INT $ac_cv_sizeof_int
35772 _ACEOF
35773
35774
35775 { echo "$as_me:$LINENO: checking for long int" >&5
35776 echo $ECHO_N "checking for long int... $ECHO_C" >&6; }
35777 if test "${ac_cv_type_long_int+set}" = set; then
35778   echo $ECHO_N "(cached) $ECHO_C" >&6
35779 else
35780   cat >conftest.$ac_ext <<_ACEOF
35781 /* confdefs.h.  */
35782 _ACEOF
35783 cat confdefs.h >>conftest.$ac_ext
35784 cat >>conftest.$ac_ext <<_ACEOF
35785 /* end confdefs.h.  */
35786 $ac_includes_default
35787 typedef long int ac__type_new_;
35788 int
35789 main ()
35790 {
35791 if ((ac__type_new_ *) 0)
35792   return 0;
35793 if (sizeof (ac__type_new_))
35794   return 0;
35795   ;
35796   return 0;
35797 }
35798 _ACEOF
35799 rm -f conftest.$ac_objext
35800 if { (ac_try="$ac_compile"
35801 case "(($ac_try" in
35802   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35803   *) ac_try_echo=$ac_try;;
35804 esac
35805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35806   (eval "$ac_compile") 2>conftest.er1
35807   ac_status=$?
35808   grep -v '^ *+' conftest.er1 >conftest.err
35809   rm -f conftest.er1
35810   cat conftest.err >&5
35811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35812   (exit $ac_status); } && {
35813          test -z "$ac_c_werror_flag" ||
35814          test ! -s conftest.err
35815        } && test -s conftest.$ac_objext; then
35816   ac_cv_type_long_int=yes
35817 else
35818   echo "$as_me: failed program was:" >&5
35819 sed 's/^/| /' conftest.$ac_ext >&5
35820
35821         ac_cv_type_long_int=no
35822 fi
35823
35824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35825 fi
35826 { echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
35827 echo "${ECHO_T}$ac_cv_type_long_int" >&6; }
35828
35829 # The cast to long int works around a bug in the HP C Compiler
35830 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
35831 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
35832 # This bug is HP SR number 8606223364.
35833 { echo "$as_me:$LINENO: checking size of long int" >&5
35834 echo $ECHO_N "checking size of long int... $ECHO_C" >&6; }
35835 if test "${ac_cv_sizeof_long_int+set}" = set; then
35836   echo $ECHO_N "(cached) $ECHO_C" >&6
35837 else
35838   if test "$cross_compiling" = yes; then
35839   # Depending upon the size, compute the lo and hi bounds.
35840 cat >conftest.$ac_ext <<_ACEOF
35841 /* confdefs.h.  */
35842 _ACEOF
35843 cat confdefs.h >>conftest.$ac_ext
35844 cat >>conftest.$ac_ext <<_ACEOF
35845 /* end confdefs.h.  */
35846 $ac_includes_default
35847    typedef long int ac__type_sizeof_;
35848 int
35849 main ()
35850 {
35851 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
35852 test_array [0] = 0
35853
35854   ;
35855   return 0;
35856 }
35857 _ACEOF
35858 rm -f conftest.$ac_objext
35859 if { (ac_try="$ac_compile"
35860 case "(($ac_try" in
35861   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35862   *) ac_try_echo=$ac_try;;
35863 esac
35864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35865   (eval "$ac_compile") 2>conftest.er1
35866   ac_status=$?
35867   grep -v '^ *+' conftest.er1 >conftest.err
35868   rm -f conftest.er1
35869   cat conftest.err >&5
35870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35871   (exit $ac_status); } && {
35872          test -z "$ac_c_werror_flag" ||
35873          test ! -s conftest.err
35874        } && test -s conftest.$ac_objext; then
35875   ac_lo=0 ac_mid=0
35876   while :; do
35877     cat >conftest.$ac_ext <<_ACEOF
35878 /* confdefs.h.  */
35879 _ACEOF
35880 cat confdefs.h >>conftest.$ac_ext
35881 cat >>conftest.$ac_ext <<_ACEOF
35882 /* end confdefs.h.  */
35883 $ac_includes_default
35884    typedef long int ac__type_sizeof_;
35885 int
35886 main ()
35887 {
35888 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35889 test_array [0] = 0
35890
35891   ;
35892   return 0;
35893 }
35894 _ACEOF
35895 rm -f conftest.$ac_objext
35896 if { (ac_try="$ac_compile"
35897 case "(($ac_try" in
35898   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35899   *) ac_try_echo=$ac_try;;
35900 esac
35901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35902   (eval "$ac_compile") 2>conftest.er1
35903   ac_status=$?
35904   grep -v '^ *+' conftest.er1 >conftest.err
35905   rm -f conftest.er1
35906   cat conftest.err >&5
35907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35908   (exit $ac_status); } && {
35909          test -z "$ac_c_werror_flag" ||
35910          test ! -s conftest.err
35911        } && test -s conftest.$ac_objext; then
35912   ac_hi=$ac_mid; break
35913 else
35914   echo "$as_me: failed program was:" >&5
35915 sed 's/^/| /' conftest.$ac_ext >&5
35916
35917         ac_lo=`expr $ac_mid + 1`
35918                         if test $ac_lo -le $ac_mid; then
35919                           ac_lo= ac_hi=
35920                           break
35921                         fi
35922                         ac_mid=`expr 2 '*' $ac_mid + 1`
35923 fi
35924
35925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35926   done
35927 else
35928   echo "$as_me: failed program was:" >&5
35929 sed 's/^/| /' conftest.$ac_ext >&5
35930
35931         cat >conftest.$ac_ext <<_ACEOF
35932 /* confdefs.h.  */
35933 _ACEOF
35934 cat confdefs.h >>conftest.$ac_ext
35935 cat >>conftest.$ac_ext <<_ACEOF
35936 /* end confdefs.h.  */
35937 $ac_includes_default
35938    typedef long int ac__type_sizeof_;
35939 int
35940 main ()
35941 {
35942 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
35943 test_array [0] = 0
35944
35945   ;
35946   return 0;
35947 }
35948 _ACEOF
35949 rm -f conftest.$ac_objext
35950 if { (ac_try="$ac_compile"
35951 case "(($ac_try" in
35952   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35953   *) ac_try_echo=$ac_try;;
35954 esac
35955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35956   (eval "$ac_compile") 2>conftest.er1
35957   ac_status=$?
35958   grep -v '^ *+' conftest.er1 >conftest.err
35959   rm -f conftest.er1
35960   cat conftest.err >&5
35961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35962   (exit $ac_status); } && {
35963          test -z "$ac_c_werror_flag" ||
35964          test ! -s conftest.err
35965        } && test -s conftest.$ac_objext; then
35966   ac_hi=-1 ac_mid=-1
35967   while :; do
35968     cat >conftest.$ac_ext <<_ACEOF
35969 /* confdefs.h.  */
35970 _ACEOF
35971 cat confdefs.h >>conftest.$ac_ext
35972 cat >>conftest.$ac_ext <<_ACEOF
35973 /* end confdefs.h.  */
35974 $ac_includes_default
35975    typedef long int ac__type_sizeof_;
35976 int
35977 main ()
35978 {
35979 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
35980 test_array [0] = 0
35981
35982   ;
35983   return 0;
35984 }
35985 _ACEOF
35986 rm -f conftest.$ac_objext
35987 if { (ac_try="$ac_compile"
35988 case "(($ac_try" in
35989   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35990   *) ac_try_echo=$ac_try;;
35991 esac
35992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35993   (eval "$ac_compile") 2>conftest.er1
35994   ac_status=$?
35995   grep -v '^ *+' conftest.er1 >conftest.err
35996   rm -f conftest.er1
35997   cat conftest.err >&5
35998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35999   (exit $ac_status); } && {
36000          test -z "$ac_c_werror_flag" ||
36001          test ! -s conftest.err
36002        } && test -s conftest.$ac_objext; then
36003   ac_lo=$ac_mid; break
36004 else
36005   echo "$as_me: failed program was:" >&5
36006 sed 's/^/| /' conftest.$ac_ext >&5
36007
36008         ac_hi=`expr '(' $ac_mid ')' - 1`
36009                         if test $ac_mid -le $ac_hi; then
36010                           ac_lo= ac_hi=
36011                           break
36012                         fi
36013                         ac_mid=`expr 2 '*' $ac_mid`
36014 fi
36015
36016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36017   done
36018 else
36019   echo "$as_me: failed program was:" >&5
36020 sed 's/^/| /' conftest.$ac_ext >&5
36021
36022         ac_lo= ac_hi=
36023 fi
36024
36025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36026 fi
36027
36028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36029 # Binary search between lo and hi bounds.
36030 while test "x$ac_lo" != "x$ac_hi"; do
36031   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
36032   cat >conftest.$ac_ext <<_ACEOF
36033 /* confdefs.h.  */
36034 _ACEOF
36035 cat confdefs.h >>conftest.$ac_ext
36036 cat >>conftest.$ac_ext <<_ACEOF
36037 /* end confdefs.h.  */
36038 $ac_includes_default
36039    typedef long int ac__type_sizeof_;
36040 int
36041 main ()
36042 {
36043 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36044 test_array [0] = 0
36045
36046   ;
36047   return 0;
36048 }
36049 _ACEOF
36050 rm -f conftest.$ac_objext
36051 if { (ac_try="$ac_compile"
36052 case "(($ac_try" in
36053   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36054   *) ac_try_echo=$ac_try;;
36055 esac
36056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36057   (eval "$ac_compile") 2>conftest.er1
36058   ac_status=$?
36059   grep -v '^ *+' conftest.er1 >conftest.err
36060   rm -f conftest.er1
36061   cat conftest.err >&5
36062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36063   (exit $ac_status); } && {
36064          test -z "$ac_c_werror_flag" ||
36065          test ! -s conftest.err
36066        } && test -s conftest.$ac_objext; then
36067   ac_hi=$ac_mid
36068 else
36069   echo "$as_me: failed program was:" >&5
36070 sed 's/^/| /' conftest.$ac_ext >&5
36071
36072         ac_lo=`expr '(' $ac_mid ')' + 1`
36073 fi
36074
36075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36076 done
36077 case $ac_lo in
36078 ?*) ac_cv_sizeof_long_int=$ac_lo;;
36079 '') if test "$ac_cv_type_long_int" = yes; then
36080      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
36081 See \`config.log' for more details." >&5
36082 echo "$as_me: error: cannot compute sizeof (long int)
36083 See \`config.log' for more details." >&2;}
36084    { (exit 77); exit 77; }; }
36085    else
36086      ac_cv_sizeof_long_int=0
36087    fi ;;
36088 esac
36089 else
36090   cat >conftest.$ac_ext <<_ACEOF
36091 /* confdefs.h.  */
36092 _ACEOF
36093 cat confdefs.h >>conftest.$ac_ext
36094 cat >>conftest.$ac_ext <<_ACEOF
36095 /* end confdefs.h.  */
36096 $ac_includes_default
36097    typedef long int ac__type_sizeof_;
36098 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
36099 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
36100 #include <stdio.h>
36101 #include <stdlib.h>
36102 int
36103 main ()
36104 {
36105
36106   FILE *f = fopen ("conftest.val", "w");
36107   if (! f)
36108     return 1;
36109   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
36110     {
36111       long int i = longval ();
36112       if (i != ((long int) (sizeof (ac__type_sizeof_))))
36113         return 1;
36114       fprintf (f, "%ld\n", i);
36115     }
36116   else
36117     {
36118       unsigned long int i = ulongval ();
36119       if (i != ((long int) (sizeof (ac__type_sizeof_))))
36120         return 1;
36121       fprintf (f, "%lu\n", i);
36122     }
36123   return ferror (f) || fclose (f) != 0;
36124
36125   ;
36126   return 0;
36127 }
36128 _ACEOF
36129 rm -f conftest$ac_exeext
36130 if { (ac_try="$ac_link"
36131 case "(($ac_try" in
36132   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36133   *) ac_try_echo=$ac_try;;
36134 esac
36135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36136   (eval "$ac_link") 2>&5
36137   ac_status=$?
36138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36139   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_try") 2>&5
36146   ac_status=$?
36147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36148   (exit $ac_status); }; }; then
36149   ac_cv_sizeof_long_int=`cat conftest.val`
36150 else
36151   echo "$as_me: program exited with status $ac_status" >&5
36152 echo "$as_me: failed program was:" >&5
36153 sed 's/^/| /' conftest.$ac_ext >&5
36154
36155 ( exit $ac_status )
36156 if test "$ac_cv_type_long_int" = yes; then
36157      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
36158 See \`config.log' for more details." >&5
36159 echo "$as_me: error: cannot compute sizeof (long int)
36160 See \`config.log' for more details." >&2;}
36161    { (exit 77); exit 77; }; }
36162    else
36163      ac_cv_sizeof_long_int=0
36164    fi
36165 fi
36166 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36167 fi
36168 rm -f conftest.val
36169 fi
36170 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
36171 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6; }
36172
36173
36174
36175 cat >>confdefs.h <<_ACEOF
36176 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
36177 _ACEOF
36178
36179
36180 { echo "$as_me:$LINENO: checking for long long int" >&5
36181 echo $ECHO_N "checking for long long int... $ECHO_C" >&6; }
36182 if test "${ac_cv_type_long_long_int+set}" = set; then
36183   echo $ECHO_N "(cached) $ECHO_C" >&6
36184 else
36185   cat >conftest.$ac_ext <<_ACEOF
36186 /* confdefs.h.  */
36187 _ACEOF
36188 cat confdefs.h >>conftest.$ac_ext
36189 cat >>conftest.$ac_ext <<_ACEOF
36190 /* end confdefs.h.  */
36191 $ac_includes_default
36192 typedef long long int ac__type_new_;
36193 int
36194 main ()
36195 {
36196 if ((ac__type_new_ *) 0)
36197   return 0;
36198 if (sizeof (ac__type_new_))
36199   return 0;
36200   ;
36201   return 0;
36202 }
36203 _ACEOF
36204 rm -f conftest.$ac_objext
36205 if { (ac_try="$ac_compile"
36206 case "(($ac_try" in
36207   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36208   *) ac_try_echo=$ac_try;;
36209 esac
36210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36211   (eval "$ac_compile") 2>conftest.er1
36212   ac_status=$?
36213   grep -v '^ *+' conftest.er1 >conftest.err
36214   rm -f conftest.er1
36215   cat conftest.err >&5
36216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36217   (exit $ac_status); } && {
36218          test -z "$ac_c_werror_flag" ||
36219          test ! -s conftest.err
36220        } && test -s conftest.$ac_objext; then
36221   ac_cv_type_long_long_int=yes
36222 else
36223   echo "$as_me: failed program was:" >&5
36224 sed 's/^/| /' conftest.$ac_ext >&5
36225
36226         ac_cv_type_long_long_int=no
36227 fi
36228
36229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36230 fi
36231 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
36232 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6; }
36233
36234 # The cast to long int works around a bug in the HP C Compiler
36235 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
36236 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
36237 # This bug is HP SR number 8606223364.
36238 { echo "$as_me:$LINENO: checking size of long long int" >&5
36239 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6; }
36240 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
36241   echo $ECHO_N "(cached) $ECHO_C" >&6
36242 else
36243   if test "$cross_compiling" = yes; then
36244   # Depending upon the size, compute the lo and hi bounds.
36245 cat >conftest.$ac_ext <<_ACEOF
36246 /* confdefs.h.  */
36247 _ACEOF
36248 cat confdefs.h >>conftest.$ac_ext
36249 cat >>conftest.$ac_ext <<_ACEOF
36250 /* end confdefs.h.  */
36251 $ac_includes_default
36252    typedef long long int ac__type_sizeof_;
36253 int
36254 main ()
36255 {
36256 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
36257 test_array [0] = 0
36258
36259   ;
36260   return 0;
36261 }
36262 _ACEOF
36263 rm -f conftest.$ac_objext
36264 if { (ac_try="$ac_compile"
36265 case "(($ac_try" in
36266   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36267   *) ac_try_echo=$ac_try;;
36268 esac
36269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36270   (eval "$ac_compile") 2>conftest.er1
36271   ac_status=$?
36272   grep -v '^ *+' conftest.er1 >conftest.err
36273   rm -f conftest.er1
36274   cat conftest.err >&5
36275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36276   (exit $ac_status); } && {
36277          test -z "$ac_c_werror_flag" ||
36278          test ! -s conftest.err
36279        } && test -s conftest.$ac_objext; then
36280   ac_lo=0 ac_mid=0
36281   while :; do
36282     cat >conftest.$ac_ext <<_ACEOF
36283 /* confdefs.h.  */
36284 _ACEOF
36285 cat confdefs.h >>conftest.$ac_ext
36286 cat >>conftest.$ac_ext <<_ACEOF
36287 /* end confdefs.h.  */
36288 $ac_includes_default
36289    typedef long long int ac__type_sizeof_;
36290 int
36291 main ()
36292 {
36293 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36294 test_array [0] = 0
36295
36296   ;
36297   return 0;
36298 }
36299 _ACEOF
36300 rm -f conftest.$ac_objext
36301 if { (ac_try="$ac_compile"
36302 case "(($ac_try" in
36303   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36304   *) ac_try_echo=$ac_try;;
36305 esac
36306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36307   (eval "$ac_compile") 2>conftest.er1
36308   ac_status=$?
36309   grep -v '^ *+' conftest.er1 >conftest.err
36310   rm -f conftest.er1
36311   cat conftest.err >&5
36312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36313   (exit $ac_status); } && {
36314          test -z "$ac_c_werror_flag" ||
36315          test ! -s conftest.err
36316        } && test -s conftest.$ac_objext; then
36317   ac_hi=$ac_mid; break
36318 else
36319   echo "$as_me: failed program was:" >&5
36320 sed 's/^/| /' conftest.$ac_ext >&5
36321
36322         ac_lo=`expr $ac_mid + 1`
36323                         if test $ac_lo -le $ac_mid; then
36324                           ac_lo= ac_hi=
36325                           break
36326                         fi
36327                         ac_mid=`expr 2 '*' $ac_mid + 1`
36328 fi
36329
36330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36331   done
36332 else
36333   echo "$as_me: failed program was:" >&5
36334 sed 's/^/| /' conftest.$ac_ext >&5
36335
36336         cat >conftest.$ac_ext <<_ACEOF
36337 /* confdefs.h.  */
36338 _ACEOF
36339 cat confdefs.h >>conftest.$ac_ext
36340 cat >>conftest.$ac_ext <<_ACEOF
36341 /* end confdefs.h.  */
36342 $ac_includes_default
36343    typedef long long int ac__type_sizeof_;
36344 int
36345 main ()
36346 {
36347 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
36348 test_array [0] = 0
36349
36350   ;
36351   return 0;
36352 }
36353 _ACEOF
36354 rm -f conftest.$ac_objext
36355 if { (ac_try="$ac_compile"
36356 case "(($ac_try" in
36357   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36358   *) ac_try_echo=$ac_try;;
36359 esac
36360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36361   (eval "$ac_compile") 2>conftest.er1
36362   ac_status=$?
36363   grep -v '^ *+' conftest.er1 >conftest.err
36364   rm -f conftest.er1
36365   cat conftest.err >&5
36366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36367   (exit $ac_status); } && {
36368          test -z "$ac_c_werror_flag" ||
36369          test ! -s conftest.err
36370        } && test -s conftest.$ac_objext; then
36371   ac_hi=-1 ac_mid=-1
36372   while :; do
36373     cat >conftest.$ac_ext <<_ACEOF
36374 /* confdefs.h.  */
36375 _ACEOF
36376 cat confdefs.h >>conftest.$ac_ext
36377 cat >>conftest.$ac_ext <<_ACEOF
36378 /* end confdefs.h.  */
36379 $ac_includes_default
36380    typedef long long int ac__type_sizeof_;
36381 int
36382 main ()
36383 {
36384 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
36385 test_array [0] = 0
36386
36387   ;
36388   return 0;
36389 }
36390 _ACEOF
36391 rm -f conftest.$ac_objext
36392 if { (ac_try="$ac_compile"
36393 case "(($ac_try" in
36394   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36395   *) ac_try_echo=$ac_try;;
36396 esac
36397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36398   (eval "$ac_compile") 2>conftest.er1
36399   ac_status=$?
36400   grep -v '^ *+' conftest.er1 >conftest.err
36401   rm -f conftest.er1
36402   cat conftest.err >&5
36403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36404   (exit $ac_status); } && {
36405          test -z "$ac_c_werror_flag" ||
36406          test ! -s conftest.err
36407        } && test -s conftest.$ac_objext; then
36408   ac_lo=$ac_mid; break
36409 else
36410   echo "$as_me: failed program was:" >&5
36411 sed 's/^/| /' conftest.$ac_ext >&5
36412
36413         ac_hi=`expr '(' $ac_mid ')' - 1`
36414                         if test $ac_mid -le $ac_hi; then
36415                           ac_lo= ac_hi=
36416                           break
36417                         fi
36418                         ac_mid=`expr 2 '*' $ac_mid`
36419 fi
36420
36421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36422   done
36423 else
36424   echo "$as_me: failed program was:" >&5
36425 sed 's/^/| /' conftest.$ac_ext >&5
36426
36427         ac_lo= ac_hi=
36428 fi
36429
36430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36431 fi
36432
36433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36434 # Binary search between lo and hi bounds.
36435 while test "x$ac_lo" != "x$ac_hi"; do
36436   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
36437   cat >conftest.$ac_ext <<_ACEOF
36438 /* confdefs.h.  */
36439 _ACEOF
36440 cat confdefs.h >>conftest.$ac_ext
36441 cat >>conftest.$ac_ext <<_ACEOF
36442 /* end confdefs.h.  */
36443 $ac_includes_default
36444    typedef long long int ac__type_sizeof_;
36445 int
36446 main ()
36447 {
36448 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36449 test_array [0] = 0
36450
36451   ;
36452   return 0;
36453 }
36454 _ACEOF
36455 rm -f conftest.$ac_objext
36456 if { (ac_try="$ac_compile"
36457 case "(($ac_try" in
36458   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36459   *) ac_try_echo=$ac_try;;
36460 esac
36461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36462   (eval "$ac_compile") 2>conftest.er1
36463   ac_status=$?
36464   grep -v '^ *+' conftest.er1 >conftest.err
36465   rm -f conftest.er1
36466   cat conftest.err >&5
36467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36468   (exit $ac_status); } && {
36469          test -z "$ac_c_werror_flag" ||
36470          test ! -s conftest.err
36471        } && test -s conftest.$ac_objext; then
36472   ac_hi=$ac_mid
36473 else
36474   echo "$as_me: failed program was:" >&5
36475 sed 's/^/| /' conftest.$ac_ext >&5
36476
36477         ac_lo=`expr '(' $ac_mid ')' + 1`
36478 fi
36479
36480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36481 done
36482 case $ac_lo in
36483 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
36484 '') if test "$ac_cv_type_long_long_int" = yes; then
36485      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
36486 See \`config.log' for more details." >&5
36487 echo "$as_me: error: cannot compute sizeof (long long int)
36488 See \`config.log' for more details." >&2;}
36489    { (exit 77); exit 77; }; }
36490    else
36491      ac_cv_sizeof_long_long_int=0
36492    fi ;;
36493 esac
36494 else
36495   cat >conftest.$ac_ext <<_ACEOF
36496 /* confdefs.h.  */
36497 _ACEOF
36498 cat confdefs.h >>conftest.$ac_ext
36499 cat >>conftest.$ac_ext <<_ACEOF
36500 /* end confdefs.h.  */
36501 $ac_includes_default
36502    typedef long long int ac__type_sizeof_;
36503 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
36504 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
36505 #include <stdio.h>
36506 #include <stdlib.h>
36507 int
36508 main ()
36509 {
36510
36511   FILE *f = fopen ("conftest.val", "w");
36512   if (! f)
36513     return 1;
36514   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
36515     {
36516       long int i = longval ();
36517       if (i != ((long int) (sizeof (ac__type_sizeof_))))
36518         return 1;
36519       fprintf (f, "%ld\n", i);
36520     }
36521   else
36522     {
36523       unsigned long int i = ulongval ();
36524       if (i != ((long int) (sizeof (ac__type_sizeof_))))
36525         return 1;
36526       fprintf (f, "%lu\n", i);
36527     }
36528   return ferror (f) || fclose (f) != 0;
36529
36530   ;
36531   return 0;
36532 }
36533 _ACEOF
36534 rm -f conftest$ac_exeext
36535 if { (ac_try="$ac_link"
36536 case "(($ac_try" in
36537   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36538   *) ac_try_echo=$ac_try;;
36539 esac
36540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36541   (eval "$ac_link") 2>&5
36542   ac_status=$?
36543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36544   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_try") 2>&5
36551   ac_status=$?
36552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36553   (exit $ac_status); }; }; then
36554   ac_cv_sizeof_long_long_int=`cat conftest.val`
36555 else
36556   echo "$as_me: program exited with status $ac_status" >&5
36557 echo "$as_me: failed program was:" >&5
36558 sed 's/^/| /' conftest.$ac_ext >&5
36559
36560 ( exit $ac_status )
36561 if test "$ac_cv_type_long_long_int" = yes; then
36562      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
36563 See \`config.log' for more details." >&5
36564 echo "$as_me: error: cannot compute sizeof (long long int)
36565 See \`config.log' for more details." >&2;}
36566    { (exit 77); exit 77; }; }
36567    else
36568      ac_cv_sizeof_long_long_int=0
36569    fi
36570 fi
36571 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36572 fi
36573 rm -f conftest.val
36574 fi
36575 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
36576 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6; }
36577
36578
36579
36580 cat >>confdefs.h <<_ACEOF
36581 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
36582 _ACEOF
36583
36584
36585 { echo "$as_me:$LINENO: checking for int *" >&5
36586 echo $ECHO_N "checking for int *... $ECHO_C" >&6; }
36587 if test "${ac_cv_type_int_p+set}" = set; then
36588   echo $ECHO_N "(cached) $ECHO_C" >&6
36589 else
36590   cat >conftest.$ac_ext <<_ACEOF
36591 /* confdefs.h.  */
36592 _ACEOF
36593 cat confdefs.h >>conftest.$ac_ext
36594 cat >>conftest.$ac_ext <<_ACEOF
36595 /* end confdefs.h.  */
36596 $ac_includes_default
36597 typedef int * ac__type_new_;
36598 int
36599 main ()
36600 {
36601 if ((ac__type_new_ *) 0)
36602   return 0;
36603 if (sizeof (ac__type_new_))
36604   return 0;
36605   ;
36606   return 0;
36607 }
36608 _ACEOF
36609 rm -f conftest.$ac_objext
36610 if { (ac_try="$ac_compile"
36611 case "(($ac_try" in
36612   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36613   *) ac_try_echo=$ac_try;;
36614 esac
36615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36616   (eval "$ac_compile") 2>conftest.er1
36617   ac_status=$?
36618   grep -v '^ *+' conftest.er1 >conftest.err
36619   rm -f conftest.er1
36620   cat conftest.err >&5
36621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36622   (exit $ac_status); } && {
36623          test -z "$ac_c_werror_flag" ||
36624          test ! -s conftest.err
36625        } && test -s conftest.$ac_objext; then
36626   ac_cv_type_int_p=yes
36627 else
36628   echo "$as_me: failed program was:" >&5
36629 sed 's/^/| /' conftest.$ac_ext >&5
36630
36631         ac_cv_type_int_p=no
36632 fi
36633
36634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36635 fi
36636 { echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
36637 echo "${ECHO_T}$ac_cv_type_int_p" >&6; }
36638
36639 # The cast to long int works around a bug in the HP C Compiler
36640 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
36641 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
36642 # This bug is HP SR number 8606223364.
36643 { echo "$as_me:$LINENO: checking size of int *" >&5
36644 echo $ECHO_N "checking size of int *... $ECHO_C" >&6; }
36645 if test "${ac_cv_sizeof_int_p+set}" = set; then
36646   echo $ECHO_N "(cached) $ECHO_C" >&6
36647 else
36648   if test "$cross_compiling" = yes; then
36649   # Depending upon the size, compute the lo and hi bounds.
36650 cat >conftest.$ac_ext <<_ACEOF
36651 /* confdefs.h.  */
36652 _ACEOF
36653 cat confdefs.h >>conftest.$ac_ext
36654 cat >>conftest.$ac_ext <<_ACEOF
36655 /* end confdefs.h.  */
36656 $ac_includes_default
36657    typedef int * ac__type_sizeof_;
36658 int
36659 main ()
36660 {
36661 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
36662 test_array [0] = 0
36663
36664   ;
36665   return 0;
36666 }
36667 _ACEOF
36668 rm -f conftest.$ac_objext
36669 if { (ac_try="$ac_compile"
36670 case "(($ac_try" in
36671   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36672   *) ac_try_echo=$ac_try;;
36673 esac
36674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36675   (eval "$ac_compile") 2>conftest.er1
36676   ac_status=$?
36677   grep -v '^ *+' conftest.er1 >conftest.err
36678   rm -f conftest.er1
36679   cat conftest.err >&5
36680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36681   (exit $ac_status); } && {
36682          test -z "$ac_c_werror_flag" ||
36683          test ! -s conftest.err
36684        } && test -s conftest.$ac_objext; then
36685   ac_lo=0 ac_mid=0
36686   while :; do
36687     cat >conftest.$ac_ext <<_ACEOF
36688 /* confdefs.h.  */
36689 _ACEOF
36690 cat confdefs.h >>conftest.$ac_ext
36691 cat >>conftest.$ac_ext <<_ACEOF
36692 /* end confdefs.h.  */
36693 $ac_includes_default
36694    typedef int * ac__type_sizeof_;
36695 int
36696 main ()
36697 {
36698 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36699 test_array [0] = 0
36700
36701   ;
36702   return 0;
36703 }
36704 _ACEOF
36705 rm -f conftest.$ac_objext
36706 if { (ac_try="$ac_compile"
36707 case "(($ac_try" in
36708   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36709   *) ac_try_echo=$ac_try;;
36710 esac
36711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36712   (eval "$ac_compile") 2>conftest.er1
36713   ac_status=$?
36714   grep -v '^ *+' conftest.er1 >conftest.err
36715   rm -f conftest.er1
36716   cat conftest.err >&5
36717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36718   (exit $ac_status); } && {
36719          test -z "$ac_c_werror_flag" ||
36720          test ! -s conftest.err
36721        } && test -s conftest.$ac_objext; then
36722   ac_hi=$ac_mid; break
36723 else
36724   echo "$as_me: failed program was:" >&5
36725 sed 's/^/| /' conftest.$ac_ext >&5
36726
36727         ac_lo=`expr $ac_mid + 1`
36728                         if test $ac_lo -le $ac_mid; then
36729                           ac_lo= ac_hi=
36730                           break
36731                         fi
36732                         ac_mid=`expr 2 '*' $ac_mid + 1`
36733 fi
36734
36735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36736   done
36737 else
36738   echo "$as_me: failed program was:" >&5
36739 sed 's/^/| /' conftest.$ac_ext >&5
36740
36741         cat >conftest.$ac_ext <<_ACEOF
36742 /* confdefs.h.  */
36743 _ACEOF
36744 cat confdefs.h >>conftest.$ac_ext
36745 cat >>conftest.$ac_ext <<_ACEOF
36746 /* end confdefs.h.  */
36747 $ac_includes_default
36748    typedef int * ac__type_sizeof_;
36749 int
36750 main ()
36751 {
36752 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
36753 test_array [0] = 0
36754
36755   ;
36756   return 0;
36757 }
36758 _ACEOF
36759 rm -f conftest.$ac_objext
36760 if { (ac_try="$ac_compile"
36761 case "(($ac_try" in
36762   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36763   *) ac_try_echo=$ac_try;;
36764 esac
36765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36766   (eval "$ac_compile") 2>conftest.er1
36767   ac_status=$?
36768   grep -v '^ *+' conftest.er1 >conftest.err
36769   rm -f conftest.er1
36770   cat conftest.err >&5
36771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36772   (exit $ac_status); } && {
36773          test -z "$ac_c_werror_flag" ||
36774          test ! -s conftest.err
36775        } && test -s conftest.$ac_objext; then
36776   ac_hi=-1 ac_mid=-1
36777   while :; do
36778     cat >conftest.$ac_ext <<_ACEOF
36779 /* confdefs.h.  */
36780 _ACEOF
36781 cat confdefs.h >>conftest.$ac_ext
36782 cat >>conftest.$ac_ext <<_ACEOF
36783 /* end confdefs.h.  */
36784 $ac_includes_default
36785    typedef int * ac__type_sizeof_;
36786 int
36787 main ()
36788 {
36789 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
36790 test_array [0] = 0
36791
36792   ;
36793   return 0;
36794 }
36795 _ACEOF
36796 rm -f conftest.$ac_objext
36797 if { (ac_try="$ac_compile"
36798 case "(($ac_try" in
36799   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36800   *) ac_try_echo=$ac_try;;
36801 esac
36802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36803   (eval "$ac_compile") 2>conftest.er1
36804   ac_status=$?
36805   grep -v '^ *+' conftest.er1 >conftest.err
36806   rm -f conftest.er1
36807   cat conftest.err >&5
36808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36809   (exit $ac_status); } && {
36810          test -z "$ac_c_werror_flag" ||
36811          test ! -s conftest.err
36812        } && test -s conftest.$ac_objext; then
36813   ac_lo=$ac_mid; break
36814 else
36815   echo "$as_me: failed program was:" >&5
36816 sed 's/^/| /' conftest.$ac_ext >&5
36817
36818         ac_hi=`expr '(' $ac_mid ')' - 1`
36819                         if test $ac_mid -le $ac_hi; then
36820                           ac_lo= ac_hi=
36821                           break
36822                         fi
36823                         ac_mid=`expr 2 '*' $ac_mid`
36824 fi
36825
36826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36827   done
36828 else
36829   echo "$as_me: failed program was:" >&5
36830 sed 's/^/| /' conftest.$ac_ext >&5
36831
36832         ac_lo= ac_hi=
36833 fi
36834
36835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36836 fi
36837
36838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36839 # Binary search between lo and hi bounds.
36840 while test "x$ac_lo" != "x$ac_hi"; do
36841   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
36842   cat >conftest.$ac_ext <<_ACEOF
36843 /* confdefs.h.  */
36844 _ACEOF
36845 cat confdefs.h >>conftest.$ac_ext
36846 cat >>conftest.$ac_ext <<_ACEOF
36847 /* end confdefs.h.  */
36848 $ac_includes_default
36849    typedef int * ac__type_sizeof_;
36850 int
36851 main ()
36852 {
36853 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36854 test_array [0] = 0
36855
36856   ;
36857   return 0;
36858 }
36859 _ACEOF
36860 rm -f conftest.$ac_objext
36861 if { (ac_try="$ac_compile"
36862 case "(($ac_try" in
36863   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36864   *) ac_try_echo=$ac_try;;
36865 esac
36866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36867   (eval "$ac_compile") 2>conftest.er1
36868   ac_status=$?
36869   grep -v '^ *+' conftest.er1 >conftest.err
36870   rm -f conftest.er1
36871   cat conftest.err >&5
36872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36873   (exit $ac_status); } && {
36874          test -z "$ac_c_werror_flag" ||
36875          test ! -s conftest.err
36876        } && test -s conftest.$ac_objext; then
36877   ac_hi=$ac_mid
36878 else
36879   echo "$as_me: failed program was:" >&5
36880 sed 's/^/| /' conftest.$ac_ext >&5
36881
36882         ac_lo=`expr '(' $ac_mid ')' + 1`
36883 fi
36884
36885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36886 done
36887 case $ac_lo in
36888 ?*) ac_cv_sizeof_int_p=$ac_lo;;
36889 '') if test "$ac_cv_type_int_p" = yes; then
36890      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
36891 See \`config.log' for more details." >&5
36892 echo "$as_me: error: cannot compute sizeof (int *)
36893 See \`config.log' for more details." >&2;}
36894    { (exit 77); exit 77; }; }
36895    else
36896      ac_cv_sizeof_int_p=0
36897    fi ;;
36898 esac
36899 else
36900   cat >conftest.$ac_ext <<_ACEOF
36901 /* confdefs.h.  */
36902 _ACEOF
36903 cat confdefs.h >>conftest.$ac_ext
36904 cat >>conftest.$ac_ext <<_ACEOF
36905 /* end confdefs.h.  */
36906 $ac_includes_default
36907    typedef int * ac__type_sizeof_;
36908 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
36909 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
36910 #include <stdio.h>
36911 #include <stdlib.h>
36912 int
36913 main ()
36914 {
36915
36916   FILE *f = fopen ("conftest.val", "w");
36917   if (! f)
36918     return 1;
36919   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
36920     {
36921       long int i = longval ();
36922       if (i != ((long int) (sizeof (ac__type_sizeof_))))
36923         return 1;
36924       fprintf (f, "%ld\n", i);
36925     }
36926   else
36927     {
36928       unsigned long int i = ulongval ();
36929       if (i != ((long int) (sizeof (ac__type_sizeof_))))
36930         return 1;
36931       fprintf (f, "%lu\n", i);
36932     }
36933   return ferror (f) || fclose (f) != 0;
36934
36935   ;
36936   return 0;
36937 }
36938 _ACEOF
36939 rm -f conftest$ac_exeext
36940 if { (ac_try="$ac_link"
36941 case "(($ac_try" in
36942   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36943   *) ac_try_echo=$ac_try;;
36944 esac
36945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36946   (eval "$ac_link") 2>&5
36947   ac_status=$?
36948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36949   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_try") 2>&5
36956   ac_status=$?
36957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36958   (exit $ac_status); }; }; then
36959   ac_cv_sizeof_int_p=`cat conftest.val`
36960 else
36961   echo "$as_me: program exited with status $ac_status" >&5
36962 echo "$as_me: failed program was:" >&5
36963 sed 's/^/| /' conftest.$ac_ext >&5
36964
36965 ( exit $ac_status )
36966 if test "$ac_cv_type_int_p" = yes; then
36967      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
36968 See \`config.log' for more details." >&5
36969 echo "$as_me: error: cannot compute sizeof (int *)
36970 See \`config.log' for more details." >&2;}
36971    { (exit 77); exit 77; }; }
36972    else
36973      ac_cv_sizeof_int_p=0
36974    fi
36975 fi
36976 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36977 fi
36978 rm -f conftest.val
36979 fi
36980 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
36981 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6; }
36982
36983
36984
36985 cat >>confdefs.h <<_ACEOF
36986 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
36987 _ACEOF
36988
36989
36990
36991 { echo "$as_me:$LINENO: checking for u_int type" >&5
36992 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6; }
36993 if test "${ac_cv_have_u_int+set}" = set; then
36994   echo $ECHO_N "(cached) $ECHO_C" >&6
36995 else
36996
36997        cat >conftest.$ac_ext <<_ACEOF
36998 /* confdefs.h.  */
36999 _ACEOF
37000 cat confdefs.h >>conftest.$ac_ext
37001 cat >>conftest.$ac_ext <<_ACEOF
37002 /* end confdefs.h.  */
37003
37004               #include <sys/types.h>
37005
37006 int
37007 main ()
37008 {
37009
37010               u_int a; a = 1;
37011
37012   ;
37013   return 0;
37014 }
37015 _ACEOF
37016 rm -f conftest.$ac_objext
37017 if { (ac_try="$ac_compile"
37018 case "(($ac_try" in
37019   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37020   *) ac_try_echo=$ac_try;;
37021 esac
37022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37023   (eval "$ac_compile") 2>conftest.er1
37024   ac_status=$?
37025   grep -v '^ *+' conftest.er1 >conftest.err
37026   rm -f conftest.er1
37027   cat conftest.err >&5
37028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37029   (exit $ac_status); } && {
37030          test -z "$ac_c_werror_flag" ||
37031          test ! -s conftest.err
37032        } && test -s conftest.$ac_objext; then
37033
37034               ac_cv_have_u_int="yes"
37035
37036 else
37037   echo "$as_me: failed program was:" >&5
37038 sed 's/^/| /' conftest.$ac_ext >&5
37039
37040
37041               ac_cv_have_u_int="no"
37042
37043
37044 fi
37045
37046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37047
37048
37049 fi
37050 { echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
37051 echo "${ECHO_T}$ac_cv_have_u_int" >&6; }
37052 if test "x$ac_cv_have_u_int" = "xyes" ; then
37053    cat >>confdefs.h <<\_ACEOF
37054 #define HAVE_U_INT 1
37055 _ACEOF
37056
37057    have_u_int=1
37058 fi
37059
37060 { echo "$as_me:$LINENO: checking for intmax_t type" >&5
37061 echo $ECHO_N "checking for intmax_t type... $ECHO_C" >&6; }
37062 if test "${ac_cv_have_intmax_t+set}" = set; then
37063   echo $ECHO_N "(cached) $ECHO_C" >&6
37064 else
37065
37066        cat >conftest.$ac_ext <<_ACEOF
37067 /* confdefs.h.  */
37068 _ACEOF
37069 cat confdefs.h >>conftest.$ac_ext
37070 cat >>conftest.$ac_ext <<_ACEOF
37071 /* end confdefs.h.  */
37072
37073               #include <sys/types.h>
37074
37075 int
37076 main ()
37077 {
37078
37079               intmax_t a; a = 1;
37080
37081   ;
37082   return 0;
37083 }
37084 _ACEOF
37085 rm -f conftest.$ac_objext
37086 if { (ac_try="$ac_compile"
37087 case "(($ac_try" in
37088   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37089   *) ac_try_echo=$ac_try;;
37090 esac
37091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37092   (eval "$ac_compile") 2>conftest.er1
37093   ac_status=$?
37094   grep -v '^ *+' conftest.er1 >conftest.err
37095   rm -f conftest.er1
37096   cat conftest.err >&5
37097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37098   (exit $ac_status); } && {
37099          test -z "$ac_c_werror_flag" ||
37100          test ! -s conftest.err
37101        } && test -s conftest.$ac_objext; then
37102
37103               ac_cv_have_intmax_t="yes"
37104
37105 else
37106   echo "$as_me: failed program was:" >&5
37107 sed 's/^/| /' conftest.$ac_ext >&5
37108
37109
37110               cat >conftest.$ac_ext <<_ACEOF
37111 /* confdefs.h.  */
37112 _ACEOF
37113 cat confdefs.h >>conftest.$ac_ext
37114 cat >>conftest.$ac_ext <<_ACEOF
37115 /* end confdefs.h.  */
37116
37117                      #include <stdint.h>
37118
37119 int
37120 main ()
37121 {
37122
37123                      intmax_t a; a = 1;
37124
37125   ;
37126   return 0;
37127 }
37128 _ACEOF
37129 rm -f conftest.$ac_objext
37130 if { (ac_try="$ac_compile"
37131 case "(($ac_try" in
37132   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37133   *) ac_try_echo=$ac_try;;
37134 esac
37135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37136   (eval "$ac_compile") 2>conftest.er1
37137   ac_status=$?
37138   grep -v '^ *+' conftest.er1 >conftest.err
37139   rm -f conftest.er1
37140   cat conftest.err >&5
37141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37142   (exit $ac_status); } && {
37143          test -z "$ac_c_werror_flag" ||
37144          test ! -s conftest.err
37145        } && test -s conftest.$ac_objext; then
37146
37147                      ac_cv_have_intmax_t="yes"
37148
37149 else
37150   echo "$as_me: failed program was:" >&5
37151 sed 's/^/| /' conftest.$ac_ext >&5
37152
37153
37154                      ac_cv_have_intmax_t="no"
37155
37156
37157 fi
37158
37159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37160
37161
37162 fi
37163
37164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37165
37166
37167 fi
37168 { echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
37169 echo "${ECHO_T}$ac_cv_have_intmax_t" >&6; }
37170 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
37171    cat >>confdefs.h <<\_ACEOF
37172 #define HAVE_INTMAX_T 1
37173 _ACEOF
37174
37175    have_intmax_t=1
37176 fi
37177
37178 { echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
37179 echo $ECHO_N "checking for u_intmax_t type... $ECHO_C" >&6; }
37180 if test "${ac_cv_have_u_intmax_t+set}" = set; then
37181   echo $ECHO_N "(cached) $ECHO_C" >&6
37182 else
37183
37184        cat >conftest.$ac_ext <<_ACEOF
37185 /* confdefs.h.  */
37186 _ACEOF
37187 cat confdefs.h >>conftest.$ac_ext
37188 cat >>conftest.$ac_ext <<_ACEOF
37189 /* end confdefs.h.  */
37190
37191               #include <sys/types.h>
37192
37193 int
37194 main ()
37195 {
37196
37197               u_intmax_t a; a = 1;
37198
37199   ;
37200   return 0;
37201 }
37202 _ACEOF
37203 rm -f conftest.$ac_objext
37204 if { (ac_try="$ac_compile"
37205 case "(($ac_try" in
37206   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37207   *) ac_try_echo=$ac_try;;
37208 esac
37209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37210   (eval "$ac_compile") 2>conftest.er1
37211   ac_status=$?
37212   grep -v '^ *+' conftest.er1 >conftest.err
37213   rm -f conftest.er1
37214   cat conftest.err >&5
37215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37216   (exit $ac_status); } && {
37217          test -z "$ac_c_werror_flag" ||
37218          test ! -s conftest.err
37219        } && test -s conftest.$ac_objext; then
37220
37221               ac_cv_have_u_intmax_t="yes"
37222
37223 else
37224   echo "$as_me: failed program was:" >&5
37225 sed 's/^/| /' conftest.$ac_ext >&5
37226
37227
37228               cat >conftest.$ac_ext <<_ACEOF
37229 /* confdefs.h.  */
37230 _ACEOF
37231 cat confdefs.h >>conftest.$ac_ext
37232 cat >>conftest.$ac_ext <<_ACEOF
37233 /* end confdefs.h.  */
37234
37235                      #include <stdint.h>
37236
37237 int
37238 main ()
37239 {
37240
37241                     u_intmax_t a; a = 1;
37242
37243   ;
37244   return 0;
37245 }
37246 _ACEOF
37247 rm -f conftest.$ac_objext
37248 if { (ac_try="$ac_compile"
37249 case "(($ac_try" in
37250   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37251   *) ac_try_echo=$ac_try;;
37252 esac
37253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37254   (eval "$ac_compile") 2>conftest.er1
37255   ac_status=$?
37256   grep -v '^ *+' conftest.er1 >conftest.err
37257   rm -f conftest.er1
37258   cat conftest.err >&5
37259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37260   (exit $ac_status); } && {
37261          test -z "$ac_c_werror_flag" ||
37262          test ! -s conftest.err
37263        } && test -s conftest.$ac_objext; then
37264
37265                     ac_cv_have_u_intmax_t="yes"
37266
37267 else
37268   echo "$as_me: failed program was:" >&5
37269 sed 's/^/| /' conftest.$ac_ext >&5
37270
37271
37272                     ac_cv_have_u_intmax_t="no"
37273
37274
37275 fi
37276
37277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37278
37279
37280 fi
37281
37282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37283
37284
37285 fi
37286 { echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
37287 echo "${ECHO_T}$ac_cv_have_u_intmax_t" >&6; }
37288 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
37289    cat >>confdefs.h <<\_ACEOF
37290 #define HAVE_U_INTMAX_T 1
37291 _ACEOF
37292
37293    have_u_intmax_t=1
37294 fi
37295
37296 { echo "$as_me:$LINENO: checking for intXX_t types" >&5
37297 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6; }
37298 if test "${ac_cv_have_intxx_t+set}" = set; then
37299   echo $ECHO_N "(cached) $ECHO_C" >&6
37300 else
37301
37302        cat >conftest.$ac_ext <<_ACEOF
37303 /* confdefs.h.  */
37304 _ACEOF
37305 cat confdefs.h >>conftest.$ac_ext
37306 cat >>conftest.$ac_ext <<_ACEOF
37307 /* end confdefs.h.  */
37308
37309               #include <sys/types.h>
37310
37311 int
37312 main ()
37313 {
37314
37315               int8_t a; int16_t b; int32_t c; a = b = c = 1;
37316
37317   ;
37318   return 0;
37319 }
37320 _ACEOF
37321 rm -f conftest.$ac_objext
37322 if { (ac_try="$ac_compile"
37323 case "(($ac_try" in
37324   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37325   *) ac_try_echo=$ac_try;;
37326 esac
37327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37328   (eval "$ac_compile") 2>conftest.er1
37329   ac_status=$?
37330   grep -v '^ *+' conftest.er1 >conftest.err
37331   rm -f conftest.er1
37332   cat conftest.err >&5
37333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37334   (exit $ac_status); } && {
37335          test -z "$ac_c_werror_flag" ||
37336          test ! -s conftest.err
37337        } && test -s conftest.$ac_objext; then
37338
37339               ac_cv_have_intxx_t="yes"
37340
37341 else
37342   echo "$as_me: failed program was:" >&5
37343 sed 's/^/| /' conftest.$ac_ext >&5
37344
37345
37346               ac_cv_have_intxx_t="no"
37347
37348
37349 fi
37350
37351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37352
37353
37354 fi
37355 { echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
37356 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6; }
37357 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
37358    cat >>confdefs.h <<\_ACEOF
37359 #define HAVE_INTXX_T 1
37360 _ACEOF
37361
37362    have_intxx_t=1
37363 fi
37364
37365 { echo "$as_me:$LINENO: checking for int64_t type" >&5
37366 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6; }
37367 if test "${ac_cv_have_int64_t+set}" = set; then
37368   echo $ECHO_N "(cached) $ECHO_C" >&6
37369 else
37370
37371        cat >conftest.$ac_ext <<_ACEOF
37372 /* confdefs.h.  */
37373 _ACEOF
37374 cat confdefs.h >>conftest.$ac_ext
37375 cat >>conftest.$ac_ext <<_ACEOF
37376 /* end confdefs.h.  */
37377
37378               #include <sys/types.h>
37379
37380 int
37381 main ()
37382 {
37383
37384               int64_t a; a = 1;
37385
37386   ;
37387   return 0;
37388 }
37389 _ACEOF
37390 rm -f conftest.$ac_objext
37391 if { (ac_try="$ac_compile"
37392 case "(($ac_try" in
37393   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37394   *) ac_try_echo=$ac_try;;
37395 esac
37396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37397   (eval "$ac_compile") 2>conftest.er1
37398   ac_status=$?
37399   grep -v '^ *+' conftest.er1 >conftest.err
37400   rm -f conftest.er1
37401   cat conftest.err >&5
37402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37403   (exit $ac_status); } && {
37404          test -z "$ac_c_werror_flag" ||
37405          test ! -s conftest.err
37406        } && test -s conftest.$ac_objext; then
37407
37408               ac_cv_have_int64_t="yes"
37409
37410 else
37411   echo "$as_me: failed program was:" >&5
37412 sed 's/^/| /' conftest.$ac_ext >&5
37413
37414
37415               ac_cv_have_int64_t="no"
37416
37417
37418 fi
37419
37420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37421
37422
37423 fi
37424 { echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
37425 echo "${ECHO_T}$ac_cv_have_int64_t" >&6; }
37426 if test "x$ac_cv_have_int64_t" = "xyes" ; then
37427    cat >>confdefs.h <<\_ACEOF
37428 #define HAVE_INT64_T 1
37429 _ACEOF
37430
37431    have_int64_t=1
37432 fi
37433
37434 { echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
37435 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6; }
37436 if test "${ac_cv_have_u_intxx_t+set}" = set; then
37437   echo $ECHO_N "(cached) $ECHO_C" >&6
37438 else
37439
37440        cat >conftest.$ac_ext <<_ACEOF
37441 /* confdefs.h.  */
37442 _ACEOF
37443 cat confdefs.h >>conftest.$ac_ext
37444 cat >>conftest.$ac_ext <<_ACEOF
37445 /* end confdefs.h.  */
37446
37447               #include <sys/types.h>
37448
37449 int
37450 main ()
37451 {
37452
37453               u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
37454
37455   ;
37456   return 0;
37457 }
37458 _ACEOF
37459 rm -f conftest.$ac_objext
37460 if { (ac_try="$ac_compile"
37461 case "(($ac_try" in
37462   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37463   *) ac_try_echo=$ac_try;;
37464 esac
37465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37466   (eval "$ac_compile") 2>conftest.er1
37467   ac_status=$?
37468   grep -v '^ *+' conftest.er1 >conftest.err
37469   rm -f conftest.er1
37470   cat conftest.err >&5
37471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37472   (exit $ac_status); } && {
37473          test -z "$ac_c_werror_flag" ||
37474          test ! -s conftest.err
37475        } && test -s conftest.$ac_objext; then
37476
37477              ac_cv_have_u_intxx_t="yes"
37478
37479 else
37480   echo "$as_me: failed program was:" >&5
37481 sed 's/^/| /' conftest.$ac_ext >&5
37482
37483
37484              ac_cv_have_u_intxx_t="no"
37485
37486
37487 fi
37488
37489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37490
37491
37492 fi
37493 { echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
37494 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6; }
37495 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
37496    cat >>confdefs.h <<\_ACEOF
37497 #define HAVE_U_INTXX_T 1
37498 _ACEOF
37499
37500    have_u_intxx_t=1
37501 fi
37502
37503 { echo "$as_me:$LINENO: checking for u_int64_t types" >&5
37504 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6; }
37505 if test "${ac_cv_have_u_int64_t+set}" = set; then
37506   echo $ECHO_N "(cached) $ECHO_C" >&6
37507 else
37508
37509        cat >conftest.$ac_ext <<_ACEOF
37510 /* confdefs.h.  */
37511 _ACEOF
37512 cat confdefs.h >>conftest.$ac_ext
37513 cat >>conftest.$ac_ext <<_ACEOF
37514 /* end confdefs.h.  */
37515
37516               #include <sys/types.h>
37517
37518 int
37519 main ()
37520 {
37521
37522               u_int64_t a; a = 1;
37523
37524   ;
37525   return 0;
37526 }
37527 _ACEOF
37528 rm -f conftest.$ac_objext
37529 if { (ac_try="$ac_compile"
37530 case "(($ac_try" in
37531   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37532   *) ac_try_echo=$ac_try;;
37533 esac
37534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37535   (eval "$ac_compile") 2>conftest.er1
37536   ac_status=$?
37537   grep -v '^ *+' conftest.er1 >conftest.err
37538   rm -f conftest.er1
37539   cat conftest.err >&5
37540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37541   (exit $ac_status); } && {
37542          test -z "$ac_c_werror_flag" ||
37543          test ! -s conftest.err
37544        } && test -s conftest.$ac_objext; then
37545
37546              ac_cv_have_u_int64_t="yes"
37547
37548 else
37549   echo "$as_me: failed program was:" >&5
37550 sed 's/^/| /' conftest.$ac_ext >&5
37551
37552
37553              ac_cv_have_u_int64_t="no"
37554
37555
37556 fi
37557
37558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37559
37560
37561 fi
37562 { echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
37563 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6; }
37564 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
37565    cat >>confdefs.h <<\_ACEOF
37566 #define HAVE_U_INT64_T 1
37567 _ACEOF
37568
37569    have_u_int64_t=1
37570 fi
37571
37572 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
37573     test "x$ac_cv_header_sys_bitypes_h" = "xyes")
37574 then
37575    { echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
37576 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6; }
37577    cat >conftest.$ac_ext <<_ACEOF
37578 /* confdefs.h.  */
37579 _ACEOF
37580 cat confdefs.h >>conftest.$ac_ext
37581 cat >>conftest.$ac_ext <<_ACEOF
37582 /* end confdefs.h.  */
37583
37584           #include <sys/bitypes.h>
37585
37586 int
37587 main ()
37588 {
37589
37590           int8_t a; int16_t b; int32_t c;
37591           u_int8_t e; u_int16_t f; u_int32_t g;
37592           a = b = c = e = f = g = 1;
37593
37594   ;
37595   return 0;
37596 }
37597 _ACEOF
37598 rm -f conftest.$ac_objext
37599 if { (ac_try="$ac_compile"
37600 case "(($ac_try" in
37601   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37602   *) ac_try_echo=$ac_try;;
37603 esac
37604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37605   (eval "$ac_compile") 2>conftest.er1
37606   ac_status=$?
37607   grep -v '^ *+' conftest.er1 >conftest.err
37608   rm -f conftest.er1
37609   cat conftest.err >&5
37610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37611   (exit $ac_status); } && {
37612          test -z "$ac_c_werror_flag" ||
37613          test ! -s conftest.err
37614        } && test -s conftest.$ac_objext; then
37615
37616           cat >>confdefs.h <<\_ACEOF
37617 #define HAVE_U_INTXX_T 1
37618 _ACEOF
37619
37620           cat >>confdefs.h <<\_ACEOF
37621 #define HAVE_INTXX_T 1
37622 _ACEOF
37623
37624           cat >>confdefs.h <<\_ACEOF
37625 #define HAVE_SYS_BITYPES_H 1
37626 _ACEOF
37627
37628           { echo "$as_me:$LINENO: result: yes" >&5
37629 echo "${ECHO_T}yes" >&6; }
37630
37631 else
37632   echo "$as_me: failed program was:" >&5
37633 sed 's/^/| /' conftest.$ac_ext >&5
37634
37635
37636           { echo "$as_me:$LINENO: result: no" >&5
37637 echo "${ECHO_T}no" >&6; }
37638
37639
37640 fi
37641
37642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37643 fi
37644
37645 if test -z "$have_u_intxx_t" ; then
37646    { echo "$as_me:$LINENO: checking for uintXX_t types" >&5
37647 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6; }
37648 if test "${ac_cv_have_uintxx_t+set}" = set; then
37649   echo $ECHO_N "(cached) $ECHO_C" >&6
37650 else
37651
37652           cat >conftest.$ac_ext <<_ACEOF
37653 /* confdefs.h.  */
37654 _ACEOF
37655 cat confdefs.h >>conftest.$ac_ext
37656 cat >>conftest.$ac_ext <<_ACEOF
37657 /* end confdefs.h.  */
37658
37659                  #include <sys/types.h>
37660
37661 int
37662 main ()
37663 {
37664
37665                  uint8_t a; uint16_t b;
37666                  uint32_t c; a = b = c = 1;
37667
37668   ;
37669   return 0;
37670 }
37671 _ACEOF
37672 rm -f conftest.$ac_objext
37673 if { (ac_try="$ac_compile"
37674 case "(($ac_try" in
37675   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37676   *) ac_try_echo=$ac_try;;
37677 esac
37678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37679   (eval "$ac_compile") 2>conftest.er1
37680   ac_status=$?
37681   grep -v '^ *+' conftest.er1 >conftest.err
37682   rm -f conftest.er1
37683   cat conftest.err >&5
37684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37685   (exit $ac_status); } && {
37686          test -z "$ac_c_werror_flag" ||
37687          test ! -s conftest.err
37688        } && test -s conftest.$ac_objext; then
37689
37690                 ac_cv_have_uintxx_t="yes"
37691
37692 else
37693   echo "$as_me: failed program was:" >&5
37694 sed 's/^/| /' conftest.$ac_ext >&5
37695
37696
37697                 ac_cv_have_uintxx_t="no"
37698
37699
37700 fi
37701
37702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37703
37704
37705 fi
37706 { echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
37707 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6; }
37708    if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
37709       cat >>confdefs.h <<\_ACEOF
37710 #define HAVE_UINTXX_T 1
37711 _ACEOF
37712
37713    fi
37714 fi
37715
37716 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
37717     test "x$ac_cv_header_sys_bitypes_h" = "xyes")
37718 then
37719    { echo "$as_me:$LINENO: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
37720 echo $ECHO_N "checking for int64_t and u_int64_t types in sys/bitypes.h... $ECHO_C" >&6; }
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 <sys/bitypes.h>
37729
37730 int
37731 main ()
37732 {
37733
37734           int64_t a; u_int64_t b;
37735           a = b = 1;
37736
37737   ;
37738   return 0;
37739 }
37740 _ACEOF
37741 rm -f conftest.$ac_objext
37742 if { (ac_try="$ac_compile"
37743 case "(($ac_try" in
37744   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37745   *) ac_try_echo=$ac_try;;
37746 esac
37747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37748   (eval "$ac_compile") 2>conftest.er1
37749   ac_status=$?
37750   grep -v '^ *+' conftest.er1 >conftest.err
37751   rm -f conftest.er1
37752   cat conftest.err >&5
37753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37754   (exit $ac_status); } && {
37755          test -z "$ac_c_werror_flag" ||
37756          test ! -s conftest.err
37757        } && test -s conftest.$ac_objext; then
37758
37759           cat >>confdefs.h <<\_ACEOF
37760 #define HAVE_U_INT64_T 1
37761 _ACEOF
37762
37763           cat >>confdefs.h <<\_ACEOF
37764 #define HAVE_INT64_T 1
37765 _ACEOF
37766
37767           { echo "$as_me:$LINENO: result: yes" >&5
37768 echo "${ECHO_T}yes" >&6; }
37769
37770 else
37771   echo "$as_me: failed program was:" >&5
37772 sed 's/^/| /' conftest.$ac_ext >&5
37773
37774
37775           { echo "$as_me:$LINENO: result: no" >&5
37776 echo "${ECHO_T}no" >&6; }
37777
37778
37779 fi
37780
37781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37782 fi
37783
37784 if (test -z "$have_uintxx_t" && \
37785     test "x$ac_cv_header_sys_bitypes_h" = "xyes")
37786 then
37787    { echo "$as_me:$LINENO: checking for uintXX_t types in sys/bitypes.h" >&5
37788 echo $ECHO_N "checking for uintXX_t types in sys/bitypes.h... $ECHO_C" >&6; }
37789    cat >conftest.$ac_ext <<_ACEOF
37790 /* confdefs.h.  */
37791 _ACEOF
37792 cat confdefs.h >>conftest.$ac_ext
37793 cat >>conftest.$ac_ext <<_ACEOF
37794 /* end confdefs.h.  */
37795
37796           #include <sys/bitypes.h>
37797
37798 int
37799 main ()
37800 {
37801
37802           uint8_t a; uint16_t b;
37803           uint32_t c; a = b = c = 1;
37804
37805   ;
37806   return 0;
37807 }
37808 _ACEOF
37809 rm -f conftest.$ac_objext
37810 if { (ac_try="$ac_compile"
37811 case "(($ac_try" in
37812   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37813   *) ac_try_echo=$ac_try;;
37814 esac
37815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37816   (eval "$ac_compile") 2>conftest.er1
37817   ac_status=$?
37818   grep -v '^ *+' conftest.er1 >conftest.err
37819   rm -f conftest.er1
37820   cat conftest.err >&5
37821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37822   (exit $ac_status); } && {
37823          test -z "$ac_c_werror_flag" ||
37824          test ! -s conftest.err
37825        } && test -s conftest.$ac_objext; then
37826
37827           cat >>confdefs.h <<\_ACEOF
37828 #define HAVE_UINTXX_T 1
37829 _ACEOF
37830
37831           { echo "$as_me:$LINENO: result: yes" >&5
37832 echo "${ECHO_T}yes" >&6; }
37833
37834 else
37835   echo "$as_me: failed program was:" >&5
37836 sed 's/^/| /' conftest.$ac_ext >&5
37837
37838
37839           { echo "$as_me:$LINENO: result: no" >&5
37840 echo "${ECHO_T}no" >&6; }
37841
37842
37843 fi
37844
37845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37846 fi
37847
37848
37849
37850
37851
37852
37853
37854
37855
37856
37857
37858
37859
37860
37861 for ac_func in \
37862    fork \
37863    getcwd \
37864    gethostname \
37865    getpid \
37866    gettimeofday \
37867    setpgid \
37868    setpgrp \
37869    setsid \
37870    signal \
37871    strerror \
37872    strncmp \
37873    strncpy \
37874    vfprintf \
37875
37876 do
37877 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37878 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37879 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37880 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37881   echo $ECHO_N "(cached) $ECHO_C" >&6
37882 else
37883   cat >conftest.$ac_ext <<_ACEOF
37884 /* confdefs.h.  */
37885 _ACEOF
37886 cat confdefs.h >>conftest.$ac_ext
37887 cat >>conftest.$ac_ext <<_ACEOF
37888 /* end confdefs.h.  */
37889 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37890    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37891 #define $ac_func innocuous_$ac_func
37892
37893 /* System header to define __stub macros and hopefully few prototypes,
37894     which can conflict with char $ac_func (); below.
37895     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37896     <limits.h> exists even on freestanding compilers.  */
37897
37898 #ifdef __STDC__
37899 # include <limits.h>
37900 #else
37901 # include <assert.h>
37902 #endif
37903
37904 #undef $ac_func
37905
37906 /* Override any GCC internal prototype to avoid an error.
37907    Use char because int might match the return type of a GCC
37908    builtin and then its argument prototype would still apply.  */
37909 #ifdef __cplusplus
37910 extern "C"
37911 #endif
37912 char $ac_func ();
37913 /* The GNU C library defines this for functions which it implements
37914     to always fail with ENOSYS.  Some functions are actually named
37915     something starting with __ and the normal name is an alias.  */
37916 #if defined __stub_$ac_func || defined __stub___$ac_func
37917 choke me
37918 #endif
37919
37920 int
37921 main ()
37922 {
37923 return $ac_func ();
37924   ;
37925   return 0;
37926 }
37927 _ACEOF
37928 rm -f conftest.$ac_objext conftest$ac_exeext
37929 if { (ac_try="$ac_link"
37930 case "(($ac_try" in
37931   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37932   *) ac_try_echo=$ac_try;;
37933 esac
37934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37935   (eval "$ac_link") 2>conftest.er1
37936   ac_status=$?
37937   grep -v '^ *+' conftest.er1 >conftest.err
37938   rm -f conftest.er1
37939   cat conftest.err >&5
37940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37941   (exit $ac_status); } && {
37942          test -z "$ac_c_werror_flag" ||
37943          test ! -s conftest.err
37944        } && test -s conftest$ac_exeext &&
37945        $as_test_x conftest$ac_exeext; then
37946   eval "$as_ac_var=yes"
37947 else
37948   echo "$as_me: failed program was:" >&5
37949 sed 's/^/| /' conftest.$ac_ext >&5
37950
37951         eval "$as_ac_var=no"
37952 fi
37953
37954 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37955       conftest$ac_exeext conftest.$ac_ext
37956 fi
37957 ac_res=`eval echo '${'$as_ac_var'}'`
37958                { echo "$as_me:$LINENO: result: $ac_res" >&5
37959 echo "${ECHO_T}$ac_res" >&6; }
37960 if test `eval echo '${'$as_ac_var'}'` = yes; then
37961   cat >>confdefs.h <<_ACEOF
37962 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37963 _ACEOF
37964
37965 else
37966   echo 'configure: cannot find needed function.'; exit 1
37967
37968 fi
37969 done
37970
37971
37972
37973 for ac_func in fchdir
37974 do
37975 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37976 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37977 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37978 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37979   echo $ECHO_N "(cached) $ECHO_C" >&6
37980 else
37981   cat >conftest.$ac_ext <<_ACEOF
37982 /* confdefs.h.  */
37983 _ACEOF
37984 cat confdefs.h >>conftest.$ac_ext
37985 cat >>conftest.$ac_ext <<_ACEOF
37986 /* end confdefs.h.  */
37987 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37988    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37989 #define $ac_func innocuous_$ac_func
37990
37991 /* System header to define __stub macros and hopefully few prototypes,
37992     which can conflict with char $ac_func (); below.
37993     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37994     <limits.h> exists even on freestanding compilers.  */
37995
37996 #ifdef __STDC__
37997 # include <limits.h>
37998 #else
37999 # include <assert.h>
38000 #endif
38001
38002 #undef $ac_func
38003
38004 /* Override any GCC internal prototype to avoid an error.
38005    Use char because int might match the return type of a GCC
38006    builtin and then its argument prototype would still apply.  */
38007 #ifdef __cplusplus
38008 extern "C"
38009 #endif
38010 char $ac_func ();
38011 /* The GNU C library defines this for functions which it implements
38012     to always fail with ENOSYS.  Some functions are actually named
38013     something starting with __ and the normal name is an alias.  */
38014 #if defined __stub_$ac_func || defined __stub___$ac_func
38015 choke me
38016 #endif
38017
38018 int
38019 main ()
38020 {
38021 return $ac_func ();
38022   ;
38023   return 0;
38024 }
38025 _ACEOF
38026 rm -f conftest.$ac_objext conftest$ac_exeext
38027 if { (ac_try="$ac_link"
38028 case "(($ac_try" in
38029   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38030   *) ac_try_echo=$ac_try;;
38031 esac
38032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38033   (eval "$ac_link") 2>conftest.er1
38034   ac_status=$?
38035   grep -v '^ *+' conftest.er1 >conftest.err
38036   rm -f conftest.er1
38037   cat conftest.err >&5
38038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38039   (exit $ac_status); } && {
38040          test -z "$ac_c_werror_flag" ||
38041          test ! -s conftest.err
38042        } && test -s conftest$ac_exeext &&
38043        $as_test_x conftest$ac_exeext; then
38044   eval "$as_ac_var=yes"
38045 else
38046   echo "$as_me: failed program was:" >&5
38047 sed 's/^/| /' conftest.$ac_ext >&5
38048
38049         eval "$as_ac_var=no"
38050 fi
38051
38052 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38053       conftest$ac_exeext conftest.$ac_ext
38054 fi
38055 ac_res=`eval echo '${'$as_ac_var'}'`
38056                { echo "$as_me:$LINENO: result: $ac_res" >&5
38057 echo "${ECHO_T}$ac_res" >&6; }
38058 if test `eval echo '${'$as_ac_var'}'` = yes; then
38059   cat >>confdefs.h <<_ACEOF
38060 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38061 _ACEOF
38062  cat >>confdefs.h <<\_ACEOF
38063 #define HAVE_FCHDIR 1
38064 _ACEOF
38065
38066 fi
38067 done
38068
38069
38070 for ac_func in strtoll
38071 do
38072 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38073 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38074 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38075 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38076   echo $ECHO_N "(cached) $ECHO_C" >&6
38077 else
38078   cat >conftest.$ac_ext <<_ACEOF
38079 /* confdefs.h.  */
38080 _ACEOF
38081 cat confdefs.h >>conftest.$ac_ext
38082 cat >>conftest.$ac_ext <<_ACEOF
38083 /* end confdefs.h.  */
38084 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38085    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38086 #define $ac_func innocuous_$ac_func
38087
38088 /* System header to define __stub macros and hopefully few prototypes,
38089     which can conflict with char $ac_func (); below.
38090     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38091     <limits.h> exists even on freestanding compilers.  */
38092
38093 #ifdef __STDC__
38094 # include <limits.h>
38095 #else
38096 # include <assert.h>
38097 #endif
38098
38099 #undef $ac_func
38100
38101 /* Override any GCC internal prototype to avoid an error.
38102    Use char because int might match the return type of a GCC
38103    builtin and then its argument prototype would still apply.  */
38104 #ifdef __cplusplus
38105 extern "C"
38106 #endif
38107 char $ac_func ();
38108 /* The GNU C library defines this for functions which it implements
38109     to always fail with ENOSYS.  Some functions are actually named
38110     something starting with __ and the normal name is an alias.  */
38111 #if defined __stub_$ac_func || defined __stub___$ac_func
38112 choke me
38113 #endif
38114
38115 int
38116 main ()
38117 {
38118 return $ac_func ();
38119   ;
38120   return 0;
38121 }
38122 _ACEOF
38123 rm -f conftest.$ac_objext conftest$ac_exeext
38124 if { (ac_try="$ac_link"
38125 case "(($ac_try" in
38126   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38127   *) ac_try_echo=$ac_try;;
38128 esac
38129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38130   (eval "$ac_link") 2>conftest.er1
38131   ac_status=$?
38132   grep -v '^ *+' conftest.er1 >conftest.err
38133   rm -f conftest.er1
38134   cat conftest.err >&5
38135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38136   (exit $ac_status); } && {
38137          test -z "$ac_c_werror_flag" ||
38138          test ! -s conftest.err
38139        } && test -s conftest$ac_exeext &&
38140        $as_test_x conftest$ac_exeext; then
38141   eval "$as_ac_var=yes"
38142 else
38143   echo "$as_me: failed program was:" >&5
38144 sed 's/^/| /' conftest.$ac_ext >&5
38145
38146         eval "$as_ac_var=no"
38147 fi
38148
38149 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38150       conftest$ac_exeext conftest.$ac_ext
38151 fi
38152 ac_res=`eval echo '${'$as_ac_var'}'`
38153                { echo "$as_me:$LINENO: result: $ac_res" >&5
38154 echo "${ECHO_T}$ac_res" >&6; }
38155 if test `eval echo '${'$as_ac_var'}'` = yes; then
38156   cat >>confdefs.h <<_ACEOF
38157 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38158 _ACEOF
38159  cat >>confdefs.h <<\_ACEOF
38160 #define HAVE_STRTOLL 1
38161 _ACEOF
38162
38163 fi
38164 done
38165
38166
38167 for ac_func in posix_fadvise
38168 do
38169 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38170 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38171 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38172 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38173   echo $ECHO_N "(cached) $ECHO_C" >&6
38174 else
38175   cat >conftest.$ac_ext <<_ACEOF
38176 /* confdefs.h.  */
38177 _ACEOF
38178 cat confdefs.h >>conftest.$ac_ext
38179 cat >>conftest.$ac_ext <<_ACEOF
38180 /* end confdefs.h.  */
38181 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38182    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38183 #define $ac_func innocuous_$ac_func
38184
38185 /* System header to define __stub macros and hopefully few prototypes,
38186     which can conflict with char $ac_func (); below.
38187     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38188     <limits.h> exists even on freestanding compilers.  */
38189
38190 #ifdef __STDC__
38191 # include <limits.h>
38192 #else
38193 # include <assert.h>
38194 #endif
38195
38196 #undef $ac_func
38197
38198 /* Override any GCC internal prototype to avoid an error.
38199    Use char because int might match the return type of a GCC
38200    builtin and then its argument prototype would still apply.  */
38201 #ifdef __cplusplus
38202 extern "C"
38203 #endif
38204 char $ac_func ();
38205 /* The GNU C library defines this for functions which it implements
38206     to always fail with ENOSYS.  Some functions are actually named
38207     something starting with __ and the normal name is an alias.  */
38208 #if defined __stub_$ac_func || defined __stub___$ac_func
38209 choke me
38210 #endif
38211
38212 int
38213 main ()
38214 {
38215 return $ac_func ();
38216   ;
38217   return 0;
38218 }
38219 _ACEOF
38220 rm -f conftest.$ac_objext conftest$ac_exeext
38221 if { (ac_try="$ac_link"
38222 case "(($ac_try" in
38223   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38224   *) ac_try_echo=$ac_try;;
38225 esac
38226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38227   (eval "$ac_link") 2>conftest.er1
38228   ac_status=$?
38229   grep -v '^ *+' conftest.er1 >conftest.err
38230   rm -f conftest.er1
38231   cat conftest.err >&5
38232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38233   (exit $ac_status); } && {
38234          test -z "$ac_c_werror_flag" ||
38235          test ! -s conftest.err
38236        } && test -s conftest$ac_exeext &&
38237        $as_test_x conftest$ac_exeext; then
38238   eval "$as_ac_var=yes"
38239 else
38240   echo "$as_me: failed program was:" >&5
38241 sed 's/^/| /' conftest.$ac_ext >&5
38242
38243         eval "$as_ac_var=no"
38244 fi
38245
38246 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38247       conftest$ac_exeext conftest.$ac_ext
38248 fi
38249 ac_res=`eval echo '${'$as_ac_var'}'`
38250                { echo "$as_me:$LINENO: result: $ac_res" >&5
38251 echo "${ECHO_T}$ac_res" >&6; }
38252 if test `eval echo '${'$as_ac_var'}'` = yes; then
38253   cat >>confdefs.h <<_ACEOF
38254 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38255 _ACEOF
38256
38257 fi
38258 done
38259
38260
38261 for ac_func in fdatasync
38262 do
38263 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38264 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38265 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38266 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38267   echo $ECHO_N "(cached) $ECHO_C" >&6
38268 else
38269   cat >conftest.$ac_ext <<_ACEOF
38270 /* confdefs.h.  */
38271 _ACEOF
38272 cat confdefs.h >>conftest.$ac_ext
38273 cat >>conftest.$ac_ext <<_ACEOF
38274 /* end confdefs.h.  */
38275 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38276    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38277 #define $ac_func innocuous_$ac_func
38278
38279 /* System header to define __stub macros and hopefully few prototypes,
38280     which can conflict with char $ac_func (); below.
38281     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38282     <limits.h> exists even on freestanding compilers.  */
38283
38284 #ifdef __STDC__
38285 # include <limits.h>
38286 #else
38287 # include <assert.h>
38288 #endif
38289
38290 #undef $ac_func
38291
38292 /* Override any GCC internal prototype to avoid an error.
38293    Use char because int might match the return type of a GCC
38294    builtin and then its argument prototype would still apply.  */
38295 #ifdef __cplusplus
38296 extern "C"
38297 #endif
38298 char $ac_func ();
38299 /* The GNU C library defines this for functions which it implements
38300     to always fail with ENOSYS.  Some functions are actually named
38301     something starting with __ and the normal name is an alias.  */
38302 #if defined __stub_$ac_func || defined __stub___$ac_func
38303 choke me
38304 #endif
38305
38306 int
38307 main ()
38308 {
38309 return $ac_func ();
38310   ;
38311   return 0;
38312 }
38313 _ACEOF
38314 rm -f conftest.$ac_objext conftest$ac_exeext
38315 if { (ac_try="$ac_link"
38316 case "(($ac_try" in
38317   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38318   *) ac_try_echo=$ac_try;;
38319 esac
38320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38321   (eval "$ac_link") 2>conftest.er1
38322   ac_status=$?
38323   grep -v '^ *+' conftest.er1 >conftest.err
38324   rm -f conftest.er1
38325   cat conftest.err >&5
38326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38327   (exit $ac_status); } && {
38328          test -z "$ac_c_werror_flag" ||
38329          test ! -s conftest.err
38330        } && test -s conftest$ac_exeext &&
38331        $as_test_x conftest$ac_exeext; then
38332   eval "$as_ac_var=yes"
38333 else
38334   echo "$as_me: failed program was:" >&5
38335 sed 's/^/| /' conftest.$ac_ext >&5
38336
38337         eval "$as_ac_var=no"
38338 fi
38339
38340 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38341       conftest$ac_exeext conftest.$ac_ext
38342 fi
38343 ac_res=`eval echo '${'$as_ac_var'}'`
38344                { echo "$as_me:$LINENO: result: $ac_res" >&5
38345 echo "${ECHO_T}$ac_res" >&6; }
38346 if test `eval echo '${'$as_ac_var'}'` = yes; then
38347   cat >>confdefs.h <<_ACEOF
38348 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38349 _ACEOF
38350
38351 fi
38352 done
38353
38354
38355
38356 for ac_func in chflags
38357 do
38358 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38359 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38360 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38361 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38362   echo $ECHO_N "(cached) $ECHO_C" >&6
38363 else
38364   cat >conftest.$ac_ext <<_ACEOF
38365 /* confdefs.h.  */
38366 _ACEOF
38367 cat confdefs.h >>conftest.$ac_ext
38368 cat >>conftest.$ac_ext <<_ACEOF
38369 /* end confdefs.h.  */
38370 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38371    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38372 #define $ac_func innocuous_$ac_func
38373
38374 /* System header to define __stub macros and hopefully few prototypes,
38375     which can conflict with char $ac_func (); below.
38376     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38377     <limits.h> exists even on freestanding compilers.  */
38378
38379 #ifdef __STDC__
38380 # include <limits.h>
38381 #else
38382 # include <assert.h>
38383 #endif
38384
38385 #undef $ac_func
38386
38387 /* Override any GCC internal prototype to avoid an error.
38388    Use char because int might match the return type of a GCC
38389    builtin and then its argument prototype would still apply.  */
38390 #ifdef __cplusplus
38391 extern "C"
38392 #endif
38393 char $ac_func ();
38394 /* The GNU C library defines this for functions which it implements
38395     to always fail with ENOSYS.  Some functions are actually named
38396     something starting with __ and the normal name is an alias.  */
38397 #if defined __stub_$ac_func || defined __stub___$ac_func
38398 choke me
38399 #endif
38400
38401 int
38402 main ()
38403 {
38404 return $ac_func ();
38405   ;
38406   return 0;
38407 }
38408 _ACEOF
38409 rm -f conftest.$ac_objext conftest$ac_exeext
38410 if { (ac_try="$ac_link"
38411 case "(($ac_try" in
38412   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38413   *) ac_try_echo=$ac_try;;
38414 esac
38415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38416   (eval "$ac_link") 2>conftest.er1
38417   ac_status=$?
38418   grep -v '^ *+' conftest.er1 >conftest.err
38419   rm -f conftest.er1
38420   cat conftest.err >&5
38421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38422   (exit $ac_status); } && {
38423          test -z "$ac_c_werror_flag" ||
38424          test ! -s conftest.err
38425        } && test -s conftest$ac_exeext &&
38426        $as_test_x conftest$ac_exeext; then
38427   eval "$as_ac_var=yes"
38428 else
38429   echo "$as_me: failed program was:" >&5
38430 sed 's/^/| /' conftest.$ac_ext >&5
38431
38432         eval "$as_ac_var=no"
38433 fi
38434
38435 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38436       conftest$ac_exeext conftest.$ac_ext
38437 fi
38438 ac_res=`eval echo '${'$as_ac_var'}'`
38439                { echo "$as_me:$LINENO: result: $ac_res" >&5
38440 echo "${ECHO_T}$ac_res" >&6; }
38441 if test `eval echo '${'$as_ac_var'}'` = yes; then
38442   cat >>confdefs.h <<_ACEOF
38443 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38444 _ACEOF
38445
38446 fi
38447 done
38448
38449
38450
38451
38452
38453
38454 for ac_func in snprintf vsnprintf gethostid fseeko
38455 do
38456 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38457 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38458 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38459 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38460   echo $ECHO_N "(cached) $ECHO_C" >&6
38461 else
38462   cat >conftest.$ac_ext <<_ACEOF
38463 /* confdefs.h.  */
38464 _ACEOF
38465 cat confdefs.h >>conftest.$ac_ext
38466 cat >>conftest.$ac_ext <<_ACEOF
38467 /* end confdefs.h.  */
38468 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38469    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38470 #define $ac_func innocuous_$ac_func
38471
38472 /* System header to define __stub macros and hopefully few prototypes,
38473     which can conflict with char $ac_func (); below.
38474     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38475     <limits.h> exists even on freestanding compilers.  */
38476
38477 #ifdef __STDC__
38478 # include <limits.h>
38479 #else
38480 # include <assert.h>
38481 #endif
38482
38483 #undef $ac_func
38484
38485 /* Override any GCC internal prototype to avoid an error.
38486    Use char because int might match the return type of a GCC
38487    builtin and then its argument prototype would still apply.  */
38488 #ifdef __cplusplus
38489 extern "C"
38490 #endif
38491 char $ac_func ();
38492 /* The GNU C library defines this for functions which it implements
38493     to always fail with ENOSYS.  Some functions are actually named
38494     something starting with __ and the normal name is an alias.  */
38495 #if defined __stub_$ac_func || defined __stub___$ac_func
38496 choke me
38497 #endif
38498
38499 int
38500 main ()
38501 {
38502 return $ac_func ();
38503   ;
38504   return 0;
38505 }
38506 _ACEOF
38507 rm -f conftest.$ac_objext conftest$ac_exeext
38508 if { (ac_try="$ac_link"
38509 case "(($ac_try" in
38510   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38511   *) ac_try_echo=$ac_try;;
38512 esac
38513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38514   (eval "$ac_link") 2>conftest.er1
38515   ac_status=$?
38516   grep -v '^ *+' conftest.er1 >conftest.err
38517   rm -f conftest.er1
38518   cat conftest.err >&5
38519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38520   (exit $ac_status); } && {
38521          test -z "$ac_c_werror_flag" ||
38522          test ! -s conftest.err
38523        } && test -s conftest$ac_exeext &&
38524        $as_test_x conftest$ac_exeext; then
38525   eval "$as_ac_var=yes"
38526 else
38527   echo "$as_me: failed program was:" >&5
38528 sed 's/^/| /' conftest.$ac_ext >&5
38529
38530         eval "$as_ac_var=no"
38531 fi
38532
38533 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38534       conftest$ac_exeext conftest.$ac_ext
38535 fi
38536 ac_res=`eval echo '${'$as_ac_var'}'`
38537                { echo "$as_me:$LINENO: result: $ac_res" >&5
38538 echo "${ECHO_T}$ac_res" >&6; }
38539 if test `eval echo '${'$as_ac_var'}'` = yes; then
38540   cat >>confdefs.h <<_ACEOF
38541 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38542 _ACEOF
38543
38544 fi
38545 done
38546
38547
38548 { echo "$as_me:$LINENO: checking for va_copy" >&5
38549 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6; }
38550 if test "${ba_cv_va_copy+set}" = set; then
38551   echo $ECHO_N "(cached) $ECHO_C" >&6
38552 else
38553
38554        cat >conftest.$ac_ext <<_ACEOF
38555 /* confdefs.h.  */
38556 _ACEOF
38557 cat confdefs.h >>conftest.$ac_ext
38558 cat >>conftest.$ac_ext <<_ACEOF
38559 /* end confdefs.h.  */
38560
38561               #include <stdarg.h>
38562               void use_va_copy(va_list args){va_list args2; va_copy(args2,args); va_end(args2);}
38563               void call_use_va_copy(int junk,...){va_list args; va_start(args,junk); use_va_copy(args); va_end(args);}
38564
38565 int
38566 main ()
38567 {
38568
38569               call_use_va_copy(1,2,3)
38570
38571   ;
38572   return 0;
38573 }
38574 _ACEOF
38575 rm -f conftest.$ac_objext conftest$ac_exeext
38576 if { (ac_try="$ac_link"
38577 case "(($ac_try" in
38578   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38579   *) ac_try_echo=$ac_try;;
38580 esac
38581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38582   (eval "$ac_link") 2>conftest.er1
38583   ac_status=$?
38584   grep -v '^ *+' conftest.er1 >conftest.err
38585   rm -f conftest.er1
38586   cat conftest.err >&5
38587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38588   (exit $ac_status); } && {
38589          test -z "$ac_c_werror_flag" ||
38590          test ! -s conftest.err
38591        } && test -s conftest$ac_exeext &&
38592        $as_test_x conftest$ac_exeext; then
38593
38594               ba_cv_va_copy=yes,
38595
38596 else
38597   echo "$as_me: failed program was:" >&5
38598 sed 's/^/| /' conftest.$ac_ext >&5
38599
38600
38601               ba_cv_va_copy=no
38602
38603
38604 fi
38605
38606 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38607       conftest$ac_exeext conftest.$ac_ext
38608
38609
38610 fi
38611 { echo "$as_me:$LINENO: result: $ba_cv_va_copy" >&5
38612 echo "${ECHO_T}$ba_cv_va_copy" >&6; }
38613 test $ba_cv_va_copy = yes &&
38614 cat >>confdefs.h <<\_ACEOF
38615 #define HAVE_VA_COPY 1
38616 _ACEOF
38617
38618
38619
38620
38621
38622
38623 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
38624 do
38625 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38626 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38627 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38628 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38629   echo $ECHO_N "(cached) $ECHO_C" >&6
38630 else
38631   cat >conftest.$ac_ext <<_ACEOF
38632 /* confdefs.h.  */
38633 _ACEOF
38634 cat confdefs.h >>conftest.$ac_ext
38635 cat >>conftest.$ac_ext <<_ACEOF
38636 /* end confdefs.h.  */
38637 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38638    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38639 #define $ac_func innocuous_$ac_func
38640
38641 /* System header to define __stub macros and hopefully few prototypes,
38642     which can conflict with char $ac_func (); below.
38643     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38644     <limits.h> exists even on freestanding compilers.  */
38645
38646 #ifdef __STDC__
38647 # include <limits.h>
38648 #else
38649 # include <assert.h>
38650 #endif
38651
38652 #undef $ac_func
38653
38654 /* Override any GCC internal prototype to avoid an error.
38655    Use char because int might match the return type of a GCC
38656    builtin and then its argument prototype would still apply.  */
38657 #ifdef __cplusplus
38658 extern "C"
38659 #endif
38660 char $ac_func ();
38661 /* The GNU C library defines this for functions which it implements
38662     to always fail with ENOSYS.  Some functions are actually named
38663     something starting with __ and the normal name is an alias.  */
38664 #if defined __stub_$ac_func || defined __stub___$ac_func
38665 choke me
38666 #endif
38667
38668 int
38669 main ()
38670 {
38671 return $ac_func ();
38672   ;
38673   return 0;
38674 }
38675 _ACEOF
38676 rm -f conftest.$ac_objext conftest$ac_exeext
38677 if { (ac_try="$ac_link"
38678 case "(($ac_try" in
38679   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38680   *) ac_try_echo=$ac_try;;
38681 esac
38682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38683   (eval "$ac_link") 2>conftest.er1
38684   ac_status=$?
38685   grep -v '^ *+' conftest.er1 >conftest.err
38686   rm -f conftest.er1
38687   cat conftest.err >&5
38688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38689   (exit $ac_status); } && {
38690          test -z "$ac_c_werror_flag" ||
38691          test ! -s conftest.err
38692        } && test -s conftest$ac_exeext &&
38693        $as_test_x conftest$ac_exeext; then
38694   eval "$as_ac_var=yes"
38695 else
38696   echo "$as_me: failed program was:" >&5
38697 sed 's/^/| /' conftest.$ac_ext >&5
38698
38699         eval "$as_ac_var=no"
38700 fi
38701
38702 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38703       conftest$ac_exeext conftest.$ac_ext
38704 fi
38705 ac_res=`eval echo '${'$as_ac_var'}'`
38706                { echo "$as_me:$LINENO: result: $ac_res" >&5
38707 echo "${ECHO_T}$ac_res" >&6; }
38708 if test `eval echo '${'$as_ac_var'}'` = yes; then
38709   cat >>confdefs.h <<_ACEOF
38710 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38711 _ACEOF
38712
38713 fi
38714 done
38715
38716
38717 # If resolver functions are not in libc check for -lnsl or -lresolv.
38718 { echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
38719 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6; }
38720 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
38721   echo $ECHO_N "(cached) $ECHO_C" >&6
38722 else
38723   cat >conftest.$ac_ext <<_ACEOF
38724 /* confdefs.h.  */
38725 _ACEOF
38726 cat confdefs.h >>conftest.$ac_ext
38727 cat >>conftest.$ac_ext <<_ACEOF
38728 /* end confdefs.h.  */
38729 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
38730    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38731 #define gethostbyname_r innocuous_gethostbyname_r
38732
38733 /* System header to define __stub macros and hopefully few prototypes,
38734     which can conflict with char gethostbyname_r (); below.
38735     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38736     <limits.h> exists even on freestanding compilers.  */
38737
38738 #ifdef __STDC__
38739 # include <limits.h>
38740 #else
38741 # include <assert.h>
38742 #endif
38743
38744 #undef gethostbyname_r
38745
38746 /* Override any GCC internal prototype to avoid an error.
38747    Use char because int might match the return type of a GCC
38748    builtin and then its argument prototype would still apply.  */
38749 #ifdef __cplusplus
38750 extern "C"
38751 #endif
38752 char gethostbyname_r ();
38753 /* The GNU C library defines this for functions which it implements
38754     to always fail with ENOSYS.  Some functions are actually named
38755     something starting with __ and the normal name is an alias.  */
38756 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
38757 choke me
38758 #endif
38759
38760 int
38761 main ()
38762 {
38763 return gethostbyname_r ();
38764   ;
38765   return 0;
38766 }
38767 _ACEOF
38768 rm -f conftest.$ac_objext conftest$ac_exeext
38769 if { (ac_try="$ac_link"
38770 case "(($ac_try" in
38771   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38772   *) ac_try_echo=$ac_try;;
38773 esac
38774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38775   (eval "$ac_link") 2>conftest.er1
38776   ac_status=$?
38777   grep -v '^ *+' conftest.er1 >conftest.err
38778   rm -f conftest.er1
38779   cat conftest.err >&5
38780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38781   (exit $ac_status); } && {
38782          test -z "$ac_c_werror_flag" ||
38783          test ! -s conftest.err
38784        } && test -s conftest$ac_exeext &&
38785        $as_test_x conftest$ac_exeext; then
38786   ac_cv_func_gethostbyname_r=yes
38787 else
38788   echo "$as_me: failed program was:" >&5
38789 sed 's/^/| /' conftest.$ac_ext >&5
38790
38791         ac_cv_func_gethostbyname_r=no
38792 fi
38793
38794 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38795       conftest$ac_exeext conftest.$ac_ext
38796 fi
38797 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
38798 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6; }
38799 if test $ac_cv_func_gethostbyname_r = yes; then
38800   { echo "$as_me:$LINENO: result: using libc's resolver" >&5
38801 echo "${ECHO_T}using libc's resolver" >&6; }
38802 else
38803
38804 { echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
38805 echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6; }
38806 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
38807   echo $ECHO_N "(cached) $ECHO_C" >&6
38808 else
38809   ac_check_lib_save_LIBS=$LIBS
38810 LIBS="-lnsl  $LIBS"
38811 cat >conftest.$ac_ext <<_ACEOF
38812 /* confdefs.h.  */
38813 _ACEOF
38814 cat confdefs.h >>conftest.$ac_ext
38815 cat >>conftest.$ac_ext <<_ACEOF
38816 /* end confdefs.h.  */
38817
38818 /* Override any GCC internal prototype to avoid an error.
38819    Use char because int might match the return type of a GCC
38820    builtin and then its argument prototype would still apply.  */
38821 #ifdef __cplusplus
38822 extern "C"
38823 #endif
38824 char gethostbyname_r ();
38825 int
38826 main ()
38827 {
38828 return gethostbyname_r ();
38829   ;
38830   return 0;
38831 }
38832 _ACEOF
38833 rm -f conftest.$ac_objext conftest$ac_exeext
38834 if { (ac_try="$ac_link"
38835 case "(($ac_try" in
38836   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38837   *) ac_try_echo=$ac_try;;
38838 esac
38839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38840   (eval "$ac_link") 2>conftest.er1
38841   ac_status=$?
38842   grep -v '^ *+' conftest.er1 >conftest.err
38843   rm -f conftest.er1
38844   cat conftest.err >&5
38845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38846   (exit $ac_status); } && {
38847          test -z "$ac_c_werror_flag" ||
38848          test ! -s conftest.err
38849        } && test -s conftest$ac_exeext &&
38850        $as_test_x conftest$ac_exeext; then
38851   ac_cv_lib_nsl_gethostbyname_r=yes
38852 else
38853   echo "$as_me: failed program was:" >&5
38854 sed 's/^/| /' conftest.$ac_ext >&5
38855
38856         ac_cv_lib_nsl_gethostbyname_r=no
38857 fi
38858
38859 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38860       conftest$ac_exeext conftest.$ac_ext
38861 LIBS=$ac_check_lib_save_LIBS
38862 fi
38863 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
38864 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6; }
38865 if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
38866   cat >>confdefs.h <<_ACEOF
38867 #define HAVE_LIBNSL 1
38868 _ACEOF
38869
38870   LIBS="-lnsl $LIBS"
38871
38872 fi
38873
38874
38875 { echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
38876 echo $ECHO_N "checking for gethostbyname_r in -lresolv... $ECHO_C" >&6; }
38877 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
38878   echo $ECHO_N "(cached) $ECHO_C" >&6
38879 else
38880   ac_check_lib_save_LIBS=$LIBS
38881 LIBS="-lresolv  $LIBS"
38882 cat >conftest.$ac_ext <<_ACEOF
38883 /* confdefs.h.  */
38884 _ACEOF
38885 cat confdefs.h >>conftest.$ac_ext
38886 cat >>conftest.$ac_ext <<_ACEOF
38887 /* end confdefs.h.  */
38888
38889 /* Override any GCC internal prototype to avoid an error.
38890    Use char because int might match the return type of a GCC
38891    builtin and then its argument prototype would still apply.  */
38892 #ifdef __cplusplus
38893 extern "C"
38894 #endif
38895 char gethostbyname_r ();
38896 int
38897 main ()
38898 {
38899 return gethostbyname_r ();
38900   ;
38901   return 0;
38902 }
38903 _ACEOF
38904 rm -f conftest.$ac_objext conftest$ac_exeext
38905 if { (ac_try="$ac_link"
38906 case "(($ac_try" in
38907   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38908   *) ac_try_echo=$ac_try;;
38909 esac
38910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38911   (eval "$ac_link") 2>conftest.er1
38912   ac_status=$?
38913   grep -v '^ *+' conftest.er1 >conftest.err
38914   rm -f conftest.er1
38915   cat conftest.err >&5
38916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38917   (exit $ac_status); } && {
38918          test -z "$ac_c_werror_flag" ||
38919          test ! -s conftest.err
38920        } && test -s conftest$ac_exeext &&
38921        $as_test_x conftest$ac_exeext; then
38922   ac_cv_lib_resolv_gethostbyname_r=yes
38923 else
38924   echo "$as_me: failed program was:" >&5
38925 sed 's/^/| /' conftest.$ac_ext >&5
38926
38927         ac_cv_lib_resolv_gethostbyname_r=no
38928 fi
38929
38930 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38931       conftest$ac_exeext conftest.$ac_ext
38932 LIBS=$ac_check_lib_save_LIBS
38933 fi
38934 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
38935 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname_r" >&6; }
38936 if test $ac_cv_lib_resolv_gethostbyname_r = yes; then
38937   cat >>confdefs.h <<_ACEOF
38938 #define HAVE_LIBRESOLV 1
38939 _ACEOF
38940
38941   LIBS="-lresolv $LIBS"
38942
38943 fi
38944
38945 fi
38946
38947
38948
38949 for ac_func in inet_pton
38950 do
38951 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38952 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38953 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38954 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38955   echo $ECHO_N "(cached) $ECHO_C" >&6
38956 else
38957   cat >conftest.$ac_ext <<_ACEOF
38958 /* confdefs.h.  */
38959 _ACEOF
38960 cat confdefs.h >>conftest.$ac_ext
38961 cat >>conftest.$ac_ext <<_ACEOF
38962 /* end confdefs.h.  */
38963 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38964    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38965 #define $ac_func innocuous_$ac_func
38966
38967 /* System header to define __stub macros and hopefully few prototypes,
38968     which can conflict with char $ac_func (); below.
38969     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38970     <limits.h> exists even on freestanding compilers.  */
38971
38972 #ifdef __STDC__
38973 # include <limits.h>
38974 #else
38975 # include <assert.h>
38976 #endif
38977
38978 #undef $ac_func
38979
38980 /* Override any GCC internal prototype to avoid an error.
38981    Use char because int might match the return type of a GCC
38982    builtin and then its argument prototype would still apply.  */
38983 #ifdef __cplusplus
38984 extern "C"
38985 #endif
38986 char $ac_func ();
38987 /* The GNU C library defines this for functions which it implements
38988     to always fail with ENOSYS.  Some functions are actually named
38989     something starting with __ and the normal name is an alias.  */
38990 #if defined __stub_$ac_func || defined __stub___$ac_func
38991 choke me
38992 #endif
38993
38994 int
38995 main ()
38996 {
38997 return $ac_func ();
38998   ;
38999   return 0;
39000 }
39001 _ACEOF
39002 rm -f conftest.$ac_objext conftest$ac_exeext
39003 if { (ac_try="$ac_link"
39004 case "(($ac_try" in
39005   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39006   *) ac_try_echo=$ac_try;;
39007 esac
39008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39009   (eval "$ac_link") 2>conftest.er1
39010   ac_status=$?
39011   grep -v '^ *+' conftest.er1 >conftest.err
39012   rm -f conftest.er1
39013   cat conftest.err >&5
39014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39015   (exit $ac_status); } && {
39016          test -z "$ac_c_werror_flag" ||
39017          test ! -s conftest.err
39018        } && test -s conftest$ac_exeext &&
39019        $as_test_x conftest$ac_exeext; then
39020   eval "$as_ac_var=yes"
39021 else
39022   echo "$as_me: failed program was:" >&5
39023 sed 's/^/| /' conftest.$ac_ext >&5
39024
39025         eval "$as_ac_var=no"
39026 fi
39027
39028 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39029       conftest$ac_exeext conftest.$ac_ext
39030 fi
39031 ac_res=`eval echo '${'$as_ac_var'}'`
39032                { echo "$as_me:$LINENO: result: $ac_res" >&5
39033 echo "${ECHO_T}$ac_res" >&6; }
39034 if test `eval echo '${'$as_ac_var'}'` = yes; then
39035   cat >>confdefs.h <<_ACEOF
39036 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39037 _ACEOF
39038  cat >>confdefs.h <<\_ACEOF
39039 #define HAVE_INET_PTON 1
39040 _ACEOF
39041
39042 fi
39043 done
39044
39045
39046 for ac_func in inet_ntop
39047 do
39048 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39049 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39050 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39051 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39052   echo $ECHO_N "(cached) $ECHO_C" >&6
39053 else
39054   cat >conftest.$ac_ext <<_ACEOF
39055 /* confdefs.h.  */
39056 _ACEOF
39057 cat confdefs.h >>conftest.$ac_ext
39058 cat >>conftest.$ac_ext <<_ACEOF
39059 /* end confdefs.h.  */
39060 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39061    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39062 #define $ac_func innocuous_$ac_func
39063
39064 /* System header to define __stub macros and hopefully few prototypes,
39065     which can conflict with char $ac_func (); below.
39066     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39067     <limits.h> exists even on freestanding compilers.  */
39068
39069 #ifdef __STDC__
39070 # include <limits.h>
39071 #else
39072 # include <assert.h>
39073 #endif
39074
39075 #undef $ac_func
39076
39077 /* Override any GCC internal prototype to avoid an error.
39078    Use char because int might match the return type of a GCC
39079    builtin and then its argument prototype would still apply.  */
39080 #ifdef __cplusplus
39081 extern "C"
39082 #endif
39083 char $ac_func ();
39084 /* The GNU C library defines this for functions which it implements
39085     to always fail with ENOSYS.  Some functions are actually named
39086     something starting with __ and the normal name is an alias.  */
39087 #if defined __stub_$ac_func || defined __stub___$ac_func
39088 choke me
39089 #endif
39090
39091 int
39092 main ()
39093 {
39094 return $ac_func ();
39095   ;
39096   return 0;
39097 }
39098 _ACEOF
39099 rm -f conftest.$ac_objext conftest$ac_exeext
39100 if { (ac_try="$ac_link"
39101 case "(($ac_try" in
39102   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39103   *) ac_try_echo=$ac_try;;
39104 esac
39105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39106   (eval "$ac_link") 2>conftest.er1
39107   ac_status=$?
39108   grep -v '^ *+' conftest.er1 >conftest.err
39109   rm -f conftest.er1
39110   cat conftest.err >&5
39111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39112   (exit $ac_status); } && {
39113          test -z "$ac_c_werror_flag" ||
39114          test ! -s conftest.err
39115        } && test -s conftest$ac_exeext &&
39116        $as_test_x conftest$ac_exeext; then
39117   eval "$as_ac_var=yes"
39118 else
39119   echo "$as_me: failed program was:" >&5
39120 sed 's/^/| /' conftest.$ac_ext >&5
39121
39122         eval "$as_ac_var=no"
39123 fi
39124
39125 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39126       conftest$ac_exeext conftest.$ac_ext
39127 fi
39128 ac_res=`eval echo '${'$as_ac_var'}'`
39129                { echo "$as_me:$LINENO: result: $ac_res" >&5
39130 echo "${ECHO_T}$ac_res" >&6; }
39131 if test `eval echo '${'$as_ac_var'}'` = yes; then
39132   cat >>confdefs.h <<_ACEOF
39133 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39134 _ACEOF
39135  cat >>confdefs.h <<\_ACEOF
39136 #define HAVE_INET_NTOP 1
39137 _ACEOF
39138
39139 fi
39140 done
39141
39142
39143 for ac_func in gethostbyname2
39144 do
39145 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39146 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39147 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39148 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39149   echo $ECHO_N "(cached) $ECHO_C" >&6
39150 else
39151   cat >conftest.$ac_ext <<_ACEOF
39152 /* confdefs.h.  */
39153 _ACEOF
39154 cat confdefs.h >>conftest.$ac_ext
39155 cat >>conftest.$ac_ext <<_ACEOF
39156 /* end confdefs.h.  */
39157 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39158    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39159 #define $ac_func innocuous_$ac_func
39160
39161 /* System header to define __stub macros and hopefully few prototypes,
39162     which can conflict with char $ac_func (); below.
39163     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39164     <limits.h> exists even on freestanding compilers.  */
39165
39166 #ifdef __STDC__
39167 # include <limits.h>
39168 #else
39169 # include <assert.h>
39170 #endif
39171
39172 #undef $ac_func
39173
39174 /* Override any GCC internal prototype to avoid an error.
39175    Use char because int might match the return type of a GCC
39176    builtin and then its argument prototype would still apply.  */
39177 #ifdef __cplusplus
39178 extern "C"
39179 #endif
39180 char $ac_func ();
39181 /* The GNU C library defines this for functions which it implements
39182     to always fail with ENOSYS.  Some functions are actually named
39183     something starting with __ and the normal name is an alias.  */
39184 #if defined __stub_$ac_func || defined __stub___$ac_func
39185 choke me
39186 #endif
39187
39188 int
39189 main ()
39190 {
39191 return $ac_func ();
39192   ;
39193   return 0;
39194 }
39195 _ACEOF
39196 rm -f conftest.$ac_objext conftest$ac_exeext
39197 if { (ac_try="$ac_link"
39198 case "(($ac_try" in
39199   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39200   *) ac_try_echo=$ac_try;;
39201 esac
39202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39203   (eval "$ac_link") 2>conftest.er1
39204   ac_status=$?
39205   grep -v '^ *+' conftest.er1 >conftest.err
39206   rm -f conftest.er1
39207   cat conftest.err >&5
39208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39209   (exit $ac_status); } && {
39210          test -z "$ac_c_werror_flag" ||
39211          test ! -s conftest.err
39212        } && test -s conftest$ac_exeext &&
39213        $as_test_x conftest$ac_exeext; then
39214   eval "$as_ac_var=yes"
39215 else
39216   echo "$as_me: failed program was:" >&5
39217 sed 's/^/| /' conftest.$ac_ext >&5
39218
39219         eval "$as_ac_var=no"
39220 fi
39221
39222 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39223       conftest$ac_exeext conftest.$ac_ext
39224 fi
39225 ac_res=`eval echo '${'$as_ac_var'}'`
39226                { echo "$as_me:$LINENO: result: $ac_res" >&5
39227 echo "${ECHO_T}$ac_res" >&6; }
39228 if test `eval echo '${'$as_ac_var'}'` = yes; then
39229   cat >>confdefs.h <<_ACEOF
39230 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39231 _ACEOF
39232  cat >>confdefs.h <<\_ACEOF
39233 #define HAVE_GETHOSTBYNAME2 1
39234 _ACEOF
39235
39236 fi
39237 done
39238
39239
39240 { echo "$as_me:$LINENO: checking for struct sockaddr has a sa_len field" >&5
39241 echo $ECHO_N "checking for struct sockaddr has a sa_len field... $ECHO_C" >&6; }
39242 if test "${ac_cv_struct_sockaddr_sa_len+set}" = set; then
39243   echo $ECHO_N "(cached) $ECHO_C" >&6
39244 else
39245
39246        cat >conftest.$ac_ext <<_ACEOF
39247 /* confdefs.h.  */
39248 _ACEOF
39249 cat confdefs.h >>conftest.$ac_ext
39250 cat >>conftest.$ac_ext <<_ACEOF
39251 /* end confdefs.h.  */
39252
39253               #include <sys/socket.h>
39254
39255 int
39256 main ()
39257 {
39258
39259               struct sockaddr s; s.sa_len;
39260
39261   ;
39262   return 0;
39263 }
39264 _ACEOF
39265 rm -f conftest.$ac_objext
39266 if { (ac_try="$ac_compile"
39267 case "(($ac_try" in
39268   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39269   *) ac_try_echo=$ac_try;;
39270 esac
39271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39272   (eval "$ac_compile") 2>conftest.er1
39273   ac_status=$?
39274   grep -v '^ *+' conftest.er1 >conftest.err
39275   rm -f conftest.er1
39276   cat conftest.err >&5
39277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39278   (exit $ac_status); } && {
39279          test -z "$ac_c_werror_flag" ||
39280          test ! -s conftest.err
39281        } && test -s conftest.$ac_objext; then
39282
39283              ac_cv_struct_sockaddr_sa_len=yes
39284
39285 else
39286   echo "$as_me: failed program was:" >&5
39287 sed 's/^/| /' conftest.$ac_ext >&5
39288
39289         ac_cv_struct_sockaddr_sa_len=no
39290
39291
39292 fi
39293
39294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39295
39296
39297 fi
39298 { echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_sa_len" >&5
39299 echo "${ECHO_T}$ac_cv_struct_sockaddr_sa_len" >&6; }
39300
39301 if test $ac_cv_struct_sockaddr_sa_len = yes; then
39302
39303 cat >>confdefs.h <<\_ACEOF
39304 #define HAVE_SA_LEN 1
39305 _ACEOF
39306
39307 fi
39308
39309
39310 for ac_func in strftime
39311 do
39312 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39313 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39314 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39315 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39316   echo $ECHO_N "(cached) $ECHO_C" >&6
39317 else
39318   cat >conftest.$ac_ext <<_ACEOF
39319 /* confdefs.h.  */
39320 _ACEOF
39321 cat confdefs.h >>conftest.$ac_ext
39322 cat >>conftest.$ac_ext <<_ACEOF
39323 /* end confdefs.h.  */
39324 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39325    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39326 #define $ac_func innocuous_$ac_func
39327
39328 /* System header to define __stub macros and hopefully few prototypes,
39329     which can conflict with char $ac_func (); below.
39330     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39331     <limits.h> exists even on freestanding compilers.  */
39332
39333 #ifdef __STDC__
39334 # include <limits.h>
39335 #else
39336 # include <assert.h>
39337 #endif
39338
39339 #undef $ac_func
39340
39341 /* Override any GCC internal prototype to avoid an error.
39342    Use char because int might match the return type of a GCC
39343    builtin and then its argument prototype would still apply.  */
39344 #ifdef __cplusplus
39345 extern "C"
39346 #endif
39347 char $ac_func ();
39348 /* The GNU C library defines this for functions which it implements
39349     to always fail with ENOSYS.  Some functions are actually named
39350     something starting with __ and the normal name is an alias.  */
39351 #if defined __stub_$ac_func || defined __stub___$ac_func
39352 choke me
39353 #endif
39354
39355 int
39356 main ()
39357 {
39358 return $ac_func ();
39359   ;
39360   return 0;
39361 }
39362 _ACEOF
39363 rm -f conftest.$ac_objext conftest$ac_exeext
39364 if { (ac_try="$ac_link"
39365 case "(($ac_try" in
39366   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39367   *) ac_try_echo=$ac_try;;
39368 esac
39369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39370   (eval "$ac_link") 2>conftest.er1
39371   ac_status=$?
39372   grep -v '^ *+' conftest.er1 >conftest.err
39373   rm -f conftest.er1
39374   cat conftest.err >&5
39375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39376   (exit $ac_status); } && {
39377          test -z "$ac_c_werror_flag" ||
39378          test ! -s conftest.err
39379        } && test -s conftest$ac_exeext &&
39380        $as_test_x conftest$ac_exeext; then
39381   eval "$as_ac_var=yes"
39382 else
39383   echo "$as_me: failed program was:" >&5
39384 sed 's/^/| /' conftest.$ac_ext >&5
39385
39386         eval "$as_ac_var=no"
39387 fi
39388
39389 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39390       conftest$ac_exeext conftest.$ac_ext
39391 fi
39392 ac_res=`eval echo '${'$as_ac_var'}'`
39393                { echo "$as_me:$LINENO: result: $ac_res" >&5
39394 echo "${ECHO_T}$ac_res" >&6; }
39395 if test `eval echo '${'$as_ac_var'}'` = yes; then
39396   cat >>confdefs.h <<_ACEOF
39397 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39398 _ACEOF
39399
39400 else
39401   # strftime is in -lintl on SCO UNIX.
39402 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
39403 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
39404 if test "${ac_cv_lib_intl_strftime+set}" = set; then
39405   echo $ECHO_N "(cached) $ECHO_C" >&6
39406 else
39407   ac_check_lib_save_LIBS=$LIBS
39408 LIBS="-lintl  $LIBS"
39409 cat >conftest.$ac_ext <<_ACEOF
39410 /* confdefs.h.  */
39411 _ACEOF
39412 cat confdefs.h >>conftest.$ac_ext
39413 cat >>conftest.$ac_ext <<_ACEOF
39414 /* end confdefs.h.  */
39415
39416 /* Override any GCC internal prototype to avoid an error.
39417    Use char because int might match the return type of a GCC
39418    builtin and then its argument prototype would still apply.  */
39419 #ifdef __cplusplus
39420 extern "C"
39421 #endif
39422 char strftime ();
39423 int
39424 main ()
39425 {
39426 return strftime ();
39427   ;
39428   return 0;
39429 }
39430 _ACEOF
39431 rm -f conftest.$ac_objext conftest$ac_exeext
39432 if { (ac_try="$ac_link"
39433 case "(($ac_try" in
39434   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39435   *) ac_try_echo=$ac_try;;
39436 esac
39437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39438   (eval "$ac_link") 2>conftest.er1
39439   ac_status=$?
39440   grep -v '^ *+' conftest.er1 >conftest.err
39441   rm -f conftest.er1
39442   cat conftest.err >&5
39443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39444   (exit $ac_status); } && {
39445          test -z "$ac_c_werror_flag" ||
39446          test ! -s conftest.err
39447        } && test -s conftest$ac_exeext &&
39448        $as_test_x conftest$ac_exeext; then
39449   ac_cv_lib_intl_strftime=yes
39450 else
39451   echo "$as_me: failed program was:" >&5
39452 sed 's/^/| /' conftest.$ac_ext >&5
39453
39454         ac_cv_lib_intl_strftime=no
39455 fi
39456
39457 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39458       conftest$ac_exeext conftest.$ac_ext
39459 LIBS=$ac_check_lib_save_LIBS
39460 fi
39461 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
39462 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
39463 if test $ac_cv_lib_intl_strftime = yes; then
39464   cat >>confdefs.h <<\_ACEOF
39465 #define HAVE_STRFTIME 1
39466 _ACEOF
39467
39468 LIBS="-lintl $LIBS"
39469 fi
39470
39471 fi
39472 done
39473
39474
39475 for ac_func in vprintf
39476 do
39477 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39478 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39479 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39480 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39481   echo $ECHO_N "(cached) $ECHO_C" >&6
39482 else
39483   cat >conftest.$ac_ext <<_ACEOF
39484 /* confdefs.h.  */
39485 _ACEOF
39486 cat confdefs.h >>conftest.$ac_ext
39487 cat >>conftest.$ac_ext <<_ACEOF
39488 /* end confdefs.h.  */
39489 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39490    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39491 #define $ac_func innocuous_$ac_func
39492
39493 /* System header to define __stub macros and hopefully few prototypes,
39494     which can conflict with char $ac_func (); below.
39495     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39496     <limits.h> exists even on freestanding compilers.  */
39497
39498 #ifdef __STDC__
39499 # include <limits.h>
39500 #else
39501 # include <assert.h>
39502 #endif
39503
39504 #undef $ac_func
39505
39506 /* Override any GCC internal prototype to avoid an error.
39507    Use char because int might match the return type of a GCC
39508    builtin and then its argument prototype would still apply.  */
39509 #ifdef __cplusplus
39510 extern "C"
39511 #endif
39512 char $ac_func ();
39513 /* The GNU C library defines this for functions which it implements
39514     to always fail with ENOSYS.  Some functions are actually named
39515     something starting with __ and the normal name is an alias.  */
39516 #if defined __stub_$ac_func || defined __stub___$ac_func
39517 choke me
39518 #endif
39519
39520 int
39521 main ()
39522 {
39523 return $ac_func ();
39524   ;
39525   return 0;
39526 }
39527 _ACEOF
39528 rm -f conftest.$ac_objext conftest$ac_exeext
39529 if { (ac_try="$ac_link"
39530 case "(($ac_try" in
39531   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39532   *) ac_try_echo=$ac_try;;
39533 esac
39534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39535   (eval "$ac_link") 2>conftest.er1
39536   ac_status=$?
39537   grep -v '^ *+' conftest.er1 >conftest.err
39538   rm -f conftest.er1
39539   cat conftest.err >&5
39540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39541   (exit $ac_status); } && {
39542          test -z "$ac_c_werror_flag" ||
39543          test ! -s conftest.err
39544        } && test -s conftest$ac_exeext &&
39545        $as_test_x conftest$ac_exeext; then
39546   eval "$as_ac_var=yes"
39547 else
39548   echo "$as_me: failed program was:" >&5
39549 sed 's/^/| /' conftest.$ac_ext >&5
39550
39551         eval "$as_ac_var=no"
39552 fi
39553
39554 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39555       conftest$ac_exeext conftest.$ac_ext
39556 fi
39557 ac_res=`eval echo '${'$as_ac_var'}'`
39558                { echo "$as_me:$LINENO: result: $ac_res" >&5
39559 echo "${ECHO_T}$ac_res" >&6; }
39560 if test `eval echo '${'$as_ac_var'}'` = yes; then
39561   cat >>confdefs.h <<_ACEOF
39562 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39563 _ACEOF
39564
39565 { echo "$as_me:$LINENO: checking for _doprnt" >&5
39566 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
39567 if test "${ac_cv_func__doprnt+set}" = set; then
39568   echo $ECHO_N "(cached) $ECHO_C" >&6
39569 else
39570   cat >conftest.$ac_ext <<_ACEOF
39571 /* confdefs.h.  */
39572 _ACEOF
39573 cat confdefs.h >>conftest.$ac_ext
39574 cat >>conftest.$ac_ext <<_ACEOF
39575 /* end confdefs.h.  */
39576 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
39577    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39578 #define _doprnt innocuous__doprnt
39579
39580 /* System header to define __stub macros and hopefully few prototypes,
39581     which can conflict with char _doprnt (); below.
39582     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39583     <limits.h> exists even on freestanding compilers.  */
39584
39585 #ifdef __STDC__
39586 # include <limits.h>
39587 #else
39588 # include <assert.h>
39589 #endif
39590
39591 #undef _doprnt
39592
39593 /* Override any GCC internal prototype to avoid an error.
39594    Use char because int might match the return type of a GCC
39595    builtin and then its argument prototype would still apply.  */
39596 #ifdef __cplusplus
39597 extern "C"
39598 #endif
39599 char _doprnt ();
39600 /* The GNU C library defines this for functions which it implements
39601     to always fail with ENOSYS.  Some functions are actually named
39602     something starting with __ and the normal name is an alias.  */
39603 #if defined __stub__doprnt || defined __stub____doprnt
39604 choke me
39605 #endif
39606
39607 int
39608 main ()
39609 {
39610 return _doprnt ();
39611   ;
39612   return 0;
39613 }
39614 _ACEOF
39615 rm -f conftest.$ac_objext conftest$ac_exeext
39616 if { (ac_try="$ac_link"
39617 case "(($ac_try" in
39618   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39619   *) ac_try_echo=$ac_try;;
39620 esac
39621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39622   (eval "$ac_link") 2>conftest.er1
39623   ac_status=$?
39624   grep -v '^ *+' conftest.er1 >conftest.err
39625   rm -f conftest.er1
39626   cat conftest.err >&5
39627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39628   (exit $ac_status); } && {
39629          test -z "$ac_c_werror_flag" ||
39630          test ! -s conftest.err
39631        } && test -s conftest$ac_exeext &&
39632        $as_test_x conftest$ac_exeext; then
39633   ac_cv_func__doprnt=yes
39634 else
39635   echo "$as_me: failed program was:" >&5
39636 sed 's/^/| /' conftest.$ac_ext >&5
39637
39638         ac_cv_func__doprnt=no
39639 fi
39640
39641 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39642       conftest$ac_exeext conftest.$ac_ext
39643 fi
39644 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
39645 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
39646 if test $ac_cv_func__doprnt = yes; then
39647
39648 cat >>confdefs.h <<\_ACEOF
39649 #define HAVE_DOPRNT 1
39650 _ACEOF
39651
39652 fi
39653
39654 fi
39655 done
39656
39657
39658 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
39659 # for constant arguments.  Useless!
39660 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
39661 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
39662 if test "${ac_cv_working_alloca_h+set}" = set; then
39663   echo $ECHO_N "(cached) $ECHO_C" >&6
39664 else
39665   cat >conftest.$ac_ext <<_ACEOF
39666 /* confdefs.h.  */
39667 _ACEOF
39668 cat confdefs.h >>conftest.$ac_ext
39669 cat >>conftest.$ac_ext <<_ACEOF
39670 /* end confdefs.h.  */
39671 #include <alloca.h>
39672 int
39673 main ()
39674 {
39675 char *p = (char *) alloca (2 * sizeof (int));
39676                           if (p) return 0;
39677   ;
39678   return 0;
39679 }
39680 _ACEOF
39681 rm -f conftest.$ac_objext conftest$ac_exeext
39682 if { (ac_try="$ac_link"
39683 case "(($ac_try" in
39684   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39685   *) ac_try_echo=$ac_try;;
39686 esac
39687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39688   (eval "$ac_link") 2>conftest.er1
39689   ac_status=$?
39690   grep -v '^ *+' conftest.er1 >conftest.err
39691   rm -f conftest.er1
39692   cat conftest.err >&5
39693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39694   (exit $ac_status); } && {
39695          test -z "$ac_c_werror_flag" ||
39696          test ! -s conftest.err
39697        } && test -s conftest$ac_exeext &&
39698        $as_test_x conftest$ac_exeext; then
39699   ac_cv_working_alloca_h=yes
39700 else
39701   echo "$as_me: failed program was:" >&5
39702 sed 's/^/| /' conftest.$ac_ext >&5
39703
39704         ac_cv_working_alloca_h=no
39705 fi
39706
39707 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39708       conftest$ac_exeext conftest.$ac_ext
39709 fi
39710 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
39711 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
39712 if test $ac_cv_working_alloca_h = yes; then
39713
39714 cat >>confdefs.h <<\_ACEOF
39715 #define HAVE_ALLOCA_H 1
39716 _ACEOF
39717
39718 fi
39719
39720 { echo "$as_me:$LINENO: checking for alloca" >&5
39721 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
39722 if test "${ac_cv_func_alloca_works+set}" = set; then
39723   echo $ECHO_N "(cached) $ECHO_C" >&6
39724 else
39725   cat >conftest.$ac_ext <<_ACEOF
39726 /* confdefs.h.  */
39727 _ACEOF
39728 cat confdefs.h >>conftest.$ac_ext
39729 cat >>conftest.$ac_ext <<_ACEOF
39730 /* end confdefs.h.  */
39731 #ifdef __GNUC__
39732 # define alloca __builtin_alloca
39733 #else
39734 # ifdef _MSC_VER
39735 #  include <malloc.h>
39736 #  define alloca _alloca
39737 # else
39738 #  ifdef HAVE_ALLOCA_H
39739 #   include <alloca.h>
39740 #  else
39741 #   ifdef _AIX
39742  #pragma alloca
39743 #   else
39744 #    ifndef alloca /* predefined by HP cc +Olibcalls */
39745 char *alloca ();
39746 #    endif
39747 #   endif
39748 #  endif
39749 # endif
39750 #endif
39751
39752 int
39753 main ()
39754 {
39755 char *p = (char *) alloca (1);
39756                                     if (p) return 0;
39757   ;
39758   return 0;
39759 }
39760 _ACEOF
39761 rm -f conftest.$ac_objext conftest$ac_exeext
39762 if { (ac_try="$ac_link"
39763 case "(($ac_try" in
39764   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39765   *) ac_try_echo=$ac_try;;
39766 esac
39767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39768   (eval "$ac_link") 2>conftest.er1
39769   ac_status=$?
39770   grep -v '^ *+' conftest.er1 >conftest.err
39771   rm -f conftest.er1
39772   cat conftest.err >&5
39773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39774   (exit $ac_status); } && {
39775          test -z "$ac_c_werror_flag" ||
39776          test ! -s conftest.err
39777        } && test -s conftest$ac_exeext &&
39778        $as_test_x conftest$ac_exeext; then
39779   ac_cv_func_alloca_works=yes
39780 else
39781   echo "$as_me: failed program was:" >&5
39782 sed 's/^/| /' conftest.$ac_ext >&5
39783
39784         ac_cv_func_alloca_works=no
39785 fi
39786
39787 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39788       conftest$ac_exeext conftest.$ac_ext
39789 fi
39790 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
39791 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
39792
39793 if test $ac_cv_func_alloca_works = yes; then
39794
39795 cat >>confdefs.h <<\_ACEOF
39796 #define HAVE_ALLOCA 1
39797 _ACEOF
39798
39799 else
39800   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
39801 # that cause trouble.  Some versions do not even contain alloca or
39802 # contain a buggy version.  If you still want to use their alloca,
39803 # use ar to extract alloca.o from them instead of compiling alloca.c.
39804
39805 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
39806
39807 cat >>confdefs.h <<\_ACEOF
39808 #define C_ALLOCA 1
39809 _ACEOF
39810
39811
39812 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
39813 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
39814 if test "${ac_cv_os_cray+set}" = set; then
39815   echo $ECHO_N "(cached) $ECHO_C" >&6
39816 else
39817   cat >conftest.$ac_ext <<_ACEOF
39818 /* confdefs.h.  */
39819 _ACEOF
39820 cat confdefs.h >>conftest.$ac_ext
39821 cat >>conftest.$ac_ext <<_ACEOF
39822 /* end confdefs.h.  */
39823 #if defined CRAY && ! defined CRAY2
39824 webecray
39825 #else
39826 wenotbecray
39827 #endif
39828
39829 _ACEOF
39830 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39831   $EGREP "webecray" >/dev/null 2>&1; then
39832   ac_cv_os_cray=yes
39833 else
39834   ac_cv_os_cray=no
39835 fi
39836 rm -f conftest*
39837
39838 fi
39839 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
39840 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
39841 if test $ac_cv_os_cray = yes; then
39842   for ac_func in _getb67 GETB67 getb67; do
39843     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39844 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39845 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39846 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39847   echo $ECHO_N "(cached) $ECHO_C" >&6
39848 else
39849   cat >conftest.$ac_ext <<_ACEOF
39850 /* confdefs.h.  */
39851 _ACEOF
39852 cat confdefs.h >>conftest.$ac_ext
39853 cat >>conftest.$ac_ext <<_ACEOF
39854 /* end confdefs.h.  */
39855 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39856    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39857 #define $ac_func innocuous_$ac_func
39858
39859 /* System header to define __stub macros and hopefully few prototypes,
39860     which can conflict with char $ac_func (); below.
39861     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39862     <limits.h> exists even on freestanding compilers.  */
39863
39864 #ifdef __STDC__
39865 # include <limits.h>
39866 #else
39867 # include <assert.h>
39868 #endif
39869
39870 #undef $ac_func
39871
39872 /* Override any GCC internal prototype to avoid an error.
39873    Use char because int might match the return type of a GCC
39874    builtin and then its argument prototype would still apply.  */
39875 #ifdef __cplusplus
39876 extern "C"
39877 #endif
39878 char $ac_func ();
39879 /* The GNU C library defines this for functions which it implements
39880     to always fail with ENOSYS.  Some functions are actually named
39881     something starting with __ and the normal name is an alias.  */
39882 #if defined __stub_$ac_func || defined __stub___$ac_func
39883 choke me
39884 #endif
39885
39886 int
39887 main ()
39888 {
39889 return $ac_func ();
39890   ;
39891   return 0;
39892 }
39893 _ACEOF
39894 rm -f conftest.$ac_objext conftest$ac_exeext
39895 if { (ac_try="$ac_link"
39896 case "(($ac_try" in
39897   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39898   *) ac_try_echo=$ac_try;;
39899 esac
39900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39901   (eval "$ac_link") 2>conftest.er1
39902   ac_status=$?
39903   grep -v '^ *+' conftest.er1 >conftest.err
39904   rm -f conftest.er1
39905   cat conftest.err >&5
39906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39907   (exit $ac_status); } && {
39908          test -z "$ac_c_werror_flag" ||
39909          test ! -s conftest.err
39910        } && test -s conftest$ac_exeext &&
39911        $as_test_x conftest$ac_exeext; then
39912   eval "$as_ac_var=yes"
39913 else
39914   echo "$as_me: failed program was:" >&5
39915 sed 's/^/| /' conftest.$ac_ext >&5
39916
39917         eval "$as_ac_var=no"
39918 fi
39919
39920 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39921       conftest$ac_exeext conftest.$ac_ext
39922 fi
39923 ac_res=`eval echo '${'$as_ac_var'}'`
39924                { echo "$as_me:$LINENO: result: $ac_res" >&5
39925 echo "${ECHO_T}$ac_res" >&6; }
39926 if test `eval echo '${'$as_ac_var'}'` = yes; then
39927
39928 cat >>confdefs.h <<_ACEOF
39929 #define CRAY_STACKSEG_END $ac_func
39930 _ACEOF
39931
39932     break
39933 fi
39934
39935   done
39936 fi
39937
39938 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
39939 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
39940 if test "${ac_cv_c_stack_direction+set}" = set; then
39941   echo $ECHO_N "(cached) $ECHO_C" >&6
39942 else
39943   if test "$cross_compiling" = yes; then
39944   ac_cv_c_stack_direction=0
39945 else
39946   cat >conftest.$ac_ext <<_ACEOF
39947 /* confdefs.h.  */
39948 _ACEOF
39949 cat confdefs.h >>conftest.$ac_ext
39950 cat >>conftest.$ac_ext <<_ACEOF
39951 /* end confdefs.h.  */
39952 $ac_includes_default
39953 int
39954 find_stack_direction ()
39955 {
39956   static char *addr = 0;
39957   auto char dummy;
39958   if (addr == 0)
39959     {
39960       addr = &dummy;
39961       return find_stack_direction ();
39962     }
39963   else
39964     return (&dummy > addr) ? 1 : -1;
39965 }
39966
39967 int
39968 main ()
39969 {
39970   return find_stack_direction () < 0;
39971 }
39972 _ACEOF
39973 rm -f conftest$ac_exeext
39974 if { (ac_try="$ac_link"
39975 case "(($ac_try" in
39976   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39977   *) ac_try_echo=$ac_try;;
39978 esac
39979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39980   (eval "$ac_link") 2>&5
39981   ac_status=$?
39982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39983   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
39984   { (case "(($ac_try" in
39985   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39986   *) ac_try_echo=$ac_try;;
39987 esac
39988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39989   (eval "$ac_try") 2>&5
39990   ac_status=$?
39991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39992   (exit $ac_status); }; }; then
39993   ac_cv_c_stack_direction=1
39994 else
39995   echo "$as_me: program exited with status $ac_status" >&5
39996 echo "$as_me: failed program was:" >&5
39997 sed 's/^/| /' conftest.$ac_ext >&5
39998
39999 ( exit $ac_status )
40000 ac_cv_c_stack_direction=-1
40001 fi
40002 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
40003 fi
40004
40005
40006 fi
40007 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
40008 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
40009
40010 cat >>confdefs.h <<_ACEOF
40011 #define STACK_DIRECTION $ac_cv_c_stack_direction
40012 _ACEOF
40013
40014
40015 fi
40016
40017 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
40018 # -lseq on Dynix/PTX, -lgen on Unixware.
40019 { echo "$as_me:$LINENO: checking for library containing getmntent" >&5
40020 echo $ECHO_N "checking for library containing getmntent... $ECHO_C" >&6; }
40021 if test "${ac_cv_search_getmntent+set}" = set; then
40022   echo $ECHO_N "(cached) $ECHO_C" >&6
40023 else
40024   ac_func_search_save_LIBS=$LIBS
40025 cat >conftest.$ac_ext <<_ACEOF
40026 /* confdefs.h.  */
40027 _ACEOF
40028 cat confdefs.h >>conftest.$ac_ext
40029 cat >>conftest.$ac_ext <<_ACEOF
40030 /* end confdefs.h.  */
40031
40032 /* Override any GCC internal prototype to avoid an error.
40033    Use char because int might match the return type of a GCC
40034    builtin and then its argument prototype would still apply.  */
40035 #ifdef __cplusplus
40036 extern "C"
40037 #endif
40038 char getmntent ();
40039 int
40040 main ()
40041 {
40042 return getmntent ();
40043   ;
40044   return 0;
40045 }
40046 _ACEOF
40047 for ac_lib in '' sun seq gen; do
40048   if test -z "$ac_lib"; then
40049     ac_res="none required"
40050   else
40051     ac_res=-l$ac_lib
40052     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
40053   fi
40054   rm -f conftest.$ac_objext conftest$ac_exeext
40055 if { (ac_try="$ac_link"
40056 case "(($ac_try" in
40057   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40058   *) ac_try_echo=$ac_try;;
40059 esac
40060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40061   (eval "$ac_link") 2>conftest.er1
40062   ac_status=$?
40063   grep -v '^ *+' conftest.er1 >conftest.err
40064   rm -f conftest.er1
40065   cat conftest.err >&5
40066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40067   (exit $ac_status); } && {
40068          test -z "$ac_c_werror_flag" ||
40069          test ! -s conftest.err
40070        } && test -s conftest$ac_exeext &&
40071        $as_test_x conftest$ac_exeext; then
40072   ac_cv_search_getmntent=$ac_res
40073 else
40074   echo "$as_me: failed program was:" >&5
40075 sed 's/^/| /' conftest.$ac_ext >&5
40076
40077
40078 fi
40079
40080 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40081       conftest$ac_exeext
40082   if test "${ac_cv_search_getmntent+set}" = set; then
40083   break
40084 fi
40085 done
40086 if test "${ac_cv_search_getmntent+set}" = set; then
40087   :
40088 else
40089   ac_cv_search_getmntent=no
40090 fi
40091 rm conftest.$ac_ext
40092 LIBS=$ac_func_search_save_LIBS
40093 fi
40094 { echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5
40095 echo "${ECHO_T}$ac_cv_search_getmntent" >&6; }
40096 ac_res=$ac_cv_search_getmntent
40097 if test "$ac_res" != no; then
40098   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
40099   ac_cv_func_getmntent=yes
40100
40101 cat >>confdefs.h <<\_ACEOF
40102 #define HAVE_GETMNTENT 1
40103 _ACEOF
40104
40105 else
40106   ac_cv_func_getmntent=no
40107 fi
40108
40109
40110 { echo "$as_me:$LINENO: checking whether closedir returns void" >&5
40111 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6; }
40112 if test "${ac_cv_func_closedir_void+set}" = set; then
40113   echo $ECHO_N "(cached) $ECHO_C" >&6
40114 else
40115   if test "$cross_compiling" = yes; then
40116   ac_cv_func_closedir_void=yes
40117 else
40118   cat >conftest.$ac_ext <<_ACEOF
40119 /* confdefs.h.  */
40120 _ACEOF
40121 cat confdefs.h >>conftest.$ac_ext
40122 cat >>conftest.$ac_ext <<_ACEOF
40123 /* end confdefs.h.  */
40124 $ac_includes_default
40125 #include <$ac_header_dirent>
40126 #ifndef __cplusplus
40127 int closedir ();
40128 #endif
40129
40130 int
40131 main ()
40132 {
40133 return closedir (opendir (".")) != 0;
40134   ;
40135   return 0;
40136 }
40137 _ACEOF
40138 rm -f conftest$ac_exeext
40139 if { (ac_try="$ac_link"
40140 case "(($ac_try" in
40141   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40142   *) ac_try_echo=$ac_try;;
40143 esac
40144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40145   (eval "$ac_link") 2>&5
40146   ac_status=$?
40147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40148   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
40149   { (case "(($ac_try" in
40150   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40151   *) ac_try_echo=$ac_try;;
40152 esac
40153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40154   (eval "$ac_try") 2>&5
40155   ac_status=$?
40156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40157   (exit $ac_status); }; }; then
40158   ac_cv_func_closedir_void=no
40159 else
40160   echo "$as_me: program exited with status $ac_status" >&5
40161 echo "$as_me: failed program was:" >&5
40162 sed 's/^/| /' conftest.$ac_ext >&5
40163
40164 ( exit $ac_status )
40165 ac_cv_func_closedir_void=yes
40166 fi
40167 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
40168 fi
40169
40170
40171 fi
40172 { echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
40173 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; }
40174 if test $ac_cv_func_closedir_void = yes; then
40175
40176 cat >>confdefs.h <<\_ACEOF
40177 #define CLOSEDIR_VOID 1
40178 _ACEOF
40179
40180 fi
40181
40182 { echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
40183 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6; }
40184 if test "${ac_cv_func_setpgrp_void+set}" = set; then
40185   echo $ECHO_N "(cached) $ECHO_C" >&6
40186 else
40187   if test "$cross_compiling" = yes; then
40188   { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
40189 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
40190    { (exit 1); exit 1; }; }
40191 else
40192   cat >conftest.$ac_ext <<_ACEOF
40193 /* confdefs.h.  */
40194 _ACEOF
40195 cat confdefs.h >>conftest.$ac_ext
40196 cat >>conftest.$ac_ext <<_ACEOF
40197 /* end confdefs.h.  */
40198 $ac_includes_default
40199 int
40200 main ()
40201 {
40202 /* If this system has a BSD-style setpgrp which takes arguments,
40203   setpgrp(1, 1) will fail with ESRCH and return -1, in that case
40204   exit successfully. */
40205   return setpgrp (1,1) != -1;
40206   ;
40207   return 0;
40208 }
40209 _ACEOF
40210 rm -f conftest$ac_exeext
40211 if { (ac_try="$ac_link"
40212 case "(($ac_try" in
40213   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40214   *) ac_try_echo=$ac_try;;
40215 esac
40216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40217   (eval "$ac_link") 2>&5
40218   ac_status=$?
40219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40220   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
40221   { (case "(($ac_try" in
40222   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40223   *) ac_try_echo=$ac_try;;
40224 esac
40225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40226   (eval "$ac_try") 2>&5
40227   ac_status=$?
40228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40229   (exit $ac_status); }; }; then
40230   ac_cv_func_setpgrp_void=no
40231 else
40232   echo "$as_me: program exited with status $ac_status" >&5
40233 echo "$as_me: failed program was:" >&5
40234 sed 's/^/| /' conftest.$ac_ext >&5
40235
40236 ( exit $ac_status )
40237 ac_cv_func_setpgrp_void=yes
40238 fi
40239 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
40240 fi
40241
40242
40243 fi
40244 { echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
40245 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6; }
40246 if test $ac_cv_func_setpgrp_void = yes; then
40247
40248 cat >>confdefs.h <<\_ACEOF
40249 #define SETPGRP_VOID 1
40250 _ACEOF
40251
40252 fi
40253             # AC_FUNC_FNMATCH    dnl use local version
40254
40255 { echo "$as_me:$LINENO: checking for gettext in -lintl" >&5
40256 echo $ECHO_N "checking for gettext in -lintl... $ECHO_C" >&6; }
40257 if test "${ac_cv_lib_intl_gettext+set}" = set; then
40258   echo $ECHO_N "(cached) $ECHO_C" >&6
40259 else
40260   ac_check_lib_save_LIBS=$LIBS
40261 LIBS="-lintl  $LIBS"
40262 cat >conftest.$ac_ext <<_ACEOF
40263 /* confdefs.h.  */
40264 _ACEOF
40265 cat confdefs.h >>conftest.$ac_ext
40266 cat >>conftest.$ac_ext <<_ACEOF
40267 /* end confdefs.h.  */
40268
40269 /* Override any GCC internal prototype to avoid an error.
40270    Use char because int might match the return type of a GCC
40271    builtin and then its argument prototype would still apply.  */
40272 #ifdef __cplusplus
40273 extern "C"
40274 #endif
40275 char gettext ();
40276 int
40277 main ()
40278 {
40279 return gettext ();
40280   ;
40281   return 0;
40282 }
40283 _ACEOF
40284 rm -f conftest.$ac_objext conftest$ac_exeext
40285 if { (ac_try="$ac_link"
40286 case "(($ac_try" in
40287   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40288   *) ac_try_echo=$ac_try;;
40289 esac
40290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40291   (eval "$ac_link") 2>conftest.er1
40292   ac_status=$?
40293   grep -v '^ *+' conftest.er1 >conftest.err
40294   rm -f conftest.er1
40295   cat conftest.err >&5
40296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40297   (exit $ac_status); } && {
40298          test -z "$ac_c_werror_flag" ||
40299          test ! -s conftest.err
40300        } && test -s conftest$ac_exeext &&
40301        $as_test_x conftest$ac_exeext; then
40302   ac_cv_lib_intl_gettext=yes
40303 else
40304   echo "$as_me: failed program was:" >&5
40305 sed 's/^/| /' conftest.$ac_ext >&5
40306
40307         ac_cv_lib_intl_gettext=no
40308 fi
40309
40310 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40311       conftest$ac_exeext conftest.$ac_ext
40312 LIBS=$ac_check_lib_save_LIBS
40313 fi
40314 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_gettext" >&5
40315 echo "${ECHO_T}$ac_cv_lib_intl_gettext" >&6; }
40316 if test $ac_cv_lib_intl_gettext = yes; then
40317   LIBS="$LIBS -lintl"
40318 fi
40319
40320
40321
40322 { echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
40323 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6; }
40324 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
40325   echo $ECHO_N "(cached) $ECHO_C" >&6
40326 else
40327   ac_check_lib_save_LIBS=$LIBS
40328 LIBS="-lsun  $LIBS"
40329 cat >conftest.$ac_ext <<_ACEOF
40330 /* confdefs.h.  */
40331 _ACEOF
40332 cat confdefs.h >>conftest.$ac_ext
40333 cat >>conftest.$ac_ext <<_ACEOF
40334 /* end confdefs.h.  */
40335
40336 /* Override any GCC internal prototype to avoid an error.
40337    Use char because int might match the return type of a GCC
40338    builtin and then its argument prototype would still apply.  */
40339 #ifdef __cplusplus
40340 extern "C"
40341 #endif
40342 char getpwnam ();
40343 int
40344 main ()
40345 {
40346 return getpwnam ();
40347   ;
40348   return 0;
40349 }
40350 _ACEOF
40351 rm -f conftest.$ac_objext conftest$ac_exeext
40352 if { (ac_try="$ac_link"
40353 case "(($ac_try" in
40354   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40355   *) ac_try_echo=$ac_try;;
40356 esac
40357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40358   (eval "$ac_link") 2>conftest.er1
40359   ac_status=$?
40360   grep -v '^ *+' conftest.er1 >conftest.err
40361   rm -f conftest.er1
40362   cat conftest.err >&5
40363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40364   (exit $ac_status); } && {
40365          test -z "$ac_c_werror_flag" ||
40366          test ! -s conftest.err
40367        } && test -s conftest$ac_exeext &&
40368        $as_test_x conftest$ac_exeext; then
40369   ac_cv_lib_sun_getpwnam=yes
40370 else
40371   echo "$as_me: failed program was:" >&5
40372 sed 's/^/| /' conftest.$ac_ext >&5
40373
40374         ac_cv_lib_sun_getpwnam=no
40375 fi
40376
40377 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40378       conftest$ac_exeext conftest.$ac_ext
40379 LIBS=$ac_check_lib_save_LIBS
40380 fi
40381 { echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
40382 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6; }
40383 if test $ac_cv_lib_sun_getpwnam = yes; then
40384   cat >>confdefs.h <<_ACEOF
40385 #define HAVE_LIBSUN 1
40386 _ACEOF
40387
40388   LIBS="-lsun $LIBS"
40389
40390 fi
40391
40392
40393
40394 for ac_header in zlib.h
40395 do
40396 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
40397 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40398   { echo "$as_me:$LINENO: checking for $ac_header" >&5
40399 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
40400 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40401   echo $ECHO_N "(cached) $ECHO_C" >&6
40402 fi
40403 ac_res=`eval echo '${'$as_ac_Header'}'`
40404                { echo "$as_me:$LINENO: result: $ac_res" >&5
40405 echo "${ECHO_T}$ac_res" >&6; }
40406 else
40407   # Is the header compilable?
40408 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
40409 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
40410 cat >conftest.$ac_ext <<_ACEOF
40411 /* confdefs.h.  */
40412 _ACEOF
40413 cat confdefs.h >>conftest.$ac_ext
40414 cat >>conftest.$ac_ext <<_ACEOF
40415 /* end confdefs.h.  */
40416 $ac_includes_default
40417 #include <$ac_header>
40418 _ACEOF
40419 rm -f conftest.$ac_objext
40420 if { (ac_try="$ac_compile"
40421 case "(($ac_try" in
40422   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40423   *) ac_try_echo=$ac_try;;
40424 esac
40425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40426   (eval "$ac_compile") 2>conftest.er1
40427   ac_status=$?
40428   grep -v '^ *+' conftest.er1 >conftest.err
40429   rm -f conftest.er1
40430   cat conftest.err >&5
40431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40432   (exit $ac_status); } && {
40433          test -z "$ac_c_werror_flag" ||
40434          test ! -s conftest.err
40435        } && test -s conftest.$ac_objext; then
40436   ac_header_compiler=yes
40437 else
40438   echo "$as_me: failed program was:" >&5
40439 sed 's/^/| /' conftest.$ac_ext >&5
40440
40441         ac_header_compiler=no
40442 fi
40443
40444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40445 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
40446 echo "${ECHO_T}$ac_header_compiler" >&6; }
40447
40448 # Is the header present?
40449 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
40450 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
40451 cat >conftest.$ac_ext <<_ACEOF
40452 /* confdefs.h.  */
40453 _ACEOF
40454 cat confdefs.h >>conftest.$ac_ext
40455 cat >>conftest.$ac_ext <<_ACEOF
40456 /* end confdefs.h.  */
40457 #include <$ac_header>
40458 _ACEOF
40459 if { (ac_try="$ac_cpp conftest.$ac_ext"
40460 case "(($ac_try" in
40461   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40462   *) ac_try_echo=$ac_try;;
40463 esac
40464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40465   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
40466   ac_status=$?
40467   grep -v '^ *+' conftest.er1 >conftest.err
40468   rm -f conftest.er1
40469   cat conftest.err >&5
40470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40471   (exit $ac_status); } >/dev/null && {
40472          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
40473          test ! -s conftest.err
40474        }; then
40475   ac_header_preproc=yes
40476 else
40477   echo "$as_me: failed program was:" >&5
40478 sed 's/^/| /' conftest.$ac_ext >&5
40479
40480   ac_header_preproc=no
40481 fi
40482
40483 rm -f conftest.err conftest.$ac_ext
40484 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
40485 echo "${ECHO_T}$ac_header_preproc" >&6; }
40486
40487 # So?  What about this header?
40488 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
40489   yes:no: )
40490     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
40491 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
40492     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
40493 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
40494     ac_header_preproc=yes
40495     ;;
40496   no:yes:* )
40497     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
40498 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
40499     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
40500 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
40501     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
40502 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
40503     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
40504 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
40505     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
40506 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
40507     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
40508 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
40509
40510     ;;
40511 esac
40512 { echo "$as_me:$LINENO: checking for $ac_header" >&5
40513 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
40514 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40515   echo $ECHO_N "(cached) $ECHO_C" >&6
40516 else
40517   eval "$as_ac_Header=\$ac_header_preproc"
40518 fi
40519 ac_res=`eval echo '${'$as_ac_Header'}'`
40520                { echo "$as_me:$LINENO: result: $ac_res" >&5
40521 echo "${ECHO_T}$ac_res" >&6; }
40522
40523 fi
40524 if test `eval echo '${'$as_ac_Header'}'` = yes; then
40525   cat >>confdefs.h <<_ACEOF
40526 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
40527 _ACEOF
40528
40529 fi
40530
40531 done
40532
40533 { echo "$as_me:$LINENO: checking for deflate in -lz" >&5
40534 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6; }
40535 if test "${ac_cv_lib_z_deflate+set}" = set; then
40536   echo $ECHO_N "(cached) $ECHO_C" >&6
40537 else
40538   ac_check_lib_save_LIBS=$LIBS
40539 LIBS="-lz  $LIBS"
40540 cat >conftest.$ac_ext <<_ACEOF
40541 /* confdefs.h.  */
40542 _ACEOF
40543 cat confdefs.h >>conftest.$ac_ext
40544 cat >>conftest.$ac_ext <<_ACEOF
40545 /* end confdefs.h.  */
40546
40547 /* Override any GCC internal prototype to avoid an error.
40548    Use char because int might match the return type of a GCC
40549    builtin and then its argument prototype would still apply.  */
40550 #ifdef __cplusplus
40551 extern "C"
40552 #endif
40553 char deflate ();
40554 int
40555 main ()
40556 {
40557 return deflate ();
40558   ;
40559   return 0;
40560 }
40561 _ACEOF
40562 rm -f conftest.$ac_objext conftest$ac_exeext
40563 if { (ac_try="$ac_link"
40564 case "(($ac_try" in
40565   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40566   *) ac_try_echo=$ac_try;;
40567 esac
40568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40569   (eval "$ac_link") 2>conftest.er1
40570   ac_status=$?
40571   grep -v '^ *+' conftest.er1 >conftest.err
40572   rm -f conftest.er1
40573   cat conftest.err >&5
40574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40575   (exit $ac_status); } && {
40576          test -z "$ac_c_werror_flag" ||
40577          test ! -s conftest.err
40578        } && test -s conftest$ac_exeext &&
40579        $as_test_x conftest$ac_exeext; then
40580   ac_cv_lib_z_deflate=yes
40581 else
40582   echo "$as_me: failed program was:" >&5
40583 sed 's/^/| /' conftest.$ac_ext >&5
40584
40585         ac_cv_lib_z_deflate=no
40586 fi
40587
40588 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40589       conftest$ac_exeext conftest.$ac_ext
40590 LIBS=$ac_check_lib_save_LIBS
40591 fi
40592 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
40593 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6; }
40594 if test $ac_cv_lib_z_deflate = yes; then
40595   FDLIBS="-lz"
40596 fi
40597
40598 have_zlib=no
40599 if test x$FDLIBS = x-lz; then
40600    cat >>confdefs.h <<\_ACEOF
40601 #define HAVE_LIBZ 1
40602 _ACEOF
40603
40604    have_zlib=yes
40605 fi
40606
40607 support_acl=auto
40608 # Check whether --enable-acl was given.
40609 if test "${enable_acl+set}" = set; then
40610   enableval=$enable_acl;
40611        if test x$enableval = xyes; then
40612           support_acl=yes
40613        elif test x$enableval = xno; then
40614           support_acl=no
40615        fi
40616
40617
40618 fi
40619
40620
40621 have_acl=no
40622 have_extended_acl=no
40623 if test x$support_acl = xyes -o x$support_acl = xauto; then
40624    if test "${ac_cv_header_sys_acl_h+set}" = set; then
40625   { echo "$as_me:$LINENO: checking for sys/acl.h" >&5
40626 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6; }
40627 if test "${ac_cv_header_sys_acl_h+set}" = set; then
40628   echo $ECHO_N "(cached) $ECHO_C" >&6
40629 fi
40630 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
40631 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6; }
40632 else
40633   # Is the header compilable?
40634 { echo "$as_me:$LINENO: checking sys/acl.h usability" >&5
40635 echo $ECHO_N "checking sys/acl.h usability... $ECHO_C" >&6; }
40636 cat >conftest.$ac_ext <<_ACEOF
40637 /* confdefs.h.  */
40638 _ACEOF
40639 cat confdefs.h >>conftest.$ac_ext
40640 cat >>conftest.$ac_ext <<_ACEOF
40641 /* end confdefs.h.  */
40642 $ac_includes_default
40643 #include <sys/acl.h>
40644 _ACEOF
40645 rm -f conftest.$ac_objext
40646 if { (ac_try="$ac_compile"
40647 case "(($ac_try" in
40648   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40649   *) ac_try_echo=$ac_try;;
40650 esac
40651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40652   (eval "$ac_compile") 2>conftest.er1
40653   ac_status=$?
40654   grep -v '^ *+' conftest.er1 >conftest.err
40655   rm -f conftest.er1
40656   cat conftest.err >&5
40657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40658   (exit $ac_status); } && {
40659          test -z "$ac_c_werror_flag" ||
40660          test ! -s conftest.err
40661        } && test -s conftest.$ac_objext; then
40662   ac_header_compiler=yes
40663 else
40664   echo "$as_me: failed program was:" >&5
40665 sed 's/^/| /' conftest.$ac_ext >&5
40666
40667         ac_header_compiler=no
40668 fi
40669
40670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40671 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
40672 echo "${ECHO_T}$ac_header_compiler" >&6; }
40673
40674 # Is the header present?
40675 { echo "$as_me:$LINENO: checking sys/acl.h presence" >&5
40676 echo $ECHO_N "checking sys/acl.h presence... $ECHO_C" >&6; }
40677 cat >conftest.$ac_ext <<_ACEOF
40678 /* confdefs.h.  */
40679 _ACEOF
40680 cat confdefs.h >>conftest.$ac_ext
40681 cat >>conftest.$ac_ext <<_ACEOF
40682 /* end confdefs.h.  */
40683 #include <sys/acl.h>
40684 _ACEOF
40685 if { (ac_try="$ac_cpp conftest.$ac_ext"
40686 case "(($ac_try" in
40687   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40688   *) ac_try_echo=$ac_try;;
40689 esac
40690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40691   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
40692   ac_status=$?
40693   grep -v '^ *+' conftest.er1 >conftest.err
40694   rm -f conftest.er1
40695   cat conftest.err >&5
40696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40697   (exit $ac_status); } >/dev/null && {
40698          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
40699          test ! -s conftest.err
40700        }; then
40701   ac_header_preproc=yes
40702 else
40703   echo "$as_me: failed program was:" >&5
40704 sed 's/^/| /' conftest.$ac_ext >&5
40705
40706   ac_header_preproc=no
40707 fi
40708
40709 rm -f conftest.err conftest.$ac_ext
40710 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
40711 echo "${ECHO_T}$ac_header_preproc" >&6; }
40712
40713 # So?  What about this header?
40714 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
40715   yes:no: )
40716     { echo "$as_me:$LINENO: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&5
40717 echo "$as_me: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
40718     { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the compiler's result" >&5
40719 echo "$as_me: WARNING: sys/acl.h: proceeding with the compiler's result" >&2;}
40720     ac_header_preproc=yes
40721     ;;
40722   no:yes:* )
40723     { echo "$as_me:$LINENO: WARNING: sys/acl.h: present but cannot be compiled" >&5
40724 echo "$as_me: WARNING: sys/acl.h: present but cannot be compiled" >&2;}
40725     { echo "$as_me:$LINENO: WARNING: sys/acl.h:     check for missing prerequisite headers?" >&5
40726 echo "$as_me: WARNING: sys/acl.h:     check for missing prerequisite headers?" >&2;}
40727     { echo "$as_me:$LINENO: WARNING: sys/acl.h: see the Autoconf documentation" >&5
40728 echo "$as_me: WARNING: sys/acl.h: see the Autoconf documentation" >&2;}
40729     { echo "$as_me:$LINENO: WARNING: sys/acl.h:     section \"Present But Cannot Be Compiled\"" >&5
40730 echo "$as_me: WARNING: sys/acl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
40731     { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
40732 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
40733     { echo "$as_me:$LINENO: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&5
40734 echo "$as_me: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&2;}
40735
40736     ;;
40737 esac
40738 { echo "$as_me:$LINENO: checking for sys/acl.h" >&5
40739 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6; }
40740 if test "${ac_cv_header_sys_acl_h+set}" = set; then
40741   echo $ECHO_N "(cached) $ECHO_C" >&6
40742 else
40743   ac_cv_header_sys_acl_h=$ac_header_preproc
40744 fi
40745 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
40746 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6; }
40747
40748 fi
40749 if test $ac_cv_header_sys_acl_h = yes; then
40750
40751 cat >>confdefs.h <<\_ACEOF
40752 #define HAVE_SYS_ACL_H 1
40753 _ACEOF
40754
40755 fi
40756
40757
40758    { echo "$as_me:$LINENO: checking for acl_get_file" >&5
40759 echo $ECHO_N "checking for acl_get_file... $ECHO_C" >&6; }
40760 if test "${ac_cv_func_acl_get_file+set}" = set; then
40761   echo $ECHO_N "(cached) $ECHO_C" >&6
40762 else
40763   cat >conftest.$ac_ext <<_ACEOF
40764 /* confdefs.h.  */
40765 _ACEOF
40766 cat confdefs.h >>conftest.$ac_ext
40767 cat >>conftest.$ac_ext <<_ACEOF
40768 /* end confdefs.h.  */
40769 /* Define acl_get_file to an innocuous variant, in case <limits.h> declares acl_get_file.
40770    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40771 #define acl_get_file innocuous_acl_get_file
40772
40773 /* System header to define __stub macros and hopefully few prototypes,
40774     which can conflict with char acl_get_file (); below.
40775     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40776     <limits.h> exists even on freestanding compilers.  */
40777
40778 #ifdef __STDC__
40779 # include <limits.h>
40780 #else
40781 # include <assert.h>
40782 #endif
40783
40784 #undef acl_get_file
40785
40786 /* Override any GCC internal prototype to avoid an error.
40787    Use char because int might match the return type of a GCC
40788    builtin and then its argument prototype would still apply.  */
40789 #ifdef __cplusplus
40790 extern "C"
40791 #endif
40792 char acl_get_file ();
40793 /* The GNU C library defines this for functions which it implements
40794     to always fail with ENOSYS.  Some functions are actually named
40795     something starting with __ and the normal name is an alias.  */
40796 #if defined __stub_acl_get_file || defined __stub___acl_get_file
40797 choke me
40798 #endif
40799
40800 int
40801 main ()
40802 {
40803 return acl_get_file ();
40804   ;
40805   return 0;
40806 }
40807 _ACEOF
40808 rm -f conftest.$ac_objext conftest$ac_exeext
40809 if { (ac_try="$ac_link"
40810 case "(($ac_try" in
40811   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40812   *) ac_try_echo=$ac_try;;
40813 esac
40814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40815   (eval "$ac_link") 2>conftest.er1
40816   ac_status=$?
40817   grep -v '^ *+' conftest.er1 >conftest.err
40818   rm -f conftest.er1
40819   cat conftest.err >&5
40820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40821   (exit $ac_status); } && {
40822          test -z "$ac_c_werror_flag" ||
40823          test ! -s conftest.err
40824        } && test -s conftest$ac_exeext &&
40825        $as_test_x conftest$ac_exeext; then
40826   ac_cv_func_acl_get_file=yes
40827 else
40828   echo "$as_me: failed program was:" >&5
40829 sed 's/^/| /' conftest.$ac_ext >&5
40830
40831         ac_cv_func_acl_get_file=no
40832 fi
40833
40834 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40835       conftest$ac_exeext conftest.$ac_ext
40836 fi
40837 { echo "$as_me:$LINENO: result: $ac_cv_func_acl_get_file" >&5
40838 echo "${ECHO_T}$ac_cv_func_acl_get_file" >&6; }
40839 if test $ac_cv_func_acl_get_file = yes; then
40840
40841           have_acl=yes
40842
40843 else
40844
40845           { echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
40846 echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6; }
40847 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
40848   echo $ECHO_N "(cached) $ECHO_C" >&6
40849 else
40850   ac_check_lib_save_LIBS=$LIBS
40851 LIBS="-lacl  $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 acl_get_file ();
40866 int
40867 main ()
40868 {
40869 return acl_get_file ();
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_acl_acl_get_file=yes
40893 else
40894   echo "$as_me: failed program was:" >&5
40895 sed 's/^/| /' conftest.$ac_ext >&5
40896
40897         ac_cv_lib_acl_acl_get_file=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_acl_acl_get_file" >&5
40905 echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6; }
40906 if test $ac_cv_lib_acl_acl_get_file = yes; then
40907
40908                  have_acl=yes;
40909                  FDLIBS="-lacl $FDLIBS"
40910
40911 else
40912
40913                  { echo "$as_me:$LINENO: checking for acl_get_file in -lpacl" >&5
40914 echo $ECHO_N "checking for acl_get_file in -lpacl... $ECHO_C" >&6; }
40915 if test "${ac_cv_lib_pacl_acl_get_file+set}" = set; then
40916   echo $ECHO_N "(cached) $ECHO_C" >&6
40917 else
40918   ac_check_lib_save_LIBS=$LIBS
40919 LIBS="-lpacl  $LIBS"
40920 cat >conftest.$ac_ext <<_ACEOF
40921 /* confdefs.h.  */
40922 _ACEOF
40923 cat confdefs.h >>conftest.$ac_ext
40924 cat >>conftest.$ac_ext <<_ACEOF
40925 /* end confdefs.h.  */
40926
40927 /* Override any GCC internal prototype to avoid an error.
40928    Use char because int might match the return type of a GCC
40929    builtin and then its argument prototype would still apply.  */
40930 #ifdef __cplusplus
40931 extern "C"
40932 #endif
40933 char acl_get_file ();
40934 int
40935 main ()
40936 {
40937 return acl_get_file ();
40938   ;
40939   return 0;
40940 }
40941 _ACEOF
40942 rm -f conftest.$ac_objext conftest$ac_exeext
40943 if { (ac_try="$ac_link"
40944 case "(($ac_try" in
40945   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40946   *) ac_try_echo=$ac_try;;
40947 esac
40948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40949   (eval "$ac_link") 2>conftest.er1
40950   ac_status=$?
40951   grep -v '^ *+' conftest.er1 >conftest.err
40952   rm -f conftest.er1
40953   cat conftest.err >&5
40954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40955   (exit $ac_status); } && {
40956          test -z "$ac_c_werror_flag" ||
40957          test ! -s conftest.err
40958        } && test -s conftest$ac_exeext &&
40959        $as_test_x conftest$ac_exeext; then
40960   ac_cv_lib_pacl_acl_get_file=yes
40961 else
40962   echo "$as_me: failed program was:" >&5
40963 sed 's/^/| /' conftest.$ac_ext >&5
40964
40965         ac_cv_lib_pacl_acl_get_file=no
40966 fi
40967
40968 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40969       conftest$ac_exeext conftest.$ac_ext
40970 LIBS=$ac_check_lib_save_LIBS
40971 fi
40972 { echo "$as_me:$LINENO: result: $ac_cv_lib_pacl_acl_get_file" >&5
40973 echo "${ECHO_T}$ac_cv_lib_pacl_acl_get_file" >&6; }
40974 if test $ac_cv_lib_pacl_acl_get_file = yes; then
40975
40976                         have_acl=yes;
40977                         FDLIBS="-lpacl $FDLIBS"
40978
40979 else
40980
40981                         { echo "$as_me:$LINENO: checking for acltotext in -lsec" >&5
40982 echo $ECHO_N "checking for acltotext in -lsec... $ECHO_C" >&6; }
40983 if test "${ac_cv_lib_sec_acltotext+set}" = set; then
40984   echo $ECHO_N "(cached) $ECHO_C" >&6
40985 else
40986   ac_check_lib_save_LIBS=$LIBS
40987 LIBS="-lsec  $LIBS"
40988 cat >conftest.$ac_ext <<_ACEOF
40989 /* confdefs.h.  */
40990 _ACEOF
40991 cat confdefs.h >>conftest.$ac_ext
40992 cat >>conftest.$ac_ext <<_ACEOF
40993 /* end confdefs.h.  */
40994
40995 /* Override any GCC internal prototype to avoid an error.
40996    Use char because int might match the return type of a GCC
40997    builtin and then its argument prototype would still apply.  */
40998 #ifdef __cplusplus
40999 extern "C"
41000 #endif
41001 char acltotext ();
41002 int
41003 main ()
41004 {
41005 return acltotext ();
41006   ;
41007   return 0;
41008 }
41009 _ACEOF
41010 rm -f conftest.$ac_objext conftest$ac_exeext
41011 if { (ac_try="$ac_link"
41012 case "(($ac_try" in
41013   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41014   *) ac_try_echo=$ac_try;;
41015 esac
41016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41017   (eval "$ac_link") 2>conftest.er1
41018   ac_status=$?
41019   grep -v '^ *+' conftest.er1 >conftest.err
41020   rm -f conftest.er1
41021   cat conftest.err >&5
41022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41023   (exit $ac_status); } && {
41024          test -z "$ac_c_werror_flag" ||
41025          test ! -s conftest.err
41026        } && test -s conftest$ac_exeext &&
41027        $as_test_x conftest$ac_exeext; then
41028   ac_cv_lib_sec_acltotext=yes
41029 else
41030   echo "$as_me: failed program was:" >&5
41031 sed 's/^/| /' conftest.$ac_ext >&5
41032
41033         ac_cv_lib_sec_acltotext=no
41034 fi
41035
41036 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41037       conftest$ac_exeext conftest.$ac_ext
41038 LIBS=$ac_check_lib_save_LIBS
41039 fi
41040 { echo "$as_me:$LINENO: result: $ac_cv_lib_sec_acltotext" >&5
41041 echo "${ECHO_T}$ac_cv_lib_sec_acltotext" >&6; }
41042 if test $ac_cv_lib_sec_acltotext = yes; then
41043
41044                                have_acl=yes;
41045                                FDLIBS="-lsec $FDLIBS"
41046
41047                                { echo "$as_me:$LINENO: checking for acl_totext in -lsec" >&5
41048 echo $ECHO_N "checking for acl_totext in -lsec... $ECHO_C" >&6; }
41049 if test "${ac_cv_lib_sec_acl_totext+set}" = set; then
41050   echo $ECHO_N "(cached) $ECHO_C" >&6
41051 else
41052   ac_check_lib_save_LIBS=$LIBS
41053 LIBS="-lsec  $LIBS"
41054 cat >conftest.$ac_ext <<_ACEOF
41055 /* confdefs.h.  */
41056 _ACEOF
41057 cat confdefs.h >>conftest.$ac_ext
41058 cat >>conftest.$ac_ext <<_ACEOF
41059 /* end confdefs.h.  */
41060
41061 /* Override any GCC internal prototype to avoid an error.
41062    Use char because int might match the return type of a GCC
41063    builtin and then its argument prototype would still apply.  */
41064 #ifdef __cplusplus
41065 extern "C"
41066 #endif
41067 char acl_totext ();
41068 int
41069 main ()
41070 {
41071 return acl_totext ();
41072   ;
41073   return 0;
41074 }
41075 _ACEOF
41076 rm -f conftest.$ac_objext conftest$ac_exeext
41077 if { (ac_try="$ac_link"
41078 case "(($ac_try" in
41079   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41080   *) ac_try_echo=$ac_try;;
41081 esac
41082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41083   (eval "$ac_link") 2>conftest.er1
41084   ac_status=$?
41085   grep -v '^ *+' conftest.er1 >conftest.err
41086   rm -f conftest.er1
41087   cat conftest.err >&5
41088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41089   (exit $ac_status); } && {
41090          test -z "$ac_c_werror_flag" ||
41091          test ! -s conftest.err
41092        } && test -s conftest$ac_exeext &&
41093        $as_test_x conftest$ac_exeext; then
41094   ac_cv_lib_sec_acl_totext=yes
41095 else
41096   echo "$as_me: failed program was:" >&5
41097 sed 's/^/| /' conftest.$ac_ext >&5
41098
41099         ac_cv_lib_sec_acl_totext=no
41100 fi
41101
41102 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41103       conftest$ac_exeext conftest.$ac_ext
41104 LIBS=$ac_check_lib_save_LIBS
41105 fi
41106 { echo "$as_me:$LINENO: result: $ac_cv_lib_sec_acl_totext" >&5
41107 echo "${ECHO_T}$ac_cv_lib_sec_acl_totext" >&6; }
41108 if test $ac_cv_lib_sec_acl_totext = yes; then
41109
41110                                       have_extended_acl=yes
41111
41112
41113 fi
41114
41115
41116
41117 fi
41118
41119
41120
41121 fi
41122
41123
41124
41125 fi
41126
41127
41128
41129 fi
41130
41131
41132    if test x$support_acl = xyes -a $have_acl != yes; then
41133       { { echo "$as_me:$LINENO: error: acl support explicitly enabled but no supported acl implementation found,
41134   please either load the acl libraries or rerun configure without --enable-acl" >&5
41135 echo "$as_me: error: acl support explicitly enabled but no supported acl implementation found,
41136   please either load the acl libraries or rerun configure without --enable-acl" >&2;}
41137    { (exit 1); exit 1; }; }
41138    else
41139       if test $have_acl = yes; then
41140
41141 cat >>confdefs.h <<\_ACEOF
41142 #define HAVE_ACL 1
41143 _ACEOF
41144
41145       fi
41146
41147       if test $have_extended_acl = yes; then
41148
41149 cat >>confdefs.h <<\_ACEOF
41150 #define HAVE_EXTENDED_ACL 1
41151 _ACEOF
41152
41153       fi
41154    fi
41155 fi
41156
41157 support_xattr=auto
41158 # Check whether --enable-xattr was given.
41159 if test "${enable_xattr+set}" = set; then
41160   enableval=$enable_xattr;
41161        if test x$enableval = xyes; then
41162           support_xattr=yes
41163        elif test x$enableval = xno; then
41164           support_xattr=no
41165        fi
41166
41167
41168 fi
41169
41170
41171 have_xattr=no
41172 if test x$support_xattr = xyes -o x$support_xattr = xauto; then
41173             if test "${ac_cv_header_sys_extattr_h+set}" = set; then
41174   { echo "$as_me:$LINENO: checking for sys/extattr.h" >&5
41175 echo $ECHO_N "checking for sys/extattr.h... $ECHO_C" >&6; }
41176 if test "${ac_cv_header_sys_extattr_h+set}" = set; then
41177   echo $ECHO_N "(cached) $ECHO_C" >&6
41178 fi
41179 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_extattr_h" >&5
41180 echo "${ECHO_T}$ac_cv_header_sys_extattr_h" >&6; }
41181 else
41182   # Is the header compilable?
41183 { echo "$as_me:$LINENO: checking sys/extattr.h usability" >&5
41184 echo $ECHO_N "checking sys/extattr.h usability... $ECHO_C" >&6; }
41185 cat >conftest.$ac_ext <<_ACEOF
41186 /* confdefs.h.  */
41187 _ACEOF
41188 cat confdefs.h >>conftest.$ac_ext
41189 cat >>conftest.$ac_ext <<_ACEOF
41190 /* end confdefs.h.  */
41191 $ac_includes_default
41192 #include <sys/extattr.h>
41193 _ACEOF
41194 rm -f conftest.$ac_objext
41195 if { (ac_try="$ac_compile"
41196 case "(($ac_try" in
41197   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41198   *) ac_try_echo=$ac_try;;
41199 esac
41200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41201   (eval "$ac_compile") 2>conftest.er1
41202   ac_status=$?
41203   grep -v '^ *+' conftest.er1 >conftest.err
41204   rm -f conftest.er1
41205   cat conftest.err >&5
41206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41207   (exit $ac_status); } && {
41208          test -z "$ac_c_werror_flag" ||
41209          test ! -s conftest.err
41210        } && test -s conftest.$ac_objext; then
41211   ac_header_compiler=yes
41212 else
41213   echo "$as_me: failed program was:" >&5
41214 sed 's/^/| /' conftest.$ac_ext >&5
41215
41216         ac_header_compiler=no
41217 fi
41218
41219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41220 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
41221 echo "${ECHO_T}$ac_header_compiler" >&6; }
41222
41223 # Is the header present?
41224 { echo "$as_me:$LINENO: checking sys/extattr.h presence" >&5
41225 echo $ECHO_N "checking sys/extattr.h presence... $ECHO_C" >&6; }
41226 cat >conftest.$ac_ext <<_ACEOF
41227 /* confdefs.h.  */
41228 _ACEOF
41229 cat confdefs.h >>conftest.$ac_ext
41230 cat >>conftest.$ac_ext <<_ACEOF
41231 /* end confdefs.h.  */
41232 #include <sys/extattr.h>
41233 _ACEOF
41234 if { (ac_try="$ac_cpp conftest.$ac_ext"
41235 case "(($ac_try" in
41236   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41237   *) ac_try_echo=$ac_try;;
41238 esac
41239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41240   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
41241   ac_status=$?
41242   grep -v '^ *+' conftest.er1 >conftest.err
41243   rm -f conftest.er1
41244   cat conftest.err >&5
41245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41246   (exit $ac_status); } >/dev/null && {
41247          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
41248          test ! -s conftest.err
41249        }; then
41250   ac_header_preproc=yes
41251 else
41252   echo "$as_me: failed program was:" >&5
41253 sed 's/^/| /' conftest.$ac_ext >&5
41254
41255   ac_header_preproc=no
41256 fi
41257
41258 rm -f conftest.err conftest.$ac_ext
41259 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
41260 echo "${ECHO_T}$ac_header_preproc" >&6; }
41261
41262 # So?  What about this header?
41263 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
41264   yes:no: )
41265     { echo "$as_me:$LINENO: WARNING: sys/extattr.h: accepted by the compiler, rejected by the preprocessor!" >&5
41266 echo "$as_me: WARNING: sys/extattr.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
41267     { echo "$as_me:$LINENO: WARNING: sys/extattr.h: proceeding with the compiler's result" >&5
41268 echo "$as_me: WARNING: sys/extattr.h: proceeding with the compiler's result" >&2;}
41269     ac_header_preproc=yes
41270     ;;
41271   no:yes:* )
41272     { echo "$as_me:$LINENO: WARNING: sys/extattr.h: present but cannot be compiled" >&5
41273 echo "$as_me: WARNING: sys/extattr.h: present but cannot be compiled" >&2;}
41274     { echo "$as_me:$LINENO: WARNING: sys/extattr.h:     check for missing prerequisite headers?" >&5
41275 echo "$as_me: WARNING: sys/extattr.h:     check for missing prerequisite headers?" >&2;}
41276     { echo "$as_me:$LINENO: WARNING: sys/extattr.h: see the Autoconf documentation" >&5
41277 echo "$as_me: WARNING: sys/extattr.h: see the Autoconf documentation" >&2;}
41278     { echo "$as_me:$LINENO: WARNING: sys/extattr.h:     section \"Present But Cannot Be Compiled\"" >&5
41279 echo "$as_me: WARNING: sys/extattr.h:     section \"Present But Cannot Be Compiled\"" >&2;}
41280     { echo "$as_me:$LINENO: WARNING: sys/extattr.h: proceeding with the preprocessor's result" >&5
41281 echo "$as_me: WARNING: sys/extattr.h: proceeding with the preprocessor's result" >&2;}
41282     { echo "$as_me:$LINENO: WARNING: sys/extattr.h: in the future, the compiler will take precedence" >&5
41283 echo "$as_me: WARNING: sys/extattr.h: in the future, the compiler will take precedence" >&2;}
41284
41285     ;;
41286 esac
41287 { echo "$as_me:$LINENO: checking for sys/extattr.h" >&5
41288 echo $ECHO_N "checking for sys/extattr.h... $ECHO_C" >&6; }
41289 if test "${ac_cv_header_sys_extattr_h+set}" = set; then
41290   echo $ECHO_N "(cached) $ECHO_C" >&6
41291 else
41292   ac_cv_header_sys_extattr_h=$ac_header_preproc
41293 fi
41294 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_extattr_h" >&5
41295 echo "${ECHO_T}$ac_cv_header_sys_extattr_h" >&6; }
41296
41297 fi
41298 if test $ac_cv_header_sys_extattr_h = yes; then
41299
41300 cat >>confdefs.h <<\_ACEOF
41301 #define HAVE_SYS_EXTATTR_H 1
41302 _ACEOF
41303
41304 fi
41305
41306
41307    if test "${ac_cv_header_libutil_h+set}" = set; then
41308   { echo "$as_me:$LINENO: checking for libutil.h" >&5
41309 echo $ECHO_N "checking for libutil.h... $ECHO_C" >&6; }
41310 if test "${ac_cv_header_libutil_h+set}" = set; then
41311   echo $ECHO_N "(cached) $ECHO_C" >&6
41312 fi
41313 { echo "$as_me:$LINENO: result: $ac_cv_header_libutil_h" >&5
41314 echo "${ECHO_T}$ac_cv_header_libutil_h" >&6; }
41315 else
41316   # Is the header compilable?
41317 { echo "$as_me:$LINENO: checking libutil.h usability" >&5
41318 echo $ECHO_N "checking libutil.h usability... $ECHO_C" >&6; }
41319 cat >conftest.$ac_ext <<_ACEOF
41320 /* confdefs.h.  */
41321 _ACEOF
41322 cat confdefs.h >>conftest.$ac_ext
41323 cat >>conftest.$ac_ext <<_ACEOF
41324 /* end confdefs.h.  */
41325 $ac_includes_default
41326 #include <libutil.h>
41327 _ACEOF
41328 rm -f conftest.$ac_objext
41329 if { (ac_try="$ac_compile"
41330 case "(($ac_try" in
41331   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41332   *) ac_try_echo=$ac_try;;
41333 esac
41334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41335   (eval "$ac_compile") 2>conftest.er1
41336   ac_status=$?
41337   grep -v '^ *+' conftest.er1 >conftest.err
41338   rm -f conftest.er1
41339   cat conftest.err >&5
41340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41341   (exit $ac_status); } && {
41342          test -z "$ac_c_werror_flag" ||
41343          test ! -s conftest.err
41344        } && test -s conftest.$ac_objext; then
41345   ac_header_compiler=yes
41346 else
41347   echo "$as_me: failed program was:" >&5
41348 sed 's/^/| /' conftest.$ac_ext >&5
41349
41350         ac_header_compiler=no
41351 fi
41352
41353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41354 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
41355 echo "${ECHO_T}$ac_header_compiler" >&6; }
41356
41357 # Is the header present?
41358 { echo "$as_me:$LINENO: checking libutil.h presence" >&5
41359 echo $ECHO_N "checking libutil.h presence... $ECHO_C" >&6; }
41360 cat >conftest.$ac_ext <<_ACEOF
41361 /* confdefs.h.  */
41362 _ACEOF
41363 cat confdefs.h >>conftest.$ac_ext
41364 cat >>conftest.$ac_ext <<_ACEOF
41365 /* end confdefs.h.  */
41366 #include <libutil.h>
41367 _ACEOF
41368 if { (ac_try="$ac_cpp conftest.$ac_ext"
41369 case "(($ac_try" in
41370   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41371   *) ac_try_echo=$ac_try;;
41372 esac
41373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41374   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
41375   ac_status=$?
41376   grep -v '^ *+' conftest.er1 >conftest.err
41377   rm -f conftest.er1
41378   cat conftest.err >&5
41379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41380   (exit $ac_status); } >/dev/null && {
41381          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
41382          test ! -s conftest.err
41383        }; then
41384   ac_header_preproc=yes
41385 else
41386   echo "$as_me: failed program was:" >&5
41387 sed 's/^/| /' conftest.$ac_ext >&5
41388
41389   ac_header_preproc=no
41390 fi
41391
41392 rm -f conftest.err conftest.$ac_ext
41393 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
41394 echo "${ECHO_T}$ac_header_preproc" >&6; }
41395
41396 # So?  What about this header?
41397 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
41398   yes:no: )
41399     { echo "$as_me:$LINENO: WARNING: libutil.h: accepted by the compiler, rejected by the preprocessor!" >&5
41400 echo "$as_me: WARNING: libutil.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
41401     { echo "$as_me:$LINENO: WARNING: libutil.h: proceeding with the compiler's result" >&5
41402 echo "$as_me: WARNING: libutil.h: proceeding with the compiler's result" >&2;}
41403     ac_header_preproc=yes
41404     ;;
41405   no:yes:* )
41406     { echo "$as_me:$LINENO: WARNING: libutil.h: present but cannot be compiled" >&5
41407 echo "$as_me: WARNING: libutil.h: present but cannot be compiled" >&2;}
41408     { echo "$as_me:$LINENO: WARNING: libutil.h:     check for missing prerequisite headers?" >&5
41409 echo "$as_me: WARNING: libutil.h:     check for missing prerequisite headers?" >&2;}
41410     { echo "$as_me:$LINENO: WARNING: libutil.h: see the Autoconf documentation" >&5
41411 echo "$as_me: WARNING: libutil.h: see the Autoconf documentation" >&2;}
41412     { echo "$as_me:$LINENO: WARNING: libutil.h:     section \"Present But Cannot Be Compiled\"" >&5
41413 echo "$as_me: WARNING: libutil.h:     section \"Present But Cannot Be Compiled\"" >&2;}
41414     { echo "$as_me:$LINENO: WARNING: libutil.h: proceeding with the preprocessor's result" >&5
41415 echo "$as_me: WARNING: libutil.h: proceeding with the preprocessor's result" >&2;}
41416     { echo "$as_me:$LINENO: WARNING: libutil.h: in the future, the compiler will take precedence" >&5
41417 echo "$as_me: WARNING: libutil.h: in the future, the compiler will take precedence" >&2;}
41418
41419     ;;
41420 esac
41421 { echo "$as_me:$LINENO: checking for libutil.h" >&5
41422 echo $ECHO_N "checking for libutil.h... $ECHO_C" >&6; }
41423 if test "${ac_cv_header_libutil_h+set}" = set; then
41424   echo $ECHO_N "(cached) $ECHO_C" >&6
41425 else
41426   ac_cv_header_libutil_h=$ac_header_preproc
41427 fi
41428 { echo "$as_me:$LINENO: result: $ac_cv_header_libutil_h" >&5
41429 echo "${ECHO_T}$ac_cv_header_libutil_h" >&6; }
41430
41431 fi
41432 if test $ac_cv_header_libutil_h = yes; then
41433
41434 cat >>confdefs.h <<\_ACEOF
41435 #define HAVE_LIBUTIL_H 1
41436 _ACEOF
41437
41438 fi
41439
41440
41441
41442
41443
41444 for ac_func in extattr_get_link extattr_set_link extattr_list_link
41445 do
41446 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41447 { echo "$as_me:$LINENO: checking for $ac_func" >&5
41448 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
41449 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41450   echo $ECHO_N "(cached) $ECHO_C" >&6
41451 else
41452   cat >conftest.$ac_ext <<_ACEOF
41453 /* confdefs.h.  */
41454 _ACEOF
41455 cat confdefs.h >>conftest.$ac_ext
41456 cat >>conftest.$ac_ext <<_ACEOF
41457 /* end confdefs.h.  */
41458 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41459    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41460 #define $ac_func innocuous_$ac_func
41461
41462 /* System header to define __stub macros and hopefully few prototypes,
41463     which can conflict with char $ac_func (); below.
41464     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41465     <limits.h> exists even on freestanding compilers.  */
41466
41467 #ifdef __STDC__
41468 # include <limits.h>
41469 #else
41470 # include <assert.h>
41471 #endif
41472
41473 #undef $ac_func
41474
41475 /* Override any GCC internal prototype to avoid an error.
41476    Use char because int might match the return type of a GCC
41477    builtin and then its argument prototype would still apply.  */
41478 #ifdef __cplusplus
41479 extern "C"
41480 #endif
41481 char $ac_func ();
41482 /* The GNU C library defines this for functions which it implements
41483     to always fail with ENOSYS.  Some functions are actually named
41484     something starting with __ and the normal name is an alias.  */
41485 #if defined __stub_$ac_func || defined __stub___$ac_func
41486 choke me
41487 #endif
41488
41489 int
41490 main ()
41491 {
41492 return $ac_func ();
41493   ;
41494   return 0;
41495 }
41496 _ACEOF
41497 rm -f conftest.$ac_objext conftest$ac_exeext
41498 if { (ac_try="$ac_link"
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_link") 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); } && {
41511          test -z "$ac_c_werror_flag" ||
41512          test ! -s conftest.err
41513        } && test -s conftest$ac_exeext &&
41514        $as_test_x conftest$ac_exeext; then
41515   eval "$as_ac_var=yes"
41516 else
41517   echo "$as_me: failed program was:" >&5
41518 sed 's/^/| /' conftest.$ac_ext >&5
41519
41520         eval "$as_ac_var=no"
41521 fi
41522
41523 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41524       conftest$ac_exeext conftest.$ac_ext
41525 fi
41526 ac_res=`eval echo '${'$as_ac_var'}'`
41527                { echo "$as_me:$LINENO: result: $ac_res" >&5
41528 echo "${ECHO_T}$ac_res" >&6; }
41529 if test `eval echo '${'$as_ac_var'}'` = yes; then
41530   cat >>confdefs.h <<_ACEOF
41531 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41532 _ACEOF
41533
41534           have_xattr=yes
41535
41536 cat >>confdefs.h <<\_ACEOF
41537 #define HAVE_EXTATTR_GET_LINK 1
41538 _ACEOF
41539
41540
41541 cat >>confdefs.h <<\_ACEOF
41542 #define HAVE_EXTATTR_SET_LINK 1
41543 _ACEOF
41544
41545
41546 cat >>confdefs.h <<\_ACEOF
41547 #define HAVE_EXTATTR_LIST_LINK 1
41548 _ACEOF
41549
41550
41551
41552 fi
41553 done
41554
41555
41556    if test $have_xattr = no; then
41557
41558
41559
41560 for ac_func in extattr_get_file extattr_set_file extattr_list_file
41561 do
41562 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41563 { echo "$as_me:$LINENO: checking for $ac_func" >&5
41564 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
41565 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41566   echo $ECHO_N "(cached) $ECHO_C" >&6
41567 else
41568   cat >conftest.$ac_ext <<_ACEOF
41569 /* confdefs.h.  */
41570 _ACEOF
41571 cat confdefs.h >>conftest.$ac_ext
41572 cat >>conftest.$ac_ext <<_ACEOF
41573 /* end confdefs.h.  */
41574 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41575    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41576 #define $ac_func innocuous_$ac_func
41577
41578 /* System header to define __stub macros and hopefully few prototypes,
41579     which can conflict with char $ac_func (); below.
41580     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41581     <limits.h> exists even on freestanding compilers.  */
41582
41583 #ifdef __STDC__
41584 # include <limits.h>
41585 #else
41586 # include <assert.h>
41587 #endif
41588
41589 #undef $ac_func
41590
41591 /* Override any GCC internal prototype to avoid an error.
41592    Use char because int might match the return type of a GCC
41593    builtin and then its argument prototype would still apply.  */
41594 #ifdef __cplusplus
41595 extern "C"
41596 #endif
41597 char $ac_func ();
41598 /* The GNU C library defines this for functions which it implements
41599     to always fail with ENOSYS.  Some functions are actually named
41600     something starting with __ and the normal name is an alias.  */
41601 #if defined __stub_$ac_func || defined __stub___$ac_func
41602 choke me
41603 #endif
41604
41605 int
41606 main ()
41607 {
41608 return $ac_func ();
41609   ;
41610   return 0;
41611 }
41612 _ACEOF
41613 rm -f conftest.$ac_objext conftest$ac_exeext
41614 if { (ac_try="$ac_link"
41615 case "(($ac_try" in
41616   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41617   *) ac_try_echo=$ac_try;;
41618 esac
41619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41620   (eval "$ac_link") 2>conftest.er1
41621   ac_status=$?
41622   grep -v '^ *+' conftest.er1 >conftest.err
41623   rm -f conftest.er1
41624   cat conftest.err >&5
41625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41626   (exit $ac_status); } && {
41627          test -z "$ac_c_werror_flag" ||
41628          test ! -s conftest.err
41629        } && test -s conftest$ac_exeext &&
41630        $as_test_x conftest$ac_exeext; then
41631   eval "$as_ac_var=yes"
41632 else
41633   echo "$as_me: failed program was:" >&5
41634 sed 's/^/| /' conftest.$ac_ext >&5
41635
41636         eval "$as_ac_var=no"
41637 fi
41638
41639 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41640       conftest$ac_exeext conftest.$ac_ext
41641 fi
41642 ac_res=`eval echo '${'$as_ac_var'}'`
41643                { echo "$as_me:$LINENO: result: $ac_res" >&5
41644 echo "${ECHO_T}$ac_res" >&6; }
41645 if test `eval echo '${'$as_ac_var'}'` = yes; then
41646   cat >>confdefs.h <<_ACEOF
41647 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41648 _ACEOF
41649
41650              have_xattr=yes
41651
41652 cat >>confdefs.h <<\_ACEOF
41653 #define HAVE_EXTATTR_GET_FILE 1
41654 _ACEOF
41655
41656
41657 cat >>confdefs.h <<\_ACEOF
41658 #define HAVE_EXTATTR_SET_FILE 1
41659 _ACEOF
41660
41661
41662 cat >>confdefs.h <<\_ACEOF
41663 #define HAVE_EXTATTR_LIST_FILE 1
41664 _ACEOF
41665
41666
41667
41668 fi
41669 done
41670
41671    fi
41672
41673    if test $have_xattr = yes; then
41674       have_extattr_string_in_libc=no
41675
41676
41677 for ac_func in extattr_namespace_to_string extattr_string_to_namespace
41678 do
41679 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41680 { echo "$as_me:$LINENO: checking for $ac_func" >&5
41681 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
41682 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41683   echo $ECHO_N "(cached) $ECHO_C" >&6
41684 else
41685   cat >conftest.$ac_ext <<_ACEOF
41686 /* confdefs.h.  */
41687 _ACEOF
41688 cat confdefs.h >>conftest.$ac_ext
41689 cat >>conftest.$ac_ext <<_ACEOF
41690 /* end confdefs.h.  */
41691 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41692    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41693 #define $ac_func innocuous_$ac_func
41694
41695 /* System header to define __stub macros and hopefully few prototypes,
41696     which can conflict with char $ac_func (); below.
41697     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41698     <limits.h> exists even on freestanding compilers.  */
41699
41700 #ifdef __STDC__
41701 # include <limits.h>
41702 #else
41703 # include <assert.h>
41704 #endif
41705
41706 #undef $ac_func
41707
41708 /* Override any GCC internal prototype to avoid an error.
41709    Use char because int might match the return type of a GCC
41710    builtin and then its argument prototype would still apply.  */
41711 #ifdef __cplusplus
41712 extern "C"
41713 #endif
41714 char $ac_func ();
41715 /* The GNU C library defines this for functions which it implements
41716     to always fail with ENOSYS.  Some functions are actually named
41717     something starting with __ and the normal name is an alias.  */
41718 #if defined __stub_$ac_func || defined __stub___$ac_func
41719 choke me
41720 #endif
41721
41722 int
41723 main ()
41724 {
41725 return $ac_func ();
41726   ;
41727   return 0;
41728 }
41729 _ACEOF
41730 rm -f conftest.$ac_objext conftest$ac_exeext
41731 if { (ac_try="$ac_link"
41732 case "(($ac_try" in
41733   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41734   *) ac_try_echo=$ac_try;;
41735 esac
41736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41737   (eval "$ac_link") 2>conftest.er1
41738   ac_status=$?
41739   grep -v '^ *+' conftest.er1 >conftest.err
41740   rm -f conftest.er1
41741   cat conftest.err >&5
41742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41743   (exit $ac_status); } && {
41744          test -z "$ac_c_werror_flag" ||
41745          test ! -s conftest.err
41746        } && test -s conftest$ac_exeext &&
41747        $as_test_x conftest$ac_exeext; then
41748   eval "$as_ac_var=yes"
41749 else
41750   echo "$as_me: failed program was:" >&5
41751 sed 's/^/| /' conftest.$ac_ext >&5
41752
41753         eval "$as_ac_var=no"
41754 fi
41755
41756 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41757       conftest$ac_exeext conftest.$ac_ext
41758 fi
41759 ac_res=`eval echo '${'$as_ac_var'}'`
41760                { echo "$as_me:$LINENO: result: $ac_res" >&5
41761 echo "${ECHO_T}$ac_res" >&6; }
41762 if test `eval echo '${'$as_ac_var'}'` = yes; then
41763   cat >>confdefs.h <<_ACEOF
41764 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41765 _ACEOF
41766
41767              have_extattr_string_in_libc=yes
41768
41769 cat >>confdefs.h <<\_ACEOF
41770 #define HAVE_EXTATTR_NAMESPACE_TO_STRING 1
41771 _ACEOF
41772
41773
41774 cat >>confdefs.h <<\_ACEOF
41775 #define HAVE_EXTATTR_STRING_TO_NAMESPACE 1
41776 _ACEOF
41777
41778
41779
41780 fi
41781 done
41782
41783
41784                         if test $have_extattr_string_in_libc = no; then
41785          { echo "$as_me:$LINENO: checking for extattr_namespace_to_string extattr_string_to_namespace in -lutil" >&5
41786 echo $ECHO_N "checking for extattr_namespace_to_string extattr_string_to_namespace in -lutil... $ECHO_C" >&6; }
41787 if test "${ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace+set}" = set; then
41788   echo $ECHO_N "(cached) $ECHO_C" >&6
41789 else
41790   ac_check_lib_save_LIBS=$LIBS
41791 LIBS="-lutil  $LIBS"
41792 cat >conftest.$ac_ext <<_ACEOF
41793 /* confdefs.h.  */
41794 _ACEOF
41795 cat confdefs.h >>conftest.$ac_ext
41796 cat >>conftest.$ac_ext <<_ACEOF
41797 /* end confdefs.h.  */
41798
41799 /* Override any GCC internal prototype to avoid an error.
41800    Use char because int might match the return type of a GCC
41801    builtin and then its argument prototype would still apply.  */
41802 #ifdef __cplusplus
41803 extern "C"
41804 #endif
41805 char extattr_namespace_to_string extattr_string_to_namespace ();
41806 int
41807 main ()
41808 {
41809 return extattr_namespace_to_string extattr_string_to_namespace ();
41810   ;
41811   return 0;
41812 }
41813 _ACEOF
41814 rm -f conftest.$ac_objext conftest$ac_exeext
41815 if { (ac_try="$ac_link"
41816 case "(($ac_try" in
41817   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41818   *) ac_try_echo=$ac_try;;
41819 esac
41820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41821   (eval "$ac_link") 2>conftest.er1
41822   ac_status=$?
41823   grep -v '^ *+' conftest.er1 >conftest.err
41824   rm -f conftest.er1
41825   cat conftest.err >&5
41826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41827   (exit $ac_status); } && {
41828          test -z "$ac_c_werror_flag" ||
41829          test ! -s conftest.err
41830        } && test -s conftest$ac_exeext &&
41831        $as_test_x conftest$ac_exeext; then
41832   ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace=yes
41833 else
41834   echo "$as_me: failed program was:" >&5
41835 sed 's/^/| /' conftest.$ac_ext >&5
41836
41837         ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace=no
41838 fi
41839
41840 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41841       conftest$ac_exeext conftest.$ac_ext
41842 LIBS=$ac_check_lib_save_LIBS
41843 fi
41844 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" >&5
41845 echo "${ECHO_T}$ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" >&6; }
41846 if test $ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace = yes; then
41847
41848
41849 cat >>confdefs.h <<\_ACEOF
41850 #define HAVE_EXTATTR_NAMESPACE_TO_STRING 1
41851 _ACEOF
41852
41853
41854 cat >>confdefs.h <<\_ACEOF
41855 #define HAVE_EXTATTR_STRING_TO_NAMESPACE 1
41856 _ACEOF
41857
41858                 FDLIBS="-lutil $FDLIBS"
41859
41860
41861 fi
41862
41863       fi
41864    fi
41865
41866             if test $have_xattr = no; then
41867       if test "${ac_cv_header_sys_xattr_h+set}" = set; then
41868   { echo "$as_me:$LINENO: checking for sys/xattr.h" >&5
41869 echo $ECHO_N "checking for sys/xattr.h... $ECHO_C" >&6; }
41870 if test "${ac_cv_header_sys_xattr_h+set}" = set; then
41871   echo $ECHO_N "(cached) $ECHO_C" >&6
41872 fi
41873 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_xattr_h" >&5
41874 echo "${ECHO_T}$ac_cv_header_sys_xattr_h" >&6; }
41875 else
41876   # Is the header compilable?
41877 { echo "$as_me:$LINENO: checking sys/xattr.h usability" >&5
41878 echo $ECHO_N "checking sys/xattr.h usability... $ECHO_C" >&6; }
41879 cat >conftest.$ac_ext <<_ACEOF
41880 /* confdefs.h.  */
41881 _ACEOF
41882 cat confdefs.h >>conftest.$ac_ext
41883 cat >>conftest.$ac_ext <<_ACEOF
41884 /* end confdefs.h.  */
41885 $ac_includes_default
41886 #include <sys/xattr.h>
41887 _ACEOF
41888 rm -f conftest.$ac_objext
41889 if { (ac_try="$ac_compile"
41890 case "(($ac_try" in
41891   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41892   *) ac_try_echo=$ac_try;;
41893 esac
41894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41895   (eval "$ac_compile") 2>conftest.er1
41896   ac_status=$?
41897   grep -v '^ *+' conftest.er1 >conftest.err
41898   rm -f conftest.er1
41899   cat conftest.err >&5
41900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41901   (exit $ac_status); } && {
41902          test -z "$ac_c_werror_flag" ||
41903          test ! -s conftest.err
41904        } && test -s conftest.$ac_objext; then
41905   ac_header_compiler=yes
41906 else
41907   echo "$as_me: failed program was:" >&5
41908 sed 's/^/| /' conftest.$ac_ext >&5
41909
41910         ac_header_compiler=no
41911 fi
41912
41913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41914 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
41915 echo "${ECHO_T}$ac_header_compiler" >&6; }
41916
41917 # Is the header present?
41918 { echo "$as_me:$LINENO: checking sys/xattr.h presence" >&5
41919 echo $ECHO_N "checking sys/xattr.h presence... $ECHO_C" >&6; }
41920 cat >conftest.$ac_ext <<_ACEOF
41921 /* confdefs.h.  */
41922 _ACEOF
41923 cat confdefs.h >>conftest.$ac_ext
41924 cat >>conftest.$ac_ext <<_ACEOF
41925 /* end confdefs.h.  */
41926 #include <sys/xattr.h>
41927 _ACEOF
41928 if { (ac_try="$ac_cpp conftest.$ac_ext"
41929 case "(($ac_try" in
41930   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41931   *) ac_try_echo=$ac_try;;
41932 esac
41933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41934   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
41935   ac_status=$?
41936   grep -v '^ *+' conftest.er1 >conftest.err
41937   rm -f conftest.er1
41938   cat conftest.err >&5
41939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41940   (exit $ac_status); } >/dev/null && {
41941          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
41942          test ! -s conftest.err
41943        }; then
41944   ac_header_preproc=yes
41945 else
41946   echo "$as_me: failed program was:" >&5
41947 sed 's/^/| /' conftest.$ac_ext >&5
41948
41949   ac_header_preproc=no
41950 fi
41951
41952 rm -f conftest.err conftest.$ac_ext
41953 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
41954 echo "${ECHO_T}$ac_header_preproc" >&6; }
41955
41956 # So?  What about this header?
41957 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
41958   yes:no: )
41959     { echo "$as_me:$LINENO: WARNING: sys/xattr.h: accepted by the compiler, rejected by the preprocessor!" >&5
41960 echo "$as_me: WARNING: sys/xattr.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
41961     { echo "$as_me:$LINENO: WARNING: sys/xattr.h: proceeding with the compiler's result" >&5
41962 echo "$as_me: WARNING: sys/xattr.h: proceeding with the compiler's result" >&2;}
41963     ac_header_preproc=yes
41964     ;;
41965   no:yes:* )
41966     { echo "$as_me:$LINENO: WARNING: sys/xattr.h: present but cannot be compiled" >&5
41967 echo "$as_me: WARNING: sys/xattr.h: present but cannot be compiled" >&2;}
41968     { echo "$as_me:$LINENO: WARNING: sys/xattr.h:     check for missing prerequisite headers?" >&5
41969 echo "$as_me: WARNING: sys/xattr.h:     check for missing prerequisite headers?" >&2;}
41970     { echo "$as_me:$LINENO: WARNING: sys/xattr.h: see the Autoconf documentation" >&5
41971 echo "$as_me: WARNING: sys/xattr.h: see the Autoconf documentation" >&2;}
41972     { echo "$as_me:$LINENO: WARNING: sys/xattr.h:     section \"Present But Cannot Be Compiled\"" >&5
41973 echo "$as_me: WARNING: sys/xattr.h:     section \"Present But Cannot Be Compiled\"" >&2;}
41974     { echo "$as_me:$LINENO: WARNING: sys/xattr.h: proceeding with the preprocessor's result" >&5
41975 echo "$as_me: WARNING: sys/xattr.h: proceeding with the preprocessor's result" >&2;}
41976     { echo "$as_me:$LINENO: WARNING: sys/xattr.h: in the future, the compiler will take precedence" >&5
41977 echo "$as_me: WARNING: sys/xattr.h: in the future, the compiler will take precedence" >&2;}
41978
41979     ;;
41980 esac
41981 { echo "$as_me:$LINENO: checking for sys/xattr.h" >&5
41982 echo $ECHO_N "checking for sys/xattr.h... $ECHO_C" >&6; }
41983 if test "${ac_cv_header_sys_xattr_h+set}" = set; then
41984   echo $ECHO_N "(cached) $ECHO_C" >&6
41985 else
41986   ac_cv_header_sys_xattr_h=$ac_header_preproc
41987 fi
41988 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_xattr_h" >&5
41989 echo "${ECHO_T}$ac_cv_header_sys_xattr_h" >&6; }
41990
41991 fi
41992 if test $ac_cv_header_sys_xattr_h = yes; then
41993
41994 cat >>confdefs.h <<\_ACEOF
41995 #define HAVE_SYS_XATTR_H 1
41996 _ACEOF
41997
41998 fi
41999
42000
42001
42002
42003
42004 for ac_func in llistxattr lgetxattr lsetxattr
42005 do
42006 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42007 { echo "$as_me:$LINENO: checking for $ac_func" >&5
42008 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
42009 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
42010   echo $ECHO_N "(cached) $ECHO_C" >&6
42011 else
42012   cat >conftest.$ac_ext <<_ACEOF
42013 /* confdefs.h.  */
42014 _ACEOF
42015 cat confdefs.h >>conftest.$ac_ext
42016 cat >>conftest.$ac_ext <<_ACEOF
42017 /* end confdefs.h.  */
42018 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42019    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42020 #define $ac_func innocuous_$ac_func
42021
42022 /* System header to define __stub macros and hopefully few prototypes,
42023     which can conflict with char $ac_func (); below.
42024     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42025     <limits.h> exists even on freestanding compilers.  */
42026
42027 #ifdef __STDC__
42028 # include <limits.h>
42029 #else
42030 # include <assert.h>
42031 #endif
42032
42033 #undef $ac_func
42034
42035 /* Override any GCC internal prototype to avoid an error.
42036    Use char because int might match the return type of a GCC
42037    builtin and then its argument prototype would still apply.  */
42038 #ifdef __cplusplus
42039 extern "C"
42040 #endif
42041 char $ac_func ();
42042 /* The GNU C library defines this for functions which it implements
42043     to always fail with ENOSYS.  Some functions are actually named
42044     something starting with __ and the normal name is an alias.  */
42045 #if defined __stub_$ac_func || defined __stub___$ac_func
42046 choke me
42047 #endif
42048
42049 int
42050 main ()
42051 {
42052 return $ac_func ();
42053   ;
42054   return 0;
42055 }
42056 _ACEOF
42057 rm -f conftest.$ac_objext conftest$ac_exeext
42058 if { (ac_try="$ac_link"
42059 case "(($ac_try" in
42060   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42061   *) ac_try_echo=$ac_try;;
42062 esac
42063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42064   (eval "$ac_link") 2>conftest.er1
42065   ac_status=$?
42066   grep -v '^ *+' conftest.er1 >conftest.err
42067   rm -f conftest.er1
42068   cat conftest.err >&5
42069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42070   (exit $ac_status); } && {
42071          test -z "$ac_c_werror_flag" ||
42072          test ! -s conftest.err
42073        } && test -s conftest$ac_exeext &&
42074        $as_test_x conftest$ac_exeext; then
42075   eval "$as_ac_var=yes"
42076 else
42077   echo "$as_me: failed program was:" >&5
42078 sed 's/^/| /' conftest.$ac_ext >&5
42079
42080         eval "$as_ac_var=no"
42081 fi
42082
42083 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42084       conftest$ac_exeext conftest.$ac_ext
42085 fi
42086 ac_res=`eval echo '${'$as_ac_var'}'`
42087                { echo "$as_me:$LINENO: result: $ac_res" >&5
42088 echo "${ECHO_T}$ac_res" >&6; }
42089 if test `eval echo '${'$as_ac_var'}'` = yes; then
42090   cat >>confdefs.h <<_ACEOF
42091 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42092 _ACEOF
42093
42094              have_xattr=yes
42095
42096 cat >>confdefs.h <<\_ACEOF
42097 #define HAVE_LLISTXATTR 1
42098 _ACEOF
42099
42100
42101 cat >>confdefs.h <<\_ACEOF
42102 #define HAVE_LGETXATTR 1
42103 _ACEOF
42104
42105
42106 cat >>confdefs.h <<\_ACEOF
42107 #define HAVE_LSETXATTR 1
42108 _ACEOF
42109
42110
42111
42112 fi
42113 done
42114
42115
42116       if test $have_xattr = no; then
42117
42118
42119
42120 for ac_func in listxattr getxattr setxattr
42121 do
42122 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42123 { echo "$as_me:$LINENO: checking for $ac_func" >&5
42124 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
42125 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
42126   echo $ECHO_N "(cached) $ECHO_C" >&6
42127 else
42128   cat >conftest.$ac_ext <<_ACEOF
42129 /* confdefs.h.  */
42130 _ACEOF
42131 cat confdefs.h >>conftest.$ac_ext
42132 cat >>conftest.$ac_ext <<_ACEOF
42133 /* end confdefs.h.  */
42134 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42135    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42136 #define $ac_func innocuous_$ac_func
42137
42138 /* System header to define __stub macros and hopefully few prototypes,
42139     which can conflict with char $ac_func (); below.
42140     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42141     <limits.h> exists even on freestanding compilers.  */
42142
42143 #ifdef __STDC__
42144 # include <limits.h>
42145 #else
42146 # include <assert.h>
42147 #endif
42148
42149 #undef $ac_func
42150
42151 /* Override any GCC internal prototype to avoid an error.
42152    Use char because int might match the return type of a GCC
42153    builtin and then its argument prototype would still apply.  */
42154 #ifdef __cplusplus
42155 extern "C"
42156 #endif
42157 char $ac_func ();
42158 /* The GNU C library defines this for functions which it implements
42159     to always fail with ENOSYS.  Some functions are actually named
42160     something starting with __ and the normal name is an alias.  */
42161 #if defined __stub_$ac_func || defined __stub___$ac_func
42162 choke me
42163 #endif
42164
42165 int
42166 main ()
42167 {
42168 return $ac_func ();
42169   ;
42170   return 0;
42171 }
42172 _ACEOF
42173 rm -f conftest.$ac_objext conftest$ac_exeext
42174 if { (ac_try="$ac_link"
42175 case "(($ac_try" in
42176   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42177   *) ac_try_echo=$ac_try;;
42178 esac
42179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42180   (eval "$ac_link") 2>conftest.er1
42181   ac_status=$?
42182   grep -v '^ *+' conftest.er1 >conftest.err
42183   rm -f conftest.er1
42184   cat conftest.err >&5
42185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42186   (exit $ac_status); } && {
42187          test -z "$ac_c_werror_flag" ||
42188          test ! -s conftest.err
42189        } && test -s conftest$ac_exeext &&
42190        $as_test_x conftest$ac_exeext; then
42191   eval "$as_ac_var=yes"
42192 else
42193   echo "$as_me: failed program was:" >&5
42194 sed 's/^/| /' conftest.$ac_ext >&5
42195
42196         eval "$as_ac_var=no"
42197 fi
42198
42199 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42200       conftest$ac_exeext conftest.$ac_ext
42201 fi
42202 ac_res=`eval echo '${'$as_ac_var'}'`
42203                { echo "$as_me:$LINENO: result: $ac_res" >&5
42204 echo "${ECHO_T}$ac_res" >&6; }
42205 if test `eval echo '${'$as_ac_var'}'` = yes; then
42206   cat >>confdefs.h <<_ACEOF
42207 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42208 _ACEOF
42209
42210                 have_xattr=yes
42211
42212 cat >>confdefs.h <<\_ACEOF
42213 #define HAVE_LISTXATTR 1
42214 _ACEOF
42215
42216
42217 cat >>confdefs.h <<\_ACEOF
42218 #define HAVE_GETXATTR 1
42219 _ACEOF
42220
42221
42222 cat >>confdefs.h <<\_ACEOF
42223 #define HAVE_SETXATTR 1
42224 _ACEOF
42225
42226
42227
42228 fi
42229 done
42230
42231       fi
42232    fi
42233
42234             if test $have_xattr = no; then
42235       if test "${ac_cv_header_sys_attr_h+set}" = set; then
42236   { echo "$as_me:$LINENO: checking for sys/attr.h" >&5
42237 echo $ECHO_N "checking for sys/attr.h... $ECHO_C" >&6; }
42238 if test "${ac_cv_header_sys_attr_h+set}" = set; then
42239   echo $ECHO_N "(cached) $ECHO_C" >&6
42240 fi
42241 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_attr_h" >&5
42242 echo "${ECHO_T}$ac_cv_header_sys_attr_h" >&6; }
42243 else
42244   # Is the header compilable?
42245 { echo "$as_me:$LINENO: checking sys/attr.h usability" >&5
42246 echo $ECHO_N "checking sys/attr.h usability... $ECHO_C" >&6; }
42247 cat >conftest.$ac_ext <<_ACEOF
42248 /* confdefs.h.  */
42249 _ACEOF
42250 cat confdefs.h >>conftest.$ac_ext
42251 cat >>conftest.$ac_ext <<_ACEOF
42252 /* end confdefs.h.  */
42253 $ac_includes_default
42254 #include <sys/attr.h>
42255 _ACEOF
42256 rm -f conftest.$ac_objext
42257 if { (ac_try="$ac_compile"
42258 case "(($ac_try" in
42259   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42260   *) ac_try_echo=$ac_try;;
42261 esac
42262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42263   (eval "$ac_compile") 2>conftest.er1
42264   ac_status=$?
42265   grep -v '^ *+' conftest.er1 >conftest.err
42266   rm -f conftest.er1
42267   cat conftest.err >&5
42268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42269   (exit $ac_status); } && {
42270          test -z "$ac_c_werror_flag" ||
42271          test ! -s conftest.err
42272        } && test -s conftest.$ac_objext; then
42273   ac_header_compiler=yes
42274 else
42275   echo "$as_me: failed program was:" >&5
42276 sed 's/^/| /' conftest.$ac_ext >&5
42277
42278         ac_header_compiler=no
42279 fi
42280
42281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42282 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
42283 echo "${ECHO_T}$ac_header_compiler" >&6; }
42284
42285 # Is the header present?
42286 { echo "$as_me:$LINENO: checking sys/attr.h presence" >&5
42287 echo $ECHO_N "checking sys/attr.h presence... $ECHO_C" >&6; }
42288 cat >conftest.$ac_ext <<_ACEOF
42289 /* confdefs.h.  */
42290 _ACEOF
42291 cat confdefs.h >>conftest.$ac_ext
42292 cat >>conftest.$ac_ext <<_ACEOF
42293 /* end confdefs.h.  */
42294 #include <sys/attr.h>
42295 _ACEOF
42296 if { (ac_try="$ac_cpp conftest.$ac_ext"
42297 case "(($ac_try" in
42298   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42299   *) ac_try_echo=$ac_try;;
42300 esac
42301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42302   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
42303   ac_status=$?
42304   grep -v '^ *+' conftest.er1 >conftest.err
42305   rm -f conftest.er1
42306   cat conftest.err >&5
42307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42308   (exit $ac_status); } >/dev/null && {
42309          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
42310          test ! -s conftest.err
42311        }; then
42312   ac_header_preproc=yes
42313 else
42314   echo "$as_me: failed program was:" >&5
42315 sed 's/^/| /' conftest.$ac_ext >&5
42316
42317   ac_header_preproc=no
42318 fi
42319
42320 rm -f conftest.err conftest.$ac_ext
42321 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
42322 echo "${ECHO_T}$ac_header_preproc" >&6; }
42323
42324 # So?  What about this header?
42325 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
42326   yes:no: )
42327     { echo "$as_me:$LINENO: WARNING: sys/attr.h: accepted by the compiler, rejected by the preprocessor!" >&5
42328 echo "$as_me: WARNING: sys/attr.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
42329     { echo "$as_me:$LINENO: WARNING: sys/attr.h: proceeding with the compiler's result" >&5
42330 echo "$as_me: WARNING: sys/attr.h: proceeding with the compiler's result" >&2;}
42331     ac_header_preproc=yes
42332     ;;
42333   no:yes:* )
42334     { echo "$as_me:$LINENO: WARNING: sys/attr.h: present but cannot be compiled" >&5
42335 echo "$as_me: WARNING: sys/attr.h: present but cannot be compiled" >&2;}
42336     { echo "$as_me:$LINENO: WARNING: sys/attr.h:     check for missing prerequisite headers?" >&5
42337 echo "$as_me: WARNING: sys/attr.h:     check for missing prerequisite headers?" >&2;}
42338     { echo "$as_me:$LINENO: WARNING: sys/attr.h: see the Autoconf documentation" >&5
42339 echo "$as_me: WARNING: sys/attr.h: see the Autoconf documentation" >&2;}
42340     { echo "$as_me:$LINENO: WARNING: sys/attr.h:     section \"Present But Cannot Be Compiled\"" >&5
42341 echo "$as_me: WARNING: sys/attr.h:     section \"Present But Cannot Be Compiled\"" >&2;}
42342     { echo "$as_me:$LINENO: WARNING: sys/attr.h: proceeding with the preprocessor's result" >&5
42343 echo "$as_me: WARNING: sys/attr.h: proceeding with the preprocessor's result" >&2;}
42344     { echo "$as_me:$LINENO: WARNING: sys/attr.h: in the future, the compiler will take precedence" >&5
42345 echo "$as_me: WARNING: sys/attr.h: in the future, the compiler will take precedence" >&2;}
42346
42347     ;;
42348 esac
42349 { echo "$as_me:$LINENO: checking for sys/attr.h" >&5
42350 echo $ECHO_N "checking for sys/attr.h... $ECHO_C" >&6; }
42351 if test "${ac_cv_header_sys_attr_h+set}" = set; then
42352   echo $ECHO_N "(cached) $ECHO_C" >&6
42353 else
42354   ac_cv_header_sys_attr_h=$ac_header_preproc
42355 fi
42356 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_attr_h" >&5
42357 echo "${ECHO_T}$ac_cv_header_sys_attr_h" >&6; }
42358
42359 fi
42360 if test $ac_cv_header_sys_attr_h = yes; then
42361
42362 cat >>confdefs.h <<\_ACEOF
42363 #define HAVE_SYS_ATTR_H 1
42364 _ACEOF
42365
42366 fi
42367
42368
42369       if test "${ac_cv_header_sys_nvpair_h+set}" = set; then
42370   { echo "$as_me:$LINENO: checking for sys/nvpair.h" >&5
42371 echo $ECHO_N "checking for sys/nvpair.h... $ECHO_C" >&6; }
42372 if test "${ac_cv_header_sys_nvpair_h+set}" = set; then
42373   echo $ECHO_N "(cached) $ECHO_C" >&6
42374 fi
42375 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_nvpair_h" >&5
42376 echo "${ECHO_T}$ac_cv_header_sys_nvpair_h" >&6; }
42377 else
42378   # Is the header compilable?
42379 { echo "$as_me:$LINENO: checking sys/nvpair.h usability" >&5
42380 echo $ECHO_N "checking sys/nvpair.h usability... $ECHO_C" >&6; }
42381 cat >conftest.$ac_ext <<_ACEOF
42382 /* confdefs.h.  */
42383 _ACEOF
42384 cat confdefs.h >>conftest.$ac_ext
42385 cat >>conftest.$ac_ext <<_ACEOF
42386 /* end confdefs.h.  */
42387 $ac_includes_default
42388 #include <sys/nvpair.h>
42389 _ACEOF
42390 rm -f conftest.$ac_objext
42391 if { (ac_try="$ac_compile"
42392 case "(($ac_try" in
42393   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42394   *) ac_try_echo=$ac_try;;
42395 esac
42396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42397   (eval "$ac_compile") 2>conftest.er1
42398   ac_status=$?
42399   grep -v '^ *+' conftest.er1 >conftest.err
42400   rm -f conftest.er1
42401   cat conftest.err >&5
42402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42403   (exit $ac_status); } && {
42404          test -z "$ac_c_werror_flag" ||
42405          test ! -s conftest.err
42406        } && test -s conftest.$ac_objext; then
42407   ac_header_compiler=yes
42408 else
42409   echo "$as_me: failed program was:" >&5
42410 sed 's/^/| /' conftest.$ac_ext >&5
42411
42412         ac_header_compiler=no
42413 fi
42414
42415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42416 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
42417 echo "${ECHO_T}$ac_header_compiler" >&6; }
42418
42419 # Is the header present?
42420 { echo "$as_me:$LINENO: checking sys/nvpair.h presence" >&5
42421 echo $ECHO_N "checking sys/nvpair.h presence... $ECHO_C" >&6; }
42422 cat >conftest.$ac_ext <<_ACEOF
42423 /* confdefs.h.  */
42424 _ACEOF
42425 cat confdefs.h >>conftest.$ac_ext
42426 cat >>conftest.$ac_ext <<_ACEOF
42427 /* end confdefs.h.  */
42428 #include <sys/nvpair.h>
42429 _ACEOF
42430 if { (ac_try="$ac_cpp conftest.$ac_ext"
42431 case "(($ac_try" in
42432   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42433   *) ac_try_echo=$ac_try;;
42434 esac
42435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42436   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
42437   ac_status=$?
42438   grep -v '^ *+' conftest.er1 >conftest.err
42439   rm -f conftest.er1
42440   cat conftest.err >&5
42441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42442   (exit $ac_status); } >/dev/null && {
42443          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
42444          test ! -s conftest.err
42445        }; then
42446   ac_header_preproc=yes
42447 else
42448   echo "$as_me: failed program was:" >&5
42449 sed 's/^/| /' conftest.$ac_ext >&5
42450
42451   ac_header_preproc=no
42452 fi
42453
42454 rm -f conftest.err conftest.$ac_ext
42455 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
42456 echo "${ECHO_T}$ac_header_preproc" >&6; }
42457
42458 # So?  What about this header?
42459 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
42460   yes:no: )
42461     { echo "$as_me:$LINENO: WARNING: sys/nvpair.h: accepted by the compiler, rejected by the preprocessor!" >&5
42462 echo "$as_me: WARNING: sys/nvpair.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
42463     { echo "$as_me:$LINENO: WARNING: sys/nvpair.h: proceeding with the compiler's result" >&5
42464 echo "$as_me: WARNING: sys/nvpair.h: proceeding with the compiler's result" >&2;}
42465     ac_header_preproc=yes
42466     ;;
42467   no:yes:* )
42468     { echo "$as_me:$LINENO: WARNING: sys/nvpair.h: present but cannot be compiled" >&5
42469 echo "$as_me: WARNING: sys/nvpair.h: present but cannot be compiled" >&2;}
42470     { echo "$as_me:$LINENO: WARNING: sys/nvpair.h:     check for missing prerequisite headers?" >&5
42471 echo "$as_me: WARNING: sys/nvpair.h:     check for missing prerequisite headers?" >&2;}
42472     { echo "$as_me:$LINENO: WARNING: sys/nvpair.h: see the Autoconf documentation" >&5
42473 echo "$as_me: WARNING: sys/nvpair.h: see the Autoconf documentation" >&2;}
42474     { echo "$as_me:$LINENO: WARNING: sys/nvpair.h:     section \"Present But Cannot Be Compiled\"" >&5
42475 echo "$as_me: WARNING: sys/nvpair.h:     section \"Present But Cannot Be Compiled\"" >&2;}
42476     { echo "$as_me:$LINENO: WARNING: sys/nvpair.h: proceeding with the preprocessor's result" >&5
42477 echo "$as_me: WARNING: sys/nvpair.h: proceeding with the preprocessor's result" >&2;}
42478     { echo "$as_me:$LINENO: WARNING: sys/nvpair.h: in the future, the compiler will take precedence" >&5
42479 echo "$as_me: WARNING: sys/nvpair.h: in the future, the compiler will take precedence" >&2;}
42480
42481     ;;
42482 esac
42483 { echo "$as_me:$LINENO: checking for sys/nvpair.h" >&5
42484 echo $ECHO_N "checking for sys/nvpair.h... $ECHO_C" >&6; }
42485 if test "${ac_cv_header_sys_nvpair_h+set}" = set; then
42486   echo $ECHO_N "(cached) $ECHO_C" >&6
42487 else
42488   ac_cv_header_sys_nvpair_h=$ac_header_preproc
42489 fi
42490 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_nvpair_h" >&5
42491 echo "${ECHO_T}$ac_cv_header_sys_nvpair_h" >&6; }
42492
42493 fi
42494 if test $ac_cv_header_sys_nvpair_h = yes; then
42495
42496 cat >>confdefs.h <<\_ACEOF
42497 #define HAVE_SYS_NVPAIR_H 1
42498 _ACEOF
42499
42500 fi
42501
42502
42503       if test "${ac_cv_header_attr_h+set}" = set; then
42504   { echo "$as_me:$LINENO: checking for attr.h" >&5
42505 echo $ECHO_N "checking for attr.h... $ECHO_C" >&6; }
42506 if test "${ac_cv_header_attr_h+set}" = set; then
42507   echo $ECHO_N "(cached) $ECHO_C" >&6
42508 fi
42509 { echo "$as_me:$LINENO: result: $ac_cv_header_attr_h" >&5
42510 echo "${ECHO_T}$ac_cv_header_attr_h" >&6; }
42511 else
42512   # Is the header compilable?
42513 { echo "$as_me:$LINENO: checking attr.h usability" >&5
42514 echo $ECHO_N "checking attr.h usability... $ECHO_C" >&6; }
42515 cat >conftest.$ac_ext <<_ACEOF
42516 /* confdefs.h.  */
42517 _ACEOF
42518 cat confdefs.h >>conftest.$ac_ext
42519 cat >>conftest.$ac_ext <<_ACEOF
42520 /* end confdefs.h.  */
42521 $ac_includes_default
42522 #include <attr.h>
42523 _ACEOF
42524 rm -f conftest.$ac_objext
42525 if { (ac_try="$ac_compile"
42526 case "(($ac_try" in
42527   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42528   *) ac_try_echo=$ac_try;;
42529 esac
42530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42531   (eval "$ac_compile") 2>conftest.er1
42532   ac_status=$?
42533   grep -v '^ *+' conftest.er1 >conftest.err
42534   rm -f conftest.er1
42535   cat conftest.err >&5
42536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42537   (exit $ac_status); } && {
42538          test -z "$ac_c_werror_flag" ||
42539          test ! -s conftest.err
42540        } && test -s conftest.$ac_objext; then
42541   ac_header_compiler=yes
42542 else
42543   echo "$as_me: failed program was:" >&5
42544 sed 's/^/| /' conftest.$ac_ext >&5
42545
42546         ac_header_compiler=no
42547 fi
42548
42549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42550 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
42551 echo "${ECHO_T}$ac_header_compiler" >&6; }
42552
42553 # Is the header present?
42554 { echo "$as_me:$LINENO: checking attr.h presence" >&5
42555 echo $ECHO_N "checking attr.h presence... $ECHO_C" >&6; }
42556 cat >conftest.$ac_ext <<_ACEOF
42557 /* confdefs.h.  */
42558 _ACEOF
42559 cat confdefs.h >>conftest.$ac_ext
42560 cat >>conftest.$ac_ext <<_ACEOF
42561 /* end confdefs.h.  */
42562 #include <attr.h>
42563 _ACEOF
42564 if { (ac_try="$ac_cpp conftest.$ac_ext"
42565 case "(($ac_try" in
42566   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42567   *) ac_try_echo=$ac_try;;
42568 esac
42569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42570   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
42571   ac_status=$?
42572   grep -v '^ *+' conftest.er1 >conftest.err
42573   rm -f conftest.er1
42574   cat conftest.err >&5
42575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42576   (exit $ac_status); } >/dev/null && {
42577          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
42578          test ! -s conftest.err
42579        }; then
42580   ac_header_preproc=yes
42581 else
42582   echo "$as_me: failed program was:" >&5
42583 sed 's/^/| /' conftest.$ac_ext >&5
42584
42585   ac_header_preproc=no
42586 fi
42587
42588 rm -f conftest.err conftest.$ac_ext
42589 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
42590 echo "${ECHO_T}$ac_header_preproc" >&6; }
42591
42592 # So?  What about this header?
42593 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
42594   yes:no: )
42595     { echo "$as_me:$LINENO: WARNING: attr.h: accepted by the compiler, rejected by the preprocessor!" >&5
42596 echo "$as_me: WARNING: attr.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
42597     { echo "$as_me:$LINENO: WARNING: attr.h: proceeding with the compiler's result" >&5
42598 echo "$as_me: WARNING: attr.h: proceeding with the compiler's result" >&2;}
42599     ac_header_preproc=yes
42600     ;;
42601   no:yes:* )
42602     { echo "$as_me:$LINENO: WARNING: attr.h: present but cannot be compiled" >&5
42603 echo "$as_me: WARNING: attr.h: present but cannot be compiled" >&2;}
42604     { echo "$as_me:$LINENO: WARNING: attr.h:     check for missing prerequisite headers?" >&5
42605 echo "$as_me: WARNING: attr.h:     check for missing prerequisite headers?" >&2;}
42606     { echo "$as_me:$LINENO: WARNING: attr.h: see the Autoconf documentation" >&5
42607 echo "$as_me: WARNING: attr.h: see the Autoconf documentation" >&2;}
42608     { echo "$as_me:$LINENO: WARNING: attr.h:     section \"Present But Cannot Be Compiled\"" >&5
42609 echo "$as_me: WARNING: attr.h:     section \"Present But Cannot Be Compiled\"" >&2;}
42610     { echo "$as_me:$LINENO: WARNING: attr.h: proceeding with the preprocessor's result" >&5
42611 echo "$as_me: WARNING: attr.h: proceeding with the preprocessor's result" >&2;}
42612     { echo "$as_me:$LINENO: WARNING: attr.h: in the future, the compiler will take precedence" >&5
42613 echo "$as_me: WARNING: attr.h: in the future, the compiler will take precedence" >&2;}
42614
42615     ;;
42616 esac
42617 { echo "$as_me:$LINENO: checking for attr.h" >&5
42618 echo $ECHO_N "checking for attr.h... $ECHO_C" >&6; }
42619 if test "${ac_cv_header_attr_h+set}" = set; then
42620   echo $ECHO_N "(cached) $ECHO_C" >&6
42621 else
42622   ac_cv_header_attr_h=$ac_header_preproc
42623 fi
42624 { echo "$as_me:$LINENO: result: $ac_cv_header_attr_h" >&5
42625 echo "${ECHO_T}$ac_cv_header_attr_h" >&6; }
42626
42627 fi
42628 if test $ac_cv_header_attr_h = yes; then
42629
42630 cat >>confdefs.h <<\_ACEOF
42631 #define HAVE_ATTR_H 1
42632 _ACEOF
42633
42634 fi
42635
42636
42637
42638
42639
42640
42641
42642
42643 for ac_func in openat fstatat unlinkat fchownat futimesat
42644 do
42645 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42646 { echo "$as_me:$LINENO: checking for $ac_func" >&5
42647 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
42648 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
42649   echo $ECHO_N "(cached) $ECHO_C" >&6
42650 else
42651   cat >conftest.$ac_ext <<_ACEOF
42652 /* confdefs.h.  */
42653 _ACEOF
42654 cat confdefs.h >>conftest.$ac_ext
42655 cat >>conftest.$ac_ext <<_ACEOF
42656 /* end confdefs.h.  */
42657 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42658    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42659 #define $ac_func innocuous_$ac_func
42660
42661 /* System header to define __stub macros and hopefully few prototypes,
42662     which can conflict with char $ac_func (); below.
42663     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42664     <limits.h> exists even on freestanding compilers.  */
42665
42666 #ifdef __STDC__
42667 # include <limits.h>
42668 #else
42669 # include <assert.h>
42670 #endif
42671
42672 #undef $ac_func
42673
42674 /* Override any GCC internal prototype to avoid an error.
42675    Use char because int might match the return type of a GCC
42676    builtin and then its argument prototype would still apply.  */
42677 #ifdef __cplusplus
42678 extern "C"
42679 #endif
42680 char $ac_func ();
42681 /* The GNU C library defines this for functions which it implements
42682     to always fail with ENOSYS.  Some functions are actually named
42683     something starting with __ and the normal name is an alias.  */
42684 #if defined __stub_$ac_func || defined __stub___$ac_func
42685 choke me
42686 #endif
42687
42688 int
42689 main ()
42690 {
42691 return $ac_func ();
42692   ;
42693   return 0;
42694 }
42695 _ACEOF
42696 rm -f conftest.$ac_objext conftest$ac_exeext
42697 if { (ac_try="$ac_link"
42698 case "(($ac_try" in
42699   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42700   *) ac_try_echo=$ac_try;;
42701 esac
42702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42703   (eval "$ac_link") 2>conftest.er1
42704   ac_status=$?
42705   grep -v '^ *+' conftest.er1 >conftest.err
42706   rm -f conftest.er1
42707   cat conftest.err >&5
42708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42709   (exit $ac_status); } && {
42710          test -z "$ac_c_werror_flag" ||
42711          test ! -s conftest.err
42712        } && test -s conftest$ac_exeext &&
42713        $as_test_x conftest$ac_exeext; then
42714   eval "$as_ac_var=yes"
42715 else
42716   echo "$as_me: failed program was:" >&5
42717 sed 's/^/| /' conftest.$ac_ext >&5
42718
42719         eval "$as_ac_var=no"
42720 fi
42721
42722 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42723       conftest$ac_exeext conftest.$ac_ext
42724 fi
42725 ac_res=`eval echo '${'$as_ac_var'}'`
42726                { echo "$as_me:$LINENO: result: $ac_res" >&5
42727 echo "${ECHO_T}$ac_res" >&6; }
42728 if test `eval echo '${'$as_ac_var'}'` = yes; then
42729   cat >>confdefs.h <<_ACEOF
42730 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42731 _ACEOF
42732
42733              have_xattr=yes
42734
42735 cat >>confdefs.h <<\_ACEOF
42736 #define HAVE_OPENAT 1
42737 _ACEOF
42738
42739
42740 cat >>confdefs.h <<\_ACEOF
42741 #define HAVE_FSTATAT 1
42742 _ACEOF
42743
42744
42745 cat >>confdefs.h <<\_ACEOF
42746 #define HAVE_UNLINKAT 1
42747 _ACEOF
42748
42749
42750 cat >>confdefs.h <<\_ACEOF
42751 #define HAVE_FCHOWNAT 1
42752 _ACEOF
42753
42754
42755 cat >>confdefs.h <<\_ACEOF
42756 #define HAVE_FUTIMESAT 1
42757 _ACEOF
42758
42759
42760
42761 fi
42762 done
42763
42764
42765       if test $have_xattr = yes; then
42766          { echo "$as_me:$LINENO: checking for nvlist_next_nvpair in -lnvpair" >&5
42767 echo $ECHO_N "checking for nvlist_next_nvpair in -lnvpair... $ECHO_C" >&6; }
42768 if test "${ac_cv_lib_nvpair_nvlist_next_nvpair+set}" = set; then
42769   echo $ECHO_N "(cached) $ECHO_C" >&6
42770 else
42771   ac_check_lib_save_LIBS=$LIBS
42772 LIBS="-lnvpair  $LIBS"
42773 cat >conftest.$ac_ext <<_ACEOF
42774 /* confdefs.h.  */
42775 _ACEOF
42776 cat confdefs.h >>conftest.$ac_ext
42777 cat >>conftest.$ac_ext <<_ACEOF
42778 /* end confdefs.h.  */
42779
42780 /* Override any GCC internal prototype to avoid an error.
42781    Use char because int might match the return type of a GCC
42782    builtin and then its argument prototype would still apply.  */
42783 #ifdef __cplusplus
42784 extern "C"
42785 #endif
42786 char nvlist_next_nvpair ();
42787 int
42788 main ()
42789 {
42790 return nvlist_next_nvpair ();
42791   ;
42792   return 0;
42793 }
42794 _ACEOF
42795 rm -f conftest.$ac_objext conftest$ac_exeext
42796 if { (ac_try="$ac_link"
42797 case "(($ac_try" in
42798   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42799   *) ac_try_echo=$ac_try;;
42800 esac
42801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42802   (eval "$ac_link") 2>conftest.er1
42803   ac_status=$?
42804   grep -v '^ *+' conftest.er1 >conftest.err
42805   rm -f conftest.er1
42806   cat conftest.err >&5
42807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42808   (exit $ac_status); } && {
42809          test -z "$ac_c_werror_flag" ||
42810          test ! -s conftest.err
42811        } && test -s conftest$ac_exeext &&
42812        $as_test_x conftest$ac_exeext; then
42813   ac_cv_lib_nvpair_nvlist_next_nvpair=yes
42814 else
42815   echo "$as_me: failed program was:" >&5
42816 sed 's/^/| /' conftest.$ac_ext >&5
42817
42818         ac_cv_lib_nvpair_nvlist_next_nvpair=no
42819 fi
42820
42821 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42822       conftest$ac_exeext conftest.$ac_ext
42823 LIBS=$ac_check_lib_save_LIBS
42824 fi
42825 { echo "$as_me:$LINENO: result: $ac_cv_lib_nvpair_nvlist_next_nvpair" >&5
42826 echo "${ECHO_T}$ac_cv_lib_nvpair_nvlist_next_nvpair" >&6; }
42827 if test $ac_cv_lib_nvpair_nvlist_next_nvpair = yes; then
42828
42829
42830 cat >>confdefs.h <<\_ACEOF
42831 #define HAVE_NVLIST_NEXT_NVPAIR 1
42832 _ACEOF
42833
42834                 FDLIBS="-lnvpair $FDLIBS"
42835
42836
42837 fi
42838
42839       fi
42840    fi
42841
42842    if test x$support_xattr = xyes -a $have_xattr != yes; then
42843       { { echo "$as_me:$LINENO: error: xattr support explicitly enabled but no supported xattr implementation found,
42844   please either load the xattr libraries or rerun configure without --enable-xattr" >&5
42845 echo "$as_me: error: xattr support explicitly enabled but no supported xattr implementation found,
42846   please either load the xattr libraries or rerun configure without --enable-xattr" >&2;}
42847    { (exit 1); exit 1; }; }
42848    else
42849       if test $have_xattr = yes; then
42850
42851 cat >>confdefs.h <<\_ACEOF
42852 #define HAVE_XATTR 1
42853 _ACEOF
42854
42855       fi
42856    fi
42857 fi
42858
42859 PTHREAD_LIB=""
42860 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
42861 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
42862 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
42863   echo $ECHO_N "(cached) $ECHO_C" >&6
42864 else
42865   ac_check_lib_save_LIBS=$LIBS
42866 LIBS="-lpthread  $LIBS"
42867 cat >conftest.$ac_ext <<_ACEOF
42868 /* confdefs.h.  */
42869 _ACEOF
42870 cat confdefs.h >>conftest.$ac_ext
42871 cat >>conftest.$ac_ext <<_ACEOF
42872 /* end confdefs.h.  */
42873
42874 /* Override any GCC internal prototype to avoid an error.
42875    Use char because int might match the return type of a GCC
42876    builtin and then its argument prototype would still apply.  */
42877 #ifdef __cplusplus
42878 extern "C"
42879 #endif
42880 char pthread_create ();
42881 int
42882 main ()
42883 {
42884 return pthread_create ();
42885   ;
42886   return 0;
42887 }
42888 _ACEOF
42889 rm -f conftest.$ac_objext conftest$ac_exeext
42890 if { (ac_try="$ac_link"
42891 case "(($ac_try" in
42892   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42893   *) ac_try_echo=$ac_try;;
42894 esac
42895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42896   (eval "$ac_link") 2>conftest.er1
42897   ac_status=$?
42898   grep -v '^ *+' conftest.er1 >conftest.err
42899   rm -f conftest.er1
42900   cat conftest.err >&5
42901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42902   (exit $ac_status); } && {
42903          test -z "$ac_c_werror_flag" ||
42904          test ! -s conftest.err
42905        } && test -s conftest$ac_exeext &&
42906        $as_test_x conftest$ac_exeext; then
42907   ac_cv_lib_pthread_pthread_create=yes
42908 else
42909   echo "$as_me: failed program was:" >&5
42910 sed 's/^/| /' conftest.$ac_ext >&5
42911
42912         ac_cv_lib_pthread_pthread_create=no
42913 fi
42914
42915 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42916       conftest$ac_exeext conftest.$ac_ext
42917 LIBS=$ac_check_lib_save_LIBS
42918 fi
42919 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
42920 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
42921 if test $ac_cv_lib_pthread_pthread_create = yes; then
42922   PTHREAD_LIB="-lpthread"
42923 else
42924
42925        { echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
42926 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6; }
42927 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
42928   echo $ECHO_N "(cached) $ECHO_C" >&6
42929 else
42930   ac_check_lib_save_LIBS=$LIBS
42931 LIBS="-lpthreads  $LIBS"
42932 cat >conftest.$ac_ext <<_ACEOF
42933 /* confdefs.h.  */
42934 _ACEOF
42935 cat confdefs.h >>conftest.$ac_ext
42936 cat >>conftest.$ac_ext <<_ACEOF
42937 /* end confdefs.h.  */
42938
42939 /* Override any GCC internal prototype to avoid an error.
42940    Use char because int might match the return type of a GCC
42941    builtin and then its argument prototype would still apply.  */
42942 #ifdef __cplusplus
42943 extern "C"
42944 #endif
42945 char pthread_create ();
42946 int
42947 main ()
42948 {
42949 return pthread_create ();
42950   ;
42951   return 0;
42952 }
42953 _ACEOF
42954 rm -f conftest.$ac_objext conftest$ac_exeext
42955 if { (ac_try="$ac_link"
42956 case "(($ac_try" in
42957   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42958   *) ac_try_echo=$ac_try;;
42959 esac
42960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42961   (eval "$ac_link") 2>conftest.er1
42962   ac_status=$?
42963   grep -v '^ *+' conftest.er1 >conftest.err
42964   rm -f conftest.er1
42965   cat conftest.err >&5
42966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42967   (exit $ac_status); } && {
42968          test -z "$ac_c_werror_flag" ||
42969          test ! -s conftest.err
42970        } && test -s conftest$ac_exeext &&
42971        $as_test_x conftest$ac_exeext; then
42972   ac_cv_lib_pthreads_pthread_create=yes
42973 else
42974   echo "$as_me: failed program was:" >&5
42975 sed 's/^/| /' conftest.$ac_ext >&5
42976
42977         ac_cv_lib_pthreads_pthread_create=no
42978 fi
42979
42980 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42981       conftest$ac_exeext conftest.$ac_ext
42982 LIBS=$ac_check_lib_save_LIBS
42983 fi
42984 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
42985 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6; }
42986 if test $ac_cv_lib_pthreads_pthread_create = yes; then
42987   PTHREAD_LIB="-lpthreads"
42988 else
42989
42990               { echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
42991 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6; }
42992 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
42993   echo $ECHO_N "(cached) $ECHO_C" >&6
42994 else
42995   ac_check_lib_save_LIBS=$LIBS
42996 LIBS="-lc_r  $LIBS"
42997 cat >conftest.$ac_ext <<_ACEOF
42998 /* confdefs.h.  */
42999 _ACEOF
43000 cat confdefs.h >>conftest.$ac_ext
43001 cat >>conftest.$ac_ext <<_ACEOF
43002 /* end confdefs.h.  */
43003
43004 /* Override any GCC internal prototype to avoid an error.
43005    Use char because int might match the return type of a GCC
43006    builtin and then its argument prototype would still apply.  */
43007 #ifdef __cplusplus
43008 extern "C"
43009 #endif
43010 char pthread_create ();
43011 int
43012 main ()
43013 {
43014 return pthread_create ();
43015   ;
43016   return 0;
43017 }
43018 _ACEOF
43019 rm -f conftest.$ac_objext conftest$ac_exeext
43020 if { (ac_try="$ac_link"
43021 case "(($ac_try" in
43022   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43023   *) ac_try_echo=$ac_try;;
43024 esac
43025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43026   (eval "$ac_link") 2>conftest.er1
43027   ac_status=$?
43028   grep -v '^ *+' conftest.er1 >conftest.err
43029   rm -f conftest.er1
43030   cat conftest.err >&5
43031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43032   (exit $ac_status); } && {
43033          test -z "$ac_c_werror_flag" ||
43034          test ! -s conftest.err
43035        } && test -s conftest$ac_exeext &&
43036        $as_test_x conftest$ac_exeext; then
43037   ac_cv_lib_c_r_pthread_create=yes
43038 else
43039   echo "$as_me: failed program was:" >&5
43040 sed 's/^/| /' conftest.$ac_ext >&5
43041
43042         ac_cv_lib_c_r_pthread_create=no
43043 fi
43044
43045 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43046       conftest$ac_exeext conftest.$ac_ext
43047 LIBS=$ac_check_lib_save_LIBS
43048 fi
43049 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
43050 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6; }
43051 if test $ac_cv_lib_c_r_pthread_create = yes; then
43052   PTHREAD_LIB="-lc_r"
43053 else
43054
43055                      { echo "$as_me:$LINENO: checking for pthread_create" >&5
43056 echo $ECHO_N "checking for pthread_create... $ECHO_C" >&6; }
43057 if test "${ac_cv_func_pthread_create+set}" = set; then
43058   echo $ECHO_N "(cached) $ECHO_C" >&6
43059 else
43060   cat >conftest.$ac_ext <<_ACEOF
43061 /* confdefs.h.  */
43062 _ACEOF
43063 cat confdefs.h >>conftest.$ac_ext
43064 cat >>conftest.$ac_ext <<_ACEOF
43065 /* end confdefs.h.  */
43066 /* Define pthread_create to an innocuous variant, in case <limits.h> declares pthread_create.
43067    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43068 #define pthread_create innocuous_pthread_create
43069
43070 /* System header to define __stub macros and hopefully few prototypes,
43071     which can conflict with char pthread_create (); below.
43072     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43073     <limits.h> exists even on freestanding compilers.  */
43074
43075 #ifdef __STDC__
43076 # include <limits.h>
43077 #else
43078 # include <assert.h>
43079 #endif
43080
43081 #undef pthread_create
43082
43083 /* Override any GCC internal prototype to avoid an error.
43084    Use char because int might match the return type of a GCC
43085    builtin and then its argument prototype would still apply.  */
43086 #ifdef __cplusplus
43087 extern "C"
43088 #endif
43089 char pthread_create ();
43090 /* The GNU C library defines this for functions which it implements
43091     to always fail with ENOSYS.  Some functions are actually named
43092     something starting with __ and the normal name is an alias.  */
43093 #if defined __stub_pthread_create || defined __stub___pthread_create
43094 choke me
43095 #endif
43096
43097 int
43098 main ()
43099 {
43100 return pthread_create ();
43101   ;
43102   return 0;
43103 }
43104 _ACEOF
43105 rm -f conftest.$ac_objext conftest$ac_exeext
43106 if { (ac_try="$ac_link"
43107 case "(($ac_try" in
43108   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43109   *) ac_try_echo=$ac_try;;
43110 esac
43111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43112   (eval "$ac_link") 2>conftest.er1
43113   ac_status=$?
43114   grep -v '^ *+' conftest.er1 >conftest.err
43115   rm -f conftest.er1
43116   cat conftest.err >&5
43117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43118   (exit $ac_status); } && {
43119          test -z "$ac_c_werror_flag" ||
43120          test ! -s conftest.err
43121        } && test -s conftest$ac_exeext &&
43122        $as_test_x conftest$ac_exeext; then
43123   ac_cv_func_pthread_create=yes
43124 else
43125   echo "$as_me: failed program was:" >&5
43126 sed 's/^/| /' conftest.$ac_ext >&5
43127
43128         ac_cv_func_pthread_create=no
43129 fi
43130
43131 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43132       conftest$ac_exeext conftest.$ac_ext
43133 fi
43134 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
43135 echo "${ECHO_T}$ac_cv_func_pthread_create" >&6; }
43136
43137
43138
43139 fi
43140
43141
43142
43143 fi
43144
43145
43146
43147 fi
43148
43149
43150
43151
43152 for ac_header in sys/prctl.h sys/capability.h
43153 do
43154 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
43155 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
43156   { echo "$as_me:$LINENO: checking for $ac_header" >&5
43157 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
43158 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
43159   echo $ECHO_N "(cached) $ECHO_C" >&6
43160 fi
43161 ac_res=`eval echo '${'$as_ac_Header'}'`
43162                { echo "$as_me:$LINENO: result: $ac_res" >&5
43163 echo "${ECHO_T}$ac_res" >&6; }
43164 else
43165   # Is the header compilable?
43166 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
43167 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
43168 cat >conftest.$ac_ext <<_ACEOF
43169 /* confdefs.h.  */
43170 _ACEOF
43171 cat confdefs.h >>conftest.$ac_ext
43172 cat >>conftest.$ac_ext <<_ACEOF
43173 /* end confdefs.h.  */
43174 $ac_includes_default
43175 #include <$ac_header>
43176 _ACEOF
43177 rm -f conftest.$ac_objext
43178 if { (ac_try="$ac_compile"
43179 case "(($ac_try" in
43180   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43181   *) ac_try_echo=$ac_try;;
43182 esac
43183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43184   (eval "$ac_compile") 2>conftest.er1
43185   ac_status=$?
43186   grep -v '^ *+' conftest.er1 >conftest.err
43187   rm -f conftest.er1
43188   cat conftest.err >&5
43189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43190   (exit $ac_status); } && {
43191          test -z "$ac_c_werror_flag" ||
43192          test ! -s conftest.err
43193        } && test -s conftest.$ac_objext; then
43194   ac_header_compiler=yes
43195 else
43196   echo "$as_me: failed program was:" >&5
43197 sed 's/^/| /' conftest.$ac_ext >&5
43198
43199         ac_header_compiler=no
43200 fi
43201
43202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43203 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
43204 echo "${ECHO_T}$ac_header_compiler" >&6; }
43205
43206 # Is the header present?
43207 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
43208 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
43209 cat >conftest.$ac_ext <<_ACEOF
43210 /* confdefs.h.  */
43211 _ACEOF
43212 cat confdefs.h >>conftest.$ac_ext
43213 cat >>conftest.$ac_ext <<_ACEOF
43214 /* end confdefs.h.  */
43215 #include <$ac_header>
43216 _ACEOF
43217 if { (ac_try="$ac_cpp conftest.$ac_ext"
43218 case "(($ac_try" in
43219   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43220   *) ac_try_echo=$ac_try;;
43221 esac
43222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43223   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
43224   ac_status=$?
43225   grep -v '^ *+' conftest.er1 >conftest.err
43226   rm -f conftest.er1
43227   cat conftest.err >&5
43228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43229   (exit $ac_status); } >/dev/null && {
43230          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
43231          test ! -s conftest.err
43232        }; then
43233   ac_header_preproc=yes
43234 else
43235   echo "$as_me: failed program was:" >&5
43236 sed 's/^/| /' conftest.$ac_ext >&5
43237
43238   ac_header_preproc=no
43239 fi
43240
43241 rm -f conftest.err conftest.$ac_ext
43242 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
43243 echo "${ECHO_T}$ac_header_preproc" >&6; }
43244
43245 # So?  What about this header?
43246 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
43247   yes:no: )
43248     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
43249 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
43250     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
43251 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
43252     ac_header_preproc=yes
43253     ;;
43254   no:yes:* )
43255     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
43256 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
43257     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
43258 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
43259     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
43260 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
43261     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
43262 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
43263     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
43264 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
43265     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
43266 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
43267
43268     ;;
43269 esac
43270 { echo "$as_me:$LINENO: checking for $ac_header" >&5
43271 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
43272 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
43273   echo $ECHO_N "(cached) $ECHO_C" >&6
43274 else
43275   eval "$as_ac_Header=\$ac_header_preproc"
43276 fi
43277 ac_res=`eval echo '${'$as_ac_Header'}'`
43278                { echo "$as_me:$LINENO: result: $ac_res" >&5
43279 echo "${ECHO_T}$ac_res" >&6; }
43280
43281 fi
43282 if test `eval echo '${'$as_ac_Header'}'` = yes; then
43283   cat >>confdefs.h <<_ACEOF
43284 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
43285 _ACEOF
43286
43287 fi
43288
43289 done
43290
43291
43292
43293 for ac_func in prctl setreuid
43294 do
43295 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43296 { echo "$as_me:$LINENO: checking for $ac_func" >&5
43297 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
43298 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
43299   echo $ECHO_N "(cached) $ECHO_C" >&6
43300 else
43301   cat >conftest.$ac_ext <<_ACEOF
43302 /* confdefs.h.  */
43303 _ACEOF
43304 cat confdefs.h >>conftest.$ac_ext
43305 cat >>conftest.$ac_ext <<_ACEOF
43306 /* end confdefs.h.  */
43307 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43308    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43309 #define $ac_func innocuous_$ac_func
43310
43311 /* System header to define __stub macros and hopefully few prototypes,
43312     which can conflict with char $ac_func (); below.
43313     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43314     <limits.h> exists even on freestanding compilers.  */
43315
43316 #ifdef __STDC__
43317 # include <limits.h>
43318 #else
43319 # include <assert.h>
43320 #endif
43321
43322 #undef $ac_func
43323
43324 /* Override any GCC internal prototype to avoid an error.
43325    Use char because int might match the return type of a GCC
43326    builtin and then its argument prototype would still apply.  */
43327 #ifdef __cplusplus
43328 extern "C"
43329 #endif
43330 char $ac_func ();
43331 /* The GNU C library defines this for functions which it implements
43332     to always fail with ENOSYS.  Some functions are actually named
43333     something starting with __ and the normal name is an alias.  */
43334 #if defined __stub_$ac_func || defined __stub___$ac_func
43335 choke me
43336 #endif
43337
43338 int
43339 main ()
43340 {
43341 return $ac_func ();
43342   ;
43343   return 0;
43344 }
43345 _ACEOF
43346 rm -f conftest.$ac_objext conftest$ac_exeext
43347 if { (ac_try="$ac_link"
43348 case "(($ac_try" in
43349   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43350   *) ac_try_echo=$ac_try;;
43351 esac
43352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43353   (eval "$ac_link") 2>conftest.er1
43354   ac_status=$?
43355   grep -v '^ *+' conftest.er1 >conftest.err
43356   rm -f conftest.er1
43357   cat conftest.err >&5
43358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43359   (exit $ac_status); } && {
43360          test -z "$ac_c_werror_flag" ||
43361          test ! -s conftest.err
43362        } && test -s conftest$ac_exeext &&
43363        $as_test_x conftest$ac_exeext; then
43364   eval "$as_ac_var=yes"
43365 else
43366   echo "$as_me: failed program was:" >&5
43367 sed 's/^/| /' conftest.$ac_ext >&5
43368
43369         eval "$as_ac_var=no"
43370 fi
43371
43372 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43373       conftest$ac_exeext conftest.$ac_ext
43374 fi
43375 ac_res=`eval echo '${'$as_ac_var'}'`
43376                { echo "$as_me:$LINENO: result: $ac_res" >&5
43377 echo "${ECHO_T}$ac_res" >&6; }
43378 if test `eval echo '${'$as_ac_var'}'` = yes; then
43379   cat >>confdefs.h <<_ACEOF
43380 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43381 _ACEOF
43382
43383 fi
43384 done
43385
43386 { echo "$as_me:$LINENO: checking for cap_set_proc in -lcap" >&5
43387 echo $ECHO_N "checking for cap_set_proc in -lcap... $ECHO_C" >&6; }
43388 if test "${ac_cv_lib_cap_cap_set_proc+set}" = set; then
43389   echo $ECHO_N "(cached) $ECHO_C" >&6
43390 else
43391   ac_check_lib_save_LIBS=$LIBS
43392 LIBS="-lcap  $LIBS"
43393 cat >conftest.$ac_ext <<_ACEOF
43394 /* confdefs.h.  */
43395 _ACEOF
43396 cat confdefs.h >>conftest.$ac_ext
43397 cat >>conftest.$ac_ext <<_ACEOF
43398 /* end confdefs.h.  */
43399
43400 /* Override any GCC internal prototype to avoid an error.
43401    Use char because int might match the return type of a GCC
43402    builtin and then its argument prototype would still apply.  */
43403 #ifdef __cplusplus
43404 extern "C"
43405 #endif
43406 char cap_set_proc ();
43407 int
43408 main ()
43409 {
43410 return cap_set_proc ();
43411   ;
43412   return 0;
43413 }
43414 _ACEOF
43415 rm -f conftest.$ac_objext conftest$ac_exeext
43416 if { (ac_try="$ac_link"
43417 case "(($ac_try" in
43418   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43419   *) ac_try_echo=$ac_try;;
43420 esac
43421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43422   (eval "$ac_link") 2>conftest.er1
43423   ac_status=$?
43424   grep -v '^ *+' conftest.er1 >conftest.err
43425   rm -f conftest.er1
43426   cat conftest.err >&5
43427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43428   (exit $ac_status); } && {
43429          test -z "$ac_c_werror_flag" ||
43430          test ! -s conftest.err
43431        } && test -s conftest$ac_exeext &&
43432        $as_test_x conftest$ac_exeext; then
43433   ac_cv_lib_cap_cap_set_proc=yes
43434 else
43435   echo "$as_me: failed program was:" >&5
43436 sed 's/^/| /' conftest.$ac_ext >&5
43437
43438         ac_cv_lib_cap_cap_set_proc=no
43439 fi
43440
43441 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43442       conftest$ac_exeext conftest.$ac_ext
43443 LIBS=$ac_check_lib_save_LIBS
43444 fi
43445 { echo "$as_me:$LINENO: result: $ac_cv_lib_cap_cap_set_proc" >&5
43446 echo "${ECHO_T}$ac_cv_lib_cap_cap_set_proc" >&6; }
43447 if test $ac_cv_lib_cap_cap_set_proc = yes; then
43448   CAP_LIBS="-lcap"
43449 else
43450   CAP_LIBS=
43451 fi
43452
43453 if test x$CAP_LIBS = x-lcap; then
43454
43455 cat >>confdefs.h <<\_ACEOF
43456 #define HAVE_LIBCAP 1
43457 _ACEOF
43458
43459 fi
43460
43461
43462
43463 cat >>confdefs.h <<\_ACEOF
43464 #define FDLIBS 1
43465 _ACEOF
43466
43467
43468 CFLAGS=${CFLAGS--O}
43469
43470 if test x$have_gcc = xyes ; then
43471    CPPFLAGS="$CPPFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
43472    CFLAGS="$CFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
43473 fi
43474 LDFLAGS=${LDFLAGS--O}
43475 DB_LIBS="${SQL_LFLAGS}"
43476 CPPFLAGS="$CPPFLAGS"
43477 CFLAGS="$CFLAGS"
43478
43479
43480
43481
43482
43483
43484
43485
43486
43487
43488
43489
43490
43491
43492
43493
43494 OBJLIST=
43495
43496
43497 lld="lld"
43498 llu="llu"
43499
43500 WCFLAGS=
43501 WLDFLAGS=
43502
43503 PFILES="platforms/Makefile"
43504 PSCMD="ps -e"
43505 WIN32=
43506 MACOSX=
43507
43508 hostname=`uname -n | cut -d '.' -f 1`
43509 if test x${hostname} = x ; then
43510    hostname="localhost"
43511 fi
43512 ping -c 1 $hostname 2>/dev/null 1>/dev/null
43513 if test ! $? = 0; then
43514   hostname="localhost"
43515 fi
43516
43517 case "$DISTNAME" in
43518 aix)
43519    DISTVER=`uname -r`
43520    PSCMD="ps -e -o pid,comm"
43521    PFILES="${PFILES} \
43522       platforms/aix/Makefile"
43523    TAPEDRIVE="/dev/rmt0.1"
43524   ;;
43525 alpha)
43526    DISTVER=`uname -r`
43527    PTHREAD_LIB="-lpthread -lexc"
43528    if test "${CC}" = "gcc" ; then
43529       lld="lld"
43530       llu="llu"
43531    else
43532       lld="ld"
43533       llu="lu"
43534    fi
43535    TAPEDRIVE="/dev/nrmt0"
43536   ;;
43537 bsdi)
43538    DISTVER=`uname -a |awk '{print $3}'`
43539    TAPEDRIVE="/dev/nrmt0"
43540    PTHREAD_LIB="-pthread"
43541    CFLAGS="${CFLAGS} -pthread"
43542    PSCMD="ps -ax -o pid,command"
43543    lld="qd"
43544    llu="qu"
43545    PFILES="${PFILES} \
43546        platforms/bsdi/Makefile \
43547        platforms/bsdi/bacula-fd \
43548        platforms/bsdi/bacula-sd \
43549        platforms/bsdi/bacula-dir"
43550    largefile_support="yes"
43551   ;;
43552 cygwin)
43553    DISTVER=`uname -a |awk '{print $3}'`
43554    TAPEDRIVE="/dev/nrst0"
43555    WIN32=win32
43556    WCFLAGS="-mwindows"
43557    WLDFLAGS="-mwindows"
43558   ;;
43559 darwin)
43560    DISTVER=`uname -r`
43561    TAPEDRIVE="/dev/nst0"
43562    PSCMD="ps -e -o pid,command"
43563    MACOSX=macosx
43564    PFILES="${PFILES} \
43565       platforms/darwin/Makefile"
43566   ;;
43567 osx)
43568    DISTVER=`uname -r`
43569    TAPEDRIVE="/dev/nst0"
43570    PSCMD="ps -e -o pid,command"
43571    MACOSX=macosx
43572    PFILES="${PFILES} \
43573       platforms/osx/Makefile"
43574   ;;
43575 debian)
43576    if `test -f /etc/apt/sources.list && grep -q ubuntu /etc/apt/sources.list`; then
43577       DISTNAME="ubuntu"
43578    fi
43579    DISTVER=`cat /etc/debian_version`
43580    if test -f /etc/lsb-release ; then
43581       . /etc/lsb-release
43582       if test "x$DISTRIB_ID" != "x" ; then
43583          DISTNAME=$DISTRIB_ID
43584       fi
43585       if test "x$DISTRIB_RELEASE" != "x" ; then
43586          DISTVER=$DISTRIB_RELEASE
43587       fi
43588    fi
43589    if test "$DISTNAME" = "Ubuntu" ; then
43590       DISTNAME="ubuntu"
43591    fi
43592    TAPEDRIVE="/dev/nst0"
43593    PSCMD="ps -e -o pid,command"
43594    if test "$DISTNAME" = "ubuntu" ; then
43595       PFILES="${PFILES} \
43596          platforms/ubuntu/Makefile \
43597          platforms/ubuntu/bacula-fd \
43598          platforms/ubuntu/bacula-sd \
43599          platforms/ubuntu/bacula-dir"
43600    else
43601       PFILES="${PFILES} \
43602          platforms/debian/Makefile \
43603          platforms/debian/bacula-fd \
43604          platforms/debian/bacula-sd \
43605          platforms/debian/bacula-dir"
43606    fi
43607   ;;
43608 freebsd)
43609    DISTVER=`uname -a |awk '{print $3}'`
43610    VER=`echo $DISTVER | cut -c 1`
43611    if test x$VER = x4 ; then
43612       PTHREAD_LIB="${PTHREAD_LIBS:--pthread}"
43613       CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS:--pthread}"
43614    fi
43615    lld="qd"
43616    llu="qu"
43617    TAPEDRIVE="/dev/nrsa0"
43618    PSCMD="ps -ax -o pid,command"
43619    PFILES="${PFILES} \
43620        platforms/freebsd/Makefile \
43621        platforms/freebsd/bacula-fd \
43622        platforms/freebsd/bacula-sd \
43623        platforms/freebsd/bacula-dir"
43624    largefile_support="yes"
43625   ;;
43626 hpux)
43627    PSCMD="UNIX95=1; ps -e -o pid,comm"
43628    CFLAGS="${CFLAGS} -D_XOPEN_SOURCE_EXTENDED=1"
43629    DISTVER=`uname -r`
43630    TAPEDRIVE="/dev/rmt/0hnb"
43631    PTHREAD_LIB="-lpthread"
43632    cat >>confdefs.h <<\_ACEOF
43633 #define _INCLUDE_LONGLONG 1
43634 _ACEOF
43635
43636   ;;
43637 irix)
43638    DISTVER=`uname -r`
43639    TAPEDRIVE="/dev/rmt/0cbn"
43640    PSCMD="ps -e -o pid,comm"
43641    PFILES="${PFILES} \
43642        platforms/irix/Makefile \
43643        platforms/irix/bacula-fd \
43644        platforms/irix/bacula-sd \
43645        platforms/irix/bacula-dir"
43646   ;;
43647 netbsd)
43648    DISTVER=`uname -a |awk '{print $3}'`
43649    lld="qd"
43650    llu="qu"
43651    TAPEDRIVE="/dev/nrst0"
43652    PSCMD="ps -ax -o pid,command"
43653    PTHREAD_LIB="-pthread"
43654    CFLAGS="${CFLAGS} -pthread"
43655   ;;
43656 openbsd)
43657    DISTVER=`uname -a |awk '{print $3}'`
43658    lld="qd"
43659    llu="qu"
43660    TAPEDRIVE="/dev/nrst0"
43661    PSCMD="ps -ax -o pid,command"
43662    PTHREAD_LIB="-pthread"
43663    CFLAGS="${CFLAGS} -pthread"
43664    PFILES="${PFILES} \
43665        platforms/openbsd/Makefile \
43666        platforms/openbsd/bacula-fd \
43667        platforms/openbsd/bacula-sd \
43668        platforms/openbsd/bacula-dir"
43669   ;;
43670 redhat)
43671    if test -f /etc/whitebox-release ; then
43672       f=/etc/whitebox-release
43673    else
43674       f=/etc/redhat-release
43675    fi
43676    if test `cat $f | grep release |\
43677          cut -f 3 -d ' '`x = "Enterprise"x ; then
43678       DISTVER="Enterprise "`cat $f | grep release |\
43679           cut -f 6 -d ' '`
43680    else
43681        DISTVER=`cat /etc/redhat-release | grep release |\
43682            cut -f 5 -d ' '`
43683    fi
43684    TAPEDRIVE="/dev/nst0"
43685    PSCMD="ps -e -o pid,command"
43686    PFILES="${PFILES} \
43687        platforms/redhat/Makefile \
43688        platforms/redhat/bacula-fd \
43689        platforms/redhat/bacula-sd \
43690        platforms/redhat/bacula-dir
43691        "
43692   ;;
43693 mandrake)
43694    DISTVER=`cat /etc/mandrake-release | grep release |\
43695       cut -f 5 -d ' '`
43696    TAPEDRIVE="/dev/nst0"
43697    PSCMD="ps -e -o pid,command"
43698    PFILES="${PFILES} \
43699        platforms/mandrake/Makefile \
43700        platforms/mandrake/bacula-fd \
43701        platforms/mandrake/bacula-sd \
43702        platforms/mandrake/bacula-dir \
43703        platforms/mandrake/bacula.spec \
43704        "
43705   ;;
43706 gentoo)
43707    DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
43708    TAPEDRIVE="/dev/nst0"
43709    PSCMD="ps -e -o pid,command"
43710    PFILES="${PFILES} \
43711        platforms/gentoo/Makefile \
43712     platforms/gentoo/bacula-init \
43713        platforms/gentoo/bacula-fd \
43714        platforms/gentoo/bacula-sd \
43715        platforms/gentoo/bacula-dir"
43716   ;;
43717 slackware)
43718    DISTVER=`cat /etc/slackware-version`
43719    TAPEDRIVE="/dev/nst0"
43720    PSCMD="ps -e -o pid,command"
43721    PFILES="${PFILES} \
43722        platforms/slackware/Makefile \
43723        platforms/slackware/rc.bacula-fd \
43724        platforms/slackware/rc.bacula-sd \
43725        platforms/slackware/rc.bacula-dir\
43726        platforms/slackware/functions.bacula"
43727   ;;
43728 solaris)
43729    DISTVER=`uname -r`
43730    TAPEDRIVE="/dev/rmt/0cbn"
43731    PSCMD="ps -e -o pid,comm"
43732    PFILES="${PFILES} \
43733        platforms/solaris/Makefile \
43734        platforms/solaris/bacula-fd \
43735        platforms/solaris/bacula-sd \
43736        platforms/solaris/bacula-dir"
43737    if test x$DISTVER = x5.6 ; then
43738        cat >>confdefs.h <<\_ACEOF
43739 #define HAVE_OLD_SOCKOPT 1
43740 _ACEOF
43741
43742    fi
43743    LIBS="$LIBS -lresolv"
43744   ;;
43745 suse)
43746    DISTVER=`cat /etc/SuSE-release |grep VERSION|\
43747        cut -f 3 -d ' '`
43748    TAPEDRIVE="/dev/nst0"
43749    PSCMD="ps -e -o pid,command"
43750    PFILES="${PFILES} \
43751        platforms/suse/Makefile \
43752        platforms/suse/bacula-fd \
43753        platforms/suse/bacula-sd \
43754        platforms/suse/bacula-dir \
43755        platforms/suse/bacula \
43756        platforms/suse/bacula.spec"
43757   ;;
43758 suse5)
43759    DISTNAME=suse
43760    DISTVER=5.x
43761    TAPEDRIVE="/dev/nst0"
43762    PSCMD="ps -e -o pid,command"
43763    PFILES="${PFILES} \
43764        platforms/suse/Makefile \
43765        platforms/suse/bacula-fd \
43766        platforms/suse/bacula-sd \
43767        platforms/suse/bacula-dir"
43768   ;;
43769 unknown)
43770    DISTVER=unknown
43771    TAPEDRIVE="/dev/nst0"
43772   ;;
43773 *)
43774   echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
43775   ;;
43776 esac
43777
43778
43779
43780 LIBS="$PTHREAD_LIB $LIBS"
43781
43782 cat >>confdefs.h <<_ACEOF
43783 #define lld "$lld"
43784 _ACEOF
43785
43786 cat >>confdefs.h <<_ACEOF
43787 #define llu "$llu"
43788 _ACEOF
43789
43790
43791
43792
43793
43794
43795
43796
43797 MCOMMON=./autoconf/Make.common
43798
43799
43800 if test "x${subsysdir}" = "x${sbindir}" ; then
43801    echo " "
43802    echo " "
43803    echo "You have set both --sbindir and --with-subsys-dir"
43804    echo "  equal to: ${subsysdir} "
43805    echo "This is not permitted. Please reconfigure."
43806    echo " "
43807    echo "Aborting configuration ..."
43808    echo " "
43809    echo " "
43810    exit 1
43811 fi
43812
43813 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 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_sqlite_database src/cats/update_sqlite_tables src/cats/make_sqlite_tables src/cats/grant_sqlite_privileges src/cats/drop_sqlite_tables src/cats/drop_sqlite_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/sqlite src/cats/mysql src/cats/create_bdb_database src/cats/update_bdb_tables src/cats/make_bdb_tables src/cats/grant_bdb_privileges src/cats/drop_bdb_tables src/cats/drop_bdb_database src/cats/create_bacula_database src/cats/update_bacula_tables src/cats/grant_bacula_privileges src/cats/make_bacula_tables src/cats/drop_bacula_tables src/cats/drop_bacula_database src/findlib/Makefile src/tools/Makefile src/plugins/fd/Makefile src/plugins/sd/Makefile src/plugins/dir/Makefile src/win32/Makefile.inc po/Makefile.in updatedb/update_mysql_tables_9_to_10 updatedb/update_sqlite3_tables_9_to_10 updatedb/update_postgresql_tables_9_to_10 updatedb/update_sqlite_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_sqlite_tables_10_to_11 $PFILES"
43814
43815 ac_config_commands="$ac_config_commands default"
43816
43817 cat >confcache <<\_ACEOF
43818 # This file is a shell script that caches the results of configure
43819 # tests run on this system so they can be shared between configure
43820 # scripts and configure runs, see configure's option --config-cache.
43821 # It is not useful on other systems.  If it contains results you don't
43822 # want to keep, you may remove or edit it.
43823 #
43824 # config.status only pays attention to the cache file if you give it
43825 # the --recheck option to rerun configure.
43826 #
43827 # `ac_cv_env_foo' variables (set or unset) will be overridden when
43828 # loading this file, other *unset* `ac_cv_foo' will be assigned the
43829 # following values.
43830
43831 _ACEOF
43832
43833 # The following way of writing the cache mishandles newlines in values,
43834 # but we know of no workaround that is simple, portable, and efficient.
43835 # So, we kill variables containing newlines.
43836 # Ultrix sh set writes to stderr and can't be redirected directly,
43837 # and sets the high bit in the cache file unless we assign to the vars.
43838 (
43839   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
43840     eval ac_val=\$$ac_var
43841     case $ac_val in #(
43842     *${as_nl}*)
43843       case $ac_var in #(
43844       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
43845 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
43846       esac
43847       case $ac_var in #(
43848       _ | IFS | as_nl) ;; #(
43849       *) $as_unset $ac_var ;;
43850       esac ;;
43851     esac
43852   done
43853
43854   (set) 2>&1 |
43855     case $as_nl`(ac_space=' '; set) 2>&1` in #(
43856     *${as_nl}ac_space=\ *)
43857       # `set' does not quote correctly, so add quotes (double-quote
43858       # substitution turns \\\\ into \\, and sed turns \\ into \).
43859       sed -n \
43860         "s/'/'\\\\''/g;
43861           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
43862       ;; #(
43863     *)
43864       # `set' quotes correctly as required by POSIX, so do not add quotes.
43865       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
43866       ;;
43867     esac |
43868     sort
43869 ) |
43870   sed '
43871      /^ac_cv_env_/b end
43872      t clear
43873      :clear
43874      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
43875      t end
43876      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
43877      :end' >>confcache
43878 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
43879   if test -w "$cache_file"; then
43880     test "x$cache_file" != "x/dev/null" &&
43881       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
43882 echo "$as_me: updating cache $cache_file" >&6;}
43883     cat confcache >$cache_file
43884   else
43885     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
43886 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
43887   fi
43888 fi
43889 rm -f confcache
43890
43891 test "x$prefix" = xNONE && prefix=$ac_default_prefix
43892 # Let make expand exec_prefix.
43893 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
43894
43895 DEFS=-DHAVE_CONFIG_H
43896
43897 ac_libobjs=
43898 ac_ltlibobjs=
43899 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
43900   # 1. Remove the extension, and $U if already installed.
43901   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
43902   ac_i=`echo "$ac_i" | sed "$ac_script"`
43903   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
43904   #    will be set to the directory where LIBOBJS objects are built.
43905   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
43906   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
43907 done
43908 LIBOBJS=$ac_libobjs
43909
43910 LTLIBOBJS=$ac_ltlibobjs
43911
43912
43913
43914 : ${CONFIG_STATUS=./config.status}
43915 ac_clean_files_save=$ac_clean_files
43916 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
43917 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
43918 echo "$as_me: creating $CONFIG_STATUS" >&6;}
43919 cat >$CONFIG_STATUS <<_ACEOF
43920 #! $SHELL
43921 # Generated by $as_me.
43922 # Run this file to recreate the current configuration.
43923 # Compiler output produced by configure, useful for debugging
43924 # configure, is in config.log if it exists.
43925
43926 debug=false
43927 ac_cs_recheck=false
43928 ac_cs_silent=false
43929 SHELL=\${CONFIG_SHELL-$SHELL}
43930 _ACEOF
43931
43932 cat >>$CONFIG_STATUS <<\_ACEOF
43933 ## --------------------- ##
43934 ## M4sh Initialization.  ##
43935 ## --------------------- ##
43936
43937 # Be more Bourne compatible
43938 DUALCASE=1; export DUALCASE # for MKS sh
43939 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
43940   emulate sh
43941   NULLCMD=:
43942   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
43943   # is contrary to our usage.  Disable this feature.
43944   alias -g '${1+"$@"}'='"$@"'
43945   setopt NO_GLOB_SUBST
43946 else
43947   case `(set -o) 2>/dev/null` in
43948   *posix*) set -o posix ;;
43949 esac
43950
43951 fi
43952
43953
43954
43955
43956 # PATH needs CR
43957 # Avoid depending upon Character Ranges.
43958 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
43959 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
43960 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
43961 as_cr_digits='0123456789'
43962 as_cr_alnum=$as_cr_Letters$as_cr_digits
43963
43964 # The user is always right.
43965 if test "${PATH_SEPARATOR+set}" != set; then
43966   echo "#! /bin/sh" >conf$$.sh
43967   echo  "exit 0"   >>conf$$.sh
43968   chmod +x conf$$.sh
43969   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
43970     PATH_SEPARATOR=';'
43971   else
43972     PATH_SEPARATOR=:
43973   fi
43974   rm -f conf$$.sh
43975 fi
43976
43977 # Support unset when possible.
43978 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
43979   as_unset=unset
43980 else
43981   as_unset=false
43982 fi
43983
43984
43985 # IFS
43986 # We need space, tab and new line, in precisely that order.  Quoting is
43987 # there to prevent editors from complaining about space-tab.
43988 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
43989 # splitting by setting IFS to empty value.)
43990 as_nl='
43991 '
43992 IFS=" ""        $as_nl"
43993
43994 # Find who we are.  Look in the path if we contain no directory separator.
43995 case $0 in
43996   *[\\/]* ) as_myself=$0 ;;
43997   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43998 for as_dir in $PATH
43999 do
44000   IFS=$as_save_IFS
44001   test -z "$as_dir" && as_dir=.
44002   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
44003 done
44004 IFS=$as_save_IFS
44005
44006      ;;
44007 esac
44008 # We did not find ourselves, most probably we were run as `sh COMMAND'
44009 # in which case we are not to be found in the path.
44010 if test "x$as_myself" = x; then
44011   as_myself=$0
44012 fi
44013 if test ! -f "$as_myself"; then
44014   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
44015   { (exit 1); exit 1; }
44016 fi
44017
44018 # Work around bugs in pre-3.0 UWIN ksh.
44019 for as_var in ENV MAIL MAILPATH
44020 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
44021 done
44022 PS1='$ '
44023 PS2='> '
44024 PS4='+ '
44025
44026 # NLS nuisances.
44027 for as_var in \
44028   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
44029   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44030   LC_TELEPHONE LC_TIME
44031 do
44032   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
44033     eval $as_var=C; export $as_var
44034   else
44035     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
44036   fi
44037 done
44038
44039 # Required to use basename.
44040 if expr a : '\(a\)' >/dev/null 2>&1 &&
44041    test "X`expr 00001 : '.*\(...\)'`" = X001; then
44042   as_expr=expr
44043 else
44044   as_expr=false
44045 fi
44046
44047 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
44048   as_basename=basename
44049 else
44050   as_basename=false
44051 fi
44052
44053
44054 # Name of the executable.
44055 as_me=`$as_basename -- "$0" ||
44056 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
44057          X"$0" : 'X\(//\)$' \| \
44058          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
44059 echo X/"$0" |
44060     sed '/^.*\/\([^/][^/]*\)\/*$/{
44061             s//\1/
44062             q
44063           }
44064           /^X\/\(\/\/\)$/{
44065             s//\1/
44066             q
44067           }
44068           /^X\/\(\/\).*/{
44069             s//\1/
44070             q
44071           }
44072           s/.*/./; q'`
44073
44074 # CDPATH.
44075 $as_unset CDPATH
44076
44077
44078
44079   as_lineno_1=$LINENO
44080   as_lineno_2=$LINENO
44081   test "x$as_lineno_1" != "x$as_lineno_2" &&
44082   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
44083
44084   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
44085   # uniformly replaced by the line number.  The first 'sed' inserts a
44086   # line-number line after each line using $LINENO; the second 'sed'
44087   # does the real work.  The second script uses 'N' to pair each
44088   # line-number line with the line containing $LINENO, and appends
44089   # trailing '-' during substitution so that $LINENO is not a special
44090   # case at line end.
44091   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
44092   # scripts with optimization help from Paolo Bonzini.  Blame Lee
44093   # E. McMahon (1931-1989) for sed's syntax.  :-)
44094   sed -n '
44095     p
44096     /[$]LINENO/=
44097   ' <$as_myself |
44098     sed '
44099       s/[$]LINENO.*/&-/
44100       t lineno
44101       b
44102       :lineno
44103       N
44104       :loop
44105       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
44106       t loop
44107       s/-\n.*//
44108     ' >$as_me.lineno &&
44109   chmod +x "$as_me.lineno" ||
44110     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
44111    { (exit 1); exit 1; }; }
44112
44113   # Don't try to exec as it changes $[0], causing all sort of problems
44114   # (the dirname of $[0] is not the place where we might find the
44115   # original and so on.  Autoconf is especially sensitive to this).
44116   . "./$as_me.lineno"
44117   # Exit status is that of the last command.
44118   exit
44119 }
44120
44121
44122 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
44123   as_dirname=dirname
44124 else
44125   as_dirname=false
44126 fi
44127
44128 ECHO_C= ECHO_N= ECHO_T=
44129 case `echo -n x` in
44130 -n*)
44131   case `echo 'x\c'` in
44132   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
44133   *)   ECHO_C='\c';;
44134   esac;;
44135 *)
44136   ECHO_N='-n';;
44137 esac
44138
44139 if expr a : '\(a\)' >/dev/null 2>&1 &&
44140    test "X`expr 00001 : '.*\(...\)'`" = X001; then
44141   as_expr=expr
44142 else
44143   as_expr=false
44144 fi
44145
44146 rm -f conf$$ conf$$.exe conf$$.file
44147 if test -d conf$$.dir; then
44148   rm -f conf$$.dir/conf$$.file
44149 else
44150   rm -f conf$$.dir
44151   mkdir conf$$.dir
44152 fi
44153 echo >conf$$.file
44154 if ln -s conf$$.file conf$$ 2>/dev/null; then
44155   as_ln_s='ln -s'
44156   # ... but there are two gotchas:
44157   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
44158   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
44159   # In both cases, we have to default to `cp -p'.
44160   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
44161     as_ln_s='cp -p'
44162 elif ln conf$$.file conf$$ 2>/dev/null; then
44163   as_ln_s=ln
44164 else
44165   as_ln_s='cp -p'
44166 fi
44167 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
44168 rmdir conf$$.dir 2>/dev/null
44169
44170 if mkdir -p . 2>/dev/null; then
44171   as_mkdir_p=:
44172 else
44173   test -d ./-p && rmdir ./-p
44174   as_mkdir_p=false
44175 fi
44176
44177 if test -x / >/dev/null 2>&1; then
44178   as_test_x='test -x'
44179 else
44180   if ls -dL / >/dev/null 2>&1; then
44181     as_ls_L_option=L
44182   else
44183     as_ls_L_option=
44184   fi
44185   as_test_x='
44186     eval sh -c '\''
44187       if test -d "$1"; then
44188         test -d "$1/.";
44189       else
44190         case $1 in
44191         -*)set "./$1";;
44192         esac;
44193         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
44194         ???[sx]*):;;*)false;;esac;fi
44195     '\'' sh
44196   '
44197 fi
44198 as_executable_p=$as_test_x
44199
44200 # Sed expression to map a string onto a valid CPP name.
44201 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
44202
44203 # Sed expression to map a string onto a valid variable name.
44204 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
44205
44206
44207 exec 6>&1
44208
44209 # Save the log message, to keep $[0] and so on meaningful, and to
44210 # report actual input values of CONFIG_FILES etc. instead of their
44211 # values after options handling.
44212 ac_log="
44213 This file was extended by $as_me, which was
44214 generated by GNU Autoconf 2.61.  Invocation command line was
44215
44216   CONFIG_FILES    = $CONFIG_FILES
44217   CONFIG_HEADERS  = $CONFIG_HEADERS
44218   CONFIG_LINKS    = $CONFIG_LINKS
44219   CONFIG_COMMANDS = $CONFIG_COMMANDS
44220   $ $0 $@
44221
44222 on `(hostname || uname -n) 2>/dev/null | sed 1q`
44223 "
44224
44225 _ACEOF
44226
44227 cat >>$CONFIG_STATUS <<_ACEOF
44228 # Files that config.status was made for.
44229 config_files="$ac_config_files"
44230 config_headers="$ac_config_headers"
44231 config_commands="$ac_config_commands"
44232
44233 _ACEOF
44234
44235 cat >>$CONFIG_STATUS <<\_ACEOF
44236 ac_cs_usage="\
44237 \`$as_me' instantiates files from templates according to the
44238 current configuration.
44239
44240 Usage: $0 [OPTIONS] [FILE]...
44241
44242   -h, --help       print this help, then exit
44243   -V, --version    print version number and configuration settings, then exit
44244   -q, --quiet      do not print progress messages
44245   -d, --debug      don't remove temporary files
44246       --recheck    update $as_me by reconfiguring in the same conditions
44247   --file=FILE[:TEMPLATE]
44248                    instantiate the configuration file FILE
44249   --header=FILE[:TEMPLATE]
44250                    instantiate the configuration header FILE
44251
44252 Configuration files:
44253 $config_files
44254
44255 Configuration headers:
44256 $config_headers
44257
44258 Configuration commands:
44259 $config_commands
44260
44261 Report bugs to <bug-autoconf@gnu.org>."
44262
44263 _ACEOF
44264 cat >>$CONFIG_STATUS <<_ACEOF
44265 ac_cs_version="\\
44266 config.status
44267 configured by $0, generated by GNU Autoconf 2.61,
44268   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
44269
44270 Copyright (C) 2006 Free Software Foundation, Inc.
44271 This config.status script is free software; the Free Software Foundation
44272 gives unlimited permission to copy, distribute and modify it."
44273
44274 ac_pwd='$ac_pwd'
44275 srcdir='$srcdir'
44276 INSTALL='$INSTALL'
44277 _ACEOF
44278
44279 cat >>$CONFIG_STATUS <<\_ACEOF
44280 # If no file are specified by the user, then we need to provide default
44281 # value.  By we need to know if files were specified by the user.
44282 ac_need_defaults=:
44283 while test $# != 0
44284 do
44285   case $1 in
44286   --*=*)
44287     ac_option=`expr "X$1" : 'X\([^=]*\)='`
44288     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
44289     ac_shift=:
44290     ;;
44291   *)
44292     ac_option=$1
44293     ac_optarg=$2
44294     ac_shift=shift
44295     ;;
44296   esac
44297
44298   case $ac_option in
44299   # Handling of the options.
44300   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
44301     ac_cs_recheck=: ;;
44302   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
44303     echo "$ac_cs_version"; exit ;;
44304   --debug | --debu | --deb | --de | --d | -d )
44305     debug=: ;;
44306   --file | --fil | --fi | --f )
44307     $ac_shift
44308     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
44309     ac_need_defaults=false;;
44310   --header | --heade | --head | --hea )
44311     $ac_shift
44312     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
44313     ac_need_defaults=false;;
44314   --he | --h)
44315     # Conflict between --help and --header
44316     { echo "$as_me: error: ambiguous option: $1
44317 Try \`$0 --help' for more information." >&2
44318    { (exit 1); exit 1; }; };;
44319   --help | --hel | -h )
44320     echo "$ac_cs_usage"; exit ;;
44321   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
44322   | -silent | --silent | --silen | --sile | --sil | --si | --s)
44323     ac_cs_silent=: ;;
44324
44325   # This is an error.
44326   -*) { echo "$as_me: error: unrecognized option: $1
44327 Try \`$0 --help' for more information." >&2
44328    { (exit 1); exit 1; }; } ;;
44329
44330   *) ac_config_targets="$ac_config_targets $1"
44331      ac_need_defaults=false ;;
44332
44333   esac
44334   shift
44335 done
44336
44337 ac_configure_extra_args=
44338
44339 if $ac_cs_silent; then
44340   exec 6>/dev/null
44341   ac_configure_extra_args="$ac_configure_extra_args --silent"
44342 fi
44343
44344 _ACEOF
44345 cat >>$CONFIG_STATUS <<_ACEOF
44346 if \$ac_cs_recheck; then
44347   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
44348   CONFIG_SHELL=$SHELL
44349   export CONFIG_SHELL
44350   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
44351 fi
44352
44353 _ACEOF
44354 cat >>$CONFIG_STATUS <<\_ACEOF
44355 exec 5>>config.log
44356 {
44357   echo
44358   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
44359 ## Running $as_me. ##
44360 _ASBOX
44361   echo "$ac_log"
44362 } >&5
44363
44364 _ACEOF
44365 cat >>$CONFIG_STATUS <<_ACEOF
44366 #
44367 # INIT-COMMANDS
44368 #
44369
44370
44371 # The HP-UX ksh and POSIX shell print the target directory to stdout
44372 # if CDPATH is set.
44373 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
44374
44375 sed_quote_subst='$sed_quote_subst'
44376 double_quote_subst='$double_quote_subst'
44377 delay_variable_subst='$delay_variable_subst'
44378 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
44379 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
44380 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
44381 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
44382 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
44383 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
44384 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
44385 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
44386 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
44387 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
44388 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
44389 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
44390 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
44391 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
44392 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
44393 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
44394 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
44395 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
44396 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
44397 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
44398 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
44399 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
44400 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
44401 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
44402 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
44403 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
44404 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
44405 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44406 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
44407 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
44408 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
44409 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
44410 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
44411 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
44412 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
44413 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44414 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44415 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44416 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
44417 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
44418 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
44419 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
44420 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
44421 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
44422 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"`'
44423 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"`'
44424 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
44425 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
44426 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
44427 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
44428 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
44429 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
44430 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
44431 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
44432 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
44433 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
44434 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
44435 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
44436 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
44437 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
44438 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
44439 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
44440 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44441 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44442 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
44443 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
44444 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
44445 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
44446 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
44447 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44448 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44449 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44450 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44451 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44452 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44453 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
44454 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
44455 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
44456 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
44457 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
44458 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
44459 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
44460 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
44461 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
44462 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
44463 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
44464 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
44465 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
44466 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
44467 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
44468 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44469 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
44470 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
44471 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44472 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
44473 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
44474 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
44475 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
44476 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
44477 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
44478 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
44479 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
44480 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
44481 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
44482 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
44483 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44484 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44485 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44486 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
44487 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
44488 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
44489 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
44490 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
44491 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
44492 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
44493 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
44494 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
44495 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
44496 compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
44497 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
44498 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
44499 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
44500 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
44501 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
44502 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44503 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44504 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44505 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44506 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44507 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44508 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44509 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44510 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44511 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44512 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44513 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44514 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44515 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44516 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44517 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44518 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44519 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44520 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44521 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44522 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44523 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44524 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44525 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44526 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44527 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44528 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44529 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44530 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44531 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44532 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44533 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44534 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44535 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44536 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44537 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44538 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44539 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44540 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44541 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44542 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44543 compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44544 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44545 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44546 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44547 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44548 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44549
44550 LTCC='$LTCC'
44551 LTCFLAGS='$LTCFLAGS'
44552 compiler='$compiler_DEFAULT'
44553
44554 # Quote evaled strings.
44555 for var in SED \
44556 GREP \
44557 EGREP \
44558 FGREP \
44559 LD \
44560 NM \
44561 LN_S \
44562 lt_SP2NL \
44563 lt_NL2SP \
44564 reload_flag \
44565 OBJDUMP \
44566 deplibs_check_method \
44567 file_magic_cmd \
44568 AR \
44569 AR_FLAGS \
44570 STRIP \
44571 RANLIB \
44572 CC \
44573 CFLAGS \
44574 compiler \
44575 lt_cv_sys_global_symbol_pipe \
44576 lt_cv_sys_global_symbol_to_cdecl \
44577 lt_cv_sys_global_symbol_to_c_name_address \
44578 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
44579 SHELL \
44580 ECHO \
44581 lt_prog_compiler_no_builtin_flag \
44582 lt_prog_compiler_wl \
44583 lt_prog_compiler_pic \
44584 lt_prog_compiler_static \
44585 lt_cv_prog_compiler_c_o \
44586 need_locks \
44587 DSYMUTIL \
44588 NMEDIT \
44589 LIPO \
44590 OTOOL \
44591 OTOOL64 \
44592 shrext_cmds \
44593 export_dynamic_flag_spec \
44594 whole_archive_flag_spec \
44595 compiler_needs_object \
44596 with_gnu_ld \
44597 allow_undefined_flag \
44598 no_undefined_flag \
44599 hardcode_libdir_flag_spec \
44600 hardcode_libdir_flag_spec_ld \
44601 hardcode_libdir_separator \
44602 fix_srcfile_path \
44603 exclude_expsyms \
44604 include_expsyms \
44605 file_list_spec \
44606 variables_saved_for_relink \
44607 libname_spec \
44608 library_names_spec \
44609 soname_spec \
44610 finish_eval \
44611 old_striplib \
44612 striplib \
44613 compiler_lib_search_dirs \
44614 predep_objects \
44615 postdep_objects \
44616 predeps \
44617 postdeps \
44618 compiler_lib_search_path \
44619 LD_CXX \
44620 compiler_CXX \
44621 lt_prog_compiler_no_builtin_flag_CXX \
44622 lt_prog_compiler_wl_CXX \
44623 lt_prog_compiler_pic_CXX \
44624 lt_prog_compiler_static_CXX \
44625 lt_cv_prog_compiler_c_o_CXX \
44626 export_dynamic_flag_spec_CXX \
44627 whole_archive_flag_spec_CXX \
44628 compiler_needs_object_CXX \
44629 with_gnu_ld_CXX \
44630 allow_undefined_flag_CXX \
44631 no_undefined_flag_CXX \
44632 hardcode_libdir_flag_spec_CXX \
44633 hardcode_libdir_flag_spec_ld_CXX \
44634 hardcode_libdir_separator_CXX \
44635 fix_srcfile_path_CXX \
44636 exclude_expsyms_CXX \
44637 include_expsyms_CXX \
44638 file_list_spec_CXX \
44639 compiler_lib_search_dirs_CXX \
44640 predep_objects_CXX \
44641 postdep_objects_CXX \
44642 predeps_CXX \
44643 postdeps_CXX \
44644 compiler_lib_search_path_CXX; do
44645     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
44646     *[\\\\\\\`\\"\\\$]*)
44647       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
44648       ;;
44649     *)
44650       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
44651       ;;
44652     esac
44653 done
44654
44655 # Double-quote double-evaled strings.
44656 for var in reload_cmds \
44657 old_postinstall_cmds \
44658 old_postuninstall_cmds \
44659 old_archive_cmds \
44660 extract_expsyms_cmds \
44661 old_archive_from_new_cmds \
44662 old_archive_from_expsyms_cmds \
44663 archive_cmds \
44664 archive_expsym_cmds \
44665 module_cmds \
44666 module_expsym_cmds \
44667 export_symbols_cmds \
44668 prelink_cmds \
44669 postinstall_cmds \
44670 postuninstall_cmds \
44671 finish_cmds \
44672 sys_lib_search_path_spec \
44673 sys_lib_dlsearch_path_spec \
44674 old_archive_cmds_CXX \
44675 old_archive_from_new_cmds_CXX \
44676 old_archive_from_expsyms_cmds_CXX \
44677 archive_cmds_CXX \
44678 archive_expsym_cmds_CXX \
44679 module_cmds_CXX \
44680 module_expsym_cmds_CXX \
44681 export_symbols_cmds_CXX \
44682 prelink_cmds_CXX; do
44683     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
44684     *[\\\\\\\`\\"\\\$]*)
44685       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
44686       ;;
44687     *)
44688       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
44689       ;;
44690     esac
44691 done
44692
44693 # Fix-up fallback echo if it was mangled by the above quoting rules.
44694 case \$lt_ECHO in
44695 *'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
44696   ;;
44697 esac
44698
44699 ac_aux_dir='$ac_aux_dir'
44700 xsi_shell='$xsi_shell'
44701 lt_shell_append='$lt_shell_append'
44702
44703 # See if we are running on zsh, and set the options which allow our
44704 # commands through without removal of \ escapes INIT.
44705 if test -n "\${ZSH_VERSION+set}" ; then
44706    setopt NO_GLOB_SUBST
44707 fi
44708
44709
44710     PACKAGE='$PACKAGE'
44711     VERSION='$VERSION'
44712     TIMESTAMP='$TIMESTAMP'
44713     RM='$RM'
44714     ofile='$ofile'
44715
44716
44717
44718
44719
44720 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
44721     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
44722     # from automake.
44723     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
44724     # Capture the value of LINGUAS because we need it to compute CATALOGS.
44725     LINGUAS="${LINGUAS-%UNSET%}"
44726
44727
44728 _ACEOF
44729
44730 cat >>$CONFIG_STATUS <<\_ACEOF
44731
44732 # Handling of arguments.
44733 for ac_config_target in $ac_config_targets
44734 do
44735   case $ac_config_target in
44736     "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
44737     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
44738     "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
44739     "autoconf/Make.common") CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
44740     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
44741     "manpages/Makefile") CONFIG_FILES="$CONFIG_FILES manpages/Makefile" ;;
44742     "scripts/startmysql") CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
44743     "scripts/stopmysql") CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
44744     "scripts/btraceback") CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
44745     "scripts/startit") CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
44746     "scripts/stopit") CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
44747     "scripts/bconsole") CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
44748     "scripts/gconsole") CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
44749     "scripts/bacula") CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
44750     "scripts/bacula-ctl-dir") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-dir" ;;
44751     "scripts/bacula-ctl-fd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-fd" ;;
44752     "scripts/bacula-ctl-sd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-sd" ;;
44753     "scripts/devel_bacula") CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
44754     "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
44755     "scripts/logrotate") CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
44756     "scripts/bacula.desktop.gnome1") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
44757     "scripts/bacula.desktop.gnome2") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
44758     "scripts/bacula.desktop.gnome1.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
44759     "scripts/bacula.desktop.gnome2.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
44760     "scripts/bacula.desktop.gnome1.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
44761     "scripts/bacula.desktop.gnome2.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
44762     "scripts/bgnome-console.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bgnome-console.console_apps" ;;
44763     "scripts/mtx-changer") CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
44764     "scripts/disk-changer") CONFIG_FILES="$CONFIG_FILES scripts/disk-changer" ;;
44765     "scripts/dvd-handler") CONFIG_FILES="$CONFIG_FILES scripts/dvd-handler" ;;
44766     "scripts/dvd-simulator") CONFIG_FILES="$CONFIG_FILES scripts/dvd-simulator" ;;
44767     "scripts/bacula-tray-monitor.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bacula-tray-monitor.desktop" ;;
44768     "scripts/logwatch/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/Makefile" ;;
44769     "scripts/logwatch/logfile.bacula.conf") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/logfile.bacula.conf" ;;
44770     "scripts/wxconsole.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.console_apps" ;;
44771     "scripts/wxconsole.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.consolehelper" ;;
44772     "scripts/wxconsole.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.xsu" ;;
44773     "scripts/bat.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop" ;;
44774     "scripts/bat.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.xsu" ;;
44775     "scripts/bat.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.consolehelper" ;;
44776     "scripts/bat.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bat.console_apps" ;;
44777     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
44778     "src/host.h") CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
44779     "src/console/Makefile") CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
44780     "src/console/bconsole.conf") CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
44781     "src/qt-console/bat.conf") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.conf" ;;
44782     "src/qt-console/bat.pro") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro" ;;
44783     "src/qt-console/bat.pro.mingw32") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro.mingw32" ;;
44784     "src/qt-console/install_conf_file") CONFIG_FILES="$CONFIG_FILES src/qt-console/install_conf_file" ;;
44785     "src/wx-console/Makefile") CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
44786     "src/wx-console/bwx-console.conf") CONFIG_FILES="$CONFIG_FILES src/wx-console/bwx-console.conf" ;;
44787     "src/tray-monitor/Makefile") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/Makefile" ;;
44788     "src/tray-monitor/tray-monitor.conf") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/tray-monitor.conf" ;;
44789     "src/dird/Makefile") CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
44790     "src/dird/bacula-dir.conf") CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
44791     "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
44792     "src/stored/Makefile") CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
44793     "src/stored/bacula-sd.conf") CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
44794     "src/filed/Makefile") CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
44795     "src/filed/bacula-fd.conf") CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
44796     "src/cats/Makefile") CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
44797     "src/cats/make_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
44798     "src/cats/delete_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
44799     "src/cats/create_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
44800     "src/cats/update_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
44801     "src/cats/make_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
44802     "src/cats/grant_postgresql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
44803     "src/cats/drop_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
44804     "src/cats/drop_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
44805     "src/cats/create_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
44806     "src/cats/update_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
44807     "src/cats/make_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
44808     "src/cats/grant_mysql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
44809     "src/cats/drop_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
44810     "src/cats/drop_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
44811     "src/cats/create_sqlite_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite_database" ;;
44812     "src/cats/update_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite_tables" ;;
44813     "src/cats/make_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite_tables" ;;
44814     "src/cats/grant_sqlite_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite_privileges" ;;
44815     "src/cats/drop_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_tables" ;;
44816     "src/cats/drop_sqlite_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_database" ;;
44817     "src/cats/create_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite3_database" ;;
44818     "src/cats/update_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite3_tables" ;;
44819     "src/cats/make_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite3_tables" ;;
44820     "src/cats/grant_sqlite3_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite3_privileges" ;;
44821     "src/cats/drop_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_tables" ;;
44822     "src/cats/drop_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_database" ;;
44823     "src/cats/sqlite") CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
44824     "src/cats/mysql") CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
44825     "src/cats/create_bdb_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bdb_database" ;;
44826     "src/cats/update_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bdb_tables" ;;
44827     "src/cats/make_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bdb_tables" ;;
44828     "src/cats/grant_bdb_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bdb_privileges" ;;
44829     "src/cats/drop_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_tables" ;;
44830     "src/cats/drop_bdb_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_database" ;;
44831     "src/cats/create_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
44832     "src/cats/update_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
44833     "src/cats/grant_bacula_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
44834     "src/cats/make_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
44835     "src/cats/drop_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
44836     "src/cats/drop_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
44837     "src/findlib/Makefile") CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
44838     "src/tools/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
44839     "src/plugins/fd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/fd/Makefile" ;;
44840     "src/plugins/sd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/sd/Makefile" ;;
44841     "src/plugins/dir/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/dir/Makefile" ;;
44842     "src/win32/Makefile.inc") CONFIG_FILES="$CONFIG_FILES src/win32/Makefile.inc" ;;
44843     "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
44844     "updatedb/update_mysql_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_9_to_10" ;;
44845     "updatedb/update_sqlite3_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_9_to_10" ;;
44846     "updatedb/update_postgresql_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_9_to_10" ;;
44847     "updatedb/update_sqlite_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite_tables_9_to_10" ;;
44848     "updatedb/update_mysql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_10_to_11" ;;
44849     "updatedb/update_sqlite3_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_10_to_11" ;;
44850     "updatedb/update_postgresql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_10_to_11" ;;
44851     "updatedb/update_sqlite_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite_tables_10_to_11" ;;
44852     "$PFILES") CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
44853     "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
44854
44855   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
44856 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
44857    { (exit 1); exit 1; }; };;
44858   esac
44859 done
44860
44861
44862 # If the user did not use the arguments to specify the items to instantiate,
44863 # then the envvar interface is used.  Set only those that are not.
44864 # We use the long form for the default assignment because of an extremely
44865 # bizarre bug on SunOS 4.1.3.
44866 if $ac_need_defaults; then
44867   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
44868   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
44869   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
44870 fi
44871
44872 # Have a temporary directory for convenience.  Make it in the build tree
44873 # simply because there is no reason against having it here, and in addition,
44874 # creating and moving files from /tmp can sometimes cause problems.
44875 # Hook for its removal unless debugging.
44876 # Note that there is a small window in which the directory will not be cleaned:
44877 # after its creation but before its name has been assigned to `$tmp'.
44878 $debug ||
44879 {
44880   tmp=
44881   trap 'exit_status=$?
44882   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
44883 ' 0
44884   trap '{ (exit 1); exit 1; }' 1 2 13 15
44885 }
44886 # Create a (secure) tmp directory for tmp files.
44887
44888 {
44889   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
44890   test -n "$tmp" && test -d "$tmp"
44891 }  ||
44892 {
44893   tmp=./conf$$-$RANDOM
44894   (umask 077 && mkdir "$tmp")
44895 } ||
44896 {
44897    echo "$me: cannot create a temporary directory in ." >&2
44898    { (exit 1); exit 1; }
44899 }
44900
44901 #
44902 # Set up the sed scripts for CONFIG_FILES section.
44903 #
44904
44905 # No need to generate the scripts if there are no CONFIG_FILES.
44906 # This happens for instance when ./config.status config.h
44907 if test -n "$CONFIG_FILES"; then
44908
44909 _ACEOF
44910
44911 # Create sed commands to just substitute file output variables.
44912
44913 # Remaining file output variables are in a fragment that also has non-file
44914 # output varibles.
44915
44916
44917
44918 ac_delim='%!_!# '
44919 for ac_last_try in false false false false false :; do
44920   cat >conf$$subs.sed <<_ACEOF
44921 SHELL!$SHELL$ac_delim
44922 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
44923 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
44924 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
44925 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
44926 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
44927 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
44928 exec_prefix!$exec_prefix$ac_delim
44929 prefix!$prefix$ac_delim
44930 program_transform_name!$program_transform_name$ac_delim
44931 bindir!$bindir$ac_delim
44932 sbindir!$sbindir$ac_delim
44933 libexecdir!$libexecdir$ac_delim
44934 datarootdir!$datarootdir$ac_delim
44935 datadir!$datadir$ac_delim
44936 sysconfdir!$sysconfdir$ac_delim
44937 sharedstatedir!$sharedstatedir$ac_delim
44938 localstatedir!$localstatedir$ac_delim
44939 includedir!$includedir$ac_delim
44940 oldincludedir!$oldincludedir$ac_delim
44941 docdir!$docdir$ac_delim
44942 infodir!$infodir$ac_delim
44943 htmldir!$htmldir$ac_delim
44944 dvidir!$dvidir$ac_delim
44945 pdfdir!$pdfdir$ac_delim
44946 psdir!$psdir$ac_delim
44947 libdir!$libdir$ac_delim
44948 localedir!$localedir$ac_delim
44949 mandir!$mandir$ac_delim
44950 DEFS!$DEFS$ac_delim
44951 ECHO_C!$ECHO_C$ac_delim
44952 ECHO_N!$ECHO_N$ac_delim
44953 ECHO_T!$ECHO_T$ac_delim
44954 LIBS!$LIBS$ac_delim
44955 build_alias!$build_alias$ac_delim
44956 host_alias!$host_alias$ac_delim
44957 target_alias!$target_alias$ac_delim
44958 BUILD_DIR!$BUILD_DIR$ac_delim
44959 TOP_DIR!$TOP_DIR$ac_delim
44960 WIN32BUILDDIR!$WIN32BUILDDIR$ac_delim
44961 WIN32MAINDIR!$WIN32MAINDIR$ac_delim
44962 WIN32TOPDIR!$WIN32TOPDIR$ac_delim
44963 TRUEPRG!$TRUEPRG$ac_delim
44964 FALSEPRG!$FALSEPRG$ac_delim
44965 VERSION!$VERSION$ac_delim
44966 DATE!$DATE$ac_delim
44967 LSMDATE!$LSMDATE$ac_delim
44968 BACULA!$BACULA$ac_delim
44969 post_host!$post_host$ac_delim
44970 CC!$CC$ac_delim
44971 CFLAGS!$CFLAGS$ac_delim
44972 LDFLAGS!$LDFLAGS$ac_delim
44973 CPPFLAGS!$CPPFLAGS$ac_delim
44974 ac_ct_CC!$ac_ct_CC$ac_delim
44975 EXEEXT!$EXEEXT$ac_delim
44976 OBJEXT!$OBJEXT$ac_delim
44977 CXX!$CXX$ac_delim
44978 CXXFLAGS!$CXXFLAGS$ac_delim
44979 ac_ct_CXX!$ac_ct_CXX$ac_delim
44980 CPP!$CPP$ac_delim
44981 GREP!$GREP$ac_delim
44982 EGREP!$EGREP$ac_delim
44983 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
44984 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
44985 INSTALL_DATA!$INSTALL_DATA$ac_delim
44986 MV!$MV$ac_delim
44987 REMOVE!$REMOVE$ac_delim
44988 CP!$CP$ac_delim
44989 SED!$SED$ac_delim
44990 ECHO!$ECHO$ac_delim
44991 CMP!$CMP$ac_delim
44992 TBL!$TBL$ac_delim
44993 AR!$AR$ac_delim
44994 OPENSSL!$OPENSSL$ac_delim
44995 MTX!$MTX$ac_delim
44996 DD!$DD$ac_delim
44997 MKISOFS!$MKISOFS$ac_delim
44998 PYTHON!$PYTHON$ac_delim
44999 GROWISOFS!$GROWISOFS$ac_delim
45000 DVDRWMEDIAINFO!$DVDRWMEDIAINFO$ac_delim
45001 DVDRWFORMAT!$DVDRWFORMAT$ac_delim
45002 PKGCONFIG!$PKGCONFIG$ac_delim
45003 QMAKE!$QMAKE$ac_delim
45004 QMAKEQT4!$QMAKEQT4$ac_delim
45005 GMAKE!$GMAKE$ac_delim
45006 WXCONFIG!$WXCONFIG$ac_delim
45007 WXFLAGS!$WXFLAGS$ac_delim
45008 CDRECORD!$CDRECORD$ac_delim
45009 PIDOF!$PIDOF$ac_delim
45010 AWK!$AWK$ac_delim
45011 ARFLAGS!$ARFLAGS$ac_delim
45012 MAKE_SHELL!$MAKE_SHELL$ac_delim
45013 LOCAL_LIBS!$LOCAL_LIBS$ac_delim
45014 LOCAL_CFLAGS!$LOCAL_CFLAGS$ac_delim
45015 _ACEOF
45016
45017   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 94; then
45018     break
45019   elif $ac_last_try; then
45020     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
45021 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
45022    { (exit 1); exit 1; }; }
45023   else
45024     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
45025   fi
45026 done
45027
45028 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
45029 if test -n "$ac_eof"; then
45030   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
45031   ac_eof=`expr $ac_eof + 1`
45032 fi
45033
45034 cat >>$CONFIG_STATUS <<_ACEOF
45035 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
45036 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
45037 /^[      ]*@MCOMMON@[    ]*$/{
45038 r $MCOMMON
45039 d
45040 }
45041 _ACEOF
45042 sed '
45043 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
45044 s/^/s,@/; s/!/@,|#_!!_#|/
45045 :n
45046 t n
45047 s/'"$ac_delim"'$/,g/; t
45048 s/$/\\/; p
45049 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
45050 ' >>$CONFIG_STATUS <conf$$subs.sed
45051 rm -f conf$$subs.sed
45052 cat >>$CONFIG_STATUS <<_ACEOF
45053 CEOF$ac_eof
45054 _ACEOF
45055
45056
45057 ac_delim='%!_!# '
45058 for ac_last_try in false false false false false :; do
45059   cat >conf$$subs.sed <<_ACEOF
45060 LOCAL_LDFLAGS!$LOCAL_LDFLAGS$ac_delim
45061 LOCAL_DEFS!$LOCAL_DEFS$ac_delim
45062 LIBTOOL!$LIBTOOL$ac_delim
45063 build!$build$ac_delim
45064 build_cpu!$build_cpu$ac_delim
45065 build_vendor!$build_vendor$ac_delim
45066 build_os!$build_os$ac_delim
45067 host!$host$ac_delim
45068 host_cpu!$host_cpu$ac_delim
45069 host_vendor!$host_vendor$ac_delim
45070 host_os!$host_os$ac_delim
45071 FGREP!$FGREP$ac_delim
45072 LD!$LD$ac_delim
45073 DUMPBIN!$DUMPBIN$ac_delim
45074 ac_ct_DUMPBIN!$ac_ct_DUMPBIN$ac_delim
45075 NM!$NM$ac_delim
45076 LN_S!$LN_S$ac_delim
45077 OBJDUMP!$OBJDUMP$ac_delim
45078 STRIP!$STRIP$ac_delim
45079 RANLIB!$RANLIB$ac_delim
45080 lt_ECHO!$lt_ECHO$ac_delim
45081 DSYMUTIL!$DSYMUTIL$ac_delim
45082 NMEDIT!$NMEDIT$ac_delim
45083 LIPO!$LIPO$ac_delim
45084 OTOOL!$OTOOL$ac_delim
45085 OTOOL64!$OTOOL64$ac_delim
45086 CXXCPP!$CXXCPP$ac_delim
45087 DEFAULT_OBJECT_TYPE!$DEFAULT_OBJECT_TYPE$ac_delim
45088 DEFAULT_ARCHIVE_TYPE!$DEFAULT_ARCHIVE_TYPE$ac_delim
45089 DEFAULT_SHARED_OBJECT_TYPE!$DEFAULT_SHARED_OBJECT_TYPE$ac_delim
45090 LIBTOOL_INSTALL_TARGET!$LIBTOOL_INSTALL_TARGET$ac_delim
45091 LIBTOOL_UNINSTALL_TARGET!$LIBTOOL_UNINSTALL_TARGET$ac_delim
45092 LIBTOOL_CLEAN_TARGET!$LIBTOOL_CLEAN_TARGET$ac_delim
45093 QMAKE_LIBTOOL!$QMAKE_LIBTOOL$ac_delim
45094 INCLUDE_INSTALL_TARGET!$INCLUDE_INSTALL_TARGET$ac_delim
45095 INCLUDE_UNINSTALL_TARGET!$INCLUDE_UNINSTALL_TARGET$ac_delim
45096 HAVE_SUN_OS_TRUE!$HAVE_SUN_OS_TRUE$ac_delim
45097 HAVE_SUN_OS_FALSE!$HAVE_SUN_OS_FALSE$ac_delim
45098 HAVE_OSF1_OS_TRUE!$HAVE_OSF1_OS_TRUE$ac_delim
45099 HAVE_OSF1_OS_FALSE!$HAVE_OSF1_OS_FALSE$ac_delim
45100 HAVE_AIX_OS_TRUE!$HAVE_AIX_OS_TRUE$ac_delim
45101 HAVE_AIX_OS_FALSE!$HAVE_AIX_OS_FALSE$ac_delim
45102 HAVE_HPUX_OS_TRUE!$HAVE_HPUX_OS_TRUE$ac_delim
45103 HAVE_HPUX_OS_FALSE!$HAVE_HPUX_OS_FALSE$ac_delim
45104 HAVE_LINUX_OS_TRUE!$HAVE_LINUX_OS_TRUE$ac_delim
45105 HAVE_LINUX_OS_FALSE!$HAVE_LINUX_OS_FALSE$ac_delim
45106 HAVE_FREEBSD_OS_TRUE!$HAVE_FREEBSD_OS_TRUE$ac_delim
45107 HAVE_FREEBSD_OS_FALSE!$HAVE_FREEBSD_OS_FALSE$ac_delim
45108 HAVE_NETBSD_OS_TRUE!$HAVE_NETBSD_OS_TRUE$ac_delim
45109 HAVE_NETBSD_OS_FALSE!$HAVE_NETBSD_OS_FALSE$ac_delim
45110 HAVE_OPENBSD_OS_TRUE!$HAVE_OPENBSD_OS_TRUE$ac_delim
45111 HAVE_OPENBSD_OS_FALSE!$HAVE_OPENBSD_OS_FALSE$ac_delim
45112 HAVE_BSDI_OS_TRUE!$HAVE_BSDI_OS_TRUE$ac_delim
45113 HAVE_BSDI_OS_FALSE!$HAVE_BSDI_OS_FALSE$ac_delim
45114 HAVE_SGI_OS_TRUE!$HAVE_SGI_OS_TRUE$ac_delim
45115 HAVE_SGI_OS_FALSE!$HAVE_SGI_OS_FALSE$ac_delim
45116 HAVE_IRIX_OS_TRUE!$HAVE_IRIX_OS_TRUE$ac_delim
45117 HAVE_IRIX_OS_FALSE!$HAVE_IRIX_OS_FALSE$ac_delim
45118 HAVE_DARWIN_OS_TRUE!$HAVE_DARWIN_OS_TRUE$ac_delim
45119 HAVE_DARWIN_OS_FALSE!$HAVE_DARWIN_OS_FALSE$ac_delim
45120 SET_MAKE!$SET_MAKE$ac_delim
45121 MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
45122 USE_NLS!$USE_NLS$ac_delim
45123 MSGFMT!$MSGFMT$ac_delim
45124 GMSGFMT!$GMSGFMT$ac_delim
45125 XGETTEXT!$XGETTEXT$ac_delim
45126 MSGMERGE!$MSGMERGE$ac_delim
45127 INTL_MACOSX_LIBS!$INTL_MACOSX_LIBS$ac_delim
45128 LIBICONV!$LIBICONV$ac_delim
45129 LTLIBICONV!$LTLIBICONV$ac_delim
45130 INTLLIBS!$INTLLIBS$ac_delim
45131 LIBINTL!$LIBINTL$ac_delim
45132 LTLIBINTL!$LTLIBINTL$ac_delim
45133 POSUB!$POSUB$ac_delim
45134 GLIBC2!$GLIBC2$ac_delim
45135 ALLOCA!$ALLOCA$ac_delim
45136 GLIBC21!$GLIBC21$ac_delim
45137 HAVE_POSIX_PRINTF!$HAVE_POSIX_PRINTF$ac_delim
45138 HAVE_ASPRINTF!$HAVE_ASPRINTF$ac_delim
45139 HAVE_SNPRINTF!$HAVE_SNPRINTF$ac_delim
45140 HAVE_WPRINTF!$HAVE_WPRINTF$ac_delim
45141 INTLBISON!$INTLBISON$ac_delim
45142 BUILD_INCLUDED_LIBINTL!$BUILD_INCLUDED_LIBINTL$ac_delim
45143 USE_INCLUDED_LIBINTL!$USE_INCLUDED_LIBINTL$ac_delim
45144 CATOBJEXT!$CATOBJEXT$ac_delim
45145 DATADIRNAME!$DATADIRNAME$ac_delim
45146 INSTOBJEXT!$INSTOBJEXT$ac_delim
45147 GENCAT!$GENCAT$ac_delim
45148 INTLOBJS!$INTLOBJS$ac_delim
45149 INTL_LIBTOOL_SUFFIX_PREFIX!$INTL_LIBTOOL_SUFFIX_PREFIX$ac_delim
45150 BAT_DIR!$BAT_DIR$ac_delim
45151 QWT_INC!$QWT_INC$ac_delim
45152 QWT_LDFLAGS!$QWT_LDFLAGS$ac_delim
45153 QWT_LIB!$QWT_LIB$ac_delim
45154 QWT!$QWT$ac_delim
45155 WXCONS_CPPFLAGS!$WXCONS_CPPFLAGS$ac_delim
45156 WXCONS_LDFLAGS!$WXCONS_LDFLAGS$ac_delim
45157 _ACEOF
45158
45159   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
45160     break
45161   elif $ac_last_try; then
45162     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
45163 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
45164    { (exit 1); exit 1; }; }
45165   else
45166     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
45167   fi
45168 done
45169
45170 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
45171 if test -n "$ac_eof"; then
45172   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
45173   ac_eof=`expr $ac_eof + 1`
45174 fi
45175
45176 cat >>$CONFIG_STATUS <<_ACEOF
45177 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
45178 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
45179 _ACEOF
45180 sed '
45181 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
45182 s/^/s,@/; s/!/@,|#_!!_#|/
45183 :n
45184 t n
45185 s/'"$ac_delim"'$/,g/; t
45186 s/$/\\/; p
45187 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
45188 ' >>$CONFIG_STATUS <conf$$subs.sed
45189 rm -f conf$$subs.sed
45190 cat >>$CONFIG_STATUS <<_ACEOF
45191 CEOF$ac_eof
45192 _ACEOF
45193
45194
45195 ac_delim='%!_!# '
45196 for ac_last_try in false false false false false :; do
45197   cat >conf$$subs.sed <<_ACEOF
45198 WX_DIR!$WX_DIR$ac_delim
45199 TRAY_MONITOR_CPPFLAGS!$TRAY_MONITOR_CPPFLAGS$ac_delim
45200 TRAY_MONITOR_LDFLAGS!$TRAY_MONITOR_LDFLAGS$ac_delim
45201 TRAY_MONITOR_DIR!$TRAY_MONITOR_DIR$ac_delim
45202 TTOOL_LDFLAGS!$TTOOL_LDFLAGS$ac_delim
45203 STATIC_FD!$STATIC_FD$ac_delim
45204 STATIC_SD!$STATIC_SD$ac_delim
45205 STATIC_DIR!$STATIC_DIR$ac_delim
45206 STATIC_CONS!$STATIC_CONS$ac_delim
45207 STATIC_GNOME_CONS!$STATIC_GNOME_CONS$ac_delim
45208 STATIC_WX_CONS!$STATIC_WX_CONS$ac_delim
45209 ALL_DIRS!$ALL_DIRS$ac_delim
45210 DIRD_DIR!$DIRD_DIR$ac_delim
45211 DIR_TOOLS!$DIR_TOOLS$ac_delim
45212 STORED_DIR!$STORED_DIR$ac_delim
45213 CONS_INC!$CONS_INC$ac_delim
45214 CONS_OBJ!$CONS_OBJ$ac_delim
45215 CONS_SRC!$CONS_SRC$ac_delim
45216 CONS_LIBS!$CONS_LIBS$ac_delim
45217 CONS_LDFLAGS!$CONS_LDFLAGS$ac_delim
45218 READLINE_SRC!$READLINE_SRC$ac_delim
45219 PYTHON_LIBS!$PYTHON_LIBS$ac_delim
45220 PYTHON_INCDIR!$PYTHON_INCDIR$ac_delim
45221 OPENSSL_LIBS!$OPENSSL_LIBS$ac_delim
45222 OPENSSL_INC!$OPENSSL_INC$ac_delim
45223 working_dir!$working_dir$ac_delim
45224 archivedir!$archivedir$ac_delim
45225 basename!$basename$ac_delim
45226 hostname!$hostname$ac_delim
45227 scriptdir!$scriptdir$ac_delim
45228 bsrdir!$bsrdir$ac_delim
45229 logdir!$logdir$ac_delim
45230 plugindir!$plugindir$ac_delim
45231 dump_email!$dump_email$ac_delim
45232 job_email!$job_email$ac_delim
45233 smtp_host!$smtp_host$ac_delim
45234 piddir!$piddir$ac_delim
45235 subsysdir!$subsysdir$ac_delim
45236 baseport!$baseport$ac_delim
45237 dir_port!$dir_port$ac_delim
45238 fd_port!$fd_port$ac_delim
45239 sd_port!$sd_port$ac_delim
45240 dir_password!$dir_password$ac_delim
45241 fd_password!$fd_password$ac_delim
45242 sd_password!$sd_password$ac_delim
45243 mon_dir_password!$mon_dir_password$ac_delim
45244 mon_fd_password!$mon_fd_password$ac_delim
45245 mon_sd_password!$mon_sd_password$ac_delim
45246 db_name!$db_name$ac_delim
45247 db_user!$db_user$ac_delim
45248 db_password!$db_password$ac_delim
45249 db_port!$db_port$ac_delim
45250 dir_user!$dir_user$ac_delim
45251 dir_group!$dir_group$ac_delim
45252 sd_user!$sd_user$ac_delim
45253 sd_group!$sd_group$ac_delim
45254 fd_user!$fd_user$ac_delim
45255 fd_group!$fd_group$ac_delim
45256 SBINPERM!$SBINPERM$ac_delim
45257 SQL_LFLAGS!$SQL_LFLAGS$ac_delim
45258 SQL_INCLUDE!$SQL_INCLUDE$ac_delim
45259 SQL_BINDIR!$SQL_BINDIR$ac_delim
45260 DBI_DBD_DRIVERDIR!$DBI_DBD_DRIVERDIR$ac_delim
45261 uncomment_dbi!$uncomment_dbi$ac_delim
45262 DB_PROG!$DB_PROG$ac_delim
45263 DB_PROG_LIB!$DB_PROG_LIB$ac_delim
45264 cats!$cats$ac_delim
45265 DB_TYPE!$DB_TYPE$ac_delim
45266 GETCONF!$GETCONF$ac_delim
45267 XMKMF!$XMKMF$ac_delim
45268 X_CFLAGS!$X_CFLAGS$ac_delim
45269 X_PRE_LIBS!$X_PRE_LIBS$ac_delim
45270 X_LIBS!$X_LIBS$ac_delim
45271 X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
45272 LIBOBJS!$LIBOBJS$ac_delim
45273 CAP_LIBS!$CAP_LIBS$ac_delim
45274 FDLIBS!$FDLIBS$ac_delim
45275 DEBUG!$DEBUG$ac_delim
45276 DINCLUDE!$DINCLUDE$ac_delim
45277 DLIB!$DLIB$ac_delim
45278 DB_LIBS!$DB_LIBS$ac_delim
45279 WCFLAGS!$WCFLAGS$ac_delim
45280 WLDFLAGS!$WLDFLAGS$ac_delim
45281 WRAPLIBS!$WRAPLIBS$ac_delim
45282 OBJLIST!$OBJLIST$ac_delim
45283 TAPEDRIVE!$TAPEDRIVE$ac_delim
45284 PSCMD!$PSCMD$ac_delim
45285 WIN32!$WIN32$ac_delim
45286 MACOSX!$MACOSX$ac_delim
45287 DISTNAME!$DISTNAME$ac_delim
45288 DISTVER!$DISTVER$ac_delim
45289 LTLIBOBJS!$LTLIBOBJS$ac_delim
45290 _ACEOF
45291
45292   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 92; then
45293     break
45294   elif $ac_last_try; then
45295     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
45296 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
45297    { (exit 1); exit 1; }; }
45298   else
45299     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
45300   fi
45301 done
45302
45303 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
45304 if test -n "$ac_eof"; then
45305   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
45306   ac_eof=`expr $ac_eof + 1`
45307 fi
45308
45309 cat >>$CONFIG_STATUS <<_ACEOF
45310 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
45311 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
45312 _ACEOF
45313 sed '
45314 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
45315 s/^/s,@/; s/!/@,|#_!!_#|/
45316 :n
45317 t n
45318 s/'"$ac_delim"'$/,g/; t
45319 s/$/\\/; p
45320 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
45321 ' >>$CONFIG_STATUS <conf$$subs.sed
45322 rm -f conf$$subs.sed
45323 cat >>$CONFIG_STATUS <<_ACEOF
45324 :end
45325 s/|#_!!_#|//g
45326 CEOF$ac_eof
45327 _ACEOF
45328
45329
45330 # VPATH may cause trouble with some makes, so we remove $(srcdir),
45331 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
45332 # trailing colons and then remove the whole line if VPATH becomes empty
45333 # (actually we leave an empty line to preserve line numbers).
45334 if test "x$srcdir" = x.; then
45335   ac_vpsub='/^[  ]*VPATH[        ]*=/{
45336 s/:*\$(srcdir):*/:/
45337 s/:*\${srcdir}:*/:/
45338 s/:*@srcdir@:*/:/
45339 s/^\([^=]*=[     ]*\):*/\1/
45340 s/:*$//
45341 s/^[^=]*=[       ]*$//
45342 }'
45343 fi
45344
45345 cat >>$CONFIG_STATUS <<\_ACEOF
45346 fi # test -n "$CONFIG_FILES"
45347
45348
45349 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
45350 do
45351   case $ac_tag in
45352   :[FHLC]) ac_mode=$ac_tag; continue;;
45353   esac
45354   case $ac_mode$ac_tag in
45355   :[FHL]*:*);;
45356   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
45357 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
45358    { (exit 1); exit 1; }; };;
45359   :[FH]-) ac_tag=-:-;;
45360   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
45361   esac
45362   ac_save_IFS=$IFS
45363   IFS=:
45364   set x $ac_tag
45365   IFS=$ac_save_IFS
45366   shift
45367   ac_file=$1
45368   shift
45369
45370   case $ac_mode in
45371   :L) ac_source=$1;;
45372   :[FH])
45373     ac_file_inputs=
45374     for ac_f
45375     do
45376       case $ac_f in
45377       -) ac_f="$tmp/stdin";;
45378       *) # Look for the file first in the build tree, then in the source tree
45379          # (if the path is not absolute).  The absolute path cannot be DOS-style,
45380          # because $ac_f cannot contain `:'.
45381          test -f "$ac_f" ||
45382            case $ac_f in
45383            [\\/$]*) false;;
45384            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
45385            esac ||
45386            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
45387 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
45388    { (exit 1); exit 1; }; };;
45389       esac
45390       ac_file_inputs="$ac_file_inputs $ac_f"
45391     done
45392
45393     # Let's still pretend it is `configure' which instantiates (i.e., don't
45394     # use $as_me), people would be surprised to read:
45395     #    /* config.h.  Generated by config.status.  */
45396     configure_input="Generated from "`IFS=:
45397           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
45398     if test x"$ac_file" != x-; then
45399       configure_input="$ac_file.  $configure_input"
45400       { echo "$as_me:$LINENO: creating $ac_file" >&5
45401 echo "$as_me: creating $ac_file" >&6;}
45402     fi
45403
45404     case $ac_tag in
45405     *:-:* | *:-) cat >"$tmp/stdin";;
45406     esac
45407     ;;
45408   esac
45409
45410   ac_dir=`$as_dirname -- "$ac_file" ||
45411 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
45412          X"$ac_file" : 'X\(//\)[^/]' \| \
45413          X"$ac_file" : 'X\(//\)$' \| \
45414          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
45415 echo X"$ac_file" |
45416     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
45417             s//\1/
45418             q
45419           }
45420           /^X\(\/\/\)[^/].*/{
45421             s//\1/
45422             q
45423           }
45424           /^X\(\/\/\)$/{
45425             s//\1/
45426             q
45427           }
45428           /^X\(\/\).*/{
45429             s//\1/
45430             q
45431           }
45432           s/.*/./; q'`
45433   { as_dir="$ac_dir"
45434   case $as_dir in #(
45435   -*) as_dir=./$as_dir;;
45436   esac
45437   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
45438     as_dirs=
45439     while :; do
45440       case $as_dir in #(
45441       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
45442       *) as_qdir=$as_dir;;
45443       esac
45444       as_dirs="'$as_qdir' $as_dirs"
45445       as_dir=`$as_dirname -- "$as_dir" ||
45446 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
45447          X"$as_dir" : 'X\(//\)[^/]' \| \
45448          X"$as_dir" : 'X\(//\)$' \| \
45449          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
45450 echo X"$as_dir" |
45451     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
45452             s//\1/
45453             q
45454           }
45455           /^X\(\/\/\)[^/].*/{
45456             s//\1/
45457             q
45458           }
45459           /^X\(\/\/\)$/{
45460             s//\1/
45461             q
45462           }
45463           /^X\(\/\).*/{
45464             s//\1/
45465             q
45466           }
45467           s/.*/./; q'`
45468       test -d "$as_dir" && break
45469     done
45470     test -z "$as_dirs" || eval "mkdir $as_dirs"
45471   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
45472 echo "$as_me: error: cannot create directory $as_dir" >&2;}
45473    { (exit 1); exit 1; }; }; }
45474   ac_builddir=.
45475
45476 case "$ac_dir" in
45477 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
45478 *)
45479   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
45480   # A ".." for each directory in $ac_dir_suffix.
45481   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
45482   case $ac_top_builddir_sub in
45483   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
45484   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
45485   esac ;;
45486 esac
45487 ac_abs_top_builddir=$ac_pwd
45488 ac_abs_builddir=$ac_pwd$ac_dir_suffix
45489 # for backward compatibility:
45490 ac_top_builddir=$ac_top_build_prefix
45491
45492 case $srcdir in
45493   .)  # We are building in place.
45494     ac_srcdir=.
45495     ac_top_srcdir=$ac_top_builddir_sub
45496     ac_abs_top_srcdir=$ac_pwd ;;
45497   [\\/]* | ?:[\\/]* )  # Absolute name.
45498     ac_srcdir=$srcdir$ac_dir_suffix;
45499     ac_top_srcdir=$srcdir
45500     ac_abs_top_srcdir=$srcdir ;;
45501   *) # Relative name.
45502     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
45503     ac_top_srcdir=$ac_top_build_prefix$srcdir
45504     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
45505 esac
45506 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
45507
45508
45509   case $ac_mode in
45510   :F)
45511   #
45512   # CONFIG_FILE
45513   #
45514
45515   case $INSTALL in
45516   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
45517   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
45518   esac
45519 _ACEOF
45520
45521 cat >>$CONFIG_STATUS <<\_ACEOF
45522 # If the template does not know about datarootdir, expand it.
45523 # FIXME: This hack should be removed a few years after 2.60.
45524 ac_datarootdir_hack=; ac_datarootdir_seen=
45525
45526 case `sed -n '/datarootdir/ {
45527   p
45528   q
45529 }
45530 /@datadir@/p
45531 /@docdir@/p
45532 /@infodir@/p
45533 /@localedir@/p
45534 /@mandir@/p
45535 ' $ac_file_inputs` in
45536 *datarootdir*) ac_datarootdir_seen=yes;;
45537 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
45538   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
45539 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
45540 _ACEOF
45541 cat >>$CONFIG_STATUS <<_ACEOF
45542   ac_datarootdir_hack='
45543   s&@datadir@&$datadir&g
45544   s&@docdir@&$docdir&g
45545   s&@infodir@&$infodir&g
45546   s&@localedir@&$localedir&g
45547   s&@mandir@&$mandir&g
45548     s&\\\${datarootdir}&$datarootdir&g' ;;
45549 esac
45550 _ACEOF
45551
45552 # Neutralize VPATH when `$srcdir' = `.'.
45553 # Shell code in configure.ac might set extrasub.
45554 # FIXME: do we really want to maintain this feature?
45555 cat >>$CONFIG_STATUS <<_ACEOF
45556   sed "$ac_vpsub
45557 $extrasub
45558 _ACEOF
45559 cat >>$CONFIG_STATUS <<\_ACEOF
45560 :t
45561 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
45562 s&@configure_input@&$configure_input&;t t
45563 s&@top_builddir@&$ac_top_builddir_sub&;t t
45564 s&@srcdir@&$ac_srcdir&;t t
45565 s&@abs_srcdir@&$ac_abs_srcdir&;t t
45566 s&@top_srcdir@&$ac_top_srcdir&;t t
45567 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
45568 s&@builddir@&$ac_builddir&;t t
45569 s&@abs_builddir@&$ac_abs_builddir&;t t
45570 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
45571 s&@INSTALL@&$ac_INSTALL&;t t
45572 $ac_datarootdir_hack
45573 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
45574
45575 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
45576   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
45577   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
45578   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
45579 which seems to be undefined.  Please make sure it is defined." >&5
45580 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
45581 which seems to be undefined.  Please make sure it is defined." >&2;}
45582
45583   rm -f "$tmp/stdin"
45584   case $ac_file in
45585   -) cat "$tmp/out"; rm -f "$tmp/out";;
45586   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
45587   esac
45588  ;;
45589   :H)
45590   #
45591   # CONFIG_HEADER
45592   #
45593 _ACEOF
45594
45595 # Transform confdefs.h into a sed script `conftest.defines', that
45596 # substitutes the proper values into config.h.in to produce config.h.
45597 rm -f conftest.defines conftest.tail
45598 # First, append a space to every undef/define line, to ease matching.
45599 echo 's/$/ /' >conftest.defines
45600 # Then, protect against being on the right side of a sed subst, or in
45601 # an unquoted here document, in config.status.  If some macros were
45602 # called several times there might be several #defines for the same
45603 # symbol, which is useless.  But do not sort them, since the last
45604 # AC_DEFINE must be honored.
45605 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
45606 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
45607 # NAME is the cpp macro being defined, VALUE is the value it is being given.
45608 # PARAMS is the parameter list in the macro definition--in most cases, it's
45609 # just an empty string.
45610 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
45611 ac_dB='\\)[      (].*,\\1define\\2'
45612 ac_dC=' '
45613 ac_dD=' ,'
45614
45615 uniq confdefs.h |
45616   sed -n '
45617         t rset
45618         :rset
45619         s/^[     ]*#[    ]*define[       ][      ]*//
45620         t ok
45621         d
45622         :ok
45623         s/[\\&,]/\\&/g
45624         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
45625         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
45626   ' >>conftest.defines
45627
45628 # Remove the space that was appended to ease matching.
45629 # Then replace #undef with comments.  This is necessary, for
45630 # example, in the case of _POSIX_SOURCE, which is predefined and required
45631 # on some systems where configure will not decide to define it.
45632 # (The regexp can be short, since the line contains either #define or #undef.)
45633 echo 's/ $//
45634 s,^[     #]*u.*,/* & */,' >>conftest.defines
45635
45636 # Break up conftest.defines:
45637 ac_max_sed_lines=50
45638
45639 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
45640 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
45641 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
45642 # et cetera.
45643 ac_in='$ac_file_inputs'
45644 ac_out='"$tmp/out1"'
45645 ac_nxt='"$tmp/out2"'
45646
45647 while :
45648 do
45649   # Write a here document:
45650     cat >>$CONFIG_STATUS <<_ACEOF
45651     # First, check the format of the line:
45652     cat >"\$tmp/defines.sed" <<\\CEOF
45653 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
45654 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
45655 b
45656 :def
45657 _ACEOF
45658   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
45659   echo 'CEOF
45660     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
45661   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
45662   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
45663   grep . conftest.tail >/dev/null || break
45664   rm -f conftest.defines
45665   mv conftest.tail conftest.defines
45666 done
45667 rm -f conftest.defines conftest.tail
45668
45669 echo "ac_result=$ac_in" >>$CONFIG_STATUS
45670 cat >>$CONFIG_STATUS <<\_ACEOF
45671   if test x"$ac_file" != x-; then
45672     echo "/* $configure_input  */" >"$tmp/config.h"
45673     cat "$ac_result" >>"$tmp/config.h"
45674     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
45675       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
45676 echo "$as_me: $ac_file is unchanged" >&6;}
45677     else
45678       rm -f $ac_file
45679       mv "$tmp/config.h" $ac_file
45680     fi
45681   else
45682     echo "/* $configure_input  */"
45683     cat "$ac_result"
45684   fi
45685   rm -f "$tmp/out12"
45686  ;;
45687
45688   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
45689 echo "$as_me: executing $ac_file commands" >&6;}
45690  ;;
45691   esac
45692
45693
45694   case $ac_file$ac_mode in
45695     "libtool":C)
45696
45697     # See if we are running on zsh, and set the options which allow our
45698     # commands through without removal of \ escapes.
45699     if test -n "${ZSH_VERSION+set}" ; then
45700       setopt NO_GLOB_SUBST
45701     fi
45702
45703     cfgfile="${ofile}T"
45704     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
45705     $RM "$cfgfile"
45706
45707     cat <<_LT_EOF >> "$cfgfile"
45708 #! $SHELL
45709
45710 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
45711 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
45712 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
45713 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
45714 #
45715 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
45716 #                 2006, 2007, 2008 Free Software Foundation, Inc.
45717 #   Written by Gordon Matzigkeit, 1996
45718 #
45719 #   This file is part of GNU Libtool.
45720 #
45721 # GNU Libtool is free software; you can redistribute it and/or
45722 # modify it under the terms of the GNU General Public License as
45723 # published by the Free Software Foundation; either version 2 of
45724 # the License, or (at your option) any later version.
45725 #
45726 # As a special exception to the GNU General Public License,
45727 # if you distribute this file as part of a program or library that
45728 # is built using GNU Libtool, you may include this file under the
45729 # same distribution terms that you use for the rest of that program.
45730 #
45731 # GNU Libtool is distributed in the hope that it will be useful,
45732 # but WITHOUT ANY WARRANTY; without even the implied warranty of
45733 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
45734 # GNU General Public License for more details.
45735 #
45736 # You should have received a copy of the GNU General Public License
45737 # along with GNU Libtool; see the file COPYING.  If not, a copy
45738 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
45739 # obtained by writing to the Free Software Foundation, Inc.,
45740 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
45741
45742
45743 # The names of the tagged configurations supported by this script.
45744 available_tags="CXX "
45745
45746 # ### BEGIN LIBTOOL CONFIG
45747
45748 # Which release of libtool.m4 was used?
45749 macro_version=$macro_version
45750 macro_revision=$macro_revision
45751
45752 # Whether or not to build shared libraries.
45753 build_libtool_libs=$enable_shared
45754
45755 # Whether or not to build static libraries.
45756 build_old_libs=$enable_static
45757
45758 # What type of objects to build.
45759 pic_mode=$pic_mode
45760
45761 # Whether or not to optimize for fast installation.
45762 fast_install=$enable_fast_install
45763
45764 # The host system.
45765 host_alias=$host_alias
45766 host=$host
45767 host_os=$host_os
45768
45769 # The build system.
45770 build_alias=$build_alias
45771 build=$build
45772 build_os=$build_os
45773
45774 # A sed program that does not truncate output.
45775 SED=$lt_SED
45776
45777 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
45778 Xsed="\$SED -e 1s/^X//"
45779
45780 # A grep program that handles long lines.
45781 GREP=$lt_GREP
45782
45783 # An ERE matcher.
45784 EGREP=$lt_EGREP
45785
45786 # A literal string matcher.
45787 FGREP=$lt_FGREP
45788
45789 # A BSD- or MS-compatible name lister.
45790 NM=$lt_NM
45791
45792 # Whether we need soft or hard links.
45793 LN_S=$lt_LN_S
45794
45795 # What is the maximum length of a command?
45796 max_cmd_len=$max_cmd_len
45797
45798 # Object file suffix (normally "o").
45799 objext=$ac_objext
45800
45801 # Executable file suffix (normally "").
45802 exeext=$exeext
45803
45804 # whether the shell understands "unset".
45805 lt_unset=$lt_unset
45806
45807 # turn spaces into newlines.
45808 SP2NL=$lt_lt_SP2NL
45809
45810 # turn newlines into spaces.
45811 NL2SP=$lt_lt_NL2SP
45812
45813 # How to create reloadable object files.
45814 reload_flag=$lt_reload_flag
45815 reload_cmds=$lt_reload_cmds
45816
45817 # An object symbol dumper.
45818 OBJDUMP=$lt_OBJDUMP
45819
45820 # Method to check whether dependent libraries are shared objects.
45821 deplibs_check_method=$lt_deplibs_check_method
45822
45823 # Command to use when deplibs_check_method == "file_magic".
45824 file_magic_cmd=$lt_file_magic_cmd
45825
45826 # The archiver.
45827 AR=$lt_AR
45828 AR_FLAGS=$lt_AR_FLAGS
45829
45830 # A symbol stripping program.
45831 STRIP=$lt_STRIP
45832
45833 # Commands used to install an old-style archive.
45834 RANLIB=$lt_RANLIB
45835 old_postinstall_cmds=$lt_old_postinstall_cmds
45836 old_postuninstall_cmds=$lt_old_postuninstall_cmds
45837
45838 # A C compiler.
45839 LTCC=$lt_CC
45840
45841 # LTCC compiler flags.
45842 LTCFLAGS=$lt_CFLAGS
45843
45844 # Take the output of nm and produce a listing of raw symbols and C names.
45845 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
45846
45847 # Transform the output of nm in a proper C declaration.
45848 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
45849
45850 # Transform the output of nm in a C name address pair.
45851 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
45852
45853 # Transform the output of nm in a C name address pair when lib prefix is needed.
45854 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
45855
45856 # The name of the directory that contains temporary libtool files.
45857 objdir=$objdir
45858
45859 # Shell to use when invoking shell scripts.
45860 SHELL=$lt_SHELL
45861
45862 # An echo program that does not interpret backslashes.
45863 ECHO=$lt_ECHO
45864
45865 # Used to examine libraries when file_magic_cmd begins with "file".
45866 MAGIC_CMD=$MAGIC_CMD
45867
45868 # Must we lock files when doing compilation?
45869 need_locks=$lt_need_locks
45870
45871 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
45872 DSYMUTIL=$lt_DSYMUTIL
45873
45874 # Tool to change global to local symbols on Mac OS X.
45875 NMEDIT=$lt_NMEDIT
45876
45877 # Tool to manipulate fat objects and archives on Mac OS X.
45878 LIPO=$lt_LIPO
45879
45880 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
45881 OTOOL=$lt_OTOOL
45882
45883 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
45884 OTOOL64=$lt_OTOOL64
45885
45886 # Old archive suffix (normally "a").
45887 libext=$libext
45888
45889 # Shared library suffix (normally ".so").
45890 shrext_cmds=$lt_shrext_cmds
45891
45892 # The commands to extract the exported symbol list from a shared archive.
45893 extract_expsyms_cmds=$lt_extract_expsyms_cmds
45894
45895 # Variables whose values should be saved in libtool wrapper scripts and
45896 # restored at link time.
45897 variables_saved_for_relink=$lt_variables_saved_for_relink
45898
45899 # Do we need the "lib" prefix for modules?
45900 need_lib_prefix=$need_lib_prefix
45901
45902 # Do we need a version for libraries?
45903 need_version=$need_version
45904
45905 # Library versioning type.
45906 version_type=$version_type
45907
45908 # Shared library runtime path variable.
45909 runpath_var=$runpath_var
45910
45911 # Shared library path variable.
45912 shlibpath_var=$shlibpath_var
45913
45914 # Is shlibpath searched before the hard-coded library search path?
45915 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
45916
45917 # Format of library name prefix.
45918 libname_spec=$lt_libname_spec
45919
45920 # List of archive names.  First name is the real one, the rest are links.
45921 # The last name is the one that the linker finds with -lNAME
45922 library_names_spec=$lt_library_names_spec
45923
45924 # The coded name of the library, if different from the real name.
45925 soname_spec=$lt_soname_spec
45926
45927 # Command to use after installation of a shared archive.
45928 postinstall_cmds=$lt_postinstall_cmds
45929
45930 # Command to use after uninstallation of a shared archive.
45931 postuninstall_cmds=$lt_postuninstall_cmds
45932
45933 # Commands used to finish a libtool library installation in a directory.
45934 finish_cmds=$lt_finish_cmds
45935
45936 # As "finish_cmds", except a single script fragment to be evaled but
45937 # not shown.
45938 finish_eval=$lt_finish_eval
45939
45940 # Whether we should hardcode library paths into libraries.
45941 hardcode_into_libs=$hardcode_into_libs
45942
45943 # Compile-time system search path for libraries.
45944 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
45945
45946 # Run-time system search path for libraries.
45947 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
45948
45949 # Whether dlopen is supported.
45950 dlopen_support=$enable_dlopen
45951
45952 # Whether dlopen of programs is supported.
45953 dlopen_self=$enable_dlopen_self
45954
45955 # Whether dlopen of statically linked programs is supported.
45956 dlopen_self_static=$enable_dlopen_self_static
45957
45958 # Commands to strip libraries.
45959 old_striplib=$lt_old_striplib
45960 striplib=$lt_striplib
45961
45962
45963 # The linker used to build libraries.
45964 LD=$lt_LD
45965
45966 # Commands used to build an old-style archive.
45967 old_archive_cmds=$lt_old_archive_cmds
45968
45969 # A language specific compiler.
45970 CC=$lt_compiler
45971
45972 # Is the compiler the GNU compiler?
45973 with_gcc=$GCC
45974
45975 # Compiler flag to turn off builtin functions.
45976 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
45977
45978 # How to pass a linker flag through the compiler.
45979 wl=$lt_lt_prog_compiler_wl
45980
45981 # Additional compiler flags for building library objects.
45982 pic_flag=$lt_lt_prog_compiler_pic
45983
45984 # Compiler flag to prevent dynamic linking.
45985 link_static_flag=$lt_lt_prog_compiler_static
45986
45987 # Does compiler simultaneously support -c and -o options?
45988 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
45989
45990 # Whether or not to add -lc for building shared libraries.
45991 build_libtool_need_lc=$archive_cmds_need_lc
45992
45993 # Whether or not to disallow shared libs when runtime libs are static.
45994 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
45995
45996 # Compiler flag to allow reflexive dlopens.
45997 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
45998
45999 # Compiler flag to generate shared objects directly from archives.
46000 whole_archive_flag_spec=$lt_whole_archive_flag_spec
46001
46002 # Whether the compiler copes with passing no objects directly.
46003 compiler_needs_object=$lt_compiler_needs_object
46004
46005 # Create an old-style archive from a shared archive.
46006 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
46007
46008 # Create a temporary old-style archive to link instead of a shared archive.
46009 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
46010
46011 # Commands used to build a shared archive.
46012 archive_cmds=$lt_archive_cmds
46013 archive_expsym_cmds=$lt_archive_expsym_cmds
46014
46015 # Commands used to build a loadable module if different from building
46016 # a shared archive.
46017 module_cmds=$lt_module_cmds
46018 module_expsym_cmds=$lt_module_expsym_cmds
46019
46020 # Whether we are building with GNU ld or not.
46021 with_gnu_ld=$lt_with_gnu_ld
46022
46023 # Flag that allows shared libraries with undefined symbols to be built.
46024 allow_undefined_flag=$lt_allow_undefined_flag
46025
46026 # Flag that enforces no undefined symbols.
46027 no_undefined_flag=$lt_no_undefined_flag
46028
46029 # Flag to hardcode \$libdir into a binary during linking.
46030 # This must work even if \$libdir does not exist
46031 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
46032
46033 # If ld is used when linking, flag to hardcode \$libdir into a binary
46034 # during linking.  This must work even if \$libdir does not exist.
46035 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
46036
46037 # Whether we need a single "-rpath" flag with a separated argument.
46038 hardcode_libdir_separator=$lt_hardcode_libdir_separator
46039
46040 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
46041 # DIR into the resulting binary.
46042 hardcode_direct=$hardcode_direct
46043
46044 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
46045 # DIR into the resulting binary and the resulting library dependency is
46046 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
46047 # library is relocated.
46048 hardcode_direct_absolute=$hardcode_direct_absolute
46049
46050 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
46051 # into the resulting binary.
46052 hardcode_minus_L=$hardcode_minus_L
46053
46054 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
46055 # into the resulting binary.
46056 hardcode_shlibpath_var=$hardcode_shlibpath_var
46057
46058 # Set to "yes" if building a shared library automatically hardcodes DIR
46059 # into the library and all subsequent libraries and executables linked
46060 # against it.
46061 hardcode_automatic=$hardcode_automatic
46062
46063 # Set to yes if linker adds runtime paths of dependent libraries
46064 # to runtime path list.
46065 inherit_rpath=$inherit_rpath
46066
46067 # Whether libtool must link a program against all its dependency libraries.
46068 link_all_deplibs=$link_all_deplibs
46069
46070 # Fix the shell variable \$srcfile for the compiler.
46071 fix_srcfile_path=$lt_fix_srcfile_path
46072
46073 # Set to "yes" if exported symbols are required.
46074 always_export_symbols=$always_export_symbols
46075
46076 # The commands to list exported symbols.
46077 export_symbols_cmds=$lt_export_symbols_cmds
46078
46079 # Symbols that should not be listed in the preloaded symbols.
46080 exclude_expsyms=$lt_exclude_expsyms
46081
46082 # Symbols that must always be exported.
46083 include_expsyms=$lt_include_expsyms
46084
46085 # Commands necessary for linking programs (against libraries) with templates.
46086 prelink_cmds=$lt_prelink_cmds
46087
46088 # Specify filename containing input files.
46089 file_list_spec=$lt_file_list_spec
46090
46091 # How to hardcode a shared library path into an executable.
46092 hardcode_action=$hardcode_action
46093
46094 # The directories searched by this compiler when creating a shared library.
46095 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
46096
46097 # Dependencies to place before and after the objects being linked to
46098 # create a shared library.
46099 predep_objects=$lt_predep_objects
46100 postdep_objects=$lt_postdep_objects
46101 predeps=$lt_predeps
46102 postdeps=$lt_postdeps
46103
46104 # The library search path used internally by the compiler when linking
46105 # a shared library.
46106 compiler_lib_search_path=$lt_compiler_lib_search_path
46107
46108 # ### END LIBTOOL CONFIG
46109
46110 _LT_EOF
46111
46112   case $host_os in
46113   aix3*)
46114     cat <<\_LT_EOF >> "$cfgfile"
46115 # AIX sometimes has problems with the GCC collect2 program.  For some
46116 # reason, if we set the COLLECT_NAMES environment variable, the problems
46117 # vanish in a puff of smoke.
46118 if test "X${COLLECT_NAMES+set}" != Xset; then
46119   COLLECT_NAMES=
46120   export COLLECT_NAMES
46121 fi
46122 _LT_EOF
46123     ;;
46124   esac
46125
46126
46127 ltmain="$ac_aux_dir/ltmain.sh"
46128
46129
46130   # We use sed instead of cat because bash on DJGPP gets confused if
46131   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
46132   # text mode, it properly converts lines to CR/LF.  This bash problem
46133   # is reportedly fixed, but why not run on old versions too?
46134   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
46135     || (rm -f "$cfgfile"; exit 1)
46136
46137   case $xsi_shell in
46138   yes)
46139     cat << \_LT_EOF >> "$cfgfile"
46140
46141 # func_dirname file append nondir_replacement
46142 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
46143 # otherwise set result to NONDIR_REPLACEMENT.
46144 func_dirname ()
46145 {
46146   case ${1} in
46147     */*) func_dirname_result="${1%/*}${2}" ;;
46148     *  ) func_dirname_result="${3}" ;;
46149   esac
46150 }
46151
46152 # func_basename file
46153 func_basename ()
46154 {
46155   func_basename_result="${1##*/}"
46156 }
46157
46158 # func_dirname_and_basename file append nondir_replacement
46159 # perform func_basename and func_dirname in a single function
46160 # call:
46161 #   dirname:  Compute the dirname of FILE.  If nonempty,
46162 #             add APPEND to the result, otherwise set result
46163 #             to NONDIR_REPLACEMENT.
46164 #             value returned in "$func_dirname_result"
46165 #   basename: Compute filename of FILE.
46166 #             value retuned in "$func_basename_result"
46167 # Implementation must be kept synchronized with func_dirname
46168 # and func_basename. For efficiency, we do not delegate to
46169 # those functions but instead duplicate the functionality here.
46170 func_dirname_and_basename ()
46171 {
46172   case ${1} in
46173     */*) func_dirname_result="${1%/*}${2}" ;;
46174     *  ) func_dirname_result="${3}" ;;
46175   esac
46176   func_basename_result="${1##*/}"
46177 }
46178
46179 # func_stripname prefix suffix name
46180 # strip PREFIX and SUFFIX off of NAME.
46181 # PREFIX and SUFFIX must not contain globbing or regex special
46182 # characters, hashes, percent signs, but SUFFIX may contain a leading
46183 # dot (in which case that matches only a dot).
46184 func_stripname ()
46185 {
46186   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
46187   # positional parameters, so assign one to ordinary parameter first.
46188   func_stripname_result=${3}
46189   func_stripname_result=${func_stripname_result#"${1}"}
46190   func_stripname_result=${func_stripname_result%"${2}"}
46191 }
46192
46193 # func_opt_split
46194 func_opt_split ()
46195 {
46196   func_opt_split_opt=${1%%=*}
46197   func_opt_split_arg=${1#*=}
46198 }
46199
46200 # func_lo2o object
46201 func_lo2o ()
46202 {
46203   case ${1} in
46204     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
46205     *)    func_lo2o_result=${1} ;;
46206   esac
46207 }
46208
46209 # func_xform libobj-or-source
46210 func_xform ()
46211 {
46212   func_xform_result=${1%.*}.lo
46213 }
46214
46215 # func_arith arithmetic-term...
46216 func_arith ()
46217 {
46218   func_arith_result=$(( $* ))
46219 }
46220
46221 # func_len string
46222 # STRING may not start with a hyphen.
46223 func_len ()
46224 {
46225   func_len_result=${#1}
46226 }
46227
46228 _LT_EOF
46229     ;;
46230   *) # Bourne compatible functions.
46231     cat << \_LT_EOF >> "$cfgfile"
46232
46233 # func_dirname file append nondir_replacement
46234 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
46235 # otherwise set result to NONDIR_REPLACEMENT.
46236 func_dirname ()
46237 {
46238   # Extract subdirectory from the argument.
46239   func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
46240   if test "X$func_dirname_result" = "X${1}"; then
46241     func_dirname_result="${3}"
46242   else
46243     func_dirname_result="$func_dirname_result${2}"
46244   fi
46245 }
46246
46247 # func_basename file
46248 func_basename ()
46249 {
46250   func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
46251 }
46252
46253
46254 # func_stripname prefix suffix name
46255 # strip PREFIX and SUFFIX off of NAME.
46256 # PREFIX and SUFFIX must not contain globbing or regex special
46257 # characters, hashes, percent signs, but SUFFIX may contain a leading
46258 # dot (in which case that matches only a dot).
46259 # func_strip_suffix prefix name
46260 func_stripname ()
46261 {
46262   case ${2} in
46263     .*) func_stripname_result=`$ECHO "X${3}" \
46264            | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
46265     *)  func_stripname_result=`$ECHO "X${3}" \
46266            | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
46267   esac
46268 }
46269
46270 # sed scripts:
46271 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
46272 my_sed_long_arg='1s/^-[^=]*=//'
46273
46274 # func_opt_split
46275 func_opt_split ()
46276 {
46277   func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
46278   func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
46279 }
46280
46281 # func_lo2o object
46282 func_lo2o ()
46283 {
46284   func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
46285 }
46286
46287 # func_xform libobj-or-source
46288 func_xform ()
46289 {
46290   func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
46291 }
46292
46293 # func_arith arithmetic-term...
46294 func_arith ()
46295 {
46296   func_arith_result=`expr "$@"`
46297 }
46298
46299 # func_len string
46300 # STRING may not start with a hyphen.
46301 func_len ()
46302 {
46303   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
46304 }
46305
46306 _LT_EOF
46307 esac
46308
46309 case $lt_shell_append in
46310   yes)
46311     cat << \_LT_EOF >> "$cfgfile"
46312
46313 # func_append var value
46314 # Append VALUE to the end of shell variable VAR.
46315 func_append ()
46316 {
46317   eval "$1+=\$2"
46318 }
46319 _LT_EOF
46320     ;;
46321   *)
46322     cat << \_LT_EOF >> "$cfgfile"
46323
46324 # func_append var value
46325 # Append VALUE to the end of shell variable VAR.
46326 func_append ()
46327 {
46328   eval "$1=\$$1\$2"
46329 }
46330
46331 _LT_EOF
46332     ;;
46333   esac
46334
46335
46336   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
46337     || (rm -f "$cfgfile"; exit 1)
46338
46339   mv -f "$cfgfile" "$ofile" ||
46340     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
46341   chmod +x "$ofile"
46342
46343
46344     cat <<_LT_EOF >> "$ofile"
46345
46346 # ### BEGIN LIBTOOL TAG CONFIG: CXX
46347
46348 # The linker used to build libraries.
46349 LD=$lt_LD_CXX
46350
46351 # Commands used to build an old-style archive.
46352 old_archive_cmds=$lt_old_archive_cmds_CXX
46353
46354 # A language specific compiler.
46355 CC=$lt_compiler_CXX
46356
46357 # Is the compiler the GNU compiler?
46358 with_gcc=$GCC_CXX
46359
46360 # Compiler flag to turn off builtin functions.
46361 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
46362
46363 # How to pass a linker flag through the compiler.
46364 wl=$lt_lt_prog_compiler_wl_CXX
46365
46366 # Additional compiler flags for building library objects.
46367 pic_flag=$lt_lt_prog_compiler_pic_CXX
46368
46369 # Compiler flag to prevent dynamic linking.
46370 link_static_flag=$lt_lt_prog_compiler_static_CXX
46371
46372 # Does compiler simultaneously support -c and -o options?
46373 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
46374
46375 # Whether or not to add -lc for building shared libraries.
46376 build_libtool_need_lc=$archive_cmds_need_lc_CXX
46377
46378 # Whether or not to disallow shared libs when runtime libs are static.
46379 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
46380
46381 # Compiler flag to allow reflexive dlopens.
46382 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
46383
46384 # Compiler flag to generate shared objects directly from archives.
46385 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
46386
46387 # Whether the compiler copes with passing no objects directly.
46388 compiler_needs_object=$lt_compiler_needs_object_CXX
46389
46390 # Create an old-style archive from a shared archive.
46391 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
46392
46393 # Create a temporary old-style archive to link instead of a shared archive.
46394 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
46395
46396 # Commands used to build a shared archive.
46397 archive_cmds=$lt_archive_cmds_CXX
46398 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
46399
46400 # Commands used to build a loadable module if different from building
46401 # a shared archive.
46402 module_cmds=$lt_module_cmds_CXX
46403 module_expsym_cmds=$lt_module_expsym_cmds_CXX
46404
46405 # Whether we are building with GNU ld or not.
46406 with_gnu_ld=$lt_with_gnu_ld_CXX
46407
46408 # Flag that allows shared libraries with undefined symbols to be built.
46409 allow_undefined_flag=$lt_allow_undefined_flag_CXX
46410
46411 # Flag that enforces no undefined symbols.
46412 no_undefined_flag=$lt_no_undefined_flag_CXX
46413
46414 # Flag to hardcode \$libdir into a binary during linking.
46415 # This must work even if \$libdir does not exist
46416 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
46417
46418 # If ld is used when linking, flag to hardcode \$libdir into a binary
46419 # during linking.  This must work even if \$libdir does not exist.
46420 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
46421
46422 # Whether we need a single "-rpath" flag with a separated argument.
46423 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
46424
46425 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
46426 # DIR into the resulting binary.
46427 hardcode_direct=$hardcode_direct_CXX
46428
46429 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
46430 # DIR into the resulting binary and the resulting library dependency is
46431 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
46432 # library is relocated.
46433 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
46434
46435 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
46436 # into the resulting binary.
46437 hardcode_minus_L=$hardcode_minus_L_CXX
46438
46439 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
46440 # into the resulting binary.
46441 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
46442
46443 # Set to "yes" if building a shared library automatically hardcodes DIR
46444 # into the library and all subsequent libraries and executables linked
46445 # against it.
46446 hardcode_automatic=$hardcode_automatic_CXX
46447
46448 # Set to yes if linker adds runtime paths of dependent libraries
46449 # to runtime path list.
46450 inherit_rpath=$inherit_rpath_CXX
46451
46452 # Whether libtool must link a program against all its dependency libraries.
46453 link_all_deplibs=$link_all_deplibs_CXX
46454
46455 # Fix the shell variable \$srcfile for the compiler.
46456 fix_srcfile_path=$lt_fix_srcfile_path_CXX
46457
46458 # Set to "yes" if exported symbols are required.
46459 always_export_symbols=$always_export_symbols_CXX
46460
46461 # The commands to list exported symbols.
46462 export_symbols_cmds=$lt_export_symbols_cmds_CXX
46463
46464 # Symbols that should not be listed in the preloaded symbols.
46465 exclude_expsyms=$lt_exclude_expsyms_CXX
46466
46467 # Symbols that must always be exported.
46468 include_expsyms=$lt_include_expsyms_CXX
46469
46470 # Commands necessary for linking programs (against libraries) with templates.
46471 prelink_cmds=$lt_prelink_cmds_CXX
46472
46473 # Specify filename containing input files.
46474 file_list_spec=$lt_file_list_spec_CXX
46475
46476 # How to hardcode a shared library path into an executable.
46477 hardcode_action=$hardcode_action_CXX
46478
46479 # The directories searched by this compiler when creating a shared library.
46480 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
46481
46482 # Dependencies to place before and after the objects being linked to
46483 # create a shared library.
46484 predep_objects=$lt_predep_objects_CXX
46485 postdep_objects=$lt_postdep_objects_CXX
46486 predeps=$lt_predeps_CXX
46487 postdeps=$lt_postdeps_CXX
46488
46489 # The library search path used internally by the compiler when linking
46490 # a shared library.
46491 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
46492
46493 # ### END LIBTOOL TAG CONFIG: CXX
46494 _LT_EOF
46495
46496  ;;
46497     "default-1":C)
46498     for ac_file in $CONFIG_FILES; do
46499       # Support "outfile[:infile[:infile...]]"
46500       case "$ac_file" in
46501         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
46502       esac
46503       # PO directories have a Makefile.in generated from Makefile.in.in.
46504       case "$ac_file" in */Makefile.in)
46505         # Adjust a relative srcdir.
46506         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
46507         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
46508         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
46509         # In autoconf-2.13 it is called $ac_given_srcdir.
46510         # In autoconf-2.50 it is called $srcdir.
46511         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
46512         case "$ac_given_srcdir" in
46513           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
46514           /*) top_srcdir="$ac_given_srcdir" ;;
46515           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
46516         esac
46517         # Treat a directory as a PO directory if and only if it has a
46518         # POTFILES.in file. This allows packages to have multiple PO
46519         # directories under different names or in different locations.
46520         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
46521           rm -f "$ac_dir/POTFILES"
46522           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
46523           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
46524           POMAKEFILEDEPS="POTFILES.in"
46525           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
46526           # on $ac_dir but don't depend on user-specified configuration
46527           # parameters.
46528           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
46529             # The LINGUAS file contains the set of available languages.
46530             if test -n "$OBSOLETE_ALL_LINGUAS"; then
46531               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
46532             fi
46533             ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
46534             # Hide the ALL_LINGUAS assigment from automake.
46535             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
46536             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
46537           else
46538             # The set of available languages was given in configure.in.
46539             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
46540           fi
46541           # Compute POFILES
46542           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
46543           # Compute UPDATEPOFILES
46544           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
46545           # Compute DUMMYPOFILES
46546           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
46547           # Compute GMOFILES
46548           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
46549           case "$ac_given_srcdir" in
46550             .) srcdirpre= ;;
46551             *) srcdirpre='$(srcdir)/' ;;
46552           esac
46553           POFILES=
46554           UPDATEPOFILES=
46555           DUMMYPOFILES=
46556           GMOFILES=
46557           for lang in $ALL_LINGUAS; do
46558             POFILES="$POFILES $srcdirpre$lang.po"
46559             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
46560             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
46561             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
46562           done
46563           # CATALOGS depends on both $ac_dir and the user's LINGUAS
46564           # environment variable.
46565           INST_LINGUAS=
46566           if test -n "$ALL_LINGUAS"; then
46567             for presentlang in $ALL_LINGUAS; do
46568               useit=no
46569               if test "%UNSET%" != "$LINGUAS"; then
46570                 desiredlanguages="$LINGUAS"
46571               else
46572                 desiredlanguages="$ALL_LINGUAS"
46573               fi
46574               for desiredlang in $desiredlanguages; do
46575                 # Use the presentlang catalog if desiredlang is
46576                 #   a. equal to presentlang, or
46577                 #   b. a variant of presentlang (because in this case,
46578                 #      presentlang can be used as a fallback for messages
46579                 #      which are not translated in the desiredlang catalog).
46580                 case "$desiredlang" in
46581                   "$presentlang"*) useit=yes;;
46582                 esac
46583               done
46584               if test $useit = yes; then
46585                 INST_LINGUAS="$INST_LINGUAS $presentlang"
46586               fi
46587             done
46588           fi
46589           CATALOGS=
46590           if test -n "$INST_LINGUAS"; then
46591             for lang in $INST_LINGUAS; do
46592               CATALOGS="$CATALOGS $lang.gmo"
46593             done
46594           fi
46595           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
46596           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"
46597           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
46598             if test -f "$f"; then
46599               case "$f" in
46600                 *.orig | *.bak | *~) ;;
46601                 *) cat "$f" >> "$ac_dir/Makefile" ;;
46602               esac
46603             fi
46604           done
46605         fi
46606         ;;
46607       esac
46608     done ;;
46609     "default":C)
46610  ;;
46611
46612   esac
46613 done # for ac_tag
46614
46615
46616 { (exit 0); exit 0; }
46617 _ACEOF
46618 chmod +x $CONFIG_STATUS
46619 ac_clean_files=$ac_clean_files_save
46620
46621
46622 # configure is writing to config.log, and then calls config.status.
46623 # config.status does its own redirection, appending to config.log.
46624 # Unfortunately, on DOS this fails, as config.log is still kept open
46625 # by configure, so config.status won't be able to write to it; its
46626 # output is simply discarded.  So we exec the FD to /dev/null,
46627 # effectively closing config.log, so it can be properly (re)opened and
46628 # appended to by config.status.  When coming back to configure, we
46629 # need to make the FD available again.
46630 if test "$no_create" != yes; then
46631   ac_cs_success=:
46632   ac_config_status_args=
46633   test "$silent" = yes &&
46634     ac_config_status_args="$ac_config_status_args --quiet"
46635   exec 5>/dev/null
46636   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
46637   exec 5>>config.log
46638   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
46639   # would make configure fail if this is the last instruction.
46640   $ac_cs_success || { (exit 1); exit 1; }
46641 fi
46642
46643
46644 if test "${support_bat}" = "yes" ; then
46645    if test "x$QMAKE" = "xnone" && test "x$QMAKEQT4" = "xnone"; then
46646       { { echo "$as_me:$LINENO: error: Could not find qmake or qmake-qt4 in $PATH. Check your Qt installation" >&5
46647 echo "$as_me: error: Could not find qmake or qmake-qt4 in $PATH. Check your Qt installation" >&2;}
46648    { (exit 1); exit 1; }; }
46649    fi
46650
46651    QMAKEBIN="qmake"
46652
46653    if test "x$QMAKEQT4" != "xnone"; then
46654        QMAKEBIN=qmake-qt4
46655    fi
46656
46657    cd src/qt-console
46658    echo "Creating bat Makefile"
46659    touch bat
46660    chmod 755 bat
46661    $QMAKEBIN
46662    ${MAKE:-make} clean
46663    cd ${BUILD_DIR}
46664 fi
46665
46666 if test X"$GCC" = "Xyes" ; then
46667   echo "Doing make of dependencies"
46668   ${MAKE:-make} depend
46669 fi
46670
46671 cd src/qt-console
46672 chmod 755 install_conf_file build-depkgs-qt-console
46673 cd ${BUILD_DIR}
46674
46675 cd scripts
46676 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
46677 chmod 755 dvd-handler dvd-simulator
46678 chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
46679 cd ..
46680
46681 c=updatedb
46682 chmod 755 $c/update_mysql_tables_10_to_11   $c/update_sqlite3_tables_10_to_11
46683 chmod 755 $c/update_postgresql_tables_10_to_11   $c/update_sqlite_tables_10_to_11
46684
46685 c=src/cats
46686
46687 chmod 755 $c/create_bacula_database   $c/update_bacula_tables  $c/make_bacula_tables
46688 chmod 755 $c/grant_bacula_privileges  $c/drop_bacula_tables    $c/drop_bacula_database
46689
46690 chmod 755 $c/create_bdb_database      $c/update_bdb_tables     $c/make_bdb_tables
46691 chmod 755 $c/grant_bdb_privileges     $c/drop_bdb_tables       $c/drop_bdb_database
46692
46693 chmod 755 $c/create_mysql_database    $c/update_mysql_tables   $c/make_mysql_tables
46694 chmod 755 $c/grant_mysql_privileges   $c/drop_mysql_tables     $c/drop_mysql_database
46695
46696 chmod 755 $c/create_sqlite_database   $c/update_sqlite_tables  $c/make_sqlite_tables
46697 chmod 755 $c/grant_sqlite_privileges  $c/drop_sqlite_tables    $c/drop_sqlite_database
46698
46699 chmod 755 $c/create_sqlite3_database   $c/update_sqlite3_tables  $c/make_sqlite3_tables
46700 chmod 755 $c/grant_sqlite3_privileges  $c/drop_sqlite3_tables    $c/drop_sqlite3_database
46701
46702 chmod 755 $c/create_postgresql_database  $c/update_postgresql_tables $c/make_postgresql_tables
46703 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables   $c/drop_postgresql_database
46704
46705 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup
46706 chmod 755 $c/sqlite
46707 chmod 755 $c/mysql
46708
46709 chmod 755 src/win32/build-depkgs-mingw32
46710
46711 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
46712    largefile_support="yes"
46713 fi
46714
46715 if test X"$GCC" = "Xyes" ; then
46716                CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
46717    if test "x${CCVERSION}" = "x" ; then
46718       CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
46719    fi
46720    CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
46721    if test x"${CXXVERSION}" = x ; then
46722       CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
46723    fi
46724 fi
46725
46726 # clean up any old junk
46727 echo " "
46728 echo "Cleaning up"
46729 echo " "
46730 ${MAKE:-make} clean
46731
46732 if test "x${db_type}" = "xInternal" ; then
46733    echo " "
46734    echo " "
46735    echo "You have not specified either --enable-client-only or one of the"
46736    echo "  supported databases: MySQL, PostgreSQL, SQLite3, SQLite or DBI."
46737    echo "  This is not permitted. Please reconfigure."
46738    echo " "
46739    echo "Aborting the configuration ..."
46740    echo " "
46741    echo " "
46742    exit 1
46743 fi
46744
46745 echo "
46746 Configuration on `date`:
46747
46748    Host:                    ${host}${post_host} -- ${DISTNAME} ${DISTVER}
46749    Bacula version:          ${BACULA} ${VERSION} (${DATE})
46750    Source code location:    ${srcdir}
46751    Install binaries:        ${sbindir}
46752    Install libraries:       ${libdir}
46753    Install config files:    ${sysconfdir}
46754    Scripts directory:       ${scriptdir}
46755    Archive directory:       ${archivedir}
46756    Working directory:       ${working_dir}
46757    PID directory:           ${piddir}
46758    Subsys directory:        ${subsysdir}
46759    Man directory:           ${mandir}
46760    Data directory:          ${datarootdir}
46761    Plugin directory:        ${plugindir}
46762    C Compiler:              ${CC} ${CCVERSION}
46763    C++ Compiler:            ${CXX} ${CXXVERSION}
46764    Compiler flags:          ${WCFLAGS} ${CFLAGS}
46765    Linker flags:            ${WLDFLAGS} ${LDFLAGS}
46766    Libraries:               ${LIBS}
46767    Statically Linked Tools: ${support_static_tools}
46768    Statically Linked FD:    ${support_static_fd}
46769    Statically Linked SD:    ${support_static_sd}
46770    Statically Linked DIR:   ${support_static_dir}
46771    Statically Linked CONS:  ${support_static_cons}
46772    Database type:           ${db_type}
46773    Database port:           ${db_port}
46774    Database lib:            ${DB_LIBS}
46775    Database name:           ${db_name}
46776    Database user:           ${db_user}
46777
46778    Job Output Email:        ${job_email}
46779    Traceback Email:         ${dump_email}
46780    SMTP Host Address:       ${smtp_host}
46781
46782    Director Port:           ${dir_port}
46783    File daemon Port:        ${fd_port}
46784    Storage daemon Port:     ${sd_port}
46785
46786    Director User:           ${dir_user}
46787    Director Group:          ${dir_group}
46788    Storage Daemon User:     ${sd_user}
46789    Storage DaemonGroup:     ${sd_group}
46790    File Daemon User:        ${fd_user}
46791    File Daemon Group:       ${fd_group}
46792
46793    SQL binaries Directory   ${SQL_BINDIR}
46794
46795    Large file support:      $largefile_support
46796    Bacula conio support:    ${got_conio} ${CONS_LIBS}
46797    readline support:        ${got_readline} ${PRTREADLINE_SRC}
46798    TCP Wrappers support:    ${TCPW_MSG} ${WRAPLIBS}
46799    TLS support:             ${support_tls}
46800    Encryption support:      ${support_crypto}
46801    ZLIB support:            ${have_zlib}
46802    enable-smartalloc:       ${support_smartalloc}
46803    enable-lockmgr:          ${support_lockmgr}
46804    bat support:             ${support_bat} ${QWT_LDFLAGS}
46805    enable-gnome:            ${support_gnome} ${gnome_version}
46806    enable-bwx-console:      ${support_wx_console} ${wx_version}
46807    enable-tray-monitor:     ${support_tray_monitor}
46808    client-only:             ${build_client_only}
46809    build-dird:              ${build_dird}
46810    build-stored:            ${build_stored}
46811    ACL support:             ${have_acl}
46812    XATTR support:           ${have_xattr}
46813    Python support:          ${support_python} ${PYTHON_LIBS}
46814    Batch insert enabled:    ${support_batch_insert}
46815
46816   " > config.out
46817
46818 cat config.out