]> git.sur5r.net Git - bacula/bacula/blob - bacula/configure
a519cc0ebef98e5ed2eb45a416e2c96c0b4559eb
[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 GNOME_INCLUDEDIR
950 GNOMEUI_LIBS
951 GNOME_LIBDIR
952 GNOME_LIBS
953 GNOME_DIR
954 BAT_DIR
955 QWT_INC
956 QWT_LDFLAGS
957 QWT_LIB
958 QWT
959 WXCONS_CPPFLAGS
960 WXCONS_LDFLAGS
961 WX_DIR
962 TRAY_MONITOR_CPPFLAGS
963 TRAY_MONITOR_LDFLAGS
964 TRAY_MONITOR_DIR
965 TTOOL_LDFLAGS
966 STATIC_FD
967 STATIC_SD
968 STATIC_DIR
969 STATIC_CONS
970 STATIC_GNOME_CONS
971 STATIC_WX_CONS
972 ALL_DIRS
973 DIRD_DIR
974 DIR_TOOLS
975 STORED_DIR
976 CONS_INC
977 CONS_OBJ
978 CONS_SRC
979 CONS_LIBS
980 CONS_LDFLAGS
981 READLINE_SRC
982 PYTHON_LIBS
983 PYTHON_INCDIR
984 OPENSSL_LIBS
985 OPENSSL_INC
986 working_dir
987 archivedir
988 basename
989 scriptdir
990 bsrdir
991 logdir
992 plugindir
993 dump_email
994 job_email
995 smtp_host
996 piddir
997 subsysdir
998 baseport
999 dir_port
1000 fd_port
1001 sd_port
1002 dir_password
1003 fd_password
1004 sd_password
1005 mon_dir_password
1006 mon_fd_password
1007 mon_sd_password
1008 db_name
1009 db_user
1010 db_password
1011 db_port
1012 dir_user
1013 dir_group
1014 sd_user
1015 sd_group
1016 fd_user
1017 fd_group
1018 SBINPERM
1019 SQL_LFLAGS
1020 SQL_INCLUDE
1021 SQL_BINDIR
1022 DBI_DBD_DRIVERDIR
1023 uncomment_dbi
1024 DB_PROG
1025 DB_PROG_LIB
1026 cats
1027 DB_TYPE
1028 GETCONF
1029 XMKMF
1030 X_CFLAGS
1031 X_PRE_LIBS
1032 X_LIBS
1033 X_EXTRA_LIBS
1034 LIBOBJS
1035 FDLIBS
1036 DEBUG
1037 DINCLUDE
1038 DLIB
1039 DB_LIBS
1040 WCFLAGS
1041 WLDFLAGS
1042 WRAPLIBS
1043 OBJLIST
1044 hostname
1045 TAPEDRIVE
1046 PSCMD
1047 WIN32
1048 MACOSX
1049 DISTNAME
1050 DISTVER
1051 LTLIBOBJS'
1052 ac_subst_files='MCOMMON'
1053       ac_precious_vars='build_alias
1054 host_alias
1055 target_alias
1056 CC
1057 CFLAGS
1058 LDFLAGS
1059 LIBS
1060 CPPFLAGS
1061 CXX
1062 CXXFLAGS
1063 CCC
1064 CPP
1065 WXCONFIG
1066 WXFLAGS
1067 CXXCPP
1068 XMKMF'
1069
1070
1071 # Initialize some variables set by options.
1072 ac_init_help=
1073 ac_init_version=false
1074 # The variables have the same names as the options, with
1075 # dashes changed to underlines.
1076 cache_file=/dev/null
1077 exec_prefix=NONE
1078 no_create=
1079 no_recursion=
1080 prefix=NONE
1081 program_prefix=NONE
1082 program_suffix=NONE
1083 program_transform_name=s,x,x,
1084 silent=
1085 site=
1086 srcdir=
1087 verbose=
1088 x_includes=NONE
1089 x_libraries=NONE
1090
1091 # Installation directory options.
1092 # These are left unexpanded so users can "make install exec_prefix=/foo"
1093 # and all the variables that are supposed to be based on exec_prefix
1094 # by default will actually change.
1095 # Use braces instead of parens because sh, perl, etc. also accept them.
1096 # (The list follows the same order as the GNU Coding Standards.)
1097 bindir='${exec_prefix}/bin'
1098 sbindir='${exec_prefix}/sbin'
1099 libexecdir='${exec_prefix}/libexec'
1100 datarootdir='${prefix}/share'
1101 datadir='${datarootdir}'
1102 sysconfdir='${prefix}/etc'
1103 sharedstatedir='${prefix}/com'
1104 localstatedir='${prefix}/var'
1105 includedir='${prefix}/include'
1106 oldincludedir='/usr/include'
1107 docdir='${datarootdir}/doc/${PACKAGE}'
1108 infodir='${datarootdir}/info'
1109 htmldir='${docdir}'
1110 dvidir='${docdir}'
1111 pdfdir='${docdir}'
1112 psdir='${docdir}'
1113 libdir='${exec_prefix}/lib'
1114 localedir='${datarootdir}/locale'
1115 mandir='${datarootdir}/man'
1116
1117 ac_prev=
1118 ac_dashdash=
1119 for ac_option
1120 do
1121   # If the previous option needs an argument, assign it.
1122   if test -n "$ac_prev"; then
1123     eval $ac_prev=\$ac_option
1124     ac_prev=
1125     continue
1126   fi
1127
1128   case $ac_option in
1129   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1130   *)    ac_optarg=yes ;;
1131   esac
1132
1133   # Accept the important Cygnus configure options, so we can diagnose typos.
1134
1135   case $ac_dashdash$ac_option in
1136   --)
1137     ac_dashdash=yes ;;
1138
1139   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1140     ac_prev=bindir ;;
1141   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1142     bindir=$ac_optarg ;;
1143
1144   -build | --build | --buil | --bui | --bu)
1145     ac_prev=build_alias ;;
1146   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1147     build_alias=$ac_optarg ;;
1148
1149   -cache-file | --cache-file | --cache-fil | --cache-fi \
1150   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1151     ac_prev=cache_file ;;
1152   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1153   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1154     cache_file=$ac_optarg ;;
1155
1156   --config-cache | -C)
1157     cache_file=config.cache ;;
1158
1159   -datadir | --datadir | --datadi | --datad)
1160     ac_prev=datadir ;;
1161   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1162     datadir=$ac_optarg ;;
1163
1164   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1165   | --dataroo | --dataro | --datar)
1166     ac_prev=datarootdir ;;
1167   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1168   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1169     datarootdir=$ac_optarg ;;
1170
1171   -disable-* | --disable-*)
1172     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1173     # Reject names that are not valid shell variable names.
1174     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1175       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1176    { (exit 1); exit 1; }; }
1177     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1178     eval enable_$ac_feature=no ;;
1179
1180   -docdir | --docdir | --docdi | --doc | --do)
1181     ac_prev=docdir ;;
1182   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1183     docdir=$ac_optarg ;;
1184
1185   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1186     ac_prev=dvidir ;;
1187   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1188     dvidir=$ac_optarg ;;
1189
1190   -enable-* | --enable-*)
1191     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1192     # Reject names that are not valid shell variable names.
1193     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1194       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1195    { (exit 1); exit 1; }; }
1196     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1197     eval enable_$ac_feature=\$ac_optarg ;;
1198
1199   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1200   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1201   | --exec | --exe | --ex)
1202     ac_prev=exec_prefix ;;
1203   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1204   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1205   | --exec=* | --exe=* | --ex=*)
1206     exec_prefix=$ac_optarg ;;
1207
1208   -gas | --gas | --ga | --g)
1209     # Obsolete; use --with-gas.
1210     with_gas=yes ;;
1211
1212   -help | --help | --hel | --he | -h)
1213     ac_init_help=long ;;
1214   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1215     ac_init_help=recursive ;;
1216   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1217     ac_init_help=short ;;
1218
1219   -host | --host | --hos | --ho)
1220     ac_prev=host_alias ;;
1221   -host=* | --host=* | --hos=* | --ho=*)
1222     host_alias=$ac_optarg ;;
1223
1224   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1225     ac_prev=htmldir ;;
1226   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1227   | --ht=*)
1228     htmldir=$ac_optarg ;;
1229
1230   -includedir | --includedir | --includedi | --included | --include \
1231   | --includ | --inclu | --incl | --inc)
1232     ac_prev=includedir ;;
1233   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1234   | --includ=* | --inclu=* | --incl=* | --inc=*)
1235     includedir=$ac_optarg ;;
1236
1237   -infodir | --infodir | --infodi | --infod | --info | --inf)
1238     ac_prev=infodir ;;
1239   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1240     infodir=$ac_optarg ;;
1241
1242   -libdir | --libdir | --libdi | --libd)
1243     ac_prev=libdir ;;
1244   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1245     libdir=$ac_optarg ;;
1246
1247   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1248   | --libexe | --libex | --libe)
1249     ac_prev=libexecdir ;;
1250   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1251   | --libexe=* | --libex=* | --libe=*)
1252     libexecdir=$ac_optarg ;;
1253
1254   -localedir | --localedir | --localedi | --localed | --locale)
1255     ac_prev=localedir ;;
1256   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1257     localedir=$ac_optarg ;;
1258
1259   -localstatedir | --localstatedir | --localstatedi | --localstated \
1260   | --localstate | --localstat | --localsta | --localst | --locals)
1261     ac_prev=localstatedir ;;
1262   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1263   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1264     localstatedir=$ac_optarg ;;
1265
1266   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1267     ac_prev=mandir ;;
1268   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1269     mandir=$ac_optarg ;;
1270
1271   -nfp | --nfp | --nf)
1272     # Obsolete; use --without-fp.
1273     with_fp=no ;;
1274
1275   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1276   | --no-cr | --no-c | -n)
1277     no_create=yes ;;
1278
1279   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1280   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1281     no_recursion=yes ;;
1282
1283   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1284   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1285   | --oldin | --oldi | --old | --ol | --o)
1286     ac_prev=oldincludedir ;;
1287   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1288   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1289   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1290     oldincludedir=$ac_optarg ;;
1291
1292   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1293     ac_prev=prefix ;;
1294   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1295     prefix=$ac_optarg ;;
1296
1297   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1298   | --program-pre | --program-pr | --program-p)
1299     ac_prev=program_prefix ;;
1300   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1301   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1302     program_prefix=$ac_optarg ;;
1303
1304   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1305   | --program-suf | --program-su | --program-s)
1306     ac_prev=program_suffix ;;
1307   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1308   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1309     program_suffix=$ac_optarg ;;
1310
1311   -program-transform-name | --program-transform-name \
1312   | --program-transform-nam | --program-transform-na \
1313   | --program-transform-n | --program-transform- \
1314   | --program-transform | --program-transfor \
1315   | --program-transfo | --program-transf \
1316   | --program-trans | --program-tran \
1317   | --progr-tra | --program-tr | --program-t)
1318     ac_prev=program_transform_name ;;
1319   -program-transform-name=* | --program-transform-name=* \
1320   | --program-transform-nam=* | --program-transform-na=* \
1321   | --program-transform-n=* | --program-transform-=* \
1322   | --program-transform=* | --program-transfor=* \
1323   | --program-transfo=* | --program-transf=* \
1324   | --program-trans=* | --program-tran=* \
1325   | --progr-tra=* | --program-tr=* | --program-t=*)
1326     program_transform_name=$ac_optarg ;;
1327
1328   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1329     ac_prev=pdfdir ;;
1330   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1331     pdfdir=$ac_optarg ;;
1332
1333   -psdir | --psdir | --psdi | --psd | --ps)
1334     ac_prev=psdir ;;
1335   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1336     psdir=$ac_optarg ;;
1337
1338   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1339   | -silent | --silent | --silen | --sile | --sil)
1340     silent=yes ;;
1341
1342   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1343     ac_prev=sbindir ;;
1344   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1345   | --sbi=* | --sb=*)
1346     sbindir=$ac_optarg ;;
1347
1348   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1349   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1350   | --sharedst | --shareds | --shared | --share | --shar \
1351   | --sha | --sh)
1352     ac_prev=sharedstatedir ;;
1353   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1354   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1355   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1356   | --sha=* | --sh=*)
1357     sharedstatedir=$ac_optarg ;;
1358
1359   -site | --site | --sit)
1360     ac_prev=site ;;
1361   -site=* | --site=* | --sit=*)
1362     site=$ac_optarg ;;
1363
1364   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1365     ac_prev=srcdir ;;
1366   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1367     srcdir=$ac_optarg ;;
1368
1369   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1370   | --syscon | --sysco | --sysc | --sys | --sy)
1371     ac_prev=sysconfdir ;;
1372   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1373   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1374     sysconfdir=$ac_optarg ;;
1375
1376   -target | --target | --targe | --targ | --tar | --ta | --t)
1377     ac_prev=target_alias ;;
1378   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1379     target_alias=$ac_optarg ;;
1380
1381   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1382     verbose=yes ;;
1383
1384   -version | --version | --versio | --versi | --vers | -V)
1385     ac_init_version=: ;;
1386
1387   -with-* | --with-*)
1388     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1389     # Reject names that are not valid shell variable names.
1390     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1391       { echo "$as_me: error: invalid package name: $ac_package" >&2
1392    { (exit 1); exit 1; }; }
1393     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1394     eval with_$ac_package=\$ac_optarg ;;
1395
1396   -without-* | --without-*)
1397     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1398     # Reject names that are not valid shell variable names.
1399     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1400       { echo "$as_me: error: invalid package name: $ac_package" >&2
1401    { (exit 1); exit 1; }; }
1402     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1403     eval with_$ac_package=no ;;
1404
1405   --x)
1406     # Obsolete; use --with-x.
1407     with_x=yes ;;
1408
1409   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1410   | --x-incl | --x-inc | --x-in | --x-i)
1411     ac_prev=x_includes ;;
1412   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1413   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1414     x_includes=$ac_optarg ;;
1415
1416   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1417   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1418     ac_prev=x_libraries ;;
1419   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1420   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1421     x_libraries=$ac_optarg ;;
1422
1423   -*) { echo "$as_me: error: unrecognized option: $ac_option
1424 Try \`$0 --help' for more information." >&2
1425    { (exit 1); exit 1; }; }
1426     ;;
1427
1428   *=*)
1429     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1430     # Reject names that are not valid shell variable names.
1431     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1432       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1433    { (exit 1); exit 1; }; }
1434     eval $ac_envvar=\$ac_optarg
1435     export $ac_envvar ;;
1436
1437   *)
1438     # FIXME: should be removed in autoconf 3.0.
1439     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1440     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1441       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1442     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1443     ;;
1444
1445   esac
1446 done
1447
1448 if test -n "$ac_prev"; then
1449   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1450   { echo "$as_me: error: missing argument to $ac_option" >&2
1451    { (exit 1); exit 1; }; }
1452 fi
1453
1454 # Be sure to have absolute directory names.
1455 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1456                 datadir sysconfdir sharedstatedir localstatedir includedir \
1457                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1458                 libdir localedir mandir
1459 do
1460   eval ac_val=\$$ac_var
1461   case $ac_val in
1462     [\\/$]* | ?:[\\/]* )  continue;;
1463     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1464   esac
1465   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1466    { (exit 1); exit 1; }; }
1467 done
1468
1469 # There might be people who depend on the old broken behavior: `$host'
1470 # used to hold the argument of --host etc.
1471 # FIXME: To remove some day.
1472 build=$build_alias
1473 host=$host_alias
1474 target=$target_alias
1475
1476 # FIXME: To remove some day.
1477 if test "x$host_alias" != x; then
1478   if test "x$build_alias" = x; then
1479     cross_compiling=maybe
1480     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1481     If a cross compiler is detected then cross compile mode will be used." >&2
1482   elif test "x$build_alias" != "x$host_alias"; then
1483     cross_compiling=yes
1484   fi
1485 fi
1486
1487 ac_tool_prefix=
1488 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1489
1490 test "$silent" = yes && exec 6>/dev/null
1491
1492
1493 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1494 ac_ls_di=`ls -di .` &&
1495 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1496   { echo "$as_me: error: Working directory cannot be determined" >&2
1497    { (exit 1); exit 1; }; }
1498 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1499   { echo "$as_me: error: pwd does not report name of working directory" >&2
1500    { (exit 1); exit 1; }; }
1501
1502
1503 # Find the source files, if location was not specified.
1504 if test -z "$srcdir"; then
1505   ac_srcdir_defaulted=yes
1506   # Try the directory containing this script, then the parent directory.
1507   ac_confdir=`$as_dirname -- "$0" ||
1508 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1509          X"$0" : 'X\(//\)[^/]' \| \
1510          X"$0" : 'X\(//\)$' \| \
1511          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1512 echo X"$0" |
1513     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1514             s//\1/
1515             q
1516           }
1517           /^X\(\/\/\)[^/].*/{
1518             s//\1/
1519             q
1520           }
1521           /^X\(\/\/\)$/{
1522             s//\1/
1523             q
1524           }
1525           /^X\(\/\).*/{
1526             s//\1/
1527             q
1528           }
1529           s/.*/./; q'`
1530   srcdir=$ac_confdir
1531   if test ! -r "$srcdir/$ac_unique_file"; then
1532     srcdir=..
1533   fi
1534 else
1535   ac_srcdir_defaulted=no
1536 fi
1537 if test ! -r "$srcdir/$ac_unique_file"; then
1538   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1539   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1540    { (exit 1); exit 1; }; }
1541 fi
1542 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1543 ac_abs_confdir=`(
1544         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1545    { (exit 1); exit 1; }; }
1546         pwd)`
1547 # When building in place, set srcdir=.
1548 if test "$ac_abs_confdir" = "$ac_pwd"; then
1549   srcdir=.
1550 fi
1551 # Remove unnecessary trailing slashes from srcdir.
1552 # Double slashes in file names in object file debugging info
1553 # mess up M-x gdb in Emacs.
1554 case $srcdir in
1555 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1556 esac
1557 for ac_var in $ac_precious_vars; do
1558   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1559   eval ac_env_${ac_var}_value=\$${ac_var}
1560   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1561   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1562 done
1563
1564 #
1565 # Report the --help message.
1566 #
1567 if test "$ac_init_help" = "long"; then
1568   # Omit some internal or obsolete options to make the list less imposing.
1569   # This message is too long to be a string in the A/UX 3.1 sh.
1570   cat <<_ACEOF
1571 \`configure' configures this package to adapt to many kinds of systems.
1572
1573 Usage: $0 [OPTION]... [VAR=VALUE]...
1574
1575 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1576 VAR=VALUE.  See below for descriptions of some of the useful variables.
1577
1578 Defaults for the options are specified in brackets.
1579
1580 Configuration:
1581   -h, --help              display this help and exit
1582       --help=short        display options specific to this package
1583       --help=recursive    display the short help of all the included packages
1584   -V, --version           display version information and exit
1585   -q, --quiet, --silent   do not print \`checking...' messages
1586       --cache-file=FILE   cache test results in FILE [disabled]
1587   -C, --config-cache      alias for \`--cache-file=config.cache'
1588   -n, --no-create         do not create output files
1589       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1590
1591 Installation directories:
1592   --prefix=PREFIX         install architecture-independent files in PREFIX
1593                           [$ac_default_prefix]
1594   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1595                           [PREFIX]
1596
1597 By default, \`make install' will install all the files in
1598 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1599 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1600 for instance \`--prefix=\$HOME'.
1601
1602 For better control, use the options below.
1603
1604 Fine tuning of the installation directories:
1605   --bindir=DIR           user executables [EPREFIX/bin]
1606   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1607   --libexecdir=DIR       program executables [EPREFIX/libexec]
1608   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1609   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1610   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1611   --libdir=DIR           object code libraries [EPREFIX/lib]
1612   --includedir=DIR       C header files [PREFIX/include]
1613   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1614   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1615   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1616   --infodir=DIR          info documentation [DATAROOTDIR/info]
1617   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1618   --mandir=DIR           man documentation [DATAROOTDIR/man]
1619   --docdir=DIR           documentation root [DATAROOTDIR/doc/PACKAGE]
1620   --htmldir=DIR          html documentation [DOCDIR]
1621   --dvidir=DIR           dvi documentation [DOCDIR]
1622   --pdfdir=DIR           pdf documentation [DOCDIR]
1623   --psdir=DIR            ps documentation [DOCDIR]
1624 _ACEOF
1625
1626   cat <<\_ACEOF
1627
1628 X features:
1629   --x-includes=DIR    X include files are in DIR
1630   --x-libraries=DIR   X library files are in DIR
1631
1632 System types:
1633   --build=BUILD     configure for building on BUILD [guessed]
1634   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1635 _ACEOF
1636 fi
1637
1638 if test -n "$ac_init_help"; then
1639
1640   cat <<\_ACEOF
1641
1642 Optional Features:
1643   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1644   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1645   --enable-libtool        enable building using GNU libtool [default=yes]
1646   --enable-shared[=PKGS]  build shared libraries [default=yes]
1647   --enable-static[=PKGS]  build static libraries [default=no]
1648   --enable-fast-install[=PKGS]
1649                           optimize for fast installation [default=yes]
1650   --disable-libtool-lock  avoid locking (might break parallel builds)
1651   --enable-includes       enable installing of include files [default=no]
1652   --disable-nls           do not use Native Language Support
1653   --disable-rpath         do not hardcode runtime library paths
1654   --enable-gnome          enable build of bgnome-console GUI [default=no]
1655   --enable-bat            enable build of bat Qt4 GUI [default=no]
1656   --enable-bwx-console    enable build of wxWidgets console [default=no]
1657   --enable-tray-monitor   enable build of Gnome tray monitor (compatible with
1658                           KDE [default=no]
1659   --enable-smartalloc     enable smartalloc debugging support [default=no]
1660   --enable-lockmgr        enable lock manager support [default=no]
1661   --enable-static-tools   enable static tape tools [default=no]
1662   --enable-static-fd      enable static File daemon [default=no]
1663   --enable-static-sd      enable static Storage daemon [default=no]
1664   --enable-static-dir     enable static Director [default=no]
1665   --enable-static-cons    enable static Console [default=no]
1666   --enable-client-only    build client (File daemon) only [default=no]
1667   --enable-build-dird     enable building of dird (Director) [default=yes]
1668   --enable-build-stored   enable building of stored (Storage daemon)
1669                           [default=yes]
1670   --disable-conio         disable conio support [default=no]
1671   --enable-ipv6           enable ipv6 support [default=yes]
1672   --disable-readline      disable readline support [default=yes]
1673   --enable-batch-insert   enable the DB batch insert code [default=no]
1674   --disable-largefile     omit support for large files
1675   --disable-acl           disable acl support [default=auto]
1676   --disable-xattr         disable xattr support [default=auto]
1677
1678 Optional Packages:
1679   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1680   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1681   --with-pic              try to use only PIC/non-PIC objects [default=use
1682                           both]
1683   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1684   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1685   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1686   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1687   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1688   --without-libintl-prefix     don't search for libintl in includedir and libdir
1689   --with-included-gettext use the GNU gettext library included here
1690   --with-qwt[=DIR]        specify qwt library directory
1691   --with-readline[=DIR]   specify readline library directory
1692   --with-python[=DIR]     Include Python support. DIR is the Python base
1693                           install directory, default is to search through a
1694                           number of common places for the Python files.
1695   --with-tcp-wrappers[=DIR]
1696                           enable tcpwrappers support
1697   --with-openssl[=DIR]    Include OpenSSL support. DIR is the OpenSSL base
1698   --with-working-dir=PATH specify path of Bacula working directory
1699   --with-archivedir=PATH  specify path of SD archive directory
1700   --with-basename=RESNAME specify base resource name for daemons
1701   --with-scriptdir=PATH   specify path of Bacula scripts directory
1702   --with-bsrdir=PATH      specify path of Bacula bsrs directory
1703   --with-logdir=PATH      specify path of Bacula logs directory
1704   --with-plugindir=PATH   specify path of Bacula plugins directory
1705   --with-dump-email=EMAIL dump email address
1706   --with-job-email=EMAIL  job output email address
1707   --with-smtp-host=HOST   SMTP mail host address
1708   --with-pid-dir=PATH     specify location of Bacula pid files
1709   --with-subsys-dir=PATH  specify location of Bacula subsys file
1710   --with-baseport=PORT    specify base port address for daemons
1711   --with-dir-password=PASSWORD
1712                           specify Director's password
1713   --with-fd-password=PASSWORD
1714                           specify Client's password
1715   --with-sd-password=PASSWORD
1716                           specify Storage daemon's password
1717   --with-mon-dir-password=PASSWORD
1718                           specify Director's password used by the monitor
1719   --with-mon-fd-password=PASSWORD
1720                           specify Client's password used by the monitor
1721   --with-mon-sd-password=PASSWORD
1722                           specify Storage daemon's password used by the
1723                           monitor
1724   --with-db-name=DBNAME   specify database name [default=bacula]
1725   --with-db-user=UNAME    specify database user [default=bacula]
1726   --with-db-password=PWD  specify database password [default=*none*]
1727   --with-db-port=DBPORT   specify a database port [default=null]
1728   --with-dir-user=USER    specify user for Director daemon
1729   --with-dir-group=GROUP  specify group for Director daemon
1730   --with-sd-user=USER     specify user for Storage daemon
1731   --with-sd-group=GROUP   specify group for Storage daemon
1732   --with-fd-user=USER     specify user for File daemon
1733   --with-fd-group=GROUP   specify group for File daemon
1734   --with-sbin-perm=MODE   specify permissions for sbin binaries [default=0754]
1735   --with-postgresql[=DIR] Include PostgreSQL support. DIR is the PostgreSQL
1736                           base install directory, [default=/usr/local/pgsql]
1737   --with-mysql[=DIR]      Include MySQL support. DIR is the MySQL base install
1738                           directory, default is to search through a number of
1739                           common places for the MySQL files.
1740   --with-embedded-mysql[=DIR]
1741                           Include MySQL support. DIR is the MySQL base install
1742                           directory, default is to search through a number of
1743                           common places for the MySQL files.
1744   --with-sqlite3[=DIR]    Include SQLite3 support. DIR is the SQLite3 base
1745                           install directory, default is to search through a
1746                           number of common places for the SQLite3 files.
1747   --with-sqlite[=DIR]     Include SQLite support. DIR is the SQLite base
1748                           install directory, default is to search through a
1749                           number of common places for the SQLite files.
1750   --with-dbi[=DIR]        Include DBI support. DIR is the DBD base install
1751                           directory, default is to search through a number of
1752                           common places for the DBI files.
1753   --with-dbi-driver[=DRIVER]
1754                           Suport for DBI driver. DRIVER is the one DBI driver
1755                           like Mysql, Postgresql, others. Default is to not
1756                           configure any driver.
1757   --with-x                use the X Window System
1758
1759 Some influential environment variables:
1760   CC          C compiler command
1761   CFLAGS      C compiler flags
1762   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1763               nonstandard directory <lib dir>
1764   LIBS        libraries to pass to the linker, e.g. -l<library>
1765   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1766               you have headers in a nonstandard directory <include dir>
1767   CXX         C++ compiler command
1768   CXXFLAGS    C++ compiler flags
1769   CPP         C preprocessor
1770   WXCONFIG    wx-config command. On some systems, you must set it to
1771               wx-config-2.6 to use wxWidgets 2.6.
1772   WXFLAGS     Parameters to pass to wx-config (e.g. --unicode=no).
1773   CXXCPP      C++ preprocessor
1774   XMKMF       Path to xmkmf, Makefile generator for X Window System
1775
1776 Use these variables to override the choices made by `configure' or to help
1777 it to find libraries and programs with nonstandard names/locations.
1778
1779 _ACEOF
1780 ac_status=$?
1781 fi
1782
1783 if test "$ac_init_help" = "recursive"; then
1784   # If there are subdirs, report their specific --help.
1785   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1786     test -d "$ac_dir" || continue
1787     ac_builddir=.
1788
1789 case "$ac_dir" in
1790 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1791 *)
1792   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1793   # A ".." for each directory in $ac_dir_suffix.
1794   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1795   case $ac_top_builddir_sub in
1796   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1797   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1798   esac ;;
1799 esac
1800 ac_abs_top_builddir=$ac_pwd
1801 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1802 # for backward compatibility:
1803 ac_top_builddir=$ac_top_build_prefix
1804
1805 case $srcdir in
1806   .)  # We are building in place.
1807     ac_srcdir=.
1808     ac_top_srcdir=$ac_top_builddir_sub
1809     ac_abs_top_srcdir=$ac_pwd ;;
1810   [\\/]* | ?:[\\/]* )  # Absolute name.
1811     ac_srcdir=$srcdir$ac_dir_suffix;
1812     ac_top_srcdir=$srcdir
1813     ac_abs_top_srcdir=$srcdir ;;
1814   *) # Relative name.
1815     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1816     ac_top_srcdir=$ac_top_build_prefix$srcdir
1817     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1818 esac
1819 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1820
1821     cd "$ac_dir" || { ac_status=$?; continue; }
1822     # Check for guested configure.
1823     if test -f "$ac_srcdir/configure.gnu"; then
1824       echo &&
1825       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1826     elif test -f "$ac_srcdir/configure"; then
1827       echo &&
1828       $SHELL "$ac_srcdir/configure" --help=recursive
1829     else
1830       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1831     fi || ac_status=$?
1832     cd "$ac_pwd" || { ac_status=$?; break; }
1833   done
1834 fi
1835
1836 test -n "$ac_init_help" && exit $ac_status
1837 if $ac_init_version; then
1838   cat <<\_ACEOF
1839 configure
1840 generated by GNU Autoconf 2.61
1841
1842 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1843 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1844 This configure script is free software; the Free Software Foundation
1845 gives unlimited permission to copy, distribute and modify it.
1846 _ACEOF
1847   exit
1848 fi
1849 cat >config.log <<_ACEOF
1850 This file contains any messages produced by compilers while
1851 running configure, to aid debugging if configure makes a mistake.
1852
1853 It was created by $as_me, which was
1854 generated by GNU Autoconf 2.61.  Invocation command line was
1855
1856   $ $0 $@
1857
1858 _ACEOF
1859 exec 5>>config.log
1860 {
1861 cat <<_ASUNAME
1862 ## --------- ##
1863 ## Platform. ##
1864 ## --------- ##
1865
1866 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1867 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1868 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1869 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1870 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1871
1872 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1873 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1874
1875 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1876 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1877 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1878 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1879 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1880 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1881 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1882
1883 _ASUNAME
1884
1885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1886 for as_dir in $PATH
1887 do
1888   IFS=$as_save_IFS
1889   test -z "$as_dir" && as_dir=.
1890   echo "PATH: $as_dir"
1891 done
1892 IFS=$as_save_IFS
1893
1894 } >&5
1895
1896 cat >&5 <<_ACEOF
1897
1898
1899 ## ----------- ##
1900 ## Core tests. ##
1901 ## ----------- ##
1902
1903 _ACEOF
1904
1905
1906 # Keep a trace of the command line.
1907 # Strip out --no-create and --no-recursion so they do not pile up.
1908 # Strip out --silent because we don't want to record it for future runs.
1909 # Also quote any args containing shell meta-characters.
1910 # Make two passes to allow for proper duplicate-argument suppression.
1911 ac_configure_args=
1912 ac_configure_args0=
1913 ac_configure_args1=
1914 ac_must_keep_next=false
1915 for ac_pass in 1 2
1916 do
1917   for ac_arg
1918   do
1919     case $ac_arg in
1920     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1921     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1922     | -silent | --silent | --silen | --sile | --sil)
1923       continue ;;
1924     *\'*)
1925       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1926     esac
1927     case $ac_pass in
1928     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1929     2)
1930       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1931       if test $ac_must_keep_next = true; then
1932         ac_must_keep_next=false # Got value, back to normal.
1933       else
1934         case $ac_arg in
1935           *=* | --config-cache | -C | -disable-* | --disable-* \
1936           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1937           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1938           | -with-* | --with-* | -without-* | --without-* | --x)
1939             case "$ac_configure_args0 " in
1940               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1941             esac
1942             ;;
1943           -* ) ac_must_keep_next=true ;;
1944         esac
1945       fi
1946       ac_configure_args="$ac_configure_args '$ac_arg'"
1947       ;;
1948     esac
1949   done
1950 done
1951 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1952 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1953
1954 # When interrupted or exit'd, cleanup temporary files, and complete
1955 # config.log.  We remove comments because anyway the quotes in there
1956 # would cause problems or look ugly.
1957 # WARNING: Use '\'' to represent an apostrophe within the trap.
1958 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1959 trap 'exit_status=$?
1960   # Save into config.log some information that might help in debugging.
1961   {
1962     echo
1963
1964     cat <<\_ASBOX
1965 ## ---------------- ##
1966 ## Cache variables. ##
1967 ## ---------------- ##
1968 _ASBOX
1969     echo
1970     # The following way of writing the cache mishandles newlines in values,
1971 (
1972   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1973     eval ac_val=\$$ac_var
1974     case $ac_val in #(
1975     *${as_nl}*)
1976       case $ac_var in #(
1977       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1978 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1979       esac
1980       case $ac_var in #(
1981       _ | IFS | as_nl) ;; #(
1982       *) $as_unset $ac_var ;;
1983       esac ;;
1984     esac
1985   done
1986   (set) 2>&1 |
1987     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1988     *${as_nl}ac_space=\ *)
1989       sed -n \
1990         "s/'\''/'\''\\\\'\'''\''/g;
1991           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1992       ;; #(
1993     *)
1994       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1995       ;;
1996     esac |
1997     sort
1998 )
1999     echo
2000
2001     cat <<\_ASBOX
2002 ## ----------------- ##
2003 ## Output variables. ##
2004 ## ----------------- ##
2005 _ASBOX
2006     echo
2007     for ac_var in $ac_subst_vars
2008     do
2009       eval ac_val=\$$ac_var
2010       case $ac_val in
2011       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2012       esac
2013       echo "$ac_var='\''$ac_val'\''"
2014     done | sort
2015     echo
2016
2017     if test -n "$ac_subst_files"; then
2018       cat <<\_ASBOX
2019 ## ------------------- ##
2020 ## File substitutions. ##
2021 ## ------------------- ##
2022 _ASBOX
2023       echo
2024       for ac_var in $ac_subst_files
2025       do
2026         eval ac_val=\$$ac_var
2027         case $ac_val in
2028         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2029         esac
2030         echo "$ac_var='\''$ac_val'\''"
2031       done | sort
2032       echo
2033     fi
2034
2035     if test -s confdefs.h; then
2036       cat <<\_ASBOX
2037 ## ----------- ##
2038 ## confdefs.h. ##
2039 ## ----------- ##
2040 _ASBOX
2041       echo
2042       cat confdefs.h
2043       echo
2044     fi
2045     test "$ac_signal" != 0 &&
2046       echo "$as_me: caught signal $ac_signal"
2047     echo "$as_me: exit $exit_status"
2048   } >&5
2049   rm -f core *.core core.conftest.* &&
2050     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2051     exit $exit_status
2052 ' 0
2053 for ac_signal in 1 2 13 15; do
2054   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
2055 done
2056 ac_signal=0
2057
2058 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2059 rm -f -r conftest* confdefs.h
2060
2061 # Predefined preprocessor variables.
2062
2063 cat >>confdefs.h <<_ACEOF
2064 #define PACKAGE_NAME "$PACKAGE_NAME"
2065 _ACEOF
2066
2067
2068 cat >>confdefs.h <<_ACEOF
2069 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2070 _ACEOF
2071
2072
2073 cat >>confdefs.h <<_ACEOF
2074 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2075 _ACEOF
2076
2077
2078 cat >>confdefs.h <<_ACEOF
2079 #define PACKAGE_STRING "$PACKAGE_STRING"
2080 _ACEOF
2081
2082
2083 cat >>confdefs.h <<_ACEOF
2084 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2085 _ACEOF
2086
2087
2088 # Let the site file select an alternate cache file if it wants to.
2089 # Prefer explicitly selected file to automatically selected ones.
2090 if test -n "$CONFIG_SITE"; then
2091   set x "$CONFIG_SITE"
2092 elif test "x$prefix" != xNONE; then
2093   set x "$prefix/share/config.site" "$prefix/etc/config.site"
2094 else
2095   set x "$ac_default_prefix/share/config.site" \
2096         "$ac_default_prefix/etc/config.site"
2097 fi
2098 shift
2099 for ac_site_file
2100 do
2101   if test -r "$ac_site_file"; then
2102     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2103 echo "$as_me: loading site script $ac_site_file" >&6;}
2104     sed 's/^/| /' "$ac_site_file" >&5
2105     . "$ac_site_file"
2106   fi
2107 done
2108
2109 if test -r "$cache_file"; then
2110   # Some versions of bash will fail to source /dev/null (special
2111   # files actually), so we avoid doing that.
2112   if test -f "$cache_file"; then
2113     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
2114 echo "$as_me: loading cache $cache_file" >&6;}
2115     case $cache_file in
2116       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2117       *)                      . "./$cache_file";;
2118     esac
2119   fi
2120 else
2121   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
2122 echo "$as_me: creating cache $cache_file" >&6;}
2123   >$cache_file
2124 fi
2125
2126 # Check that the precious variables saved in the cache have kept the same
2127 # value.
2128 ac_cache_corrupted=false
2129 for ac_var in $ac_precious_vars; do
2130   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2131   eval ac_new_set=\$ac_env_${ac_var}_set
2132   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2133   eval ac_new_val=\$ac_env_${ac_var}_value
2134   case $ac_old_set,$ac_new_set in
2135     set,)
2136       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2137 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2138       ac_cache_corrupted=: ;;
2139     ,set)
2140       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2141 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2142       ac_cache_corrupted=: ;;
2143     ,);;
2144     *)
2145       if test "x$ac_old_val" != "x$ac_new_val"; then
2146         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2147 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2148         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
2149 echo "$as_me:   former value:  $ac_old_val" >&2;}
2150         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
2151 echo "$as_me:   current value: $ac_new_val" >&2;}
2152         ac_cache_corrupted=:
2153       fi;;
2154   esac
2155   # Pass precious variables to config.status.
2156   if test "$ac_new_set" = set; then
2157     case $ac_new_val in
2158     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2159     *) ac_arg=$ac_var=$ac_new_val ;;
2160     esac
2161     case " $ac_configure_args " in
2162       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2163       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2164     esac
2165   fi
2166 done
2167 if $ac_cache_corrupted; then
2168   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2169 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2170   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2171 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2172    { (exit 1); exit 1; }; }
2173 fi
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191 ac_ext=c
2192 ac_cpp='$CPP $CPPFLAGS'
2193 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2194 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2195 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2196
2197
2198 BUILD_DIR=`pwd`
2199 cd ..
2200 TOP_DIR=`pwd`
2201 cd ${BUILD_DIR}
2202
2203
2204 ac_aux_dir=
2205 for ac_dir in ${BUILD_DIR}/autoconf "$srcdir"/${BUILD_DIR}/autoconf; do
2206   if test -f "$ac_dir/install-sh"; then
2207     ac_aux_dir=$ac_dir
2208     ac_install_sh="$ac_aux_dir/install-sh -c"
2209     break
2210   elif test -f "$ac_dir/install.sh"; then
2211     ac_aux_dir=$ac_dir
2212     ac_install_sh="$ac_aux_dir/install.sh -c"
2213     break
2214   elif test -f "$ac_dir/shtool"; then
2215     ac_aux_dir=$ac_dir
2216     ac_install_sh="$ac_aux_dir/shtool install -c"
2217     break
2218   fi
2219 done
2220 if test -z "$ac_aux_dir"; then
2221   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" >&5
2222 echo "$as_me: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" >&2;}
2223    { (exit 1); exit 1; }; }
2224 fi
2225
2226 # These three variables are undocumented and unsupported,
2227 # and are intended to be withdrawn in a future Autoconf release.
2228 # They can cause serious problems if a builder's source tree is in a directory
2229 # whose full name contains unusual characters.
2230 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2231 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2232 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2233
2234
2235 ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
2236
2237
2238 WIN32BUILDDIR=${BUILD_DIR}/src/win32
2239 WIN32MAINDIR=${BUILD_DIR}
2240 WIN32TOPDIR=${TOP_DIR}
2241
2242
2243
2244
2245
2246
2247
2248 for ac_prog in true
2249 do
2250   # Extract the first word of "$ac_prog", so it can be a program name with args.
2251 set dummy $ac_prog; ac_word=$2
2252 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2253 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2254 if test "${ac_cv_path_TRUEPRG+set}" = set; then
2255   echo $ECHO_N "(cached) $ECHO_C" >&6
2256 else
2257   case $TRUEPRG in
2258   [\\/]* | ?:[\\/]*)
2259   ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
2260   ;;
2261   *)
2262   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2263 for as_dir in $PATH
2264 do
2265   IFS=$as_save_IFS
2266   test -z "$as_dir" && as_dir=.
2267   for ac_exec_ext in '' $ac_executable_extensions; do
2268   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2269     ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
2270     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2271     break 2
2272   fi
2273 done
2274 done
2275 IFS=$as_save_IFS
2276
2277   ;;
2278 esac
2279 fi
2280 TRUEPRG=$ac_cv_path_TRUEPRG
2281 if test -n "$TRUEPRG"; then
2282   { echo "$as_me:$LINENO: result: $TRUEPRG" >&5
2283 echo "${ECHO_T}$TRUEPRG" >&6; }
2284 else
2285   { echo "$as_me:$LINENO: result: no" >&5
2286 echo "${ECHO_T}no" >&6; }
2287 fi
2288
2289
2290   test -n "$TRUEPRG" && break
2291 done
2292 test -n "$TRUEPRG" || TRUEPRG=":"
2293
2294 for ac_prog in false
2295 do
2296   # Extract the first word of "$ac_prog", so it can be a program name with args.
2297 set dummy $ac_prog; ac_word=$2
2298 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2299 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2300 if test "${ac_cv_path_FALSEPRG+set}" = set; then
2301   echo $ECHO_N "(cached) $ECHO_C" >&6
2302 else
2303   case $FALSEPRG in
2304   [\\/]* | ?:[\\/]*)
2305   ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
2306   ;;
2307   *)
2308   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2309 for as_dir in $PATH
2310 do
2311   IFS=$as_save_IFS
2312   test -z "$as_dir" && as_dir=.
2313   for ac_exec_ext in '' $ac_executable_extensions; do
2314   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2315     ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
2316     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2317     break 2
2318   fi
2319 done
2320 done
2321 IFS=$as_save_IFS
2322
2323   ;;
2324 esac
2325 fi
2326 FALSEPRG=$ac_cv_path_FALSEPRG
2327 if test -n "$FALSEPRG"; then
2328   { echo "$as_me:$LINENO: result: $FALSEPRG" >&5
2329 echo "${ECHO_T}$FALSEPRG" >&6; }
2330 else
2331   { echo "$as_me:$LINENO: result: no" >&5
2332 echo "${ECHO_T}no" >&6; }
2333 fi
2334
2335
2336   test -n "$FALSEPRG" && break
2337 done
2338 test -n "$FALSEPRG" || FALSEPRG=":"
2339
2340
2341
2342 post_host=
2343 if test "x$BACULA" != x; then
2344    post_host=`echo -${BACULA} | tr 'A-Z ' 'a-z-'`
2345 fi
2346 BACULA=${BACULA:-Bacula}
2347 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2348 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2349 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2350 echo "configuring for ${BACULA} $VERSION ($DATE)"
2351
2352
2353 ac_ext=c
2354 ac_cpp='$CPP $CPPFLAGS'
2355 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2356 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2357 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2358 if test -n "$ac_tool_prefix"; then
2359   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2360 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2361 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2362 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2363 if test "${ac_cv_prog_CC+set}" = set; then
2364   echo $ECHO_N "(cached) $ECHO_C" >&6
2365 else
2366   if test -n "$CC"; then
2367   ac_cv_prog_CC="$CC" # Let the user override the test.
2368 else
2369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2370 for as_dir in $PATH
2371 do
2372   IFS=$as_save_IFS
2373   test -z "$as_dir" && as_dir=.
2374   for ac_exec_ext in '' $ac_executable_extensions; do
2375   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2376     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2377     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2378     break 2
2379   fi
2380 done
2381 done
2382 IFS=$as_save_IFS
2383
2384 fi
2385 fi
2386 CC=$ac_cv_prog_CC
2387 if test -n "$CC"; then
2388   { echo "$as_me:$LINENO: result: $CC" >&5
2389 echo "${ECHO_T}$CC" >&6; }
2390 else
2391   { echo "$as_me:$LINENO: result: no" >&5
2392 echo "${ECHO_T}no" >&6; }
2393 fi
2394
2395
2396 fi
2397 if test -z "$ac_cv_prog_CC"; then
2398   ac_ct_CC=$CC
2399   # Extract the first word of "gcc", so it can be a program name with args.
2400 set dummy gcc; ac_word=$2
2401 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2402 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2403 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2404   echo $ECHO_N "(cached) $ECHO_C" >&6
2405 else
2406   if test -n "$ac_ct_CC"; then
2407   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2408 else
2409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2410 for as_dir in $PATH
2411 do
2412   IFS=$as_save_IFS
2413   test -z "$as_dir" && as_dir=.
2414   for ac_exec_ext in '' $ac_executable_extensions; do
2415   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2416     ac_cv_prog_ac_ct_CC="gcc"
2417     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2418     break 2
2419   fi
2420 done
2421 done
2422 IFS=$as_save_IFS
2423
2424 fi
2425 fi
2426 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2427 if test -n "$ac_ct_CC"; then
2428   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2429 echo "${ECHO_T}$ac_ct_CC" >&6; }
2430 else
2431   { echo "$as_me:$LINENO: result: no" >&5
2432 echo "${ECHO_T}no" >&6; }
2433 fi
2434
2435   if test "x$ac_ct_CC" = x; then
2436     CC=""
2437   else
2438     case $cross_compiling:$ac_tool_warned in
2439 yes:)
2440 { echo "$as_me:$LINENO: 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." >&5
2443 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2444 whose name does not start with the host triplet.  If you think this
2445 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2446 ac_tool_warned=yes ;;
2447 esac
2448     CC=$ac_ct_CC
2449   fi
2450 else
2451   CC="$ac_cv_prog_CC"
2452 fi
2453
2454 if test -z "$CC"; then
2455           if test -n "$ac_tool_prefix"; then
2456     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2457 set dummy ${ac_tool_prefix}cc; ac_word=$2
2458 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2459 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2460 if test "${ac_cv_prog_CC+set}" = set; then
2461   echo $ECHO_N "(cached) $ECHO_C" >&6
2462 else
2463   if test -n "$CC"; then
2464   ac_cv_prog_CC="$CC" # Let the user override the test.
2465 else
2466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2467 for as_dir in $PATH
2468 do
2469   IFS=$as_save_IFS
2470   test -z "$as_dir" && as_dir=.
2471   for ac_exec_ext in '' $ac_executable_extensions; do
2472   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2473     ac_cv_prog_CC="${ac_tool_prefix}cc"
2474     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2475     break 2
2476   fi
2477 done
2478 done
2479 IFS=$as_save_IFS
2480
2481 fi
2482 fi
2483 CC=$ac_cv_prog_CC
2484 if test -n "$CC"; then
2485   { echo "$as_me:$LINENO: result: $CC" >&5
2486 echo "${ECHO_T}$CC" >&6; }
2487 else
2488   { echo "$as_me:$LINENO: result: no" >&5
2489 echo "${ECHO_T}no" >&6; }
2490 fi
2491
2492
2493   fi
2494 fi
2495 if test -z "$CC"; then
2496   # Extract the first word of "cc", so it can be a program name with args.
2497 set dummy cc; ac_word=$2
2498 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2499 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2500 if test "${ac_cv_prog_CC+set}" = set; then
2501   echo $ECHO_N "(cached) $ECHO_C" >&6
2502 else
2503   if test -n "$CC"; then
2504   ac_cv_prog_CC="$CC" # Let the user override the test.
2505 else
2506   ac_prog_rejected=no
2507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2508 for as_dir in $PATH
2509 do
2510   IFS=$as_save_IFS
2511   test -z "$as_dir" && as_dir=.
2512   for ac_exec_ext in '' $ac_executable_extensions; do
2513   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2514     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2515        ac_prog_rejected=yes
2516        continue
2517      fi
2518     ac_cv_prog_CC="cc"
2519     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2520     break 2
2521   fi
2522 done
2523 done
2524 IFS=$as_save_IFS
2525
2526 if test $ac_prog_rejected = yes; then
2527   # We found a bogon in the path, so make sure we never use it.
2528   set dummy $ac_cv_prog_CC
2529   shift
2530   if test $# != 0; then
2531     # We chose a different compiler from the bogus one.
2532     # However, it has the same basename, so the bogon will be chosen
2533     # first if we set CC to just the basename; use the full file name.
2534     shift
2535     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2536   fi
2537 fi
2538 fi
2539 fi
2540 CC=$ac_cv_prog_CC
2541 if test -n "$CC"; then
2542   { echo "$as_me:$LINENO: result: $CC" >&5
2543 echo "${ECHO_T}$CC" >&6; }
2544 else
2545   { echo "$as_me:$LINENO: result: no" >&5
2546 echo "${ECHO_T}no" >&6; }
2547 fi
2548
2549
2550 fi
2551 if test -z "$CC"; then
2552   if test -n "$ac_tool_prefix"; then
2553   for ac_prog in cl.exe
2554   do
2555     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2556 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2557 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2558 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2559 if test "${ac_cv_prog_CC+set}" = set; then
2560   echo $ECHO_N "(cached) $ECHO_C" >&6
2561 else
2562   if test -n "$CC"; then
2563   ac_cv_prog_CC="$CC" # Let the user override the test.
2564 else
2565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2566 for as_dir in $PATH
2567 do
2568   IFS=$as_save_IFS
2569   test -z "$as_dir" && as_dir=.
2570   for ac_exec_ext in '' $ac_executable_extensions; do
2571   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2572     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2573     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2574     break 2
2575   fi
2576 done
2577 done
2578 IFS=$as_save_IFS
2579
2580 fi
2581 fi
2582 CC=$ac_cv_prog_CC
2583 if test -n "$CC"; then
2584   { echo "$as_me:$LINENO: result: $CC" >&5
2585 echo "${ECHO_T}$CC" >&6; }
2586 else
2587   { echo "$as_me:$LINENO: result: no" >&5
2588 echo "${ECHO_T}no" >&6; }
2589 fi
2590
2591
2592     test -n "$CC" && break
2593   done
2594 fi
2595 if test -z "$CC"; then
2596   ac_ct_CC=$CC
2597   for ac_prog in cl.exe
2598 do
2599   # Extract the first word of "$ac_prog", so it can be a program name with args.
2600 set dummy $ac_prog; ac_word=$2
2601 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2602 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2603 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2604   echo $ECHO_N "(cached) $ECHO_C" >&6
2605 else
2606   if test -n "$ac_ct_CC"; then
2607   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2608 else
2609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2610 for as_dir in $PATH
2611 do
2612   IFS=$as_save_IFS
2613   test -z "$as_dir" && as_dir=.
2614   for ac_exec_ext in '' $ac_executable_extensions; do
2615   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2616     ac_cv_prog_ac_ct_CC="$ac_prog"
2617     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2618     break 2
2619   fi
2620 done
2621 done
2622 IFS=$as_save_IFS
2623
2624 fi
2625 fi
2626 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2627 if test -n "$ac_ct_CC"; then
2628   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2629 echo "${ECHO_T}$ac_ct_CC" >&6; }
2630 else
2631   { echo "$as_me:$LINENO: result: no" >&5
2632 echo "${ECHO_T}no" >&6; }
2633 fi
2634
2635
2636   test -n "$ac_ct_CC" && break
2637 done
2638
2639   if test "x$ac_ct_CC" = x; then
2640     CC=""
2641   else
2642     case $cross_compiling:$ac_tool_warned in
2643 yes:)
2644 { echo "$as_me:$LINENO: 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." >&5
2647 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2648 whose name does not start with the host triplet.  If you think this
2649 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2650 ac_tool_warned=yes ;;
2651 esac
2652     CC=$ac_ct_CC
2653   fi
2654 fi
2655
2656 fi
2657
2658
2659 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2660 See \`config.log' for more details." >&5
2661 echo "$as_me: error: no acceptable C compiler found in \$PATH
2662 See \`config.log' for more details." >&2;}
2663    { (exit 1); exit 1; }; }
2664
2665 # Provide some information about the compiler.
2666 echo "$as_me:$LINENO: checking for C compiler version" >&5
2667 ac_compiler=`set X $ac_compile; echo $2`
2668 { (ac_try="$ac_compiler --version >&5"
2669 case "(($ac_try" in
2670   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2671   *) ac_try_echo=$ac_try;;
2672 esac
2673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2674   (eval "$ac_compiler --version >&5") 2>&5
2675   ac_status=$?
2676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2677   (exit $ac_status); }
2678 { (ac_try="$ac_compiler -v >&5"
2679 case "(($ac_try" in
2680   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2681   *) ac_try_echo=$ac_try;;
2682 esac
2683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2684   (eval "$ac_compiler -v >&5") 2>&5
2685   ac_status=$?
2686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2687   (exit $ac_status); }
2688 { (ac_try="$ac_compiler -V >&5"
2689 case "(($ac_try" in
2690   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2691   *) ac_try_echo=$ac_try;;
2692 esac
2693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2694   (eval "$ac_compiler -V >&5") 2>&5
2695   ac_status=$?
2696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2697   (exit $ac_status); }
2698
2699 cat >conftest.$ac_ext <<_ACEOF
2700 /* confdefs.h.  */
2701 _ACEOF
2702 cat confdefs.h >>conftest.$ac_ext
2703 cat >>conftest.$ac_ext <<_ACEOF
2704 /* end confdefs.h.  */
2705
2706 int
2707 main ()
2708 {
2709
2710   ;
2711   return 0;
2712 }
2713 _ACEOF
2714 ac_clean_files_save=$ac_clean_files
2715 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2716 # Try to create an executable without -o first, disregard a.out.
2717 # It will help us diagnose broken compilers, and finding out an intuition
2718 # of exeext.
2719 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2720 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2721 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2722 #
2723 # List of possible output files, starting from the most likely.
2724 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2725 # only as a last resort.  b.out is created by i960 compilers.
2726 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2727 #
2728 # The IRIX 6 linker writes into existing files which may not be
2729 # executable, retaining their permissions.  Remove them first so a
2730 # subsequent execution test works.
2731 ac_rmfiles=
2732 for ac_file in $ac_files
2733 do
2734   case $ac_file in
2735     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2736     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2737   esac
2738 done
2739 rm -f $ac_rmfiles
2740
2741 if { (ac_try="$ac_link_default"
2742 case "(($ac_try" in
2743   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2744   *) ac_try_echo=$ac_try;;
2745 esac
2746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2747   (eval "$ac_link_default") 2>&5
2748   ac_status=$?
2749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2750   (exit $ac_status); }; then
2751   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2752 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2753 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2754 # so that the user can short-circuit this test for compilers unknown to
2755 # Autoconf.
2756 for ac_file in $ac_files ''
2757 do
2758   test -f "$ac_file" || continue
2759   case $ac_file in
2760     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2761         ;;
2762     [ab].out )
2763         # We found the default executable, but exeext='' is most
2764         # certainly right.
2765         break;;
2766     *.* )
2767         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2768         then :; else
2769            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2770         fi
2771         # We set ac_cv_exeext here because the later test for it is not
2772         # safe: cross compilers may not add the suffix if given an `-o'
2773         # argument, so we may need to know it at that point already.
2774         # Even if this section looks crufty: it has the advantage of
2775         # actually working.
2776         break;;
2777     * )
2778         break;;
2779   esac
2780 done
2781 test "$ac_cv_exeext" = no && ac_cv_exeext=
2782
2783 else
2784   ac_file=''
2785 fi
2786
2787 { echo "$as_me:$LINENO: result: $ac_file" >&5
2788 echo "${ECHO_T}$ac_file" >&6; }
2789 if test -z "$ac_file"; then
2790   echo "$as_me: failed program was:" >&5
2791 sed 's/^/| /' conftest.$ac_ext >&5
2792
2793 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2794 See \`config.log' for more details." >&5
2795 echo "$as_me: error: C compiler cannot create executables
2796 See \`config.log' for more details." >&2;}
2797    { (exit 77); exit 77; }; }
2798 fi
2799
2800 ac_exeext=$ac_cv_exeext
2801
2802 # Check that the compiler produces executables we can run.  If not, either
2803 # the compiler is broken, or we cross compile.
2804 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2805 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2806 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2807 # If not cross compiling, check that we can run a simple program.
2808 if test "$cross_compiling" != yes; then
2809   if { ac_try='./$ac_file'
2810   { (case "(($ac_try" in
2811   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2812   *) ac_try_echo=$ac_try;;
2813 esac
2814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2815   (eval "$ac_try") 2>&5
2816   ac_status=$?
2817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2818   (exit $ac_status); }; }; then
2819     cross_compiling=no
2820   else
2821     if test "$cross_compiling" = maybe; then
2822         cross_compiling=yes
2823     else
2824         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2825 If you meant to cross compile, use \`--host'.
2826 See \`config.log' for more details." >&5
2827 echo "$as_me: error: cannot run C compiled programs.
2828 If you meant to cross compile, use \`--host'.
2829 See \`config.log' for more details." >&2;}
2830    { (exit 1); exit 1; }; }
2831     fi
2832   fi
2833 fi
2834 { echo "$as_me:$LINENO: result: yes" >&5
2835 echo "${ECHO_T}yes" >&6; }
2836
2837 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2838 ac_clean_files=$ac_clean_files_save
2839 # Check that the compiler produces executables we can run.  If not, either
2840 # the compiler is broken, or we cross compile.
2841 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2842 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2843 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2844 echo "${ECHO_T}$cross_compiling" >&6; }
2845
2846 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2847 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2848 if { (ac_try="$ac_link"
2849 case "(($ac_try" in
2850   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2851   *) ac_try_echo=$ac_try;;
2852 esac
2853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2854   (eval "$ac_link") 2>&5
2855   ac_status=$?
2856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2857   (exit $ac_status); }; then
2858   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2859 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2860 # work properly (i.e., refer to `conftest.exe'), while it won't with
2861 # `rm'.
2862 for ac_file in conftest.exe conftest conftest.*; do
2863   test -f "$ac_file" || continue
2864   case $ac_file in
2865     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2866     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2867           break;;
2868     * ) break;;
2869   esac
2870 done
2871 else
2872   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2873 See \`config.log' for more details." >&5
2874 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2875 See \`config.log' for more details." >&2;}
2876    { (exit 1); exit 1; }; }
2877 fi
2878
2879 rm -f conftest$ac_cv_exeext
2880 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2881 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2882
2883 rm -f conftest.$ac_ext
2884 EXEEXT=$ac_cv_exeext
2885 ac_exeext=$EXEEXT
2886 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2887 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2888 if test "${ac_cv_objext+set}" = set; then
2889   echo $ECHO_N "(cached) $ECHO_C" >&6
2890 else
2891   cat >conftest.$ac_ext <<_ACEOF
2892 /* confdefs.h.  */
2893 _ACEOF
2894 cat confdefs.h >>conftest.$ac_ext
2895 cat >>conftest.$ac_ext <<_ACEOF
2896 /* end confdefs.h.  */
2897
2898 int
2899 main ()
2900 {
2901
2902   ;
2903   return 0;
2904 }
2905 _ACEOF
2906 rm -f conftest.o conftest.obj
2907 if { (ac_try="$ac_compile"
2908 case "(($ac_try" in
2909   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2910   *) ac_try_echo=$ac_try;;
2911 esac
2912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2913   (eval "$ac_compile") 2>&5
2914   ac_status=$?
2915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2916   (exit $ac_status); }; then
2917   for ac_file in conftest.o conftest.obj conftest.*; do
2918   test -f "$ac_file" || continue;
2919   case $ac_file in
2920     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2921     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2922        break;;
2923   esac
2924 done
2925 else
2926   echo "$as_me: failed program was:" >&5
2927 sed 's/^/| /' conftest.$ac_ext >&5
2928
2929 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2930 See \`config.log' for more details." >&5
2931 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2932 See \`config.log' for more details." >&2;}
2933    { (exit 1); exit 1; }; }
2934 fi
2935
2936 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2937 fi
2938 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2939 echo "${ECHO_T}$ac_cv_objext" >&6; }
2940 OBJEXT=$ac_cv_objext
2941 ac_objext=$OBJEXT
2942 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2943 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2944 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2945   echo $ECHO_N "(cached) $ECHO_C" >&6
2946 else
2947   cat >conftest.$ac_ext <<_ACEOF
2948 /* confdefs.h.  */
2949 _ACEOF
2950 cat confdefs.h >>conftest.$ac_ext
2951 cat >>conftest.$ac_ext <<_ACEOF
2952 /* end confdefs.h.  */
2953
2954 int
2955 main ()
2956 {
2957 #ifndef __GNUC__
2958        choke me
2959 #endif
2960
2961   ;
2962   return 0;
2963 }
2964 _ACEOF
2965 rm -f conftest.$ac_objext
2966 if { (ac_try="$ac_compile"
2967 case "(($ac_try" in
2968   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2969   *) ac_try_echo=$ac_try;;
2970 esac
2971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2972   (eval "$ac_compile") 2>conftest.er1
2973   ac_status=$?
2974   grep -v '^ *+' conftest.er1 >conftest.err
2975   rm -f conftest.er1
2976   cat conftest.err >&5
2977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2978   (exit $ac_status); } && {
2979          test -z "$ac_c_werror_flag" ||
2980          test ! -s conftest.err
2981        } && test -s conftest.$ac_objext; then
2982   ac_compiler_gnu=yes
2983 else
2984   echo "$as_me: failed program was:" >&5
2985 sed 's/^/| /' conftest.$ac_ext >&5
2986
2987         ac_compiler_gnu=no
2988 fi
2989
2990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2991 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2992
2993 fi
2994 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2995 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2996 GCC=`test $ac_compiler_gnu = yes && echo yes`
2997 ac_test_CFLAGS=${CFLAGS+set}
2998 ac_save_CFLAGS=$CFLAGS
2999 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3000 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3001 if test "${ac_cv_prog_cc_g+set}" = set; then
3002   echo $ECHO_N "(cached) $ECHO_C" >&6
3003 else
3004   ac_save_c_werror_flag=$ac_c_werror_flag
3005    ac_c_werror_flag=yes
3006    ac_cv_prog_cc_g=no
3007    CFLAGS="-g"
3008    cat >conftest.$ac_ext <<_ACEOF
3009 /* confdefs.h.  */
3010 _ACEOF
3011 cat confdefs.h >>conftest.$ac_ext
3012 cat >>conftest.$ac_ext <<_ACEOF
3013 /* end confdefs.h.  */
3014
3015 int
3016 main ()
3017 {
3018
3019   ;
3020   return 0;
3021 }
3022 _ACEOF
3023 rm -f conftest.$ac_objext
3024 if { (ac_try="$ac_compile"
3025 case "(($ac_try" in
3026   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3027   *) ac_try_echo=$ac_try;;
3028 esac
3029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3030   (eval "$ac_compile") 2>conftest.er1
3031   ac_status=$?
3032   grep -v '^ *+' conftest.er1 >conftest.err
3033   rm -f conftest.er1
3034   cat conftest.err >&5
3035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3036   (exit $ac_status); } && {
3037          test -z "$ac_c_werror_flag" ||
3038          test ! -s conftest.err
3039        } && test -s conftest.$ac_objext; then
3040   ac_cv_prog_cc_g=yes
3041 else
3042   echo "$as_me: failed program was:" >&5
3043 sed 's/^/| /' conftest.$ac_ext >&5
3044
3045         CFLAGS=""
3046       cat >conftest.$ac_ext <<_ACEOF
3047 /* confdefs.h.  */
3048 _ACEOF
3049 cat confdefs.h >>conftest.$ac_ext
3050 cat >>conftest.$ac_ext <<_ACEOF
3051 /* end confdefs.h.  */
3052
3053 int
3054 main ()
3055 {
3056
3057   ;
3058   return 0;
3059 }
3060 _ACEOF
3061 rm -f conftest.$ac_objext
3062 if { (ac_try="$ac_compile"
3063 case "(($ac_try" in
3064   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3065   *) ac_try_echo=$ac_try;;
3066 esac
3067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3068   (eval "$ac_compile") 2>conftest.er1
3069   ac_status=$?
3070   grep -v '^ *+' conftest.er1 >conftest.err
3071   rm -f conftest.er1
3072   cat conftest.err >&5
3073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3074   (exit $ac_status); } && {
3075          test -z "$ac_c_werror_flag" ||
3076          test ! -s conftest.err
3077        } && test -s conftest.$ac_objext; then
3078   :
3079 else
3080   echo "$as_me: failed program was:" >&5
3081 sed 's/^/| /' conftest.$ac_ext >&5
3082
3083         ac_c_werror_flag=$ac_save_c_werror_flag
3084          CFLAGS="-g"
3085          cat >conftest.$ac_ext <<_ACEOF
3086 /* confdefs.h.  */
3087 _ACEOF
3088 cat confdefs.h >>conftest.$ac_ext
3089 cat >>conftest.$ac_ext <<_ACEOF
3090 /* end confdefs.h.  */
3091
3092 int
3093 main ()
3094 {
3095
3096   ;
3097   return 0;
3098 }
3099 _ACEOF
3100 rm -f conftest.$ac_objext
3101 if { (ac_try="$ac_compile"
3102 case "(($ac_try" in
3103   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3104   *) ac_try_echo=$ac_try;;
3105 esac
3106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3107   (eval "$ac_compile") 2>conftest.er1
3108   ac_status=$?
3109   grep -v '^ *+' conftest.er1 >conftest.err
3110   rm -f conftest.er1
3111   cat conftest.err >&5
3112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3113   (exit $ac_status); } && {
3114          test -z "$ac_c_werror_flag" ||
3115          test ! -s conftest.err
3116        } && test -s conftest.$ac_objext; then
3117   ac_cv_prog_cc_g=yes
3118 else
3119   echo "$as_me: failed program was:" >&5
3120 sed 's/^/| /' conftest.$ac_ext >&5
3121
3122
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 fi
3130
3131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3132    ac_c_werror_flag=$ac_save_c_werror_flag
3133 fi
3134 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3135 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3136 if test "$ac_test_CFLAGS" = set; then
3137   CFLAGS=$ac_save_CFLAGS
3138 elif test $ac_cv_prog_cc_g = yes; then
3139   if test "$GCC" = yes; then
3140     CFLAGS="-g -O2"
3141   else
3142     CFLAGS="-g"
3143   fi
3144 else
3145   if test "$GCC" = yes; then
3146     CFLAGS="-O2"
3147   else
3148     CFLAGS=
3149   fi
3150 fi
3151 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3152 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3153 if test "${ac_cv_prog_cc_c89+set}" = set; then
3154   echo $ECHO_N "(cached) $ECHO_C" >&6
3155 else
3156   ac_cv_prog_cc_c89=no
3157 ac_save_CC=$CC
3158 cat >conftest.$ac_ext <<_ACEOF
3159 /* confdefs.h.  */
3160 _ACEOF
3161 cat confdefs.h >>conftest.$ac_ext
3162 cat >>conftest.$ac_ext <<_ACEOF
3163 /* end confdefs.h.  */
3164 #include <stdarg.h>
3165 #include <stdio.h>
3166 #include <sys/types.h>
3167 #include <sys/stat.h>
3168 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3169 struct buf { int x; };
3170 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3171 static char *e (p, i)
3172      char **p;
3173      int i;
3174 {
3175   return p[i];
3176 }
3177 static char *f (char * (*g) (char **, int), char **p, ...)
3178 {
3179   char *s;
3180   va_list v;
3181   va_start (v,p);
3182   s = g (p, va_arg (v,int));
3183   va_end (v);
3184   return s;
3185 }
3186
3187 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3188    function prototypes and stuff, but not '\xHH' hex character constants.
3189    These don't provoke an error unfortunately, instead are silently treated
3190    as 'x'.  The following induces an error, until -std is added to get
3191    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3192    array size at least.  It's necessary to write '\x00'==0 to get something
3193    that's true only with -std.  */
3194 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3195
3196 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3197    inside strings and character constants.  */
3198 #define FOO(x) 'x'
3199 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3200
3201 int test (int i, double x);
3202 struct s1 {int (*f) (int a);};
3203 struct s2 {int (*f) (double a);};
3204 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3205 int argc;
3206 char **argv;
3207 int
3208 main ()
3209 {
3210 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3211   ;
3212   return 0;
3213 }
3214 _ACEOF
3215 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3216         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3217 do
3218   CC="$ac_save_CC $ac_arg"
3219   rm -f conftest.$ac_objext
3220 if { (ac_try="$ac_compile"
3221 case "(($ac_try" in
3222   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3223   *) ac_try_echo=$ac_try;;
3224 esac
3225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3226   (eval "$ac_compile") 2>conftest.er1
3227   ac_status=$?
3228   grep -v '^ *+' conftest.er1 >conftest.err
3229   rm -f conftest.er1
3230   cat conftest.err >&5
3231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3232   (exit $ac_status); } && {
3233          test -z "$ac_c_werror_flag" ||
3234          test ! -s conftest.err
3235        } && test -s conftest.$ac_objext; then
3236   ac_cv_prog_cc_c89=$ac_arg
3237 else
3238   echo "$as_me: failed program was:" >&5
3239 sed 's/^/| /' conftest.$ac_ext >&5
3240
3241
3242 fi
3243
3244 rm -f core conftest.err conftest.$ac_objext
3245   test "x$ac_cv_prog_cc_c89" != "xno" && break
3246 done
3247 rm -f conftest.$ac_ext
3248 CC=$ac_save_CC
3249
3250 fi
3251 # AC_CACHE_VAL
3252 case "x$ac_cv_prog_cc_c89" in
3253   x)
3254     { echo "$as_me:$LINENO: result: none needed" >&5
3255 echo "${ECHO_T}none needed" >&6; } ;;
3256   xno)
3257     { echo "$as_me:$LINENO: result: unsupported" >&5
3258 echo "${ECHO_T}unsupported" >&6; } ;;
3259   *)
3260     CC="$CC $ac_cv_prog_cc_c89"
3261     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3262 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3263 esac
3264
3265
3266 ac_ext=c
3267 ac_cpp='$CPP $CPPFLAGS'
3268 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3269 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3270 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3271
3272 ac_ext=cpp
3273 ac_cpp='$CXXCPP $CPPFLAGS'
3274 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3275 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3276 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3277 if test -z "$CXX"; then
3278   if test -n "$CCC"; then
3279     CXX=$CCC
3280   else
3281     if test -n "$ac_tool_prefix"; then
3282   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3283   do
3284     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3285 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3286 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3287 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3288 if test "${ac_cv_prog_CXX+set}" = set; then
3289   echo $ECHO_N "(cached) $ECHO_C" >&6
3290 else
3291   if test -n "$CXX"; then
3292   ac_cv_prog_CXX="$CXX" # Let the user override the test.
3293 else
3294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3295 for as_dir in $PATH
3296 do
3297   IFS=$as_save_IFS
3298   test -z "$as_dir" && as_dir=.
3299   for ac_exec_ext in '' $ac_executable_extensions; do
3300   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3301     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3302     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3303     break 2
3304   fi
3305 done
3306 done
3307 IFS=$as_save_IFS
3308
3309 fi
3310 fi
3311 CXX=$ac_cv_prog_CXX
3312 if test -n "$CXX"; then
3313   { echo "$as_me:$LINENO: result: $CXX" >&5
3314 echo "${ECHO_T}$CXX" >&6; }
3315 else
3316   { echo "$as_me:$LINENO: result: no" >&5
3317 echo "${ECHO_T}no" >&6; }
3318 fi
3319
3320
3321     test -n "$CXX" && break
3322   done
3323 fi
3324 if test -z "$CXX"; then
3325   ac_ct_CXX=$CXX
3326   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3327 do
3328   # Extract the first word of "$ac_prog", so it can be a program name with args.
3329 set dummy $ac_prog; ac_word=$2
3330 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3331 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3332 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3333   echo $ECHO_N "(cached) $ECHO_C" >&6
3334 else
3335   if test -n "$ac_ct_CXX"; then
3336   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3337 else
3338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3339 for as_dir in $PATH
3340 do
3341   IFS=$as_save_IFS
3342   test -z "$as_dir" && as_dir=.
3343   for ac_exec_ext in '' $ac_executable_extensions; do
3344   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3345     ac_cv_prog_ac_ct_CXX="$ac_prog"
3346     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3347     break 2
3348   fi
3349 done
3350 done
3351 IFS=$as_save_IFS
3352
3353 fi
3354 fi
3355 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3356 if test -n "$ac_ct_CXX"; then
3357   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3358 echo "${ECHO_T}$ac_ct_CXX" >&6; }
3359 else
3360   { echo "$as_me:$LINENO: result: no" >&5
3361 echo "${ECHO_T}no" >&6; }
3362 fi
3363
3364
3365   test -n "$ac_ct_CXX" && break
3366 done
3367
3368   if test "x$ac_ct_CXX" = x; then
3369     CXX="g++"
3370   else
3371     case $cross_compiling:$ac_tool_warned in
3372 yes:)
3373 { echo "$as_me:$LINENO: 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." >&5
3376 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3377 whose name does not start with the host triplet.  If you think this
3378 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3379 ac_tool_warned=yes ;;
3380 esac
3381     CXX=$ac_ct_CXX
3382   fi
3383 fi
3384
3385   fi
3386 fi
3387 # Provide some information about the compiler.
3388 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3389 ac_compiler=`set X $ac_compile; echo $2`
3390 { (ac_try="$ac_compiler --version >&5"
3391 case "(($ac_try" in
3392   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3393   *) ac_try_echo=$ac_try;;
3394 esac
3395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3396   (eval "$ac_compiler --version >&5") 2>&5
3397   ac_status=$?
3398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3399   (exit $ac_status); }
3400 { (ac_try="$ac_compiler -v >&5"
3401 case "(($ac_try" in
3402   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3403   *) ac_try_echo=$ac_try;;
3404 esac
3405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3406   (eval "$ac_compiler -v >&5") 2>&5
3407   ac_status=$?
3408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3409   (exit $ac_status); }
3410 { (ac_try="$ac_compiler -V >&5"
3411 case "(($ac_try" in
3412   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3413   *) ac_try_echo=$ac_try;;
3414 esac
3415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3416   (eval "$ac_compiler -V >&5") 2>&5
3417   ac_status=$?
3418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3419   (exit $ac_status); }
3420
3421 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3422 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3423 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3424   echo $ECHO_N "(cached) $ECHO_C" >&6
3425 else
3426   cat >conftest.$ac_ext <<_ACEOF
3427 /* confdefs.h.  */
3428 _ACEOF
3429 cat confdefs.h >>conftest.$ac_ext
3430 cat >>conftest.$ac_ext <<_ACEOF
3431 /* end confdefs.h.  */
3432
3433 int
3434 main ()
3435 {
3436 #ifndef __GNUC__
3437        choke me
3438 #endif
3439
3440   ;
3441   return 0;
3442 }
3443 _ACEOF
3444 rm -f conftest.$ac_objext
3445 if { (ac_try="$ac_compile"
3446 case "(($ac_try" in
3447   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3448   *) ac_try_echo=$ac_try;;
3449 esac
3450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3451   (eval "$ac_compile") 2>conftest.er1
3452   ac_status=$?
3453   grep -v '^ *+' conftest.er1 >conftest.err
3454   rm -f conftest.er1
3455   cat conftest.err >&5
3456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3457   (exit $ac_status); } && {
3458          test -z "$ac_cxx_werror_flag" ||
3459          test ! -s conftest.err
3460        } && test -s conftest.$ac_objext; then
3461   ac_compiler_gnu=yes
3462 else
3463   echo "$as_me: failed program was:" >&5
3464 sed 's/^/| /' conftest.$ac_ext >&5
3465
3466         ac_compiler_gnu=no
3467 fi
3468
3469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3470 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3471
3472 fi
3473 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3474 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3475 GXX=`test $ac_compiler_gnu = yes && echo yes`
3476 ac_test_CXXFLAGS=${CXXFLAGS+set}
3477 ac_save_CXXFLAGS=$CXXFLAGS
3478 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3479 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3480 if test "${ac_cv_prog_cxx_g+set}" = set; then
3481   echo $ECHO_N "(cached) $ECHO_C" >&6
3482 else
3483   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3484    ac_cxx_werror_flag=yes
3485    ac_cv_prog_cxx_g=no
3486    CXXFLAGS="-g"
3487    cat >conftest.$ac_ext <<_ACEOF
3488 /* confdefs.h.  */
3489 _ACEOF
3490 cat confdefs.h >>conftest.$ac_ext
3491 cat >>conftest.$ac_ext <<_ACEOF
3492 /* end confdefs.h.  */
3493
3494 int
3495 main ()
3496 {
3497
3498   ;
3499   return 0;
3500 }
3501 _ACEOF
3502 rm -f conftest.$ac_objext
3503 if { (ac_try="$ac_compile"
3504 case "(($ac_try" in
3505   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3506   *) ac_try_echo=$ac_try;;
3507 esac
3508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3509   (eval "$ac_compile") 2>conftest.er1
3510   ac_status=$?
3511   grep -v '^ *+' conftest.er1 >conftest.err
3512   rm -f conftest.er1
3513   cat conftest.err >&5
3514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3515   (exit $ac_status); } && {
3516          test -z "$ac_cxx_werror_flag" ||
3517          test ! -s conftest.err
3518        } && test -s conftest.$ac_objext; then
3519   ac_cv_prog_cxx_g=yes
3520 else
3521   echo "$as_me: failed program was:" >&5
3522 sed 's/^/| /' conftest.$ac_ext >&5
3523
3524         CXXFLAGS=""
3525       cat >conftest.$ac_ext <<_ACEOF
3526 /* confdefs.h.  */
3527 _ACEOF
3528 cat confdefs.h >>conftest.$ac_ext
3529 cat >>conftest.$ac_ext <<_ACEOF
3530 /* end confdefs.h.  */
3531
3532 int
3533 main ()
3534 {
3535
3536   ;
3537   return 0;
3538 }
3539 _ACEOF
3540 rm -f conftest.$ac_objext
3541 if { (ac_try="$ac_compile"
3542 case "(($ac_try" in
3543   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3544   *) ac_try_echo=$ac_try;;
3545 esac
3546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3547   (eval "$ac_compile") 2>conftest.er1
3548   ac_status=$?
3549   grep -v '^ *+' conftest.er1 >conftest.err
3550   rm -f conftest.er1
3551   cat conftest.err >&5
3552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3553   (exit $ac_status); } && {
3554          test -z "$ac_cxx_werror_flag" ||
3555          test ! -s conftest.err
3556        } && test -s conftest.$ac_objext; then
3557   :
3558 else
3559   echo "$as_me: failed program was:" >&5
3560 sed 's/^/| /' conftest.$ac_ext >&5
3561
3562         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3563          CXXFLAGS="-g"
3564          cat >conftest.$ac_ext <<_ACEOF
3565 /* confdefs.h.  */
3566 _ACEOF
3567 cat confdefs.h >>conftest.$ac_ext
3568 cat >>conftest.$ac_ext <<_ACEOF
3569 /* end confdefs.h.  */
3570
3571 int
3572 main ()
3573 {
3574
3575   ;
3576   return 0;
3577 }
3578 _ACEOF
3579 rm -f conftest.$ac_objext
3580 if { (ac_try="$ac_compile"
3581 case "(($ac_try" in
3582   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3583   *) ac_try_echo=$ac_try;;
3584 esac
3585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3586   (eval "$ac_compile") 2>conftest.er1
3587   ac_status=$?
3588   grep -v '^ *+' conftest.er1 >conftest.err
3589   rm -f conftest.er1
3590   cat conftest.err >&5
3591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3592   (exit $ac_status); } && {
3593          test -z "$ac_cxx_werror_flag" ||
3594          test ! -s conftest.err
3595        } && test -s conftest.$ac_objext; then
3596   ac_cv_prog_cxx_g=yes
3597 else
3598   echo "$as_me: failed program was:" >&5
3599 sed 's/^/| /' conftest.$ac_ext >&5
3600
3601
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 fi
3609
3610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3611    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3612 fi
3613 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3614 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3615 if test "$ac_test_CXXFLAGS" = set; then
3616   CXXFLAGS=$ac_save_CXXFLAGS
3617 elif test $ac_cv_prog_cxx_g = yes; then
3618   if test "$GXX" = yes; then
3619     CXXFLAGS="-g -O2"
3620   else
3621     CXXFLAGS="-g"
3622   fi
3623 else
3624   if test "$GXX" = yes; then
3625     CXXFLAGS="-O2"
3626   else
3627     CXXFLAGS=
3628   fi
3629 fi
3630 ac_ext=c
3631 ac_cpp='$CPP $CPPFLAGS'
3632 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3633 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3634 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3635
3636 if test "x$CC" != xcc; then
3637   { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
3638 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; }
3639 else
3640   { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
3641 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; }
3642 fi
3643 set dummy $CC; ac_cc=`echo $2 |
3644                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3645 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
3646   echo $ECHO_N "(cached) $ECHO_C" >&6
3647 else
3648   cat >conftest.$ac_ext <<_ACEOF
3649 /* confdefs.h.  */
3650 _ACEOF
3651 cat confdefs.h >>conftest.$ac_ext
3652 cat >>conftest.$ac_ext <<_ACEOF
3653 /* end confdefs.h.  */
3654
3655 int
3656 main ()
3657 {
3658
3659   ;
3660   return 0;
3661 }
3662 _ACEOF
3663 # Make sure it works both with $CC and with simple cc.
3664 # We do the test twice because some compilers refuse to overwrite an
3665 # existing .o file with -o, though they will create one.
3666 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3667 rm -f conftest2.*
3668 if { (case "(($ac_try" in
3669   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3670   *) ac_try_echo=$ac_try;;
3671 esac
3672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3673   (eval "$ac_try") 2>&5
3674   ac_status=$?
3675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3676   (exit $ac_status); } &&
3677    test -f conftest2.$ac_objext && { (case "(($ac_try" in
3678   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3679   *) ac_try_echo=$ac_try;;
3680 esac
3681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3682   (eval "$ac_try") 2>&5
3683   ac_status=$?
3684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3685   (exit $ac_status); };
3686 then
3687   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3688   if test "x$CC" != xcc; then
3689     # Test first that cc exists at all.
3690     if { ac_try='cc -c conftest.$ac_ext >&5'
3691   { (case "(($ac_try" in
3692   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3693   *) ac_try_echo=$ac_try;;
3694 esac
3695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3696   (eval "$ac_try") 2>&5
3697   ac_status=$?
3698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3699   (exit $ac_status); }; }; then
3700       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3701       rm -f conftest2.*
3702       if { (case "(($ac_try" in
3703   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3704   *) ac_try_echo=$ac_try;;
3705 esac
3706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3707   (eval "$ac_try") 2>&5
3708   ac_status=$?
3709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3710   (exit $ac_status); } &&
3711          test -f conftest2.$ac_objext && { (case "(($ac_try" in
3712   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3713   *) ac_try_echo=$ac_try;;
3714 esac
3715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3716   (eval "$ac_try") 2>&5
3717   ac_status=$?
3718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3719   (exit $ac_status); };
3720       then
3721         # cc works too.
3722         :
3723       else
3724         # cc exists but doesn't like -o.
3725         eval ac_cv_prog_cc_${ac_cc}_c_o=no
3726       fi
3727     fi
3728   fi
3729 else
3730   eval ac_cv_prog_cc_${ac_cc}_c_o=no
3731 fi
3732 rm -f core conftest*
3733
3734 fi
3735 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
3736   { echo "$as_me:$LINENO: result: yes" >&5
3737 echo "${ECHO_T}yes" >&6; }
3738 else
3739   { echo "$as_me:$LINENO: result: no" >&5
3740 echo "${ECHO_T}no" >&6; }
3741
3742 cat >>confdefs.h <<\_ACEOF
3743 #define NO_MINUS_C_MINUS_O 1
3744 _ACEOF
3745
3746 fi
3747
3748 ac_ext=c
3749 ac_cpp='$CPP $CPPFLAGS'
3750 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3751 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3752 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3753 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3754 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3755 # On Suns, sometimes $CPP names a directory.
3756 if test -n "$CPP" && test -d "$CPP"; then
3757   CPP=
3758 fi
3759 if test -z "$CPP"; then
3760   if test "${ac_cv_prog_CPP+set}" = set; then
3761   echo $ECHO_N "(cached) $ECHO_C" >&6
3762 else
3763       # Double quotes because CPP needs to be expanded
3764     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3765     do
3766       ac_preproc_ok=false
3767 for ac_c_preproc_warn_flag in '' yes
3768 do
3769   # Use a header file that comes with gcc, so configuring glibc
3770   # with a fresh cross-compiler works.
3771   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3772   # <limits.h> exists even on freestanding compilers.
3773   # On the NeXT, cc -E runs the code through the compiler's parser,
3774   # not just through cpp. "Syntax error" is here to catch this case.
3775   cat >conftest.$ac_ext <<_ACEOF
3776 /* confdefs.h.  */
3777 _ACEOF
3778 cat confdefs.h >>conftest.$ac_ext
3779 cat >>conftest.$ac_ext <<_ACEOF
3780 /* end confdefs.h.  */
3781 #ifdef __STDC__
3782 # include <limits.h>
3783 #else
3784 # include <assert.h>
3785 #endif
3786                      Syntax error
3787 _ACEOF
3788 if { (ac_try="$ac_cpp conftest.$ac_ext"
3789 case "(($ac_try" in
3790   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3791   *) ac_try_echo=$ac_try;;
3792 esac
3793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3794   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3795   ac_status=$?
3796   grep -v '^ *+' conftest.er1 >conftest.err
3797   rm -f conftest.er1
3798   cat conftest.err >&5
3799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3800   (exit $ac_status); } >/dev/null && {
3801          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3802          test ! -s conftest.err
3803        }; then
3804   :
3805 else
3806   echo "$as_me: failed program was:" >&5
3807 sed 's/^/| /' conftest.$ac_ext >&5
3808
3809   # Broken: fails on valid input.
3810 continue
3811 fi
3812
3813 rm -f conftest.err conftest.$ac_ext
3814
3815   # OK, works on sane cases.  Now check whether nonexistent headers
3816   # can be detected and how.
3817   cat >conftest.$ac_ext <<_ACEOF
3818 /* confdefs.h.  */
3819 _ACEOF
3820 cat confdefs.h >>conftest.$ac_ext
3821 cat >>conftest.$ac_ext <<_ACEOF
3822 /* end confdefs.h.  */
3823 #include <ac_nonexistent.h>
3824 _ACEOF
3825 if { (ac_try="$ac_cpp conftest.$ac_ext"
3826 case "(($ac_try" in
3827   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3828   *) ac_try_echo=$ac_try;;
3829 esac
3830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3831   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3832   ac_status=$?
3833   grep -v '^ *+' conftest.er1 >conftest.err
3834   rm -f conftest.er1
3835   cat conftest.err >&5
3836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3837   (exit $ac_status); } >/dev/null && {
3838          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3839          test ! -s conftest.err
3840        }; then
3841   # Broken: success on invalid input.
3842 continue
3843 else
3844   echo "$as_me: failed program was:" >&5
3845 sed 's/^/| /' conftest.$ac_ext >&5
3846
3847   # Passes both tests.
3848 ac_preproc_ok=:
3849 break
3850 fi
3851
3852 rm -f conftest.err conftest.$ac_ext
3853
3854 done
3855 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3856 rm -f conftest.err conftest.$ac_ext
3857 if $ac_preproc_ok; then
3858   break
3859 fi
3860
3861     done
3862     ac_cv_prog_CPP=$CPP
3863
3864 fi
3865   CPP=$ac_cv_prog_CPP
3866 else
3867   ac_cv_prog_CPP=$CPP
3868 fi
3869 { echo "$as_me:$LINENO: result: $CPP" >&5
3870 echo "${ECHO_T}$CPP" >&6; }
3871 ac_preproc_ok=false
3872 for ac_c_preproc_warn_flag in '' yes
3873 do
3874   # Use a header file that comes with gcc, so configuring glibc
3875   # with a fresh cross-compiler works.
3876   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3877   # <limits.h> exists even on freestanding compilers.
3878   # On the NeXT, cc -E runs the code through the compiler's parser,
3879   # not just through cpp. "Syntax error" is here to catch this case.
3880   cat >conftest.$ac_ext <<_ACEOF
3881 /* confdefs.h.  */
3882 _ACEOF
3883 cat confdefs.h >>conftest.$ac_ext
3884 cat >>conftest.$ac_ext <<_ACEOF
3885 /* end confdefs.h.  */
3886 #ifdef __STDC__
3887 # include <limits.h>
3888 #else
3889 # include <assert.h>
3890 #endif
3891                      Syntax error
3892 _ACEOF
3893 if { (ac_try="$ac_cpp conftest.$ac_ext"
3894 case "(($ac_try" in
3895   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3896   *) ac_try_echo=$ac_try;;
3897 esac
3898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3899   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3900   ac_status=$?
3901   grep -v '^ *+' conftest.er1 >conftest.err
3902   rm -f conftest.er1
3903   cat conftest.err >&5
3904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3905   (exit $ac_status); } >/dev/null && {
3906          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3907          test ! -s conftest.err
3908        }; then
3909   :
3910 else
3911   echo "$as_me: failed program was:" >&5
3912 sed 's/^/| /' conftest.$ac_ext >&5
3913
3914   # Broken: fails on valid input.
3915 continue
3916 fi
3917
3918 rm -f conftest.err conftest.$ac_ext
3919
3920   # OK, works on sane cases.  Now check whether nonexistent headers
3921   # can be detected and how.
3922   cat >conftest.$ac_ext <<_ACEOF
3923 /* confdefs.h.  */
3924 _ACEOF
3925 cat confdefs.h >>conftest.$ac_ext
3926 cat >>conftest.$ac_ext <<_ACEOF
3927 /* end confdefs.h.  */
3928 #include <ac_nonexistent.h>
3929 _ACEOF
3930 if { (ac_try="$ac_cpp conftest.$ac_ext"
3931 case "(($ac_try" in
3932   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3933   *) ac_try_echo=$ac_try;;
3934 esac
3935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3936   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3937   ac_status=$?
3938   grep -v '^ *+' conftest.er1 >conftest.err
3939   rm -f conftest.er1
3940   cat conftest.err >&5
3941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3942   (exit $ac_status); } >/dev/null && {
3943          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3944          test ! -s conftest.err
3945        }; then
3946   # Broken: success on invalid input.
3947 continue
3948 else
3949   echo "$as_me: failed program was:" >&5
3950 sed 's/^/| /' conftest.$ac_ext >&5
3951
3952   # Passes both tests.
3953 ac_preproc_ok=:
3954 break
3955 fi
3956
3957 rm -f conftest.err conftest.$ac_ext
3958
3959 done
3960 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3961 rm -f conftest.err conftest.$ac_ext
3962 if $ac_preproc_ok; then
3963   :
3964 else
3965   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3966 See \`config.log' for more details." >&5
3967 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3968 See \`config.log' for more details." >&2;}
3969    { (exit 1); exit 1; }; }
3970 fi
3971
3972 ac_ext=c
3973 ac_cpp='$CPP $CPPFLAGS'
3974 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3975 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3976 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3977
3978
3979 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3980 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3981 if test "${ac_cv_path_GREP+set}" = set; then
3982   echo $ECHO_N "(cached) $ECHO_C" >&6
3983 else
3984   # Extract the first word of "grep ggrep" to use in msg output
3985 if test -z "$GREP"; then
3986 set dummy grep ggrep; ac_prog_name=$2
3987 if test "${ac_cv_path_GREP+set}" = set; then
3988   echo $ECHO_N "(cached) $ECHO_C" >&6
3989 else
3990   ac_path_GREP_found=false
3991 # Loop through the user's path and test for each of PROGNAME-LIST
3992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3993 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3994 do
3995   IFS=$as_save_IFS
3996   test -z "$as_dir" && as_dir=.
3997   for ac_prog in grep ggrep; do
3998   for ac_exec_ext in '' $ac_executable_extensions; do
3999     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4000     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4001     # Check for GNU ac_path_GREP and select it if it is found.
4002   # Check for GNU $ac_path_GREP
4003 case `"$ac_path_GREP" --version 2>&1` in
4004 *GNU*)
4005   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4006 *)
4007   ac_count=0
4008   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4009   while :
4010   do
4011     cat "conftest.in" "conftest.in" >"conftest.tmp"
4012     mv "conftest.tmp" "conftest.in"
4013     cp "conftest.in" "conftest.nl"
4014     echo 'GREP' >> "conftest.nl"
4015     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4016     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4017     ac_count=`expr $ac_count + 1`
4018     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4019       # Best one so far, save it but keep looking for a better one
4020       ac_cv_path_GREP="$ac_path_GREP"
4021       ac_path_GREP_max=$ac_count
4022     fi
4023     # 10*(2^10) chars as input seems more than enough
4024     test $ac_count -gt 10 && break
4025   done
4026   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4027 esac
4028
4029
4030     $ac_path_GREP_found && break 3
4031   done
4032 done
4033
4034 done
4035 IFS=$as_save_IFS
4036
4037
4038 fi
4039
4040 GREP="$ac_cv_path_GREP"
4041 if test -z "$GREP"; then
4042   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4043 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4044    { (exit 1); exit 1; }; }
4045 fi
4046
4047 else
4048   ac_cv_path_GREP=$GREP
4049 fi
4050
4051
4052 fi
4053 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4054 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4055  GREP="$ac_cv_path_GREP"
4056
4057
4058 { echo "$as_me:$LINENO: checking for egrep" >&5
4059 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4060 if test "${ac_cv_path_EGREP+set}" = set; then
4061   echo $ECHO_N "(cached) $ECHO_C" >&6
4062 else
4063   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4064    then ac_cv_path_EGREP="$GREP -E"
4065    else
4066      # Extract the first word of "egrep" to use in msg output
4067 if test -z "$EGREP"; then
4068 set dummy egrep; ac_prog_name=$2
4069 if test "${ac_cv_path_EGREP+set}" = set; then
4070   echo $ECHO_N "(cached) $ECHO_C" >&6
4071 else
4072   ac_path_EGREP_found=false
4073 # Loop through the user's path and test for each of PROGNAME-LIST
4074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4075 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4076 do
4077   IFS=$as_save_IFS
4078   test -z "$as_dir" && as_dir=.
4079   for ac_prog in egrep; do
4080   for ac_exec_ext in '' $ac_executable_extensions; do
4081     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4082     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4083     # Check for GNU ac_path_EGREP and select it if it is found.
4084   # Check for GNU $ac_path_EGREP
4085 case `"$ac_path_EGREP" --version 2>&1` in
4086 *GNU*)
4087   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4088 *)
4089   ac_count=0
4090   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4091   while :
4092   do
4093     cat "conftest.in" "conftest.in" >"conftest.tmp"
4094     mv "conftest.tmp" "conftest.in"
4095     cp "conftest.in" "conftest.nl"
4096     echo 'EGREP' >> "conftest.nl"
4097     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4098     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4099     ac_count=`expr $ac_count + 1`
4100     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4101       # Best one so far, save it but keep looking for a better one
4102       ac_cv_path_EGREP="$ac_path_EGREP"
4103       ac_path_EGREP_max=$ac_count
4104     fi
4105     # 10*(2^10) chars as input seems more than enough
4106     test $ac_count -gt 10 && break
4107   done
4108   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4109 esac
4110
4111
4112     $ac_path_EGREP_found && break 3
4113   done
4114 done
4115
4116 done
4117 IFS=$as_save_IFS
4118
4119
4120 fi
4121
4122 EGREP="$ac_cv_path_EGREP"
4123 if test -z "$EGREP"; then
4124   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4125 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4126    { (exit 1); exit 1; }; }
4127 fi
4128
4129 else
4130   ac_cv_path_EGREP=$EGREP
4131 fi
4132
4133
4134    fi
4135 fi
4136 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4137 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4138  EGREP="$ac_cv_path_EGREP"
4139
4140
4141 if test $ac_cv_c_compiler_gnu = yes; then
4142     { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
4143 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
4144 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
4145   echo $ECHO_N "(cached) $ECHO_C" >&6
4146 else
4147     ac_pattern="Autoconf.*'x'"
4148   cat >conftest.$ac_ext <<_ACEOF
4149 /* confdefs.h.  */
4150 _ACEOF
4151 cat confdefs.h >>conftest.$ac_ext
4152 cat >>conftest.$ac_ext <<_ACEOF
4153 /* end confdefs.h.  */
4154 #include <sgtty.h>
4155 Autoconf TIOCGETP
4156 _ACEOF
4157 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4158   $EGREP "$ac_pattern" >/dev/null 2>&1; then
4159   ac_cv_prog_gcc_traditional=yes
4160 else
4161   ac_cv_prog_gcc_traditional=no
4162 fi
4163 rm -f conftest*
4164
4165
4166   if test $ac_cv_prog_gcc_traditional = no; then
4167     cat >conftest.$ac_ext <<_ACEOF
4168 /* confdefs.h.  */
4169 _ACEOF
4170 cat confdefs.h >>conftest.$ac_ext
4171 cat >>conftest.$ac_ext <<_ACEOF
4172 /* end confdefs.h.  */
4173 #include <termio.h>
4174 Autoconf TCGETA
4175 _ACEOF
4176 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4177   $EGREP "$ac_pattern" >/dev/null 2>&1; then
4178   ac_cv_prog_gcc_traditional=yes
4179 fi
4180 rm -f conftest*
4181
4182   fi
4183 fi
4184 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
4185 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
4186   if test $ac_cv_prog_gcc_traditional = yes; then
4187     CC="$CC -traditional"
4188   fi
4189 fi
4190
4191 BASECC=`basename $CC`
4192 have_gcc=no
4193 if test "x$BASECC" = xgcc; then
4194    cat >>confdefs.h <<\_ACEOF
4195 #define HAVE_GCC 1
4196 _ACEOF
4197
4198    have_gcc=yes
4199 fi
4200 # Extract the first word of "$CXX", so it can be a program name with args.
4201 set dummy $CXX; ac_word=$2
4202 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4203 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4204 if test "${ac_cv_path_CXX+set}" = set; then
4205   echo $ECHO_N "(cached) $ECHO_C" >&6
4206 else
4207   case $CXX in
4208   [\\/]* | ?:[\\/]*)
4209   ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
4210   ;;
4211   *)
4212   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4213 for as_dir in $PATH
4214 do
4215   IFS=$as_save_IFS
4216   test -z "$as_dir" && as_dir=.
4217   for ac_exec_ext in '' $ac_executable_extensions; do
4218   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4219     ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
4220     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4221     break 2
4222   fi
4223 done
4224 done
4225 IFS=$as_save_IFS
4226
4227   test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="$CXX"
4228   ;;
4229 esac
4230 fi
4231 CXX=$ac_cv_path_CXX
4232 if test -n "$CXX"; then
4233   { echo "$as_me:$LINENO: result: $CXX" >&5
4234 echo "${ECHO_T}$CXX" >&6; }
4235 else
4236   { echo "$as_me:$LINENO: result: no" >&5
4237 echo "${ECHO_T}no" >&6; }
4238 fi
4239
4240
4241 if test ! -e $CXX; then
4242    { { echo "$as_me:$LINENO: error: Unable to find C++ compiler" >&5
4243 echo "$as_me: error: Unable to find C++ compiler" >&2;}
4244    { (exit 1); exit 1; }; }
4245 fi
4246
4247 # Find a good install program.  We prefer a C program (faster),
4248 # so one script is as good as another.  But avoid the broken or
4249 # incompatible versions:
4250 # SysV /etc/install, /usr/sbin/install
4251 # SunOS /usr/etc/install
4252 # IRIX /sbin/install
4253 # AIX /bin/install
4254 # AmigaOS /C/install, which installs bootblocks on floppy discs
4255 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4256 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4257 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4258 # OS/2's system install, which has a completely different semantic
4259 # ./install, which can be erroneously created by make from ./install.sh.
4260 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4261 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4262 if test -z "$INSTALL"; then
4263 if test "${ac_cv_path_install+set}" = set; then
4264   echo $ECHO_N "(cached) $ECHO_C" >&6
4265 else
4266   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4267 for as_dir in $PATH
4268 do
4269   IFS=$as_save_IFS
4270   test -z "$as_dir" && as_dir=.
4271   # Account for people who put trailing slashes in PATH elements.
4272 case $as_dir/ in
4273   ./ | .// | /cC/* | \
4274   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4275   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4276   /usr/ucb/* ) ;;
4277   *)
4278     # OSF1 and SCO ODT 3.0 have their own names for install.
4279     # Don't use installbsd from OSF since it installs stuff as root
4280     # by default.
4281     for ac_prog in ginstall scoinst install; do
4282       for ac_exec_ext in '' $ac_executable_extensions; do
4283         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4284           if test $ac_prog = install &&
4285             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4286             # AIX install.  It has an incompatible calling convention.
4287             :
4288           elif test $ac_prog = install &&
4289             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4290             # program-specific install script used by HP pwplus--don't use.
4291             :
4292           else
4293             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4294             break 3
4295           fi
4296         fi
4297       done
4298     done
4299     ;;
4300 esac
4301 done
4302 IFS=$as_save_IFS
4303
4304
4305 fi
4306   if test "${ac_cv_path_install+set}" = set; then
4307     INSTALL=$ac_cv_path_install
4308   else
4309     # As a last resort, use the slow shell script.  Don't cache a
4310     # value for INSTALL within a source directory, because that will
4311     # break other packages using the cache if that directory is
4312     # removed, or if the value is a relative name.
4313     INSTALL=$ac_install_sh
4314   fi
4315 fi
4316 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4317 echo "${ECHO_T}$INSTALL" >&6; }
4318
4319 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4320 # It thinks the first close brace ends the variable substitution.
4321 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4322
4323 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4324
4325 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4326
4327 # Extract the first word of "mv", so it can be a program name with args.
4328 set dummy mv; ac_word=$2
4329 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4330 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4331 if test "${ac_cv_path_MV+set}" = set; then
4332   echo $ECHO_N "(cached) $ECHO_C" >&6
4333 else
4334   case $MV in
4335   [\\/]* | ?:[\\/]*)
4336   ac_cv_path_MV="$MV" # Let the user override the test with a path.
4337   ;;
4338   *)
4339   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4340 for as_dir in $PATH
4341 do
4342   IFS=$as_save_IFS
4343   test -z "$as_dir" && as_dir=.
4344   for ac_exec_ext in '' $ac_executable_extensions; do
4345   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4346     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4347     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4348     break 2
4349   fi
4350 done
4351 done
4352 IFS=$as_save_IFS
4353
4354   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4355   ;;
4356 esac
4357 fi
4358 MV=$ac_cv_path_MV
4359 if test -n "$MV"; then
4360   { echo "$as_me:$LINENO: result: $MV" >&5
4361 echo "${ECHO_T}$MV" >&6; }
4362 else
4363   { echo "$as_me:$LINENO: result: no" >&5
4364 echo "${ECHO_T}no" >&6; }
4365 fi
4366
4367
4368 # Extract the first word of "rm", so it can be a program name with args.
4369 set dummy rm; ac_word=$2
4370 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4371 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4372 if test "${ac_cv_path_REMOVE+set}" = set; then
4373   echo $ECHO_N "(cached) $ECHO_C" >&6
4374 else
4375   case $REMOVE in
4376   [\\/]* | ?:[\\/]*)
4377   ac_cv_path_REMOVE="$REMOVE" # Let the user override the test with a path.
4378   ;;
4379   *)
4380   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4381 for as_dir in $PATH
4382 do
4383   IFS=$as_save_IFS
4384   test -z "$as_dir" && as_dir=.
4385   for ac_exec_ext in '' $ac_executable_extensions; do
4386   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4387     ac_cv_path_REMOVE="$as_dir/$ac_word$ac_exec_ext"
4388     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4389     break 2
4390   fi
4391 done
4392 done
4393 IFS=$as_save_IFS
4394
4395   test -z "$ac_cv_path_REMOVE" && ac_cv_path_REMOVE="rm"
4396   ;;
4397 esac
4398 fi
4399 REMOVE=$ac_cv_path_REMOVE
4400 if test -n "$REMOVE"; then
4401   { echo "$as_me:$LINENO: result: $REMOVE" >&5
4402 echo "${ECHO_T}$REMOVE" >&6; }
4403 else
4404   { echo "$as_me:$LINENO: result: no" >&5
4405 echo "${ECHO_T}no" >&6; }
4406 fi
4407
4408
4409 # Extract the first word of "cp", so it can be a program name with args.
4410 set dummy cp; ac_word=$2
4411 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4412 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4413 if test "${ac_cv_path_CP+set}" = set; then
4414   echo $ECHO_N "(cached) $ECHO_C" >&6
4415 else
4416   case $CP in
4417   [\\/]* | ?:[\\/]*)
4418   ac_cv_path_CP="$CP" # Let the user override the test with a path.
4419   ;;
4420   *)
4421   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4422 for as_dir in $PATH
4423 do
4424   IFS=$as_save_IFS
4425   test -z "$as_dir" && as_dir=.
4426   for ac_exec_ext in '' $ac_executable_extensions; do
4427   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4428     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4429     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4430     break 2
4431   fi
4432 done
4433 done
4434 IFS=$as_save_IFS
4435
4436   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
4437   ;;
4438 esac
4439 fi
4440 CP=$ac_cv_path_CP
4441 if test -n "$CP"; then
4442   { echo "$as_me:$LINENO: result: $CP" >&5
4443 echo "${ECHO_T}$CP" >&6; }
4444 else
4445   { echo "$as_me:$LINENO: result: no" >&5
4446 echo "${ECHO_T}no" >&6; }
4447 fi
4448
4449
4450 # Extract the first word of "sed", so it can be a program name with args.
4451 set dummy sed; ac_word=$2
4452 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4453 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4454 if test "${ac_cv_path_SED+set}" = set; then
4455   echo $ECHO_N "(cached) $ECHO_C" >&6
4456 else
4457   case $SED in
4458   [\\/]* | ?:[\\/]*)
4459   ac_cv_path_SED="$SED" # Let the user override the test with a path.
4460   ;;
4461   *)
4462   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4463 for as_dir in $PATH
4464 do
4465   IFS=$as_save_IFS
4466   test -z "$as_dir" && as_dir=.
4467   for ac_exec_ext in '' $ac_executable_extensions; do
4468   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4469     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
4470     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4471     break 2
4472   fi
4473 done
4474 done
4475 IFS=$as_save_IFS
4476
4477   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
4478   ;;
4479 esac
4480 fi
4481 SED=$ac_cv_path_SED
4482 if test -n "$SED"; then
4483   { echo "$as_me:$LINENO: result: $SED" >&5
4484 echo "${ECHO_T}$SED" >&6; }
4485 else
4486   { echo "$as_me:$LINENO: result: no" >&5
4487 echo "${ECHO_T}no" >&6; }
4488 fi
4489
4490
4491 # Extract the first word of "echo", so it can be a program name with args.
4492 set dummy echo; ac_word=$2
4493 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4494 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4495 if test "${ac_cv_path_ECHO+set}" = set; then
4496   echo $ECHO_N "(cached) $ECHO_C" >&6
4497 else
4498   case $ECHO in
4499   [\\/]* | ?:[\\/]*)
4500   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
4501   ;;
4502   *)
4503   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4504 for as_dir in $PATH
4505 do
4506   IFS=$as_save_IFS
4507   test -z "$as_dir" && as_dir=.
4508   for ac_exec_ext in '' $ac_executable_extensions; do
4509   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4510     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
4511     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4512     break 2
4513   fi
4514 done
4515 done
4516 IFS=$as_save_IFS
4517
4518   test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
4519   ;;
4520 esac
4521 fi
4522 ECHO=$ac_cv_path_ECHO
4523 if test -n "$ECHO"; then
4524   { echo "$as_me:$LINENO: result: $ECHO" >&5
4525 echo "${ECHO_T}$ECHO" >&6; }
4526 else
4527   { echo "$as_me:$LINENO: result: no" >&5
4528 echo "${ECHO_T}no" >&6; }
4529 fi
4530
4531
4532 # Extract the first word of "cmp", so it can be a program name with args.
4533 set dummy cmp; ac_word=$2
4534 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4535 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4536 if test "${ac_cv_path_CMP+set}" = set; then
4537   echo $ECHO_N "(cached) $ECHO_C" >&6
4538 else
4539   case $CMP in
4540   [\\/]* | ?:[\\/]*)
4541   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
4542   ;;
4543   *)
4544   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4545 for as_dir in $PATH
4546 do
4547   IFS=$as_save_IFS
4548   test -z "$as_dir" && as_dir=.
4549   for ac_exec_ext in '' $ac_executable_extensions; do
4550   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4551     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
4552     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4553     break 2
4554   fi
4555 done
4556 done
4557 IFS=$as_save_IFS
4558
4559   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
4560   ;;
4561 esac
4562 fi
4563 CMP=$ac_cv_path_CMP
4564 if test -n "$CMP"; then
4565   { echo "$as_me:$LINENO: result: $CMP" >&5
4566 echo "${ECHO_T}$CMP" >&6; }
4567 else
4568   { echo "$as_me:$LINENO: result: no" >&5
4569 echo "${ECHO_T}no" >&6; }
4570 fi
4571
4572
4573 # Extract the first word of "tbl", so it can be a program name with args.
4574 set dummy tbl; ac_word=$2
4575 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4576 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4577 if test "${ac_cv_path_TBL+set}" = set; then
4578   echo $ECHO_N "(cached) $ECHO_C" >&6
4579 else
4580   case $TBL in
4581   [\\/]* | ?:[\\/]*)
4582   ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
4583   ;;
4584   *)
4585   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4586 for as_dir in $PATH
4587 do
4588   IFS=$as_save_IFS
4589   test -z "$as_dir" && as_dir=.
4590   for ac_exec_ext in '' $ac_executable_extensions; do
4591   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4592     ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
4593     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4594     break 2
4595   fi
4596 done
4597 done
4598 IFS=$as_save_IFS
4599
4600   test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
4601   ;;
4602 esac
4603 fi
4604 TBL=$ac_cv_path_TBL
4605 if test -n "$TBL"; then
4606   { echo "$as_me:$LINENO: result: $TBL" >&5
4607 echo "${ECHO_T}$TBL" >&6; }
4608 else
4609   { echo "$as_me:$LINENO: result: no" >&5
4610 echo "${ECHO_T}no" >&6; }
4611 fi
4612
4613
4614 # Extract the first word of "ar", so it can be a program name with args.
4615 set dummy ar; ac_word=$2
4616 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4617 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4618 if test "${ac_cv_path_AR+set}" = set; then
4619   echo $ECHO_N "(cached) $ECHO_C" >&6
4620 else
4621   case $AR in
4622   [\\/]* | ?:[\\/]*)
4623   ac_cv_path_AR="$AR" # Let the user override the test with a path.
4624   ;;
4625   *)
4626   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4627 for as_dir in $PATH
4628 do
4629   IFS=$as_save_IFS
4630   test -z "$as_dir" && as_dir=.
4631   for ac_exec_ext in '' $ac_executable_extensions; do
4632   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4633     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
4634     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4635     break 2
4636   fi
4637 done
4638 done
4639 IFS=$as_save_IFS
4640
4641   test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
4642   ;;
4643 esac
4644 fi
4645 AR=$ac_cv_path_AR
4646 if test -n "$AR"; then
4647   { echo "$as_me:$LINENO: result: $AR" >&5
4648 echo "${ECHO_T}$AR" >&6; }
4649 else
4650   { echo "$as_me:$LINENO: result: no" >&5
4651 echo "${ECHO_T}no" >&6; }
4652 fi
4653
4654
4655 # Extract the first word of "openssl", so it can be a program name with args.
4656 set dummy openssl; ac_word=$2
4657 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4658 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4659 if test "${ac_cv_path_OPENSSL+set}" = set; then
4660   echo $ECHO_N "(cached) $ECHO_C" >&6
4661 else
4662   case $OPENSSL in
4663   [\\/]* | ?:[\\/]*)
4664   ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
4665   ;;
4666   *)
4667   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4668 for as_dir in $PATH
4669 do
4670   IFS=$as_save_IFS
4671   test -z "$as_dir" && as_dir=.
4672   for ac_exec_ext in '' $ac_executable_extensions; do
4673   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4674     ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
4675     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4676     break 2
4677   fi
4678 done
4679 done
4680 IFS=$as_save_IFS
4681
4682   test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
4683   ;;
4684 esac
4685 fi
4686 OPENSSL=$ac_cv_path_OPENSSL
4687 if test -n "$OPENSSL"; then
4688   { echo "$as_me:$LINENO: result: $OPENSSL" >&5
4689 echo "${ECHO_T}$OPENSSL" >&6; }
4690 else
4691   { echo "$as_me:$LINENO: result: no" >&5
4692 echo "${ECHO_T}no" >&6; }
4693 fi
4694
4695
4696 # Extract the first word of "mtx", so it can be a program name with args.
4697 set dummy mtx; ac_word=$2
4698 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4699 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4700 if test "${ac_cv_path_MTX+set}" = set; then
4701   echo $ECHO_N "(cached) $ECHO_C" >&6
4702 else
4703   case $MTX in
4704   [\\/]* | ?:[\\/]*)
4705   ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
4706   ;;
4707   *)
4708   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4709 for as_dir in $PATH
4710 do
4711   IFS=$as_save_IFS
4712   test -z "$as_dir" && as_dir=.
4713   for ac_exec_ext in '' $ac_executable_extensions; do
4714   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4715     ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
4716     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4717     break 2
4718   fi
4719 done
4720 done
4721 IFS=$as_save_IFS
4722
4723   test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
4724   ;;
4725 esac
4726 fi
4727 MTX=$ac_cv_path_MTX
4728 if test -n "$MTX"; then
4729   { echo "$as_me:$LINENO: result: $MTX" >&5
4730 echo "${ECHO_T}$MTX" >&6; }
4731 else
4732   { echo "$as_me:$LINENO: result: no" >&5
4733 echo "${ECHO_T}no" >&6; }
4734 fi
4735
4736
4737 # Extract the first word of "dd", so it can be a program name with args.
4738 set dummy dd; ac_word=$2
4739 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4740 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4741 if test "${ac_cv_path_DD+set}" = set; then
4742   echo $ECHO_N "(cached) $ECHO_C" >&6
4743 else
4744   case $DD in
4745   [\\/]* | ?:[\\/]*)
4746   ac_cv_path_DD="$DD" # Let the user override the test with a path.
4747   ;;
4748   *)
4749   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4750 for as_dir in $PATH
4751 do
4752   IFS=$as_save_IFS
4753   test -z "$as_dir" && as_dir=.
4754   for ac_exec_ext in '' $ac_executable_extensions; do
4755   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4756     ac_cv_path_DD="$as_dir/$ac_word$ac_exec_ext"
4757     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4758     break 2
4759   fi
4760 done
4761 done
4762 IFS=$as_save_IFS
4763
4764   test -z "$ac_cv_path_DD" && ac_cv_path_DD="dd"
4765   ;;
4766 esac
4767 fi
4768 DD=$ac_cv_path_DD
4769 if test -n "$DD"; then
4770   { echo "$as_me:$LINENO: result: $DD" >&5
4771 echo "${ECHO_T}$DD" >&6; }
4772 else
4773   { echo "$as_me:$LINENO: result: no" >&5
4774 echo "${ECHO_T}no" >&6; }
4775 fi
4776
4777
4778 # Extract the first word of "mkisofs", so it can be a program name with args.
4779 set dummy mkisofs; ac_word=$2
4780 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4781 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4782 if test "${ac_cv_path_MKISOFS+set}" = set; then
4783   echo $ECHO_N "(cached) $ECHO_C" >&6
4784 else
4785   case $MKISOFS in
4786   [\\/]* | ?:[\\/]*)
4787   ac_cv_path_MKISOFS="$MKISOFS" # Let the user override the test with a path.
4788   ;;
4789   *)
4790   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4791 for as_dir in $PATH
4792 do
4793   IFS=$as_save_IFS
4794   test -z "$as_dir" && as_dir=.
4795   for ac_exec_ext in '' $ac_executable_extensions; do
4796   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4797     ac_cv_path_MKISOFS="$as_dir/$ac_word$ac_exec_ext"
4798     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4799     break 2
4800   fi
4801 done
4802 done
4803 IFS=$as_save_IFS
4804
4805   test -z "$ac_cv_path_MKISOFS" && ac_cv_path_MKISOFS="mkisofs"
4806   ;;
4807 esac
4808 fi
4809 MKISOFS=$ac_cv_path_MKISOFS
4810 if test -n "$MKISOFS"; then
4811   { echo "$as_me:$LINENO: result: $MKISOFS" >&5
4812 echo "${ECHO_T}$MKISOFS" >&6; }
4813 else
4814   { echo "$as_me:$LINENO: result: no" >&5
4815 echo "${ECHO_T}no" >&6; }
4816 fi
4817
4818
4819 # Extract the first word of "python", so it can be a program name with args.
4820 set dummy python; ac_word=$2
4821 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4822 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4823 if test "${ac_cv_path_PYTHON+set}" = set; then
4824   echo $ECHO_N "(cached) $ECHO_C" >&6
4825 else
4826   case $PYTHON in
4827   [\\/]* | ?:[\\/]*)
4828   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
4829   ;;
4830   *)
4831   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4832 for as_dir in $PATH
4833 do
4834   IFS=$as_save_IFS
4835   test -z "$as_dir" && as_dir=.
4836   for ac_exec_ext in '' $ac_executable_extensions; do
4837   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4838     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
4839     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4840     break 2
4841   fi
4842 done
4843 done
4844 IFS=$as_save_IFS
4845
4846   test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="python"
4847   ;;
4848 esac
4849 fi
4850 PYTHON=$ac_cv_path_PYTHON
4851 if test -n "$PYTHON"; then
4852   { echo "$as_me:$LINENO: result: $PYTHON" >&5
4853 echo "${ECHO_T}$PYTHON" >&6; }
4854 else
4855   { echo "$as_me:$LINENO: result: no" >&5
4856 echo "${ECHO_T}no" >&6; }
4857 fi
4858
4859
4860 # Extract the first word of "growisofs", so it can be a program name with args.
4861 set dummy growisofs; ac_word=$2
4862 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4863 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4864 if test "${ac_cv_path_GROWISOFS+set}" = set; then
4865   echo $ECHO_N "(cached) $ECHO_C" >&6
4866 else
4867   case $GROWISOFS in
4868   [\\/]* | ?:[\\/]*)
4869   ac_cv_path_GROWISOFS="$GROWISOFS" # Let the user override the test with a path.
4870   ;;
4871   *)
4872   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4873 for as_dir in $PATH
4874 do
4875   IFS=$as_save_IFS
4876   test -z "$as_dir" && as_dir=.
4877   for ac_exec_ext in '' $ac_executable_extensions; do
4878   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4879     ac_cv_path_GROWISOFS="$as_dir/$ac_word$ac_exec_ext"
4880     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4881     break 2
4882   fi
4883 done
4884 done
4885 IFS=$as_save_IFS
4886
4887   test -z "$ac_cv_path_GROWISOFS" && ac_cv_path_GROWISOFS="growisofs"
4888   ;;
4889 esac
4890 fi
4891 GROWISOFS=$ac_cv_path_GROWISOFS
4892 if test -n "$GROWISOFS"; then
4893   { echo "$as_me:$LINENO: result: $GROWISOFS" >&5
4894 echo "${ECHO_T}$GROWISOFS" >&6; }
4895 else
4896   { echo "$as_me:$LINENO: result: no" >&5
4897 echo "${ECHO_T}no" >&6; }
4898 fi
4899
4900
4901 # Extract the first word of "dvd+rw-mediainfo", so it can be a program name with args.
4902 set dummy dvd+rw-mediainfo; ac_word=$2
4903 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4904 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4905 if test "${ac_cv_path_DVDRWMEDIAINFO+set}" = set; then
4906   echo $ECHO_N "(cached) $ECHO_C" >&6
4907 else
4908   case $DVDRWMEDIAINFO in
4909   [\\/]* | ?:[\\/]*)
4910   ac_cv_path_DVDRWMEDIAINFO="$DVDRWMEDIAINFO" # Let the user override the test with a path.
4911   ;;
4912   *)
4913   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4914 for as_dir in $PATH
4915 do
4916   IFS=$as_save_IFS
4917   test -z "$as_dir" && as_dir=.
4918   for ac_exec_ext in '' $ac_executable_extensions; do
4919   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4920     ac_cv_path_DVDRWMEDIAINFO="$as_dir/$ac_word$ac_exec_ext"
4921     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4922     break 2
4923   fi
4924 done
4925 done
4926 IFS=$as_save_IFS
4927
4928   test -z "$ac_cv_path_DVDRWMEDIAINFO" && ac_cv_path_DVDRWMEDIAINFO="dvd+rw-mediainfo"
4929   ;;
4930 esac
4931 fi
4932 DVDRWMEDIAINFO=$ac_cv_path_DVDRWMEDIAINFO
4933 if test -n "$DVDRWMEDIAINFO"; then
4934   { echo "$as_me:$LINENO: result: $DVDRWMEDIAINFO" >&5
4935 echo "${ECHO_T}$DVDRWMEDIAINFO" >&6; }
4936 else
4937   { echo "$as_me:$LINENO: result: no" >&5
4938 echo "${ECHO_T}no" >&6; }
4939 fi
4940
4941
4942 # Extract the first word of "dvd+rw-format", so it can be a program name with args.
4943 set dummy dvd+rw-format; ac_word=$2
4944 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4945 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4946 if test "${ac_cv_path_DVDRWFORMAT+set}" = set; then
4947   echo $ECHO_N "(cached) $ECHO_C" >&6
4948 else
4949   case $DVDRWFORMAT in
4950   [\\/]* | ?:[\\/]*)
4951   ac_cv_path_DVDRWFORMAT="$DVDRWFORMAT" # Let the user override the test with a path.
4952   ;;
4953   *)
4954   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4955 for as_dir in $PATH
4956 do
4957   IFS=$as_save_IFS
4958   test -z "$as_dir" && as_dir=.
4959   for ac_exec_ext in '' $ac_executable_extensions; do
4960   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4961     ac_cv_path_DVDRWFORMAT="$as_dir/$ac_word$ac_exec_ext"
4962     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4963     break 2
4964   fi
4965 done
4966 done
4967 IFS=$as_save_IFS
4968
4969   test -z "$ac_cv_path_DVDRWFORMAT" && ac_cv_path_DVDRWFORMAT="dvd+rw-format"
4970   ;;
4971 esac
4972 fi
4973 DVDRWFORMAT=$ac_cv_path_DVDRWFORMAT
4974 if test -n "$DVDRWFORMAT"; then
4975   { echo "$as_me:$LINENO: result: $DVDRWFORMAT" >&5
4976 echo "${ECHO_T}$DVDRWFORMAT" >&6; }
4977 else
4978   { echo "$as_me:$LINENO: result: no" >&5
4979 echo "${ECHO_T}no" >&6; }
4980 fi
4981
4982
4983 # Extract the first word of "pkg-config", so it can be a program name with args.
4984 set dummy pkg-config; ac_word=$2
4985 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4986 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4987 if test "${ac_cv_path_PKGCONFIG+set}" = set; then
4988   echo $ECHO_N "(cached) $ECHO_C" >&6
4989 else
4990   case $PKGCONFIG in
4991   [\\/]* | ?:[\\/]*)
4992   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
4993   ;;
4994   *)
4995   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4996 for as_dir in $PATH
4997 do
4998   IFS=$as_save_IFS
4999   test -z "$as_dir" && as_dir=.
5000   for ac_exec_ext in '' $ac_executable_extensions; do
5001   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5002     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
5003     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5004     break 2
5005   fi
5006 done
5007 done
5008 IFS=$as_save_IFS
5009
5010   test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
5011   ;;
5012 esac
5013 fi
5014 PKGCONFIG=$ac_cv_path_PKGCONFIG
5015 if test -n "$PKGCONFIG"; then
5016   { echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
5017 echo "${ECHO_T}$PKGCONFIG" >&6; }
5018 else
5019   { echo "$as_me:$LINENO: result: no" >&5
5020 echo "${ECHO_T}no" >&6; }
5021 fi
5022
5023
5024 # Extract the first word of "qmake", so it can be a program name with args.
5025 set dummy qmake; ac_word=$2
5026 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5027 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5028 if test "${ac_cv_path_QMAKE+set}" = set; then
5029   echo $ECHO_N "(cached) $ECHO_C" >&6
5030 else
5031   case $QMAKE in
5032   [\\/]* | ?:[\\/]*)
5033   ac_cv_path_QMAKE="$QMAKE" # Let the user override the test with a path.
5034   ;;
5035   *)
5036   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5037 for as_dir in $PATH
5038 do
5039   IFS=$as_save_IFS
5040   test -z "$as_dir" && as_dir=.
5041   for ac_exec_ext in '' $ac_executable_extensions; do
5042   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5043     ac_cv_path_QMAKE="$as_dir/$ac_word$ac_exec_ext"
5044     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5045     break 2
5046   fi
5047 done
5048 done
5049 IFS=$as_save_IFS
5050
5051   test -z "$ac_cv_path_QMAKE" && ac_cv_path_QMAKE="none"
5052   ;;
5053 esac
5054 fi
5055 QMAKE=$ac_cv_path_QMAKE
5056 if test -n "$QMAKE"; then
5057   { echo "$as_me:$LINENO: result: $QMAKE" >&5
5058 echo "${ECHO_T}$QMAKE" >&6; }
5059 else
5060   { echo "$as_me:$LINENO: result: no" >&5
5061 echo "${ECHO_T}no" >&6; }
5062 fi
5063
5064
5065 # Extract the first word of "qmake-qt4", so it can be a program name with args.
5066 set dummy qmake-qt4; ac_word=$2
5067 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5068 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5069 if test "${ac_cv_path_QMAKEQT4+set}" = set; then
5070   echo $ECHO_N "(cached) $ECHO_C" >&6
5071 else
5072   case $QMAKEQT4 in
5073   [\\/]* | ?:[\\/]*)
5074   ac_cv_path_QMAKEQT4="$QMAKEQT4" # Let the user override the test with a path.
5075   ;;
5076   *)
5077   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5078 for as_dir in $PATH
5079 do
5080   IFS=$as_save_IFS
5081   test -z "$as_dir" && as_dir=.
5082   for ac_exec_ext in '' $ac_executable_extensions; do
5083   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5084     ac_cv_path_QMAKEQT4="$as_dir/$ac_word$ac_exec_ext"
5085     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5086     break 2
5087   fi
5088 done
5089 done
5090 IFS=$as_save_IFS
5091
5092   test -z "$ac_cv_path_QMAKEQT4" && ac_cv_path_QMAKEQT4="none"
5093   ;;
5094 esac
5095 fi
5096 QMAKEQT4=$ac_cv_path_QMAKEQT4
5097 if test -n "$QMAKEQT4"; then
5098   { echo "$as_me:$LINENO: result: $QMAKEQT4" >&5
5099 echo "${ECHO_T}$QMAKEQT4" >&6; }
5100 else
5101   { echo "$as_me:$LINENO: result: no" >&5
5102 echo "${ECHO_T}no" >&6; }
5103 fi
5104
5105
5106 # Extract the first word of "gmake", so it can be a program name with args.
5107 set dummy gmake; ac_word=$2
5108 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5109 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5110 if test "${ac_cv_path_GMAKE+set}" = set; then
5111   echo $ECHO_N "(cached) $ECHO_C" >&6
5112 else
5113   case $GMAKE in
5114   [\\/]* | ?:[\\/]*)
5115   ac_cv_path_GMAKE="$GMAKE" # Let the user override the test with a path.
5116   ;;
5117   *)
5118   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5119 for as_dir in $PATH
5120 do
5121   IFS=$as_save_IFS
5122   test -z "$as_dir" && as_dir=.
5123   for ac_exec_ext in '' $ac_executable_extensions; do
5124   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5125     ac_cv_path_GMAKE="$as_dir/$ac_word$ac_exec_ext"
5126     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5127     break 2
5128   fi
5129 done
5130 done
5131 IFS=$as_save_IFS
5132
5133   test -z "$ac_cv_path_GMAKE" && ac_cv_path_GMAKE="none"
5134   ;;
5135 esac
5136 fi
5137 GMAKE=$ac_cv_path_GMAKE
5138 if test -n "$GMAKE"; then
5139   { echo "$as_me:$LINENO: result: $GMAKE" >&5
5140 echo "${ECHO_T}$GMAKE" >&6; }
5141 else
5142   { echo "$as_me:$LINENO: result: no" >&5
5143 echo "${ECHO_T}no" >&6; }
5144 fi
5145
5146
5147
5148 if test "x$WXCONFIG" = x; then
5149    WXCONFIG=wx-config
5150 fi
5151 # Extract the first word of "${WXCONFIG}", so it can be a program name with args.
5152 set dummy ${WXCONFIG}; ac_word=$2
5153 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5154 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5155 if test "${ac_cv_path_WXCONFIG+set}" = set; then
5156   echo $ECHO_N "(cached) $ECHO_C" >&6
5157 else
5158   case $WXCONFIG in
5159   [\\/]* | ?:[\\/]*)
5160   ac_cv_path_WXCONFIG="$WXCONFIG" # Let the user override the test with a path.
5161   ;;
5162   *)
5163   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5164 for as_dir in $PATH
5165 do
5166   IFS=$as_save_IFS
5167   test -z "$as_dir" && as_dir=.
5168   for ac_exec_ext in '' $ac_executable_extensions; do
5169   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5170     ac_cv_path_WXCONFIG="$as_dir/$ac_word$ac_exec_ext"
5171     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5172     break 2
5173   fi
5174 done
5175 done
5176 IFS=$as_save_IFS
5177
5178   test -z "$ac_cv_path_WXCONFIG" && ac_cv_path_WXCONFIG="${WXCONFIG}"
5179   ;;
5180 esac
5181 fi
5182 WXCONFIG=$ac_cv_path_WXCONFIG
5183 if test -n "$WXCONFIG"; then
5184   { echo "$as_me:$LINENO: result: $WXCONFIG" >&5
5185 echo "${ECHO_T}$WXCONFIG" >&6; }
5186 else
5187   { echo "$as_me:$LINENO: result: no" >&5
5188 echo "${ECHO_T}no" >&6; }
5189 fi
5190
5191
5192
5193 # Extract the first word of "cdrecord", so it can be a program name with args.
5194 set dummy cdrecord; ac_word=$2
5195 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5196 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5197 if test "${ac_cv_path_CDRECORD+set}" = set; then
5198   echo $ECHO_N "(cached) $ECHO_C" >&6
5199 else
5200   case $CDRECORD in
5201   [\\/]* | ?:[\\/]*)
5202   ac_cv_path_CDRECORD="$CDRECORD" # Let the user override the test with a path.
5203   ;;
5204   *)
5205   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5206 for as_dir in $PATH
5207 do
5208   IFS=$as_save_IFS
5209   test -z "$as_dir" && as_dir=.
5210   for ac_exec_ext in '' $ac_executable_extensions; do
5211   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5212     ac_cv_path_CDRECORD="$as_dir/$ac_word$ac_exec_ext"
5213     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5214     break 2
5215   fi
5216 done
5217 done
5218 IFS=$as_save_IFS
5219
5220   test -z "$ac_cv_path_CDRECORD" && ac_cv_path_CDRECORD="cdrecord"
5221   ;;
5222 esac
5223 fi
5224 CDRECORD=$ac_cv_path_CDRECORD
5225 if test -n "$CDRECORD"; then
5226   { echo "$as_me:$LINENO: result: $CDRECORD" >&5
5227 echo "${ECHO_T}$CDRECORD" >&6; }
5228 else
5229   { echo "$as_me:$LINENO: result: no" >&5
5230 echo "${ECHO_T}no" >&6; }
5231 fi
5232
5233
5234 # Extract the first word of "pidof", so it can be a program name with args.
5235 set dummy pidof; ac_word=$2
5236 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5237 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5238 if test "${ac_cv_path_PIDOF+set}" = set; then
5239   echo $ECHO_N "(cached) $ECHO_C" >&6
5240 else
5241   case $PIDOF in
5242   [\\/]* | ?:[\\/]*)
5243   ac_cv_path_PIDOF="$PIDOF" # Let the user override the test with a path.
5244   ;;
5245   *)
5246   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5247 for as_dir in $PATH
5248 do
5249   IFS=$as_save_IFS
5250   test -z "$as_dir" && as_dir=.
5251   for ac_exec_ext in '' $ac_executable_extensions; do
5252   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5253     ac_cv_path_PIDOF="$as_dir/$ac_word$ac_exec_ext"
5254     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5255     break 2
5256   fi
5257 done
5258 done
5259 IFS=$as_save_IFS
5260
5261   test -z "$ac_cv_path_PIDOF" && ac_cv_path_PIDOF="pidof"
5262   ;;
5263 esac
5264 fi
5265 PIDOF=$ac_cv_path_PIDOF
5266 if test -n "$PIDOF"; then
5267   { echo "$as_me:$LINENO: result: $PIDOF" >&5
5268 echo "${ECHO_T}$PIDOF" >&6; }
5269 else
5270   { echo "$as_me:$LINENO: result: no" >&5
5271 echo "${ECHO_T}no" >&6; }
5272 fi
5273
5274
5275 for ac_prog in gawk mawk nawk awk
5276 do
5277   # Extract the first word of "$ac_prog", so it can be a program name with args.
5278 set dummy $ac_prog; ac_word=$2
5279 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5280 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5281 if test "${ac_cv_prog_AWK+set}" = set; then
5282   echo $ECHO_N "(cached) $ECHO_C" >&6
5283 else
5284   if test -n "$AWK"; then
5285   ac_cv_prog_AWK="$AWK" # Let the user override the test.
5286 else
5287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5288 for as_dir in $PATH
5289 do
5290   IFS=$as_save_IFS
5291   test -z "$as_dir" && as_dir=.
5292   for ac_exec_ext in '' $ac_executable_extensions; do
5293   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5294     ac_cv_prog_AWK="$ac_prog"
5295     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5296     break 2
5297   fi
5298 done
5299 done
5300 IFS=$as_save_IFS
5301
5302 fi
5303 fi
5304 AWK=$ac_cv_prog_AWK
5305 if test -n "$AWK"; then
5306   { echo "$as_me:$LINENO: result: $AWK" >&5
5307 echo "${ECHO_T}$AWK" >&6; }
5308 else
5309   { echo "$as_me:$LINENO: result: no" >&5
5310 echo "${ECHO_T}no" >&6; }
5311 fi
5312
5313
5314   test -n "$AWK" && break
5315 done
5316
5317 # Some AWK programs fail, so test it and warn the user
5318 if echo xfoo | $AWK 'BEGIN { prog=ARGV1; ARGC=1 }
5319       { if ((prog == $2) || (("(" prog ")") == $2) ||
5320       (("" prog "") == $2) ||
5321       ((prog ":") == $2)) { print $1 ; exit 0 } }' xfoo>/dev/null; then :;
5322 else
5323   { { echo "$as_me:$LINENO: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
5324    The regex engine of $AWK is too broken to be used you
5325    might want to install GNU AWK.
5326    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&5
5327 echo "$as_me: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
5328    The regex engine of $AWK is too broken to be used you
5329    might want to install GNU AWK.
5330    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&2;}
5331    { (exit 1); exit 1; }; }
5332 fi
5333 THE_AWK=$AWK
5334 # Extract the first word of "$THE_AWK", so it can be a program name with args.
5335 set dummy $THE_AWK; ac_word=$2
5336 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5337 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5338 if test "${ac_cv_path_AWK+set}" = set; then
5339   echo $ECHO_N "(cached) $ECHO_C" >&6
5340 else
5341   case $AWK in
5342   [\\/]* | ?:[\\/]*)
5343   ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
5344   ;;
5345   *)
5346   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5347 for as_dir in $PATH
5348 do
5349   IFS=$as_save_IFS
5350   test -z "$as_dir" && as_dir=.
5351   for ac_exec_ext in '' $ac_executable_extensions; do
5352   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5353     ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
5354     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5355     break 2
5356   fi
5357 done
5358 done
5359 IFS=$as_save_IFS
5360
5361   test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="$THE_AWK"
5362   ;;
5363 esac
5364 fi
5365 AWK=$ac_cv_path_AWK
5366 if test -n "$AWK"; then
5367   { echo "$as_me:$LINENO: result: $AWK" >&5
5368 echo "${ECHO_T}$AWK" >&6; }
5369 else
5370   { echo "$as_me:$LINENO: result: no" >&5
5371 echo "${ECHO_T}no" >&6; }
5372 fi
5373
5374
5375
5376
5377 test -n "$ARFLAG" || ARFLAGS="cr"
5378
5379
5380 MAKE_SHELL=/bin/sh
5381
5382
5383
5384
5385
5386
5387
5388 # Check whether --enable-libtool was given.
5389 if test "${enable_libtool+set}" = set; then
5390   enableval=$enable_libtool;
5391        if test x$enableval = xno; then
5392           use_libtool=no
5393        fi
5394
5395
5396 fi
5397
5398 case `pwd` in
5399   *\ * | *\     *)
5400     { echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5401 echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5402 esac
5403
5404
5405
5406 macro_version='2.2.6'
5407 macro_revision='1.3012'
5408
5409
5410
5411
5412
5413
5414
5415
5416
5417
5418
5419
5420
5421 ltmain="$ac_aux_dir/ltmain.sh"
5422
5423 # Make sure we can run config.sub.
5424 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5425   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
5426 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
5427    { (exit 1); exit 1; }; }
5428
5429 { echo "$as_me:$LINENO: checking build system type" >&5
5430 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
5431 if test "${ac_cv_build+set}" = set; then
5432   echo $ECHO_N "(cached) $ECHO_C" >&6
5433 else
5434   ac_build_alias=$build_alias
5435 test "x$ac_build_alias" = x &&
5436   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5437 test "x$ac_build_alias" = x &&
5438   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
5439 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
5440    { (exit 1); exit 1; }; }
5441 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5442   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
5443 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
5444    { (exit 1); exit 1; }; }
5445
5446 fi
5447 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
5448 echo "${ECHO_T}$ac_cv_build" >&6; }
5449 case $ac_cv_build in
5450 *-*-*) ;;
5451 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
5452 echo "$as_me: error: invalid value of canonical build" >&2;}
5453    { (exit 1); exit 1; }; };;
5454 esac
5455 build=$ac_cv_build
5456 ac_save_IFS=$IFS; IFS='-'
5457 set x $ac_cv_build
5458 shift
5459 build_cpu=$1
5460 build_vendor=$2
5461 shift; shift
5462 # Remember, the first character of IFS is used to create $*,
5463 # except with old shells:
5464 build_os=$*
5465 IFS=$ac_save_IFS
5466 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5467
5468
5469 { echo "$as_me:$LINENO: checking host system type" >&5
5470 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
5471 if test "${ac_cv_host+set}" = set; then
5472   echo $ECHO_N "(cached) $ECHO_C" >&6
5473 else
5474   if test "x$host_alias" = x; then
5475   ac_cv_host=$ac_cv_build
5476 else
5477   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5478     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
5479 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
5480    { (exit 1); exit 1; }; }
5481 fi
5482
5483 fi
5484 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5485 echo "${ECHO_T}$ac_cv_host" >&6; }
5486 case $ac_cv_host in
5487 *-*-*) ;;
5488 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
5489 echo "$as_me: error: invalid value of canonical host" >&2;}
5490    { (exit 1); exit 1; }; };;
5491 esac
5492 host=$ac_cv_host
5493 ac_save_IFS=$IFS; IFS='-'
5494 set x $ac_cv_host
5495 shift
5496 host_cpu=$1
5497 host_vendor=$2
5498 shift; shift
5499 # Remember, the first character of IFS is used to create $*,
5500 # except with old shells:
5501 host_os=$*
5502 IFS=$ac_save_IFS
5503 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5504
5505
5506 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5507 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
5508 if test "${ac_cv_path_SED+set}" = set; then
5509   echo $ECHO_N "(cached) $ECHO_C" >&6
5510 else
5511             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5512      for ac_i in 1 2 3 4 5 6 7; do
5513        ac_script="$ac_script$as_nl$ac_script"
5514      done
5515      echo "$ac_script" | sed 99q >conftest.sed
5516      $as_unset ac_script || ac_script=
5517      # Extract the first word of "sed gsed" to use in msg output
5518 if test -z "$SED"; then
5519 set dummy sed gsed; ac_prog_name=$2
5520 if test "${ac_cv_path_SED+set}" = set; then
5521   echo $ECHO_N "(cached) $ECHO_C" >&6
5522 else
5523   ac_path_SED_found=false
5524 # Loop through the user's path and test for each of PROGNAME-LIST
5525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5526 for as_dir in $PATH
5527 do
5528   IFS=$as_save_IFS
5529   test -z "$as_dir" && as_dir=.
5530   for ac_prog in sed gsed; do
5531   for ac_exec_ext in '' $ac_executable_extensions; do
5532     ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5533     { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5534     # Check for GNU ac_path_SED and select it if it is found.
5535   # Check for GNU $ac_path_SED
5536 case `"$ac_path_SED" --version 2>&1` in
5537 *GNU*)
5538   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5539 *)
5540   ac_count=0
5541   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5542   while :
5543   do
5544     cat "conftest.in" "conftest.in" >"conftest.tmp"
5545     mv "conftest.tmp" "conftest.in"
5546     cp "conftest.in" "conftest.nl"
5547     echo '' >> "conftest.nl"
5548     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5549     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5550     ac_count=`expr $ac_count + 1`
5551     if test $ac_count -gt ${ac_path_SED_max-0}; then
5552       # Best one so far, save it but keep looking for a better one
5553       ac_cv_path_SED="$ac_path_SED"
5554       ac_path_SED_max=$ac_count
5555     fi
5556     # 10*(2^10) chars as input seems more than enough
5557     test $ac_count -gt 10 && break
5558   done
5559   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5560 esac
5561
5562
5563     $ac_path_SED_found && break 3
5564   done
5565 done
5566
5567 done
5568 IFS=$as_save_IFS
5569
5570
5571 fi
5572
5573 SED="$ac_cv_path_SED"
5574 if test -z "$SED"; then
5575   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in \$PATH" >&5
5576 echo "$as_me: error: no acceptable $ac_prog_name could be found in \$PATH" >&2;}
5577    { (exit 1); exit 1; }; }
5578 fi
5579
5580 else
5581   ac_cv_path_SED=$SED
5582 fi
5583
5584 fi
5585 { echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
5586 echo "${ECHO_T}$ac_cv_path_SED" >&6; }
5587  SED="$ac_cv_path_SED"
5588   rm -f conftest.sed
5589
5590 test -z "$SED" && SED=sed
5591 Xsed="$SED -e 1s/^X//"
5592
5593
5594
5595
5596
5597
5598
5599
5600
5601
5602
5603 { echo "$as_me:$LINENO: checking for fgrep" >&5
5604 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6; }
5605 if test "${ac_cv_path_FGREP+set}" = set; then
5606   echo $ECHO_N "(cached) $ECHO_C" >&6
5607 else
5608   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5609    then ac_cv_path_FGREP="$GREP -F"
5610    else
5611      # Extract the first word of "fgrep" to use in msg output
5612 if test -z "$FGREP"; then
5613 set dummy fgrep; ac_prog_name=$2
5614 if test "${ac_cv_path_FGREP+set}" = set; then
5615   echo $ECHO_N "(cached) $ECHO_C" >&6
5616 else
5617   ac_path_FGREP_found=false
5618 # Loop through the user's path and test for each of PROGNAME-LIST
5619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5620 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5621 do
5622   IFS=$as_save_IFS
5623   test -z "$as_dir" && as_dir=.
5624   for ac_prog in fgrep; do
5625   for ac_exec_ext in '' $ac_executable_extensions; do
5626     ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5627     { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5628     # Check for GNU ac_path_FGREP and select it if it is found.
5629   # Check for GNU $ac_path_FGREP
5630 case `"$ac_path_FGREP" --version 2>&1` in
5631 *GNU*)
5632   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5633 *)
5634   ac_count=0
5635   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5636   while :
5637   do
5638     cat "conftest.in" "conftest.in" >"conftest.tmp"
5639     mv "conftest.tmp" "conftest.in"
5640     cp "conftest.in" "conftest.nl"
5641     echo 'FGREP' >> "conftest.nl"
5642     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5643     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5644     ac_count=`expr $ac_count + 1`
5645     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5646       # Best one so far, save it but keep looking for a better one
5647       ac_cv_path_FGREP="$ac_path_FGREP"
5648       ac_path_FGREP_max=$ac_count
5649     fi
5650     # 10*(2^10) chars as input seems more than enough
5651     test $ac_count -gt 10 && break
5652   done
5653   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5654 esac
5655
5656
5657     $ac_path_FGREP_found && break 3
5658   done
5659 done
5660
5661 done
5662 IFS=$as_save_IFS
5663
5664
5665 fi
5666
5667 FGREP="$ac_cv_path_FGREP"
5668 if test -z "$FGREP"; then
5669   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5670 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5671    { (exit 1); exit 1; }; }
5672 fi
5673
5674 else
5675   ac_cv_path_FGREP=$FGREP
5676 fi
5677
5678
5679    fi
5680 fi
5681 { echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
5682 echo "${ECHO_T}$ac_cv_path_FGREP" >&6; }
5683  FGREP="$ac_cv_path_FGREP"
5684
5685
5686 test -z "$GREP" && GREP=grep
5687
5688
5689
5690
5691
5692
5693
5694
5695
5696
5697
5698
5699
5700
5701
5702
5703
5704
5705
5706 # Check whether --with-gnu-ld was given.
5707 if test "${with_gnu_ld+set}" = set; then
5708   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5709 else
5710   with_gnu_ld=no
5711 fi
5712
5713 ac_prog=ld
5714 if test "$GCC" = yes; then
5715   # Check if gcc -print-prog-name=ld gives a path.
5716   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5717 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
5718   case $host in
5719   *-*-mingw*)
5720     # gcc leaves a trailing carriage return which upsets mingw
5721     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5722   *)
5723     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5724   esac
5725   case $ac_prog in
5726     # Accept absolute paths.
5727     [\\/]* | ?:[\\/]*)
5728       re_direlt='/[^/][^/]*/\.\./'
5729       # Canonicalize the pathname of ld
5730       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5731       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5732         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5733       done
5734       test -z "$LD" && LD="$ac_prog"
5735       ;;
5736   "")
5737     # If it fails, then pretend we aren't using GCC.
5738     ac_prog=ld
5739     ;;
5740   *)
5741     # If it is relative, then search for the first ld in PATH.
5742     with_gnu_ld=unknown
5743     ;;
5744   esac
5745 elif test "$with_gnu_ld" = yes; then
5746   { echo "$as_me:$LINENO: checking for GNU ld" >&5
5747 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
5748 else
5749   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5750 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
5751 fi
5752 if test "${lt_cv_path_LD+set}" = set; then
5753   echo $ECHO_N "(cached) $ECHO_C" >&6
5754 else
5755   if test -z "$LD"; then
5756   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5757   for ac_dir in $PATH; do
5758     IFS="$lt_save_ifs"
5759     test -z "$ac_dir" && ac_dir=.
5760     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5761       lt_cv_path_LD="$ac_dir/$ac_prog"
5762       # Check to see if the program is GNU ld.  I'd rather use --version,
5763       # but apparently some variants of GNU ld only accept -v.
5764       # Break only if it was the GNU/non-GNU ld that we prefer.
5765       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5766       *GNU* | *'with BFD'*)
5767         test "$with_gnu_ld" != no && break
5768         ;;
5769       *)
5770         test "$with_gnu_ld" != yes && break
5771         ;;
5772       esac
5773     fi
5774   done
5775   IFS="$lt_save_ifs"
5776 else
5777   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5778 fi
5779 fi
5780
5781 LD="$lt_cv_path_LD"
5782 if test -n "$LD"; then
5783   { echo "$as_me:$LINENO: result: $LD" >&5
5784 echo "${ECHO_T}$LD" >&6; }
5785 else
5786   { echo "$as_me:$LINENO: result: no" >&5
5787 echo "${ECHO_T}no" >&6; }
5788 fi
5789 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5790 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5791    { (exit 1); exit 1; }; }
5792 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5793 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
5794 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5795   echo $ECHO_N "(cached) $ECHO_C" >&6
5796 else
5797   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5798 case `$LD -v 2>&1 </dev/null` in
5799 *GNU* | *'with BFD'*)
5800   lt_cv_prog_gnu_ld=yes
5801   ;;
5802 *)
5803   lt_cv_prog_gnu_ld=no
5804   ;;
5805 esac
5806 fi
5807 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5808 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
5809 with_gnu_ld=$lt_cv_prog_gnu_ld
5810
5811
5812
5813
5814
5815
5816
5817
5818
5819 { echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
5820 echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6; }
5821 if test "${lt_cv_path_NM+set}" = set; then
5822   echo $ECHO_N "(cached) $ECHO_C" >&6
5823 else
5824   if test -n "$NM"; then
5825   # Let the user override the test.
5826   lt_cv_path_NM="$NM"
5827 else
5828   lt_nm_to_check="${ac_tool_prefix}nm"
5829   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5830     lt_nm_to_check="$lt_nm_to_check nm"
5831   fi
5832   for lt_tmp_nm in $lt_nm_to_check; do
5833     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5834     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5835       IFS="$lt_save_ifs"
5836       test -z "$ac_dir" && ac_dir=.
5837       tmp_nm="$ac_dir/$lt_tmp_nm"
5838       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5839         # Check to see if the nm accepts a BSD-compat flag.
5840         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5841         #   nm: unknown option "B" ignored
5842         # Tru64's nm complains that /dev/null is an invalid object file
5843         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5844         */dev/null* | *'Invalid file or object type'*)
5845           lt_cv_path_NM="$tmp_nm -B"
5846           break
5847           ;;
5848         *)
5849           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5850           */dev/null*)
5851             lt_cv_path_NM="$tmp_nm -p"
5852             break
5853             ;;
5854           *)
5855             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5856             continue # so that we can try to find one that supports BSD flags
5857             ;;
5858           esac
5859           ;;
5860         esac
5861       fi
5862     done
5863     IFS="$lt_save_ifs"
5864   done
5865   : ${lt_cv_path_NM=no}
5866 fi
5867 fi
5868 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5869 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5870 if test "$lt_cv_path_NM" != "no"; then
5871   NM="$lt_cv_path_NM"
5872 else
5873   # Didn't find any BSD compatible name lister, look for dumpbin.
5874   if test -n "$ac_tool_prefix"; then
5875   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5876   do
5877     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5878 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5879 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5880 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5881 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
5882   echo $ECHO_N "(cached) $ECHO_C" >&6
5883 else
5884   if test -n "$DUMPBIN"; then
5885   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5886 else
5887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5888 for as_dir in $PATH
5889 do
5890   IFS=$as_save_IFS
5891   test -z "$as_dir" && as_dir=.
5892   for ac_exec_ext in '' $ac_executable_extensions; do
5893   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5894     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5895     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5896     break 2
5897   fi
5898 done
5899 done
5900 IFS=$as_save_IFS
5901
5902 fi
5903 fi
5904 DUMPBIN=$ac_cv_prog_DUMPBIN
5905 if test -n "$DUMPBIN"; then
5906   { echo "$as_me:$LINENO: result: $DUMPBIN" >&5
5907 echo "${ECHO_T}$DUMPBIN" >&6; }
5908 else
5909   { echo "$as_me:$LINENO: result: no" >&5
5910 echo "${ECHO_T}no" >&6; }
5911 fi
5912
5913
5914     test -n "$DUMPBIN" && break
5915   done
5916 fi
5917 if test -z "$DUMPBIN"; then
5918   ac_ct_DUMPBIN=$DUMPBIN
5919   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5920 do
5921   # Extract the first word of "$ac_prog", so it can be a program name with args.
5922 set dummy $ac_prog; ac_word=$2
5923 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5924 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5925 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
5926   echo $ECHO_N "(cached) $ECHO_C" >&6
5927 else
5928   if test -n "$ac_ct_DUMPBIN"; then
5929   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5930 else
5931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5932 for as_dir in $PATH
5933 do
5934   IFS=$as_save_IFS
5935   test -z "$as_dir" && as_dir=.
5936   for ac_exec_ext in '' $ac_executable_extensions; do
5937   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5938     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5939     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5940     break 2
5941   fi
5942 done
5943 done
5944 IFS=$as_save_IFS
5945
5946 fi
5947 fi
5948 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5949 if test -n "$ac_ct_DUMPBIN"; then
5950   { echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
5951 echo "${ECHO_T}$ac_ct_DUMPBIN" >&6; }
5952 else
5953   { echo "$as_me:$LINENO: result: no" >&5
5954 echo "${ECHO_T}no" >&6; }
5955 fi
5956
5957
5958   test -n "$ac_ct_DUMPBIN" && break
5959 done
5960
5961   if test "x$ac_ct_DUMPBIN" = x; then
5962     DUMPBIN=":"
5963   else
5964     case $cross_compiling:$ac_tool_warned in
5965 yes:)
5966 { echo "$as_me:$LINENO: 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." >&5
5969 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5970 whose name does not start with the host triplet.  If you think this
5971 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5972 ac_tool_warned=yes ;;
5973 esac
5974     DUMPBIN=$ac_ct_DUMPBIN
5975   fi
5976 fi
5977
5978
5979   if test "$DUMPBIN" != ":"; then
5980     NM="$DUMPBIN"
5981   fi
5982 fi
5983 test -z "$NM" && NM=nm
5984
5985
5986
5987
5988
5989
5990 { echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
5991 echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6; }
5992 if test "${lt_cv_nm_interface+set}" = set; then
5993   echo $ECHO_N "(cached) $ECHO_C" >&6
5994 else
5995   lt_cv_nm_interface="BSD nm"
5996   echo "int some_variable = 0;" > conftest.$ac_ext
5997   (eval echo "\"\$as_me:5997: $ac_compile\"" >&5)
5998   (eval "$ac_compile" 2>conftest.err)
5999   cat conftest.err >&5
6000   (eval echo "\"\$as_me:6000: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6001   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6002   cat conftest.err >&5
6003   (eval echo "\"\$as_me:6003: output\"" >&5)
6004   cat conftest.out >&5
6005   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6006     lt_cv_nm_interface="MS dumpbin"
6007   fi
6008   rm -f conftest*
6009 fi
6010 { echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
6011 echo "${ECHO_T}$lt_cv_nm_interface" >&6; }
6012
6013 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6014 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6015 LN_S=$as_ln_s
6016 if test "$LN_S" = "ln -s"; then
6017   { echo "$as_me:$LINENO: result: yes" >&5
6018 echo "${ECHO_T}yes" >&6; }
6019 else
6020   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6021 echo "${ECHO_T}no, using $LN_S" >&6; }
6022 fi
6023
6024 # find the maximum length of command line arguments
6025 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6026 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6027 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6028   echo $ECHO_N "(cached) $ECHO_C" >&6
6029 else
6030     i=0
6031   teststring="ABCD"
6032
6033   case $build_os in
6034   msdosdjgpp*)
6035     # On DJGPP, this test can blow up pretty badly due to problems in libc
6036     # (any single argument exceeding 2000 bytes causes a buffer overrun
6037     # during glob expansion).  Even if it were fixed, the result of this
6038     # check would be larger than it should be.
6039     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6040     ;;
6041
6042   gnu*)
6043     # Under GNU Hurd, this test is not required because there is
6044     # no limit to the length of command line arguments.
6045     # Libtool will interpret -1 as no limit whatsoever
6046     lt_cv_sys_max_cmd_len=-1;
6047     ;;
6048
6049   cygwin* | mingw* | cegcc*)
6050     # On Win9x/ME, this test blows up -- it succeeds, but takes
6051     # about 5 minutes as the teststring grows exponentially.
6052     # Worse, since 9x/ME are not pre-emptively multitasking,
6053     # you end up with a "frozen" computer, even though with patience
6054     # the test eventually succeeds (with a max line length of 256k).
6055     # Instead, let's just punt: use the minimum linelength reported by
6056     # all of the supported platforms: 8192 (on NT/2K/XP).
6057     lt_cv_sys_max_cmd_len=8192;
6058     ;;
6059
6060   amigaos*)
6061     # On AmigaOS with pdksh, this test takes hours, literally.
6062     # So we just punt and use a minimum line length of 8192.
6063     lt_cv_sys_max_cmd_len=8192;
6064     ;;
6065
6066   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6067     # This has been around since 386BSD, at least.  Likely further.
6068     if test -x /sbin/sysctl; then
6069       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6070     elif test -x /usr/sbin/sysctl; then
6071       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6072     else
6073       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6074     fi
6075     # And add a safety zone
6076     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6077     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6078     ;;
6079
6080   interix*)
6081     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6082     lt_cv_sys_max_cmd_len=196608
6083     ;;
6084
6085   osf*)
6086     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6087     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6088     # nice to cause kernel panics so lets avoid the loop below.
6089     # First set a reasonable default.
6090     lt_cv_sys_max_cmd_len=16384
6091     #
6092     if test -x /sbin/sysconfig; then
6093       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6094         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6095       esac
6096     fi
6097     ;;
6098   sco3.2v5*)
6099     lt_cv_sys_max_cmd_len=102400
6100     ;;
6101   sysv5* | sco5v6* | sysv4.2uw2*)
6102     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6103     if test -n "$kargmax"; then
6104       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
6105     else
6106       lt_cv_sys_max_cmd_len=32768
6107     fi
6108     ;;
6109   *)
6110     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6111     if test -n "$lt_cv_sys_max_cmd_len"; then
6112       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6113       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6114     else
6115       # Make teststring a little bigger before we do anything with it.
6116       # a 1K string should be a reasonable start.
6117       for i in 1 2 3 4 5 6 7 8 ; do
6118         teststring=$teststring$teststring
6119       done
6120       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6121       # If test is not a shell built-in, we'll probably end up computing a
6122       # maximum length that is only half of the actual maximum length, but
6123       # we can't tell.
6124       while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
6125                  = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
6126               test $i != 17 # 1/2 MB should be enough
6127       do
6128         i=`expr $i + 1`
6129         teststring=$teststring$teststring
6130       done
6131       # Only check the string length outside the loop.
6132       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6133       teststring=
6134       # Add a significant safety factor because C++ compilers can tack on
6135       # massive amounts of additional arguments before passing them to the
6136       # linker.  It appears as though 1/2 is a usable value.
6137       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6138     fi
6139     ;;
6140   esac
6141
6142 fi
6143
6144 if test -n $lt_cv_sys_max_cmd_len ; then
6145   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6146 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6147 else
6148   { echo "$as_me:$LINENO: result: none" >&5
6149 echo "${ECHO_T}none" >&6; }
6150 fi
6151 max_cmd_len=$lt_cv_sys_max_cmd_len
6152
6153
6154
6155
6156
6157
6158 : ${CP="cp -f"}
6159 : ${MV="mv -f"}
6160 : ${RM="rm -f"}
6161
6162 { echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
6163 echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6; }
6164 # Try some XSI features
6165 xsi_shell=no
6166 ( _lt_dummy="a/b/c"
6167   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6168       = c,a/b,, \
6169     && eval 'test $(( 1 + 1 )) -eq 2 \
6170     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6171   && xsi_shell=yes
6172 { echo "$as_me:$LINENO: result: $xsi_shell" >&5
6173 echo "${ECHO_T}$xsi_shell" >&6; }
6174
6175
6176 { echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
6177 echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6; }
6178 lt_shell_append=no
6179 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6180     >/dev/null 2>&1 \
6181   && lt_shell_append=yes
6182 { echo "$as_me:$LINENO: result: $lt_shell_append" >&5
6183 echo "${ECHO_T}$lt_shell_append" >&6; }
6184
6185
6186 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6187   lt_unset=unset
6188 else
6189   lt_unset=false
6190 fi
6191
6192
6193
6194
6195
6196 # test EBCDIC or ASCII
6197 case `echo X|tr X '\101'` in
6198  A) # ASCII based system
6199     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6200   lt_SP2NL='tr \040 \012'
6201   lt_NL2SP='tr \015\012 \040\040'
6202   ;;
6203  *) # EBCDIC based system
6204   lt_SP2NL='tr \100 \n'
6205   lt_NL2SP='tr \r\n \100\100'
6206   ;;
6207 esac
6208
6209
6210
6211
6212
6213
6214
6215
6216
6217 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6218 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
6219 if test "${lt_cv_ld_reload_flag+set}" = set; then
6220   echo $ECHO_N "(cached) $ECHO_C" >&6
6221 else
6222   lt_cv_ld_reload_flag='-r'
6223 fi
6224 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6225 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
6226 reload_flag=$lt_cv_ld_reload_flag
6227 case $reload_flag in
6228 "" | " "*) ;;
6229 *) reload_flag=" $reload_flag" ;;
6230 esac
6231 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6232 case $host_os in
6233   darwin*)
6234     if test "$GCC" = yes; then
6235       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6236     else
6237       reload_cmds='$LD$reload_flag -o $output$reload_objs'
6238     fi
6239     ;;
6240 esac
6241
6242
6243
6244
6245
6246
6247
6248
6249
6250 if test -n "$ac_tool_prefix"; then
6251   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6252 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6253 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6254 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6255 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
6256   echo $ECHO_N "(cached) $ECHO_C" >&6
6257 else
6258   if test -n "$OBJDUMP"; then
6259   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6260 else
6261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6262 for as_dir in $PATH
6263 do
6264   IFS=$as_save_IFS
6265   test -z "$as_dir" && as_dir=.
6266   for ac_exec_ext in '' $ac_executable_extensions; do
6267   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6268     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6269     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6270     break 2
6271   fi
6272 done
6273 done
6274 IFS=$as_save_IFS
6275
6276 fi
6277 fi
6278 OBJDUMP=$ac_cv_prog_OBJDUMP
6279 if test -n "$OBJDUMP"; then
6280   { echo "$as_me:$LINENO: result: $OBJDUMP" >&5
6281 echo "${ECHO_T}$OBJDUMP" >&6; }
6282 else
6283   { echo "$as_me:$LINENO: result: no" >&5
6284 echo "${ECHO_T}no" >&6; }
6285 fi
6286
6287
6288 fi
6289 if test -z "$ac_cv_prog_OBJDUMP"; then
6290   ac_ct_OBJDUMP=$OBJDUMP
6291   # Extract the first word of "objdump", so it can be a program name with args.
6292 set dummy objdump; ac_word=$2
6293 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6294 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6295 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
6296   echo $ECHO_N "(cached) $ECHO_C" >&6
6297 else
6298   if test -n "$ac_ct_OBJDUMP"; then
6299   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6300 else
6301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6302 for as_dir in $PATH
6303 do
6304   IFS=$as_save_IFS
6305   test -z "$as_dir" && as_dir=.
6306   for ac_exec_ext in '' $ac_executable_extensions; do
6307   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6308     ac_cv_prog_ac_ct_OBJDUMP="objdump"
6309     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6310     break 2
6311   fi
6312 done
6313 done
6314 IFS=$as_save_IFS
6315
6316 fi
6317 fi
6318 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6319 if test -n "$ac_ct_OBJDUMP"; then
6320   { echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
6321 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6; }
6322 else
6323   { echo "$as_me:$LINENO: result: no" >&5
6324 echo "${ECHO_T}no" >&6; }
6325 fi
6326
6327   if test "x$ac_ct_OBJDUMP" = x; then
6328     OBJDUMP="false"
6329   else
6330     case $cross_compiling:$ac_tool_warned in
6331 yes:)
6332 { echo "$as_me:$LINENO: 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." >&5
6335 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6336 whose name does not start with the host triplet.  If you think this
6337 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6338 ac_tool_warned=yes ;;
6339 esac
6340     OBJDUMP=$ac_ct_OBJDUMP
6341   fi
6342 else
6343   OBJDUMP="$ac_cv_prog_OBJDUMP"
6344 fi
6345
6346 test -z "$OBJDUMP" && OBJDUMP=objdump
6347
6348
6349
6350
6351
6352
6353
6354
6355
6356 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
6357 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
6358 if test "${lt_cv_deplibs_check_method+set}" = set; then
6359   echo $ECHO_N "(cached) $ECHO_C" >&6
6360 else
6361   lt_cv_file_magic_cmd='$MAGIC_CMD'
6362 lt_cv_file_magic_test_file=
6363 lt_cv_deplibs_check_method='unknown'
6364 # Need to set the preceding variable on all platforms that support
6365 # interlibrary dependencies.
6366 # 'none' -- dependencies not supported.
6367 # `unknown' -- same as none, but documents that we really don't know.
6368 # 'pass_all' -- all dependencies passed with no checks.
6369 # 'test_compile' -- check by making test program.
6370 # 'file_magic [[regex]]' -- check by looking for files in library path
6371 # which responds to the $file_magic_cmd with a given extended regex.
6372 # If you have `file' or equivalent on your system and you're not sure
6373 # whether `pass_all' will *always* work, you probably want this one.
6374
6375 case $host_os in
6376 aix[4-9]*)
6377   lt_cv_deplibs_check_method=pass_all
6378   ;;
6379
6380 beos*)
6381   lt_cv_deplibs_check_method=pass_all
6382   ;;
6383
6384 bsdi[45]*)
6385   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6386   lt_cv_file_magic_cmd='/usr/bin/file -L'
6387   lt_cv_file_magic_test_file=/shlib/libc.so
6388   ;;
6389
6390 cygwin*)
6391   # func_win32_libid is a shell function defined in ltmain.sh
6392   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6393   lt_cv_file_magic_cmd='func_win32_libid'
6394   ;;
6395
6396 mingw* | pw32*)
6397   # Base MSYS/MinGW do not provide the 'file' command needed by
6398   # func_win32_libid shell function, so use a weaker test based on 'objdump',
6399   # unless we find 'file', for example because we are cross-compiling.
6400   if ( file / ) >/dev/null 2>&1; then
6401     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6402     lt_cv_file_magic_cmd='func_win32_libid'
6403   else
6404     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6405     lt_cv_file_magic_cmd='$OBJDUMP -f'
6406   fi
6407   ;;
6408
6409 cegcc)
6410   # use the weaker test based on 'objdump'. See mingw*.
6411   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6412   lt_cv_file_magic_cmd='$OBJDUMP -f'
6413   ;;
6414
6415 darwin* | rhapsody*)
6416   lt_cv_deplibs_check_method=pass_all
6417   ;;
6418
6419 freebsd* | dragonfly*)
6420   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6421     case $host_cpu in
6422     i*86 )
6423       # Not sure whether the presence of OpenBSD here was a mistake.
6424       # Let's accept both of them until this is cleared up.
6425       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6426       lt_cv_file_magic_cmd=/usr/bin/file
6427       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6428       ;;
6429     esac
6430   else
6431     lt_cv_deplibs_check_method=pass_all
6432   fi
6433   ;;
6434
6435 gnu*)
6436   lt_cv_deplibs_check_method=pass_all
6437   ;;
6438
6439 hpux10.20* | hpux11*)
6440   lt_cv_file_magic_cmd=/usr/bin/file
6441   case $host_cpu in
6442   ia64*)
6443     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6444     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6445     ;;
6446   hppa*64*)
6447     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]'
6448     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6449     ;;
6450   *)
6451     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6452     lt_cv_file_magic_test_file=/usr/lib/libc.sl
6453     ;;
6454   esac
6455   ;;
6456
6457 interix[3-9]*)
6458   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6459   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6460   ;;
6461
6462 irix5* | irix6* | nonstopux*)
6463   case $LD in
6464   *-32|*"-32 ") libmagic=32-bit;;
6465   *-n32|*"-n32 ") libmagic=N32;;
6466   *-64|*"-64 ") libmagic=64-bit;;
6467   *) libmagic=never-match;;
6468   esac
6469   lt_cv_deplibs_check_method=pass_all
6470   ;;
6471
6472 # This must be Linux ELF.
6473 linux* | k*bsd*-gnu)
6474   lt_cv_deplibs_check_method=pass_all
6475   ;;
6476
6477 netbsd*)
6478   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6479     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6480   else
6481     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6482   fi
6483   ;;
6484
6485 newos6*)
6486   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6487   lt_cv_file_magic_cmd=/usr/bin/file
6488   lt_cv_file_magic_test_file=/usr/lib/libnls.so
6489   ;;
6490
6491 *nto* | *qnx*)
6492   lt_cv_deplibs_check_method=pass_all
6493   ;;
6494
6495 openbsd*)
6496   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6497     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6498   else
6499     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6500   fi
6501   ;;
6502
6503 osf3* | osf4* | osf5*)
6504   lt_cv_deplibs_check_method=pass_all
6505   ;;
6506
6507 rdos*)
6508   lt_cv_deplibs_check_method=pass_all
6509   ;;
6510
6511 solaris*)
6512   lt_cv_deplibs_check_method=pass_all
6513   ;;
6514
6515 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6516   lt_cv_deplibs_check_method=pass_all
6517   ;;
6518
6519 sysv4 | sysv4.3*)
6520   case $host_vendor in
6521   motorola)
6522     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]'
6523     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6524     ;;
6525   ncr)
6526     lt_cv_deplibs_check_method=pass_all
6527     ;;
6528   sequent)
6529     lt_cv_file_magic_cmd='/bin/file'
6530     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6531     ;;
6532   sni)
6533     lt_cv_file_magic_cmd='/bin/file'
6534     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6535     lt_cv_file_magic_test_file=/lib/libc.so
6536     ;;
6537   siemens)
6538     lt_cv_deplibs_check_method=pass_all
6539     ;;
6540   pc)
6541     lt_cv_deplibs_check_method=pass_all
6542     ;;
6543   esac
6544   ;;
6545
6546 tpf*)
6547   lt_cv_deplibs_check_method=pass_all
6548   ;;
6549 esac
6550
6551 fi
6552 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6553 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
6554 file_magic_cmd=$lt_cv_file_magic_cmd
6555 deplibs_check_method=$lt_cv_deplibs_check_method
6556 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6557
6558
6559
6560
6561
6562
6563
6564
6565
6566
6567
6568
6569 if test -n "$ac_tool_prefix"; then
6570   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6571 set dummy ${ac_tool_prefix}ar; ac_word=$2
6572 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6573 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6574 if test "${ac_cv_prog_AR+set}" = set; then
6575   echo $ECHO_N "(cached) $ECHO_C" >&6
6576 else
6577   if test -n "$AR"; then
6578   ac_cv_prog_AR="$AR" # Let the user override the test.
6579 else
6580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6581 for as_dir in $PATH
6582 do
6583   IFS=$as_save_IFS
6584   test -z "$as_dir" && as_dir=.
6585   for ac_exec_ext in '' $ac_executable_extensions; do
6586   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6587     ac_cv_prog_AR="${ac_tool_prefix}ar"
6588     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6589     break 2
6590   fi
6591 done
6592 done
6593 IFS=$as_save_IFS
6594
6595 fi
6596 fi
6597 AR=$ac_cv_prog_AR
6598 if test -n "$AR"; then
6599   { echo "$as_me:$LINENO: result: $AR" >&5
6600 echo "${ECHO_T}$AR" >&6; }
6601 else
6602   { echo "$as_me:$LINENO: result: no" >&5
6603 echo "${ECHO_T}no" >&6; }
6604 fi
6605
6606
6607 fi
6608 if test -z "$ac_cv_prog_AR"; then
6609   ac_ct_AR=$AR
6610   # Extract the first word of "ar", so it can be a program name with args.
6611 set dummy ar; ac_word=$2
6612 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6613 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6614 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6615   echo $ECHO_N "(cached) $ECHO_C" >&6
6616 else
6617   if test -n "$ac_ct_AR"; then
6618   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6619 else
6620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6621 for as_dir in $PATH
6622 do
6623   IFS=$as_save_IFS
6624   test -z "$as_dir" && as_dir=.
6625   for ac_exec_ext in '' $ac_executable_extensions; do
6626   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6627     ac_cv_prog_ac_ct_AR="ar"
6628     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6629     break 2
6630   fi
6631 done
6632 done
6633 IFS=$as_save_IFS
6634
6635 fi
6636 fi
6637 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6638 if test -n "$ac_ct_AR"; then
6639   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6640 echo "${ECHO_T}$ac_ct_AR" >&6; }
6641 else
6642   { echo "$as_me:$LINENO: result: no" >&5
6643 echo "${ECHO_T}no" >&6; }
6644 fi
6645
6646   if test "x$ac_ct_AR" = x; then
6647     AR="false"
6648   else
6649     case $cross_compiling:$ac_tool_warned in
6650 yes:)
6651 { echo "$as_me:$LINENO: 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." >&5
6654 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6655 whose name does not start with the host triplet.  If you think this
6656 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6657 ac_tool_warned=yes ;;
6658 esac
6659     AR=$ac_ct_AR
6660   fi
6661 else
6662   AR="$ac_cv_prog_AR"
6663 fi
6664
6665 test -z "$AR" && AR=ar
6666 test -z "$AR_FLAGS" && AR_FLAGS=cru
6667
6668
6669
6670
6671
6672
6673
6674
6675
6676
6677
6678 if test -n "$ac_tool_prefix"; then
6679   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6680 set dummy ${ac_tool_prefix}strip; ac_word=$2
6681 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6682 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6683 if test "${ac_cv_prog_STRIP+set}" = set; then
6684   echo $ECHO_N "(cached) $ECHO_C" >&6
6685 else
6686   if test -n "$STRIP"; then
6687   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6688 else
6689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6690 for as_dir in $PATH
6691 do
6692   IFS=$as_save_IFS
6693   test -z "$as_dir" && as_dir=.
6694   for ac_exec_ext in '' $ac_executable_extensions; do
6695   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6696     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6697     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6698     break 2
6699   fi
6700 done
6701 done
6702 IFS=$as_save_IFS
6703
6704 fi
6705 fi
6706 STRIP=$ac_cv_prog_STRIP
6707 if test -n "$STRIP"; then
6708   { echo "$as_me:$LINENO: result: $STRIP" >&5
6709 echo "${ECHO_T}$STRIP" >&6; }
6710 else
6711   { echo "$as_me:$LINENO: result: no" >&5
6712 echo "${ECHO_T}no" >&6; }
6713 fi
6714
6715
6716 fi
6717 if test -z "$ac_cv_prog_STRIP"; then
6718   ac_ct_STRIP=$STRIP
6719   # Extract the first word of "strip", so it can be a program name with args.
6720 set dummy strip; ac_word=$2
6721 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6722 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6723 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6724   echo $ECHO_N "(cached) $ECHO_C" >&6
6725 else
6726   if test -n "$ac_ct_STRIP"; then
6727   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6728 else
6729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6730 for as_dir in $PATH
6731 do
6732   IFS=$as_save_IFS
6733   test -z "$as_dir" && as_dir=.
6734   for ac_exec_ext in '' $ac_executable_extensions; do
6735   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6736     ac_cv_prog_ac_ct_STRIP="strip"
6737     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6738     break 2
6739   fi
6740 done
6741 done
6742 IFS=$as_save_IFS
6743
6744 fi
6745 fi
6746 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6747 if test -n "$ac_ct_STRIP"; then
6748   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6749 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6750 else
6751   { echo "$as_me:$LINENO: result: no" >&5
6752 echo "${ECHO_T}no" >&6; }
6753 fi
6754
6755   if test "x$ac_ct_STRIP" = x; then
6756     STRIP=":"
6757   else
6758     case $cross_compiling:$ac_tool_warned in
6759 yes:)
6760 { echo "$as_me:$LINENO: 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." >&5
6763 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6764 whose name does not start with the host triplet.  If you think this
6765 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6766 ac_tool_warned=yes ;;
6767 esac
6768     STRIP=$ac_ct_STRIP
6769   fi
6770 else
6771   STRIP="$ac_cv_prog_STRIP"
6772 fi
6773
6774 test -z "$STRIP" && STRIP=:
6775
6776
6777
6778
6779
6780
6781 if test -n "$ac_tool_prefix"; then
6782   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6783 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6784 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6785 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6786 if test "${ac_cv_prog_RANLIB+set}" = set; then
6787   echo $ECHO_N "(cached) $ECHO_C" >&6
6788 else
6789   if test -n "$RANLIB"; then
6790   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6791 else
6792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6793 for as_dir in $PATH
6794 do
6795   IFS=$as_save_IFS
6796   test -z "$as_dir" && as_dir=.
6797   for ac_exec_ext in '' $ac_executable_extensions; do
6798   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6799     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6800     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6801     break 2
6802   fi
6803 done
6804 done
6805 IFS=$as_save_IFS
6806
6807 fi
6808 fi
6809 RANLIB=$ac_cv_prog_RANLIB
6810 if test -n "$RANLIB"; then
6811   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6812 echo "${ECHO_T}$RANLIB" >&6; }
6813 else
6814   { echo "$as_me:$LINENO: result: no" >&5
6815 echo "${ECHO_T}no" >&6; }
6816 fi
6817
6818
6819 fi
6820 if test -z "$ac_cv_prog_RANLIB"; then
6821   ac_ct_RANLIB=$RANLIB
6822   # Extract the first word of "ranlib", so it can be a program name with args.
6823 set dummy ranlib; ac_word=$2
6824 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6825 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6826 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6827   echo $ECHO_N "(cached) $ECHO_C" >&6
6828 else
6829   if test -n "$ac_ct_RANLIB"; then
6830   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6831 else
6832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6833 for as_dir in $PATH
6834 do
6835   IFS=$as_save_IFS
6836   test -z "$as_dir" && as_dir=.
6837   for ac_exec_ext in '' $ac_executable_extensions; do
6838   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6839     ac_cv_prog_ac_ct_RANLIB="ranlib"
6840     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6841     break 2
6842   fi
6843 done
6844 done
6845 IFS=$as_save_IFS
6846
6847 fi
6848 fi
6849 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6850 if test -n "$ac_ct_RANLIB"; then
6851   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6852 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6853 else
6854   { echo "$as_me:$LINENO: result: no" >&5
6855 echo "${ECHO_T}no" >&6; }
6856 fi
6857
6858   if test "x$ac_ct_RANLIB" = x; then
6859     RANLIB=":"
6860   else
6861     case $cross_compiling:$ac_tool_warned in
6862 yes:)
6863 { echo "$as_me:$LINENO: 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." >&5
6866 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6867 whose name does not start with the host triplet.  If you think this
6868 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6869 ac_tool_warned=yes ;;
6870 esac
6871     RANLIB=$ac_ct_RANLIB
6872   fi
6873 else
6874   RANLIB="$ac_cv_prog_RANLIB"
6875 fi
6876
6877 test -z "$RANLIB" && RANLIB=:
6878
6879
6880
6881
6882
6883
6884 # Determine commands to create old-style static archives.
6885 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6886 old_postinstall_cmds='chmod 644 $oldlib'
6887 old_postuninstall_cmds=
6888
6889 if test -n "$RANLIB"; then
6890   case $host_os in
6891   openbsd*)
6892     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6893     ;;
6894   *)
6895     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6896     ;;
6897   esac
6898   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6899 fi
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
6932
6933
6934 # If no C compiler was specified, use CC.
6935 LTCC=${LTCC-"$CC"}
6936
6937 # If no C compiler flags were specified, use CFLAGS.
6938 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6939
6940 # Allow CC to be a program name with arguments.
6941 compiler=$CC
6942
6943
6944 # Check for command to grab the raw symbol name followed by C symbol from nm.
6945 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6946 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6947 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6948   echo $ECHO_N "(cached) $ECHO_C" >&6
6949 else
6950
6951 # These are sane defaults that work on at least a few old systems.
6952 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6953
6954 # Character class describing NM global symbol codes.
6955 symcode='[BCDEGRST]'
6956
6957 # Regexp to match symbols that can be accessed directly from C.
6958 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6959
6960 # Define system-specific variables.
6961 case $host_os in
6962 aix*)
6963   symcode='[BCDT]'
6964   ;;
6965 cygwin* | mingw* | pw32* | cegcc*)
6966   symcode='[ABCDGISTW]'
6967   ;;
6968 hpux*)
6969   if test "$host_cpu" = ia64; then
6970     symcode='[ABCDEGRST]'
6971   fi
6972   ;;
6973 irix* | nonstopux*)
6974   symcode='[BCDEGRST]'
6975   ;;
6976 osf*)
6977   symcode='[BCDEGQRST]'
6978   ;;
6979 solaris*)
6980   symcode='[BDRT]'
6981   ;;
6982 sco3.2v5*)
6983   symcode='[DT]'
6984   ;;
6985 sysv4.2uw2*)
6986   symcode='[DT]'
6987   ;;
6988 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6989   symcode='[ABDT]'
6990   ;;
6991 sysv4)
6992   symcode='[DFNSTU]'
6993   ;;
6994 esac
6995
6996 # If we're using GNU nm, then use its standard symbol codes.
6997 case `$NM -V 2>&1` in
6998 *GNU* | *'with BFD'*)
6999   symcode='[ABCDGIRSTW]' ;;
7000 esac
7001
7002 # Transform an extracted symbol line into a proper C declaration.
7003 # Some systems (esp. on ia64) link data and code symbols differently,
7004 # so use this general approach.
7005 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7006
7007 # Transform an extracted symbol line into symbol name and symbol address
7008 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
7009 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'"
7010
7011 # Handle CRLF in mingw tool chain
7012 opt_cr=
7013 case $build_os in
7014 mingw*)
7015   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7016   ;;
7017 esac
7018
7019 # Try without a prefix underscore, then with it.
7020 for ac_symprfx in "" "_"; do
7021
7022   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7023   symxfrm="\\1 $ac_symprfx\\2 \\2"
7024
7025   # Write the raw and C identifiers.
7026   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7027     # Fake it for dumpbin and say T for any non-static function
7028     # and D for any global variable.
7029     # Also find C++ and __fastcall symbols from MSVC++,
7030     # which start with @ or ?.
7031     lt_cv_sys_global_symbol_pipe="$AWK '"\
7032 "     {last_section=section; section=\$ 3};"\
7033 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7034 "     \$ 0!~/External *\|/{next};"\
7035 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7036 "     {if(hide[section]) next};"\
7037 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7038 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7039 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
7040 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7041 "     ' prfx=^$ac_symprfx"
7042   else
7043     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7044   fi
7045
7046   # Check to see that the pipe works correctly.
7047   pipe_works=no
7048
7049   rm -f conftest*
7050   cat > conftest.$ac_ext <<_LT_EOF
7051 #ifdef __cplusplus
7052 extern "C" {
7053 #endif
7054 char nm_test_var;
7055 void nm_test_func(void);
7056 void nm_test_func(void){}
7057 #ifdef __cplusplus
7058 }
7059 #endif
7060 int main(){nm_test_var='a';nm_test_func();return(0);}
7061 _LT_EOF
7062
7063   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7064   (eval $ac_compile) 2>&5
7065   ac_status=$?
7066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7067   (exit $ac_status); }; then
7068     # Now try to grab the symbols.
7069     nlist=conftest.nm
7070     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7071   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7072   ac_status=$?
7073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7074   (exit $ac_status); } && test -s "$nlist"; then
7075       # Try sorting and uniquifying the output.
7076       if sort "$nlist" | uniq > "$nlist"T; then
7077         mv -f "$nlist"T "$nlist"
7078       else
7079         rm -f "$nlist"T
7080       fi
7081
7082       # Make sure that we snagged all the symbols we need.
7083       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7084         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7085           cat <<_LT_EOF > conftest.$ac_ext
7086 #ifdef __cplusplus
7087 extern "C" {
7088 #endif
7089
7090 _LT_EOF
7091           # Now generate the symbol file.
7092           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7093
7094           cat <<_LT_EOF >> conftest.$ac_ext
7095
7096 /* The mapping between symbol names and symbols.  */
7097 const struct {
7098   const char *name;
7099   void       *address;
7100 }
7101 lt__PROGRAM__LTX_preloaded_symbols[] =
7102 {
7103   { "@PROGRAM@", (void *) 0 },
7104 _LT_EOF
7105           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7106           cat <<\_LT_EOF >> conftest.$ac_ext
7107   {0, (void *) 0}
7108 };
7109
7110 /* This works around a problem in FreeBSD linker */
7111 #ifdef FREEBSD_WORKAROUND
7112 static const void *lt_preloaded_setup() {
7113   return lt__PROGRAM__LTX_preloaded_symbols;
7114 }
7115 #endif
7116
7117 #ifdef __cplusplus
7118 }
7119 #endif
7120 _LT_EOF
7121           # Now try linking the two files.
7122           mv conftest.$ac_objext conftstm.$ac_objext
7123           lt_save_LIBS="$LIBS"
7124           lt_save_CFLAGS="$CFLAGS"
7125           LIBS="conftstm.$ac_objext"
7126           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7127           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7128   (eval $ac_link) 2>&5
7129   ac_status=$?
7130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7131   (exit $ac_status); } && test -s conftest${ac_exeext}; then
7132             pipe_works=yes
7133           fi
7134           LIBS="$lt_save_LIBS"
7135           CFLAGS="$lt_save_CFLAGS"
7136         else
7137           echo "cannot find nm_test_func in $nlist" >&5
7138         fi
7139       else
7140         echo "cannot find nm_test_var in $nlist" >&5
7141       fi
7142     else
7143       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7144     fi
7145   else
7146     echo "$progname: failed program was:" >&5
7147     cat conftest.$ac_ext >&5
7148   fi
7149   rm -rf conftest* conftst*
7150
7151   # Do not use the global_symbol_pipe unless it works.
7152   if test "$pipe_works" = yes; then
7153     break
7154   else
7155     lt_cv_sys_global_symbol_pipe=
7156   fi
7157 done
7158
7159 fi
7160
7161 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7162   lt_cv_sys_global_symbol_to_cdecl=
7163 fi
7164 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7165   { echo "$as_me:$LINENO: result: failed" >&5
7166 echo "${ECHO_T}failed" >&6; }
7167 else
7168   { echo "$as_me:$LINENO: result: ok" >&5
7169 echo "${ECHO_T}ok" >&6; }
7170 fi
7171
7172
7173
7174
7175
7176
7177
7178
7179
7180
7181
7182
7183
7184
7185
7186
7187
7188
7189
7190
7191
7192
7193 # Check whether --enable-libtool-lock was given.
7194 if test "${enable_libtool_lock+set}" = set; then
7195   enableval=$enable_libtool_lock;
7196 fi
7197
7198 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7199
7200 # Some flags need to be propagated to the compiler or linker for good
7201 # libtool support.
7202 case $host in
7203 ia64-*-hpux*)
7204   # Find out which ABI we are using.
7205   echo 'int i;' > conftest.$ac_ext
7206   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7207   (eval $ac_compile) 2>&5
7208   ac_status=$?
7209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7210   (exit $ac_status); }; then
7211     case `/usr/bin/file conftest.$ac_objext` in
7212       *ELF-32*)
7213         HPUX_IA64_MODE="32"
7214         ;;
7215       *ELF-64*)
7216         HPUX_IA64_MODE="64"
7217         ;;
7218     esac
7219   fi
7220   rm -rf conftest*
7221   ;;
7222 *-*-irix6*)
7223   # Find out which ABI we are using.
7224   echo '#line 7224 "configure"' > conftest.$ac_ext
7225   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7226   (eval $ac_compile) 2>&5
7227   ac_status=$?
7228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7229   (exit $ac_status); }; then
7230     if test "$lt_cv_prog_gnu_ld" = yes; then
7231       case `/usr/bin/file conftest.$ac_objext` in
7232         *32-bit*)
7233           LD="${LD-ld} -melf32bsmip"
7234           ;;
7235         *N32*)
7236           LD="${LD-ld} -melf32bmipn32"
7237           ;;
7238         *64-bit*)
7239           LD="${LD-ld} -melf64bmip"
7240         ;;
7241       esac
7242     else
7243       case `/usr/bin/file conftest.$ac_objext` in
7244         *32-bit*)
7245           LD="${LD-ld} -32"
7246           ;;
7247         *N32*)
7248           LD="${LD-ld} -n32"
7249           ;;
7250         *64-bit*)
7251           LD="${LD-ld} -64"
7252           ;;
7253       esac
7254     fi
7255   fi
7256   rm -rf conftest*
7257   ;;
7258
7259 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7260 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7261   # Find out which ABI we are using.
7262   echo 'int i;' > conftest.$ac_ext
7263   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7264   (eval $ac_compile) 2>&5
7265   ac_status=$?
7266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7267   (exit $ac_status); }; then
7268     case `/usr/bin/file conftest.o` in
7269       *32-bit*)
7270         case $host in
7271           x86_64-*kfreebsd*-gnu)
7272             LD="${LD-ld} -m elf_i386_fbsd"
7273             ;;
7274           x86_64-*linux*)
7275             LD="${LD-ld} -m elf_i386"
7276             ;;
7277           ppc64-*linux*|powerpc64-*linux*)
7278             LD="${LD-ld} -m elf32ppclinux"
7279             ;;
7280           s390x-*linux*)
7281             LD="${LD-ld} -m elf_s390"
7282             ;;
7283           sparc64-*linux*)
7284             LD="${LD-ld} -m elf32_sparc"
7285             ;;
7286         esac
7287         ;;
7288       *64-bit*)
7289         case $host in
7290           x86_64-*kfreebsd*-gnu)
7291             LD="${LD-ld} -m elf_x86_64_fbsd"
7292             ;;
7293           x86_64-*linux*)
7294             LD="${LD-ld} -m elf_x86_64"
7295             ;;
7296           ppc*-*linux*|powerpc*-*linux*)
7297             LD="${LD-ld} -m elf64ppc"
7298             ;;
7299           s390*-*linux*|s390*-*tpf*)
7300             LD="${LD-ld} -m elf64_s390"
7301             ;;
7302           sparc*-*linux*)
7303             LD="${LD-ld} -m elf64_sparc"
7304             ;;
7305         esac
7306         ;;
7307     esac
7308   fi
7309   rm -rf conftest*
7310   ;;
7311
7312 *-*-sco3.2v5*)
7313   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7314   SAVE_CFLAGS="$CFLAGS"
7315   CFLAGS="$CFLAGS -belf"
7316   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
7317 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
7318 if test "${lt_cv_cc_needs_belf+set}" = set; then
7319   echo $ECHO_N "(cached) $ECHO_C" >&6
7320 else
7321   ac_ext=c
7322 ac_cpp='$CPP $CPPFLAGS'
7323 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7324 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7325 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7326
7327      cat >conftest.$ac_ext <<_ACEOF
7328 /* confdefs.h.  */
7329 _ACEOF
7330 cat confdefs.h >>conftest.$ac_ext
7331 cat >>conftest.$ac_ext <<_ACEOF
7332 /* end confdefs.h.  */
7333
7334 int
7335 main ()
7336 {
7337
7338   ;
7339   return 0;
7340 }
7341 _ACEOF
7342 rm -f conftest.$ac_objext conftest$ac_exeext
7343 if { (ac_try="$ac_link"
7344 case "(($ac_try" in
7345   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7346   *) ac_try_echo=$ac_try;;
7347 esac
7348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7349   (eval "$ac_link") 2>conftest.er1
7350   ac_status=$?
7351   grep -v '^ *+' conftest.er1 >conftest.err
7352   rm -f conftest.er1
7353   cat conftest.err >&5
7354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7355   (exit $ac_status); } && {
7356          test -z "$ac_c_werror_flag" ||
7357          test ! -s conftest.err
7358        } && test -s conftest$ac_exeext &&
7359        $as_test_x conftest$ac_exeext; then
7360   lt_cv_cc_needs_belf=yes
7361 else
7362   echo "$as_me: failed program was:" >&5
7363 sed 's/^/| /' conftest.$ac_ext >&5
7364
7365         lt_cv_cc_needs_belf=no
7366 fi
7367
7368 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7369       conftest$ac_exeext conftest.$ac_ext
7370      ac_ext=c
7371 ac_cpp='$CPP $CPPFLAGS'
7372 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7373 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7374 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7375
7376 fi
7377 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
7378 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
7379   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7380     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7381     CFLAGS="$SAVE_CFLAGS"
7382   fi
7383   ;;
7384 sparc*-*solaris*)
7385   # Find out which ABI we are using.
7386   echo 'int i;' > conftest.$ac_ext
7387   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7388   (eval $ac_compile) 2>&5
7389   ac_status=$?
7390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7391   (exit $ac_status); }; then
7392     case `/usr/bin/file conftest.o` in
7393     *64-bit*)
7394       case $lt_cv_prog_gnu_ld in
7395       yes*) LD="${LD-ld} -m elf64_sparc" ;;
7396       *)
7397         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7398           LD="${LD-ld} -64"
7399         fi
7400         ;;
7401       esac
7402       ;;
7403     esac
7404   fi
7405   rm -rf conftest*
7406   ;;
7407 esac
7408
7409 need_locks="$enable_libtool_lock"
7410
7411
7412   case $host_os in
7413     rhapsody* | darwin*)
7414     if test -n "$ac_tool_prefix"; then
7415   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7416 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7417 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7418 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7419 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7420   echo $ECHO_N "(cached) $ECHO_C" >&6
7421 else
7422   if test -n "$DSYMUTIL"; then
7423   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7424 else
7425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7426 for as_dir in $PATH
7427 do
7428   IFS=$as_save_IFS
7429   test -z "$as_dir" && as_dir=.
7430   for ac_exec_ext in '' $ac_executable_extensions; do
7431   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7432     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7433     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7434     break 2
7435   fi
7436 done
7437 done
7438 IFS=$as_save_IFS
7439
7440 fi
7441 fi
7442 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7443 if test -n "$DSYMUTIL"; then
7444   { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7445 echo "${ECHO_T}$DSYMUTIL" >&6; }
7446 else
7447   { echo "$as_me:$LINENO: result: no" >&5
7448 echo "${ECHO_T}no" >&6; }
7449 fi
7450
7451
7452 fi
7453 if test -z "$ac_cv_prog_DSYMUTIL"; then
7454   ac_ct_DSYMUTIL=$DSYMUTIL
7455   # Extract the first word of "dsymutil", so it can be a program name with args.
7456 set dummy dsymutil; ac_word=$2
7457 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7458 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7459 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7460   echo $ECHO_N "(cached) $ECHO_C" >&6
7461 else
7462   if test -n "$ac_ct_DSYMUTIL"; then
7463   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7464 else
7465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7466 for as_dir in $PATH
7467 do
7468   IFS=$as_save_IFS
7469   test -z "$as_dir" && as_dir=.
7470   for ac_exec_ext in '' $ac_executable_extensions; do
7471   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7472     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7473     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7474     break 2
7475   fi
7476 done
7477 done
7478 IFS=$as_save_IFS
7479
7480 fi
7481 fi
7482 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7483 if test -n "$ac_ct_DSYMUTIL"; then
7484   { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7485 echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
7486 else
7487   { echo "$as_me:$LINENO: result: no" >&5
7488 echo "${ECHO_T}no" >&6; }
7489 fi
7490
7491   if test "x$ac_ct_DSYMUTIL" = x; then
7492     DSYMUTIL=":"
7493   else
7494     case $cross_compiling:$ac_tool_warned in
7495 yes:)
7496 { echo "$as_me:$LINENO: 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." >&5
7499 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7500 whose name does not start with the host triplet.  If you think this
7501 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7502 ac_tool_warned=yes ;;
7503 esac
7504     DSYMUTIL=$ac_ct_DSYMUTIL
7505   fi
7506 else
7507   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7508 fi
7509
7510     if test -n "$ac_tool_prefix"; then
7511   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7512 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7513 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7514 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7515 if test "${ac_cv_prog_NMEDIT+set}" = set; then
7516   echo $ECHO_N "(cached) $ECHO_C" >&6
7517 else
7518   if test -n "$NMEDIT"; then
7519   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7520 else
7521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7522 for as_dir in $PATH
7523 do
7524   IFS=$as_save_IFS
7525   test -z "$as_dir" && as_dir=.
7526   for ac_exec_ext in '' $ac_executable_extensions; do
7527   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7528     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7529     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7530     break 2
7531   fi
7532 done
7533 done
7534 IFS=$as_save_IFS
7535
7536 fi
7537 fi
7538 NMEDIT=$ac_cv_prog_NMEDIT
7539 if test -n "$NMEDIT"; then
7540   { echo "$as_me:$LINENO: result: $NMEDIT" >&5
7541 echo "${ECHO_T}$NMEDIT" >&6; }
7542 else
7543   { echo "$as_me:$LINENO: result: no" >&5
7544 echo "${ECHO_T}no" >&6; }
7545 fi
7546
7547
7548 fi
7549 if test -z "$ac_cv_prog_NMEDIT"; then
7550   ac_ct_NMEDIT=$NMEDIT
7551   # Extract the first word of "nmedit", so it can be a program name with args.
7552 set dummy nmedit; ac_word=$2
7553 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7554 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7555 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7556   echo $ECHO_N "(cached) $ECHO_C" >&6
7557 else
7558   if test -n "$ac_ct_NMEDIT"; then
7559   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7560 else
7561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7562 for as_dir in $PATH
7563 do
7564   IFS=$as_save_IFS
7565   test -z "$as_dir" && as_dir=.
7566   for ac_exec_ext in '' $ac_executable_extensions; do
7567   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7568     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7569     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7570     break 2
7571   fi
7572 done
7573 done
7574 IFS=$as_save_IFS
7575
7576 fi
7577 fi
7578 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7579 if test -n "$ac_ct_NMEDIT"; then
7580   { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7581 echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
7582 else
7583   { echo "$as_me:$LINENO: result: no" >&5
7584 echo "${ECHO_T}no" >&6; }
7585 fi
7586
7587   if test "x$ac_ct_NMEDIT" = x; then
7588     NMEDIT=":"
7589   else
7590     case $cross_compiling:$ac_tool_warned in
7591 yes:)
7592 { echo "$as_me:$LINENO: 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." >&5
7595 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7596 whose name does not start with the host triplet.  If you think this
7597 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7598 ac_tool_warned=yes ;;
7599 esac
7600     NMEDIT=$ac_ct_NMEDIT
7601   fi
7602 else
7603   NMEDIT="$ac_cv_prog_NMEDIT"
7604 fi
7605
7606     if test -n "$ac_tool_prefix"; then
7607   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7608 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7609 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7610 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7611 if test "${ac_cv_prog_LIPO+set}" = set; then
7612   echo $ECHO_N "(cached) $ECHO_C" >&6
7613 else
7614   if test -n "$LIPO"; then
7615   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7616 else
7617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7618 for as_dir in $PATH
7619 do
7620   IFS=$as_save_IFS
7621   test -z "$as_dir" && as_dir=.
7622   for ac_exec_ext in '' $ac_executable_extensions; do
7623   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7624     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7625     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7626     break 2
7627   fi
7628 done
7629 done
7630 IFS=$as_save_IFS
7631
7632 fi
7633 fi
7634 LIPO=$ac_cv_prog_LIPO
7635 if test -n "$LIPO"; then
7636   { echo "$as_me:$LINENO: result: $LIPO" >&5
7637 echo "${ECHO_T}$LIPO" >&6; }
7638 else
7639   { echo "$as_me:$LINENO: result: no" >&5
7640 echo "${ECHO_T}no" >&6; }
7641 fi
7642
7643
7644 fi
7645 if test -z "$ac_cv_prog_LIPO"; then
7646   ac_ct_LIPO=$LIPO
7647   # Extract the first word of "lipo", so it can be a program name with args.
7648 set dummy lipo; ac_word=$2
7649 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7650 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7651 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
7652   echo $ECHO_N "(cached) $ECHO_C" >&6
7653 else
7654   if test -n "$ac_ct_LIPO"; then
7655   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7656 else
7657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7658 for as_dir in $PATH
7659 do
7660   IFS=$as_save_IFS
7661   test -z "$as_dir" && as_dir=.
7662   for ac_exec_ext in '' $ac_executable_extensions; do
7663   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7664     ac_cv_prog_ac_ct_LIPO="lipo"
7665     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7666     break 2
7667   fi
7668 done
7669 done
7670 IFS=$as_save_IFS
7671
7672 fi
7673 fi
7674 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7675 if test -n "$ac_ct_LIPO"; then
7676   { echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
7677 echo "${ECHO_T}$ac_ct_LIPO" >&6; }
7678 else
7679   { echo "$as_me:$LINENO: result: no" >&5
7680 echo "${ECHO_T}no" >&6; }
7681 fi
7682
7683   if test "x$ac_ct_LIPO" = x; then
7684     LIPO=":"
7685   else
7686     case $cross_compiling:$ac_tool_warned in
7687 yes:)
7688 { echo "$as_me:$LINENO: 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." >&5
7691 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7692 whose name does not start with the host triplet.  If you think this
7693 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7694 ac_tool_warned=yes ;;
7695 esac
7696     LIPO=$ac_ct_LIPO
7697   fi
7698 else
7699   LIPO="$ac_cv_prog_LIPO"
7700 fi
7701
7702     if test -n "$ac_tool_prefix"; then
7703   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7704 set dummy ${ac_tool_prefix}otool; ac_word=$2
7705 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7706 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7707 if test "${ac_cv_prog_OTOOL+set}" = set; then
7708   echo $ECHO_N "(cached) $ECHO_C" >&6
7709 else
7710   if test -n "$OTOOL"; then
7711   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7712 else
7713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7714 for as_dir in $PATH
7715 do
7716   IFS=$as_save_IFS
7717   test -z "$as_dir" && as_dir=.
7718   for ac_exec_ext in '' $ac_executable_extensions; do
7719   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7720     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7721     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7722     break 2
7723   fi
7724 done
7725 done
7726 IFS=$as_save_IFS
7727
7728 fi
7729 fi
7730 OTOOL=$ac_cv_prog_OTOOL
7731 if test -n "$OTOOL"; then
7732   { echo "$as_me:$LINENO: result: $OTOOL" >&5
7733 echo "${ECHO_T}$OTOOL" >&6; }
7734 else
7735   { echo "$as_me:$LINENO: result: no" >&5
7736 echo "${ECHO_T}no" >&6; }
7737 fi
7738
7739
7740 fi
7741 if test -z "$ac_cv_prog_OTOOL"; then
7742   ac_ct_OTOOL=$OTOOL
7743   # Extract the first word of "otool", so it can be a program name with args.
7744 set dummy otool; ac_word=$2
7745 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7746 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7747 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
7748   echo $ECHO_N "(cached) $ECHO_C" >&6
7749 else
7750   if test -n "$ac_ct_OTOOL"; then
7751   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7752 else
7753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7754 for as_dir in $PATH
7755 do
7756   IFS=$as_save_IFS
7757   test -z "$as_dir" && as_dir=.
7758   for ac_exec_ext in '' $ac_executable_extensions; do
7759   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7760     ac_cv_prog_ac_ct_OTOOL="otool"
7761     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7762     break 2
7763   fi
7764 done
7765 done
7766 IFS=$as_save_IFS
7767
7768 fi
7769 fi
7770 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7771 if test -n "$ac_ct_OTOOL"; then
7772   { echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
7773 echo "${ECHO_T}$ac_ct_OTOOL" >&6; }
7774 else
7775   { echo "$as_me:$LINENO: result: no" >&5
7776 echo "${ECHO_T}no" >&6; }
7777 fi
7778
7779   if test "x$ac_ct_OTOOL" = x; then
7780     OTOOL=":"
7781   else
7782     case $cross_compiling:$ac_tool_warned in
7783 yes:)
7784 { echo "$as_me:$LINENO: 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." >&5
7787 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7788 whose name does not start with the host triplet.  If you think this
7789 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7790 ac_tool_warned=yes ;;
7791 esac
7792     OTOOL=$ac_ct_OTOOL
7793   fi
7794 else
7795   OTOOL="$ac_cv_prog_OTOOL"
7796 fi
7797
7798     if test -n "$ac_tool_prefix"; then
7799   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7800 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7801 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7802 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7803 if test "${ac_cv_prog_OTOOL64+set}" = set; then
7804   echo $ECHO_N "(cached) $ECHO_C" >&6
7805 else
7806   if test -n "$OTOOL64"; then
7807   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7808 else
7809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7810 for as_dir in $PATH
7811 do
7812   IFS=$as_save_IFS
7813   test -z "$as_dir" && as_dir=.
7814   for ac_exec_ext in '' $ac_executable_extensions; do
7815   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7816     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7817     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7818     break 2
7819   fi
7820 done
7821 done
7822 IFS=$as_save_IFS
7823
7824 fi
7825 fi
7826 OTOOL64=$ac_cv_prog_OTOOL64
7827 if test -n "$OTOOL64"; then
7828   { echo "$as_me:$LINENO: result: $OTOOL64" >&5
7829 echo "${ECHO_T}$OTOOL64" >&6; }
7830 else
7831   { echo "$as_me:$LINENO: result: no" >&5
7832 echo "${ECHO_T}no" >&6; }
7833 fi
7834
7835
7836 fi
7837 if test -z "$ac_cv_prog_OTOOL64"; then
7838   ac_ct_OTOOL64=$OTOOL64
7839   # Extract the first word of "otool64", so it can be a program name with args.
7840 set dummy otool64; ac_word=$2
7841 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7842 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7843 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
7844   echo $ECHO_N "(cached) $ECHO_C" >&6
7845 else
7846   if test -n "$ac_ct_OTOOL64"; then
7847   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7848 else
7849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7850 for as_dir in $PATH
7851 do
7852   IFS=$as_save_IFS
7853   test -z "$as_dir" && as_dir=.
7854   for ac_exec_ext in '' $ac_executable_extensions; do
7855   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7856     ac_cv_prog_ac_ct_OTOOL64="otool64"
7857     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7858     break 2
7859   fi
7860 done
7861 done
7862 IFS=$as_save_IFS
7863
7864 fi
7865 fi
7866 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7867 if test -n "$ac_ct_OTOOL64"; then
7868   { echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
7869 echo "${ECHO_T}$ac_ct_OTOOL64" >&6; }
7870 else
7871   { echo "$as_me:$LINENO: result: no" >&5
7872 echo "${ECHO_T}no" >&6; }
7873 fi
7874
7875   if test "x$ac_ct_OTOOL64" = x; then
7876     OTOOL64=":"
7877   else
7878     case $cross_compiling:$ac_tool_warned in
7879 yes:)
7880 { echo "$as_me:$LINENO: 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." >&5
7883 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7884 whose name does not start with the host triplet.  If you think this
7885 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7886 ac_tool_warned=yes ;;
7887 esac
7888     OTOOL64=$ac_ct_OTOOL64
7889   fi
7890 else
7891   OTOOL64="$ac_cv_prog_OTOOL64"
7892 fi
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
7918
7919
7920     { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7921 echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
7922 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7923   echo $ECHO_N "(cached) $ECHO_C" >&6
7924 else
7925   lt_cv_apple_cc_single_mod=no
7926       if test -z "${LT_MULTI_MODULE}"; then
7927         # By default we will add the -single_module flag. You can override
7928         # by either setting the environment variable LT_MULTI_MODULE
7929         # non-empty at configure time, or by adding -multi_module to the
7930         # link flags.
7931         rm -rf libconftest.dylib*
7932         echo "int foo(void){return 1;}" > conftest.c
7933         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7934 -dynamiclib -Wl,-single_module conftest.c" >&5
7935         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7936           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7937         _lt_result=$?
7938         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7939           lt_cv_apple_cc_single_mod=yes
7940         else
7941           cat conftest.err >&5
7942         fi
7943         rm -rf libconftest.dylib*
7944         rm -f conftest.*
7945       fi
7946 fi
7947 { echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7948 echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
7949     { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7950 echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
7951 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7952   echo $ECHO_N "(cached) $ECHO_C" >&6
7953 else
7954   lt_cv_ld_exported_symbols_list=no
7955       save_LDFLAGS=$LDFLAGS
7956       echo "_main" > conftest.sym
7957       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7958       cat >conftest.$ac_ext <<_ACEOF
7959 /* confdefs.h.  */
7960 _ACEOF
7961 cat confdefs.h >>conftest.$ac_ext
7962 cat >>conftest.$ac_ext <<_ACEOF
7963 /* end confdefs.h.  */
7964
7965 int
7966 main ()
7967 {
7968
7969   ;
7970   return 0;
7971 }
7972 _ACEOF
7973 rm -f conftest.$ac_objext conftest$ac_exeext
7974 if { (ac_try="$ac_link"
7975 case "(($ac_try" in
7976   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7977   *) ac_try_echo=$ac_try;;
7978 esac
7979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7980   (eval "$ac_link") 2>conftest.er1
7981   ac_status=$?
7982   grep -v '^ *+' conftest.er1 >conftest.err
7983   rm -f conftest.er1
7984   cat conftest.err >&5
7985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7986   (exit $ac_status); } && {
7987          test -z "$ac_c_werror_flag" ||
7988          test ! -s conftest.err
7989        } && test -s conftest$ac_exeext &&
7990        $as_test_x conftest$ac_exeext; then
7991   lt_cv_ld_exported_symbols_list=yes
7992 else
7993   echo "$as_me: failed program was:" >&5
7994 sed 's/^/| /' conftest.$ac_ext >&5
7995
7996         lt_cv_ld_exported_symbols_list=no
7997 fi
7998
7999 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8000       conftest$ac_exeext conftest.$ac_ext
8001         LDFLAGS="$save_LDFLAGS"
8002
8003 fi
8004 { echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
8005 echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
8006     case $host_os in
8007     rhapsody* | darwin1.[012])
8008       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8009     darwin1.*)
8010       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8011     darwin*) # darwin 5.x on
8012       # if running on 10.5 or later, the deployment target defaults
8013       # to the OS version, if on x86, and 10.4, the deployment
8014       # target defaults to 10.4. Don't you love it?
8015       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8016         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8017           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8018         10.[012]*)
8019           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8020         10.*)
8021           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8022       esac
8023     ;;
8024   esac
8025     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8026       _lt_dar_single_mod='$single_module'
8027     fi
8028     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8029       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8030     else
8031       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8032     fi
8033     if test "$DSYMUTIL" != ":"; then
8034       _lt_dsymutil='~$DSYMUTIL $lib || :'
8035     else
8036       _lt_dsymutil=
8037     fi
8038     ;;
8039   esac
8040
8041 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8042 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
8043 if test "${ac_cv_header_stdc+set}" = set; then
8044   echo $ECHO_N "(cached) $ECHO_C" >&6
8045 else
8046   cat >conftest.$ac_ext <<_ACEOF
8047 /* confdefs.h.  */
8048 _ACEOF
8049 cat confdefs.h >>conftest.$ac_ext
8050 cat >>conftest.$ac_ext <<_ACEOF
8051 /* end confdefs.h.  */
8052 #include <stdlib.h>
8053 #include <stdarg.h>
8054 #include <string.h>
8055 #include <float.h>
8056
8057 int
8058 main ()
8059 {
8060
8061   ;
8062   return 0;
8063 }
8064 _ACEOF
8065 rm -f conftest.$ac_objext
8066 if { (ac_try="$ac_compile"
8067 case "(($ac_try" in
8068   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8069   *) ac_try_echo=$ac_try;;
8070 esac
8071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8072   (eval "$ac_compile") 2>conftest.er1
8073   ac_status=$?
8074   grep -v '^ *+' conftest.er1 >conftest.err
8075   rm -f conftest.er1
8076   cat conftest.err >&5
8077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8078   (exit $ac_status); } && {
8079          test -z "$ac_c_werror_flag" ||
8080          test ! -s conftest.err
8081        } && test -s conftest.$ac_objext; then
8082   ac_cv_header_stdc=yes
8083 else
8084   echo "$as_me: failed program was:" >&5
8085 sed 's/^/| /' conftest.$ac_ext >&5
8086
8087         ac_cv_header_stdc=no
8088 fi
8089
8090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8091
8092 if test $ac_cv_header_stdc = yes; then
8093   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8094   cat >conftest.$ac_ext <<_ACEOF
8095 /* confdefs.h.  */
8096 _ACEOF
8097 cat confdefs.h >>conftest.$ac_ext
8098 cat >>conftest.$ac_ext <<_ACEOF
8099 /* end confdefs.h.  */
8100 #include <string.h>
8101
8102 _ACEOF
8103 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8104   $EGREP "memchr" >/dev/null 2>&1; then
8105   :
8106 else
8107   ac_cv_header_stdc=no
8108 fi
8109 rm -f conftest*
8110
8111 fi
8112
8113 if test $ac_cv_header_stdc = yes; then
8114   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8115   cat >conftest.$ac_ext <<_ACEOF
8116 /* confdefs.h.  */
8117 _ACEOF
8118 cat confdefs.h >>conftest.$ac_ext
8119 cat >>conftest.$ac_ext <<_ACEOF
8120 /* end confdefs.h.  */
8121 #include <stdlib.h>
8122
8123 _ACEOF
8124 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8125   $EGREP "free" >/dev/null 2>&1; then
8126   :
8127 else
8128   ac_cv_header_stdc=no
8129 fi
8130 rm -f conftest*
8131
8132 fi
8133
8134 if test $ac_cv_header_stdc = yes; then
8135   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8136   if test "$cross_compiling" = yes; then
8137   :
8138 else
8139   cat >conftest.$ac_ext <<_ACEOF
8140 /* confdefs.h.  */
8141 _ACEOF
8142 cat confdefs.h >>conftest.$ac_ext
8143 cat >>conftest.$ac_ext <<_ACEOF
8144 /* end confdefs.h.  */
8145 #include <ctype.h>
8146 #include <stdlib.h>
8147 #if ((' ' & 0x0FF) == 0x020)
8148 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8149 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8150 #else
8151 # define ISLOWER(c) \
8152                    (('a' <= (c) && (c) <= 'i') \
8153                      || ('j' <= (c) && (c) <= 'r') \
8154                      || ('s' <= (c) && (c) <= 'z'))
8155 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8156 #endif
8157
8158 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8159 int
8160 main ()
8161 {
8162   int i;
8163   for (i = 0; i < 256; i++)
8164     if (XOR (islower (i), ISLOWER (i))
8165         || toupper (i) != TOUPPER (i))
8166       return 2;
8167   return 0;
8168 }
8169 _ACEOF
8170 rm -f conftest$ac_exeext
8171 if { (ac_try="$ac_link"
8172 case "(($ac_try" in
8173   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8174   *) ac_try_echo=$ac_try;;
8175 esac
8176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8177   (eval "$ac_link") 2>&5
8178   ac_status=$?
8179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8180   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8181   { (case "(($ac_try" in
8182   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8183   *) ac_try_echo=$ac_try;;
8184 esac
8185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8186   (eval "$ac_try") 2>&5
8187   ac_status=$?
8188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8189   (exit $ac_status); }; }; then
8190   :
8191 else
8192   echo "$as_me: program exited with status $ac_status" >&5
8193 echo "$as_me: failed program was:" >&5
8194 sed 's/^/| /' conftest.$ac_ext >&5
8195
8196 ( exit $ac_status )
8197 ac_cv_header_stdc=no
8198 fi
8199 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8200 fi
8201
8202
8203 fi
8204 fi
8205 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8206 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
8207 if test $ac_cv_header_stdc = yes; then
8208
8209 cat >>confdefs.h <<\_ACEOF
8210 #define STDC_HEADERS 1
8211 _ACEOF
8212
8213 fi
8214
8215 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8216
8217
8218
8219
8220
8221
8222
8223
8224
8225 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8226                   inttypes.h stdint.h unistd.h
8227 do
8228 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8229 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8230 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8231 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8232   echo $ECHO_N "(cached) $ECHO_C" >&6
8233 else
8234   cat >conftest.$ac_ext <<_ACEOF
8235 /* confdefs.h.  */
8236 _ACEOF
8237 cat confdefs.h >>conftest.$ac_ext
8238 cat >>conftest.$ac_ext <<_ACEOF
8239 /* end confdefs.h.  */
8240 $ac_includes_default
8241
8242 #include <$ac_header>
8243 _ACEOF
8244 rm -f conftest.$ac_objext
8245 if { (ac_try="$ac_compile"
8246 case "(($ac_try" in
8247   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8248   *) ac_try_echo=$ac_try;;
8249 esac
8250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8251   (eval "$ac_compile") 2>conftest.er1
8252   ac_status=$?
8253   grep -v '^ *+' conftest.er1 >conftest.err
8254   rm -f conftest.er1
8255   cat conftest.err >&5
8256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8257   (exit $ac_status); } && {
8258          test -z "$ac_c_werror_flag" ||
8259          test ! -s conftest.err
8260        } && test -s conftest.$ac_objext; then
8261   eval "$as_ac_Header=yes"
8262 else
8263   echo "$as_me: failed program was:" >&5
8264 sed 's/^/| /' conftest.$ac_ext >&5
8265
8266         eval "$as_ac_Header=no"
8267 fi
8268
8269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8270 fi
8271 ac_res=`eval echo '${'$as_ac_Header'}'`
8272                { echo "$as_me:$LINENO: result: $ac_res" >&5
8273 echo "${ECHO_T}$ac_res" >&6; }
8274 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8275   cat >>confdefs.h <<_ACEOF
8276 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8277 _ACEOF
8278
8279 fi
8280
8281 done
8282
8283
8284
8285 for ac_header in dlfcn.h
8286 do
8287 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8288 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8289 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8290 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8291   echo $ECHO_N "(cached) $ECHO_C" >&6
8292 else
8293   cat >conftest.$ac_ext <<_ACEOF
8294 /* confdefs.h.  */
8295 _ACEOF
8296 cat confdefs.h >>conftest.$ac_ext
8297 cat >>conftest.$ac_ext <<_ACEOF
8298 /* end confdefs.h.  */
8299 $ac_includes_default
8300
8301 #include <$ac_header>
8302 _ACEOF
8303 rm -f conftest.$ac_objext
8304 if { (ac_try="$ac_compile"
8305 case "(($ac_try" in
8306   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8307   *) ac_try_echo=$ac_try;;
8308 esac
8309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8310   (eval "$ac_compile") 2>conftest.er1
8311   ac_status=$?
8312   grep -v '^ *+' conftest.er1 >conftest.err
8313   rm -f conftest.er1
8314   cat conftest.err >&5
8315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8316   (exit $ac_status); } && {
8317          test -z "$ac_c_werror_flag" ||
8318          test ! -s conftest.err
8319        } && test -s conftest.$ac_objext; then
8320   eval "$as_ac_Header=yes"
8321 else
8322   echo "$as_me: failed program was:" >&5
8323 sed 's/^/| /' conftest.$ac_ext >&5
8324
8325         eval "$as_ac_Header=no"
8326 fi
8327
8328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8329 fi
8330 ac_res=`eval echo '${'$as_ac_Header'}'`
8331                { echo "$as_me:$LINENO: result: $ac_res" >&5
8332 echo "${ECHO_T}$ac_res" >&6; }
8333 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8334   cat >>confdefs.h <<_ACEOF
8335 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8336 _ACEOF
8337
8338 fi
8339
8340 done
8341
8342
8343
8344 ac_ext=cpp
8345 ac_cpp='$CXXCPP $CPPFLAGS'
8346 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8347 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8348 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8349 if test -z "$CXX"; then
8350   if test -n "$CCC"; then
8351     CXX=$CCC
8352   else
8353     if test -n "$ac_tool_prefix"; then
8354   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
8355   do
8356     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8357 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8358 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8359 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8360 if test "${ac_cv_prog_CXX+set}" = set; then
8361   echo $ECHO_N "(cached) $ECHO_C" >&6
8362 else
8363   if test -n "$CXX"; then
8364   ac_cv_prog_CXX="$CXX" # Let the user override the test.
8365 else
8366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8367 for as_dir in $PATH
8368 do
8369   IFS=$as_save_IFS
8370   test -z "$as_dir" && as_dir=.
8371   for ac_exec_ext in '' $ac_executable_extensions; do
8372   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8373     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
8374     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8375     break 2
8376   fi
8377 done
8378 done
8379 IFS=$as_save_IFS
8380
8381 fi
8382 fi
8383 CXX=$ac_cv_prog_CXX
8384 if test -n "$CXX"; then
8385   { echo "$as_me:$LINENO: result: $CXX" >&5
8386 echo "${ECHO_T}$CXX" >&6; }
8387 else
8388   { echo "$as_me:$LINENO: result: no" >&5
8389 echo "${ECHO_T}no" >&6; }
8390 fi
8391
8392
8393     test -n "$CXX" && break
8394   done
8395 fi
8396 if test -z "$CXX"; then
8397   ac_ct_CXX=$CXX
8398   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
8399 do
8400   # Extract the first word of "$ac_prog", so it can be a program name with args.
8401 set dummy $ac_prog; ac_word=$2
8402 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8403 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8404 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
8405   echo $ECHO_N "(cached) $ECHO_C" >&6
8406 else
8407   if test -n "$ac_ct_CXX"; then
8408   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
8409 else
8410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8411 for as_dir in $PATH
8412 do
8413   IFS=$as_save_IFS
8414   test -z "$as_dir" && as_dir=.
8415   for ac_exec_ext in '' $ac_executable_extensions; do
8416   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8417     ac_cv_prog_ac_ct_CXX="$ac_prog"
8418     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8419     break 2
8420   fi
8421 done
8422 done
8423 IFS=$as_save_IFS
8424
8425 fi
8426 fi
8427 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
8428 if test -n "$ac_ct_CXX"; then
8429   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
8430 echo "${ECHO_T}$ac_ct_CXX" >&6; }
8431 else
8432   { echo "$as_me:$LINENO: result: no" >&5
8433 echo "${ECHO_T}no" >&6; }
8434 fi
8435
8436
8437   test -n "$ac_ct_CXX" && break
8438 done
8439
8440   if test "x$ac_ct_CXX" = x; then
8441     CXX="g++"
8442   else
8443     case $cross_compiling:$ac_tool_warned in
8444 yes:)
8445 { echo "$as_me:$LINENO: 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." >&5
8448 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8449 whose name does not start with the host triplet.  If you think this
8450 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8451 ac_tool_warned=yes ;;
8452 esac
8453     CXX=$ac_ct_CXX
8454   fi
8455 fi
8456
8457   fi
8458 fi
8459 # Provide some information about the compiler.
8460 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
8461 ac_compiler=`set X $ac_compile; echo $2`
8462 { (ac_try="$ac_compiler --version >&5"
8463 case "(($ac_try" in
8464   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8465   *) ac_try_echo=$ac_try;;
8466 esac
8467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8468   (eval "$ac_compiler --version >&5") 2>&5
8469   ac_status=$?
8470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8471   (exit $ac_status); }
8472 { (ac_try="$ac_compiler -v >&5"
8473 case "(($ac_try" in
8474   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8475   *) ac_try_echo=$ac_try;;
8476 esac
8477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8478   (eval "$ac_compiler -v >&5") 2>&5
8479   ac_status=$?
8480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8481   (exit $ac_status); }
8482 { (ac_try="$ac_compiler -V >&5"
8483 case "(($ac_try" in
8484   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8485   *) ac_try_echo=$ac_try;;
8486 esac
8487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8488   (eval "$ac_compiler -V >&5") 2>&5
8489   ac_status=$?
8490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8491   (exit $ac_status); }
8492
8493 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
8494 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
8495 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
8496   echo $ECHO_N "(cached) $ECHO_C" >&6
8497 else
8498   cat >conftest.$ac_ext <<_ACEOF
8499 /* confdefs.h.  */
8500 _ACEOF
8501 cat confdefs.h >>conftest.$ac_ext
8502 cat >>conftest.$ac_ext <<_ACEOF
8503 /* end confdefs.h.  */
8504
8505 int
8506 main ()
8507 {
8508 #ifndef __GNUC__
8509        choke me
8510 #endif
8511
8512   ;
8513   return 0;
8514 }
8515 _ACEOF
8516 rm -f conftest.$ac_objext
8517 if { (ac_try="$ac_compile"
8518 case "(($ac_try" in
8519   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8520   *) ac_try_echo=$ac_try;;
8521 esac
8522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8523   (eval "$ac_compile") 2>conftest.er1
8524   ac_status=$?
8525   grep -v '^ *+' conftest.er1 >conftest.err
8526   rm -f conftest.er1
8527   cat conftest.err >&5
8528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8529   (exit $ac_status); } && {
8530          test -z "$ac_cxx_werror_flag" ||
8531          test ! -s conftest.err
8532        } && test -s conftest.$ac_objext; then
8533   ac_compiler_gnu=yes
8534 else
8535   echo "$as_me: failed program was:" >&5
8536 sed 's/^/| /' conftest.$ac_ext >&5
8537
8538         ac_compiler_gnu=no
8539 fi
8540
8541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8542 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
8543
8544 fi
8545 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
8546 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
8547 GXX=`test $ac_compiler_gnu = yes && echo yes`
8548 ac_test_CXXFLAGS=${CXXFLAGS+set}
8549 ac_save_CXXFLAGS=$CXXFLAGS
8550 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
8551 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
8552 if test "${ac_cv_prog_cxx_g+set}" = set; then
8553   echo $ECHO_N "(cached) $ECHO_C" >&6
8554 else
8555   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
8556    ac_cxx_werror_flag=yes
8557    ac_cv_prog_cxx_g=no
8558    CXXFLAGS="-g"
8559    cat >conftest.$ac_ext <<_ACEOF
8560 /* confdefs.h.  */
8561 _ACEOF
8562 cat confdefs.h >>conftest.$ac_ext
8563 cat >>conftest.$ac_ext <<_ACEOF
8564 /* end confdefs.h.  */
8565
8566 int
8567 main ()
8568 {
8569
8570   ;
8571   return 0;
8572 }
8573 _ACEOF
8574 rm -f conftest.$ac_objext
8575 if { (ac_try="$ac_compile"
8576 case "(($ac_try" in
8577   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8578   *) ac_try_echo=$ac_try;;
8579 esac
8580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8581   (eval "$ac_compile") 2>conftest.er1
8582   ac_status=$?
8583   grep -v '^ *+' conftest.er1 >conftest.err
8584   rm -f conftest.er1
8585   cat conftest.err >&5
8586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8587   (exit $ac_status); } && {
8588          test -z "$ac_cxx_werror_flag" ||
8589          test ! -s conftest.err
8590        } && test -s conftest.$ac_objext; then
8591   ac_cv_prog_cxx_g=yes
8592 else
8593   echo "$as_me: failed program was:" >&5
8594 sed 's/^/| /' conftest.$ac_ext >&5
8595
8596         CXXFLAGS=""
8597       cat >conftest.$ac_ext <<_ACEOF
8598 /* confdefs.h.  */
8599 _ACEOF
8600 cat confdefs.h >>conftest.$ac_ext
8601 cat >>conftest.$ac_ext <<_ACEOF
8602 /* end confdefs.h.  */
8603
8604 int
8605 main ()
8606 {
8607
8608   ;
8609   return 0;
8610 }
8611 _ACEOF
8612 rm -f conftest.$ac_objext
8613 if { (ac_try="$ac_compile"
8614 case "(($ac_try" in
8615   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8616   *) ac_try_echo=$ac_try;;
8617 esac
8618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8619   (eval "$ac_compile") 2>conftest.er1
8620   ac_status=$?
8621   grep -v '^ *+' conftest.er1 >conftest.err
8622   rm -f conftest.er1
8623   cat conftest.err >&5
8624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8625   (exit $ac_status); } && {
8626          test -z "$ac_cxx_werror_flag" ||
8627          test ! -s conftest.err
8628        } && test -s conftest.$ac_objext; then
8629   :
8630 else
8631   echo "$as_me: failed program was:" >&5
8632 sed 's/^/| /' conftest.$ac_ext >&5
8633
8634         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8635          CXXFLAGS="-g"
8636          cat >conftest.$ac_ext <<_ACEOF
8637 /* confdefs.h.  */
8638 _ACEOF
8639 cat confdefs.h >>conftest.$ac_ext
8640 cat >>conftest.$ac_ext <<_ACEOF
8641 /* end confdefs.h.  */
8642
8643 int
8644 main ()
8645 {
8646
8647   ;
8648   return 0;
8649 }
8650 _ACEOF
8651 rm -f conftest.$ac_objext
8652 if { (ac_try="$ac_compile"
8653 case "(($ac_try" in
8654   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8655   *) ac_try_echo=$ac_try;;
8656 esac
8657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8658   (eval "$ac_compile") 2>conftest.er1
8659   ac_status=$?
8660   grep -v '^ *+' conftest.er1 >conftest.err
8661   rm -f conftest.er1
8662   cat conftest.err >&5
8663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8664   (exit $ac_status); } && {
8665          test -z "$ac_cxx_werror_flag" ||
8666          test ! -s conftest.err
8667        } && test -s conftest.$ac_objext; then
8668   ac_cv_prog_cxx_g=yes
8669 else
8670   echo "$as_me: failed program was:" >&5
8671 sed 's/^/| /' conftest.$ac_ext >&5
8672
8673
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 fi
8681
8682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8683    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8684 fi
8685 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
8686 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
8687 if test "$ac_test_CXXFLAGS" = set; then
8688   CXXFLAGS=$ac_save_CXXFLAGS
8689 elif test $ac_cv_prog_cxx_g = yes; then
8690   if test "$GXX" = yes; then
8691     CXXFLAGS="-g -O2"
8692   else
8693     CXXFLAGS="-g"
8694   fi
8695 else
8696   if test "$GXX" = yes; then
8697     CXXFLAGS="-O2"
8698   else
8699     CXXFLAGS=
8700   fi
8701 fi
8702 ac_ext=c
8703 ac_cpp='$CPP $CPPFLAGS'
8704 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8705 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8706 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8707
8708 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
8709     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
8710     (test "X$CXX" != "Xg++"))) ; then
8711   ac_ext=cpp
8712 ac_cpp='$CXXCPP $CPPFLAGS'
8713 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8714 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8715 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8716 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
8717 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
8718 if test -z "$CXXCPP"; then
8719   if test "${ac_cv_prog_CXXCPP+set}" = set; then
8720   echo $ECHO_N "(cached) $ECHO_C" >&6
8721 else
8722       # Double quotes because CXXCPP needs to be expanded
8723     for CXXCPP in "$CXX -E" "/lib/cpp"
8724     do
8725       ac_preproc_ok=false
8726 for ac_cxx_preproc_warn_flag in '' yes
8727 do
8728   # Use a header file that comes with gcc, so configuring glibc
8729   # with a fresh cross-compiler works.
8730   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8731   # <limits.h> exists even on freestanding compilers.
8732   # On the NeXT, cc -E runs the code through the compiler's parser,
8733   # not just through cpp. "Syntax error" is here to catch this case.
8734   cat >conftest.$ac_ext <<_ACEOF
8735 /* confdefs.h.  */
8736 _ACEOF
8737 cat confdefs.h >>conftest.$ac_ext
8738 cat >>conftest.$ac_ext <<_ACEOF
8739 /* end confdefs.h.  */
8740 #ifdef __STDC__
8741 # include <limits.h>
8742 #else
8743 # include <assert.h>
8744 #endif
8745                      Syntax error
8746 _ACEOF
8747 if { (ac_try="$ac_cpp conftest.$ac_ext"
8748 case "(($ac_try" in
8749   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8750   *) ac_try_echo=$ac_try;;
8751 esac
8752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8753   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8754   ac_status=$?
8755   grep -v '^ *+' conftest.er1 >conftest.err
8756   rm -f conftest.er1
8757   cat conftest.err >&5
8758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8759   (exit $ac_status); } >/dev/null && {
8760          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8761          test ! -s conftest.err
8762        }; then
8763   :
8764 else
8765   echo "$as_me: failed program was:" >&5
8766 sed 's/^/| /' conftest.$ac_ext >&5
8767
8768   # Broken: fails on valid input.
8769 continue
8770 fi
8771
8772 rm -f conftest.err conftest.$ac_ext
8773
8774   # OK, works on sane cases.  Now check whether nonexistent headers
8775   # can be detected and how.
8776   cat >conftest.$ac_ext <<_ACEOF
8777 /* confdefs.h.  */
8778 _ACEOF
8779 cat confdefs.h >>conftest.$ac_ext
8780 cat >>conftest.$ac_ext <<_ACEOF
8781 /* end confdefs.h.  */
8782 #include <ac_nonexistent.h>
8783 _ACEOF
8784 if { (ac_try="$ac_cpp conftest.$ac_ext"
8785 case "(($ac_try" in
8786   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8787   *) ac_try_echo=$ac_try;;
8788 esac
8789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8790   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8791   ac_status=$?
8792   grep -v '^ *+' conftest.er1 >conftest.err
8793   rm -f conftest.er1
8794   cat conftest.err >&5
8795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8796   (exit $ac_status); } >/dev/null && {
8797          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8798          test ! -s conftest.err
8799        }; then
8800   # Broken: success on invalid input.
8801 continue
8802 else
8803   echo "$as_me: failed program was:" >&5
8804 sed 's/^/| /' conftest.$ac_ext >&5
8805
8806   # Passes both tests.
8807 ac_preproc_ok=:
8808 break
8809 fi
8810
8811 rm -f conftest.err conftest.$ac_ext
8812
8813 done
8814 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8815 rm -f conftest.err conftest.$ac_ext
8816 if $ac_preproc_ok; then
8817   break
8818 fi
8819
8820     done
8821     ac_cv_prog_CXXCPP=$CXXCPP
8822
8823 fi
8824   CXXCPP=$ac_cv_prog_CXXCPP
8825 else
8826   ac_cv_prog_CXXCPP=$CXXCPP
8827 fi
8828 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
8829 echo "${ECHO_T}$CXXCPP" >&6; }
8830 ac_preproc_ok=false
8831 for ac_cxx_preproc_warn_flag in '' yes
8832 do
8833   # Use a header file that comes with gcc, so configuring glibc
8834   # with a fresh cross-compiler works.
8835   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8836   # <limits.h> exists even on freestanding compilers.
8837   # On the NeXT, cc -E runs the code through the compiler's parser,
8838   # not just through cpp. "Syntax error" is here to catch this case.
8839   cat >conftest.$ac_ext <<_ACEOF
8840 /* confdefs.h.  */
8841 _ACEOF
8842 cat confdefs.h >>conftest.$ac_ext
8843 cat >>conftest.$ac_ext <<_ACEOF
8844 /* end confdefs.h.  */
8845 #ifdef __STDC__
8846 # include <limits.h>
8847 #else
8848 # include <assert.h>
8849 #endif
8850                      Syntax error
8851 _ACEOF
8852 if { (ac_try="$ac_cpp conftest.$ac_ext"
8853 case "(($ac_try" in
8854   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8855   *) ac_try_echo=$ac_try;;
8856 esac
8857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8858   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8859   ac_status=$?
8860   grep -v '^ *+' conftest.er1 >conftest.err
8861   rm -f conftest.er1
8862   cat conftest.err >&5
8863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8864   (exit $ac_status); } >/dev/null && {
8865          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8866          test ! -s conftest.err
8867        }; then
8868   :
8869 else
8870   echo "$as_me: failed program was:" >&5
8871 sed 's/^/| /' conftest.$ac_ext >&5
8872
8873   # Broken: fails on valid input.
8874 continue
8875 fi
8876
8877 rm -f conftest.err conftest.$ac_ext
8878
8879   # OK, works on sane cases.  Now check whether nonexistent headers
8880   # can be detected and how.
8881   cat >conftest.$ac_ext <<_ACEOF
8882 /* confdefs.h.  */
8883 _ACEOF
8884 cat confdefs.h >>conftest.$ac_ext
8885 cat >>conftest.$ac_ext <<_ACEOF
8886 /* end confdefs.h.  */
8887 #include <ac_nonexistent.h>
8888 _ACEOF
8889 if { (ac_try="$ac_cpp conftest.$ac_ext"
8890 case "(($ac_try" in
8891   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8892   *) ac_try_echo=$ac_try;;
8893 esac
8894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8895   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8896   ac_status=$?
8897   grep -v '^ *+' conftest.er1 >conftest.err
8898   rm -f conftest.er1
8899   cat conftest.err >&5
8900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8901   (exit $ac_status); } >/dev/null && {
8902          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8903          test ! -s conftest.err
8904        }; then
8905   # Broken: success on invalid input.
8906 continue
8907 else
8908   echo "$as_me: failed program was:" >&5
8909 sed 's/^/| /' conftest.$ac_ext >&5
8910
8911   # Passes both tests.
8912 ac_preproc_ok=:
8913 break
8914 fi
8915
8916 rm -f conftest.err conftest.$ac_ext
8917
8918 done
8919 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8920 rm -f conftest.err conftest.$ac_ext
8921 if $ac_preproc_ok; then
8922   :
8923 else
8924   _lt_caught_CXX_error=yes
8925 fi
8926
8927 ac_ext=c
8928 ac_cpp='$CPP $CPPFLAGS'
8929 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8930 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8931 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8932
8933 else
8934   _lt_caught_CXX_error=yes
8935 fi
8936
8937
8938
8939
8940
8941 # Set options
8942 # Check whether --enable-shared was given.
8943 if test "${enable_shared+set}" = set; then
8944   enableval=$enable_shared; p=${PACKAGE-default}
8945     case $enableval in
8946     yes) enable_shared=yes ;;
8947     no) enable_shared=no ;;
8948     *)
8949       enable_shared=no
8950       # Look at the argument we got.  We use all the common list separators.
8951       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8952       for pkg in $enableval; do
8953         IFS="$lt_save_ifs"
8954         if test "X$pkg" = "X$p"; then
8955           enable_shared=yes
8956         fi
8957       done
8958       IFS="$lt_save_ifs"
8959       ;;
8960     esac
8961 else
8962   enable_shared=yes
8963 fi
8964
8965
8966
8967
8968
8969
8970
8971 # Check whether --enable-static was given.
8972 if test "${enable_static+set}" = set; then
8973   enableval=$enable_static; p=${PACKAGE-default}
8974     case $enableval in
8975     yes) enable_static=yes ;;
8976     no) enable_static=no ;;
8977     *)
8978      enable_static=no
8979       # Look at the argument we got.  We use all the common list separators.
8980       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8981       for pkg in $enableval; do
8982         IFS="$lt_save_ifs"
8983         if test "X$pkg" = "X$p"; then
8984           enable_static=yes
8985         fi
8986       done
8987       IFS="$lt_save_ifs"
8988       ;;
8989     esac
8990 else
8991   enable_static=no
8992 fi
8993
8994
8995
8996
8997
8998
8999
9000
9001
9002
9003         enable_dlopen=no
9004
9005
9006   enable_win32_dll=no
9007
9008
9009
9010
9011
9012 # Check whether --with-pic was given.
9013 if test "${with_pic+set}" = set; then
9014   withval=$with_pic; pic_mode="$withval"
9015 else
9016   pic_mode=default
9017 fi
9018
9019
9020 test -z "$pic_mode" && pic_mode=default
9021
9022
9023
9024
9025
9026
9027
9028   # Check whether --enable-fast-install was given.
9029 if test "${enable_fast_install+set}" = set; then
9030   enableval=$enable_fast_install; p=${PACKAGE-default}
9031     case $enableval in
9032     yes) enable_fast_install=yes ;;
9033     no) enable_fast_install=no ;;
9034     *)
9035       enable_fast_install=no
9036       # Look at the argument we got.  We use all the common list separators.
9037       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9038       for pkg in $enableval; do
9039         IFS="$lt_save_ifs"
9040         if test "X$pkg" = "X$p"; then
9041           enable_fast_install=yes
9042         fi
9043       done
9044       IFS="$lt_save_ifs"
9045       ;;
9046     esac
9047 else
9048   enable_fast_install=yes
9049 fi
9050
9051
9052
9053
9054
9055
9056
9057
9058
9059
9060
9061 # This can be used to rebuild libtool when needed
9062 LIBTOOL_DEPS="$ltmain"
9063
9064 # Always use our own libtool.
9065 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9066
9067
9068
9069
9070
9071
9072
9073
9074
9075
9076
9077
9078
9079
9080
9081
9082
9083
9084
9085
9086
9087
9088
9089
9090
9091 test -z "$LN_S" && LN_S="ln -s"
9092
9093
9094
9095
9096
9097
9098
9099
9100
9101
9102
9103
9104
9105
9106 if test -n "${ZSH_VERSION+set}" ; then
9107    setopt NO_GLOB_SUBST
9108 fi
9109
9110 { echo "$as_me:$LINENO: checking for objdir" >&5
9111 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9112 if test "${lt_cv_objdir+set}" = set; then
9113   echo $ECHO_N "(cached) $ECHO_C" >&6
9114 else
9115   rm -f .libs 2>/dev/null
9116 mkdir .libs 2>/dev/null
9117 if test -d .libs; then
9118   lt_cv_objdir=.libs
9119 else
9120   # MS-DOS does not allow filenames that begin with a dot.
9121   lt_cv_objdir=_libs
9122 fi
9123 rmdir .libs 2>/dev/null
9124 fi
9125 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
9126 echo "${ECHO_T}$lt_cv_objdir" >&6; }
9127 objdir=$lt_cv_objdir
9128
9129
9130
9131
9132
9133 cat >>confdefs.h <<_ACEOF
9134 #define LT_OBJDIR "$lt_cv_objdir/"
9135 _ACEOF
9136
9137
9138
9139
9140
9141
9142
9143
9144
9145
9146
9147
9148
9149
9150
9151
9152
9153 case $host_os in
9154 aix3*)
9155   # AIX sometimes has problems with the GCC collect2 program.  For some
9156   # reason, if we set the COLLECT_NAMES environment variable, the problems
9157   # vanish in a puff of smoke.
9158   if test "X${COLLECT_NAMES+set}" != Xset; then
9159     COLLECT_NAMES=
9160     export COLLECT_NAMES
9161   fi
9162   ;;
9163 esac
9164
9165 # Sed substitution that helps us do robust quoting.  It backslashifies
9166 # metacharacters that are still active within double-quoted strings.
9167 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
9168
9169 # Same as above, but do not quote variable references.
9170 double_quote_subst='s/\(["`\\]\)/\\\1/g'
9171
9172 # Sed substitution to delay expansion of an escaped shell variable in a
9173 # double_quote_subst'ed string.
9174 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9175
9176 # Sed substitution to delay expansion of an escaped single quote.
9177 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
9178
9179 # Sed substitution to avoid accidental globbing in evaled expressions
9180 no_glob_subst='s/\*/\\\*/g'
9181
9182 # Global variables:
9183 ofile=libtool
9184 can_build_shared=yes
9185
9186 # All known linkers require a `.a' archive for static linking (except MSVC,
9187 # which needs '.lib').
9188 libext=a
9189
9190 with_gnu_ld="$lt_cv_prog_gnu_ld"
9191
9192 old_CC="$CC"
9193 old_CFLAGS="$CFLAGS"
9194
9195 # Set sane defaults for various variables
9196 test -z "$CC" && CC=cc
9197 test -z "$LTCC" && LTCC=$CC
9198 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9199 test -z "$LD" && LD=ld
9200 test -z "$ac_objext" && ac_objext=o
9201
9202 for cc_temp in $compiler""; do
9203   case $cc_temp in
9204     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9205     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9206     \-*) ;;
9207     *) break;;
9208   esac
9209 done
9210 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9211
9212
9213 # Only perform the check for file, if the check method requires it
9214 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9215 case $deplibs_check_method in
9216 file_magic*)
9217   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9218     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
9219 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
9220 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9221   echo $ECHO_N "(cached) $ECHO_C" >&6
9222 else
9223   case $MAGIC_CMD in
9224 [\\/*] |  ?:[\\/]*)
9225   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9226   ;;
9227 *)
9228   lt_save_MAGIC_CMD="$MAGIC_CMD"
9229   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9230   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9231   for ac_dir in $ac_dummy; do
9232     IFS="$lt_save_ifs"
9233     test -z "$ac_dir" && ac_dir=.
9234     if test -f $ac_dir/${ac_tool_prefix}file; then
9235       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9236       if test -n "$file_magic_test_file"; then
9237         case $deplibs_check_method in
9238         "file_magic "*)
9239           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9240           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9241           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9242             $EGREP "$file_magic_regex" > /dev/null; then
9243             :
9244           else
9245             cat <<_LT_EOF 1>&2
9246
9247 *** Warning: the command libtool uses to detect shared libraries,
9248 *** $file_magic_cmd, produces output that libtool cannot recognize.
9249 *** The result is that libtool may fail to recognize shared libraries
9250 *** as such.  This will affect the creation of libtool libraries that
9251 *** depend on shared libraries, but programs linked with such libtool
9252 *** libraries will work regardless of this problem.  Nevertheless, you
9253 *** may want to report the problem to your system manager and/or to
9254 *** bug-libtool@gnu.org
9255
9256 _LT_EOF
9257           fi ;;
9258         esac
9259       fi
9260       break
9261     fi
9262   done
9263   IFS="$lt_save_ifs"
9264   MAGIC_CMD="$lt_save_MAGIC_CMD"
9265   ;;
9266 esac
9267 fi
9268
9269 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9270 if test -n "$MAGIC_CMD"; then
9271   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9272 echo "${ECHO_T}$MAGIC_CMD" >&6; }
9273 else
9274   { echo "$as_me:$LINENO: result: no" >&5
9275 echo "${ECHO_T}no" >&6; }
9276 fi
9277
9278
9279
9280
9281
9282 if test -z "$lt_cv_path_MAGIC_CMD"; then
9283   if test -n "$ac_tool_prefix"; then
9284     { echo "$as_me:$LINENO: checking for file" >&5
9285 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
9286 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9287   echo $ECHO_N "(cached) $ECHO_C" >&6
9288 else
9289   case $MAGIC_CMD in
9290 [\\/*] |  ?:[\\/]*)
9291   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9292   ;;
9293 *)
9294   lt_save_MAGIC_CMD="$MAGIC_CMD"
9295   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9296   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9297   for ac_dir in $ac_dummy; do
9298     IFS="$lt_save_ifs"
9299     test -z "$ac_dir" && ac_dir=.
9300     if test -f $ac_dir/file; then
9301       lt_cv_path_MAGIC_CMD="$ac_dir/file"
9302       if test -n "$file_magic_test_file"; then
9303         case $deplibs_check_method in
9304         "file_magic "*)
9305           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9306           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9307           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9308             $EGREP "$file_magic_regex" > /dev/null; then
9309             :
9310           else
9311             cat <<_LT_EOF 1>&2
9312
9313 *** Warning: the command libtool uses to detect shared libraries,
9314 *** $file_magic_cmd, produces output that libtool cannot recognize.
9315 *** The result is that libtool may fail to recognize shared libraries
9316 *** as such.  This will affect the creation of libtool libraries that
9317 *** depend on shared libraries, but programs linked with such libtool
9318 *** libraries will work regardless of this problem.  Nevertheless, you
9319 *** may want to report the problem to your system manager and/or to
9320 *** bug-libtool@gnu.org
9321
9322 _LT_EOF
9323           fi ;;
9324         esac
9325       fi
9326       break
9327     fi
9328   done
9329   IFS="$lt_save_ifs"
9330   MAGIC_CMD="$lt_save_MAGIC_CMD"
9331   ;;
9332 esac
9333 fi
9334
9335 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9336 if test -n "$MAGIC_CMD"; then
9337   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9338 echo "${ECHO_T}$MAGIC_CMD" >&6; }
9339 else
9340   { echo "$as_me:$LINENO: result: no" >&5
9341 echo "${ECHO_T}no" >&6; }
9342 fi
9343
9344
9345   else
9346     MAGIC_CMD=:
9347   fi
9348 fi
9349
9350   fi
9351   ;;
9352 esac
9353
9354 # Use C for the default configuration in the libtool script
9355
9356 lt_save_CC="$CC"
9357 ac_ext=c
9358 ac_cpp='$CPP $CPPFLAGS'
9359 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9360 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9361 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9362
9363
9364 # Source file extension for C test sources.
9365 ac_ext=c
9366
9367 # Object file extension for compiled C test sources.
9368 objext=o
9369 objext=$objext
9370
9371 # Code to be used in simple compile tests
9372 lt_simple_compile_test_code="int some_variable = 0;"
9373
9374 # Code to be used in simple link tests
9375 lt_simple_link_test_code='int main(){return(0);}'
9376
9377
9378
9379
9380
9381
9382
9383 # If no C compiler was specified, use CC.
9384 LTCC=${LTCC-"$CC"}
9385
9386 # If no C compiler flags were specified, use CFLAGS.
9387 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9388
9389 # Allow CC to be a program name with arguments.
9390 compiler=$CC
9391
9392 # Save the default compiler, since it gets overwritten when the other
9393 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9394 compiler_DEFAULT=$CC
9395
9396 # save warnings/boilerplate of simple test code
9397 ac_outfile=conftest.$ac_objext
9398 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9399 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9400 _lt_compiler_boilerplate=`cat conftest.err`
9401 $RM conftest*
9402
9403 ac_outfile=conftest.$ac_objext
9404 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9405 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9406 _lt_linker_boilerplate=`cat conftest.err`
9407 $RM -r conftest*
9408
9409
9410 ## CAVEAT EMPTOR:
9411 ## There is no encapsulation within the following macros, do not change
9412 ## the running order or otherwise move them around unless you know exactly
9413 ## what you are doing...
9414 if test -n "$compiler"; then
9415
9416 lt_prog_compiler_no_builtin_flag=
9417
9418 if test "$GCC" = yes; then
9419   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
9420
9421   { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9422 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
9423 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
9424   echo $ECHO_N "(cached) $ECHO_C" >&6
9425 else
9426   lt_cv_prog_compiler_rtti_exceptions=no
9427    ac_outfile=conftest.$ac_objext
9428    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9429    lt_compiler_flag="-fno-rtti -fno-exceptions"
9430    # Insert the option either (1) after the last *FLAGS variable, or
9431    # (2) before a word containing "conftest.", or (3) at the end.
9432    # Note that $ac_compile itself does not contain backslashes and begins
9433    # with a dollar sign (not a hyphen), so the echo should work correctly.
9434    # The option is referenced via a variable to avoid confusing sed.
9435    lt_compile=`echo "$ac_compile" | $SED \
9436    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9437    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9438    -e 's:$: $lt_compiler_flag:'`
9439    (eval echo "\"\$as_me:9439: $lt_compile\"" >&5)
9440    (eval "$lt_compile" 2>conftest.err)
9441    ac_status=$?
9442    cat conftest.err >&5
9443    echo "$as_me:9443: \$? = $ac_status" >&5
9444    if (exit $ac_status) && test -s "$ac_outfile"; then
9445      # The compiler can only warn and ignore the option if not recognized
9446      # So say no if there are warnings other than the usual output.
9447      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9448      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9449      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9450        lt_cv_prog_compiler_rtti_exceptions=yes
9451      fi
9452    fi
9453    $RM conftest*
9454
9455 fi
9456 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9457 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9458
9459 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9460     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9461 else
9462     :
9463 fi
9464
9465 fi
9466
9467
9468
9469
9470
9471
9472   lt_prog_compiler_wl=
9473 lt_prog_compiler_pic=
9474 lt_prog_compiler_static=
9475
9476 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
9477 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
9478
9479   if test "$GCC" = yes; then
9480     lt_prog_compiler_wl='-Wl,'
9481     lt_prog_compiler_static='-static'
9482
9483     case $host_os in
9484       aix*)
9485       # All AIX code is PIC.
9486       if test "$host_cpu" = ia64; then
9487         # AIX 5 now supports IA64 processor
9488         lt_prog_compiler_static='-Bstatic'
9489       fi
9490       ;;
9491
9492     amigaos*)
9493       case $host_cpu in
9494       powerpc)
9495             # see comment about AmigaOS4 .so support
9496             lt_prog_compiler_pic='-fPIC'
9497         ;;
9498       m68k)
9499             # FIXME: we need at least 68020 code to build shared libraries, but
9500             # adding the `-m68020' flag to GCC prevents building anything better,
9501             # like `-m68040'.
9502             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9503         ;;
9504       esac
9505       ;;
9506
9507     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9508       # PIC is the default for these OSes.
9509       ;;
9510
9511     mingw* | cygwin* | pw32* | os2* | cegcc*)
9512       # This hack is so that the source file can tell whether it is being
9513       # built for inclusion in a dll (and should export symbols for example).
9514       # Although the cygwin gcc ignores -fPIC, still need this for old-style
9515       # (--disable-auto-import) libraries
9516       lt_prog_compiler_pic='-DDLL_EXPORT'
9517       ;;
9518
9519     darwin* | rhapsody*)
9520       # PIC is the default on this platform
9521       # Common symbols not allowed in MH_DYLIB files
9522       lt_prog_compiler_pic='-fno-common'
9523       ;;
9524
9525     hpux*)
9526       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9527       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9528       # sets the default TLS model and affects inlining.
9529       case $host_cpu in
9530       hppa*64*)
9531         # +Z the default
9532         ;;
9533       *)
9534         lt_prog_compiler_pic='-fPIC'
9535         ;;
9536       esac
9537       ;;
9538
9539     interix[3-9]*)
9540       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9541       # Instead, we relocate shared libraries at runtime.
9542       ;;
9543
9544     msdosdjgpp*)
9545       # Just because we use GCC doesn't mean we suddenly get shared libraries
9546       # on systems that don't support them.
9547       lt_prog_compiler_can_build_shared=no
9548       enable_shared=no
9549       ;;
9550
9551     *nto* | *qnx*)
9552       # QNX uses GNU C++, but need to define -shared option too, otherwise
9553       # it will coredump.
9554       lt_prog_compiler_pic='-fPIC -shared'
9555       ;;
9556
9557     sysv4*MP*)
9558       if test -d /usr/nec; then
9559         lt_prog_compiler_pic=-Kconform_pic
9560       fi
9561       ;;
9562
9563     *)
9564       lt_prog_compiler_pic='-fPIC'
9565       ;;
9566     esac
9567   else
9568     # PORTME Check for flag to pass linker flags through the system compiler.
9569     case $host_os in
9570     aix*)
9571       lt_prog_compiler_wl='-Wl,'
9572       if test "$host_cpu" = ia64; then
9573         # AIX 5 now supports IA64 processor
9574         lt_prog_compiler_static='-Bstatic'
9575       else
9576         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9577       fi
9578       ;;
9579
9580     mingw* | cygwin* | pw32* | os2* | cegcc*)
9581       # This hack is so that the source file can tell whether it is being
9582       # built for inclusion in a dll (and should export symbols for example).
9583       lt_prog_compiler_pic='-DDLL_EXPORT'
9584       ;;
9585
9586     hpux9* | hpux10* | hpux11*)
9587       lt_prog_compiler_wl='-Wl,'
9588       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9589       # not for PA HP-UX.
9590       case $host_cpu in
9591       hppa*64*|ia64*)
9592         # +Z the default
9593         ;;
9594       *)
9595         lt_prog_compiler_pic='+Z'
9596         ;;
9597       esac
9598       # Is there a better lt_prog_compiler_static that works with the bundled CC?
9599       lt_prog_compiler_static='${wl}-a ${wl}archive'
9600       ;;
9601
9602     irix5* | irix6* | nonstopux*)
9603       lt_prog_compiler_wl='-Wl,'
9604       # PIC (with -KPIC) is the default.
9605       lt_prog_compiler_static='-non_shared'
9606       ;;
9607
9608     linux* | k*bsd*-gnu)
9609       case $cc_basename in
9610       # old Intel for x86_64 which still supported -KPIC.
9611       ecc*)
9612         lt_prog_compiler_wl='-Wl,'
9613         lt_prog_compiler_pic='-KPIC'
9614         lt_prog_compiler_static='-static'
9615         ;;
9616       # icc used to be incompatible with GCC.
9617       # ICC 10 doesn't accept -KPIC any more.
9618       icc* | ifort*)
9619         lt_prog_compiler_wl='-Wl,'
9620         lt_prog_compiler_pic='-fPIC'
9621         lt_prog_compiler_static='-static'
9622         ;;
9623       # Lahey Fortran 8.1.
9624       lf95*)
9625         lt_prog_compiler_wl='-Wl,'
9626         lt_prog_compiler_pic='--shared'
9627         lt_prog_compiler_static='--static'
9628         ;;
9629       pgcc* | pgf77* | pgf90* | pgf95*)
9630         # Portland Group compilers (*not* the Pentium gcc compiler,
9631         # which looks to be a dead project)
9632         lt_prog_compiler_wl='-Wl,'
9633         lt_prog_compiler_pic='-fpic'
9634         lt_prog_compiler_static='-Bstatic'
9635         ;;
9636       ccc*)
9637         lt_prog_compiler_wl='-Wl,'
9638         # All Alpha code is PIC.
9639         lt_prog_compiler_static='-non_shared'
9640         ;;
9641       xl*)
9642         # IBM XL C 8.0/Fortran 10.1 on PPC
9643         lt_prog_compiler_wl='-Wl,'
9644         lt_prog_compiler_pic='-qpic'
9645         lt_prog_compiler_static='-qstaticlink'
9646         ;;
9647       *)
9648         case `$CC -V 2>&1 | sed 5q` in
9649         *Sun\ C*)
9650           # Sun C 5.9
9651           lt_prog_compiler_pic='-KPIC'
9652           lt_prog_compiler_static='-Bstatic'
9653           lt_prog_compiler_wl='-Wl,'
9654           ;;
9655         *Sun\ F*)
9656           # Sun Fortran 8.3 passes all unrecognized flags to the linker
9657           lt_prog_compiler_pic='-KPIC'
9658           lt_prog_compiler_static='-Bstatic'
9659           lt_prog_compiler_wl=''
9660           ;;
9661         esac
9662         ;;
9663       esac
9664       ;;
9665
9666     newsos6)
9667       lt_prog_compiler_pic='-KPIC'
9668       lt_prog_compiler_static='-Bstatic'
9669       ;;
9670
9671     *nto* | *qnx*)
9672       # QNX uses GNU C++, but need to define -shared option too, otherwise
9673       # it will coredump.
9674       lt_prog_compiler_pic='-fPIC -shared'
9675       ;;
9676
9677     osf3* | osf4* | osf5*)
9678       lt_prog_compiler_wl='-Wl,'
9679       # All OSF/1 code is PIC.
9680       lt_prog_compiler_static='-non_shared'
9681       ;;
9682
9683     rdos*)
9684       lt_prog_compiler_static='-non_shared'
9685       ;;
9686
9687     solaris*)
9688       lt_prog_compiler_pic='-KPIC'
9689       lt_prog_compiler_static='-Bstatic'
9690       case $cc_basename in
9691       f77* | f90* | f95*)
9692         lt_prog_compiler_wl='-Qoption ld ';;
9693       *)
9694         lt_prog_compiler_wl='-Wl,';;
9695       esac
9696       ;;
9697
9698     sunos4*)
9699       lt_prog_compiler_wl='-Qoption ld '
9700       lt_prog_compiler_pic='-PIC'
9701       lt_prog_compiler_static='-Bstatic'
9702       ;;
9703
9704     sysv4 | sysv4.2uw2* | sysv4.3*)
9705       lt_prog_compiler_wl='-Wl,'
9706       lt_prog_compiler_pic='-KPIC'
9707       lt_prog_compiler_static='-Bstatic'
9708       ;;
9709
9710     sysv4*MP*)
9711       if test -d /usr/nec ;then
9712         lt_prog_compiler_pic='-Kconform_pic'
9713         lt_prog_compiler_static='-Bstatic'
9714       fi
9715       ;;
9716
9717     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9718       lt_prog_compiler_wl='-Wl,'
9719       lt_prog_compiler_pic='-KPIC'
9720       lt_prog_compiler_static='-Bstatic'
9721       ;;
9722
9723     unicos*)
9724       lt_prog_compiler_wl='-Wl,'
9725       lt_prog_compiler_can_build_shared=no
9726       ;;
9727
9728     uts4*)
9729       lt_prog_compiler_pic='-pic'
9730       lt_prog_compiler_static='-Bstatic'
9731       ;;
9732
9733     *)
9734       lt_prog_compiler_can_build_shared=no
9735       ;;
9736     esac
9737   fi
9738
9739 case $host_os in
9740   # For platforms which do not support PIC, -DPIC is meaningless:
9741   *djgpp*)
9742     lt_prog_compiler_pic=
9743     ;;
9744   *)
9745     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9746     ;;
9747 esac
9748 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
9749 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
9750
9751
9752
9753
9754
9755
9756 #
9757 # Check to make sure the PIC flag actually works.
9758 #
9759 if test -n "$lt_prog_compiler_pic"; then
9760   { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9761 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
9762 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
9763   echo $ECHO_N "(cached) $ECHO_C" >&6
9764 else
9765   lt_cv_prog_compiler_pic_works=no
9766    ac_outfile=conftest.$ac_objext
9767    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9768    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9769    # Insert the option either (1) after the last *FLAGS variable, or
9770    # (2) before a word containing "conftest.", or (3) at the end.
9771    # Note that $ac_compile itself does not contain backslashes and begins
9772    # with a dollar sign (not a hyphen), so the echo should work correctly.
9773    # The option is referenced via a variable to avoid confusing sed.
9774    lt_compile=`echo "$ac_compile" | $SED \
9775    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9776    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9777    -e 's:$: $lt_compiler_flag:'`
9778    (eval echo "\"\$as_me:9778: $lt_compile\"" >&5)
9779    (eval "$lt_compile" 2>conftest.err)
9780    ac_status=$?
9781    cat conftest.err >&5
9782    echo "$as_me:9782: \$? = $ac_status" >&5
9783    if (exit $ac_status) && test -s "$ac_outfile"; then
9784      # The compiler can only warn and ignore the option if not recognized
9785      # So say no if there are warnings other than the usual output.
9786      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9787      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9788      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9789        lt_cv_prog_compiler_pic_works=yes
9790      fi
9791    fi
9792    $RM conftest*
9793
9794 fi
9795 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
9796 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
9797
9798 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9799     case $lt_prog_compiler_pic in
9800      "" | " "*) ;;
9801      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9802      esac
9803 else
9804     lt_prog_compiler_pic=
9805      lt_prog_compiler_can_build_shared=no
9806 fi
9807
9808 fi
9809
9810
9811
9812
9813
9814
9815 #
9816 # Check to make sure the static flag actually works.
9817 #
9818 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9819 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9820 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
9821 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
9822   echo $ECHO_N "(cached) $ECHO_C" >&6
9823 else
9824   lt_cv_prog_compiler_static_works=no
9825    save_LDFLAGS="$LDFLAGS"
9826    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9827    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9828    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9829      # The linker can only warn and ignore the option if not recognized
9830      # So say no if there are warnings
9831      if test -s conftest.err; then
9832        # Append any errors to the config.log.
9833        cat conftest.err 1>&5
9834        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9835        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9836        if diff conftest.exp conftest.er2 >/dev/null; then
9837          lt_cv_prog_compiler_static_works=yes
9838        fi
9839      else
9840        lt_cv_prog_compiler_static_works=yes
9841      fi
9842    fi
9843    $RM -r conftest*
9844    LDFLAGS="$save_LDFLAGS"
9845
9846 fi
9847 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
9848 echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
9849
9850 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9851     :
9852 else
9853     lt_prog_compiler_static=
9854 fi
9855
9856
9857
9858
9859
9860
9861
9862   { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9863 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
9864 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9865   echo $ECHO_N "(cached) $ECHO_C" >&6
9866 else
9867   lt_cv_prog_compiler_c_o=no
9868    $RM -r conftest 2>/dev/null
9869    mkdir conftest
9870    cd conftest
9871    mkdir out
9872    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9873
9874    lt_compiler_flag="-o out/conftest2.$ac_objext"
9875    # Insert the option either (1) after the last *FLAGS variable, or
9876    # (2) before a word containing "conftest.", or (3) at the end.
9877    # Note that $ac_compile itself does not contain backslashes and begins
9878    # with a dollar sign (not a hyphen), so the echo should work correctly.
9879    lt_compile=`echo "$ac_compile" | $SED \
9880    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9881    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9882    -e 's:$: $lt_compiler_flag:'`
9883    (eval echo "\"\$as_me:9883: $lt_compile\"" >&5)
9884    (eval "$lt_compile" 2>out/conftest.err)
9885    ac_status=$?
9886    cat out/conftest.err >&5
9887    echo "$as_me:9887: \$? = $ac_status" >&5
9888    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9889    then
9890      # The compiler can only warn and ignore the option if not recognized
9891      # So say no if there are warnings
9892      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9893      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9894      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9895        lt_cv_prog_compiler_c_o=yes
9896      fi
9897    fi
9898    chmod u+w . 2>&5
9899    $RM conftest*
9900    # SGI C++ compiler will create directory out/ii_files/ for
9901    # template instantiation
9902    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9903    $RM out/* && rmdir out
9904    cd ..
9905    $RM -r conftest
9906    $RM conftest*
9907
9908 fi
9909 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9910 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
9911
9912
9913
9914
9915
9916
9917   { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9918 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
9919 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9920   echo $ECHO_N "(cached) $ECHO_C" >&6
9921 else
9922   lt_cv_prog_compiler_c_o=no
9923    $RM -r conftest 2>/dev/null
9924    mkdir conftest
9925    cd conftest
9926    mkdir out
9927    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9928
9929    lt_compiler_flag="-o out/conftest2.$ac_objext"
9930    # Insert the option either (1) after the last *FLAGS variable, or
9931    # (2) before a word containing "conftest.", or (3) at the end.
9932    # Note that $ac_compile itself does not contain backslashes and begins
9933    # with a dollar sign (not a hyphen), so the echo should work correctly.
9934    lt_compile=`echo "$ac_compile" | $SED \
9935    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9936    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9937    -e 's:$: $lt_compiler_flag:'`
9938    (eval echo "\"\$as_me:9938: $lt_compile\"" >&5)
9939    (eval "$lt_compile" 2>out/conftest.err)
9940    ac_status=$?
9941    cat out/conftest.err >&5
9942    echo "$as_me:9942: \$? = $ac_status" >&5
9943    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9944    then
9945      # The compiler can only warn and ignore the option if not recognized
9946      # So say no if there are warnings
9947      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9948      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9949      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9950        lt_cv_prog_compiler_c_o=yes
9951      fi
9952    fi
9953    chmod u+w . 2>&5
9954    $RM conftest*
9955    # SGI C++ compiler will create directory out/ii_files/ for
9956    # template instantiation
9957    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9958    $RM out/* && rmdir out
9959    cd ..
9960    $RM -r conftest
9961    $RM conftest*
9962
9963 fi
9964 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9965 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
9966
9967
9968
9969
9970 hard_links="nottested"
9971 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9972   # do not overwrite the value of need_locks provided by the user
9973   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
9974 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
9975   hard_links=yes
9976   $RM conftest*
9977   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9978   touch conftest.a
9979   ln conftest.a conftest.b 2>&5 || hard_links=no
9980   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9981   { echo "$as_me:$LINENO: result: $hard_links" >&5
9982 echo "${ECHO_T}$hard_links" >&6; }
9983   if test "$hard_links" = no; then
9984     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9985 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9986     need_locks=warn
9987   fi
9988 else
9989   need_locks=no
9990 fi
9991
9992
9993
9994
9995
9996
9997   { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9998 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
9999
10000   runpath_var=
10001   allow_undefined_flag=
10002   always_export_symbols=no
10003   archive_cmds=
10004   archive_expsym_cmds=
10005   compiler_needs_object=no
10006   enable_shared_with_static_runtimes=no
10007   export_dynamic_flag_spec=
10008   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10009   hardcode_automatic=no
10010   hardcode_direct=no
10011   hardcode_direct_absolute=no
10012   hardcode_libdir_flag_spec=
10013   hardcode_libdir_flag_spec_ld=
10014   hardcode_libdir_separator=
10015   hardcode_minus_L=no
10016   hardcode_shlibpath_var=unsupported
10017   inherit_rpath=no
10018   link_all_deplibs=unknown
10019   module_cmds=
10020   module_expsym_cmds=
10021   old_archive_from_new_cmds=
10022   old_archive_from_expsyms_cmds=
10023   thread_safe_flag_spec=
10024   whole_archive_flag_spec=
10025   # include_expsyms should be a list of space-separated symbols to be *always*
10026   # included in the symbol list
10027   include_expsyms=
10028   # exclude_expsyms can be an extended regexp of symbols to exclude
10029   # it will be wrapped by ` (' and `)$', so one must not match beginning or
10030   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10031   # as well as any symbol that contains `d'.
10032   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10033   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10034   # platforms (ab)use it in PIC code, but their linkers get confused if
10035   # the symbol is explicitly referenced.  Since portable code cannot
10036   # rely on this symbol name, it's probably fine to never include it in
10037   # preloaded symbol tables.
10038   # Exclude shared library initialization/finalization symbols.
10039   extract_expsyms_cmds=
10040
10041   case $host_os in
10042   cygwin* | mingw* | pw32* | cegcc*)
10043     # FIXME: the MSVC++ port hasn't been tested in a loooong time
10044     # When not using gcc, we currently assume that we are using
10045     # Microsoft Visual C++.
10046     if test "$GCC" != yes; then
10047       with_gnu_ld=no
10048     fi
10049     ;;
10050   interix*)
10051     # we just hope/assume this is gcc and not c89 (= MSVC++)
10052     with_gnu_ld=yes
10053     ;;
10054   openbsd*)
10055     with_gnu_ld=no
10056     ;;
10057   esac
10058
10059   ld_shlibs=yes
10060   if test "$with_gnu_ld" = yes; then
10061     # If archive_cmds runs LD, not CC, wlarc should be empty
10062     wlarc='${wl}'
10063
10064     # Set some defaults for GNU ld with shared library support. These
10065     # are reset later if shared libraries are not supported. Putting them
10066     # here allows them to be overridden if necessary.
10067     runpath_var=LD_RUN_PATH
10068     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10069     export_dynamic_flag_spec='${wl}--export-dynamic'
10070     # ancient GNU ld didn't support --whole-archive et. al.
10071     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10072       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10073     else
10074       whole_archive_flag_spec=
10075     fi
10076     supports_anon_versioning=no
10077     case `$LD -v 2>&1` in
10078       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10079       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10080       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10081       *\ 2.11.*) ;; # other 2.11 versions
10082       *) supports_anon_versioning=yes ;;
10083     esac
10084
10085     # See if GNU ld supports shared libraries.
10086     case $host_os in
10087     aix[3-9]*)
10088       # On AIX/PPC, the GNU linker is very broken
10089       if test "$host_cpu" != ia64; then
10090         ld_shlibs=no
10091         cat <<_LT_EOF 1>&2
10092
10093 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
10094 *** to be unable to reliably create shared libraries on AIX.
10095 *** Therefore, libtool is disabling shared libraries support.  If you
10096 *** really care for shared libraries, you may want to modify your PATH
10097 *** so that a non-GNU linker is found, and then restart.
10098
10099 _LT_EOF
10100       fi
10101       ;;
10102
10103     amigaos*)
10104       case $host_cpu in
10105       powerpc)
10106             # see comment about AmigaOS4 .so support
10107             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10108             archive_expsym_cmds=''
10109         ;;
10110       m68k)
10111             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)'
10112             hardcode_libdir_flag_spec='-L$libdir'
10113             hardcode_minus_L=yes
10114         ;;
10115       esac
10116       ;;
10117
10118     beos*)
10119       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10120         allow_undefined_flag=unsupported
10121         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10122         # support --undefined.  This deserves some investigation.  FIXME
10123         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10124       else
10125         ld_shlibs=no
10126       fi
10127       ;;
10128
10129     cygwin* | mingw* | pw32* | cegcc*)
10130       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10131       # as there is no search path for DLLs.
10132       hardcode_libdir_flag_spec='-L$libdir'
10133       allow_undefined_flag=unsupported
10134       always_export_symbols=no
10135       enable_shared_with_static_runtimes=yes
10136       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10137
10138       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10139         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10140         # If the export-symbols file already is a .def file (1st line
10141         # is EXPORTS), use it as is; otherwise, prepend...
10142         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10143           cp $export_symbols $output_objdir/$soname.def;
10144         else
10145           echo EXPORTS > $output_objdir/$soname.def;
10146           cat $export_symbols >> $output_objdir/$soname.def;
10147         fi~
10148         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10149       else
10150         ld_shlibs=no
10151       fi
10152       ;;
10153
10154     interix[3-9]*)
10155       hardcode_direct=no
10156       hardcode_shlibpath_var=no
10157       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10158       export_dynamic_flag_spec='${wl}-E'
10159       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10160       # Instead, shared libraries are loaded at an image base (0x10000000 by
10161       # default) and relocated if they conflict, which is a slow very memory
10162       # consuming and fragmenting process.  To avoid this, we pick a random,
10163       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10164       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10165       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10166       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'
10167       ;;
10168
10169     gnu* | linux* | tpf* | k*bsd*-gnu)
10170       tmp_diet=no
10171       if test "$host_os" = linux-dietlibc; then
10172         case $cc_basename in
10173           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
10174         esac
10175       fi
10176       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10177          && test "$tmp_diet" = no
10178       then
10179         tmp_addflag=
10180         tmp_sharedflag='-shared'
10181         case $cc_basename,$host_cpu in
10182         pgcc*)                          # Portland Group C compiler
10183           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'
10184           tmp_addflag=' $pic_flag'
10185           ;;
10186         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
10187           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'
10188           tmp_addflag=' $pic_flag -Mnomain' ;;
10189         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
10190           tmp_addflag=' -i_dynamic' ;;
10191         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
10192           tmp_addflag=' -i_dynamic -nofor_main' ;;
10193         ifc* | ifort*)                  # Intel Fortran compiler
10194           tmp_addflag=' -nofor_main' ;;
10195         lf95*)                          # Lahey Fortran 8.1
10196           whole_archive_flag_spec=
10197           tmp_sharedflag='--shared' ;;
10198         xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
10199           tmp_sharedflag='-qmkshrobj'
10200           tmp_addflag= ;;
10201         esac
10202         case `$CC -V 2>&1 | sed 5q` in
10203         *Sun\ C*)                       # Sun C 5.9
10204           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'
10205           compiler_needs_object=yes
10206           tmp_sharedflag='-G' ;;
10207         *Sun\ F*)                       # Sun Fortran 8.3
10208           tmp_sharedflag='-G' ;;
10209         esac
10210         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10211
10212         if test "x$supports_anon_versioning" = xyes; then
10213           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10214             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10215             echo "local: *; };" >> $output_objdir/$libname.ver~
10216             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10217         fi
10218
10219         case $cc_basename in
10220         xlf*)
10221           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10222           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10223           hardcode_libdir_flag_spec=
10224           hardcode_libdir_flag_spec_ld='-rpath $libdir'
10225           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
10226           if test "x$supports_anon_versioning" = xyes; then
10227             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10228               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10229               echo "local: *; };" >> $output_objdir/$libname.ver~
10230               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10231           fi
10232           ;;
10233         esac
10234       else
10235         ld_shlibs=no
10236       fi
10237       ;;
10238
10239     netbsd*)
10240       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10241         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10242         wlarc=
10243       else
10244         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10245         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10246       fi
10247       ;;
10248
10249     solaris*)
10250       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10251         ld_shlibs=no
10252         cat <<_LT_EOF 1>&2
10253
10254 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10255 *** create shared libraries on Solaris systems.  Therefore, libtool
10256 *** is disabling shared libraries support.  We urge you to upgrade GNU
10257 *** binutils to release 2.9.1 or newer.  Another option is to modify
10258 *** your PATH or compiler configuration so that the native linker is
10259 *** used, and then restart.
10260
10261 _LT_EOF
10262       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10263         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10264         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10265       else
10266         ld_shlibs=no
10267       fi
10268       ;;
10269
10270     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10271       case `$LD -v 2>&1` in
10272         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10273         ld_shlibs=no
10274         cat <<_LT_EOF 1>&2
10275
10276 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10277 *** reliably create shared libraries on SCO systems.  Therefore, libtool
10278 *** is disabling shared libraries support.  We urge you to upgrade GNU
10279 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10280 *** your PATH or compiler configuration so that the native linker is
10281 *** used, and then restart.
10282
10283 _LT_EOF
10284         ;;
10285         *)
10286           # For security reasons, it is highly recommended that you always
10287           # use absolute paths for naming shared libraries, and exclude the
10288           # DT_RUNPATH tag from executables and libraries.  But doing so
10289           # requires that you compile everything twice, which is a pain.
10290           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10291             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10292             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10293             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10294           else
10295             ld_shlibs=no
10296           fi
10297         ;;
10298       esac
10299       ;;
10300
10301     sunos4*)
10302       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10303       wlarc=
10304       hardcode_direct=yes
10305       hardcode_shlibpath_var=no
10306       ;;
10307
10308     *)
10309       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10310         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10311         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10312       else
10313         ld_shlibs=no
10314       fi
10315       ;;
10316     esac
10317
10318     if test "$ld_shlibs" = no; then
10319       runpath_var=
10320       hardcode_libdir_flag_spec=
10321       export_dynamic_flag_spec=
10322       whole_archive_flag_spec=
10323     fi
10324   else
10325     # PORTME fill in a description of your system's linker (not GNU ld)
10326     case $host_os in
10327     aix3*)
10328       allow_undefined_flag=unsupported
10329       always_export_symbols=yes
10330       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'
10331       # Note: this linker hardcodes the directories in LIBPATH if there
10332       # are no directories specified by -L.
10333       hardcode_minus_L=yes
10334       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10335         # Neither direct hardcoding nor static linking is supported with a
10336         # broken collect2.
10337         hardcode_direct=unsupported
10338       fi
10339       ;;
10340
10341     aix[4-9]*)
10342       if test "$host_cpu" = ia64; then
10343         # On IA64, the linker does run time linking by default, so we don't
10344         # have to do anything special.
10345         aix_use_runtimelinking=no
10346         exp_sym_flag='-Bexport'
10347         no_entry_flag=""
10348       else
10349         # If we're using GNU nm, then we don't want the "-C" option.
10350         # -C means demangle to AIX nm, but means don't demangle with GNU nm
10351         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10352           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'
10353         else
10354           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'
10355         fi
10356         aix_use_runtimelinking=no
10357
10358         # Test if we are trying to use run time linking or normal
10359         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10360         # need to do runtime linking.
10361         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10362           for ld_flag in $LDFLAGS; do
10363           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10364             aix_use_runtimelinking=yes
10365             break
10366           fi
10367           done
10368           ;;
10369         esac
10370
10371         exp_sym_flag='-bexport'
10372         no_entry_flag='-bnoentry'
10373       fi
10374
10375       # When large executables or shared objects are built, AIX ld can
10376       # have problems creating the table of contents.  If linking a library
10377       # or program results in "error TOC overflow" add -mminimal-toc to
10378       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10379       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10380
10381       archive_cmds=''
10382       hardcode_direct=yes
10383       hardcode_direct_absolute=yes
10384       hardcode_libdir_separator=':'
10385       link_all_deplibs=yes
10386       file_list_spec='${wl}-f,'
10387
10388       if test "$GCC" = yes; then
10389         case $host_os in aix4.[012]|aix4.[012].*)
10390         # We only want to do this on AIX 4.2 and lower, the check
10391         # below for broken collect2 doesn't work under 4.3+
10392           collect2name=`${CC} -print-prog-name=collect2`
10393           if test -f "$collect2name" &&
10394            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10395           then
10396           # We have reworked collect2
10397           :
10398           else
10399           # We have old collect2
10400           hardcode_direct=unsupported
10401           # It fails to find uninstalled libraries when the uninstalled
10402           # path is not listed in the libpath.  Setting hardcode_minus_L
10403           # to unsupported forces relinking
10404           hardcode_minus_L=yes
10405           hardcode_libdir_flag_spec='-L$libdir'
10406           hardcode_libdir_separator=
10407           fi
10408           ;;
10409         esac
10410         shared_flag='-shared'
10411         if test "$aix_use_runtimelinking" = yes; then
10412           shared_flag="$shared_flag "'${wl}-G'
10413         fi
10414       else
10415         # not using gcc
10416         if test "$host_cpu" = ia64; then
10417         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10418         # chokes on -Wl,-G. The following line is correct:
10419           shared_flag='-G'
10420         else
10421           if test "$aix_use_runtimelinking" = yes; then
10422             shared_flag='${wl}-G'
10423           else
10424             shared_flag='${wl}-bM:SRE'
10425           fi
10426         fi
10427       fi
10428
10429       export_dynamic_flag_spec='${wl}-bexpall'
10430       # It seems that -bexpall does not export symbols beginning with
10431       # underscore (_), so it is better to generate a list of symbols to export.
10432       always_export_symbols=yes
10433       if test "$aix_use_runtimelinking" = yes; then
10434         # Warning - without using the other runtime loading flags (-brtl),
10435         # -berok will link without error, but may produce a broken library.
10436         allow_undefined_flag='-berok'
10437         # Determine the default libpath from the value encoded in an
10438         # empty executable.
10439         cat >conftest.$ac_ext <<_ACEOF
10440 /* confdefs.h.  */
10441 _ACEOF
10442 cat confdefs.h >>conftest.$ac_ext
10443 cat >>conftest.$ac_ext <<_ACEOF
10444 /* end confdefs.h.  */
10445
10446 int
10447 main ()
10448 {
10449
10450   ;
10451   return 0;
10452 }
10453 _ACEOF
10454 rm -f conftest.$ac_objext conftest$ac_exeext
10455 if { (ac_try="$ac_link"
10456 case "(($ac_try" in
10457   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10458   *) ac_try_echo=$ac_try;;
10459 esac
10460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10461   (eval "$ac_link") 2>conftest.er1
10462   ac_status=$?
10463   grep -v '^ *+' conftest.er1 >conftest.err
10464   rm -f conftest.er1
10465   cat conftest.err >&5
10466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10467   (exit $ac_status); } && {
10468          test -z "$ac_c_werror_flag" ||
10469          test ! -s conftest.err
10470        } && test -s conftest$ac_exeext &&
10471        $as_test_x conftest$ac_exeext; then
10472
10473 lt_aix_libpath_sed='
10474     /Import File Strings/,/^$/ {
10475         /^0/ {
10476             s/^0  *\(.*\)$/\1/
10477             p
10478         }
10479     }'
10480 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10481 # Check for a 64-bit object if we didn't find anything.
10482 if test -z "$aix_libpath"; then
10483   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10484 fi
10485 else
10486   echo "$as_me: failed program was:" >&5
10487 sed 's/^/| /' conftest.$ac_ext >&5
10488
10489
10490 fi
10491
10492 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10493       conftest$ac_exeext conftest.$ac_ext
10494 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10495
10496         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10497         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"
10498       else
10499         if test "$host_cpu" = ia64; then
10500           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10501           allow_undefined_flag="-z nodefs"
10502           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"
10503         else
10504          # Determine the default libpath from the value encoded in an
10505          # empty executable.
10506          cat >conftest.$ac_ext <<_ACEOF
10507 /* confdefs.h.  */
10508 _ACEOF
10509 cat confdefs.h >>conftest.$ac_ext
10510 cat >>conftest.$ac_ext <<_ACEOF
10511 /* end confdefs.h.  */
10512
10513 int
10514 main ()
10515 {
10516
10517   ;
10518   return 0;
10519 }
10520 _ACEOF
10521 rm -f conftest.$ac_objext conftest$ac_exeext
10522 if { (ac_try="$ac_link"
10523 case "(($ac_try" in
10524   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10525   *) ac_try_echo=$ac_try;;
10526 esac
10527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10528   (eval "$ac_link") 2>conftest.er1
10529   ac_status=$?
10530   grep -v '^ *+' conftest.er1 >conftest.err
10531   rm -f conftest.er1
10532   cat conftest.err >&5
10533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10534   (exit $ac_status); } && {
10535          test -z "$ac_c_werror_flag" ||
10536          test ! -s conftest.err
10537        } && test -s conftest$ac_exeext &&
10538        $as_test_x conftest$ac_exeext; then
10539
10540 lt_aix_libpath_sed='
10541     /Import File Strings/,/^$/ {
10542         /^0/ {
10543             s/^0  *\(.*\)$/\1/
10544             p
10545         }
10546     }'
10547 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10548 # Check for a 64-bit object if we didn't find anything.
10549 if test -z "$aix_libpath"; then
10550   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10551 fi
10552 else
10553   echo "$as_me: failed program was:" >&5
10554 sed 's/^/| /' conftest.$ac_ext >&5
10555
10556
10557 fi
10558
10559 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10560       conftest$ac_exeext conftest.$ac_ext
10561 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10562
10563          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10564           # Warning - without using the other run time loading flags,
10565           # -berok will link without error, but may produce a broken library.
10566           no_undefined_flag=' ${wl}-bernotok'
10567           allow_undefined_flag=' ${wl}-berok'
10568           # Exported symbols can be pulled into shared objects from archives
10569           whole_archive_flag_spec='$convenience'
10570           archive_cmds_need_lc=yes
10571           # This is similar to how AIX traditionally builds its shared libraries.
10572           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'
10573         fi
10574       fi
10575       ;;
10576
10577     amigaos*)
10578       case $host_cpu in
10579       powerpc)
10580             # see comment about AmigaOS4 .so support
10581             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10582             archive_expsym_cmds=''
10583         ;;
10584       m68k)
10585             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)'
10586             hardcode_libdir_flag_spec='-L$libdir'
10587             hardcode_minus_L=yes
10588         ;;
10589       esac
10590       ;;
10591
10592     bsdi[45]*)
10593       export_dynamic_flag_spec=-rdynamic
10594       ;;
10595
10596     cygwin* | mingw* | pw32* | cegcc*)
10597       # When not using gcc, we currently assume that we are using
10598       # Microsoft Visual C++.
10599       # hardcode_libdir_flag_spec is actually meaningless, as there is
10600       # no search path for DLLs.
10601       hardcode_libdir_flag_spec=' '
10602       allow_undefined_flag=unsupported
10603       # Tell ltmain to make .lib files, not .a files.
10604       libext=lib
10605       # Tell ltmain to make .dll files, not .so files.
10606       shrext_cmds=".dll"
10607       # FIXME: Setting linknames here is a bad hack.
10608       archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
10609       # The linker will automatically build a .lib file if we build a DLL.
10610       old_archive_from_new_cmds='true'
10611       # FIXME: Should let the user specify the lib program.
10612       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10613       fix_srcfile_path='`cygpath -w "$srcfile"`'
10614       enable_shared_with_static_runtimes=yes
10615       ;;
10616
10617     darwin* | rhapsody*)
10618
10619
10620   archive_cmds_need_lc=no
10621   hardcode_direct=no
10622   hardcode_automatic=yes
10623   hardcode_shlibpath_var=unsupported
10624   whole_archive_flag_spec=''
10625   link_all_deplibs=yes
10626   allow_undefined_flag="$_lt_dar_allow_undefined"
10627   case $cc_basename in
10628      ifort*) _lt_dar_can_shared=yes ;;
10629      *) _lt_dar_can_shared=$GCC ;;
10630   esac
10631   if test "$_lt_dar_can_shared" = "yes"; then
10632     output_verbose_link_cmd=echo
10633     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10634     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10635     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}"
10636     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}"
10637
10638   else
10639   ld_shlibs=no
10640   fi
10641
10642       ;;
10643
10644     dgux*)
10645       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10646       hardcode_libdir_flag_spec='-L$libdir'
10647       hardcode_shlibpath_var=no
10648       ;;
10649
10650     freebsd1*)
10651       ld_shlibs=no
10652       ;;
10653
10654     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10655     # support.  Future versions do this automatically, but an explicit c++rt0.o
10656     # does not break anything, and helps significantly (at the cost of a little
10657     # extra space).
10658     freebsd2.2*)
10659       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10660       hardcode_libdir_flag_spec='-R$libdir'
10661       hardcode_direct=yes
10662       hardcode_shlibpath_var=no
10663       ;;
10664
10665     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10666     freebsd2*)
10667       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10668       hardcode_direct=yes
10669       hardcode_minus_L=yes
10670       hardcode_shlibpath_var=no
10671       ;;
10672
10673     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10674     freebsd* | dragonfly*)
10675       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10676       hardcode_libdir_flag_spec='-R$libdir'
10677       hardcode_direct=yes
10678       hardcode_shlibpath_var=no
10679       ;;
10680
10681     hpux9*)
10682       if test "$GCC" = yes; then
10683         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'
10684       else
10685         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'
10686       fi
10687       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10688       hardcode_libdir_separator=:
10689       hardcode_direct=yes
10690
10691       # hardcode_minus_L: Not really in the search PATH,
10692       # but as the default location of the library.
10693       hardcode_minus_L=yes
10694       export_dynamic_flag_spec='${wl}-E'
10695       ;;
10696
10697     hpux10*)
10698       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10699         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10700       else
10701         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10702       fi
10703       if test "$with_gnu_ld" = no; then
10704         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10705         hardcode_libdir_flag_spec_ld='+b $libdir'
10706         hardcode_libdir_separator=:
10707         hardcode_direct=yes
10708         hardcode_direct_absolute=yes
10709         export_dynamic_flag_spec='${wl}-E'
10710         # hardcode_minus_L: Not really in the search PATH,
10711         # but as the default location of the library.
10712         hardcode_minus_L=yes
10713       fi
10714       ;;
10715
10716     hpux11*)
10717       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10718         case $host_cpu in
10719         hppa*64*)
10720           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10721           ;;
10722         ia64*)
10723           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10724           ;;
10725         *)
10726           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10727           ;;
10728         esac
10729       else
10730         case $host_cpu in
10731         hppa*64*)
10732           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10733           ;;
10734         ia64*)
10735           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10736           ;;
10737         *)
10738           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10739           ;;
10740         esac
10741       fi
10742       if test "$with_gnu_ld" = no; then
10743         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10744         hardcode_libdir_separator=:
10745
10746         case $host_cpu in
10747         hppa*64*|ia64*)
10748           hardcode_direct=no
10749           hardcode_shlibpath_var=no
10750           ;;
10751         *)
10752           hardcode_direct=yes
10753           hardcode_direct_absolute=yes
10754           export_dynamic_flag_spec='${wl}-E'
10755
10756           # hardcode_minus_L: Not really in the search PATH,
10757           # but as the default location of the library.
10758           hardcode_minus_L=yes
10759           ;;
10760         esac
10761       fi
10762       ;;
10763
10764     irix5* | irix6* | nonstopux*)
10765       if test "$GCC" = yes; then
10766         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'
10767         # Try to use the -exported_symbol ld option, if it does not
10768         # work, assume that -exports_file does not work either and
10769         # implicitly export all symbols.
10770         save_LDFLAGS="$LDFLAGS"
10771         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10772         cat >conftest.$ac_ext <<_ACEOF
10773 int foo(void) {}
10774 _ACEOF
10775 rm -f conftest.$ac_objext conftest$ac_exeext
10776 if { (ac_try="$ac_link"
10777 case "(($ac_try" in
10778   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10779   *) ac_try_echo=$ac_try;;
10780 esac
10781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10782   (eval "$ac_link") 2>conftest.er1
10783   ac_status=$?
10784   grep -v '^ *+' conftest.er1 >conftest.err
10785   rm -f conftest.er1
10786   cat conftest.err >&5
10787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10788   (exit $ac_status); } && {
10789          test -z "$ac_c_werror_flag" ||
10790          test ! -s conftest.err
10791        } && test -s conftest$ac_exeext &&
10792        $as_test_x conftest$ac_exeext; then
10793   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'
10794
10795 else
10796   echo "$as_me: failed program was:" >&5
10797 sed 's/^/| /' conftest.$ac_ext >&5
10798
10799
10800 fi
10801
10802 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10803       conftest$ac_exeext conftest.$ac_ext
10804         LDFLAGS="$save_LDFLAGS"
10805       else
10806         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'
10807         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'
10808       fi
10809       archive_cmds_need_lc='no'
10810       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10811       hardcode_libdir_separator=:
10812       inherit_rpath=yes
10813       link_all_deplibs=yes
10814       ;;
10815
10816     netbsd*)
10817       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10818         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10819       else
10820         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10821       fi
10822       hardcode_libdir_flag_spec='-R$libdir'
10823       hardcode_direct=yes
10824       hardcode_shlibpath_var=no
10825       ;;
10826
10827     newsos6)
10828       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10829       hardcode_direct=yes
10830       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10831       hardcode_libdir_separator=:
10832       hardcode_shlibpath_var=no
10833       ;;
10834
10835     *nto* | *qnx*)
10836       ;;
10837
10838     openbsd*)
10839       if test -f /usr/libexec/ld.so; then
10840         hardcode_direct=yes
10841         hardcode_shlibpath_var=no
10842         hardcode_direct_absolute=yes
10843         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10844           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10845           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10846           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10847           export_dynamic_flag_spec='${wl}-E'
10848         else
10849           case $host_os in
10850            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10851              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10852              hardcode_libdir_flag_spec='-R$libdir'
10853              ;;
10854            *)
10855              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10856              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10857              ;;
10858           esac
10859         fi
10860       else
10861         ld_shlibs=no
10862       fi
10863       ;;
10864
10865     os2*)
10866       hardcode_libdir_flag_spec='-L$libdir'
10867       hardcode_minus_L=yes
10868       allow_undefined_flag=unsupported
10869       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'
10870       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10871       ;;
10872
10873     osf3*)
10874       if test "$GCC" = yes; then
10875         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10876         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'
10877       else
10878         allow_undefined_flag=' -expect_unresolved \*'
10879         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'
10880       fi
10881       archive_cmds_need_lc='no'
10882       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10883       hardcode_libdir_separator=:
10884       ;;
10885
10886     osf4* | osf5*)      # as osf3* with the addition of -msym flag
10887       if test "$GCC" = yes; then
10888         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10889         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'
10890         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10891       else
10892         allow_undefined_flag=' -expect_unresolved \*'
10893         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'
10894         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~
10895         $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'
10896
10897         # Both c and cxx compiler support -rpath directly
10898         hardcode_libdir_flag_spec='-rpath $libdir'
10899       fi
10900       archive_cmds_need_lc='no'
10901       hardcode_libdir_separator=:
10902       ;;
10903
10904     solaris*)
10905       no_undefined_flag=' -z defs'
10906       if test "$GCC" = yes; then
10907         wlarc='${wl}'
10908         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10909         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10910           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10911       else
10912         case `$CC -V 2>&1` in
10913         *"Compilers 5.0"*)
10914           wlarc=''
10915           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10916           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10917           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10918           ;;
10919         *)
10920           wlarc='${wl}'
10921           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10922           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10923           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10924           ;;
10925         esac
10926       fi
10927       hardcode_libdir_flag_spec='-R$libdir'
10928       hardcode_shlibpath_var=no
10929       case $host_os in
10930       solaris2.[0-5] | solaris2.[0-5].*) ;;
10931       *)
10932         # The compiler driver will combine and reorder linker options,
10933         # but understands `-z linker_flag'.  GCC discards it without `$wl',
10934         # but is careful enough not to reorder.
10935         # Supported since Solaris 2.6 (maybe 2.5.1?)
10936         if test "$GCC" = yes; then
10937           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10938         else
10939           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10940         fi
10941         ;;
10942       esac
10943       link_all_deplibs=yes
10944       ;;
10945
10946     sunos4*)
10947       if test "x$host_vendor" = xsequent; then
10948         # Use $CC to link under sequent, because it throws in some extra .o
10949         # files that make .init and .fini sections work.
10950         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10951       else
10952         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10953       fi
10954       hardcode_libdir_flag_spec='-L$libdir'
10955       hardcode_direct=yes
10956       hardcode_minus_L=yes
10957       hardcode_shlibpath_var=no
10958       ;;
10959
10960     sysv4)
10961       case $host_vendor in
10962         sni)
10963           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10964           hardcode_direct=yes # is this really true???
10965         ;;
10966         siemens)
10967           ## LD is ld it makes a PLAMLIB
10968           ## CC just makes a GrossModule.
10969           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10970           reload_cmds='$CC -r -o $output$reload_objs'
10971           hardcode_direct=no
10972         ;;
10973         motorola)
10974           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10975           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10976         ;;
10977       esac
10978       runpath_var='LD_RUN_PATH'
10979       hardcode_shlibpath_var=no
10980       ;;
10981
10982     sysv4.3*)
10983       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10984       hardcode_shlibpath_var=no
10985       export_dynamic_flag_spec='-Bexport'
10986       ;;
10987
10988     sysv4*MP*)
10989       if test -d /usr/nec; then
10990         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10991         hardcode_shlibpath_var=no
10992         runpath_var=LD_RUN_PATH
10993         hardcode_runpath_var=yes
10994         ld_shlibs=yes
10995       fi
10996       ;;
10997
10998     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10999       no_undefined_flag='${wl}-z,text'
11000       archive_cmds_need_lc=no
11001       hardcode_shlibpath_var=no
11002       runpath_var='LD_RUN_PATH'
11003
11004       if test "$GCC" = yes; then
11005         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11006         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11007       else
11008         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11009         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11010       fi
11011       ;;
11012
11013     sysv5* | sco3.2v5* | sco5v6*)
11014       # Note: We can NOT use -z defs as we might desire, because we do not
11015       # link with -lc, and that would cause any symbols used from libc to
11016       # always be unresolved, which means just about no library would
11017       # ever link correctly.  If we're not using GNU ld we use -z text
11018       # though, which does catch some bad symbols but isn't as heavy-handed
11019       # as -z defs.
11020       no_undefined_flag='${wl}-z,text'
11021       allow_undefined_flag='${wl}-z,nodefs'
11022       archive_cmds_need_lc=no
11023       hardcode_shlibpath_var=no
11024       hardcode_libdir_flag_spec='${wl}-R,$libdir'
11025       hardcode_libdir_separator=':'
11026       link_all_deplibs=yes
11027       export_dynamic_flag_spec='${wl}-Bexport'
11028       runpath_var='LD_RUN_PATH'
11029
11030       if test "$GCC" = yes; then
11031         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11032         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11033       else
11034         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11035         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11036       fi
11037       ;;
11038
11039     uts4*)
11040       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11041       hardcode_libdir_flag_spec='-L$libdir'
11042       hardcode_shlibpath_var=no
11043       ;;
11044
11045     *)
11046       ld_shlibs=no
11047       ;;
11048     esac
11049
11050     if test x$host_vendor = xsni; then
11051       case $host in
11052       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11053         export_dynamic_flag_spec='${wl}-Blargedynsym'
11054         ;;
11055       esac
11056     fi
11057   fi
11058
11059 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
11060 echo "${ECHO_T}$ld_shlibs" >&6; }
11061 test "$ld_shlibs" = no && can_build_shared=no
11062
11063 with_gnu_ld=$with_gnu_ld
11064
11065
11066
11067
11068
11069
11070
11071
11072
11073
11074
11075
11076
11077
11078
11079 #
11080 # Do we need to explicitly link libc?
11081 #
11082 case "x$archive_cmds_need_lc" in
11083 x|xyes)
11084   # Assume -lc should be added
11085   archive_cmds_need_lc=yes
11086
11087   if test "$enable_shared" = yes && test "$GCC" = yes; then
11088     case $archive_cmds in
11089     *'~'*)
11090       # FIXME: we may have to deal with multi-command sequences.
11091       ;;
11092     '$CC '*)
11093       # Test whether the compiler implicitly links with -lc since on some
11094       # systems, -lgcc has to come before -lc. If gcc already passes -lc
11095       # to ld, don't add -lc before -lgcc.
11096       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11097 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
11098       $RM conftest*
11099       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11100
11101       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11102   (eval $ac_compile) 2>&5
11103   ac_status=$?
11104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11105   (exit $ac_status); } 2>conftest.err; then
11106         soname=conftest
11107         lib=conftest
11108         libobjs=conftest.$ac_objext
11109         deplibs=
11110         wl=$lt_prog_compiler_wl
11111         pic_flag=$lt_prog_compiler_pic
11112         compiler_flags=-v
11113         linker_flags=-v
11114         verstring=
11115         output_objdir=.
11116         libname=conftest
11117         lt_save_allow_undefined_flag=$allow_undefined_flag
11118         allow_undefined_flag=
11119         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
11120   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11121   ac_status=$?
11122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11123   (exit $ac_status); }
11124         then
11125           archive_cmds_need_lc=no
11126         else
11127           archive_cmds_need_lc=yes
11128         fi
11129         allow_undefined_flag=$lt_save_allow_undefined_flag
11130       else
11131         cat conftest.err 1>&5
11132       fi
11133       $RM conftest*
11134       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
11135 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
11136       ;;
11137     esac
11138   fi
11139   ;;
11140 esac
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
11296
11297
11298   { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11299 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
11300
11301 if test "$GCC" = yes; then
11302   case $host_os in
11303     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11304     *) lt_awk_arg="/^libraries:/" ;;
11305   esac
11306   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11307   if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
11308     # if the path contains ";" then we assume it to be the separator
11309     # otherwise default to the standard path separator (i.e. ":") - it is
11310     # assumed that no part of a normal pathname contains ";" but that should
11311     # okay in the real world where ";" in dirpaths is itself problematic.
11312     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
11313   else
11314     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11315   fi
11316   # Ok, now we have the path, separated by spaces, we can step through it
11317   # and add multilib dir if necessary.
11318   lt_tmp_lt_search_path_spec=
11319   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11320   for lt_sys_path in $lt_search_path_spec; do
11321     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11322       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11323     else
11324       test -d "$lt_sys_path" && \
11325         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11326     fi
11327   done
11328   lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
11329 BEGIN {RS=" "; FS="/|\n";} {
11330   lt_foo="";
11331   lt_count=0;
11332   for (lt_i = NF; lt_i > 0; lt_i--) {
11333     if ($lt_i != "" && $lt_i != ".") {
11334       if ($lt_i == "..") {
11335         lt_count++;
11336       } else {
11337         if (lt_count == 0) {
11338           lt_foo="/" $lt_i lt_foo;
11339         } else {
11340           lt_count--;
11341         }
11342       }
11343     }
11344   }
11345   if (lt_foo != "") { lt_freq[lt_foo]++; }
11346   if (lt_freq[lt_foo] == 1) { print lt_foo; }
11347 }'`
11348   sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
11349 else
11350   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11351 fi
11352 library_names_spec=
11353 libname_spec='lib$name'
11354 soname_spec=
11355 shrext_cmds=".so"
11356 postinstall_cmds=
11357 postuninstall_cmds=
11358 finish_cmds=
11359 finish_eval=
11360 shlibpath_var=
11361 shlibpath_overrides_runpath=unknown
11362 version_type=none
11363 dynamic_linker="$host_os ld.so"
11364 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11365 need_lib_prefix=unknown
11366 hardcode_into_libs=no
11367
11368 # when you set need_version to no, make sure it does not cause -set_version
11369 # flags to be left without arguments
11370 need_version=unknown
11371
11372 case $host_os in
11373 aix3*)
11374   version_type=linux
11375   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11376   shlibpath_var=LIBPATH
11377
11378   # AIX 3 has no versioning support, so we append a major version to the name.
11379   soname_spec='${libname}${release}${shared_ext}$major'
11380   ;;
11381
11382 aix[4-9]*)
11383   version_type=linux
11384   need_lib_prefix=no
11385   need_version=no
11386   hardcode_into_libs=yes
11387   if test "$host_cpu" = ia64; then
11388     # AIX 5 supports IA64
11389     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11390     shlibpath_var=LD_LIBRARY_PATH
11391   else
11392     # With GCC up to 2.95.x, collect2 would create an import file
11393     # for dependence libraries.  The import file would start with
11394     # the line `#! .'.  This would cause the generated library to
11395     # depend on `.', always an invalid library.  This was fixed in
11396     # development snapshots of GCC prior to 3.0.
11397     case $host_os in
11398       aix4 | aix4.[01] | aix4.[01].*)
11399       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11400            echo ' yes '
11401            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11402         :
11403       else
11404         can_build_shared=no
11405       fi
11406       ;;
11407     esac
11408     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11409     # soname into executable. Probably we can add versioning support to
11410     # collect2, so additional links can be useful in future.
11411     if test "$aix_use_runtimelinking" = yes; then
11412       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11413       # instead of lib<name>.a to let people know that these are not
11414       # typical AIX shared libraries.
11415       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11416     else
11417       # We preserve .a as extension for shared libraries through AIX4.2
11418       # and later when we are not doing run time linking.
11419       library_names_spec='${libname}${release}.a $libname.a'
11420       soname_spec='${libname}${release}${shared_ext}$major'
11421     fi
11422     shlibpath_var=LIBPATH
11423   fi
11424   ;;
11425
11426 amigaos*)
11427   case $host_cpu in
11428   powerpc)
11429     # Since July 2007 AmigaOS4 officially supports .so libraries.
11430     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11431     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11432     ;;
11433   m68k)
11434     library_names_spec='$libname.ixlibrary $libname.a'
11435     # Create ${libname}_ixlibrary.a entries in /sys/libs.
11436     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'
11437     ;;
11438   esac
11439   ;;
11440
11441 beos*)
11442   library_names_spec='${libname}${shared_ext}'
11443   dynamic_linker="$host_os ld.so"
11444   shlibpath_var=LIBRARY_PATH
11445   ;;
11446
11447 bsdi[45]*)
11448   version_type=linux
11449   need_version=no
11450   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11451   soname_spec='${libname}${release}${shared_ext}$major'
11452   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11453   shlibpath_var=LD_LIBRARY_PATH
11454   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11455   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11456   # the default ld.so.conf also contains /usr/contrib/lib and
11457   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11458   # libtool to hard-code these into programs
11459   ;;
11460
11461 cygwin* | mingw* | pw32* | cegcc*)
11462   version_type=windows
11463   shrext_cmds=".dll"
11464   need_version=no
11465   need_lib_prefix=no
11466
11467   case $GCC,$host_os in
11468   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11469     library_names_spec='$libname.dll.a'
11470     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11471     postinstall_cmds='base_file=`basename \${file}`~
11472       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11473       dldir=$destdir/`dirname \$dlpath`~
11474       test -d \$dldir || mkdir -p \$dldir~
11475       $install_prog $dir/$dlname \$dldir/$dlname~
11476       chmod a+x \$dldir/$dlname~
11477       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11478         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11479       fi'
11480     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11481       dlpath=$dir/\$dldll~
11482        $RM \$dlpath'
11483     shlibpath_overrides_runpath=yes
11484
11485     case $host_os in
11486     cygwin*)
11487       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11488       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11489       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11490       ;;
11491     mingw* | cegcc*)
11492       # MinGW DLLs use traditional 'lib' prefix
11493       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11494       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11495       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11496         # It is most probably a Windows format PATH printed by
11497         # mingw gcc, but we are running on Cygwin. Gcc prints its search
11498         # path with ; separators, and with drive letters. We can handle the
11499         # drive letters (cygwin fileutils understands them), so leave them,
11500         # especially as we might pass files found there to a mingw objdump,
11501         # which wouldn't understand a cygwinified path. Ahh.
11502         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11503       else
11504         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11505       fi
11506       ;;
11507     pw32*)
11508       # pw32 DLLs use 'pw' prefix rather than 'lib'
11509       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11510       ;;
11511     esac
11512     ;;
11513
11514   *)
11515     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11516     ;;
11517   esac
11518   dynamic_linker='Win32 ld.exe'
11519   # FIXME: first we should search . and the directory the executable is in
11520   shlibpath_var=PATH
11521   ;;
11522
11523 darwin* | rhapsody*)
11524   dynamic_linker="$host_os dyld"
11525   version_type=darwin
11526   need_lib_prefix=no
11527   need_version=no
11528   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11529   soname_spec='${libname}${release}${major}$shared_ext'
11530   shlibpath_overrides_runpath=yes
11531   shlibpath_var=DYLD_LIBRARY_PATH
11532   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11533
11534   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11535   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11536   ;;
11537
11538 dgux*)
11539   version_type=linux
11540   need_lib_prefix=no
11541   need_version=no
11542   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11543   soname_spec='${libname}${release}${shared_ext}$major'
11544   shlibpath_var=LD_LIBRARY_PATH
11545   ;;
11546
11547 freebsd1*)
11548   dynamic_linker=no
11549   ;;
11550
11551 freebsd* | dragonfly*)
11552   # DragonFly does not have aout.  When/if they implement a new
11553   # versioning mechanism, adjust this.
11554   if test -x /usr/bin/objformat; then
11555     objformat=`/usr/bin/objformat`
11556   else
11557     case $host_os in
11558     freebsd[123]*) objformat=aout ;;
11559     *) objformat=elf ;;
11560     esac
11561   fi
11562   version_type=freebsd-$objformat
11563   case $version_type in
11564     freebsd-elf*)
11565       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11566       need_version=no
11567       need_lib_prefix=no
11568       ;;
11569     freebsd-*)
11570       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11571       need_version=yes
11572       ;;
11573   esac
11574   shlibpath_var=LD_LIBRARY_PATH
11575   case $host_os in
11576   freebsd2*)
11577     shlibpath_overrides_runpath=yes
11578     ;;
11579   freebsd3.[01]* | freebsdelf3.[01]*)
11580     shlibpath_overrides_runpath=yes
11581     hardcode_into_libs=yes
11582     ;;
11583   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11584   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11585     shlibpath_overrides_runpath=no
11586     hardcode_into_libs=yes
11587     ;;
11588   *) # from 4.6 on, and DragonFly
11589     shlibpath_overrides_runpath=yes
11590     hardcode_into_libs=yes
11591     ;;
11592   esac
11593   ;;
11594
11595 gnu*)
11596   version_type=linux
11597   need_lib_prefix=no
11598   need_version=no
11599   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11600   soname_spec='${libname}${release}${shared_ext}$major'
11601   shlibpath_var=LD_LIBRARY_PATH
11602   hardcode_into_libs=yes
11603   ;;
11604
11605 hpux9* | hpux10* | hpux11*)
11606   # Give a soname corresponding to the major version so that dld.sl refuses to
11607   # link against other versions.
11608   version_type=sunos
11609   need_lib_prefix=no
11610   need_version=no
11611   case $host_cpu in
11612   ia64*)
11613     shrext_cmds='.so'
11614     hardcode_into_libs=yes
11615     dynamic_linker="$host_os dld.so"
11616     shlibpath_var=LD_LIBRARY_PATH
11617     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11618     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11619     soname_spec='${libname}${release}${shared_ext}$major'
11620     if test "X$HPUX_IA64_MODE" = X32; then
11621       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11622     else
11623       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11624     fi
11625     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11626     ;;
11627   hppa*64*)
11628     shrext_cmds='.sl'
11629     hardcode_into_libs=yes
11630     dynamic_linker="$host_os dld.sl"
11631     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11632     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11633     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11634     soname_spec='${libname}${release}${shared_ext}$major'
11635     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11636     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11637     ;;
11638   *)
11639     shrext_cmds='.sl'
11640     dynamic_linker="$host_os dld.sl"
11641     shlibpath_var=SHLIB_PATH
11642     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11643     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11644     soname_spec='${libname}${release}${shared_ext}$major'
11645     ;;
11646   esac
11647   # HP-UX runs *really* slowly unless shared libraries are mode 555.
11648   postinstall_cmds='chmod 555 $lib'
11649   ;;
11650
11651 interix[3-9]*)
11652   version_type=linux
11653   need_lib_prefix=no
11654   need_version=no
11655   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11656   soname_spec='${libname}${release}${shared_ext}$major'
11657   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11658   shlibpath_var=LD_LIBRARY_PATH
11659   shlibpath_overrides_runpath=no
11660   hardcode_into_libs=yes
11661   ;;
11662
11663 irix5* | irix6* | nonstopux*)
11664   case $host_os in
11665     nonstopux*) version_type=nonstopux ;;
11666     *)
11667         if test "$lt_cv_prog_gnu_ld" = yes; then
11668                 version_type=linux
11669         else
11670                 version_type=irix
11671         fi ;;
11672   esac
11673   need_lib_prefix=no
11674   need_version=no
11675   soname_spec='${libname}${release}${shared_ext}$major'
11676   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11677   case $host_os in
11678   irix5* | nonstopux*)
11679     libsuff= shlibsuff=
11680     ;;
11681   *)
11682     case $LD in # libtool.m4 will add one of these switches to LD
11683     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11684       libsuff= shlibsuff= libmagic=32-bit;;
11685     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11686       libsuff=32 shlibsuff=N32 libmagic=N32;;
11687     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11688       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11689     *) libsuff= shlibsuff= libmagic=never-match;;
11690     esac
11691     ;;
11692   esac
11693   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11694   shlibpath_overrides_runpath=no
11695   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11696   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11697   hardcode_into_libs=yes
11698   ;;
11699
11700 # No shared lib support for Linux oldld, aout, or coff.
11701 linux*oldld* | linux*aout* | linux*coff*)
11702   dynamic_linker=no
11703   ;;
11704
11705 # This must be Linux ELF.
11706 linux* | k*bsd*-gnu)
11707   version_type=linux
11708   need_lib_prefix=no
11709   need_version=no
11710   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11711   soname_spec='${libname}${release}${shared_ext}$major'
11712   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11713   shlibpath_var=LD_LIBRARY_PATH
11714   shlibpath_overrides_runpath=no
11715   # Some binutils ld are patched to set DT_RUNPATH
11716   save_LDFLAGS=$LDFLAGS
11717   save_libdir=$libdir
11718   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11719        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11720   cat >conftest.$ac_ext <<_ACEOF
11721 /* confdefs.h.  */
11722 _ACEOF
11723 cat confdefs.h >>conftest.$ac_ext
11724 cat >>conftest.$ac_ext <<_ACEOF
11725 /* end confdefs.h.  */
11726
11727 int
11728 main ()
11729 {
11730
11731   ;
11732   return 0;
11733 }
11734 _ACEOF
11735 rm -f conftest.$ac_objext conftest$ac_exeext
11736 if { (ac_try="$ac_link"
11737 case "(($ac_try" in
11738   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11739   *) ac_try_echo=$ac_try;;
11740 esac
11741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11742   (eval "$ac_link") 2>conftest.er1
11743   ac_status=$?
11744   grep -v '^ *+' conftest.er1 >conftest.err
11745   rm -f conftest.er1
11746   cat conftest.err >&5
11747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11748   (exit $ac_status); } && {
11749          test -z "$ac_c_werror_flag" ||
11750          test ! -s conftest.err
11751        } && test -s conftest$ac_exeext &&
11752        $as_test_x conftest$ac_exeext; then
11753   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
11754   shlibpath_overrides_runpath=yes
11755 fi
11756
11757 else
11758   echo "$as_me: failed program was:" >&5
11759 sed 's/^/| /' conftest.$ac_ext >&5
11760
11761
11762 fi
11763
11764 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11765       conftest$ac_exeext conftest.$ac_ext
11766   LDFLAGS=$save_LDFLAGS
11767   libdir=$save_libdir
11768
11769   # This implies no fast_install, which is unacceptable.
11770   # Some rework will be needed to allow for fast_install
11771   # before this can be enabled.
11772   hardcode_into_libs=yes
11773
11774   # Append ld.so.conf contents to the search path
11775   if test -f /etc/ld.so.conf; then
11776     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' ' '`
11777     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11778   fi
11779
11780   # We used to test for /lib/ld.so.1 and disable shared libraries on
11781   # powerpc, because MkLinux only supported shared libraries with the
11782   # GNU dynamic linker.  Since this was broken with cross compilers,
11783   # most powerpc-linux boxes support dynamic linking these days and
11784   # people can always --disable-shared, the test was removed, and we
11785   # assume the GNU/Linux dynamic linker is in use.
11786   dynamic_linker='GNU/Linux ld.so'
11787   ;;
11788
11789 netbsd*)
11790   version_type=sunos
11791   need_lib_prefix=no
11792   need_version=no
11793   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11794     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11795     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11796     dynamic_linker='NetBSD (a.out) ld.so'
11797   else
11798     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11799     soname_spec='${libname}${release}${shared_ext}$major'
11800     dynamic_linker='NetBSD ld.elf_so'
11801   fi
11802   shlibpath_var=LD_LIBRARY_PATH
11803   shlibpath_overrides_runpath=yes
11804   hardcode_into_libs=yes
11805   ;;
11806
11807 newsos6)
11808   version_type=linux
11809   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11810   shlibpath_var=LD_LIBRARY_PATH
11811   shlibpath_overrides_runpath=yes
11812   ;;
11813
11814 *nto* | *qnx*)
11815   version_type=qnx
11816   need_lib_prefix=no
11817   need_version=no
11818   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11819   soname_spec='${libname}${release}${shared_ext}$major'
11820   shlibpath_var=LD_LIBRARY_PATH
11821   shlibpath_overrides_runpath=no
11822   hardcode_into_libs=yes
11823   dynamic_linker='ldqnx.so'
11824   ;;
11825
11826 openbsd*)
11827   version_type=sunos
11828   sys_lib_dlsearch_path_spec="/usr/lib"
11829   need_lib_prefix=no
11830   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11831   case $host_os in
11832     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
11833     *)                          need_version=no  ;;
11834   esac
11835   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11836   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11837   shlibpath_var=LD_LIBRARY_PATH
11838   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11839     case $host_os in
11840       openbsd2.[89] | openbsd2.[89].*)
11841         shlibpath_overrides_runpath=no
11842         ;;
11843       *)
11844         shlibpath_overrides_runpath=yes
11845         ;;
11846       esac
11847   else
11848     shlibpath_overrides_runpath=yes
11849   fi
11850   ;;
11851
11852 os2*)
11853   libname_spec='$name'
11854   shrext_cmds=".dll"
11855   need_lib_prefix=no
11856   library_names_spec='$libname${shared_ext} $libname.a'
11857   dynamic_linker='OS/2 ld.exe'
11858   shlibpath_var=LIBPATH
11859   ;;
11860
11861 osf3* | osf4* | osf5*)
11862   version_type=osf
11863   need_lib_prefix=no
11864   need_version=no
11865   soname_spec='${libname}${release}${shared_ext}$major'
11866   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11867   shlibpath_var=LD_LIBRARY_PATH
11868   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11869   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11870   ;;
11871
11872 rdos*)
11873   dynamic_linker=no
11874   ;;
11875
11876 solaris*)
11877   version_type=linux
11878   need_lib_prefix=no
11879   need_version=no
11880   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11881   soname_spec='${libname}${release}${shared_ext}$major'
11882   shlibpath_var=LD_LIBRARY_PATH
11883   shlibpath_overrides_runpath=yes
11884   hardcode_into_libs=yes
11885   # ldd complains unless libraries are executable
11886   postinstall_cmds='chmod +x $lib'
11887   ;;
11888
11889 sunos4*)
11890   version_type=sunos
11891   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11892   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11893   shlibpath_var=LD_LIBRARY_PATH
11894   shlibpath_overrides_runpath=yes
11895   if test "$with_gnu_ld" = yes; then
11896     need_lib_prefix=no
11897   fi
11898   need_version=yes
11899   ;;
11900
11901 sysv4 | sysv4.3*)
11902   version_type=linux
11903   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11904   soname_spec='${libname}${release}${shared_ext}$major'
11905   shlibpath_var=LD_LIBRARY_PATH
11906   case $host_vendor in
11907     sni)
11908       shlibpath_overrides_runpath=no
11909       need_lib_prefix=no
11910       runpath_var=LD_RUN_PATH
11911       ;;
11912     siemens)
11913       need_lib_prefix=no
11914       ;;
11915     motorola)
11916       need_lib_prefix=no
11917       need_version=no
11918       shlibpath_overrides_runpath=no
11919       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11920       ;;
11921   esac
11922   ;;
11923
11924 sysv4*MP*)
11925   if test -d /usr/nec ;then
11926     version_type=linux
11927     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11928     soname_spec='$libname${shared_ext}.$major'
11929     shlibpath_var=LD_LIBRARY_PATH
11930   fi
11931   ;;
11932
11933 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11934   version_type=freebsd-elf
11935   need_lib_prefix=no
11936   need_version=no
11937   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11938   soname_spec='${libname}${release}${shared_ext}$major'
11939   shlibpath_var=LD_LIBRARY_PATH
11940   shlibpath_overrides_runpath=yes
11941   hardcode_into_libs=yes
11942   if test "$with_gnu_ld" = yes; then
11943     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11944   else
11945     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11946     case $host_os in
11947       sco3.2v5*)
11948         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11949         ;;
11950     esac
11951   fi
11952   sys_lib_dlsearch_path_spec='/usr/lib'
11953   ;;
11954
11955 tpf*)
11956   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11957   version_type=linux
11958   need_lib_prefix=no
11959   need_version=no
11960   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11961   shlibpath_var=LD_LIBRARY_PATH
11962   shlibpath_overrides_runpath=no
11963   hardcode_into_libs=yes
11964   ;;
11965
11966 uts4*)
11967   version_type=linux
11968   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11969   soname_spec='${libname}${release}${shared_ext}$major'
11970   shlibpath_var=LD_LIBRARY_PATH
11971   ;;
11972
11973 *)
11974   dynamic_linker=no
11975   ;;
11976 esac
11977 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11978 echo "${ECHO_T}$dynamic_linker" >&6; }
11979 test "$dynamic_linker" = no && can_build_shared=no
11980
11981 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11982 if test "$GCC" = yes; then
11983   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11984 fi
11985
11986 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11987   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11988 fi
11989 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11990   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11991 fi
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
12077
12078
12079   { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12080 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
12081 hardcode_action=
12082 if test -n "$hardcode_libdir_flag_spec" ||
12083    test -n "$runpath_var" ||
12084    test "X$hardcode_automatic" = "Xyes" ; then
12085
12086   # We can hardcode non-existent directories.
12087   if test "$hardcode_direct" != no &&
12088      # If the only mechanism to avoid hardcoding is shlibpath_var, we
12089      # have to relink, otherwise we might link with an installed library
12090      # when we should be linking with a yet-to-be-installed one
12091      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12092      test "$hardcode_minus_L" != no; then
12093     # Linking always hardcodes the temporary library directory.
12094     hardcode_action=relink
12095   else
12096     # We can link without hardcoding, and we can hardcode nonexisting dirs.
12097     hardcode_action=immediate
12098   fi
12099 else
12100   # We cannot hardcode anything, or else we can only hardcode existing
12101   # directories.
12102   hardcode_action=unsupported
12103 fi
12104 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
12105 echo "${ECHO_T}$hardcode_action" >&6; }
12106
12107 if test "$hardcode_action" = relink ||
12108    test "$inherit_rpath" = yes; then
12109   # Fast installation is not supported
12110   enable_fast_install=no
12111 elif test "$shlibpath_overrides_runpath" = yes ||
12112      test "$enable_shared" = no; then
12113   # Fast installation is not necessary
12114   enable_fast_install=needless
12115 fi
12116
12117
12118
12119
12120
12121
12122   if test "x$enable_dlopen" != xyes; then
12123   enable_dlopen=unknown
12124   enable_dlopen_self=unknown
12125   enable_dlopen_self_static=unknown
12126 else
12127   lt_cv_dlopen=no
12128   lt_cv_dlopen_libs=
12129
12130   case $host_os in
12131   beos*)
12132     lt_cv_dlopen="load_add_on"
12133     lt_cv_dlopen_libs=
12134     lt_cv_dlopen_self=yes
12135     ;;
12136
12137   mingw* | pw32* | cegcc*)
12138     lt_cv_dlopen="LoadLibrary"
12139     lt_cv_dlopen_libs=
12140     ;;
12141
12142   cygwin*)
12143     lt_cv_dlopen="dlopen"
12144     lt_cv_dlopen_libs=
12145     ;;
12146
12147   darwin*)
12148   # if libdl is installed we need to link against it
12149     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12150 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
12151 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12152   echo $ECHO_N "(cached) $ECHO_C" >&6
12153 else
12154   ac_check_lib_save_LIBS=$LIBS
12155 LIBS="-ldl  $LIBS"
12156 cat >conftest.$ac_ext <<_ACEOF
12157 /* confdefs.h.  */
12158 _ACEOF
12159 cat confdefs.h >>conftest.$ac_ext
12160 cat >>conftest.$ac_ext <<_ACEOF
12161 /* end confdefs.h.  */
12162
12163 /* Override any GCC internal prototype to avoid an error.
12164    Use char because int might match the return type of a GCC
12165    builtin and then its argument prototype would still apply.  */
12166 #ifdef __cplusplus
12167 extern "C"
12168 #endif
12169 char dlopen ();
12170 int
12171 main ()
12172 {
12173 return dlopen ();
12174   ;
12175   return 0;
12176 }
12177 _ACEOF
12178 rm -f conftest.$ac_objext conftest$ac_exeext
12179 if { (ac_try="$ac_link"
12180 case "(($ac_try" in
12181   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12182   *) ac_try_echo=$ac_try;;
12183 esac
12184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12185   (eval "$ac_link") 2>conftest.er1
12186   ac_status=$?
12187   grep -v '^ *+' conftest.er1 >conftest.err
12188   rm -f conftest.er1
12189   cat conftest.err >&5
12190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12191   (exit $ac_status); } && {
12192          test -z "$ac_c_werror_flag" ||
12193          test ! -s conftest.err
12194        } && test -s conftest$ac_exeext &&
12195        $as_test_x conftest$ac_exeext; then
12196   ac_cv_lib_dl_dlopen=yes
12197 else
12198   echo "$as_me: failed program was:" >&5
12199 sed 's/^/| /' conftest.$ac_ext >&5
12200
12201         ac_cv_lib_dl_dlopen=no
12202 fi
12203
12204 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12205       conftest$ac_exeext conftest.$ac_ext
12206 LIBS=$ac_check_lib_save_LIBS
12207 fi
12208 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12209 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
12210 if test $ac_cv_lib_dl_dlopen = yes; then
12211   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12212 else
12213
12214     lt_cv_dlopen="dyld"
12215     lt_cv_dlopen_libs=
12216     lt_cv_dlopen_self=yes
12217
12218 fi
12219
12220     ;;
12221
12222   *)
12223     { echo "$as_me:$LINENO: checking for shl_load" >&5
12224 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
12225 if test "${ac_cv_func_shl_load+set}" = set; then
12226   echo $ECHO_N "(cached) $ECHO_C" >&6
12227 else
12228   cat >conftest.$ac_ext <<_ACEOF
12229 /* confdefs.h.  */
12230 _ACEOF
12231 cat confdefs.h >>conftest.$ac_ext
12232 cat >>conftest.$ac_ext <<_ACEOF
12233 /* end confdefs.h.  */
12234 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12235    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12236 #define shl_load innocuous_shl_load
12237
12238 /* System header to define __stub macros and hopefully few prototypes,
12239     which can conflict with char shl_load (); below.
12240     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12241     <limits.h> exists even on freestanding compilers.  */
12242
12243 #ifdef __STDC__
12244 # include <limits.h>
12245 #else
12246 # include <assert.h>
12247 #endif
12248
12249 #undef shl_load
12250
12251 /* Override any GCC internal prototype to avoid an error.
12252    Use char because int might match the return type of a GCC
12253    builtin and then its argument prototype would still apply.  */
12254 #ifdef __cplusplus
12255 extern "C"
12256 #endif
12257 char shl_load ();
12258 /* The GNU C library defines this for functions which it implements
12259     to always fail with ENOSYS.  Some functions are actually named
12260     something starting with __ and the normal name is an alias.  */
12261 #if defined __stub_shl_load || defined __stub___shl_load
12262 choke me
12263 #endif
12264
12265 int
12266 main ()
12267 {
12268 return shl_load ();
12269   ;
12270   return 0;
12271 }
12272 _ACEOF
12273 rm -f conftest.$ac_objext conftest$ac_exeext
12274 if { (ac_try="$ac_link"
12275 case "(($ac_try" in
12276   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12277   *) ac_try_echo=$ac_try;;
12278 esac
12279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12280   (eval "$ac_link") 2>conftest.er1
12281   ac_status=$?
12282   grep -v '^ *+' conftest.er1 >conftest.err
12283   rm -f conftest.er1
12284   cat conftest.err >&5
12285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12286   (exit $ac_status); } && {
12287          test -z "$ac_c_werror_flag" ||
12288          test ! -s conftest.err
12289        } && test -s conftest$ac_exeext &&
12290        $as_test_x conftest$ac_exeext; then
12291   ac_cv_func_shl_load=yes
12292 else
12293   echo "$as_me: failed program was:" >&5
12294 sed 's/^/| /' conftest.$ac_ext >&5
12295
12296         ac_cv_func_shl_load=no
12297 fi
12298
12299 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12300       conftest$ac_exeext conftest.$ac_ext
12301 fi
12302 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12303 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
12304 if test $ac_cv_func_shl_load = yes; then
12305   lt_cv_dlopen="shl_load"
12306 else
12307   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12308 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
12309 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12310   echo $ECHO_N "(cached) $ECHO_C" >&6
12311 else
12312   ac_check_lib_save_LIBS=$LIBS
12313 LIBS="-ldld  $LIBS"
12314 cat >conftest.$ac_ext <<_ACEOF
12315 /* confdefs.h.  */
12316 _ACEOF
12317 cat confdefs.h >>conftest.$ac_ext
12318 cat >>conftest.$ac_ext <<_ACEOF
12319 /* end confdefs.h.  */
12320
12321 /* Override any GCC internal prototype to avoid an error.
12322    Use char because int might match the return type of a GCC
12323    builtin and then its argument prototype would still apply.  */
12324 #ifdef __cplusplus
12325 extern "C"
12326 #endif
12327 char shl_load ();
12328 int
12329 main ()
12330 {
12331 return shl_load ();
12332   ;
12333   return 0;
12334 }
12335 _ACEOF
12336 rm -f conftest.$ac_objext conftest$ac_exeext
12337 if { (ac_try="$ac_link"
12338 case "(($ac_try" in
12339   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12340   *) ac_try_echo=$ac_try;;
12341 esac
12342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12343   (eval "$ac_link") 2>conftest.er1
12344   ac_status=$?
12345   grep -v '^ *+' conftest.er1 >conftest.err
12346   rm -f conftest.er1
12347   cat conftest.err >&5
12348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12349   (exit $ac_status); } && {
12350          test -z "$ac_c_werror_flag" ||
12351          test ! -s conftest.err
12352        } && test -s conftest$ac_exeext &&
12353        $as_test_x conftest$ac_exeext; then
12354   ac_cv_lib_dld_shl_load=yes
12355 else
12356   echo "$as_me: failed program was:" >&5
12357 sed 's/^/| /' conftest.$ac_ext >&5
12358
12359         ac_cv_lib_dld_shl_load=no
12360 fi
12361
12362 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12363       conftest$ac_exeext conftest.$ac_ext
12364 LIBS=$ac_check_lib_save_LIBS
12365 fi
12366 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12367 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
12368 if test $ac_cv_lib_dld_shl_load = yes; then
12369   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12370 else
12371   { echo "$as_me:$LINENO: checking for dlopen" >&5
12372 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
12373 if test "${ac_cv_func_dlopen+set}" = set; then
12374   echo $ECHO_N "(cached) $ECHO_C" >&6
12375 else
12376   cat >conftest.$ac_ext <<_ACEOF
12377 /* confdefs.h.  */
12378 _ACEOF
12379 cat confdefs.h >>conftest.$ac_ext
12380 cat >>conftest.$ac_ext <<_ACEOF
12381 /* end confdefs.h.  */
12382 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12383    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12384 #define dlopen innocuous_dlopen
12385
12386 /* System header to define __stub macros and hopefully few prototypes,
12387     which can conflict with char dlopen (); below.
12388     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12389     <limits.h> exists even on freestanding compilers.  */
12390
12391 #ifdef __STDC__
12392 # include <limits.h>
12393 #else
12394 # include <assert.h>
12395 #endif
12396
12397 #undef dlopen
12398
12399 /* Override any GCC internal prototype to avoid an error.
12400    Use char because int might match the return type of a GCC
12401    builtin and then its argument prototype would still apply.  */
12402 #ifdef __cplusplus
12403 extern "C"
12404 #endif
12405 char dlopen ();
12406 /* The GNU C library defines this for functions which it implements
12407     to always fail with ENOSYS.  Some functions are actually named
12408     something starting with __ and the normal name is an alias.  */
12409 #if defined __stub_dlopen || defined __stub___dlopen
12410 choke me
12411 #endif
12412
12413 int
12414 main ()
12415 {
12416 return dlopen ();
12417   ;
12418   return 0;
12419 }
12420 _ACEOF
12421 rm -f conftest.$ac_objext conftest$ac_exeext
12422 if { (ac_try="$ac_link"
12423 case "(($ac_try" in
12424   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12425   *) ac_try_echo=$ac_try;;
12426 esac
12427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12428   (eval "$ac_link") 2>conftest.er1
12429   ac_status=$?
12430   grep -v '^ *+' conftest.er1 >conftest.err
12431   rm -f conftest.er1
12432   cat conftest.err >&5
12433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12434   (exit $ac_status); } && {
12435          test -z "$ac_c_werror_flag" ||
12436          test ! -s conftest.err
12437        } && test -s conftest$ac_exeext &&
12438        $as_test_x conftest$ac_exeext; then
12439   ac_cv_func_dlopen=yes
12440 else
12441   echo "$as_me: failed program was:" >&5
12442 sed 's/^/| /' conftest.$ac_ext >&5
12443
12444         ac_cv_func_dlopen=no
12445 fi
12446
12447 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12448       conftest$ac_exeext conftest.$ac_ext
12449 fi
12450 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12451 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
12452 if test $ac_cv_func_dlopen = yes; then
12453   lt_cv_dlopen="dlopen"
12454 else
12455   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12456 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
12457 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12458   echo $ECHO_N "(cached) $ECHO_C" >&6
12459 else
12460   ac_check_lib_save_LIBS=$LIBS
12461 LIBS="-ldl  $LIBS"
12462 cat >conftest.$ac_ext <<_ACEOF
12463 /* confdefs.h.  */
12464 _ACEOF
12465 cat confdefs.h >>conftest.$ac_ext
12466 cat >>conftest.$ac_ext <<_ACEOF
12467 /* end confdefs.h.  */
12468
12469 /* Override any GCC internal prototype to avoid an error.
12470    Use char because int might match the return type of a GCC
12471    builtin and then its argument prototype would still apply.  */
12472 #ifdef __cplusplus
12473 extern "C"
12474 #endif
12475 char dlopen ();
12476 int
12477 main ()
12478 {
12479 return dlopen ();
12480   ;
12481   return 0;
12482 }
12483 _ACEOF
12484 rm -f conftest.$ac_objext conftest$ac_exeext
12485 if { (ac_try="$ac_link"
12486 case "(($ac_try" in
12487   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12488   *) ac_try_echo=$ac_try;;
12489 esac
12490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12491   (eval "$ac_link") 2>conftest.er1
12492   ac_status=$?
12493   grep -v '^ *+' conftest.er1 >conftest.err
12494   rm -f conftest.er1
12495   cat conftest.err >&5
12496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12497   (exit $ac_status); } && {
12498          test -z "$ac_c_werror_flag" ||
12499          test ! -s conftest.err
12500        } && test -s conftest$ac_exeext &&
12501        $as_test_x conftest$ac_exeext; then
12502   ac_cv_lib_dl_dlopen=yes
12503 else
12504   echo "$as_me: failed program was:" >&5
12505 sed 's/^/| /' conftest.$ac_ext >&5
12506
12507         ac_cv_lib_dl_dlopen=no
12508 fi
12509
12510 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12511       conftest$ac_exeext conftest.$ac_ext
12512 LIBS=$ac_check_lib_save_LIBS
12513 fi
12514 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12515 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
12516 if test $ac_cv_lib_dl_dlopen = yes; then
12517   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12518 else
12519   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12520 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
12521 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12522   echo $ECHO_N "(cached) $ECHO_C" >&6
12523 else
12524   ac_check_lib_save_LIBS=$LIBS
12525 LIBS="-lsvld  $LIBS"
12526 cat >conftest.$ac_ext <<_ACEOF
12527 /* confdefs.h.  */
12528 _ACEOF
12529 cat confdefs.h >>conftest.$ac_ext
12530 cat >>conftest.$ac_ext <<_ACEOF
12531 /* end confdefs.h.  */
12532
12533 /* Override any GCC internal prototype to avoid an error.
12534    Use char because int might match the return type of a GCC
12535    builtin and then its argument prototype would still apply.  */
12536 #ifdef __cplusplus
12537 extern "C"
12538 #endif
12539 char dlopen ();
12540 int
12541 main ()
12542 {
12543 return dlopen ();
12544   ;
12545   return 0;
12546 }
12547 _ACEOF
12548 rm -f conftest.$ac_objext conftest$ac_exeext
12549 if { (ac_try="$ac_link"
12550 case "(($ac_try" in
12551   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12552   *) ac_try_echo=$ac_try;;
12553 esac
12554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12555   (eval "$ac_link") 2>conftest.er1
12556   ac_status=$?
12557   grep -v '^ *+' conftest.er1 >conftest.err
12558   rm -f conftest.er1
12559   cat conftest.err >&5
12560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12561   (exit $ac_status); } && {
12562          test -z "$ac_c_werror_flag" ||
12563          test ! -s conftest.err
12564        } && test -s conftest$ac_exeext &&
12565        $as_test_x conftest$ac_exeext; then
12566   ac_cv_lib_svld_dlopen=yes
12567 else
12568   echo "$as_me: failed program was:" >&5
12569 sed 's/^/| /' conftest.$ac_ext >&5
12570
12571         ac_cv_lib_svld_dlopen=no
12572 fi
12573
12574 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12575       conftest$ac_exeext conftest.$ac_ext
12576 LIBS=$ac_check_lib_save_LIBS
12577 fi
12578 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12579 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
12580 if test $ac_cv_lib_svld_dlopen = yes; then
12581   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12582 else
12583   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12584 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
12585 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12586   echo $ECHO_N "(cached) $ECHO_C" >&6
12587 else
12588   ac_check_lib_save_LIBS=$LIBS
12589 LIBS="-ldld  $LIBS"
12590 cat >conftest.$ac_ext <<_ACEOF
12591 /* confdefs.h.  */
12592 _ACEOF
12593 cat confdefs.h >>conftest.$ac_ext
12594 cat >>conftest.$ac_ext <<_ACEOF
12595 /* end confdefs.h.  */
12596
12597 /* Override any GCC internal prototype to avoid an error.
12598    Use char because int might match the return type of a GCC
12599    builtin and then its argument prototype would still apply.  */
12600 #ifdef __cplusplus
12601 extern "C"
12602 #endif
12603 char dld_link ();
12604 int
12605 main ()
12606 {
12607 return dld_link ();
12608   ;
12609   return 0;
12610 }
12611 _ACEOF
12612 rm -f conftest.$ac_objext conftest$ac_exeext
12613 if { (ac_try="$ac_link"
12614 case "(($ac_try" in
12615   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12616   *) ac_try_echo=$ac_try;;
12617 esac
12618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12619   (eval "$ac_link") 2>conftest.er1
12620   ac_status=$?
12621   grep -v '^ *+' conftest.er1 >conftest.err
12622   rm -f conftest.er1
12623   cat conftest.err >&5
12624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12625   (exit $ac_status); } && {
12626          test -z "$ac_c_werror_flag" ||
12627          test ! -s conftest.err
12628        } && test -s conftest$ac_exeext &&
12629        $as_test_x conftest$ac_exeext; then
12630   ac_cv_lib_dld_dld_link=yes
12631 else
12632   echo "$as_me: failed program was:" >&5
12633 sed 's/^/| /' conftest.$ac_ext >&5
12634
12635         ac_cv_lib_dld_dld_link=no
12636 fi
12637
12638 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12639       conftest$ac_exeext conftest.$ac_ext
12640 LIBS=$ac_check_lib_save_LIBS
12641 fi
12642 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12643 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
12644 if test $ac_cv_lib_dld_dld_link = yes; then
12645   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12646 fi
12647
12648
12649 fi
12650
12651
12652 fi
12653
12654
12655 fi
12656
12657
12658 fi
12659
12660
12661 fi
12662
12663     ;;
12664   esac
12665
12666   if test "x$lt_cv_dlopen" != xno; then
12667     enable_dlopen=yes
12668   else
12669     enable_dlopen=no
12670   fi
12671
12672   case $lt_cv_dlopen in
12673   dlopen)
12674     save_CPPFLAGS="$CPPFLAGS"
12675     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12676
12677     save_LDFLAGS="$LDFLAGS"
12678     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12679
12680     save_LIBS="$LIBS"
12681     LIBS="$lt_cv_dlopen_libs $LIBS"
12682
12683     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12684 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
12685 if test "${lt_cv_dlopen_self+set}" = set; then
12686   echo $ECHO_N "(cached) $ECHO_C" >&6
12687 else
12688           if test "$cross_compiling" = yes; then :
12689   lt_cv_dlopen_self=cross
12690 else
12691   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12692   lt_status=$lt_dlunknown
12693   cat > conftest.$ac_ext <<_LT_EOF
12694 #line 12694 "configure"
12695 #include "confdefs.h"
12696
12697 #if HAVE_DLFCN_H
12698 #include <dlfcn.h>
12699 #endif
12700
12701 #include <stdio.h>
12702
12703 #ifdef RTLD_GLOBAL
12704 #  define LT_DLGLOBAL           RTLD_GLOBAL
12705 #else
12706 #  ifdef DL_GLOBAL
12707 #    define LT_DLGLOBAL         DL_GLOBAL
12708 #  else
12709 #    define LT_DLGLOBAL         0
12710 #  endif
12711 #endif
12712
12713 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12714    find out it does not work in some platform. */
12715 #ifndef LT_DLLAZY_OR_NOW
12716 #  ifdef RTLD_LAZY
12717 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12718 #  else
12719 #    ifdef DL_LAZY
12720 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12721 #    else
12722 #      ifdef RTLD_NOW
12723 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12724 #      else
12725 #        ifdef DL_NOW
12726 #          define LT_DLLAZY_OR_NOW      DL_NOW
12727 #        else
12728 #          define LT_DLLAZY_OR_NOW      0
12729 #        endif
12730 #      endif
12731 #    endif
12732 #  endif
12733 #endif
12734
12735 void fnord() { int i=42;}
12736 int main ()
12737 {
12738   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12739   int status = $lt_dlunknown;
12740
12741   if (self)
12742     {
12743       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12744       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12745       /* dlclose (self); */
12746     }
12747   else
12748     puts (dlerror ());
12749
12750   return status;
12751 }
12752 _LT_EOF
12753   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12754   (eval $ac_link) 2>&5
12755   ac_status=$?
12756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12757   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12758     (./conftest; exit; ) >&5 2>/dev/null
12759     lt_status=$?
12760     case x$lt_status in
12761       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12762       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12763       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12764     esac
12765   else :
12766     # compilation failed
12767     lt_cv_dlopen_self=no
12768   fi
12769 fi
12770 rm -fr conftest*
12771
12772
12773 fi
12774 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12775 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
12776
12777     if test "x$lt_cv_dlopen_self" = xyes; then
12778       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12779       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12780 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
12781 if test "${lt_cv_dlopen_self_static+set}" = set; then
12782   echo $ECHO_N "(cached) $ECHO_C" >&6
12783 else
12784           if test "$cross_compiling" = yes; then :
12785   lt_cv_dlopen_self_static=cross
12786 else
12787   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12788   lt_status=$lt_dlunknown
12789   cat > conftest.$ac_ext <<_LT_EOF
12790 #line 12790 "configure"
12791 #include "confdefs.h"
12792
12793 #if HAVE_DLFCN_H
12794 #include <dlfcn.h>
12795 #endif
12796
12797 #include <stdio.h>
12798
12799 #ifdef RTLD_GLOBAL
12800 #  define LT_DLGLOBAL           RTLD_GLOBAL
12801 #else
12802 #  ifdef DL_GLOBAL
12803 #    define LT_DLGLOBAL         DL_GLOBAL
12804 #  else
12805 #    define LT_DLGLOBAL         0
12806 #  endif
12807 #endif
12808
12809 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12810    find out it does not work in some platform. */
12811 #ifndef LT_DLLAZY_OR_NOW
12812 #  ifdef RTLD_LAZY
12813 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12814 #  else
12815 #    ifdef DL_LAZY
12816 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12817 #    else
12818 #      ifdef RTLD_NOW
12819 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12820 #      else
12821 #        ifdef DL_NOW
12822 #          define LT_DLLAZY_OR_NOW      DL_NOW
12823 #        else
12824 #          define LT_DLLAZY_OR_NOW      0
12825 #        endif
12826 #      endif
12827 #    endif
12828 #  endif
12829 #endif
12830
12831 void fnord() { int i=42;}
12832 int main ()
12833 {
12834   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12835   int status = $lt_dlunknown;
12836
12837   if (self)
12838     {
12839       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12840       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12841       /* dlclose (self); */
12842     }
12843   else
12844     puts (dlerror ());
12845
12846   return status;
12847 }
12848 _LT_EOF
12849   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12850   (eval $ac_link) 2>&5
12851   ac_status=$?
12852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12853   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12854     (./conftest; exit; ) >&5 2>/dev/null
12855     lt_status=$?
12856     case x$lt_status in
12857       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12858       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12859       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12860     esac
12861   else :
12862     # compilation failed
12863     lt_cv_dlopen_self_static=no
12864   fi
12865 fi
12866 rm -fr conftest*
12867
12868
12869 fi
12870 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12871 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
12872     fi
12873
12874     CPPFLAGS="$save_CPPFLAGS"
12875     LDFLAGS="$save_LDFLAGS"
12876     LIBS="$save_LIBS"
12877     ;;
12878   esac
12879
12880   case $lt_cv_dlopen_self in
12881   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12882   *) enable_dlopen_self=unknown ;;
12883   esac
12884
12885   case $lt_cv_dlopen_self_static in
12886   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12887   *) enable_dlopen_self_static=unknown ;;
12888   esac
12889 fi
12890
12891
12892
12893
12894
12895
12896
12897
12898
12899
12900
12901
12902
12903
12904
12905
12906
12907 striplib=
12908 old_striplib=
12909 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12910 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
12911 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12912   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12913   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12914   { echo "$as_me:$LINENO: result: yes" >&5
12915 echo "${ECHO_T}yes" >&6; }
12916 else
12917 # FIXME - insert some real tests, host_os isn't really good enough
12918   case $host_os in
12919   darwin*)
12920     if test -n "$STRIP" ; then
12921       striplib="$STRIP -x"
12922       old_striplib="$STRIP -S"
12923       { echo "$as_me:$LINENO: result: yes" >&5
12924 echo "${ECHO_T}yes" >&6; }
12925     else
12926       { echo "$as_me:$LINENO: result: no" >&5
12927 echo "${ECHO_T}no" >&6; }
12928     fi
12929     ;;
12930   *)
12931     { echo "$as_me:$LINENO: result: no" >&5
12932 echo "${ECHO_T}no" >&6; }
12933     ;;
12934   esac
12935 fi
12936
12937
12938
12939
12940
12941
12942
12943
12944
12945
12946
12947
12948   # Report which library types will actually be built
12949   { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12950 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
12951   { echo "$as_me:$LINENO: result: $can_build_shared" >&5
12952 echo "${ECHO_T}$can_build_shared" >&6; }
12953
12954   { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12955 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
12956   test "$can_build_shared" = "no" && enable_shared=no
12957
12958   # On AIX, shared libraries and static libraries use the same namespace, and
12959   # are all built from PIC.
12960   case $host_os in
12961   aix3*)
12962     test "$enable_shared" = yes && enable_static=no
12963     if test -n "$RANLIB"; then
12964       archive_cmds="$archive_cmds~\$RANLIB \$lib"
12965       postinstall_cmds='$RANLIB $lib'
12966     fi
12967     ;;
12968
12969   aix[4-9]*)
12970     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12971       test "$enable_shared" = yes && enable_static=no
12972     fi
12973     ;;
12974   esac
12975   { echo "$as_me:$LINENO: result: $enable_shared" >&5
12976 echo "${ECHO_T}$enable_shared" >&6; }
12977
12978   { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12979 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
12980   # Make sure either enable_shared or enable_static is yes.
12981   test "$enable_shared" = yes || enable_static=yes
12982   { echo "$as_me:$LINENO: result: $enable_static" >&5
12983 echo "${ECHO_T}$enable_static" >&6; }
12984
12985
12986
12987
12988 fi
12989 ac_ext=c
12990 ac_cpp='$CPP $CPPFLAGS'
12991 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12992 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12993 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12994
12995 CC="$lt_save_CC"
12996
12997
12998 ac_ext=cpp
12999 ac_cpp='$CXXCPP $CPPFLAGS'
13000 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13001 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13002 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13003
13004 archive_cmds_need_lc_CXX=no
13005 allow_undefined_flag_CXX=
13006 always_export_symbols_CXX=no
13007 archive_expsym_cmds_CXX=
13008 compiler_needs_object_CXX=no
13009 export_dynamic_flag_spec_CXX=
13010 hardcode_direct_CXX=no
13011 hardcode_direct_absolute_CXX=no
13012 hardcode_libdir_flag_spec_CXX=
13013 hardcode_libdir_flag_spec_ld_CXX=
13014 hardcode_libdir_separator_CXX=
13015 hardcode_minus_L_CXX=no
13016 hardcode_shlibpath_var_CXX=unsupported
13017 hardcode_automatic_CXX=no
13018 inherit_rpath_CXX=no
13019 module_cmds_CXX=
13020 module_expsym_cmds_CXX=
13021 link_all_deplibs_CXX=unknown
13022 old_archive_cmds_CXX=$old_archive_cmds
13023 no_undefined_flag_CXX=
13024 whole_archive_flag_spec_CXX=
13025 enable_shared_with_static_runtimes_CXX=no
13026
13027 # Source file extension for C++ test sources.
13028 ac_ext=cpp
13029
13030 # Object file extension for compiled C++ test sources.
13031 objext=o
13032 objext_CXX=$objext
13033
13034 # No sense in running all these tests if we already determined that
13035 # the CXX compiler isn't working.  Some variables (like enable_shared)
13036 # are currently assumed to apply to all compilers on this platform,
13037 # and will be corrupted by setting them based on a non-working compiler.
13038 if test "$_lt_caught_CXX_error" != yes; then
13039   # Code to be used in simple compile tests
13040   lt_simple_compile_test_code="int some_variable = 0;"
13041
13042   # Code to be used in simple link tests
13043   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13044
13045   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13046
13047
13048
13049
13050
13051
13052 # If no C compiler was specified, use CC.
13053 LTCC=${LTCC-"$CC"}
13054
13055 # If no C compiler flags were specified, use CFLAGS.
13056 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13057
13058 # Allow CC to be a program name with arguments.
13059 compiler=$CC
13060
13061
13062   # save warnings/boilerplate of simple test code
13063   ac_outfile=conftest.$ac_objext
13064 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13065 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13066 _lt_compiler_boilerplate=`cat conftest.err`
13067 $RM conftest*
13068
13069   ac_outfile=conftest.$ac_objext
13070 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13071 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13072 _lt_linker_boilerplate=`cat conftest.err`
13073 $RM -r conftest*
13074
13075
13076   # Allow CC to be a program name with arguments.
13077   lt_save_CC=$CC
13078   lt_save_LD=$LD
13079   lt_save_GCC=$GCC
13080   GCC=$GXX
13081   lt_save_with_gnu_ld=$with_gnu_ld
13082   lt_save_path_LD=$lt_cv_path_LD
13083   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13084     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13085   else
13086     $as_unset lt_cv_prog_gnu_ld
13087   fi
13088   if test -n "${lt_cv_path_LDCXX+set}"; then
13089     lt_cv_path_LD=$lt_cv_path_LDCXX
13090   else
13091     $as_unset lt_cv_path_LD
13092   fi
13093   test -z "${LDCXX+set}" || LD=$LDCXX
13094   CC=${CXX-"c++"}
13095   compiler=$CC
13096   compiler_CXX=$CC
13097   for cc_temp in $compiler""; do
13098   case $cc_temp in
13099     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13100     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13101     \-*) ;;
13102     *) break;;
13103   esac
13104 done
13105 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13106
13107
13108   if test -n "$compiler"; then
13109     # We don't want -fno-exception when compiling C++ code, so set the
13110     # no_builtin_flag separately
13111     if test "$GXX" = yes; then
13112       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13113     else
13114       lt_prog_compiler_no_builtin_flag_CXX=
13115     fi
13116
13117     if test "$GXX" = yes; then
13118       # Set up default GNU C++ configuration
13119
13120
13121
13122 # Check whether --with-gnu-ld was given.
13123 if test "${with_gnu_ld+set}" = set; then
13124   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13125 else
13126   with_gnu_ld=no
13127 fi
13128
13129 ac_prog=ld
13130 if test "$GCC" = yes; then
13131   # Check if gcc -print-prog-name=ld gives a path.
13132   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
13133 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
13134   case $host in
13135   *-*-mingw*)
13136     # gcc leaves a trailing carriage return which upsets mingw
13137     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13138   *)
13139     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13140   esac
13141   case $ac_prog in
13142     # Accept absolute paths.
13143     [\\/]* | ?:[\\/]*)
13144       re_direlt='/[^/][^/]*/\.\./'
13145       # Canonicalize the pathname of ld
13146       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13147       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13148         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13149       done
13150       test -z "$LD" && LD="$ac_prog"
13151       ;;
13152   "")
13153     # If it fails, then pretend we aren't using GCC.
13154     ac_prog=ld
13155     ;;
13156   *)
13157     # If it is relative, then search for the first ld in PATH.
13158     with_gnu_ld=unknown
13159     ;;
13160   esac
13161 elif test "$with_gnu_ld" = yes; then
13162   { echo "$as_me:$LINENO: checking for GNU ld" >&5
13163 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
13164 else
13165   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
13166 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
13167 fi
13168 if test "${lt_cv_path_LD+set}" = set; then
13169   echo $ECHO_N "(cached) $ECHO_C" >&6
13170 else
13171   if test -z "$LD"; then
13172   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13173   for ac_dir in $PATH; do
13174     IFS="$lt_save_ifs"
13175     test -z "$ac_dir" && ac_dir=.
13176     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13177       lt_cv_path_LD="$ac_dir/$ac_prog"
13178       # Check to see if the program is GNU ld.  I'd rather use --version,
13179       # but apparently some variants of GNU ld only accept -v.
13180       # Break only if it was the GNU/non-GNU ld that we prefer.
13181       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13182       *GNU* | *'with BFD'*)
13183         test "$with_gnu_ld" != no && break
13184         ;;
13185       *)
13186         test "$with_gnu_ld" != yes && break
13187         ;;
13188       esac
13189     fi
13190   done
13191   IFS="$lt_save_ifs"
13192 else
13193   lt_cv_path_LD="$LD" # Let the user override the test with a path.
13194 fi
13195 fi
13196
13197 LD="$lt_cv_path_LD"
13198 if test -n "$LD"; then
13199   { echo "$as_me:$LINENO: result: $LD" >&5
13200 echo "${ECHO_T}$LD" >&6; }
13201 else
13202   { echo "$as_me:$LINENO: result: no" >&5
13203 echo "${ECHO_T}no" >&6; }
13204 fi
13205 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
13206 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
13207    { (exit 1); exit 1; }; }
13208 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
13209 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
13210 if test "${lt_cv_prog_gnu_ld+set}" = set; then
13211   echo $ECHO_N "(cached) $ECHO_C" >&6
13212 else
13213   # I'd rather use --version here, but apparently some GNU lds only accept -v.
13214 case `$LD -v 2>&1 </dev/null` in
13215 *GNU* | *'with BFD'*)
13216   lt_cv_prog_gnu_ld=yes
13217   ;;
13218 *)
13219   lt_cv_prog_gnu_ld=no
13220   ;;
13221 esac
13222 fi
13223 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
13224 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
13225 with_gnu_ld=$lt_cv_prog_gnu_ld
13226
13227
13228
13229
13230
13231
13232
13233       # Check if GNU C++ uses GNU ld as the underlying linker, since the
13234       # archiving commands below assume that GNU ld is being used.
13235       if test "$with_gnu_ld" = yes; then
13236         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13237         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'
13238
13239         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13240         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13241
13242         # If archive_cmds runs LD, not CC, wlarc should be empty
13243         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13244         #     investigate it a little bit more. (MM)
13245         wlarc='${wl}'
13246
13247         # ancient GNU ld didn't support --whole-archive et. al.
13248         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13249           $GREP 'no-whole-archive' > /dev/null; then
13250           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13251         else
13252           whole_archive_flag_spec_CXX=
13253         fi
13254       else
13255         with_gnu_ld=no
13256         wlarc=
13257
13258         # A generic and very simple default shared library creation
13259         # command for GNU C++ for the case where it uses the native
13260         # linker, instead of GNU ld.  If possible, this setting should
13261         # overridden to take advantage of the native linker features on
13262         # the platform it is being used on.
13263         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13264       fi
13265
13266       # Commands to make compiler produce verbose output that lists
13267       # what "hidden" libraries, object files and flags are used when
13268       # linking a shared library.
13269       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13270
13271     else
13272       GXX=no
13273       with_gnu_ld=no
13274       wlarc=
13275     fi
13276
13277     # PORTME: fill in a description of your system's C++ link characteristics
13278     { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13279 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
13280     ld_shlibs_CXX=yes
13281     case $host_os in
13282       aix3*)
13283         # FIXME: insert proper C++ library support
13284         ld_shlibs_CXX=no
13285         ;;
13286       aix[4-9]*)
13287         if test "$host_cpu" = ia64; then
13288           # On IA64, the linker does run time linking by default, so we don't
13289           # have to do anything special.
13290           aix_use_runtimelinking=no
13291           exp_sym_flag='-Bexport'
13292           no_entry_flag=""
13293         else
13294           aix_use_runtimelinking=no
13295
13296           # Test if we are trying to use run time linking or normal
13297           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13298           # need to do runtime linking.
13299           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13300             for ld_flag in $LDFLAGS; do
13301               case $ld_flag in
13302               *-brtl*)
13303                 aix_use_runtimelinking=yes
13304                 break
13305                 ;;
13306               esac
13307             done
13308             ;;
13309           esac
13310
13311           exp_sym_flag='-bexport'
13312           no_entry_flag='-bnoentry'
13313         fi
13314
13315         # When large executables or shared objects are built, AIX ld can
13316         # have problems creating the table of contents.  If linking a library
13317         # or program results in "error TOC overflow" add -mminimal-toc to
13318         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13319         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13320
13321         archive_cmds_CXX=''
13322         hardcode_direct_CXX=yes
13323         hardcode_direct_absolute_CXX=yes
13324         hardcode_libdir_separator_CXX=':'
13325         link_all_deplibs_CXX=yes
13326         file_list_spec_CXX='${wl}-f,'
13327
13328         if test "$GXX" = yes; then
13329           case $host_os in aix4.[012]|aix4.[012].*)
13330           # We only want to do this on AIX 4.2 and lower, the check
13331           # below for broken collect2 doesn't work under 4.3+
13332           collect2name=`${CC} -print-prog-name=collect2`
13333           if test -f "$collect2name" &&
13334              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13335           then
13336             # We have reworked collect2
13337             :
13338           else
13339             # We have old collect2
13340             hardcode_direct_CXX=unsupported
13341             # It fails to find uninstalled libraries when the uninstalled
13342             # path is not listed in the libpath.  Setting hardcode_minus_L
13343             # to unsupported forces relinking
13344             hardcode_minus_L_CXX=yes
13345             hardcode_libdir_flag_spec_CXX='-L$libdir'
13346             hardcode_libdir_separator_CXX=
13347           fi
13348           esac
13349           shared_flag='-shared'
13350           if test "$aix_use_runtimelinking" = yes; then
13351             shared_flag="$shared_flag "'${wl}-G'
13352           fi
13353         else
13354           # not using gcc
13355           if test "$host_cpu" = ia64; then
13356           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13357           # chokes on -Wl,-G. The following line is correct:
13358           shared_flag='-G'
13359           else
13360             if test "$aix_use_runtimelinking" = yes; then
13361               shared_flag='${wl}-G'
13362             else
13363               shared_flag='${wl}-bM:SRE'
13364             fi
13365           fi
13366         fi
13367
13368         export_dynamic_flag_spec_CXX='${wl}-bexpall'
13369         # It seems that -bexpall does not export symbols beginning with
13370         # underscore (_), so it is better to generate a list of symbols to
13371         # export.
13372         always_export_symbols_CXX=yes
13373         if test "$aix_use_runtimelinking" = yes; then
13374           # Warning - without using the other runtime loading flags (-brtl),
13375           # -berok will link without error, but may produce a broken library.
13376           allow_undefined_flag_CXX='-berok'
13377           # Determine the default libpath from the value encoded in an empty
13378           # executable.
13379           cat >conftest.$ac_ext <<_ACEOF
13380 /* confdefs.h.  */
13381 _ACEOF
13382 cat confdefs.h >>conftest.$ac_ext
13383 cat >>conftest.$ac_ext <<_ACEOF
13384 /* end confdefs.h.  */
13385
13386 int
13387 main ()
13388 {
13389
13390   ;
13391   return 0;
13392 }
13393 _ACEOF
13394 rm -f conftest.$ac_objext conftest$ac_exeext
13395 if { (ac_try="$ac_link"
13396 case "(($ac_try" in
13397   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13398   *) ac_try_echo=$ac_try;;
13399 esac
13400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13401   (eval "$ac_link") 2>conftest.er1
13402   ac_status=$?
13403   grep -v '^ *+' conftest.er1 >conftest.err
13404   rm -f conftest.er1
13405   cat conftest.err >&5
13406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13407   (exit $ac_status); } && {
13408          test -z "$ac_cxx_werror_flag" ||
13409          test ! -s conftest.err
13410        } && test -s conftest$ac_exeext &&
13411        $as_test_x conftest$ac_exeext; then
13412
13413 lt_aix_libpath_sed='
13414     /Import File Strings/,/^$/ {
13415         /^0/ {
13416             s/^0  *\(.*\)$/\1/
13417             p
13418         }
13419     }'
13420 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13421 # Check for a 64-bit object if we didn't find anything.
13422 if test -z "$aix_libpath"; then
13423   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13424 fi
13425 else
13426   echo "$as_me: failed program was:" >&5
13427 sed 's/^/| /' conftest.$ac_ext >&5
13428
13429
13430 fi
13431
13432 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13433       conftest$ac_exeext conftest.$ac_ext
13434 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13435
13436           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13437
13438           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"
13439         else
13440           if test "$host_cpu" = ia64; then
13441             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13442             allow_undefined_flag_CXX="-z nodefs"
13443             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"
13444           else
13445             # Determine the default libpath from the value encoded in an
13446             # empty executable.
13447             cat >conftest.$ac_ext <<_ACEOF
13448 /* confdefs.h.  */
13449 _ACEOF
13450 cat confdefs.h >>conftest.$ac_ext
13451 cat >>conftest.$ac_ext <<_ACEOF
13452 /* end confdefs.h.  */
13453
13454 int
13455 main ()
13456 {
13457
13458   ;
13459   return 0;
13460 }
13461 _ACEOF
13462 rm -f conftest.$ac_objext conftest$ac_exeext
13463 if { (ac_try="$ac_link"
13464 case "(($ac_try" in
13465   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13466   *) ac_try_echo=$ac_try;;
13467 esac
13468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13469   (eval "$ac_link") 2>conftest.er1
13470   ac_status=$?
13471   grep -v '^ *+' conftest.er1 >conftest.err
13472   rm -f conftest.er1
13473   cat conftest.err >&5
13474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13475   (exit $ac_status); } && {
13476          test -z "$ac_cxx_werror_flag" ||
13477          test ! -s conftest.err
13478        } && test -s conftest$ac_exeext &&
13479        $as_test_x conftest$ac_exeext; then
13480
13481 lt_aix_libpath_sed='
13482     /Import File Strings/,/^$/ {
13483         /^0/ {
13484             s/^0  *\(.*\)$/\1/
13485             p
13486         }
13487     }'
13488 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13489 # Check for a 64-bit object if we didn't find anything.
13490 if test -z "$aix_libpath"; then
13491   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13492 fi
13493 else
13494   echo "$as_me: failed program was:" >&5
13495 sed 's/^/| /' conftest.$ac_ext >&5
13496
13497
13498 fi
13499
13500 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13501       conftest$ac_exeext conftest.$ac_ext
13502 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13503
13504             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13505             # Warning - without using the other run time loading flags,
13506             # -berok will link without error, but may produce a broken library.
13507             no_undefined_flag_CXX=' ${wl}-bernotok'
13508             allow_undefined_flag_CXX=' ${wl}-berok'
13509             # Exported symbols can be pulled into shared objects from archives
13510             whole_archive_flag_spec_CXX='$convenience'
13511             archive_cmds_need_lc_CXX=yes
13512             # This is similar to how AIX traditionally builds its shared
13513             # libraries.
13514             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'
13515           fi
13516         fi
13517         ;;
13518
13519       beos*)
13520         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13521           allow_undefined_flag_CXX=unsupported
13522           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13523           # support --undefined.  This deserves some investigation.  FIXME
13524           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13525         else
13526           ld_shlibs_CXX=no
13527         fi
13528         ;;
13529
13530       chorus*)
13531         case $cc_basename in
13532           *)
13533           # FIXME: insert proper C++ library support
13534           ld_shlibs_CXX=no
13535           ;;
13536         esac
13537         ;;
13538
13539       cygwin* | mingw* | pw32* | cegcc*)
13540         # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13541         # as there is no search path for DLLs.
13542         hardcode_libdir_flag_spec_CXX='-L$libdir'
13543         allow_undefined_flag_CXX=unsupported
13544         always_export_symbols_CXX=no
13545         enable_shared_with_static_runtimes_CXX=yes
13546
13547         if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13548           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'
13549           # If the export-symbols file already is a .def file (1st line
13550           # is EXPORTS), use it as is; otherwise, prepend...
13551           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13552             cp $export_symbols $output_objdir/$soname.def;
13553           else
13554             echo EXPORTS > $output_objdir/$soname.def;
13555             cat $export_symbols >> $output_objdir/$soname.def;
13556           fi~
13557           $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'
13558         else
13559           ld_shlibs_CXX=no
13560         fi
13561         ;;
13562       darwin* | rhapsody*)
13563
13564
13565   archive_cmds_need_lc_CXX=no
13566   hardcode_direct_CXX=no
13567   hardcode_automatic_CXX=yes
13568   hardcode_shlibpath_var_CXX=unsupported
13569   whole_archive_flag_spec_CXX=''
13570   link_all_deplibs_CXX=yes
13571   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13572   case $cc_basename in
13573      ifort*) _lt_dar_can_shared=yes ;;
13574      *) _lt_dar_can_shared=$GCC ;;
13575   esac
13576   if test "$_lt_dar_can_shared" = "yes"; then
13577     output_verbose_link_cmd=echo
13578     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}"
13579     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13580     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}"
13581     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}"
13582        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13583       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}"
13584       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}"
13585     fi
13586
13587   else
13588   ld_shlibs_CXX=no
13589   fi
13590
13591         ;;
13592
13593       dgux*)
13594         case $cc_basename in
13595           ec++*)
13596             # FIXME: insert proper C++ library support
13597             ld_shlibs_CXX=no
13598             ;;
13599           ghcx*)
13600             # Green Hills C++ Compiler
13601             # FIXME: insert proper C++ library support
13602             ld_shlibs_CXX=no
13603             ;;
13604           *)
13605             # FIXME: insert proper C++ library support
13606             ld_shlibs_CXX=no
13607             ;;
13608         esac
13609         ;;
13610
13611       freebsd[12]*)
13612         # C++ shared libraries reported to be fairly broken before
13613         # switch to ELF
13614         ld_shlibs_CXX=no
13615         ;;
13616
13617       freebsd-elf*)
13618         archive_cmds_need_lc_CXX=no
13619         ;;
13620
13621       freebsd* | dragonfly*)
13622         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13623         # conventions
13624         ld_shlibs_CXX=yes
13625         ;;
13626
13627       gnu*)
13628         ;;
13629
13630       hpux9*)
13631         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13632         hardcode_libdir_separator_CXX=:
13633         export_dynamic_flag_spec_CXX='${wl}-E'
13634         hardcode_direct_CXX=yes
13635         hardcode_minus_L_CXX=yes # Not in the search PATH,
13636                                              # but as the default
13637                                              # location of the library.
13638
13639         case $cc_basename in
13640           CC*)
13641             # FIXME: insert proper C++ library support
13642             ld_shlibs_CXX=no
13643             ;;
13644           aCC*)
13645             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'
13646             # Commands to make compiler produce verbose output that lists
13647             # what "hidden" libraries, object files and flags are used when
13648             # linking a shared library.
13649             #
13650             # There doesn't appear to be a way to prevent this compiler from
13651             # explicitly linking system object files so we need to strip them
13652             # from the output so that they don't get included in the library
13653             # dependencies.
13654             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'
13655             ;;
13656           *)
13657             if test "$GXX" = yes; then
13658               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'
13659             else
13660               # FIXME: insert proper C++ library support
13661               ld_shlibs_CXX=no
13662             fi
13663             ;;
13664         esac
13665         ;;
13666
13667       hpux10*|hpux11*)
13668         if test $with_gnu_ld = no; then
13669           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13670           hardcode_libdir_separator_CXX=:
13671
13672           case $host_cpu in
13673             hppa*64*|ia64*)
13674               ;;
13675             *)
13676               export_dynamic_flag_spec_CXX='${wl}-E'
13677               ;;
13678           esac
13679         fi
13680         case $host_cpu in
13681           hppa*64*|ia64*)
13682             hardcode_direct_CXX=no
13683             hardcode_shlibpath_var_CXX=no
13684             ;;
13685           *)
13686             hardcode_direct_CXX=yes
13687             hardcode_direct_absolute_CXX=yes
13688             hardcode_minus_L_CXX=yes # Not in the search PATH,
13689                                                  # but as the default
13690                                                  # location of the library.
13691             ;;
13692         esac
13693
13694         case $cc_basename in
13695           CC*)
13696             # FIXME: insert proper C++ library support
13697             ld_shlibs_CXX=no
13698             ;;
13699           aCC*)
13700             case $host_cpu in
13701               hppa*64*)
13702                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13703                 ;;
13704               ia64*)
13705                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13706                 ;;
13707               *)
13708                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13709                 ;;
13710             esac
13711             # Commands to make compiler produce verbose output that lists
13712             # what "hidden" libraries, object files and flags are used when
13713             # linking a shared library.
13714             #
13715             # There doesn't appear to be a way to prevent this compiler from
13716             # explicitly linking system object files so we need to strip them
13717             # from the output so that they don't get included in the library
13718             # dependencies.
13719             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'
13720             ;;
13721           *)
13722             if test "$GXX" = yes; then
13723               if test $with_gnu_ld = no; then
13724                 case $host_cpu in
13725                   hppa*64*)
13726                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13727                     ;;
13728                   ia64*)
13729                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13730                     ;;
13731                   *)
13732                     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'
13733                     ;;
13734                 esac
13735               fi
13736             else
13737               # FIXME: insert proper C++ library support
13738               ld_shlibs_CXX=no
13739             fi
13740             ;;
13741         esac
13742         ;;
13743
13744       interix[3-9]*)
13745         hardcode_direct_CXX=no
13746         hardcode_shlibpath_var_CXX=no
13747         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13748         export_dynamic_flag_spec_CXX='${wl}-E'
13749         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13750         # Instead, shared libraries are loaded at an image base (0x10000000 by
13751         # default) and relocated if they conflict, which is a slow very memory
13752         # consuming and fragmenting process.  To avoid this, we pick a random,
13753         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13754         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13755         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'
13756         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'
13757         ;;
13758       irix5* | irix6*)
13759         case $cc_basename in
13760           CC*)
13761             # SGI C++
13762             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'
13763
13764             # Archives containing C++ object files must be created using
13765             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
13766             # necessary to make sure instantiated templates are included
13767             # in the archive.
13768             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13769             ;;
13770           *)
13771             if test "$GXX" = yes; then
13772               if test "$with_gnu_ld" = no; then
13773                 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'
13774               else
13775                 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'
13776               fi
13777             fi
13778             link_all_deplibs_CXX=yes
13779             ;;
13780         esac
13781         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13782         hardcode_libdir_separator_CXX=:
13783         inherit_rpath_CXX=yes
13784         ;;
13785
13786       linux* | k*bsd*-gnu)
13787         case $cc_basename in
13788           KCC*)
13789             # Kuck and Associates, Inc. (KAI) C++ Compiler
13790
13791             # KCC will only create a shared library if the output file
13792             # ends with ".so" (or ".sl" for HP-UX), so rename the library
13793             # to its proper name (with version) after linking.
13794             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'
13795             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'
13796             # Commands to make compiler produce verbose output that lists
13797             # what "hidden" libraries, object files and flags are used when
13798             # linking a shared library.
13799             #
13800             # There doesn't appear to be a way to prevent this compiler from
13801             # explicitly linking system object files so we need to strip them
13802             # from the output so that they don't get included in the library
13803             # dependencies.
13804             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'
13805
13806             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13807             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13808
13809             # Archives containing C++ object files must be created using
13810             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13811             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13812             ;;
13813           icpc* | ecpc* )
13814             # Intel C++
13815             with_gnu_ld=yes
13816             # version 8.0 and above of icpc choke on multiply defined symbols
13817             # if we add $predep_objects and $postdep_objects, however 7.1 and
13818             # earlier do not add the objects themselves.
13819             case `$CC -V 2>&1` in
13820               *"Version 7."*)
13821                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13822                 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'
13823                 ;;
13824               *)  # Version 8.0 or newer
13825                 tmp_idyn=
13826                 case $host_cpu in
13827                   ia64*) tmp_idyn=' -i_dynamic';;
13828                 esac
13829                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13830                 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'
13831                 ;;
13832             esac
13833             archive_cmds_need_lc_CXX=no
13834             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13835             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13836             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13837             ;;
13838           pgCC* | pgcpp*)
13839             # Portland Group C++ compiler
13840             case `$CC -V` in
13841             *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
13842               prelink_cmds_CXX='tpldir=Template.dir~
13843                 rm -rf $tpldir~
13844                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13845                 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
13846               old_archive_cmds_CXX='tpldir=Template.dir~
13847                 rm -rf $tpldir~
13848                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13849                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
13850                 $RANLIB $oldlib'
13851               archive_cmds_CXX='tpldir=Template.dir~
13852                 rm -rf $tpldir~
13853                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13854                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13855               archive_expsym_cmds_CXX='tpldir=Template.dir~
13856                 rm -rf $tpldir~
13857                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13858                 $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'
13859               ;;
13860             *) # Version 6 will use weak symbols
13861               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13862               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'
13863               ;;
13864             esac
13865
13866             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13867             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13868             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'
13869             ;;
13870           cxx*)
13871             # Compaq C++
13872             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13873             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'
13874
13875             runpath_var=LD_RUN_PATH
13876             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13877             hardcode_libdir_separator_CXX=:
13878
13879             # Commands to make compiler produce verbose output that lists
13880             # what "hidden" libraries, object files and flags are used when
13881             # linking a shared library.
13882             #
13883             # There doesn't appear to be a way to prevent this compiler from
13884             # explicitly linking system object files so we need to strip them
13885             # from the output so that they don't get included in the library
13886             # dependencies.
13887             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'
13888             ;;
13889           xl*)
13890             # IBM XL 8.0 on PPC, with GNU ld
13891             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13892             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13893             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13894             if test "x$supports_anon_versioning" = xyes; then
13895               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13896                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13897                 echo "local: *; };" >> $output_objdir/$libname.ver~
13898                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13899             fi
13900             ;;
13901           *)
13902             case `$CC -V 2>&1 | sed 5q` in
13903             *Sun\ C*)
13904               # Sun C++ 5.9
13905               no_undefined_flag_CXX=' -zdefs'
13906               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13907               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'
13908               hardcode_libdir_flag_spec_CXX='-R$libdir'
13909               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'
13910               compiler_needs_object_CXX=yes
13911
13912               # Not sure whether something based on
13913               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13914               # would be better.
13915               output_verbose_link_cmd='echo'
13916
13917               # Archives containing C++ object files must be created using
13918               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13919               # necessary to make sure instantiated templates are included
13920               # in the archive.
13921               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13922               ;;
13923             esac
13924             ;;
13925         esac
13926         ;;
13927
13928       lynxos*)
13929         # FIXME: insert proper C++ library support
13930         ld_shlibs_CXX=no
13931         ;;
13932
13933       m88k*)
13934         # FIXME: insert proper C++ library support
13935         ld_shlibs_CXX=no
13936         ;;
13937
13938       mvs*)
13939         case $cc_basename in
13940           cxx*)
13941             # FIXME: insert proper C++ library support
13942             ld_shlibs_CXX=no
13943             ;;
13944           *)
13945             # FIXME: insert proper C++ library support
13946             ld_shlibs_CXX=no
13947             ;;
13948         esac
13949         ;;
13950
13951       netbsd*)
13952         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13953           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13954           wlarc=
13955           hardcode_libdir_flag_spec_CXX='-R$libdir'
13956           hardcode_direct_CXX=yes
13957           hardcode_shlibpath_var_CXX=no
13958         fi
13959         # Workaround some broken pre-1.5 toolchains
13960         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13961         ;;
13962
13963       *nto* | *qnx*)
13964         ld_shlibs_CXX=yes
13965         ;;
13966
13967       openbsd2*)
13968         # C++ shared libraries are fairly broken
13969         ld_shlibs_CXX=no
13970         ;;
13971
13972       openbsd*)
13973         if test -f /usr/libexec/ld.so; then
13974           hardcode_direct_CXX=yes
13975           hardcode_shlibpath_var_CXX=no
13976           hardcode_direct_absolute_CXX=yes
13977           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13978           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13979           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13980             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13981             export_dynamic_flag_spec_CXX='${wl}-E'
13982             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13983           fi
13984           output_verbose_link_cmd=echo
13985         else
13986           ld_shlibs_CXX=no
13987         fi
13988         ;;
13989
13990       osf3* | osf4* | osf5*)
13991         case $cc_basename in
13992           KCC*)
13993             # Kuck and Associates, Inc. (KAI) C++ Compiler
13994
13995             # KCC will only create a shared library if the output file
13996             # ends with ".so" (or ".sl" for HP-UX), so rename the library
13997             # to its proper name (with version) after linking.
13998             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'
13999
14000             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14001             hardcode_libdir_separator_CXX=:
14002
14003             # Archives containing C++ object files must be created using
14004             # the KAI C++ compiler.
14005             case $host in
14006               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14007               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14008             esac
14009             ;;
14010           RCC*)
14011             # Rational C++ 2.4.1
14012             # FIXME: insert proper C++ library support
14013             ld_shlibs_CXX=no
14014             ;;
14015           cxx*)
14016             case $host in
14017               osf3*)
14018                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14019                 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'
14020                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14021                 ;;
14022               *)
14023                 allow_undefined_flag_CXX=' -expect_unresolved \*'
14024                 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'
14025                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14026                   echo "-hidden">> $lib.exp~
14027                   $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~
14028                   $RM $lib.exp'
14029                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14030                 ;;
14031             esac
14032
14033             hardcode_libdir_separator_CXX=:
14034
14035             # Commands to make compiler produce verbose output that lists
14036             # what "hidden" libraries, object files and flags are used when
14037             # linking a shared library.
14038             #
14039             # There doesn't appear to be a way to prevent this compiler from
14040             # explicitly linking system object files so we need to strip them
14041             # from the output so that they don't get included in the library
14042             # dependencies.
14043             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'
14044             ;;
14045           *)
14046             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14047               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14048               case $host in
14049                 osf3*)
14050                   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'
14051                   ;;
14052                 *)
14053                   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'
14054                   ;;
14055               esac
14056
14057               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14058               hardcode_libdir_separator_CXX=:
14059
14060               # Commands to make compiler produce verbose output that lists
14061               # what "hidden" libraries, object files and flags are used when
14062               # linking a shared library.
14063               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14064
14065             else
14066               # FIXME: insert proper C++ library support
14067               ld_shlibs_CXX=no
14068             fi
14069             ;;
14070         esac
14071         ;;
14072
14073       psos*)
14074         # FIXME: insert proper C++ library support
14075         ld_shlibs_CXX=no
14076         ;;
14077
14078       sunos4*)
14079         case $cc_basename in
14080           CC*)
14081             # Sun C++ 4.x
14082             # FIXME: insert proper C++ library support
14083             ld_shlibs_CXX=no
14084             ;;
14085           lcc*)
14086             # Lucid
14087             # FIXME: insert proper C++ library support
14088             ld_shlibs_CXX=no
14089             ;;
14090           *)
14091             # FIXME: insert proper C++ library support
14092             ld_shlibs_CXX=no
14093             ;;
14094         esac
14095         ;;
14096
14097       solaris*)
14098         case $cc_basename in
14099           CC*)
14100             # Sun C++ 4.2, 5.x and Centerline C++
14101             archive_cmds_need_lc_CXX=yes
14102             no_undefined_flag_CXX=' -zdefs'
14103             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14104             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14105               $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'
14106
14107             hardcode_libdir_flag_spec_CXX='-R$libdir'
14108             hardcode_shlibpath_var_CXX=no
14109             case $host_os in
14110               solaris2.[0-5] | solaris2.[0-5].*) ;;
14111               *)
14112                 # The compiler driver will combine and reorder linker options,
14113                 # but understands `-z linker_flag'.
14114                 # Supported since Solaris 2.6 (maybe 2.5.1?)
14115                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14116                 ;;
14117             esac
14118             link_all_deplibs_CXX=yes
14119
14120             output_verbose_link_cmd='echo'
14121
14122             # Archives containing C++ object files must be created using
14123             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
14124             # necessary to make sure instantiated templates are included
14125             # in the archive.
14126             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14127             ;;
14128           gcx*)
14129             # Green Hills C++ Compiler
14130             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14131
14132             # The C++ compiler must be used to create the archive.
14133             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14134             ;;
14135           *)
14136             # GNU C++ compiler with Solaris linker
14137             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14138               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14139               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14140                 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14141                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14142                   $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14143
14144                 # Commands to make compiler produce verbose output that lists
14145                 # what "hidden" libraries, object files and flags are used when
14146                 # linking a shared library.
14147                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14148               else
14149                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
14150                 # platform.
14151                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14152                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14153                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14154
14155                 # Commands to make compiler produce verbose output that lists
14156                 # what "hidden" libraries, object files and flags are used when
14157                 # linking a shared library.
14158                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14159               fi
14160
14161               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14162               case $host_os in
14163                 solaris2.[0-5] | solaris2.[0-5].*) ;;
14164                 *)
14165                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14166                   ;;
14167               esac
14168             fi
14169             ;;
14170         esac
14171         ;;
14172
14173     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14174       no_undefined_flag_CXX='${wl}-z,text'
14175       archive_cmds_need_lc_CXX=no
14176       hardcode_shlibpath_var_CXX=no
14177       runpath_var='LD_RUN_PATH'
14178
14179       case $cc_basename in
14180         CC*)
14181           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14182           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14183           ;;
14184         *)
14185           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14186           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14187           ;;
14188       esac
14189       ;;
14190
14191       sysv5* | sco3.2v5* | sco5v6*)
14192         # Note: We can NOT use -z defs as we might desire, because we do not
14193         # link with -lc, and that would cause any symbols used from libc to
14194         # always be unresolved, which means just about no library would
14195         # ever link correctly.  If we're not using GNU ld we use -z text
14196         # though, which does catch some bad symbols but isn't as heavy-handed
14197         # as -z defs.
14198         no_undefined_flag_CXX='${wl}-z,text'
14199         allow_undefined_flag_CXX='${wl}-z,nodefs'
14200         archive_cmds_need_lc_CXX=no
14201         hardcode_shlibpath_var_CXX=no
14202         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14203         hardcode_libdir_separator_CXX=':'
14204         link_all_deplibs_CXX=yes
14205         export_dynamic_flag_spec_CXX='${wl}-Bexport'
14206         runpath_var='LD_RUN_PATH'
14207
14208         case $cc_basename in
14209           CC*)
14210             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14211             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14212             ;;
14213           *)
14214             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14215             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14216             ;;
14217         esac
14218       ;;
14219
14220       tandem*)
14221         case $cc_basename in
14222           NCC*)
14223             # NonStop-UX NCC 3.20
14224             # FIXME: insert proper C++ library support
14225             ld_shlibs_CXX=no
14226             ;;
14227           *)
14228             # FIXME: insert proper C++ library support
14229             ld_shlibs_CXX=no
14230             ;;
14231         esac
14232         ;;
14233
14234       vxworks*)
14235         # FIXME: insert proper C++ library support
14236         ld_shlibs_CXX=no
14237         ;;
14238
14239       *)
14240         # FIXME: insert proper C++ library support
14241         ld_shlibs_CXX=no
14242         ;;
14243     esac
14244
14245     { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14246 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
14247     test "$ld_shlibs_CXX" = no && can_build_shared=no
14248
14249     GCC_CXX="$GXX"
14250     LD_CXX="$LD"
14251
14252     ## CAVEAT EMPTOR:
14253     ## There is no encapsulation within the following macros, do not change
14254     ## the running order or otherwise move them around unless you know exactly
14255     ## what you are doing...
14256     # Dependencies to place before and after the object being linked:
14257 predep_objects_CXX=
14258 postdep_objects_CXX=
14259 predeps_CXX=
14260 postdeps_CXX=
14261 compiler_lib_search_path_CXX=
14262
14263 cat > conftest.$ac_ext <<_LT_EOF
14264 class Foo
14265 {
14266 public:
14267   Foo (void) { a = 0; }
14268 private:
14269   int a;
14270 };
14271 _LT_EOF
14272
14273 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14274   (eval $ac_compile) 2>&5
14275   ac_status=$?
14276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14277   (exit $ac_status); }; then
14278   # Parse the compiler output and extract the necessary
14279   # objects, libraries and library flags.
14280
14281   # Sentinel used to keep track of whether or not we are before
14282   # the conftest object file.
14283   pre_test_object_deps_done=no
14284
14285   for p in `eval "$output_verbose_link_cmd"`; do
14286     case $p in
14287
14288     -L* | -R* | -l*)
14289        # Some compilers place space between "-{L,R}" and the path.
14290        # Remove the space.
14291        if test $p = "-L" ||
14292           test $p = "-R"; then
14293          prev=$p
14294          continue
14295        else
14296          prev=
14297        fi
14298
14299        if test "$pre_test_object_deps_done" = no; then
14300          case $p in
14301          -L* | -R*)
14302            # Internal compiler library paths should come after those
14303            # provided the user.  The postdeps already come after the
14304            # user supplied libs so there is no need to process them.
14305            if test -z "$compiler_lib_search_path_CXX"; then
14306              compiler_lib_search_path_CXX="${prev}${p}"
14307            else
14308              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14309            fi
14310            ;;
14311          # The "-l" case would never come before the object being
14312          # linked, so don't bother handling this case.
14313          esac
14314        else
14315          if test -z "$postdeps_CXX"; then
14316            postdeps_CXX="${prev}${p}"
14317          else
14318            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14319          fi
14320        fi
14321        ;;
14322
14323     *.$objext)
14324        # This assumes that the test object file only shows up
14325        # once in the compiler output.
14326        if test "$p" = "conftest.$objext"; then
14327          pre_test_object_deps_done=yes
14328          continue
14329        fi
14330
14331        if test "$pre_test_object_deps_done" = no; then
14332          if test -z "$predep_objects_CXX"; then
14333            predep_objects_CXX="$p"
14334          else
14335            predep_objects_CXX="$predep_objects_CXX $p"
14336          fi
14337        else
14338          if test -z "$postdep_objects_CXX"; then
14339            postdep_objects_CXX="$p"
14340          else
14341            postdep_objects_CXX="$postdep_objects_CXX $p"
14342          fi
14343        fi
14344        ;;
14345
14346     *) ;; # Ignore the rest.
14347
14348     esac
14349   done
14350
14351   # Clean up.
14352   rm -f a.out a.exe
14353 else
14354   echo "libtool.m4: error: problem compiling CXX test program"
14355 fi
14356
14357 $RM -f confest.$objext
14358
14359 # PORTME: override above test on systems where it is broken
14360 case $host_os in
14361 interix[3-9]*)
14362   # Interix 3.5 installs completely hosed .la files for C++, so rather than
14363   # hack all around it, let's just trust "g++" to DTRT.
14364   predep_objects_CXX=
14365   postdep_objects_CXX=
14366   postdeps_CXX=
14367   ;;
14368
14369 linux*)
14370   case `$CC -V 2>&1 | sed 5q` in
14371   *Sun\ C*)
14372     # Sun C++ 5.9
14373
14374     # The more standards-conforming stlport4 library is
14375     # incompatible with the Cstd library. Avoid specifying
14376     # it if it's in CXXFLAGS. Ignore libCrun as
14377     # -library=stlport4 depends on it.
14378     case " $CXX $CXXFLAGS " in
14379     *" -library=stlport4 "*)
14380       solaris_use_stlport4=yes
14381       ;;
14382     esac
14383
14384     if test "$solaris_use_stlport4" != yes; then
14385       postdeps_CXX='-library=Cstd -library=Crun'
14386     fi
14387     ;;
14388   esac
14389   ;;
14390
14391 solaris*)
14392   case $cc_basename in
14393   CC*)
14394     # The more standards-conforming stlport4 library is
14395     # incompatible with the Cstd library. Avoid specifying
14396     # it if it's in CXXFLAGS. Ignore libCrun as
14397     # -library=stlport4 depends on it.
14398     case " $CXX $CXXFLAGS " in
14399     *" -library=stlport4 "*)
14400       solaris_use_stlport4=yes
14401       ;;
14402     esac
14403
14404     # Adding this requires a known-good setup of shared libraries for
14405     # Sun compiler versions before 5.6, else PIC objects from an old
14406     # archive will be linked into the output, leading to subtle bugs.
14407     if test "$solaris_use_stlport4" != yes; then
14408       postdeps_CXX='-library=Cstd -library=Crun'
14409     fi
14410     ;;
14411   esac
14412   ;;
14413 esac
14414
14415
14416 case " $postdeps_CXX " in
14417 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14418 esac
14419  compiler_lib_search_dirs_CXX=
14420 if test -n "${compiler_lib_search_path_CXX}"; then
14421  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14422 fi
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
14452
14453
14454     lt_prog_compiler_wl_CXX=
14455 lt_prog_compiler_pic_CXX=
14456 lt_prog_compiler_static_CXX=
14457
14458 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14459 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14460
14461   # C++ specific cases for pic, static, wl, etc.
14462   if test "$GXX" = yes; then
14463     lt_prog_compiler_wl_CXX='-Wl,'
14464     lt_prog_compiler_static_CXX='-static'
14465
14466     case $host_os in
14467     aix*)
14468       # All AIX code is PIC.
14469       if test "$host_cpu" = ia64; then
14470         # AIX 5 now supports IA64 processor
14471         lt_prog_compiler_static_CXX='-Bstatic'
14472       fi
14473       ;;
14474
14475     amigaos*)
14476       case $host_cpu in
14477       powerpc)
14478             # see comment about AmigaOS4 .so support
14479             lt_prog_compiler_pic_CXX='-fPIC'
14480         ;;
14481       m68k)
14482             # FIXME: we need at least 68020 code to build shared libraries, but
14483             # adding the `-m68020' flag to GCC prevents building anything better,
14484             # like `-m68040'.
14485             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14486         ;;
14487       esac
14488       ;;
14489
14490     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14491       # PIC is the default for these OSes.
14492       ;;
14493     mingw* | cygwin* | os2* | pw32* | cegcc*)
14494       # This hack is so that the source file can tell whether it is being
14495       # built for inclusion in a dll (and should export symbols for example).
14496       # Although the cygwin gcc ignores -fPIC, still need this for old-style
14497       # (--disable-auto-import) libraries
14498       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14499       ;;
14500     darwin* | rhapsody*)
14501       # PIC is the default on this platform
14502       # Common symbols not allowed in MH_DYLIB files
14503       lt_prog_compiler_pic_CXX='-fno-common'
14504       ;;
14505     *djgpp*)
14506       # DJGPP does not support shared libraries at all
14507       lt_prog_compiler_pic_CXX=
14508       ;;
14509     interix[3-9]*)
14510       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14511       # Instead, we relocate shared libraries at runtime.
14512       ;;
14513     sysv4*MP*)
14514       if test -d /usr/nec; then
14515         lt_prog_compiler_pic_CXX=-Kconform_pic
14516       fi
14517       ;;
14518     hpux*)
14519       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14520       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
14521       # sets the default TLS model and affects inlining.
14522       case $host_cpu in
14523       hppa*64*)
14524         ;;
14525       *)
14526         lt_prog_compiler_pic_CXX='-fPIC'
14527         ;;
14528       esac
14529       ;;
14530     *qnx* | *nto*)
14531       # QNX uses GNU C++, but need to define -shared option too, otherwise
14532       # it will coredump.
14533       lt_prog_compiler_pic_CXX='-fPIC -shared'
14534       ;;
14535     *)
14536       lt_prog_compiler_pic_CXX='-fPIC'
14537       ;;
14538     esac
14539   else
14540     case $host_os in
14541       aix[4-9]*)
14542         # All AIX code is PIC.
14543         if test "$host_cpu" = ia64; then
14544           # AIX 5 now supports IA64 processor
14545           lt_prog_compiler_static_CXX='-Bstatic'
14546         else
14547           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14548         fi
14549         ;;
14550       chorus*)
14551         case $cc_basename in
14552         cxch68*)
14553           # Green Hills C++ Compiler
14554           # _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"
14555           ;;
14556         esac
14557         ;;
14558       dgux*)
14559         case $cc_basename in
14560           ec++*)
14561             lt_prog_compiler_pic_CXX='-KPIC'
14562             ;;
14563           ghcx*)
14564             # Green Hills C++ Compiler
14565             lt_prog_compiler_pic_CXX='-pic'
14566             ;;
14567           *)
14568             ;;
14569         esac
14570         ;;
14571       freebsd* | dragonfly*)
14572         # FreeBSD uses GNU C++
14573         ;;
14574       hpux9* | hpux10* | hpux11*)
14575         case $cc_basename in
14576           CC*)
14577             lt_prog_compiler_wl_CXX='-Wl,'
14578             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14579             if test "$host_cpu" != ia64; then
14580               lt_prog_compiler_pic_CXX='+Z'
14581             fi
14582             ;;
14583           aCC*)
14584             lt_prog_compiler_wl_CXX='-Wl,'
14585             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14586             case $host_cpu in
14587             hppa*64*|ia64*)
14588               # +Z the default
14589               ;;
14590             *)
14591               lt_prog_compiler_pic_CXX='+Z'
14592               ;;
14593             esac
14594             ;;
14595           *)
14596             ;;
14597         esac
14598         ;;
14599       interix*)
14600         # This is c89, which is MS Visual C++ (no shared libs)
14601         # Anyone wants to do a port?
14602         ;;
14603       irix5* | irix6* | nonstopux*)
14604         case $cc_basename in
14605           CC*)
14606             lt_prog_compiler_wl_CXX='-Wl,'
14607             lt_prog_compiler_static_CXX='-non_shared'
14608             # CC pic flag -KPIC is the default.
14609             ;;
14610           *)
14611             ;;
14612         esac
14613         ;;
14614       linux* | k*bsd*-gnu)
14615         case $cc_basename in
14616           KCC*)
14617             # KAI C++ Compiler
14618             lt_prog_compiler_wl_CXX='--backend -Wl,'
14619             lt_prog_compiler_pic_CXX='-fPIC'
14620             ;;
14621           ecpc* )
14622             # old Intel C++ for x86_64 which still supported -KPIC.
14623             lt_prog_compiler_wl_CXX='-Wl,'
14624             lt_prog_compiler_pic_CXX='-KPIC'
14625             lt_prog_compiler_static_CXX='-static'
14626             ;;
14627           icpc* )
14628             # Intel C++, used to be incompatible with GCC.
14629             # ICC 10 doesn't accept -KPIC any more.
14630             lt_prog_compiler_wl_CXX='-Wl,'
14631             lt_prog_compiler_pic_CXX='-fPIC'
14632             lt_prog_compiler_static_CXX='-static'
14633             ;;
14634           pgCC* | pgcpp*)
14635             # Portland Group C++ compiler
14636             lt_prog_compiler_wl_CXX='-Wl,'
14637             lt_prog_compiler_pic_CXX='-fpic'
14638             lt_prog_compiler_static_CXX='-Bstatic'
14639             ;;
14640           cxx*)
14641             # Compaq C++
14642             # Make sure the PIC flag is empty.  It appears that all Alpha
14643             # Linux and Compaq Tru64 Unix objects are PIC.
14644             lt_prog_compiler_pic_CXX=
14645             lt_prog_compiler_static_CXX='-non_shared'
14646             ;;
14647           xlc* | xlC*)
14648             # IBM XL 8.0 on PPC
14649             lt_prog_compiler_wl_CXX='-Wl,'
14650             lt_prog_compiler_pic_CXX='-qpic'
14651             lt_prog_compiler_static_CXX='-qstaticlink'
14652             ;;
14653           *)
14654             case `$CC -V 2>&1 | sed 5q` in
14655             *Sun\ C*)
14656               # Sun C++ 5.9
14657               lt_prog_compiler_pic_CXX='-KPIC'
14658               lt_prog_compiler_static_CXX='-Bstatic'
14659               lt_prog_compiler_wl_CXX='-Qoption ld '
14660               ;;
14661             esac
14662             ;;
14663         esac
14664         ;;
14665       lynxos*)
14666         ;;
14667       m88k*)
14668         ;;
14669       mvs*)
14670         case $cc_basename in
14671           cxx*)
14672             lt_prog_compiler_pic_CXX='-W c,exportall'
14673             ;;
14674           *)
14675             ;;
14676         esac
14677         ;;
14678       netbsd*)
14679         ;;
14680       *qnx* | *nto*)
14681         # QNX uses GNU C++, but need to define -shared option too, otherwise
14682         # it will coredump.
14683         lt_prog_compiler_pic_CXX='-fPIC -shared'
14684         ;;
14685       osf3* | osf4* | osf5*)
14686         case $cc_basename in
14687           KCC*)
14688             lt_prog_compiler_wl_CXX='--backend -Wl,'
14689             ;;
14690           RCC*)
14691             # Rational C++ 2.4.1
14692             lt_prog_compiler_pic_CXX='-pic'
14693             ;;
14694           cxx*)
14695             # Digital/Compaq C++
14696             lt_prog_compiler_wl_CXX='-Wl,'
14697             # Make sure the PIC flag is empty.  It appears that all Alpha
14698             # Linux and Compaq Tru64 Unix objects are PIC.
14699             lt_prog_compiler_pic_CXX=
14700             lt_prog_compiler_static_CXX='-non_shared'
14701             ;;
14702           *)
14703             ;;
14704         esac
14705         ;;
14706       psos*)
14707         ;;
14708       solaris*)
14709         case $cc_basename in
14710           CC*)
14711             # Sun C++ 4.2, 5.x and Centerline C++
14712             lt_prog_compiler_pic_CXX='-KPIC'
14713             lt_prog_compiler_static_CXX='-Bstatic'
14714             lt_prog_compiler_wl_CXX='-Qoption ld '
14715             ;;
14716           gcx*)
14717             # Green Hills C++ Compiler
14718             lt_prog_compiler_pic_CXX='-PIC'
14719             ;;
14720           *)
14721             ;;
14722         esac
14723         ;;
14724       sunos4*)
14725         case $cc_basename in
14726           CC*)
14727             # Sun C++ 4.x
14728             lt_prog_compiler_pic_CXX='-pic'
14729             lt_prog_compiler_static_CXX='-Bstatic'
14730             ;;
14731           lcc*)
14732             # Lucid
14733             lt_prog_compiler_pic_CXX='-pic'
14734             ;;
14735           *)
14736             ;;
14737         esac
14738         ;;
14739       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14740         case $cc_basename in
14741           CC*)
14742             lt_prog_compiler_wl_CXX='-Wl,'
14743             lt_prog_compiler_pic_CXX='-KPIC'
14744             lt_prog_compiler_static_CXX='-Bstatic'
14745             ;;
14746         esac
14747         ;;
14748       tandem*)
14749         case $cc_basename in
14750           NCC*)
14751             # NonStop-UX NCC 3.20
14752             lt_prog_compiler_pic_CXX='-KPIC'
14753             ;;
14754           *)
14755             ;;
14756         esac
14757         ;;
14758       vxworks*)
14759         ;;
14760       *)
14761         lt_prog_compiler_can_build_shared_CXX=no
14762         ;;
14763     esac
14764   fi
14765
14766 case $host_os in
14767   # For platforms which do not support PIC, -DPIC is meaningless:
14768   *djgpp*)
14769     lt_prog_compiler_pic_CXX=
14770     ;;
14771   *)
14772     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14773     ;;
14774 esac
14775 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
14776 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
14777
14778
14779
14780 #
14781 # Check to make sure the PIC flag actually works.
14782 #
14783 if test -n "$lt_prog_compiler_pic_CXX"; then
14784   { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14785 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
14786 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
14787   echo $ECHO_N "(cached) $ECHO_C" >&6
14788 else
14789   lt_cv_prog_compiler_pic_works_CXX=no
14790    ac_outfile=conftest.$ac_objext
14791    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14792    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14793    # Insert the option either (1) after the last *FLAGS variable, or
14794    # (2) before a word containing "conftest.", or (3) at the end.
14795    # Note that $ac_compile itself does not contain backslashes and begins
14796    # with a dollar sign (not a hyphen), so the echo should work correctly.
14797    # The option is referenced via a variable to avoid confusing sed.
14798    lt_compile=`echo "$ac_compile" | $SED \
14799    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14800    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14801    -e 's:$: $lt_compiler_flag:'`
14802    (eval echo "\"\$as_me:14802: $lt_compile\"" >&5)
14803    (eval "$lt_compile" 2>conftest.err)
14804    ac_status=$?
14805    cat conftest.err >&5
14806    echo "$as_me:14806: \$? = $ac_status" >&5
14807    if (exit $ac_status) && test -s "$ac_outfile"; then
14808      # The compiler can only warn and ignore the option if not recognized
14809      # So say no if there are warnings other than the usual output.
14810      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14811      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14812      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14813        lt_cv_prog_compiler_pic_works_CXX=yes
14814      fi
14815    fi
14816    $RM conftest*
14817
14818 fi
14819 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14820 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14821
14822 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14823     case $lt_prog_compiler_pic_CXX in
14824      "" | " "*) ;;
14825      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14826      esac
14827 else
14828     lt_prog_compiler_pic_CXX=
14829      lt_prog_compiler_can_build_shared_CXX=no
14830 fi
14831
14832 fi
14833
14834
14835
14836 #
14837 # Check to make sure the static flag actually works.
14838 #
14839 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14840 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14841 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14842 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
14843   echo $ECHO_N "(cached) $ECHO_C" >&6
14844 else
14845   lt_cv_prog_compiler_static_works_CXX=no
14846    save_LDFLAGS="$LDFLAGS"
14847    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14848    echo "$lt_simple_link_test_code" > conftest.$ac_ext
14849    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14850      # The linker can only warn and ignore the option if not recognized
14851      # So say no if there are warnings
14852      if test -s conftest.err; then
14853        # Append any errors to the config.log.
14854        cat conftest.err 1>&5
14855        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14856        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14857        if diff conftest.exp conftest.er2 >/dev/null; then
14858          lt_cv_prog_compiler_static_works_CXX=yes
14859        fi
14860      else
14861        lt_cv_prog_compiler_static_works_CXX=yes
14862      fi
14863    fi
14864    $RM -r conftest*
14865    LDFLAGS="$save_LDFLAGS"
14866
14867 fi
14868 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14869 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6; }
14870
14871 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14872     :
14873 else
14874     lt_prog_compiler_static_CXX=
14875 fi
14876
14877
14878
14879
14880     { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14881 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14882 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14883   echo $ECHO_N "(cached) $ECHO_C" >&6
14884 else
14885   lt_cv_prog_compiler_c_o_CXX=no
14886    $RM -r conftest 2>/dev/null
14887    mkdir conftest
14888    cd conftest
14889    mkdir out
14890    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14891
14892    lt_compiler_flag="-o out/conftest2.$ac_objext"
14893    # Insert the option either (1) after the last *FLAGS variable, or
14894    # (2) before a word containing "conftest.", or (3) at the end.
14895    # Note that $ac_compile itself does not contain backslashes and begins
14896    # with a dollar sign (not a hyphen), so the echo should work correctly.
14897    lt_compile=`echo "$ac_compile" | $SED \
14898    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14899    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14900    -e 's:$: $lt_compiler_flag:'`
14901    (eval echo "\"\$as_me:14901: $lt_compile\"" >&5)
14902    (eval "$lt_compile" 2>out/conftest.err)
14903    ac_status=$?
14904    cat out/conftest.err >&5
14905    echo "$as_me:14905: \$? = $ac_status" >&5
14906    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14907    then
14908      # The compiler can only warn and ignore the option if not recognized
14909      # So say no if there are warnings
14910      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14911      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14912      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14913        lt_cv_prog_compiler_c_o_CXX=yes
14914      fi
14915    fi
14916    chmod u+w . 2>&5
14917    $RM conftest*
14918    # SGI C++ compiler will create directory out/ii_files/ for
14919    # template instantiation
14920    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14921    $RM out/* && rmdir out
14922    cd ..
14923    $RM -r conftest
14924    $RM conftest*
14925
14926 fi
14927 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14928 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
14929
14930
14931
14932     { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14933 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14934 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14935   echo $ECHO_N "(cached) $ECHO_C" >&6
14936 else
14937   lt_cv_prog_compiler_c_o_CXX=no
14938    $RM -r conftest 2>/dev/null
14939    mkdir conftest
14940    cd conftest
14941    mkdir out
14942    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14943
14944    lt_compiler_flag="-o out/conftest2.$ac_objext"
14945    # Insert the option either (1) after the last *FLAGS variable, or
14946    # (2) before a word containing "conftest.", or (3) at the end.
14947    # Note that $ac_compile itself does not contain backslashes and begins
14948    # with a dollar sign (not a hyphen), so the echo should work correctly.
14949    lt_compile=`echo "$ac_compile" | $SED \
14950    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14951    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14952    -e 's:$: $lt_compiler_flag:'`
14953    (eval echo "\"\$as_me:14953: $lt_compile\"" >&5)
14954    (eval "$lt_compile" 2>out/conftest.err)
14955    ac_status=$?
14956    cat out/conftest.err >&5
14957    echo "$as_me:14957: \$? = $ac_status" >&5
14958    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14959    then
14960      # The compiler can only warn and ignore the option if not recognized
14961      # So say no if there are warnings
14962      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14963      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14964      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14965        lt_cv_prog_compiler_c_o_CXX=yes
14966      fi
14967    fi
14968    chmod u+w . 2>&5
14969    $RM conftest*
14970    # SGI C++ compiler will create directory out/ii_files/ for
14971    # template instantiation
14972    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14973    $RM out/* && rmdir out
14974    cd ..
14975    $RM -r conftest
14976    $RM conftest*
14977
14978 fi
14979 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14980 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
14981
14982
14983
14984
14985 hard_links="nottested"
14986 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14987   # do not overwrite the value of need_locks provided by the user
14988   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14989 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14990   hard_links=yes
14991   $RM conftest*
14992   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14993   touch conftest.a
14994   ln conftest.a conftest.b 2>&5 || hard_links=no
14995   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14996   { echo "$as_me:$LINENO: result: $hard_links" >&5
14997 echo "${ECHO_T}$hard_links" >&6; }
14998   if test "$hard_links" = no; then
14999     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15000 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15001     need_locks=warn
15002   fi
15003 else
15004   need_locks=no
15005 fi
15006
15007
15008
15009     { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15010 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
15011
15012   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15013   case $host_os in
15014   aix[4-9]*)
15015     # If we're using GNU nm, then we don't want the "-C" option.
15016     # -C means demangle to AIX nm, but means don't demangle with GNU nm
15017     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15018       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'
15019     else
15020       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'
15021     fi
15022     ;;
15023   pw32*)
15024     export_symbols_cmds_CXX="$ltdll_cmds"
15025   ;;
15026   cygwin* | mingw* | cegcc*)
15027     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'
15028   ;;
15029   *)
15030     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15031   ;;
15032   esac
15033   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15034
15035 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
15036 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
15037 test "$ld_shlibs_CXX" = no && can_build_shared=no
15038
15039 with_gnu_ld_CXX=$with_gnu_ld
15040
15041
15042
15043
15044
15045
15046 #
15047 # Do we need to explicitly link libc?
15048 #
15049 case "x$archive_cmds_need_lc_CXX" in
15050 x|xyes)
15051   # Assume -lc should be added
15052   archive_cmds_need_lc_CXX=yes
15053
15054   if test "$enable_shared" = yes && test "$GCC" = yes; then
15055     case $archive_cmds_CXX in
15056     *'~'*)
15057       # FIXME: we may have to deal with multi-command sequences.
15058       ;;
15059     '$CC '*)
15060       # Test whether the compiler implicitly links with -lc since on some
15061       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15062       # to ld, don't add -lc before -lgcc.
15063       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15064 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15065       $RM conftest*
15066       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15067
15068       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15069   (eval $ac_compile) 2>&5
15070   ac_status=$?
15071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15072   (exit $ac_status); } 2>conftest.err; then
15073         soname=conftest
15074         lib=conftest
15075         libobjs=conftest.$ac_objext
15076         deplibs=
15077         wl=$lt_prog_compiler_wl_CXX
15078         pic_flag=$lt_prog_compiler_pic_CXX
15079         compiler_flags=-v
15080         linker_flags=-v
15081         verstring=
15082         output_objdir=.
15083         libname=conftest
15084         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15085         allow_undefined_flag_CXX=
15086         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
15087   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15088   ac_status=$?
15089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15090   (exit $ac_status); }
15091         then
15092           archive_cmds_need_lc_CXX=no
15093         else
15094           archive_cmds_need_lc_CXX=yes
15095         fi
15096         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15097       else
15098         cat conftest.err 1>&5
15099       fi
15100       $RM conftest*
15101       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
15102 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
15103       ;;
15104     esac
15105   fi
15106   ;;
15107 esac
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
15170
15171
15172     { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15173 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15174
15175 library_names_spec=
15176 libname_spec='lib$name'
15177 soname_spec=
15178 shrext_cmds=".so"
15179 postinstall_cmds=
15180 postuninstall_cmds=
15181 finish_cmds=
15182 finish_eval=
15183 shlibpath_var=
15184 shlibpath_overrides_runpath=unknown
15185 version_type=none
15186 dynamic_linker="$host_os ld.so"
15187 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15188 need_lib_prefix=unknown
15189 hardcode_into_libs=no
15190
15191 # when you set need_version to no, make sure it does not cause -set_version
15192 # flags to be left without arguments
15193 need_version=unknown
15194
15195 case $host_os in
15196 aix3*)
15197   version_type=linux
15198   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15199   shlibpath_var=LIBPATH
15200
15201   # AIX 3 has no versioning support, so we append a major version to the name.
15202   soname_spec='${libname}${release}${shared_ext}$major'
15203   ;;
15204
15205 aix[4-9]*)
15206   version_type=linux
15207   need_lib_prefix=no
15208   need_version=no
15209   hardcode_into_libs=yes
15210   if test "$host_cpu" = ia64; then
15211     # AIX 5 supports IA64
15212     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15213     shlibpath_var=LD_LIBRARY_PATH
15214   else
15215     # With GCC up to 2.95.x, collect2 would create an import file
15216     # for dependence libraries.  The import file would start with
15217     # the line `#! .'.  This would cause the generated library to
15218     # depend on `.', always an invalid library.  This was fixed in
15219     # development snapshots of GCC prior to 3.0.
15220     case $host_os in
15221       aix4 | aix4.[01] | aix4.[01].*)
15222       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15223            echo ' yes '
15224            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15225         :
15226       else
15227         can_build_shared=no
15228       fi
15229       ;;
15230     esac
15231     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15232     # soname into executable. Probably we can add versioning support to
15233     # collect2, so additional links can be useful in future.
15234     if test "$aix_use_runtimelinking" = yes; then
15235       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15236       # instead of lib<name>.a to let people know that these are not
15237       # typical AIX shared libraries.
15238       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15239     else
15240       # We preserve .a as extension for shared libraries through AIX4.2
15241       # and later when we are not doing run time linking.
15242       library_names_spec='${libname}${release}.a $libname.a'
15243       soname_spec='${libname}${release}${shared_ext}$major'
15244     fi
15245     shlibpath_var=LIBPATH
15246   fi
15247   ;;
15248
15249 amigaos*)
15250   case $host_cpu in
15251   powerpc)
15252     # Since July 2007 AmigaOS4 officially supports .so libraries.
15253     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15254     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15255     ;;
15256   m68k)
15257     library_names_spec='$libname.ixlibrary $libname.a'
15258     # Create ${libname}_ixlibrary.a entries in /sys/libs.
15259     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'
15260     ;;
15261   esac
15262   ;;
15263
15264 beos*)
15265   library_names_spec='${libname}${shared_ext}'
15266   dynamic_linker="$host_os ld.so"
15267   shlibpath_var=LIBRARY_PATH
15268   ;;
15269
15270 bsdi[45]*)
15271   version_type=linux
15272   need_version=no
15273   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15274   soname_spec='${libname}${release}${shared_ext}$major'
15275   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15276   shlibpath_var=LD_LIBRARY_PATH
15277   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15278   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15279   # the default ld.so.conf also contains /usr/contrib/lib and
15280   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15281   # libtool to hard-code these into programs
15282   ;;
15283
15284 cygwin* | mingw* | pw32* | cegcc*)
15285   version_type=windows
15286   shrext_cmds=".dll"
15287   need_version=no
15288   need_lib_prefix=no
15289
15290   case $GCC,$host_os in
15291   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
15292     library_names_spec='$libname.dll.a'
15293     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15294     postinstall_cmds='base_file=`basename \${file}`~
15295       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15296       dldir=$destdir/`dirname \$dlpath`~
15297       test -d \$dldir || mkdir -p \$dldir~
15298       $install_prog $dir/$dlname \$dldir/$dlname~
15299       chmod a+x \$dldir/$dlname~
15300       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15301         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15302       fi'
15303     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15304       dlpath=$dir/\$dldll~
15305        $RM \$dlpath'
15306     shlibpath_overrides_runpath=yes
15307
15308     case $host_os in
15309     cygwin*)
15310       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15311       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15312       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15313       ;;
15314     mingw* | cegcc*)
15315       # MinGW DLLs use traditional 'lib' prefix
15316       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15317       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15318       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15319         # It is most probably a Windows format PATH printed by
15320         # mingw gcc, but we are running on Cygwin. Gcc prints its search
15321         # path with ; separators, and with drive letters. We can handle the
15322         # drive letters (cygwin fileutils understands them), so leave them,
15323         # especially as we might pass files found there to a mingw objdump,
15324         # which wouldn't understand a cygwinified path. Ahh.
15325         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15326       else
15327         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15328       fi
15329       ;;
15330     pw32*)
15331       # pw32 DLLs use 'pw' prefix rather than 'lib'
15332       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15333       ;;
15334     esac
15335     ;;
15336
15337   *)
15338     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15339     ;;
15340   esac
15341   dynamic_linker='Win32 ld.exe'
15342   # FIXME: first we should search . and the directory the executable is in
15343   shlibpath_var=PATH
15344   ;;
15345
15346 darwin* | rhapsody*)
15347   dynamic_linker="$host_os dyld"
15348   version_type=darwin
15349   need_lib_prefix=no
15350   need_version=no
15351   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15352   soname_spec='${libname}${release}${major}$shared_ext'
15353   shlibpath_overrides_runpath=yes
15354   shlibpath_var=DYLD_LIBRARY_PATH
15355   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15356
15357   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15358   ;;
15359
15360 dgux*)
15361   version_type=linux
15362   need_lib_prefix=no
15363   need_version=no
15364   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15365   soname_spec='${libname}${release}${shared_ext}$major'
15366   shlibpath_var=LD_LIBRARY_PATH
15367   ;;
15368
15369 freebsd1*)
15370   dynamic_linker=no
15371   ;;
15372
15373 freebsd* | dragonfly*)
15374   # DragonFly does not have aout.  When/if they implement a new
15375   # versioning mechanism, adjust this.
15376   if test -x /usr/bin/objformat; then
15377     objformat=`/usr/bin/objformat`
15378   else
15379     case $host_os in
15380     freebsd[123]*) objformat=aout ;;
15381     *) objformat=elf ;;
15382     esac
15383   fi
15384   version_type=freebsd-$objformat
15385   case $version_type in
15386     freebsd-elf*)
15387       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15388       need_version=no
15389       need_lib_prefix=no
15390       ;;
15391     freebsd-*)
15392       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15393       need_version=yes
15394       ;;
15395   esac
15396   shlibpath_var=LD_LIBRARY_PATH
15397   case $host_os in
15398   freebsd2*)
15399     shlibpath_overrides_runpath=yes
15400     ;;
15401   freebsd3.[01]* | freebsdelf3.[01]*)
15402     shlibpath_overrides_runpath=yes
15403     hardcode_into_libs=yes
15404     ;;
15405   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15406   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15407     shlibpath_overrides_runpath=no
15408     hardcode_into_libs=yes
15409     ;;
15410   *) # from 4.6 on, and DragonFly
15411     shlibpath_overrides_runpath=yes
15412     hardcode_into_libs=yes
15413     ;;
15414   esac
15415   ;;
15416
15417 gnu*)
15418   version_type=linux
15419   need_lib_prefix=no
15420   need_version=no
15421   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15422   soname_spec='${libname}${release}${shared_ext}$major'
15423   shlibpath_var=LD_LIBRARY_PATH
15424   hardcode_into_libs=yes
15425   ;;
15426
15427 hpux9* | hpux10* | hpux11*)
15428   # Give a soname corresponding to the major version so that dld.sl refuses to
15429   # link against other versions.
15430   version_type=sunos
15431   need_lib_prefix=no
15432   need_version=no
15433   case $host_cpu in
15434   ia64*)
15435     shrext_cmds='.so'
15436     hardcode_into_libs=yes
15437     dynamic_linker="$host_os dld.so"
15438     shlibpath_var=LD_LIBRARY_PATH
15439     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15440     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15441     soname_spec='${libname}${release}${shared_ext}$major'
15442     if test "X$HPUX_IA64_MODE" = X32; then
15443       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15444     else
15445       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15446     fi
15447     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15448     ;;
15449   hppa*64*)
15450     shrext_cmds='.sl'
15451     hardcode_into_libs=yes
15452     dynamic_linker="$host_os dld.sl"
15453     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15454     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15455     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15456     soname_spec='${libname}${release}${shared_ext}$major'
15457     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15458     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15459     ;;
15460   *)
15461     shrext_cmds='.sl'
15462     dynamic_linker="$host_os dld.sl"
15463     shlibpath_var=SHLIB_PATH
15464     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15465     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15466     soname_spec='${libname}${release}${shared_ext}$major'
15467     ;;
15468   esac
15469   # HP-UX runs *really* slowly unless shared libraries are mode 555.
15470   postinstall_cmds='chmod 555 $lib'
15471   ;;
15472
15473 interix[3-9]*)
15474   version_type=linux
15475   need_lib_prefix=no
15476   need_version=no
15477   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15478   soname_spec='${libname}${release}${shared_ext}$major'
15479   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15480   shlibpath_var=LD_LIBRARY_PATH
15481   shlibpath_overrides_runpath=no
15482   hardcode_into_libs=yes
15483   ;;
15484
15485 irix5* | irix6* | nonstopux*)
15486   case $host_os in
15487     nonstopux*) version_type=nonstopux ;;
15488     *)
15489         if test "$lt_cv_prog_gnu_ld" = yes; then
15490                 version_type=linux
15491         else
15492                 version_type=irix
15493         fi ;;
15494   esac
15495   need_lib_prefix=no
15496   need_version=no
15497   soname_spec='${libname}${release}${shared_ext}$major'
15498   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15499   case $host_os in
15500   irix5* | nonstopux*)
15501     libsuff= shlibsuff=
15502     ;;
15503   *)
15504     case $LD in # libtool.m4 will add one of these switches to LD
15505     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15506       libsuff= shlibsuff= libmagic=32-bit;;
15507     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15508       libsuff=32 shlibsuff=N32 libmagic=N32;;
15509     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15510       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15511     *) libsuff= shlibsuff= libmagic=never-match;;
15512     esac
15513     ;;
15514   esac
15515   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15516   shlibpath_overrides_runpath=no
15517   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15518   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15519   hardcode_into_libs=yes
15520   ;;
15521
15522 # No shared lib support for Linux oldld, aout, or coff.
15523 linux*oldld* | linux*aout* | linux*coff*)
15524   dynamic_linker=no
15525   ;;
15526
15527 # This must be Linux ELF.
15528 linux* | k*bsd*-gnu)
15529   version_type=linux
15530   need_lib_prefix=no
15531   need_version=no
15532   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15533   soname_spec='${libname}${release}${shared_ext}$major'
15534   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15535   shlibpath_var=LD_LIBRARY_PATH
15536   shlibpath_overrides_runpath=no
15537   # Some binutils ld are patched to set DT_RUNPATH
15538   save_LDFLAGS=$LDFLAGS
15539   save_libdir=$libdir
15540   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15541        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15542   cat >conftest.$ac_ext <<_ACEOF
15543 /* confdefs.h.  */
15544 _ACEOF
15545 cat confdefs.h >>conftest.$ac_ext
15546 cat >>conftest.$ac_ext <<_ACEOF
15547 /* end confdefs.h.  */
15548
15549 int
15550 main ()
15551 {
15552
15553   ;
15554   return 0;
15555 }
15556 _ACEOF
15557 rm -f conftest.$ac_objext conftest$ac_exeext
15558 if { (ac_try="$ac_link"
15559 case "(($ac_try" in
15560   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15561   *) ac_try_echo=$ac_try;;
15562 esac
15563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15564   (eval "$ac_link") 2>conftest.er1
15565   ac_status=$?
15566   grep -v '^ *+' conftest.er1 >conftest.err
15567   rm -f conftest.er1
15568   cat conftest.err >&5
15569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15570   (exit $ac_status); } && {
15571          test -z "$ac_cxx_werror_flag" ||
15572          test ! -s conftest.err
15573        } && test -s conftest$ac_exeext &&
15574        $as_test_x conftest$ac_exeext; then
15575   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
15576   shlibpath_overrides_runpath=yes
15577 fi
15578
15579 else
15580   echo "$as_me: failed program was:" >&5
15581 sed 's/^/| /' conftest.$ac_ext >&5
15582
15583
15584 fi
15585
15586 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15587       conftest$ac_exeext conftest.$ac_ext
15588   LDFLAGS=$save_LDFLAGS
15589   libdir=$save_libdir
15590
15591   # This implies no fast_install, which is unacceptable.
15592   # Some rework will be needed to allow for fast_install
15593   # before this can be enabled.
15594   hardcode_into_libs=yes
15595
15596   # Append ld.so.conf contents to the search path
15597   if test -f /etc/ld.so.conf; then
15598     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' ' '`
15599     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15600   fi
15601
15602   # We used to test for /lib/ld.so.1 and disable shared libraries on
15603   # powerpc, because MkLinux only supported shared libraries with the
15604   # GNU dynamic linker.  Since this was broken with cross compilers,
15605   # most powerpc-linux boxes support dynamic linking these days and
15606   # people can always --disable-shared, the test was removed, and we
15607   # assume the GNU/Linux dynamic linker is in use.
15608   dynamic_linker='GNU/Linux ld.so'
15609   ;;
15610
15611 netbsd*)
15612   version_type=sunos
15613   need_lib_prefix=no
15614   need_version=no
15615   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15616     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15617     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15618     dynamic_linker='NetBSD (a.out) ld.so'
15619   else
15620     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15621     soname_spec='${libname}${release}${shared_ext}$major'
15622     dynamic_linker='NetBSD ld.elf_so'
15623   fi
15624   shlibpath_var=LD_LIBRARY_PATH
15625   shlibpath_overrides_runpath=yes
15626   hardcode_into_libs=yes
15627   ;;
15628
15629 newsos6)
15630   version_type=linux
15631   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15632   shlibpath_var=LD_LIBRARY_PATH
15633   shlibpath_overrides_runpath=yes
15634   ;;
15635
15636 *nto* | *qnx*)
15637   version_type=qnx
15638   need_lib_prefix=no
15639   need_version=no
15640   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15641   soname_spec='${libname}${release}${shared_ext}$major'
15642   shlibpath_var=LD_LIBRARY_PATH
15643   shlibpath_overrides_runpath=no
15644   hardcode_into_libs=yes
15645   dynamic_linker='ldqnx.so'
15646   ;;
15647
15648 openbsd*)
15649   version_type=sunos
15650   sys_lib_dlsearch_path_spec="/usr/lib"
15651   need_lib_prefix=no
15652   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15653   case $host_os in
15654     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
15655     *)                          need_version=no  ;;
15656   esac
15657   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15658   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15659   shlibpath_var=LD_LIBRARY_PATH
15660   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15661     case $host_os in
15662       openbsd2.[89] | openbsd2.[89].*)
15663         shlibpath_overrides_runpath=no
15664         ;;
15665       *)
15666         shlibpath_overrides_runpath=yes
15667         ;;
15668       esac
15669   else
15670     shlibpath_overrides_runpath=yes
15671   fi
15672   ;;
15673
15674 os2*)
15675   libname_spec='$name'
15676   shrext_cmds=".dll"
15677   need_lib_prefix=no
15678   library_names_spec='$libname${shared_ext} $libname.a'
15679   dynamic_linker='OS/2 ld.exe'
15680   shlibpath_var=LIBPATH
15681   ;;
15682
15683 osf3* | osf4* | osf5*)
15684   version_type=osf
15685   need_lib_prefix=no
15686   need_version=no
15687   soname_spec='${libname}${release}${shared_ext}$major'
15688   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15689   shlibpath_var=LD_LIBRARY_PATH
15690   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15691   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15692   ;;
15693
15694 rdos*)
15695   dynamic_linker=no
15696   ;;
15697
15698 solaris*)
15699   version_type=linux
15700   need_lib_prefix=no
15701   need_version=no
15702   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15703   soname_spec='${libname}${release}${shared_ext}$major'
15704   shlibpath_var=LD_LIBRARY_PATH
15705   shlibpath_overrides_runpath=yes
15706   hardcode_into_libs=yes
15707   # ldd complains unless libraries are executable
15708   postinstall_cmds='chmod +x $lib'
15709   ;;
15710
15711 sunos4*)
15712   version_type=sunos
15713   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15714   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15715   shlibpath_var=LD_LIBRARY_PATH
15716   shlibpath_overrides_runpath=yes
15717   if test "$with_gnu_ld" = yes; then
15718     need_lib_prefix=no
15719   fi
15720   need_version=yes
15721   ;;
15722
15723 sysv4 | sysv4.3*)
15724   version_type=linux
15725   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15726   soname_spec='${libname}${release}${shared_ext}$major'
15727   shlibpath_var=LD_LIBRARY_PATH
15728   case $host_vendor in
15729     sni)
15730       shlibpath_overrides_runpath=no
15731       need_lib_prefix=no
15732       runpath_var=LD_RUN_PATH
15733       ;;
15734     siemens)
15735       need_lib_prefix=no
15736       ;;
15737     motorola)
15738       need_lib_prefix=no
15739       need_version=no
15740       shlibpath_overrides_runpath=no
15741       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15742       ;;
15743   esac
15744   ;;
15745
15746 sysv4*MP*)
15747   if test -d /usr/nec ;then
15748     version_type=linux
15749     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15750     soname_spec='$libname${shared_ext}.$major'
15751     shlibpath_var=LD_LIBRARY_PATH
15752   fi
15753   ;;
15754
15755 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15756   version_type=freebsd-elf
15757   need_lib_prefix=no
15758   need_version=no
15759   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15760   soname_spec='${libname}${release}${shared_ext}$major'
15761   shlibpath_var=LD_LIBRARY_PATH
15762   shlibpath_overrides_runpath=yes
15763   hardcode_into_libs=yes
15764   if test "$with_gnu_ld" = yes; then
15765     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15766   else
15767     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15768     case $host_os in
15769       sco3.2v5*)
15770         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15771         ;;
15772     esac
15773   fi
15774   sys_lib_dlsearch_path_spec='/usr/lib'
15775   ;;
15776
15777 tpf*)
15778   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
15779   version_type=linux
15780   need_lib_prefix=no
15781   need_version=no
15782   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15783   shlibpath_var=LD_LIBRARY_PATH
15784   shlibpath_overrides_runpath=no
15785   hardcode_into_libs=yes
15786   ;;
15787
15788 uts4*)
15789   version_type=linux
15790   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15791   soname_spec='${libname}${release}${shared_ext}$major'
15792   shlibpath_var=LD_LIBRARY_PATH
15793   ;;
15794
15795 *)
15796   dynamic_linker=no
15797   ;;
15798 esac
15799 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15800 echo "${ECHO_T}$dynamic_linker" >&6; }
15801 test "$dynamic_linker" = no && can_build_shared=no
15802
15803 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15804 if test "$GCC" = yes; then
15805   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15806 fi
15807
15808 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15809   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15810 fi
15811 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15812   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15813 fi
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
15848
15849
15850     { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15851 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15852 hardcode_action_CXX=
15853 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15854    test -n "$runpath_var_CXX" ||
15855    test "X$hardcode_automatic_CXX" = "Xyes" ; then
15856
15857   # We can hardcode non-existent directories.
15858   if test "$hardcode_direct_CXX" != no &&
15859      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15860      # have to relink, otherwise we might link with an installed library
15861      # when we should be linking with a yet-to-be-installed one
15862      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15863      test "$hardcode_minus_L_CXX" != no; then
15864     # Linking always hardcodes the temporary library directory.
15865     hardcode_action_CXX=relink
15866   else
15867     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15868     hardcode_action_CXX=immediate
15869   fi
15870 else
15871   # We cannot hardcode anything, or else we can only hardcode existing
15872   # directories.
15873   hardcode_action_CXX=unsupported
15874 fi
15875 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
15876 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
15877
15878 if test "$hardcode_action_CXX" = relink ||
15879    test "$inherit_rpath_CXX" = yes; then
15880   # Fast installation is not supported
15881   enable_fast_install=no
15882 elif test "$shlibpath_overrides_runpath" = yes ||
15883      test "$enable_shared" = no; then
15884   # Fast installation is not necessary
15885   enable_fast_install=needless
15886 fi
15887
15888
15889
15890
15891
15892
15893
15894   fi # test -n "$compiler"
15895
15896   CC=$lt_save_CC
15897   LDCXX=$LD
15898   LD=$lt_save_LD
15899   GCC=$lt_save_GCC
15900   with_gnu_ld=$lt_save_with_gnu_ld
15901   lt_cv_path_LDCXX=$lt_cv_path_LD
15902   lt_cv_path_LD=$lt_save_path_LD
15903   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15904   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15905 fi # test "$_lt_caught_CXX_error" != yes
15906
15907 ac_ext=c
15908 ac_cpp='$CPP $CPPFLAGS'
15909 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15910 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15911 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15912
15913
15914
15915
15916
15917
15918
15919
15920
15921
15922
15923
15924
15925         ac_config_commands="$ac_config_commands libtool"
15926
15927
15928
15929
15930 # Only expand once:
15931
15932
15933
15934
15935 if test x$use_libtool != xno; then
15936    DEFAULT_OBJECT_TYPE=".lo"
15937    DEFAULT_ARCHIVE_TYPE=".la"
15938    DEFAULT_SHARED_OBJECT_TYPE=".la"
15939    LIBTOOL="\$(LIBTOOL)"
15940    LIBTOOL_INSTALL_TARGET="libtool-install"
15941    LIBTOOL_UNINSTALL_TARGET="libtool-uninstall"
15942    LIBTOOL_CLEAN_TARGET="libtool-clean"
15943    QMAKE_LIBTOOL="${BUILD_DIR}/libtool"
15944 else
15945    DEFAULT_OBJECT_TYPE=".o"
15946    DEFAULT_ARCHIVE_TYPE=".a"
15947    DEFAULT_SHARED_OBJECT_TYPE=".so"
15948    LIBTOOL="# \$(LIBTOOL)"
15949    LIBTOOL_INSTALL_TARGET=""
15950    LIBTOOL_UNINSTALL_TARGET=""
15951    LIBTOOL_CLEAN_TARGET=""
15952    QMAKE_LIBTOOL="# ${BUILD_DIR}/libtool"
15953 fi
15954
15955
15956
15957
15958
15959
15960
15961
15962
15963
15964 # Check whether --enable-includes was given.
15965 if test "${enable_includes+set}" = set; then
15966   enableval=$enable_includes;
15967        if test x$enableval = xyes; then
15968           install_includes=yes
15969        fi
15970
15971
15972 fi
15973
15974
15975
15976 if test x$use_libtool != xno -a x$install_includes = xyes; then
15977    INCLUDE_INSTALL_TARGET="install-includes"
15978    INCLUDE_UNINSTALL_TARGET="uninstall-includes"
15979 else
15980    INCLUDE_INSTALL_TARGET=""
15981    INCLUDE_UNINSTALL_TARGET=""
15982 fi
15983
15984
15985
15986
15987 { echo "$as_me:$LINENO: checking host system type" >&5
15988 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
15989 if test "${ac_cv_host+set}" = set; then
15990   echo $ECHO_N "(cached) $ECHO_C" >&6
15991 else
15992   if test "x$host_alias" = x; then
15993   ac_cv_host=$ac_cv_build
15994 else
15995   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
15996     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
15997 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
15998    { (exit 1); exit 1; }; }
15999 fi
16000
16001 fi
16002 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
16003 echo "${ECHO_T}$ac_cv_host" >&6; }
16004 case $ac_cv_host in
16005 *-*-*) ;;
16006 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
16007 echo "$as_me: error: invalid value of canonical host" >&2;}
16008    { (exit 1); exit 1; }; };;
16009 esac
16010 host=$ac_cv_host
16011 ac_save_IFS=$IFS; IFS='-'
16012 set x $ac_cv_host
16013 shift
16014 host_cpu=$1
16015 host_vendor=$2
16016 shift; shift
16017 # Remember, the first character of IFS is used to create $*,
16018 # except with old shells:
16019 host_os=$*
16020 IFS=$ac_save_IFS
16021 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
16022
16023
16024 case $host_os in
16025   *cygwin* ) CYGWIN=yes;;
16026          * ) CYGWIN=no;;
16027 esac
16028
16029 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
16030 then
16031
16032
16033 if $TRUEPRG; then
16034   HAVE_SUN_OS_TRUE=
16035   HAVE_SUN_OS_FALSE='#'
16036 else
16037   HAVE_SUN_OS_TRUE='#'
16038   HAVE_SUN_OS_FALSE=
16039 fi
16040         cat >>confdefs.h <<\_ACEOF
16041 #define HAVE_SUN_OS 1
16042 _ACEOF
16043
16044 else
16045
16046
16047 if $FALSEPRG; then
16048   HAVE_SUN_OS_TRUE=
16049   HAVE_SUN_OS_FALSE='#'
16050 else
16051   HAVE_SUN_OS_TRUE='#'
16052   HAVE_SUN_OS_FALSE=
16053 fi
16054 fi
16055
16056 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
16057 then
16058
16059
16060 if $TRUEPRG; then
16061   HAVE_OSF1_OS_TRUE=
16062   HAVE_OSF1_OS_FALSE='#'
16063 else
16064   HAVE_OSF1_OS_TRUE='#'
16065   HAVE_OSF1_OS_FALSE=
16066 fi
16067         cat >>confdefs.h <<\_ACEOF
16068 #define HAVE_OSF1_OS 1
16069 _ACEOF
16070
16071 else
16072
16073
16074 if $FALSEPRG; then
16075   HAVE_OSF1_OS_TRUE=
16076   HAVE_OSF1_OS_FALSE='#'
16077 else
16078   HAVE_OSF1_OS_TRUE='#'
16079   HAVE_OSF1_OS_FALSE=
16080 fi
16081 fi
16082
16083 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
16084 then
16085
16086
16087 if $TRUEPRG; then
16088   HAVE_AIX_OS_TRUE=
16089   HAVE_AIX_OS_FALSE='#'
16090 else
16091   HAVE_AIX_OS_TRUE='#'
16092   HAVE_AIX_OS_FALSE=
16093 fi
16094         cat >>confdefs.h <<\_ACEOF
16095 #define HAVE_AIX_OS 1
16096 _ACEOF
16097
16098 else
16099
16100
16101 if $FALSEPRG; then
16102   HAVE_AIX_OS_TRUE=
16103   HAVE_AIX_OS_FALSE='#'
16104 else
16105   HAVE_AIX_OS_TRUE='#'
16106   HAVE_AIX_OS_FALSE=
16107 fi
16108 fi
16109
16110 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
16111 then
16112
16113
16114 if $TRUEPRG; then
16115   HAVE_HPUX_OS_TRUE=
16116   HAVE_HPUX_OS_FALSE='#'
16117 else
16118   HAVE_HPUX_OS_TRUE='#'
16119   HAVE_HPUX_OS_FALSE=
16120 fi
16121         cat >>confdefs.h <<\_ACEOF
16122 #define HAVE_HPUX_OS 1
16123 _ACEOF
16124
16125 else
16126
16127
16128 if $FALSEPRG; then
16129   HAVE_HPUX_OS_TRUE=
16130   HAVE_HPUX_OS_FALSE='#'
16131 else
16132   HAVE_HPUX_OS_TRUE='#'
16133   HAVE_HPUX_OS_FALSE=
16134 fi
16135 fi
16136
16137 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
16138 then
16139
16140
16141 if $TRUEPRG; then
16142   HAVE_LINUX_OS_TRUE=
16143   HAVE_LINUX_OS_FALSE='#'
16144 else
16145   HAVE_LINUX_OS_TRUE='#'
16146   HAVE_LINUX_OS_FALSE=
16147 fi
16148         cat >>confdefs.h <<\_ACEOF
16149 #define HAVE_LINUX_OS 1
16150 _ACEOF
16151
16152 else
16153
16154
16155 if $FALSEPRG; then
16156   HAVE_LINUX_OS_TRUE=
16157   HAVE_LINUX_OS_FALSE='#'
16158 else
16159   HAVE_LINUX_OS_TRUE='#'
16160   HAVE_LINUX_OS_FALSE=
16161 fi
16162 fi
16163
16164 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
16165 then
16166
16167
16168 if $TRUEPRG; then
16169   HAVE_FREEBSD_OS_TRUE=
16170   HAVE_FREEBSD_OS_FALSE='#'
16171 else
16172   HAVE_FREEBSD_OS_TRUE='#'
16173   HAVE_FREEBSD_OS_FALSE=
16174 fi
16175         cat >>confdefs.h <<\_ACEOF
16176 #define HAVE_FREEBSD_OS 1
16177 _ACEOF
16178
16179 else
16180
16181
16182 if $FALSEPRG; then
16183   HAVE_FREEBSD_OS_TRUE=
16184   HAVE_FREEBSD_OS_FALSE='#'
16185 else
16186   HAVE_FREEBSD_OS_TRUE='#'
16187   HAVE_FREEBSD_OS_FALSE=
16188 fi
16189 fi
16190
16191 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
16192 then
16193
16194
16195 if $TRUEPRG; then
16196   HAVE_NETBSD_OS_TRUE=
16197   HAVE_NETBSD_OS_FALSE='#'
16198 else
16199   HAVE_NETBSD_OS_TRUE='#'
16200   HAVE_NETBSD_OS_FALSE=
16201 fi
16202         cat >>confdefs.h <<\_ACEOF
16203 #define HAVE_NETBSD_OS 1
16204 _ACEOF
16205
16206 else
16207
16208
16209 if $FALSEPRG; then
16210   HAVE_NETBSD_OS_TRUE=
16211   HAVE_NETBSD_OS_FALSE='#'
16212 else
16213   HAVE_NETBSD_OS_TRUE='#'
16214   HAVE_NETBSD_OS_FALSE=
16215 fi
16216 fi
16217
16218 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
16219 then
16220
16221
16222 if $TRUEPRG; then
16223   HAVE_OPENBSD_OS_TRUE=
16224   HAVE_OPENBSD_OS_FALSE='#'
16225 else
16226   HAVE_OPENBSD_OS_TRUE='#'
16227   HAVE_OPENBSD_OS_FALSE=
16228 fi
16229         cat >>confdefs.h <<\_ACEOF
16230 #define HAVE_OPENBSD_OS 1
16231 _ACEOF
16232
16233 else
16234
16235
16236 if $FALSEPRG; then
16237   HAVE_OPENBSD_OS_TRUE=
16238   HAVE_OPENBSD_OS_FALSE='#'
16239 else
16240   HAVE_OPENBSD_OS_TRUE='#'
16241   HAVE_OPENBSD_OS_FALSE=
16242 fi
16243 fi
16244
16245 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
16246 then
16247
16248
16249 if $TRUEPRG; then
16250   HAVE_BSDI_OS_TRUE=
16251   HAVE_BSDI_OS_FALSE='#'
16252 else
16253   HAVE_BSDI_OS_TRUE='#'
16254   HAVE_BSDI_OS_FALSE=
16255 fi
16256         cat >>confdefs.h <<\_ACEOF
16257 #define HAVE_BSDI_OS 1
16258 _ACEOF
16259
16260 else
16261
16262
16263 if $FALSEPRG; then
16264   HAVE_BSDI_OS_TRUE=
16265   HAVE_BSDI_OS_FALSE='#'
16266 else
16267   HAVE_BSDI_OS_TRUE='#'
16268   HAVE_BSDI_OS_FALSE=
16269 fi
16270 fi
16271
16272 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
16273 then
16274
16275
16276 if $TRUEPRG; then
16277   HAVE_SGI_OS_TRUE=
16278   HAVE_SGI_OS_FALSE='#'
16279 else
16280   HAVE_SGI_OS_TRUE='#'
16281   HAVE_SGI_OS_FALSE=
16282 fi
16283         cat >>confdefs.h <<\_ACEOF
16284 #define HAVE_SGI_OS 1
16285 _ACEOF
16286
16287 else
16288
16289
16290 if $FALSEPRG; then
16291   HAVE_SGI_OS_TRUE=
16292   HAVE_SGI_OS_FALSE='#'
16293 else
16294   HAVE_SGI_OS_TRUE='#'
16295   HAVE_SGI_OS_FALSE=
16296 fi
16297 fi
16298
16299 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX -o x`uname -s` = xIRIX64
16300 then
16301
16302
16303 if $TRUEPRG; then
16304   HAVE_IRIX_OS_TRUE=
16305   HAVE_IRIX_OS_FALSE='#'
16306 else
16307   HAVE_IRIX_OS_TRUE='#'
16308   HAVE_IRIX_OS_FALSE=
16309 fi
16310         cat >>confdefs.h <<\_ACEOF
16311 #define HAVE_IRIX_OS 1
16312 _ACEOF
16313
16314 else
16315
16316
16317 if $FALSEPRG; then
16318   HAVE_IRIX_OS_TRUE=
16319   HAVE_IRIX_OS_FALSE='#'
16320 else
16321   HAVE_IRIX_OS_TRUE='#'
16322   HAVE_IRIX_OS_FALSE=
16323 fi
16324 fi
16325
16326 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
16327 then
16328
16329
16330 if $TRUEPRG; then
16331   HAVE_DARWIN_OS_TRUE=
16332   HAVE_DARWIN_OS_FALSE='#'
16333 else
16334   HAVE_DARWIN_OS_TRUE='#'
16335   HAVE_DARWIN_OS_FALSE=
16336 fi
16337     cat >>confdefs.h <<\_ACEOF
16338 #define HAVE_DARWIN_OS 1
16339 _ACEOF
16340
16341 else
16342
16343
16344 if $FALSEPRG; then
16345   HAVE_DARWIN_OS_TRUE=
16346   HAVE_DARWIN_OS_FALSE='#'
16347 else
16348   HAVE_DARWIN_OS_TRUE='#'
16349   HAVE_DARWIN_OS_FALSE=
16350 fi
16351 fi
16352
16353
16354 { echo "$as_me:$LINENO: checking for Operating System Distribution" >&5
16355 echo $ECHO_N "checking for Operating System Distribution... $ECHO_C" >&6; }
16356 if test "x$DISTNAME" != "x"
16357 then
16358         echo "distname set to $DISTNAME"
16359 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
16360 then
16361         DISTNAME=alpha
16362 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
16363 then
16364         DISTNAME=aix
16365 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
16366 then
16367         DISTNAME=hpux
16368 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
16369 then
16370         DISTNAME=solaris
16371 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
16372 then
16373         DISTNAME=freebsd
16374 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
16375 then
16376         DISTNAME=netbsd
16377 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
16378 then
16379         DISTNAME=openbsd
16380 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
16381 then
16382         DISTNAME=irix
16383 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
16384 then
16385         DISTNAME=bsdi
16386 elif test -f /etc/SuSE-release
16387 then
16388         DISTNAME=suse
16389 elif test -d /etc/SuSEconfig
16390 then
16391         DISTNAME=suse5
16392 elif test -f /etc/mandrake-release
16393 then
16394         DISTNAME=mandrake
16395 elif test -f /etc/whitebox-release
16396 then
16397        DISTNAME=redhat
16398 elif test -f /etc/redhat-release
16399 then
16400         DISTNAME=redhat
16401 elif test -f /etc/gentoo-release
16402 then
16403         DISTNAME=gentoo
16404 elif test -f /etc/debian_version
16405 then
16406         DISTNAME=debian
16407 elif test -f /etc/slackware-version
16408 then
16409         DISTNAME=slackware
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 if test x${prefix} = xNONE ; then
18326    if test `eval echo ${sysconfdir}` = NONE/etc ; then
18327       sysconfdir=/etc/bacula
18328    fi
18329
18330    if test `eval echo ${libdir}` = NONE/lib ; then
18331       libdir=/usr/lib
18332    fi
18333
18334    if test `eval echo ${includedir}` = NONE/include ; then
18335       includedir=/usr/include
18336    fi
18337
18338    if test `eval echo ${datarootdir}` = NONE/share ; then
18339       datarootdir=/usr/share
18340    fi
18341    prefix=
18342 fi
18343
18344 if test x${exec_prefix} = xNONE ; then
18345    exec_prefix=${prefix}
18346 fi
18347
18348 sysconfdir=`eval echo ${sysconfdir}`
18349 datarootdir=`eval echo ${datarootdir}`
18350 docdir=`eval echo ${docdir}`
18351 htmldir=`eval echo ${htmldir}`
18352 libdir=`eval echo ${libdir}`
18353 includedir=`eval echo ${includedir}`
18354 localedir=`eval echo ${datarootdir}/locale`
18355 cat >>confdefs.h <<_ACEOF
18356 #define SYSCONFDIR "$sysconfdir"
18357 _ACEOF
18358
18359 cat >>confdefs.h <<_ACEOF
18360 #define LOCALEDIR "$localedir"
18361 _ACEOF
18362
18363
18364 if test x$sbindir = x'${exec_prefix}/sbin' ; then
18365    sbindir=${exec_prefix}/sbin
18366 fi
18367 sbindir=`eval echo ${sbindir}`
18368
18369 if test x$mandir = x'${prefix}/man' ; then
18370    mandir=/usr/share/man
18371 fi
18372
18373 if test x$htmldir = x${docdir} ; then
18374    htmldir=`eval echo ${docdir}bacula/html`
18375 fi
18376
18377 if test x$docdir = x'/usr/share/doc/' ; then
18378    docdir=`eval echo ${docdir}bacula`
18379 fi
18380
18381
18382 for ac_prog in msgfmt
18383 do
18384   # Extract the first word of "$ac_prog", so it can be a program name with args.
18385 set dummy $ac_prog; ac_word=$2
18386 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18387 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18388 if test "${ac_cv_path_MSGFMT+set}" = set; then
18389   echo $ECHO_N "(cached) $ECHO_C" >&6
18390 else
18391   case $MSGFMT in
18392   [\\/]* | ?:[\\/]*)
18393   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
18394   ;;
18395   *)
18396   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18397 for as_dir in $PATH
18398 do
18399   IFS=$as_save_IFS
18400   test -z "$as_dir" && as_dir=.
18401   for ac_exec_ext in '' $ac_executable_extensions; do
18402   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18403     ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
18404     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18405     break 2
18406   fi
18407 done
18408 done
18409 IFS=$as_save_IFS
18410
18411   ;;
18412 esac
18413 fi
18414 MSGFMT=$ac_cv_path_MSGFMT
18415 if test -n "$MSGFMT"; then
18416   { echo "$as_me:$LINENO: result: $MSGFMT" >&5
18417 echo "${ECHO_T}$MSGFMT" >&6; }
18418 else
18419   { echo "$as_me:$LINENO: result: no" >&5
18420 echo "${ECHO_T}no" >&6; }
18421 fi
18422
18423
18424   test -n "$MSGFMT" && break
18425 done
18426 test -n "$MSGFMT" || MSGFMT="no"
18427
18428 if test "$MSGFMT" = "no"
18429 then
18430    echo 'msgfmt program not found, disabling NLS !'
18431    USE_NLS=no
18432    USE_INCLUDED_LIBINTL=no
18433 #else
18434
18435     { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2 or newer" >&5
18436 echo $ECHO_N "checking whether we are using the GNU C Library 2 or newer... $ECHO_C" >&6; }
18437 if test "${ac_cv_gnu_library_2+set}" = set; then
18438   echo $ECHO_N "(cached) $ECHO_C" >&6
18439 else
18440   cat >conftest.$ac_ext <<_ACEOF
18441 /* confdefs.h.  */
18442 _ACEOF
18443 cat confdefs.h >>conftest.$ac_ext
18444 cat >>conftest.$ac_ext <<_ACEOF
18445 /* end confdefs.h.  */
18446
18447 #include <features.h>
18448 #ifdef __GNU_LIBRARY__
18449  #if (__GLIBC__ >= 2)
18450   Lucky GNU user
18451  #endif
18452 #endif
18453
18454 _ACEOF
18455 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18456   $EGREP "Lucky GNU user" >/dev/null 2>&1; then
18457   ac_cv_gnu_library_2=yes
18458 else
18459   ac_cv_gnu_library_2=no
18460 fi
18461 rm -f conftest*
18462
18463
18464
18465 fi
18466 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2" >&5
18467 echo "${ECHO_T}$ac_cv_gnu_library_2" >&6; }
18468
18469     GLIBC2="$ac_cv_gnu_library_2"
18470
18471
18472 if test -n "$ac_tool_prefix"; then
18473   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
18474 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
18475 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18476 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18477 if test "${ac_cv_prog_RANLIB+set}" = set; then
18478   echo $ECHO_N "(cached) $ECHO_C" >&6
18479 else
18480   if test -n "$RANLIB"; then
18481   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
18482 else
18483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18484 for as_dir in $PATH
18485 do
18486   IFS=$as_save_IFS
18487   test -z "$as_dir" && as_dir=.
18488   for ac_exec_ext in '' $ac_executable_extensions; do
18489   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18490     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
18491     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18492     break 2
18493   fi
18494 done
18495 done
18496 IFS=$as_save_IFS
18497
18498 fi
18499 fi
18500 RANLIB=$ac_cv_prog_RANLIB
18501 if test -n "$RANLIB"; then
18502   { echo "$as_me:$LINENO: result: $RANLIB" >&5
18503 echo "${ECHO_T}$RANLIB" >&6; }
18504 else
18505   { echo "$as_me:$LINENO: result: no" >&5
18506 echo "${ECHO_T}no" >&6; }
18507 fi
18508
18509
18510 fi
18511 if test -z "$ac_cv_prog_RANLIB"; then
18512   ac_ct_RANLIB=$RANLIB
18513   # Extract the first word of "ranlib", so it can be a program name with args.
18514 set dummy ranlib; ac_word=$2
18515 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18516 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18517 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
18518   echo $ECHO_N "(cached) $ECHO_C" >&6
18519 else
18520   if test -n "$ac_ct_RANLIB"; then
18521   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
18522 else
18523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18524 for as_dir in $PATH
18525 do
18526   IFS=$as_save_IFS
18527   test -z "$as_dir" && as_dir=.
18528   for ac_exec_ext in '' $ac_executable_extensions; do
18529   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18530     ac_cv_prog_ac_ct_RANLIB="ranlib"
18531     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18532     break 2
18533   fi
18534 done
18535 done
18536 IFS=$as_save_IFS
18537
18538 fi
18539 fi
18540 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
18541 if test -n "$ac_ct_RANLIB"; then
18542   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
18543 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
18544 else
18545   { echo "$as_me:$LINENO: result: no" >&5
18546 echo "${ECHO_T}no" >&6; }
18547 fi
18548
18549   if test "x$ac_ct_RANLIB" = x; then
18550     RANLIB=":"
18551   else
18552     case $cross_compiling:$ac_tool_warned in
18553 yes:)
18554 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
18555 whose name does not start with the host triplet.  If you think this
18556 configuration is useful to you, please write to autoconf@gnu.org." >&5
18557 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
18558 whose name does not start with the host triplet.  If you think this
18559 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
18560 ac_tool_warned=yes ;;
18561 esac
18562     RANLIB=$ac_ct_RANLIB
18563   fi
18564 else
18565   RANLIB="$ac_cv_prog_RANLIB"
18566 fi
18567
18568
18569         { echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
18570 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6; }
18571 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
18572   echo $ECHO_N "(cached) $ECHO_C" >&6
18573 else
18574   ac_check_lib_save_LIBS=$LIBS
18575 LIBS="-lcposix  $LIBS"
18576 cat >conftest.$ac_ext <<_ACEOF
18577 /* confdefs.h.  */
18578 _ACEOF
18579 cat confdefs.h >>conftest.$ac_ext
18580 cat >>conftest.$ac_ext <<_ACEOF
18581 /* end confdefs.h.  */
18582
18583 /* Override any GCC internal prototype to avoid an error.
18584    Use char because int might match the return type of a GCC
18585    builtin and then its argument prototype would still apply.  */
18586 #ifdef __cplusplus
18587 extern "C"
18588 #endif
18589 char strerror ();
18590 int
18591 main ()
18592 {
18593 return strerror ();
18594   ;
18595   return 0;
18596 }
18597 _ACEOF
18598 rm -f conftest.$ac_objext conftest$ac_exeext
18599 if { (ac_try="$ac_link"
18600 case "(($ac_try" in
18601   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18602   *) ac_try_echo=$ac_try;;
18603 esac
18604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18605   (eval "$ac_link") 2>conftest.er1
18606   ac_status=$?
18607   grep -v '^ *+' conftest.er1 >conftest.err
18608   rm -f conftest.er1
18609   cat conftest.err >&5
18610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18611   (exit $ac_status); } && {
18612          test -z "$ac_c_werror_flag" ||
18613          test ! -s conftest.err
18614        } && test -s conftest$ac_exeext &&
18615        $as_test_x conftest$ac_exeext; then
18616   ac_cv_lib_cposix_strerror=yes
18617 else
18618   echo "$as_me: failed program was:" >&5
18619 sed 's/^/| /' conftest.$ac_ext >&5
18620
18621         ac_cv_lib_cposix_strerror=no
18622 fi
18623
18624 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18625       conftest$ac_exeext conftest.$ac_ext
18626 LIBS=$ac_check_lib_save_LIBS
18627 fi
18628 { echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
18629 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6; }
18630 if test $ac_cv_lib_cposix_strerror = yes; then
18631   LIBS="$LIBS -lcposix"
18632 fi
18633
18634
18635
18636 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
18637 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
18638 if test "${ac_cv_c_const+set}" = set; then
18639   echo $ECHO_N "(cached) $ECHO_C" >&6
18640 else
18641   cat >conftest.$ac_ext <<_ACEOF
18642 /* confdefs.h.  */
18643 _ACEOF
18644 cat confdefs.h >>conftest.$ac_ext
18645 cat >>conftest.$ac_ext <<_ACEOF
18646 /* end confdefs.h.  */
18647
18648 int
18649 main ()
18650 {
18651 /* FIXME: Include the comments suggested by Paul. */
18652 #ifndef __cplusplus
18653   /* Ultrix mips cc rejects this.  */
18654   typedef int charset[2];
18655   const charset cs;
18656   /* SunOS 4.1.1 cc rejects this.  */
18657   char const *const *pcpcc;
18658   char **ppc;
18659   /* NEC SVR4.0.2 mips cc rejects this.  */
18660   struct point {int x, y;};
18661   static struct point const zero = {0,0};
18662   /* AIX XL C 1.02.0.0 rejects this.
18663      It does not let you subtract one const X* pointer from another in
18664      an arm of an if-expression whose if-part is not a constant
18665      expression */
18666   const char *g = "string";
18667   pcpcc = &g + (g ? g-g : 0);
18668   /* HPUX 7.0 cc rejects these. */
18669   ++pcpcc;
18670   ppc = (char**) pcpcc;
18671   pcpcc = (char const *const *) ppc;
18672   { /* SCO 3.2v4 cc rejects this.  */
18673     char *t;
18674     char const *s = 0 ? (char *) 0 : (char const *) 0;
18675
18676     *t++ = 0;
18677     if (s) return 0;
18678   }
18679   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
18680     int x[] = {25, 17};
18681     const int *foo = &x[0];
18682     ++foo;
18683   }
18684   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
18685     typedef const int *iptr;
18686     iptr p = 0;
18687     ++p;
18688   }
18689   { /* AIX XL C 1.02.0.0 rejects this saying
18690        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
18691     struct s { int j; const int *ap[3]; };
18692     struct s *b; b->j = 5;
18693   }
18694   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
18695     const int foo = 10;
18696     if (!foo) return 0;
18697   }
18698   return !cs[0] && !zero.x;
18699 #endif
18700
18701   ;
18702   return 0;
18703 }
18704 _ACEOF
18705 rm -f conftest.$ac_objext
18706 if { (ac_try="$ac_compile"
18707 case "(($ac_try" in
18708   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18709   *) ac_try_echo=$ac_try;;
18710 esac
18711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18712   (eval "$ac_compile") 2>conftest.er1
18713   ac_status=$?
18714   grep -v '^ *+' conftest.er1 >conftest.err
18715   rm -f conftest.er1
18716   cat conftest.err >&5
18717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18718   (exit $ac_status); } && {
18719          test -z "$ac_c_werror_flag" ||
18720          test ! -s conftest.err
18721        } && test -s conftest.$ac_objext; then
18722   ac_cv_c_const=yes
18723 else
18724   echo "$as_me: failed program was:" >&5
18725 sed 's/^/| /' conftest.$ac_ext >&5
18726
18727         ac_cv_c_const=no
18728 fi
18729
18730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18731 fi
18732 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
18733 echo "${ECHO_T}$ac_cv_c_const" >&6; }
18734 if test $ac_cv_c_const = no; then
18735
18736 cat >>confdefs.h <<\_ACEOF
18737 #define const
18738 _ACEOF
18739
18740 fi
18741
18742
18743   { echo "$as_me:$LINENO: checking for signed" >&5
18744 echo $ECHO_N "checking for signed... $ECHO_C" >&6; }
18745 if test "${bh_cv_c_signed+set}" = set; then
18746   echo $ECHO_N "(cached) $ECHO_C" >&6
18747 else
18748   cat >conftest.$ac_ext <<_ACEOF
18749 /* confdefs.h.  */
18750 _ACEOF
18751 cat confdefs.h >>conftest.$ac_ext
18752 cat >>conftest.$ac_ext <<_ACEOF
18753 /* end confdefs.h.  */
18754
18755 int
18756 main ()
18757 {
18758 signed char x;
18759   ;
18760   return 0;
18761 }
18762 _ACEOF
18763 rm -f conftest.$ac_objext
18764 if { (ac_try="$ac_compile"
18765 case "(($ac_try" in
18766   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18767   *) ac_try_echo=$ac_try;;
18768 esac
18769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18770   (eval "$ac_compile") 2>conftest.er1
18771   ac_status=$?
18772   grep -v '^ *+' conftest.er1 >conftest.err
18773   rm -f conftest.er1
18774   cat conftest.err >&5
18775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18776   (exit $ac_status); } && {
18777          test -z "$ac_c_werror_flag" ||
18778          test ! -s conftest.err
18779        } && test -s conftest.$ac_objext; then
18780   bh_cv_c_signed=yes
18781 else
18782   echo "$as_me: failed program was:" >&5
18783 sed 's/^/| /' conftest.$ac_ext >&5
18784
18785         bh_cv_c_signed=no
18786 fi
18787
18788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18789 fi
18790 { echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
18791 echo "${ECHO_T}$bh_cv_c_signed" >&6; }
18792   if test $bh_cv_c_signed = no; then
18793
18794 cat >>confdefs.h <<\_ACEOF
18795 #define signed
18796 _ACEOF
18797
18798   fi
18799
18800 { echo "$as_me:$LINENO: checking for inline" >&5
18801 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
18802 if test "${ac_cv_c_inline+set}" = set; then
18803   echo $ECHO_N "(cached) $ECHO_C" >&6
18804 else
18805   ac_cv_c_inline=no
18806 for ac_kw in inline __inline__ __inline; do
18807   cat >conftest.$ac_ext <<_ACEOF
18808 /* confdefs.h.  */
18809 _ACEOF
18810 cat confdefs.h >>conftest.$ac_ext
18811 cat >>conftest.$ac_ext <<_ACEOF
18812 /* end confdefs.h.  */
18813 #ifndef __cplusplus
18814 typedef int foo_t;
18815 static $ac_kw foo_t static_foo () {return 0; }
18816 $ac_kw foo_t foo () {return 0; }
18817 #endif
18818
18819 _ACEOF
18820 rm -f conftest.$ac_objext
18821 if { (ac_try="$ac_compile"
18822 case "(($ac_try" in
18823   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18824   *) ac_try_echo=$ac_try;;
18825 esac
18826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18827   (eval "$ac_compile") 2>conftest.er1
18828   ac_status=$?
18829   grep -v '^ *+' conftest.er1 >conftest.err
18830   rm -f conftest.er1
18831   cat conftest.err >&5
18832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18833   (exit $ac_status); } && {
18834          test -z "$ac_c_werror_flag" ||
18835          test ! -s conftest.err
18836        } && test -s conftest.$ac_objext; then
18837   ac_cv_c_inline=$ac_kw
18838 else
18839   echo "$as_me: failed program was:" >&5
18840 sed 's/^/| /' conftest.$ac_ext >&5
18841
18842
18843 fi
18844
18845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18846   test "$ac_cv_c_inline" != no && break
18847 done
18848
18849 fi
18850 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
18851 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
18852
18853
18854 case $ac_cv_c_inline in
18855   inline | yes) ;;
18856   *)
18857     case $ac_cv_c_inline in
18858       no) ac_val=;;
18859       *) ac_val=$ac_cv_c_inline;;
18860     esac
18861     cat >>confdefs.h <<_ACEOF
18862 #ifndef __cplusplus
18863 #define inline $ac_val
18864 #endif
18865 _ACEOF
18866     ;;
18867 esac
18868
18869 { echo "$as_me:$LINENO: checking for off_t" >&5
18870 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
18871 if test "${ac_cv_type_off_t+set}" = set; then
18872   echo $ECHO_N "(cached) $ECHO_C" >&6
18873 else
18874   cat >conftest.$ac_ext <<_ACEOF
18875 /* confdefs.h.  */
18876 _ACEOF
18877 cat confdefs.h >>conftest.$ac_ext
18878 cat >>conftest.$ac_ext <<_ACEOF
18879 /* end confdefs.h.  */
18880 $ac_includes_default
18881 typedef off_t ac__type_new_;
18882 int
18883 main ()
18884 {
18885 if ((ac__type_new_ *) 0)
18886   return 0;
18887 if (sizeof (ac__type_new_))
18888   return 0;
18889   ;
18890   return 0;
18891 }
18892 _ACEOF
18893 rm -f conftest.$ac_objext
18894 if { (ac_try="$ac_compile"
18895 case "(($ac_try" in
18896   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18897   *) ac_try_echo=$ac_try;;
18898 esac
18899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18900   (eval "$ac_compile") 2>conftest.er1
18901   ac_status=$?
18902   grep -v '^ *+' conftest.er1 >conftest.err
18903   rm -f conftest.er1
18904   cat conftest.err >&5
18905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18906   (exit $ac_status); } && {
18907          test -z "$ac_c_werror_flag" ||
18908          test ! -s conftest.err
18909        } && test -s conftest.$ac_objext; then
18910   ac_cv_type_off_t=yes
18911 else
18912   echo "$as_me: failed program was:" >&5
18913 sed 's/^/| /' conftest.$ac_ext >&5
18914
18915         ac_cv_type_off_t=no
18916 fi
18917
18918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18919 fi
18920 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
18921 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
18922 if test $ac_cv_type_off_t = yes; then
18923   :
18924 else
18925
18926 cat >>confdefs.h <<_ACEOF
18927 #define off_t long int
18928 _ACEOF
18929
18930 fi
18931
18932 { echo "$as_me:$LINENO: checking for size_t" >&5
18933 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
18934 if test "${ac_cv_type_size_t+set}" = set; then
18935   echo $ECHO_N "(cached) $ECHO_C" >&6
18936 else
18937   cat >conftest.$ac_ext <<_ACEOF
18938 /* confdefs.h.  */
18939 _ACEOF
18940 cat confdefs.h >>conftest.$ac_ext
18941 cat >>conftest.$ac_ext <<_ACEOF
18942 /* end confdefs.h.  */
18943 $ac_includes_default
18944 typedef size_t ac__type_new_;
18945 int
18946 main ()
18947 {
18948 if ((ac__type_new_ *) 0)
18949   return 0;
18950 if (sizeof (ac__type_new_))
18951   return 0;
18952   ;
18953   return 0;
18954 }
18955 _ACEOF
18956 rm -f conftest.$ac_objext
18957 if { (ac_try="$ac_compile"
18958 case "(($ac_try" in
18959   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18960   *) ac_try_echo=$ac_try;;
18961 esac
18962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18963   (eval "$ac_compile") 2>conftest.er1
18964   ac_status=$?
18965   grep -v '^ *+' conftest.er1 >conftest.err
18966   rm -f conftest.er1
18967   cat conftest.err >&5
18968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18969   (exit $ac_status); } && {
18970          test -z "$ac_c_werror_flag" ||
18971          test ! -s conftest.err
18972        } && test -s conftest.$ac_objext; then
18973   ac_cv_type_size_t=yes
18974 else
18975   echo "$as_me: failed program was:" >&5
18976 sed 's/^/| /' conftest.$ac_ext >&5
18977
18978         ac_cv_type_size_t=no
18979 fi
18980
18981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18982 fi
18983 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
18984 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
18985 if test $ac_cv_type_size_t = yes; then
18986   :
18987 else
18988
18989 cat >>confdefs.h <<_ACEOF
18990 #define size_t unsigned int
18991 _ACEOF
18992
18993 fi
18994
18995
18996   { echo "$as_me:$LINENO: checking for long long" >&5
18997 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
18998 if test "${ac_cv_type_long_long+set}" = set; then
18999   echo $ECHO_N "(cached) $ECHO_C" >&6
19000 else
19001   cat >conftest.$ac_ext <<_ACEOF
19002 /* confdefs.h.  */
19003 _ACEOF
19004 cat confdefs.h >>conftest.$ac_ext
19005 cat >>conftest.$ac_ext <<_ACEOF
19006 /* end confdefs.h.  */
19007 long long ll = 1LL; int i = 63;
19008 int
19009 main ()
19010 {
19011 long long llmax = (long long) -1;
19012      return ll << i | ll >> i | llmax / ll | llmax % ll;
19013   ;
19014   return 0;
19015 }
19016 _ACEOF
19017 rm -f conftest.$ac_objext conftest$ac_exeext
19018 if { (ac_try="$ac_link"
19019 case "(($ac_try" in
19020   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19021   *) ac_try_echo=$ac_try;;
19022 esac
19023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19024   (eval "$ac_link") 2>conftest.er1
19025   ac_status=$?
19026   grep -v '^ *+' conftest.er1 >conftest.err
19027   rm -f conftest.er1
19028   cat conftest.err >&5
19029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19030   (exit $ac_status); } && {
19031          test -z "$ac_c_werror_flag" ||
19032          test ! -s conftest.err
19033        } && test -s conftest$ac_exeext &&
19034        $as_test_x conftest$ac_exeext; then
19035   ac_cv_type_long_long=yes
19036 else
19037   echo "$as_me: failed program was:" >&5
19038 sed 's/^/| /' conftest.$ac_ext >&5
19039
19040         ac_cv_type_long_long=no
19041 fi
19042
19043 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19044       conftest$ac_exeext conftest.$ac_ext
19045 fi
19046 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
19047 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
19048   if test $ac_cv_type_long_long = yes; then
19049
19050 cat >>confdefs.h <<\_ACEOF
19051 #define HAVE_LONG_LONG 1
19052 _ACEOF
19053
19054   fi
19055
19056
19057   { echo "$as_me:$LINENO: checking for long double" >&5
19058 echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
19059 if test "${gt_cv_c_long_double+set}" = set; then
19060   echo $ECHO_N "(cached) $ECHO_C" >&6
19061 else
19062   if test "$GCC" = yes; then
19063        gt_cv_c_long_double=yes
19064      else
19065        cat >conftest.$ac_ext <<_ACEOF
19066 /* confdefs.h.  */
19067 _ACEOF
19068 cat confdefs.h >>conftest.$ac_ext
19069 cat >>conftest.$ac_ext <<_ACEOF
19070 /* end confdefs.h.  */
19071
19072          /* The Stardent Vistra knows sizeof(long double), but does not support it.  */
19073          long double foo = 0.0;
19074          /* On Ultrix 4.3 cc, long double is 4 and double is 8.  */
19075          int array [2*(sizeof(long double) >= sizeof(double)) - 1];
19076
19077 int
19078 main ()
19079 {
19080
19081   ;
19082   return 0;
19083 }
19084 _ACEOF
19085 rm -f conftest.$ac_objext
19086 if { (ac_try="$ac_compile"
19087 case "(($ac_try" in
19088   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19089   *) ac_try_echo=$ac_try;;
19090 esac
19091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19092   (eval "$ac_compile") 2>conftest.er1
19093   ac_status=$?
19094   grep -v '^ *+' conftest.er1 >conftest.err
19095   rm -f conftest.er1
19096   cat conftest.err >&5
19097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19098   (exit $ac_status); } && {
19099          test -z "$ac_c_werror_flag" ||
19100          test ! -s conftest.err
19101        } && test -s conftest.$ac_objext; then
19102   gt_cv_c_long_double=yes
19103 else
19104   echo "$as_me: failed program was:" >&5
19105 sed 's/^/| /' conftest.$ac_ext >&5
19106
19107         gt_cv_c_long_double=no
19108 fi
19109
19110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19111      fi
19112 fi
19113 { echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
19114 echo "${ECHO_T}$gt_cv_c_long_double" >&6; }
19115   if test $gt_cv_c_long_double = yes; then
19116
19117 cat >>confdefs.h <<\_ACEOF
19118 #define HAVE_LONG_DOUBLE 1
19119 _ACEOF
19120
19121   fi
19122
19123
19124   { echo "$as_me:$LINENO: checking for wchar_t" >&5
19125 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
19126 if test "${gt_cv_c_wchar_t+set}" = set; then
19127   echo $ECHO_N "(cached) $ECHO_C" >&6
19128 else
19129   cat >conftest.$ac_ext <<_ACEOF
19130 /* confdefs.h.  */
19131 _ACEOF
19132 cat confdefs.h >>conftest.$ac_ext
19133 cat >>conftest.$ac_ext <<_ACEOF
19134 /* end confdefs.h.  */
19135 #include <stddef.h>
19136        wchar_t foo = (wchar_t)'\0';
19137 int
19138 main ()
19139 {
19140
19141   ;
19142   return 0;
19143 }
19144 _ACEOF
19145 rm -f conftest.$ac_objext
19146 if { (ac_try="$ac_compile"
19147 case "(($ac_try" in
19148   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19149   *) ac_try_echo=$ac_try;;
19150 esac
19151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19152   (eval "$ac_compile") 2>conftest.er1
19153   ac_status=$?
19154   grep -v '^ *+' conftest.er1 >conftest.err
19155   rm -f conftest.er1
19156   cat conftest.err >&5
19157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19158   (exit $ac_status); } && {
19159          test -z "$ac_c_werror_flag" ||
19160          test ! -s conftest.err
19161        } && test -s conftest.$ac_objext; then
19162   gt_cv_c_wchar_t=yes
19163 else
19164   echo "$as_me: failed program was:" >&5
19165 sed 's/^/| /' conftest.$ac_ext >&5
19166
19167         gt_cv_c_wchar_t=no
19168 fi
19169
19170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19171 fi
19172 { echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
19173 echo "${ECHO_T}$gt_cv_c_wchar_t" >&6; }
19174   if test $gt_cv_c_wchar_t = yes; then
19175
19176 cat >>confdefs.h <<\_ACEOF
19177 #define HAVE_WCHAR_T 1
19178 _ACEOF
19179
19180   fi
19181
19182
19183   { echo "$as_me:$LINENO: checking for wint_t" >&5
19184 echo $ECHO_N "checking for wint_t... $ECHO_C" >&6; }
19185 if test "${gt_cv_c_wint_t+set}" = set; then
19186   echo $ECHO_N "(cached) $ECHO_C" >&6
19187 else
19188   cat >conftest.$ac_ext <<_ACEOF
19189 /* confdefs.h.  */
19190 _ACEOF
19191 cat confdefs.h >>conftest.$ac_ext
19192 cat >>conftest.$ac_ext <<_ACEOF
19193 /* end confdefs.h.  */
19194 #include <wchar.h>
19195        wint_t foo = (wchar_t)'\0';
19196 int
19197 main ()
19198 {
19199
19200   ;
19201   return 0;
19202 }
19203 _ACEOF
19204 rm -f conftest.$ac_objext
19205 if { (ac_try="$ac_compile"
19206 case "(($ac_try" in
19207   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19208   *) ac_try_echo=$ac_try;;
19209 esac
19210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19211   (eval "$ac_compile") 2>conftest.er1
19212   ac_status=$?
19213   grep -v '^ *+' conftest.er1 >conftest.err
19214   rm -f conftest.er1
19215   cat conftest.err >&5
19216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19217   (exit $ac_status); } && {
19218          test -z "$ac_c_werror_flag" ||
19219          test ! -s conftest.err
19220        } && test -s conftest.$ac_objext; then
19221   gt_cv_c_wint_t=yes
19222 else
19223   echo "$as_me: failed program was:" >&5
19224 sed 's/^/| /' conftest.$ac_ext >&5
19225
19226         gt_cv_c_wint_t=no
19227 fi
19228
19229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19230 fi
19231 { echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
19232 echo "${ECHO_T}$gt_cv_c_wint_t" >&6; }
19233   if test $gt_cv_c_wint_t = yes; then
19234
19235 cat >>confdefs.h <<\_ACEOF
19236 #define HAVE_WINT_T 1
19237 _ACEOF
19238
19239   fi
19240
19241
19242   { echo "$as_me:$LINENO: checking for inttypes.h" >&5
19243 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
19244 if test "${gl_cv_header_inttypes_h+set}" = set; then
19245   echo $ECHO_N "(cached) $ECHO_C" >&6
19246 else
19247   cat >conftest.$ac_ext <<_ACEOF
19248 /* confdefs.h.  */
19249 _ACEOF
19250 cat confdefs.h >>conftest.$ac_ext
19251 cat >>conftest.$ac_ext <<_ACEOF
19252 /* end confdefs.h.  */
19253 #include <sys/types.h>
19254 #include <inttypes.h>
19255 int
19256 main ()
19257 {
19258 uintmax_t i = (uintmax_t) -1;
19259   ;
19260   return 0;
19261 }
19262 _ACEOF
19263 rm -f conftest.$ac_objext
19264 if { (ac_try="$ac_compile"
19265 case "(($ac_try" in
19266   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19267   *) ac_try_echo=$ac_try;;
19268 esac
19269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19270   (eval "$ac_compile") 2>conftest.er1
19271   ac_status=$?
19272   grep -v '^ *+' conftest.er1 >conftest.err
19273   rm -f conftest.er1
19274   cat conftest.err >&5
19275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19276   (exit $ac_status); } && {
19277          test -z "$ac_c_werror_flag" ||
19278          test ! -s conftest.err
19279        } && test -s conftest.$ac_objext; then
19280   gl_cv_header_inttypes_h=yes
19281 else
19282   echo "$as_me: failed program was:" >&5
19283 sed 's/^/| /' conftest.$ac_ext >&5
19284
19285         gl_cv_header_inttypes_h=no
19286 fi
19287
19288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19289 fi
19290 { echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5
19291 echo "${ECHO_T}$gl_cv_header_inttypes_h" >&6; }
19292   if test $gl_cv_header_inttypes_h = yes; then
19293
19294 cat >>confdefs.h <<_ACEOF
19295 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
19296 _ACEOF
19297
19298   fi
19299
19300
19301   { echo "$as_me:$LINENO: checking for stdint.h" >&5
19302 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
19303 if test "${gl_cv_header_stdint_h+set}" = set; then
19304   echo $ECHO_N "(cached) $ECHO_C" >&6
19305 else
19306   cat >conftest.$ac_ext <<_ACEOF
19307 /* confdefs.h.  */
19308 _ACEOF
19309 cat confdefs.h >>conftest.$ac_ext
19310 cat >>conftest.$ac_ext <<_ACEOF
19311 /* end confdefs.h.  */
19312 #include <sys/types.h>
19313 #include <stdint.h>
19314 int
19315 main ()
19316 {
19317 uintmax_t i = (uintmax_t) -1;
19318   ;
19319   return 0;
19320 }
19321 _ACEOF
19322 rm -f conftest.$ac_objext
19323 if { (ac_try="$ac_compile"
19324 case "(($ac_try" in
19325   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19326   *) ac_try_echo=$ac_try;;
19327 esac
19328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19329   (eval "$ac_compile") 2>conftest.er1
19330   ac_status=$?
19331   grep -v '^ *+' conftest.er1 >conftest.err
19332   rm -f conftest.er1
19333   cat conftest.err >&5
19334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19335   (exit $ac_status); } && {
19336          test -z "$ac_c_werror_flag" ||
19337          test ! -s conftest.err
19338        } && test -s conftest.$ac_objext; then
19339   gl_cv_header_stdint_h=yes
19340 else
19341   echo "$as_me: failed program was:" >&5
19342 sed 's/^/| /' conftest.$ac_ext >&5
19343
19344         gl_cv_header_stdint_h=no
19345 fi
19346
19347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19348 fi
19349 { echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
19350 echo "${ECHO_T}$gl_cv_header_stdint_h" >&6; }
19351   if test $gl_cv_header_stdint_h = yes; then
19352
19353 cat >>confdefs.h <<_ACEOF
19354 #define HAVE_STDINT_H_WITH_UINTMAX 1
19355 _ACEOF
19356
19357   fi
19358
19359
19360
19361
19362   { echo "$as_me:$LINENO: checking for intmax_t" >&5
19363 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; }
19364 if test "${gt_cv_c_intmax_t+set}" = set; then
19365   echo $ECHO_N "(cached) $ECHO_C" >&6
19366 else
19367   cat >conftest.$ac_ext <<_ACEOF
19368 /* confdefs.h.  */
19369 _ACEOF
19370 cat confdefs.h >>conftest.$ac_ext
19371 cat >>conftest.$ac_ext <<_ACEOF
19372 /* end confdefs.h.  */
19373
19374 #include <stddef.h>
19375 #include <stdlib.h>
19376 #if HAVE_STDINT_H_WITH_UINTMAX
19377 #include <stdint.h>
19378 #endif
19379 #if HAVE_INTTYPES_H_WITH_UINTMAX
19380 #include <inttypes.h>
19381 #endif
19382
19383 int
19384 main ()
19385 {
19386 intmax_t x = -1;
19387   ;
19388   return 0;
19389 }
19390 _ACEOF
19391 rm -f conftest.$ac_objext
19392 if { (ac_try="$ac_compile"
19393 case "(($ac_try" in
19394   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19395   *) ac_try_echo=$ac_try;;
19396 esac
19397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19398   (eval "$ac_compile") 2>conftest.er1
19399   ac_status=$?
19400   grep -v '^ *+' conftest.er1 >conftest.err
19401   rm -f conftest.er1
19402   cat conftest.err >&5
19403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19404   (exit $ac_status); } && {
19405          test -z "$ac_c_werror_flag" ||
19406          test ! -s conftest.err
19407        } && test -s conftest.$ac_objext; then
19408   gt_cv_c_intmax_t=yes
19409 else
19410   echo "$as_me: failed program was:" >&5
19411 sed 's/^/| /' conftest.$ac_ext >&5
19412
19413         gt_cv_c_intmax_t=no
19414 fi
19415
19416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19417 fi
19418 { echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
19419 echo "${ECHO_T}$gt_cv_c_intmax_t" >&6; }
19420   if test $gt_cv_c_intmax_t = yes; then
19421
19422 cat >>confdefs.h <<\_ACEOF
19423 #define HAVE_INTMAX_T 1
19424 _ACEOF
19425
19426   fi
19427
19428
19429
19430   { echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
19431 echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6; }
19432 if test "${gt_cv_func_printf_posix+set}" = set; then
19433   echo $ECHO_N "(cached) $ECHO_C" >&6
19434 else
19435
19436       if test "$cross_compiling" = yes; then
19437
19438         cat >conftest.$ac_ext <<_ACEOF
19439 /* confdefs.h.  */
19440 _ACEOF
19441 cat confdefs.h >>conftest.$ac_ext
19442 cat >>conftest.$ac_ext <<_ACEOF
19443 /* end confdefs.h.  */
19444
19445 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
19446   notposix
19447 #endif
19448
19449 _ACEOF
19450 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19451   $EGREP "notposix" >/dev/null 2>&1; then
19452   gt_cv_func_printf_posix="guessing no"
19453 else
19454   gt_cv_func_printf_posix="guessing yes"
19455 fi
19456 rm -f conftest*
19457
19458
19459 else
19460   cat >conftest.$ac_ext <<_ACEOF
19461 /* confdefs.h.  */
19462 _ACEOF
19463 cat confdefs.h >>conftest.$ac_ext
19464 cat >>conftest.$ac_ext <<_ACEOF
19465 /* end confdefs.h.  */
19466
19467 #include <stdio.h>
19468 #include <string.h>
19469 /* The string "%2$d %1$d", with dollar characters protected from the shell's
19470    dollar expansion (possibly an autoconf bug).  */
19471 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
19472 static char buf[100];
19473 int main ()
19474 {
19475   sprintf (buf, format, 33, 55);
19476   return (strcmp (buf, "55 33") != 0);
19477 }
19478 _ACEOF
19479 rm -f conftest$ac_exeext
19480 if { (ac_try="$ac_link"
19481 case "(($ac_try" in
19482   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19483   *) ac_try_echo=$ac_try;;
19484 esac
19485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19486   (eval "$ac_link") 2>&5
19487   ac_status=$?
19488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19489   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19490   { (case "(($ac_try" in
19491   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19492   *) ac_try_echo=$ac_try;;
19493 esac
19494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19495   (eval "$ac_try") 2>&5
19496   ac_status=$?
19497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19498   (exit $ac_status); }; }; then
19499   gt_cv_func_printf_posix=yes
19500 else
19501   echo "$as_me: program exited with status $ac_status" >&5
19502 echo "$as_me: failed program was:" >&5
19503 sed 's/^/| /' conftest.$ac_ext >&5
19504
19505 ( exit $ac_status )
19506 gt_cv_func_printf_posix=no
19507 fi
19508 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19509 fi
19510
19511
19512
19513 fi
19514 { echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
19515 echo "${ECHO_T}$gt_cv_func_printf_posix" >&6; }
19516   case $gt_cv_func_printf_posix in
19517     *yes)
19518
19519 cat >>confdefs.h <<\_ACEOF
19520 #define HAVE_POSIX_PRINTF 1
19521 _ACEOF
19522
19523       ;;
19524   esac
19525
19526 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
19527 # for constant arguments.  Useless!
19528 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
19529 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
19530 if test "${ac_cv_working_alloca_h+set}" = set; then
19531   echo $ECHO_N "(cached) $ECHO_C" >&6
19532 else
19533   cat >conftest.$ac_ext <<_ACEOF
19534 /* confdefs.h.  */
19535 _ACEOF
19536 cat confdefs.h >>conftest.$ac_ext
19537 cat >>conftest.$ac_ext <<_ACEOF
19538 /* end confdefs.h.  */
19539 #include <alloca.h>
19540 int
19541 main ()
19542 {
19543 char *p = (char *) alloca (2 * sizeof (int));
19544                           if (p) return 0;
19545   ;
19546   return 0;
19547 }
19548 _ACEOF
19549 rm -f conftest.$ac_objext conftest$ac_exeext
19550 if { (ac_try="$ac_link"
19551 case "(($ac_try" in
19552   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19553   *) ac_try_echo=$ac_try;;
19554 esac
19555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19556   (eval "$ac_link") 2>conftest.er1
19557   ac_status=$?
19558   grep -v '^ *+' conftest.er1 >conftest.err
19559   rm -f conftest.er1
19560   cat conftest.err >&5
19561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19562   (exit $ac_status); } && {
19563          test -z "$ac_c_werror_flag" ||
19564          test ! -s conftest.err
19565        } && test -s conftest$ac_exeext &&
19566        $as_test_x conftest$ac_exeext; then
19567   ac_cv_working_alloca_h=yes
19568 else
19569   echo "$as_me: failed program was:" >&5
19570 sed 's/^/| /' conftest.$ac_ext >&5
19571
19572         ac_cv_working_alloca_h=no
19573 fi
19574
19575 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19576       conftest$ac_exeext conftest.$ac_ext
19577 fi
19578 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
19579 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
19580 if test $ac_cv_working_alloca_h = yes; then
19581
19582 cat >>confdefs.h <<\_ACEOF
19583 #define HAVE_ALLOCA_H 1
19584 _ACEOF
19585
19586 fi
19587
19588 { echo "$as_me:$LINENO: checking for alloca" >&5
19589 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
19590 if test "${ac_cv_func_alloca_works+set}" = set; then
19591   echo $ECHO_N "(cached) $ECHO_C" >&6
19592 else
19593   cat >conftest.$ac_ext <<_ACEOF
19594 /* confdefs.h.  */
19595 _ACEOF
19596 cat confdefs.h >>conftest.$ac_ext
19597 cat >>conftest.$ac_ext <<_ACEOF
19598 /* end confdefs.h.  */
19599 #ifdef __GNUC__
19600 # define alloca __builtin_alloca
19601 #else
19602 # ifdef _MSC_VER
19603 #  include <malloc.h>
19604 #  define alloca _alloca
19605 # else
19606 #  ifdef HAVE_ALLOCA_H
19607 #   include <alloca.h>
19608 #  else
19609 #   ifdef _AIX
19610  #pragma alloca
19611 #   else
19612 #    ifndef alloca /* predefined by HP cc +Olibcalls */
19613 char *alloca ();
19614 #    endif
19615 #   endif
19616 #  endif
19617 # endif
19618 #endif
19619
19620 int
19621 main ()
19622 {
19623 char *p = (char *) alloca (1);
19624                                     if (p) return 0;
19625   ;
19626   return 0;
19627 }
19628 _ACEOF
19629 rm -f conftest.$ac_objext conftest$ac_exeext
19630 if { (ac_try="$ac_link"
19631 case "(($ac_try" in
19632   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19633   *) ac_try_echo=$ac_try;;
19634 esac
19635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19636   (eval "$ac_link") 2>conftest.er1
19637   ac_status=$?
19638   grep -v '^ *+' conftest.er1 >conftest.err
19639   rm -f conftest.er1
19640   cat conftest.err >&5
19641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19642   (exit $ac_status); } && {
19643          test -z "$ac_c_werror_flag" ||
19644          test ! -s conftest.err
19645        } && test -s conftest$ac_exeext &&
19646        $as_test_x conftest$ac_exeext; then
19647   ac_cv_func_alloca_works=yes
19648 else
19649   echo "$as_me: failed program was:" >&5
19650 sed 's/^/| /' conftest.$ac_ext >&5
19651
19652         ac_cv_func_alloca_works=no
19653 fi
19654
19655 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19656       conftest$ac_exeext conftest.$ac_ext
19657 fi
19658 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
19659 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
19660
19661 if test $ac_cv_func_alloca_works = yes; then
19662
19663 cat >>confdefs.h <<\_ACEOF
19664 #define HAVE_ALLOCA 1
19665 _ACEOF
19666
19667 else
19668   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
19669 # that cause trouble.  Some versions do not even contain alloca or
19670 # contain a buggy version.  If you still want to use their alloca,
19671 # use ar to extract alloca.o from them instead of compiling alloca.c.
19672
19673 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
19674
19675 cat >>confdefs.h <<\_ACEOF
19676 #define C_ALLOCA 1
19677 _ACEOF
19678
19679
19680 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
19681 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
19682 if test "${ac_cv_os_cray+set}" = set; then
19683   echo $ECHO_N "(cached) $ECHO_C" >&6
19684 else
19685   cat >conftest.$ac_ext <<_ACEOF
19686 /* confdefs.h.  */
19687 _ACEOF
19688 cat confdefs.h >>conftest.$ac_ext
19689 cat >>conftest.$ac_ext <<_ACEOF
19690 /* end confdefs.h.  */
19691 #if defined CRAY && ! defined CRAY2
19692 webecray
19693 #else
19694 wenotbecray
19695 #endif
19696
19697 _ACEOF
19698 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19699   $EGREP "webecray" >/dev/null 2>&1; then
19700   ac_cv_os_cray=yes
19701 else
19702   ac_cv_os_cray=no
19703 fi
19704 rm -f conftest*
19705
19706 fi
19707 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
19708 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
19709 if test $ac_cv_os_cray = yes; then
19710   for ac_func in _getb67 GETB67 getb67; do
19711     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19712 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19713 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19714 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19715   echo $ECHO_N "(cached) $ECHO_C" >&6
19716 else
19717   cat >conftest.$ac_ext <<_ACEOF
19718 /* confdefs.h.  */
19719 _ACEOF
19720 cat confdefs.h >>conftest.$ac_ext
19721 cat >>conftest.$ac_ext <<_ACEOF
19722 /* end confdefs.h.  */
19723 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19724    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19725 #define $ac_func innocuous_$ac_func
19726
19727 /* System header to define __stub macros and hopefully few prototypes,
19728     which can conflict with char $ac_func (); below.
19729     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19730     <limits.h> exists even on freestanding compilers.  */
19731
19732 #ifdef __STDC__
19733 # include <limits.h>
19734 #else
19735 # include <assert.h>
19736 #endif
19737
19738 #undef $ac_func
19739
19740 /* Override any GCC internal prototype to avoid an error.
19741    Use char because int might match the return type of a GCC
19742    builtin and then its argument prototype would still apply.  */
19743 #ifdef __cplusplus
19744 extern "C"
19745 #endif
19746 char $ac_func ();
19747 /* The GNU C library defines this for functions which it implements
19748     to always fail with ENOSYS.  Some functions are actually named
19749     something starting with __ and the normal name is an alias.  */
19750 #if defined __stub_$ac_func || defined __stub___$ac_func
19751 choke me
19752 #endif
19753
19754 int
19755 main ()
19756 {
19757 return $ac_func ();
19758   ;
19759   return 0;
19760 }
19761 _ACEOF
19762 rm -f conftest.$ac_objext conftest$ac_exeext
19763 if { (ac_try="$ac_link"
19764 case "(($ac_try" in
19765   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19766   *) ac_try_echo=$ac_try;;
19767 esac
19768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19769   (eval "$ac_link") 2>conftest.er1
19770   ac_status=$?
19771   grep -v '^ *+' conftest.er1 >conftest.err
19772   rm -f conftest.er1
19773   cat conftest.err >&5
19774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19775   (exit $ac_status); } && {
19776          test -z "$ac_c_werror_flag" ||
19777          test ! -s conftest.err
19778        } && test -s conftest$ac_exeext &&
19779        $as_test_x conftest$ac_exeext; then
19780   eval "$as_ac_var=yes"
19781 else
19782   echo "$as_me: failed program was:" >&5
19783 sed 's/^/| /' conftest.$ac_ext >&5
19784
19785         eval "$as_ac_var=no"
19786 fi
19787
19788 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19789       conftest$ac_exeext conftest.$ac_ext
19790 fi
19791 ac_res=`eval echo '${'$as_ac_var'}'`
19792                { echo "$as_me:$LINENO: result: $ac_res" >&5
19793 echo "${ECHO_T}$ac_res" >&6; }
19794 if test `eval echo '${'$as_ac_var'}'` = yes; then
19795
19796 cat >>confdefs.h <<_ACEOF
19797 #define CRAY_STACKSEG_END $ac_func
19798 _ACEOF
19799
19800     break
19801 fi
19802
19803   done
19804 fi
19805
19806 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
19807 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
19808 if test "${ac_cv_c_stack_direction+set}" = set; then
19809   echo $ECHO_N "(cached) $ECHO_C" >&6
19810 else
19811   if test "$cross_compiling" = yes; then
19812   ac_cv_c_stack_direction=0
19813 else
19814   cat >conftest.$ac_ext <<_ACEOF
19815 /* confdefs.h.  */
19816 _ACEOF
19817 cat confdefs.h >>conftest.$ac_ext
19818 cat >>conftest.$ac_ext <<_ACEOF
19819 /* end confdefs.h.  */
19820 $ac_includes_default
19821 int
19822 find_stack_direction ()
19823 {
19824   static char *addr = 0;
19825   auto char dummy;
19826   if (addr == 0)
19827     {
19828       addr = &dummy;
19829       return find_stack_direction ();
19830     }
19831   else
19832     return (&dummy > addr) ? 1 : -1;
19833 }
19834
19835 int
19836 main ()
19837 {
19838   return find_stack_direction () < 0;
19839 }
19840 _ACEOF
19841 rm -f conftest$ac_exeext
19842 if { (ac_try="$ac_link"
19843 case "(($ac_try" in
19844   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19845   *) ac_try_echo=$ac_try;;
19846 esac
19847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19848   (eval "$ac_link") 2>&5
19849   ac_status=$?
19850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19851   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19852   { (case "(($ac_try" in
19853   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19854   *) ac_try_echo=$ac_try;;
19855 esac
19856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19857   (eval "$ac_try") 2>&5
19858   ac_status=$?
19859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19860   (exit $ac_status); }; }; then
19861   ac_cv_c_stack_direction=1
19862 else
19863   echo "$as_me: program exited with status $ac_status" >&5
19864 echo "$as_me: failed program was:" >&5
19865 sed 's/^/| /' conftest.$ac_ext >&5
19866
19867 ( exit $ac_status )
19868 ac_cv_c_stack_direction=-1
19869 fi
19870 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19871 fi
19872
19873
19874 fi
19875 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
19876 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
19877
19878 cat >>confdefs.h <<_ACEOF
19879 #define STACK_DIRECTION $ac_cv_c_stack_direction
19880 _ACEOF
19881
19882
19883 fi
19884
19885
19886
19887 for ac_header in stdlib.h unistd.h
19888 do
19889 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19890 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19891   { echo "$as_me:$LINENO: checking for $ac_header" >&5
19892 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19893 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19894   echo $ECHO_N "(cached) $ECHO_C" >&6
19895 fi
19896 ac_res=`eval echo '${'$as_ac_Header'}'`
19897                { echo "$as_me:$LINENO: result: $ac_res" >&5
19898 echo "${ECHO_T}$ac_res" >&6; }
19899 else
19900   # Is the header compilable?
19901 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19902 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19903 cat >conftest.$ac_ext <<_ACEOF
19904 /* confdefs.h.  */
19905 _ACEOF
19906 cat confdefs.h >>conftest.$ac_ext
19907 cat >>conftest.$ac_ext <<_ACEOF
19908 /* end confdefs.h.  */
19909 $ac_includes_default
19910 #include <$ac_header>
19911 _ACEOF
19912 rm -f conftest.$ac_objext
19913 if { (ac_try="$ac_compile"
19914 case "(($ac_try" in
19915   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19916   *) ac_try_echo=$ac_try;;
19917 esac
19918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19919   (eval "$ac_compile") 2>conftest.er1
19920   ac_status=$?
19921   grep -v '^ *+' conftest.er1 >conftest.err
19922   rm -f conftest.er1
19923   cat conftest.err >&5
19924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19925   (exit $ac_status); } && {
19926          test -z "$ac_c_werror_flag" ||
19927          test ! -s conftest.err
19928        } && test -s conftest.$ac_objext; then
19929   ac_header_compiler=yes
19930 else
19931   echo "$as_me: failed program was:" >&5
19932 sed 's/^/| /' conftest.$ac_ext >&5
19933
19934         ac_header_compiler=no
19935 fi
19936
19937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19938 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19939 echo "${ECHO_T}$ac_header_compiler" >&6; }
19940
19941 # Is the header present?
19942 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19943 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19944 cat >conftest.$ac_ext <<_ACEOF
19945 /* confdefs.h.  */
19946 _ACEOF
19947 cat confdefs.h >>conftest.$ac_ext
19948 cat >>conftest.$ac_ext <<_ACEOF
19949 /* end confdefs.h.  */
19950 #include <$ac_header>
19951 _ACEOF
19952 if { (ac_try="$ac_cpp conftest.$ac_ext"
19953 case "(($ac_try" in
19954   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19955   *) ac_try_echo=$ac_try;;
19956 esac
19957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19958   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19959   ac_status=$?
19960   grep -v '^ *+' conftest.er1 >conftest.err
19961   rm -f conftest.er1
19962   cat conftest.err >&5
19963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19964   (exit $ac_status); } >/dev/null && {
19965          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19966          test ! -s conftest.err
19967        }; then
19968   ac_header_preproc=yes
19969 else
19970   echo "$as_me: failed program was:" >&5
19971 sed 's/^/| /' conftest.$ac_ext >&5
19972
19973   ac_header_preproc=no
19974 fi
19975
19976 rm -f conftest.err conftest.$ac_ext
19977 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19978 echo "${ECHO_T}$ac_header_preproc" >&6; }
19979
19980 # So?  What about this header?
19981 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19982   yes:no: )
19983     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19984 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19985     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19986 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19987     ac_header_preproc=yes
19988     ;;
19989   no:yes:* )
19990     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19991 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19992     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19993 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19994     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19995 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19996     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19997 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19998     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19999 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20000     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20001 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20002
20003     ;;
20004 esac
20005 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20006 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20007 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20008   echo $ECHO_N "(cached) $ECHO_C" >&6
20009 else
20010   eval "$as_ac_Header=\$ac_header_preproc"
20011 fi
20012 ac_res=`eval echo '${'$as_ac_Header'}'`
20013                { echo "$as_me:$LINENO: result: $ac_res" >&5
20014 echo "${ECHO_T}$ac_res" >&6; }
20015
20016 fi
20017 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20018   cat >>confdefs.h <<_ACEOF
20019 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20020 _ACEOF
20021
20022 fi
20023
20024 done
20025
20026
20027 for ac_func in getpagesize
20028 do
20029 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20030 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20031 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20032 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20033   echo $ECHO_N "(cached) $ECHO_C" >&6
20034 else
20035   cat >conftest.$ac_ext <<_ACEOF
20036 /* confdefs.h.  */
20037 _ACEOF
20038 cat confdefs.h >>conftest.$ac_ext
20039 cat >>conftest.$ac_ext <<_ACEOF
20040 /* end confdefs.h.  */
20041 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20042    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20043 #define $ac_func innocuous_$ac_func
20044
20045 /* System header to define __stub macros and hopefully few prototypes,
20046     which can conflict with char $ac_func (); below.
20047     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20048     <limits.h> exists even on freestanding compilers.  */
20049
20050 #ifdef __STDC__
20051 # include <limits.h>
20052 #else
20053 # include <assert.h>
20054 #endif
20055
20056 #undef $ac_func
20057
20058 /* Override any GCC internal prototype to avoid an error.
20059    Use char because int might match the return type of a GCC
20060    builtin and then its argument prototype would still apply.  */
20061 #ifdef __cplusplus
20062 extern "C"
20063 #endif
20064 char $ac_func ();
20065 /* The GNU C library defines this for functions which it implements
20066     to always fail with ENOSYS.  Some functions are actually named
20067     something starting with __ and the normal name is an alias.  */
20068 #if defined __stub_$ac_func || defined __stub___$ac_func
20069 choke me
20070 #endif
20071
20072 int
20073 main ()
20074 {
20075 return $ac_func ();
20076   ;
20077   return 0;
20078 }
20079 _ACEOF
20080 rm -f conftest.$ac_objext conftest$ac_exeext
20081 if { (ac_try="$ac_link"
20082 case "(($ac_try" in
20083   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20084   *) ac_try_echo=$ac_try;;
20085 esac
20086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20087   (eval "$ac_link") 2>conftest.er1
20088   ac_status=$?
20089   grep -v '^ *+' conftest.er1 >conftest.err
20090   rm -f conftest.er1
20091   cat conftest.err >&5
20092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20093   (exit $ac_status); } && {
20094          test -z "$ac_c_werror_flag" ||
20095          test ! -s conftest.err
20096        } && test -s conftest$ac_exeext &&
20097        $as_test_x conftest$ac_exeext; then
20098   eval "$as_ac_var=yes"
20099 else
20100   echo "$as_me: failed program was:" >&5
20101 sed 's/^/| /' conftest.$ac_ext >&5
20102
20103         eval "$as_ac_var=no"
20104 fi
20105
20106 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20107       conftest$ac_exeext conftest.$ac_ext
20108 fi
20109 ac_res=`eval echo '${'$as_ac_var'}'`
20110                { echo "$as_me:$LINENO: result: $ac_res" >&5
20111 echo "${ECHO_T}$ac_res" >&6; }
20112 if test `eval echo '${'$as_ac_var'}'` = yes; then
20113   cat >>confdefs.h <<_ACEOF
20114 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20115 _ACEOF
20116
20117 fi
20118 done
20119
20120 { echo "$as_me:$LINENO: checking for working mmap" >&5
20121 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20122 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20123   echo $ECHO_N "(cached) $ECHO_C" >&6
20124 else
20125   if test "$cross_compiling" = yes; then
20126   ac_cv_func_mmap_fixed_mapped=no
20127 else
20128   cat >conftest.$ac_ext <<_ACEOF
20129 /* confdefs.h.  */
20130 _ACEOF
20131 cat confdefs.h >>conftest.$ac_ext
20132 cat >>conftest.$ac_ext <<_ACEOF
20133 /* end confdefs.h.  */
20134 $ac_includes_default
20135 /* malloc might have been renamed as rpl_malloc. */
20136 #undef malloc
20137
20138 /* Thanks to Mike Haertel and Jim Avera for this test.
20139    Here is a matrix of mmap possibilities:
20140         mmap private not fixed
20141         mmap private fixed at somewhere currently unmapped
20142         mmap private fixed at somewhere already mapped
20143         mmap shared not fixed
20144         mmap shared fixed at somewhere currently unmapped
20145         mmap shared fixed at somewhere already mapped
20146    For private mappings, we should verify that changes cannot be read()
20147    back from the file, nor mmap's back from the file at a different
20148    address.  (There have been systems where private was not correctly
20149    implemented like the infamous i386 svr4.0, and systems where the
20150    VM page cache was not coherent with the file system buffer cache
20151    like early versions of FreeBSD and possibly contemporary NetBSD.)
20152    For shared mappings, we should conversely verify that changes get
20153    propagated back to all the places they're supposed to be.
20154
20155    Grep wants private fixed already mapped.
20156    The main things grep needs to know about mmap are:
20157    * does it exist and is it safe to write into the mmap'd area
20158    * how to use it (BSD variants)  */
20159
20160 #include <fcntl.h>
20161 #include <sys/mman.h>
20162
20163 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
20164 char *malloc ();
20165 #endif
20166
20167 /* This mess was copied from the GNU getpagesize.h.  */
20168 #ifndef HAVE_GETPAGESIZE
20169 /* Assume that all systems that can run configure have sys/param.h.  */
20170 # ifndef HAVE_SYS_PARAM_H
20171 #  define HAVE_SYS_PARAM_H 1
20172 # endif
20173
20174 # ifdef _SC_PAGESIZE
20175 #  define getpagesize() sysconf(_SC_PAGESIZE)
20176 # else /* no _SC_PAGESIZE */
20177 #  ifdef HAVE_SYS_PARAM_H
20178 #   include <sys/param.h>
20179 #   ifdef EXEC_PAGESIZE
20180 #    define getpagesize() EXEC_PAGESIZE
20181 #   else /* no EXEC_PAGESIZE */
20182 #    ifdef NBPG
20183 #     define getpagesize() NBPG * CLSIZE
20184 #     ifndef CLSIZE
20185 #      define CLSIZE 1
20186 #     endif /* no CLSIZE */
20187 #    else /* no NBPG */
20188 #     ifdef NBPC
20189 #      define getpagesize() NBPC
20190 #     else /* no NBPC */
20191 #      ifdef PAGESIZE
20192 #       define getpagesize() PAGESIZE
20193 #      endif /* PAGESIZE */
20194 #     endif /* no NBPC */
20195 #    endif /* no NBPG */
20196 #   endif /* no EXEC_PAGESIZE */
20197 #  else /* no HAVE_SYS_PARAM_H */
20198 #   define getpagesize() 8192   /* punt totally */
20199 #  endif /* no HAVE_SYS_PARAM_H */
20200 # endif /* no _SC_PAGESIZE */
20201
20202 #endif /* no HAVE_GETPAGESIZE */
20203
20204 int
20205 main ()
20206 {
20207   char *data, *data2, *data3;
20208   int i, pagesize;
20209   int fd;
20210
20211   pagesize = getpagesize ();
20212
20213   /* First, make a file with some known garbage in it. */
20214   data = (char *) malloc (pagesize);
20215   if (!data)
20216     return 1;
20217   for (i = 0; i < pagesize; ++i)
20218     *(data + i) = rand ();
20219   umask (0);
20220   fd = creat ("conftest.mmap", 0600);
20221   if (fd < 0)
20222     return 1;
20223   if (write (fd, data, pagesize) != pagesize)
20224     return 1;
20225   close (fd);
20226
20227   /* Next, try to mmap the file at a fixed address which already has
20228      something else allocated at it.  If we can, also make sure that
20229      we see the same garbage.  */
20230   fd = open ("conftest.mmap", O_RDWR);
20231   if (fd < 0)
20232     return 1;
20233   data2 = (char *) malloc (2 * pagesize);
20234   if (!data2)
20235     return 1;
20236   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
20237   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20238                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
20239     return 1;
20240   for (i = 0; i < pagesize; ++i)
20241     if (*(data + i) != *(data2 + i))
20242       return 1;
20243
20244   /* Finally, make sure that changes to the mapped area do not
20245      percolate back to the file as seen by read().  (This is a bug on
20246      some variants of i386 svr4.0.)  */
20247   for (i = 0; i < pagesize; ++i)
20248     *(data2 + i) = *(data2 + i) + 1;
20249   data3 = (char *) malloc (pagesize);
20250   if (!data3)
20251     return 1;
20252   if (read (fd, data3, pagesize) != pagesize)
20253     return 1;
20254   for (i = 0; i < pagesize; ++i)
20255     if (*(data + i) != *(data3 + i))
20256       return 1;
20257   close (fd);
20258   return 0;
20259 }
20260 _ACEOF
20261 rm -f conftest$ac_exeext
20262 if { (ac_try="$ac_link"
20263 case "(($ac_try" in
20264   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20265   *) ac_try_echo=$ac_try;;
20266 esac
20267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20268   (eval "$ac_link") 2>&5
20269   ac_status=$?
20270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20271   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20272   { (case "(($ac_try" in
20273   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20274   *) ac_try_echo=$ac_try;;
20275 esac
20276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20277   (eval "$ac_try") 2>&5
20278   ac_status=$?
20279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20280   (exit $ac_status); }; }; then
20281   ac_cv_func_mmap_fixed_mapped=yes
20282 else
20283   echo "$as_me: program exited with status $ac_status" >&5
20284 echo "$as_me: failed program was:" >&5
20285 sed 's/^/| /' conftest.$ac_ext >&5
20286
20287 ( exit $ac_status )
20288 ac_cv_func_mmap_fixed_mapped=no
20289 fi
20290 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20291 fi
20292
20293
20294 fi
20295 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20296 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
20297 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20298
20299 cat >>confdefs.h <<\_ACEOF
20300 #define HAVE_MMAP 1
20301 _ACEOF
20302
20303 fi
20304 rm -f conftest.mmap
20305
20306
20307     { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
20308 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6; }
20309 if test "${ac_cv_gnu_library_2_1+set}" = set; then
20310   echo $ECHO_N "(cached) $ECHO_C" >&6
20311 else
20312   cat >conftest.$ac_ext <<_ACEOF
20313 /* confdefs.h.  */
20314 _ACEOF
20315 cat confdefs.h >>conftest.$ac_ext
20316 cat >>conftest.$ac_ext <<_ACEOF
20317 /* end confdefs.h.  */
20318
20319 #include <features.h>
20320 #ifdef __GNU_LIBRARY__
20321  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
20322   Lucky GNU user
20323  #endif
20324 #endif
20325
20326 _ACEOF
20327 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20328   $EGREP "Lucky GNU user" >/dev/null 2>&1; then
20329   ac_cv_gnu_library_2_1=yes
20330 else
20331   ac_cv_gnu_library_2_1=no
20332 fi
20333 rm -f conftest*
20334
20335
20336
20337 fi
20338 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
20339 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6; }
20340
20341     GLIBC21="$ac_cv_gnu_library_2_1"
20342
20343
20344
20345
20346   { echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
20347 echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6; }
20348 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
20349   echo $ECHO_N "(cached) $ECHO_C" >&6
20350 else
20351
20352       if test "$cross_compiling" = yes; then
20353
20354           # Guess based on the CPU.
20355           case "$host_cpu" in
20356             alpha* | i3456786 | m68k | s390*)
20357               gt_cv_int_divbyzero_sigfpe="guessing yes";;
20358             *)
20359               gt_cv_int_divbyzero_sigfpe="guessing no";;
20360           esac
20361
20362 else
20363   cat >conftest.$ac_ext <<_ACEOF
20364 /* confdefs.h.  */
20365 _ACEOF
20366 cat confdefs.h >>conftest.$ac_ext
20367 cat >>conftest.$ac_ext <<_ACEOF
20368 /* end confdefs.h.  */
20369
20370 #include <stdlib.h>
20371 #include <signal.h>
20372
20373 static void
20374 #ifdef __cplusplus
20375 sigfpe_handler (int sig)
20376 #else
20377 sigfpe_handler (sig) int sig;
20378 #endif
20379 {
20380   /* Exit with code 0 if SIGFPE, with code 1 if any other signal.  */
20381   exit (sig != SIGFPE);
20382 }
20383
20384 int x = 1;
20385 int y = 0;
20386 int z;
20387 int nan;
20388
20389 int main ()
20390 {
20391   signal (SIGFPE, sigfpe_handler);
20392 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP.  */
20393 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
20394   signal (SIGTRAP, sigfpe_handler);
20395 #endif
20396 /* Linux/SPARC yields signal SIGILL.  */
20397 #if defined (__sparc__) && defined (__linux__)
20398   signal (SIGILL, sigfpe_handler);
20399 #endif
20400
20401   z = x / y;
20402   nan = y / y;
20403   exit (1);
20404 }
20405
20406 _ACEOF
20407 rm -f conftest$ac_exeext
20408 if { (ac_try="$ac_link"
20409 case "(($ac_try" in
20410   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20411   *) ac_try_echo=$ac_try;;
20412 esac
20413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20414   (eval "$ac_link") 2>&5
20415   ac_status=$?
20416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20417   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20418   { (case "(($ac_try" in
20419   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20420   *) ac_try_echo=$ac_try;;
20421 esac
20422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20423   (eval "$ac_try") 2>&5
20424   ac_status=$?
20425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20426   (exit $ac_status); }; }; then
20427   gt_cv_int_divbyzero_sigfpe=yes
20428 else
20429   echo "$as_me: program exited with status $ac_status" >&5
20430 echo "$as_me: failed program was:" >&5
20431 sed 's/^/| /' conftest.$ac_ext >&5
20432
20433 ( exit $ac_status )
20434 gt_cv_int_divbyzero_sigfpe=no
20435 fi
20436 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20437 fi
20438
20439
20440
20441 fi
20442 { echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
20443 echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6; }
20444   case "$gt_cv_int_divbyzero_sigfpe" in
20445     *yes) value=1;;
20446     *) value=0;;
20447   esac
20448
20449 cat >>confdefs.h <<_ACEOF
20450 #define INTDIV0_RAISES_SIGFPE $value
20451 _ACEOF
20452
20453
20454
20455   { echo "$as_me:$LINENO: checking for unsigned long long" >&5
20456 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; }
20457 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
20458   echo $ECHO_N "(cached) $ECHO_C" >&6
20459 else
20460   cat >conftest.$ac_ext <<_ACEOF
20461 /* confdefs.h.  */
20462 _ACEOF
20463 cat confdefs.h >>conftest.$ac_ext
20464 cat >>conftest.$ac_ext <<_ACEOF
20465 /* end confdefs.h.  */
20466 unsigned long long ull = 1ULL; int i = 63;
20467 int
20468 main ()
20469 {
20470 unsigned long long ullmax = (unsigned long long) -1;
20471      return ull << i | ull >> i | ullmax / ull | ullmax % ull;
20472   ;
20473   return 0;
20474 }
20475 _ACEOF
20476 rm -f conftest.$ac_objext conftest$ac_exeext
20477 if { (ac_try="$ac_link"
20478 case "(($ac_try" in
20479   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20480   *) ac_try_echo=$ac_try;;
20481 esac
20482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20483   (eval "$ac_link") 2>conftest.er1
20484   ac_status=$?
20485   grep -v '^ *+' conftest.er1 >conftest.err
20486   rm -f conftest.er1
20487   cat conftest.err >&5
20488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20489   (exit $ac_status); } && {
20490          test -z "$ac_c_werror_flag" ||
20491          test ! -s conftest.err
20492        } && test -s conftest$ac_exeext &&
20493        $as_test_x conftest$ac_exeext; then
20494   ac_cv_type_unsigned_long_long=yes
20495 else
20496   echo "$as_me: failed program was:" >&5
20497 sed 's/^/| /' conftest.$ac_ext >&5
20498
20499         ac_cv_type_unsigned_long_long=no
20500 fi
20501
20502 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20503       conftest$ac_exeext conftest.$ac_ext
20504 fi
20505 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
20506 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; }
20507   if test $ac_cv_type_unsigned_long_long = yes; then
20508
20509 cat >>confdefs.h <<\_ACEOF
20510 #define HAVE_UNSIGNED_LONG_LONG 1
20511 _ACEOF
20512
20513   fi
20514
20515
20516
20517
20518   if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
20519
20520     test $ac_cv_type_unsigned_long_long = yes \
20521       && ac_type='unsigned long long' \
20522       || ac_type='unsigned long'
20523
20524 cat >>confdefs.h <<_ACEOF
20525 #define uintmax_t $ac_type
20526 _ACEOF
20527
20528   else
20529
20530 cat >>confdefs.h <<\_ACEOF
20531 #define HAVE_UINTMAX_T 1
20532 _ACEOF
20533
20534   fi
20535
20536
20537   { echo "$as_me:$LINENO: checking for inttypes.h" >&5
20538 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
20539 if test "${gt_cv_header_inttypes_h+set}" = set; then
20540   echo $ECHO_N "(cached) $ECHO_C" >&6
20541 else
20542
20543     cat >conftest.$ac_ext <<_ACEOF
20544 /* confdefs.h.  */
20545 _ACEOF
20546 cat confdefs.h >>conftest.$ac_ext
20547 cat >>conftest.$ac_ext <<_ACEOF
20548 /* end confdefs.h.  */
20549 #include <sys/types.h>
20550 #include <inttypes.h>
20551 int
20552 main ()
20553 {
20554
20555   ;
20556   return 0;
20557 }
20558 _ACEOF
20559 rm -f conftest.$ac_objext
20560 if { (ac_try="$ac_compile"
20561 case "(($ac_try" in
20562   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20563   *) ac_try_echo=$ac_try;;
20564 esac
20565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20566   (eval "$ac_compile") 2>conftest.er1
20567   ac_status=$?
20568   grep -v '^ *+' conftest.er1 >conftest.err
20569   rm -f conftest.er1
20570   cat conftest.err >&5
20571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20572   (exit $ac_status); } && {
20573          test -z "$ac_c_werror_flag" ||
20574          test ! -s conftest.err
20575        } && test -s conftest.$ac_objext; then
20576   gt_cv_header_inttypes_h=yes
20577 else
20578   echo "$as_me: failed program was:" >&5
20579 sed 's/^/| /' conftest.$ac_ext >&5
20580
20581         gt_cv_header_inttypes_h=no
20582 fi
20583
20584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20585
20586 fi
20587 { echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
20588 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6; }
20589   if test $gt_cv_header_inttypes_h = yes; then
20590
20591 cat >>confdefs.h <<_ACEOF
20592 #define HAVE_INTTYPES_H 1
20593 _ACEOF
20594
20595   fi
20596
20597
20598
20599   if test $gt_cv_header_inttypes_h = yes; then
20600     { echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
20601 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6; }
20602 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
20603   echo $ECHO_N "(cached) $ECHO_C" >&6
20604 else
20605
20606         cat >conftest.$ac_ext <<_ACEOF
20607 /* confdefs.h.  */
20608 _ACEOF
20609 cat confdefs.h >>conftest.$ac_ext
20610 cat >>conftest.$ac_ext <<_ACEOF
20611 /* end confdefs.h.  */
20612 #include <inttypes.h>
20613 #ifdef PRId32
20614 char *p = PRId32;
20615 #endif
20616
20617 int
20618 main ()
20619 {
20620
20621   ;
20622   return 0;
20623 }
20624 _ACEOF
20625 rm -f conftest.$ac_objext
20626 if { (ac_try="$ac_compile"
20627 case "(($ac_try" in
20628   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20629   *) ac_try_echo=$ac_try;;
20630 esac
20631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20632   (eval "$ac_compile") 2>conftest.er1
20633   ac_status=$?
20634   grep -v '^ *+' conftest.er1 >conftest.err
20635   rm -f conftest.er1
20636   cat conftest.err >&5
20637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20638   (exit $ac_status); } && {
20639          test -z "$ac_c_werror_flag" ||
20640          test ! -s conftest.err
20641        } && test -s conftest.$ac_objext; then
20642   gt_cv_inttypes_pri_broken=no
20643 else
20644   echo "$as_me: failed program was:" >&5
20645 sed 's/^/| /' conftest.$ac_ext >&5
20646
20647         gt_cv_inttypes_pri_broken=yes
20648 fi
20649
20650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20651
20652 fi
20653 { echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
20654 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6; }
20655   fi
20656   if test "$gt_cv_inttypes_pri_broken" = yes; then
20657
20658 cat >>confdefs.h <<_ACEOF
20659 #define PRI_MACROS_BROKEN 1
20660 _ACEOF
20661
20662   fi
20663
20664
20665
20666 for ac_header in stdint.h
20667 do
20668 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20669 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20670   { echo "$as_me:$LINENO: checking for $ac_header" >&5
20671 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20672 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20673   echo $ECHO_N "(cached) $ECHO_C" >&6
20674 fi
20675 ac_res=`eval echo '${'$as_ac_Header'}'`
20676                { echo "$as_me:$LINENO: result: $ac_res" >&5
20677 echo "${ECHO_T}$ac_res" >&6; }
20678 else
20679   # Is the header compilable?
20680 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20681 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20682 cat >conftest.$ac_ext <<_ACEOF
20683 /* confdefs.h.  */
20684 _ACEOF
20685 cat confdefs.h >>conftest.$ac_ext
20686 cat >>conftest.$ac_ext <<_ACEOF
20687 /* end confdefs.h.  */
20688 $ac_includes_default
20689 #include <$ac_header>
20690 _ACEOF
20691 rm -f conftest.$ac_objext
20692 if { (ac_try="$ac_compile"
20693 case "(($ac_try" in
20694   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20695   *) ac_try_echo=$ac_try;;
20696 esac
20697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20698   (eval "$ac_compile") 2>conftest.er1
20699   ac_status=$?
20700   grep -v '^ *+' conftest.er1 >conftest.err
20701   rm -f conftest.er1
20702   cat conftest.err >&5
20703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20704   (exit $ac_status); } && {
20705          test -z "$ac_c_werror_flag" ||
20706          test ! -s conftest.err
20707        } && test -s conftest.$ac_objext; then
20708   ac_header_compiler=yes
20709 else
20710   echo "$as_me: failed program was:" >&5
20711 sed 's/^/| /' conftest.$ac_ext >&5
20712
20713         ac_header_compiler=no
20714 fi
20715
20716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20717 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20718 echo "${ECHO_T}$ac_header_compiler" >&6; }
20719
20720 # Is the header present?
20721 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20722 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20723 cat >conftest.$ac_ext <<_ACEOF
20724 /* confdefs.h.  */
20725 _ACEOF
20726 cat confdefs.h >>conftest.$ac_ext
20727 cat >>conftest.$ac_ext <<_ACEOF
20728 /* end confdefs.h.  */
20729 #include <$ac_header>
20730 _ACEOF
20731 if { (ac_try="$ac_cpp conftest.$ac_ext"
20732 case "(($ac_try" in
20733   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20734   *) ac_try_echo=$ac_try;;
20735 esac
20736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20737   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20738   ac_status=$?
20739   grep -v '^ *+' conftest.er1 >conftest.err
20740   rm -f conftest.er1
20741   cat conftest.err >&5
20742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20743   (exit $ac_status); } >/dev/null && {
20744          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20745          test ! -s conftest.err
20746        }; then
20747   ac_header_preproc=yes
20748 else
20749   echo "$as_me: failed program was:" >&5
20750 sed 's/^/| /' conftest.$ac_ext >&5
20751
20752   ac_header_preproc=no
20753 fi
20754
20755 rm -f conftest.err conftest.$ac_ext
20756 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20757 echo "${ECHO_T}$ac_header_preproc" >&6; }
20758
20759 # So?  What about this header?
20760 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20761   yes:no: )
20762     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20763 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20764     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20765 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20766     ac_header_preproc=yes
20767     ;;
20768   no:yes:* )
20769     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20770 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20771     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20772 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20773     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20774 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20775     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20776 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20777     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20778 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20779     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20780 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20781
20782     ;;
20783 esac
20784 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20785 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20786 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20787   echo $ECHO_N "(cached) $ECHO_C" >&6
20788 else
20789   eval "$as_ac_Header=\$ac_header_preproc"
20790 fi
20791 ac_res=`eval echo '${'$as_ac_Header'}'`
20792                { echo "$as_me:$LINENO: result: $ac_res" >&5
20793 echo "${ECHO_T}$ac_res" >&6; }
20794
20795 fi
20796 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20797   cat >>confdefs.h <<_ACEOF
20798 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20799 _ACEOF
20800
20801 fi
20802
20803 done
20804
20805     { echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
20806 echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6; }
20807   result=
20808   cat >conftest.$ac_ext <<_ACEOF
20809 /* confdefs.h.  */
20810 _ACEOF
20811 cat confdefs.h >>conftest.$ac_ext
20812 cat >>conftest.$ac_ext <<_ACEOF
20813 /* end confdefs.h.  */
20814
20815 #include <limits.h>
20816 #if HAVE_STDINT_H
20817 #include <stdint.h>
20818 #endif
20819 #ifdef SIZE_MAX
20820 Found it
20821 #endif
20822
20823 _ACEOF
20824 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20825   $EGREP "Found it" >/dev/null 2>&1; then
20826   result=yes
20827 fi
20828 rm -f conftest*
20829
20830   if test -z "$result"; then
20831                     if test "$cross_compiling" = yes; then
20832   # Depending upon the size, compute the lo and hi bounds.
20833 cat >conftest.$ac_ext <<_ACEOF
20834 /* confdefs.h.  */
20835 _ACEOF
20836 cat confdefs.h >>conftest.$ac_ext
20837 cat >>conftest.$ac_ext <<_ACEOF
20838 /* end confdefs.h.  */
20839 #include <stddef.h>
20840 int
20841 main ()
20842 {
20843 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
20844 test_array [0] = 0
20845
20846   ;
20847   return 0;
20848 }
20849 _ACEOF
20850 rm -f conftest.$ac_objext
20851 if { (ac_try="$ac_compile"
20852 case "(($ac_try" in
20853   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20854   *) ac_try_echo=$ac_try;;
20855 esac
20856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20857   (eval "$ac_compile") 2>conftest.er1
20858   ac_status=$?
20859   grep -v '^ *+' conftest.er1 >conftest.err
20860   rm -f conftest.er1
20861   cat conftest.err >&5
20862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20863   (exit $ac_status); } && {
20864          test -z "$ac_c_werror_flag" ||
20865          test ! -s conftest.err
20866        } && test -s conftest.$ac_objext; then
20867   ac_lo=0 ac_mid=0
20868   while :; do
20869     cat >conftest.$ac_ext <<_ACEOF
20870 /* confdefs.h.  */
20871 _ACEOF
20872 cat confdefs.h >>conftest.$ac_ext
20873 cat >>conftest.$ac_ext <<_ACEOF
20874 /* end confdefs.h.  */
20875 #include <stddef.h>
20876 int
20877 main ()
20878 {
20879 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
20880 test_array [0] = 0
20881
20882   ;
20883   return 0;
20884 }
20885 _ACEOF
20886 rm -f conftest.$ac_objext
20887 if { (ac_try="$ac_compile"
20888 case "(($ac_try" in
20889   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20890   *) ac_try_echo=$ac_try;;
20891 esac
20892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20893   (eval "$ac_compile") 2>conftest.er1
20894   ac_status=$?
20895   grep -v '^ *+' conftest.er1 >conftest.err
20896   rm -f conftest.er1
20897   cat conftest.err >&5
20898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20899   (exit $ac_status); } && {
20900          test -z "$ac_c_werror_flag" ||
20901          test ! -s conftest.err
20902        } && test -s conftest.$ac_objext; then
20903   ac_hi=$ac_mid; break
20904 else
20905   echo "$as_me: failed program was:" >&5
20906 sed 's/^/| /' conftest.$ac_ext >&5
20907
20908         ac_lo=`expr $ac_mid + 1`
20909                         if test $ac_lo -le $ac_mid; then
20910                           ac_lo= ac_hi=
20911                           break
20912                         fi
20913                         ac_mid=`expr 2 '*' $ac_mid + 1`
20914 fi
20915
20916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20917   done
20918 else
20919   echo "$as_me: failed program was:" >&5
20920 sed 's/^/| /' conftest.$ac_ext >&5
20921
20922         cat >conftest.$ac_ext <<_ACEOF
20923 /* confdefs.h.  */
20924 _ACEOF
20925 cat confdefs.h >>conftest.$ac_ext
20926 cat >>conftest.$ac_ext <<_ACEOF
20927 /* end confdefs.h.  */
20928 #include <stddef.h>
20929 int
20930 main ()
20931 {
20932 static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
20933 test_array [0] = 0
20934
20935   ;
20936   return 0;
20937 }
20938 _ACEOF
20939 rm -f conftest.$ac_objext
20940 if { (ac_try="$ac_compile"
20941 case "(($ac_try" in
20942   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20943   *) ac_try_echo=$ac_try;;
20944 esac
20945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20946   (eval "$ac_compile") 2>conftest.er1
20947   ac_status=$?
20948   grep -v '^ *+' conftest.er1 >conftest.err
20949   rm -f conftest.er1
20950   cat conftest.err >&5
20951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20952   (exit $ac_status); } && {
20953          test -z "$ac_c_werror_flag" ||
20954          test ! -s conftest.err
20955        } && test -s conftest.$ac_objext; then
20956   ac_hi=-1 ac_mid=-1
20957   while :; do
20958     cat >conftest.$ac_ext <<_ACEOF
20959 /* confdefs.h.  */
20960 _ACEOF
20961 cat confdefs.h >>conftest.$ac_ext
20962 cat >>conftest.$ac_ext <<_ACEOF
20963 /* end confdefs.h.  */
20964 #include <stddef.h>
20965 int
20966 main ()
20967 {
20968 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
20969 test_array [0] = 0
20970
20971   ;
20972   return 0;
20973 }
20974 _ACEOF
20975 rm -f conftest.$ac_objext
20976 if { (ac_try="$ac_compile"
20977 case "(($ac_try" in
20978   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20979   *) ac_try_echo=$ac_try;;
20980 esac
20981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20982   (eval "$ac_compile") 2>conftest.er1
20983   ac_status=$?
20984   grep -v '^ *+' conftest.er1 >conftest.err
20985   rm -f conftest.er1
20986   cat conftest.err >&5
20987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20988   (exit $ac_status); } && {
20989          test -z "$ac_c_werror_flag" ||
20990          test ! -s conftest.err
20991        } && test -s conftest.$ac_objext; then
20992   ac_lo=$ac_mid; break
20993 else
20994   echo "$as_me: failed program was:" >&5
20995 sed 's/^/| /' conftest.$ac_ext >&5
20996
20997         ac_hi=`expr '(' $ac_mid ')' - 1`
20998                         if test $ac_mid -le $ac_hi; then
20999                           ac_lo= ac_hi=
21000                           break
21001                         fi
21002                         ac_mid=`expr 2 '*' $ac_mid`
21003 fi
21004
21005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21006   done
21007 else
21008   echo "$as_me: failed program was:" >&5
21009 sed 's/^/| /' conftest.$ac_ext >&5
21010
21011         ac_lo= ac_hi=
21012 fi
21013
21014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21015 fi
21016
21017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21018 # Binary search between lo and hi bounds.
21019 while test "x$ac_lo" != "x$ac_hi"; do
21020   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21021   cat >conftest.$ac_ext <<_ACEOF
21022 /* confdefs.h.  */
21023 _ACEOF
21024 cat confdefs.h >>conftest.$ac_ext
21025 cat >>conftest.$ac_ext <<_ACEOF
21026 /* end confdefs.h.  */
21027 #include <stddef.h>
21028 int
21029 main ()
21030 {
21031 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
21032 test_array [0] = 0
21033
21034   ;
21035   return 0;
21036 }
21037 _ACEOF
21038 rm -f conftest.$ac_objext
21039 if { (ac_try="$ac_compile"
21040 case "(($ac_try" in
21041   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21042   *) ac_try_echo=$ac_try;;
21043 esac
21044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21045   (eval "$ac_compile") 2>conftest.er1
21046   ac_status=$?
21047   grep -v '^ *+' conftest.er1 >conftest.err
21048   rm -f conftest.er1
21049   cat conftest.err >&5
21050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21051   (exit $ac_status); } && {
21052          test -z "$ac_c_werror_flag" ||
21053          test ! -s conftest.err
21054        } && test -s conftest.$ac_objext; then
21055   ac_hi=$ac_mid
21056 else
21057   echo "$as_me: failed program was:" >&5
21058 sed 's/^/| /' conftest.$ac_ext >&5
21059
21060         ac_lo=`expr '(' $ac_mid ')' + 1`
21061 fi
21062
21063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21064 done
21065 case $ac_lo in
21066 ?*) res_hi=$ac_lo;;
21067 '') result=? ;;
21068 esac
21069 else
21070   cat >conftest.$ac_ext <<_ACEOF
21071 /* confdefs.h.  */
21072 _ACEOF
21073 cat confdefs.h >>conftest.$ac_ext
21074 cat >>conftest.$ac_ext <<_ACEOF
21075 /* end confdefs.h.  */
21076 #include <stddef.h>
21077 static long int longval () { return ~(size_t)0 / 10; }
21078 static unsigned long int ulongval () { return ~(size_t)0 / 10; }
21079 #include <stdio.h>
21080 #include <stdlib.h>
21081 int
21082 main ()
21083 {
21084
21085   FILE *f = fopen ("conftest.val", "w");
21086   if (! f)
21087     return 1;
21088   if ((~(size_t)0 / 10) < 0)
21089     {
21090       long int i = longval ();
21091       if (i != (~(size_t)0 / 10))
21092         return 1;
21093       fprintf (f, "%ld\n", i);
21094     }
21095   else
21096     {
21097       unsigned long int i = ulongval ();
21098       if (i != (~(size_t)0 / 10))
21099         return 1;
21100       fprintf (f, "%lu\n", i);
21101     }
21102   return ferror (f) || fclose (f) != 0;
21103
21104   ;
21105   return 0;
21106 }
21107 _ACEOF
21108 rm -f conftest$ac_exeext
21109 if { (ac_try="$ac_link"
21110 case "(($ac_try" in
21111   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21112   *) ac_try_echo=$ac_try;;
21113 esac
21114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21115   (eval "$ac_link") 2>&5
21116   ac_status=$?
21117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21118   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21119   { (case "(($ac_try" in
21120   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21121   *) ac_try_echo=$ac_try;;
21122 esac
21123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21124   (eval "$ac_try") 2>&5
21125   ac_status=$?
21126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21127   (exit $ac_status); }; }; then
21128   res_hi=`cat conftest.val`
21129 else
21130   echo "$as_me: program exited with status $ac_status" >&5
21131 echo "$as_me: failed program was:" >&5
21132 sed 's/^/| /' conftest.$ac_ext >&5
21133
21134 ( exit $ac_status )
21135 result=?
21136 fi
21137 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21138 fi
21139 rm -f conftest.val
21140
21141     if test "$cross_compiling" = yes; then
21142   # Depending upon the size, compute the lo and hi bounds.
21143 cat >conftest.$ac_ext <<_ACEOF
21144 /* confdefs.h.  */
21145 _ACEOF
21146 cat confdefs.h >>conftest.$ac_ext
21147 cat >>conftest.$ac_ext <<_ACEOF
21148 /* end confdefs.h.  */
21149 #include <stddef.h>
21150 int
21151 main ()
21152 {
21153 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
21154 test_array [0] = 0
21155
21156   ;
21157   return 0;
21158 }
21159 _ACEOF
21160 rm -f conftest.$ac_objext
21161 if { (ac_try="$ac_compile"
21162 case "(($ac_try" in
21163   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21164   *) ac_try_echo=$ac_try;;
21165 esac
21166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21167   (eval "$ac_compile") 2>conftest.er1
21168   ac_status=$?
21169   grep -v '^ *+' conftest.er1 >conftest.err
21170   rm -f conftest.er1
21171   cat conftest.err >&5
21172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21173   (exit $ac_status); } && {
21174          test -z "$ac_c_werror_flag" ||
21175          test ! -s conftest.err
21176        } && test -s conftest.$ac_objext; then
21177   ac_lo=0 ac_mid=0
21178   while :; do
21179     cat >conftest.$ac_ext <<_ACEOF
21180 /* confdefs.h.  */
21181 _ACEOF
21182 cat confdefs.h >>conftest.$ac_ext
21183 cat >>conftest.$ac_ext <<_ACEOF
21184 /* end confdefs.h.  */
21185 #include <stddef.h>
21186 int
21187 main ()
21188 {
21189 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
21190 test_array [0] = 0
21191
21192   ;
21193   return 0;
21194 }
21195 _ACEOF
21196 rm -f conftest.$ac_objext
21197 if { (ac_try="$ac_compile"
21198 case "(($ac_try" in
21199   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21200   *) ac_try_echo=$ac_try;;
21201 esac
21202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21203   (eval "$ac_compile") 2>conftest.er1
21204   ac_status=$?
21205   grep -v '^ *+' conftest.er1 >conftest.err
21206   rm -f conftest.er1
21207   cat conftest.err >&5
21208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21209   (exit $ac_status); } && {
21210          test -z "$ac_c_werror_flag" ||
21211          test ! -s conftest.err
21212        } && test -s conftest.$ac_objext; then
21213   ac_hi=$ac_mid; break
21214 else
21215   echo "$as_me: failed program was:" >&5
21216 sed 's/^/| /' conftest.$ac_ext >&5
21217
21218         ac_lo=`expr $ac_mid + 1`
21219                         if test $ac_lo -le $ac_mid; then
21220                           ac_lo= ac_hi=
21221                           break
21222                         fi
21223                         ac_mid=`expr 2 '*' $ac_mid + 1`
21224 fi
21225
21226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21227   done
21228 else
21229   echo "$as_me: failed program was:" >&5
21230 sed 's/^/| /' conftest.$ac_ext >&5
21231
21232         cat >conftest.$ac_ext <<_ACEOF
21233 /* confdefs.h.  */
21234 _ACEOF
21235 cat confdefs.h >>conftest.$ac_ext
21236 cat >>conftest.$ac_ext <<_ACEOF
21237 /* end confdefs.h.  */
21238 #include <stddef.h>
21239 int
21240 main ()
21241 {
21242 static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
21243 test_array [0] = 0
21244
21245   ;
21246   return 0;
21247 }
21248 _ACEOF
21249 rm -f conftest.$ac_objext
21250 if { (ac_try="$ac_compile"
21251 case "(($ac_try" in
21252   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21253   *) ac_try_echo=$ac_try;;
21254 esac
21255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21256   (eval "$ac_compile") 2>conftest.er1
21257   ac_status=$?
21258   grep -v '^ *+' conftest.er1 >conftest.err
21259   rm -f conftest.er1
21260   cat conftest.err >&5
21261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21262   (exit $ac_status); } && {
21263          test -z "$ac_c_werror_flag" ||
21264          test ! -s conftest.err
21265        } && test -s conftest.$ac_objext; then
21266   ac_hi=-1 ac_mid=-1
21267   while :; do
21268     cat >conftest.$ac_ext <<_ACEOF
21269 /* confdefs.h.  */
21270 _ACEOF
21271 cat confdefs.h >>conftest.$ac_ext
21272 cat >>conftest.$ac_ext <<_ACEOF
21273 /* end confdefs.h.  */
21274 #include <stddef.h>
21275 int
21276 main ()
21277 {
21278 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
21279 test_array [0] = 0
21280
21281   ;
21282   return 0;
21283 }
21284 _ACEOF
21285 rm -f conftest.$ac_objext
21286 if { (ac_try="$ac_compile"
21287 case "(($ac_try" in
21288   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21289   *) ac_try_echo=$ac_try;;
21290 esac
21291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21292   (eval "$ac_compile") 2>conftest.er1
21293   ac_status=$?
21294   grep -v '^ *+' conftest.er1 >conftest.err
21295   rm -f conftest.er1
21296   cat conftest.err >&5
21297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21298   (exit $ac_status); } && {
21299          test -z "$ac_c_werror_flag" ||
21300          test ! -s conftest.err
21301        } && test -s conftest.$ac_objext; then
21302   ac_lo=$ac_mid; break
21303 else
21304   echo "$as_me: failed program was:" >&5
21305 sed 's/^/| /' conftest.$ac_ext >&5
21306
21307         ac_hi=`expr '(' $ac_mid ')' - 1`
21308                         if test $ac_mid -le $ac_hi; then
21309                           ac_lo= ac_hi=
21310                           break
21311                         fi
21312                         ac_mid=`expr 2 '*' $ac_mid`
21313 fi
21314
21315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21316   done
21317 else
21318   echo "$as_me: failed program was:" >&5
21319 sed 's/^/| /' conftest.$ac_ext >&5
21320
21321         ac_lo= ac_hi=
21322 fi
21323
21324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21325 fi
21326
21327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21328 # Binary search between lo and hi bounds.
21329 while test "x$ac_lo" != "x$ac_hi"; do
21330   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21331   cat >conftest.$ac_ext <<_ACEOF
21332 /* confdefs.h.  */
21333 _ACEOF
21334 cat confdefs.h >>conftest.$ac_ext
21335 cat >>conftest.$ac_ext <<_ACEOF
21336 /* end confdefs.h.  */
21337 #include <stddef.h>
21338 int
21339 main ()
21340 {
21341 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
21342 test_array [0] = 0
21343
21344   ;
21345   return 0;
21346 }
21347 _ACEOF
21348 rm -f conftest.$ac_objext
21349 if { (ac_try="$ac_compile"
21350 case "(($ac_try" in
21351   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21352   *) ac_try_echo=$ac_try;;
21353 esac
21354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21355   (eval "$ac_compile") 2>conftest.er1
21356   ac_status=$?
21357   grep -v '^ *+' conftest.er1 >conftest.err
21358   rm -f conftest.er1
21359   cat conftest.err >&5
21360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21361   (exit $ac_status); } && {
21362          test -z "$ac_c_werror_flag" ||
21363          test ! -s conftest.err
21364        } && test -s conftest.$ac_objext; then
21365   ac_hi=$ac_mid
21366 else
21367   echo "$as_me: failed program was:" >&5
21368 sed 's/^/| /' conftest.$ac_ext >&5
21369
21370         ac_lo=`expr '(' $ac_mid ')' + 1`
21371 fi
21372
21373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21374 done
21375 case $ac_lo in
21376 ?*) res_lo=$ac_lo;;
21377 '') result=? ;;
21378 esac
21379 else
21380   cat >conftest.$ac_ext <<_ACEOF
21381 /* confdefs.h.  */
21382 _ACEOF
21383 cat confdefs.h >>conftest.$ac_ext
21384 cat >>conftest.$ac_ext <<_ACEOF
21385 /* end confdefs.h.  */
21386 #include <stddef.h>
21387 static long int longval () { return ~(size_t)0 % 10; }
21388 static unsigned long int ulongval () { return ~(size_t)0 % 10; }
21389 #include <stdio.h>
21390 #include <stdlib.h>
21391 int
21392 main ()
21393 {
21394
21395   FILE *f = fopen ("conftest.val", "w");
21396   if (! f)
21397     return 1;
21398   if ((~(size_t)0 % 10) < 0)
21399     {
21400       long int i = longval ();
21401       if (i != (~(size_t)0 % 10))
21402         return 1;
21403       fprintf (f, "%ld\n", i);
21404     }
21405   else
21406     {
21407       unsigned long int i = ulongval ();
21408       if (i != (~(size_t)0 % 10))
21409         return 1;
21410       fprintf (f, "%lu\n", i);
21411     }
21412   return ferror (f) || fclose (f) != 0;
21413
21414   ;
21415   return 0;
21416 }
21417 _ACEOF
21418 rm -f conftest$ac_exeext
21419 if { (ac_try="$ac_link"
21420 case "(($ac_try" in
21421   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21422   *) ac_try_echo=$ac_try;;
21423 esac
21424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21425   (eval "$ac_link") 2>&5
21426   ac_status=$?
21427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21428   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21429   { (case "(($ac_try" in
21430   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21431   *) ac_try_echo=$ac_try;;
21432 esac
21433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21434   (eval "$ac_try") 2>&5
21435   ac_status=$?
21436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21437   (exit $ac_status); }; }; then
21438   res_lo=`cat conftest.val`
21439 else
21440   echo "$as_me: program exited with status $ac_status" >&5
21441 echo "$as_me: failed program was:" >&5
21442 sed 's/^/| /' conftest.$ac_ext >&5
21443
21444 ( exit $ac_status )
21445 result=?
21446 fi
21447 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21448 fi
21449 rm -f conftest.val
21450
21451     if test "$cross_compiling" = yes; then
21452   # Depending upon the size, compute the lo and hi bounds.
21453 cat >conftest.$ac_ext <<_ACEOF
21454 /* confdefs.h.  */
21455 _ACEOF
21456 cat confdefs.h >>conftest.$ac_ext
21457 cat >>conftest.$ac_ext <<_ACEOF
21458 /* end confdefs.h.  */
21459 #include <stddef.h>
21460 int
21461 main ()
21462 {
21463 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
21464 test_array [0] = 0
21465
21466   ;
21467   return 0;
21468 }
21469 _ACEOF
21470 rm -f conftest.$ac_objext
21471 if { (ac_try="$ac_compile"
21472 case "(($ac_try" in
21473   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21474   *) ac_try_echo=$ac_try;;
21475 esac
21476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21477   (eval "$ac_compile") 2>conftest.er1
21478   ac_status=$?
21479   grep -v '^ *+' conftest.er1 >conftest.err
21480   rm -f conftest.er1
21481   cat conftest.err >&5
21482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21483   (exit $ac_status); } && {
21484          test -z "$ac_c_werror_flag" ||
21485          test ! -s conftest.err
21486        } && test -s conftest.$ac_objext; then
21487   ac_lo=0 ac_mid=0
21488   while :; do
21489     cat >conftest.$ac_ext <<_ACEOF
21490 /* confdefs.h.  */
21491 _ACEOF
21492 cat confdefs.h >>conftest.$ac_ext
21493 cat >>conftest.$ac_ext <<_ACEOF
21494 /* end confdefs.h.  */
21495 #include <stddef.h>
21496 int
21497 main ()
21498 {
21499 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
21500 test_array [0] = 0
21501
21502   ;
21503   return 0;
21504 }
21505 _ACEOF
21506 rm -f conftest.$ac_objext
21507 if { (ac_try="$ac_compile"
21508 case "(($ac_try" in
21509   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21510   *) ac_try_echo=$ac_try;;
21511 esac
21512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21513   (eval "$ac_compile") 2>conftest.er1
21514   ac_status=$?
21515   grep -v '^ *+' conftest.er1 >conftest.err
21516   rm -f conftest.er1
21517   cat conftest.err >&5
21518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21519   (exit $ac_status); } && {
21520          test -z "$ac_c_werror_flag" ||
21521          test ! -s conftest.err
21522        } && test -s conftest.$ac_objext; then
21523   ac_hi=$ac_mid; break
21524 else
21525   echo "$as_me: failed program was:" >&5
21526 sed 's/^/| /' conftest.$ac_ext >&5
21527
21528         ac_lo=`expr $ac_mid + 1`
21529                         if test $ac_lo -le $ac_mid; then
21530                           ac_lo= ac_hi=
21531                           break
21532                         fi
21533                         ac_mid=`expr 2 '*' $ac_mid + 1`
21534 fi
21535
21536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21537   done
21538 else
21539   echo "$as_me: failed program was:" >&5
21540 sed 's/^/| /' conftest.$ac_ext >&5
21541
21542         cat >conftest.$ac_ext <<_ACEOF
21543 /* confdefs.h.  */
21544 _ACEOF
21545 cat confdefs.h >>conftest.$ac_ext
21546 cat >>conftest.$ac_ext <<_ACEOF
21547 /* end confdefs.h.  */
21548 #include <stddef.h>
21549 int
21550 main ()
21551 {
21552 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
21553 test_array [0] = 0
21554
21555   ;
21556   return 0;
21557 }
21558 _ACEOF
21559 rm -f conftest.$ac_objext
21560 if { (ac_try="$ac_compile"
21561 case "(($ac_try" in
21562   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21563   *) ac_try_echo=$ac_try;;
21564 esac
21565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21566   (eval "$ac_compile") 2>conftest.er1
21567   ac_status=$?
21568   grep -v '^ *+' conftest.er1 >conftest.err
21569   rm -f conftest.er1
21570   cat conftest.err >&5
21571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21572   (exit $ac_status); } && {
21573          test -z "$ac_c_werror_flag" ||
21574          test ! -s conftest.err
21575        } && test -s conftest.$ac_objext; then
21576   ac_hi=-1 ac_mid=-1
21577   while :; do
21578     cat >conftest.$ac_ext <<_ACEOF
21579 /* confdefs.h.  */
21580 _ACEOF
21581 cat confdefs.h >>conftest.$ac_ext
21582 cat >>conftest.$ac_ext <<_ACEOF
21583 /* end confdefs.h.  */
21584 #include <stddef.h>
21585 int
21586 main ()
21587 {
21588 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
21589 test_array [0] = 0
21590
21591   ;
21592   return 0;
21593 }
21594 _ACEOF
21595 rm -f conftest.$ac_objext
21596 if { (ac_try="$ac_compile"
21597 case "(($ac_try" in
21598   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21599   *) ac_try_echo=$ac_try;;
21600 esac
21601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21602   (eval "$ac_compile") 2>conftest.er1
21603   ac_status=$?
21604   grep -v '^ *+' conftest.er1 >conftest.err
21605   rm -f conftest.er1
21606   cat conftest.err >&5
21607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21608   (exit $ac_status); } && {
21609          test -z "$ac_c_werror_flag" ||
21610          test ! -s conftest.err
21611        } && test -s conftest.$ac_objext; then
21612   ac_lo=$ac_mid; break
21613 else
21614   echo "$as_me: failed program was:" >&5
21615 sed 's/^/| /' conftest.$ac_ext >&5
21616
21617         ac_hi=`expr '(' $ac_mid ')' - 1`
21618                         if test $ac_mid -le $ac_hi; then
21619                           ac_lo= ac_hi=
21620                           break
21621                         fi
21622                         ac_mid=`expr 2 '*' $ac_mid`
21623 fi
21624
21625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21626   done
21627 else
21628   echo "$as_me: failed program was:" >&5
21629 sed 's/^/| /' conftest.$ac_ext >&5
21630
21631         ac_lo= ac_hi=
21632 fi
21633
21634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21635 fi
21636
21637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21638 # Binary search between lo and hi bounds.
21639 while test "x$ac_lo" != "x$ac_hi"; do
21640   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21641   cat >conftest.$ac_ext <<_ACEOF
21642 /* confdefs.h.  */
21643 _ACEOF
21644 cat confdefs.h >>conftest.$ac_ext
21645 cat >>conftest.$ac_ext <<_ACEOF
21646 /* end confdefs.h.  */
21647 #include <stddef.h>
21648 int
21649 main ()
21650 {
21651 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
21652 test_array [0] = 0
21653
21654   ;
21655   return 0;
21656 }
21657 _ACEOF
21658 rm -f conftest.$ac_objext
21659 if { (ac_try="$ac_compile"
21660 case "(($ac_try" in
21661   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21662   *) ac_try_echo=$ac_try;;
21663 esac
21664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21665   (eval "$ac_compile") 2>conftest.er1
21666   ac_status=$?
21667   grep -v '^ *+' conftest.er1 >conftest.err
21668   rm -f conftest.er1
21669   cat conftest.err >&5
21670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21671   (exit $ac_status); } && {
21672          test -z "$ac_c_werror_flag" ||
21673          test ! -s conftest.err
21674        } && test -s conftest.$ac_objext; then
21675   ac_hi=$ac_mid
21676 else
21677   echo "$as_me: failed program was:" >&5
21678 sed 's/^/| /' conftest.$ac_ext >&5
21679
21680         ac_lo=`expr '(' $ac_mid ')' + 1`
21681 fi
21682
21683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21684 done
21685 case $ac_lo in
21686 ?*) fits_in_uint=$ac_lo;;
21687 '') result=? ;;
21688 esac
21689 else
21690   cat >conftest.$ac_ext <<_ACEOF
21691 /* confdefs.h.  */
21692 _ACEOF
21693 cat confdefs.h >>conftest.$ac_ext
21694 cat >>conftest.$ac_ext <<_ACEOF
21695 /* end confdefs.h.  */
21696 #include <stddef.h>
21697 static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
21698 static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
21699 #include <stdio.h>
21700 #include <stdlib.h>
21701 int
21702 main ()
21703 {
21704
21705   FILE *f = fopen ("conftest.val", "w");
21706   if (! f)
21707     return 1;
21708   if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
21709     {
21710       long int i = longval ();
21711       if (i != (sizeof (size_t) <= sizeof (unsigned int)))
21712         return 1;
21713       fprintf (f, "%ld\n", i);
21714     }
21715   else
21716     {
21717       unsigned long int i = ulongval ();
21718       if (i != (sizeof (size_t) <= sizeof (unsigned int)))
21719         return 1;
21720       fprintf (f, "%lu\n", i);
21721     }
21722   return ferror (f) || fclose (f) != 0;
21723
21724   ;
21725   return 0;
21726 }
21727 _ACEOF
21728 rm -f conftest$ac_exeext
21729 if { (ac_try="$ac_link"
21730 case "(($ac_try" in
21731   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21732   *) ac_try_echo=$ac_try;;
21733 esac
21734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21735   (eval "$ac_link") 2>&5
21736   ac_status=$?
21737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21738   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21739   { (case "(($ac_try" in
21740   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21741   *) ac_try_echo=$ac_try;;
21742 esac
21743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21744   (eval "$ac_try") 2>&5
21745   ac_status=$?
21746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21747   (exit $ac_status); }; }; then
21748   fits_in_uint=`cat conftest.val`
21749 else
21750   echo "$as_me: program exited with status $ac_status" >&5
21751 echo "$as_me: failed program was:" >&5
21752 sed 's/^/| /' conftest.$ac_ext >&5
21753
21754 ( exit $ac_status )
21755 result=?
21756 fi
21757 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21758 fi
21759 rm -f conftest.val
21760
21761     if test "$fits_in_uint" = 1; then
21762                   cat >conftest.$ac_ext <<_ACEOF
21763 /* confdefs.h.  */
21764 _ACEOF
21765 cat confdefs.h >>conftest.$ac_ext
21766 cat >>conftest.$ac_ext <<_ACEOF
21767 /* end confdefs.h.  */
21768 #include <stddef.h>
21769         extern size_t foo;
21770         extern unsigned long foo;
21771
21772 int
21773 main ()
21774 {
21775
21776   ;
21777   return 0;
21778 }
21779 _ACEOF
21780 rm -f conftest.$ac_objext
21781 if { (ac_try="$ac_compile"
21782 case "(($ac_try" in
21783   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21784   *) ac_try_echo=$ac_try;;
21785 esac
21786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21787   (eval "$ac_compile") 2>conftest.er1
21788   ac_status=$?
21789   grep -v '^ *+' conftest.er1 >conftest.err
21790   rm -f conftest.er1
21791   cat conftest.err >&5
21792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21793   (exit $ac_status); } && {
21794          test -z "$ac_c_werror_flag" ||
21795          test ! -s conftest.err
21796        } && test -s conftest.$ac_objext; then
21797   fits_in_uint=0
21798 else
21799   echo "$as_me: failed program was:" >&5
21800 sed 's/^/| /' conftest.$ac_ext >&5
21801
21802
21803 fi
21804
21805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21806     fi
21807     if test -z "$result"; then
21808       if test "$fits_in_uint" = 1; then
21809         result="$res_hi$res_lo"U
21810       else
21811         result="$res_hi$res_lo"UL
21812       fi
21813     else
21814             result='~(size_t)0'
21815     fi
21816   fi
21817   { echo "$as_me:$LINENO: result: $result" >&5
21818 echo "${ECHO_T}$result" >&6; }
21819   if test "$result" != yes; then
21820
21821 cat >>confdefs.h <<_ACEOF
21822 #define SIZE_MAX $result
21823 _ACEOF
21824
21825   fi
21826
21827
21828
21829
21830
21831 for ac_header in stdint.h
21832 do
21833 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21834 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21835   { echo "$as_me:$LINENO: checking for $ac_header" >&5
21836 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21837 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21838   echo $ECHO_N "(cached) $ECHO_C" >&6
21839 fi
21840 ac_res=`eval echo '${'$as_ac_Header'}'`
21841                { echo "$as_me:$LINENO: result: $ac_res" >&5
21842 echo "${ECHO_T}$ac_res" >&6; }
21843 else
21844   # Is the header compilable?
21845 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21846 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21847 cat >conftest.$ac_ext <<_ACEOF
21848 /* confdefs.h.  */
21849 _ACEOF
21850 cat confdefs.h >>conftest.$ac_ext
21851 cat >>conftest.$ac_ext <<_ACEOF
21852 /* end confdefs.h.  */
21853 $ac_includes_default
21854 #include <$ac_header>
21855 _ACEOF
21856 rm -f conftest.$ac_objext
21857 if { (ac_try="$ac_compile"
21858 case "(($ac_try" in
21859   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21860   *) ac_try_echo=$ac_try;;
21861 esac
21862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21863   (eval "$ac_compile") 2>conftest.er1
21864   ac_status=$?
21865   grep -v '^ *+' conftest.er1 >conftest.err
21866   rm -f conftest.er1
21867   cat conftest.err >&5
21868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21869   (exit $ac_status); } && {
21870          test -z "$ac_c_werror_flag" ||
21871          test ! -s conftest.err
21872        } && test -s conftest.$ac_objext; then
21873   ac_header_compiler=yes
21874 else
21875   echo "$as_me: failed program was:" >&5
21876 sed 's/^/| /' conftest.$ac_ext >&5
21877
21878         ac_header_compiler=no
21879 fi
21880
21881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21882 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21883 echo "${ECHO_T}$ac_header_compiler" >&6; }
21884
21885 # Is the header present?
21886 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21887 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21888 cat >conftest.$ac_ext <<_ACEOF
21889 /* confdefs.h.  */
21890 _ACEOF
21891 cat confdefs.h >>conftest.$ac_ext
21892 cat >>conftest.$ac_ext <<_ACEOF
21893 /* end confdefs.h.  */
21894 #include <$ac_header>
21895 _ACEOF
21896 if { (ac_try="$ac_cpp conftest.$ac_ext"
21897 case "(($ac_try" in
21898   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21899   *) ac_try_echo=$ac_try;;
21900 esac
21901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21902   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21903   ac_status=$?
21904   grep -v '^ *+' conftest.er1 >conftest.err
21905   rm -f conftest.er1
21906   cat conftest.err >&5
21907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21908   (exit $ac_status); } >/dev/null && {
21909          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21910          test ! -s conftest.err
21911        }; then
21912   ac_header_preproc=yes
21913 else
21914   echo "$as_me: failed program was:" >&5
21915 sed 's/^/| /' conftest.$ac_ext >&5
21916
21917   ac_header_preproc=no
21918 fi
21919
21920 rm -f conftest.err conftest.$ac_ext
21921 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21922 echo "${ECHO_T}$ac_header_preproc" >&6; }
21923
21924 # So?  What about this header?
21925 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21926   yes:no: )
21927     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21928 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21929     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21930 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21931     ac_header_preproc=yes
21932     ;;
21933   no:yes:* )
21934     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21935 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21936     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21937 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21938     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21939 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21940     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21941 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21942     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21943 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21944     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21945 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21946
21947     ;;
21948 esac
21949 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21950 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21951 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21952   echo $ECHO_N "(cached) $ECHO_C" >&6
21953 else
21954   eval "$as_ac_Header=\$ac_header_preproc"
21955 fi
21956 ac_res=`eval echo '${'$as_ac_Header'}'`
21957                { echo "$as_me:$LINENO: result: $ac_res" >&5
21958 echo "${ECHO_T}$ac_res" >&6; }
21959
21960 fi
21961 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21962   cat >>confdefs.h <<_ACEOF
21963 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21964 _ACEOF
21965
21966 fi
21967
21968 done
21969
21970
21971
21972
21973
21974
21975
21976
21977   { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
21978 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
21979 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
21980   echo $ECHO_N "(cached) $ECHO_C" >&6
21981 else
21982   cat >conftest.$ac_ext <<_ACEOF
21983 /* confdefs.h.  */
21984 _ACEOF
21985 cat confdefs.h >>conftest.$ac_ext
21986 cat >>conftest.$ac_ext <<_ACEOF
21987 /* end confdefs.h.  */
21988 $ac_includes_default
21989 typedef ptrdiff_t ac__type_new_;
21990 int
21991 main ()
21992 {
21993 if ((ac__type_new_ *) 0)
21994   return 0;
21995 if (sizeof (ac__type_new_))
21996   return 0;
21997   ;
21998   return 0;
21999 }
22000 _ACEOF
22001 rm -f conftest.$ac_objext
22002 if { (ac_try="$ac_compile"
22003 case "(($ac_try" in
22004   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22005   *) ac_try_echo=$ac_try;;
22006 esac
22007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22008   (eval "$ac_compile") 2>conftest.er1
22009   ac_status=$?
22010   grep -v '^ *+' conftest.er1 >conftest.err
22011   rm -f conftest.er1
22012   cat conftest.err >&5
22013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22014   (exit $ac_status); } && {
22015          test -z "$ac_c_werror_flag" ||
22016          test ! -s conftest.err
22017        } && test -s conftest.$ac_objext; then
22018   ac_cv_type_ptrdiff_t=yes
22019 else
22020   echo "$as_me: failed program was:" >&5
22021 sed 's/^/| /' conftest.$ac_ext >&5
22022
22023         ac_cv_type_ptrdiff_t=no
22024 fi
22025
22026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22027 fi
22028 { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
22029 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
22030 if test $ac_cv_type_ptrdiff_t = yes; then
22031   :
22032 else
22033
22034 cat >>confdefs.h <<\_ACEOF
22035 #define ptrdiff_t long
22036 _ACEOF
22037
22038
22039 fi
22040
22041
22042
22043
22044
22045
22046
22047
22048
22049
22050
22051 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
22052 stdlib.h string.h unistd.h sys/param.h
22053 do
22054 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22055 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22056   { echo "$as_me:$LINENO: checking for $ac_header" >&5
22057 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22058 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22059   echo $ECHO_N "(cached) $ECHO_C" >&6
22060 fi
22061 ac_res=`eval echo '${'$as_ac_Header'}'`
22062                { echo "$as_me:$LINENO: result: $ac_res" >&5
22063 echo "${ECHO_T}$ac_res" >&6; }
22064 else
22065   # Is the header compilable?
22066 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22067 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22068 cat >conftest.$ac_ext <<_ACEOF
22069 /* confdefs.h.  */
22070 _ACEOF
22071 cat confdefs.h >>conftest.$ac_ext
22072 cat >>conftest.$ac_ext <<_ACEOF
22073 /* end confdefs.h.  */
22074 $ac_includes_default
22075 #include <$ac_header>
22076 _ACEOF
22077 rm -f conftest.$ac_objext
22078 if { (ac_try="$ac_compile"
22079 case "(($ac_try" in
22080   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22081   *) ac_try_echo=$ac_try;;
22082 esac
22083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22084   (eval "$ac_compile") 2>conftest.er1
22085   ac_status=$?
22086   grep -v '^ *+' conftest.er1 >conftest.err
22087   rm -f conftest.er1
22088   cat conftest.err >&5
22089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22090   (exit $ac_status); } && {
22091          test -z "$ac_c_werror_flag" ||
22092          test ! -s conftest.err
22093        } && test -s conftest.$ac_objext; then
22094   ac_header_compiler=yes
22095 else
22096   echo "$as_me: failed program was:" >&5
22097 sed 's/^/| /' conftest.$ac_ext >&5
22098
22099         ac_header_compiler=no
22100 fi
22101
22102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22103 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22104 echo "${ECHO_T}$ac_header_compiler" >&6; }
22105
22106 # Is the header present?
22107 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22108 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22109 cat >conftest.$ac_ext <<_ACEOF
22110 /* confdefs.h.  */
22111 _ACEOF
22112 cat confdefs.h >>conftest.$ac_ext
22113 cat >>conftest.$ac_ext <<_ACEOF
22114 /* end confdefs.h.  */
22115 #include <$ac_header>
22116 _ACEOF
22117 if { (ac_try="$ac_cpp conftest.$ac_ext"
22118 case "(($ac_try" in
22119   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22120   *) ac_try_echo=$ac_try;;
22121 esac
22122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22123   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22124   ac_status=$?
22125   grep -v '^ *+' conftest.er1 >conftest.err
22126   rm -f conftest.er1
22127   cat conftest.err >&5
22128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22129   (exit $ac_status); } >/dev/null && {
22130          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22131          test ! -s conftest.err
22132        }; then
22133   ac_header_preproc=yes
22134 else
22135   echo "$as_me: failed program was:" >&5
22136 sed 's/^/| /' conftest.$ac_ext >&5
22137
22138   ac_header_preproc=no
22139 fi
22140
22141 rm -f conftest.err conftest.$ac_ext
22142 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22143 echo "${ECHO_T}$ac_header_preproc" >&6; }
22144
22145 # So?  What about this header?
22146 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22147   yes:no: )
22148     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22149 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22150     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22151 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22152     ac_header_preproc=yes
22153     ;;
22154   no:yes:* )
22155     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22156 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22157     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22158 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22159     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22160 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22161     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22162 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22163     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22164 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22165     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22166 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22167
22168     ;;
22169 esac
22170 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22171 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22172 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22173   echo $ECHO_N "(cached) $ECHO_C" >&6
22174 else
22175   eval "$as_ac_Header=\$ac_header_preproc"
22176 fi
22177 ac_res=`eval echo '${'$as_ac_Header'}'`
22178                { echo "$as_me:$LINENO: result: $ac_res" >&5
22179 echo "${ECHO_T}$ac_res" >&6; }
22180
22181 fi
22182 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22183   cat >>confdefs.h <<_ACEOF
22184 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22185 _ACEOF
22186
22187 fi
22188
22189 done
22190
22191
22192
22193
22194
22195
22196
22197
22198
22199
22200
22201
22202
22203
22204
22205
22206
22207
22208
22209
22210
22211
22212
22213
22214 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
22215 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
22216 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
22217 __fsetlocking
22218 do
22219 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22220 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22221 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22222 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22223   echo $ECHO_N "(cached) $ECHO_C" >&6
22224 else
22225   cat >conftest.$ac_ext <<_ACEOF
22226 /* confdefs.h.  */
22227 _ACEOF
22228 cat confdefs.h >>conftest.$ac_ext
22229 cat >>conftest.$ac_ext <<_ACEOF
22230 /* end confdefs.h.  */
22231 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22232    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22233 #define $ac_func innocuous_$ac_func
22234
22235 /* System header to define __stub macros and hopefully few prototypes,
22236     which can conflict with char $ac_func (); below.
22237     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22238     <limits.h> exists even on freestanding compilers.  */
22239
22240 #ifdef __STDC__
22241 # include <limits.h>
22242 #else
22243 # include <assert.h>
22244 #endif
22245
22246 #undef $ac_func
22247
22248 /* Override any GCC internal prototype to avoid an error.
22249    Use char because int might match the return type of a GCC
22250    builtin and then its argument prototype would still apply.  */
22251 #ifdef __cplusplus
22252 extern "C"
22253 #endif
22254 char $ac_func ();
22255 /* The GNU C library defines this for functions which it implements
22256     to always fail with ENOSYS.  Some functions are actually named
22257     something starting with __ and the normal name is an alias.  */
22258 #if defined __stub_$ac_func || defined __stub___$ac_func
22259 choke me
22260 #endif
22261
22262 int
22263 main ()
22264 {
22265 return $ac_func ();
22266   ;
22267   return 0;
22268 }
22269 _ACEOF
22270 rm -f conftest.$ac_objext conftest$ac_exeext
22271 if { (ac_try="$ac_link"
22272 case "(($ac_try" in
22273   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22274   *) ac_try_echo=$ac_try;;
22275 esac
22276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22277   (eval "$ac_link") 2>conftest.er1
22278   ac_status=$?
22279   grep -v '^ *+' conftest.er1 >conftest.err
22280   rm -f conftest.er1
22281   cat conftest.err >&5
22282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22283   (exit $ac_status); } && {
22284          test -z "$ac_c_werror_flag" ||
22285          test ! -s conftest.err
22286        } && test -s conftest$ac_exeext &&
22287        $as_test_x conftest$ac_exeext; then
22288   eval "$as_ac_var=yes"
22289 else
22290   echo "$as_me: failed program was:" >&5
22291 sed 's/^/| /' conftest.$ac_ext >&5
22292
22293         eval "$as_ac_var=no"
22294 fi
22295
22296 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22297       conftest$ac_exeext conftest.$ac_ext
22298 fi
22299 ac_res=`eval echo '${'$as_ac_var'}'`
22300                { echo "$as_me:$LINENO: result: $ac_res" >&5
22301 echo "${ECHO_T}$ac_res" >&6; }
22302 if test `eval echo '${'$as_ac_var'}'` = yes; then
22303   cat >>confdefs.h <<_ACEOF
22304 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22305 _ACEOF
22306
22307 fi
22308 done
22309
22310
22311
22312   { echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
22313 echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6; }
22314 if test "${ac_cv_have_decl__snprintf+set}" = set; then
22315   echo $ECHO_N "(cached) $ECHO_C" >&6
22316 else
22317   cat >conftest.$ac_ext <<_ACEOF
22318 /* confdefs.h.  */
22319 _ACEOF
22320 cat confdefs.h >>conftest.$ac_ext
22321 cat >>conftest.$ac_ext <<_ACEOF
22322 /* end confdefs.h.  */
22323 #include <stdio.h>
22324 int
22325 main ()
22326 {
22327
22328 #ifndef _snprintf
22329   char *p = (char *) _snprintf;
22330 #endif
22331
22332   ;
22333   return 0;
22334 }
22335 _ACEOF
22336 rm -f conftest.$ac_objext
22337 if { (ac_try="$ac_compile"
22338 case "(($ac_try" in
22339   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22340   *) ac_try_echo=$ac_try;;
22341 esac
22342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22343   (eval "$ac_compile") 2>conftest.er1
22344   ac_status=$?
22345   grep -v '^ *+' conftest.er1 >conftest.err
22346   rm -f conftest.er1
22347   cat conftest.err >&5
22348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22349   (exit $ac_status); } && {
22350          test -z "$ac_c_werror_flag" ||
22351          test ! -s conftest.err
22352        } && test -s conftest.$ac_objext; then
22353   ac_cv_have_decl__snprintf=yes
22354 else
22355   echo "$as_me: failed program was:" >&5
22356 sed 's/^/| /' conftest.$ac_ext >&5
22357
22358         ac_cv_have_decl__snprintf=no
22359 fi
22360
22361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22362 fi
22363 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
22364 echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6; }
22365   if test $ac_cv_have_decl__snprintf = yes; then
22366     gt_value=1
22367   else
22368     gt_value=0
22369   fi
22370
22371 cat >>confdefs.h <<_ACEOF
22372 #define HAVE_DECL__SNPRINTF $gt_value
22373 _ACEOF
22374
22375
22376
22377   { echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
22378 echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6; }
22379 if test "${ac_cv_have_decl__snwprintf+set}" = set; then
22380   echo $ECHO_N "(cached) $ECHO_C" >&6
22381 else
22382   cat >conftest.$ac_ext <<_ACEOF
22383 /* confdefs.h.  */
22384 _ACEOF
22385 cat confdefs.h >>conftest.$ac_ext
22386 cat >>conftest.$ac_ext <<_ACEOF
22387 /* end confdefs.h.  */
22388 #include <stdio.h>
22389 int
22390 main ()
22391 {
22392
22393 #ifndef _snwprintf
22394   char *p = (char *) _snwprintf;
22395 #endif
22396
22397   ;
22398   return 0;
22399 }
22400 _ACEOF
22401 rm -f conftest.$ac_objext
22402 if { (ac_try="$ac_compile"
22403 case "(($ac_try" in
22404   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22405   *) ac_try_echo=$ac_try;;
22406 esac
22407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22408   (eval "$ac_compile") 2>conftest.er1
22409   ac_status=$?
22410   grep -v '^ *+' conftest.er1 >conftest.err
22411   rm -f conftest.er1
22412   cat conftest.err >&5
22413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22414   (exit $ac_status); } && {
22415          test -z "$ac_c_werror_flag" ||
22416          test ! -s conftest.err
22417        } && test -s conftest.$ac_objext; then
22418   ac_cv_have_decl__snwprintf=yes
22419 else
22420   echo "$as_me: failed program was:" >&5
22421 sed 's/^/| /' conftest.$ac_ext >&5
22422
22423         ac_cv_have_decl__snwprintf=no
22424 fi
22425
22426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22427 fi
22428 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
22429 echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6; }
22430   if test $ac_cv_have_decl__snwprintf = yes; then
22431     gt_value=1
22432   else
22433     gt_value=0
22434   fi
22435
22436 cat >>confdefs.h <<_ACEOF
22437 #define HAVE_DECL__SNWPRINTF $gt_value
22438 _ACEOF
22439
22440
22441
22442
22443   { echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
22444 echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6; }
22445 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
22446   echo $ECHO_N "(cached) $ECHO_C" >&6
22447 else
22448   cat >conftest.$ac_ext <<_ACEOF
22449 /* confdefs.h.  */
22450 _ACEOF
22451 cat confdefs.h >>conftest.$ac_ext
22452 cat >>conftest.$ac_ext <<_ACEOF
22453 /* end confdefs.h.  */
22454 #include <stdio.h>
22455 int
22456 main ()
22457 {
22458
22459 #ifndef feof_unlocked
22460   char *p = (char *) feof_unlocked;
22461 #endif
22462
22463   ;
22464   return 0;
22465 }
22466 _ACEOF
22467 rm -f conftest.$ac_objext
22468 if { (ac_try="$ac_compile"
22469 case "(($ac_try" in
22470   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22471   *) ac_try_echo=$ac_try;;
22472 esac
22473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22474   (eval "$ac_compile") 2>conftest.er1
22475   ac_status=$?
22476   grep -v '^ *+' conftest.er1 >conftest.err
22477   rm -f conftest.er1
22478   cat conftest.err >&5
22479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22480   (exit $ac_status); } && {
22481          test -z "$ac_c_werror_flag" ||
22482          test ! -s conftest.err
22483        } && test -s conftest.$ac_objext; then
22484   ac_cv_have_decl_feof_unlocked=yes
22485 else
22486   echo "$as_me: failed program was:" >&5
22487 sed 's/^/| /' conftest.$ac_ext >&5
22488
22489         ac_cv_have_decl_feof_unlocked=no
22490 fi
22491
22492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22493 fi
22494 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
22495 echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6; }
22496   if test $ac_cv_have_decl_feof_unlocked = yes; then
22497     gt_value=1
22498   else
22499     gt_value=0
22500   fi
22501
22502 cat >>confdefs.h <<_ACEOF
22503 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
22504 _ACEOF
22505
22506
22507
22508   { echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
22509 echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6; }
22510 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
22511   echo $ECHO_N "(cached) $ECHO_C" >&6
22512 else
22513   cat >conftest.$ac_ext <<_ACEOF
22514 /* confdefs.h.  */
22515 _ACEOF
22516 cat confdefs.h >>conftest.$ac_ext
22517 cat >>conftest.$ac_ext <<_ACEOF
22518 /* end confdefs.h.  */
22519 #include <stdio.h>
22520 int
22521 main ()
22522 {
22523
22524 #ifndef fgets_unlocked
22525   char *p = (char *) fgets_unlocked;
22526 #endif
22527
22528   ;
22529   return 0;
22530 }
22531 _ACEOF
22532 rm -f conftest.$ac_objext
22533 if { (ac_try="$ac_compile"
22534 case "(($ac_try" in
22535   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22536   *) ac_try_echo=$ac_try;;
22537 esac
22538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22539   (eval "$ac_compile") 2>conftest.er1
22540   ac_status=$?
22541   grep -v '^ *+' conftest.er1 >conftest.err
22542   rm -f conftest.er1
22543   cat conftest.err >&5
22544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22545   (exit $ac_status); } && {
22546          test -z "$ac_c_werror_flag" ||
22547          test ! -s conftest.err
22548        } && test -s conftest.$ac_objext; then
22549   ac_cv_have_decl_fgets_unlocked=yes
22550 else
22551   echo "$as_me: failed program was:" >&5
22552 sed 's/^/| /' conftest.$ac_ext >&5
22553
22554         ac_cv_have_decl_fgets_unlocked=no
22555 fi
22556
22557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22558 fi
22559 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
22560 echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6; }
22561   if test $ac_cv_have_decl_fgets_unlocked = yes; then
22562     gt_value=1
22563   else
22564     gt_value=0
22565   fi
22566
22567 cat >>confdefs.h <<_ACEOF
22568 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
22569 _ACEOF
22570
22571
22572
22573   { echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
22574 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6; }
22575 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
22576   echo $ECHO_N "(cached) $ECHO_C" >&6
22577 else
22578   cat >conftest.$ac_ext <<_ACEOF
22579 /* confdefs.h.  */
22580 _ACEOF
22581 cat confdefs.h >>conftest.$ac_ext
22582 cat >>conftest.$ac_ext <<_ACEOF
22583 /* end confdefs.h.  */
22584 #include <stdio.h>
22585 int
22586 main ()
22587 {
22588
22589 #ifndef getc_unlocked
22590   char *p = (char *) getc_unlocked;
22591 #endif
22592
22593   ;
22594   return 0;
22595 }
22596 _ACEOF
22597 rm -f conftest.$ac_objext
22598 if { (ac_try="$ac_compile"
22599 case "(($ac_try" in
22600   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22601   *) ac_try_echo=$ac_try;;
22602 esac
22603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22604   (eval "$ac_compile") 2>conftest.er1
22605   ac_status=$?
22606   grep -v '^ *+' conftest.er1 >conftest.err
22607   rm -f conftest.er1
22608   cat conftest.err >&5
22609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22610   (exit $ac_status); } && {
22611          test -z "$ac_c_werror_flag" ||
22612          test ! -s conftest.err
22613        } && test -s conftest.$ac_objext; then
22614   ac_cv_have_decl_getc_unlocked=yes
22615 else
22616   echo "$as_me: failed program was:" >&5
22617 sed 's/^/| /' conftest.$ac_ext >&5
22618
22619         ac_cv_have_decl_getc_unlocked=no
22620 fi
22621
22622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22623 fi
22624 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
22625 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6; }
22626   if test $ac_cv_have_decl_getc_unlocked = yes; then
22627     gt_value=1
22628   else
22629     gt_value=0
22630   fi
22631
22632 cat >>confdefs.h <<_ACEOF
22633 #define HAVE_DECL_GETC_UNLOCKED $gt_value
22634 _ACEOF
22635
22636
22637
22638   case $gt_cv_func_printf_posix in
22639     *yes) HAVE_POSIX_PRINTF=1 ;;
22640     *) HAVE_POSIX_PRINTF=0 ;;
22641   esac
22642
22643   if test "$ac_cv_func_asprintf" = yes; then
22644     HAVE_ASPRINTF=1
22645   else
22646     HAVE_ASPRINTF=0
22647   fi
22648
22649   if test "$ac_cv_func_snprintf" = yes; then
22650     HAVE_SNPRINTF=1
22651   else
22652     HAVE_SNPRINTF=0
22653   fi
22654
22655   if test "$ac_cv_func_wprintf" = yes; then
22656     HAVE_WPRINTF=1
22657   else
22658     HAVE_WPRINTF=0
22659   fi
22660
22661
22662
22663
22664
22665
22666
22667           am_save_CPPFLAGS="$CPPFLAGS"
22668
22669   for element in $INCICONV; do
22670     haveit=
22671     for x in $CPPFLAGS; do
22672
22673   acl_save_prefix="$prefix"
22674   prefix="$acl_final_prefix"
22675   acl_save_exec_prefix="$exec_prefix"
22676   exec_prefix="$acl_final_exec_prefix"
22677   eval x=\"$x\"
22678   exec_prefix="$acl_save_exec_prefix"
22679   prefix="$acl_save_prefix"
22680
22681       if test "X$x" = "X$element"; then
22682         haveit=yes
22683         break
22684       fi
22685     done
22686     if test -z "$haveit"; then
22687       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
22688     fi
22689   done
22690
22691
22692   { echo "$as_me:$LINENO: checking for iconv" >&5
22693 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
22694 if test "${am_cv_func_iconv+set}" = set; then
22695   echo $ECHO_N "(cached) $ECHO_C" >&6
22696 else
22697
22698     am_cv_func_iconv="no, consider installing GNU libiconv"
22699     am_cv_lib_iconv=no
22700     cat >conftest.$ac_ext <<_ACEOF
22701 /* confdefs.h.  */
22702 _ACEOF
22703 cat confdefs.h >>conftest.$ac_ext
22704 cat >>conftest.$ac_ext <<_ACEOF
22705 /* end confdefs.h.  */
22706 #include <stdlib.h>
22707 #include <iconv.h>
22708 int
22709 main ()
22710 {
22711 iconv_t cd = iconv_open("","");
22712        iconv(cd,NULL,NULL,NULL,NULL);
22713        iconv_close(cd);
22714   ;
22715   return 0;
22716 }
22717 _ACEOF
22718 rm -f conftest.$ac_objext conftest$ac_exeext
22719 if { (ac_try="$ac_link"
22720 case "(($ac_try" in
22721   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22722   *) ac_try_echo=$ac_try;;
22723 esac
22724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22725   (eval "$ac_link") 2>conftest.er1
22726   ac_status=$?
22727   grep -v '^ *+' conftest.er1 >conftest.err
22728   rm -f conftest.er1
22729   cat conftest.err >&5
22730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22731   (exit $ac_status); } && {
22732          test -z "$ac_c_werror_flag" ||
22733          test ! -s conftest.err
22734        } && test -s conftest$ac_exeext &&
22735        $as_test_x conftest$ac_exeext; then
22736   am_cv_func_iconv=yes
22737 else
22738   echo "$as_me: failed program was:" >&5
22739 sed 's/^/| /' conftest.$ac_ext >&5
22740
22741
22742 fi
22743
22744 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22745       conftest$ac_exeext conftest.$ac_ext
22746     if test "$am_cv_func_iconv" != yes; then
22747       am_save_LIBS="$LIBS"
22748       LIBS="$LIBS $LIBICONV"
22749       cat >conftest.$ac_ext <<_ACEOF
22750 /* confdefs.h.  */
22751 _ACEOF
22752 cat confdefs.h >>conftest.$ac_ext
22753 cat >>conftest.$ac_ext <<_ACEOF
22754 /* end confdefs.h.  */
22755 #include <stdlib.h>
22756 #include <iconv.h>
22757 int
22758 main ()
22759 {
22760 iconv_t cd = iconv_open("","");
22761          iconv(cd,NULL,NULL,NULL,NULL);
22762          iconv_close(cd);
22763   ;
22764   return 0;
22765 }
22766 _ACEOF
22767 rm -f conftest.$ac_objext conftest$ac_exeext
22768 if { (ac_try="$ac_link"
22769 case "(($ac_try" in
22770   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22771   *) ac_try_echo=$ac_try;;
22772 esac
22773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22774   (eval "$ac_link") 2>conftest.er1
22775   ac_status=$?
22776   grep -v '^ *+' conftest.er1 >conftest.err
22777   rm -f conftest.er1
22778   cat conftest.err >&5
22779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22780   (exit $ac_status); } && {
22781          test -z "$ac_c_werror_flag" ||
22782          test ! -s conftest.err
22783        } && test -s conftest$ac_exeext &&
22784        $as_test_x conftest$ac_exeext; then
22785   am_cv_lib_iconv=yes
22786         am_cv_func_iconv=yes
22787 else
22788   echo "$as_me: failed program was:" >&5
22789 sed 's/^/| /' conftest.$ac_ext >&5
22790
22791
22792 fi
22793
22794 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22795       conftest$ac_exeext conftest.$ac_ext
22796       LIBS="$am_save_LIBS"
22797     fi
22798
22799 fi
22800 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
22801 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
22802   if test "$am_cv_func_iconv" = yes; then
22803
22804 cat >>confdefs.h <<\_ACEOF
22805 #define HAVE_ICONV 1
22806 _ACEOF
22807
22808   fi
22809   if test "$am_cv_lib_iconv" = yes; then
22810     { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
22811 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
22812     { echo "$as_me:$LINENO: result: $LIBICONV" >&5
22813 echo "${ECHO_T}$LIBICONV" >&6; }
22814   else
22815             CPPFLAGS="$am_save_CPPFLAGS"
22816     LIBICONV=
22817     LTLIBICONV=
22818   fi
22819
22820
22821
22822   if test "$am_cv_func_iconv" = yes; then
22823     { echo "$as_me:$LINENO: checking for iconv declaration" >&5
22824 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
22825     if test "${am_cv_proto_iconv+set}" = set; then
22826   echo $ECHO_N "(cached) $ECHO_C" >&6
22827 else
22828
22829       cat >conftest.$ac_ext <<_ACEOF
22830 /* confdefs.h.  */
22831 _ACEOF
22832 cat confdefs.h >>conftest.$ac_ext
22833 cat >>conftest.$ac_ext <<_ACEOF
22834 /* end confdefs.h.  */
22835
22836 #include <stdlib.h>
22837 #include <iconv.h>
22838 extern
22839 #ifdef __cplusplus
22840 "C"
22841 #endif
22842 #if defined(__STDC__) || defined(__cplusplus)
22843 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
22844 #else
22845 size_t iconv();
22846 #endif
22847
22848 int
22849 main ()
22850 {
22851
22852   ;
22853   return 0;
22854 }
22855 _ACEOF
22856 rm -f conftest.$ac_objext
22857 if { (ac_try="$ac_compile"
22858 case "(($ac_try" in
22859   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22860   *) ac_try_echo=$ac_try;;
22861 esac
22862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22863   (eval "$ac_compile") 2>conftest.er1
22864   ac_status=$?
22865   grep -v '^ *+' conftest.er1 >conftest.err
22866   rm -f conftest.er1
22867   cat conftest.err >&5
22868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22869   (exit $ac_status); } && {
22870          test -z "$ac_c_werror_flag" ||
22871          test ! -s conftest.err
22872        } && test -s conftest.$ac_objext; then
22873   am_cv_proto_iconv_arg1=""
22874 else
22875   echo "$as_me: failed program was:" >&5
22876 sed 's/^/| /' conftest.$ac_ext >&5
22877
22878         am_cv_proto_iconv_arg1="const"
22879 fi
22880
22881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22882       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);"
22883 fi
22884
22885     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
22886     { echo "$as_me:$LINENO: result: ${ac_t:-
22887          }$am_cv_proto_iconv" >&5
22888 echo "${ECHO_T}${ac_t:-
22889          }$am_cv_proto_iconv" >&6; }
22890
22891 cat >>confdefs.h <<_ACEOF
22892 #define ICONV_CONST $am_cv_proto_iconv_arg1
22893 _ACEOF
22894
22895   fi
22896
22897
22898   { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
22899 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
22900 if test "${am_cv_langinfo_codeset+set}" = set; then
22901   echo $ECHO_N "(cached) $ECHO_C" >&6
22902 else
22903   cat >conftest.$ac_ext <<_ACEOF
22904 /* confdefs.h.  */
22905 _ACEOF
22906 cat confdefs.h >>conftest.$ac_ext
22907 cat >>conftest.$ac_ext <<_ACEOF
22908 /* end confdefs.h.  */
22909 #include <langinfo.h>
22910 int
22911 main ()
22912 {
22913 char* cs = nl_langinfo(CODESET);
22914   ;
22915   return 0;
22916 }
22917 _ACEOF
22918 rm -f conftest.$ac_objext conftest$ac_exeext
22919 if { (ac_try="$ac_link"
22920 case "(($ac_try" in
22921   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22922   *) ac_try_echo=$ac_try;;
22923 esac
22924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22925   (eval "$ac_link") 2>conftest.er1
22926   ac_status=$?
22927   grep -v '^ *+' conftest.er1 >conftest.err
22928   rm -f conftest.er1
22929   cat conftest.err >&5
22930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22931   (exit $ac_status); } && {
22932          test -z "$ac_c_werror_flag" ||
22933          test ! -s conftest.err
22934        } && test -s conftest$ac_exeext &&
22935        $as_test_x conftest$ac_exeext; then
22936   am_cv_langinfo_codeset=yes
22937 else
22938   echo "$as_me: failed program was:" >&5
22939 sed 's/^/| /' conftest.$ac_ext >&5
22940
22941         am_cv_langinfo_codeset=no
22942 fi
22943
22944 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22945       conftest$ac_exeext conftest.$ac_ext
22946
22947 fi
22948 { echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
22949 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6; }
22950   if test $am_cv_langinfo_codeset = yes; then
22951
22952 cat >>confdefs.h <<\_ACEOF
22953 #define HAVE_LANGINFO_CODESET 1
22954 _ACEOF
22955
22956   fi
22957
22958   if test $ac_cv_header_locale_h = yes; then
22959
22960   { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
22961 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
22962 if test "${gt_cv_val_LC_MESSAGES+set}" = set; then
22963   echo $ECHO_N "(cached) $ECHO_C" >&6
22964 else
22965   cat >conftest.$ac_ext <<_ACEOF
22966 /* confdefs.h.  */
22967 _ACEOF
22968 cat confdefs.h >>conftest.$ac_ext
22969 cat >>conftest.$ac_ext <<_ACEOF
22970 /* end confdefs.h.  */
22971 #include <locale.h>
22972 int
22973 main ()
22974 {
22975 return LC_MESSAGES
22976   ;
22977   return 0;
22978 }
22979 _ACEOF
22980 rm -f conftest.$ac_objext conftest$ac_exeext
22981 if { (ac_try="$ac_link"
22982 case "(($ac_try" in
22983   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22984   *) ac_try_echo=$ac_try;;
22985 esac
22986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22987   (eval "$ac_link") 2>conftest.er1
22988   ac_status=$?
22989   grep -v '^ *+' conftest.er1 >conftest.err
22990   rm -f conftest.er1
22991   cat conftest.err >&5
22992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22993   (exit $ac_status); } && {
22994          test -z "$ac_c_werror_flag" ||
22995          test ! -s conftest.err
22996        } && test -s conftest$ac_exeext &&
22997        $as_test_x conftest$ac_exeext; then
22998   gt_cv_val_LC_MESSAGES=yes
22999 else
23000   echo "$as_me: failed program was:" >&5
23001 sed 's/^/| /' conftest.$ac_ext >&5
23002
23003         gt_cv_val_LC_MESSAGES=no
23004 fi
23005
23006 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23007       conftest$ac_exeext conftest.$ac_ext
23008 fi
23009 { echo "$as_me:$LINENO: result: $gt_cv_val_LC_MESSAGES" >&5
23010 echo "${ECHO_T}$gt_cv_val_LC_MESSAGES" >&6; }
23011   if test $gt_cv_val_LC_MESSAGES = yes; then
23012
23013 cat >>confdefs.h <<\_ACEOF
23014 #define HAVE_LC_MESSAGES 1
23015 _ACEOF
23016
23017   fi
23018
23019   fi
23020
23021   if test -n "$INTL_MACOSX_LIBS"; then
23022     CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
23023   fi
23024
23025                       for ac_prog in bison
23026 do
23027   # Extract the first word of "$ac_prog", so it can be a program name with args.
23028 set dummy $ac_prog; ac_word=$2
23029 { echo "$as_me:$LINENO: checking for $ac_word" >&5
23030 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
23031 if test "${ac_cv_prog_INTLBISON+set}" = set; then
23032   echo $ECHO_N "(cached) $ECHO_C" >&6
23033 else
23034   if test -n "$INTLBISON"; then
23035   ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
23036 else
23037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23038 for as_dir in $PATH
23039 do
23040   IFS=$as_save_IFS
23041   test -z "$as_dir" && as_dir=.
23042   for ac_exec_ext in '' $ac_executable_extensions; do
23043   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23044     ac_cv_prog_INTLBISON="$ac_prog"
23045     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23046     break 2
23047   fi
23048 done
23049 done
23050 IFS=$as_save_IFS
23051
23052 fi
23053 fi
23054 INTLBISON=$ac_cv_prog_INTLBISON
23055 if test -n "$INTLBISON"; then
23056   { echo "$as_me:$LINENO: result: $INTLBISON" >&5
23057 echo "${ECHO_T}$INTLBISON" >&6; }
23058 else
23059   { echo "$as_me:$LINENO: result: no" >&5
23060 echo "${ECHO_T}no" >&6; }
23061 fi
23062
23063
23064   test -n "$INTLBISON" && break
23065 done
23066
23067   if test -z "$INTLBISON"; then
23068     ac_verc_fail=yes
23069   else
23070         { echo "$as_me:$LINENO: checking version of bison" >&5
23071 echo $ECHO_N "checking version of bison... $ECHO_C" >&6; }
23072     ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
23073     case $ac_prog_version in
23074       '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
23075       1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
23076          ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
23077       *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
23078     esac
23079     { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
23080 echo "${ECHO_T}$ac_prog_version" >&6; }
23081   fi
23082   if test $ac_verc_fail = yes; then
23083     INTLBISON=:
23084   fi
23085
23086
23087
23088
23089
23090
23091
23092
23093
23094
23095
23096
23097
23098
23099
23100
23101     { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
23102 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
23103 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
23104   echo $ECHO_N "(cached) $ECHO_C" >&6
23105 else
23106   gt_save_CPPFLAGS="$CPPFLAGS"
23107      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
23108      gt_save_LIBS="$LIBS"
23109      LIBS="$LIBS -framework CoreFoundation"
23110      cat >conftest.$ac_ext <<_ACEOF
23111 /* confdefs.h.  */
23112 _ACEOF
23113 cat confdefs.h >>conftest.$ac_ext
23114 cat >>conftest.$ac_ext <<_ACEOF
23115 /* end confdefs.h.  */
23116 #include <CFPreferences.h>
23117 int
23118 main ()
23119 {
23120 CFPreferencesCopyAppValue(NULL, NULL)
23121   ;
23122   return 0;
23123 }
23124 _ACEOF
23125 rm -f conftest.$ac_objext conftest$ac_exeext
23126 if { (ac_try="$ac_link"
23127 case "(($ac_try" in
23128   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23129   *) ac_try_echo=$ac_try;;
23130 esac
23131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23132   (eval "$ac_link") 2>conftest.er1
23133   ac_status=$?
23134   grep -v '^ *+' conftest.er1 >conftest.err
23135   rm -f conftest.er1
23136   cat conftest.err >&5
23137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23138   (exit $ac_status); } && {
23139          test -z "$ac_c_werror_flag" ||
23140          test ! -s conftest.err
23141        } && test -s conftest$ac_exeext &&
23142        $as_test_x conftest$ac_exeext; then
23143   gt_cv_func_CFPreferencesCopyAppValue=yes
23144 else
23145   echo "$as_me: failed program was:" >&5
23146 sed 's/^/| /' conftest.$ac_ext >&5
23147
23148         gt_cv_func_CFPreferencesCopyAppValue=no
23149 fi
23150
23151 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23152       conftest$ac_exeext conftest.$ac_ext
23153      CPPFLAGS="$gt_save_CPPFLAGS"
23154      LIBS="$gt_save_LIBS"
23155 fi
23156 { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
23157 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
23158   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
23159
23160 cat >>confdefs.h <<\_ACEOF
23161 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
23162 _ACEOF
23163
23164   fi
23165     { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
23166 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
23167 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
23168   echo $ECHO_N "(cached) $ECHO_C" >&6
23169 else
23170   gt_save_CPPFLAGS="$CPPFLAGS"
23171      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
23172      gt_save_LIBS="$LIBS"
23173      LIBS="$LIBS -framework CoreFoundation"
23174      cat >conftest.$ac_ext <<_ACEOF
23175 /* confdefs.h.  */
23176 _ACEOF
23177 cat confdefs.h >>conftest.$ac_ext
23178 cat >>conftest.$ac_ext <<_ACEOF
23179 /* end confdefs.h.  */
23180 #include <CFLocale.h>
23181 int
23182 main ()
23183 {
23184 CFLocaleCopyCurrent();
23185   ;
23186   return 0;
23187 }
23188 _ACEOF
23189 rm -f conftest.$ac_objext conftest$ac_exeext
23190 if { (ac_try="$ac_link"
23191 case "(($ac_try" in
23192   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23193   *) ac_try_echo=$ac_try;;
23194 esac
23195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23196   (eval "$ac_link") 2>conftest.er1
23197   ac_status=$?
23198   grep -v '^ *+' conftest.er1 >conftest.err
23199   rm -f conftest.er1
23200   cat conftest.err >&5
23201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23202   (exit $ac_status); } && {
23203          test -z "$ac_c_werror_flag" ||
23204          test ! -s conftest.err
23205        } && test -s conftest$ac_exeext &&
23206        $as_test_x conftest$ac_exeext; then
23207   gt_cv_func_CFLocaleCopyCurrent=yes
23208 else
23209   echo "$as_me: failed program was:" >&5
23210 sed 's/^/| /' conftest.$ac_ext >&5
23211
23212         gt_cv_func_CFLocaleCopyCurrent=no
23213 fi
23214
23215 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23216       conftest$ac_exeext conftest.$ac_ext
23217      CPPFLAGS="$gt_save_CPPFLAGS"
23218      LIBS="$gt_save_LIBS"
23219 fi
23220 { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
23221 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
23222   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
23223
23224 cat >>confdefs.h <<\_ACEOF
23225 #define HAVE_CFLOCALECOPYCURRENT 1
23226 _ACEOF
23227
23228   fi
23229   INTL_MACOSX_LIBS=
23230   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
23231     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
23232   fi
23233
23234
23235
23236
23237   { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
23238 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
23239     # Check whether --enable-nls was given.
23240 if test "${enable_nls+set}" = set; then
23241   enableval=$enable_nls; USE_NLS=$enableval
23242 else
23243   USE_NLS=yes
23244 fi
23245
23246   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
23247 echo "${ECHO_T}$USE_NLS" >&6; }
23248
23249
23250
23251
23252     BUILD_INCLUDED_LIBINTL=no
23253     USE_INCLUDED_LIBINTL=no
23254
23255   LIBINTL=
23256   LTLIBINTL=
23257   POSUB=
23258
23259     if test "$USE_NLS" = "yes"; then
23260     gt_use_preinstalled_gnugettext=no
23261
23262       { echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
23263 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6; }
23264
23265 # Check whether --with-included-gettext was given.
23266 if test "${with_included_gettext+set}" = set; then
23267   withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
23268 else
23269   nls_cv_force_use_gnu_gettext=no
23270 fi
23271
23272       { echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
23273 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6; }
23274
23275       nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
23276       if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
23277
23278
23279
23280
23281
23282
23283         { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
23284 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
23285 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
23286   echo $ECHO_N "(cached) $ECHO_C" >&6
23287 else
23288   cat >conftest.$ac_ext <<_ACEOF
23289 /* confdefs.h.  */
23290 _ACEOF
23291 cat confdefs.h >>conftest.$ac_ext
23292 cat >>conftest.$ac_ext <<_ACEOF
23293 /* end confdefs.h.  */
23294 #include <libintl.h>
23295 extern int _nl_msg_cat_cntr;
23296 extern int *_nl_domain_bindings;
23297 int
23298 main ()
23299 {
23300 bindtextdomain ("", "");
23301 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
23302   ;
23303   return 0;
23304 }
23305 _ACEOF
23306 rm -f conftest.$ac_objext conftest$ac_exeext
23307 if { (ac_try="$ac_link"
23308 case "(($ac_try" in
23309   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23310   *) ac_try_echo=$ac_try;;
23311 esac
23312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23313   (eval "$ac_link") 2>conftest.er1
23314   ac_status=$?
23315   grep -v '^ *+' conftest.er1 >conftest.err
23316   rm -f conftest.er1
23317   cat conftest.err >&5
23318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23319   (exit $ac_status); } && {
23320          test -z "$ac_c_werror_flag" ||
23321          test ! -s conftest.err
23322        } && test -s conftest$ac_exeext &&
23323        $as_test_x conftest$ac_exeext; then
23324   gt_cv_func_gnugettext1_libc=yes
23325 else
23326   echo "$as_me: failed program was:" >&5
23327 sed 's/^/| /' conftest.$ac_ext >&5
23328
23329         gt_cv_func_gnugettext1_libc=no
23330 fi
23331
23332 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23333       conftest$ac_exeext conftest.$ac_ext
23334 fi
23335 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
23336 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
23337
23338         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
23339
23340
23341
23342     use_additional=yes
23343
23344   acl_save_prefix="$prefix"
23345   prefix="$acl_final_prefix"
23346   acl_save_exec_prefix="$exec_prefix"
23347   exec_prefix="$acl_final_exec_prefix"
23348
23349     eval additional_includedir=\"$includedir\"
23350     eval additional_libdir=\"$libdir\"
23351
23352   exec_prefix="$acl_save_exec_prefix"
23353   prefix="$acl_save_prefix"
23354
23355
23356 # Check whether --with-libintl-prefix was given.
23357 if test "${with_libintl_prefix+set}" = set; then
23358   withval=$with_libintl_prefix;
23359     if test "X$withval" = "Xno"; then
23360       use_additional=no
23361     else
23362       if test "X$withval" = "X"; then
23363
23364   acl_save_prefix="$prefix"
23365   prefix="$acl_final_prefix"
23366   acl_save_exec_prefix="$exec_prefix"
23367   exec_prefix="$acl_final_exec_prefix"
23368
23369           eval additional_includedir=\"$includedir\"
23370           eval additional_libdir=\"$libdir\"
23371
23372   exec_prefix="$acl_save_exec_prefix"
23373   prefix="$acl_save_prefix"
23374
23375       else
23376         additional_includedir="$withval/include"
23377         additional_libdir="$withval/lib"
23378       fi
23379     fi
23380
23381 fi
23382
23383       LIBINTL=
23384   LTLIBINTL=
23385   INCINTL=
23386   rpathdirs=
23387   ltrpathdirs=
23388   names_already_handled=
23389   names_next_round='intl '
23390   while test -n "$names_next_round"; do
23391     names_this_round="$names_next_round"
23392     names_next_round=
23393     for name in $names_this_round; do
23394       already_handled=
23395       for n in $names_already_handled; do
23396         if test "$n" = "$name"; then
23397           already_handled=yes
23398           break
23399         fi
23400       done
23401       if test -z "$already_handled"; then
23402         names_already_handled="$names_already_handled $name"
23403                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
23404         eval value=\"\$HAVE_LIB$uppername\"
23405         if test -n "$value"; then
23406           if test "$value" = yes; then
23407             eval value=\"\$LIB$uppername\"
23408             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
23409             eval value=\"\$LTLIB$uppername\"
23410             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
23411           else
23412                                     :
23413           fi
23414         else
23415                               found_dir=
23416           found_la=
23417           found_so=
23418           found_a=
23419           if test $use_additional = yes; then
23420             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
23421               found_dir="$additional_libdir"
23422               found_so="$additional_libdir/lib$name.$shlibext"
23423               if test -f "$additional_libdir/lib$name.la"; then
23424                 found_la="$additional_libdir/lib$name.la"
23425               fi
23426             else
23427               if test -f "$additional_libdir/lib$name.$libext"; then
23428                 found_dir="$additional_libdir"
23429                 found_a="$additional_libdir/lib$name.$libext"
23430                 if test -f "$additional_libdir/lib$name.la"; then
23431                   found_la="$additional_libdir/lib$name.la"
23432                 fi
23433               fi
23434             fi
23435           fi
23436           if test "X$found_dir" = "X"; then
23437             for x in $LDFLAGS $LTLIBINTL; do
23438
23439   acl_save_prefix="$prefix"
23440   prefix="$acl_final_prefix"
23441   acl_save_exec_prefix="$exec_prefix"
23442   exec_prefix="$acl_final_exec_prefix"
23443   eval x=\"$x\"
23444   exec_prefix="$acl_save_exec_prefix"
23445   prefix="$acl_save_prefix"
23446
23447               case "$x" in
23448                 -L*)
23449                   dir=`echo "X$x" | sed -e 's/^X-L//'`
23450                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
23451                     found_dir="$dir"
23452                     found_so="$dir/lib$name.$shlibext"
23453                     if test -f "$dir/lib$name.la"; then
23454                       found_la="$dir/lib$name.la"
23455                     fi
23456                   else
23457                     if test -f "$dir/lib$name.$libext"; then
23458                       found_dir="$dir"
23459                       found_a="$dir/lib$name.$libext"
23460                       if test -f "$dir/lib$name.la"; then
23461                         found_la="$dir/lib$name.la"
23462                       fi
23463                     fi
23464                   fi
23465                   ;;
23466               esac
23467               if test "X$found_dir" != "X"; then
23468                 break
23469               fi
23470             done
23471           fi
23472           if test "X$found_dir" != "X"; then
23473                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
23474             if test "X$found_so" != "X"; then
23475                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
23476                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23477               else
23478                                                                                 haveit=
23479                 for x in $ltrpathdirs; do
23480                   if test "X$x" = "X$found_dir"; then
23481                     haveit=yes
23482                     break
23483                   fi
23484                 done
23485                 if test -z "$haveit"; then
23486                   ltrpathdirs="$ltrpathdirs $found_dir"
23487                 fi
23488                                 if test "$hardcode_direct" = yes; then
23489                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23490                 else
23491                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
23492                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23493                                                             haveit=
23494                     for x in $rpathdirs; do
23495                       if test "X$x" = "X$found_dir"; then
23496                         haveit=yes
23497                         break
23498                       fi
23499                     done
23500                     if test -z "$haveit"; then
23501                       rpathdirs="$rpathdirs $found_dir"
23502                     fi
23503                   else
23504                                                                                 haveit=
23505                     for x in $LDFLAGS $LIBINTL; do
23506
23507   acl_save_prefix="$prefix"
23508   prefix="$acl_final_prefix"
23509   acl_save_exec_prefix="$exec_prefix"
23510   exec_prefix="$acl_final_exec_prefix"
23511   eval x=\"$x\"
23512   exec_prefix="$acl_save_exec_prefix"
23513   prefix="$acl_save_prefix"
23514
23515                       if test "X$x" = "X-L$found_dir"; then
23516                         haveit=yes
23517                         break
23518                       fi
23519                     done
23520                     if test -z "$haveit"; then
23521                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
23522                     fi
23523                     if test "$hardcode_minus_L" != no; then
23524                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23525                     else
23526                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
23527                     fi
23528                   fi
23529                 fi
23530               fi
23531             else
23532               if test "X$found_a" != "X"; then
23533                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
23534               else
23535                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
23536               fi
23537             fi
23538                         additional_includedir=
23539             case "$found_dir" in
23540               */lib | */lib/)
23541                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
23542                 additional_includedir="$basedir/include"
23543                 ;;
23544             esac
23545             if test "X$additional_includedir" != "X"; then
23546                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
23547                 haveit=
23548                 if test "X$additional_includedir" = "X/usr/local/include"; then
23549                   if test -n "$GCC"; then
23550                     case $host_os in
23551                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
23552                     esac
23553                   fi
23554                 fi
23555                 if test -z "$haveit"; then
23556                   for x in $CPPFLAGS $INCINTL; do
23557
23558   acl_save_prefix="$prefix"
23559   prefix="$acl_final_prefix"
23560   acl_save_exec_prefix="$exec_prefix"
23561   exec_prefix="$acl_final_exec_prefix"
23562   eval x=\"$x\"
23563   exec_prefix="$acl_save_exec_prefix"
23564   prefix="$acl_save_prefix"
23565
23566                     if test "X$x" = "X-I$additional_includedir"; then
23567                       haveit=yes
23568                       break
23569                     fi
23570                   done
23571                   if test -z "$haveit"; then
23572                     if test -d "$additional_includedir"; then
23573                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
23574                     fi
23575                   fi
23576                 fi
23577               fi
23578             fi
23579                         if test -n "$found_la"; then
23580                                                         save_libdir="$libdir"
23581               case "$found_la" in
23582                 */* | *\\*) . "$found_la" ;;
23583                 *) . "./$found_la" ;;
23584               esac
23585               libdir="$save_libdir"
23586                             for dep in $dependency_libs; do
23587                 case "$dep" in
23588                   -L*)
23589                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
23590                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
23591                       haveit=
23592                       if test "X$additional_libdir" = "X/usr/local/lib"; then
23593                         if test -n "$GCC"; then
23594                           case $host_os in
23595                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
23596                           esac
23597                         fi
23598                       fi
23599                       if test -z "$haveit"; then
23600                         haveit=
23601                         for x in $LDFLAGS $LIBINTL; do
23602
23603   acl_save_prefix="$prefix"
23604   prefix="$acl_final_prefix"
23605   acl_save_exec_prefix="$exec_prefix"
23606   exec_prefix="$acl_final_exec_prefix"
23607   eval x=\"$x\"
23608   exec_prefix="$acl_save_exec_prefix"
23609   prefix="$acl_save_prefix"
23610
23611                           if test "X$x" = "X-L$additional_libdir"; then
23612                             haveit=yes
23613                             break
23614                           fi
23615                         done
23616                         if test -z "$haveit"; then
23617                           if test -d "$additional_libdir"; then
23618                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
23619                           fi
23620                         fi
23621                         haveit=
23622                         for x in $LDFLAGS $LTLIBINTL; do
23623
23624   acl_save_prefix="$prefix"
23625   prefix="$acl_final_prefix"
23626   acl_save_exec_prefix="$exec_prefix"
23627   exec_prefix="$acl_final_exec_prefix"
23628   eval x=\"$x\"
23629   exec_prefix="$acl_save_exec_prefix"
23630   prefix="$acl_save_prefix"
23631
23632                           if test "X$x" = "X-L$additional_libdir"; then
23633                             haveit=yes
23634                             break
23635                           fi
23636                         done
23637                         if test -z "$haveit"; then
23638                           if test -d "$additional_libdir"; then
23639                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
23640                           fi
23641                         fi
23642                       fi
23643                     fi
23644                     ;;
23645                   -R*)
23646                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
23647                     if test "$enable_rpath" != no; then
23648                                                                   haveit=
23649                       for x in $rpathdirs; do
23650                         if test "X$x" = "X$dir"; then
23651                           haveit=yes
23652                           break
23653                         fi
23654                       done
23655                       if test -z "$haveit"; then
23656                         rpathdirs="$rpathdirs $dir"
23657                       fi
23658                                                                   haveit=
23659                       for x in $ltrpathdirs; do
23660                         if test "X$x" = "X$dir"; then
23661                           haveit=yes
23662                           break
23663                         fi
23664                       done
23665                       if test -z "$haveit"; then
23666                         ltrpathdirs="$ltrpathdirs $dir"
23667                       fi
23668                     fi
23669                     ;;
23670                   -l*)
23671                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
23672                     ;;
23673                   *.la)
23674                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
23675                     ;;
23676                   *)
23677                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
23678                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
23679                     ;;
23680                 esac
23681               done
23682             fi
23683           else
23684                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
23685             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
23686           fi
23687         fi
23688       fi
23689     done
23690   done
23691   if test "X$rpathdirs" != "X"; then
23692     if test -n "$hardcode_libdir_separator"; then
23693                         alldirs=
23694       for found_dir in $rpathdirs; do
23695         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
23696       done
23697             acl_save_libdir="$libdir"
23698       libdir="$alldirs"
23699       eval flag=\"$hardcode_libdir_flag_spec\"
23700       libdir="$acl_save_libdir"
23701       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
23702     else
23703             for found_dir in $rpathdirs; do
23704         acl_save_libdir="$libdir"
23705         libdir="$found_dir"
23706         eval flag=\"$hardcode_libdir_flag_spec\"
23707         libdir="$acl_save_libdir"
23708         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
23709       done
23710     fi
23711   fi
23712   if test "X$ltrpathdirs" != "X"; then
23713             for found_dir in $ltrpathdirs; do
23714       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
23715     done
23716   fi
23717
23718           { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
23719 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
23720 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
23721   echo $ECHO_N "(cached) $ECHO_C" >&6
23722 else
23723   gt_save_CPPFLAGS="$CPPFLAGS"
23724             CPPFLAGS="$CPPFLAGS $INCINTL"
23725             gt_save_LIBS="$LIBS"
23726             LIBS="$LIBS $LIBINTL"
23727                         cat >conftest.$ac_ext <<_ACEOF
23728 /* confdefs.h.  */
23729 _ACEOF
23730 cat confdefs.h >>conftest.$ac_ext
23731 cat >>conftest.$ac_ext <<_ACEOF
23732 /* end confdefs.h.  */
23733 #include <libintl.h>
23734 extern int _nl_msg_cat_cntr;
23735 extern
23736 #ifdef __cplusplus
23737 "C"
23738 #endif
23739 const char *_nl_expand_alias (const char *);
23740 int
23741 main ()
23742 {
23743 bindtextdomain ("", "");
23744 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
23745   ;
23746   return 0;
23747 }
23748 _ACEOF
23749 rm -f conftest.$ac_objext conftest$ac_exeext
23750 if { (ac_try="$ac_link"
23751 case "(($ac_try" in
23752   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23753   *) ac_try_echo=$ac_try;;
23754 esac
23755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23756   (eval "$ac_link") 2>conftest.er1
23757   ac_status=$?
23758   grep -v '^ *+' conftest.er1 >conftest.err
23759   rm -f conftest.er1
23760   cat conftest.err >&5
23761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23762   (exit $ac_status); } && {
23763          test -z "$ac_c_werror_flag" ||
23764          test ! -s conftest.err
23765        } && test -s conftest$ac_exeext &&
23766        $as_test_x conftest$ac_exeext; then
23767   gt_cv_func_gnugettext1_libintl=yes
23768 else
23769   echo "$as_me: failed program was:" >&5
23770 sed 's/^/| /' conftest.$ac_ext >&5
23771
23772         gt_cv_func_gnugettext1_libintl=no
23773 fi
23774
23775 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23776       conftest$ac_exeext conftest.$ac_ext
23777                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
23778               LIBS="$LIBS $LIBICONV"
23779               cat >conftest.$ac_ext <<_ACEOF
23780 /* confdefs.h.  */
23781 _ACEOF
23782 cat confdefs.h >>conftest.$ac_ext
23783 cat >>conftest.$ac_ext <<_ACEOF
23784 /* end confdefs.h.  */
23785 #include <libintl.h>
23786 extern int _nl_msg_cat_cntr;
23787 extern
23788 #ifdef __cplusplus
23789 "C"
23790 #endif
23791 const char *_nl_expand_alias (const char *);
23792 int
23793 main ()
23794 {
23795 bindtextdomain ("", "");
23796 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
23797   ;
23798   return 0;
23799 }
23800 _ACEOF
23801 rm -f conftest.$ac_objext conftest$ac_exeext
23802 if { (ac_try="$ac_link"
23803 case "(($ac_try" in
23804   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23805   *) ac_try_echo=$ac_try;;
23806 esac
23807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23808   (eval "$ac_link") 2>conftest.er1
23809   ac_status=$?
23810   grep -v '^ *+' conftest.er1 >conftest.err
23811   rm -f conftest.er1
23812   cat conftest.err >&5
23813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23814   (exit $ac_status); } && {
23815          test -z "$ac_c_werror_flag" ||
23816          test ! -s conftest.err
23817        } && test -s conftest$ac_exeext &&
23818        $as_test_x conftest$ac_exeext; then
23819   LIBINTL="$LIBINTL $LIBICONV"
23820                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
23821                 gt_cv_func_gnugettext1_libintl=yes
23822
23823 else
23824   echo "$as_me: failed program was:" >&5
23825 sed 's/^/| /' conftest.$ac_ext >&5
23826
23827
23828 fi
23829
23830 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23831       conftest$ac_exeext conftest.$ac_ext
23832             fi
23833             CPPFLAGS="$gt_save_CPPFLAGS"
23834             LIBS="$gt_save_LIBS"
23835 fi
23836 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
23837 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
23838         fi
23839
23840                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
23841            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
23842                 && test "$PACKAGE" != gettext-runtime \
23843                 && test "$PACKAGE" != gettext-tools; }; then
23844           gt_use_preinstalled_gnugettext=yes
23845         else
23846                     LIBINTL=
23847           LTLIBINTL=
23848           INCINTL=
23849         fi
23850
23851
23852         if test "$gt_use_preinstalled_gnugettext" != "yes"; then
23853                               nls_cv_use_gnu_gettext=yes
23854         fi
23855       fi
23856
23857       if test "$nls_cv_use_gnu_gettext" = "yes"; then
23858                 BUILD_INCLUDED_LIBINTL=yes
23859         USE_INCLUDED_LIBINTL=yes
23860         LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
23861         LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
23862         LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
23863       fi
23864
23865       CATOBJEXT=
23866       if test "$gt_use_preinstalled_gnugettext" = "yes" \
23867          || test "$nls_cv_use_gnu_gettext" = "yes"; then
23868                 CATOBJEXT=.gmo
23869       fi
23870
23871
23872     if test -n "$INTL_MACOSX_LIBS"; then
23873       if test "$gt_use_preinstalled_gnugettext" = "yes" \
23874          || test "$nls_cv_use_gnu_gettext" = "yes"; then
23875                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
23876         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
23877       fi
23878     fi
23879
23880     if test "$gt_use_preinstalled_gnugettext" = "yes" \
23881        || test "$nls_cv_use_gnu_gettext" = "yes"; then
23882
23883 cat >>confdefs.h <<\_ACEOF
23884 #define ENABLE_NLS 1
23885 _ACEOF
23886
23887     else
23888       USE_NLS=no
23889     fi
23890   fi
23891
23892   { echo "$as_me:$LINENO: checking whether to use NLS" >&5
23893 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
23894   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
23895 echo "${ECHO_T}$USE_NLS" >&6; }
23896   if test "$USE_NLS" = "yes"; then
23897     { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
23898 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
23899     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
23900       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
23901         gt_source="external libintl"
23902       else
23903         gt_source="libc"
23904       fi
23905     else
23906       gt_source="included intl directory"
23907     fi
23908     { echo "$as_me:$LINENO: result: $gt_source" >&5
23909 echo "${ECHO_T}$gt_source" >&6; }
23910   fi
23911
23912   if test "$USE_NLS" = "yes"; then
23913
23914     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
23915       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
23916         { echo "$as_me:$LINENO: checking how to link with libintl" >&5
23917 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
23918         { echo "$as_me:$LINENO: result: $LIBINTL" >&5
23919 echo "${ECHO_T}$LIBINTL" >&6; }
23920
23921   for element in $INCINTL; do
23922     haveit=
23923     for x in $CPPFLAGS; do
23924
23925   acl_save_prefix="$prefix"
23926   prefix="$acl_final_prefix"
23927   acl_save_exec_prefix="$exec_prefix"
23928   exec_prefix="$acl_final_exec_prefix"
23929   eval x=\"$x\"
23930   exec_prefix="$acl_save_exec_prefix"
23931   prefix="$acl_save_prefix"
23932
23933       if test "X$x" = "X$element"; then
23934         haveit=yes
23935         break
23936       fi
23937     done
23938     if test -z "$haveit"; then
23939       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
23940     fi
23941   done
23942
23943       fi
23944
23945
23946 cat >>confdefs.h <<\_ACEOF
23947 #define HAVE_GETTEXT 1
23948 _ACEOF
23949
23950
23951 cat >>confdefs.h <<\_ACEOF
23952 #define HAVE_DCGETTEXT 1
23953 _ACEOF
23954
23955     fi
23956
23957         POSUB=po
23958   fi
23959
23960
23961             if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
23962       BUILD_INCLUDED_LIBINTL=yes
23963     fi
23964
23965
23966
23967
23968
23969         nls_cv_header_intl=
23970     nls_cv_header_libgt=
23971
23972         DATADIRNAME=share
23973
23974
23975         INSTOBJEXT=.mo
23976
23977
23978         GENCAT=gencat
23979
23980
23981         INTLOBJS=
23982     if test "$USE_INCLUDED_LIBINTL" = yes; then
23983       INTLOBJS="\$(GETTOBJS)"
23984     fi
23985
23986
23987         INTL_LIBTOOL_SUFFIX_PREFIX=
23988
23989
23990
23991     INTLLIBS="$LIBINTL"
23992
23993
23994
23995
23996
23997
23998 fi
23999
24000 support_mysql=no
24001 support_sqlite=no
24002 support_sqlite3=no
24003 support_postgresql=no
24004 support_dbi=no
24005 support_smartalloc=yes
24006 support_readline=yes
24007 support_conio=yes
24008 support_gnome=no
24009 support_bat=no
24010 support_wx_console=no
24011 support_tray_monitor=no
24012 support_tls=no
24013 support_crypto=no
24014 gnome_version=
24015 wx_version=
24016 support_static_tools=no
24017 support_static_fd=no
24018 support_static_sd=no
24019 support_static_dir=no
24020 support_static_cons=no
24021 support_python=no
24022 build_client_only=no
24023 build_dird=yes
24024 build_stored=yes
24025 cats=
24026 db_type=Internal
24027 support_lockmgr=no
24028 DB_TYPE=bdb
24029
24030
24031 # Check whether --enable-gnome was given.
24032 if test "${enable_gnome+set}" = set; then
24033   enableval=$enable_gnome;
24034        if test x$enableval = xyes; then
24035           support_gnome=yes
24036        fi
24037
24038
24039 fi
24040
24041
24042 GNOME_DIR=
24043 if test x$support_gnome = xyes; then
24044    abc=`$PKGCONFIG --exists libgnomeui-2.0`
24045    pkg=$?
24046    if test $pkg = 0; then
24047       GNOME_INCLUDEDIR=`$PKGCONFIG --cflags-only-I libgnomeui-2.0`
24048       GNOMEUI_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
24049       GNOME_LIBDIR=`$PKGCONFIG --libs libgnomeui-2.0`
24050       GNOME_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
24051
24052
24053
24054
24055       GNOME_DIR=src/gnome2-console
24056       gnome_version="Version 2.x"
24057    else
24058       { { echo "$as_me:$LINENO: error: Unable to find Gnome 2 installation" >&5
24059 echo "$as_me: error: Unable to find Gnome 2 installation" >&2;}
24060    { (exit 1); exit 1; }; }
24061    fi
24062 fi
24063
24064
24065 # Check whether --enable-bat was given.
24066 if test "${enable_bat+set}" = set; then
24067   enableval=$enable_bat;
24068        if test x$enableval = xyes; then
24069
24070 cat >>confdefs.h <<\_ACEOF
24071 #define HAVE_BAT 1
24072 _ACEOF
24073
24074           support_bat=yes
24075        fi
24076
24077
24078 fi
24079
24080
24081 BAT_DIR=
24082 if test x$support_bat = xyes; then
24083    abc=`$PKGCONFIG --atleast-version=4.2 QtGui`
24084    pkg=$?
24085    if test $pkg = 0; then
24086       BAT_DIR=src/qt-console
24087    else
24088       { { echo "$as_me:$LINENO: error: Unable to find Qt4 installation needed by bat" >&5
24089 echo "$as_me: error: Unable to find Qt4 installation needed by bat" >&2;}
24090    { (exit 1); exit 1; }; }
24091    fi
24092 fi
24093
24094 got_qwt=no
24095 QWT_INC=
24096 QWT_LDFLAGS=
24097 QWT_LIB=
24098 QWT=
24099 no_qwt=no
24100 if test x$support_bat = xyes; then
24101    { echo "$as_me:$LINENO: checking for qwt support" >&5
24102 echo $ECHO_N "checking for qwt support... $ECHO_C" >&6; }
24103
24104 # Check whether --with-qwt was given.
24105 if test "${with_qwt+set}" = set; then
24106   withval=$with_qwt;
24107           case "$with_qwt" in
24108           no)
24109              no_qwt=yes
24110              ;;
24111           yes|*)
24112              if test -f ${with_qwt}/include/qwt.h; then
24113                 QWT_INC="${with_qwt}/include"
24114                 QWT_LDFLAGS="-L${with_qwt}/lib"
24115                 QWT_LIB="-lqwt"
24116                 QWT="qwt"
24117              fi
24118              ;;
24119           esac
24120
24121
24122 fi
24123
24124
24125             if test $no_qwt = no; then
24126       if test x$QWT_INC = x; then
24127          for root in /usr /usr/local; do
24128             for ver in qwt qwt5 qwt-qt4; do
24129                if test -f ${root}/include/${ver}/qwt.h; then
24130                   QWT_INC="${root}/include/${ver}"
24131                   if test -d ${root}/lib64/; then
24132                      QWT_LDFLAGS="-L${root}/lib64"
24133                   elif test -d ${root}/lib/64/; then
24134                      QWT_LDFLAGS="-L${root}/64"
24135                   else
24136                      QWT_LDFLAGS="-L${root}/lib"
24137                   fi
24138                   QWT_LIB="-lqwt"
24139                   QWT="qwt"
24140                   got_qwt=yes
24141                   break;
24142                fi
24143             done
24144          done
24145       fi
24146    fi
24147    if test x$QWT_INC = x; then
24148       { echo "$as_me:$LINENO: result: no" >&5
24149 echo "${ECHO_T}no" >&6; }
24150    else
24151
24152 cat >>confdefs.h <<\_ACEOF
24153 #define HAVE_QWT 1
24154 _ACEOF
24155
24156       { echo "$as_me:$LINENO: result: yes" >&5
24157 echo "${ECHO_T}yes" >&6; }
24158    fi
24159 fi
24160
24161
24162
24163
24164
24165
24166
24167 # Check whether --enable-bwx-console was given.
24168 if test "${enable_bwx_console+set}" = set; then
24169   enableval=$enable_bwx_console;
24170        if test x$enableval = xyes; then
24171           support_wx_console=yes
24172        fi
24173
24174
24175 fi
24176
24177
24178 WX_DIR=
24179 if test x$support_wx_console = xyes; then
24180    abc=`$WXCONFIG $WXFLAGS --cppflags`
24181    pkg=$?
24182    if test $pkg = 0; then
24183       wx_version="wxWidgets `$WXCONFIG $WXFLAGS --release`"
24184       WXCONS_CPPFLAGS=`$WXCONFIG $WXFLAGS --cppflags`
24185       WXCONS_LDFLAGS=`$WXCONFIG $WXFLAGS --libs`
24186
24187
24188
24189       WX_DIR="src/wx-console"
24190    else
24191       echo " "
24192       echo "wx-config program not found. bwx-console disabled."
24193       echo " "
24194       support_wx_console=no
24195    fi
24196 fi
24197
24198
24199 # Check whether --enable-tray-monitor was given.
24200 if test "${enable_tray_monitor+set}" = set; then
24201   enableval=$enable_tray_monitor;
24202        if test x$enableval = xyes; then
24203           support_tray_monitor=yes
24204        fi
24205
24206
24207 fi
24208
24209
24210 TRAY_MONITOR_DIR=
24211 if test x$support_tray_monitor = xyes; then
24212    abc=`$PKGCONFIG --exists gtk+-2.0`
24213    pkg=$?
24214    if test $pkg = 0; then
24215       TRAY_MONITOR_CPPFLAGS=`$PKGCONFIG --cflags gtk+-2.0`
24216       TRAY_MONITOR_LDFLAGS=`$PKGCONFIG --libs gtk+-2.0`
24217
24218
24219       TRAY_MONITOR_DIR=src/tray-monitor
24220       abc=`$PKGCONFIG --atleast-version=2.4 gtk+-2.0`
24221       pkg=$?
24222       if test $pkg = 0; then
24223
24224 cat >>confdefs.h <<\_ACEOF
24225 #define HAVE_GTK_2_4 1
24226 _ACEOF
24227
24228       fi
24229    fi
24230 fi
24231
24232
24233 # Check whether --enable-smartalloc was given.
24234 if test "${enable_smartalloc+set}" = set; then
24235   enableval=$enable_smartalloc;
24236        if test x$enableval = xno; then
24237           support_smartalloc=no
24238        fi
24239
24240
24241 fi
24242
24243
24244 if test x$support_smartalloc = xyes; then
24245
24246 cat >>confdefs.h <<\_ACEOF
24247 #define SMARTALLOC 1
24248 _ACEOF
24249
24250 fi
24251
24252 # Check whether --enable-lockmgr was given.
24253 if test "${enable_lockmgr+set}" = set; then
24254   enableval=$enable_lockmgr;
24255        if test x$enableval = xyes; then
24256           support_lockmgr=yes
24257        fi
24258
24259
24260 fi
24261
24262
24263 if test x$support_lockmgr = xyes; then
24264
24265 cat >>confdefs.h <<\_ACEOF
24266 #define _USE_LOCKMGR 1
24267 _ACEOF
24268
24269 fi
24270
24271
24272 # Check whether --enable-static-tools was given.
24273 if test "${enable_static_tools+set}" = set; then
24274   enableval=$enable_static_tools;
24275        if test x$enableval = xyes; then
24276           if test x$use_libtool = xyes; then
24277              echo "Libtool is enabled, not compatible with static tools, please rerun configure with --disable-libtool"
24278              exit 1
24279           fi
24280           support_static_tools=yes
24281        fi
24282
24283
24284 fi
24285
24286
24287 TTOOL_LDFLAGS=
24288 if test x$support_static_tools = xyes; then
24289    TTOOL_LDFLAGS="-static"
24290 fi
24291
24292
24293 # Check whether --enable-static-fd was given.
24294 if test "${enable_static_fd+set}" = set; then
24295   enableval=$enable_static_fd;
24296        if test x$enableval = xyes; then
24297           if test x$use_libtool = xyes; then
24298              echo "Libtool is enabled, not compatible with static tools, please rerun configure with --disable-libtool"
24299              exit 1
24300           fi
24301           support_static_fd=yes
24302        fi
24303
24304
24305 fi
24306
24307
24308 STATIC_FD=
24309 if test x$support_static_fd = xyes; then
24310    STATIC_FD="static-bacula-fd"
24311 fi
24312
24313
24314 # Check whether --enable-static-sd was given.
24315 if test "${enable_static_sd+set}" = set; then
24316   enableval=$enable_static_sd;
24317        if test x$enableval = xyes; then
24318           if test x$use_libtool = xyes; then
24319              echo "Libtool is enabled, not compatible with static tools, please rerun configure with --disable-libtool"
24320              exit 1
24321           fi
24322           support_static_sd=yes
24323        fi
24324
24325
24326 fi
24327
24328
24329 STATIC_SD=
24330 if test x$support_static_sd = xyes; then
24331    STATIC_SD="static-bacula-sd"
24332 fi
24333
24334
24335 # Check whether --enable-static-dir was given.
24336 if test "${enable_static_dir+set}" = set; then
24337   enableval=$enable_static_dir;
24338        if test x$enableval = xyes; then
24339           if test x$use_libtool = xyes; then
24340              echo "Libtool is enabled, not compatible with static tools, please rerun configure with --disable-libtool"
24341              exit 1
24342           fi
24343           support_static_dir=yes
24344        fi
24345
24346
24347 fi
24348
24349
24350 STATIC_DIR=
24351 if test x$support_static_dir = xyes; then
24352    STATIC_DIR="static-bacula-dir"
24353 fi
24354
24355
24356 # Check whether --enable-static-cons was given.
24357 if test "${enable_static_cons+set}" = set; then
24358   enableval=$enable_static_cons;
24359        if test x$enableval = xyes; then
24360           if test x$use_libtool = xyes; then
24361              echo "Libtool is enabled, not compatible with static tools, please rerun configure with --disable-libtool"
24362              exit 1
24363           fi
24364           support_static_cons=yes
24365        fi
24366
24367
24368 fi
24369
24370
24371 STATIC_CONS=
24372 STATIC_GNOME_CONS=
24373 STATIC_WX_CONS=
24374 if test x$support_static_cons = xyes; then
24375    STATIC_CONS="static-bconsole"
24376    STATIC_GNOME_CONS="static-bgnome-console"
24377    STATIC_WX_CONS="static-bwx-console"
24378 fi
24379
24380
24381
24382
24383 # Check whether --enable-client-only was given.
24384 if test "${enable_client_only+set}" = set; then
24385   enableval=$enable_client_only;
24386        if test x$enableval = xyes; then
24387           build_client_only=yes
24388           db_type=None
24389           DB_TYPE=none
24390        fi
24391
24392
24393 fi
24394
24395 if test x$build_client_only = xno; then
24396    ALL_DIRS="subdirs"
24397 else
24398    ALL_DIRS=""
24399 fi
24400
24401
24402 # Check whether --enable-build-dird was given.
24403 if test "${enable_build_dird+set}" = set; then
24404   enableval=$enable_build_dird;
24405        if test x$enableval = xno; then
24406           build_dird=no
24407        fi
24408
24409
24410 fi
24411
24412 if test x$build_dird = xyes; then
24413    DIRD_DIR="src/dird"
24414    DIR_TOOLS="DIRTOOLS"
24415 else
24416    DIRD_DIR=""
24417    DIR_TOOLS="NODIRTOOLS"
24418 fi
24419
24420
24421
24422 # Check whether --enable-build-stored was given.
24423 if test "${enable_build_stored+set}" = set; then
24424   enableval=$enable_build_stored;
24425       if test x$enableval = xno; then
24426          build_stored=no
24427       fi
24428
24429
24430 fi
24431
24432 if test x$build_stored = xyes; then
24433    STORED_DIR="src/stored"
24434 else
24435    STORED_DIR=""
24436 fi
24437
24438
24439 # Check whether --enable-conio was given.
24440 if test "${enable_conio+set}" = set; then
24441   enableval=$enable_conio;
24442        if test x$enableval = xno; then
24443           support_conio=no
24444        fi
24445
24446
24447 fi
24448
24449
24450
24451 support_ipv6=yes
24452 # Check whether --enable-ipv6 was given.
24453 if test "${enable_ipv6+set}" = set; then
24454   enableval=$enable_ipv6;
24455        if test x$enableval = xno; then
24456           support_ipv6=no
24457        fi
24458
24459
24460 fi
24461
24462
24463 if test x$support_ipv6 = xyes; then
24464     cat >conftest.$ac_ext <<_ACEOF
24465 /* confdefs.h.  */
24466 _ACEOF
24467 cat confdefs.h >>conftest.$ac_ext
24468 cat >>conftest.$ac_ext <<_ACEOF
24469 /* end confdefs.h.  */
24470  #include <sys/types.h>
24471 #include <sys/socket.h>
24472 #include <netinet/in.h>
24473 int
24474 main ()
24475 {
24476 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] = 0;
24477   ;
24478   return 0;
24479 }
24480 _ACEOF
24481 rm -f conftest.$ac_objext conftest$ac_exeext
24482 if { (ac_try="$ac_link"
24483 case "(($ac_try" in
24484   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24485   *) ac_try_echo=$ac_try;;
24486 esac
24487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24488   (eval "$ac_link") 2>conftest.er1
24489   ac_status=$?
24490   grep -v '^ *+' conftest.er1 >conftest.err
24491   rm -f conftest.er1
24492   cat conftest.err >&5
24493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24494   (exit $ac_status); } && {
24495          test -z "$ac_c_werror_flag" ||
24496          test ! -s conftest.err
24497        } && test -s conftest$ac_exeext &&
24498        $as_test_x conftest$ac_exeext; then
24499   support_ipv6=yes
24500 else
24501   echo "$as_me: failed program was:" >&5
24502 sed 's/^/| /' conftest.$ac_ext >&5
24503
24504         support_ipv6=no
24505 fi
24506
24507 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24508       conftest$ac_exeext conftest.$ac_ext
24509 fi
24510
24511 if test x$support_ipv6 = xyes; then
24512
24513 cat >>confdefs.h <<\_ACEOF
24514 #define HAVE_IPV6 1
24515 _ACEOF
24516
24517 fi
24518
24519 got_conio="no"
24520 if test x$support_conio = xyes; then
24521    if test "${ac_cv_header_termcap_h+set}" = set; then
24522   { echo "$as_me:$LINENO: checking for termcap.h" >&5
24523 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6; }
24524 if test "${ac_cv_header_termcap_h+set}" = set; then
24525   echo $ECHO_N "(cached) $ECHO_C" >&6
24526 fi
24527 { echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
24528 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6; }
24529 else
24530   # Is the header compilable?
24531 { echo "$as_me:$LINENO: checking termcap.h usability" >&5
24532 echo $ECHO_N "checking termcap.h usability... $ECHO_C" >&6; }
24533 cat >conftest.$ac_ext <<_ACEOF
24534 /* confdefs.h.  */
24535 _ACEOF
24536 cat confdefs.h >>conftest.$ac_ext
24537 cat >>conftest.$ac_ext <<_ACEOF
24538 /* end confdefs.h.  */
24539 $ac_includes_default
24540 #include <termcap.h>
24541 _ACEOF
24542 rm -f conftest.$ac_objext
24543 if { (ac_try="$ac_compile"
24544 case "(($ac_try" in
24545   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24546   *) ac_try_echo=$ac_try;;
24547 esac
24548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24549   (eval "$ac_compile") 2>conftest.er1
24550   ac_status=$?
24551   grep -v '^ *+' conftest.er1 >conftest.err
24552   rm -f conftest.er1
24553   cat conftest.err >&5
24554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24555   (exit $ac_status); } && {
24556          test -z "$ac_c_werror_flag" ||
24557          test ! -s conftest.err
24558        } && test -s conftest.$ac_objext; then
24559   ac_header_compiler=yes
24560 else
24561   echo "$as_me: failed program was:" >&5
24562 sed 's/^/| /' conftest.$ac_ext >&5
24563
24564         ac_header_compiler=no
24565 fi
24566
24567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24568 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24569 echo "${ECHO_T}$ac_header_compiler" >&6; }
24570
24571 # Is the header present?
24572 { echo "$as_me:$LINENO: checking termcap.h presence" >&5
24573 echo $ECHO_N "checking termcap.h presence... $ECHO_C" >&6; }
24574 cat >conftest.$ac_ext <<_ACEOF
24575 /* confdefs.h.  */
24576 _ACEOF
24577 cat confdefs.h >>conftest.$ac_ext
24578 cat >>conftest.$ac_ext <<_ACEOF
24579 /* end confdefs.h.  */
24580 #include <termcap.h>
24581 _ACEOF
24582 if { (ac_try="$ac_cpp conftest.$ac_ext"
24583 case "(($ac_try" in
24584   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24585   *) ac_try_echo=$ac_try;;
24586 esac
24587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24588   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24589   ac_status=$?
24590   grep -v '^ *+' conftest.er1 >conftest.err
24591   rm -f conftest.er1
24592   cat conftest.err >&5
24593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24594   (exit $ac_status); } >/dev/null && {
24595          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24596          test ! -s conftest.err
24597        }; then
24598   ac_header_preproc=yes
24599 else
24600   echo "$as_me: failed program was:" >&5
24601 sed 's/^/| /' conftest.$ac_ext >&5
24602
24603   ac_header_preproc=no
24604 fi
24605
24606 rm -f conftest.err conftest.$ac_ext
24607 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24608 echo "${ECHO_T}$ac_header_preproc" >&6; }
24609
24610 # So?  What about this header?
24611 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24612   yes:no: )
24613     { echo "$as_me:$LINENO: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&5
24614 echo "$as_me: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24615     { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the compiler's result" >&5
24616 echo "$as_me: WARNING: termcap.h: proceeding with the compiler's result" >&2;}
24617     ac_header_preproc=yes
24618     ;;
24619   no:yes:* )
24620     { echo "$as_me:$LINENO: WARNING: termcap.h: present but cannot be compiled" >&5
24621 echo "$as_me: WARNING: termcap.h: present but cannot be compiled" >&2;}
24622     { echo "$as_me:$LINENO: WARNING: termcap.h:     check for missing prerequisite headers?" >&5
24623 echo "$as_me: WARNING: termcap.h:     check for missing prerequisite headers?" >&2;}
24624     { echo "$as_me:$LINENO: WARNING: termcap.h: see the Autoconf documentation" >&5
24625 echo "$as_me: WARNING: termcap.h: see the Autoconf documentation" >&2;}
24626     { echo "$as_me:$LINENO: WARNING: termcap.h:     section \"Present But Cannot Be Compiled\"" >&5
24627 echo "$as_me: WARNING: termcap.h:     section \"Present But Cannot Be Compiled\"" >&2;}
24628     { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the preprocessor's result" >&5
24629 echo "$as_me: WARNING: termcap.h: proceeding with the preprocessor's result" >&2;}
24630     { echo "$as_me:$LINENO: WARNING: termcap.h: in the future, the compiler will take precedence" >&5
24631 echo "$as_me: WARNING: termcap.h: in the future, the compiler will take precedence" >&2;}
24632
24633     ;;
24634 esac
24635 { echo "$as_me:$LINENO: checking for termcap.h" >&5
24636 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6; }
24637 if test "${ac_cv_header_termcap_h+set}" = set; then
24638   echo $ECHO_N "(cached) $ECHO_C" >&6
24639 else
24640   ac_cv_header_termcap_h=$ac_header_preproc
24641 fi
24642 { echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
24643 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6; }
24644
24645 fi
24646 if test $ac_cv_header_termcap_h = yes; then
24647    { echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
24648 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6; }
24649 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
24650   echo $ECHO_N "(cached) $ECHO_C" >&6
24651 else
24652   ac_check_lib_save_LIBS=$LIBS
24653 LIBS="-ltermcap  $LIBS"
24654 cat >conftest.$ac_ext <<_ACEOF
24655 /* confdefs.h.  */
24656 _ACEOF
24657 cat confdefs.h >>conftest.$ac_ext
24658 cat >>conftest.$ac_ext <<_ACEOF
24659 /* end confdefs.h.  */
24660
24661 /* Override any GCC internal prototype to avoid an error.
24662    Use char because int might match the return type of a GCC
24663    builtin and then its argument prototype would still apply.  */
24664 #ifdef __cplusplus
24665 extern "C"
24666 #endif
24667 char tgetent ();
24668 int
24669 main ()
24670 {
24671 return tgetent ();
24672   ;
24673   return 0;
24674 }
24675 _ACEOF
24676 rm -f conftest.$ac_objext conftest$ac_exeext
24677 if { (ac_try="$ac_link"
24678 case "(($ac_try" in
24679   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24680   *) ac_try_echo=$ac_try;;
24681 esac
24682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24683   (eval "$ac_link") 2>conftest.er1
24684   ac_status=$?
24685   grep -v '^ *+' conftest.er1 >conftest.err
24686   rm -f conftest.er1
24687   cat conftest.err >&5
24688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24689   (exit $ac_status); } && {
24690          test -z "$ac_c_werror_flag" ||
24691          test ! -s conftest.err
24692        } && test -s conftest$ac_exeext &&
24693        $as_test_x conftest$ac_exeext; then
24694   ac_cv_lib_termcap_tgetent=yes
24695 else
24696   echo "$as_me: failed program was:" >&5
24697 sed 's/^/| /' conftest.$ac_ext >&5
24698
24699         ac_cv_lib_termcap_tgetent=no
24700 fi
24701
24702 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24703       conftest$ac_exeext conftest.$ac_ext
24704 LIBS=$ac_check_lib_save_LIBS
24705 fi
24706 { echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
24707 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6; }
24708 if test $ac_cv_lib_termcap_tgetent = yes; then
24709    CONS_LIBS="-ltermcap"
24710     CONS_OBJ="conio.o"
24711     CONS_SRC="conio.c"
24712     got_conio="yes"
24713     support_readline=no
24714
24715 cat >>confdefs.h <<\_ACEOF
24716 #define HAVE_CONIO 1
24717 _ACEOF
24718
24719
24720 else
24721    { echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
24722 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6; }
24723 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
24724   echo $ECHO_N "(cached) $ECHO_C" >&6
24725 else
24726   ac_check_lib_save_LIBS=$LIBS
24727 LIBS="-lncurses  $LIBS"
24728 cat >conftest.$ac_ext <<_ACEOF
24729 /* confdefs.h.  */
24730 _ACEOF
24731 cat confdefs.h >>conftest.$ac_ext
24732 cat >>conftest.$ac_ext <<_ACEOF
24733 /* end confdefs.h.  */
24734
24735 /* Override any GCC internal prototype to avoid an error.
24736    Use char because int might match the return type of a GCC
24737    builtin and then its argument prototype would still apply.  */
24738 #ifdef __cplusplus
24739 extern "C"
24740 #endif
24741 char tgetent ();
24742 int
24743 main ()
24744 {
24745 return tgetent ();
24746   ;
24747   return 0;
24748 }
24749 _ACEOF
24750 rm -f conftest.$ac_objext conftest$ac_exeext
24751 if { (ac_try="$ac_link"
24752 case "(($ac_try" in
24753   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24754   *) ac_try_echo=$ac_try;;
24755 esac
24756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24757   (eval "$ac_link") 2>conftest.er1
24758   ac_status=$?
24759   grep -v '^ *+' conftest.er1 >conftest.err
24760   rm -f conftest.er1
24761   cat conftest.err >&5
24762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24763   (exit $ac_status); } && {
24764          test -z "$ac_c_werror_flag" ||
24765          test ! -s conftest.err
24766        } && test -s conftest$ac_exeext &&
24767        $as_test_x conftest$ac_exeext; then
24768   ac_cv_lib_ncurses_tgetent=yes
24769 else
24770   echo "$as_me: failed program was:" >&5
24771 sed 's/^/| /' conftest.$ac_ext >&5
24772
24773         ac_cv_lib_ncurses_tgetent=no
24774 fi
24775
24776 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24777       conftest$ac_exeext conftest.$ac_ext
24778 LIBS=$ac_check_lib_save_LIBS
24779 fi
24780 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
24781 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6; }
24782 if test $ac_cv_lib_ncurses_tgetent = yes; then
24783    CONS_LIBS="-lncurses"
24784       CONS_OBJ="conio.o"
24785       CONS_SRC="conio.c"
24786       got_conio="yes"
24787       support_readline=no
24788
24789 cat >>confdefs.h <<\_ACEOF
24790 #define HAVE_CONIO 1
24791 _ACEOF
24792
24793
24794 fi
24795
24796
24797 fi
24798
24799
24800 else
24801
24802
24803 for ac_header in curses.h
24804 do
24805 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24806 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24807   { echo "$as_me:$LINENO: checking for $ac_header" >&5
24808 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24809 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24810   echo $ECHO_N "(cached) $ECHO_C" >&6
24811 fi
24812 ac_res=`eval echo '${'$as_ac_Header'}'`
24813                { echo "$as_me:$LINENO: result: $ac_res" >&5
24814 echo "${ECHO_T}$ac_res" >&6; }
24815 else
24816   # Is the header compilable?
24817 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
24818 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
24819 cat >conftest.$ac_ext <<_ACEOF
24820 /* confdefs.h.  */
24821 _ACEOF
24822 cat confdefs.h >>conftest.$ac_ext
24823 cat >>conftest.$ac_ext <<_ACEOF
24824 /* end confdefs.h.  */
24825 $ac_includes_default
24826 #include <$ac_header>
24827 _ACEOF
24828 rm -f conftest.$ac_objext
24829 if { (ac_try="$ac_compile"
24830 case "(($ac_try" in
24831   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24832   *) ac_try_echo=$ac_try;;
24833 esac
24834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24835   (eval "$ac_compile") 2>conftest.er1
24836   ac_status=$?
24837   grep -v '^ *+' conftest.er1 >conftest.err
24838   rm -f conftest.er1
24839   cat conftest.err >&5
24840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24841   (exit $ac_status); } && {
24842          test -z "$ac_c_werror_flag" ||
24843          test ! -s conftest.err
24844        } && test -s conftest.$ac_objext; then
24845   ac_header_compiler=yes
24846 else
24847   echo "$as_me: failed program was:" >&5
24848 sed 's/^/| /' conftest.$ac_ext >&5
24849
24850         ac_header_compiler=no
24851 fi
24852
24853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24854 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24855 echo "${ECHO_T}$ac_header_compiler" >&6; }
24856
24857 # Is the header present?
24858 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
24859 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
24860 cat >conftest.$ac_ext <<_ACEOF
24861 /* confdefs.h.  */
24862 _ACEOF
24863 cat confdefs.h >>conftest.$ac_ext
24864 cat >>conftest.$ac_ext <<_ACEOF
24865 /* end confdefs.h.  */
24866 #include <$ac_header>
24867 _ACEOF
24868 if { (ac_try="$ac_cpp conftest.$ac_ext"
24869 case "(($ac_try" in
24870   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24871   *) ac_try_echo=$ac_try;;
24872 esac
24873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24874   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24875   ac_status=$?
24876   grep -v '^ *+' conftest.er1 >conftest.err
24877   rm -f conftest.er1
24878   cat conftest.err >&5
24879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24880   (exit $ac_status); } >/dev/null && {
24881          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24882          test ! -s conftest.err
24883        }; then
24884   ac_header_preproc=yes
24885 else
24886   echo "$as_me: failed program was:" >&5
24887 sed 's/^/| /' conftest.$ac_ext >&5
24888
24889   ac_header_preproc=no
24890 fi
24891
24892 rm -f conftest.err conftest.$ac_ext
24893 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24894 echo "${ECHO_T}$ac_header_preproc" >&6; }
24895
24896 # So?  What about this header?
24897 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24898   yes:no: )
24899     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24900 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24901     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24902 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24903     ac_header_preproc=yes
24904     ;;
24905   no:yes:* )
24906     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24907 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24908     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
24909 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
24910     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24911 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24912     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
24913 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
24914     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24915 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24916     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24917 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24918
24919     ;;
24920 esac
24921 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24922 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24923 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24924   echo $ECHO_N "(cached) $ECHO_C" >&6
24925 else
24926   eval "$as_ac_Header=\$ac_header_preproc"
24927 fi
24928 ac_res=`eval echo '${'$as_ac_Header'}'`
24929                { echo "$as_me:$LINENO: result: $ac_res" >&5
24930 echo "${ECHO_T}$ac_res" >&6; }
24931
24932 fi
24933 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24934   cat >>confdefs.h <<_ACEOF
24935 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24936 _ACEOF
24937
24938 fi
24939
24940 done
24941
24942     { echo "$as_me:$LINENO: checking for term.h" >&5
24943 echo $ECHO_N "checking for term.h... $ECHO_C" >&6; }
24944 if test "${ac_cv_header_term_h+set}" = set; then
24945   echo $ECHO_N "(cached) $ECHO_C" >&6
24946 else
24947   cat >conftest.$ac_ext <<_ACEOF
24948 /* confdefs.h.  */
24949 _ACEOF
24950 cat confdefs.h >>conftest.$ac_ext
24951 cat >>conftest.$ac_ext <<_ACEOF
24952 /* end confdefs.h.  */
24953 #if HAVE_CURSES_H
24954 #include <curses.h>
24955 #endif
24956
24957
24958 #include <term.h>
24959 _ACEOF
24960 rm -f conftest.$ac_objext
24961 if { (ac_try="$ac_compile"
24962 case "(($ac_try" in
24963   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24964   *) ac_try_echo=$ac_try;;
24965 esac
24966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24967   (eval "$ac_compile") 2>conftest.er1
24968   ac_status=$?
24969   grep -v '^ *+' conftest.er1 >conftest.err
24970   rm -f conftest.er1
24971   cat conftest.err >&5
24972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24973   (exit $ac_status); } && {
24974          test -z "$ac_c_werror_flag" ||
24975          test ! -s conftest.err
24976        } && test -s conftest.$ac_objext; then
24977   ac_cv_header_term_h=yes
24978 else
24979   echo "$as_me: failed program was:" >&5
24980 sed 's/^/| /' conftest.$ac_ext >&5
24981
24982         ac_cv_header_term_h=no
24983 fi
24984
24985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24986 fi
24987 { echo "$as_me:$LINENO: result: $ac_cv_header_term_h" >&5
24988 echo "${ECHO_T}$ac_cv_header_term_h" >&6; }
24989 if test $ac_cv_header_term_h = yes; then
24990    { echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
24991 echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6; }
24992 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
24993   echo $ECHO_N "(cached) $ECHO_C" >&6
24994 else
24995   ac_check_lib_save_LIBS=$LIBS
24996 LIBS="-lcurses  $LIBS"
24997 cat >conftest.$ac_ext <<_ACEOF
24998 /* confdefs.h.  */
24999 _ACEOF
25000 cat confdefs.h >>conftest.$ac_ext
25001 cat >>conftest.$ac_ext <<_ACEOF
25002 /* end confdefs.h.  */
25003
25004 /* Override any GCC internal prototype to avoid an error.
25005    Use char because int might match the return type of a GCC
25006    builtin and then its argument prototype would still apply.  */
25007 #ifdef __cplusplus
25008 extern "C"
25009 #endif
25010 char tgetent ();
25011 int
25012 main ()
25013 {
25014 return tgetent ();
25015   ;
25016   return 0;
25017 }
25018 _ACEOF
25019 rm -f conftest.$ac_objext conftest$ac_exeext
25020 if { (ac_try="$ac_link"
25021 case "(($ac_try" in
25022   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25023   *) ac_try_echo=$ac_try;;
25024 esac
25025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25026   (eval "$ac_link") 2>conftest.er1
25027   ac_status=$?
25028   grep -v '^ *+' conftest.er1 >conftest.err
25029   rm -f conftest.er1
25030   cat conftest.err >&5
25031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25032   (exit $ac_status); } && {
25033          test -z "$ac_c_werror_flag" ||
25034          test ! -s conftest.err
25035        } && test -s conftest$ac_exeext &&
25036        $as_test_x conftest$ac_exeext; then
25037   ac_cv_lib_curses_tgetent=yes
25038 else
25039   echo "$as_me: failed program was:" >&5
25040 sed 's/^/| /' conftest.$ac_ext >&5
25041
25042         ac_cv_lib_curses_tgetent=no
25043 fi
25044
25045 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25046       conftest$ac_exeext conftest.$ac_ext
25047 LIBS=$ac_check_lib_save_LIBS
25048 fi
25049 { echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
25050 echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6; }
25051 if test $ac_cv_lib_curses_tgetent = yes; then
25052    CONS_LIBS="-lcurses"
25053          CONS_OBJ="conio.o"
25054          CONS_SRC="conio.c"
25055          got_conio="yes"
25056          support_readline=no
25057
25058 cat >>confdefs.h <<\_ACEOF
25059 #define HAVE_CONIO 1
25060 _ACEOF
25061
25062
25063 fi
25064
25065
25066 else
25067    echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "
25068 fi
25069
25070
25071
25072 fi
25073
25074
25075 fi
25076
25077
25078 # Check whether --enable-readline was given.
25079 if test "${enable_readline+set}" = set; then
25080   enableval=$enable_readline;
25081        if test x$enableval = xno; then
25082           support_readline=no
25083        fi
25084
25085
25086 fi
25087
25088
25089 got_readline="no"
25090 READLINE_SRC=
25091 if test x$support_readline = xyes; then
25092
25093 # Check whether --with-readline was given.
25094 if test "${with_readline+set}" = set; then
25095   withval=$with_readline;
25096           case "$with_readline" in
25097           no)
25098              :
25099              ;;
25100           yes|*)
25101              if test -f ${with_readline}/readline.h; then
25102                 CONS_INC="-I${with_readline}"
25103                 CONS_LDFLAGS="-L$with_readline"
25104              elif test -f ${with_readline}/include/readline/readline.h; then
25105                 CONS_INC="-I${with_readline}/include/readline"
25106                 CONS_LDFLAGS="-L${with_readline}/lib"
25107                 with_readline="${with_readline}/include/readline"
25108              else
25109                 with_readline="/usr/include/readline"
25110              fi
25111
25112              as_ac_Header=`echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
25113 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25114   { echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
25115 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6; }
25116 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25117   echo $ECHO_N "(cached) $ECHO_C" >&6
25118 fi
25119 ac_res=`eval echo '${'$as_ac_Header'}'`
25120                { echo "$as_me:$LINENO: result: $ac_res" >&5
25121 echo "${ECHO_T}$ac_res" >&6; }
25122 else
25123   # Is the header compilable?
25124 { echo "$as_me:$LINENO: checking ${with_readline}/readline.h usability" >&5
25125 echo $ECHO_N "checking ${with_readline}/readline.h usability... $ECHO_C" >&6; }
25126 cat >conftest.$ac_ext <<_ACEOF
25127 /* confdefs.h.  */
25128 _ACEOF
25129 cat confdefs.h >>conftest.$ac_ext
25130 cat >>conftest.$ac_ext <<_ACEOF
25131 /* end confdefs.h.  */
25132 $ac_includes_default
25133 #include <${with_readline}/readline.h>
25134 _ACEOF
25135 rm -f conftest.$ac_objext
25136 if { (ac_try="$ac_compile"
25137 case "(($ac_try" in
25138   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25139   *) ac_try_echo=$ac_try;;
25140 esac
25141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25142   (eval "$ac_compile") 2>conftest.er1
25143   ac_status=$?
25144   grep -v '^ *+' conftest.er1 >conftest.err
25145   rm -f conftest.er1
25146   cat conftest.err >&5
25147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25148   (exit $ac_status); } && {
25149          test -z "$ac_c_werror_flag" ||
25150          test ! -s conftest.err
25151        } && test -s conftest.$ac_objext; then
25152   ac_header_compiler=yes
25153 else
25154   echo "$as_me: failed program was:" >&5
25155 sed 's/^/| /' conftest.$ac_ext >&5
25156
25157         ac_header_compiler=no
25158 fi
25159
25160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25161 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25162 echo "${ECHO_T}$ac_header_compiler" >&6; }
25163
25164 # Is the header present?
25165 { echo "$as_me:$LINENO: checking ${with_readline}/readline.h presence" >&5
25166 echo $ECHO_N "checking ${with_readline}/readline.h presence... $ECHO_C" >&6; }
25167 cat >conftest.$ac_ext <<_ACEOF
25168 /* confdefs.h.  */
25169 _ACEOF
25170 cat confdefs.h >>conftest.$ac_ext
25171 cat >>conftest.$ac_ext <<_ACEOF
25172 /* end confdefs.h.  */
25173 #include <${with_readline}/readline.h>
25174 _ACEOF
25175 if { (ac_try="$ac_cpp conftest.$ac_ext"
25176 case "(($ac_try" in
25177   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25178   *) ac_try_echo=$ac_try;;
25179 esac
25180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25181   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25182   ac_status=$?
25183   grep -v '^ *+' conftest.er1 >conftest.err
25184   rm -f conftest.er1
25185   cat conftest.err >&5
25186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25187   (exit $ac_status); } >/dev/null && {
25188          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25189          test ! -s conftest.err
25190        }; then
25191   ac_header_preproc=yes
25192 else
25193   echo "$as_me: failed program was:" >&5
25194 sed 's/^/| /' conftest.$ac_ext >&5
25195
25196   ac_header_preproc=no
25197 fi
25198
25199 rm -f conftest.err conftest.$ac_ext
25200 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25201 echo "${ECHO_T}$ac_header_preproc" >&6; }
25202
25203 # So?  What about this header?
25204 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25205   yes:no: )
25206     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
25207 echo "$as_me: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25208     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&5
25209 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&2;}
25210     ac_header_preproc=yes
25211     ;;
25212   no:yes:* )
25213     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&5
25214 echo "$as_me: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&2;}
25215     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h:     check for missing prerequisite headers?" >&5
25216 echo "$as_me: WARNING: ${with_readline}/readline.h:     check for missing prerequisite headers?" >&2;}
25217     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&5
25218 echo "$as_me: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&2;}
25219     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
25220 echo "$as_me: WARNING: ${with_readline}/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
25221     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
25222 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
25223     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&5
25224 echo "$as_me: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&2;}
25225
25226     ;;
25227 esac
25228 { echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
25229 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6; }
25230 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25231   echo $ECHO_N "(cached) $ECHO_C" >&6
25232 else
25233   eval "$as_ac_Header=\$ac_header_preproc"
25234 fi
25235 ac_res=`eval echo '${'$as_ac_Header'}'`
25236                { echo "$as_me:$LINENO: result: $ac_res" >&5
25237 echo "${ECHO_T}$ac_res" >&6; }
25238
25239 fi
25240 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25241
25242
25243 cat >>confdefs.h <<\_ACEOF
25244 #define HAVE_READLINE 1
25245 _ACEOF
25246
25247                     CONS_LIBS="-lreadline -lhistory -ltermcap"
25248                     got_readline="yes"
25249
25250 else
25251
25252                     echo " "
25253                     echo "readline.h not found. readline turned off ..."
25254                     echo " "
25255
25256
25257 fi
25258
25259
25260              ;;
25261           esac
25262
25263 else
25264
25265                  if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
25266   { echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
25267 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6; }
25268 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
25269   echo $ECHO_N "(cached) $ECHO_C" >&6
25270 fi
25271 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
25272 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6; }
25273 else
25274   # Is the header compilable?
25275 { echo "$as_me:$LINENO: checking /usr/include/readline/readline.h usability" >&5
25276 echo $ECHO_N "checking /usr/include/readline/readline.h usability... $ECHO_C" >&6; }
25277 cat >conftest.$ac_ext <<_ACEOF
25278 /* confdefs.h.  */
25279 _ACEOF
25280 cat confdefs.h >>conftest.$ac_ext
25281 cat >>conftest.$ac_ext <<_ACEOF
25282 /* end confdefs.h.  */
25283 $ac_includes_default
25284 #include </usr/include/readline/readline.h>
25285 _ACEOF
25286 rm -f conftest.$ac_objext
25287 if { (ac_try="$ac_compile"
25288 case "(($ac_try" in
25289   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25290   *) ac_try_echo=$ac_try;;
25291 esac
25292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25293   (eval "$ac_compile") 2>conftest.er1
25294   ac_status=$?
25295   grep -v '^ *+' conftest.er1 >conftest.err
25296   rm -f conftest.er1
25297   cat conftest.err >&5
25298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25299   (exit $ac_status); } && {
25300          test -z "$ac_c_werror_flag" ||
25301          test ! -s conftest.err
25302        } && test -s conftest.$ac_objext; then
25303   ac_header_compiler=yes
25304 else
25305   echo "$as_me: failed program was:" >&5
25306 sed 's/^/| /' conftest.$ac_ext >&5
25307
25308         ac_header_compiler=no
25309 fi
25310
25311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25312 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25313 echo "${ECHO_T}$ac_header_compiler" >&6; }
25314
25315 # Is the header present?
25316 { echo "$as_me:$LINENO: checking /usr/include/readline/readline.h presence" >&5
25317 echo $ECHO_N "checking /usr/include/readline/readline.h presence... $ECHO_C" >&6; }
25318 cat >conftest.$ac_ext <<_ACEOF
25319 /* confdefs.h.  */
25320 _ACEOF
25321 cat confdefs.h >>conftest.$ac_ext
25322 cat >>conftest.$ac_ext <<_ACEOF
25323 /* end confdefs.h.  */
25324 #include </usr/include/readline/readline.h>
25325 _ACEOF
25326 if { (ac_try="$ac_cpp conftest.$ac_ext"
25327 case "(($ac_try" in
25328   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25329   *) ac_try_echo=$ac_try;;
25330 esac
25331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25332   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25333   ac_status=$?
25334   grep -v '^ *+' conftest.er1 >conftest.err
25335   rm -f conftest.er1
25336   cat conftest.err >&5
25337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25338   (exit $ac_status); } >/dev/null && {
25339          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25340          test ! -s conftest.err
25341        }; then
25342   ac_header_preproc=yes
25343 else
25344   echo "$as_me: failed program was:" >&5
25345 sed 's/^/| /' conftest.$ac_ext >&5
25346
25347   ac_header_preproc=no
25348 fi
25349
25350 rm -f conftest.err conftest.$ac_ext
25351 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25352 echo "${ECHO_T}$ac_header_preproc" >&6; }
25353
25354 # So?  What about this header?
25355 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25356   yes:no: )
25357     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
25358 echo "$as_me: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25359     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&5
25360 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&2;}
25361     ac_header_preproc=yes
25362     ;;
25363   no:yes:* )
25364     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&5
25365 echo "$as_me: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&2;}
25366     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h:     check for missing prerequisite headers?" >&5
25367 echo "$as_me: WARNING: /usr/include/readline/readline.h:     check for missing prerequisite headers?" >&2;}
25368     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&5
25369 echo "$as_me: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&2;}
25370     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
25371 echo "$as_me: WARNING: /usr/include/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
25372     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
25373 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
25374     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&5
25375 echo "$as_me: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&2;}
25376
25377     ;;
25378 esac
25379 { echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
25380 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6; }
25381 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
25382   echo $ECHO_N "(cached) $ECHO_C" >&6
25383 else
25384   ac_cv_header__usr_include_readline_readline_h=$ac_header_preproc
25385 fi
25386 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
25387 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6; }
25388
25389 fi
25390 if test $ac_cv_header__usr_include_readline_readline_h = yes; then
25391
25392
25393 cat >>confdefs.h <<\_ACEOF
25394 #define HAVE_READLINE 1
25395 _ACEOF
25396
25397                 got_readline="yes"
25398                 CONS_INC="-I/usr/include/readline"
25399                 CONS_LIBS="-lreadline -ltermcap"
25400
25401 else
25402
25403                                 as_ac_Header=`echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
25404 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25405   { echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
25406 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6; }
25407 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25408   echo $ECHO_N "(cached) $ECHO_C" >&6
25409 fi
25410 ac_res=`eval echo '${'$as_ac_Header'}'`
25411                { echo "$as_me:$LINENO: result: $ac_res" >&5
25412 echo "${ECHO_T}$ac_res" >&6; }
25413 else
25414   # Is the header compilable?
25415 { echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h usability" >&5
25416 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h usability... $ECHO_C" >&6; }
25417 cat >conftest.$ac_ext <<_ACEOF
25418 /* confdefs.h.  */
25419 _ACEOF
25420 cat confdefs.h >>conftest.$ac_ext
25421 cat >>conftest.$ac_ext <<_ACEOF
25422 /* end confdefs.h.  */
25423 $ac_includes_default
25424 #include <${TOP_DIR}/depkgs/readline/readline.h>
25425 _ACEOF
25426 rm -f conftest.$ac_objext
25427 if { (ac_try="$ac_compile"
25428 case "(($ac_try" in
25429   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25430   *) ac_try_echo=$ac_try;;
25431 esac
25432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25433   (eval "$ac_compile") 2>conftest.er1
25434   ac_status=$?
25435   grep -v '^ *+' conftest.er1 >conftest.err
25436   rm -f conftest.er1
25437   cat conftest.err >&5
25438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25439   (exit $ac_status); } && {
25440          test -z "$ac_c_werror_flag" ||
25441          test ! -s conftest.err
25442        } && test -s conftest.$ac_objext; then
25443   ac_header_compiler=yes
25444 else
25445   echo "$as_me: failed program was:" >&5
25446 sed 's/^/| /' conftest.$ac_ext >&5
25447
25448         ac_header_compiler=no
25449 fi
25450
25451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25452 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25453 echo "${ECHO_T}$ac_header_compiler" >&6; }
25454
25455 # Is the header present?
25456 { echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h presence" >&5
25457 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h presence... $ECHO_C" >&6; }
25458 cat >conftest.$ac_ext <<_ACEOF
25459 /* confdefs.h.  */
25460 _ACEOF
25461 cat confdefs.h >>conftest.$ac_ext
25462 cat >>conftest.$ac_ext <<_ACEOF
25463 /* end confdefs.h.  */
25464 #include <${TOP_DIR}/depkgs/readline/readline.h>
25465 _ACEOF
25466 if { (ac_try="$ac_cpp conftest.$ac_ext"
25467 case "(($ac_try" in
25468   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25469   *) ac_try_echo=$ac_try;;
25470 esac
25471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25472   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25473   ac_status=$?
25474   grep -v '^ *+' conftest.er1 >conftest.err
25475   rm -f conftest.er1
25476   cat conftest.err >&5
25477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25478   (exit $ac_status); } >/dev/null && {
25479          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25480          test ! -s conftest.err
25481        }; then
25482   ac_header_preproc=yes
25483 else
25484   echo "$as_me: failed program was:" >&5
25485 sed 's/^/| /' conftest.$ac_ext >&5
25486
25487   ac_header_preproc=no
25488 fi
25489
25490 rm -f conftest.err conftest.$ac_ext
25491 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25492 echo "${ECHO_T}$ac_header_preproc" >&6; }
25493
25494 # So?  What about this header?
25495 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25496   yes:no: )
25497     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
25498 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25499     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&5
25500 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&2;}
25501     ac_header_preproc=yes
25502     ;;
25503   no:yes:* )
25504     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&5
25505 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&2;}
25506     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     check for missing prerequisite headers?" >&5
25507 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     check for missing prerequisite headers?" >&2;}
25508     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&5
25509 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&2;}
25510     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
25511 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
25512     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
25513 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
25514     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&5
25515 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&2;}
25516
25517     ;;
25518 esac
25519 { echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
25520 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6; }
25521 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25522   echo $ECHO_N "(cached) $ECHO_C" >&6
25523 else
25524   eval "$as_ac_Header=\$ac_header_preproc"
25525 fi
25526 ac_res=`eval echo '${'$as_ac_Header'}'`
25527                { echo "$as_me:$LINENO: result: $ac_res" >&5
25528 echo "${ECHO_T}$ac_res" >&6; }
25529
25530 fi
25531 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25532
25533
25534 cat >>confdefs.h <<\_ACEOF
25535 #define HAVE_READLINE 1
25536 _ACEOF
25537
25538                         got_readline="yes"
25539                         CONS_INC="-I${TOP_DIR}/depkgs/readline"
25540                         CONS_LIBS="-lreadline -lhistory -ltermcap"
25541                         CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
25542                         PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
25543
25544 else
25545
25546                         echo " "
25547                         echo "readline.h not found. readline turned off ..."
25548                         echo " "
25549
25550
25551 fi
25552
25553
25554
25555
25556 fi
25557
25558
25559
25560
25561 fi
25562
25563 fi
25564
25565
25566
25567
25568
25569
25570
25571
25572 MAKE_SHELL=/bin/sh
25573
25574 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
25575 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
25576 if test "${ac_cv_header_stat_broken+set}" = set; then
25577   echo $ECHO_N "(cached) $ECHO_C" >&6
25578 else
25579   cat >conftest.$ac_ext <<_ACEOF
25580 /* confdefs.h.  */
25581 _ACEOF
25582 cat confdefs.h >>conftest.$ac_ext
25583 cat >>conftest.$ac_ext <<_ACEOF
25584 /* end confdefs.h.  */
25585 #include <sys/types.h>
25586 #include <sys/stat.h>
25587
25588 #if defined S_ISBLK && defined S_IFDIR
25589 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
25590 #endif
25591
25592 #if defined S_ISBLK && defined S_IFCHR
25593 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
25594 #endif
25595
25596 #if defined S_ISLNK && defined S_IFREG
25597 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
25598 #endif
25599
25600 #if defined S_ISSOCK && defined S_IFREG
25601 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
25602 #endif
25603
25604 _ACEOF
25605 rm -f conftest.$ac_objext
25606 if { (ac_try="$ac_compile"
25607 case "(($ac_try" in
25608   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25609   *) ac_try_echo=$ac_try;;
25610 esac
25611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25612   (eval "$ac_compile") 2>conftest.er1
25613   ac_status=$?
25614   grep -v '^ *+' conftest.er1 >conftest.err
25615   rm -f conftest.er1
25616   cat conftest.err >&5
25617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25618   (exit $ac_status); } && {
25619          test -z "$ac_c_werror_flag" ||
25620          test ! -s conftest.err
25621        } && test -s conftest.$ac_objext; then
25622   ac_cv_header_stat_broken=no
25623 else
25624   echo "$as_me: failed program was:" >&5
25625 sed 's/^/| /' conftest.$ac_ext >&5
25626
25627         ac_cv_header_stat_broken=yes
25628 fi
25629
25630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25631 fi
25632 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
25633 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
25634 if test $ac_cv_header_stat_broken = yes; then
25635
25636 cat >>confdefs.h <<\_ACEOF
25637 #define STAT_MACROS_BROKEN 1
25638 _ACEOF
25639
25640 fi
25641
25642
25643
25644
25645
25646
25647 ac_header_dirent=no
25648 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
25649   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
25650 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
25651 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
25652 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25653   echo $ECHO_N "(cached) $ECHO_C" >&6
25654 else
25655   cat >conftest.$ac_ext <<_ACEOF
25656 /* confdefs.h.  */
25657 _ACEOF
25658 cat confdefs.h >>conftest.$ac_ext
25659 cat >>conftest.$ac_ext <<_ACEOF
25660 /* end confdefs.h.  */
25661 #include <sys/types.h>
25662 #include <$ac_hdr>
25663
25664 int
25665 main ()
25666 {
25667 if ((DIR *) 0)
25668 return 0;
25669   ;
25670   return 0;
25671 }
25672 _ACEOF
25673 rm -f conftest.$ac_objext
25674 if { (ac_try="$ac_compile"
25675 case "(($ac_try" in
25676   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25677   *) ac_try_echo=$ac_try;;
25678 esac
25679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25680   (eval "$ac_compile") 2>conftest.er1
25681   ac_status=$?
25682   grep -v '^ *+' conftest.er1 >conftest.err
25683   rm -f conftest.er1
25684   cat conftest.err >&5
25685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25686   (exit $ac_status); } && {
25687          test -z "$ac_c_werror_flag" ||
25688          test ! -s conftest.err
25689        } && test -s conftest.$ac_objext; then
25690   eval "$as_ac_Header=yes"
25691 else
25692   echo "$as_me: failed program was:" >&5
25693 sed 's/^/| /' conftest.$ac_ext >&5
25694
25695         eval "$as_ac_Header=no"
25696 fi
25697
25698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25699 fi
25700 ac_res=`eval echo '${'$as_ac_Header'}'`
25701                { echo "$as_me:$LINENO: result: $ac_res" >&5
25702 echo "${ECHO_T}$ac_res" >&6; }
25703 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25704   cat >>confdefs.h <<_ACEOF
25705 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
25706 _ACEOF
25707
25708 ac_header_dirent=$ac_hdr; break
25709 fi
25710
25711 done
25712 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
25713 if test $ac_header_dirent = dirent.h; then
25714   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
25715 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
25716 if test "${ac_cv_search_opendir+set}" = set; then
25717   echo $ECHO_N "(cached) $ECHO_C" >&6
25718 else
25719   ac_func_search_save_LIBS=$LIBS
25720 cat >conftest.$ac_ext <<_ACEOF
25721 /* confdefs.h.  */
25722 _ACEOF
25723 cat confdefs.h >>conftest.$ac_ext
25724 cat >>conftest.$ac_ext <<_ACEOF
25725 /* end confdefs.h.  */
25726
25727 /* Override any GCC internal prototype to avoid an error.
25728    Use char because int might match the return type of a GCC
25729    builtin and then its argument prototype would still apply.  */
25730 #ifdef __cplusplus
25731 extern "C"
25732 #endif
25733 char opendir ();
25734 int
25735 main ()
25736 {
25737 return opendir ();
25738   ;
25739   return 0;
25740 }
25741 _ACEOF
25742 for ac_lib in '' dir; do
25743   if test -z "$ac_lib"; then
25744     ac_res="none required"
25745   else
25746     ac_res=-l$ac_lib
25747     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25748   fi
25749   rm -f conftest.$ac_objext conftest$ac_exeext
25750 if { (ac_try="$ac_link"
25751 case "(($ac_try" in
25752   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25753   *) ac_try_echo=$ac_try;;
25754 esac
25755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25756   (eval "$ac_link") 2>conftest.er1
25757   ac_status=$?
25758   grep -v '^ *+' conftest.er1 >conftest.err
25759   rm -f conftest.er1
25760   cat conftest.err >&5
25761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25762   (exit $ac_status); } && {
25763          test -z "$ac_c_werror_flag" ||
25764          test ! -s conftest.err
25765        } && test -s conftest$ac_exeext &&
25766        $as_test_x conftest$ac_exeext; then
25767   ac_cv_search_opendir=$ac_res
25768 else
25769   echo "$as_me: failed program was:" >&5
25770 sed 's/^/| /' conftest.$ac_ext >&5
25771
25772
25773 fi
25774
25775 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25776       conftest$ac_exeext
25777   if test "${ac_cv_search_opendir+set}" = set; then
25778   break
25779 fi
25780 done
25781 if test "${ac_cv_search_opendir+set}" = set; then
25782   :
25783 else
25784   ac_cv_search_opendir=no
25785 fi
25786 rm conftest.$ac_ext
25787 LIBS=$ac_func_search_save_LIBS
25788 fi
25789 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25790 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
25791 ac_res=$ac_cv_search_opendir
25792 if test "$ac_res" != no; then
25793   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25794
25795 fi
25796
25797 else
25798   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
25799 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
25800 if test "${ac_cv_search_opendir+set}" = set; then
25801   echo $ECHO_N "(cached) $ECHO_C" >&6
25802 else
25803   ac_func_search_save_LIBS=$LIBS
25804 cat >conftest.$ac_ext <<_ACEOF
25805 /* confdefs.h.  */
25806 _ACEOF
25807 cat confdefs.h >>conftest.$ac_ext
25808 cat >>conftest.$ac_ext <<_ACEOF
25809 /* end confdefs.h.  */
25810
25811 /* Override any GCC internal prototype to avoid an error.
25812    Use char because int might match the return type of a GCC
25813    builtin and then its argument prototype would still apply.  */
25814 #ifdef __cplusplus
25815 extern "C"
25816 #endif
25817 char opendir ();
25818 int
25819 main ()
25820 {
25821 return opendir ();
25822   ;
25823   return 0;
25824 }
25825 _ACEOF
25826 for ac_lib in '' x; do
25827   if test -z "$ac_lib"; then
25828     ac_res="none required"
25829   else
25830     ac_res=-l$ac_lib
25831     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25832   fi
25833   rm -f conftest.$ac_objext conftest$ac_exeext
25834 if { (ac_try="$ac_link"
25835 case "(($ac_try" in
25836   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25837   *) ac_try_echo=$ac_try;;
25838 esac
25839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25840   (eval "$ac_link") 2>conftest.er1
25841   ac_status=$?
25842   grep -v '^ *+' conftest.er1 >conftest.err
25843   rm -f conftest.er1
25844   cat conftest.err >&5
25845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25846   (exit $ac_status); } && {
25847          test -z "$ac_c_werror_flag" ||
25848          test ! -s conftest.err
25849        } && test -s conftest$ac_exeext &&
25850        $as_test_x conftest$ac_exeext; then
25851   ac_cv_search_opendir=$ac_res
25852 else
25853   echo "$as_me: failed program was:" >&5
25854 sed 's/^/| /' conftest.$ac_ext >&5
25855
25856
25857 fi
25858
25859 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25860       conftest$ac_exeext
25861   if test "${ac_cv_search_opendir+set}" = set; then
25862   break
25863 fi
25864 done
25865 if test "${ac_cv_search_opendir+set}" = set; then
25866   :
25867 else
25868   ac_cv_search_opendir=no
25869 fi
25870 rm conftest.$ac_ext
25871 LIBS=$ac_func_search_save_LIBS
25872 fi
25873 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25874 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
25875 ac_res=$ac_cv_search_opendir
25876 if test "$ac_res" != no; then
25877   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25878
25879 fi
25880
25881 fi
25882
25883
25884
25885
25886
25887
25888
25889
25890 for ac_func in strcasecmp select setenv putenv tcgetattr lstat lchown
25891 do
25892 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25893 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25894 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25895 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25896   echo $ECHO_N "(cached) $ECHO_C" >&6
25897 else
25898   cat >conftest.$ac_ext <<_ACEOF
25899 /* confdefs.h.  */
25900 _ACEOF
25901 cat confdefs.h >>conftest.$ac_ext
25902 cat >>conftest.$ac_ext <<_ACEOF
25903 /* end confdefs.h.  */
25904 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25905    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25906 #define $ac_func innocuous_$ac_func
25907
25908 /* System header to define __stub macros and hopefully few prototypes,
25909     which can conflict with char $ac_func (); below.
25910     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25911     <limits.h> exists even on freestanding compilers.  */
25912
25913 #ifdef __STDC__
25914 # include <limits.h>
25915 #else
25916 # include <assert.h>
25917 #endif
25918
25919 #undef $ac_func
25920
25921 /* Override any GCC internal prototype to avoid an error.
25922    Use char because int might match the return type of a GCC
25923    builtin and then its argument prototype would still apply.  */
25924 #ifdef __cplusplus
25925 extern "C"
25926 #endif
25927 char $ac_func ();
25928 /* The GNU C library defines this for functions which it implements
25929     to always fail with ENOSYS.  Some functions are actually named
25930     something starting with __ and the normal name is an alias.  */
25931 #if defined __stub_$ac_func || defined __stub___$ac_func
25932 choke me
25933 #endif
25934
25935 int
25936 main ()
25937 {
25938 return $ac_func ();
25939   ;
25940   return 0;
25941 }
25942 _ACEOF
25943 rm -f conftest.$ac_objext conftest$ac_exeext
25944 if { (ac_try="$ac_link"
25945 case "(($ac_try" in
25946   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25947   *) ac_try_echo=$ac_try;;
25948 esac
25949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25950   (eval "$ac_link") 2>conftest.er1
25951   ac_status=$?
25952   grep -v '^ *+' conftest.er1 >conftest.err
25953   rm -f conftest.er1
25954   cat conftest.err >&5
25955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25956   (exit $ac_status); } && {
25957          test -z "$ac_c_werror_flag" ||
25958          test ! -s conftest.err
25959        } && test -s conftest$ac_exeext &&
25960        $as_test_x conftest$ac_exeext; then
25961   eval "$as_ac_var=yes"
25962 else
25963   echo "$as_me: failed program was:" >&5
25964 sed 's/^/| /' conftest.$ac_ext >&5
25965
25966         eval "$as_ac_var=no"
25967 fi
25968
25969 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25970       conftest$ac_exeext conftest.$ac_ext
25971 fi
25972 ac_res=`eval echo '${'$as_ac_var'}'`
25973                { echo "$as_me:$LINENO: result: $ac_res" >&5
25974 echo "${ECHO_T}$ac_res" >&6; }
25975 if test `eval echo '${'$as_ac_var'}'` = yes; then
25976   cat >>confdefs.h <<_ACEOF
25977 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25978 _ACEOF
25979
25980 fi
25981 done
25982
25983
25984
25985 for ac_func in nanosleep nl_langinfo
25986 do
25987 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25988 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25989 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25990 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25991   echo $ECHO_N "(cached) $ECHO_C" >&6
25992 else
25993   cat >conftest.$ac_ext <<_ACEOF
25994 /* confdefs.h.  */
25995 _ACEOF
25996 cat confdefs.h >>conftest.$ac_ext
25997 cat >>conftest.$ac_ext <<_ACEOF
25998 /* end confdefs.h.  */
25999 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26000    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26001 #define $ac_func innocuous_$ac_func
26002
26003 /* System header to define __stub macros and hopefully few prototypes,
26004     which can conflict with char $ac_func (); below.
26005     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26006     <limits.h> exists even on freestanding compilers.  */
26007
26008 #ifdef __STDC__
26009 # include <limits.h>
26010 #else
26011 # include <assert.h>
26012 #endif
26013
26014 #undef $ac_func
26015
26016 /* Override any GCC internal prototype to avoid an error.
26017    Use char because int might match the return type of a GCC
26018    builtin and then its argument prototype would still apply.  */
26019 #ifdef __cplusplus
26020 extern "C"
26021 #endif
26022 char $ac_func ();
26023 /* The GNU C library defines this for functions which it implements
26024     to always fail with ENOSYS.  Some functions are actually named
26025     something starting with __ and the normal name is an alias.  */
26026 #if defined __stub_$ac_func || defined __stub___$ac_func
26027 choke me
26028 #endif
26029
26030 int
26031 main ()
26032 {
26033 return $ac_func ();
26034   ;
26035   return 0;
26036 }
26037 _ACEOF
26038 rm -f conftest.$ac_objext conftest$ac_exeext
26039 if { (ac_try="$ac_link"
26040 case "(($ac_try" in
26041   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26042   *) ac_try_echo=$ac_try;;
26043 esac
26044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26045   (eval "$ac_link") 2>conftest.er1
26046   ac_status=$?
26047   grep -v '^ *+' conftest.er1 >conftest.err
26048   rm -f conftest.er1
26049   cat conftest.err >&5
26050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26051   (exit $ac_status); } && {
26052          test -z "$ac_c_werror_flag" ||
26053          test ! -s conftest.err
26054        } && test -s conftest$ac_exeext &&
26055        $as_test_x conftest$ac_exeext; then
26056   eval "$as_ac_var=yes"
26057 else
26058   echo "$as_me: failed program was:" >&5
26059 sed 's/^/| /' conftest.$ac_ext >&5
26060
26061         eval "$as_ac_var=no"
26062 fi
26063
26064 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26065       conftest$ac_exeext conftest.$ac_ext
26066 fi
26067 ac_res=`eval echo '${'$as_ac_var'}'`
26068                { echo "$as_me:$LINENO: result: $ac_res" >&5
26069 echo "${ECHO_T}$ac_res" >&6; }
26070 if test `eval echo '${'$as_ac_var'}'` = yes; then
26071   cat >>confdefs.h <<_ACEOF
26072 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26073 _ACEOF
26074
26075 fi
26076 done
26077
26078
26079 for ac_header in varargs.h
26080 do
26081 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26082 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26083   { echo "$as_me:$LINENO: checking for $ac_header" >&5
26084 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26085 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26086   echo $ECHO_N "(cached) $ECHO_C" >&6
26087 fi
26088 ac_res=`eval echo '${'$as_ac_Header'}'`
26089                { echo "$as_me:$LINENO: result: $ac_res" >&5
26090 echo "${ECHO_T}$ac_res" >&6; }
26091 else
26092   # Is the header compilable?
26093 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
26094 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
26095 cat >conftest.$ac_ext <<_ACEOF
26096 /* confdefs.h.  */
26097 _ACEOF
26098 cat confdefs.h >>conftest.$ac_ext
26099 cat >>conftest.$ac_ext <<_ACEOF
26100 /* end confdefs.h.  */
26101 $ac_includes_default
26102 #include <$ac_header>
26103 _ACEOF
26104 rm -f conftest.$ac_objext
26105 if { (ac_try="$ac_compile"
26106 case "(($ac_try" in
26107   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26108   *) ac_try_echo=$ac_try;;
26109 esac
26110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26111   (eval "$ac_compile") 2>conftest.er1
26112   ac_status=$?
26113   grep -v '^ *+' conftest.er1 >conftest.err
26114   rm -f conftest.er1
26115   cat conftest.err >&5
26116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26117   (exit $ac_status); } && {
26118          test -z "$ac_c_werror_flag" ||
26119          test ! -s conftest.err
26120        } && test -s conftest.$ac_objext; then
26121   ac_header_compiler=yes
26122 else
26123   echo "$as_me: failed program was:" >&5
26124 sed 's/^/| /' conftest.$ac_ext >&5
26125
26126         ac_header_compiler=no
26127 fi
26128
26129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26130 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26131 echo "${ECHO_T}$ac_header_compiler" >&6; }
26132
26133 # Is the header present?
26134 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
26135 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
26136 cat >conftest.$ac_ext <<_ACEOF
26137 /* confdefs.h.  */
26138 _ACEOF
26139 cat confdefs.h >>conftest.$ac_ext
26140 cat >>conftest.$ac_ext <<_ACEOF
26141 /* end confdefs.h.  */
26142 #include <$ac_header>
26143 _ACEOF
26144 if { (ac_try="$ac_cpp conftest.$ac_ext"
26145 case "(($ac_try" in
26146   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26147   *) ac_try_echo=$ac_try;;
26148 esac
26149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26150   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26151   ac_status=$?
26152   grep -v '^ *+' conftest.er1 >conftest.err
26153   rm -f conftest.er1
26154   cat conftest.err >&5
26155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26156   (exit $ac_status); } >/dev/null && {
26157          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26158          test ! -s conftest.err
26159        }; then
26160   ac_header_preproc=yes
26161 else
26162   echo "$as_me: failed program was:" >&5
26163 sed 's/^/| /' conftest.$ac_ext >&5
26164
26165   ac_header_preproc=no
26166 fi
26167
26168 rm -f conftest.err conftest.$ac_ext
26169 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26170 echo "${ECHO_T}$ac_header_preproc" >&6; }
26171
26172 # So?  What about this header?
26173 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26174   yes:no: )
26175     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26176 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26177     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26178 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26179     ac_header_preproc=yes
26180     ;;
26181   no:yes:* )
26182     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26183 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26184     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26185 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26186     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26187 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26188     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26189 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26190     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26191 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26192     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26193 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26194
26195     ;;
26196 esac
26197 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26198 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26199 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26200   echo $ECHO_N "(cached) $ECHO_C" >&6
26201 else
26202   eval "$as_ac_Header=\$ac_header_preproc"
26203 fi
26204 ac_res=`eval echo '${'$as_ac_Header'}'`
26205                { echo "$as_me:$LINENO: result: $ac_res" >&5
26206 echo "${ECHO_T}$ac_res" >&6; }
26207
26208 fi
26209 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26210   cat >>confdefs.h <<_ACEOF
26211 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26212 _ACEOF
26213
26214 fi
26215
26216 done
26217
26218
26219
26220 { echo "$as_me:$LINENO: checking for Python support" >&5
26221 echo $ECHO_N "checking for Python support... $ECHO_C" >&6; }
26222
26223 # Check whether --with-python was given.
26224 if test "${with_python+set}" = set; then
26225   withval=$with_python;
26226        PYTHON_INCDIR=
26227        PYTHON_LIBS=
26228        if test "$withval" != "no"; then
26229           if test "$withval" = "yes"; then
26230              for python_root in /usr /usr/local /usr/sfw; do
26231                 for ver in python2.2 python2.3 python2.4 python2.5 python2.6 python3; do
26232                    if test -f $python_root/include/${ver}/Python.h; then
26233                       PYTHON_INCDIR=-I$python_root/include/${ver}
26234                       if test -d $python_root/lib64/${ver}/config; then
26235                          PYTHON_LIBS="-L$python_root/lib64/${ver}/config -l${ver}"
26236                       else
26237                          PYTHON_LIBS="-L$python_root/lib/${ver}/config -l${ver}"
26238                       fi
26239                       break
26240                    fi
26241                 done
26242              done
26243
26244              if test x$PYTHON_INCDIR = x; then
26245                 if test -f $prefix/include/Python.h; then
26246                    PYTHON_INCDIR=-I$prefix/include
26247                    if test -d $prefix/lib64/config; then
26248                       PYTHON_LIBS="-L$prefix/lib64/config -lpython"
26249                    else
26250                       PYTHON_LIBS="-L$prefix/lib/config -lpython"
26251                    fi
26252                 else
26253                    { echo "$as_me:$LINENO: result: no" >&5
26254 echo "${ECHO_T}no" >&6; }
26255                    { { echo "$as_me:$LINENO: error: Unable to find Python.h in standard locations" >&5
26256 echo "$as_me: error: Unable to find Python.h in standard locations" >&2;}
26257    { (exit 1); exit 1; }; }
26258                 fi
26259              fi
26260           else
26261              if test -f $withval/Python.h; then
26262                 PYTHON_INCDIR=-I$withval
26263                 PYTHON_LIBS="-L$withval/config -lpython"
26264              elif test -f $withval/include/Python.h; then
26265                 PYTHON_INCDIR=-I$withval/include
26266                 if test -d $withval/lib64/config; then
26267                    PYTHON_LIBS="-L$withval/lib64/config -lpython"
26268                 else
26269                    PYTHON_LIBS="-L$withval/lib/config -lpython"
26270                 fi
26271              elif test -f $withval/include/python/Python.h; then
26272                 PYTHON_INCDIR=-I$withval/include/python
26273                 if test -d $withval/lib64/python/config; then
26274                    PYTHON_LIBS="-L$withval/lib64/python/config -lpython"
26275                 else
26276                    PYTHON_LIBS="-L$withval/lib/python/config -lpython"
26277                 fi
26278              else
26279                 { echo "$as_me:$LINENO: result: no" >&5
26280 echo "${ECHO_T}no" >&6; }
26281                 { { echo "$as_me:$LINENO: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&5
26282 echo "$as_me: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&2;}
26283    { (exit 1); exit 1; }; }
26284              fi
26285           fi
26286
26287           cat >>confdefs.h <<\_ACEOF
26288 #define HAVE_PYTHON 1
26289 _ACEOF
26290
26291           { echo "$as_me:$LINENO: result: yes" >&5
26292 echo "${ECHO_T}yes" >&6; }
26293           support_python=yes
26294           { echo "$as_me:$LINENO: checking for more Python libs" >&5
26295 echo "$as_me: checking for more Python libs" >&6;}
26296           saved_LIBS="$LIBS"; LIBS=
26297           { echo "$as_me:$LINENO: checking for library containing shm_open" >&5
26298 echo $ECHO_N "checking for library containing shm_open... $ECHO_C" >&6; }
26299 if test "${ac_cv_search_shm_open+set}" = set; then
26300   echo $ECHO_N "(cached) $ECHO_C" >&6
26301 else
26302   ac_func_search_save_LIBS=$LIBS
26303 cat >conftest.$ac_ext <<_ACEOF
26304 /* confdefs.h.  */
26305 _ACEOF
26306 cat confdefs.h >>conftest.$ac_ext
26307 cat >>conftest.$ac_ext <<_ACEOF
26308 /* end confdefs.h.  */
26309
26310 /* Override any GCC internal prototype to avoid an error.
26311    Use char because int might match the return type of a GCC
26312    builtin and then its argument prototype would still apply.  */
26313 #ifdef __cplusplus
26314 extern "C"
26315 #endif
26316 char shm_open ();
26317 int
26318 main ()
26319 {
26320 return shm_open ();
26321   ;
26322   return 0;
26323 }
26324 _ACEOF
26325 for ac_lib in '' rt; do
26326   if test -z "$ac_lib"; then
26327     ac_res="none required"
26328   else
26329     ac_res=-l$ac_lib
26330     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
26331   fi
26332   rm -f conftest.$ac_objext conftest$ac_exeext
26333 if { (ac_try="$ac_link"
26334 case "(($ac_try" in
26335   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26336   *) ac_try_echo=$ac_try;;
26337 esac
26338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26339   (eval "$ac_link") 2>conftest.er1
26340   ac_status=$?
26341   grep -v '^ *+' conftest.er1 >conftest.err
26342   rm -f conftest.er1
26343   cat conftest.err >&5
26344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26345   (exit $ac_status); } && {
26346          test -z "$ac_c_werror_flag" ||
26347          test ! -s conftest.err
26348        } && test -s conftest$ac_exeext &&
26349        $as_test_x conftest$ac_exeext; then
26350   ac_cv_search_shm_open=$ac_res
26351 else
26352   echo "$as_me: failed program was:" >&5
26353 sed 's/^/| /' conftest.$ac_ext >&5
26354
26355
26356 fi
26357
26358 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26359       conftest$ac_exeext
26360   if test "${ac_cv_search_shm_open+set}" = set; then
26361   break
26362 fi
26363 done
26364 if test "${ac_cv_search_shm_open+set}" = set; then
26365   :
26366 else
26367   ac_cv_search_shm_open=no
26368 fi
26369 rm conftest.$ac_ext
26370 LIBS=$ac_func_search_save_LIBS
26371 fi
26372 { echo "$as_me:$LINENO: result: $ac_cv_search_shm_open" >&5
26373 echo "${ECHO_T}$ac_cv_search_shm_open" >&6; }
26374 ac_res=$ac_cv_search_shm_open
26375 if test "$ac_res" != no; then
26376   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26377
26378 fi
26379
26380
26381 { echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
26382 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6; }
26383 if test "${ac_cv_lib_util_openpty+set}" = set; then
26384   echo $ECHO_N "(cached) $ECHO_C" >&6
26385 else
26386   ac_check_lib_save_LIBS=$LIBS
26387 LIBS="-lutil  $LIBS"
26388 cat >conftest.$ac_ext <<_ACEOF
26389 /* confdefs.h.  */
26390 _ACEOF
26391 cat confdefs.h >>conftest.$ac_ext
26392 cat >>conftest.$ac_ext <<_ACEOF
26393 /* end confdefs.h.  */
26394
26395 /* Override any GCC internal prototype to avoid an error.
26396    Use char because int might match the return type of a GCC
26397    builtin and then its argument prototype would still apply.  */
26398 #ifdef __cplusplus
26399 extern "C"
26400 #endif
26401 char openpty ();
26402 int
26403 main ()
26404 {
26405 return openpty ();
26406   ;
26407   return 0;
26408 }
26409 _ACEOF
26410 rm -f conftest.$ac_objext conftest$ac_exeext
26411 if { (ac_try="$ac_link"
26412 case "(($ac_try" in
26413   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26414   *) ac_try_echo=$ac_try;;
26415 esac
26416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26417   (eval "$ac_link") 2>conftest.er1
26418   ac_status=$?
26419   grep -v '^ *+' conftest.er1 >conftest.err
26420   rm -f conftest.er1
26421   cat conftest.err >&5
26422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26423   (exit $ac_status); } && {
26424          test -z "$ac_c_werror_flag" ||
26425          test ! -s conftest.err
26426        } && test -s conftest$ac_exeext &&
26427        $as_test_x conftest$ac_exeext; then
26428   ac_cv_lib_util_openpty=yes
26429 else
26430   echo "$as_me: failed program was:" >&5
26431 sed 's/^/| /' conftest.$ac_ext >&5
26432
26433         ac_cv_lib_util_openpty=no
26434 fi
26435
26436 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26437       conftest$ac_exeext conftest.$ac_ext
26438 LIBS=$ac_check_lib_save_LIBS
26439 fi
26440 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
26441 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6; }
26442 if test $ac_cv_lib_util_openpty = yes; then
26443   cat >>confdefs.h <<_ACEOF
26444 #define HAVE_LIBUTIL 1
26445 _ACEOF
26446
26447   LIBS="-lutil $LIBS"
26448
26449 fi
26450
26451           PYTHON_LIBS="$PYTHON_LIBS $LIBS"
26452           LIBS="$saved_LIBS"
26453        else
26454           { echo "$as_me:$LINENO: result: no" >&5
26455 echo "${ECHO_T}no" >&6; }
26456        fi
26457
26458 else
26459
26460        { echo "$as_me:$LINENO: result: no" >&5
26461 echo "${ECHO_T}no" >&6; }
26462
26463
26464 fi
26465
26466
26467
26468
26469 { echo "$as_me:$LINENO: checking for socket" >&5
26470 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
26471 if test "${ac_cv_func_socket+set}" = set; then
26472   echo $ECHO_N "(cached) $ECHO_C" >&6
26473 else
26474   cat >conftest.$ac_ext <<_ACEOF
26475 /* confdefs.h.  */
26476 _ACEOF
26477 cat confdefs.h >>conftest.$ac_ext
26478 cat >>conftest.$ac_ext <<_ACEOF
26479 /* end confdefs.h.  */
26480 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
26481    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26482 #define socket innocuous_socket
26483
26484 /* System header to define __stub macros and hopefully few prototypes,
26485     which can conflict with char socket (); below.
26486     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26487     <limits.h> exists even on freestanding compilers.  */
26488
26489 #ifdef __STDC__
26490 # include <limits.h>
26491 #else
26492 # include <assert.h>
26493 #endif
26494
26495 #undef socket
26496
26497 /* Override any GCC internal prototype to avoid an error.
26498    Use char because int might match the return type of a GCC
26499    builtin and then its argument prototype would still apply.  */
26500 #ifdef __cplusplus
26501 extern "C"
26502 #endif
26503 char socket ();
26504 /* The GNU C library defines this for functions which it implements
26505     to always fail with ENOSYS.  Some functions are actually named
26506     something starting with __ and the normal name is an alias.  */
26507 #if defined __stub_socket || defined __stub___socket
26508 choke me
26509 #endif
26510
26511 int
26512 main ()
26513 {
26514 return socket ();
26515   ;
26516   return 0;
26517 }
26518 _ACEOF
26519 rm -f conftest.$ac_objext conftest$ac_exeext
26520 if { (ac_try="$ac_link"
26521 case "(($ac_try" in
26522   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26523   *) ac_try_echo=$ac_try;;
26524 esac
26525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26526   (eval "$ac_link") 2>conftest.er1
26527   ac_status=$?
26528   grep -v '^ *+' conftest.er1 >conftest.err
26529   rm -f conftest.er1
26530   cat conftest.err >&5
26531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26532   (exit $ac_status); } && {
26533          test -z "$ac_c_werror_flag" ||
26534          test ! -s conftest.err
26535        } && test -s conftest$ac_exeext &&
26536        $as_test_x conftest$ac_exeext; then
26537   ac_cv_func_socket=yes
26538 else
26539   echo "$as_me: failed program was:" >&5
26540 sed 's/^/| /' conftest.$ac_ext >&5
26541
26542         ac_cv_func_socket=no
26543 fi
26544
26545 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26546       conftest$ac_exeext conftest.$ac_ext
26547 fi
26548 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
26549 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
26550 if test $ac_cv_func_socket = yes; then
26551   { echo "$as_me:$LINENO: result: using libc's socket" >&5
26552 echo "${ECHO_T}using libc's socket" >&6; }
26553 else
26554
26555 { echo "$as_me:$LINENO: checking for socket in -lxnet" >&5
26556 echo $ECHO_N "checking for socket in -lxnet... $ECHO_C" >&6; }
26557 if test "${ac_cv_lib_xnet_socket+set}" = set; then
26558   echo $ECHO_N "(cached) $ECHO_C" >&6
26559 else
26560   ac_check_lib_save_LIBS=$LIBS
26561 LIBS="-lxnet  $LIBS"
26562 cat >conftest.$ac_ext <<_ACEOF
26563 /* confdefs.h.  */
26564 _ACEOF
26565 cat confdefs.h >>conftest.$ac_ext
26566 cat >>conftest.$ac_ext <<_ACEOF
26567 /* end confdefs.h.  */
26568
26569 /* Override any GCC internal prototype to avoid an error.
26570    Use char because int might match the return type of a GCC
26571    builtin and then its argument prototype would still apply.  */
26572 #ifdef __cplusplus
26573 extern "C"
26574 #endif
26575 char socket ();
26576 int
26577 main ()
26578 {
26579 return socket ();
26580   ;
26581   return 0;
26582 }
26583 _ACEOF
26584 rm -f conftest.$ac_objext conftest$ac_exeext
26585 if { (ac_try="$ac_link"
26586 case "(($ac_try" in
26587   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26588   *) ac_try_echo=$ac_try;;
26589 esac
26590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26591   (eval "$ac_link") 2>conftest.er1
26592   ac_status=$?
26593   grep -v '^ *+' conftest.er1 >conftest.err
26594   rm -f conftest.er1
26595   cat conftest.err >&5
26596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26597   (exit $ac_status); } && {
26598          test -z "$ac_c_werror_flag" ||
26599          test ! -s conftest.err
26600        } && test -s conftest$ac_exeext &&
26601        $as_test_x conftest$ac_exeext; then
26602   ac_cv_lib_xnet_socket=yes
26603 else
26604   echo "$as_me: failed program was:" >&5
26605 sed 's/^/| /' conftest.$ac_ext >&5
26606
26607         ac_cv_lib_xnet_socket=no
26608 fi
26609
26610 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26611       conftest$ac_exeext conftest.$ac_ext
26612 LIBS=$ac_check_lib_save_LIBS
26613 fi
26614 { echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_socket" >&5
26615 echo "${ECHO_T}$ac_cv_lib_xnet_socket" >&6; }
26616 if test $ac_cv_lib_xnet_socket = yes; then
26617   cat >>confdefs.h <<_ACEOF
26618 #define HAVE_LIBXNET 1
26619 _ACEOF
26620
26621   LIBS="-lxnet $LIBS"
26622
26623 fi
26624
26625
26626 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
26627 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
26628 if test "${ac_cv_lib_socket_socket+set}" = set; then
26629   echo $ECHO_N "(cached) $ECHO_C" >&6
26630 else
26631   ac_check_lib_save_LIBS=$LIBS
26632 LIBS="-lsocket  $LIBS"
26633 cat >conftest.$ac_ext <<_ACEOF
26634 /* confdefs.h.  */
26635 _ACEOF
26636 cat confdefs.h >>conftest.$ac_ext
26637 cat >>conftest.$ac_ext <<_ACEOF
26638 /* end confdefs.h.  */
26639
26640 /* Override any GCC internal prototype to avoid an error.
26641    Use char because int might match the return type of a GCC
26642    builtin and then its argument prototype would still apply.  */
26643 #ifdef __cplusplus
26644 extern "C"
26645 #endif
26646 char socket ();
26647 int
26648 main ()
26649 {
26650 return socket ();
26651   ;
26652   return 0;
26653 }
26654 _ACEOF
26655 rm -f conftest.$ac_objext conftest$ac_exeext
26656 if { (ac_try="$ac_link"
26657 case "(($ac_try" in
26658   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26659   *) ac_try_echo=$ac_try;;
26660 esac
26661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26662   (eval "$ac_link") 2>conftest.er1
26663   ac_status=$?
26664   grep -v '^ *+' conftest.er1 >conftest.err
26665   rm -f conftest.er1
26666   cat conftest.err >&5
26667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26668   (exit $ac_status); } && {
26669          test -z "$ac_c_werror_flag" ||
26670          test ! -s conftest.err
26671        } && test -s conftest$ac_exeext &&
26672        $as_test_x conftest$ac_exeext; then
26673   ac_cv_lib_socket_socket=yes
26674 else
26675   echo "$as_me: failed program was:" >&5
26676 sed 's/^/| /' conftest.$ac_ext >&5
26677
26678         ac_cv_lib_socket_socket=no
26679 fi
26680
26681 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26682       conftest$ac_exeext conftest.$ac_ext
26683 LIBS=$ac_check_lib_save_LIBS
26684 fi
26685 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
26686 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
26687 if test $ac_cv_lib_socket_socket = yes; then
26688   cat >>confdefs.h <<_ACEOF
26689 #define HAVE_LIBSOCKET 1
26690 _ACEOF
26691
26692   LIBS="-lsocket $LIBS"
26693
26694 fi
26695
26696
26697 { echo "$as_me:$LINENO: checking for socket in -linet" >&5
26698 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6; }
26699 if test "${ac_cv_lib_inet_socket+set}" = set; then
26700   echo $ECHO_N "(cached) $ECHO_C" >&6
26701 else
26702   ac_check_lib_save_LIBS=$LIBS
26703 LIBS="-linet  $LIBS"
26704 cat >conftest.$ac_ext <<_ACEOF
26705 /* confdefs.h.  */
26706 _ACEOF
26707 cat confdefs.h >>conftest.$ac_ext
26708 cat >>conftest.$ac_ext <<_ACEOF
26709 /* end confdefs.h.  */
26710
26711 /* Override any GCC internal prototype to avoid an error.
26712    Use char because int might match the return type of a GCC
26713    builtin and then its argument prototype would still apply.  */
26714 #ifdef __cplusplus
26715 extern "C"
26716 #endif
26717 char socket ();
26718 int
26719 main ()
26720 {
26721 return socket ();
26722   ;
26723   return 0;
26724 }
26725 _ACEOF
26726 rm -f conftest.$ac_objext conftest$ac_exeext
26727 if { (ac_try="$ac_link"
26728 case "(($ac_try" in
26729   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26730   *) ac_try_echo=$ac_try;;
26731 esac
26732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26733   (eval "$ac_link") 2>conftest.er1
26734   ac_status=$?
26735   grep -v '^ *+' conftest.er1 >conftest.err
26736   rm -f conftest.er1
26737   cat conftest.err >&5
26738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26739   (exit $ac_status); } && {
26740          test -z "$ac_c_werror_flag" ||
26741          test ! -s conftest.err
26742        } && test -s conftest$ac_exeext &&
26743        $as_test_x conftest$ac_exeext; then
26744   ac_cv_lib_inet_socket=yes
26745 else
26746   echo "$as_me: failed program was:" >&5
26747 sed 's/^/| /' conftest.$ac_ext >&5
26748
26749         ac_cv_lib_inet_socket=no
26750 fi
26751
26752 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26753       conftest$ac_exeext conftest.$ac_ext
26754 LIBS=$ac_check_lib_save_LIBS
26755 fi
26756 { echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
26757 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6; }
26758 if test $ac_cv_lib_inet_socket = yes; then
26759   cat >>confdefs.h <<_ACEOF
26760 #define HAVE_LIBINET 1
26761 _ACEOF
26762
26763   LIBS="-linet $LIBS"
26764
26765 fi
26766
26767 fi
26768
26769
26770 TCPW_MSG="no"
26771 WRAPLIBS=""
26772
26773 # Check whether --with-tcp-wrappers was given.
26774 if test "${with_tcp_wrappers+set}" = set; then
26775   withval=$with_tcp_wrappers;
26776        if test "x$withval" != "xno" ; then
26777           saved_LIBS="$LIBS"
26778           LIBS="$saved_LIBS -lwrap"
26779           { echo "$as_me:$LINENO: checking for libwrap" >&5
26780 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6; }
26781           { echo "$as_me:$LINENO: checking for library containing nanosleep" >&5
26782 echo $ECHO_N "checking for library containing nanosleep... $ECHO_C" >&6; }
26783 if test "${ac_cv_search_nanosleep+set}" = set; then
26784   echo $ECHO_N "(cached) $ECHO_C" >&6
26785 else
26786   ac_func_search_save_LIBS=$LIBS
26787 cat >conftest.$ac_ext <<_ACEOF
26788 /* confdefs.h.  */
26789 _ACEOF
26790 cat confdefs.h >>conftest.$ac_ext
26791 cat >>conftest.$ac_ext <<_ACEOF
26792 /* end confdefs.h.  */
26793
26794 /* Override any GCC internal prototype to avoid an error.
26795    Use char because int might match the return type of a GCC
26796    builtin and then its argument prototype would still apply.  */
26797 #ifdef __cplusplus
26798 extern "C"
26799 #endif
26800 char nanosleep ();
26801 int
26802 main ()
26803 {
26804 return nanosleep ();
26805   ;
26806   return 0;
26807 }
26808 _ACEOF
26809 for ac_lib in '' rt; do
26810   if test -z "$ac_lib"; then
26811     ac_res="none required"
26812   else
26813     ac_res=-l$ac_lib
26814     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
26815   fi
26816   rm -f conftest.$ac_objext conftest$ac_exeext
26817 if { (ac_try="$ac_link"
26818 case "(($ac_try" in
26819   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26820   *) ac_try_echo=$ac_try;;
26821 esac
26822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26823   (eval "$ac_link") 2>conftest.er1
26824   ac_status=$?
26825   grep -v '^ *+' conftest.er1 >conftest.err
26826   rm -f conftest.er1
26827   cat conftest.err >&5
26828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26829   (exit $ac_status); } && {
26830          test -z "$ac_c_werror_flag" ||
26831          test ! -s conftest.err
26832        } && test -s conftest$ac_exeext &&
26833        $as_test_x conftest$ac_exeext; then
26834   ac_cv_search_nanosleep=$ac_res
26835 else
26836   echo "$as_me: failed program was:" >&5
26837 sed 's/^/| /' conftest.$ac_ext >&5
26838
26839
26840 fi
26841
26842 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26843       conftest$ac_exeext
26844   if test "${ac_cv_search_nanosleep+set}" = set; then
26845   break
26846 fi
26847 done
26848 if test "${ac_cv_search_nanosleep+set}" = set; then
26849   :
26850 else
26851   ac_cv_search_nanosleep=no
26852 fi
26853 rm conftest.$ac_ext
26854 LIBS=$ac_func_search_save_LIBS
26855 fi
26856 { echo "$as_me:$LINENO: result: $ac_cv_search_nanosleep" >&5
26857 echo "${ECHO_T}$ac_cv_search_nanosleep" >&6; }
26858 ac_res=$ac_cv_search_nanosleep
26859 if test "$ac_res" != no; then
26860   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26861
26862 fi
26863
26864           cat >conftest.$ac_ext <<_ACEOF
26865 /* confdefs.h.  */
26866 _ACEOF
26867 cat confdefs.h >>conftest.$ac_ext
26868 cat >>conftest.$ac_ext <<_ACEOF
26869 /* end confdefs.h.  */
26870
26871                #include <sys/types.h>
26872                #include <tcpd.h>
26873                int deny_severity = 0;
26874                int allow_severity = 0;
26875                struct request_info *req;
26876
26877 int
26878 main ()
26879 {
26880
26881                 hosts_access(req);
26882
26883   ;
26884   return 0;
26885 }
26886 _ACEOF
26887 rm -f conftest.$ac_objext conftest$ac_exeext
26888 if { (ac_try="$ac_link"
26889 case "(($ac_try" in
26890   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26891   *) ac_try_echo=$ac_try;;
26892 esac
26893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26894   (eval "$ac_link") 2>conftest.er1
26895   ac_status=$?
26896   grep -v '^ *+' conftest.er1 >conftest.err
26897   rm -f conftest.er1
26898   cat conftest.err >&5
26899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26900   (exit $ac_status); } && {
26901          test -z "$ac_c_werror_flag" ||
26902          test ! -s conftest.err
26903        } && test -s conftest$ac_exeext &&
26904        $as_test_x conftest$ac_exeext; then
26905
26906                  { echo "$as_me:$LINENO: result: yes" >&5
26907 echo "${ECHO_T}yes" >&6; }
26908
26909 cat >>confdefs.h <<\_ACEOF
26910 #define HAVE_LIBWRAP 1
26911 _ACEOF
26912
26913                  TCPW_MSG="yes"
26914                  LIBS="$saved_LIBS"
26915                  WRAPLIBS="-lwrap"
26916
26917 else
26918   echo "$as_me: failed program was:" >&5
26919 sed 's/^/| /' conftest.$ac_ext >&5
26920
26921
26922                  LIBS="$saved_LIBS -lwrap -lnsl"
26923                  WRAPLIBS="$saved_LIBS -lwrap -lnsl"
26924                  cat >conftest.$ac_ext <<_ACEOF
26925 /* confdefs.h.  */
26926 _ACEOF
26927 cat confdefs.h >>conftest.$ac_ext
26928 cat >>conftest.$ac_ext <<_ACEOF
26929 /* end confdefs.h.  */
26930
26931                        #include <sys/types.h>
26932                        #include <tcpd.h>
26933                        int deny_severity = 0;
26934                        int allow_severity = 0;
26935                        struct request_info *req;
26936
26937 int
26938 main ()
26939 {
26940
26941                        hosts_access(req);
26942
26943   ;
26944   return 0;
26945 }
26946 _ACEOF
26947 rm -f conftest.$ac_objext conftest$ac_exeext
26948 if { (ac_try="$ac_link"
26949 case "(($ac_try" in
26950   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26951   *) ac_try_echo=$ac_try;;
26952 esac
26953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26954   (eval "$ac_link") 2>conftest.er1
26955   ac_status=$?
26956   grep -v '^ *+' conftest.er1 >conftest.err
26957   rm -f conftest.er1
26958   cat conftest.err >&5
26959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26960   (exit $ac_status); } && {
26961          test -z "$ac_c_werror_flag" ||
26962          test ! -s conftest.err
26963        } && test -s conftest$ac_exeext &&
26964        $as_test_x conftest$ac_exeext; then
26965
26966                       { echo "$as_me:$LINENO: result: yes" >&5
26967 echo "${ECHO_T}yes" >&6; }
26968
26969 cat >>confdefs.h <<\_ACEOF
26970 #define HAVE_LIBWRAP 1
26971 _ACEOF
26972
26973                       TCPW_MSG="yes"
26974                       LIBS="$saved_LIBS"
26975                       WRAPLIBS="-lwrap"
26976
26977 else
26978   echo "$as_me: failed program was:" >&5
26979 sed 's/^/| /' conftest.$ac_ext >&5
26980
26981
26982                       { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
26983 echo "$as_me: error: *** libwrap missing" >&2;}
26984    { (exit 1); exit 1; }; }
26985
26986
26987 fi
26988
26989 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26990       conftest$ac_exeext conftest.$ac_ext
26991
26992
26993 fi
26994
26995 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26996       conftest$ac_exeext conftest.$ac_ext
26997        fi
26998
26999
27000 fi
27001
27002
27003 { echo "$as_me:$LINENO: checking for OpenSSL" >&5
27004 echo $ECHO_N "checking for OpenSSL... $ECHO_C" >&6; }
27005
27006 # Check whether --with-openssl was given.
27007 if test "${with_openssl+set}" = set; then
27008   withval=$with_openssl;
27009         with_openssl_directory=${withval}
27010
27011
27012 fi
27013
27014
27015 if test "x$with_openssl_directory" != "xno"; then
27016    OPENSSL_LIBS="-lssl -lcrypto"
27017    OPENSSL_INC=""
27018
27019    if test "x$with_openssl_directory" != "xyes" && test x"${with_openssl_directory}" != "x"; then
27020       #
27021       # Make sure the $with_openssl_directory also makes sense
27022       #
27023       if test -d "$with_openssl_directory/lib" -a -d "$with_openssl_directory/include"; then
27024          OPENSSL_LIBS="-L$with_openssl_directory/lib $OPENSSL_LIBS"
27025          OPENSSL_INC="-I$with_openssl_directory/include $OPENSSL_INC"
27026       fi
27027    fi
27028
27029    saved_LIBS="${LIBS}"
27030    saved_CFLAGS="${CFLAGS}"
27031    LIBS="${saved_LIBS} ${OPENSSL_LIBS}"
27032    CFLAGS="${saved_CFLAGS} ${OPENSSL_INC}"
27033
27034    cat >conftest.$ac_ext <<_ACEOF
27035 /* confdefs.h.  */
27036 _ACEOF
27037 cat confdefs.h >>conftest.$ac_ext
27038 cat >>conftest.$ac_ext <<_ACEOF
27039 /* end confdefs.h.  */
27040
27041           #include <openssl/ssl.h>
27042
27043 int
27044 main ()
27045 {
27046
27047            CRYPTO_set_id_callback(NULL);
27048
27049   ;
27050   return 0;
27051 }
27052 _ACEOF
27053 rm -f conftest.$ac_objext conftest$ac_exeext
27054 if { (ac_try="$ac_link"
27055 case "(($ac_try" in
27056   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27057   *) ac_try_echo=$ac_try;;
27058 esac
27059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27060   (eval "$ac_link") 2>conftest.er1
27061   ac_status=$?
27062   grep -v '^ *+' conftest.er1 >conftest.err
27063   rm -f conftest.er1
27064   cat conftest.err >&5
27065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27066   (exit $ac_status); } && {
27067          test -z "$ac_c_werror_flag" ||
27068          test ! -s conftest.err
27069        } && test -s conftest$ac_exeext &&
27070        $as_test_x conftest$ac_exeext; then
27071
27072           support_tls="yes"
27073           support_crypto="yes"
27074
27075 else
27076   echo "$as_me: failed program was:" >&5
27077 sed 's/^/| /' conftest.$ac_ext >&5
27078
27079
27080           support_tls="no"
27081
27082
27083 fi
27084
27085 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27086       conftest$ac_exeext conftest.$ac_ext
27087
27088    cat >conftest.$ac_ext <<_ACEOF
27089 /* confdefs.h.  */
27090 _ACEOF
27091 cat confdefs.h >>conftest.$ac_ext
27092 cat >>conftest.$ac_ext <<_ACEOF
27093 /* end confdefs.h.  */
27094
27095           #include <openssl/evp.h>
27096
27097 int
27098 main ()
27099 {
27100
27101           EVP_sha512();
27102
27103   ;
27104   return 0;
27105 }
27106 _ACEOF
27107 rm -f conftest.$ac_objext conftest$ac_exeext
27108 if { (ac_try="$ac_link"
27109 case "(($ac_try" in
27110   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27111   *) ac_try_echo=$ac_try;;
27112 esac
27113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27114   (eval "$ac_link") 2>conftest.er1
27115   ac_status=$?
27116   grep -v '^ *+' conftest.er1 >conftest.err
27117   rm -f conftest.er1
27118   cat conftest.err >&5
27119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27120   (exit $ac_status); } && {
27121          test -z "$ac_c_werror_flag" ||
27122          test ! -s conftest.err
27123        } && test -s conftest$ac_exeext &&
27124        $as_test_x conftest$ac_exeext; then
27125
27126           ac_cv_openssl_sha2="yes"
27127
27128 else
27129   echo "$as_me: failed program was:" >&5
27130 sed 's/^/| /' conftest.$ac_ext >&5
27131
27132
27133           ac_cv_openssl_sha2="no"
27134
27135
27136 fi
27137
27138 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27139       conftest$ac_exeext conftest.$ac_ext
27140
27141                cat >conftest.$ac_ext <<_ACEOF
27142 /* confdefs.h.  */
27143 _ACEOF
27144 cat confdefs.h >>conftest.$ac_ext
27145 cat >>conftest.$ac_ext <<_ACEOF
27146 /* end confdefs.h.  */
27147
27148           #include <openssl/evp.h>
27149
27150 int
27151 main ()
27152 {
27153
27154           EVP_aes_192_cbc();
27155
27156   ;
27157   return 0;
27158 }
27159 _ACEOF
27160 rm -f conftest.$ac_objext conftest$ac_exeext
27161 if { (ac_try="$ac_link"
27162 case "(($ac_try" in
27163   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27164   *) ac_try_echo=$ac_try;;
27165 esac
27166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27167   (eval "$ac_link") 2>conftest.er1
27168   ac_status=$?
27169   grep -v '^ *+' conftest.er1 >conftest.err
27170   rm -f conftest.er1
27171   cat conftest.err >&5
27172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27173   (exit $ac_status); } && {
27174          test -z "$ac_c_werror_flag" ||
27175          test ! -s conftest.err
27176        } && test -s conftest$ac_exeext &&
27177        $as_test_x conftest$ac_exeext; then
27178
27179           ac_cv_openssl_export="no"
27180
27181 else
27182   echo "$as_me: failed program was:" >&5
27183 sed 's/^/| /' conftest.$ac_ext >&5
27184
27185
27186           ac_cv_openssl_export="yes"
27187
27188
27189 fi
27190
27191 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27192       conftest$ac_exeext conftest.$ac_ext
27193
27194    LIBS="${saved_LIBS}"
27195    CFLAGS="${saved_CFLAGS}"
27196
27197    if test "$support_tls" = "yes"; then
27198
27199 cat >>confdefs.h <<\_ACEOF
27200 #define HAVE_OPENSSL 1
27201 _ACEOF
27202
27203
27204 cat >>confdefs.h <<\_ACEOF
27205 #define HAVE_TLS 1
27206 _ACEOF
27207
27208
27209 cat >>confdefs.h <<\_ACEOF
27210 #define HAVE_CRYPTO 1
27211 _ACEOF
27212
27213    fi
27214
27215    if test "$ac_cv_openssl_sha2" = "yes"; then
27216
27217 cat >>confdefs.h <<\_ACEOF
27218 #define HAVE_SHA2 1
27219 _ACEOF
27220
27221    fi
27222
27223    if test "$ac_cv_openssl_export" = "yes"; then
27224
27225 cat >>confdefs.h <<\_ACEOF
27226 #define HAVE_OPENSSL_EXPORT_LIBRARY 1
27227 _ACEOF
27228
27229    fi
27230 else
27231    support_tls="no"
27232    support_crypto="no"
27233    OPENSSL_LIBS=""
27234    OPENSSL_INC=""
27235 fi
27236
27237 { echo "$as_me:$LINENO: result: $support_tls" >&5
27238 echo "${ECHO_T}$support_tls" >&6; }
27239
27240
27241
27242 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
27243 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
27244 if test "${ac_cv_search_dlopen+set}" = set; then
27245   echo $ECHO_N "(cached) $ECHO_C" >&6
27246 else
27247   ac_func_search_save_LIBS=$LIBS
27248 cat >conftest.$ac_ext <<_ACEOF
27249 /* confdefs.h.  */
27250 _ACEOF
27251 cat confdefs.h >>conftest.$ac_ext
27252 cat >>conftest.$ac_ext <<_ACEOF
27253 /* end confdefs.h.  */
27254
27255 /* Override any GCC internal prototype to avoid an error.
27256    Use char because int might match the return type of a GCC
27257    builtin and then its argument prototype would still apply.  */
27258 #ifdef __cplusplus
27259 extern "C"
27260 #endif
27261 char dlopen ();
27262 int
27263 main ()
27264 {
27265 return dlopen ();
27266   ;
27267   return 0;
27268 }
27269 _ACEOF
27270 for ac_lib in '' dl; do
27271   if test -z "$ac_lib"; then
27272     ac_res="none required"
27273   else
27274     ac_res=-l$ac_lib
27275     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27276   fi
27277   rm -f conftest.$ac_objext conftest$ac_exeext
27278 if { (ac_try="$ac_link"
27279 case "(($ac_try" in
27280   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27281   *) ac_try_echo=$ac_try;;
27282 esac
27283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27284   (eval "$ac_link") 2>conftest.er1
27285   ac_status=$?
27286   grep -v '^ *+' conftest.er1 >conftest.err
27287   rm -f conftest.er1
27288   cat conftest.err >&5
27289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27290   (exit $ac_status); } && {
27291          test -z "$ac_c_werror_flag" ||
27292          test ! -s conftest.err
27293        } && test -s conftest$ac_exeext &&
27294        $as_test_x conftest$ac_exeext; then
27295   ac_cv_search_dlopen=$ac_res
27296 else
27297   echo "$as_me: failed program was:" >&5
27298 sed 's/^/| /' conftest.$ac_ext >&5
27299
27300
27301 fi
27302
27303 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27304       conftest$ac_exeext
27305   if test "${ac_cv_search_dlopen+set}" = set; then
27306   break
27307 fi
27308 done
27309 if test "${ac_cv_search_dlopen+set}" = set; then
27310   :
27311 else
27312   ac_cv_search_dlopen=no
27313 fi
27314 rm conftest.$ac_ext
27315 LIBS=$ac_func_search_save_LIBS
27316 fi
27317 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
27318 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
27319 ac_res=$ac_cv_search_dlopen
27320 if test "$ac_res" != no; then
27321   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27322
27323 fi
27324
27325
27326 working_dir=`eval echo ${prefix}/var/bacula/working`
27327
27328 # Check whether --with-working-dir was given.
27329 if test "${with_working_dir+set}" = set; then
27330   withval=$with_working_dir;
27331        if test "x$withval" != "xno" ; then
27332          working_dir=$withval
27333        fi
27334
27335
27336 fi
27337
27338
27339
27340
27341 archivedir=/tmp
27342
27343 # Check whether --with-archivedir was given.
27344 if test "${with_archivedir+set}" = set; then
27345   withval=$with_archivedir;
27346        if test "x$withval" != "xno" ; then
27347           archivedir=$withval
27348        fi
27349
27350
27351 fi
27352
27353
27354
27355
27356 basename=`hostname`
27357
27358 # Check whether --with-basename was given.
27359 if test "${with_basename+set}" = set; then
27360   withval=$with_basename;
27361        if test "x$withval" != "xno" ; then
27362           basename=$withval
27363        fi
27364
27365
27366 fi
27367
27368
27369
27370
27371
27372 scriptdir=`eval echo ${sysconfdir}`
27373
27374 # Check whether --with-scriptdir was given.
27375 if test "${with_scriptdir+set}" = set; then
27376   withval=$with_scriptdir;
27377        if test "x$withval" != "xno" ; then
27378           scriptdir=$withval
27379        fi
27380
27381
27382 fi
27383
27384
27385
27386
27387
27388 bsrdir=/tmp
27389
27390 # Check whether --with-bsrdir was given.
27391 if test "${with_bsrdir+set}" = set; then
27392   withval=$with_bsrdir;
27393        if test "x$withval" != "xno" ; then
27394           bsrdir=$withval
27395        fi
27396
27397
27398 fi
27399
27400
27401
27402
27403 logdir=/tmp
27404
27405 # Check whether --with-logdir was given.
27406 if test "${with_logdir+set}" = set; then
27407   withval=$with_logdir;
27408        if test "x$withval" != "xno" ; then
27409           logdir=$withval
27410        fi
27411
27412
27413 fi
27414
27415
27416
27417
27418
27419 # ------------------------------------------
27420 # Where to place plugindir (plugin files)
27421 # ------------------------------------------
27422 plugindir=`eval echo ${libdir}`
27423
27424 # Check whether --with-plugindir was given.
27425 if test "${with_plugindir+set}" = set; then
27426   withval=$with_plugindir;
27427        if test "x$withval" != "xno" ; then
27428           plugindir=$withval
27429        fi
27430
27431
27432 fi
27433
27434
27435
27436
27437 dump_email=root@localhost
27438
27439 # Check whether --with-dump-email was given.
27440 if test "${with_dump_email+set}" = set; then
27441   withval=$with_dump_email;
27442        if test "x$withval" != "xno" ; then
27443           dump_email=$withval
27444        fi
27445
27446
27447 fi
27448
27449
27450
27451
27452 job_email=root@localhost
27453
27454 # Check whether --with-job-email was given.
27455 if test "${with_job_email+set}" = set; then
27456   withval=$with_job_email;
27457        if test "x$withval" != "xno" ; then
27458           job_email=$withval
27459        fi
27460
27461
27462 fi
27463
27464
27465
27466
27467 smtp_host=localhost
27468
27469 # Check whether --with-smtp_host was given.
27470 if test "${with_smtp_host+set}" = set; then
27471   withval=$with_smtp_host;
27472        if test "x$withval" != "xno" ; then
27473           smtp_host=$withval
27474        fi
27475
27476
27477 fi
27478
27479
27480
27481
27482 piddir=/var/run
27483
27484 # Check whether --with-pid-dir was given.
27485 if test "${with_pid_dir+set}" = set; then
27486   withval=$with_pid_dir;
27487        if test "x$withval" != "xno" ; then
27488           piddir=$withval
27489        fi
27490
27491
27492 fi
27493
27494
27495 cat >>confdefs.h <<_ACEOF
27496 #define _PATH_BACULA_PIDDIR "$piddir"
27497 _ACEOF
27498
27499
27500
27501 subsysdir=/var/run/subsys
27502 if test -d /var/run/subsys; then
27503    subsysdir=/var/run/subsys
27504 elif test -d /var/lock/subsys; then
27505    subsysdir=/var/lock/subsys
27506 else
27507    subsysdir=/var/run/subsys
27508 fi
27509
27510 # Check whether --with-subsys-dir was given.
27511 if test "${with_subsys_dir+set}" = set; then
27512   withval=$with_subsys_dir;
27513        if test "x$withval" != "xno" ; then
27514           subsysdir=$withval
27515        fi
27516
27517
27518 fi
27519
27520
27521
27522
27523 baseport=9101
27524
27525 # Check whether --with-baseport was given.
27526 if test "${with_baseport+set}" = set; then
27527   withval=$with_baseport;
27528        if test "x$withval" != "xno" ; then
27529           baseport=$withval
27530        fi
27531
27532
27533 fi
27534
27535
27536
27537 dir_port=`expr $baseport`
27538 fd_port=`expr $baseport + 1`
27539 sd_port=`expr $fd_port + 1`
27540
27541
27542
27543
27544
27545 dir_password=
27546
27547 # Check whether --with-dir-password was given.
27548 if test "${with_dir_password+set}" = set; then
27549   withval=$with_dir_password;
27550        if test "x$withval" != "xno" ; then
27551           dir_password=$withval
27552        fi
27553
27554
27555 fi
27556
27557
27558 if test "x$dir_password" = "x" ; then
27559    if test "x$OPENSSL" = "xnone" ; then
27560       key=`autoconf/randpass 33`
27561    else
27562       key=`openssl rand -base64 33`
27563    fi
27564    dir_password=$key
27565 fi
27566
27567 fd_password=
27568
27569 # Check whether --with-fd-password was given.
27570 if test "${with_fd_password+set}" = set; then
27571   withval=$with_fd_password;
27572        if test "x$withval" != "xno" ; then
27573           fd_password=$withval
27574        fi
27575
27576
27577 fi
27578
27579
27580 if test "x$fd_password" = "x" ; then
27581    if test "x$OPENSSL" = "xnone" ; then
27582       key=`autoconf/randpass 37`
27583    else
27584       key=`openssl rand -base64 33`
27585    fi
27586    fd_password=$key
27587 fi
27588
27589 sd_password=
27590
27591 # Check whether --with-sd-password was given.
27592 if test "${with_sd_password+set}" = set; then
27593   withval=$with_sd_password;
27594        if test "x$withval" != "xno" ; then
27595           sd_password=$withval
27596        fi
27597
27598
27599 fi
27600
27601
27602 if test "x$sd_password" = "x" ; then
27603    if test "x$OPENSSL" = "xnone" ; then
27604       key=`autoconf/randpass 41`
27605    else
27606       key=`openssl rand -base64 33`
27607    fi
27608    sd_password=$key
27609 fi
27610
27611 mon_dir_password=
27612
27613 # Check whether --with-mon-dir-password was given.
27614 if test "${with_mon_dir_password+set}" = set; then
27615   withval=$with_mon_dir_password;
27616        if test "x$withval" != "xno" ; then
27617           mon_dir_password=$withval
27618        fi
27619
27620
27621 fi
27622
27623
27624 if test "x$mon_dir_password" = "x" ; then
27625    if test "x$OPENSSL" = "xnone" ; then
27626       key=`autoconf/randpass 33`
27627    else
27628       key=`openssl rand -base64 33`
27629    fi
27630    mon_dir_password=$key
27631 fi
27632
27633 mon_fd_password=
27634
27635 # Check whether --with-mon-fd-password was given.
27636 if test "${with_mon_fd_password+set}" = set; then
27637   withval=$with_mon_fd_password;
27638        if test "x$withval" != "xno" ; then
27639           mon_fd_password=$withval
27640        fi
27641
27642
27643 fi
27644
27645
27646 if test "x$mon_fd_password" = "x" ; then
27647    if test "x$OPENSSL" = "xnone" ; then
27648       key=`autoconf/randpass 37`
27649    else
27650       key=`openssl rand -base64 33`
27651    fi
27652    mon_fd_password=$key
27653 fi
27654
27655 mon_sd_password=
27656
27657 # Check whether --with-mon-sd-password was given.
27658 if test "${with_mon_sd_password+set}" = set; then
27659   withval=$with_mon_sd_password;
27660        if test "x$withval" != "xno" ; then
27661           mon_sd_password=$withval
27662        fi
27663
27664
27665 fi
27666
27667
27668 if test "x$mon_sd_password" = "x" ; then
27669    if test "x$OPENSSL" = "xnone" ; then
27670       key=`autoconf/randpass 41`
27671    else
27672       key=`openssl rand -base64 33`
27673    fi
27674    mon_sd_password=$key
27675 fi
27676
27677
27678
27679
27680
27681
27682
27683
27684 db_name=bacula
27685
27686 # Check whether --with-db_name was given.
27687 if test "${with_db_name+set}" = set; then
27688   withval=$with_db_name;
27689        if test "x$withval" != "x" ; then
27690           db_name=$withval
27691        fi
27692
27693
27694 fi
27695
27696
27697
27698 db_user=bacula
27699
27700 # Check whether --with-db_user was given.
27701 if test "${with_db_user+set}" = set; then
27702   withval=$with_db_user;
27703        if test "x$withval" != "x" ; then
27704           db_user=$withval
27705        fi
27706
27707
27708 fi
27709
27710
27711
27712 db_password=
27713
27714 # Check whether --with-db_password was given.
27715 if test "${with_db_password+set}" = set; then
27716   withval=$with_db_password;
27717        if test "x$withval" != "x" ; then
27718           db_password=$withval
27719        fi
27720
27721
27722 fi
27723
27724
27725
27726 db_port=" "
27727
27728 # Check whether --with-db_port was given.
27729 if test "${with_db_port+set}" = set; then
27730   withval=$with_db_port;
27731        if test "x$withval" != "x" ; then
27732           db_port=$withval
27733        fi
27734
27735
27736 fi
27737
27738
27739
27740 #
27741 # Handle users and groups for each daemon
27742 #
27743 dir_user=
27744
27745 # Check whether --with-dir_user was given.
27746 if test "${with_dir_user+set}" = set; then
27747   withval=$with_dir_user;
27748        if test "x$withval" != "x" ; then
27749            dir_user=$withval
27750        fi
27751
27752
27753 fi
27754
27755
27756 dir_group=
27757
27758 # Check whether --with-dir_group was given.
27759 if test "${with_dir_group+set}" = set; then
27760   withval=$with_dir_group;
27761        if test "x$withval" != "x" ; then
27762           dir_group=$withval
27763        fi
27764
27765
27766 fi
27767
27768
27769 sd_user=
27770
27771 # Check whether --with-sd_user was given.
27772 if test "${with_sd_user+set}" = set; then
27773   withval=$with_sd_user;
27774        if test "x$withval" != "x" ; then
27775           sd_user=$withval
27776        fi
27777
27778
27779 fi
27780
27781
27782 sd_group=
27783
27784 # Check whether --with-sd_group was given.
27785 if test "${with_sd_group+set}" = set; then
27786   withval=$with_sd_group;
27787        if test "x$withval" != "x" ; then
27788           sd_group=$withval
27789        fi
27790
27791
27792 fi
27793
27794
27795 fd_user=
27796
27797 # Check whether --with-fd_user was given.
27798 if test "${with_fd_user+set}" = set; then
27799   withval=$with_fd_user;
27800        if test "x$withval" != "x" ; then
27801           fd_user=$withval
27802        fi
27803
27804
27805 fi
27806
27807
27808 fd_group=
27809
27810 # Check whether --with-fd_group was given.
27811 if test "${with_fd_group+set}" = set; then
27812   withval=$with_fd_group;
27813        if test "x$withval" != "x" ; then
27814           fd_group=$withval
27815        fi
27816
27817
27818 fi
27819
27820
27821
27822
27823
27824
27825
27826
27827
27828 SBINPERM=0754
27829
27830 # Check whether --with-sbin-perm was given.
27831 if test "${with_sbin_perm+set}" = set; then
27832   withval=$with_sbin_perm;
27833        if test "x$withval" != "x" ; then
27834           SBINPERM=$withval
27835        fi
27836
27837
27838 fi
27839
27840
27841
27842
27843 SQL_LIB=
27844
27845 db_found=no
27846 { echo "$as_me:$LINENO: checking for PostgreSQL support" >&5
27847 echo $ECHO_N "checking for PostgreSQL support... $ECHO_C" >&6; }
27848
27849 # Check whether --with-postgresql was given.
27850 if test "${with_postgresql+set}" = set; then
27851   withval=$with_postgresql;
27852   if test "$withval" != "no"; then
27853       if test "$db_found" = "yes"; then
27854           { echo "$as_me:$LINENO: result: error" >&5
27855 echo "${ECHO_T}error" >&6; }
27856           { { echo "$as_me:$LINENO: error: \"You can configure for only one database.\"" >&5
27857 echo "$as_me: error: \"You can configure for only one database.\"" >&2;}
27858    { (exit 1); exit 1; }; };
27859       fi
27860       if test "$withval" = "yes"; then
27861           PG_CONFIG=`which pg_config`
27862           if test -n "$PG_CONFIG";then
27863               POSTGRESQL_INCDIR=`"$PG_CONFIG" --includedir`
27864               POSTGRESQL_LIBDIR=`"$PG_CONFIG" --libdir`
27865               POSTGRESQL_BINDIR=`"$PG_CONFIG" --bindir`
27866           elif test -f /usr/local/include/libpq-fe.h; then
27867               POSTGRESQL_INCDIR=/usr/local/include
27868               if test -d /usr/local/lib64; then
27869                  POSTGRESQL_LIBDIR=/usr/local/lib64
27870               else
27871                  POSTGRESQL_LIBDIR=/usr/local/lib
27872               fi
27873               POSTGRESQL_BINDIR=/usr/local/bin
27874           elif test -f /usr/include/libpq-fe.h; then
27875               POSTGRESQL_INCDIR=/usr/include
27876               if test -d /usr/lib64; then
27877                  POSTGRESQL_LIBDIR=/usr/lib64
27878               else
27879                  POSTGRESQL_LIBDIR=/usr/lib
27880               fi
27881               POSTGRESQL_BINDIR=/usr/bin
27882           elif test -f /usr/include/pgsql/libpq-fe.h; then
27883               POSTGRESQL_INCDIR=/usr/include/pgsql
27884               if test -d /usr/lib64/pgsql; then
27885                  POSTGRESQL_LIBDIR=/usr/lib64/pgsql
27886               else
27887                  POSTGRESQL_LIBDIR=/usr/lib/pgsql
27888               fi
27889               POSTGRESQL_BINDIR=/usr/bin
27890           elif test -f /usr/include/postgresql/libpq-fe.h; then
27891               POSTGRESQL_INCDIR=/usr/include/postgresql
27892               if test -d /usr/lib64/postgresql; then
27893                  POSTGRESQL_LIBDIR=/usr/lib64/postgresql
27894               else
27895                  POSTGRESQL_LIBDIR=/usr/lib/postgresql
27896               fi
27897               POSTGRESQL_BINDIR=/usr/bin
27898           else
27899               { echo "$as_me:$LINENO: result: no" >&5
27900 echo "${ECHO_T}no" >&6; }
27901               { { echo "$as_me:$LINENO: error: Unable to find libpq-fe.h in standard locations" >&5
27902 echo "$as_me: error: Unable to find libpq-fe.h in standard locations" >&2;}
27903    { (exit 1); exit 1; }; }
27904           fi
27905       elif test -f $withval/include/libpq-fe.h; then
27906           POSTGRESQL_INCDIR=$withval/include
27907           POSTGRESQL_LIBDIR=$withval/lib
27908           POSTGRESQL_BINDIR=$withval/bin
27909       elif test -f $withval/include/postgresql/libpq-fe.h; then
27910           POSTGRESQL_INCDIR=$withval/include/postgresql
27911      if test -d $withval/lib64; then
27912          POSTGRESQL_LIBDIR=$withval/lib64
27913      else
27914          POSTGRESQL_LIBDIR=$withval/lib
27915      fi
27916           POSTGRESQL_BINDIR=$withval/bin
27917       else
27918           { echo "$as_me:$LINENO: result: no" >&5
27919 echo "${ECHO_T}no" >&6; }
27920           { { echo "$as_me:$LINENO: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&5
27921 echo "$as_me: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&2;}
27922    { (exit 1); exit 1; }; }
27923       fi
27924       POSTGRESQL_LFLAGS="-L$POSTGRESQL_LIBDIR -lpq"
27925       { echo "$as_me:$LINENO: checking for crypt" >&5
27926 echo $ECHO_N "checking for crypt... $ECHO_C" >&6; }
27927 if test "${ac_cv_func_crypt+set}" = set; then
27928   echo $ECHO_N "(cached) $ECHO_C" >&6
27929 else
27930   cat >conftest.$ac_ext <<_ACEOF
27931 /* confdefs.h.  */
27932 _ACEOF
27933 cat confdefs.h >>conftest.$ac_ext
27934 cat >>conftest.$ac_ext <<_ACEOF
27935 /* end confdefs.h.  */
27936 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
27937    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27938 #define crypt innocuous_crypt
27939
27940 /* System header to define __stub macros and hopefully few prototypes,
27941     which can conflict with char crypt (); below.
27942     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27943     <limits.h> exists even on freestanding compilers.  */
27944
27945 #ifdef __STDC__
27946 # include <limits.h>
27947 #else
27948 # include <assert.h>
27949 #endif
27950
27951 #undef crypt
27952
27953 /* Override any GCC internal prototype to avoid an error.
27954    Use char because int might match the return type of a GCC
27955    builtin and then its argument prototype would still apply.  */
27956 #ifdef __cplusplus
27957 extern "C"
27958 #endif
27959 char crypt ();
27960 /* The GNU C library defines this for functions which it implements
27961     to always fail with ENOSYS.  Some functions are actually named
27962     something starting with __ and the normal name is an alias.  */
27963 #if defined __stub_crypt || defined __stub___crypt
27964 choke me
27965 #endif
27966
27967 int
27968 main ()
27969 {
27970 return crypt ();
27971   ;
27972   return 0;
27973 }
27974 _ACEOF
27975 rm -f conftest.$ac_objext conftest$ac_exeext
27976 if { (ac_try="$ac_link"
27977 case "(($ac_try" in
27978   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27979   *) ac_try_echo=$ac_try;;
27980 esac
27981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27982   (eval "$ac_link") 2>conftest.er1
27983   ac_status=$?
27984   grep -v '^ *+' conftest.er1 >conftest.err
27985   rm -f conftest.er1
27986   cat conftest.err >&5
27987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27988   (exit $ac_status); } && {
27989          test -z "$ac_c_werror_flag" ||
27990          test ! -s conftest.err
27991        } && test -s conftest$ac_exeext &&
27992        $as_test_x conftest$ac_exeext; then
27993   ac_cv_func_crypt=yes
27994 else
27995   echo "$as_me: failed program was:" >&5
27996 sed 's/^/| /' conftest.$ac_ext >&5
27997
27998         ac_cv_func_crypt=no
27999 fi
28000
28001 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28002       conftest$ac_exeext conftest.$ac_ext
28003 fi
28004 { echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
28005 echo "${ECHO_T}$ac_cv_func_crypt" >&6; }
28006 if test $ac_cv_func_crypt = yes; then
28007   :
28008 else
28009   { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
28010 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
28011 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
28012   echo $ECHO_N "(cached) $ECHO_C" >&6
28013 else
28014   ac_check_lib_save_LIBS=$LIBS
28015 LIBS="-lcrypt  $LIBS"
28016 cat >conftest.$ac_ext <<_ACEOF
28017 /* confdefs.h.  */
28018 _ACEOF
28019 cat confdefs.h >>conftest.$ac_ext
28020 cat >>conftest.$ac_ext <<_ACEOF
28021 /* end confdefs.h.  */
28022
28023 /* Override any GCC internal prototype to avoid an error.
28024    Use char because int might match the return type of a GCC
28025    builtin and then its argument prototype would still apply.  */
28026 #ifdef __cplusplus
28027 extern "C"
28028 #endif
28029 char crypt ();
28030 int
28031 main ()
28032 {
28033 return crypt ();
28034   ;
28035   return 0;
28036 }
28037 _ACEOF
28038 rm -f conftest.$ac_objext conftest$ac_exeext
28039 if { (ac_try="$ac_link"
28040 case "(($ac_try" in
28041   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28042   *) ac_try_echo=$ac_try;;
28043 esac
28044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28045   (eval "$ac_link") 2>conftest.er1
28046   ac_status=$?
28047   grep -v '^ *+' conftest.er1 >conftest.err
28048   rm -f conftest.er1
28049   cat conftest.err >&5
28050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28051   (exit $ac_status); } && {
28052          test -z "$ac_c_werror_flag" ||
28053          test ! -s conftest.err
28054        } && test -s conftest$ac_exeext &&
28055        $as_test_x conftest$ac_exeext; then
28056   ac_cv_lib_crypt_crypt=yes
28057 else
28058   echo "$as_me: failed program was:" >&5
28059 sed 's/^/| /' conftest.$ac_ext >&5
28060
28061         ac_cv_lib_crypt_crypt=no
28062 fi
28063
28064 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28065       conftest$ac_exeext conftest.$ac_ext
28066 LIBS=$ac_check_lib_save_LIBS
28067 fi
28068 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
28069 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
28070 if test $ac_cv_lib_crypt_crypt = yes; then
28071   POSTGRESQL_LFLAGS="$POSTGRESQL_LFLAGS -lcrypt"
28072 fi
28073
28074 fi
28075
28076       SQL_INCLUDE=-I$POSTGRESQL_INCDIR
28077       SQL_LFLAGS=$POSTGRESQL_LFLAGS
28078       SQL_BINDIR=$POSTGRESQL_BINDIR
28079       SQL_LIB=$POSTGRESQL_LIBDIR/libpq.a
28080
28081       cat >>confdefs.h <<\_ACEOF
28082 #define HAVE_POSTGRESQL 1
28083 _ACEOF
28084
28085       { echo "$as_me:$LINENO: result: yes" >&5
28086 echo "${ECHO_T}yes" >&6; }
28087       db_found=yes
28088       support_postgresql=yes
28089       db_type=PostgreSQL
28090       DB_TYPE=postgresql
28091   else
28092       { echo "$as_me:$LINENO: result: no" >&5
28093 echo "${ECHO_T}no" >&6; }
28094   fi
28095
28096 else
28097
28098   { echo "$as_me:$LINENO: result: no" >&5
28099 echo "${ECHO_T}no" >&6; }
28100
28101 fi
28102
28103
28104
28105
28106
28107
28108
28109
28110 db_found=no
28111 { echo "$as_me:$LINENO: checking for MySQL support" >&5
28112 echo $ECHO_N "checking for MySQL support... $ECHO_C" >&6; }
28113
28114 # Check whether --with-mysql was given.
28115 if test "${with_mysql+set}" = set; then
28116   withval=$with_mysql;
28117   if test "$withval" != "no"; then
28118         if test "$withval" = "yes"; then
28119            if test -f /usr/local/mysql/include/mysql/mysql.h; then
28120                    MYSQL_INCDIR=/usr/local/mysql/include/mysql
28121                    if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
28122                         -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
28123                            MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
28124                    else
28125                            MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
28126                    fi
28127                    MYSQL_BINDIR=/usr/local/mysql/bin
28128            elif test -f /usr/include/mysql/mysql.h; then
28129                    MYSQL_INCDIR=/usr/include/mysql
28130                    if test -f /usr/lib64/mysql/libmysqlclient_r.a \
28131                         -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
28132                            MYSQL_LIBDIR=/usr/lib64/mysql
28133                    elif test -f /usr/lib64/libmysqlclient_r.a \
28134                         -o -f /usr/lib64/libmysqlclient_r.so; then
28135                            MYSQL_LIBDIR=/usr/lib64
28136                    elif test -f /usr/lib/mysql/libmysqlclient_r.a \
28137                           -o -f /usr/lib/mysql/libmysqlclient_r.so; then
28138                            MYSQL_LIBDIR=/usr/lib/mysql
28139                    else
28140                            MYSQL_LIBDIR=/usr/lib
28141                    fi
28142                    MYSQL_BINDIR=/usr/bin
28143            elif test -f /usr/include/mysql.h; then
28144                    MYSQL_INCDIR=/usr/include
28145                    if test -f /usr/lib64/libmysqlclient_r.a \
28146                         -o -f /usr/lib64/libmysqlclient_r.so; then
28147                            MYSQL_LIBDIR=/usr/lib64
28148                    else
28149                            MYSQL_LIBDIR=/usr/lib
28150                    fi
28151                    MYSQL_BINDIR=/usr/bin
28152            elif test -f /usr/local/include/mysql/mysql.h; then
28153                    MYSQL_INCDIR=/usr/local/include/mysql
28154                    if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
28155                         -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
28156                            MYSQL_LIBDIR=/usr/local/lib64/mysql
28157                    else
28158                            MYSQL_LIBDIR=/usr/local/lib/mysql
28159                    fi
28160                    MYSQL_BINDIR=/usr/local/bin
28161            elif test -f /usr/local/include/mysql.h; then
28162                    MYSQL_INCDIR=/usr/local/include
28163                    if test -f /usr/local/lib64/libmysqlclient_r.a \
28164                         -o -f /usr/local/lib64/libmysqlclient_r.so; then
28165                            MYSQL_LIBDIR=/usr/local/lib64
28166                    else
28167                            MYSQL_LIBDIR=/usr/local/lib
28168                    fi
28169                    MYSQL_BINDIR=/usr/local/bin
28170            else
28171               { echo "$as_me:$LINENO: result: no" >&5
28172 echo "${ECHO_T}no" >&6; }
28173               { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
28174 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
28175    { (exit 1); exit 1; }; }
28176            fi
28177         else
28178            if test -f $withval/include/mysql/mysql.h; then
28179               MYSQL_INCDIR=$withval/include/mysql
28180               if test -f $withval/lib64/mysql/libmysqlclient_r.a \
28181                    -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
28182                  MYSQL_LIBDIR=$withval/lib64/mysql
28183               elif test -f $withval/lib64/libmysqlclient_r.a \
28184                    -o -f $withval/lib64/libmysqlclient_r.so; then
28185                  MYSQL_LIBDIR=$withval/lib64
28186               elif test -f $withval/lib/libmysqlclient_r.a \
28187                    -o -f $withval/lib/libmysqlclient_r.so; then
28188                  MYSQL_LIBDIR=$withval/lib
28189               else
28190                  MYSQL_LIBDIR=$withval/lib/mysql
28191               fi
28192               MYSQL_BINDIR=$withval/bin
28193            elif test -f $withval/include/mysql.h; then
28194               MYSQL_INCDIR=$withval/include
28195               if test -f $withval/lib64/libmysqlclient_r.a \
28196                    -o -f $withval/lib64/libmysqlclient_r.so; then
28197                  MYSQL_LIBDIR=$withval/lib64
28198               else
28199                  MYSQL_LIBDIR=$withval/lib
28200               fi
28201               MYSQL_BINDIR=$withval/bin
28202            else
28203               { echo "$as_me:$LINENO: result: no" >&5
28204 echo "${ECHO_T}no" >&6; }
28205               { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
28206 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
28207    { (exit 1); exit 1; }; }
28208            fi
28209         fi
28210     SQL_INCLUDE=-I$MYSQL_INCDIR
28211     if test -f $MYSQL_LIBDIR/libmysqlclient_r.a \
28212          -o -f $MYSQL_LIBDIR/libmysqlclient_r.so; then
28213        SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
28214        cat >>confdefs.h <<\_ACEOF
28215 #define HAVE_THREAD_SAFE_MYSQL 1
28216 _ACEOF
28217
28218     fi
28219     SQL_BINDIR=$MYSQL_BINDIR
28220     SQL_LIB=$MYSQL_LIBDIR/libmysqlclient_r.a
28221
28222     cat >>confdefs.h <<\_ACEOF
28223 #define HAVE_MYSQL 1
28224 _ACEOF
28225
28226     { echo "$as_me:$LINENO: result: yes" >&5
28227 echo "${ECHO_T}yes" >&6; }
28228     db_found=yes
28229     support_mysql=yes
28230     db_type=MySQL
28231     DB_TYPE=mysql
28232
28233   else
28234         { echo "$as_me:$LINENO: result: no" >&5
28235 echo "${ECHO_T}no" >&6; }
28236   fi
28237
28238
28239 fi
28240
28241
28242
28243 # Check whether --with-embedded-mysql was given.
28244 if test "${with_embedded_mysql+set}" = set; then
28245   withval=$with_embedded_mysql;
28246   if test "$withval" != "no"; then
28247         if test "$withval" = "yes"; then
28248                 if test -f /usr/local/mysql/include/mysql/mysql.h; then
28249                         MYSQL_INCDIR=/usr/local/mysql/include/mysql
28250                         if test -d /usr/local/mysql/lib64/mysql; then
28251                                 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
28252                         else
28253                                 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
28254                         fi
28255                         MYSQL_BINDIR=/usr/local/mysql/bin
28256                 elif test -f /usr/include/mysql/mysql.h; then
28257                         MYSQL_INCDIR=/usr/include/mysql
28258                         if test -d /usr/lib64/mysql; then
28259                                 MYSQL_LIBDIR=/usr/lib64/mysql
28260                         else
28261                                 MYSQL_LIBDIR=/usr/lib/mysql
28262                         fi
28263                         MYSQL_BINDIR=/usr/bin
28264                 elif test -f /usr/include/mysql.h; then
28265                         MYSQL_INCDIR=/usr/include
28266                         if test -d /usr/lib64; then
28267                                 MYSQL_LIBDIR=/usr/lib64
28268                         else
28269                                 MYSQL_LIBDIR=/usr/lib
28270                         fi
28271                         MYSQL_BINDIR=/usr/bin
28272                 elif test -f /usr/local/include/mysql/mysql.h; then
28273                         MYSQL_INCDIR=/usr/local/include/mysql
28274                         if test -d /usr/local/lib64/mysql; then
28275                                 MYSQL_LIBDIR=/usr/local/lib64/mysql
28276                         else
28277                                 MYSQL_LIBDIR=/usr/local/lib/mysql
28278                         fi
28279                         MYSQL_BINDIR=/usr/local/bin
28280                 elif test -f /usr/local/include/mysql.h; then
28281                         MYSQL_INCDIR=/usr/local/include
28282                         if test -d /usr/local/lib64; then
28283                                 MYSQL_LIBDIR=/usr/local/lib64
28284                         else
28285                                 MYSQL_LIBDIR=/usr/local/lib
28286                         fi
28287                         MYSQL_BINDIR=/usr/local/bin
28288                 else
28289                    { echo "$as_me:$LINENO: result: no" >&5
28290 echo "${ECHO_T}no" >&6; }
28291                    { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
28292 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
28293    { (exit 1); exit 1; }; }
28294                 fi
28295         else
28296                 if test -f $withval/include/mysql/mysql.h; then
28297                         MYSQL_INCDIR=$withval/include/mysql
28298                         if test -d $withval/lib64/mysql; then
28299                                 MYSQL_LIBDIR=$withval/lib64/mysql
28300                         else
28301                                 MYSQL_LIBDIR=$withval/lib/mysql
28302                         fi
28303                         MYSQL_BINDIR=$withval/bin
28304                 elif test -f $withval/include/mysql.h; then
28305                         MYSQL_INCDIR=$withval/include
28306                         if test -d $withval/lib64; then
28307                                 MYSQL_LIBDIR=$withval/lib64
28308                         else
28309                                 MYSQL_LIBDIR=$withval/lib
28310                         fi
28311                         MYSQL_BINDIR=$withval/bin
28312                 else
28313                    { echo "$as_me:$LINENO: result: no" >&5
28314 echo "${ECHO_T}no" >&6; }
28315                    { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
28316 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
28317    { (exit 1); exit 1; }; }
28318                 fi
28319         fi
28320     SQL_INCLUDE=-I$MYSQL_INCDIR
28321     SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
28322     SQL_BINDIR=$MYSQL_BINDIR
28323     SQL_LIB=$MYSQL_LIBDIR/libmysqld.a
28324
28325     cat >>confdefs.h <<\_ACEOF
28326 #define HAVE_MYSQL 1
28327 _ACEOF
28328
28329     cat >>confdefs.h <<\_ACEOF
28330 #define HAVE_EMBEDDED_MYSQL 1
28331 _ACEOF
28332
28333     { echo "$as_me:$LINENO: result: yes" >&5
28334 echo "${ECHO_T}yes" >&6; }
28335     db_found=yes
28336     support_mysql=yes
28337     db_type=MySQL
28338     DB_TYPE=mysql
28339
28340   else
28341         { echo "$as_me:$LINENO: result: no" >&5
28342 echo "${ECHO_T}no" >&6; }
28343   fi
28344
28345
28346 fi
28347
28348
28349
28350
28351
28352
28353
28354
28355
28356
28357 db_found=no
28358 { echo "$as_me:$LINENO: checking for SQLite3 support" >&5
28359 echo $ECHO_N "checking for SQLite3 support... $ECHO_C" >&6; }
28360
28361 # Check whether --with-sqlite3 was given.
28362 if test "${with_sqlite3+set}" = set; then
28363   withval=$with_sqlite3;
28364   if test "$withval" != "no"; then
28365      if test "$withval" = "yes"; then
28366         if test -f /usr/local/include/sqlite3.h; then
28367            SQLITE_INCDIR=/usr/local/include
28368            if test -d /usr/local/lib64; then
28369               SQLITE_LIBDIR=/usr/local/lib64
28370            else
28371               SQLITE_LIBDIR=/usr/local/lib
28372            fi
28373            SQLITE_BINDIR=/usr/local/bin
28374         elif test -f /usr/include/sqlite3.h; then
28375            SQLITE_INCDIR=/usr/include
28376            if test -d /usr/lib64; then
28377               SQLITE_LIBDIR=/usr/lib64
28378            else
28379               SQLITE_LIBDIR=/usr/lib
28380            fi
28381            SQLITE_BINDIR=/usr/bin
28382         elif test -f $prefix/include/sqlite3.h; then
28383            SQLITE_INCDIR=$prefix/include
28384            if test -d $prefix/lib64; then
28385               SQLITE_LIBDIR=$prefix/lib64
28386            else
28387               SQLITE_LIBDIR=$prefix/lib
28388            fi
28389            SQLITE_BINDIR=$prefix/bin
28390         else
28391            { echo "$as_me:$LINENO: result: no" >&5
28392 echo "${ECHO_T}no" >&6; }
28393            { { echo "$as_me:$LINENO: error: Unable to find sqlite3.h in standard locations" >&5
28394 echo "$as_me: error: Unable to find sqlite3.h in standard locations" >&2;}
28395    { (exit 1); exit 1; }; }
28396         fi
28397      else
28398         if test -f $withval/sqlite3.h; then
28399            SQLITE_INCDIR=$withval
28400            SQLITE_LIBDIR=$withval
28401            SQLITE_BINDIR=$withval
28402         elif test -f $withval/include/sqlite3.h; then
28403            SQLITE_INCDIR=$withval/include
28404            if test -d $withval/lib64; then
28405               SQLITE_LIBDIR=$withval/lib64
28406            else
28407               SQLITE_LIBDIR=$withval/lib
28408            fi
28409            SQLITE_BINDIR=$withval/bin
28410         else
28411            { echo "$as_me:$LINENO: result: no" >&5
28412 echo "${ECHO_T}no" >&6; }
28413            { { echo "$as_me:$LINENO: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&5
28414 echo "$as_me: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&2;}
28415    { (exit 1); exit 1; }; }
28416         fi
28417      fi
28418      SQL_INCLUDE=-I$SQLITE_INCDIR
28419      SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite3"
28420      SQL_BINDIR=$SQLITE_BINDIR
28421      SQL_LIB=$SQLITE_LIBDIR/libsqlite3.a
28422
28423      cat >>confdefs.h <<\_ACEOF
28424 #define HAVE_SQLITE3 1
28425 _ACEOF
28426
28427      { echo "$as_me:$LINENO: result: yes" >&5
28428 echo "${ECHO_T}yes" >&6; }
28429      db_found=yes
28430      support_sqlite3=yes
28431      db_type=SQLite3
28432      DB_TYPE=sqlite3
28433
28434   else
28435      { echo "$as_me:$LINENO: result: no" >&5
28436 echo "${ECHO_T}no" >&6; }
28437   fi
28438
28439 else
28440
28441   { echo "$as_me:$LINENO: result: no" >&5
28442 echo "${ECHO_T}no" >&6; }
28443
28444 fi
28445
28446
28447
28448
28449
28450
28451
28452
28453 db_found=no
28454 { echo "$as_me:$LINENO: checking for SQLite support" >&5
28455 echo $ECHO_N "checking for SQLite support... $ECHO_C" >&6; }
28456
28457 # Check whether --with-sqlite was given.
28458 if test "${with_sqlite+set}" = set; then
28459   withval=$with_sqlite;
28460   if test "$withval" != "no"; then
28461      if test "$withval" = "yes"; then
28462         if test -f /usr/local/include/sqlite.h; then
28463            SQLITE_INCDIR=/usr/local/include
28464            if test -d /usr/local/lib64; then
28465               SQLITE_LIBDIR=/usr/local/lib64
28466            else
28467               SQLITE_LIBDIR=/usr/local/lib
28468            fi
28469            SQLITE_BINDIR=/usr/local/bin
28470         elif test -f /usr/include/sqlite.h; then
28471            SQLITE_INCDIR=/usr/include
28472            if test -d /usr/lib64; then
28473               SQLITE_LIBDIR=/usr/lib64
28474            else
28475               SQLITE_LIBDIR=/usr/lib
28476            fi
28477            SQLITE_BINDIR=/usr/bin
28478         elif test -f $prefix/include/sqlite.h; then
28479            SQLITE_INCDIR=$prefix/include
28480            if test -d $prefix/lib64; then
28481               SQLITE_LIBDIR=$prefix/lib64
28482            else
28483               SQLITE_LIBDIR=$prefix/lib
28484            fi
28485            SQLITE_BINDIR=$prefix/bin
28486         else
28487            { echo "$as_me:$LINENO: result: no" >&5
28488 echo "${ECHO_T}no" >&6; }
28489            { { echo "$as_me:$LINENO: error: Unable to find sqlite.h in standard locations" >&5
28490 echo "$as_me: error: Unable to find sqlite.h in standard locations" >&2;}
28491    { (exit 1); exit 1; }; }
28492         fi
28493      else
28494         if test -f $withval/sqlite.h; then
28495            SQLITE_INCDIR=$withval
28496            SQLITE_LIBDIR=$withval
28497            SQLITE_BINDIR=$withval
28498         elif test -f $withval/include/sqlite.h; then
28499            SQLITE_INCDIR=$withval/include
28500            if test -d $withval/lib64; then
28501               SQLITE_LIBDIR=$withval/lib64
28502            else
28503               SQLITE_LIBDIR=$withval/lib
28504            fi
28505            SQLITE_BINDIR=$withval/bin
28506         else
28507            { echo "$as_me:$LINENO: result: no" >&5
28508 echo "${ECHO_T}no" >&6; }
28509            { { echo "$as_me:$LINENO: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&5
28510 echo "$as_me: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&2;}
28511    { (exit 1); exit 1; }; }
28512         fi
28513      fi
28514      SQL_INCLUDE=-I$SQLITE_INCDIR
28515      SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite"
28516      SQL_BINDIR=$SQLITE_BINDIR
28517      SQL_LIB=$SQLITE_LIBDIR/libsqlite.a
28518
28519      cat >>confdefs.h <<\_ACEOF
28520 #define HAVE_SQLITE 1
28521 _ACEOF
28522
28523      { echo "$as_me:$LINENO: result: yes" >&5
28524 echo "${ECHO_T}yes" >&6; }
28525      db_found=yes
28526      support_sqlite=yes
28527      db_type=SQLite
28528      DB_TYPE=sqlite
28529
28530   else
28531      { echo "$as_me:$LINENO: result: no" >&5
28532 echo "${ECHO_T}no" >&6; }
28533   fi
28534
28535 else
28536
28537   { echo "$as_me:$LINENO: result: no" >&5
28538 echo "${ECHO_T}no" >&6; }
28539
28540 fi
28541
28542
28543
28544
28545
28546
28547
28548
28549 db_found=no
28550 { echo "$as_me:$LINENO: checking for DBI support" >&5
28551 echo $ECHO_N "checking for DBI support... $ECHO_C" >&6; }
28552
28553 # Check whether --with-dbi was given.
28554 if test "${with_dbi+set}" = set; then
28555   withval=$with_dbi;
28556   if test "$withval" != "no"; then
28557      if test "$withval" = "yes"; then
28558         if test -f /usr/local/include/dbi/dbi.h; then
28559            DBI_INCDIR=/usr/local/dbi/include
28560            if test -d /usr/local/lib64; then
28561               DBI_LIBDIR=/usr/local/lib64
28562            else
28563               DBI_LIBDIR=/usr/local/lib
28564            fi
28565            DBI_BINDIR=/usr/local/bin
28566         elif test -f /usr/include/dbi/dbi.h; then
28567            DBI_INCDIR=/usr/include
28568            if test -d /usr/lib64; then
28569               DBI_LIBDIR=/usr/lib64
28570            else
28571               DBI_LIBDIR=/usr/lib
28572            fi
28573            DBI_BINDIR=/usr/bin
28574         elif test -f $prefix/include/dbi/dbi.h; then
28575            DBI_INCDIR=$prefix/include
28576            if test -d $prefix/lib64; then
28577               DBI_LIBDIR=$prefix/lib64
28578            else
28579               DBI_LIBDIR=$prefix/lib
28580            fi
28581            DBI_BINDIR=$prefix/bin
28582         else
28583            { echo "$as_me:$LINENO: result: no" >&5
28584 echo "${ECHO_T}no" >&6; }
28585            { { echo "$as_me:$LINENO: error: Unable to find dbi.h in standard locations" >&5
28586 echo "$as_me: error: Unable to find dbi.h in standard locations" >&2;}
28587    { (exit 1); exit 1; }; }
28588         fi
28589         if test -d /usr/local/lib/dbd; then
28590            DRIVERDIR=/usr/local/lib/dbd
28591            if test -d /usr/local/lib64/dbd; then
28592               DRIVERDIR=/usr/local/lib64/dbd
28593            else
28594               DRIVERDIR=/usr/local/lib/dbd
28595            fi
28596         elif test -d /usr/lib/dbd; then
28597            DRIVERDIR=/usr/lib/dbd
28598            if test -d /usr/lib64/dbd; then
28599               DRIVERDIR=/usr/lib64/dbd
28600            else
28601               DRIVERDIR=/usr/lib/dbd
28602            fi
28603         elif test -d $prefix/lib/dbd; then
28604            if test -d $prefix/lib64/dbd; then
28605               DRIVERDIR=$prefix/lib64/dbd
28606            else
28607               DRIVERDIR=$prefix/lib/dbd
28608            fi
28609         else
28610            { echo "$as_me:$LINENO: result: no" >&5
28611 echo "${ECHO_T}no" >&6; }
28612            { { echo "$as_me:$LINENO: error: Unable to find DBD drivers in standard locations" >&5
28613 echo "$as_me: error: Unable to find DBD drivers in standard locations" >&2;}
28614    { (exit 1); exit 1; }; }
28615         fi
28616      else
28617         if test -f $withval/dbi.h; then
28618            DBI_INCDIR=$withval
28619            DBI_LIBDIR=$withval
28620            DBI_BINDIR=$withval
28621         elif test -f $withval/include/dbi/dbi.h; then
28622            DBI_INCDIR=$withval/include
28623            if test -d $withval/lib64; then
28624               DBI_LIBDIR=$withval/lib64
28625            else
28626               DBI_LIBDIR=$withval/lib
28627            fi
28628            DBI_BINDIR=$withval/bin
28629         else
28630            { echo "$as_me:$LINENO: result: no" >&5
28631 echo "${ECHO_T}no" >&6; }
28632            { { echo "$as_me:$LINENO: error: Invalid DBI directory $withval - unable to find dbi.h under $withval" >&5
28633 echo "$as_me: error: Invalid DBI directory $withval - unable to find dbi.h under $withval" >&2;}
28634    { (exit 1); exit 1; }; }
28635         fi
28636         if test -d $withval/dbd; then
28637            DRIVERDIR=$withval/dbd
28638         elif test -d $withval/lib/; then
28639            if test -d $withval/lib64/dbd; then
28640               DRIVERDIR=$withval/lib64/dbd
28641            else
28642               DRIVERDIR=$withval/lib/dbd
28643            fi
28644         else
28645            { echo "$as_me:$LINENO: result: no" >&5
28646 echo "${ECHO_T}no" >&6; }
28647            { { echo "$as_me:$LINENO: error: Invalid DBD driver directory $withval - unable to find DBD drivers under $withval" >&5
28648 echo "$as_me: error: Invalid DBD driver directory $withval - unable to find DBD drivers under $withval" >&2;}
28649    { (exit 1); exit 1; }; }
28650         fi
28651      fi
28652      SQL_INCLUDE=-I$DBI_INCDIR
28653      SQL_LFLAGS="-L$DBI_LIBDIR -ldbi"
28654      SQL_BINDIR=$DBI_BINDIR
28655      SQL_LIB=$DBI_LIBDIR/libdbi.a
28656      DBI_DBD_DRIVERDIR="-D DBI_DRIVER_DIR=\\\"$DRIVERDIR\\\""
28657
28658
28659 cat >>confdefs.h <<\_ACEOF
28660 #define HAVE_DBI 1
28661 _ACEOF
28662
28663      { echo "$as_me:$LINENO: result: yes" >&5
28664 echo "${ECHO_T}yes" >&6; }
28665      db_found=yes
28666      support_dbi=yes
28667      db_type=DBI
28668      DB_TYPE=dbi
28669      uncomment_dbi=" "
28670
28671   else
28672      { echo "$as_me:$LINENO: result: no" >&5
28673 echo "${ECHO_T}no" >&6; }
28674   fi
28675
28676 else
28677
28678   { echo "$as_me:$LINENO: result: no" >&5
28679 echo "${ECHO_T}no" >&6; }
28680
28681 fi
28682
28683
28684
28685
28686
28687
28688
28689
28690
28691
28692 db_found=no
28693 db_prog=no
28694 { echo "$as_me:$LINENO: checking for DBI drivers support" >&5
28695 echo $ECHO_N "checking for DBI drivers support... $ECHO_C" >&6; }
28696
28697 # Check whether --with-dbi-driver was given.
28698 if test "${with_dbi_driver+set}" = set; then
28699   withval=$with_dbi_driver;
28700   if test "$withval" != "no"; then
28701      case $withval in
28702         "mysql")
28703            db_prog="mysql"
28704            if test -f /usr/local/mysql/bin/mysql; then
28705               SQL_BINDIR=/usr/local/mysql/bin
28706               if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
28707                  -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
28708                  SQL_LIBDIR=/usr/local/mysql/lib64/mysql
28709               else
28710                  SQL_LIBDIR=/usr/local/mysql/lib/mysql
28711               fi
28712            elif test -f /usr/bin/mysql; then
28713               SQL_BINDIR=/usr/bin
28714               if test -f /usr/lib64/mysql/libmysqlclient_r.a \
28715                   -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
28716                   SQL_LIBDIR=/usr/lib64/mysql
28717               elif test -f /usr/lib/mysql/libmysqlclient_r.a \
28718                   -o -f /usr/lib/mysql/libmysqlclient_r.so; then
28719                   SQL_LIBDIR=/usr/lib/mysql
28720               else
28721                   SQL_LIBDIR=/usr/lib
28722               fi
28723            elif test -f /usr/local/bin/mysql; then
28724               SQL_BINDIR=/usr/local/bin
28725               if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
28726                   -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
28727                   SQL_LIBDIR=/usr/local/lib64/mysql
28728               elif test -f /usr/local/lib/mysql/libmysqlclient_r.a \
28729                   -o -f /usr/local/lib/mysql/libmysqlclient_r.so; then
28730                   SQL_LIBDIR=/usr/local/lib/mysql
28731               else
28732                   SQL_LIBDIR=/usr/local/lib
28733               fi
28734            elif test -f $withval/bin/mysql; then
28735               SQL_BINDIR=$withval/bin
28736               if test -f $withval/lib64/mysql/libmysqlclient_r.a \
28737                   -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
28738                   SQL_LIBDIR=$withval/lib64/mysql
28739               elif test -f $withval/lib64/libmysqlclient_r.a \
28740                   -o -f $withval/lib64/libmysqlclient_r.so; then
28741                   SQL_LIBDIR=$withval/lib64
28742               elif test -f $withval/lib/libmysqlclient_r.a \
28743                   -o -f $withval/lib/libmysqlclient_r.so; then
28744                   SQL_LIBDIR=$withval/lib/
28745               else
28746                   SQL_LIBDIR=$withval/lib/mysql
28747               fi
28748            else
28749               { echo "$as_me:$LINENO: result: no" >&5
28750 echo "${ECHO_T}no" >&6; }
28751               { { echo "$as_me:$LINENO: error: Unable to find mysql in standard locations" >&5
28752 echo "$as_me: error: Unable to find mysql in standard locations" >&2;}
28753    { (exit 1); exit 1; }; }
28754            fi
28755            if test -f $SQL_LIBDIR/libmysqlclient_r.so; then
28756               DB_PROG_LIB=$SQL_LIBDIR/libmysqlclient_r.so
28757            else
28758               DB_PROG_LIB=$SQL_LIBDIR/libmysqlclient_r.a
28759            fi
28760         ;;
28761         "postgresql")
28762            db_prog="postgresql"
28763            PG_CONFIG=`which pg_config`
28764            if test -n "$PG_CONFIG"; then
28765               SQL_BINDIR=`"$PG_CONFIG" --bindir`
28766               SQL_LIBDIR=`"$PG_CONFIG" --libdir`
28767            elif test -f /usr/local/bin/psql; then
28768               SQL_BINDIR=/usr/local/bin
28769               if test -d /usr/local/lib64; then
28770                  SQL_LIBDIR=/usr/local/lib64
28771               else
28772                  SQL_LIBDIR=/usr/local/lib
28773               fi
28774            elif test -f /usr/bin/psql; then
28775               SQL_BINDIR=/usr/local/bin
28776               if test -d /usr/lib64/postgresql; then
28777                  SQL_LIBDIR=/usr/lib64/postgresql
28778               elif test -d /usr/lib/postgresql; then
28779                  SQL_LIBDIR=/usr/lib/postgresql
28780               elif test -d /usr/lib64; then
28781                  SQL_LIBDIR=/usr/lib64
28782               else
28783                  SQL_LIBDIR=/usr/lib
28784               fi
28785            elif test -f $withval/bin/psql; then
28786               SQL_BINDIR=$withval/bin
28787               if test -d $withval/lib64; then
28788                  SQL_LIBDIR=$withval/lib64
28789               else
28790                  SQL_LIBDIR=$withval/lib
28791               fi
28792            else
28793               { echo "$as_me:$LINENO: result: no" >&5
28794 echo "${ECHO_T}no" >&6; }
28795               { { echo "$as_me:$LINENO: error: Unable to find psql in standard locations" >&5
28796 echo "$as_me: error: Unable to find psql in standard locations" >&2;}
28797    { (exit 1); exit 1; }; }
28798            fi
28799            if test -f $SQL_LIBDIR/libpq.so; then
28800               DB_PROG_LIB=$SQL_LIBDIR/libpq.so
28801            else
28802               DB_PROG_LIB=$SQL_LIBDIR/libpq.a
28803            fi
28804         ;;
28805         "sqlite")
28806            db_prog="sqlite"
28807            if test -f /usr/local/bin/sqlite; then
28808               SQL_BINDIR=/usr/local/bin
28809               if test -d /usr/local/lib64; then
28810                  SQL_LIBDIR=/usr/local/lib64
28811               else
28812                  SQL_LIBDIR=/usr/local/lib
28813               fi
28814            elif test -f /usr/bin/sqlite; then
28815               SQL_BINDIR=/usr/bin
28816               if test -d /usr/lib64; then
28817                  SQL_LIBDIR=/usr/lib64
28818               else
28819                  SQL_LIBDIR=/usr/lib
28820               fi
28821            elif test -f $withval/bin/sqlite; then
28822               SQL_BINDIR=$withval/bin
28823               if test -d $withval/lib64; then
28824                  SQL_LIBDIR=$withval/lib64
28825               else
28826                  SQL_LIBDIR=$withval/lib
28827               fi
28828            else
28829               { echo "$as_me:$LINENO: result: no" >&5
28830 echo "${ECHO_T}no" >&6; }
28831               { { echo "$as_me:$LINENO: error: Unable to find sqlite in standard locations" >&5
28832 echo "$as_me: error: Unable to find sqlite in standard locations" >&2;}
28833    { (exit 1); exit 1; }; }
28834            fi
28835            if test -f $SQL_LIBDIR/libsqlite.so; then
28836               DB_PROG_LIB=$SQL_LIBDIR/libsqlite.so
28837            else
28838               DB_PROG_LIB=$SQL_LIBDIR/libsqlite.a
28839            fi
28840         ;;
28841         "sqlite3")
28842            db_prog="sqlite3"
28843            if test -f /usr/local/bin/sqlite3; then
28844               SQL_BINDIR=/usr/local/bin
28845               if test -d /usr/local/lib64; then
28846                  SQL_LIBDIR=/usr/local/lib64
28847               else
28848                  SQL_LIBDIR=/usr/local/lib
28849               fi
28850            elif test -f /usr/bin/sqlite3; then
28851               SQL_BINDIR=/usr/bin
28852               if test -d /usr/lib64; then
28853                  SQL_LIBDIR=/usr/lib64
28854               else
28855                  SQL_LIBDIR=/usr/lib
28856               fi
28857            elif test -f $withval/bin/sqlite3; then
28858               SQL_BINDIR=$withval/bin
28859               if test -d $withval/lib64; then
28860                  SQL_LIBDIR=$withval/lib64
28861               else
28862                  SQL_LIBDIR=$withval/lib
28863               fi
28864            else
28865               { echo "$as_me:$LINENO: result: no" >&5
28866 echo "${ECHO_T}no" >&6; }
28867               { { echo "$as_me:$LINENO: error: Unable to find sqlite in standard locations" >&5
28868 echo "$as_me: error: Unable to find sqlite in standard locations" >&2;}
28869    { (exit 1); exit 1; }; }
28870            fi
28871            if test -f $SQL_LIBDIR/libsqlite3.so; then
28872               DB_PROG_LIB=$SQL_LIBDIR/libsqlite3.so
28873            else
28874               DB_PROG_LIB=$SQL_LIBDIR/libsqlite3.a
28875            fi
28876         ;;
28877         *)
28878            { echo "$as_me:$LINENO: result: no" >&5
28879 echo "${ECHO_T}no" >&6; }
28880            { { echo "$as_me:$LINENO: error: Unable to set DBI driver. $withval is not supported" >&5
28881 echo "$as_me: error: Unable to set DBI driver. $withval is not supported" >&2;}
28882    { (exit 1); exit 1; }; }
28883         ;;
28884      esac
28885
28886      { echo "$as_me:$LINENO: result: yes" >&5
28887 echo "${ECHO_T}yes" >&6; }
28888      DB_PROG=$db_prog
28889   else
28890      { echo "$as_me:$LINENO: result: no" >&5
28891 echo "${ECHO_T}no" >&6; }
28892   fi
28893
28894 else
28895
28896   { echo "$as_me:$LINENO: result: no" >&5
28897 echo "${ECHO_T}no" >&6; }
28898
28899 fi
28900
28901
28902
28903
28904
28905
28906
28907
28908
28909
28910 support_batch_insert=no
28911 A=`test -f $SQL_LIB && nm $SQL_LIB | grep pthread_mutex_lock`
28912 pkg=$?
28913 if test $pkg = 0; then
28914    support_batch_insert=yes
28915    # Check whether --enable-batch-insert was given.
28916 if test "${enable_batch_insert+set}" = set; then
28917   enableval=$enable_batch_insert;
28918           if test x$enableval = xno; then
28919              support_batch_insert=no
28920           else
28921              support_batch_insert=yes
28922           fi
28923
28924
28925 fi
28926
28927 fi
28928
28929 if test x$DB_TYPE = xpostgresql; then
28930    A=`test -f $SQL_LIB && nm $SQL_LIB | grep PQputCopyData`
28931    pkg=$?
28932    if test $pkg != 0; then
28933       support_batch_insert=no
28934    fi
28935 fi
28936
28937 if test x$DB_TYPE = xdbi; then
28938    DB_TYPE=$DB_PROG
28939    db_type=$DB_PROG
28940    pkg=1
28941       if test $DB_PROG = postgresql; then
28942       A=`test -f $SQL_LIB && nm $SQL_LIB | grep PQputCopyData`
28943       pkg=$?
28944    fi
28945
28946    if test $DB_PROG = mysql; then
28947       A=`test -f $SQL_LIB && nm $DB_PROG_LIB | grep pthread_mutex_lock`
28948       pkg=$?
28949    fi
28950
28951    if test $DB_PROG = sqlite3; then
28952       A=`test -f $SQL_LIB && nm $DB_PROG_LIB | grep pthread_mutex_lock`
28953       pkg=$?
28954    fi
28955
28956    if test $pkg = 0; then
28957       # Check whether --enable-batch-insert was given.
28958 if test "${enable_batch_insert+set}" = set; then
28959   enableval=$enable_batch_insert;
28960              if test x$enableval = xno; then
28961                 support_batch_insert=no
28962              else
28963                 support_batch_insert=yes
28964              fi
28965
28966
28967 fi
28968
28969    fi
28970 else
28971       uncomment_dbi="#"
28972 fi
28973
28974
28975
28976 if test $support_batch_insert = yes ; then
28977
28978 cat >>confdefs.h <<\_ACEOF
28979 #define HAVE_BATCH_FILE_INSERT 1
28980 _ACEOF
28981
28982 fi
28983
28984 cat >>confdefs.h <<\_ACEOF
28985 #define PROTOTYPES 1
28986 _ACEOF
28987
28988
28989 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
28990    if test -z "$CCOPTS"; then
28991       CCOPTS='-g -O2 -Wall'
28992    fi
28993    CFLAGS="$CCOPTS"
28994 fi
28995
28996
28997
28998 largefile_support="no"
28999
29000    # Check whether --enable-largefile was given.
29001 if test "${enable_largefile+set}" = set; then
29002   enableval=$enable_largefile;
29003 fi
29004
29005    if test "$enable_largefile" != no; then
29006      if test -n "$ac_tool_prefix"; then
29007   # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
29008 set dummy ${ac_tool_prefix}getconf; ac_word=$2
29009 { echo "$as_me:$LINENO: checking for $ac_word" >&5
29010 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
29011 if test "${ac_cv_prog_GETCONF+set}" = set; then
29012   echo $ECHO_N "(cached) $ECHO_C" >&6
29013 else
29014   if test -n "$GETCONF"; then
29015   ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
29016 else
29017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29018 for as_dir in $PATH
29019 do
29020   IFS=$as_save_IFS
29021   test -z "$as_dir" && as_dir=.
29022   for ac_exec_ext in '' $ac_executable_extensions; do
29023   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29024     ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
29025     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29026     break 2
29027   fi
29028 done
29029 done
29030 IFS=$as_save_IFS
29031
29032 fi
29033 fi
29034 GETCONF=$ac_cv_prog_GETCONF
29035 if test -n "$GETCONF"; then
29036   { echo "$as_me:$LINENO: result: $GETCONF" >&5
29037 echo "${ECHO_T}$GETCONF" >&6; }
29038 else
29039   { echo "$as_me:$LINENO: result: no" >&5
29040 echo "${ECHO_T}no" >&6; }
29041 fi
29042
29043
29044 fi
29045 if test -z "$ac_cv_prog_GETCONF"; then
29046   ac_ct_GETCONF=$GETCONF
29047   # Extract the first word of "getconf", so it can be a program name with args.
29048 set dummy getconf; ac_word=$2
29049 { echo "$as_me:$LINENO: checking for $ac_word" >&5
29050 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
29051 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
29052   echo $ECHO_N "(cached) $ECHO_C" >&6
29053 else
29054   if test -n "$ac_ct_GETCONF"; then
29055   ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
29056 else
29057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29058 for as_dir in $PATH
29059 do
29060   IFS=$as_save_IFS
29061   test -z "$as_dir" && as_dir=.
29062   for ac_exec_ext in '' $ac_executable_extensions; do
29063   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29064     ac_cv_prog_ac_ct_GETCONF="getconf"
29065     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29066     break 2
29067   fi
29068 done
29069 done
29070 IFS=$as_save_IFS
29071
29072 fi
29073 fi
29074 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
29075 if test -n "$ac_ct_GETCONF"; then
29076   { echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
29077 echo "${ECHO_T}$ac_ct_GETCONF" >&6; }
29078 else
29079   { echo "$as_me:$LINENO: result: no" >&5
29080 echo "${ECHO_T}no" >&6; }
29081 fi
29082
29083   if test "x$ac_ct_GETCONF" = x; then
29084     GETCONF=""
29085   else
29086     case $cross_compiling:$ac_tool_warned in
29087 yes:)
29088 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
29089 whose name does not start with the host triplet.  If you think this
29090 configuration is useful to you, please write to autoconf@gnu.org." >&5
29091 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
29092 whose name does not start with the host triplet.  If you think this
29093 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
29094 ac_tool_warned=yes ;;
29095 esac
29096     GETCONF=$ac_ct_GETCONF
29097   fi
29098 else
29099   GETCONF="$ac_cv_prog_GETCONF"
29100 fi
29101
29102      { echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
29103 echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" >&6; }
29104 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
29105   echo $ECHO_N "(cached) $ECHO_C" >&6
29106 else
29107   ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
29108         ac_cv_sys_largefile_CFLAGS=no
29109         case "$host_os" in
29110            # IRIX 6.2 and later require cc -n32.
29111            irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
29112              if test "$GCC" != yes; then
29113                ac_cv_sys_largefile_CFLAGS=-n32
29114              fi
29115              ac_save_CC="$CC"
29116              CC="$CC $ac_cv_sys_largefile_CFLAGS"
29117              cat >conftest.$ac_ext <<_ACEOF
29118 /* confdefs.h.  */
29119 _ACEOF
29120 cat confdefs.h >>conftest.$ac_ext
29121 cat >>conftest.$ac_ext <<_ACEOF
29122 /* end confdefs.h.  */
29123
29124 int
29125 main ()
29126 {
29127
29128   ;
29129   return 0;
29130 }
29131 _ACEOF
29132 rm -f conftest.$ac_objext conftest$ac_exeext
29133 if { (ac_try="$ac_link"
29134 case "(($ac_try" in
29135   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29136   *) ac_try_echo=$ac_try;;
29137 esac
29138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29139   (eval "$ac_link") 2>conftest.er1
29140   ac_status=$?
29141   grep -v '^ *+' conftest.er1 >conftest.err
29142   rm -f conftest.er1
29143   cat conftest.err >&5
29144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29145   (exit $ac_status); } && {
29146          test -z "$ac_c_werror_flag" ||
29147          test ! -s conftest.err
29148        } && test -s conftest$ac_exeext &&
29149        $as_test_x conftest$ac_exeext; then
29150   :
29151 else
29152   echo "$as_me: failed program was:" >&5
29153 sed 's/^/| /' conftest.$ac_ext >&5
29154
29155         ac_cv_sys_largefile_CFLAGS=no
29156 fi
29157
29158 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29159       conftest$ac_exeext conftest.$ac_ext
29160              CC="$ac_save_CC"
29161            esac
29162       }
29163 fi
29164 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
29165 echo "${ECHO_T}$ac_cv_sys_largefile_CFLAGS" >&6; }
29166      { echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
29167 echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" >&6; }
29168 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
29169   echo $ECHO_N "(cached) $ECHO_C" >&6
29170 else
29171   ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
29172         ac_cv_sys_largefile_LDFLAGS=no
29173
29174       }
29175 fi
29176 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
29177 echo "${ECHO_T}$ac_cv_sys_largefile_LDFLAGS" >&6; }
29178      { echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
29179 echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" >&6; }
29180 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
29181   echo $ECHO_N "(cached) $ECHO_C" >&6
29182 else
29183   ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
29184         ac_cv_sys_largefile_LIBS=no
29185
29186       }
29187 fi
29188 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
29189 echo "${ECHO_T}$ac_cv_sys_largefile_LIBS" >&6; }
29190
29191      for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
29192        case "$ac_flag" in
29193        no) ;;
29194        -D_FILE_OFFSET_BITS=*) ;;
29195        -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
29196        -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
29197        -D?* | -I?*)
29198          case "$ac_flag" in
29199    no) ;;
29200    ?*)
29201      case "$CPPFLAGS" in
29202      '') CPPFLAGS="$ac_flag" ;;
29203      *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
29204      esac ;;
29205    esac ;;
29206        *)
29207          case "$ac_flag" in
29208    no) ;;
29209    ?*)
29210      case "$CFLAGS" in
29211      '') CFLAGS="$ac_flag" ;;
29212      *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
29213      esac ;;
29214    esac ;;
29215        esac
29216      done
29217      case "$ac_cv_sys_largefile_LDFLAGS" in
29218    no) ;;
29219    ?*)
29220      case "$LDFLAGS" in
29221      '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
29222      *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
29223      esac ;;
29224    esac
29225      case "$ac_cv_sys_largefile_LIBS" in
29226    no) ;;
29227    ?*)
29228      case "$LIBS" in
29229      '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
29230      *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
29231      esac ;;
29232    esac
29233      { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
29234 echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" >&6; }
29235 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
29236   echo $ECHO_N "(cached) $ECHO_C" >&6
29237 else
29238   ac_cv_sys_file_offset_bits=no
29239       ac_cv_sys_file_offset_bits=64
29240       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
29241         case "$ac_flag" in
29242         -D_FILE_OFFSET_BITS)
29243           ac_cv_sys_file_offset_bits=1 ;;
29244         -D_FILE_OFFSET_BITS=*)
29245           ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
29246         esac
29247       done
29248
29249 fi
29250 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
29251 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
29252    if test "$ac_cv_sys_file_offset_bits" != no; then
29253
29254 cat >>confdefs.h <<_ACEOF
29255 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
29256 _ACEOF
29257
29258    fi
29259      { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
29260 echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" >&6; }
29261 if test "${ac_cv_sys_largefile_source+set}" = set; then
29262   echo $ECHO_N "(cached) $ECHO_C" >&6
29263 else
29264   ac_cv_sys_largefile_source=no
29265       ac_cv_sys_largefile_source=1
29266       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
29267         case "$ac_flag" in
29268         -D_LARGEFILE_SOURCE)
29269           ac_cv_sys_largefile_source=1 ;;
29270         -D_LARGEFILE_SOURCE=*)
29271           ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
29272         esac
29273       done
29274
29275 fi
29276 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
29277 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
29278    if test "$ac_cv_sys_largefile_source" != no; then
29279
29280 cat >>confdefs.h <<_ACEOF
29281 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
29282 _ACEOF
29283
29284    fi
29285      { echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
29286 echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" >&6; }
29287 if test "${ac_cv_sys_large_files+set}" = set; then
29288   echo $ECHO_N "(cached) $ECHO_C" >&6
29289 else
29290   ac_cv_sys_large_files=no
29291       ac_cv_sys_large_files=1
29292       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
29293         case "$ac_flag" in
29294         -D_LARGE_FILES)
29295           ac_cv_sys_large_files=1 ;;
29296         -D_LARGE_FILES=*)
29297           ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
29298         esac
29299       done
29300
29301 fi
29302 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
29303 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
29304    if test "$ac_cv_sys_large_files" != no; then
29305
29306 cat >>confdefs.h <<_ACEOF
29307 #define _LARGE_FILES $ac_cv_sys_large_files
29308 _ACEOF
29309
29310    fi
29311    fi
29312
29313
29314 { echo "$as_me:$LINENO: checking for X" >&5
29315 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
29316
29317
29318 # Check whether --with-x was given.
29319 if test "${with_x+set}" = set; then
29320   withval=$with_x;
29321 fi
29322
29323 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
29324 if test "x$with_x" = xno; then
29325   # The user explicitly disabled X.
29326   have_x=disabled
29327 else
29328   case $x_includes,$x_libraries in #(
29329     *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
29330 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
29331    { (exit 1); exit 1; }; };; #(
29332     *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
29333   echo $ECHO_N "(cached) $ECHO_C" >&6
29334 else
29335   # One or both of the vars are not set, and there is no cached value.
29336 ac_x_includes=no ac_x_libraries=no
29337 rm -f -r conftest.dir
29338 if mkdir conftest.dir; then
29339   cd conftest.dir
29340   cat >Imakefile <<'_ACEOF'
29341 incroot:
29342         @echo incroot='${INCROOT}'
29343 usrlibdir:
29344         @echo usrlibdir='${USRLIBDIR}'
29345 libdir:
29346         @echo libdir='${LIBDIR}'
29347 _ACEOF
29348   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
29349     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
29350     for ac_var in incroot usrlibdir libdir; do
29351       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
29352     done
29353     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
29354     for ac_extension in a so sl; do
29355       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
29356          test -f "$ac_im_libdir/libX11.$ac_extension"; then
29357         ac_im_usrlibdir=$ac_im_libdir; break
29358       fi
29359     done
29360     # Screen out bogus values from the imake configuration.  They are
29361     # bogus both because they are the default anyway, and because
29362     # using them would break gcc on systems where it needs fixed includes.
29363     case $ac_im_incroot in
29364         /usr/include) ac_x_includes= ;;
29365         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
29366     esac
29367     case $ac_im_usrlibdir in
29368         /usr/lib | /lib) ;;
29369         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
29370     esac
29371   fi
29372   cd ..
29373   rm -f -r conftest.dir
29374 fi
29375
29376 # Standard set of common directories for X headers.
29377 # Check X11 before X11Rn because it is often a symlink to the current release.
29378 ac_x_header_dirs='
29379 /usr/X11/include
29380 /usr/X11R6/include
29381 /usr/X11R5/include
29382 /usr/X11R4/include
29383
29384 /usr/include/X11
29385 /usr/include/X11R6
29386 /usr/include/X11R5
29387 /usr/include/X11R4
29388
29389 /usr/local/X11/include
29390 /usr/local/X11R6/include
29391 /usr/local/X11R5/include
29392 /usr/local/X11R4/include
29393
29394 /usr/local/include/X11
29395 /usr/local/include/X11R6
29396 /usr/local/include/X11R5
29397 /usr/local/include/X11R4
29398
29399 /usr/X386/include
29400 /usr/x386/include
29401 /usr/XFree86/include/X11
29402
29403 /usr/include
29404 /usr/local/include
29405 /usr/unsupported/include
29406 /usr/athena/include
29407 /usr/local/x11r5/include
29408 /usr/lpp/Xamples/include
29409
29410 /usr/openwin/include
29411 /usr/openwin/share/include'
29412
29413 if test "$ac_x_includes" = no; then
29414   # Guess where to find include files, by looking for Xlib.h.
29415   # First, try using that file with no special directory specified.
29416   cat >conftest.$ac_ext <<_ACEOF
29417 /* confdefs.h.  */
29418 _ACEOF
29419 cat confdefs.h >>conftest.$ac_ext
29420 cat >>conftest.$ac_ext <<_ACEOF
29421 /* end confdefs.h.  */
29422 #include <X11/Xlib.h>
29423 _ACEOF
29424 if { (ac_try="$ac_cpp conftest.$ac_ext"
29425 case "(($ac_try" in
29426   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29427   *) ac_try_echo=$ac_try;;
29428 esac
29429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29430   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29431   ac_status=$?
29432   grep -v '^ *+' conftest.er1 >conftest.err
29433   rm -f conftest.er1
29434   cat conftest.err >&5
29435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29436   (exit $ac_status); } >/dev/null && {
29437          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29438          test ! -s conftest.err
29439        }; then
29440   # We can compile using X headers with no special include directory.
29441 ac_x_includes=
29442 else
29443   echo "$as_me: failed program was:" >&5
29444 sed 's/^/| /' conftest.$ac_ext >&5
29445
29446   for ac_dir in $ac_x_header_dirs; do
29447   if test -r "$ac_dir/X11/Xlib.h"; then
29448     ac_x_includes=$ac_dir
29449     break
29450   fi
29451 done
29452 fi
29453
29454 rm -f conftest.err conftest.$ac_ext
29455 fi # $ac_x_includes = no
29456
29457 if test "$ac_x_libraries" = no; then
29458   # Check for the libraries.
29459   # See if we find them without any special options.
29460   # Don't add to $LIBS permanently.
29461   ac_save_LIBS=$LIBS
29462   LIBS="-lX11 $LIBS"
29463   cat >conftest.$ac_ext <<_ACEOF
29464 /* confdefs.h.  */
29465 _ACEOF
29466 cat confdefs.h >>conftest.$ac_ext
29467 cat >>conftest.$ac_ext <<_ACEOF
29468 /* end confdefs.h.  */
29469 #include <X11/Xlib.h>
29470 int
29471 main ()
29472 {
29473 XrmInitialize ()
29474   ;
29475   return 0;
29476 }
29477 _ACEOF
29478 rm -f conftest.$ac_objext conftest$ac_exeext
29479 if { (ac_try="$ac_link"
29480 case "(($ac_try" in
29481   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29482   *) ac_try_echo=$ac_try;;
29483 esac
29484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29485   (eval "$ac_link") 2>conftest.er1
29486   ac_status=$?
29487   grep -v '^ *+' conftest.er1 >conftest.err
29488   rm -f conftest.er1
29489   cat conftest.err >&5
29490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29491   (exit $ac_status); } && {
29492          test -z "$ac_c_werror_flag" ||
29493          test ! -s conftest.err
29494        } && test -s conftest$ac_exeext &&
29495        $as_test_x conftest$ac_exeext; then
29496   LIBS=$ac_save_LIBS
29497 # We can link X programs with no special library path.
29498 ac_x_libraries=
29499 else
29500   echo "$as_me: failed program was:" >&5
29501 sed 's/^/| /' conftest.$ac_ext >&5
29502
29503         LIBS=$ac_save_LIBS
29504 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
29505 do
29506   # Don't even attempt the hair of trying to link an X program!
29507   for ac_extension in a so sl; do
29508     if test -r "$ac_dir/libX11.$ac_extension"; then
29509       ac_x_libraries=$ac_dir
29510       break 2
29511     fi
29512   done
29513 done
29514 fi
29515
29516 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29517       conftest$ac_exeext conftest.$ac_ext
29518 fi # $ac_x_libraries = no
29519
29520 case $ac_x_includes,$ac_x_libraries in #(
29521   no,* | *,no | *\'*)
29522     # Didn't find X, or a directory has "'" in its name.
29523     ac_cv_have_x="have_x=no";; #(
29524   *)
29525     # Record where we found X for the cache.
29526     ac_cv_have_x="have_x=yes\
29527         ac_x_includes='$ac_x_includes'\
29528         ac_x_libraries='$ac_x_libraries'"
29529 esac
29530 fi
29531 ;; #(
29532     *) have_x=yes;;
29533   esac
29534   eval "$ac_cv_have_x"
29535 fi # $with_x != no
29536
29537 if test "$have_x" != yes; then
29538   { echo "$as_me:$LINENO: result: $have_x" >&5
29539 echo "${ECHO_T}$have_x" >&6; }
29540   no_x=yes
29541 else
29542   # If each of the values was on the command line, it overrides each guess.
29543   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
29544   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
29545   # Update the cache value to reflect the command line values.
29546   ac_cv_have_x="have_x=yes\
29547         ac_x_includes='$x_includes'\
29548         ac_x_libraries='$x_libraries'"
29549   { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
29550 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
29551 fi
29552
29553 if test "$no_x" = yes; then
29554   # Not all programs may use this symbol, but it does not hurt to define it.
29555
29556 cat >>confdefs.h <<\_ACEOF
29557 #define X_DISPLAY_MISSING 1
29558 _ACEOF
29559
29560   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
29561 else
29562   if test -n "$x_includes"; then
29563     X_CFLAGS="$X_CFLAGS -I$x_includes"
29564   fi
29565
29566   # It would also be nice to do this for all -L options, not just this one.
29567   if test -n "$x_libraries"; then
29568     X_LIBS="$X_LIBS -L$x_libraries"
29569     # For Solaris; some versions of Sun CC require a space after -R and
29570     # others require no space.  Words are not sufficient . . . .
29571     { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
29572 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
29573     ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
29574     ac_xsave_c_werror_flag=$ac_c_werror_flag
29575     ac_c_werror_flag=yes
29576     cat >conftest.$ac_ext <<_ACEOF
29577 /* confdefs.h.  */
29578 _ACEOF
29579 cat confdefs.h >>conftest.$ac_ext
29580 cat >>conftest.$ac_ext <<_ACEOF
29581 /* end confdefs.h.  */
29582
29583 int
29584 main ()
29585 {
29586
29587   ;
29588   return 0;
29589 }
29590 _ACEOF
29591 rm -f conftest.$ac_objext conftest$ac_exeext
29592 if { (ac_try="$ac_link"
29593 case "(($ac_try" in
29594   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29595   *) ac_try_echo=$ac_try;;
29596 esac
29597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29598   (eval "$ac_link") 2>conftest.er1
29599   ac_status=$?
29600   grep -v '^ *+' conftest.er1 >conftest.err
29601   rm -f conftest.er1
29602   cat conftest.err >&5
29603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29604   (exit $ac_status); } && {
29605          test -z "$ac_c_werror_flag" ||
29606          test ! -s conftest.err
29607        } && test -s conftest$ac_exeext &&
29608        $as_test_x conftest$ac_exeext; then
29609   { echo "$as_me:$LINENO: result: no" >&5
29610 echo "${ECHO_T}no" >&6; }
29611        X_LIBS="$X_LIBS -R$x_libraries"
29612 else
29613   echo "$as_me: failed program was:" >&5
29614 sed 's/^/| /' conftest.$ac_ext >&5
29615
29616         LIBS="$ac_xsave_LIBS -R $x_libraries"
29617        cat >conftest.$ac_ext <<_ACEOF
29618 /* confdefs.h.  */
29619 _ACEOF
29620 cat confdefs.h >>conftest.$ac_ext
29621 cat >>conftest.$ac_ext <<_ACEOF
29622 /* end confdefs.h.  */
29623
29624 int
29625 main ()
29626 {
29627
29628   ;
29629   return 0;
29630 }
29631 _ACEOF
29632 rm -f conftest.$ac_objext conftest$ac_exeext
29633 if { (ac_try="$ac_link"
29634 case "(($ac_try" in
29635   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29636   *) ac_try_echo=$ac_try;;
29637 esac
29638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29639   (eval "$ac_link") 2>conftest.er1
29640   ac_status=$?
29641   grep -v '^ *+' conftest.er1 >conftest.err
29642   rm -f conftest.er1
29643   cat conftest.err >&5
29644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29645   (exit $ac_status); } && {
29646          test -z "$ac_c_werror_flag" ||
29647          test ! -s conftest.err
29648        } && test -s conftest$ac_exeext &&
29649        $as_test_x conftest$ac_exeext; then
29650   { echo "$as_me:$LINENO: result: yes" >&5
29651 echo "${ECHO_T}yes" >&6; }
29652           X_LIBS="$X_LIBS -R $x_libraries"
29653 else
29654   echo "$as_me: failed program was:" >&5
29655 sed 's/^/| /' conftest.$ac_ext >&5
29656
29657         { echo "$as_me:$LINENO: result: neither works" >&5
29658 echo "${ECHO_T}neither works" >&6; }
29659 fi
29660
29661 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29662       conftest$ac_exeext conftest.$ac_ext
29663 fi
29664
29665 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29666       conftest$ac_exeext conftest.$ac_ext
29667     ac_c_werror_flag=$ac_xsave_c_werror_flag
29668     LIBS=$ac_xsave_LIBS
29669   fi
29670
29671   # Check for system-dependent libraries X programs must link with.
29672   # Do this before checking for the system-independent R6 libraries
29673   # (-lICE), since we may need -lsocket or whatever for X linking.
29674
29675   if test "$ISC" = yes; then
29676     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
29677   else
29678     # Martyn Johnson says this is needed for Ultrix, if the X
29679     # libraries were built with DECnet support.  And Karl Berry says
29680     # the Alpha needs dnet_stub (dnet does not exist).
29681     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
29682     cat >conftest.$ac_ext <<_ACEOF
29683 /* confdefs.h.  */
29684 _ACEOF
29685 cat confdefs.h >>conftest.$ac_ext
29686 cat >>conftest.$ac_ext <<_ACEOF
29687 /* end confdefs.h.  */
29688
29689 /* Override any GCC internal prototype to avoid an error.
29690    Use char because int might match the return type of a GCC
29691    builtin and then its argument prototype would still apply.  */
29692 #ifdef __cplusplus
29693 extern "C"
29694 #endif
29695 char XOpenDisplay ();
29696 int
29697 main ()
29698 {
29699 return XOpenDisplay ();
29700   ;
29701   return 0;
29702 }
29703 _ACEOF
29704 rm -f conftest.$ac_objext conftest$ac_exeext
29705 if { (ac_try="$ac_link"
29706 case "(($ac_try" in
29707   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29708   *) ac_try_echo=$ac_try;;
29709 esac
29710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29711   (eval "$ac_link") 2>conftest.er1
29712   ac_status=$?
29713   grep -v '^ *+' conftest.er1 >conftest.err
29714   rm -f conftest.er1
29715   cat conftest.err >&5
29716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29717   (exit $ac_status); } && {
29718          test -z "$ac_c_werror_flag" ||
29719          test ! -s conftest.err
29720        } && test -s conftest$ac_exeext &&
29721        $as_test_x conftest$ac_exeext; then
29722   :
29723 else
29724   echo "$as_me: failed program was:" >&5
29725 sed 's/^/| /' conftest.$ac_ext >&5
29726
29727         { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
29728 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
29729 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
29730   echo $ECHO_N "(cached) $ECHO_C" >&6
29731 else
29732   ac_check_lib_save_LIBS=$LIBS
29733 LIBS="-ldnet  $LIBS"
29734 cat >conftest.$ac_ext <<_ACEOF
29735 /* confdefs.h.  */
29736 _ACEOF
29737 cat confdefs.h >>conftest.$ac_ext
29738 cat >>conftest.$ac_ext <<_ACEOF
29739 /* end confdefs.h.  */
29740
29741 /* Override any GCC internal prototype to avoid an error.
29742    Use char because int might match the return type of a GCC
29743    builtin and then its argument prototype would still apply.  */
29744 #ifdef __cplusplus
29745 extern "C"
29746 #endif
29747 char dnet_ntoa ();
29748 int
29749 main ()
29750 {
29751 return dnet_ntoa ();
29752   ;
29753   return 0;
29754 }
29755 _ACEOF
29756 rm -f conftest.$ac_objext conftest$ac_exeext
29757 if { (ac_try="$ac_link"
29758 case "(($ac_try" in
29759   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29760   *) ac_try_echo=$ac_try;;
29761 esac
29762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29763   (eval "$ac_link") 2>conftest.er1
29764   ac_status=$?
29765   grep -v '^ *+' conftest.er1 >conftest.err
29766   rm -f conftest.er1
29767   cat conftest.err >&5
29768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29769   (exit $ac_status); } && {
29770          test -z "$ac_c_werror_flag" ||
29771          test ! -s conftest.err
29772        } && test -s conftest$ac_exeext &&
29773        $as_test_x conftest$ac_exeext; then
29774   ac_cv_lib_dnet_dnet_ntoa=yes
29775 else
29776   echo "$as_me: failed program was:" >&5
29777 sed 's/^/| /' conftest.$ac_ext >&5
29778
29779         ac_cv_lib_dnet_dnet_ntoa=no
29780 fi
29781
29782 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29783       conftest$ac_exeext conftest.$ac_ext
29784 LIBS=$ac_check_lib_save_LIBS
29785 fi
29786 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
29787 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
29788 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
29789   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
29790 fi
29791
29792     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
29793       { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
29794 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
29795 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
29796   echo $ECHO_N "(cached) $ECHO_C" >&6
29797 else
29798   ac_check_lib_save_LIBS=$LIBS
29799 LIBS="-ldnet_stub  $LIBS"
29800 cat >conftest.$ac_ext <<_ACEOF
29801 /* confdefs.h.  */
29802 _ACEOF
29803 cat confdefs.h >>conftest.$ac_ext
29804 cat >>conftest.$ac_ext <<_ACEOF
29805 /* end confdefs.h.  */
29806
29807 /* Override any GCC internal prototype to avoid an error.
29808    Use char because int might match the return type of a GCC
29809    builtin and then its argument prototype would still apply.  */
29810 #ifdef __cplusplus
29811 extern "C"
29812 #endif
29813 char dnet_ntoa ();
29814 int
29815 main ()
29816 {
29817 return dnet_ntoa ();
29818   ;
29819   return 0;
29820 }
29821 _ACEOF
29822 rm -f conftest.$ac_objext conftest$ac_exeext
29823 if { (ac_try="$ac_link"
29824 case "(($ac_try" in
29825   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29826   *) ac_try_echo=$ac_try;;
29827 esac
29828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29829   (eval "$ac_link") 2>conftest.er1
29830   ac_status=$?
29831   grep -v '^ *+' conftest.er1 >conftest.err
29832   rm -f conftest.er1
29833   cat conftest.err >&5
29834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29835   (exit $ac_status); } && {
29836          test -z "$ac_c_werror_flag" ||
29837          test ! -s conftest.err
29838        } && test -s conftest$ac_exeext &&
29839        $as_test_x conftest$ac_exeext; then
29840   ac_cv_lib_dnet_stub_dnet_ntoa=yes
29841 else
29842   echo "$as_me: failed program was:" >&5
29843 sed 's/^/| /' conftest.$ac_ext >&5
29844
29845         ac_cv_lib_dnet_stub_dnet_ntoa=no
29846 fi
29847
29848 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29849       conftest$ac_exeext conftest.$ac_ext
29850 LIBS=$ac_check_lib_save_LIBS
29851 fi
29852 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
29853 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
29854 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
29855   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
29856 fi
29857
29858     fi
29859 fi
29860
29861 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29862       conftest$ac_exeext conftest.$ac_ext
29863     LIBS="$ac_xsave_LIBS"
29864
29865     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
29866     # to get the SysV transport functions.
29867     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
29868     # needs -lnsl.
29869     # The nsl library prevents programs from opening the X display
29870     # on Irix 5.2, according to T.E. Dickey.
29871     # The functions gethostbyname, getservbyname, and inet_addr are
29872     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
29873     { echo "$as_me:$LINENO: checking for gethostbyname" >&5
29874 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
29875 if test "${ac_cv_func_gethostbyname+set}" = set; then
29876   echo $ECHO_N "(cached) $ECHO_C" >&6
29877 else
29878   cat >conftest.$ac_ext <<_ACEOF
29879 /* confdefs.h.  */
29880 _ACEOF
29881 cat confdefs.h >>conftest.$ac_ext
29882 cat >>conftest.$ac_ext <<_ACEOF
29883 /* end confdefs.h.  */
29884 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
29885    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29886 #define gethostbyname innocuous_gethostbyname
29887
29888 /* System header to define __stub macros and hopefully few prototypes,
29889     which can conflict with char gethostbyname (); below.
29890     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29891     <limits.h> exists even on freestanding compilers.  */
29892
29893 #ifdef __STDC__
29894 # include <limits.h>
29895 #else
29896 # include <assert.h>
29897 #endif
29898
29899 #undef gethostbyname
29900
29901 /* Override any GCC internal prototype to avoid an error.
29902    Use char because int might match the return type of a GCC
29903    builtin and then its argument prototype would still apply.  */
29904 #ifdef __cplusplus
29905 extern "C"
29906 #endif
29907 char gethostbyname ();
29908 /* The GNU C library defines this for functions which it implements
29909     to always fail with ENOSYS.  Some functions are actually named
29910     something starting with __ and the normal name is an alias.  */
29911 #if defined __stub_gethostbyname || defined __stub___gethostbyname
29912 choke me
29913 #endif
29914
29915 int
29916 main ()
29917 {
29918 return gethostbyname ();
29919   ;
29920   return 0;
29921 }
29922 _ACEOF
29923 rm -f conftest.$ac_objext conftest$ac_exeext
29924 if { (ac_try="$ac_link"
29925 case "(($ac_try" in
29926   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29927   *) ac_try_echo=$ac_try;;
29928 esac
29929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29930   (eval "$ac_link") 2>conftest.er1
29931   ac_status=$?
29932   grep -v '^ *+' conftest.er1 >conftest.err
29933   rm -f conftest.er1
29934   cat conftest.err >&5
29935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29936   (exit $ac_status); } && {
29937          test -z "$ac_c_werror_flag" ||
29938          test ! -s conftest.err
29939        } && test -s conftest$ac_exeext &&
29940        $as_test_x conftest$ac_exeext; then
29941   ac_cv_func_gethostbyname=yes
29942 else
29943   echo "$as_me: failed program was:" >&5
29944 sed 's/^/| /' conftest.$ac_ext >&5
29945
29946         ac_cv_func_gethostbyname=no
29947 fi
29948
29949 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29950       conftest$ac_exeext conftest.$ac_ext
29951 fi
29952 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
29953 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
29954
29955     if test $ac_cv_func_gethostbyname = no; then
29956       { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
29957 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
29958 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
29959   echo $ECHO_N "(cached) $ECHO_C" >&6
29960 else
29961   ac_check_lib_save_LIBS=$LIBS
29962 LIBS="-lnsl  $LIBS"
29963 cat >conftest.$ac_ext <<_ACEOF
29964 /* confdefs.h.  */
29965 _ACEOF
29966 cat confdefs.h >>conftest.$ac_ext
29967 cat >>conftest.$ac_ext <<_ACEOF
29968 /* end confdefs.h.  */
29969
29970 /* Override any GCC internal prototype to avoid an error.
29971    Use char because int might match the return type of a GCC
29972    builtin and then its argument prototype would still apply.  */
29973 #ifdef __cplusplus
29974 extern "C"
29975 #endif
29976 char gethostbyname ();
29977 int
29978 main ()
29979 {
29980 return gethostbyname ();
29981   ;
29982   return 0;
29983 }
29984 _ACEOF
29985 rm -f conftest.$ac_objext conftest$ac_exeext
29986 if { (ac_try="$ac_link"
29987 case "(($ac_try" in
29988   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29989   *) ac_try_echo=$ac_try;;
29990 esac
29991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29992   (eval "$ac_link") 2>conftest.er1
29993   ac_status=$?
29994   grep -v '^ *+' conftest.er1 >conftest.err
29995   rm -f conftest.er1
29996   cat conftest.err >&5
29997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29998   (exit $ac_status); } && {
29999          test -z "$ac_c_werror_flag" ||
30000          test ! -s conftest.err
30001        } && test -s conftest$ac_exeext &&
30002        $as_test_x conftest$ac_exeext; then
30003   ac_cv_lib_nsl_gethostbyname=yes
30004 else
30005   echo "$as_me: failed program was:" >&5
30006 sed 's/^/| /' conftest.$ac_ext >&5
30007
30008         ac_cv_lib_nsl_gethostbyname=no
30009 fi
30010
30011 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30012       conftest$ac_exeext conftest.$ac_ext
30013 LIBS=$ac_check_lib_save_LIBS
30014 fi
30015 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
30016 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
30017 if test $ac_cv_lib_nsl_gethostbyname = yes; then
30018   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
30019 fi
30020
30021       if test $ac_cv_lib_nsl_gethostbyname = no; then
30022         { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
30023 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
30024 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
30025   echo $ECHO_N "(cached) $ECHO_C" >&6
30026 else
30027   ac_check_lib_save_LIBS=$LIBS
30028 LIBS="-lbsd  $LIBS"
30029 cat >conftest.$ac_ext <<_ACEOF
30030 /* confdefs.h.  */
30031 _ACEOF
30032 cat confdefs.h >>conftest.$ac_ext
30033 cat >>conftest.$ac_ext <<_ACEOF
30034 /* end confdefs.h.  */
30035
30036 /* Override any GCC internal prototype to avoid an error.
30037    Use char because int might match the return type of a GCC
30038    builtin and then its argument prototype would still apply.  */
30039 #ifdef __cplusplus
30040 extern "C"
30041 #endif
30042 char gethostbyname ();
30043 int
30044 main ()
30045 {
30046 return gethostbyname ();
30047   ;
30048   return 0;
30049 }
30050 _ACEOF
30051 rm -f conftest.$ac_objext conftest$ac_exeext
30052 if { (ac_try="$ac_link"
30053 case "(($ac_try" in
30054   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30055   *) ac_try_echo=$ac_try;;
30056 esac
30057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30058   (eval "$ac_link") 2>conftest.er1
30059   ac_status=$?
30060   grep -v '^ *+' conftest.er1 >conftest.err
30061   rm -f conftest.er1
30062   cat conftest.err >&5
30063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30064   (exit $ac_status); } && {
30065          test -z "$ac_c_werror_flag" ||
30066          test ! -s conftest.err
30067        } && test -s conftest$ac_exeext &&
30068        $as_test_x conftest$ac_exeext; then
30069   ac_cv_lib_bsd_gethostbyname=yes
30070 else
30071   echo "$as_me: failed program was:" >&5
30072 sed 's/^/| /' conftest.$ac_ext >&5
30073
30074         ac_cv_lib_bsd_gethostbyname=no
30075 fi
30076
30077 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30078       conftest$ac_exeext conftest.$ac_ext
30079 LIBS=$ac_check_lib_save_LIBS
30080 fi
30081 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
30082 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
30083 if test $ac_cv_lib_bsd_gethostbyname = yes; then
30084   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
30085 fi
30086
30087       fi
30088     fi
30089
30090     # lieder@skyler.mavd.honeywell.com says without -lsocket,
30091     # socket/setsockopt and other routines are undefined under SCO ODT
30092     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
30093     # on later versions), says Simon Leinen: it contains gethostby*
30094     # variants that don't use the name server (or something).  -lsocket
30095     # must be given before -lnsl if both are needed.  We assume that
30096     # if connect needs -lnsl, so does gethostbyname.
30097     { echo "$as_me:$LINENO: checking for connect" >&5
30098 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
30099 if test "${ac_cv_func_connect+set}" = set; then
30100   echo $ECHO_N "(cached) $ECHO_C" >&6
30101 else
30102   cat >conftest.$ac_ext <<_ACEOF
30103 /* confdefs.h.  */
30104 _ACEOF
30105 cat confdefs.h >>conftest.$ac_ext
30106 cat >>conftest.$ac_ext <<_ACEOF
30107 /* end confdefs.h.  */
30108 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
30109    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30110 #define connect innocuous_connect
30111
30112 /* System header to define __stub macros and hopefully few prototypes,
30113     which can conflict with char connect (); below.
30114     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30115     <limits.h> exists even on freestanding compilers.  */
30116
30117 #ifdef __STDC__
30118 # include <limits.h>
30119 #else
30120 # include <assert.h>
30121 #endif
30122
30123 #undef connect
30124
30125 /* Override any GCC internal prototype to avoid an error.
30126    Use char because int might match the return type of a GCC
30127    builtin and then its argument prototype would still apply.  */
30128 #ifdef __cplusplus
30129 extern "C"
30130 #endif
30131 char connect ();
30132 /* The GNU C library defines this for functions which it implements
30133     to always fail with ENOSYS.  Some functions are actually named
30134     something starting with __ and the normal name is an alias.  */
30135 #if defined __stub_connect || defined __stub___connect
30136 choke me
30137 #endif
30138
30139 int
30140 main ()
30141 {
30142 return connect ();
30143   ;
30144   return 0;
30145 }
30146 _ACEOF
30147 rm -f conftest.$ac_objext conftest$ac_exeext
30148 if { (ac_try="$ac_link"
30149 case "(($ac_try" in
30150   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30151   *) ac_try_echo=$ac_try;;
30152 esac
30153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30154   (eval "$ac_link") 2>conftest.er1
30155   ac_status=$?
30156   grep -v '^ *+' conftest.er1 >conftest.err
30157   rm -f conftest.er1
30158   cat conftest.err >&5
30159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30160   (exit $ac_status); } && {
30161          test -z "$ac_c_werror_flag" ||
30162          test ! -s conftest.err
30163        } && test -s conftest$ac_exeext &&
30164        $as_test_x conftest$ac_exeext; then
30165   ac_cv_func_connect=yes
30166 else
30167   echo "$as_me: failed program was:" >&5
30168 sed 's/^/| /' conftest.$ac_ext >&5
30169
30170         ac_cv_func_connect=no
30171 fi
30172
30173 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30174       conftest$ac_exeext conftest.$ac_ext
30175 fi
30176 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
30177 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
30178
30179     if test $ac_cv_func_connect = no; then
30180       { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
30181 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
30182 if test "${ac_cv_lib_socket_connect+set}" = set; then
30183   echo $ECHO_N "(cached) $ECHO_C" >&6
30184 else
30185   ac_check_lib_save_LIBS=$LIBS
30186 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
30187 cat >conftest.$ac_ext <<_ACEOF
30188 /* confdefs.h.  */
30189 _ACEOF
30190 cat confdefs.h >>conftest.$ac_ext
30191 cat >>conftest.$ac_ext <<_ACEOF
30192 /* end confdefs.h.  */
30193
30194 /* Override any GCC internal prototype to avoid an error.
30195    Use char because int might match the return type of a GCC
30196    builtin and then its argument prototype would still apply.  */
30197 #ifdef __cplusplus
30198 extern "C"
30199 #endif
30200 char connect ();
30201 int
30202 main ()
30203 {
30204 return connect ();
30205   ;
30206   return 0;
30207 }
30208 _ACEOF
30209 rm -f conftest.$ac_objext conftest$ac_exeext
30210 if { (ac_try="$ac_link"
30211 case "(($ac_try" in
30212   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30213   *) ac_try_echo=$ac_try;;
30214 esac
30215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30216   (eval "$ac_link") 2>conftest.er1
30217   ac_status=$?
30218   grep -v '^ *+' conftest.er1 >conftest.err
30219   rm -f conftest.er1
30220   cat conftest.err >&5
30221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30222   (exit $ac_status); } && {
30223          test -z "$ac_c_werror_flag" ||
30224          test ! -s conftest.err
30225        } && test -s conftest$ac_exeext &&
30226        $as_test_x conftest$ac_exeext; then
30227   ac_cv_lib_socket_connect=yes
30228 else
30229   echo "$as_me: failed program was:" >&5
30230 sed 's/^/| /' conftest.$ac_ext >&5
30231
30232         ac_cv_lib_socket_connect=no
30233 fi
30234
30235 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30236       conftest$ac_exeext conftest.$ac_ext
30237 LIBS=$ac_check_lib_save_LIBS
30238 fi
30239 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
30240 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
30241 if test $ac_cv_lib_socket_connect = yes; then
30242   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
30243 fi
30244
30245     fi
30246
30247     # Guillermo Gomez says -lposix is necessary on A/UX.
30248     { echo "$as_me:$LINENO: checking for remove" >&5
30249 echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
30250 if test "${ac_cv_func_remove+set}" = set; then
30251   echo $ECHO_N "(cached) $ECHO_C" >&6
30252 else
30253   cat >conftest.$ac_ext <<_ACEOF
30254 /* confdefs.h.  */
30255 _ACEOF
30256 cat confdefs.h >>conftest.$ac_ext
30257 cat >>conftest.$ac_ext <<_ACEOF
30258 /* end confdefs.h.  */
30259 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
30260    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30261 #define remove innocuous_remove
30262
30263 /* System header to define __stub macros and hopefully few prototypes,
30264     which can conflict with char remove (); below.
30265     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30266     <limits.h> exists even on freestanding compilers.  */
30267
30268 #ifdef __STDC__
30269 # include <limits.h>
30270 #else
30271 # include <assert.h>
30272 #endif
30273
30274 #undef remove
30275
30276 /* Override any GCC internal prototype to avoid an error.
30277    Use char because int might match the return type of a GCC
30278    builtin and then its argument prototype would still apply.  */
30279 #ifdef __cplusplus
30280 extern "C"
30281 #endif
30282 char remove ();
30283 /* The GNU C library defines this for functions which it implements
30284     to always fail with ENOSYS.  Some functions are actually named
30285     something starting with __ and the normal name is an alias.  */
30286 #if defined __stub_remove || defined __stub___remove
30287 choke me
30288 #endif
30289
30290 int
30291 main ()
30292 {
30293 return remove ();
30294   ;
30295   return 0;
30296 }
30297 _ACEOF
30298 rm -f conftest.$ac_objext conftest$ac_exeext
30299 if { (ac_try="$ac_link"
30300 case "(($ac_try" in
30301   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30302   *) ac_try_echo=$ac_try;;
30303 esac
30304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30305   (eval "$ac_link") 2>conftest.er1
30306   ac_status=$?
30307   grep -v '^ *+' conftest.er1 >conftest.err
30308   rm -f conftest.er1
30309   cat conftest.err >&5
30310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30311   (exit $ac_status); } && {
30312          test -z "$ac_c_werror_flag" ||
30313          test ! -s conftest.err
30314        } && test -s conftest$ac_exeext &&
30315        $as_test_x conftest$ac_exeext; then
30316   ac_cv_func_remove=yes
30317 else
30318   echo "$as_me: failed program was:" >&5
30319 sed 's/^/| /' conftest.$ac_ext >&5
30320
30321         ac_cv_func_remove=no
30322 fi
30323
30324 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30325       conftest$ac_exeext conftest.$ac_ext
30326 fi
30327 { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
30328 echo "${ECHO_T}$ac_cv_func_remove" >&6; }
30329
30330     if test $ac_cv_func_remove = no; then
30331       { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
30332 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
30333 if test "${ac_cv_lib_posix_remove+set}" = set; then
30334   echo $ECHO_N "(cached) $ECHO_C" >&6
30335 else
30336   ac_check_lib_save_LIBS=$LIBS
30337 LIBS="-lposix  $LIBS"
30338 cat >conftest.$ac_ext <<_ACEOF
30339 /* confdefs.h.  */
30340 _ACEOF
30341 cat confdefs.h >>conftest.$ac_ext
30342 cat >>conftest.$ac_ext <<_ACEOF
30343 /* end confdefs.h.  */
30344
30345 /* Override any GCC internal prototype to avoid an error.
30346    Use char because int might match the return type of a GCC
30347    builtin and then its argument prototype would still apply.  */
30348 #ifdef __cplusplus
30349 extern "C"
30350 #endif
30351 char remove ();
30352 int
30353 main ()
30354 {
30355 return remove ();
30356   ;
30357   return 0;
30358 }
30359 _ACEOF
30360 rm -f conftest.$ac_objext conftest$ac_exeext
30361 if { (ac_try="$ac_link"
30362 case "(($ac_try" in
30363   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30364   *) ac_try_echo=$ac_try;;
30365 esac
30366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30367   (eval "$ac_link") 2>conftest.er1
30368   ac_status=$?
30369   grep -v '^ *+' conftest.er1 >conftest.err
30370   rm -f conftest.er1
30371   cat conftest.err >&5
30372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30373   (exit $ac_status); } && {
30374          test -z "$ac_c_werror_flag" ||
30375          test ! -s conftest.err
30376        } && test -s conftest$ac_exeext &&
30377        $as_test_x conftest$ac_exeext; then
30378   ac_cv_lib_posix_remove=yes
30379 else
30380   echo "$as_me: failed program was:" >&5
30381 sed 's/^/| /' conftest.$ac_ext >&5
30382
30383         ac_cv_lib_posix_remove=no
30384 fi
30385
30386 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30387       conftest$ac_exeext conftest.$ac_ext
30388 LIBS=$ac_check_lib_save_LIBS
30389 fi
30390 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
30391 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
30392 if test $ac_cv_lib_posix_remove = yes; then
30393   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
30394 fi
30395
30396     fi
30397
30398     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
30399     { echo "$as_me:$LINENO: checking for shmat" >&5
30400 echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
30401 if test "${ac_cv_func_shmat+set}" = set; then
30402   echo $ECHO_N "(cached) $ECHO_C" >&6
30403 else
30404   cat >conftest.$ac_ext <<_ACEOF
30405 /* confdefs.h.  */
30406 _ACEOF
30407 cat confdefs.h >>conftest.$ac_ext
30408 cat >>conftest.$ac_ext <<_ACEOF
30409 /* end confdefs.h.  */
30410 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
30411    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30412 #define shmat innocuous_shmat
30413
30414 /* System header to define __stub macros and hopefully few prototypes,
30415     which can conflict with char shmat (); below.
30416     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30417     <limits.h> exists even on freestanding compilers.  */
30418
30419 #ifdef __STDC__
30420 # include <limits.h>
30421 #else
30422 # include <assert.h>
30423 #endif
30424
30425 #undef shmat
30426
30427 /* Override any GCC internal prototype to avoid an error.
30428    Use char because int might match the return type of a GCC
30429    builtin and then its argument prototype would still apply.  */
30430 #ifdef __cplusplus
30431 extern "C"
30432 #endif
30433 char shmat ();
30434 /* The GNU C library defines this for functions which it implements
30435     to always fail with ENOSYS.  Some functions are actually named
30436     something starting with __ and the normal name is an alias.  */
30437 #if defined __stub_shmat || defined __stub___shmat
30438 choke me
30439 #endif
30440
30441 int
30442 main ()
30443 {
30444 return shmat ();
30445   ;
30446   return 0;
30447 }
30448 _ACEOF
30449 rm -f conftest.$ac_objext conftest$ac_exeext
30450 if { (ac_try="$ac_link"
30451 case "(($ac_try" in
30452   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30453   *) ac_try_echo=$ac_try;;
30454 esac
30455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30456   (eval "$ac_link") 2>conftest.er1
30457   ac_status=$?
30458   grep -v '^ *+' conftest.er1 >conftest.err
30459   rm -f conftest.er1
30460   cat conftest.err >&5
30461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30462   (exit $ac_status); } && {
30463          test -z "$ac_c_werror_flag" ||
30464          test ! -s conftest.err
30465        } && test -s conftest$ac_exeext &&
30466        $as_test_x conftest$ac_exeext; then
30467   ac_cv_func_shmat=yes
30468 else
30469   echo "$as_me: failed program was:" >&5
30470 sed 's/^/| /' conftest.$ac_ext >&5
30471
30472         ac_cv_func_shmat=no
30473 fi
30474
30475 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30476       conftest$ac_exeext conftest.$ac_ext
30477 fi
30478 { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
30479 echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
30480
30481     if test $ac_cv_func_shmat = no; then
30482       { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
30483 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
30484 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
30485   echo $ECHO_N "(cached) $ECHO_C" >&6
30486 else
30487   ac_check_lib_save_LIBS=$LIBS
30488 LIBS="-lipc  $LIBS"
30489 cat >conftest.$ac_ext <<_ACEOF
30490 /* confdefs.h.  */
30491 _ACEOF
30492 cat confdefs.h >>conftest.$ac_ext
30493 cat >>conftest.$ac_ext <<_ACEOF
30494 /* end confdefs.h.  */
30495
30496 /* Override any GCC internal prototype to avoid an error.
30497    Use char because int might match the return type of a GCC
30498    builtin and then its argument prototype would still apply.  */
30499 #ifdef __cplusplus
30500 extern "C"
30501 #endif
30502 char shmat ();
30503 int
30504 main ()
30505 {
30506 return shmat ();
30507   ;
30508   return 0;
30509 }
30510 _ACEOF
30511 rm -f conftest.$ac_objext conftest$ac_exeext
30512 if { (ac_try="$ac_link"
30513 case "(($ac_try" in
30514   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30515   *) ac_try_echo=$ac_try;;
30516 esac
30517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30518   (eval "$ac_link") 2>conftest.er1
30519   ac_status=$?
30520   grep -v '^ *+' conftest.er1 >conftest.err
30521   rm -f conftest.er1
30522   cat conftest.err >&5
30523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30524   (exit $ac_status); } && {
30525          test -z "$ac_c_werror_flag" ||
30526          test ! -s conftest.err
30527        } && test -s conftest$ac_exeext &&
30528        $as_test_x conftest$ac_exeext; then
30529   ac_cv_lib_ipc_shmat=yes
30530 else
30531   echo "$as_me: failed program was:" >&5
30532 sed 's/^/| /' conftest.$ac_ext >&5
30533
30534         ac_cv_lib_ipc_shmat=no
30535 fi
30536
30537 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30538       conftest$ac_exeext conftest.$ac_ext
30539 LIBS=$ac_check_lib_save_LIBS
30540 fi
30541 { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
30542 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
30543 if test $ac_cv_lib_ipc_shmat = yes; then
30544   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
30545 fi
30546
30547     fi
30548   fi
30549
30550   # Check for libraries that X11R6 Xt/Xaw programs need.
30551   ac_save_LDFLAGS=$LDFLAGS
30552   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
30553   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
30554   # check for ICE first), but we must link in the order -lSM -lICE or
30555   # we get undefined symbols.  So assume we have SM if we have ICE.
30556   # These have to be linked with before -lX11, unlike the other
30557   # libraries we check for below, so use a different variable.
30558   # John Interrante, Karl Berry
30559   { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
30560 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
30561 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
30562   echo $ECHO_N "(cached) $ECHO_C" >&6
30563 else
30564   ac_check_lib_save_LIBS=$LIBS
30565 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
30566 cat >conftest.$ac_ext <<_ACEOF
30567 /* confdefs.h.  */
30568 _ACEOF
30569 cat confdefs.h >>conftest.$ac_ext
30570 cat >>conftest.$ac_ext <<_ACEOF
30571 /* end confdefs.h.  */
30572
30573 /* Override any GCC internal prototype to avoid an error.
30574    Use char because int might match the return type of a GCC
30575    builtin and then its argument prototype would still apply.  */
30576 #ifdef __cplusplus
30577 extern "C"
30578 #endif
30579 char IceConnectionNumber ();
30580 int
30581 main ()
30582 {
30583 return IceConnectionNumber ();
30584   ;
30585   return 0;
30586 }
30587 _ACEOF
30588 rm -f conftest.$ac_objext conftest$ac_exeext
30589 if { (ac_try="$ac_link"
30590 case "(($ac_try" in
30591   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30592   *) ac_try_echo=$ac_try;;
30593 esac
30594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30595   (eval "$ac_link") 2>conftest.er1
30596   ac_status=$?
30597   grep -v '^ *+' conftest.er1 >conftest.err
30598   rm -f conftest.er1
30599   cat conftest.err >&5
30600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30601   (exit $ac_status); } && {
30602          test -z "$ac_c_werror_flag" ||
30603          test ! -s conftest.err
30604        } && test -s conftest$ac_exeext &&
30605        $as_test_x conftest$ac_exeext; then
30606   ac_cv_lib_ICE_IceConnectionNumber=yes
30607 else
30608   echo "$as_me: failed program was:" >&5
30609 sed 's/^/| /' conftest.$ac_ext >&5
30610
30611         ac_cv_lib_ICE_IceConnectionNumber=no
30612 fi
30613
30614 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30615       conftest$ac_exeext conftest.$ac_ext
30616 LIBS=$ac_check_lib_save_LIBS
30617 fi
30618 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
30619 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
30620 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
30621   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
30622 fi
30623
30624   LDFLAGS=$ac_save_LDFLAGS
30625
30626 fi
30627
30628
30629
30630
30631
30632
30633
30634
30635
30636
30637
30638
30639
30640
30641
30642
30643
30644
30645
30646
30647
30648
30649
30650
30651
30652
30653
30654
30655
30656
30657
30658 for ac_header in \
30659    assert.h \
30660    fcntl.h \
30661    grp.h \
30662    pwd.h \
30663    libc.h \
30664    limits.h \
30665    stdarg.h \
30666    stdlib.h \
30667    stdint.h \
30668    string.h \
30669    strings.h \
30670    termios.h \
30671    termcap.h \
30672    term.h \
30673    unistd.h \
30674    sys/bitypes.h \
30675    sys/byteorder.h \
30676    sys/ioctl.h \
30677    sys/select.h \
30678    sys/socket.h \
30679    sys/sockio.h \
30680    sys/stat.h \
30681    sys/time.h \
30682    sys/types.h \
30683    arpa/nameser.h \
30684    mtio.h \
30685    sys/mtio.h \
30686    sys/tape.h \
30687    regex.h \
30688
30689 do
30690 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30691 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30692   { echo "$as_me:$LINENO: checking for $ac_header" >&5
30693 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30694 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30695   echo $ECHO_N "(cached) $ECHO_C" >&6
30696 fi
30697 ac_res=`eval echo '${'$as_ac_Header'}'`
30698                { echo "$as_me:$LINENO: result: $ac_res" >&5
30699 echo "${ECHO_T}$ac_res" >&6; }
30700 else
30701   # Is the header compilable?
30702 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30703 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30704 cat >conftest.$ac_ext <<_ACEOF
30705 /* confdefs.h.  */
30706 _ACEOF
30707 cat confdefs.h >>conftest.$ac_ext
30708 cat >>conftest.$ac_ext <<_ACEOF
30709 /* end confdefs.h.  */
30710 $ac_includes_default
30711 #include <$ac_header>
30712 _ACEOF
30713 rm -f conftest.$ac_objext
30714 if { (ac_try="$ac_compile"
30715 case "(($ac_try" in
30716   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30717   *) ac_try_echo=$ac_try;;
30718 esac
30719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30720   (eval "$ac_compile") 2>conftest.er1
30721   ac_status=$?
30722   grep -v '^ *+' conftest.er1 >conftest.err
30723   rm -f conftest.er1
30724   cat conftest.err >&5
30725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30726   (exit $ac_status); } && {
30727          test -z "$ac_c_werror_flag" ||
30728          test ! -s conftest.err
30729        } && test -s conftest.$ac_objext; then
30730   ac_header_compiler=yes
30731 else
30732   echo "$as_me: failed program was:" >&5
30733 sed 's/^/| /' conftest.$ac_ext >&5
30734
30735         ac_header_compiler=no
30736 fi
30737
30738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30739 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30740 echo "${ECHO_T}$ac_header_compiler" >&6; }
30741
30742 # Is the header present?
30743 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30744 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30745 cat >conftest.$ac_ext <<_ACEOF
30746 /* confdefs.h.  */
30747 _ACEOF
30748 cat confdefs.h >>conftest.$ac_ext
30749 cat >>conftest.$ac_ext <<_ACEOF
30750 /* end confdefs.h.  */
30751 #include <$ac_header>
30752 _ACEOF
30753 if { (ac_try="$ac_cpp conftest.$ac_ext"
30754 case "(($ac_try" in
30755   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30756   *) ac_try_echo=$ac_try;;
30757 esac
30758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30759   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30760   ac_status=$?
30761   grep -v '^ *+' conftest.er1 >conftest.err
30762   rm -f conftest.er1
30763   cat conftest.err >&5
30764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30765   (exit $ac_status); } >/dev/null && {
30766          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30767          test ! -s conftest.err
30768        }; then
30769   ac_header_preproc=yes
30770 else
30771   echo "$as_me: failed program was:" >&5
30772 sed 's/^/| /' conftest.$ac_ext >&5
30773
30774   ac_header_preproc=no
30775 fi
30776
30777 rm -f conftest.err conftest.$ac_ext
30778 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30779 echo "${ECHO_T}$ac_header_preproc" >&6; }
30780
30781 # So?  What about this header?
30782 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30783   yes:no: )
30784     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30785 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30786     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30787 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30788     ac_header_preproc=yes
30789     ;;
30790   no:yes:* )
30791     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30792 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30793     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
30794 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
30795     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30796 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30797     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
30798 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
30799     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30800 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30801     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30802 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30803
30804     ;;
30805 esac
30806 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30807 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30808 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30809   echo $ECHO_N "(cached) $ECHO_C" >&6
30810 else
30811   eval "$as_ac_Header=\$ac_header_preproc"
30812 fi
30813 ac_res=`eval echo '${'$as_ac_Header'}'`
30814                { echo "$as_me:$LINENO: result: $ac_res" >&5
30815 echo "${ECHO_T}$ac_res" >&6; }
30816
30817 fi
30818 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30819   cat >>confdefs.h <<_ACEOF
30820 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30821 _ACEOF
30822
30823 fi
30824
30825 done
30826
30827 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
30828 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
30829 if test "${ac_cv_header_stdc+set}" = set; then
30830   echo $ECHO_N "(cached) $ECHO_C" >&6
30831 else
30832   cat >conftest.$ac_ext <<_ACEOF
30833 /* confdefs.h.  */
30834 _ACEOF
30835 cat confdefs.h >>conftest.$ac_ext
30836 cat >>conftest.$ac_ext <<_ACEOF
30837 /* end confdefs.h.  */
30838 #include <stdlib.h>
30839 #include <stdarg.h>
30840 #include <string.h>
30841 #include <float.h>
30842
30843 int
30844 main ()
30845 {
30846
30847   ;
30848   return 0;
30849 }
30850 _ACEOF
30851 rm -f conftest.$ac_objext
30852 if { (ac_try="$ac_compile"
30853 case "(($ac_try" in
30854   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30855   *) ac_try_echo=$ac_try;;
30856 esac
30857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30858   (eval "$ac_compile") 2>conftest.er1
30859   ac_status=$?
30860   grep -v '^ *+' conftest.er1 >conftest.err
30861   rm -f conftest.er1
30862   cat conftest.err >&5
30863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30864   (exit $ac_status); } && {
30865          test -z "$ac_c_werror_flag" ||
30866          test ! -s conftest.err
30867        } && test -s conftest.$ac_objext; then
30868   ac_cv_header_stdc=yes
30869 else
30870   echo "$as_me: failed program was:" >&5
30871 sed 's/^/| /' conftest.$ac_ext >&5
30872
30873         ac_cv_header_stdc=no
30874 fi
30875
30876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30877
30878 if test $ac_cv_header_stdc = yes; then
30879   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
30880   cat >conftest.$ac_ext <<_ACEOF
30881 /* confdefs.h.  */
30882 _ACEOF
30883 cat confdefs.h >>conftest.$ac_ext
30884 cat >>conftest.$ac_ext <<_ACEOF
30885 /* end confdefs.h.  */
30886 #include <string.h>
30887
30888 _ACEOF
30889 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30890   $EGREP "memchr" >/dev/null 2>&1; then
30891   :
30892 else
30893   ac_cv_header_stdc=no
30894 fi
30895 rm -f conftest*
30896
30897 fi
30898
30899 if test $ac_cv_header_stdc = yes; then
30900   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
30901   cat >conftest.$ac_ext <<_ACEOF
30902 /* confdefs.h.  */
30903 _ACEOF
30904 cat confdefs.h >>conftest.$ac_ext
30905 cat >>conftest.$ac_ext <<_ACEOF
30906 /* end confdefs.h.  */
30907 #include <stdlib.h>
30908
30909 _ACEOF
30910 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30911   $EGREP "free" >/dev/null 2>&1; then
30912   :
30913 else
30914   ac_cv_header_stdc=no
30915 fi
30916 rm -f conftest*
30917
30918 fi
30919
30920 if test $ac_cv_header_stdc = yes; then
30921   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
30922   if test "$cross_compiling" = yes; then
30923   :
30924 else
30925   cat >conftest.$ac_ext <<_ACEOF
30926 /* confdefs.h.  */
30927 _ACEOF
30928 cat confdefs.h >>conftest.$ac_ext
30929 cat >>conftest.$ac_ext <<_ACEOF
30930 /* end confdefs.h.  */
30931 #include <ctype.h>
30932 #include <stdlib.h>
30933 #if ((' ' & 0x0FF) == 0x020)
30934 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
30935 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
30936 #else
30937 # define ISLOWER(c) \
30938                    (('a' <= (c) && (c) <= 'i') \
30939                      || ('j' <= (c) && (c) <= 'r') \
30940                      || ('s' <= (c) && (c) <= 'z'))
30941 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
30942 #endif
30943
30944 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
30945 int
30946 main ()
30947 {
30948   int i;
30949   for (i = 0; i < 256; i++)
30950     if (XOR (islower (i), ISLOWER (i))
30951         || toupper (i) != TOUPPER (i))
30952       return 2;
30953   return 0;
30954 }
30955 _ACEOF
30956 rm -f conftest$ac_exeext
30957 if { (ac_try="$ac_link"
30958 case "(($ac_try" in
30959   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30960   *) ac_try_echo=$ac_try;;
30961 esac
30962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30963   (eval "$ac_link") 2>&5
30964   ac_status=$?
30965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30966   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30967   { (case "(($ac_try" in
30968   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30969   *) ac_try_echo=$ac_try;;
30970 esac
30971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30972   (eval "$ac_try") 2>&5
30973   ac_status=$?
30974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30975   (exit $ac_status); }; }; then
30976   :
30977 else
30978   echo "$as_me: program exited with status $ac_status" >&5
30979 echo "$as_me: failed program was:" >&5
30980 sed 's/^/| /' conftest.$ac_ext >&5
30981
30982 ( exit $ac_status )
30983 ac_cv_header_stdc=no
30984 fi
30985 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30986 fi
30987
30988
30989 fi
30990 fi
30991 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
30992 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
30993 if test $ac_cv_header_stdc = yes; then
30994
30995 cat >>confdefs.h <<\_ACEOF
30996 #define STDC_HEADERS 1
30997 _ACEOF
30998
30999 fi
31000
31001 { echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
31002 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6; }
31003 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
31004   echo $ECHO_N "(cached) $ECHO_C" >&6
31005 else
31006   cat >conftest.$ac_ext <<_ACEOF
31007 /* confdefs.h.  */
31008 _ACEOF
31009 cat confdefs.h >>conftest.$ac_ext
31010 cat >>conftest.$ac_ext <<_ACEOF
31011 /* end confdefs.h.  */
31012 #include <sys/types.h>
31013 int
31014 main ()
31015 {
31016 return makedev(0, 0);
31017   ;
31018   return 0;
31019 }
31020 _ACEOF
31021 rm -f conftest.$ac_objext conftest$ac_exeext
31022 if { (ac_try="$ac_link"
31023 case "(($ac_try" in
31024   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31025   *) ac_try_echo=$ac_try;;
31026 esac
31027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31028   (eval "$ac_link") 2>conftest.er1
31029   ac_status=$?
31030   grep -v '^ *+' conftest.er1 >conftest.err
31031   rm -f conftest.er1
31032   cat conftest.err >&5
31033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31034   (exit $ac_status); } && {
31035          test -z "$ac_c_werror_flag" ||
31036          test ! -s conftest.err
31037        } && test -s conftest$ac_exeext &&
31038        $as_test_x conftest$ac_exeext; then
31039   ac_cv_header_sys_types_h_makedev=yes
31040 else
31041   echo "$as_me: failed program was:" >&5
31042 sed 's/^/| /' conftest.$ac_ext >&5
31043
31044         ac_cv_header_sys_types_h_makedev=no
31045 fi
31046
31047 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31048       conftest$ac_exeext conftest.$ac_ext
31049
31050 fi
31051 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
31052 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6; }
31053
31054 if test $ac_cv_header_sys_types_h_makedev = no; then
31055 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
31056   { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
31057 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
31058 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
31059   echo $ECHO_N "(cached) $ECHO_C" >&6
31060 fi
31061 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
31062 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
31063 else
31064   # Is the header compilable?
31065 { echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
31066 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6; }
31067 cat >conftest.$ac_ext <<_ACEOF
31068 /* confdefs.h.  */
31069 _ACEOF
31070 cat confdefs.h >>conftest.$ac_ext
31071 cat >>conftest.$ac_ext <<_ACEOF
31072 /* end confdefs.h.  */
31073 $ac_includes_default
31074 #include <sys/mkdev.h>
31075 _ACEOF
31076 rm -f conftest.$ac_objext
31077 if { (ac_try="$ac_compile"
31078 case "(($ac_try" in
31079   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31080   *) ac_try_echo=$ac_try;;
31081 esac
31082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31083   (eval "$ac_compile") 2>conftest.er1
31084   ac_status=$?
31085   grep -v '^ *+' conftest.er1 >conftest.err
31086   rm -f conftest.er1
31087   cat conftest.err >&5
31088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31089   (exit $ac_status); } && {
31090          test -z "$ac_c_werror_flag" ||
31091          test ! -s conftest.err
31092        } && test -s conftest.$ac_objext; then
31093   ac_header_compiler=yes
31094 else
31095   echo "$as_me: failed program was:" >&5
31096 sed 's/^/| /' conftest.$ac_ext >&5
31097
31098         ac_header_compiler=no
31099 fi
31100
31101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31102 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31103 echo "${ECHO_T}$ac_header_compiler" >&6; }
31104
31105 # Is the header present?
31106 { echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
31107 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6; }
31108 cat >conftest.$ac_ext <<_ACEOF
31109 /* confdefs.h.  */
31110 _ACEOF
31111 cat confdefs.h >>conftest.$ac_ext
31112 cat >>conftest.$ac_ext <<_ACEOF
31113 /* end confdefs.h.  */
31114 #include <sys/mkdev.h>
31115 _ACEOF
31116 if { (ac_try="$ac_cpp conftest.$ac_ext"
31117 case "(($ac_try" in
31118   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31119   *) ac_try_echo=$ac_try;;
31120 esac
31121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31122   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31123   ac_status=$?
31124   grep -v '^ *+' conftest.er1 >conftest.err
31125   rm -f conftest.er1
31126   cat conftest.err >&5
31127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31128   (exit $ac_status); } >/dev/null && {
31129          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31130          test ! -s conftest.err
31131        }; then
31132   ac_header_preproc=yes
31133 else
31134   echo "$as_me: failed program was:" >&5
31135 sed 's/^/| /' conftest.$ac_ext >&5
31136
31137   ac_header_preproc=no
31138 fi
31139
31140 rm -f conftest.err conftest.$ac_ext
31141 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31142 echo "${ECHO_T}$ac_header_preproc" >&6; }
31143
31144 # So?  What about this header?
31145 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31146   yes:no: )
31147     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
31148 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31149     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
31150 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
31151     ac_header_preproc=yes
31152     ;;
31153   no:yes:* )
31154     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
31155 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
31156     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&5
31157 echo "$as_me: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&2;}
31158     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
31159 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
31160     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&5
31161 echo "$as_me: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&2;}
31162     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
31163 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
31164     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
31165 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
31166
31167     ;;
31168 esac
31169 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
31170 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
31171 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
31172   echo $ECHO_N "(cached) $ECHO_C" >&6
31173 else
31174   ac_cv_header_sys_mkdev_h=$ac_header_preproc
31175 fi
31176 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
31177 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
31178
31179 fi
31180 if test $ac_cv_header_sys_mkdev_h = yes; then
31181
31182 cat >>confdefs.h <<\_ACEOF
31183 #define MAJOR_IN_MKDEV 1
31184 _ACEOF
31185
31186 fi
31187
31188
31189
31190   if test $ac_cv_header_sys_mkdev_h = no; then
31191     if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
31192   { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
31193 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
31194 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
31195   echo $ECHO_N "(cached) $ECHO_C" >&6
31196 fi
31197 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
31198 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
31199 else
31200   # Is the header compilable?
31201 { echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
31202 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6; }
31203 cat >conftest.$ac_ext <<_ACEOF
31204 /* confdefs.h.  */
31205 _ACEOF
31206 cat confdefs.h >>conftest.$ac_ext
31207 cat >>conftest.$ac_ext <<_ACEOF
31208 /* end confdefs.h.  */
31209 $ac_includes_default
31210 #include <sys/sysmacros.h>
31211 _ACEOF
31212 rm -f conftest.$ac_objext
31213 if { (ac_try="$ac_compile"
31214 case "(($ac_try" in
31215   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31216   *) ac_try_echo=$ac_try;;
31217 esac
31218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31219   (eval "$ac_compile") 2>conftest.er1
31220   ac_status=$?
31221   grep -v '^ *+' conftest.er1 >conftest.err
31222   rm -f conftest.er1
31223   cat conftest.err >&5
31224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31225   (exit $ac_status); } && {
31226          test -z "$ac_c_werror_flag" ||
31227          test ! -s conftest.err
31228        } && test -s conftest.$ac_objext; then
31229   ac_header_compiler=yes
31230 else
31231   echo "$as_me: failed program was:" >&5
31232 sed 's/^/| /' conftest.$ac_ext >&5
31233
31234         ac_header_compiler=no
31235 fi
31236
31237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31238 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31239 echo "${ECHO_T}$ac_header_compiler" >&6; }
31240
31241 # Is the header present?
31242 { echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
31243 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6; }
31244 cat >conftest.$ac_ext <<_ACEOF
31245 /* confdefs.h.  */
31246 _ACEOF
31247 cat confdefs.h >>conftest.$ac_ext
31248 cat >>conftest.$ac_ext <<_ACEOF
31249 /* end confdefs.h.  */
31250 #include <sys/sysmacros.h>
31251 _ACEOF
31252 if { (ac_try="$ac_cpp conftest.$ac_ext"
31253 case "(($ac_try" in
31254   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31255   *) ac_try_echo=$ac_try;;
31256 esac
31257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31258   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31259   ac_status=$?
31260   grep -v '^ *+' conftest.er1 >conftest.err
31261   rm -f conftest.er1
31262   cat conftest.err >&5
31263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31264   (exit $ac_status); } >/dev/null && {
31265          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31266          test ! -s conftest.err
31267        }; then
31268   ac_header_preproc=yes
31269 else
31270   echo "$as_me: failed program was:" >&5
31271 sed 's/^/| /' conftest.$ac_ext >&5
31272
31273   ac_header_preproc=no
31274 fi
31275
31276 rm -f conftest.err conftest.$ac_ext
31277 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31278 echo "${ECHO_T}$ac_header_preproc" >&6; }
31279
31280 # So?  What about this header?
31281 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31282   yes:no: )
31283     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
31284 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31285     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
31286 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
31287     ac_header_preproc=yes
31288     ;;
31289   no:yes:* )
31290     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
31291 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
31292     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&5
31293 echo "$as_me: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&2;}
31294     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
31295 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
31296     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&5
31297 echo "$as_me: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&2;}
31298     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
31299 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
31300     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
31301 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
31302
31303     ;;
31304 esac
31305 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
31306 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
31307 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
31308   echo $ECHO_N "(cached) $ECHO_C" >&6
31309 else
31310   ac_cv_header_sys_sysmacros_h=$ac_header_preproc
31311 fi
31312 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
31313 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
31314
31315 fi
31316 if test $ac_cv_header_sys_sysmacros_h = yes; then
31317
31318 cat >>confdefs.h <<\_ACEOF
31319 #define MAJOR_IN_SYSMACROS 1
31320 _ACEOF
31321
31322 fi
31323
31324
31325   fi
31326 fi
31327
31328
31329
31330
31331
31332
31333 ac_header_dirent=no
31334 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
31335   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
31336 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
31337 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
31338 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31339   echo $ECHO_N "(cached) $ECHO_C" >&6
31340 else
31341   cat >conftest.$ac_ext <<_ACEOF
31342 /* confdefs.h.  */
31343 _ACEOF
31344 cat confdefs.h >>conftest.$ac_ext
31345 cat >>conftest.$ac_ext <<_ACEOF
31346 /* end confdefs.h.  */
31347 #include <sys/types.h>
31348 #include <$ac_hdr>
31349
31350 int
31351 main ()
31352 {
31353 if ((DIR *) 0)
31354 return 0;
31355   ;
31356   return 0;
31357 }
31358 _ACEOF
31359 rm -f conftest.$ac_objext
31360 if { (ac_try="$ac_compile"
31361 case "(($ac_try" in
31362   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31363   *) ac_try_echo=$ac_try;;
31364 esac
31365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31366   (eval "$ac_compile") 2>conftest.er1
31367   ac_status=$?
31368   grep -v '^ *+' conftest.er1 >conftest.err
31369   rm -f conftest.er1
31370   cat conftest.err >&5
31371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31372   (exit $ac_status); } && {
31373          test -z "$ac_c_werror_flag" ||
31374          test ! -s conftest.err
31375        } && test -s conftest.$ac_objext; then
31376   eval "$as_ac_Header=yes"
31377 else
31378   echo "$as_me: failed program was:" >&5
31379 sed 's/^/| /' conftest.$ac_ext >&5
31380
31381         eval "$as_ac_Header=no"
31382 fi
31383
31384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31385 fi
31386 ac_res=`eval echo '${'$as_ac_Header'}'`
31387                { echo "$as_me:$LINENO: result: $ac_res" >&5
31388 echo "${ECHO_T}$ac_res" >&6; }
31389 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31390   cat >>confdefs.h <<_ACEOF
31391 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
31392 _ACEOF
31393
31394 ac_header_dirent=$ac_hdr; break
31395 fi
31396
31397 done
31398 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
31399 if test $ac_header_dirent = dirent.h; then
31400   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
31401 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
31402 if test "${ac_cv_search_opendir+set}" = set; then
31403   echo $ECHO_N "(cached) $ECHO_C" >&6
31404 else
31405   ac_func_search_save_LIBS=$LIBS
31406 cat >conftest.$ac_ext <<_ACEOF
31407 /* confdefs.h.  */
31408 _ACEOF
31409 cat confdefs.h >>conftest.$ac_ext
31410 cat >>conftest.$ac_ext <<_ACEOF
31411 /* end confdefs.h.  */
31412
31413 /* Override any GCC internal prototype to avoid an error.
31414    Use char because int might match the return type of a GCC
31415    builtin and then its argument prototype would still apply.  */
31416 #ifdef __cplusplus
31417 extern "C"
31418 #endif
31419 char opendir ();
31420 int
31421 main ()
31422 {
31423 return opendir ();
31424   ;
31425   return 0;
31426 }
31427 _ACEOF
31428 for ac_lib in '' dir; do
31429   if test -z "$ac_lib"; then
31430     ac_res="none required"
31431   else
31432     ac_res=-l$ac_lib
31433     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
31434   fi
31435   rm -f conftest.$ac_objext conftest$ac_exeext
31436 if { (ac_try="$ac_link"
31437 case "(($ac_try" in
31438   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31439   *) ac_try_echo=$ac_try;;
31440 esac
31441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31442   (eval "$ac_link") 2>conftest.er1
31443   ac_status=$?
31444   grep -v '^ *+' conftest.er1 >conftest.err
31445   rm -f conftest.er1
31446   cat conftest.err >&5
31447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31448   (exit $ac_status); } && {
31449          test -z "$ac_c_werror_flag" ||
31450          test ! -s conftest.err
31451        } && test -s conftest$ac_exeext &&
31452        $as_test_x conftest$ac_exeext; then
31453   ac_cv_search_opendir=$ac_res
31454 else
31455   echo "$as_me: failed program was:" >&5
31456 sed 's/^/| /' conftest.$ac_ext >&5
31457
31458
31459 fi
31460
31461 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31462       conftest$ac_exeext
31463   if test "${ac_cv_search_opendir+set}" = set; then
31464   break
31465 fi
31466 done
31467 if test "${ac_cv_search_opendir+set}" = set; then
31468   :
31469 else
31470   ac_cv_search_opendir=no
31471 fi
31472 rm conftest.$ac_ext
31473 LIBS=$ac_func_search_save_LIBS
31474 fi
31475 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
31476 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
31477 ac_res=$ac_cv_search_opendir
31478 if test "$ac_res" != no; then
31479   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
31480
31481 fi
31482
31483 else
31484   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
31485 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
31486 if test "${ac_cv_search_opendir+set}" = set; then
31487   echo $ECHO_N "(cached) $ECHO_C" >&6
31488 else
31489   ac_func_search_save_LIBS=$LIBS
31490 cat >conftest.$ac_ext <<_ACEOF
31491 /* confdefs.h.  */
31492 _ACEOF
31493 cat confdefs.h >>conftest.$ac_ext
31494 cat >>conftest.$ac_ext <<_ACEOF
31495 /* end confdefs.h.  */
31496
31497 /* Override any GCC internal prototype to avoid an error.
31498    Use char because int might match the return type of a GCC
31499    builtin and then its argument prototype would still apply.  */
31500 #ifdef __cplusplus
31501 extern "C"
31502 #endif
31503 char opendir ();
31504 int
31505 main ()
31506 {
31507 return opendir ();
31508   ;
31509   return 0;
31510 }
31511 _ACEOF
31512 for ac_lib in '' x; do
31513   if test -z "$ac_lib"; then
31514     ac_res="none required"
31515   else
31516     ac_res=-l$ac_lib
31517     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
31518   fi
31519   rm -f conftest.$ac_objext conftest$ac_exeext
31520 if { (ac_try="$ac_link"
31521 case "(($ac_try" in
31522   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31523   *) ac_try_echo=$ac_try;;
31524 esac
31525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31526   (eval "$ac_link") 2>conftest.er1
31527   ac_status=$?
31528   grep -v '^ *+' conftest.er1 >conftest.err
31529   rm -f conftest.er1
31530   cat conftest.err >&5
31531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31532   (exit $ac_status); } && {
31533          test -z "$ac_c_werror_flag" ||
31534          test ! -s conftest.err
31535        } && test -s conftest$ac_exeext &&
31536        $as_test_x conftest$ac_exeext; then
31537   ac_cv_search_opendir=$ac_res
31538 else
31539   echo "$as_me: failed program was:" >&5
31540 sed 's/^/| /' conftest.$ac_ext >&5
31541
31542
31543 fi
31544
31545 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31546       conftest$ac_exeext
31547   if test "${ac_cv_search_opendir+set}" = set; then
31548   break
31549 fi
31550 done
31551 if test "${ac_cv_search_opendir+set}" = set; then
31552   :
31553 else
31554   ac_cv_search_opendir=no
31555 fi
31556 rm conftest.$ac_ext
31557 LIBS=$ac_func_search_save_LIBS
31558 fi
31559 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
31560 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
31561 ac_res=$ac_cv_search_opendir
31562 if test "$ac_res" != no; then
31563   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
31564
31565 fi
31566
31567 fi
31568
31569 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
31570 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
31571 if test "${ac_cv_header_stat_broken+set}" = set; then
31572   echo $ECHO_N "(cached) $ECHO_C" >&6
31573 else
31574   cat >conftest.$ac_ext <<_ACEOF
31575 /* confdefs.h.  */
31576 _ACEOF
31577 cat confdefs.h >>conftest.$ac_ext
31578 cat >>conftest.$ac_ext <<_ACEOF
31579 /* end confdefs.h.  */
31580 #include <sys/types.h>
31581 #include <sys/stat.h>
31582
31583 #if defined S_ISBLK && defined S_IFDIR
31584 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
31585 #endif
31586
31587 #if defined S_ISBLK && defined S_IFCHR
31588 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
31589 #endif
31590
31591 #if defined S_ISLNK && defined S_IFREG
31592 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
31593 #endif
31594
31595 #if defined S_ISSOCK && defined S_IFREG
31596 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
31597 #endif
31598
31599 _ACEOF
31600 rm -f conftest.$ac_objext
31601 if { (ac_try="$ac_compile"
31602 case "(($ac_try" in
31603   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31604   *) ac_try_echo=$ac_try;;
31605 esac
31606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31607   (eval "$ac_compile") 2>conftest.er1
31608   ac_status=$?
31609   grep -v '^ *+' conftest.er1 >conftest.err
31610   rm -f conftest.er1
31611   cat conftest.err >&5
31612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31613   (exit $ac_status); } && {
31614          test -z "$ac_c_werror_flag" ||
31615          test ! -s conftest.err
31616        } && test -s conftest.$ac_objext; then
31617   ac_cv_header_stat_broken=no
31618 else
31619   echo "$as_me: failed program was:" >&5
31620 sed 's/^/| /' conftest.$ac_ext >&5
31621
31622         ac_cv_header_stat_broken=yes
31623 fi
31624
31625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31626 fi
31627 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
31628 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
31629 if test $ac_cv_header_stat_broken = yes; then
31630
31631 cat >>confdefs.h <<\_ACEOF
31632 #define STAT_MACROS_BROKEN 1
31633 _ACEOF
31634
31635 fi
31636
31637 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
31638 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
31639 if test "${ac_cv_header_sys_wait_h+set}" = set; then
31640   echo $ECHO_N "(cached) $ECHO_C" >&6
31641 else
31642   cat >conftest.$ac_ext <<_ACEOF
31643 /* confdefs.h.  */
31644 _ACEOF
31645 cat confdefs.h >>conftest.$ac_ext
31646 cat >>conftest.$ac_ext <<_ACEOF
31647 /* end confdefs.h.  */
31648 #include <sys/types.h>
31649 #include <sys/wait.h>
31650 #ifndef WEXITSTATUS
31651 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
31652 #endif
31653 #ifndef WIFEXITED
31654 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
31655 #endif
31656
31657 int
31658 main ()
31659 {
31660   int s;
31661   wait (&s);
31662   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
31663   ;
31664   return 0;
31665 }
31666 _ACEOF
31667 rm -f conftest.$ac_objext
31668 if { (ac_try="$ac_compile"
31669 case "(($ac_try" in
31670   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31671   *) ac_try_echo=$ac_try;;
31672 esac
31673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31674   (eval "$ac_compile") 2>conftest.er1
31675   ac_status=$?
31676   grep -v '^ *+' conftest.er1 >conftest.err
31677   rm -f conftest.er1
31678   cat conftest.err >&5
31679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31680   (exit $ac_status); } && {
31681          test -z "$ac_c_werror_flag" ||
31682          test ! -s conftest.err
31683        } && test -s conftest.$ac_objext; then
31684   ac_cv_header_sys_wait_h=yes
31685 else
31686   echo "$as_me: failed program was:" >&5
31687 sed 's/^/| /' conftest.$ac_ext >&5
31688
31689         ac_cv_header_sys_wait_h=no
31690 fi
31691
31692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31693 fi
31694 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
31695 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
31696 if test $ac_cv_header_sys_wait_h = yes; then
31697
31698 cat >>confdefs.h <<\_ACEOF
31699 #define HAVE_SYS_WAIT_H 1
31700 _ACEOF
31701
31702 fi
31703
31704 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
31705 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
31706 if test "${ac_cv_header_time+set}" = set; then
31707   echo $ECHO_N "(cached) $ECHO_C" >&6
31708 else
31709   cat >conftest.$ac_ext <<_ACEOF
31710 /* confdefs.h.  */
31711 _ACEOF
31712 cat confdefs.h >>conftest.$ac_ext
31713 cat >>conftest.$ac_ext <<_ACEOF
31714 /* end confdefs.h.  */
31715 #include <sys/types.h>
31716 #include <sys/time.h>
31717 #include <time.h>
31718
31719 int
31720 main ()
31721 {
31722 if ((struct tm *) 0)
31723 return 0;
31724   ;
31725   return 0;
31726 }
31727 _ACEOF
31728 rm -f conftest.$ac_objext
31729 if { (ac_try="$ac_compile"
31730 case "(($ac_try" in
31731   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31732   *) ac_try_echo=$ac_try;;
31733 esac
31734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31735   (eval "$ac_compile") 2>conftest.er1
31736   ac_status=$?
31737   grep -v '^ *+' conftest.er1 >conftest.err
31738   rm -f conftest.er1
31739   cat conftest.err >&5
31740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31741   (exit $ac_status); } && {
31742          test -z "$ac_c_werror_flag" ||
31743          test ! -s conftest.err
31744        } && test -s conftest.$ac_objext; then
31745   ac_cv_header_time=yes
31746 else
31747   echo "$as_me: failed program was:" >&5
31748 sed 's/^/| /' conftest.$ac_ext >&5
31749
31750         ac_cv_header_time=no
31751 fi
31752
31753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31754 fi
31755 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
31756 echo "${ECHO_T}$ac_cv_header_time" >&6; }
31757 if test $ac_cv_header_time = yes; then
31758
31759 cat >>confdefs.h <<\_ACEOF
31760 #define TIME_WITH_SYS_TIME 1
31761 _ACEOF
31762
31763 fi
31764
31765 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
31766 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
31767 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
31768   echo $ECHO_N "(cached) $ECHO_C" >&6
31769 else
31770   cat >conftest.$ac_ext <<_ACEOF
31771 /* confdefs.h.  */
31772 _ACEOF
31773 cat confdefs.h >>conftest.$ac_ext
31774 cat >>conftest.$ac_ext <<_ACEOF
31775 /* end confdefs.h.  */
31776 $ac_includes_default
31777 int
31778 main ()
31779 {
31780 static struct stat ac_aggr;
31781 if (ac_aggr.st_blksize)
31782 return 0;
31783   ;
31784   return 0;
31785 }
31786 _ACEOF
31787 rm -f conftest.$ac_objext
31788 if { (ac_try="$ac_compile"
31789 case "(($ac_try" in
31790   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31791   *) ac_try_echo=$ac_try;;
31792 esac
31793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31794   (eval "$ac_compile") 2>conftest.er1
31795   ac_status=$?
31796   grep -v '^ *+' conftest.er1 >conftest.err
31797   rm -f conftest.er1
31798   cat conftest.err >&5
31799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31800   (exit $ac_status); } && {
31801          test -z "$ac_c_werror_flag" ||
31802          test ! -s conftest.err
31803        } && test -s conftest.$ac_objext; then
31804   ac_cv_member_struct_stat_st_blksize=yes
31805 else
31806   echo "$as_me: failed program was:" >&5
31807 sed 's/^/| /' conftest.$ac_ext >&5
31808
31809         cat >conftest.$ac_ext <<_ACEOF
31810 /* confdefs.h.  */
31811 _ACEOF
31812 cat confdefs.h >>conftest.$ac_ext
31813 cat >>conftest.$ac_ext <<_ACEOF
31814 /* end confdefs.h.  */
31815 $ac_includes_default
31816 int
31817 main ()
31818 {
31819 static struct stat ac_aggr;
31820 if (sizeof ac_aggr.st_blksize)
31821 return 0;
31822   ;
31823   return 0;
31824 }
31825 _ACEOF
31826 rm -f conftest.$ac_objext
31827 if { (ac_try="$ac_compile"
31828 case "(($ac_try" in
31829   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31830   *) ac_try_echo=$ac_try;;
31831 esac
31832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31833   (eval "$ac_compile") 2>conftest.er1
31834   ac_status=$?
31835   grep -v '^ *+' conftest.er1 >conftest.err
31836   rm -f conftest.er1
31837   cat conftest.err >&5
31838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31839   (exit $ac_status); } && {
31840          test -z "$ac_c_werror_flag" ||
31841          test ! -s conftest.err
31842        } && test -s conftest.$ac_objext; then
31843   ac_cv_member_struct_stat_st_blksize=yes
31844 else
31845   echo "$as_me: failed program was:" >&5
31846 sed 's/^/| /' conftest.$ac_ext >&5
31847
31848         ac_cv_member_struct_stat_st_blksize=no
31849 fi
31850
31851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31852 fi
31853
31854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31855 fi
31856 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
31857 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
31858 if test $ac_cv_member_struct_stat_st_blksize = yes; then
31859
31860 cat >>confdefs.h <<_ACEOF
31861 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
31862 _ACEOF
31863
31864
31865 cat >>confdefs.h <<\_ACEOF
31866 #define HAVE_ST_BLKSIZE 1
31867 _ACEOF
31868
31869 fi
31870
31871
31872 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
31873 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
31874 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
31875   echo $ECHO_N "(cached) $ECHO_C" >&6
31876 else
31877   cat >conftest.$ac_ext <<_ACEOF
31878 /* confdefs.h.  */
31879 _ACEOF
31880 cat confdefs.h >>conftest.$ac_ext
31881 cat >>conftest.$ac_ext <<_ACEOF
31882 /* end confdefs.h.  */
31883 $ac_includes_default
31884 int
31885 main ()
31886 {
31887 static struct stat ac_aggr;
31888 if (ac_aggr.st_blocks)
31889 return 0;
31890   ;
31891   return 0;
31892 }
31893 _ACEOF
31894 rm -f conftest.$ac_objext
31895 if { (ac_try="$ac_compile"
31896 case "(($ac_try" in
31897   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31898   *) ac_try_echo=$ac_try;;
31899 esac
31900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31901   (eval "$ac_compile") 2>conftest.er1
31902   ac_status=$?
31903   grep -v '^ *+' conftest.er1 >conftest.err
31904   rm -f conftest.er1
31905   cat conftest.err >&5
31906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31907   (exit $ac_status); } && {
31908          test -z "$ac_c_werror_flag" ||
31909          test ! -s conftest.err
31910        } && test -s conftest.$ac_objext; then
31911   ac_cv_member_struct_stat_st_blocks=yes
31912 else
31913   echo "$as_me: failed program was:" >&5
31914 sed 's/^/| /' conftest.$ac_ext >&5
31915
31916         cat >conftest.$ac_ext <<_ACEOF
31917 /* confdefs.h.  */
31918 _ACEOF
31919 cat confdefs.h >>conftest.$ac_ext
31920 cat >>conftest.$ac_ext <<_ACEOF
31921 /* end confdefs.h.  */
31922 $ac_includes_default
31923 int
31924 main ()
31925 {
31926 static struct stat ac_aggr;
31927 if (sizeof ac_aggr.st_blocks)
31928 return 0;
31929   ;
31930   return 0;
31931 }
31932 _ACEOF
31933 rm -f conftest.$ac_objext
31934 if { (ac_try="$ac_compile"
31935 case "(($ac_try" in
31936   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31937   *) ac_try_echo=$ac_try;;
31938 esac
31939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31940   (eval "$ac_compile") 2>conftest.er1
31941   ac_status=$?
31942   grep -v '^ *+' conftest.er1 >conftest.err
31943   rm -f conftest.er1
31944   cat conftest.err >&5
31945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31946   (exit $ac_status); } && {
31947          test -z "$ac_c_werror_flag" ||
31948          test ! -s conftest.err
31949        } && test -s conftest.$ac_objext; then
31950   ac_cv_member_struct_stat_st_blocks=yes
31951 else
31952   echo "$as_me: failed program was:" >&5
31953 sed 's/^/| /' conftest.$ac_ext >&5
31954
31955         ac_cv_member_struct_stat_st_blocks=no
31956 fi
31957
31958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31959 fi
31960
31961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31962 fi
31963 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
31964 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
31965 if test $ac_cv_member_struct_stat_st_blocks = yes; then
31966
31967 cat >>confdefs.h <<_ACEOF
31968 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
31969 _ACEOF
31970
31971
31972 cat >>confdefs.h <<\_ACEOF
31973 #define HAVE_ST_BLOCKS 1
31974 _ACEOF
31975
31976 else
31977   case " $LIBOBJS " in
31978   *" fileblocks.$ac_objext "* ) ;;
31979   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
31980  ;;
31981 esac
31982
31983 fi
31984
31985
31986 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
31987 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
31988 if test "${ac_cv_struct_tm+set}" = set; then
31989   echo $ECHO_N "(cached) $ECHO_C" >&6
31990 else
31991   cat >conftest.$ac_ext <<_ACEOF
31992 /* confdefs.h.  */
31993 _ACEOF
31994 cat confdefs.h >>conftest.$ac_ext
31995 cat >>conftest.$ac_ext <<_ACEOF
31996 /* end confdefs.h.  */
31997 #include <sys/types.h>
31998 #include <time.h>
31999
32000 int
32001 main ()
32002 {
32003 struct tm tm;
32004                                      int *p = &tm.tm_sec;
32005                                      return !p;
32006   ;
32007   return 0;
32008 }
32009 _ACEOF
32010 rm -f conftest.$ac_objext
32011 if { (ac_try="$ac_compile"
32012 case "(($ac_try" in
32013   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32014   *) ac_try_echo=$ac_try;;
32015 esac
32016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32017   (eval "$ac_compile") 2>conftest.er1
32018   ac_status=$?
32019   grep -v '^ *+' conftest.er1 >conftest.err
32020   rm -f conftest.er1
32021   cat conftest.err >&5
32022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32023   (exit $ac_status); } && {
32024          test -z "$ac_c_werror_flag" ||
32025          test ! -s conftest.err
32026        } && test -s conftest.$ac_objext; then
32027   ac_cv_struct_tm=time.h
32028 else
32029   echo "$as_me: failed program was:" >&5
32030 sed 's/^/| /' conftest.$ac_ext >&5
32031
32032         ac_cv_struct_tm=sys/time.h
32033 fi
32034
32035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32036 fi
32037 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
32038 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
32039 if test $ac_cv_struct_tm = sys/time.h; then
32040
32041 cat >>confdefs.h <<\_ACEOF
32042 #define TM_IN_SYS_TIME 1
32043 _ACEOF
32044
32045 fi
32046
32047 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
32048 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
32049 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
32050   echo $ECHO_N "(cached) $ECHO_C" >&6
32051 else
32052   cat >conftest.$ac_ext <<_ACEOF
32053 /* confdefs.h.  */
32054 _ACEOF
32055 cat confdefs.h >>conftest.$ac_ext
32056 cat >>conftest.$ac_ext <<_ACEOF
32057 /* end confdefs.h.  */
32058 #include <sys/types.h>
32059 #include <$ac_cv_struct_tm>
32060
32061
32062 int
32063 main ()
32064 {
32065 static struct tm ac_aggr;
32066 if (ac_aggr.tm_zone)
32067 return 0;
32068   ;
32069   return 0;
32070 }
32071 _ACEOF
32072 rm -f conftest.$ac_objext
32073 if { (ac_try="$ac_compile"
32074 case "(($ac_try" in
32075   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32076   *) ac_try_echo=$ac_try;;
32077 esac
32078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32079   (eval "$ac_compile") 2>conftest.er1
32080   ac_status=$?
32081   grep -v '^ *+' conftest.er1 >conftest.err
32082   rm -f conftest.er1
32083   cat conftest.err >&5
32084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32085   (exit $ac_status); } && {
32086          test -z "$ac_c_werror_flag" ||
32087          test ! -s conftest.err
32088        } && test -s conftest.$ac_objext; then
32089   ac_cv_member_struct_tm_tm_zone=yes
32090 else
32091   echo "$as_me: failed program was:" >&5
32092 sed 's/^/| /' conftest.$ac_ext >&5
32093
32094         cat >conftest.$ac_ext <<_ACEOF
32095 /* confdefs.h.  */
32096 _ACEOF
32097 cat confdefs.h >>conftest.$ac_ext
32098 cat >>conftest.$ac_ext <<_ACEOF
32099 /* end confdefs.h.  */
32100 #include <sys/types.h>
32101 #include <$ac_cv_struct_tm>
32102
32103
32104 int
32105 main ()
32106 {
32107 static struct tm ac_aggr;
32108 if (sizeof ac_aggr.tm_zone)
32109 return 0;
32110   ;
32111   return 0;
32112 }
32113 _ACEOF
32114 rm -f conftest.$ac_objext
32115 if { (ac_try="$ac_compile"
32116 case "(($ac_try" in
32117   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32118   *) ac_try_echo=$ac_try;;
32119 esac
32120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32121   (eval "$ac_compile") 2>conftest.er1
32122   ac_status=$?
32123   grep -v '^ *+' conftest.er1 >conftest.err
32124   rm -f conftest.er1
32125   cat conftest.err >&5
32126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32127   (exit $ac_status); } && {
32128          test -z "$ac_c_werror_flag" ||
32129          test ! -s conftest.err
32130        } && test -s conftest.$ac_objext; then
32131   ac_cv_member_struct_tm_tm_zone=yes
32132 else
32133   echo "$as_me: failed program was:" >&5
32134 sed 's/^/| /' conftest.$ac_ext >&5
32135
32136         ac_cv_member_struct_tm_tm_zone=no
32137 fi
32138
32139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32140 fi
32141
32142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32143 fi
32144 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
32145 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
32146 if test $ac_cv_member_struct_tm_tm_zone = yes; then
32147
32148 cat >>confdefs.h <<_ACEOF
32149 #define HAVE_STRUCT_TM_TM_ZONE 1
32150 _ACEOF
32151
32152
32153 fi
32154
32155 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
32156
32157 cat >>confdefs.h <<\_ACEOF
32158 #define HAVE_TM_ZONE 1
32159 _ACEOF
32160
32161 else
32162   { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
32163 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
32164 if test "${ac_cv_have_decl_tzname+set}" = set; then
32165   echo $ECHO_N "(cached) $ECHO_C" >&6
32166 else
32167   cat >conftest.$ac_ext <<_ACEOF
32168 /* confdefs.h.  */
32169 _ACEOF
32170 cat confdefs.h >>conftest.$ac_ext
32171 cat >>conftest.$ac_ext <<_ACEOF
32172 /* end confdefs.h.  */
32173 #include <time.h>
32174
32175 int
32176 main ()
32177 {
32178 #ifndef tzname
32179   (void) tzname;
32180 #endif
32181
32182   ;
32183   return 0;
32184 }
32185 _ACEOF
32186 rm -f conftest.$ac_objext
32187 if { (ac_try="$ac_compile"
32188 case "(($ac_try" in
32189   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32190   *) ac_try_echo=$ac_try;;
32191 esac
32192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32193   (eval "$ac_compile") 2>conftest.er1
32194   ac_status=$?
32195   grep -v '^ *+' conftest.er1 >conftest.err
32196   rm -f conftest.er1
32197   cat conftest.err >&5
32198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32199   (exit $ac_status); } && {
32200          test -z "$ac_c_werror_flag" ||
32201          test ! -s conftest.err
32202        } && test -s conftest.$ac_objext; then
32203   ac_cv_have_decl_tzname=yes
32204 else
32205   echo "$as_me: failed program was:" >&5
32206 sed 's/^/| /' conftest.$ac_ext >&5
32207
32208         ac_cv_have_decl_tzname=no
32209 fi
32210
32211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32212 fi
32213 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
32214 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
32215 if test $ac_cv_have_decl_tzname = yes; then
32216
32217 cat >>confdefs.h <<_ACEOF
32218 #define HAVE_DECL_TZNAME 1
32219 _ACEOF
32220
32221
32222 else
32223   cat >>confdefs.h <<_ACEOF
32224 #define HAVE_DECL_TZNAME 0
32225 _ACEOF
32226
32227
32228 fi
32229
32230
32231   { echo "$as_me:$LINENO: checking for tzname" >&5
32232 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
32233 if test "${ac_cv_var_tzname+set}" = set; then
32234   echo $ECHO_N "(cached) $ECHO_C" >&6
32235 else
32236   cat >conftest.$ac_ext <<_ACEOF
32237 /* confdefs.h.  */
32238 _ACEOF
32239 cat confdefs.h >>conftest.$ac_ext
32240 cat >>conftest.$ac_ext <<_ACEOF
32241 /* end confdefs.h.  */
32242 #include <time.h>
32243 #if !HAVE_DECL_TZNAME
32244 extern char *tzname[];
32245 #endif
32246
32247 int
32248 main ()
32249 {
32250 return tzname[0][0];
32251   ;
32252   return 0;
32253 }
32254 _ACEOF
32255 rm -f conftest.$ac_objext conftest$ac_exeext
32256 if { (ac_try="$ac_link"
32257 case "(($ac_try" in
32258   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32259   *) ac_try_echo=$ac_try;;
32260 esac
32261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32262   (eval "$ac_link") 2>conftest.er1
32263   ac_status=$?
32264   grep -v '^ *+' conftest.er1 >conftest.err
32265   rm -f conftest.er1
32266   cat conftest.err >&5
32267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32268   (exit $ac_status); } && {
32269          test -z "$ac_c_werror_flag" ||
32270          test ! -s conftest.err
32271        } && test -s conftest$ac_exeext &&
32272        $as_test_x conftest$ac_exeext; then
32273   ac_cv_var_tzname=yes
32274 else
32275   echo "$as_me: failed program was:" >&5
32276 sed 's/^/| /' conftest.$ac_ext >&5
32277
32278         ac_cv_var_tzname=no
32279 fi
32280
32281 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32282       conftest$ac_exeext conftest.$ac_ext
32283 fi
32284 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
32285 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
32286   if test $ac_cv_var_tzname = yes; then
32287
32288 cat >>confdefs.h <<\_ACEOF
32289 #define HAVE_TZNAME 1
32290 _ACEOF
32291
32292   fi
32293 fi
32294
32295
32296 { echo "$as_me:$LINENO: checking for utime.h" >&5
32297 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6; }
32298 if test "${ba_cv_header_utime_h+set}" = set; then
32299   echo $ECHO_N "(cached) $ECHO_C" >&6
32300 else
32301
32302        cat >conftest.$ac_ext <<_ACEOF
32303 /* confdefs.h.  */
32304 _ACEOF
32305 cat confdefs.h >>conftest.$ac_ext
32306 cat >>conftest.$ac_ext <<_ACEOF
32307 /* end confdefs.h.  */
32308
32309               #include <sys/types.h>
32310               #include <utime.h>
32311
32312 int
32313 main ()
32314 {
32315
32316               struct utimbuf foo
32317
32318   ;
32319   return 0;
32320 }
32321 _ACEOF
32322 rm -f conftest.$ac_objext
32323 if { (ac_try="$ac_compile"
32324 case "(($ac_try" in
32325   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32326   *) ac_try_echo=$ac_try;;
32327 esac
32328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32329   (eval "$ac_compile") 2>conftest.er1
32330   ac_status=$?
32331   grep -v '^ *+' conftest.er1 >conftest.err
32332   rm -f conftest.er1
32333   cat conftest.err >&5
32334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32335   (exit $ac_status); } && {
32336          test -z "$ac_c_werror_flag" ||
32337          test ! -s conftest.err
32338        } && test -s conftest.$ac_objext; then
32339
32340               ba_cv_header_utime_h=yes
32341
32342 else
32343   echo "$as_me: failed program was:" >&5
32344 sed 's/^/| /' conftest.$ac_ext >&5
32345
32346
32347               ba_cv_header_utime_h=no
32348
32349
32350 fi
32351
32352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32353
32354
32355 fi
32356 { echo "$as_me:$LINENO: result: $ba_cv_header_utime_h" >&5
32357 echo "${ECHO_T}$ba_cv_header_utime_h" >&6; }
32358 test $ba_cv_header_utime_h = yes &&
32359 cat >>confdefs.h <<\_ACEOF
32360 #define HAVE_UTIME_H 1
32361 _ACEOF
32362
32363
32364 { echo "$as_me:$LINENO: checking for socklen_t" >&5
32365 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
32366 if test "${ba_cv_header_socklen_t+set}" = set; then
32367   echo $ECHO_N "(cached) $ECHO_C" >&6
32368 else
32369
32370        cat >conftest.$ac_ext <<_ACEOF
32371 /* confdefs.h.  */
32372 _ACEOF
32373 cat confdefs.h >>conftest.$ac_ext
32374 cat >>conftest.$ac_ext <<_ACEOF
32375 /* end confdefs.h.  */
32376
32377               #include <sys/types.h>
32378               #include <sys/socket.h>
32379
32380 int
32381 main ()
32382 {
32383
32384               socklen_t x
32385
32386   ;
32387   return 0;
32388 }
32389 _ACEOF
32390 rm -f conftest.$ac_objext
32391 if { (ac_try="$ac_compile"
32392 case "(($ac_try" in
32393   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32394   *) ac_try_echo=$ac_try;;
32395 esac
32396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32397   (eval "$ac_compile") 2>conftest.er1
32398   ac_status=$?
32399   grep -v '^ *+' conftest.er1 >conftest.err
32400   rm -f conftest.er1
32401   cat conftest.err >&5
32402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32403   (exit $ac_status); } && {
32404          test -z "$ac_c_werror_flag" ||
32405          test ! -s conftest.err
32406        } && test -s conftest.$ac_objext; then
32407
32408              ba_cv_header_socklen_t=yes
32409
32410 else
32411   echo "$as_me: failed program was:" >&5
32412 sed 's/^/| /' conftest.$ac_ext >&5
32413
32414
32415              ba_cv_header_socklen_t=no
32416
32417
32418 fi
32419
32420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32421
32422
32423 fi
32424 { echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
32425 echo "${ECHO_T}$ba_cv_header_socklen_t" >&6; }
32426 test $ba_cv_header_socklen_t = yes && cat >>confdefs.h <<\_ACEOF
32427 #define HAVE_SOCKLEN_T 1
32428 _ACEOF
32429
32430
32431 { echo "$as_me:$LINENO: checking for bigendian" >&5
32432 echo $ECHO_N "checking for bigendian... $ECHO_C" >&6; }
32433 if test "${ba_cv_bigendian+set}" = set; then
32434   echo $ECHO_N "(cached) $ECHO_C" >&6
32435 else
32436
32437        if test "$cross_compiling" = yes; then
32438
32439              ba_cv_bigendian=no
32440
32441
32442 else
32443   cat >conftest.$ac_ext <<_ACEOF
32444 /* confdefs.h.  */
32445 _ACEOF
32446 cat confdefs.h >>conftest.$ac_ext
32447 cat >>conftest.$ac_ext <<_ACEOF
32448 /* end confdefs.h.  */
32449
32450               main(){long a=1L; char *p=(char *)&a; exit(*p);}
32451
32452 _ACEOF
32453 rm -f conftest$ac_exeext
32454 if { (ac_try="$ac_link"
32455 case "(($ac_try" in
32456   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32457   *) ac_try_echo=$ac_try;;
32458 esac
32459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32460   (eval "$ac_link") 2>&5
32461   ac_status=$?
32462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32463   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32464   { (case "(($ac_try" in
32465   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32466   *) ac_try_echo=$ac_try;;
32467 esac
32468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32469   (eval "$ac_try") 2>&5
32470   ac_status=$?
32471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32472   (exit $ac_status); }; }; then
32473
32474              ba_cv_bigendian=yes
32475
32476 else
32477   echo "$as_me: program exited with status $ac_status" >&5
32478 echo "$as_me: failed program was:" >&5
32479 sed 's/^/| /' conftest.$ac_ext >&5
32480
32481 ( exit $ac_status )
32482
32483              ba_cv_bigendian=no
32484
32485 fi
32486 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32487 fi
32488
32489
32490
32491
32492 fi
32493 { echo "$as_me:$LINENO: result: $ba_cv_bigendian" >&5
32494 echo "${ECHO_T}$ba_cv_bigendian" >&6; }
32495 test $ba_cv_bigendian = yes && cat >>confdefs.h <<\_ACEOF
32496 #define HAVE_BIGENDIAN 1
32497 _ACEOF
32498
32499
32500 ac_ext=cpp
32501 ac_cpp='$CXXCPP $CPPFLAGS'
32502 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32503 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32504 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32505
32506 { echo "$as_me:$LINENO: checking for typeof" >&5
32507 echo $ECHO_N "checking for typeof... $ECHO_C" >&6; }
32508 if test "${ba_cv_have_typeof+set}" = set; then
32509   echo $ECHO_N "(cached) $ECHO_C" >&6
32510 else
32511
32512        if test "$cross_compiling" = yes; then
32513
32514               ba_cv_have_typeof=no
32515
32516
32517 else
32518   cat >conftest.$ac_ext <<_ACEOF
32519 /* confdefs.h.  */
32520 _ACEOF
32521 cat confdefs.h >>conftest.$ac_ext
32522 cat >>conftest.$ac_ext <<_ACEOF
32523 /* end confdefs.h.  */
32524
32525               main(){char *a = 0; a = (typeof a)a;}
32526
32527 _ACEOF
32528 rm -f conftest$ac_exeext
32529 if { (ac_try="$ac_link"
32530 case "(($ac_try" in
32531   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32532   *) ac_try_echo=$ac_try;;
32533 esac
32534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32535   (eval "$ac_link") 2>&5
32536   ac_status=$?
32537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32538   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32539   { (case "(($ac_try" in
32540   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32541   *) ac_try_echo=$ac_try;;
32542 esac
32543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32544   (eval "$ac_try") 2>&5
32545   ac_status=$?
32546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32547   (exit $ac_status); }; }; then
32548
32549               ba_cv_have_typeof=yes
32550
32551 else
32552   echo "$as_me: program exited with status $ac_status" >&5
32553 echo "$as_me: failed program was:" >&5
32554 sed 's/^/| /' conftest.$ac_ext >&5
32555
32556 ( exit $ac_status )
32557
32558               ba_cv_have_typeof=no
32559
32560 fi
32561 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32562 fi
32563
32564
32565
32566
32567 fi
32568 { echo "$as_me:$LINENO: result: $ba_cv_have_typeof" >&5
32569 echo "${ECHO_T}$ba_cv_have_typeof" >&6; }
32570 test $ba_cv_have_typeof = yes &&
32571 cat >>confdefs.h <<\_ACEOF
32572 #define HAVE_TYPEOF 1
32573 _ACEOF
32574
32575 ac_ext=c
32576 ac_cpp='$CPP $CPPFLAGS'
32577 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32578 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32579 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32580
32581
32582 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
32583 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
32584 if test "${ac_cv_c_const+set}" = set; then
32585   echo $ECHO_N "(cached) $ECHO_C" >&6
32586 else
32587   cat >conftest.$ac_ext <<_ACEOF
32588 /* confdefs.h.  */
32589 _ACEOF
32590 cat confdefs.h >>conftest.$ac_ext
32591 cat >>conftest.$ac_ext <<_ACEOF
32592 /* end confdefs.h.  */
32593
32594 int
32595 main ()
32596 {
32597 /* FIXME: Include the comments suggested by Paul. */
32598 #ifndef __cplusplus
32599   /* Ultrix mips cc rejects this.  */
32600   typedef int charset[2];
32601   const charset cs;
32602   /* SunOS 4.1.1 cc rejects this.  */
32603   char const *const *pcpcc;
32604   char **ppc;
32605   /* NEC SVR4.0.2 mips cc rejects this.  */
32606   struct point {int x, y;};
32607   static struct point const zero = {0,0};
32608   /* AIX XL C 1.02.0.0 rejects this.
32609      It does not let you subtract one const X* pointer from another in
32610      an arm of an if-expression whose if-part is not a constant
32611      expression */
32612   const char *g = "string";
32613   pcpcc = &g + (g ? g-g : 0);
32614   /* HPUX 7.0 cc rejects these. */
32615   ++pcpcc;
32616   ppc = (char**) pcpcc;
32617   pcpcc = (char const *const *) ppc;
32618   { /* SCO 3.2v4 cc rejects this.  */
32619     char *t;
32620     char const *s = 0 ? (char *) 0 : (char const *) 0;
32621
32622     *t++ = 0;
32623     if (s) return 0;
32624   }
32625   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
32626     int x[] = {25, 17};
32627     const int *foo = &x[0];
32628     ++foo;
32629   }
32630   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
32631     typedef const int *iptr;
32632     iptr p = 0;
32633     ++p;
32634   }
32635   { /* AIX XL C 1.02.0.0 rejects this saying
32636        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
32637     struct s { int j; const int *ap[3]; };
32638     struct s *b; b->j = 5;
32639   }
32640   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
32641     const int foo = 10;
32642     if (!foo) return 0;
32643   }
32644   return !cs[0] && !zero.x;
32645 #endif
32646
32647   ;
32648   return 0;
32649 }
32650 _ACEOF
32651 rm -f conftest.$ac_objext
32652 if { (ac_try="$ac_compile"
32653 case "(($ac_try" in
32654   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32655   *) ac_try_echo=$ac_try;;
32656 esac
32657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32658   (eval "$ac_compile") 2>conftest.er1
32659   ac_status=$?
32660   grep -v '^ *+' conftest.er1 >conftest.err
32661   rm -f conftest.er1
32662   cat conftest.err >&5
32663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32664   (exit $ac_status); } && {
32665          test -z "$ac_c_werror_flag" ||
32666          test ! -s conftest.err
32667        } && test -s conftest.$ac_objext; then
32668   ac_cv_c_const=yes
32669 else
32670   echo "$as_me: failed program was:" >&5
32671 sed 's/^/| /' conftest.$ac_ext >&5
32672
32673         ac_cv_c_const=no
32674 fi
32675
32676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32677 fi
32678 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
32679 echo "${ECHO_T}$ac_cv_c_const" >&6; }
32680 if test $ac_cv_c_const = no; then
32681
32682 cat >>confdefs.h <<\_ACEOF
32683 #define const
32684 _ACEOF
32685
32686 fi
32687
32688
32689 { echo "$as_me:$LINENO: checking how to get filesystem type" >&5
32690 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" >&6; }
32691 fstype=no
32692 # The order of these tests is important.
32693 cat >conftest.$ac_ext <<_ACEOF
32694 /* confdefs.h.  */
32695 _ACEOF
32696 cat confdefs.h >>conftest.$ac_ext
32697 cat >>conftest.$ac_ext <<_ACEOF
32698 /* end confdefs.h.  */
32699
32700        #include <sys/statvfs.h>
32701        #include <sys/fstyp.h>
32702
32703 _ACEOF
32704 if { (ac_try="$ac_cpp conftest.$ac_ext"
32705 case "(($ac_try" in
32706   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32707   *) ac_try_echo=$ac_try;;
32708 esac
32709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32710   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32711   ac_status=$?
32712   grep -v '^ *+' conftest.er1 >conftest.err
32713   rm -f conftest.er1
32714   cat conftest.err >&5
32715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32716   (exit $ac_status); } >/dev/null && {
32717          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32718          test ! -s conftest.err
32719        }; then
32720   cat >>confdefs.h <<\_ACEOF
32721 #define FSTYPE_STATVFS 1
32722 _ACEOF
32723  fstype=SVR4
32724
32725 else
32726   echo "$as_me: failed program was:" >&5
32727 sed 's/^/| /' conftest.$ac_ext >&5
32728
32729
32730 fi
32731
32732 rm -f conftest.err conftest.$ac_ext
32733 if test $fstype = no; then
32734    cat >conftest.$ac_ext <<_ACEOF
32735 /* confdefs.h.  */
32736 _ACEOF
32737 cat confdefs.h >>conftest.$ac_ext
32738 cat >>conftest.$ac_ext <<_ACEOF
32739 /* end confdefs.h.  */
32740
32741           #include <sys/statfs.h>
32742           #include <sys/fstyp.h>
32743
32744 _ACEOF
32745 if { (ac_try="$ac_cpp conftest.$ac_ext"
32746 case "(($ac_try" in
32747   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32748   *) ac_try_echo=$ac_try;;
32749 esac
32750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32751   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32752   ac_status=$?
32753   grep -v '^ *+' conftest.er1 >conftest.err
32754   rm -f conftest.er1
32755   cat conftest.err >&5
32756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32757   (exit $ac_status); } >/dev/null && {
32758          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32759          test ! -s conftest.err
32760        }; then
32761   cat >>confdefs.h <<\_ACEOF
32762 #define FSTYPE_USG_STATFS 1
32763 _ACEOF
32764  fstype=SVR3
32765
32766 else
32767   echo "$as_me: failed program was:" >&5
32768 sed 's/^/| /' conftest.$ac_ext >&5
32769
32770
32771 fi
32772
32773 rm -f conftest.err conftest.$ac_ext
32774 fi
32775 if test $fstype = no; then
32776    cat >conftest.$ac_ext <<_ACEOF
32777 /* confdefs.h.  */
32778 _ACEOF
32779 cat confdefs.h >>conftest.$ac_ext
32780 cat >>conftest.$ac_ext <<_ACEOF
32781 /* end confdefs.h.  */
32782
32783           #include <sys/statfs.h>
32784           #include <sys/vmount.h>
32785
32786 _ACEOF
32787 if { (ac_try="$ac_cpp conftest.$ac_ext"
32788 case "(($ac_try" in
32789   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32790   *) ac_try_echo=$ac_try;;
32791 esac
32792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32793   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32794   ac_status=$?
32795   grep -v '^ *+' conftest.er1 >conftest.err
32796   rm -f conftest.er1
32797   cat conftest.err >&5
32798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32799   (exit $ac_status); } >/dev/null && {
32800          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32801          test ! -s conftest.err
32802        }; then
32803   cat >>confdefs.h <<\_ACEOF
32804 #define FSTYPE_AIX_STATFS 1
32805 _ACEOF
32806  fstype=AIX
32807
32808 else
32809   echo "$as_me: failed program was:" >&5
32810 sed 's/^/| /' conftest.$ac_ext >&5
32811
32812
32813 fi
32814
32815 rm -f conftest.err conftest.$ac_ext
32816 fi
32817 if test $fstype = no; then
32818    cat >conftest.$ac_ext <<_ACEOF
32819 /* confdefs.h.  */
32820 _ACEOF
32821 cat confdefs.h >>conftest.$ac_ext
32822 cat >>conftest.$ac_ext <<_ACEOF
32823 /* end confdefs.h.  */
32824
32825           #include <mntent.h>
32826
32827 _ACEOF
32828 if { (ac_try="$ac_cpp conftest.$ac_ext"
32829 case "(($ac_try" in
32830   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32831   *) ac_try_echo=$ac_try;;
32832 esac
32833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32834   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32835   ac_status=$?
32836   grep -v '^ *+' conftest.er1 >conftest.err
32837   rm -f conftest.er1
32838   cat conftest.err >&5
32839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32840   (exit $ac_status); } >/dev/null && {
32841          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32842          test ! -s conftest.err
32843        }; then
32844   cat >>confdefs.h <<\_ACEOF
32845 #define FSTYPE_MNTENT 1
32846 _ACEOF
32847  fstype=4.3BSD
32848
32849 else
32850   echo "$as_me: failed program was:" >&5
32851 sed 's/^/| /' conftest.$ac_ext >&5
32852
32853
32854 fi
32855
32856 rm -f conftest.err conftest.$ac_ext
32857 fi
32858 if test $fstype = no; then
32859    cat >conftest.$ac_ext <<_ACEOF
32860 /* confdefs.h.  */
32861 _ACEOF
32862 cat confdefs.h >>conftest.$ac_ext
32863 cat >>conftest.$ac_ext <<_ACEOF
32864 /* end confdefs.h.  */
32865 #include <sys/mount.h>
32866
32867 _ACEOF
32868 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32869   $EGREP "f_type;" >/dev/null 2>&1; then
32870   cat >>confdefs.h <<\_ACEOF
32871 #define FSTYPE_STATFS 1
32872 _ACEOF
32873  fstype=4.4BSD/OSF1
32874 fi
32875 rm -f conftest*
32876
32877 fi
32878 if test $fstype = no; then
32879    cat >conftest.$ac_ext <<_ACEOF
32880 /* confdefs.h.  */
32881 _ACEOF
32882 cat confdefs.h >>conftest.$ac_ext
32883 cat >>conftest.$ac_ext <<_ACEOF
32884 /* end confdefs.h.  */
32885
32886           #include <sys/mount.h>
32887           #include <sys/fs_types.h>
32888
32889 _ACEOF
32890 if { (ac_try="$ac_cpp conftest.$ac_ext"
32891 case "(($ac_try" in
32892   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32893   *) ac_try_echo=$ac_try;;
32894 esac
32895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32896   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32897   ac_status=$?
32898   grep -v '^ *+' conftest.er1 >conftest.err
32899   rm -f conftest.er1
32900   cat conftest.err >&5
32901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32902   (exit $ac_status); } >/dev/null && {
32903          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32904          test ! -s conftest.err
32905        }; then
32906   cat >>confdefs.h <<\_ACEOF
32907 #define FSTYPE_GETMNT 1
32908 _ACEOF
32909  fstype=Ultrix
32910
32911 else
32912   echo "$as_me: failed program was:" >&5
32913 sed 's/^/| /' conftest.$ac_ext >&5
32914
32915
32916 fi
32917
32918 rm -f conftest.err conftest.$ac_ext
32919 fi
32920 { echo "$as_me:$LINENO: result: $fstype" >&5
32921 echo "${ECHO_T}$fstype" >&6; }
32922
32923 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
32924   { echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
32925 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6; }
32926 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
32927   echo $ECHO_N "(cached) $ECHO_C" >&6
32928 fi
32929 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
32930 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6; }
32931 else
32932   # Is the header compilable?
32933 { echo "$as_me:$LINENO: checking sys/statvfs.h usability" >&5
32934 echo $ECHO_N "checking sys/statvfs.h usability... $ECHO_C" >&6; }
32935 cat >conftest.$ac_ext <<_ACEOF
32936 /* confdefs.h.  */
32937 _ACEOF
32938 cat confdefs.h >>conftest.$ac_ext
32939 cat >>conftest.$ac_ext <<_ACEOF
32940 /* end confdefs.h.  */
32941 $ac_includes_default
32942 #include <sys/statvfs.h>
32943 _ACEOF
32944 rm -f conftest.$ac_objext
32945 if { (ac_try="$ac_compile"
32946 case "(($ac_try" in
32947   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32948   *) ac_try_echo=$ac_try;;
32949 esac
32950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32951   (eval "$ac_compile") 2>conftest.er1
32952   ac_status=$?
32953   grep -v '^ *+' conftest.er1 >conftest.err
32954   rm -f conftest.er1
32955   cat conftest.err >&5
32956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32957   (exit $ac_status); } && {
32958          test -z "$ac_c_werror_flag" ||
32959          test ! -s conftest.err
32960        } && test -s conftest.$ac_objext; then
32961   ac_header_compiler=yes
32962 else
32963   echo "$as_me: failed program was:" >&5
32964 sed 's/^/| /' conftest.$ac_ext >&5
32965
32966         ac_header_compiler=no
32967 fi
32968
32969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32970 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32971 echo "${ECHO_T}$ac_header_compiler" >&6; }
32972
32973 # Is the header present?
32974 { echo "$as_me:$LINENO: checking sys/statvfs.h presence" >&5
32975 echo $ECHO_N "checking sys/statvfs.h presence... $ECHO_C" >&6; }
32976 cat >conftest.$ac_ext <<_ACEOF
32977 /* confdefs.h.  */
32978 _ACEOF
32979 cat confdefs.h >>conftest.$ac_ext
32980 cat >>conftest.$ac_ext <<_ACEOF
32981 /* end confdefs.h.  */
32982 #include <sys/statvfs.h>
32983 _ACEOF
32984 if { (ac_try="$ac_cpp conftest.$ac_ext"
32985 case "(($ac_try" in
32986   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32987   *) ac_try_echo=$ac_try;;
32988 esac
32989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32990   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32991   ac_status=$?
32992   grep -v '^ *+' conftest.er1 >conftest.err
32993   rm -f conftest.er1
32994   cat conftest.err >&5
32995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32996   (exit $ac_status); } >/dev/null && {
32997          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32998          test ! -s conftest.err
32999        }; then
33000   ac_header_preproc=yes
33001 else
33002   echo "$as_me: failed program was:" >&5
33003 sed 's/^/| /' conftest.$ac_ext >&5
33004
33005   ac_header_preproc=no
33006 fi
33007
33008 rm -f conftest.err conftest.$ac_ext
33009 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33010 echo "${ECHO_T}$ac_header_preproc" >&6; }
33011
33012 # So?  What about this header?
33013 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33014   yes:no: )
33015     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&5
33016 echo "$as_me: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
33017     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&5
33018 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&2;}
33019     ac_header_preproc=yes
33020     ;;
33021   no:yes:* )
33022     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: present but cannot be compiled" >&5
33023 echo "$as_me: WARNING: sys/statvfs.h: present but cannot be compiled" >&2;}
33024     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h:     check for missing prerequisite headers?" >&5
33025 echo "$as_me: WARNING: sys/statvfs.h:     check for missing prerequisite headers?" >&2;}
33026     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: see the Autoconf documentation" >&5
33027 echo "$as_me: WARNING: sys/statvfs.h: see the Autoconf documentation" >&2;}
33028     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h:     section \"Present But Cannot Be Compiled\"" >&5
33029 echo "$as_me: WARNING: sys/statvfs.h:     section \"Present But Cannot Be Compiled\"" >&2;}
33030     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&5
33031 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&2;}
33032     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&5
33033 echo "$as_me: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&2;}
33034
33035     ;;
33036 esac
33037 { echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
33038 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6; }
33039 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
33040   echo $ECHO_N "(cached) $ECHO_C" >&6
33041 else
33042   ac_cv_header_sys_statvfs_h=$ac_header_preproc
33043 fi
33044 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
33045 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6; }
33046
33047 fi
33048 if test $ac_cv_header_sys_statvfs_h = yes; then
33049
33050 cat >>confdefs.h <<\_ACEOF
33051 #define HAVE_SYS_STATVFS_H 1
33052 _ACEOF
33053
33054 fi
33055
33056
33057
33058 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
33059 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
33060 if test "${ac_cv_type_signal+set}" = set; then
33061   echo $ECHO_N "(cached) $ECHO_C" >&6
33062 else
33063   cat >conftest.$ac_ext <<_ACEOF
33064 /* confdefs.h.  */
33065 _ACEOF
33066 cat confdefs.h >>conftest.$ac_ext
33067 cat >>conftest.$ac_ext <<_ACEOF
33068 /* end confdefs.h.  */
33069 #include <sys/types.h>
33070 #include <signal.h>
33071
33072 int
33073 main ()
33074 {
33075 return *(signal (0, 0)) (0) == 1;
33076   ;
33077   return 0;
33078 }
33079 _ACEOF
33080 rm -f conftest.$ac_objext
33081 if { (ac_try="$ac_compile"
33082 case "(($ac_try" in
33083   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33084   *) ac_try_echo=$ac_try;;
33085 esac
33086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33087   (eval "$ac_compile") 2>conftest.er1
33088   ac_status=$?
33089   grep -v '^ *+' conftest.er1 >conftest.err
33090   rm -f conftest.er1
33091   cat conftest.err >&5
33092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33093   (exit $ac_status); } && {
33094          test -z "$ac_c_werror_flag" ||
33095          test ! -s conftest.err
33096        } && test -s conftest.$ac_objext; then
33097   ac_cv_type_signal=int
33098 else
33099   echo "$as_me: failed program was:" >&5
33100 sed 's/^/| /' conftest.$ac_ext >&5
33101
33102         ac_cv_type_signal=void
33103 fi
33104
33105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33106 fi
33107 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
33108 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
33109
33110 cat >>confdefs.h <<_ACEOF
33111 #define RETSIGTYPE $ac_cv_type_signal
33112 _ACEOF
33113
33114
33115
33116   { echo "$as_me:$LINENO: checking for type of signal functions" >&5
33117 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6; }
33118   if test "${bash_cv_signal_vintage+set}" = set; then
33119   echo $ECHO_N "(cached) $ECHO_C" >&6
33120 else
33121
33122     cat >conftest.$ac_ext <<_ACEOF
33123 /* confdefs.h.  */
33124 _ACEOF
33125 cat confdefs.h >>conftest.$ac_ext
33126 cat >>conftest.$ac_ext <<_ACEOF
33127 /* end confdefs.h.  */
33128 #include <signal.h>
33129 int
33130 main ()
33131 {
33132
33133       sigset_t ss;
33134       struct sigaction sa;
33135       sigemptyset(&ss); sigsuspend(&ss);
33136       sigaction(SIGINT, &sa, (struct sigaction *) 0);
33137       sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
33138
33139   ;
33140   return 0;
33141 }
33142 _ACEOF
33143 rm -f conftest.$ac_objext conftest$ac_exeext
33144 if { (ac_try="$ac_link"
33145 case "(($ac_try" in
33146   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33147   *) ac_try_echo=$ac_try;;
33148 esac
33149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33150   (eval "$ac_link") 2>conftest.er1
33151   ac_status=$?
33152   grep -v '^ *+' conftest.er1 >conftest.err
33153   rm -f conftest.er1
33154   cat conftest.err >&5
33155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33156   (exit $ac_status); } && {
33157          test -z "$ac_c_werror_flag" ||
33158          test ! -s conftest.err
33159        } && test -s conftest$ac_exeext &&
33160        $as_test_x conftest$ac_exeext; then
33161   bash_cv_signal_vintage="posix"
33162 else
33163   echo "$as_me: failed program was:" >&5
33164 sed 's/^/| /' conftest.$ac_ext >&5
33165
33166
33167       cat >conftest.$ac_ext <<_ACEOF
33168 /* confdefs.h.  */
33169 _ACEOF
33170 cat confdefs.h >>conftest.$ac_ext
33171 cat >>conftest.$ac_ext <<_ACEOF
33172 /* end confdefs.h.  */
33173 #include <signal.h>
33174 int
33175 main ()
33176 {
33177
33178           int mask = sigmask(SIGINT);
33179           sigsetmask(mask); sigblock(mask); sigpause(mask);
33180
33181   ;
33182   return 0;
33183 }
33184 _ACEOF
33185 rm -f conftest.$ac_objext conftest$ac_exeext
33186 if { (ac_try="$ac_link"
33187 case "(($ac_try" in
33188   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33189   *) ac_try_echo=$ac_try;;
33190 esac
33191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33192   (eval "$ac_link") 2>conftest.er1
33193   ac_status=$?
33194   grep -v '^ *+' conftest.er1 >conftest.err
33195   rm -f conftest.er1
33196   cat conftest.err >&5
33197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33198   (exit $ac_status); } && {
33199          test -z "$ac_c_werror_flag" ||
33200          test ! -s conftest.err
33201        } && test -s conftest$ac_exeext &&
33202        $as_test_x conftest$ac_exeext; then
33203   bash_cv_signal_vintage="4.2bsd"
33204 else
33205   echo "$as_me: failed program was:" >&5
33206 sed 's/^/| /' conftest.$ac_ext >&5
33207
33208
33209         cat >conftest.$ac_ext <<_ACEOF
33210 /* confdefs.h.  */
33211 _ACEOF
33212 cat confdefs.h >>conftest.$ac_ext
33213 cat >>conftest.$ac_ext <<_ACEOF
33214 /* end confdefs.h.  */
33215
33216           #include <signal.h>
33217           RETSIGTYPE foo() { }
33218 int
33219 main ()
33220 {
33221
33222                   int mask = sigmask(SIGINT);
33223                   sigset(SIGINT, foo); sigrelse(SIGINT);
33224                   sighold(SIGINT); sigpause(SIGINT);
33225
33226   ;
33227   return 0;
33228 }
33229 _ACEOF
33230 rm -f conftest.$ac_objext conftest$ac_exeext
33231 if { (ac_try="$ac_link"
33232 case "(($ac_try" in
33233   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33234   *) ac_try_echo=$ac_try;;
33235 esac
33236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33237   (eval "$ac_link") 2>conftest.er1
33238   ac_status=$?
33239   grep -v '^ *+' conftest.er1 >conftest.err
33240   rm -f conftest.er1
33241   cat conftest.err >&5
33242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33243   (exit $ac_status); } && {
33244          test -z "$ac_c_werror_flag" ||
33245          test ! -s conftest.err
33246        } && test -s conftest$ac_exeext &&
33247        $as_test_x conftest$ac_exeext; then
33248   bash_cv_signal_vintage="svr3"
33249 else
33250   echo "$as_me: failed program was:" >&5
33251 sed 's/^/| /' conftest.$ac_ext >&5
33252
33253         bash_cv_signal_vintage="v7"
33254
33255 fi
33256
33257 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33258       conftest$ac_exeext conftest.$ac_ext
33259
33260 fi
33261
33262 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33263       conftest$ac_exeext conftest.$ac_ext
33264
33265 fi
33266
33267 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33268       conftest$ac_exeext conftest.$ac_ext
33269
33270 fi
33271
33272   { echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
33273 echo "${ECHO_T}$bash_cv_signal_vintage" >&6; }
33274   if test "$bash_cv_signal_vintage" = "posix"; then
33275     cat >>confdefs.h <<\_ACEOF
33276 #define HAVE_POSIX_SIGNALS 1
33277 _ACEOF
33278
33279   elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
33280     cat >>confdefs.h <<\_ACEOF
33281 #define HAVE_BSD_SIGNALS 1
33282 _ACEOF
33283
33284   elif test "$bash_cv_signal_vintage" = "svr3"; then
33285     cat >>confdefs.h <<\_ACEOF
33286 #define HAVE_USG_SIGHOLD 1
33287 _ACEOF
33288
33289   fi
33290
33291 { echo "$as_me:$LINENO: checking for mode_t" >&5
33292 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
33293 if test "${ac_cv_type_mode_t+set}" = set; then
33294   echo $ECHO_N "(cached) $ECHO_C" >&6
33295 else
33296   cat >conftest.$ac_ext <<_ACEOF
33297 /* confdefs.h.  */
33298 _ACEOF
33299 cat confdefs.h >>conftest.$ac_ext
33300 cat >>conftest.$ac_ext <<_ACEOF
33301 /* end confdefs.h.  */
33302 $ac_includes_default
33303 typedef mode_t ac__type_new_;
33304 int
33305 main ()
33306 {
33307 if ((ac__type_new_ *) 0)
33308   return 0;
33309 if (sizeof (ac__type_new_))
33310   return 0;
33311   ;
33312   return 0;
33313 }
33314 _ACEOF
33315 rm -f conftest.$ac_objext
33316 if { (ac_try="$ac_compile"
33317 case "(($ac_try" in
33318   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33319   *) ac_try_echo=$ac_try;;
33320 esac
33321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33322   (eval "$ac_compile") 2>conftest.er1
33323   ac_status=$?
33324   grep -v '^ *+' conftest.er1 >conftest.err
33325   rm -f conftest.er1
33326   cat conftest.err >&5
33327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33328   (exit $ac_status); } && {
33329          test -z "$ac_c_werror_flag" ||
33330          test ! -s conftest.err
33331        } && test -s conftest.$ac_objext; then
33332   ac_cv_type_mode_t=yes
33333 else
33334   echo "$as_me: failed program was:" >&5
33335 sed 's/^/| /' conftest.$ac_ext >&5
33336
33337         ac_cv_type_mode_t=no
33338 fi
33339
33340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33341 fi
33342 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
33343 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
33344 if test $ac_cv_type_mode_t = yes; then
33345   :
33346 else
33347
33348 cat >>confdefs.h <<_ACEOF
33349 #define mode_t int
33350 _ACEOF
33351
33352 fi
33353
33354 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
33355 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
33356 if test "${ac_cv_type_uid_t+set}" = set; then
33357   echo $ECHO_N "(cached) $ECHO_C" >&6
33358 else
33359   cat >conftest.$ac_ext <<_ACEOF
33360 /* confdefs.h.  */
33361 _ACEOF
33362 cat confdefs.h >>conftest.$ac_ext
33363 cat >>conftest.$ac_ext <<_ACEOF
33364 /* end confdefs.h.  */
33365 #include <sys/types.h>
33366
33367 _ACEOF
33368 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33369   $EGREP "uid_t" >/dev/null 2>&1; then
33370   ac_cv_type_uid_t=yes
33371 else
33372   ac_cv_type_uid_t=no
33373 fi
33374 rm -f conftest*
33375
33376 fi
33377 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
33378 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
33379 if test $ac_cv_type_uid_t = no; then
33380
33381 cat >>confdefs.h <<\_ACEOF
33382 #define uid_t int
33383 _ACEOF
33384
33385
33386 cat >>confdefs.h <<\_ACEOF
33387 #define gid_t int
33388 _ACEOF
33389
33390 fi
33391
33392 { echo "$as_me:$LINENO: checking for size_t" >&5
33393 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
33394 if test "${ac_cv_type_size_t+set}" = set; then
33395   echo $ECHO_N "(cached) $ECHO_C" >&6
33396 else
33397   cat >conftest.$ac_ext <<_ACEOF
33398 /* confdefs.h.  */
33399 _ACEOF
33400 cat confdefs.h >>conftest.$ac_ext
33401 cat >>conftest.$ac_ext <<_ACEOF
33402 /* end confdefs.h.  */
33403 $ac_includes_default
33404 typedef size_t ac__type_new_;
33405 int
33406 main ()
33407 {
33408 if ((ac__type_new_ *) 0)
33409   return 0;
33410 if (sizeof (ac__type_new_))
33411   return 0;
33412   ;
33413   return 0;
33414 }
33415 _ACEOF
33416 rm -f conftest.$ac_objext
33417 if { (ac_try="$ac_compile"
33418 case "(($ac_try" in
33419   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33420   *) ac_try_echo=$ac_try;;
33421 esac
33422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33423   (eval "$ac_compile") 2>conftest.er1
33424   ac_status=$?
33425   grep -v '^ *+' conftest.er1 >conftest.err
33426   rm -f conftest.er1
33427   cat conftest.err >&5
33428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33429   (exit $ac_status); } && {
33430          test -z "$ac_c_werror_flag" ||
33431          test ! -s conftest.err
33432        } && test -s conftest.$ac_objext; then
33433   ac_cv_type_size_t=yes
33434 else
33435   echo "$as_me: failed program was:" >&5
33436 sed 's/^/| /' conftest.$ac_ext >&5
33437
33438         ac_cv_type_size_t=no
33439 fi
33440
33441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33442 fi
33443 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
33444 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
33445 if test $ac_cv_type_size_t = yes; then
33446   :
33447 else
33448
33449 cat >>confdefs.h <<_ACEOF
33450 #define size_t unsigned int
33451 _ACEOF
33452
33453 fi
33454
33455 { echo "$as_me:$LINENO: checking for pid_t" >&5
33456 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
33457 if test "${ac_cv_type_pid_t+set}" = set; then
33458   echo $ECHO_N "(cached) $ECHO_C" >&6
33459 else
33460   cat >conftest.$ac_ext <<_ACEOF
33461 /* confdefs.h.  */
33462 _ACEOF
33463 cat confdefs.h >>conftest.$ac_ext
33464 cat >>conftest.$ac_ext <<_ACEOF
33465 /* end confdefs.h.  */
33466 $ac_includes_default
33467 typedef pid_t ac__type_new_;
33468 int
33469 main ()
33470 {
33471 if ((ac__type_new_ *) 0)
33472   return 0;
33473 if (sizeof (ac__type_new_))
33474   return 0;
33475   ;
33476   return 0;
33477 }
33478 _ACEOF
33479 rm -f conftest.$ac_objext
33480 if { (ac_try="$ac_compile"
33481 case "(($ac_try" in
33482   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33483   *) ac_try_echo=$ac_try;;
33484 esac
33485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33486   (eval "$ac_compile") 2>conftest.er1
33487   ac_status=$?
33488   grep -v '^ *+' conftest.er1 >conftest.err
33489   rm -f conftest.er1
33490   cat conftest.err >&5
33491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33492   (exit $ac_status); } && {
33493          test -z "$ac_c_werror_flag" ||
33494          test ! -s conftest.err
33495        } && test -s conftest.$ac_objext; then
33496   ac_cv_type_pid_t=yes
33497 else
33498   echo "$as_me: failed program was:" >&5
33499 sed 's/^/| /' conftest.$ac_ext >&5
33500
33501         ac_cv_type_pid_t=no
33502 fi
33503
33504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33505 fi
33506 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
33507 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
33508 if test $ac_cv_type_pid_t = yes; then
33509   :
33510 else
33511
33512 cat >>confdefs.h <<_ACEOF
33513 #define pid_t int
33514 _ACEOF
33515
33516 fi
33517
33518 { echo "$as_me:$LINENO: checking for off_t" >&5
33519 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
33520 if test "${ac_cv_type_off_t+set}" = set; then
33521   echo $ECHO_N "(cached) $ECHO_C" >&6
33522 else
33523   cat >conftest.$ac_ext <<_ACEOF
33524 /* confdefs.h.  */
33525 _ACEOF
33526 cat confdefs.h >>conftest.$ac_ext
33527 cat >>conftest.$ac_ext <<_ACEOF
33528 /* end confdefs.h.  */
33529 $ac_includes_default
33530 typedef off_t ac__type_new_;
33531 int
33532 main ()
33533 {
33534 if ((ac__type_new_ *) 0)
33535   return 0;
33536 if (sizeof (ac__type_new_))
33537   return 0;
33538   ;
33539   return 0;
33540 }
33541 _ACEOF
33542 rm -f conftest.$ac_objext
33543 if { (ac_try="$ac_compile"
33544 case "(($ac_try" in
33545   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33546   *) ac_try_echo=$ac_try;;
33547 esac
33548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33549   (eval "$ac_compile") 2>conftest.er1
33550   ac_status=$?
33551   grep -v '^ *+' conftest.er1 >conftest.err
33552   rm -f conftest.er1
33553   cat conftest.err >&5
33554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33555   (exit $ac_status); } && {
33556          test -z "$ac_c_werror_flag" ||
33557          test ! -s conftest.err
33558        } && test -s conftest.$ac_objext; then
33559   ac_cv_type_off_t=yes
33560 else
33561   echo "$as_me: failed program was:" >&5
33562 sed 's/^/| /' conftest.$ac_ext >&5
33563
33564         ac_cv_type_off_t=no
33565 fi
33566
33567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33568 fi
33569 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
33570 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
33571 if test $ac_cv_type_off_t = yes; then
33572   :
33573 else
33574
33575 cat >>confdefs.h <<_ACEOF
33576 #define off_t long int
33577 _ACEOF
33578
33579 fi
33580
33581
33582   { echo "$as_me:$LINENO: checking for intptr_t" >&5
33583 echo $ECHO_N "checking for intptr_t... $ECHO_C" >&6; }
33584 if test "${ac_cv_type_intptr_t+set}" = set; then
33585   echo $ECHO_N "(cached) $ECHO_C" >&6
33586 else
33587   cat >conftest.$ac_ext <<_ACEOF
33588 /* confdefs.h.  */
33589 _ACEOF
33590 cat confdefs.h >>conftest.$ac_ext
33591 cat >>conftest.$ac_ext <<_ACEOF
33592 /* end confdefs.h.  */
33593 $ac_includes_default
33594 typedef intptr_t ac__type_new_;
33595 int
33596 main ()
33597 {
33598 if ((ac__type_new_ *) 0)
33599   return 0;
33600 if (sizeof (ac__type_new_))
33601   return 0;
33602   ;
33603   return 0;
33604 }
33605 _ACEOF
33606 rm -f conftest.$ac_objext
33607 if { (ac_try="$ac_compile"
33608 case "(($ac_try" in
33609   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33610   *) ac_try_echo=$ac_try;;
33611 esac
33612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33613   (eval "$ac_compile") 2>conftest.er1
33614   ac_status=$?
33615   grep -v '^ *+' conftest.er1 >conftest.err
33616   rm -f conftest.er1
33617   cat conftest.err >&5
33618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33619   (exit $ac_status); } && {
33620          test -z "$ac_c_werror_flag" ||
33621          test ! -s conftest.err
33622        } && test -s conftest.$ac_objext; then
33623   ac_cv_type_intptr_t=yes
33624 else
33625   echo "$as_me: failed program was:" >&5
33626 sed 's/^/| /' conftest.$ac_ext >&5
33627
33628         ac_cv_type_intptr_t=no
33629 fi
33630
33631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33632 fi
33633 { echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
33634 echo "${ECHO_T}$ac_cv_type_intptr_t" >&6; }
33635 if test $ac_cv_type_intptr_t = yes; then
33636
33637 cat >>confdefs.h <<\_ACEOF
33638 #define HAVE_INTPTR_T 1
33639 _ACEOF
33640
33641 else
33642   for ac_type in 'int' 'long int' 'long long int'; do
33643        cat >conftest.$ac_ext <<_ACEOF
33644 /* confdefs.h.  */
33645 _ACEOF
33646 cat confdefs.h >>conftest.$ac_ext
33647 cat >>conftest.$ac_ext <<_ACEOF
33648 /* end confdefs.h.  */
33649 $ac_includes_default
33650 int
33651 main ()
33652 {
33653 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
33654 test_array [0] = 0
33655
33656   ;
33657   return 0;
33658 }
33659 _ACEOF
33660 rm -f conftest.$ac_objext
33661 if { (ac_try="$ac_compile"
33662 case "(($ac_try" in
33663   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33664   *) ac_try_echo=$ac_try;;
33665 esac
33666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33667   (eval "$ac_compile") 2>conftest.er1
33668   ac_status=$?
33669   grep -v '^ *+' conftest.er1 >conftest.err
33670   rm -f conftest.er1
33671   cat conftest.err >&5
33672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33673   (exit $ac_status); } && {
33674          test -z "$ac_c_werror_flag" ||
33675          test ! -s conftest.err
33676        } && test -s conftest.$ac_objext; then
33677
33678 cat >>confdefs.h <<_ACEOF
33679 #define intptr_t $ac_type
33680 _ACEOF
33681
33682           ac_type=
33683 else
33684   echo "$as_me: failed program was:" >&5
33685 sed 's/^/| /' conftest.$ac_ext >&5
33686
33687
33688 fi
33689
33690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33691        test -z "$ac_type" && break
33692      done
33693 fi
33694
33695
33696
33697   { echo "$as_me:$LINENO: checking for uintptr_t" >&5
33698 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; }
33699 if test "${ac_cv_type_uintptr_t+set}" = set; then
33700   echo $ECHO_N "(cached) $ECHO_C" >&6
33701 else
33702   cat >conftest.$ac_ext <<_ACEOF
33703 /* confdefs.h.  */
33704 _ACEOF
33705 cat confdefs.h >>conftest.$ac_ext
33706 cat >>conftest.$ac_ext <<_ACEOF
33707 /* end confdefs.h.  */
33708 $ac_includes_default
33709 typedef uintptr_t ac__type_new_;
33710 int
33711 main ()
33712 {
33713 if ((ac__type_new_ *) 0)
33714   return 0;
33715 if (sizeof (ac__type_new_))
33716   return 0;
33717   ;
33718   return 0;
33719 }
33720 _ACEOF
33721 rm -f conftest.$ac_objext
33722 if { (ac_try="$ac_compile"
33723 case "(($ac_try" in
33724   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33725   *) ac_try_echo=$ac_try;;
33726 esac
33727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33728   (eval "$ac_compile") 2>conftest.er1
33729   ac_status=$?
33730   grep -v '^ *+' conftest.er1 >conftest.err
33731   rm -f conftest.er1
33732   cat conftest.err >&5
33733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33734   (exit $ac_status); } && {
33735          test -z "$ac_c_werror_flag" ||
33736          test ! -s conftest.err
33737        } && test -s conftest.$ac_objext; then
33738   ac_cv_type_uintptr_t=yes
33739 else
33740   echo "$as_me: failed program was:" >&5
33741 sed 's/^/| /' conftest.$ac_ext >&5
33742
33743         ac_cv_type_uintptr_t=no
33744 fi
33745
33746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33747 fi
33748 { echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
33749 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; }
33750 if test $ac_cv_type_uintptr_t = yes; then
33751
33752 cat >>confdefs.h <<\_ACEOF
33753 #define HAVE_UINTPTR_T 1
33754 _ACEOF
33755
33756 else
33757   for ac_type in 'unsigned int' 'unsigned long int' \
33758         'unsigned long long int'; do
33759        cat >conftest.$ac_ext <<_ACEOF
33760 /* confdefs.h.  */
33761 _ACEOF
33762 cat confdefs.h >>conftest.$ac_ext
33763 cat >>conftest.$ac_ext <<_ACEOF
33764 /* end confdefs.h.  */
33765 $ac_includes_default
33766 int
33767 main ()
33768 {
33769 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
33770 test_array [0] = 0
33771
33772   ;
33773   return 0;
33774 }
33775 _ACEOF
33776 rm -f conftest.$ac_objext
33777 if { (ac_try="$ac_compile"
33778 case "(($ac_try" in
33779   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33780   *) ac_try_echo=$ac_try;;
33781 esac
33782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33783   (eval "$ac_compile") 2>conftest.er1
33784   ac_status=$?
33785   grep -v '^ *+' conftest.er1 >conftest.err
33786   rm -f conftest.er1
33787   cat conftest.err >&5
33788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33789   (exit $ac_status); } && {
33790          test -z "$ac_c_werror_flag" ||
33791          test ! -s conftest.err
33792        } && test -s conftest.$ac_objext; then
33793
33794 cat >>confdefs.h <<_ACEOF
33795 #define uintptr_t $ac_type
33796 _ACEOF
33797
33798           ac_type=
33799 else
33800   echo "$as_me: failed program was:" >&5
33801 sed 's/^/| /' conftest.$ac_ext >&5
33802
33803
33804 fi
33805
33806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33807        test -z "$ac_type" && break
33808      done
33809 fi
33810
33811
33812 { echo "$as_me:$LINENO: checking for ino_t" >&5
33813 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6; }
33814 if test "${ac_cv_type_ino_t+set}" = set; then
33815   echo $ECHO_N "(cached) $ECHO_C" >&6
33816 else
33817   cat >conftest.$ac_ext <<_ACEOF
33818 /* confdefs.h.  */
33819 _ACEOF
33820 cat confdefs.h >>conftest.$ac_ext
33821 cat >>conftest.$ac_ext <<_ACEOF
33822 /* end confdefs.h.  */
33823 $ac_includes_default
33824 typedef ino_t ac__type_new_;
33825 int
33826 main ()
33827 {
33828 if ((ac__type_new_ *) 0)
33829   return 0;
33830 if (sizeof (ac__type_new_))
33831   return 0;
33832   ;
33833   return 0;
33834 }
33835 _ACEOF
33836 rm -f conftest.$ac_objext
33837 if { (ac_try="$ac_compile"
33838 case "(($ac_try" in
33839   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33840   *) ac_try_echo=$ac_try;;
33841 esac
33842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33843   (eval "$ac_compile") 2>conftest.er1
33844   ac_status=$?
33845   grep -v '^ *+' conftest.er1 >conftest.err
33846   rm -f conftest.er1
33847   cat conftest.err >&5
33848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33849   (exit $ac_status); } && {
33850          test -z "$ac_c_werror_flag" ||
33851          test ! -s conftest.err
33852        } && test -s conftest.$ac_objext; then
33853   ac_cv_type_ino_t=yes
33854 else
33855   echo "$as_me: failed program was:" >&5
33856 sed 's/^/| /' conftest.$ac_ext >&5
33857
33858         ac_cv_type_ino_t=no
33859 fi
33860
33861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33862 fi
33863 { echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
33864 echo "${ECHO_T}$ac_cv_type_ino_t" >&6; }
33865 if test $ac_cv_type_ino_t = yes; then
33866   :
33867 else
33868
33869 cat >>confdefs.h <<_ACEOF
33870 #define ino_t unsigned long
33871 _ACEOF
33872
33873 fi
33874
33875 { echo "$as_me:$LINENO: checking for dev_t" >&5
33876 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6; }
33877 if test "${ac_cv_type_dev_t+set}" = set; then
33878   echo $ECHO_N "(cached) $ECHO_C" >&6
33879 else
33880   cat >conftest.$ac_ext <<_ACEOF
33881 /* confdefs.h.  */
33882 _ACEOF
33883 cat confdefs.h >>conftest.$ac_ext
33884 cat >>conftest.$ac_ext <<_ACEOF
33885 /* end confdefs.h.  */
33886 $ac_includes_default
33887 typedef dev_t ac__type_new_;
33888 int
33889 main ()
33890 {
33891 if ((ac__type_new_ *) 0)
33892   return 0;
33893 if (sizeof (ac__type_new_))
33894   return 0;
33895   ;
33896   return 0;
33897 }
33898 _ACEOF
33899 rm -f conftest.$ac_objext
33900 if { (ac_try="$ac_compile"
33901 case "(($ac_try" in
33902   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33903   *) ac_try_echo=$ac_try;;
33904 esac
33905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33906   (eval "$ac_compile") 2>conftest.er1
33907   ac_status=$?
33908   grep -v '^ *+' conftest.er1 >conftest.err
33909   rm -f conftest.er1
33910   cat conftest.err >&5
33911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33912   (exit $ac_status); } && {
33913          test -z "$ac_c_werror_flag" ||
33914          test ! -s conftest.err
33915        } && test -s conftest.$ac_objext; then
33916   ac_cv_type_dev_t=yes
33917 else
33918   echo "$as_me: failed program was:" >&5
33919 sed 's/^/| /' conftest.$ac_ext >&5
33920
33921         ac_cv_type_dev_t=no
33922 fi
33923
33924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33925 fi
33926 { echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
33927 echo "${ECHO_T}$ac_cv_type_dev_t" >&6; }
33928 if test $ac_cv_type_dev_t = yes; then
33929   :
33930 else
33931
33932 cat >>confdefs.h <<_ACEOF
33933 #define dev_t unsigned long
33934 _ACEOF
33935
33936 fi
33937
33938 { echo "$as_me:$LINENO: checking for daddr_t" >&5
33939 echo $ECHO_N "checking for daddr_t... $ECHO_C" >&6; }
33940 if test "${ac_cv_type_daddr_t+set}" = set; then
33941   echo $ECHO_N "(cached) $ECHO_C" >&6
33942 else
33943   cat >conftest.$ac_ext <<_ACEOF
33944 /* confdefs.h.  */
33945 _ACEOF
33946 cat confdefs.h >>conftest.$ac_ext
33947 cat >>conftest.$ac_ext <<_ACEOF
33948 /* end confdefs.h.  */
33949 $ac_includes_default
33950 typedef daddr_t ac__type_new_;
33951 int
33952 main ()
33953 {
33954 if ((ac__type_new_ *) 0)
33955   return 0;
33956 if (sizeof (ac__type_new_))
33957   return 0;
33958   ;
33959   return 0;
33960 }
33961 _ACEOF
33962 rm -f conftest.$ac_objext
33963 if { (ac_try="$ac_compile"
33964 case "(($ac_try" in
33965   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33966   *) ac_try_echo=$ac_try;;
33967 esac
33968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33969   (eval "$ac_compile") 2>conftest.er1
33970   ac_status=$?
33971   grep -v '^ *+' conftest.er1 >conftest.err
33972   rm -f conftest.er1
33973   cat conftest.err >&5
33974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33975   (exit $ac_status); } && {
33976          test -z "$ac_c_werror_flag" ||
33977          test ! -s conftest.err
33978        } && test -s conftest.$ac_objext; then
33979   ac_cv_type_daddr_t=yes
33980 else
33981   echo "$as_me: failed program was:" >&5
33982 sed 's/^/| /' conftest.$ac_ext >&5
33983
33984         ac_cv_type_daddr_t=no
33985 fi
33986
33987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33988 fi
33989 { echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
33990 echo "${ECHO_T}$ac_cv_type_daddr_t" >&6; }
33991 if test $ac_cv_type_daddr_t = yes; then
33992   :
33993 else
33994
33995 cat >>confdefs.h <<_ACEOF
33996 #define daddr_t long
33997 _ACEOF
33998
33999 fi
34000
34001 { echo "$as_me:$LINENO: checking for major_t" >&5
34002 echo $ECHO_N "checking for major_t... $ECHO_C" >&6; }
34003 if test "${ac_cv_type_major_t+set}" = set; then
34004   echo $ECHO_N "(cached) $ECHO_C" >&6
34005 else
34006   cat >conftest.$ac_ext <<_ACEOF
34007 /* confdefs.h.  */
34008 _ACEOF
34009 cat confdefs.h >>conftest.$ac_ext
34010 cat >>conftest.$ac_ext <<_ACEOF
34011 /* end confdefs.h.  */
34012 $ac_includes_default
34013 typedef major_t ac__type_new_;
34014 int
34015 main ()
34016 {
34017 if ((ac__type_new_ *) 0)
34018   return 0;
34019 if (sizeof (ac__type_new_))
34020   return 0;
34021   ;
34022   return 0;
34023 }
34024 _ACEOF
34025 rm -f conftest.$ac_objext
34026 if { (ac_try="$ac_compile"
34027 case "(($ac_try" in
34028   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34029   *) ac_try_echo=$ac_try;;
34030 esac
34031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34032   (eval "$ac_compile") 2>conftest.er1
34033   ac_status=$?
34034   grep -v '^ *+' conftest.er1 >conftest.err
34035   rm -f conftest.er1
34036   cat conftest.err >&5
34037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34038   (exit $ac_status); } && {
34039          test -z "$ac_c_werror_flag" ||
34040          test ! -s conftest.err
34041        } && test -s conftest.$ac_objext; then
34042   ac_cv_type_major_t=yes
34043 else
34044   echo "$as_me: failed program was:" >&5
34045 sed 's/^/| /' conftest.$ac_ext >&5
34046
34047         ac_cv_type_major_t=no
34048 fi
34049
34050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34051 fi
34052 { echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
34053 echo "${ECHO_T}$ac_cv_type_major_t" >&6; }
34054 if test $ac_cv_type_major_t = yes; then
34055   :
34056 else
34057
34058 cat >>confdefs.h <<_ACEOF
34059 #define major_t int
34060 _ACEOF
34061
34062 fi
34063
34064 { echo "$as_me:$LINENO: checking for minor_t" >&5
34065 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6; }
34066 if test "${ac_cv_type_minor_t+set}" = set; then
34067   echo $ECHO_N "(cached) $ECHO_C" >&6
34068 else
34069   cat >conftest.$ac_ext <<_ACEOF
34070 /* confdefs.h.  */
34071 _ACEOF
34072 cat confdefs.h >>conftest.$ac_ext
34073 cat >>conftest.$ac_ext <<_ACEOF
34074 /* end confdefs.h.  */
34075 $ac_includes_default
34076 typedef minor_t ac__type_new_;
34077 int
34078 main ()
34079 {
34080 if ((ac__type_new_ *) 0)
34081   return 0;
34082 if (sizeof (ac__type_new_))
34083   return 0;
34084   ;
34085   return 0;
34086 }
34087 _ACEOF
34088 rm -f conftest.$ac_objext
34089 if { (ac_try="$ac_compile"
34090 case "(($ac_try" in
34091   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34092   *) ac_try_echo=$ac_try;;
34093 esac
34094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34095   (eval "$ac_compile") 2>conftest.er1
34096   ac_status=$?
34097   grep -v '^ *+' conftest.er1 >conftest.err
34098   rm -f conftest.er1
34099   cat conftest.err >&5
34100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34101   (exit $ac_status); } && {
34102          test -z "$ac_c_werror_flag" ||
34103          test ! -s conftest.err
34104        } && test -s conftest.$ac_objext; then
34105   ac_cv_type_minor_t=yes
34106 else
34107   echo "$as_me: failed program was:" >&5
34108 sed 's/^/| /' conftest.$ac_ext >&5
34109
34110         ac_cv_type_minor_t=no
34111 fi
34112
34113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34114 fi
34115 { echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
34116 echo "${ECHO_T}$ac_cv_type_minor_t" >&6; }
34117 if test $ac_cv_type_minor_t = yes; then
34118   :
34119 else
34120
34121 cat >>confdefs.h <<_ACEOF
34122 #define minor_t int
34123 _ACEOF
34124
34125 fi
34126
34127 { echo "$as_me:$LINENO: checking for ssize_t" >&5
34128 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
34129 if test "${ac_cv_type_ssize_t+set}" = set; then
34130   echo $ECHO_N "(cached) $ECHO_C" >&6
34131 else
34132   cat >conftest.$ac_ext <<_ACEOF
34133 /* confdefs.h.  */
34134 _ACEOF
34135 cat confdefs.h >>conftest.$ac_ext
34136 cat >>conftest.$ac_ext <<_ACEOF
34137 /* end confdefs.h.  */
34138 $ac_includes_default
34139 typedef ssize_t ac__type_new_;
34140 int
34141 main ()
34142 {
34143 if ((ac__type_new_ *) 0)
34144   return 0;
34145 if (sizeof (ac__type_new_))
34146   return 0;
34147   ;
34148   return 0;
34149 }
34150 _ACEOF
34151 rm -f conftest.$ac_objext
34152 if { (ac_try="$ac_compile"
34153 case "(($ac_try" in
34154   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34155   *) ac_try_echo=$ac_try;;
34156 esac
34157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34158   (eval "$ac_compile") 2>conftest.er1
34159   ac_status=$?
34160   grep -v '^ *+' conftest.er1 >conftest.err
34161   rm -f conftest.er1
34162   cat conftest.err >&5
34163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34164   (exit $ac_status); } && {
34165          test -z "$ac_c_werror_flag" ||
34166          test ! -s conftest.err
34167        } && test -s conftest.$ac_objext; then
34168   ac_cv_type_ssize_t=yes
34169 else
34170   echo "$as_me: failed program was:" >&5
34171 sed 's/^/| /' conftest.$ac_ext >&5
34172
34173         ac_cv_type_ssize_t=no
34174 fi
34175
34176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34177 fi
34178 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
34179 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
34180 if test $ac_cv_type_ssize_t = yes; then
34181   :
34182 else
34183
34184 cat >>confdefs.h <<_ACEOF
34185 #define ssize_t int
34186 _ACEOF
34187
34188 fi
34189
34190 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
34191 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
34192 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
34193   echo $ECHO_N "(cached) $ECHO_C" >&6
34194 else
34195   cat >conftest.$ac_ext <<_ACEOF
34196 /* confdefs.h.  */
34197 _ACEOF
34198 cat confdefs.h >>conftest.$ac_ext
34199 cat >>conftest.$ac_ext <<_ACEOF
34200 /* end confdefs.h.  */
34201 $ac_includes_default
34202 int
34203 main ()
34204 {
34205 static struct stat ac_aggr;
34206 if (ac_aggr.st_blocks)
34207 return 0;
34208   ;
34209   return 0;
34210 }
34211 _ACEOF
34212 rm -f conftest.$ac_objext
34213 if { (ac_try="$ac_compile"
34214 case "(($ac_try" in
34215   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34216   *) ac_try_echo=$ac_try;;
34217 esac
34218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34219   (eval "$ac_compile") 2>conftest.er1
34220   ac_status=$?
34221   grep -v '^ *+' conftest.er1 >conftest.err
34222   rm -f conftest.er1
34223   cat conftest.err >&5
34224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34225   (exit $ac_status); } && {
34226          test -z "$ac_c_werror_flag" ||
34227          test ! -s conftest.err
34228        } && test -s conftest.$ac_objext; then
34229   ac_cv_member_struct_stat_st_blocks=yes
34230 else
34231   echo "$as_me: failed program was:" >&5
34232 sed 's/^/| /' conftest.$ac_ext >&5
34233
34234         cat >conftest.$ac_ext <<_ACEOF
34235 /* confdefs.h.  */
34236 _ACEOF
34237 cat confdefs.h >>conftest.$ac_ext
34238 cat >>conftest.$ac_ext <<_ACEOF
34239 /* end confdefs.h.  */
34240 $ac_includes_default
34241 int
34242 main ()
34243 {
34244 static struct stat ac_aggr;
34245 if (sizeof ac_aggr.st_blocks)
34246 return 0;
34247   ;
34248   return 0;
34249 }
34250 _ACEOF
34251 rm -f conftest.$ac_objext
34252 if { (ac_try="$ac_compile"
34253 case "(($ac_try" in
34254   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34255   *) ac_try_echo=$ac_try;;
34256 esac
34257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34258   (eval "$ac_compile") 2>conftest.er1
34259   ac_status=$?
34260   grep -v '^ *+' conftest.er1 >conftest.err
34261   rm -f conftest.er1
34262   cat conftest.err >&5
34263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34264   (exit $ac_status); } && {
34265          test -z "$ac_c_werror_flag" ||
34266          test ! -s conftest.err
34267        } && test -s conftest.$ac_objext; then
34268   ac_cv_member_struct_stat_st_blocks=yes
34269 else
34270   echo "$as_me: failed program was:" >&5
34271 sed 's/^/| /' conftest.$ac_ext >&5
34272
34273         ac_cv_member_struct_stat_st_blocks=no
34274 fi
34275
34276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34277 fi
34278
34279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34280 fi
34281 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
34282 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
34283 if test $ac_cv_member_struct_stat_st_blocks = yes; then
34284
34285 cat >>confdefs.h <<_ACEOF
34286 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
34287 _ACEOF
34288
34289
34290 cat >>confdefs.h <<\_ACEOF
34291 #define HAVE_ST_BLOCKS 1
34292 _ACEOF
34293
34294 else
34295   case " $LIBOBJS " in
34296   *" fileblocks.$ac_objext "* ) ;;
34297   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
34298  ;;
34299 esac
34300
34301 fi
34302
34303
34304 { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
34305 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
34306 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
34307   echo $ECHO_N "(cached) $ECHO_C" >&6
34308 else
34309   cat >conftest.$ac_ext <<_ACEOF
34310 /* confdefs.h.  */
34311 _ACEOF
34312 cat confdefs.h >>conftest.$ac_ext
34313 cat >>conftest.$ac_ext <<_ACEOF
34314 /* end confdefs.h.  */
34315 $ac_includes_default
34316 int
34317 main ()
34318 {
34319 static struct stat ac_aggr;
34320 if (ac_aggr.st_rdev)
34321 return 0;
34322   ;
34323   return 0;
34324 }
34325 _ACEOF
34326 rm -f conftest.$ac_objext
34327 if { (ac_try="$ac_compile"
34328 case "(($ac_try" in
34329   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34330   *) ac_try_echo=$ac_try;;
34331 esac
34332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34333   (eval "$ac_compile") 2>conftest.er1
34334   ac_status=$?
34335   grep -v '^ *+' conftest.er1 >conftest.err
34336   rm -f conftest.er1
34337   cat conftest.err >&5
34338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34339   (exit $ac_status); } && {
34340          test -z "$ac_c_werror_flag" ||
34341          test ! -s conftest.err
34342        } && test -s conftest.$ac_objext; then
34343   ac_cv_member_struct_stat_st_rdev=yes
34344 else
34345   echo "$as_me: failed program was:" >&5
34346 sed 's/^/| /' conftest.$ac_ext >&5
34347
34348         cat >conftest.$ac_ext <<_ACEOF
34349 /* confdefs.h.  */
34350 _ACEOF
34351 cat confdefs.h >>conftest.$ac_ext
34352 cat >>conftest.$ac_ext <<_ACEOF
34353 /* end confdefs.h.  */
34354 $ac_includes_default
34355 int
34356 main ()
34357 {
34358 static struct stat ac_aggr;
34359 if (sizeof ac_aggr.st_rdev)
34360 return 0;
34361   ;
34362   return 0;
34363 }
34364 _ACEOF
34365 rm -f conftest.$ac_objext
34366 if { (ac_try="$ac_compile"
34367 case "(($ac_try" in
34368   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34369   *) ac_try_echo=$ac_try;;
34370 esac
34371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34372   (eval "$ac_compile") 2>conftest.er1
34373   ac_status=$?
34374   grep -v '^ *+' conftest.er1 >conftest.err
34375   rm -f conftest.er1
34376   cat conftest.err >&5
34377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34378   (exit $ac_status); } && {
34379          test -z "$ac_c_werror_flag" ||
34380          test ! -s conftest.err
34381        } && test -s conftest.$ac_objext; then
34382   ac_cv_member_struct_stat_st_rdev=yes
34383 else
34384   echo "$as_me: failed program was:" >&5
34385 sed 's/^/| /' conftest.$ac_ext >&5
34386
34387         ac_cv_member_struct_stat_st_rdev=no
34388 fi
34389
34390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34391 fi
34392
34393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34394 fi
34395 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
34396 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
34397 if test $ac_cv_member_struct_stat_st_rdev = yes; then
34398
34399 cat >>confdefs.h <<_ACEOF
34400 #define HAVE_STRUCT_STAT_ST_RDEV 1
34401 _ACEOF
34402
34403
34404 cat >>confdefs.h <<\_ACEOF
34405 #define HAVE_ST_RDEV 1
34406 _ACEOF
34407
34408 fi
34409
34410
34411 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
34412 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
34413 if test "${ac_cv_struct_tm+set}" = set; then
34414   echo $ECHO_N "(cached) $ECHO_C" >&6
34415 else
34416   cat >conftest.$ac_ext <<_ACEOF
34417 /* confdefs.h.  */
34418 _ACEOF
34419 cat confdefs.h >>conftest.$ac_ext
34420 cat >>conftest.$ac_ext <<_ACEOF
34421 /* end confdefs.h.  */
34422 #include <sys/types.h>
34423 #include <time.h>
34424
34425 int
34426 main ()
34427 {
34428 struct tm tm;
34429                                      int *p = &tm.tm_sec;
34430                                      return !p;
34431   ;
34432   return 0;
34433 }
34434 _ACEOF
34435 rm -f conftest.$ac_objext
34436 if { (ac_try="$ac_compile"
34437 case "(($ac_try" in
34438   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34439   *) ac_try_echo=$ac_try;;
34440 esac
34441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34442   (eval "$ac_compile") 2>conftest.er1
34443   ac_status=$?
34444   grep -v '^ *+' conftest.er1 >conftest.err
34445   rm -f conftest.er1
34446   cat conftest.err >&5
34447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34448   (exit $ac_status); } && {
34449          test -z "$ac_c_werror_flag" ||
34450          test ! -s conftest.err
34451        } && test -s conftest.$ac_objext; then
34452   ac_cv_struct_tm=time.h
34453 else
34454   echo "$as_me: failed program was:" >&5
34455 sed 's/^/| /' conftest.$ac_ext >&5
34456
34457         ac_cv_struct_tm=sys/time.h
34458 fi
34459
34460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34461 fi
34462 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
34463 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
34464 if test $ac_cv_struct_tm = sys/time.h; then
34465
34466 cat >>confdefs.h <<\_ACEOF
34467 #define TM_IN_SYS_TIME 1
34468 _ACEOF
34469
34470 fi
34471
34472 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
34473 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
34474 if test "${ac_cv_c_const+set}" = set; then
34475   echo $ECHO_N "(cached) $ECHO_C" >&6
34476 else
34477   cat >conftest.$ac_ext <<_ACEOF
34478 /* confdefs.h.  */
34479 _ACEOF
34480 cat confdefs.h >>conftest.$ac_ext
34481 cat >>conftest.$ac_ext <<_ACEOF
34482 /* end confdefs.h.  */
34483
34484 int
34485 main ()
34486 {
34487 /* FIXME: Include the comments suggested by Paul. */
34488 #ifndef __cplusplus
34489   /* Ultrix mips cc rejects this.  */
34490   typedef int charset[2];
34491   const charset cs;
34492   /* SunOS 4.1.1 cc rejects this.  */
34493   char const *const *pcpcc;
34494   char **ppc;
34495   /* NEC SVR4.0.2 mips cc rejects this.  */
34496   struct point {int x, y;};
34497   static struct point const zero = {0,0};
34498   /* AIX XL C 1.02.0.0 rejects this.
34499      It does not let you subtract one const X* pointer from another in
34500      an arm of an if-expression whose if-part is not a constant
34501      expression */
34502   const char *g = "string";
34503   pcpcc = &g + (g ? g-g : 0);
34504   /* HPUX 7.0 cc rejects these. */
34505   ++pcpcc;
34506   ppc = (char**) pcpcc;
34507   pcpcc = (char const *const *) ppc;
34508   { /* SCO 3.2v4 cc rejects this.  */
34509     char *t;
34510     char const *s = 0 ? (char *) 0 : (char const *) 0;
34511
34512     *t++ = 0;
34513     if (s) return 0;
34514   }
34515   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
34516     int x[] = {25, 17};
34517     const int *foo = &x[0];
34518     ++foo;
34519   }
34520   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
34521     typedef const int *iptr;
34522     iptr p = 0;
34523     ++p;
34524   }
34525   { /* AIX XL C 1.02.0.0 rejects this saying
34526        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
34527     struct s { int j; const int *ap[3]; };
34528     struct s *b; b->j = 5;
34529   }
34530   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
34531     const int foo = 10;
34532     if (!foo) return 0;
34533   }
34534   return !cs[0] && !zero.x;
34535 #endif
34536
34537   ;
34538   return 0;
34539 }
34540 _ACEOF
34541 rm -f conftest.$ac_objext
34542 if { (ac_try="$ac_compile"
34543 case "(($ac_try" in
34544   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34545   *) ac_try_echo=$ac_try;;
34546 esac
34547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34548   (eval "$ac_compile") 2>conftest.er1
34549   ac_status=$?
34550   grep -v '^ *+' conftest.er1 >conftest.err
34551   rm -f conftest.er1
34552   cat conftest.err >&5
34553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34554   (exit $ac_status); } && {
34555          test -z "$ac_c_werror_flag" ||
34556          test ! -s conftest.err
34557        } && test -s conftest.$ac_objext; then
34558   ac_cv_c_const=yes
34559 else
34560   echo "$as_me: failed program was:" >&5
34561 sed 's/^/| /' conftest.$ac_ext >&5
34562
34563         ac_cv_c_const=no
34564 fi
34565
34566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34567 fi
34568 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
34569 echo "${ECHO_T}$ac_cv_c_const" >&6; }
34570 if test $ac_cv_c_const = no; then
34571
34572 cat >>confdefs.h <<\_ACEOF
34573 #define const
34574 _ACEOF
34575
34576 fi
34577
34578
34579 { echo "$as_me:$LINENO: checking for char" >&5
34580 echo $ECHO_N "checking for char... $ECHO_C" >&6; }
34581 if test "${ac_cv_type_char+set}" = set; then
34582   echo $ECHO_N "(cached) $ECHO_C" >&6
34583 else
34584   cat >conftest.$ac_ext <<_ACEOF
34585 /* confdefs.h.  */
34586 _ACEOF
34587 cat confdefs.h >>conftest.$ac_ext
34588 cat >>conftest.$ac_ext <<_ACEOF
34589 /* end confdefs.h.  */
34590 $ac_includes_default
34591 typedef char ac__type_new_;
34592 int
34593 main ()
34594 {
34595 if ((ac__type_new_ *) 0)
34596   return 0;
34597 if (sizeof (ac__type_new_))
34598   return 0;
34599   ;
34600   return 0;
34601 }
34602 _ACEOF
34603 rm -f conftest.$ac_objext
34604 if { (ac_try="$ac_compile"
34605 case "(($ac_try" in
34606   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34607   *) ac_try_echo=$ac_try;;
34608 esac
34609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34610   (eval "$ac_compile") 2>conftest.er1
34611   ac_status=$?
34612   grep -v '^ *+' conftest.er1 >conftest.err
34613   rm -f conftest.er1
34614   cat conftest.err >&5
34615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34616   (exit $ac_status); } && {
34617          test -z "$ac_c_werror_flag" ||
34618          test ! -s conftest.err
34619        } && test -s conftest.$ac_objext; then
34620   ac_cv_type_char=yes
34621 else
34622   echo "$as_me: failed program was:" >&5
34623 sed 's/^/| /' conftest.$ac_ext >&5
34624
34625         ac_cv_type_char=no
34626 fi
34627
34628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34629 fi
34630 { echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
34631 echo "${ECHO_T}$ac_cv_type_char" >&6; }
34632
34633 # The cast to long int works around a bug in the HP C Compiler
34634 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
34635 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
34636 # This bug is HP SR number 8606223364.
34637 { echo "$as_me:$LINENO: checking size of char" >&5
34638 echo $ECHO_N "checking size of char... $ECHO_C" >&6; }
34639 if test "${ac_cv_sizeof_char+set}" = set; then
34640   echo $ECHO_N "(cached) $ECHO_C" >&6
34641 else
34642   if test "$cross_compiling" = yes; then
34643   # Depending upon the size, compute the lo and hi bounds.
34644 cat >conftest.$ac_ext <<_ACEOF
34645 /* confdefs.h.  */
34646 _ACEOF
34647 cat confdefs.h >>conftest.$ac_ext
34648 cat >>conftest.$ac_ext <<_ACEOF
34649 /* end confdefs.h.  */
34650 $ac_includes_default
34651    typedef char ac__type_sizeof_;
34652 int
34653 main ()
34654 {
34655 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
34656 test_array [0] = 0
34657
34658   ;
34659   return 0;
34660 }
34661 _ACEOF
34662 rm -f conftest.$ac_objext
34663 if { (ac_try="$ac_compile"
34664 case "(($ac_try" in
34665   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34666   *) ac_try_echo=$ac_try;;
34667 esac
34668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34669   (eval "$ac_compile") 2>conftest.er1
34670   ac_status=$?
34671   grep -v '^ *+' conftest.er1 >conftest.err
34672   rm -f conftest.er1
34673   cat conftest.err >&5
34674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34675   (exit $ac_status); } && {
34676          test -z "$ac_c_werror_flag" ||
34677          test ! -s conftest.err
34678        } && test -s conftest.$ac_objext; then
34679   ac_lo=0 ac_mid=0
34680   while :; do
34681     cat >conftest.$ac_ext <<_ACEOF
34682 /* confdefs.h.  */
34683 _ACEOF
34684 cat confdefs.h >>conftest.$ac_ext
34685 cat >>conftest.$ac_ext <<_ACEOF
34686 /* end confdefs.h.  */
34687 $ac_includes_default
34688    typedef char ac__type_sizeof_;
34689 int
34690 main ()
34691 {
34692 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34693 test_array [0] = 0
34694
34695   ;
34696   return 0;
34697 }
34698 _ACEOF
34699 rm -f conftest.$ac_objext
34700 if { (ac_try="$ac_compile"
34701 case "(($ac_try" in
34702   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34703   *) ac_try_echo=$ac_try;;
34704 esac
34705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34706   (eval "$ac_compile") 2>conftest.er1
34707   ac_status=$?
34708   grep -v '^ *+' conftest.er1 >conftest.err
34709   rm -f conftest.er1
34710   cat conftest.err >&5
34711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34712   (exit $ac_status); } && {
34713          test -z "$ac_c_werror_flag" ||
34714          test ! -s conftest.err
34715        } && test -s conftest.$ac_objext; then
34716   ac_hi=$ac_mid; break
34717 else
34718   echo "$as_me: failed program was:" >&5
34719 sed 's/^/| /' conftest.$ac_ext >&5
34720
34721         ac_lo=`expr $ac_mid + 1`
34722                         if test $ac_lo -le $ac_mid; then
34723                           ac_lo= ac_hi=
34724                           break
34725                         fi
34726                         ac_mid=`expr 2 '*' $ac_mid + 1`
34727 fi
34728
34729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34730   done
34731 else
34732   echo "$as_me: failed program was:" >&5
34733 sed 's/^/| /' conftest.$ac_ext >&5
34734
34735         cat >conftest.$ac_ext <<_ACEOF
34736 /* confdefs.h.  */
34737 _ACEOF
34738 cat confdefs.h >>conftest.$ac_ext
34739 cat >>conftest.$ac_ext <<_ACEOF
34740 /* end confdefs.h.  */
34741 $ac_includes_default
34742    typedef char ac__type_sizeof_;
34743 int
34744 main ()
34745 {
34746 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
34747 test_array [0] = 0
34748
34749   ;
34750   return 0;
34751 }
34752 _ACEOF
34753 rm -f conftest.$ac_objext
34754 if { (ac_try="$ac_compile"
34755 case "(($ac_try" in
34756   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34757   *) ac_try_echo=$ac_try;;
34758 esac
34759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34760   (eval "$ac_compile") 2>conftest.er1
34761   ac_status=$?
34762   grep -v '^ *+' conftest.er1 >conftest.err
34763   rm -f conftest.er1
34764   cat conftest.err >&5
34765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34766   (exit $ac_status); } && {
34767          test -z "$ac_c_werror_flag" ||
34768          test ! -s conftest.err
34769        } && test -s conftest.$ac_objext; then
34770   ac_hi=-1 ac_mid=-1
34771   while :; do
34772     cat >conftest.$ac_ext <<_ACEOF
34773 /* confdefs.h.  */
34774 _ACEOF
34775 cat confdefs.h >>conftest.$ac_ext
34776 cat >>conftest.$ac_ext <<_ACEOF
34777 /* end confdefs.h.  */
34778 $ac_includes_default
34779    typedef char ac__type_sizeof_;
34780 int
34781 main ()
34782 {
34783 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
34784 test_array [0] = 0
34785
34786   ;
34787   return 0;
34788 }
34789 _ACEOF
34790 rm -f conftest.$ac_objext
34791 if { (ac_try="$ac_compile"
34792 case "(($ac_try" in
34793   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34794   *) ac_try_echo=$ac_try;;
34795 esac
34796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34797   (eval "$ac_compile") 2>conftest.er1
34798   ac_status=$?
34799   grep -v '^ *+' conftest.er1 >conftest.err
34800   rm -f conftest.er1
34801   cat conftest.err >&5
34802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34803   (exit $ac_status); } && {
34804          test -z "$ac_c_werror_flag" ||
34805          test ! -s conftest.err
34806        } && test -s conftest.$ac_objext; then
34807   ac_lo=$ac_mid; break
34808 else
34809   echo "$as_me: failed program was:" >&5
34810 sed 's/^/| /' conftest.$ac_ext >&5
34811
34812         ac_hi=`expr '(' $ac_mid ')' - 1`
34813                         if test $ac_mid -le $ac_hi; then
34814                           ac_lo= ac_hi=
34815                           break
34816                         fi
34817                         ac_mid=`expr 2 '*' $ac_mid`
34818 fi
34819
34820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34821   done
34822 else
34823   echo "$as_me: failed program was:" >&5
34824 sed 's/^/| /' conftest.$ac_ext >&5
34825
34826         ac_lo= ac_hi=
34827 fi
34828
34829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34830 fi
34831
34832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34833 # Binary search between lo and hi bounds.
34834 while test "x$ac_lo" != "x$ac_hi"; do
34835   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
34836   cat >conftest.$ac_ext <<_ACEOF
34837 /* confdefs.h.  */
34838 _ACEOF
34839 cat confdefs.h >>conftest.$ac_ext
34840 cat >>conftest.$ac_ext <<_ACEOF
34841 /* end confdefs.h.  */
34842 $ac_includes_default
34843    typedef char ac__type_sizeof_;
34844 int
34845 main ()
34846 {
34847 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34848 test_array [0] = 0
34849
34850   ;
34851   return 0;
34852 }
34853 _ACEOF
34854 rm -f conftest.$ac_objext
34855 if { (ac_try="$ac_compile"
34856 case "(($ac_try" in
34857   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34858   *) ac_try_echo=$ac_try;;
34859 esac
34860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34861   (eval "$ac_compile") 2>conftest.er1
34862   ac_status=$?
34863   grep -v '^ *+' conftest.er1 >conftest.err
34864   rm -f conftest.er1
34865   cat conftest.err >&5
34866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34867   (exit $ac_status); } && {
34868          test -z "$ac_c_werror_flag" ||
34869          test ! -s conftest.err
34870        } && test -s conftest.$ac_objext; then
34871   ac_hi=$ac_mid
34872 else
34873   echo "$as_me: failed program was:" >&5
34874 sed 's/^/| /' conftest.$ac_ext >&5
34875
34876         ac_lo=`expr '(' $ac_mid ')' + 1`
34877 fi
34878
34879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34880 done
34881 case $ac_lo in
34882 ?*) ac_cv_sizeof_char=$ac_lo;;
34883 '') if test "$ac_cv_type_char" = yes; then
34884      { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
34885 See \`config.log' for more details." >&5
34886 echo "$as_me: error: cannot compute sizeof (char)
34887 See \`config.log' for more details." >&2;}
34888    { (exit 77); exit 77; }; }
34889    else
34890      ac_cv_sizeof_char=0
34891    fi ;;
34892 esac
34893 else
34894   cat >conftest.$ac_ext <<_ACEOF
34895 /* confdefs.h.  */
34896 _ACEOF
34897 cat confdefs.h >>conftest.$ac_ext
34898 cat >>conftest.$ac_ext <<_ACEOF
34899 /* end confdefs.h.  */
34900 $ac_includes_default
34901    typedef char ac__type_sizeof_;
34902 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
34903 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
34904 #include <stdio.h>
34905 #include <stdlib.h>
34906 int
34907 main ()
34908 {
34909
34910   FILE *f = fopen ("conftest.val", "w");
34911   if (! f)
34912     return 1;
34913   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
34914     {
34915       long int i = longval ();
34916       if (i != ((long int) (sizeof (ac__type_sizeof_))))
34917         return 1;
34918       fprintf (f, "%ld\n", i);
34919     }
34920   else
34921     {
34922       unsigned long int i = ulongval ();
34923       if (i != ((long int) (sizeof (ac__type_sizeof_))))
34924         return 1;
34925       fprintf (f, "%lu\n", i);
34926     }
34927   return ferror (f) || fclose (f) != 0;
34928
34929   ;
34930   return 0;
34931 }
34932 _ACEOF
34933 rm -f conftest$ac_exeext
34934 if { (ac_try="$ac_link"
34935 case "(($ac_try" in
34936   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34937   *) ac_try_echo=$ac_try;;
34938 esac
34939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34940   (eval "$ac_link") 2>&5
34941   ac_status=$?
34942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34943   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34944   { (case "(($ac_try" in
34945   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34946   *) ac_try_echo=$ac_try;;
34947 esac
34948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34949   (eval "$ac_try") 2>&5
34950   ac_status=$?
34951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34952   (exit $ac_status); }; }; then
34953   ac_cv_sizeof_char=`cat conftest.val`
34954 else
34955   echo "$as_me: program exited with status $ac_status" >&5
34956 echo "$as_me: failed program was:" >&5
34957 sed 's/^/| /' conftest.$ac_ext >&5
34958
34959 ( exit $ac_status )
34960 if test "$ac_cv_type_char" = yes; then
34961      { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
34962 See \`config.log' for more details." >&5
34963 echo "$as_me: error: cannot compute sizeof (char)
34964 See \`config.log' for more details." >&2;}
34965    { (exit 77); exit 77; }; }
34966    else
34967      ac_cv_sizeof_char=0
34968    fi
34969 fi
34970 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34971 fi
34972 rm -f conftest.val
34973 fi
34974 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
34975 echo "${ECHO_T}$ac_cv_sizeof_char" >&6; }
34976
34977
34978
34979 cat >>confdefs.h <<_ACEOF
34980 #define SIZEOF_CHAR $ac_cv_sizeof_char
34981 _ACEOF
34982
34983
34984 { echo "$as_me:$LINENO: checking for short int" >&5
34985 echo $ECHO_N "checking for short int... $ECHO_C" >&6; }
34986 if test "${ac_cv_type_short_int+set}" = set; then
34987   echo $ECHO_N "(cached) $ECHO_C" >&6
34988 else
34989   cat >conftest.$ac_ext <<_ACEOF
34990 /* confdefs.h.  */
34991 _ACEOF
34992 cat confdefs.h >>conftest.$ac_ext
34993 cat >>conftest.$ac_ext <<_ACEOF
34994 /* end confdefs.h.  */
34995 $ac_includes_default
34996 typedef short int ac__type_new_;
34997 int
34998 main ()
34999 {
35000 if ((ac__type_new_ *) 0)
35001   return 0;
35002 if (sizeof (ac__type_new_))
35003   return 0;
35004   ;
35005   return 0;
35006 }
35007 _ACEOF
35008 rm -f conftest.$ac_objext
35009 if { (ac_try="$ac_compile"
35010 case "(($ac_try" in
35011   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35012   *) ac_try_echo=$ac_try;;
35013 esac
35014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35015   (eval "$ac_compile") 2>conftest.er1
35016   ac_status=$?
35017   grep -v '^ *+' conftest.er1 >conftest.err
35018   rm -f conftest.er1
35019   cat conftest.err >&5
35020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35021   (exit $ac_status); } && {
35022          test -z "$ac_c_werror_flag" ||
35023          test ! -s conftest.err
35024        } && test -s conftest.$ac_objext; then
35025   ac_cv_type_short_int=yes
35026 else
35027   echo "$as_me: failed program was:" >&5
35028 sed 's/^/| /' conftest.$ac_ext >&5
35029
35030         ac_cv_type_short_int=no
35031 fi
35032
35033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35034 fi
35035 { echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
35036 echo "${ECHO_T}$ac_cv_type_short_int" >&6; }
35037
35038 # The cast to long int works around a bug in the HP C Compiler
35039 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
35040 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
35041 # This bug is HP SR number 8606223364.
35042 { echo "$as_me:$LINENO: checking size of short int" >&5
35043 echo $ECHO_N "checking size of short int... $ECHO_C" >&6; }
35044 if test "${ac_cv_sizeof_short_int+set}" = set; then
35045   echo $ECHO_N "(cached) $ECHO_C" >&6
35046 else
35047   if test "$cross_compiling" = yes; then
35048   # Depending upon the size, compute the lo and hi bounds.
35049 cat >conftest.$ac_ext <<_ACEOF
35050 /* confdefs.h.  */
35051 _ACEOF
35052 cat confdefs.h >>conftest.$ac_ext
35053 cat >>conftest.$ac_ext <<_ACEOF
35054 /* end confdefs.h.  */
35055 $ac_includes_default
35056    typedef short int ac__type_sizeof_;
35057 int
35058 main ()
35059 {
35060 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
35061 test_array [0] = 0
35062
35063   ;
35064   return 0;
35065 }
35066 _ACEOF
35067 rm -f conftest.$ac_objext
35068 if { (ac_try="$ac_compile"
35069 case "(($ac_try" in
35070   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35071   *) ac_try_echo=$ac_try;;
35072 esac
35073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35074   (eval "$ac_compile") 2>conftest.er1
35075   ac_status=$?
35076   grep -v '^ *+' conftest.er1 >conftest.err
35077   rm -f conftest.er1
35078   cat conftest.err >&5
35079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35080   (exit $ac_status); } && {
35081          test -z "$ac_c_werror_flag" ||
35082          test ! -s conftest.err
35083        } && test -s conftest.$ac_objext; then
35084   ac_lo=0 ac_mid=0
35085   while :; do
35086     cat >conftest.$ac_ext <<_ACEOF
35087 /* confdefs.h.  */
35088 _ACEOF
35089 cat confdefs.h >>conftest.$ac_ext
35090 cat >>conftest.$ac_ext <<_ACEOF
35091 /* end confdefs.h.  */
35092 $ac_includes_default
35093    typedef short int ac__type_sizeof_;
35094 int
35095 main ()
35096 {
35097 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35098 test_array [0] = 0
35099
35100   ;
35101   return 0;
35102 }
35103 _ACEOF
35104 rm -f conftest.$ac_objext
35105 if { (ac_try="$ac_compile"
35106 case "(($ac_try" in
35107   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35108   *) ac_try_echo=$ac_try;;
35109 esac
35110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35111   (eval "$ac_compile") 2>conftest.er1
35112   ac_status=$?
35113   grep -v '^ *+' conftest.er1 >conftest.err
35114   rm -f conftest.er1
35115   cat conftest.err >&5
35116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35117   (exit $ac_status); } && {
35118          test -z "$ac_c_werror_flag" ||
35119          test ! -s conftest.err
35120        } && test -s conftest.$ac_objext; then
35121   ac_hi=$ac_mid; break
35122 else
35123   echo "$as_me: failed program was:" >&5
35124 sed 's/^/| /' conftest.$ac_ext >&5
35125
35126         ac_lo=`expr $ac_mid + 1`
35127                         if test $ac_lo -le $ac_mid; then
35128                           ac_lo= ac_hi=
35129                           break
35130                         fi
35131                         ac_mid=`expr 2 '*' $ac_mid + 1`
35132 fi
35133
35134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35135   done
35136 else
35137   echo "$as_me: failed program was:" >&5
35138 sed 's/^/| /' conftest.$ac_ext >&5
35139
35140         cat >conftest.$ac_ext <<_ACEOF
35141 /* confdefs.h.  */
35142 _ACEOF
35143 cat confdefs.h >>conftest.$ac_ext
35144 cat >>conftest.$ac_ext <<_ACEOF
35145 /* end confdefs.h.  */
35146 $ac_includes_default
35147    typedef short int ac__type_sizeof_;
35148 int
35149 main ()
35150 {
35151 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
35152 test_array [0] = 0
35153
35154   ;
35155   return 0;
35156 }
35157 _ACEOF
35158 rm -f conftest.$ac_objext
35159 if { (ac_try="$ac_compile"
35160 case "(($ac_try" in
35161   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35162   *) ac_try_echo=$ac_try;;
35163 esac
35164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35165   (eval "$ac_compile") 2>conftest.er1
35166   ac_status=$?
35167   grep -v '^ *+' conftest.er1 >conftest.err
35168   rm -f conftest.er1
35169   cat conftest.err >&5
35170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35171   (exit $ac_status); } && {
35172          test -z "$ac_c_werror_flag" ||
35173          test ! -s conftest.err
35174        } && test -s conftest.$ac_objext; then
35175   ac_hi=-1 ac_mid=-1
35176   while :; do
35177     cat >conftest.$ac_ext <<_ACEOF
35178 /* confdefs.h.  */
35179 _ACEOF
35180 cat confdefs.h >>conftest.$ac_ext
35181 cat >>conftest.$ac_ext <<_ACEOF
35182 /* end confdefs.h.  */
35183 $ac_includes_default
35184    typedef short int ac__type_sizeof_;
35185 int
35186 main ()
35187 {
35188 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
35189 test_array [0] = 0
35190
35191   ;
35192   return 0;
35193 }
35194 _ACEOF
35195 rm -f conftest.$ac_objext
35196 if { (ac_try="$ac_compile"
35197 case "(($ac_try" in
35198   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35199   *) ac_try_echo=$ac_try;;
35200 esac
35201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35202   (eval "$ac_compile") 2>conftest.er1
35203   ac_status=$?
35204   grep -v '^ *+' conftest.er1 >conftest.err
35205   rm -f conftest.er1
35206   cat conftest.err >&5
35207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35208   (exit $ac_status); } && {
35209          test -z "$ac_c_werror_flag" ||
35210          test ! -s conftest.err
35211        } && test -s conftest.$ac_objext; then
35212   ac_lo=$ac_mid; break
35213 else
35214   echo "$as_me: failed program was:" >&5
35215 sed 's/^/| /' conftest.$ac_ext >&5
35216
35217         ac_hi=`expr '(' $ac_mid ')' - 1`
35218                         if test $ac_mid -le $ac_hi; then
35219                           ac_lo= ac_hi=
35220                           break
35221                         fi
35222                         ac_mid=`expr 2 '*' $ac_mid`
35223 fi
35224
35225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35226   done
35227 else
35228   echo "$as_me: failed program was:" >&5
35229 sed 's/^/| /' conftest.$ac_ext >&5
35230
35231         ac_lo= ac_hi=
35232 fi
35233
35234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35235 fi
35236
35237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35238 # Binary search between lo and hi bounds.
35239 while test "x$ac_lo" != "x$ac_hi"; do
35240   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
35241   cat >conftest.$ac_ext <<_ACEOF
35242 /* confdefs.h.  */
35243 _ACEOF
35244 cat confdefs.h >>conftest.$ac_ext
35245 cat >>conftest.$ac_ext <<_ACEOF
35246 /* end confdefs.h.  */
35247 $ac_includes_default
35248    typedef short int ac__type_sizeof_;
35249 int
35250 main ()
35251 {
35252 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35253 test_array [0] = 0
35254
35255   ;
35256   return 0;
35257 }
35258 _ACEOF
35259 rm -f conftest.$ac_objext
35260 if { (ac_try="$ac_compile"
35261 case "(($ac_try" in
35262   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35263   *) ac_try_echo=$ac_try;;
35264 esac
35265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35266   (eval "$ac_compile") 2>conftest.er1
35267   ac_status=$?
35268   grep -v '^ *+' conftest.er1 >conftest.err
35269   rm -f conftest.er1
35270   cat conftest.err >&5
35271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35272   (exit $ac_status); } && {
35273          test -z "$ac_c_werror_flag" ||
35274          test ! -s conftest.err
35275        } && test -s conftest.$ac_objext; then
35276   ac_hi=$ac_mid
35277 else
35278   echo "$as_me: failed program was:" >&5
35279 sed 's/^/| /' conftest.$ac_ext >&5
35280
35281         ac_lo=`expr '(' $ac_mid ')' + 1`
35282 fi
35283
35284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35285 done
35286 case $ac_lo in
35287 ?*) ac_cv_sizeof_short_int=$ac_lo;;
35288 '') if test "$ac_cv_type_short_int" = yes; then
35289      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
35290 See \`config.log' for more details." >&5
35291 echo "$as_me: error: cannot compute sizeof (short int)
35292 See \`config.log' for more details." >&2;}
35293    { (exit 77); exit 77; }; }
35294    else
35295      ac_cv_sizeof_short_int=0
35296    fi ;;
35297 esac
35298 else
35299   cat >conftest.$ac_ext <<_ACEOF
35300 /* confdefs.h.  */
35301 _ACEOF
35302 cat confdefs.h >>conftest.$ac_ext
35303 cat >>conftest.$ac_ext <<_ACEOF
35304 /* end confdefs.h.  */
35305 $ac_includes_default
35306    typedef short int ac__type_sizeof_;
35307 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
35308 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
35309 #include <stdio.h>
35310 #include <stdlib.h>
35311 int
35312 main ()
35313 {
35314
35315   FILE *f = fopen ("conftest.val", "w");
35316   if (! f)
35317     return 1;
35318   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
35319     {
35320       long int i = longval ();
35321       if (i != ((long int) (sizeof (ac__type_sizeof_))))
35322         return 1;
35323       fprintf (f, "%ld\n", i);
35324     }
35325   else
35326     {
35327       unsigned long int i = ulongval ();
35328       if (i != ((long int) (sizeof (ac__type_sizeof_))))
35329         return 1;
35330       fprintf (f, "%lu\n", i);
35331     }
35332   return ferror (f) || fclose (f) != 0;
35333
35334   ;
35335   return 0;
35336 }
35337 _ACEOF
35338 rm -f conftest$ac_exeext
35339 if { (ac_try="$ac_link"
35340 case "(($ac_try" in
35341   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35342   *) ac_try_echo=$ac_try;;
35343 esac
35344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35345   (eval "$ac_link") 2>&5
35346   ac_status=$?
35347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35348   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35349   { (case "(($ac_try" in
35350   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35351   *) ac_try_echo=$ac_try;;
35352 esac
35353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35354   (eval "$ac_try") 2>&5
35355   ac_status=$?
35356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35357   (exit $ac_status); }; }; then
35358   ac_cv_sizeof_short_int=`cat conftest.val`
35359 else
35360   echo "$as_me: program exited with status $ac_status" >&5
35361 echo "$as_me: failed program was:" >&5
35362 sed 's/^/| /' conftest.$ac_ext >&5
35363
35364 ( exit $ac_status )
35365 if test "$ac_cv_type_short_int" = yes; then
35366      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
35367 See \`config.log' for more details." >&5
35368 echo "$as_me: error: cannot compute sizeof (short int)
35369 See \`config.log' for more details." >&2;}
35370    { (exit 77); exit 77; }; }
35371    else
35372      ac_cv_sizeof_short_int=0
35373    fi
35374 fi
35375 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35376 fi
35377 rm -f conftest.val
35378 fi
35379 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
35380 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6; }
35381
35382
35383
35384 cat >>confdefs.h <<_ACEOF
35385 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
35386 _ACEOF
35387
35388
35389 { echo "$as_me:$LINENO: checking for int" >&5
35390 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
35391 if test "${ac_cv_type_int+set}" = set; then
35392   echo $ECHO_N "(cached) $ECHO_C" >&6
35393 else
35394   cat >conftest.$ac_ext <<_ACEOF
35395 /* confdefs.h.  */
35396 _ACEOF
35397 cat confdefs.h >>conftest.$ac_ext
35398 cat >>conftest.$ac_ext <<_ACEOF
35399 /* end confdefs.h.  */
35400 $ac_includes_default
35401 typedef int ac__type_new_;
35402 int
35403 main ()
35404 {
35405 if ((ac__type_new_ *) 0)
35406   return 0;
35407 if (sizeof (ac__type_new_))
35408   return 0;
35409   ;
35410   return 0;
35411 }
35412 _ACEOF
35413 rm -f conftest.$ac_objext
35414 if { (ac_try="$ac_compile"
35415 case "(($ac_try" in
35416   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35417   *) ac_try_echo=$ac_try;;
35418 esac
35419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35420   (eval "$ac_compile") 2>conftest.er1
35421   ac_status=$?
35422   grep -v '^ *+' conftest.er1 >conftest.err
35423   rm -f conftest.er1
35424   cat conftest.err >&5
35425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35426   (exit $ac_status); } && {
35427          test -z "$ac_c_werror_flag" ||
35428          test ! -s conftest.err
35429        } && test -s conftest.$ac_objext; then
35430   ac_cv_type_int=yes
35431 else
35432   echo "$as_me: failed program was:" >&5
35433 sed 's/^/| /' conftest.$ac_ext >&5
35434
35435         ac_cv_type_int=no
35436 fi
35437
35438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35439 fi
35440 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
35441 echo "${ECHO_T}$ac_cv_type_int" >&6; }
35442
35443 # The cast to long int works around a bug in the HP C Compiler
35444 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
35445 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
35446 # This bug is HP SR number 8606223364.
35447 { echo "$as_me:$LINENO: checking size of int" >&5
35448 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
35449 if test "${ac_cv_sizeof_int+set}" = set; then
35450   echo $ECHO_N "(cached) $ECHO_C" >&6
35451 else
35452   if test "$cross_compiling" = yes; then
35453   # Depending upon the size, compute the lo and hi bounds.
35454 cat >conftest.$ac_ext <<_ACEOF
35455 /* confdefs.h.  */
35456 _ACEOF
35457 cat confdefs.h >>conftest.$ac_ext
35458 cat >>conftest.$ac_ext <<_ACEOF
35459 /* end confdefs.h.  */
35460 $ac_includes_default
35461    typedef int ac__type_sizeof_;
35462 int
35463 main ()
35464 {
35465 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
35466 test_array [0] = 0
35467
35468   ;
35469   return 0;
35470 }
35471 _ACEOF
35472 rm -f conftest.$ac_objext
35473 if { (ac_try="$ac_compile"
35474 case "(($ac_try" in
35475   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35476   *) ac_try_echo=$ac_try;;
35477 esac
35478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35479   (eval "$ac_compile") 2>conftest.er1
35480   ac_status=$?
35481   grep -v '^ *+' conftest.er1 >conftest.err
35482   rm -f conftest.er1
35483   cat conftest.err >&5
35484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35485   (exit $ac_status); } && {
35486          test -z "$ac_c_werror_flag" ||
35487          test ! -s conftest.err
35488        } && test -s conftest.$ac_objext; then
35489   ac_lo=0 ac_mid=0
35490   while :; do
35491     cat >conftest.$ac_ext <<_ACEOF
35492 /* confdefs.h.  */
35493 _ACEOF
35494 cat confdefs.h >>conftest.$ac_ext
35495 cat >>conftest.$ac_ext <<_ACEOF
35496 /* end confdefs.h.  */
35497 $ac_includes_default
35498    typedef int ac__type_sizeof_;
35499 int
35500 main ()
35501 {
35502 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35503 test_array [0] = 0
35504
35505   ;
35506   return 0;
35507 }
35508 _ACEOF
35509 rm -f conftest.$ac_objext
35510 if { (ac_try="$ac_compile"
35511 case "(($ac_try" in
35512   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35513   *) ac_try_echo=$ac_try;;
35514 esac
35515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35516   (eval "$ac_compile") 2>conftest.er1
35517   ac_status=$?
35518   grep -v '^ *+' conftest.er1 >conftest.err
35519   rm -f conftest.er1
35520   cat conftest.err >&5
35521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35522   (exit $ac_status); } && {
35523          test -z "$ac_c_werror_flag" ||
35524          test ! -s conftest.err
35525        } && test -s conftest.$ac_objext; then
35526   ac_hi=$ac_mid; break
35527 else
35528   echo "$as_me: failed program was:" >&5
35529 sed 's/^/| /' conftest.$ac_ext >&5
35530
35531         ac_lo=`expr $ac_mid + 1`
35532                         if test $ac_lo -le $ac_mid; then
35533                           ac_lo= ac_hi=
35534                           break
35535                         fi
35536                         ac_mid=`expr 2 '*' $ac_mid + 1`
35537 fi
35538
35539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35540   done
35541 else
35542   echo "$as_me: failed program was:" >&5
35543 sed 's/^/| /' conftest.$ac_ext >&5
35544
35545         cat >conftest.$ac_ext <<_ACEOF
35546 /* confdefs.h.  */
35547 _ACEOF
35548 cat confdefs.h >>conftest.$ac_ext
35549 cat >>conftest.$ac_ext <<_ACEOF
35550 /* end confdefs.h.  */
35551 $ac_includes_default
35552    typedef int ac__type_sizeof_;
35553 int
35554 main ()
35555 {
35556 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
35557 test_array [0] = 0
35558
35559   ;
35560   return 0;
35561 }
35562 _ACEOF
35563 rm -f conftest.$ac_objext
35564 if { (ac_try="$ac_compile"
35565 case "(($ac_try" in
35566   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35567   *) ac_try_echo=$ac_try;;
35568 esac
35569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35570   (eval "$ac_compile") 2>conftest.er1
35571   ac_status=$?
35572   grep -v '^ *+' conftest.er1 >conftest.err
35573   rm -f conftest.er1
35574   cat conftest.err >&5
35575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35576   (exit $ac_status); } && {
35577          test -z "$ac_c_werror_flag" ||
35578          test ! -s conftest.err
35579        } && test -s conftest.$ac_objext; then
35580   ac_hi=-1 ac_mid=-1
35581   while :; do
35582     cat >conftest.$ac_ext <<_ACEOF
35583 /* confdefs.h.  */
35584 _ACEOF
35585 cat confdefs.h >>conftest.$ac_ext
35586 cat >>conftest.$ac_ext <<_ACEOF
35587 /* end confdefs.h.  */
35588 $ac_includes_default
35589    typedef int ac__type_sizeof_;
35590 int
35591 main ()
35592 {
35593 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
35594 test_array [0] = 0
35595
35596   ;
35597   return 0;
35598 }
35599 _ACEOF
35600 rm -f conftest.$ac_objext
35601 if { (ac_try="$ac_compile"
35602 case "(($ac_try" in
35603   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35604   *) ac_try_echo=$ac_try;;
35605 esac
35606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35607   (eval "$ac_compile") 2>conftest.er1
35608   ac_status=$?
35609   grep -v '^ *+' conftest.er1 >conftest.err
35610   rm -f conftest.er1
35611   cat conftest.err >&5
35612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35613   (exit $ac_status); } && {
35614          test -z "$ac_c_werror_flag" ||
35615          test ! -s conftest.err
35616        } && test -s conftest.$ac_objext; then
35617   ac_lo=$ac_mid; break
35618 else
35619   echo "$as_me: failed program was:" >&5
35620 sed 's/^/| /' conftest.$ac_ext >&5
35621
35622         ac_hi=`expr '(' $ac_mid ')' - 1`
35623                         if test $ac_mid -le $ac_hi; then
35624                           ac_lo= ac_hi=
35625                           break
35626                         fi
35627                         ac_mid=`expr 2 '*' $ac_mid`
35628 fi
35629
35630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35631   done
35632 else
35633   echo "$as_me: failed program was:" >&5
35634 sed 's/^/| /' conftest.$ac_ext >&5
35635
35636         ac_lo= ac_hi=
35637 fi
35638
35639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35640 fi
35641
35642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35643 # Binary search between lo and hi bounds.
35644 while test "x$ac_lo" != "x$ac_hi"; do
35645   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
35646   cat >conftest.$ac_ext <<_ACEOF
35647 /* confdefs.h.  */
35648 _ACEOF
35649 cat confdefs.h >>conftest.$ac_ext
35650 cat >>conftest.$ac_ext <<_ACEOF
35651 /* end confdefs.h.  */
35652 $ac_includes_default
35653    typedef int ac__type_sizeof_;
35654 int
35655 main ()
35656 {
35657 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35658 test_array [0] = 0
35659
35660   ;
35661   return 0;
35662 }
35663 _ACEOF
35664 rm -f conftest.$ac_objext
35665 if { (ac_try="$ac_compile"
35666 case "(($ac_try" in
35667   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35668   *) ac_try_echo=$ac_try;;
35669 esac
35670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35671   (eval "$ac_compile") 2>conftest.er1
35672   ac_status=$?
35673   grep -v '^ *+' conftest.er1 >conftest.err
35674   rm -f conftest.er1
35675   cat conftest.err >&5
35676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35677   (exit $ac_status); } && {
35678          test -z "$ac_c_werror_flag" ||
35679          test ! -s conftest.err
35680        } && test -s conftest.$ac_objext; then
35681   ac_hi=$ac_mid
35682 else
35683   echo "$as_me: failed program was:" >&5
35684 sed 's/^/| /' conftest.$ac_ext >&5
35685
35686         ac_lo=`expr '(' $ac_mid ')' + 1`
35687 fi
35688
35689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35690 done
35691 case $ac_lo in
35692 ?*) ac_cv_sizeof_int=$ac_lo;;
35693 '') if test "$ac_cv_type_int" = yes; then
35694      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
35695 See \`config.log' for more details." >&5
35696 echo "$as_me: error: cannot compute sizeof (int)
35697 See \`config.log' for more details." >&2;}
35698    { (exit 77); exit 77; }; }
35699    else
35700      ac_cv_sizeof_int=0
35701    fi ;;
35702 esac
35703 else
35704   cat >conftest.$ac_ext <<_ACEOF
35705 /* confdefs.h.  */
35706 _ACEOF
35707 cat confdefs.h >>conftest.$ac_ext
35708 cat >>conftest.$ac_ext <<_ACEOF
35709 /* end confdefs.h.  */
35710 $ac_includes_default
35711    typedef int ac__type_sizeof_;
35712 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
35713 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
35714 #include <stdio.h>
35715 #include <stdlib.h>
35716 int
35717 main ()
35718 {
35719
35720   FILE *f = fopen ("conftest.val", "w");
35721   if (! f)
35722     return 1;
35723   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
35724     {
35725       long int i = longval ();
35726       if (i != ((long int) (sizeof (ac__type_sizeof_))))
35727         return 1;
35728       fprintf (f, "%ld\n", i);
35729     }
35730   else
35731     {
35732       unsigned long int i = ulongval ();
35733       if (i != ((long int) (sizeof (ac__type_sizeof_))))
35734         return 1;
35735       fprintf (f, "%lu\n", i);
35736     }
35737   return ferror (f) || fclose (f) != 0;
35738
35739   ;
35740   return 0;
35741 }
35742 _ACEOF
35743 rm -f conftest$ac_exeext
35744 if { (ac_try="$ac_link"
35745 case "(($ac_try" in
35746   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35747   *) ac_try_echo=$ac_try;;
35748 esac
35749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35750   (eval "$ac_link") 2>&5
35751   ac_status=$?
35752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35753   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35754   { (case "(($ac_try" in
35755   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35756   *) ac_try_echo=$ac_try;;
35757 esac
35758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35759   (eval "$ac_try") 2>&5
35760   ac_status=$?
35761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35762   (exit $ac_status); }; }; then
35763   ac_cv_sizeof_int=`cat conftest.val`
35764 else
35765   echo "$as_me: program exited with status $ac_status" >&5
35766 echo "$as_me: failed program was:" >&5
35767 sed 's/^/| /' conftest.$ac_ext >&5
35768
35769 ( exit $ac_status )
35770 if test "$ac_cv_type_int" = yes; then
35771      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
35772 See \`config.log' for more details." >&5
35773 echo "$as_me: error: cannot compute sizeof (int)
35774 See \`config.log' for more details." >&2;}
35775    { (exit 77); exit 77; }; }
35776    else
35777      ac_cv_sizeof_int=0
35778    fi
35779 fi
35780 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35781 fi
35782 rm -f conftest.val
35783 fi
35784 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
35785 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
35786
35787
35788
35789 cat >>confdefs.h <<_ACEOF
35790 #define SIZEOF_INT $ac_cv_sizeof_int
35791 _ACEOF
35792
35793
35794 { echo "$as_me:$LINENO: checking for long int" >&5
35795 echo $ECHO_N "checking for long int... $ECHO_C" >&6; }
35796 if test "${ac_cv_type_long_int+set}" = set; then
35797   echo $ECHO_N "(cached) $ECHO_C" >&6
35798 else
35799   cat >conftest.$ac_ext <<_ACEOF
35800 /* confdefs.h.  */
35801 _ACEOF
35802 cat confdefs.h >>conftest.$ac_ext
35803 cat >>conftest.$ac_ext <<_ACEOF
35804 /* end confdefs.h.  */
35805 $ac_includes_default
35806 typedef long int ac__type_new_;
35807 int
35808 main ()
35809 {
35810 if ((ac__type_new_ *) 0)
35811   return 0;
35812 if (sizeof (ac__type_new_))
35813   return 0;
35814   ;
35815   return 0;
35816 }
35817 _ACEOF
35818 rm -f conftest.$ac_objext
35819 if { (ac_try="$ac_compile"
35820 case "(($ac_try" in
35821   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35822   *) ac_try_echo=$ac_try;;
35823 esac
35824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35825   (eval "$ac_compile") 2>conftest.er1
35826   ac_status=$?
35827   grep -v '^ *+' conftest.er1 >conftest.err
35828   rm -f conftest.er1
35829   cat conftest.err >&5
35830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35831   (exit $ac_status); } && {
35832          test -z "$ac_c_werror_flag" ||
35833          test ! -s conftest.err
35834        } && test -s conftest.$ac_objext; then
35835   ac_cv_type_long_int=yes
35836 else
35837   echo "$as_me: failed program was:" >&5
35838 sed 's/^/| /' conftest.$ac_ext >&5
35839
35840         ac_cv_type_long_int=no
35841 fi
35842
35843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35844 fi
35845 { echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
35846 echo "${ECHO_T}$ac_cv_type_long_int" >&6; }
35847
35848 # The cast to long int works around a bug in the HP C Compiler
35849 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
35850 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
35851 # This bug is HP SR number 8606223364.
35852 { echo "$as_me:$LINENO: checking size of long int" >&5
35853 echo $ECHO_N "checking size of long int... $ECHO_C" >&6; }
35854 if test "${ac_cv_sizeof_long_int+set}" = set; then
35855   echo $ECHO_N "(cached) $ECHO_C" >&6
35856 else
35857   if test "$cross_compiling" = yes; then
35858   # Depending upon the size, compute the lo and hi bounds.
35859 cat >conftest.$ac_ext <<_ACEOF
35860 /* confdefs.h.  */
35861 _ACEOF
35862 cat confdefs.h >>conftest.$ac_ext
35863 cat >>conftest.$ac_ext <<_ACEOF
35864 /* end confdefs.h.  */
35865 $ac_includes_default
35866    typedef long int ac__type_sizeof_;
35867 int
35868 main ()
35869 {
35870 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
35871 test_array [0] = 0
35872
35873   ;
35874   return 0;
35875 }
35876 _ACEOF
35877 rm -f conftest.$ac_objext
35878 if { (ac_try="$ac_compile"
35879 case "(($ac_try" in
35880   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35881   *) ac_try_echo=$ac_try;;
35882 esac
35883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35884   (eval "$ac_compile") 2>conftest.er1
35885   ac_status=$?
35886   grep -v '^ *+' conftest.er1 >conftest.err
35887   rm -f conftest.er1
35888   cat conftest.err >&5
35889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35890   (exit $ac_status); } && {
35891          test -z "$ac_c_werror_flag" ||
35892          test ! -s conftest.err
35893        } && test -s conftest.$ac_objext; then
35894   ac_lo=0 ac_mid=0
35895   while :; do
35896     cat >conftest.$ac_ext <<_ACEOF
35897 /* confdefs.h.  */
35898 _ACEOF
35899 cat confdefs.h >>conftest.$ac_ext
35900 cat >>conftest.$ac_ext <<_ACEOF
35901 /* end confdefs.h.  */
35902 $ac_includes_default
35903    typedef long int ac__type_sizeof_;
35904 int
35905 main ()
35906 {
35907 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35908 test_array [0] = 0
35909
35910   ;
35911   return 0;
35912 }
35913 _ACEOF
35914 rm -f conftest.$ac_objext
35915 if { (ac_try="$ac_compile"
35916 case "(($ac_try" in
35917   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35918   *) ac_try_echo=$ac_try;;
35919 esac
35920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35921   (eval "$ac_compile") 2>conftest.er1
35922   ac_status=$?
35923   grep -v '^ *+' conftest.er1 >conftest.err
35924   rm -f conftest.er1
35925   cat conftest.err >&5
35926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35927   (exit $ac_status); } && {
35928          test -z "$ac_c_werror_flag" ||
35929          test ! -s conftest.err
35930        } && test -s conftest.$ac_objext; then
35931   ac_hi=$ac_mid; break
35932 else
35933   echo "$as_me: failed program was:" >&5
35934 sed 's/^/| /' conftest.$ac_ext >&5
35935
35936         ac_lo=`expr $ac_mid + 1`
35937                         if test $ac_lo -le $ac_mid; then
35938                           ac_lo= ac_hi=
35939                           break
35940                         fi
35941                         ac_mid=`expr 2 '*' $ac_mid + 1`
35942 fi
35943
35944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35945   done
35946 else
35947   echo "$as_me: failed program was:" >&5
35948 sed 's/^/| /' conftest.$ac_ext >&5
35949
35950         cat >conftest.$ac_ext <<_ACEOF
35951 /* confdefs.h.  */
35952 _ACEOF
35953 cat confdefs.h >>conftest.$ac_ext
35954 cat >>conftest.$ac_ext <<_ACEOF
35955 /* end confdefs.h.  */
35956 $ac_includes_default
35957    typedef long int ac__type_sizeof_;
35958 int
35959 main ()
35960 {
35961 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
35962 test_array [0] = 0
35963
35964   ;
35965   return 0;
35966 }
35967 _ACEOF
35968 rm -f conftest.$ac_objext
35969 if { (ac_try="$ac_compile"
35970 case "(($ac_try" in
35971   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35972   *) ac_try_echo=$ac_try;;
35973 esac
35974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35975   (eval "$ac_compile") 2>conftest.er1
35976   ac_status=$?
35977   grep -v '^ *+' conftest.er1 >conftest.err
35978   rm -f conftest.er1
35979   cat conftest.err >&5
35980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35981   (exit $ac_status); } && {
35982          test -z "$ac_c_werror_flag" ||
35983          test ! -s conftest.err
35984        } && test -s conftest.$ac_objext; then
35985   ac_hi=-1 ac_mid=-1
35986   while :; do
35987     cat >conftest.$ac_ext <<_ACEOF
35988 /* confdefs.h.  */
35989 _ACEOF
35990 cat confdefs.h >>conftest.$ac_ext
35991 cat >>conftest.$ac_ext <<_ACEOF
35992 /* end confdefs.h.  */
35993 $ac_includes_default
35994    typedef long int ac__type_sizeof_;
35995 int
35996 main ()
35997 {
35998 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
35999 test_array [0] = 0
36000
36001   ;
36002   return 0;
36003 }
36004 _ACEOF
36005 rm -f conftest.$ac_objext
36006 if { (ac_try="$ac_compile"
36007 case "(($ac_try" in
36008   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36009   *) ac_try_echo=$ac_try;;
36010 esac
36011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36012   (eval "$ac_compile") 2>conftest.er1
36013   ac_status=$?
36014   grep -v '^ *+' conftest.er1 >conftest.err
36015   rm -f conftest.er1
36016   cat conftest.err >&5
36017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36018   (exit $ac_status); } && {
36019          test -z "$ac_c_werror_flag" ||
36020          test ! -s conftest.err
36021        } && test -s conftest.$ac_objext; then
36022   ac_lo=$ac_mid; break
36023 else
36024   echo "$as_me: failed program was:" >&5
36025 sed 's/^/| /' conftest.$ac_ext >&5
36026
36027         ac_hi=`expr '(' $ac_mid ')' - 1`
36028                         if test $ac_mid -le $ac_hi; then
36029                           ac_lo= ac_hi=
36030                           break
36031                         fi
36032                         ac_mid=`expr 2 '*' $ac_mid`
36033 fi
36034
36035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36036   done
36037 else
36038   echo "$as_me: failed program was:" >&5
36039 sed 's/^/| /' conftest.$ac_ext >&5
36040
36041         ac_lo= ac_hi=
36042 fi
36043
36044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36045 fi
36046
36047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36048 # Binary search between lo and hi bounds.
36049 while test "x$ac_lo" != "x$ac_hi"; do
36050   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
36051   cat >conftest.$ac_ext <<_ACEOF
36052 /* confdefs.h.  */
36053 _ACEOF
36054 cat confdefs.h >>conftest.$ac_ext
36055 cat >>conftest.$ac_ext <<_ACEOF
36056 /* end confdefs.h.  */
36057 $ac_includes_default
36058    typedef long int ac__type_sizeof_;
36059 int
36060 main ()
36061 {
36062 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36063 test_array [0] = 0
36064
36065   ;
36066   return 0;
36067 }
36068 _ACEOF
36069 rm -f conftest.$ac_objext
36070 if { (ac_try="$ac_compile"
36071 case "(($ac_try" in
36072   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36073   *) ac_try_echo=$ac_try;;
36074 esac
36075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36076   (eval "$ac_compile") 2>conftest.er1
36077   ac_status=$?
36078   grep -v '^ *+' conftest.er1 >conftest.err
36079   rm -f conftest.er1
36080   cat conftest.err >&5
36081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36082   (exit $ac_status); } && {
36083          test -z "$ac_c_werror_flag" ||
36084          test ! -s conftest.err
36085        } && test -s conftest.$ac_objext; then
36086   ac_hi=$ac_mid
36087 else
36088   echo "$as_me: failed program was:" >&5
36089 sed 's/^/| /' conftest.$ac_ext >&5
36090
36091         ac_lo=`expr '(' $ac_mid ')' + 1`
36092 fi
36093
36094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36095 done
36096 case $ac_lo in
36097 ?*) ac_cv_sizeof_long_int=$ac_lo;;
36098 '') if test "$ac_cv_type_long_int" = yes; then
36099      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
36100 See \`config.log' for more details." >&5
36101 echo "$as_me: error: cannot compute sizeof (long int)
36102 See \`config.log' for more details." >&2;}
36103    { (exit 77); exit 77; }; }
36104    else
36105      ac_cv_sizeof_long_int=0
36106    fi ;;
36107 esac
36108 else
36109   cat >conftest.$ac_ext <<_ACEOF
36110 /* confdefs.h.  */
36111 _ACEOF
36112 cat confdefs.h >>conftest.$ac_ext
36113 cat >>conftest.$ac_ext <<_ACEOF
36114 /* end confdefs.h.  */
36115 $ac_includes_default
36116    typedef long int ac__type_sizeof_;
36117 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
36118 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
36119 #include <stdio.h>
36120 #include <stdlib.h>
36121 int
36122 main ()
36123 {
36124
36125   FILE *f = fopen ("conftest.val", "w");
36126   if (! f)
36127     return 1;
36128   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
36129     {
36130       long int i = longval ();
36131       if (i != ((long int) (sizeof (ac__type_sizeof_))))
36132         return 1;
36133       fprintf (f, "%ld\n", i);
36134     }
36135   else
36136     {
36137       unsigned long int i = ulongval ();
36138       if (i != ((long int) (sizeof (ac__type_sizeof_))))
36139         return 1;
36140       fprintf (f, "%lu\n", i);
36141     }
36142   return ferror (f) || fclose (f) != 0;
36143
36144   ;
36145   return 0;
36146 }
36147 _ACEOF
36148 rm -f conftest$ac_exeext
36149 if { (ac_try="$ac_link"
36150 case "(($ac_try" in
36151   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36152   *) ac_try_echo=$ac_try;;
36153 esac
36154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36155   (eval "$ac_link") 2>&5
36156   ac_status=$?
36157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36158   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36159   { (case "(($ac_try" in
36160   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36161   *) ac_try_echo=$ac_try;;
36162 esac
36163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36164   (eval "$ac_try") 2>&5
36165   ac_status=$?
36166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36167   (exit $ac_status); }; }; then
36168   ac_cv_sizeof_long_int=`cat conftest.val`
36169 else
36170   echo "$as_me: program exited with status $ac_status" >&5
36171 echo "$as_me: failed program was:" >&5
36172 sed 's/^/| /' conftest.$ac_ext >&5
36173
36174 ( exit $ac_status )
36175 if test "$ac_cv_type_long_int" = yes; then
36176      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
36177 See \`config.log' for more details." >&5
36178 echo "$as_me: error: cannot compute sizeof (long int)
36179 See \`config.log' for more details." >&2;}
36180    { (exit 77); exit 77; }; }
36181    else
36182      ac_cv_sizeof_long_int=0
36183    fi
36184 fi
36185 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36186 fi
36187 rm -f conftest.val
36188 fi
36189 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
36190 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6; }
36191
36192
36193
36194 cat >>confdefs.h <<_ACEOF
36195 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
36196 _ACEOF
36197
36198
36199 { echo "$as_me:$LINENO: checking for long long int" >&5
36200 echo $ECHO_N "checking for long long int... $ECHO_C" >&6; }
36201 if test "${ac_cv_type_long_long_int+set}" = set; then
36202   echo $ECHO_N "(cached) $ECHO_C" >&6
36203 else
36204   cat >conftest.$ac_ext <<_ACEOF
36205 /* confdefs.h.  */
36206 _ACEOF
36207 cat confdefs.h >>conftest.$ac_ext
36208 cat >>conftest.$ac_ext <<_ACEOF
36209 /* end confdefs.h.  */
36210 $ac_includes_default
36211 typedef long long int ac__type_new_;
36212 int
36213 main ()
36214 {
36215 if ((ac__type_new_ *) 0)
36216   return 0;
36217 if (sizeof (ac__type_new_))
36218   return 0;
36219   ;
36220   return 0;
36221 }
36222 _ACEOF
36223 rm -f conftest.$ac_objext
36224 if { (ac_try="$ac_compile"
36225 case "(($ac_try" in
36226   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36227   *) ac_try_echo=$ac_try;;
36228 esac
36229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36230   (eval "$ac_compile") 2>conftest.er1
36231   ac_status=$?
36232   grep -v '^ *+' conftest.er1 >conftest.err
36233   rm -f conftest.er1
36234   cat conftest.err >&5
36235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36236   (exit $ac_status); } && {
36237          test -z "$ac_c_werror_flag" ||
36238          test ! -s conftest.err
36239        } && test -s conftest.$ac_objext; then
36240   ac_cv_type_long_long_int=yes
36241 else
36242   echo "$as_me: failed program was:" >&5
36243 sed 's/^/| /' conftest.$ac_ext >&5
36244
36245         ac_cv_type_long_long_int=no
36246 fi
36247
36248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36249 fi
36250 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
36251 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6; }
36252
36253 # The cast to long int works around a bug in the HP C Compiler
36254 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
36255 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
36256 # This bug is HP SR number 8606223364.
36257 { echo "$as_me:$LINENO: checking size of long long int" >&5
36258 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6; }
36259 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
36260   echo $ECHO_N "(cached) $ECHO_C" >&6
36261 else
36262   if test "$cross_compiling" = yes; then
36263   # Depending upon the size, compute the lo and hi bounds.
36264 cat >conftest.$ac_ext <<_ACEOF
36265 /* confdefs.h.  */
36266 _ACEOF
36267 cat confdefs.h >>conftest.$ac_ext
36268 cat >>conftest.$ac_ext <<_ACEOF
36269 /* end confdefs.h.  */
36270 $ac_includes_default
36271    typedef long long int ac__type_sizeof_;
36272 int
36273 main ()
36274 {
36275 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
36276 test_array [0] = 0
36277
36278   ;
36279   return 0;
36280 }
36281 _ACEOF
36282 rm -f conftest.$ac_objext
36283 if { (ac_try="$ac_compile"
36284 case "(($ac_try" in
36285   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36286   *) ac_try_echo=$ac_try;;
36287 esac
36288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36289   (eval "$ac_compile") 2>conftest.er1
36290   ac_status=$?
36291   grep -v '^ *+' conftest.er1 >conftest.err
36292   rm -f conftest.er1
36293   cat conftest.err >&5
36294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36295   (exit $ac_status); } && {
36296          test -z "$ac_c_werror_flag" ||
36297          test ! -s conftest.err
36298        } && test -s conftest.$ac_objext; then
36299   ac_lo=0 ac_mid=0
36300   while :; do
36301     cat >conftest.$ac_ext <<_ACEOF
36302 /* confdefs.h.  */
36303 _ACEOF
36304 cat confdefs.h >>conftest.$ac_ext
36305 cat >>conftest.$ac_ext <<_ACEOF
36306 /* end confdefs.h.  */
36307 $ac_includes_default
36308    typedef long long int ac__type_sizeof_;
36309 int
36310 main ()
36311 {
36312 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36313 test_array [0] = 0
36314
36315   ;
36316   return 0;
36317 }
36318 _ACEOF
36319 rm -f conftest.$ac_objext
36320 if { (ac_try="$ac_compile"
36321 case "(($ac_try" in
36322   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36323   *) ac_try_echo=$ac_try;;
36324 esac
36325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36326   (eval "$ac_compile") 2>conftest.er1
36327   ac_status=$?
36328   grep -v '^ *+' conftest.er1 >conftest.err
36329   rm -f conftest.er1
36330   cat conftest.err >&5
36331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36332   (exit $ac_status); } && {
36333          test -z "$ac_c_werror_flag" ||
36334          test ! -s conftest.err
36335        } && test -s conftest.$ac_objext; then
36336   ac_hi=$ac_mid; break
36337 else
36338   echo "$as_me: failed program was:" >&5
36339 sed 's/^/| /' conftest.$ac_ext >&5
36340
36341         ac_lo=`expr $ac_mid + 1`
36342                         if test $ac_lo -le $ac_mid; then
36343                           ac_lo= ac_hi=
36344                           break
36345                         fi
36346                         ac_mid=`expr 2 '*' $ac_mid + 1`
36347 fi
36348
36349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36350   done
36351 else
36352   echo "$as_me: failed program was:" >&5
36353 sed 's/^/| /' conftest.$ac_ext >&5
36354
36355         cat >conftest.$ac_ext <<_ACEOF
36356 /* confdefs.h.  */
36357 _ACEOF
36358 cat confdefs.h >>conftest.$ac_ext
36359 cat >>conftest.$ac_ext <<_ACEOF
36360 /* end confdefs.h.  */
36361 $ac_includes_default
36362    typedef long long int ac__type_sizeof_;
36363 int
36364 main ()
36365 {
36366 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
36367 test_array [0] = 0
36368
36369   ;
36370   return 0;
36371 }
36372 _ACEOF
36373 rm -f conftest.$ac_objext
36374 if { (ac_try="$ac_compile"
36375 case "(($ac_try" in
36376   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36377   *) ac_try_echo=$ac_try;;
36378 esac
36379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36380   (eval "$ac_compile") 2>conftest.er1
36381   ac_status=$?
36382   grep -v '^ *+' conftest.er1 >conftest.err
36383   rm -f conftest.er1
36384   cat conftest.err >&5
36385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36386   (exit $ac_status); } && {
36387          test -z "$ac_c_werror_flag" ||
36388          test ! -s conftest.err
36389        } && test -s conftest.$ac_objext; then
36390   ac_hi=-1 ac_mid=-1
36391   while :; do
36392     cat >conftest.$ac_ext <<_ACEOF
36393 /* confdefs.h.  */
36394 _ACEOF
36395 cat confdefs.h >>conftest.$ac_ext
36396 cat >>conftest.$ac_ext <<_ACEOF
36397 /* end confdefs.h.  */
36398 $ac_includes_default
36399    typedef long long int ac__type_sizeof_;
36400 int
36401 main ()
36402 {
36403 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
36404 test_array [0] = 0
36405
36406   ;
36407   return 0;
36408 }
36409 _ACEOF
36410 rm -f conftest.$ac_objext
36411 if { (ac_try="$ac_compile"
36412 case "(($ac_try" in
36413   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36414   *) ac_try_echo=$ac_try;;
36415 esac
36416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36417   (eval "$ac_compile") 2>conftest.er1
36418   ac_status=$?
36419   grep -v '^ *+' conftest.er1 >conftest.err
36420   rm -f conftest.er1
36421   cat conftest.err >&5
36422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36423   (exit $ac_status); } && {
36424          test -z "$ac_c_werror_flag" ||
36425          test ! -s conftest.err
36426        } && test -s conftest.$ac_objext; then
36427   ac_lo=$ac_mid; break
36428 else
36429   echo "$as_me: failed program was:" >&5
36430 sed 's/^/| /' conftest.$ac_ext >&5
36431
36432         ac_hi=`expr '(' $ac_mid ')' - 1`
36433                         if test $ac_mid -le $ac_hi; then
36434                           ac_lo= ac_hi=
36435                           break
36436                         fi
36437                         ac_mid=`expr 2 '*' $ac_mid`
36438 fi
36439
36440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36441   done
36442 else
36443   echo "$as_me: failed program was:" >&5
36444 sed 's/^/| /' conftest.$ac_ext >&5
36445
36446         ac_lo= ac_hi=
36447 fi
36448
36449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36450 fi
36451
36452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36453 # Binary search between lo and hi bounds.
36454 while test "x$ac_lo" != "x$ac_hi"; do
36455   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
36456   cat >conftest.$ac_ext <<_ACEOF
36457 /* confdefs.h.  */
36458 _ACEOF
36459 cat confdefs.h >>conftest.$ac_ext
36460 cat >>conftest.$ac_ext <<_ACEOF
36461 /* end confdefs.h.  */
36462 $ac_includes_default
36463    typedef long long int ac__type_sizeof_;
36464 int
36465 main ()
36466 {
36467 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36468 test_array [0] = 0
36469
36470   ;
36471   return 0;
36472 }
36473 _ACEOF
36474 rm -f conftest.$ac_objext
36475 if { (ac_try="$ac_compile"
36476 case "(($ac_try" in
36477   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36478   *) ac_try_echo=$ac_try;;
36479 esac
36480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36481   (eval "$ac_compile") 2>conftest.er1
36482   ac_status=$?
36483   grep -v '^ *+' conftest.er1 >conftest.err
36484   rm -f conftest.er1
36485   cat conftest.err >&5
36486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36487   (exit $ac_status); } && {
36488          test -z "$ac_c_werror_flag" ||
36489          test ! -s conftest.err
36490        } && test -s conftest.$ac_objext; then
36491   ac_hi=$ac_mid
36492 else
36493   echo "$as_me: failed program was:" >&5
36494 sed 's/^/| /' conftest.$ac_ext >&5
36495
36496         ac_lo=`expr '(' $ac_mid ')' + 1`
36497 fi
36498
36499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36500 done
36501 case $ac_lo in
36502 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
36503 '') if test "$ac_cv_type_long_long_int" = yes; then
36504      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
36505 See \`config.log' for more details." >&5
36506 echo "$as_me: error: cannot compute sizeof (long long int)
36507 See \`config.log' for more details." >&2;}
36508    { (exit 77); exit 77; }; }
36509    else
36510      ac_cv_sizeof_long_long_int=0
36511    fi ;;
36512 esac
36513 else
36514   cat >conftest.$ac_ext <<_ACEOF
36515 /* confdefs.h.  */
36516 _ACEOF
36517 cat confdefs.h >>conftest.$ac_ext
36518 cat >>conftest.$ac_ext <<_ACEOF
36519 /* end confdefs.h.  */
36520 $ac_includes_default
36521    typedef long long int ac__type_sizeof_;
36522 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
36523 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
36524 #include <stdio.h>
36525 #include <stdlib.h>
36526 int
36527 main ()
36528 {
36529
36530   FILE *f = fopen ("conftest.val", "w");
36531   if (! f)
36532     return 1;
36533   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
36534     {
36535       long int i = longval ();
36536       if (i != ((long int) (sizeof (ac__type_sizeof_))))
36537         return 1;
36538       fprintf (f, "%ld\n", i);
36539     }
36540   else
36541     {
36542       unsigned long int i = ulongval ();
36543       if (i != ((long int) (sizeof (ac__type_sizeof_))))
36544         return 1;
36545       fprintf (f, "%lu\n", i);
36546     }
36547   return ferror (f) || fclose (f) != 0;
36548
36549   ;
36550   return 0;
36551 }
36552 _ACEOF
36553 rm -f conftest$ac_exeext
36554 if { (ac_try="$ac_link"
36555 case "(($ac_try" in
36556   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36557   *) ac_try_echo=$ac_try;;
36558 esac
36559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36560   (eval "$ac_link") 2>&5
36561   ac_status=$?
36562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36563   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36564   { (case "(($ac_try" in
36565   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36566   *) ac_try_echo=$ac_try;;
36567 esac
36568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36569   (eval "$ac_try") 2>&5
36570   ac_status=$?
36571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36572   (exit $ac_status); }; }; then
36573   ac_cv_sizeof_long_long_int=`cat conftest.val`
36574 else
36575   echo "$as_me: program exited with status $ac_status" >&5
36576 echo "$as_me: failed program was:" >&5
36577 sed 's/^/| /' conftest.$ac_ext >&5
36578
36579 ( exit $ac_status )
36580 if test "$ac_cv_type_long_long_int" = yes; then
36581      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
36582 See \`config.log' for more details." >&5
36583 echo "$as_me: error: cannot compute sizeof (long long int)
36584 See \`config.log' for more details." >&2;}
36585    { (exit 77); exit 77; }; }
36586    else
36587      ac_cv_sizeof_long_long_int=0
36588    fi
36589 fi
36590 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36591 fi
36592 rm -f conftest.val
36593 fi
36594 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
36595 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6; }
36596
36597
36598
36599 cat >>confdefs.h <<_ACEOF
36600 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
36601 _ACEOF
36602
36603
36604 { echo "$as_me:$LINENO: checking for int *" >&5
36605 echo $ECHO_N "checking for int *... $ECHO_C" >&6; }
36606 if test "${ac_cv_type_int_p+set}" = set; then
36607   echo $ECHO_N "(cached) $ECHO_C" >&6
36608 else
36609   cat >conftest.$ac_ext <<_ACEOF
36610 /* confdefs.h.  */
36611 _ACEOF
36612 cat confdefs.h >>conftest.$ac_ext
36613 cat >>conftest.$ac_ext <<_ACEOF
36614 /* end confdefs.h.  */
36615 $ac_includes_default
36616 typedef int * ac__type_new_;
36617 int
36618 main ()
36619 {
36620 if ((ac__type_new_ *) 0)
36621   return 0;
36622 if (sizeof (ac__type_new_))
36623   return 0;
36624   ;
36625   return 0;
36626 }
36627 _ACEOF
36628 rm -f conftest.$ac_objext
36629 if { (ac_try="$ac_compile"
36630 case "(($ac_try" in
36631   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36632   *) ac_try_echo=$ac_try;;
36633 esac
36634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36635   (eval "$ac_compile") 2>conftest.er1
36636   ac_status=$?
36637   grep -v '^ *+' conftest.er1 >conftest.err
36638   rm -f conftest.er1
36639   cat conftest.err >&5
36640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36641   (exit $ac_status); } && {
36642          test -z "$ac_c_werror_flag" ||
36643          test ! -s conftest.err
36644        } && test -s conftest.$ac_objext; then
36645   ac_cv_type_int_p=yes
36646 else
36647   echo "$as_me: failed program was:" >&5
36648 sed 's/^/| /' conftest.$ac_ext >&5
36649
36650         ac_cv_type_int_p=no
36651 fi
36652
36653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36654 fi
36655 { echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
36656 echo "${ECHO_T}$ac_cv_type_int_p" >&6; }
36657
36658 # The cast to long int works around a bug in the HP C Compiler
36659 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
36660 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
36661 # This bug is HP SR number 8606223364.
36662 { echo "$as_me:$LINENO: checking size of int *" >&5
36663 echo $ECHO_N "checking size of int *... $ECHO_C" >&6; }
36664 if test "${ac_cv_sizeof_int_p+set}" = set; then
36665   echo $ECHO_N "(cached) $ECHO_C" >&6
36666 else
36667   if test "$cross_compiling" = yes; then
36668   # Depending upon the size, compute the lo and hi bounds.
36669 cat >conftest.$ac_ext <<_ACEOF
36670 /* confdefs.h.  */
36671 _ACEOF
36672 cat confdefs.h >>conftest.$ac_ext
36673 cat >>conftest.$ac_ext <<_ACEOF
36674 /* end confdefs.h.  */
36675 $ac_includes_default
36676    typedef int * ac__type_sizeof_;
36677 int
36678 main ()
36679 {
36680 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
36681 test_array [0] = 0
36682
36683   ;
36684   return 0;
36685 }
36686 _ACEOF
36687 rm -f conftest.$ac_objext
36688 if { (ac_try="$ac_compile"
36689 case "(($ac_try" in
36690   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36691   *) ac_try_echo=$ac_try;;
36692 esac
36693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36694   (eval "$ac_compile") 2>conftest.er1
36695   ac_status=$?
36696   grep -v '^ *+' conftest.er1 >conftest.err
36697   rm -f conftest.er1
36698   cat conftest.err >&5
36699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36700   (exit $ac_status); } && {
36701          test -z "$ac_c_werror_flag" ||
36702          test ! -s conftest.err
36703        } && test -s conftest.$ac_objext; then
36704   ac_lo=0 ac_mid=0
36705   while :; do
36706     cat >conftest.$ac_ext <<_ACEOF
36707 /* confdefs.h.  */
36708 _ACEOF
36709 cat confdefs.h >>conftest.$ac_ext
36710 cat >>conftest.$ac_ext <<_ACEOF
36711 /* end confdefs.h.  */
36712 $ac_includes_default
36713    typedef int * ac__type_sizeof_;
36714 int
36715 main ()
36716 {
36717 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36718 test_array [0] = 0
36719
36720   ;
36721   return 0;
36722 }
36723 _ACEOF
36724 rm -f conftest.$ac_objext
36725 if { (ac_try="$ac_compile"
36726 case "(($ac_try" in
36727   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36728   *) ac_try_echo=$ac_try;;
36729 esac
36730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36731   (eval "$ac_compile") 2>conftest.er1
36732   ac_status=$?
36733   grep -v '^ *+' conftest.er1 >conftest.err
36734   rm -f conftest.er1
36735   cat conftest.err >&5
36736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36737   (exit $ac_status); } && {
36738          test -z "$ac_c_werror_flag" ||
36739          test ! -s conftest.err
36740        } && test -s conftest.$ac_objext; then
36741   ac_hi=$ac_mid; break
36742 else
36743   echo "$as_me: failed program was:" >&5
36744 sed 's/^/| /' conftest.$ac_ext >&5
36745
36746         ac_lo=`expr $ac_mid + 1`
36747                         if test $ac_lo -le $ac_mid; then
36748                           ac_lo= ac_hi=
36749                           break
36750                         fi
36751                         ac_mid=`expr 2 '*' $ac_mid + 1`
36752 fi
36753
36754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36755   done
36756 else
36757   echo "$as_me: failed program was:" >&5
36758 sed 's/^/| /' conftest.$ac_ext >&5
36759
36760         cat >conftest.$ac_ext <<_ACEOF
36761 /* confdefs.h.  */
36762 _ACEOF
36763 cat confdefs.h >>conftest.$ac_ext
36764 cat >>conftest.$ac_ext <<_ACEOF
36765 /* end confdefs.h.  */
36766 $ac_includes_default
36767    typedef int * ac__type_sizeof_;
36768 int
36769 main ()
36770 {
36771 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
36772 test_array [0] = 0
36773
36774   ;
36775   return 0;
36776 }
36777 _ACEOF
36778 rm -f conftest.$ac_objext
36779 if { (ac_try="$ac_compile"
36780 case "(($ac_try" in
36781   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36782   *) ac_try_echo=$ac_try;;
36783 esac
36784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36785   (eval "$ac_compile") 2>conftest.er1
36786   ac_status=$?
36787   grep -v '^ *+' conftest.er1 >conftest.err
36788   rm -f conftest.er1
36789   cat conftest.err >&5
36790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36791   (exit $ac_status); } && {
36792          test -z "$ac_c_werror_flag" ||
36793          test ! -s conftest.err
36794        } && test -s conftest.$ac_objext; then
36795   ac_hi=-1 ac_mid=-1
36796   while :; do
36797     cat >conftest.$ac_ext <<_ACEOF
36798 /* confdefs.h.  */
36799 _ACEOF
36800 cat confdefs.h >>conftest.$ac_ext
36801 cat >>conftest.$ac_ext <<_ACEOF
36802 /* end confdefs.h.  */
36803 $ac_includes_default
36804    typedef int * ac__type_sizeof_;
36805 int
36806 main ()
36807 {
36808 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
36809 test_array [0] = 0
36810
36811   ;
36812   return 0;
36813 }
36814 _ACEOF
36815 rm -f conftest.$ac_objext
36816 if { (ac_try="$ac_compile"
36817 case "(($ac_try" in
36818   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36819   *) ac_try_echo=$ac_try;;
36820 esac
36821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36822   (eval "$ac_compile") 2>conftest.er1
36823   ac_status=$?
36824   grep -v '^ *+' conftest.er1 >conftest.err
36825   rm -f conftest.er1
36826   cat conftest.err >&5
36827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36828   (exit $ac_status); } && {
36829          test -z "$ac_c_werror_flag" ||
36830          test ! -s conftest.err
36831        } && test -s conftest.$ac_objext; then
36832   ac_lo=$ac_mid; break
36833 else
36834   echo "$as_me: failed program was:" >&5
36835 sed 's/^/| /' conftest.$ac_ext >&5
36836
36837         ac_hi=`expr '(' $ac_mid ')' - 1`
36838                         if test $ac_mid -le $ac_hi; then
36839                           ac_lo= ac_hi=
36840                           break
36841                         fi
36842                         ac_mid=`expr 2 '*' $ac_mid`
36843 fi
36844
36845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36846   done
36847 else
36848   echo "$as_me: failed program was:" >&5
36849 sed 's/^/| /' conftest.$ac_ext >&5
36850
36851         ac_lo= ac_hi=
36852 fi
36853
36854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36855 fi
36856
36857 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36858 # Binary search between lo and hi bounds.
36859 while test "x$ac_lo" != "x$ac_hi"; do
36860   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
36861   cat >conftest.$ac_ext <<_ACEOF
36862 /* confdefs.h.  */
36863 _ACEOF
36864 cat confdefs.h >>conftest.$ac_ext
36865 cat >>conftest.$ac_ext <<_ACEOF
36866 /* end confdefs.h.  */
36867 $ac_includes_default
36868    typedef int * ac__type_sizeof_;
36869 int
36870 main ()
36871 {
36872 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36873 test_array [0] = 0
36874
36875   ;
36876   return 0;
36877 }
36878 _ACEOF
36879 rm -f conftest.$ac_objext
36880 if { (ac_try="$ac_compile"
36881 case "(($ac_try" in
36882   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36883   *) ac_try_echo=$ac_try;;
36884 esac
36885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36886   (eval "$ac_compile") 2>conftest.er1
36887   ac_status=$?
36888   grep -v '^ *+' conftest.er1 >conftest.err
36889   rm -f conftest.er1
36890   cat conftest.err >&5
36891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36892   (exit $ac_status); } && {
36893          test -z "$ac_c_werror_flag" ||
36894          test ! -s conftest.err
36895        } && test -s conftest.$ac_objext; then
36896   ac_hi=$ac_mid
36897 else
36898   echo "$as_me: failed program was:" >&5
36899 sed 's/^/| /' conftest.$ac_ext >&5
36900
36901         ac_lo=`expr '(' $ac_mid ')' + 1`
36902 fi
36903
36904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36905 done
36906 case $ac_lo in
36907 ?*) ac_cv_sizeof_int_p=$ac_lo;;
36908 '') if test "$ac_cv_type_int_p" = yes; then
36909      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
36910 See \`config.log' for more details." >&5
36911 echo "$as_me: error: cannot compute sizeof (int *)
36912 See \`config.log' for more details." >&2;}
36913    { (exit 77); exit 77; }; }
36914    else
36915      ac_cv_sizeof_int_p=0
36916    fi ;;
36917 esac
36918 else
36919   cat >conftest.$ac_ext <<_ACEOF
36920 /* confdefs.h.  */
36921 _ACEOF
36922 cat confdefs.h >>conftest.$ac_ext
36923 cat >>conftest.$ac_ext <<_ACEOF
36924 /* end confdefs.h.  */
36925 $ac_includes_default
36926    typedef int * ac__type_sizeof_;
36927 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
36928 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
36929 #include <stdio.h>
36930 #include <stdlib.h>
36931 int
36932 main ()
36933 {
36934
36935   FILE *f = fopen ("conftest.val", "w");
36936   if (! f)
36937     return 1;
36938   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
36939     {
36940       long int i = longval ();
36941       if (i != ((long int) (sizeof (ac__type_sizeof_))))
36942         return 1;
36943       fprintf (f, "%ld\n", i);
36944     }
36945   else
36946     {
36947       unsigned long int i = ulongval ();
36948       if (i != ((long int) (sizeof (ac__type_sizeof_))))
36949         return 1;
36950       fprintf (f, "%lu\n", i);
36951     }
36952   return ferror (f) || fclose (f) != 0;
36953
36954   ;
36955   return 0;
36956 }
36957 _ACEOF
36958 rm -f conftest$ac_exeext
36959 if { (ac_try="$ac_link"
36960 case "(($ac_try" in
36961   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36962   *) ac_try_echo=$ac_try;;
36963 esac
36964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36965   (eval "$ac_link") 2>&5
36966   ac_status=$?
36967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36968   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36969   { (case "(($ac_try" in
36970   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36971   *) ac_try_echo=$ac_try;;
36972 esac
36973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36974   (eval "$ac_try") 2>&5
36975   ac_status=$?
36976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36977   (exit $ac_status); }; }; then
36978   ac_cv_sizeof_int_p=`cat conftest.val`
36979 else
36980   echo "$as_me: program exited with status $ac_status" >&5
36981 echo "$as_me: failed program was:" >&5
36982 sed 's/^/| /' conftest.$ac_ext >&5
36983
36984 ( exit $ac_status )
36985 if test "$ac_cv_type_int_p" = yes; then
36986      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
36987 See \`config.log' for more details." >&5
36988 echo "$as_me: error: cannot compute sizeof (int *)
36989 See \`config.log' for more details." >&2;}
36990    { (exit 77); exit 77; }; }
36991    else
36992      ac_cv_sizeof_int_p=0
36993    fi
36994 fi
36995 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36996 fi
36997 rm -f conftest.val
36998 fi
36999 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
37000 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6; }
37001
37002
37003
37004 cat >>confdefs.h <<_ACEOF
37005 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
37006 _ACEOF
37007
37008
37009
37010 { echo "$as_me:$LINENO: checking for u_int type" >&5
37011 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6; }
37012 if test "${ac_cv_have_u_int+set}" = set; then
37013   echo $ECHO_N "(cached) $ECHO_C" >&6
37014 else
37015
37016        cat >conftest.$ac_ext <<_ACEOF
37017 /* confdefs.h.  */
37018 _ACEOF
37019 cat confdefs.h >>conftest.$ac_ext
37020 cat >>conftest.$ac_ext <<_ACEOF
37021 /* end confdefs.h.  */
37022
37023               #include <sys/types.h>
37024
37025 int
37026 main ()
37027 {
37028
37029               u_int a; a = 1;
37030
37031   ;
37032   return 0;
37033 }
37034 _ACEOF
37035 rm -f conftest.$ac_objext
37036 if { (ac_try="$ac_compile"
37037 case "(($ac_try" in
37038   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37039   *) ac_try_echo=$ac_try;;
37040 esac
37041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37042   (eval "$ac_compile") 2>conftest.er1
37043   ac_status=$?
37044   grep -v '^ *+' conftest.er1 >conftest.err
37045   rm -f conftest.er1
37046   cat conftest.err >&5
37047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37048   (exit $ac_status); } && {
37049          test -z "$ac_c_werror_flag" ||
37050          test ! -s conftest.err
37051        } && test -s conftest.$ac_objext; then
37052
37053               ac_cv_have_u_int="yes"
37054
37055 else
37056   echo "$as_me: failed program was:" >&5
37057 sed 's/^/| /' conftest.$ac_ext >&5
37058
37059
37060               ac_cv_have_u_int="no"
37061
37062
37063 fi
37064
37065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37066
37067
37068 fi
37069 { echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
37070 echo "${ECHO_T}$ac_cv_have_u_int" >&6; }
37071 if test "x$ac_cv_have_u_int" = "xyes" ; then
37072    cat >>confdefs.h <<\_ACEOF
37073 #define HAVE_U_INT 1
37074 _ACEOF
37075
37076    have_u_int=1
37077 fi
37078
37079 { echo "$as_me:$LINENO: checking for intmax_t type" >&5
37080 echo $ECHO_N "checking for intmax_t type... $ECHO_C" >&6; }
37081 if test "${ac_cv_have_intmax_t+set}" = set; then
37082   echo $ECHO_N "(cached) $ECHO_C" >&6
37083 else
37084
37085        cat >conftest.$ac_ext <<_ACEOF
37086 /* confdefs.h.  */
37087 _ACEOF
37088 cat confdefs.h >>conftest.$ac_ext
37089 cat >>conftest.$ac_ext <<_ACEOF
37090 /* end confdefs.h.  */
37091
37092               #include <sys/types.h>
37093
37094 int
37095 main ()
37096 {
37097
37098               intmax_t a; a = 1;
37099
37100   ;
37101   return 0;
37102 }
37103 _ACEOF
37104 rm -f conftest.$ac_objext
37105 if { (ac_try="$ac_compile"
37106 case "(($ac_try" in
37107   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37108   *) ac_try_echo=$ac_try;;
37109 esac
37110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37111   (eval "$ac_compile") 2>conftest.er1
37112   ac_status=$?
37113   grep -v '^ *+' conftest.er1 >conftest.err
37114   rm -f conftest.er1
37115   cat conftest.err >&5
37116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37117   (exit $ac_status); } && {
37118          test -z "$ac_c_werror_flag" ||
37119          test ! -s conftest.err
37120        } && test -s conftest.$ac_objext; then
37121
37122               ac_cv_have_intmax_t="yes"
37123
37124 else
37125   echo "$as_me: failed program was:" >&5
37126 sed 's/^/| /' conftest.$ac_ext >&5
37127
37128
37129               cat >conftest.$ac_ext <<_ACEOF
37130 /* confdefs.h.  */
37131 _ACEOF
37132 cat confdefs.h >>conftest.$ac_ext
37133 cat >>conftest.$ac_ext <<_ACEOF
37134 /* end confdefs.h.  */
37135
37136                      #include <stdint.h>
37137
37138 int
37139 main ()
37140 {
37141
37142                      intmax_t a; a = 1;
37143
37144   ;
37145   return 0;
37146 }
37147 _ACEOF
37148 rm -f conftest.$ac_objext
37149 if { (ac_try="$ac_compile"
37150 case "(($ac_try" in
37151   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37152   *) ac_try_echo=$ac_try;;
37153 esac
37154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37155   (eval "$ac_compile") 2>conftest.er1
37156   ac_status=$?
37157   grep -v '^ *+' conftest.er1 >conftest.err
37158   rm -f conftest.er1
37159   cat conftest.err >&5
37160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37161   (exit $ac_status); } && {
37162          test -z "$ac_c_werror_flag" ||
37163          test ! -s conftest.err
37164        } && test -s conftest.$ac_objext; then
37165
37166                      ac_cv_have_intmax_t="yes"
37167
37168 else
37169   echo "$as_me: failed program was:" >&5
37170 sed 's/^/| /' conftest.$ac_ext >&5
37171
37172
37173                      ac_cv_have_intmax_t="no"
37174
37175
37176 fi
37177
37178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37179
37180
37181 fi
37182
37183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37184
37185
37186 fi
37187 { echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
37188 echo "${ECHO_T}$ac_cv_have_intmax_t" >&6; }
37189 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
37190    cat >>confdefs.h <<\_ACEOF
37191 #define HAVE_INTMAX_T 1
37192 _ACEOF
37193
37194    have_intmax_t=1
37195 fi
37196
37197 { echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
37198 echo $ECHO_N "checking for u_intmax_t type... $ECHO_C" >&6; }
37199 if test "${ac_cv_have_u_intmax_t+set}" = set; then
37200   echo $ECHO_N "(cached) $ECHO_C" >&6
37201 else
37202
37203        cat >conftest.$ac_ext <<_ACEOF
37204 /* confdefs.h.  */
37205 _ACEOF
37206 cat confdefs.h >>conftest.$ac_ext
37207 cat >>conftest.$ac_ext <<_ACEOF
37208 /* end confdefs.h.  */
37209
37210               #include <sys/types.h>
37211
37212 int
37213 main ()
37214 {
37215
37216               u_intmax_t a; a = 1;
37217
37218   ;
37219   return 0;
37220 }
37221 _ACEOF
37222 rm -f conftest.$ac_objext
37223 if { (ac_try="$ac_compile"
37224 case "(($ac_try" in
37225   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37226   *) ac_try_echo=$ac_try;;
37227 esac
37228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37229   (eval "$ac_compile") 2>conftest.er1
37230   ac_status=$?
37231   grep -v '^ *+' conftest.er1 >conftest.err
37232   rm -f conftest.er1
37233   cat conftest.err >&5
37234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37235   (exit $ac_status); } && {
37236          test -z "$ac_c_werror_flag" ||
37237          test ! -s conftest.err
37238        } && test -s conftest.$ac_objext; then
37239
37240               ac_cv_have_u_intmax_t="yes"
37241
37242 else
37243   echo "$as_me: failed program was:" >&5
37244 sed 's/^/| /' conftest.$ac_ext >&5
37245
37246
37247               cat >conftest.$ac_ext <<_ACEOF
37248 /* confdefs.h.  */
37249 _ACEOF
37250 cat confdefs.h >>conftest.$ac_ext
37251 cat >>conftest.$ac_ext <<_ACEOF
37252 /* end confdefs.h.  */
37253
37254                      #include <stdint.h>
37255
37256 int
37257 main ()
37258 {
37259
37260                     u_intmax_t a; a = 1;
37261
37262   ;
37263   return 0;
37264 }
37265 _ACEOF
37266 rm -f conftest.$ac_objext
37267 if { (ac_try="$ac_compile"
37268 case "(($ac_try" in
37269   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37270   *) ac_try_echo=$ac_try;;
37271 esac
37272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37273   (eval "$ac_compile") 2>conftest.er1
37274   ac_status=$?
37275   grep -v '^ *+' conftest.er1 >conftest.err
37276   rm -f conftest.er1
37277   cat conftest.err >&5
37278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37279   (exit $ac_status); } && {
37280          test -z "$ac_c_werror_flag" ||
37281          test ! -s conftest.err
37282        } && test -s conftest.$ac_objext; then
37283
37284                     ac_cv_have_u_intmax_t="yes"
37285
37286 else
37287   echo "$as_me: failed program was:" >&5
37288 sed 's/^/| /' conftest.$ac_ext >&5
37289
37290
37291                     ac_cv_have_u_intmax_t="no"
37292
37293
37294 fi
37295
37296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37297
37298
37299 fi
37300
37301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37302
37303
37304 fi
37305 { echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
37306 echo "${ECHO_T}$ac_cv_have_u_intmax_t" >&6; }
37307 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
37308    cat >>confdefs.h <<\_ACEOF
37309 #define HAVE_U_INTMAX_T 1
37310 _ACEOF
37311
37312    have_u_intmax_t=1
37313 fi
37314
37315 { echo "$as_me:$LINENO: checking for intXX_t types" >&5
37316 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6; }
37317 if test "${ac_cv_have_intxx_t+set}" = set; then
37318   echo $ECHO_N "(cached) $ECHO_C" >&6
37319 else
37320
37321        cat >conftest.$ac_ext <<_ACEOF
37322 /* confdefs.h.  */
37323 _ACEOF
37324 cat confdefs.h >>conftest.$ac_ext
37325 cat >>conftest.$ac_ext <<_ACEOF
37326 /* end confdefs.h.  */
37327
37328               #include <sys/types.h>
37329
37330 int
37331 main ()
37332 {
37333
37334               int8_t a; int16_t b; int32_t c; a = b = c = 1;
37335
37336   ;
37337   return 0;
37338 }
37339 _ACEOF
37340 rm -f conftest.$ac_objext
37341 if { (ac_try="$ac_compile"
37342 case "(($ac_try" in
37343   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37344   *) ac_try_echo=$ac_try;;
37345 esac
37346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37347   (eval "$ac_compile") 2>conftest.er1
37348   ac_status=$?
37349   grep -v '^ *+' conftest.er1 >conftest.err
37350   rm -f conftest.er1
37351   cat conftest.err >&5
37352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37353   (exit $ac_status); } && {
37354          test -z "$ac_c_werror_flag" ||
37355          test ! -s conftest.err
37356        } && test -s conftest.$ac_objext; then
37357
37358               ac_cv_have_intxx_t="yes"
37359
37360 else
37361   echo "$as_me: failed program was:" >&5
37362 sed 's/^/| /' conftest.$ac_ext >&5
37363
37364
37365               ac_cv_have_intxx_t="no"
37366
37367
37368 fi
37369
37370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37371
37372
37373 fi
37374 { echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
37375 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6; }
37376 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
37377    cat >>confdefs.h <<\_ACEOF
37378 #define HAVE_INTXX_T 1
37379 _ACEOF
37380
37381    have_intxx_t=1
37382 fi
37383
37384 { echo "$as_me:$LINENO: checking for int64_t type" >&5
37385 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6; }
37386 if test "${ac_cv_have_int64_t+set}" = set; then
37387   echo $ECHO_N "(cached) $ECHO_C" >&6
37388 else
37389
37390        cat >conftest.$ac_ext <<_ACEOF
37391 /* confdefs.h.  */
37392 _ACEOF
37393 cat confdefs.h >>conftest.$ac_ext
37394 cat >>conftest.$ac_ext <<_ACEOF
37395 /* end confdefs.h.  */
37396
37397               #include <sys/types.h>
37398
37399 int
37400 main ()
37401 {
37402
37403               int64_t a; a = 1;
37404
37405   ;
37406   return 0;
37407 }
37408 _ACEOF
37409 rm -f conftest.$ac_objext
37410 if { (ac_try="$ac_compile"
37411 case "(($ac_try" in
37412   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37413   *) ac_try_echo=$ac_try;;
37414 esac
37415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37416   (eval "$ac_compile") 2>conftest.er1
37417   ac_status=$?
37418   grep -v '^ *+' conftest.er1 >conftest.err
37419   rm -f conftest.er1
37420   cat conftest.err >&5
37421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37422   (exit $ac_status); } && {
37423          test -z "$ac_c_werror_flag" ||
37424          test ! -s conftest.err
37425        } && test -s conftest.$ac_objext; then
37426
37427               ac_cv_have_int64_t="yes"
37428
37429 else
37430   echo "$as_me: failed program was:" >&5
37431 sed 's/^/| /' conftest.$ac_ext >&5
37432
37433
37434               ac_cv_have_int64_t="no"
37435
37436
37437 fi
37438
37439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37440
37441
37442 fi
37443 { echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
37444 echo "${ECHO_T}$ac_cv_have_int64_t" >&6; }
37445 if test "x$ac_cv_have_int64_t" = "xyes" ; then
37446    cat >>confdefs.h <<\_ACEOF
37447 #define HAVE_INT64_T 1
37448 _ACEOF
37449
37450    have_int64_t=1
37451 fi
37452
37453 { echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
37454 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6; }
37455 if test "${ac_cv_have_u_intxx_t+set}" = set; then
37456   echo $ECHO_N "(cached) $ECHO_C" >&6
37457 else
37458
37459        cat >conftest.$ac_ext <<_ACEOF
37460 /* confdefs.h.  */
37461 _ACEOF
37462 cat confdefs.h >>conftest.$ac_ext
37463 cat >>conftest.$ac_ext <<_ACEOF
37464 /* end confdefs.h.  */
37465
37466               #include <sys/types.h>
37467
37468 int
37469 main ()
37470 {
37471
37472               u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
37473
37474   ;
37475   return 0;
37476 }
37477 _ACEOF
37478 rm -f conftest.$ac_objext
37479 if { (ac_try="$ac_compile"
37480 case "(($ac_try" in
37481   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37482   *) ac_try_echo=$ac_try;;
37483 esac
37484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37485   (eval "$ac_compile") 2>conftest.er1
37486   ac_status=$?
37487   grep -v '^ *+' conftest.er1 >conftest.err
37488   rm -f conftest.er1
37489   cat conftest.err >&5
37490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37491   (exit $ac_status); } && {
37492          test -z "$ac_c_werror_flag" ||
37493          test ! -s conftest.err
37494        } && test -s conftest.$ac_objext; then
37495
37496              ac_cv_have_u_intxx_t="yes"
37497
37498 else
37499   echo "$as_me: failed program was:" >&5
37500 sed 's/^/| /' conftest.$ac_ext >&5
37501
37502
37503              ac_cv_have_u_intxx_t="no"
37504
37505
37506 fi
37507
37508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37509
37510
37511 fi
37512 { echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
37513 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6; }
37514 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
37515    cat >>confdefs.h <<\_ACEOF
37516 #define HAVE_U_INTXX_T 1
37517 _ACEOF
37518
37519    have_u_intxx_t=1
37520 fi
37521
37522 { echo "$as_me:$LINENO: checking for u_int64_t types" >&5
37523 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6; }
37524 if test "${ac_cv_have_u_int64_t+set}" = set; then
37525   echo $ECHO_N "(cached) $ECHO_C" >&6
37526 else
37527
37528        cat >conftest.$ac_ext <<_ACEOF
37529 /* confdefs.h.  */
37530 _ACEOF
37531 cat confdefs.h >>conftest.$ac_ext
37532 cat >>conftest.$ac_ext <<_ACEOF
37533 /* end confdefs.h.  */
37534
37535               #include <sys/types.h>
37536
37537 int
37538 main ()
37539 {
37540
37541               u_int64_t a; a = 1;
37542
37543   ;
37544   return 0;
37545 }
37546 _ACEOF
37547 rm -f conftest.$ac_objext
37548 if { (ac_try="$ac_compile"
37549 case "(($ac_try" in
37550   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37551   *) ac_try_echo=$ac_try;;
37552 esac
37553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37554   (eval "$ac_compile") 2>conftest.er1
37555   ac_status=$?
37556   grep -v '^ *+' conftest.er1 >conftest.err
37557   rm -f conftest.er1
37558   cat conftest.err >&5
37559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37560   (exit $ac_status); } && {
37561          test -z "$ac_c_werror_flag" ||
37562          test ! -s conftest.err
37563        } && test -s conftest.$ac_objext; then
37564
37565              ac_cv_have_u_int64_t="yes"
37566
37567 else
37568   echo "$as_me: failed program was:" >&5
37569 sed 's/^/| /' conftest.$ac_ext >&5
37570
37571
37572              ac_cv_have_u_int64_t="no"
37573
37574
37575 fi
37576
37577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37578
37579
37580 fi
37581 { echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
37582 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6; }
37583 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
37584    cat >>confdefs.h <<\_ACEOF
37585 #define HAVE_U_INT64_T 1
37586 _ACEOF
37587
37588    have_u_int64_t=1
37589 fi
37590
37591 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
37592     test "x$ac_cv_header_sys_bitypes_h" = "xyes")
37593 then
37594    { echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
37595 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6; }
37596    cat >conftest.$ac_ext <<_ACEOF
37597 /* confdefs.h.  */
37598 _ACEOF
37599 cat confdefs.h >>conftest.$ac_ext
37600 cat >>conftest.$ac_ext <<_ACEOF
37601 /* end confdefs.h.  */
37602
37603           #include <sys/bitypes.h>
37604
37605 int
37606 main ()
37607 {
37608
37609           int8_t a; int16_t b; int32_t c;
37610           u_int8_t e; u_int16_t f; u_int32_t g;
37611           a = b = c = e = f = g = 1;
37612
37613   ;
37614   return 0;
37615 }
37616 _ACEOF
37617 rm -f conftest.$ac_objext
37618 if { (ac_try="$ac_compile"
37619 case "(($ac_try" in
37620   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37621   *) ac_try_echo=$ac_try;;
37622 esac
37623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37624   (eval "$ac_compile") 2>conftest.er1
37625   ac_status=$?
37626   grep -v '^ *+' conftest.er1 >conftest.err
37627   rm -f conftest.er1
37628   cat conftest.err >&5
37629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37630   (exit $ac_status); } && {
37631          test -z "$ac_c_werror_flag" ||
37632          test ! -s conftest.err
37633        } && test -s conftest.$ac_objext; then
37634
37635           cat >>confdefs.h <<\_ACEOF
37636 #define HAVE_U_INTXX_T 1
37637 _ACEOF
37638
37639           cat >>confdefs.h <<\_ACEOF
37640 #define HAVE_INTXX_T 1
37641 _ACEOF
37642
37643           cat >>confdefs.h <<\_ACEOF
37644 #define HAVE_SYS_BITYPES_H 1
37645 _ACEOF
37646
37647           { echo "$as_me:$LINENO: result: yes" >&5
37648 echo "${ECHO_T}yes" >&6; }
37649
37650 else
37651   echo "$as_me: failed program was:" >&5
37652 sed 's/^/| /' conftest.$ac_ext >&5
37653
37654
37655           { echo "$as_me:$LINENO: result: no" >&5
37656 echo "${ECHO_T}no" >&6; }
37657
37658
37659 fi
37660
37661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37662 fi
37663
37664 if test -z "$have_u_intxx_t" ; then
37665    { echo "$as_me:$LINENO: checking for uintXX_t types" >&5
37666 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6; }
37667 if test "${ac_cv_have_uintxx_t+set}" = set; then
37668   echo $ECHO_N "(cached) $ECHO_C" >&6
37669 else
37670
37671           cat >conftest.$ac_ext <<_ACEOF
37672 /* confdefs.h.  */
37673 _ACEOF
37674 cat confdefs.h >>conftest.$ac_ext
37675 cat >>conftest.$ac_ext <<_ACEOF
37676 /* end confdefs.h.  */
37677
37678                  #include <sys/types.h>
37679
37680 int
37681 main ()
37682 {
37683
37684                  uint8_t a; uint16_t b;
37685                  uint32_t c; a = b = c = 1;
37686
37687   ;
37688   return 0;
37689 }
37690 _ACEOF
37691 rm -f conftest.$ac_objext
37692 if { (ac_try="$ac_compile"
37693 case "(($ac_try" in
37694   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37695   *) ac_try_echo=$ac_try;;
37696 esac
37697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37698   (eval "$ac_compile") 2>conftest.er1
37699   ac_status=$?
37700   grep -v '^ *+' conftest.er1 >conftest.err
37701   rm -f conftest.er1
37702   cat conftest.err >&5
37703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37704   (exit $ac_status); } && {
37705          test -z "$ac_c_werror_flag" ||
37706          test ! -s conftest.err
37707        } && test -s conftest.$ac_objext; then
37708
37709                 ac_cv_have_uintxx_t="yes"
37710
37711 else
37712   echo "$as_me: failed program was:" >&5
37713 sed 's/^/| /' conftest.$ac_ext >&5
37714
37715
37716                 ac_cv_have_uintxx_t="no"
37717
37718
37719 fi
37720
37721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37722
37723
37724 fi
37725 { echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
37726 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6; }
37727    if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
37728       cat >>confdefs.h <<\_ACEOF
37729 #define HAVE_UINTXX_T 1
37730 _ACEOF
37731
37732    fi
37733 fi
37734
37735 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
37736     test "x$ac_cv_header_sys_bitypes_h" = "xyes")
37737 then
37738    { echo "$as_me:$LINENO: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
37739 echo $ECHO_N "checking for int64_t and u_int64_t types in sys/bitypes.h... $ECHO_C" >&6; }
37740    cat >conftest.$ac_ext <<_ACEOF
37741 /* confdefs.h.  */
37742 _ACEOF
37743 cat confdefs.h >>conftest.$ac_ext
37744 cat >>conftest.$ac_ext <<_ACEOF
37745 /* end confdefs.h.  */
37746
37747           #include <sys/bitypes.h>
37748
37749 int
37750 main ()
37751 {
37752
37753           int64_t a; u_int64_t b;
37754           a = b = 1;
37755
37756   ;
37757   return 0;
37758 }
37759 _ACEOF
37760 rm -f conftest.$ac_objext
37761 if { (ac_try="$ac_compile"
37762 case "(($ac_try" in
37763   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37764   *) ac_try_echo=$ac_try;;
37765 esac
37766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37767   (eval "$ac_compile") 2>conftest.er1
37768   ac_status=$?
37769   grep -v '^ *+' conftest.er1 >conftest.err
37770   rm -f conftest.er1
37771   cat conftest.err >&5
37772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37773   (exit $ac_status); } && {
37774          test -z "$ac_c_werror_flag" ||
37775          test ! -s conftest.err
37776        } && test -s conftest.$ac_objext; then
37777
37778           cat >>confdefs.h <<\_ACEOF
37779 #define HAVE_U_INT64_T 1
37780 _ACEOF
37781
37782           cat >>confdefs.h <<\_ACEOF
37783 #define HAVE_INT64_T 1
37784 _ACEOF
37785
37786           { echo "$as_me:$LINENO: result: yes" >&5
37787 echo "${ECHO_T}yes" >&6; }
37788
37789 else
37790   echo "$as_me: failed program was:" >&5
37791 sed 's/^/| /' conftest.$ac_ext >&5
37792
37793
37794           { echo "$as_me:$LINENO: result: no" >&5
37795 echo "${ECHO_T}no" >&6; }
37796
37797
37798 fi
37799
37800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37801 fi
37802
37803 if (test -z "$have_uintxx_t" && \
37804     test "x$ac_cv_header_sys_bitypes_h" = "xyes")
37805 then
37806    { echo "$as_me:$LINENO: checking for uintXX_t types in sys/bitypes.h" >&5
37807 echo $ECHO_N "checking for uintXX_t types in sys/bitypes.h... $ECHO_C" >&6; }
37808    cat >conftest.$ac_ext <<_ACEOF
37809 /* confdefs.h.  */
37810 _ACEOF
37811 cat confdefs.h >>conftest.$ac_ext
37812 cat >>conftest.$ac_ext <<_ACEOF
37813 /* end confdefs.h.  */
37814
37815           #include <sys/bitypes.h>
37816
37817 int
37818 main ()
37819 {
37820
37821           uint8_t a; uint16_t b;
37822           uint32_t c; a = b = c = 1;
37823
37824   ;
37825   return 0;
37826 }
37827 _ACEOF
37828 rm -f conftest.$ac_objext
37829 if { (ac_try="$ac_compile"
37830 case "(($ac_try" in
37831   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37832   *) ac_try_echo=$ac_try;;
37833 esac
37834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37835   (eval "$ac_compile") 2>conftest.er1
37836   ac_status=$?
37837   grep -v '^ *+' conftest.er1 >conftest.err
37838   rm -f conftest.er1
37839   cat conftest.err >&5
37840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37841   (exit $ac_status); } && {
37842          test -z "$ac_c_werror_flag" ||
37843          test ! -s conftest.err
37844        } && test -s conftest.$ac_objext; then
37845
37846           cat >>confdefs.h <<\_ACEOF
37847 #define HAVE_UINTXX_T 1
37848 _ACEOF
37849
37850           { echo "$as_me:$LINENO: result: yes" >&5
37851 echo "${ECHO_T}yes" >&6; }
37852
37853 else
37854   echo "$as_me: failed program was:" >&5
37855 sed 's/^/| /' conftest.$ac_ext >&5
37856
37857
37858           { echo "$as_me:$LINENO: result: no" >&5
37859 echo "${ECHO_T}no" >&6; }
37860
37861
37862 fi
37863
37864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37865 fi
37866
37867
37868
37869
37870
37871
37872
37873
37874
37875
37876
37877
37878
37879
37880 for ac_func in \
37881    fork \
37882    getcwd \
37883    gethostname \
37884    getpid \
37885    gettimeofday \
37886    setpgid \
37887    setpgrp \
37888    setsid \
37889    signal \
37890    strerror \
37891    strncmp \
37892    strncpy \
37893    vfprintf \
37894
37895 do
37896 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37897 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37898 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37899 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37900   echo $ECHO_N "(cached) $ECHO_C" >&6
37901 else
37902   cat >conftest.$ac_ext <<_ACEOF
37903 /* confdefs.h.  */
37904 _ACEOF
37905 cat confdefs.h >>conftest.$ac_ext
37906 cat >>conftest.$ac_ext <<_ACEOF
37907 /* end confdefs.h.  */
37908 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37909    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37910 #define $ac_func innocuous_$ac_func
37911
37912 /* System header to define __stub macros and hopefully few prototypes,
37913     which can conflict with char $ac_func (); below.
37914     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37915     <limits.h> exists even on freestanding compilers.  */
37916
37917 #ifdef __STDC__
37918 # include <limits.h>
37919 #else
37920 # include <assert.h>
37921 #endif
37922
37923 #undef $ac_func
37924
37925 /* Override any GCC internal prototype to avoid an error.
37926    Use char because int might match the return type of a GCC
37927    builtin and then its argument prototype would still apply.  */
37928 #ifdef __cplusplus
37929 extern "C"
37930 #endif
37931 char $ac_func ();
37932 /* The GNU C library defines this for functions which it implements
37933     to always fail with ENOSYS.  Some functions are actually named
37934     something starting with __ and the normal name is an alias.  */
37935 #if defined __stub_$ac_func || defined __stub___$ac_func
37936 choke me
37937 #endif
37938
37939 int
37940 main ()
37941 {
37942 return $ac_func ();
37943   ;
37944   return 0;
37945 }
37946 _ACEOF
37947 rm -f conftest.$ac_objext conftest$ac_exeext
37948 if { (ac_try="$ac_link"
37949 case "(($ac_try" in
37950   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37951   *) ac_try_echo=$ac_try;;
37952 esac
37953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37954   (eval "$ac_link") 2>conftest.er1
37955   ac_status=$?
37956   grep -v '^ *+' conftest.er1 >conftest.err
37957   rm -f conftest.er1
37958   cat conftest.err >&5
37959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37960   (exit $ac_status); } && {
37961          test -z "$ac_c_werror_flag" ||
37962          test ! -s conftest.err
37963        } && test -s conftest$ac_exeext &&
37964        $as_test_x conftest$ac_exeext; then
37965   eval "$as_ac_var=yes"
37966 else
37967   echo "$as_me: failed program was:" >&5
37968 sed 's/^/| /' conftest.$ac_ext >&5
37969
37970         eval "$as_ac_var=no"
37971 fi
37972
37973 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37974       conftest$ac_exeext conftest.$ac_ext
37975 fi
37976 ac_res=`eval echo '${'$as_ac_var'}'`
37977                { echo "$as_me:$LINENO: result: $ac_res" >&5
37978 echo "${ECHO_T}$ac_res" >&6; }
37979 if test `eval echo '${'$as_ac_var'}'` = yes; then
37980   cat >>confdefs.h <<_ACEOF
37981 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37982 _ACEOF
37983
37984 else
37985   echo 'configure: cannot find needed function.'; exit 1
37986
37987 fi
37988 done
37989
37990
37991
37992 for ac_func in fchdir
37993 do
37994 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37995 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37996 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37997 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37998   echo $ECHO_N "(cached) $ECHO_C" >&6
37999 else
38000   cat >conftest.$ac_ext <<_ACEOF
38001 /* confdefs.h.  */
38002 _ACEOF
38003 cat confdefs.h >>conftest.$ac_ext
38004 cat >>conftest.$ac_ext <<_ACEOF
38005 /* end confdefs.h.  */
38006 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38007    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38008 #define $ac_func innocuous_$ac_func
38009
38010 /* System header to define __stub macros and hopefully few prototypes,
38011     which can conflict with char $ac_func (); below.
38012     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38013     <limits.h> exists even on freestanding compilers.  */
38014
38015 #ifdef __STDC__
38016 # include <limits.h>
38017 #else
38018 # include <assert.h>
38019 #endif
38020
38021 #undef $ac_func
38022
38023 /* Override any GCC internal prototype to avoid an error.
38024    Use char because int might match the return type of a GCC
38025    builtin and then its argument prototype would still apply.  */
38026 #ifdef __cplusplus
38027 extern "C"
38028 #endif
38029 char $ac_func ();
38030 /* The GNU C library defines this for functions which it implements
38031     to always fail with ENOSYS.  Some functions are actually named
38032     something starting with __ and the normal name is an alias.  */
38033 #if defined __stub_$ac_func || defined __stub___$ac_func
38034 choke me
38035 #endif
38036
38037 int
38038 main ()
38039 {
38040 return $ac_func ();
38041   ;
38042   return 0;
38043 }
38044 _ACEOF
38045 rm -f conftest.$ac_objext conftest$ac_exeext
38046 if { (ac_try="$ac_link"
38047 case "(($ac_try" in
38048   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38049   *) ac_try_echo=$ac_try;;
38050 esac
38051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38052   (eval "$ac_link") 2>conftest.er1
38053   ac_status=$?
38054   grep -v '^ *+' conftest.er1 >conftest.err
38055   rm -f conftest.er1
38056   cat conftest.err >&5
38057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38058   (exit $ac_status); } && {
38059          test -z "$ac_c_werror_flag" ||
38060          test ! -s conftest.err
38061        } && test -s conftest$ac_exeext &&
38062        $as_test_x conftest$ac_exeext; then
38063   eval "$as_ac_var=yes"
38064 else
38065   echo "$as_me: failed program was:" >&5
38066 sed 's/^/| /' conftest.$ac_ext >&5
38067
38068         eval "$as_ac_var=no"
38069 fi
38070
38071 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38072       conftest$ac_exeext conftest.$ac_ext
38073 fi
38074 ac_res=`eval echo '${'$as_ac_var'}'`
38075                { echo "$as_me:$LINENO: result: $ac_res" >&5
38076 echo "${ECHO_T}$ac_res" >&6; }
38077 if test `eval echo '${'$as_ac_var'}'` = yes; then
38078   cat >>confdefs.h <<_ACEOF
38079 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38080 _ACEOF
38081  cat >>confdefs.h <<\_ACEOF
38082 #define HAVE_FCHDIR 1
38083 _ACEOF
38084
38085 fi
38086 done
38087
38088
38089 for ac_func in strtoll
38090 do
38091 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38092 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38093 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38094 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38095   echo $ECHO_N "(cached) $ECHO_C" >&6
38096 else
38097   cat >conftest.$ac_ext <<_ACEOF
38098 /* confdefs.h.  */
38099 _ACEOF
38100 cat confdefs.h >>conftest.$ac_ext
38101 cat >>conftest.$ac_ext <<_ACEOF
38102 /* end confdefs.h.  */
38103 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38104    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38105 #define $ac_func innocuous_$ac_func
38106
38107 /* System header to define __stub macros and hopefully few prototypes,
38108     which can conflict with char $ac_func (); below.
38109     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38110     <limits.h> exists even on freestanding compilers.  */
38111
38112 #ifdef __STDC__
38113 # include <limits.h>
38114 #else
38115 # include <assert.h>
38116 #endif
38117
38118 #undef $ac_func
38119
38120 /* Override any GCC internal prototype to avoid an error.
38121    Use char because int might match the return type of a GCC
38122    builtin and then its argument prototype would still apply.  */
38123 #ifdef __cplusplus
38124 extern "C"
38125 #endif
38126 char $ac_func ();
38127 /* The GNU C library defines this for functions which it implements
38128     to always fail with ENOSYS.  Some functions are actually named
38129     something starting with __ and the normal name is an alias.  */
38130 #if defined __stub_$ac_func || defined __stub___$ac_func
38131 choke me
38132 #endif
38133
38134 int
38135 main ()
38136 {
38137 return $ac_func ();
38138   ;
38139   return 0;
38140 }
38141 _ACEOF
38142 rm -f conftest.$ac_objext conftest$ac_exeext
38143 if { (ac_try="$ac_link"
38144 case "(($ac_try" in
38145   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38146   *) ac_try_echo=$ac_try;;
38147 esac
38148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38149   (eval "$ac_link") 2>conftest.er1
38150   ac_status=$?
38151   grep -v '^ *+' conftest.er1 >conftest.err
38152   rm -f conftest.er1
38153   cat conftest.err >&5
38154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38155   (exit $ac_status); } && {
38156          test -z "$ac_c_werror_flag" ||
38157          test ! -s conftest.err
38158        } && test -s conftest$ac_exeext &&
38159        $as_test_x conftest$ac_exeext; then
38160   eval "$as_ac_var=yes"
38161 else
38162   echo "$as_me: failed program was:" >&5
38163 sed 's/^/| /' conftest.$ac_ext >&5
38164
38165         eval "$as_ac_var=no"
38166 fi
38167
38168 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38169       conftest$ac_exeext conftest.$ac_ext
38170 fi
38171 ac_res=`eval echo '${'$as_ac_var'}'`
38172                { echo "$as_me:$LINENO: result: $ac_res" >&5
38173 echo "${ECHO_T}$ac_res" >&6; }
38174 if test `eval echo '${'$as_ac_var'}'` = yes; then
38175   cat >>confdefs.h <<_ACEOF
38176 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38177 _ACEOF
38178  cat >>confdefs.h <<\_ACEOF
38179 #define HAVE_STRTOLL 1
38180 _ACEOF
38181
38182 fi
38183 done
38184
38185
38186 for ac_func in posix_fadvise
38187 do
38188 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38189 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38190 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38191 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38192   echo $ECHO_N "(cached) $ECHO_C" >&6
38193 else
38194   cat >conftest.$ac_ext <<_ACEOF
38195 /* confdefs.h.  */
38196 _ACEOF
38197 cat confdefs.h >>conftest.$ac_ext
38198 cat >>conftest.$ac_ext <<_ACEOF
38199 /* end confdefs.h.  */
38200 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38201    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38202 #define $ac_func innocuous_$ac_func
38203
38204 /* System header to define __stub macros and hopefully few prototypes,
38205     which can conflict with char $ac_func (); below.
38206     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38207     <limits.h> exists even on freestanding compilers.  */
38208
38209 #ifdef __STDC__
38210 # include <limits.h>
38211 #else
38212 # include <assert.h>
38213 #endif
38214
38215 #undef $ac_func
38216
38217 /* Override any GCC internal prototype to avoid an error.
38218    Use char because int might match the return type of a GCC
38219    builtin and then its argument prototype would still apply.  */
38220 #ifdef __cplusplus
38221 extern "C"
38222 #endif
38223 char $ac_func ();
38224 /* The GNU C library defines this for functions which it implements
38225     to always fail with ENOSYS.  Some functions are actually named
38226     something starting with __ and the normal name is an alias.  */
38227 #if defined __stub_$ac_func || defined __stub___$ac_func
38228 choke me
38229 #endif
38230
38231 int
38232 main ()
38233 {
38234 return $ac_func ();
38235   ;
38236   return 0;
38237 }
38238 _ACEOF
38239 rm -f conftest.$ac_objext conftest$ac_exeext
38240 if { (ac_try="$ac_link"
38241 case "(($ac_try" in
38242   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38243   *) ac_try_echo=$ac_try;;
38244 esac
38245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38246   (eval "$ac_link") 2>conftest.er1
38247   ac_status=$?
38248   grep -v '^ *+' conftest.er1 >conftest.err
38249   rm -f conftest.er1
38250   cat conftest.err >&5
38251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38252   (exit $ac_status); } && {
38253          test -z "$ac_c_werror_flag" ||
38254          test ! -s conftest.err
38255        } && test -s conftest$ac_exeext &&
38256        $as_test_x conftest$ac_exeext; then
38257   eval "$as_ac_var=yes"
38258 else
38259   echo "$as_me: failed program was:" >&5
38260 sed 's/^/| /' conftest.$ac_ext >&5
38261
38262         eval "$as_ac_var=no"
38263 fi
38264
38265 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38266       conftest$ac_exeext conftest.$ac_ext
38267 fi
38268 ac_res=`eval echo '${'$as_ac_var'}'`
38269                { echo "$as_me:$LINENO: result: $ac_res" >&5
38270 echo "${ECHO_T}$ac_res" >&6; }
38271 if test `eval echo '${'$as_ac_var'}'` = yes; then
38272   cat >>confdefs.h <<_ACEOF
38273 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38274 _ACEOF
38275
38276 fi
38277 done
38278
38279
38280 for ac_func in fdatasync
38281 do
38282 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38283 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38284 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38285 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38286   echo $ECHO_N "(cached) $ECHO_C" >&6
38287 else
38288   cat >conftest.$ac_ext <<_ACEOF
38289 /* confdefs.h.  */
38290 _ACEOF
38291 cat confdefs.h >>conftest.$ac_ext
38292 cat >>conftest.$ac_ext <<_ACEOF
38293 /* end confdefs.h.  */
38294 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38295    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38296 #define $ac_func innocuous_$ac_func
38297
38298 /* System header to define __stub macros and hopefully few prototypes,
38299     which can conflict with char $ac_func (); below.
38300     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38301     <limits.h> exists even on freestanding compilers.  */
38302
38303 #ifdef __STDC__
38304 # include <limits.h>
38305 #else
38306 # include <assert.h>
38307 #endif
38308
38309 #undef $ac_func
38310
38311 /* Override any GCC internal prototype to avoid an error.
38312    Use char because int might match the return type of a GCC
38313    builtin and then its argument prototype would still apply.  */
38314 #ifdef __cplusplus
38315 extern "C"
38316 #endif
38317 char $ac_func ();
38318 /* The GNU C library defines this for functions which it implements
38319     to always fail with ENOSYS.  Some functions are actually named
38320     something starting with __ and the normal name is an alias.  */
38321 #if defined __stub_$ac_func || defined __stub___$ac_func
38322 choke me
38323 #endif
38324
38325 int
38326 main ()
38327 {
38328 return $ac_func ();
38329   ;
38330   return 0;
38331 }
38332 _ACEOF
38333 rm -f conftest.$ac_objext conftest$ac_exeext
38334 if { (ac_try="$ac_link"
38335 case "(($ac_try" in
38336   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38337   *) ac_try_echo=$ac_try;;
38338 esac
38339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38340   (eval "$ac_link") 2>conftest.er1
38341   ac_status=$?
38342   grep -v '^ *+' conftest.er1 >conftest.err
38343   rm -f conftest.er1
38344   cat conftest.err >&5
38345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38346   (exit $ac_status); } && {
38347          test -z "$ac_c_werror_flag" ||
38348          test ! -s conftest.err
38349        } && test -s conftest$ac_exeext &&
38350        $as_test_x conftest$ac_exeext; then
38351   eval "$as_ac_var=yes"
38352 else
38353   echo "$as_me: failed program was:" >&5
38354 sed 's/^/| /' conftest.$ac_ext >&5
38355
38356         eval "$as_ac_var=no"
38357 fi
38358
38359 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38360       conftest$ac_exeext conftest.$ac_ext
38361 fi
38362 ac_res=`eval echo '${'$as_ac_var'}'`
38363                { echo "$as_me:$LINENO: result: $ac_res" >&5
38364 echo "${ECHO_T}$ac_res" >&6; }
38365 if test `eval echo '${'$as_ac_var'}'` = yes; then
38366   cat >>confdefs.h <<_ACEOF
38367 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38368 _ACEOF
38369
38370 fi
38371 done
38372
38373
38374
38375 for ac_func in chflags
38376 do
38377 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38378 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38379 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38380 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38381   echo $ECHO_N "(cached) $ECHO_C" >&6
38382 else
38383   cat >conftest.$ac_ext <<_ACEOF
38384 /* confdefs.h.  */
38385 _ACEOF
38386 cat confdefs.h >>conftest.$ac_ext
38387 cat >>conftest.$ac_ext <<_ACEOF
38388 /* end confdefs.h.  */
38389 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38390    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38391 #define $ac_func innocuous_$ac_func
38392
38393 /* System header to define __stub macros and hopefully few prototypes,
38394     which can conflict with char $ac_func (); below.
38395     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38396     <limits.h> exists even on freestanding compilers.  */
38397
38398 #ifdef __STDC__
38399 # include <limits.h>
38400 #else
38401 # include <assert.h>
38402 #endif
38403
38404 #undef $ac_func
38405
38406 /* Override any GCC internal prototype to avoid an error.
38407    Use char because int might match the return type of a GCC
38408    builtin and then its argument prototype would still apply.  */
38409 #ifdef __cplusplus
38410 extern "C"
38411 #endif
38412 char $ac_func ();
38413 /* The GNU C library defines this for functions which it implements
38414     to always fail with ENOSYS.  Some functions are actually named
38415     something starting with __ and the normal name is an alias.  */
38416 #if defined __stub_$ac_func || defined __stub___$ac_func
38417 choke me
38418 #endif
38419
38420 int
38421 main ()
38422 {
38423 return $ac_func ();
38424   ;
38425   return 0;
38426 }
38427 _ACEOF
38428 rm -f conftest.$ac_objext conftest$ac_exeext
38429 if { (ac_try="$ac_link"
38430 case "(($ac_try" in
38431   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38432   *) ac_try_echo=$ac_try;;
38433 esac
38434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38435   (eval "$ac_link") 2>conftest.er1
38436   ac_status=$?
38437   grep -v '^ *+' conftest.er1 >conftest.err
38438   rm -f conftest.er1
38439   cat conftest.err >&5
38440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38441   (exit $ac_status); } && {
38442          test -z "$ac_c_werror_flag" ||
38443          test ! -s conftest.err
38444        } && test -s conftest$ac_exeext &&
38445        $as_test_x conftest$ac_exeext; then
38446   eval "$as_ac_var=yes"
38447 else
38448   echo "$as_me: failed program was:" >&5
38449 sed 's/^/| /' conftest.$ac_ext >&5
38450
38451         eval "$as_ac_var=no"
38452 fi
38453
38454 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38455       conftest$ac_exeext conftest.$ac_ext
38456 fi
38457 ac_res=`eval echo '${'$as_ac_var'}'`
38458                { echo "$as_me:$LINENO: result: $ac_res" >&5
38459 echo "${ECHO_T}$ac_res" >&6; }
38460 if test `eval echo '${'$as_ac_var'}'` = yes; then
38461   cat >>confdefs.h <<_ACEOF
38462 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38463 _ACEOF
38464
38465 fi
38466 done
38467
38468
38469
38470
38471
38472
38473 for ac_func in snprintf vsnprintf gethostid fseeko
38474 do
38475 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38476 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38477 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38478 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38479   echo $ECHO_N "(cached) $ECHO_C" >&6
38480 else
38481   cat >conftest.$ac_ext <<_ACEOF
38482 /* confdefs.h.  */
38483 _ACEOF
38484 cat confdefs.h >>conftest.$ac_ext
38485 cat >>conftest.$ac_ext <<_ACEOF
38486 /* end confdefs.h.  */
38487 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38488    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38489 #define $ac_func innocuous_$ac_func
38490
38491 /* System header to define __stub macros and hopefully few prototypes,
38492     which can conflict with char $ac_func (); below.
38493     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38494     <limits.h> exists even on freestanding compilers.  */
38495
38496 #ifdef __STDC__
38497 # include <limits.h>
38498 #else
38499 # include <assert.h>
38500 #endif
38501
38502 #undef $ac_func
38503
38504 /* Override any GCC internal prototype to avoid an error.
38505    Use char because int might match the return type of a GCC
38506    builtin and then its argument prototype would still apply.  */
38507 #ifdef __cplusplus
38508 extern "C"
38509 #endif
38510 char $ac_func ();
38511 /* The GNU C library defines this for functions which it implements
38512     to always fail with ENOSYS.  Some functions are actually named
38513     something starting with __ and the normal name is an alias.  */
38514 #if defined __stub_$ac_func || defined __stub___$ac_func
38515 choke me
38516 #endif
38517
38518 int
38519 main ()
38520 {
38521 return $ac_func ();
38522   ;
38523   return 0;
38524 }
38525 _ACEOF
38526 rm -f conftest.$ac_objext conftest$ac_exeext
38527 if { (ac_try="$ac_link"
38528 case "(($ac_try" in
38529   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38530   *) ac_try_echo=$ac_try;;
38531 esac
38532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38533   (eval "$ac_link") 2>conftest.er1
38534   ac_status=$?
38535   grep -v '^ *+' conftest.er1 >conftest.err
38536   rm -f conftest.er1
38537   cat conftest.err >&5
38538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38539   (exit $ac_status); } && {
38540          test -z "$ac_c_werror_flag" ||
38541          test ! -s conftest.err
38542        } && test -s conftest$ac_exeext &&
38543        $as_test_x conftest$ac_exeext; then
38544   eval "$as_ac_var=yes"
38545 else
38546   echo "$as_me: failed program was:" >&5
38547 sed 's/^/| /' conftest.$ac_ext >&5
38548
38549         eval "$as_ac_var=no"
38550 fi
38551
38552 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38553       conftest$ac_exeext conftest.$ac_ext
38554 fi
38555 ac_res=`eval echo '${'$as_ac_var'}'`
38556                { echo "$as_me:$LINENO: result: $ac_res" >&5
38557 echo "${ECHO_T}$ac_res" >&6; }
38558 if test `eval echo '${'$as_ac_var'}'` = yes; then
38559   cat >>confdefs.h <<_ACEOF
38560 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38561 _ACEOF
38562
38563 fi
38564 done
38565
38566
38567 { echo "$as_me:$LINENO: checking for va_copy" >&5
38568 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6; }
38569 if test "${ba_cv_va_copy+set}" = set; then
38570   echo $ECHO_N "(cached) $ECHO_C" >&6
38571 else
38572
38573        cat >conftest.$ac_ext <<_ACEOF
38574 /* confdefs.h.  */
38575 _ACEOF
38576 cat confdefs.h >>conftest.$ac_ext
38577 cat >>conftest.$ac_ext <<_ACEOF
38578 /* end confdefs.h.  */
38579
38580               #include <stdarg.h>
38581               void use_va_copy(va_list args){va_list args2; va_copy(args2,args); va_end(args2);}
38582               void call_use_va_copy(int junk,...){va_list args; va_start(args,junk); use_va_copy(args); va_end(args);}
38583
38584 int
38585 main ()
38586 {
38587
38588               call_use_va_copy(1,2,3)
38589
38590   ;
38591   return 0;
38592 }
38593 _ACEOF
38594 rm -f conftest.$ac_objext conftest$ac_exeext
38595 if { (ac_try="$ac_link"
38596 case "(($ac_try" in
38597   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38598   *) ac_try_echo=$ac_try;;
38599 esac
38600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38601   (eval "$ac_link") 2>conftest.er1
38602   ac_status=$?
38603   grep -v '^ *+' conftest.er1 >conftest.err
38604   rm -f conftest.er1
38605   cat conftest.err >&5
38606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38607   (exit $ac_status); } && {
38608          test -z "$ac_c_werror_flag" ||
38609          test ! -s conftest.err
38610        } && test -s conftest$ac_exeext &&
38611        $as_test_x conftest$ac_exeext; then
38612
38613               ba_cv_va_copy=yes,
38614
38615 else
38616   echo "$as_me: failed program was:" >&5
38617 sed 's/^/| /' conftest.$ac_ext >&5
38618
38619
38620               ba_cv_va_copy=no
38621
38622
38623 fi
38624
38625 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38626       conftest$ac_exeext conftest.$ac_ext
38627
38628
38629 fi
38630 { echo "$as_me:$LINENO: result: $ba_cv_va_copy" >&5
38631 echo "${ECHO_T}$ba_cv_va_copy" >&6; }
38632 test $ba_cv_va_copy = yes &&
38633 cat >>confdefs.h <<\_ACEOF
38634 #define HAVE_VA_COPY 1
38635 _ACEOF
38636
38637
38638
38639
38640
38641
38642 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
38643 do
38644 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38645 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38646 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38647 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38648   echo $ECHO_N "(cached) $ECHO_C" >&6
38649 else
38650   cat >conftest.$ac_ext <<_ACEOF
38651 /* confdefs.h.  */
38652 _ACEOF
38653 cat confdefs.h >>conftest.$ac_ext
38654 cat >>conftest.$ac_ext <<_ACEOF
38655 /* end confdefs.h.  */
38656 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38657    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38658 #define $ac_func innocuous_$ac_func
38659
38660 /* System header to define __stub macros and hopefully few prototypes,
38661     which can conflict with char $ac_func (); below.
38662     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38663     <limits.h> exists even on freestanding compilers.  */
38664
38665 #ifdef __STDC__
38666 # include <limits.h>
38667 #else
38668 # include <assert.h>
38669 #endif
38670
38671 #undef $ac_func
38672
38673 /* Override any GCC internal prototype to avoid an error.
38674    Use char because int might match the return type of a GCC
38675    builtin and then its argument prototype would still apply.  */
38676 #ifdef __cplusplus
38677 extern "C"
38678 #endif
38679 char $ac_func ();
38680 /* The GNU C library defines this for functions which it implements
38681     to always fail with ENOSYS.  Some functions are actually named
38682     something starting with __ and the normal name is an alias.  */
38683 #if defined __stub_$ac_func || defined __stub___$ac_func
38684 choke me
38685 #endif
38686
38687 int
38688 main ()
38689 {
38690 return $ac_func ();
38691   ;
38692   return 0;
38693 }
38694 _ACEOF
38695 rm -f conftest.$ac_objext conftest$ac_exeext
38696 if { (ac_try="$ac_link"
38697 case "(($ac_try" in
38698   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38699   *) ac_try_echo=$ac_try;;
38700 esac
38701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38702   (eval "$ac_link") 2>conftest.er1
38703   ac_status=$?
38704   grep -v '^ *+' conftest.er1 >conftest.err
38705   rm -f conftest.er1
38706   cat conftest.err >&5
38707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38708   (exit $ac_status); } && {
38709          test -z "$ac_c_werror_flag" ||
38710          test ! -s conftest.err
38711        } && test -s conftest$ac_exeext &&
38712        $as_test_x conftest$ac_exeext; then
38713   eval "$as_ac_var=yes"
38714 else
38715   echo "$as_me: failed program was:" >&5
38716 sed 's/^/| /' conftest.$ac_ext >&5
38717
38718         eval "$as_ac_var=no"
38719 fi
38720
38721 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38722       conftest$ac_exeext conftest.$ac_ext
38723 fi
38724 ac_res=`eval echo '${'$as_ac_var'}'`
38725                { echo "$as_me:$LINENO: result: $ac_res" >&5
38726 echo "${ECHO_T}$ac_res" >&6; }
38727 if test `eval echo '${'$as_ac_var'}'` = yes; then
38728   cat >>confdefs.h <<_ACEOF
38729 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38730 _ACEOF
38731
38732 fi
38733 done
38734
38735
38736 # If resolver functions are not in libc check for -lnsl or -lresolv.
38737 { echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
38738 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6; }
38739 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
38740   echo $ECHO_N "(cached) $ECHO_C" >&6
38741 else
38742   cat >conftest.$ac_ext <<_ACEOF
38743 /* confdefs.h.  */
38744 _ACEOF
38745 cat confdefs.h >>conftest.$ac_ext
38746 cat >>conftest.$ac_ext <<_ACEOF
38747 /* end confdefs.h.  */
38748 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
38749    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38750 #define gethostbyname_r innocuous_gethostbyname_r
38751
38752 /* System header to define __stub macros and hopefully few prototypes,
38753     which can conflict with char gethostbyname_r (); below.
38754     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38755     <limits.h> exists even on freestanding compilers.  */
38756
38757 #ifdef __STDC__
38758 # include <limits.h>
38759 #else
38760 # include <assert.h>
38761 #endif
38762
38763 #undef gethostbyname_r
38764
38765 /* Override any GCC internal prototype to avoid an error.
38766    Use char because int might match the return type of a GCC
38767    builtin and then its argument prototype would still apply.  */
38768 #ifdef __cplusplus
38769 extern "C"
38770 #endif
38771 char gethostbyname_r ();
38772 /* The GNU C library defines this for functions which it implements
38773     to always fail with ENOSYS.  Some functions are actually named
38774     something starting with __ and the normal name is an alias.  */
38775 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
38776 choke me
38777 #endif
38778
38779 int
38780 main ()
38781 {
38782 return gethostbyname_r ();
38783   ;
38784   return 0;
38785 }
38786 _ACEOF
38787 rm -f conftest.$ac_objext conftest$ac_exeext
38788 if { (ac_try="$ac_link"
38789 case "(($ac_try" in
38790   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38791   *) ac_try_echo=$ac_try;;
38792 esac
38793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38794   (eval "$ac_link") 2>conftest.er1
38795   ac_status=$?
38796   grep -v '^ *+' conftest.er1 >conftest.err
38797   rm -f conftest.er1
38798   cat conftest.err >&5
38799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38800   (exit $ac_status); } && {
38801          test -z "$ac_c_werror_flag" ||
38802          test ! -s conftest.err
38803        } && test -s conftest$ac_exeext &&
38804        $as_test_x conftest$ac_exeext; then
38805   ac_cv_func_gethostbyname_r=yes
38806 else
38807   echo "$as_me: failed program was:" >&5
38808 sed 's/^/| /' conftest.$ac_ext >&5
38809
38810         ac_cv_func_gethostbyname_r=no
38811 fi
38812
38813 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38814       conftest$ac_exeext conftest.$ac_ext
38815 fi
38816 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
38817 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6; }
38818 if test $ac_cv_func_gethostbyname_r = yes; then
38819   { echo "$as_me:$LINENO: result: using libc's resolver" >&5
38820 echo "${ECHO_T}using libc's resolver" >&6; }
38821 else
38822
38823 { echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
38824 echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6; }
38825 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
38826   echo $ECHO_N "(cached) $ECHO_C" >&6
38827 else
38828   ac_check_lib_save_LIBS=$LIBS
38829 LIBS="-lnsl  $LIBS"
38830 cat >conftest.$ac_ext <<_ACEOF
38831 /* confdefs.h.  */
38832 _ACEOF
38833 cat confdefs.h >>conftest.$ac_ext
38834 cat >>conftest.$ac_ext <<_ACEOF
38835 /* end confdefs.h.  */
38836
38837 /* Override any GCC internal prototype to avoid an error.
38838    Use char because int might match the return type of a GCC
38839    builtin and then its argument prototype would still apply.  */
38840 #ifdef __cplusplus
38841 extern "C"
38842 #endif
38843 char gethostbyname_r ();
38844 int
38845 main ()
38846 {
38847 return gethostbyname_r ();
38848   ;
38849   return 0;
38850 }
38851 _ACEOF
38852 rm -f conftest.$ac_objext conftest$ac_exeext
38853 if { (ac_try="$ac_link"
38854 case "(($ac_try" in
38855   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38856   *) ac_try_echo=$ac_try;;
38857 esac
38858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38859   (eval "$ac_link") 2>conftest.er1
38860   ac_status=$?
38861   grep -v '^ *+' conftest.er1 >conftest.err
38862   rm -f conftest.er1
38863   cat conftest.err >&5
38864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38865   (exit $ac_status); } && {
38866          test -z "$ac_c_werror_flag" ||
38867          test ! -s conftest.err
38868        } && test -s conftest$ac_exeext &&
38869        $as_test_x conftest$ac_exeext; then
38870   ac_cv_lib_nsl_gethostbyname_r=yes
38871 else
38872   echo "$as_me: failed program was:" >&5
38873 sed 's/^/| /' conftest.$ac_ext >&5
38874
38875         ac_cv_lib_nsl_gethostbyname_r=no
38876 fi
38877
38878 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38879       conftest$ac_exeext conftest.$ac_ext
38880 LIBS=$ac_check_lib_save_LIBS
38881 fi
38882 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
38883 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6; }
38884 if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
38885   cat >>confdefs.h <<_ACEOF
38886 #define HAVE_LIBNSL 1
38887 _ACEOF
38888
38889   LIBS="-lnsl $LIBS"
38890
38891 fi
38892
38893
38894 { echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
38895 echo $ECHO_N "checking for gethostbyname_r in -lresolv... $ECHO_C" >&6; }
38896 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
38897   echo $ECHO_N "(cached) $ECHO_C" >&6
38898 else
38899   ac_check_lib_save_LIBS=$LIBS
38900 LIBS="-lresolv  $LIBS"
38901 cat >conftest.$ac_ext <<_ACEOF
38902 /* confdefs.h.  */
38903 _ACEOF
38904 cat confdefs.h >>conftest.$ac_ext
38905 cat >>conftest.$ac_ext <<_ACEOF
38906 /* end confdefs.h.  */
38907
38908 /* Override any GCC internal prototype to avoid an error.
38909    Use char because int might match the return type of a GCC
38910    builtin and then its argument prototype would still apply.  */
38911 #ifdef __cplusplus
38912 extern "C"
38913 #endif
38914 char gethostbyname_r ();
38915 int
38916 main ()
38917 {
38918 return gethostbyname_r ();
38919   ;
38920   return 0;
38921 }
38922 _ACEOF
38923 rm -f conftest.$ac_objext conftest$ac_exeext
38924 if { (ac_try="$ac_link"
38925 case "(($ac_try" in
38926   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38927   *) ac_try_echo=$ac_try;;
38928 esac
38929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38930   (eval "$ac_link") 2>conftest.er1
38931   ac_status=$?
38932   grep -v '^ *+' conftest.er1 >conftest.err
38933   rm -f conftest.er1
38934   cat conftest.err >&5
38935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38936   (exit $ac_status); } && {
38937          test -z "$ac_c_werror_flag" ||
38938          test ! -s conftest.err
38939        } && test -s conftest$ac_exeext &&
38940        $as_test_x conftest$ac_exeext; then
38941   ac_cv_lib_resolv_gethostbyname_r=yes
38942 else
38943   echo "$as_me: failed program was:" >&5
38944 sed 's/^/| /' conftest.$ac_ext >&5
38945
38946         ac_cv_lib_resolv_gethostbyname_r=no
38947 fi
38948
38949 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38950       conftest$ac_exeext conftest.$ac_ext
38951 LIBS=$ac_check_lib_save_LIBS
38952 fi
38953 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
38954 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname_r" >&6; }
38955 if test $ac_cv_lib_resolv_gethostbyname_r = yes; then
38956   cat >>confdefs.h <<_ACEOF
38957 #define HAVE_LIBRESOLV 1
38958 _ACEOF
38959
38960   LIBS="-lresolv $LIBS"
38961
38962 fi
38963
38964 fi
38965
38966
38967
38968 for ac_func in inet_pton
38969 do
38970 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38971 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38972 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38973 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38974   echo $ECHO_N "(cached) $ECHO_C" >&6
38975 else
38976   cat >conftest.$ac_ext <<_ACEOF
38977 /* confdefs.h.  */
38978 _ACEOF
38979 cat confdefs.h >>conftest.$ac_ext
38980 cat >>conftest.$ac_ext <<_ACEOF
38981 /* end confdefs.h.  */
38982 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38983    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38984 #define $ac_func innocuous_$ac_func
38985
38986 /* System header to define __stub macros and hopefully few prototypes,
38987     which can conflict with char $ac_func (); below.
38988     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38989     <limits.h> exists even on freestanding compilers.  */
38990
38991 #ifdef __STDC__
38992 # include <limits.h>
38993 #else
38994 # include <assert.h>
38995 #endif
38996
38997 #undef $ac_func
38998
38999 /* Override any GCC internal prototype to avoid an error.
39000    Use char because int might match the return type of a GCC
39001    builtin and then its argument prototype would still apply.  */
39002 #ifdef __cplusplus
39003 extern "C"
39004 #endif
39005 char $ac_func ();
39006 /* The GNU C library defines this for functions which it implements
39007     to always fail with ENOSYS.  Some functions are actually named
39008     something starting with __ and the normal name is an alias.  */
39009 #if defined __stub_$ac_func || defined __stub___$ac_func
39010 choke me
39011 #endif
39012
39013 int
39014 main ()
39015 {
39016 return $ac_func ();
39017   ;
39018   return 0;
39019 }
39020 _ACEOF
39021 rm -f conftest.$ac_objext conftest$ac_exeext
39022 if { (ac_try="$ac_link"
39023 case "(($ac_try" in
39024   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39025   *) ac_try_echo=$ac_try;;
39026 esac
39027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39028   (eval "$ac_link") 2>conftest.er1
39029   ac_status=$?
39030   grep -v '^ *+' conftest.er1 >conftest.err
39031   rm -f conftest.er1
39032   cat conftest.err >&5
39033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39034   (exit $ac_status); } && {
39035          test -z "$ac_c_werror_flag" ||
39036          test ! -s conftest.err
39037        } && test -s conftest$ac_exeext &&
39038        $as_test_x conftest$ac_exeext; then
39039   eval "$as_ac_var=yes"
39040 else
39041   echo "$as_me: failed program was:" >&5
39042 sed 's/^/| /' conftest.$ac_ext >&5
39043
39044         eval "$as_ac_var=no"
39045 fi
39046
39047 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39048       conftest$ac_exeext conftest.$ac_ext
39049 fi
39050 ac_res=`eval echo '${'$as_ac_var'}'`
39051                { echo "$as_me:$LINENO: result: $ac_res" >&5
39052 echo "${ECHO_T}$ac_res" >&6; }
39053 if test `eval echo '${'$as_ac_var'}'` = yes; then
39054   cat >>confdefs.h <<_ACEOF
39055 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39056 _ACEOF
39057  cat >>confdefs.h <<\_ACEOF
39058 #define HAVE_INET_PTON 1
39059 _ACEOF
39060
39061 fi
39062 done
39063
39064
39065 for ac_func in inet_ntop
39066 do
39067 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39068 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39069 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39070 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39071   echo $ECHO_N "(cached) $ECHO_C" >&6
39072 else
39073   cat >conftest.$ac_ext <<_ACEOF
39074 /* confdefs.h.  */
39075 _ACEOF
39076 cat confdefs.h >>conftest.$ac_ext
39077 cat >>conftest.$ac_ext <<_ACEOF
39078 /* end confdefs.h.  */
39079 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39080    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39081 #define $ac_func innocuous_$ac_func
39082
39083 /* System header to define __stub macros and hopefully few prototypes,
39084     which can conflict with char $ac_func (); below.
39085     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39086     <limits.h> exists even on freestanding compilers.  */
39087
39088 #ifdef __STDC__
39089 # include <limits.h>
39090 #else
39091 # include <assert.h>
39092 #endif
39093
39094 #undef $ac_func
39095
39096 /* Override any GCC internal prototype to avoid an error.
39097    Use char because int might match the return type of a GCC
39098    builtin and then its argument prototype would still apply.  */
39099 #ifdef __cplusplus
39100 extern "C"
39101 #endif
39102 char $ac_func ();
39103 /* The GNU C library defines this for functions which it implements
39104     to always fail with ENOSYS.  Some functions are actually named
39105     something starting with __ and the normal name is an alias.  */
39106 #if defined __stub_$ac_func || defined __stub___$ac_func
39107 choke me
39108 #endif
39109
39110 int
39111 main ()
39112 {
39113 return $ac_func ();
39114   ;
39115   return 0;
39116 }
39117 _ACEOF
39118 rm -f conftest.$ac_objext conftest$ac_exeext
39119 if { (ac_try="$ac_link"
39120 case "(($ac_try" in
39121   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39122   *) ac_try_echo=$ac_try;;
39123 esac
39124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39125   (eval "$ac_link") 2>conftest.er1
39126   ac_status=$?
39127   grep -v '^ *+' conftest.er1 >conftest.err
39128   rm -f conftest.er1
39129   cat conftest.err >&5
39130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39131   (exit $ac_status); } && {
39132          test -z "$ac_c_werror_flag" ||
39133          test ! -s conftest.err
39134        } && test -s conftest$ac_exeext &&
39135        $as_test_x conftest$ac_exeext; then
39136   eval "$as_ac_var=yes"
39137 else
39138   echo "$as_me: failed program was:" >&5
39139 sed 's/^/| /' conftest.$ac_ext >&5
39140
39141         eval "$as_ac_var=no"
39142 fi
39143
39144 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39145       conftest$ac_exeext conftest.$ac_ext
39146 fi
39147 ac_res=`eval echo '${'$as_ac_var'}'`
39148                { echo "$as_me:$LINENO: result: $ac_res" >&5
39149 echo "${ECHO_T}$ac_res" >&6; }
39150 if test `eval echo '${'$as_ac_var'}'` = yes; then
39151   cat >>confdefs.h <<_ACEOF
39152 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39153 _ACEOF
39154  cat >>confdefs.h <<\_ACEOF
39155 #define HAVE_INET_NTOP 1
39156 _ACEOF
39157
39158 fi
39159 done
39160
39161
39162 for ac_func in gethostbyname2
39163 do
39164 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39165 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39166 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39167 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39168   echo $ECHO_N "(cached) $ECHO_C" >&6
39169 else
39170   cat >conftest.$ac_ext <<_ACEOF
39171 /* confdefs.h.  */
39172 _ACEOF
39173 cat confdefs.h >>conftest.$ac_ext
39174 cat >>conftest.$ac_ext <<_ACEOF
39175 /* end confdefs.h.  */
39176 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39177    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39178 #define $ac_func innocuous_$ac_func
39179
39180 /* System header to define __stub macros and hopefully few prototypes,
39181     which can conflict with char $ac_func (); below.
39182     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39183     <limits.h> exists even on freestanding compilers.  */
39184
39185 #ifdef __STDC__
39186 # include <limits.h>
39187 #else
39188 # include <assert.h>
39189 #endif
39190
39191 #undef $ac_func
39192
39193 /* Override any GCC internal prototype to avoid an error.
39194    Use char because int might match the return type of a GCC
39195    builtin and then its argument prototype would still apply.  */
39196 #ifdef __cplusplus
39197 extern "C"
39198 #endif
39199 char $ac_func ();
39200 /* The GNU C library defines this for functions which it implements
39201     to always fail with ENOSYS.  Some functions are actually named
39202     something starting with __ and the normal name is an alias.  */
39203 #if defined __stub_$ac_func || defined __stub___$ac_func
39204 choke me
39205 #endif
39206
39207 int
39208 main ()
39209 {
39210 return $ac_func ();
39211   ;
39212   return 0;
39213 }
39214 _ACEOF
39215 rm -f conftest.$ac_objext conftest$ac_exeext
39216 if { (ac_try="$ac_link"
39217 case "(($ac_try" in
39218   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39219   *) ac_try_echo=$ac_try;;
39220 esac
39221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39222   (eval "$ac_link") 2>conftest.er1
39223   ac_status=$?
39224   grep -v '^ *+' conftest.er1 >conftest.err
39225   rm -f conftest.er1
39226   cat conftest.err >&5
39227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39228   (exit $ac_status); } && {
39229          test -z "$ac_c_werror_flag" ||
39230          test ! -s conftest.err
39231        } && test -s conftest$ac_exeext &&
39232        $as_test_x conftest$ac_exeext; then
39233   eval "$as_ac_var=yes"
39234 else
39235   echo "$as_me: failed program was:" >&5
39236 sed 's/^/| /' conftest.$ac_ext >&5
39237
39238         eval "$as_ac_var=no"
39239 fi
39240
39241 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39242       conftest$ac_exeext conftest.$ac_ext
39243 fi
39244 ac_res=`eval echo '${'$as_ac_var'}'`
39245                { echo "$as_me:$LINENO: result: $ac_res" >&5
39246 echo "${ECHO_T}$ac_res" >&6; }
39247 if test `eval echo '${'$as_ac_var'}'` = yes; then
39248   cat >>confdefs.h <<_ACEOF
39249 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39250 _ACEOF
39251  cat >>confdefs.h <<\_ACEOF
39252 #define HAVE_GETHOSTBYNAME2 1
39253 _ACEOF
39254
39255 fi
39256 done
39257
39258
39259 { echo "$as_me:$LINENO: checking for struct sockaddr has a sa_len field" >&5
39260 echo $ECHO_N "checking for struct sockaddr has a sa_len field... $ECHO_C" >&6; }
39261 if test "${ac_cv_struct_sockaddr_sa_len+set}" = set; then
39262   echo $ECHO_N "(cached) $ECHO_C" >&6
39263 else
39264
39265        cat >conftest.$ac_ext <<_ACEOF
39266 /* confdefs.h.  */
39267 _ACEOF
39268 cat confdefs.h >>conftest.$ac_ext
39269 cat >>conftest.$ac_ext <<_ACEOF
39270 /* end confdefs.h.  */
39271
39272               #include <sys/socket.h>
39273
39274 int
39275 main ()
39276 {
39277
39278               struct sockaddr s; s.sa_len;
39279
39280   ;
39281   return 0;
39282 }
39283 _ACEOF
39284 rm -f conftest.$ac_objext
39285 if { (ac_try="$ac_compile"
39286 case "(($ac_try" in
39287   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39288   *) ac_try_echo=$ac_try;;
39289 esac
39290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39291   (eval "$ac_compile") 2>conftest.er1
39292   ac_status=$?
39293   grep -v '^ *+' conftest.er1 >conftest.err
39294   rm -f conftest.er1
39295   cat conftest.err >&5
39296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39297   (exit $ac_status); } && {
39298          test -z "$ac_c_werror_flag" ||
39299          test ! -s conftest.err
39300        } && test -s conftest.$ac_objext; then
39301
39302              ac_cv_struct_sockaddr_sa_len=yes
39303
39304 else
39305   echo "$as_me: failed program was:" >&5
39306 sed 's/^/| /' conftest.$ac_ext >&5
39307
39308         ac_cv_struct_sockaddr_sa_len=no
39309
39310
39311 fi
39312
39313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39314
39315
39316 fi
39317 { echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_sa_len" >&5
39318 echo "${ECHO_T}$ac_cv_struct_sockaddr_sa_len" >&6; }
39319
39320 if test $ac_cv_struct_sockaddr_sa_len = yes; then
39321
39322 cat >>confdefs.h <<\_ACEOF
39323 #define HAVE_SA_LEN 1
39324 _ACEOF
39325
39326 fi
39327
39328
39329 for ac_func in strftime
39330 do
39331 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39332 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39333 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39334 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39335   echo $ECHO_N "(cached) $ECHO_C" >&6
39336 else
39337   cat >conftest.$ac_ext <<_ACEOF
39338 /* confdefs.h.  */
39339 _ACEOF
39340 cat confdefs.h >>conftest.$ac_ext
39341 cat >>conftest.$ac_ext <<_ACEOF
39342 /* end confdefs.h.  */
39343 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39344    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39345 #define $ac_func innocuous_$ac_func
39346
39347 /* System header to define __stub macros and hopefully few prototypes,
39348     which can conflict with char $ac_func (); below.
39349     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39350     <limits.h> exists even on freestanding compilers.  */
39351
39352 #ifdef __STDC__
39353 # include <limits.h>
39354 #else
39355 # include <assert.h>
39356 #endif
39357
39358 #undef $ac_func
39359
39360 /* Override any GCC internal prototype to avoid an error.
39361    Use char because int might match the return type of a GCC
39362    builtin and then its argument prototype would still apply.  */
39363 #ifdef __cplusplus
39364 extern "C"
39365 #endif
39366 char $ac_func ();
39367 /* The GNU C library defines this for functions which it implements
39368     to always fail with ENOSYS.  Some functions are actually named
39369     something starting with __ and the normal name is an alias.  */
39370 #if defined __stub_$ac_func || defined __stub___$ac_func
39371 choke me
39372 #endif
39373
39374 int
39375 main ()
39376 {
39377 return $ac_func ();
39378   ;
39379   return 0;
39380 }
39381 _ACEOF
39382 rm -f conftest.$ac_objext conftest$ac_exeext
39383 if { (ac_try="$ac_link"
39384 case "(($ac_try" in
39385   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39386   *) ac_try_echo=$ac_try;;
39387 esac
39388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39389   (eval "$ac_link") 2>conftest.er1
39390   ac_status=$?
39391   grep -v '^ *+' conftest.er1 >conftest.err
39392   rm -f conftest.er1
39393   cat conftest.err >&5
39394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39395   (exit $ac_status); } && {
39396          test -z "$ac_c_werror_flag" ||
39397          test ! -s conftest.err
39398        } && test -s conftest$ac_exeext &&
39399        $as_test_x conftest$ac_exeext; then
39400   eval "$as_ac_var=yes"
39401 else
39402   echo "$as_me: failed program was:" >&5
39403 sed 's/^/| /' conftest.$ac_ext >&5
39404
39405         eval "$as_ac_var=no"
39406 fi
39407
39408 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39409       conftest$ac_exeext conftest.$ac_ext
39410 fi
39411 ac_res=`eval echo '${'$as_ac_var'}'`
39412                { echo "$as_me:$LINENO: result: $ac_res" >&5
39413 echo "${ECHO_T}$ac_res" >&6; }
39414 if test `eval echo '${'$as_ac_var'}'` = yes; then
39415   cat >>confdefs.h <<_ACEOF
39416 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39417 _ACEOF
39418
39419 else
39420   # strftime is in -lintl on SCO UNIX.
39421 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
39422 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
39423 if test "${ac_cv_lib_intl_strftime+set}" = set; then
39424   echo $ECHO_N "(cached) $ECHO_C" >&6
39425 else
39426   ac_check_lib_save_LIBS=$LIBS
39427 LIBS="-lintl  $LIBS"
39428 cat >conftest.$ac_ext <<_ACEOF
39429 /* confdefs.h.  */
39430 _ACEOF
39431 cat confdefs.h >>conftest.$ac_ext
39432 cat >>conftest.$ac_ext <<_ACEOF
39433 /* end confdefs.h.  */
39434
39435 /* Override any GCC internal prototype to avoid an error.
39436    Use char because int might match the return type of a GCC
39437    builtin and then its argument prototype would still apply.  */
39438 #ifdef __cplusplus
39439 extern "C"
39440 #endif
39441 char strftime ();
39442 int
39443 main ()
39444 {
39445 return strftime ();
39446   ;
39447   return 0;
39448 }
39449 _ACEOF
39450 rm -f conftest.$ac_objext conftest$ac_exeext
39451 if { (ac_try="$ac_link"
39452 case "(($ac_try" in
39453   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39454   *) ac_try_echo=$ac_try;;
39455 esac
39456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39457   (eval "$ac_link") 2>conftest.er1
39458   ac_status=$?
39459   grep -v '^ *+' conftest.er1 >conftest.err
39460   rm -f conftest.er1
39461   cat conftest.err >&5
39462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39463   (exit $ac_status); } && {
39464          test -z "$ac_c_werror_flag" ||
39465          test ! -s conftest.err
39466        } && test -s conftest$ac_exeext &&
39467        $as_test_x conftest$ac_exeext; then
39468   ac_cv_lib_intl_strftime=yes
39469 else
39470   echo "$as_me: failed program was:" >&5
39471 sed 's/^/| /' conftest.$ac_ext >&5
39472
39473         ac_cv_lib_intl_strftime=no
39474 fi
39475
39476 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39477       conftest$ac_exeext conftest.$ac_ext
39478 LIBS=$ac_check_lib_save_LIBS
39479 fi
39480 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
39481 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
39482 if test $ac_cv_lib_intl_strftime = yes; then
39483   cat >>confdefs.h <<\_ACEOF
39484 #define HAVE_STRFTIME 1
39485 _ACEOF
39486
39487 LIBS="-lintl $LIBS"
39488 fi
39489
39490 fi
39491 done
39492
39493
39494 for ac_func in vprintf
39495 do
39496 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39497 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39498 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39499 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39500   echo $ECHO_N "(cached) $ECHO_C" >&6
39501 else
39502   cat >conftest.$ac_ext <<_ACEOF
39503 /* confdefs.h.  */
39504 _ACEOF
39505 cat confdefs.h >>conftest.$ac_ext
39506 cat >>conftest.$ac_ext <<_ACEOF
39507 /* end confdefs.h.  */
39508 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39509    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39510 #define $ac_func innocuous_$ac_func
39511
39512 /* System header to define __stub macros and hopefully few prototypes,
39513     which can conflict with char $ac_func (); below.
39514     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39515     <limits.h> exists even on freestanding compilers.  */
39516
39517 #ifdef __STDC__
39518 # include <limits.h>
39519 #else
39520 # include <assert.h>
39521 #endif
39522
39523 #undef $ac_func
39524
39525 /* Override any GCC internal prototype to avoid an error.
39526    Use char because int might match the return type of a GCC
39527    builtin and then its argument prototype would still apply.  */
39528 #ifdef __cplusplus
39529 extern "C"
39530 #endif
39531 char $ac_func ();
39532 /* The GNU C library defines this for functions which it implements
39533     to always fail with ENOSYS.  Some functions are actually named
39534     something starting with __ and the normal name is an alias.  */
39535 #if defined __stub_$ac_func || defined __stub___$ac_func
39536 choke me
39537 #endif
39538
39539 int
39540 main ()
39541 {
39542 return $ac_func ();
39543   ;
39544   return 0;
39545 }
39546 _ACEOF
39547 rm -f conftest.$ac_objext conftest$ac_exeext
39548 if { (ac_try="$ac_link"
39549 case "(($ac_try" in
39550   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39551   *) ac_try_echo=$ac_try;;
39552 esac
39553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39554   (eval "$ac_link") 2>conftest.er1
39555   ac_status=$?
39556   grep -v '^ *+' conftest.er1 >conftest.err
39557   rm -f conftest.er1
39558   cat conftest.err >&5
39559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39560   (exit $ac_status); } && {
39561          test -z "$ac_c_werror_flag" ||
39562          test ! -s conftest.err
39563        } && test -s conftest$ac_exeext &&
39564        $as_test_x conftest$ac_exeext; then
39565   eval "$as_ac_var=yes"
39566 else
39567   echo "$as_me: failed program was:" >&5
39568 sed 's/^/| /' conftest.$ac_ext >&5
39569
39570         eval "$as_ac_var=no"
39571 fi
39572
39573 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39574       conftest$ac_exeext conftest.$ac_ext
39575 fi
39576 ac_res=`eval echo '${'$as_ac_var'}'`
39577                { echo "$as_me:$LINENO: result: $ac_res" >&5
39578 echo "${ECHO_T}$ac_res" >&6; }
39579 if test `eval echo '${'$as_ac_var'}'` = yes; then
39580   cat >>confdefs.h <<_ACEOF
39581 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39582 _ACEOF
39583
39584 { echo "$as_me:$LINENO: checking for _doprnt" >&5
39585 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
39586 if test "${ac_cv_func__doprnt+set}" = set; then
39587   echo $ECHO_N "(cached) $ECHO_C" >&6
39588 else
39589   cat >conftest.$ac_ext <<_ACEOF
39590 /* confdefs.h.  */
39591 _ACEOF
39592 cat confdefs.h >>conftest.$ac_ext
39593 cat >>conftest.$ac_ext <<_ACEOF
39594 /* end confdefs.h.  */
39595 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
39596    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39597 #define _doprnt innocuous__doprnt
39598
39599 /* System header to define __stub macros and hopefully few prototypes,
39600     which can conflict with char _doprnt (); below.
39601     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39602     <limits.h> exists even on freestanding compilers.  */
39603
39604 #ifdef __STDC__
39605 # include <limits.h>
39606 #else
39607 # include <assert.h>
39608 #endif
39609
39610 #undef _doprnt
39611
39612 /* Override any GCC internal prototype to avoid an error.
39613    Use char because int might match the return type of a GCC
39614    builtin and then its argument prototype would still apply.  */
39615 #ifdef __cplusplus
39616 extern "C"
39617 #endif
39618 char _doprnt ();
39619 /* The GNU C library defines this for functions which it implements
39620     to always fail with ENOSYS.  Some functions are actually named
39621     something starting with __ and the normal name is an alias.  */
39622 #if defined __stub__doprnt || defined __stub____doprnt
39623 choke me
39624 #endif
39625
39626 int
39627 main ()
39628 {
39629 return _doprnt ();
39630   ;
39631   return 0;
39632 }
39633 _ACEOF
39634 rm -f conftest.$ac_objext conftest$ac_exeext
39635 if { (ac_try="$ac_link"
39636 case "(($ac_try" in
39637   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39638   *) ac_try_echo=$ac_try;;
39639 esac
39640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39641   (eval "$ac_link") 2>conftest.er1
39642   ac_status=$?
39643   grep -v '^ *+' conftest.er1 >conftest.err
39644   rm -f conftest.er1
39645   cat conftest.err >&5
39646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39647   (exit $ac_status); } && {
39648          test -z "$ac_c_werror_flag" ||
39649          test ! -s conftest.err
39650        } && test -s conftest$ac_exeext &&
39651        $as_test_x conftest$ac_exeext; then
39652   ac_cv_func__doprnt=yes
39653 else
39654   echo "$as_me: failed program was:" >&5
39655 sed 's/^/| /' conftest.$ac_ext >&5
39656
39657         ac_cv_func__doprnt=no
39658 fi
39659
39660 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39661       conftest$ac_exeext conftest.$ac_ext
39662 fi
39663 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
39664 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
39665 if test $ac_cv_func__doprnt = yes; then
39666
39667 cat >>confdefs.h <<\_ACEOF
39668 #define HAVE_DOPRNT 1
39669 _ACEOF
39670
39671 fi
39672
39673 fi
39674 done
39675
39676
39677 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
39678 # for constant arguments.  Useless!
39679 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
39680 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
39681 if test "${ac_cv_working_alloca_h+set}" = set; then
39682   echo $ECHO_N "(cached) $ECHO_C" >&6
39683 else
39684   cat >conftest.$ac_ext <<_ACEOF
39685 /* confdefs.h.  */
39686 _ACEOF
39687 cat confdefs.h >>conftest.$ac_ext
39688 cat >>conftest.$ac_ext <<_ACEOF
39689 /* end confdefs.h.  */
39690 #include <alloca.h>
39691 int
39692 main ()
39693 {
39694 char *p = (char *) alloca (2 * sizeof (int));
39695                           if (p) return 0;
39696   ;
39697   return 0;
39698 }
39699 _ACEOF
39700 rm -f conftest.$ac_objext conftest$ac_exeext
39701 if { (ac_try="$ac_link"
39702 case "(($ac_try" in
39703   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39704   *) ac_try_echo=$ac_try;;
39705 esac
39706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39707   (eval "$ac_link") 2>conftest.er1
39708   ac_status=$?
39709   grep -v '^ *+' conftest.er1 >conftest.err
39710   rm -f conftest.er1
39711   cat conftest.err >&5
39712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39713   (exit $ac_status); } && {
39714          test -z "$ac_c_werror_flag" ||
39715          test ! -s conftest.err
39716        } && test -s conftest$ac_exeext &&
39717        $as_test_x conftest$ac_exeext; then
39718   ac_cv_working_alloca_h=yes
39719 else
39720   echo "$as_me: failed program was:" >&5
39721 sed 's/^/| /' conftest.$ac_ext >&5
39722
39723         ac_cv_working_alloca_h=no
39724 fi
39725
39726 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39727       conftest$ac_exeext conftest.$ac_ext
39728 fi
39729 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
39730 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
39731 if test $ac_cv_working_alloca_h = yes; then
39732
39733 cat >>confdefs.h <<\_ACEOF
39734 #define HAVE_ALLOCA_H 1
39735 _ACEOF
39736
39737 fi
39738
39739 { echo "$as_me:$LINENO: checking for alloca" >&5
39740 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
39741 if test "${ac_cv_func_alloca_works+set}" = set; then
39742   echo $ECHO_N "(cached) $ECHO_C" >&6
39743 else
39744   cat >conftest.$ac_ext <<_ACEOF
39745 /* confdefs.h.  */
39746 _ACEOF
39747 cat confdefs.h >>conftest.$ac_ext
39748 cat >>conftest.$ac_ext <<_ACEOF
39749 /* end confdefs.h.  */
39750 #ifdef __GNUC__
39751 # define alloca __builtin_alloca
39752 #else
39753 # ifdef _MSC_VER
39754 #  include <malloc.h>
39755 #  define alloca _alloca
39756 # else
39757 #  ifdef HAVE_ALLOCA_H
39758 #   include <alloca.h>
39759 #  else
39760 #   ifdef _AIX
39761  #pragma alloca
39762 #   else
39763 #    ifndef alloca /* predefined by HP cc +Olibcalls */
39764 char *alloca ();
39765 #    endif
39766 #   endif
39767 #  endif
39768 # endif
39769 #endif
39770
39771 int
39772 main ()
39773 {
39774 char *p = (char *) alloca (1);
39775                                     if (p) return 0;
39776   ;
39777   return 0;
39778 }
39779 _ACEOF
39780 rm -f conftest.$ac_objext conftest$ac_exeext
39781 if { (ac_try="$ac_link"
39782 case "(($ac_try" in
39783   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39784   *) ac_try_echo=$ac_try;;
39785 esac
39786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39787   (eval "$ac_link") 2>conftest.er1
39788   ac_status=$?
39789   grep -v '^ *+' conftest.er1 >conftest.err
39790   rm -f conftest.er1
39791   cat conftest.err >&5
39792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39793   (exit $ac_status); } && {
39794          test -z "$ac_c_werror_flag" ||
39795          test ! -s conftest.err
39796        } && test -s conftest$ac_exeext &&
39797        $as_test_x conftest$ac_exeext; then
39798   ac_cv_func_alloca_works=yes
39799 else
39800   echo "$as_me: failed program was:" >&5
39801 sed 's/^/| /' conftest.$ac_ext >&5
39802
39803         ac_cv_func_alloca_works=no
39804 fi
39805
39806 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39807       conftest$ac_exeext conftest.$ac_ext
39808 fi
39809 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
39810 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
39811
39812 if test $ac_cv_func_alloca_works = yes; then
39813
39814 cat >>confdefs.h <<\_ACEOF
39815 #define HAVE_ALLOCA 1
39816 _ACEOF
39817
39818 else
39819   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
39820 # that cause trouble.  Some versions do not even contain alloca or
39821 # contain a buggy version.  If you still want to use their alloca,
39822 # use ar to extract alloca.o from them instead of compiling alloca.c.
39823
39824 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
39825
39826 cat >>confdefs.h <<\_ACEOF
39827 #define C_ALLOCA 1
39828 _ACEOF
39829
39830
39831 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
39832 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
39833 if test "${ac_cv_os_cray+set}" = set; then
39834   echo $ECHO_N "(cached) $ECHO_C" >&6
39835 else
39836   cat >conftest.$ac_ext <<_ACEOF
39837 /* confdefs.h.  */
39838 _ACEOF
39839 cat confdefs.h >>conftest.$ac_ext
39840 cat >>conftest.$ac_ext <<_ACEOF
39841 /* end confdefs.h.  */
39842 #if defined CRAY && ! defined CRAY2
39843 webecray
39844 #else
39845 wenotbecray
39846 #endif
39847
39848 _ACEOF
39849 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39850   $EGREP "webecray" >/dev/null 2>&1; then
39851   ac_cv_os_cray=yes
39852 else
39853   ac_cv_os_cray=no
39854 fi
39855 rm -f conftest*
39856
39857 fi
39858 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
39859 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
39860 if test $ac_cv_os_cray = yes; then
39861   for ac_func in _getb67 GETB67 getb67; do
39862     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39863 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39864 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39865 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39866   echo $ECHO_N "(cached) $ECHO_C" >&6
39867 else
39868   cat >conftest.$ac_ext <<_ACEOF
39869 /* confdefs.h.  */
39870 _ACEOF
39871 cat confdefs.h >>conftest.$ac_ext
39872 cat >>conftest.$ac_ext <<_ACEOF
39873 /* end confdefs.h.  */
39874 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39875    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39876 #define $ac_func innocuous_$ac_func
39877
39878 /* System header to define __stub macros and hopefully few prototypes,
39879     which can conflict with char $ac_func (); below.
39880     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39881     <limits.h> exists even on freestanding compilers.  */
39882
39883 #ifdef __STDC__
39884 # include <limits.h>
39885 #else
39886 # include <assert.h>
39887 #endif
39888
39889 #undef $ac_func
39890
39891 /* Override any GCC internal prototype to avoid an error.
39892    Use char because int might match the return type of a GCC
39893    builtin and then its argument prototype would still apply.  */
39894 #ifdef __cplusplus
39895 extern "C"
39896 #endif
39897 char $ac_func ();
39898 /* The GNU C library defines this for functions which it implements
39899     to always fail with ENOSYS.  Some functions are actually named
39900     something starting with __ and the normal name is an alias.  */
39901 #if defined __stub_$ac_func || defined __stub___$ac_func
39902 choke me
39903 #endif
39904
39905 int
39906 main ()
39907 {
39908 return $ac_func ();
39909   ;
39910   return 0;
39911 }
39912 _ACEOF
39913 rm -f conftest.$ac_objext conftest$ac_exeext
39914 if { (ac_try="$ac_link"
39915 case "(($ac_try" in
39916   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39917   *) ac_try_echo=$ac_try;;
39918 esac
39919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39920   (eval "$ac_link") 2>conftest.er1
39921   ac_status=$?
39922   grep -v '^ *+' conftest.er1 >conftest.err
39923   rm -f conftest.er1
39924   cat conftest.err >&5
39925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39926   (exit $ac_status); } && {
39927          test -z "$ac_c_werror_flag" ||
39928          test ! -s conftest.err
39929        } && test -s conftest$ac_exeext &&
39930        $as_test_x conftest$ac_exeext; then
39931   eval "$as_ac_var=yes"
39932 else
39933   echo "$as_me: failed program was:" >&5
39934 sed 's/^/| /' conftest.$ac_ext >&5
39935
39936         eval "$as_ac_var=no"
39937 fi
39938
39939 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39940       conftest$ac_exeext conftest.$ac_ext
39941 fi
39942 ac_res=`eval echo '${'$as_ac_var'}'`
39943                { echo "$as_me:$LINENO: result: $ac_res" >&5
39944 echo "${ECHO_T}$ac_res" >&6; }
39945 if test `eval echo '${'$as_ac_var'}'` = yes; then
39946
39947 cat >>confdefs.h <<_ACEOF
39948 #define CRAY_STACKSEG_END $ac_func
39949 _ACEOF
39950
39951     break
39952 fi
39953
39954   done
39955 fi
39956
39957 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
39958 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
39959 if test "${ac_cv_c_stack_direction+set}" = set; then
39960   echo $ECHO_N "(cached) $ECHO_C" >&6
39961 else
39962   if test "$cross_compiling" = yes; then
39963   ac_cv_c_stack_direction=0
39964 else
39965   cat >conftest.$ac_ext <<_ACEOF
39966 /* confdefs.h.  */
39967 _ACEOF
39968 cat confdefs.h >>conftest.$ac_ext
39969 cat >>conftest.$ac_ext <<_ACEOF
39970 /* end confdefs.h.  */
39971 $ac_includes_default
39972 int
39973 find_stack_direction ()
39974 {
39975   static char *addr = 0;
39976   auto char dummy;
39977   if (addr == 0)
39978     {
39979       addr = &dummy;
39980       return find_stack_direction ();
39981     }
39982   else
39983     return (&dummy > addr) ? 1 : -1;
39984 }
39985
39986 int
39987 main ()
39988 {
39989   return find_stack_direction () < 0;
39990 }
39991 _ACEOF
39992 rm -f conftest$ac_exeext
39993 if { (ac_try="$ac_link"
39994 case "(($ac_try" in
39995   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39996   *) ac_try_echo=$ac_try;;
39997 esac
39998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39999   (eval "$ac_link") 2>&5
40000   ac_status=$?
40001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40002   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
40003   { (case "(($ac_try" in
40004   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40005   *) ac_try_echo=$ac_try;;
40006 esac
40007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40008   (eval "$ac_try") 2>&5
40009   ac_status=$?
40010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40011   (exit $ac_status); }; }; then
40012   ac_cv_c_stack_direction=1
40013 else
40014   echo "$as_me: program exited with status $ac_status" >&5
40015 echo "$as_me: failed program was:" >&5
40016 sed 's/^/| /' conftest.$ac_ext >&5
40017
40018 ( exit $ac_status )
40019 ac_cv_c_stack_direction=-1
40020 fi
40021 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
40022 fi
40023
40024
40025 fi
40026 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
40027 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
40028
40029 cat >>confdefs.h <<_ACEOF
40030 #define STACK_DIRECTION $ac_cv_c_stack_direction
40031 _ACEOF
40032
40033
40034 fi
40035
40036 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
40037 # -lseq on Dynix/PTX, -lgen on Unixware.
40038 { echo "$as_me:$LINENO: checking for library containing getmntent" >&5
40039 echo $ECHO_N "checking for library containing getmntent... $ECHO_C" >&6; }
40040 if test "${ac_cv_search_getmntent+set}" = set; then
40041   echo $ECHO_N "(cached) $ECHO_C" >&6
40042 else
40043   ac_func_search_save_LIBS=$LIBS
40044 cat >conftest.$ac_ext <<_ACEOF
40045 /* confdefs.h.  */
40046 _ACEOF
40047 cat confdefs.h >>conftest.$ac_ext
40048 cat >>conftest.$ac_ext <<_ACEOF
40049 /* end confdefs.h.  */
40050
40051 /* Override any GCC internal prototype to avoid an error.
40052    Use char because int might match the return type of a GCC
40053    builtin and then its argument prototype would still apply.  */
40054 #ifdef __cplusplus
40055 extern "C"
40056 #endif
40057 char getmntent ();
40058 int
40059 main ()
40060 {
40061 return getmntent ();
40062   ;
40063   return 0;
40064 }
40065 _ACEOF
40066 for ac_lib in '' sun seq gen; do
40067   if test -z "$ac_lib"; then
40068     ac_res="none required"
40069   else
40070     ac_res=-l$ac_lib
40071     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
40072   fi
40073   rm -f conftest.$ac_objext conftest$ac_exeext
40074 if { (ac_try="$ac_link"
40075 case "(($ac_try" in
40076   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40077   *) ac_try_echo=$ac_try;;
40078 esac
40079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40080   (eval "$ac_link") 2>conftest.er1
40081   ac_status=$?
40082   grep -v '^ *+' conftest.er1 >conftest.err
40083   rm -f conftest.er1
40084   cat conftest.err >&5
40085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40086   (exit $ac_status); } && {
40087          test -z "$ac_c_werror_flag" ||
40088          test ! -s conftest.err
40089        } && test -s conftest$ac_exeext &&
40090        $as_test_x conftest$ac_exeext; then
40091   ac_cv_search_getmntent=$ac_res
40092 else
40093   echo "$as_me: failed program was:" >&5
40094 sed 's/^/| /' conftest.$ac_ext >&5
40095
40096
40097 fi
40098
40099 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40100       conftest$ac_exeext
40101   if test "${ac_cv_search_getmntent+set}" = set; then
40102   break
40103 fi
40104 done
40105 if test "${ac_cv_search_getmntent+set}" = set; then
40106   :
40107 else
40108   ac_cv_search_getmntent=no
40109 fi
40110 rm conftest.$ac_ext
40111 LIBS=$ac_func_search_save_LIBS
40112 fi
40113 { echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5
40114 echo "${ECHO_T}$ac_cv_search_getmntent" >&6; }
40115 ac_res=$ac_cv_search_getmntent
40116 if test "$ac_res" != no; then
40117   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
40118   ac_cv_func_getmntent=yes
40119
40120 cat >>confdefs.h <<\_ACEOF
40121 #define HAVE_GETMNTENT 1
40122 _ACEOF
40123
40124 else
40125   ac_cv_func_getmntent=no
40126 fi
40127
40128
40129 { echo "$as_me:$LINENO: checking whether closedir returns void" >&5
40130 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6; }
40131 if test "${ac_cv_func_closedir_void+set}" = set; then
40132   echo $ECHO_N "(cached) $ECHO_C" >&6
40133 else
40134   if test "$cross_compiling" = yes; then
40135   ac_cv_func_closedir_void=yes
40136 else
40137   cat >conftest.$ac_ext <<_ACEOF
40138 /* confdefs.h.  */
40139 _ACEOF
40140 cat confdefs.h >>conftest.$ac_ext
40141 cat >>conftest.$ac_ext <<_ACEOF
40142 /* end confdefs.h.  */
40143 $ac_includes_default
40144 #include <$ac_header_dirent>
40145 #ifndef __cplusplus
40146 int closedir ();
40147 #endif
40148
40149 int
40150 main ()
40151 {
40152 return closedir (opendir (".")) != 0;
40153   ;
40154   return 0;
40155 }
40156 _ACEOF
40157 rm -f conftest$ac_exeext
40158 if { (ac_try="$ac_link"
40159 case "(($ac_try" in
40160   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40161   *) ac_try_echo=$ac_try;;
40162 esac
40163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40164   (eval "$ac_link") 2>&5
40165   ac_status=$?
40166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40167   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
40168   { (case "(($ac_try" in
40169   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40170   *) ac_try_echo=$ac_try;;
40171 esac
40172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40173   (eval "$ac_try") 2>&5
40174   ac_status=$?
40175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40176   (exit $ac_status); }; }; then
40177   ac_cv_func_closedir_void=no
40178 else
40179   echo "$as_me: program exited with status $ac_status" >&5
40180 echo "$as_me: failed program was:" >&5
40181 sed 's/^/| /' conftest.$ac_ext >&5
40182
40183 ( exit $ac_status )
40184 ac_cv_func_closedir_void=yes
40185 fi
40186 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
40187 fi
40188
40189
40190 fi
40191 { echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
40192 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; }
40193 if test $ac_cv_func_closedir_void = yes; then
40194
40195 cat >>confdefs.h <<\_ACEOF
40196 #define CLOSEDIR_VOID 1
40197 _ACEOF
40198
40199 fi
40200
40201 { echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
40202 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6; }
40203 if test "${ac_cv_func_setpgrp_void+set}" = set; then
40204   echo $ECHO_N "(cached) $ECHO_C" >&6
40205 else
40206   if test "$cross_compiling" = yes; then
40207   { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
40208 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
40209    { (exit 1); exit 1; }; }
40210 else
40211   cat >conftest.$ac_ext <<_ACEOF
40212 /* confdefs.h.  */
40213 _ACEOF
40214 cat confdefs.h >>conftest.$ac_ext
40215 cat >>conftest.$ac_ext <<_ACEOF
40216 /* end confdefs.h.  */
40217 $ac_includes_default
40218 int
40219 main ()
40220 {
40221 /* If this system has a BSD-style setpgrp which takes arguments,
40222   setpgrp(1, 1) will fail with ESRCH and return -1, in that case
40223   exit successfully. */
40224   return setpgrp (1,1) != -1;
40225   ;
40226   return 0;
40227 }
40228 _ACEOF
40229 rm -f conftest$ac_exeext
40230 if { (ac_try="$ac_link"
40231 case "(($ac_try" in
40232   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40233   *) ac_try_echo=$ac_try;;
40234 esac
40235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40236   (eval "$ac_link") 2>&5
40237   ac_status=$?
40238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40239   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
40240   { (case "(($ac_try" in
40241   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40242   *) ac_try_echo=$ac_try;;
40243 esac
40244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40245   (eval "$ac_try") 2>&5
40246   ac_status=$?
40247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40248   (exit $ac_status); }; }; then
40249   ac_cv_func_setpgrp_void=no
40250 else
40251   echo "$as_me: program exited with status $ac_status" >&5
40252 echo "$as_me: failed program was:" >&5
40253 sed 's/^/| /' conftest.$ac_ext >&5
40254
40255 ( exit $ac_status )
40256 ac_cv_func_setpgrp_void=yes
40257 fi
40258 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
40259 fi
40260
40261
40262 fi
40263 { echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
40264 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6; }
40265 if test $ac_cv_func_setpgrp_void = yes; then
40266
40267 cat >>confdefs.h <<\_ACEOF
40268 #define SETPGRP_VOID 1
40269 _ACEOF
40270
40271 fi
40272             # AC_FUNC_FNMATCH    dnl use local version
40273
40274 { echo "$as_me:$LINENO: checking for gettext in -lintl" >&5
40275 echo $ECHO_N "checking for gettext in -lintl... $ECHO_C" >&6; }
40276 if test "${ac_cv_lib_intl_gettext+set}" = set; then
40277   echo $ECHO_N "(cached) $ECHO_C" >&6
40278 else
40279   ac_check_lib_save_LIBS=$LIBS
40280 LIBS="-lintl  $LIBS"
40281 cat >conftest.$ac_ext <<_ACEOF
40282 /* confdefs.h.  */
40283 _ACEOF
40284 cat confdefs.h >>conftest.$ac_ext
40285 cat >>conftest.$ac_ext <<_ACEOF
40286 /* end confdefs.h.  */
40287
40288 /* Override any GCC internal prototype to avoid an error.
40289    Use char because int might match the return type of a GCC
40290    builtin and then its argument prototype would still apply.  */
40291 #ifdef __cplusplus
40292 extern "C"
40293 #endif
40294 char gettext ();
40295 int
40296 main ()
40297 {
40298 return gettext ();
40299   ;
40300   return 0;
40301 }
40302 _ACEOF
40303 rm -f conftest.$ac_objext conftest$ac_exeext
40304 if { (ac_try="$ac_link"
40305 case "(($ac_try" in
40306   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40307   *) ac_try_echo=$ac_try;;
40308 esac
40309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40310   (eval "$ac_link") 2>conftest.er1
40311   ac_status=$?
40312   grep -v '^ *+' conftest.er1 >conftest.err
40313   rm -f conftest.er1
40314   cat conftest.err >&5
40315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40316   (exit $ac_status); } && {
40317          test -z "$ac_c_werror_flag" ||
40318          test ! -s conftest.err
40319        } && test -s conftest$ac_exeext &&
40320        $as_test_x conftest$ac_exeext; then
40321   ac_cv_lib_intl_gettext=yes
40322 else
40323   echo "$as_me: failed program was:" >&5
40324 sed 's/^/| /' conftest.$ac_ext >&5
40325
40326         ac_cv_lib_intl_gettext=no
40327 fi
40328
40329 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40330       conftest$ac_exeext conftest.$ac_ext
40331 LIBS=$ac_check_lib_save_LIBS
40332 fi
40333 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_gettext" >&5
40334 echo "${ECHO_T}$ac_cv_lib_intl_gettext" >&6; }
40335 if test $ac_cv_lib_intl_gettext = yes; then
40336   LIBS="$LIBS -lintl"
40337 fi
40338
40339
40340
40341 { echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
40342 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6; }
40343 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
40344   echo $ECHO_N "(cached) $ECHO_C" >&6
40345 else
40346   ac_check_lib_save_LIBS=$LIBS
40347 LIBS="-lsun  $LIBS"
40348 cat >conftest.$ac_ext <<_ACEOF
40349 /* confdefs.h.  */
40350 _ACEOF
40351 cat confdefs.h >>conftest.$ac_ext
40352 cat >>conftest.$ac_ext <<_ACEOF
40353 /* end confdefs.h.  */
40354
40355 /* Override any GCC internal prototype to avoid an error.
40356    Use char because int might match the return type of a GCC
40357    builtin and then its argument prototype would still apply.  */
40358 #ifdef __cplusplus
40359 extern "C"
40360 #endif
40361 char getpwnam ();
40362 int
40363 main ()
40364 {
40365 return getpwnam ();
40366   ;
40367   return 0;
40368 }
40369 _ACEOF
40370 rm -f conftest.$ac_objext conftest$ac_exeext
40371 if { (ac_try="$ac_link"
40372 case "(($ac_try" in
40373   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40374   *) ac_try_echo=$ac_try;;
40375 esac
40376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40377   (eval "$ac_link") 2>conftest.er1
40378   ac_status=$?
40379   grep -v '^ *+' conftest.er1 >conftest.err
40380   rm -f conftest.er1
40381   cat conftest.err >&5
40382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40383   (exit $ac_status); } && {
40384          test -z "$ac_c_werror_flag" ||
40385          test ! -s conftest.err
40386        } && test -s conftest$ac_exeext &&
40387        $as_test_x conftest$ac_exeext; then
40388   ac_cv_lib_sun_getpwnam=yes
40389 else
40390   echo "$as_me: failed program was:" >&5
40391 sed 's/^/| /' conftest.$ac_ext >&5
40392
40393         ac_cv_lib_sun_getpwnam=no
40394 fi
40395
40396 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40397       conftest$ac_exeext conftest.$ac_ext
40398 LIBS=$ac_check_lib_save_LIBS
40399 fi
40400 { echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
40401 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6; }
40402 if test $ac_cv_lib_sun_getpwnam = yes; then
40403   cat >>confdefs.h <<_ACEOF
40404 #define HAVE_LIBSUN 1
40405 _ACEOF
40406
40407   LIBS="-lsun $LIBS"
40408
40409 fi
40410
40411
40412
40413 for ac_header in zlib.h
40414 do
40415 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
40416 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40417   { echo "$as_me:$LINENO: checking for $ac_header" >&5
40418 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
40419 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40420   echo $ECHO_N "(cached) $ECHO_C" >&6
40421 fi
40422 ac_res=`eval echo '${'$as_ac_Header'}'`
40423                { echo "$as_me:$LINENO: result: $ac_res" >&5
40424 echo "${ECHO_T}$ac_res" >&6; }
40425 else
40426   # Is the header compilable?
40427 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
40428 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
40429 cat >conftest.$ac_ext <<_ACEOF
40430 /* confdefs.h.  */
40431 _ACEOF
40432 cat confdefs.h >>conftest.$ac_ext
40433 cat >>conftest.$ac_ext <<_ACEOF
40434 /* end confdefs.h.  */
40435 $ac_includes_default
40436 #include <$ac_header>
40437 _ACEOF
40438 rm -f conftest.$ac_objext
40439 if { (ac_try="$ac_compile"
40440 case "(($ac_try" in
40441   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40442   *) ac_try_echo=$ac_try;;
40443 esac
40444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40445   (eval "$ac_compile") 2>conftest.er1
40446   ac_status=$?
40447   grep -v '^ *+' conftest.er1 >conftest.err
40448   rm -f conftest.er1
40449   cat conftest.err >&5
40450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40451   (exit $ac_status); } && {
40452          test -z "$ac_c_werror_flag" ||
40453          test ! -s conftest.err
40454        } && test -s conftest.$ac_objext; then
40455   ac_header_compiler=yes
40456 else
40457   echo "$as_me: failed program was:" >&5
40458 sed 's/^/| /' conftest.$ac_ext >&5
40459
40460         ac_header_compiler=no
40461 fi
40462
40463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40464 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
40465 echo "${ECHO_T}$ac_header_compiler" >&6; }
40466
40467 # Is the header present?
40468 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
40469 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
40470 cat >conftest.$ac_ext <<_ACEOF
40471 /* confdefs.h.  */
40472 _ACEOF
40473 cat confdefs.h >>conftest.$ac_ext
40474 cat >>conftest.$ac_ext <<_ACEOF
40475 /* end confdefs.h.  */
40476 #include <$ac_header>
40477 _ACEOF
40478 if { (ac_try="$ac_cpp conftest.$ac_ext"
40479 case "(($ac_try" in
40480   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40481   *) ac_try_echo=$ac_try;;
40482 esac
40483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40484   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
40485   ac_status=$?
40486   grep -v '^ *+' conftest.er1 >conftest.err
40487   rm -f conftest.er1
40488   cat conftest.err >&5
40489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40490   (exit $ac_status); } >/dev/null && {
40491          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
40492          test ! -s conftest.err
40493        }; then
40494   ac_header_preproc=yes
40495 else
40496   echo "$as_me: failed program was:" >&5
40497 sed 's/^/| /' conftest.$ac_ext >&5
40498
40499   ac_header_preproc=no
40500 fi
40501
40502 rm -f conftest.err conftest.$ac_ext
40503 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
40504 echo "${ECHO_T}$ac_header_preproc" >&6; }
40505
40506 # So?  What about this header?
40507 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
40508   yes:no: )
40509     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
40510 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
40511     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
40512 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
40513     ac_header_preproc=yes
40514     ;;
40515   no:yes:* )
40516     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
40517 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
40518     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
40519 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
40520     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
40521 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
40522     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
40523 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
40524     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
40525 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
40526     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
40527 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
40528
40529     ;;
40530 esac
40531 { echo "$as_me:$LINENO: checking for $ac_header" >&5
40532 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
40533 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40534   echo $ECHO_N "(cached) $ECHO_C" >&6
40535 else
40536   eval "$as_ac_Header=\$ac_header_preproc"
40537 fi
40538 ac_res=`eval echo '${'$as_ac_Header'}'`
40539                { echo "$as_me:$LINENO: result: $ac_res" >&5
40540 echo "${ECHO_T}$ac_res" >&6; }
40541
40542 fi
40543 if test `eval echo '${'$as_ac_Header'}'` = yes; then
40544   cat >>confdefs.h <<_ACEOF
40545 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
40546 _ACEOF
40547
40548 fi
40549
40550 done
40551
40552 { echo "$as_me:$LINENO: checking for deflate in -lz" >&5
40553 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6; }
40554 if test "${ac_cv_lib_z_deflate+set}" = set; then
40555   echo $ECHO_N "(cached) $ECHO_C" >&6
40556 else
40557   ac_check_lib_save_LIBS=$LIBS
40558 LIBS="-lz  $LIBS"
40559 cat >conftest.$ac_ext <<_ACEOF
40560 /* confdefs.h.  */
40561 _ACEOF
40562 cat confdefs.h >>conftest.$ac_ext
40563 cat >>conftest.$ac_ext <<_ACEOF
40564 /* end confdefs.h.  */
40565
40566 /* Override any GCC internal prototype to avoid an error.
40567    Use char because int might match the return type of a GCC
40568    builtin and then its argument prototype would still apply.  */
40569 #ifdef __cplusplus
40570 extern "C"
40571 #endif
40572 char deflate ();
40573 int
40574 main ()
40575 {
40576 return deflate ();
40577   ;
40578   return 0;
40579 }
40580 _ACEOF
40581 rm -f conftest.$ac_objext conftest$ac_exeext
40582 if { (ac_try="$ac_link"
40583 case "(($ac_try" in
40584   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40585   *) ac_try_echo=$ac_try;;
40586 esac
40587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40588   (eval "$ac_link") 2>conftest.er1
40589   ac_status=$?
40590   grep -v '^ *+' conftest.er1 >conftest.err
40591   rm -f conftest.er1
40592   cat conftest.err >&5
40593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40594   (exit $ac_status); } && {
40595          test -z "$ac_c_werror_flag" ||
40596          test ! -s conftest.err
40597        } && test -s conftest$ac_exeext &&
40598        $as_test_x conftest$ac_exeext; then
40599   ac_cv_lib_z_deflate=yes
40600 else
40601   echo "$as_me: failed program was:" >&5
40602 sed 's/^/| /' conftest.$ac_ext >&5
40603
40604         ac_cv_lib_z_deflate=no
40605 fi
40606
40607 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40608       conftest$ac_exeext conftest.$ac_ext
40609 LIBS=$ac_check_lib_save_LIBS
40610 fi
40611 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
40612 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6; }
40613 if test $ac_cv_lib_z_deflate = yes; then
40614   FDLIBS="-lz"
40615 fi
40616
40617 have_zlib=no
40618 if test x$FDLIBS = x-lz; then
40619    cat >>confdefs.h <<\_ACEOF
40620 #define HAVE_LIBZ 1
40621 _ACEOF
40622
40623    have_zlib=yes
40624 fi
40625
40626 support_acl=yes
40627 # Check whether --enable-acl was given.
40628 if test "${enable_acl+set}" = set; then
40629   enableval=$enable_acl;
40630        if test x$enableval = xno; then
40631           support_acl=no
40632        fi
40633
40634
40635 fi
40636
40637
40638 have_acl=no
40639 have_extended_acl=no
40640 if test x$support_acl = xyes; then
40641    if test "${ac_cv_header_sys_acl_h+set}" = set; then
40642   { echo "$as_me:$LINENO: checking for sys/acl.h" >&5
40643 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6; }
40644 if test "${ac_cv_header_sys_acl_h+set}" = set; then
40645   echo $ECHO_N "(cached) $ECHO_C" >&6
40646 fi
40647 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
40648 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6; }
40649 else
40650   # Is the header compilable?
40651 { echo "$as_me:$LINENO: checking sys/acl.h usability" >&5
40652 echo $ECHO_N "checking sys/acl.h usability... $ECHO_C" >&6; }
40653 cat >conftest.$ac_ext <<_ACEOF
40654 /* confdefs.h.  */
40655 _ACEOF
40656 cat confdefs.h >>conftest.$ac_ext
40657 cat >>conftest.$ac_ext <<_ACEOF
40658 /* end confdefs.h.  */
40659 $ac_includes_default
40660 #include <sys/acl.h>
40661 _ACEOF
40662 rm -f conftest.$ac_objext
40663 if { (ac_try="$ac_compile"
40664 case "(($ac_try" in
40665   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40666   *) ac_try_echo=$ac_try;;
40667 esac
40668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40669   (eval "$ac_compile") 2>conftest.er1
40670   ac_status=$?
40671   grep -v '^ *+' conftest.er1 >conftest.err
40672   rm -f conftest.er1
40673   cat conftest.err >&5
40674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40675   (exit $ac_status); } && {
40676          test -z "$ac_c_werror_flag" ||
40677          test ! -s conftest.err
40678        } && test -s conftest.$ac_objext; then
40679   ac_header_compiler=yes
40680 else
40681   echo "$as_me: failed program was:" >&5
40682 sed 's/^/| /' conftest.$ac_ext >&5
40683
40684         ac_header_compiler=no
40685 fi
40686
40687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40688 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
40689 echo "${ECHO_T}$ac_header_compiler" >&6; }
40690
40691 # Is the header present?
40692 { echo "$as_me:$LINENO: checking sys/acl.h presence" >&5
40693 echo $ECHO_N "checking sys/acl.h presence... $ECHO_C" >&6; }
40694 cat >conftest.$ac_ext <<_ACEOF
40695 /* confdefs.h.  */
40696 _ACEOF
40697 cat confdefs.h >>conftest.$ac_ext
40698 cat >>conftest.$ac_ext <<_ACEOF
40699 /* end confdefs.h.  */
40700 #include <sys/acl.h>
40701 _ACEOF
40702 if { (ac_try="$ac_cpp conftest.$ac_ext"
40703 case "(($ac_try" in
40704   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40705   *) ac_try_echo=$ac_try;;
40706 esac
40707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40708   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
40709   ac_status=$?
40710   grep -v '^ *+' conftest.er1 >conftest.err
40711   rm -f conftest.er1
40712   cat conftest.err >&5
40713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40714   (exit $ac_status); } >/dev/null && {
40715          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
40716          test ! -s conftest.err
40717        }; then
40718   ac_header_preproc=yes
40719 else
40720   echo "$as_me: failed program was:" >&5
40721 sed 's/^/| /' conftest.$ac_ext >&5
40722
40723   ac_header_preproc=no
40724 fi
40725
40726 rm -f conftest.err conftest.$ac_ext
40727 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
40728 echo "${ECHO_T}$ac_header_preproc" >&6; }
40729
40730 # So?  What about this header?
40731 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
40732   yes:no: )
40733     { echo "$as_me:$LINENO: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&5
40734 echo "$as_me: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
40735     { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the compiler's result" >&5
40736 echo "$as_me: WARNING: sys/acl.h: proceeding with the compiler's result" >&2;}
40737     ac_header_preproc=yes
40738     ;;
40739   no:yes:* )
40740     { echo "$as_me:$LINENO: WARNING: sys/acl.h: present but cannot be compiled" >&5
40741 echo "$as_me: WARNING: sys/acl.h: present but cannot be compiled" >&2;}
40742     { echo "$as_me:$LINENO: WARNING: sys/acl.h:     check for missing prerequisite headers?" >&5
40743 echo "$as_me: WARNING: sys/acl.h:     check for missing prerequisite headers?" >&2;}
40744     { echo "$as_me:$LINENO: WARNING: sys/acl.h: see the Autoconf documentation" >&5
40745 echo "$as_me: WARNING: sys/acl.h: see the Autoconf documentation" >&2;}
40746     { echo "$as_me:$LINENO: WARNING: sys/acl.h:     section \"Present But Cannot Be Compiled\"" >&5
40747 echo "$as_me: WARNING: sys/acl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
40748     { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
40749 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
40750     { echo "$as_me:$LINENO: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&5
40751 echo "$as_me: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&2;}
40752
40753     ;;
40754 esac
40755 { echo "$as_me:$LINENO: checking for sys/acl.h" >&5
40756 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6; }
40757 if test "${ac_cv_header_sys_acl_h+set}" = set; then
40758   echo $ECHO_N "(cached) $ECHO_C" >&6
40759 else
40760   ac_cv_header_sys_acl_h=$ac_header_preproc
40761 fi
40762 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
40763 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6; }
40764
40765 fi
40766 if test $ac_cv_header_sys_acl_h = yes; then
40767
40768 cat >>confdefs.h <<\_ACEOF
40769 #define HAVE_SYS_ACL_H 1
40770 _ACEOF
40771
40772 fi
40773
40774
40775    { echo "$as_me:$LINENO: checking for acl_get_file" >&5
40776 echo $ECHO_N "checking for acl_get_file... $ECHO_C" >&6; }
40777 if test "${ac_cv_func_acl_get_file+set}" = set; then
40778   echo $ECHO_N "(cached) $ECHO_C" >&6
40779 else
40780   cat >conftest.$ac_ext <<_ACEOF
40781 /* confdefs.h.  */
40782 _ACEOF
40783 cat confdefs.h >>conftest.$ac_ext
40784 cat >>conftest.$ac_ext <<_ACEOF
40785 /* end confdefs.h.  */
40786 /* Define acl_get_file to an innocuous variant, in case <limits.h> declares acl_get_file.
40787    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40788 #define acl_get_file innocuous_acl_get_file
40789
40790 /* System header to define __stub macros and hopefully few prototypes,
40791     which can conflict with char acl_get_file (); below.
40792     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40793     <limits.h> exists even on freestanding compilers.  */
40794
40795 #ifdef __STDC__
40796 # include <limits.h>
40797 #else
40798 # include <assert.h>
40799 #endif
40800
40801 #undef acl_get_file
40802
40803 /* Override any GCC internal prototype to avoid an error.
40804    Use char because int might match the return type of a GCC
40805    builtin and then its argument prototype would still apply.  */
40806 #ifdef __cplusplus
40807 extern "C"
40808 #endif
40809 char acl_get_file ();
40810 /* The GNU C library defines this for functions which it implements
40811     to always fail with ENOSYS.  Some functions are actually named
40812     something starting with __ and the normal name is an alias.  */
40813 #if defined __stub_acl_get_file || defined __stub___acl_get_file
40814 choke me
40815 #endif
40816
40817 int
40818 main ()
40819 {
40820 return acl_get_file ();
40821   ;
40822   return 0;
40823 }
40824 _ACEOF
40825 rm -f conftest.$ac_objext conftest$ac_exeext
40826 if { (ac_try="$ac_link"
40827 case "(($ac_try" in
40828   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40829   *) ac_try_echo=$ac_try;;
40830 esac
40831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40832   (eval "$ac_link") 2>conftest.er1
40833   ac_status=$?
40834   grep -v '^ *+' conftest.er1 >conftest.err
40835   rm -f conftest.er1
40836   cat conftest.err >&5
40837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40838   (exit $ac_status); } && {
40839          test -z "$ac_c_werror_flag" ||
40840          test ! -s conftest.err
40841        } && test -s conftest$ac_exeext &&
40842        $as_test_x conftest$ac_exeext; then
40843   ac_cv_func_acl_get_file=yes
40844 else
40845   echo "$as_me: failed program was:" >&5
40846 sed 's/^/| /' conftest.$ac_ext >&5
40847
40848         ac_cv_func_acl_get_file=no
40849 fi
40850
40851 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40852       conftest$ac_exeext conftest.$ac_ext
40853 fi
40854 { echo "$as_me:$LINENO: result: $ac_cv_func_acl_get_file" >&5
40855 echo "${ECHO_T}$ac_cv_func_acl_get_file" >&6; }
40856 if test $ac_cv_func_acl_get_file = yes; then
40857
40858           have_acl=yes
40859
40860 else
40861
40862           { echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
40863 echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6; }
40864 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
40865   echo $ECHO_N "(cached) $ECHO_C" >&6
40866 else
40867   ac_check_lib_save_LIBS=$LIBS
40868 LIBS="-lacl  $LIBS"
40869 cat >conftest.$ac_ext <<_ACEOF
40870 /* confdefs.h.  */
40871 _ACEOF
40872 cat confdefs.h >>conftest.$ac_ext
40873 cat >>conftest.$ac_ext <<_ACEOF
40874 /* end confdefs.h.  */
40875
40876 /* Override any GCC internal prototype to avoid an error.
40877    Use char because int might match the return type of a GCC
40878    builtin and then its argument prototype would still apply.  */
40879 #ifdef __cplusplus
40880 extern "C"
40881 #endif
40882 char acl_get_file ();
40883 int
40884 main ()
40885 {
40886 return acl_get_file ();
40887   ;
40888   return 0;
40889 }
40890 _ACEOF
40891 rm -f conftest.$ac_objext conftest$ac_exeext
40892 if { (ac_try="$ac_link"
40893 case "(($ac_try" in
40894   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40895   *) ac_try_echo=$ac_try;;
40896 esac
40897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40898   (eval "$ac_link") 2>conftest.er1
40899   ac_status=$?
40900   grep -v '^ *+' conftest.er1 >conftest.err
40901   rm -f conftest.er1
40902   cat conftest.err >&5
40903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40904   (exit $ac_status); } && {
40905          test -z "$ac_c_werror_flag" ||
40906          test ! -s conftest.err
40907        } && test -s conftest$ac_exeext &&
40908        $as_test_x conftest$ac_exeext; then
40909   ac_cv_lib_acl_acl_get_file=yes
40910 else
40911   echo "$as_me: failed program was:" >&5
40912 sed 's/^/| /' conftest.$ac_ext >&5
40913
40914         ac_cv_lib_acl_acl_get_file=no
40915 fi
40916
40917 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40918       conftest$ac_exeext conftest.$ac_ext
40919 LIBS=$ac_check_lib_save_LIBS
40920 fi
40921 { echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
40922 echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6; }
40923 if test $ac_cv_lib_acl_acl_get_file = yes; then
40924
40925                  have_acl=yes;
40926                  FDLIBS="-lacl $FDLIBS"
40927
40928 else
40929
40930                  { echo "$as_me:$LINENO: checking for acl_get_file in -lpacl" >&5
40931 echo $ECHO_N "checking for acl_get_file in -lpacl... $ECHO_C" >&6; }
40932 if test "${ac_cv_lib_pacl_acl_get_file+set}" = set; then
40933   echo $ECHO_N "(cached) $ECHO_C" >&6
40934 else
40935   ac_check_lib_save_LIBS=$LIBS
40936 LIBS="-lpacl  $LIBS"
40937 cat >conftest.$ac_ext <<_ACEOF
40938 /* confdefs.h.  */
40939 _ACEOF
40940 cat confdefs.h >>conftest.$ac_ext
40941 cat >>conftest.$ac_ext <<_ACEOF
40942 /* end confdefs.h.  */
40943
40944 /* Override any GCC internal prototype to avoid an error.
40945    Use char because int might match the return type of a GCC
40946    builtin and then its argument prototype would still apply.  */
40947 #ifdef __cplusplus
40948 extern "C"
40949 #endif
40950 char acl_get_file ();
40951 int
40952 main ()
40953 {
40954 return acl_get_file ();
40955   ;
40956   return 0;
40957 }
40958 _ACEOF
40959 rm -f conftest.$ac_objext conftest$ac_exeext
40960 if { (ac_try="$ac_link"
40961 case "(($ac_try" in
40962   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40963   *) ac_try_echo=$ac_try;;
40964 esac
40965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40966   (eval "$ac_link") 2>conftest.er1
40967   ac_status=$?
40968   grep -v '^ *+' conftest.er1 >conftest.err
40969   rm -f conftest.er1
40970   cat conftest.err >&5
40971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40972   (exit $ac_status); } && {
40973          test -z "$ac_c_werror_flag" ||
40974          test ! -s conftest.err
40975        } && test -s conftest$ac_exeext &&
40976        $as_test_x conftest$ac_exeext; then
40977   ac_cv_lib_pacl_acl_get_file=yes
40978 else
40979   echo "$as_me: failed program was:" >&5
40980 sed 's/^/| /' conftest.$ac_ext >&5
40981
40982         ac_cv_lib_pacl_acl_get_file=no
40983 fi
40984
40985 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40986       conftest$ac_exeext conftest.$ac_ext
40987 LIBS=$ac_check_lib_save_LIBS
40988 fi
40989 { echo "$as_me:$LINENO: result: $ac_cv_lib_pacl_acl_get_file" >&5
40990 echo "${ECHO_T}$ac_cv_lib_pacl_acl_get_file" >&6; }
40991 if test $ac_cv_lib_pacl_acl_get_file = yes; then
40992
40993                         have_acl=yes;
40994                         FDLIBS="-lpacl $FDLIBS"
40995
40996 else
40997
40998                         { echo "$as_me:$LINENO: checking for acltotext in -lsec" >&5
40999 echo $ECHO_N "checking for acltotext in -lsec... $ECHO_C" >&6; }
41000 if test "${ac_cv_lib_sec_acltotext+set}" = set; then
41001   echo $ECHO_N "(cached) $ECHO_C" >&6
41002 else
41003   ac_check_lib_save_LIBS=$LIBS
41004 LIBS="-lsec  $LIBS"
41005 cat >conftest.$ac_ext <<_ACEOF
41006 /* confdefs.h.  */
41007 _ACEOF
41008 cat confdefs.h >>conftest.$ac_ext
41009 cat >>conftest.$ac_ext <<_ACEOF
41010 /* end confdefs.h.  */
41011
41012 /* Override any GCC internal prototype to avoid an error.
41013    Use char because int might match the return type of a GCC
41014    builtin and then its argument prototype would still apply.  */
41015 #ifdef __cplusplus
41016 extern "C"
41017 #endif
41018 char acltotext ();
41019 int
41020 main ()
41021 {
41022 return acltotext ();
41023   ;
41024   return 0;
41025 }
41026 _ACEOF
41027 rm -f conftest.$ac_objext conftest$ac_exeext
41028 if { (ac_try="$ac_link"
41029 case "(($ac_try" in
41030   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41031   *) ac_try_echo=$ac_try;;
41032 esac
41033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41034   (eval "$ac_link") 2>conftest.er1
41035   ac_status=$?
41036   grep -v '^ *+' conftest.er1 >conftest.err
41037   rm -f conftest.er1
41038   cat conftest.err >&5
41039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41040   (exit $ac_status); } && {
41041          test -z "$ac_c_werror_flag" ||
41042          test ! -s conftest.err
41043        } && test -s conftest$ac_exeext &&
41044        $as_test_x conftest$ac_exeext; then
41045   ac_cv_lib_sec_acltotext=yes
41046 else
41047   echo "$as_me: failed program was:" >&5
41048 sed 's/^/| /' conftest.$ac_ext >&5
41049
41050         ac_cv_lib_sec_acltotext=no
41051 fi
41052
41053 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41054       conftest$ac_exeext conftest.$ac_ext
41055 LIBS=$ac_check_lib_save_LIBS
41056 fi
41057 { echo "$as_me:$LINENO: result: $ac_cv_lib_sec_acltotext" >&5
41058 echo "${ECHO_T}$ac_cv_lib_sec_acltotext" >&6; }
41059 if test $ac_cv_lib_sec_acltotext = yes; then
41060
41061                                have_acl=yes;
41062                                FDLIBS="-lsec $FDLIBS"
41063
41064                                { echo "$as_me:$LINENO: checking for acl_totext in -lsec" >&5
41065 echo $ECHO_N "checking for acl_totext in -lsec... $ECHO_C" >&6; }
41066 if test "${ac_cv_lib_sec_acl_totext+set}" = set; then
41067   echo $ECHO_N "(cached) $ECHO_C" >&6
41068 else
41069   ac_check_lib_save_LIBS=$LIBS
41070 LIBS="-lsec  $LIBS"
41071 cat >conftest.$ac_ext <<_ACEOF
41072 /* confdefs.h.  */
41073 _ACEOF
41074 cat confdefs.h >>conftest.$ac_ext
41075 cat >>conftest.$ac_ext <<_ACEOF
41076 /* end confdefs.h.  */
41077
41078 /* Override any GCC internal prototype to avoid an error.
41079    Use char because int might match the return type of a GCC
41080    builtin and then its argument prototype would still apply.  */
41081 #ifdef __cplusplus
41082 extern "C"
41083 #endif
41084 char acl_totext ();
41085 int
41086 main ()
41087 {
41088 return acl_totext ();
41089   ;
41090   return 0;
41091 }
41092 _ACEOF
41093 rm -f conftest.$ac_objext conftest$ac_exeext
41094 if { (ac_try="$ac_link"
41095 case "(($ac_try" in
41096   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41097   *) ac_try_echo=$ac_try;;
41098 esac
41099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41100   (eval "$ac_link") 2>conftest.er1
41101   ac_status=$?
41102   grep -v '^ *+' conftest.er1 >conftest.err
41103   rm -f conftest.er1
41104   cat conftest.err >&5
41105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41106   (exit $ac_status); } && {
41107          test -z "$ac_c_werror_flag" ||
41108          test ! -s conftest.err
41109        } && test -s conftest$ac_exeext &&
41110        $as_test_x conftest$ac_exeext; then
41111   ac_cv_lib_sec_acl_totext=yes
41112 else
41113   echo "$as_me: failed program was:" >&5
41114 sed 's/^/| /' conftest.$ac_ext >&5
41115
41116         ac_cv_lib_sec_acl_totext=no
41117 fi
41118
41119 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41120       conftest$ac_exeext conftest.$ac_ext
41121 LIBS=$ac_check_lib_save_LIBS
41122 fi
41123 { echo "$as_me:$LINENO: result: $ac_cv_lib_sec_acl_totext" >&5
41124 echo "${ECHO_T}$ac_cv_lib_sec_acl_totext" >&6; }
41125 if test $ac_cv_lib_sec_acl_totext = yes; then
41126
41127                                       have_extended_acl=yes
41128
41129
41130 fi
41131
41132
41133
41134 fi
41135
41136
41137
41138 fi
41139
41140
41141
41142 fi
41143
41144
41145
41146 fi
41147
41148    if test $have_acl = yes; then
41149
41150 cat >>confdefs.h <<\_ACEOF
41151 #define HAVE_ACL
41152 _ACEOF
41153
41154    fi
41155
41156    if test $have_extended_acl = yes; then
41157
41158 cat >>confdefs.h <<\_ACEOF
41159 #define HAVE_EXTENDED_ACL
41160 _ACEOF
41161
41162    fi
41163 fi
41164
41165 support_xattr=yes
41166 # Check whether --enable-xattr was given.
41167 if test "${enable_xattr+set}" = set; then
41168   enableval=$enable_xattr;
41169        if test x$enableval = xno; then
41170           support_xattr=no
41171        fi
41172
41173
41174 fi
41175
41176
41177 have_xattr=no
41178 if test x$support_xattr = xyes; then
41179    if test "${ac_cv_header_sys_xattr_h+set}" = set; then
41180   { echo "$as_me:$LINENO: checking for sys/xattr.h" >&5
41181 echo $ECHO_N "checking for sys/xattr.h... $ECHO_C" >&6; }
41182 if test "${ac_cv_header_sys_xattr_h+set}" = set; then
41183   echo $ECHO_N "(cached) $ECHO_C" >&6
41184 fi
41185 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_xattr_h" >&5
41186 echo "${ECHO_T}$ac_cv_header_sys_xattr_h" >&6; }
41187 else
41188   # Is the header compilable?
41189 { echo "$as_me:$LINENO: checking sys/xattr.h usability" >&5
41190 echo $ECHO_N "checking sys/xattr.h usability... $ECHO_C" >&6; }
41191 cat >conftest.$ac_ext <<_ACEOF
41192 /* confdefs.h.  */
41193 _ACEOF
41194 cat confdefs.h >>conftest.$ac_ext
41195 cat >>conftest.$ac_ext <<_ACEOF
41196 /* end confdefs.h.  */
41197 $ac_includes_default
41198 #include <sys/xattr.h>
41199 _ACEOF
41200 rm -f conftest.$ac_objext
41201 if { (ac_try="$ac_compile"
41202 case "(($ac_try" in
41203   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41204   *) ac_try_echo=$ac_try;;
41205 esac
41206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41207   (eval "$ac_compile") 2>conftest.er1
41208   ac_status=$?
41209   grep -v '^ *+' conftest.er1 >conftest.err
41210   rm -f conftest.er1
41211   cat conftest.err >&5
41212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41213   (exit $ac_status); } && {
41214          test -z "$ac_c_werror_flag" ||
41215          test ! -s conftest.err
41216        } && test -s conftest.$ac_objext; then
41217   ac_header_compiler=yes
41218 else
41219   echo "$as_me: failed program was:" >&5
41220 sed 's/^/| /' conftest.$ac_ext >&5
41221
41222         ac_header_compiler=no
41223 fi
41224
41225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41226 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
41227 echo "${ECHO_T}$ac_header_compiler" >&6; }
41228
41229 # Is the header present?
41230 { echo "$as_me:$LINENO: checking sys/xattr.h presence" >&5
41231 echo $ECHO_N "checking sys/xattr.h presence... $ECHO_C" >&6; }
41232 cat >conftest.$ac_ext <<_ACEOF
41233 /* confdefs.h.  */
41234 _ACEOF
41235 cat confdefs.h >>conftest.$ac_ext
41236 cat >>conftest.$ac_ext <<_ACEOF
41237 /* end confdefs.h.  */
41238 #include <sys/xattr.h>
41239 _ACEOF
41240 if { (ac_try="$ac_cpp conftest.$ac_ext"
41241 case "(($ac_try" in
41242   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41243   *) ac_try_echo=$ac_try;;
41244 esac
41245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41246   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
41247   ac_status=$?
41248   grep -v '^ *+' conftest.er1 >conftest.err
41249   rm -f conftest.er1
41250   cat conftest.err >&5
41251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41252   (exit $ac_status); } >/dev/null && {
41253          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
41254          test ! -s conftest.err
41255        }; then
41256   ac_header_preproc=yes
41257 else
41258   echo "$as_me: failed program was:" >&5
41259 sed 's/^/| /' conftest.$ac_ext >&5
41260
41261   ac_header_preproc=no
41262 fi
41263
41264 rm -f conftest.err conftest.$ac_ext
41265 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
41266 echo "${ECHO_T}$ac_header_preproc" >&6; }
41267
41268 # So?  What about this header?
41269 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
41270   yes:no: )
41271     { echo "$as_me:$LINENO: WARNING: sys/xattr.h: accepted by the compiler, rejected by the preprocessor!" >&5
41272 echo "$as_me: WARNING: sys/xattr.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
41273     { echo "$as_me:$LINENO: WARNING: sys/xattr.h: proceeding with the compiler's result" >&5
41274 echo "$as_me: WARNING: sys/xattr.h: proceeding with the compiler's result" >&2;}
41275     ac_header_preproc=yes
41276     ;;
41277   no:yes:* )
41278     { echo "$as_me:$LINENO: WARNING: sys/xattr.h: present but cannot be compiled" >&5
41279 echo "$as_me: WARNING: sys/xattr.h: present but cannot be compiled" >&2;}
41280     { echo "$as_me:$LINENO: WARNING: sys/xattr.h:     check for missing prerequisite headers?" >&5
41281 echo "$as_me: WARNING: sys/xattr.h:     check for missing prerequisite headers?" >&2;}
41282     { echo "$as_me:$LINENO: WARNING: sys/xattr.h: see the Autoconf documentation" >&5
41283 echo "$as_me: WARNING: sys/xattr.h: see the Autoconf documentation" >&2;}
41284     { echo "$as_me:$LINENO: WARNING: sys/xattr.h:     section \"Present But Cannot Be Compiled\"" >&5
41285 echo "$as_me: WARNING: sys/xattr.h:     section \"Present But Cannot Be Compiled\"" >&2;}
41286     { echo "$as_me:$LINENO: WARNING: sys/xattr.h: proceeding with the preprocessor's result" >&5
41287 echo "$as_me: WARNING: sys/xattr.h: proceeding with the preprocessor's result" >&2;}
41288     { echo "$as_me:$LINENO: WARNING: sys/xattr.h: in the future, the compiler will take precedence" >&5
41289 echo "$as_me: WARNING: sys/xattr.h: in the future, the compiler will take precedence" >&2;}
41290
41291     ;;
41292 esac
41293 { echo "$as_me:$LINENO: checking for sys/xattr.h" >&5
41294 echo $ECHO_N "checking for sys/xattr.h... $ECHO_C" >&6; }
41295 if test "${ac_cv_header_sys_xattr_h+set}" = set; then
41296   echo $ECHO_N "(cached) $ECHO_C" >&6
41297 else
41298   ac_cv_header_sys_xattr_h=$ac_header_preproc
41299 fi
41300 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_xattr_h" >&5
41301 echo "${ECHO_T}$ac_cv_header_sys_xattr_h" >&6; }
41302
41303 fi
41304 if test $ac_cv_header_sys_xattr_h = yes; then
41305
41306 cat >>confdefs.h <<\_ACEOF
41307 #define HAVE_SYS_XATTR_H 1
41308 _ACEOF
41309
41310 fi
41311
41312
41313
41314
41315
41316 for ac_func in llistxattr lgetxattr lsetxattr
41317 do
41318 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41319 { echo "$as_me:$LINENO: checking for $ac_func" >&5
41320 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
41321 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41322   echo $ECHO_N "(cached) $ECHO_C" >&6
41323 else
41324   cat >conftest.$ac_ext <<_ACEOF
41325 /* confdefs.h.  */
41326 _ACEOF
41327 cat confdefs.h >>conftest.$ac_ext
41328 cat >>conftest.$ac_ext <<_ACEOF
41329 /* end confdefs.h.  */
41330 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41331    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41332 #define $ac_func innocuous_$ac_func
41333
41334 /* System header to define __stub macros and hopefully few prototypes,
41335     which can conflict with char $ac_func (); below.
41336     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41337     <limits.h> exists even on freestanding compilers.  */
41338
41339 #ifdef __STDC__
41340 # include <limits.h>
41341 #else
41342 # include <assert.h>
41343 #endif
41344
41345 #undef $ac_func
41346
41347 /* Override any GCC internal prototype to avoid an error.
41348    Use char because int might match the return type of a GCC
41349    builtin and then its argument prototype would still apply.  */
41350 #ifdef __cplusplus
41351 extern "C"
41352 #endif
41353 char $ac_func ();
41354 /* The GNU C library defines this for functions which it implements
41355     to always fail with ENOSYS.  Some functions are actually named
41356     something starting with __ and the normal name is an alias.  */
41357 #if defined __stub_$ac_func || defined __stub___$ac_func
41358 choke me
41359 #endif
41360
41361 int
41362 main ()
41363 {
41364 return $ac_func ();
41365   ;
41366   return 0;
41367 }
41368 _ACEOF
41369 rm -f conftest.$ac_objext conftest$ac_exeext
41370 if { (ac_try="$ac_link"
41371 case "(($ac_try" in
41372   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41373   *) ac_try_echo=$ac_try;;
41374 esac
41375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41376   (eval "$ac_link") 2>conftest.er1
41377   ac_status=$?
41378   grep -v '^ *+' conftest.er1 >conftest.err
41379   rm -f conftest.er1
41380   cat conftest.err >&5
41381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41382   (exit $ac_status); } && {
41383          test -z "$ac_c_werror_flag" ||
41384          test ! -s conftest.err
41385        } && test -s conftest$ac_exeext &&
41386        $as_test_x conftest$ac_exeext; then
41387   eval "$as_ac_var=yes"
41388 else
41389   echo "$as_me: failed program was:" >&5
41390 sed 's/^/| /' conftest.$ac_ext >&5
41391
41392         eval "$as_ac_var=no"
41393 fi
41394
41395 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41396       conftest$ac_exeext conftest.$ac_ext
41397 fi
41398 ac_res=`eval echo '${'$as_ac_var'}'`
41399                { echo "$as_me:$LINENO: result: $ac_res" >&5
41400 echo "${ECHO_T}$ac_res" >&6; }
41401 if test `eval echo '${'$as_ac_var'}'` = yes; then
41402   cat >>confdefs.h <<_ACEOF
41403 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41404 _ACEOF
41405
41406           have_xattr=yes
41407
41408 cat >>confdefs.h <<\_ACEOF
41409 #define HAVE_LLISTXATTR
41410 _ACEOF
41411
41412
41413 cat >>confdefs.h <<\_ACEOF
41414 #define HAVE_LGETXATTR
41415 _ACEOF
41416
41417
41418 cat >>confdefs.h <<\_ACEOF
41419 #define HAVE_LSETXATTR
41420 _ACEOF
41421
41422
41423
41424 fi
41425 done
41426
41427
41428    #
41429    # OSX specific
41430    #
41431    if test $have_xattr = no; then
41432
41433
41434
41435 for ac_func in listxattr getxattr setxattr
41436 do
41437 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41438 { echo "$as_me:$LINENO: checking for $ac_func" >&5
41439 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
41440 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41441   echo $ECHO_N "(cached) $ECHO_C" >&6
41442 else
41443   cat >conftest.$ac_ext <<_ACEOF
41444 /* confdefs.h.  */
41445 _ACEOF
41446 cat confdefs.h >>conftest.$ac_ext
41447 cat >>conftest.$ac_ext <<_ACEOF
41448 /* end confdefs.h.  */
41449 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41450    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41451 #define $ac_func innocuous_$ac_func
41452
41453 /* System header to define __stub macros and hopefully few prototypes,
41454     which can conflict with char $ac_func (); below.
41455     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41456     <limits.h> exists even on freestanding compilers.  */
41457
41458 #ifdef __STDC__
41459 # include <limits.h>
41460 #else
41461 # include <assert.h>
41462 #endif
41463
41464 #undef $ac_func
41465
41466 /* Override any GCC internal prototype to avoid an error.
41467    Use char because int might match the return type of a GCC
41468    builtin and then its argument prototype would still apply.  */
41469 #ifdef __cplusplus
41470 extern "C"
41471 #endif
41472 char $ac_func ();
41473 /* The GNU C library defines this for functions which it implements
41474     to always fail with ENOSYS.  Some functions are actually named
41475     something starting with __ and the normal name is an alias.  */
41476 #if defined __stub_$ac_func || defined __stub___$ac_func
41477 choke me
41478 #endif
41479
41480 int
41481 main ()
41482 {
41483 return $ac_func ();
41484   ;
41485   return 0;
41486 }
41487 _ACEOF
41488 rm -f conftest.$ac_objext conftest$ac_exeext
41489 if { (ac_try="$ac_link"
41490 case "(($ac_try" in
41491   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41492   *) ac_try_echo=$ac_try;;
41493 esac
41494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41495   (eval "$ac_link") 2>conftest.er1
41496   ac_status=$?
41497   grep -v '^ *+' conftest.er1 >conftest.err
41498   rm -f conftest.er1
41499   cat conftest.err >&5
41500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41501   (exit $ac_status); } && {
41502          test -z "$ac_c_werror_flag" ||
41503          test ! -s conftest.err
41504        } && test -s conftest$ac_exeext &&
41505        $as_test_x conftest$ac_exeext; then
41506   eval "$as_ac_var=yes"
41507 else
41508   echo "$as_me: failed program was:" >&5
41509 sed 's/^/| /' conftest.$ac_ext >&5
41510
41511         eval "$as_ac_var=no"
41512 fi
41513
41514 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41515       conftest$ac_exeext conftest.$ac_ext
41516 fi
41517 ac_res=`eval echo '${'$as_ac_var'}'`
41518                { echo "$as_me:$LINENO: result: $ac_res" >&5
41519 echo "${ECHO_T}$ac_res" >&6; }
41520 if test `eval echo '${'$as_ac_var'}'` = yes; then
41521   cat >>confdefs.h <<_ACEOF
41522 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41523 _ACEOF
41524
41525              have_xattr=yes
41526
41527 cat >>confdefs.h <<\_ACEOF
41528 #define HAVE_LLISTXATTR
41529 _ACEOF
41530
41531
41532 cat >>confdefs.h <<\_ACEOF
41533 #define HAVE_LGETXATTR
41534 _ACEOF
41535
41536
41537 cat >>confdefs.h <<\_ACEOF
41538 #define HAVE_LSETXATTR
41539 _ACEOF
41540
41541
41542
41543 fi
41544 done
41545
41546    fi
41547
41548    #
41549    # Solaris specific
41550    #
41551    if test $have_xattr = no; then
41552       if test "${ac_cv_header_sys_attr_h+set}" = set; then
41553   { echo "$as_me:$LINENO: checking for sys/attr.h" >&5
41554 echo $ECHO_N "checking for sys/attr.h... $ECHO_C" >&6; }
41555 if test "${ac_cv_header_sys_attr_h+set}" = set; then
41556   echo $ECHO_N "(cached) $ECHO_C" >&6
41557 fi
41558 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_attr_h" >&5
41559 echo "${ECHO_T}$ac_cv_header_sys_attr_h" >&6; }
41560 else
41561   # Is the header compilable?
41562 { echo "$as_me:$LINENO: checking sys/attr.h usability" >&5
41563 echo $ECHO_N "checking sys/attr.h usability... $ECHO_C" >&6; }
41564 cat >conftest.$ac_ext <<_ACEOF
41565 /* confdefs.h.  */
41566 _ACEOF
41567 cat confdefs.h >>conftest.$ac_ext
41568 cat >>conftest.$ac_ext <<_ACEOF
41569 /* end confdefs.h.  */
41570 $ac_includes_default
41571 #include <sys/attr.h>
41572 _ACEOF
41573 rm -f conftest.$ac_objext
41574 if { (ac_try="$ac_compile"
41575 case "(($ac_try" in
41576   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41577   *) ac_try_echo=$ac_try;;
41578 esac
41579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41580   (eval "$ac_compile") 2>conftest.er1
41581   ac_status=$?
41582   grep -v '^ *+' conftest.er1 >conftest.err
41583   rm -f conftest.er1
41584   cat conftest.err >&5
41585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41586   (exit $ac_status); } && {
41587          test -z "$ac_c_werror_flag" ||
41588          test ! -s conftest.err
41589        } && test -s conftest.$ac_objext; then
41590   ac_header_compiler=yes
41591 else
41592   echo "$as_me: failed program was:" >&5
41593 sed 's/^/| /' conftest.$ac_ext >&5
41594
41595         ac_header_compiler=no
41596 fi
41597
41598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41599 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
41600 echo "${ECHO_T}$ac_header_compiler" >&6; }
41601
41602 # Is the header present?
41603 { echo "$as_me:$LINENO: checking sys/attr.h presence" >&5
41604 echo $ECHO_N "checking sys/attr.h presence... $ECHO_C" >&6; }
41605 cat >conftest.$ac_ext <<_ACEOF
41606 /* confdefs.h.  */
41607 _ACEOF
41608 cat confdefs.h >>conftest.$ac_ext
41609 cat >>conftest.$ac_ext <<_ACEOF
41610 /* end confdefs.h.  */
41611 #include <sys/attr.h>
41612 _ACEOF
41613 if { (ac_try="$ac_cpp conftest.$ac_ext"
41614 case "(($ac_try" in
41615   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41616   *) ac_try_echo=$ac_try;;
41617 esac
41618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41619   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
41620   ac_status=$?
41621   grep -v '^ *+' conftest.er1 >conftest.err
41622   rm -f conftest.er1
41623   cat conftest.err >&5
41624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41625   (exit $ac_status); } >/dev/null && {
41626          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
41627          test ! -s conftest.err
41628        }; then
41629   ac_header_preproc=yes
41630 else
41631   echo "$as_me: failed program was:" >&5
41632 sed 's/^/| /' conftest.$ac_ext >&5
41633
41634   ac_header_preproc=no
41635 fi
41636
41637 rm -f conftest.err conftest.$ac_ext
41638 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
41639 echo "${ECHO_T}$ac_header_preproc" >&6; }
41640
41641 # So?  What about this header?
41642 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
41643   yes:no: )
41644     { echo "$as_me:$LINENO: WARNING: sys/attr.h: accepted by the compiler, rejected by the preprocessor!" >&5
41645 echo "$as_me: WARNING: sys/attr.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
41646     { echo "$as_me:$LINENO: WARNING: sys/attr.h: proceeding with the compiler's result" >&5
41647 echo "$as_me: WARNING: sys/attr.h: proceeding with the compiler's result" >&2;}
41648     ac_header_preproc=yes
41649     ;;
41650   no:yes:* )
41651     { echo "$as_me:$LINENO: WARNING: sys/attr.h: present but cannot be compiled" >&5
41652 echo "$as_me: WARNING: sys/attr.h: present but cannot be compiled" >&2;}
41653     { echo "$as_me:$LINENO: WARNING: sys/attr.h:     check for missing prerequisite headers?" >&5
41654 echo "$as_me: WARNING: sys/attr.h:     check for missing prerequisite headers?" >&2;}
41655     { echo "$as_me:$LINENO: WARNING: sys/attr.h: see the Autoconf documentation" >&5
41656 echo "$as_me: WARNING: sys/attr.h: see the Autoconf documentation" >&2;}
41657     { echo "$as_me:$LINENO: WARNING: sys/attr.h:     section \"Present But Cannot Be Compiled\"" >&5
41658 echo "$as_me: WARNING: sys/attr.h:     section \"Present But Cannot Be Compiled\"" >&2;}
41659     { echo "$as_me:$LINENO: WARNING: sys/attr.h: proceeding with the preprocessor's result" >&5
41660 echo "$as_me: WARNING: sys/attr.h: proceeding with the preprocessor's result" >&2;}
41661     { echo "$as_me:$LINENO: WARNING: sys/attr.h: in the future, the compiler will take precedence" >&5
41662 echo "$as_me: WARNING: sys/attr.h: in the future, the compiler will take precedence" >&2;}
41663
41664     ;;
41665 esac
41666 { echo "$as_me:$LINENO: checking for sys/attr.h" >&5
41667 echo $ECHO_N "checking for sys/attr.h... $ECHO_C" >&6; }
41668 if test "${ac_cv_header_sys_attr_h+set}" = set; then
41669   echo $ECHO_N "(cached) $ECHO_C" >&6
41670 else
41671   ac_cv_header_sys_attr_h=$ac_header_preproc
41672 fi
41673 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_attr_h" >&5
41674 echo "${ECHO_T}$ac_cv_header_sys_attr_h" >&6; }
41675
41676 fi
41677 if test $ac_cv_header_sys_attr_h = yes; then
41678
41679 cat >>confdefs.h <<\_ACEOF
41680 #define HAVE_SYS_ATTR_H 1
41681 _ACEOF
41682
41683 fi
41684
41685
41686       if test "${ac_cv_header_sys_nvpair_h+set}" = set; then
41687   { echo "$as_me:$LINENO: checking for sys/nvpair.h" >&5
41688 echo $ECHO_N "checking for sys/nvpair.h... $ECHO_C" >&6; }
41689 if test "${ac_cv_header_sys_nvpair_h+set}" = set; then
41690   echo $ECHO_N "(cached) $ECHO_C" >&6
41691 fi
41692 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_nvpair_h" >&5
41693 echo "${ECHO_T}$ac_cv_header_sys_nvpair_h" >&6; }
41694 else
41695   # Is the header compilable?
41696 { echo "$as_me:$LINENO: checking sys/nvpair.h usability" >&5
41697 echo $ECHO_N "checking sys/nvpair.h usability... $ECHO_C" >&6; }
41698 cat >conftest.$ac_ext <<_ACEOF
41699 /* confdefs.h.  */
41700 _ACEOF
41701 cat confdefs.h >>conftest.$ac_ext
41702 cat >>conftest.$ac_ext <<_ACEOF
41703 /* end confdefs.h.  */
41704 $ac_includes_default
41705 #include <sys/nvpair.h>
41706 _ACEOF
41707 rm -f conftest.$ac_objext
41708 if { (ac_try="$ac_compile"
41709 case "(($ac_try" in
41710   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41711   *) ac_try_echo=$ac_try;;
41712 esac
41713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41714   (eval "$ac_compile") 2>conftest.er1
41715   ac_status=$?
41716   grep -v '^ *+' conftest.er1 >conftest.err
41717   rm -f conftest.er1
41718   cat conftest.err >&5
41719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41720   (exit $ac_status); } && {
41721          test -z "$ac_c_werror_flag" ||
41722          test ! -s conftest.err
41723        } && test -s conftest.$ac_objext; then
41724   ac_header_compiler=yes
41725 else
41726   echo "$as_me: failed program was:" >&5
41727 sed 's/^/| /' conftest.$ac_ext >&5
41728
41729         ac_header_compiler=no
41730 fi
41731
41732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41733 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
41734 echo "${ECHO_T}$ac_header_compiler" >&6; }
41735
41736 # Is the header present?
41737 { echo "$as_me:$LINENO: checking sys/nvpair.h presence" >&5
41738 echo $ECHO_N "checking sys/nvpair.h presence... $ECHO_C" >&6; }
41739 cat >conftest.$ac_ext <<_ACEOF
41740 /* confdefs.h.  */
41741 _ACEOF
41742 cat confdefs.h >>conftest.$ac_ext
41743 cat >>conftest.$ac_ext <<_ACEOF
41744 /* end confdefs.h.  */
41745 #include <sys/nvpair.h>
41746 _ACEOF
41747 if { (ac_try="$ac_cpp conftest.$ac_ext"
41748 case "(($ac_try" in
41749   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41750   *) ac_try_echo=$ac_try;;
41751 esac
41752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41753   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
41754   ac_status=$?
41755   grep -v '^ *+' conftest.er1 >conftest.err
41756   rm -f conftest.er1
41757   cat conftest.err >&5
41758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41759   (exit $ac_status); } >/dev/null && {
41760          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
41761          test ! -s conftest.err
41762        }; then
41763   ac_header_preproc=yes
41764 else
41765   echo "$as_me: failed program was:" >&5
41766 sed 's/^/| /' conftest.$ac_ext >&5
41767
41768   ac_header_preproc=no
41769 fi
41770
41771 rm -f conftest.err conftest.$ac_ext
41772 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
41773 echo "${ECHO_T}$ac_header_preproc" >&6; }
41774
41775 # So?  What about this header?
41776 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
41777   yes:no: )
41778     { echo "$as_me:$LINENO: WARNING: sys/nvpair.h: accepted by the compiler, rejected by the preprocessor!" >&5
41779 echo "$as_me: WARNING: sys/nvpair.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
41780     { echo "$as_me:$LINENO: WARNING: sys/nvpair.h: proceeding with the compiler's result" >&5
41781 echo "$as_me: WARNING: sys/nvpair.h: proceeding with the compiler's result" >&2;}
41782     ac_header_preproc=yes
41783     ;;
41784   no:yes:* )
41785     { echo "$as_me:$LINENO: WARNING: sys/nvpair.h: present but cannot be compiled" >&5
41786 echo "$as_me: WARNING: sys/nvpair.h: present but cannot be compiled" >&2;}
41787     { echo "$as_me:$LINENO: WARNING: sys/nvpair.h:     check for missing prerequisite headers?" >&5
41788 echo "$as_me: WARNING: sys/nvpair.h:     check for missing prerequisite headers?" >&2;}
41789     { echo "$as_me:$LINENO: WARNING: sys/nvpair.h: see the Autoconf documentation" >&5
41790 echo "$as_me: WARNING: sys/nvpair.h: see the Autoconf documentation" >&2;}
41791     { echo "$as_me:$LINENO: WARNING: sys/nvpair.h:     section \"Present But Cannot Be Compiled\"" >&5
41792 echo "$as_me: WARNING: sys/nvpair.h:     section \"Present But Cannot Be Compiled\"" >&2;}
41793     { echo "$as_me:$LINENO: WARNING: sys/nvpair.h: proceeding with the preprocessor's result" >&5
41794 echo "$as_me: WARNING: sys/nvpair.h: proceeding with the preprocessor's result" >&2;}
41795     { echo "$as_me:$LINENO: WARNING: sys/nvpair.h: in the future, the compiler will take precedence" >&5
41796 echo "$as_me: WARNING: sys/nvpair.h: in the future, the compiler will take precedence" >&2;}
41797
41798     ;;
41799 esac
41800 { echo "$as_me:$LINENO: checking for sys/nvpair.h" >&5
41801 echo $ECHO_N "checking for sys/nvpair.h... $ECHO_C" >&6; }
41802 if test "${ac_cv_header_sys_nvpair_h+set}" = set; then
41803   echo $ECHO_N "(cached) $ECHO_C" >&6
41804 else
41805   ac_cv_header_sys_nvpair_h=$ac_header_preproc
41806 fi
41807 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_nvpair_h" >&5
41808 echo "${ECHO_T}$ac_cv_header_sys_nvpair_h" >&6; }
41809
41810 fi
41811 if test $ac_cv_header_sys_nvpair_h = yes; then
41812
41813 cat >>confdefs.h <<\_ACEOF
41814 #define HAVE_SYS_NVPAIR_H 1
41815 _ACEOF
41816
41817 fi
41818
41819
41820       if test "${ac_cv_header_attr_h+set}" = set; then
41821   { echo "$as_me:$LINENO: checking for attr.h" >&5
41822 echo $ECHO_N "checking for attr.h... $ECHO_C" >&6; }
41823 if test "${ac_cv_header_attr_h+set}" = set; then
41824   echo $ECHO_N "(cached) $ECHO_C" >&6
41825 fi
41826 { echo "$as_me:$LINENO: result: $ac_cv_header_attr_h" >&5
41827 echo "${ECHO_T}$ac_cv_header_attr_h" >&6; }
41828 else
41829   # Is the header compilable?
41830 { echo "$as_me:$LINENO: checking attr.h usability" >&5
41831 echo $ECHO_N "checking attr.h usability... $ECHO_C" >&6; }
41832 cat >conftest.$ac_ext <<_ACEOF
41833 /* confdefs.h.  */
41834 _ACEOF
41835 cat confdefs.h >>conftest.$ac_ext
41836 cat >>conftest.$ac_ext <<_ACEOF
41837 /* end confdefs.h.  */
41838 $ac_includes_default
41839 #include <attr.h>
41840 _ACEOF
41841 rm -f conftest.$ac_objext
41842 if { (ac_try="$ac_compile"
41843 case "(($ac_try" in
41844   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41845   *) ac_try_echo=$ac_try;;
41846 esac
41847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41848   (eval "$ac_compile") 2>conftest.er1
41849   ac_status=$?
41850   grep -v '^ *+' conftest.er1 >conftest.err
41851   rm -f conftest.er1
41852   cat conftest.err >&5
41853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41854   (exit $ac_status); } && {
41855          test -z "$ac_c_werror_flag" ||
41856          test ! -s conftest.err
41857        } && test -s conftest.$ac_objext; then
41858   ac_header_compiler=yes
41859 else
41860   echo "$as_me: failed program was:" >&5
41861 sed 's/^/| /' conftest.$ac_ext >&5
41862
41863         ac_header_compiler=no
41864 fi
41865
41866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41867 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
41868 echo "${ECHO_T}$ac_header_compiler" >&6; }
41869
41870 # Is the header present?
41871 { echo "$as_me:$LINENO: checking attr.h presence" >&5
41872 echo $ECHO_N "checking attr.h presence... $ECHO_C" >&6; }
41873 cat >conftest.$ac_ext <<_ACEOF
41874 /* confdefs.h.  */
41875 _ACEOF
41876 cat confdefs.h >>conftest.$ac_ext
41877 cat >>conftest.$ac_ext <<_ACEOF
41878 /* end confdefs.h.  */
41879 #include <attr.h>
41880 _ACEOF
41881 if { (ac_try="$ac_cpp conftest.$ac_ext"
41882 case "(($ac_try" in
41883   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41884   *) ac_try_echo=$ac_try;;
41885 esac
41886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41887   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
41888   ac_status=$?
41889   grep -v '^ *+' conftest.er1 >conftest.err
41890   rm -f conftest.er1
41891   cat conftest.err >&5
41892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41893   (exit $ac_status); } >/dev/null && {
41894          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
41895          test ! -s conftest.err
41896        }; then
41897   ac_header_preproc=yes
41898 else
41899   echo "$as_me: failed program was:" >&5
41900 sed 's/^/| /' conftest.$ac_ext >&5
41901
41902   ac_header_preproc=no
41903 fi
41904
41905 rm -f conftest.err conftest.$ac_ext
41906 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
41907 echo "${ECHO_T}$ac_header_preproc" >&6; }
41908
41909 # So?  What about this header?
41910 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
41911   yes:no: )
41912     { echo "$as_me:$LINENO: WARNING: attr.h: accepted by the compiler, rejected by the preprocessor!" >&5
41913 echo "$as_me: WARNING: attr.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
41914     { echo "$as_me:$LINENO: WARNING: attr.h: proceeding with the compiler's result" >&5
41915 echo "$as_me: WARNING: attr.h: proceeding with the compiler's result" >&2;}
41916     ac_header_preproc=yes
41917     ;;
41918   no:yes:* )
41919     { echo "$as_me:$LINENO: WARNING: attr.h: present but cannot be compiled" >&5
41920 echo "$as_me: WARNING: attr.h: present but cannot be compiled" >&2;}
41921     { echo "$as_me:$LINENO: WARNING: attr.h:     check for missing prerequisite headers?" >&5
41922 echo "$as_me: WARNING: attr.h:     check for missing prerequisite headers?" >&2;}
41923     { echo "$as_me:$LINENO: WARNING: attr.h: see the Autoconf documentation" >&5
41924 echo "$as_me: WARNING: attr.h: see the Autoconf documentation" >&2;}
41925     { echo "$as_me:$LINENO: WARNING: attr.h:     section \"Present But Cannot Be Compiled\"" >&5
41926 echo "$as_me: WARNING: attr.h:     section \"Present But Cannot Be Compiled\"" >&2;}
41927     { echo "$as_me:$LINENO: WARNING: attr.h: proceeding with the preprocessor's result" >&5
41928 echo "$as_me: WARNING: attr.h: proceeding with the preprocessor's result" >&2;}
41929     { echo "$as_me:$LINENO: WARNING: attr.h: in the future, the compiler will take precedence" >&5
41930 echo "$as_me: WARNING: attr.h: in the future, the compiler will take precedence" >&2;}
41931
41932     ;;
41933 esac
41934 { echo "$as_me:$LINENO: checking for attr.h" >&5
41935 echo $ECHO_N "checking for attr.h... $ECHO_C" >&6; }
41936 if test "${ac_cv_header_attr_h+set}" = set; then
41937   echo $ECHO_N "(cached) $ECHO_C" >&6
41938 else
41939   ac_cv_header_attr_h=$ac_header_preproc
41940 fi
41941 { echo "$as_me:$LINENO: result: $ac_cv_header_attr_h" >&5
41942 echo "${ECHO_T}$ac_cv_header_attr_h" >&6; }
41943
41944 fi
41945 if test $ac_cv_header_attr_h = yes; then
41946
41947 cat >>confdefs.h <<\_ACEOF
41948 #define HAVE_ATTR_H 1
41949 _ACEOF
41950
41951 fi
41952
41953
41954
41955
41956
41957
41958
41959
41960 for ac_func in openat fstatat unlinkat fchownat futimesat
41961 do
41962 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41963 { echo "$as_me:$LINENO: checking for $ac_func" >&5
41964 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
41965 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41966   echo $ECHO_N "(cached) $ECHO_C" >&6
41967 else
41968   cat >conftest.$ac_ext <<_ACEOF
41969 /* confdefs.h.  */
41970 _ACEOF
41971 cat confdefs.h >>conftest.$ac_ext
41972 cat >>conftest.$ac_ext <<_ACEOF
41973 /* end confdefs.h.  */
41974 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41975    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41976 #define $ac_func innocuous_$ac_func
41977
41978 /* System header to define __stub macros and hopefully few prototypes,
41979     which can conflict with char $ac_func (); below.
41980     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41981     <limits.h> exists even on freestanding compilers.  */
41982
41983 #ifdef __STDC__
41984 # include <limits.h>
41985 #else
41986 # include <assert.h>
41987 #endif
41988
41989 #undef $ac_func
41990
41991 /* Override any GCC internal prototype to avoid an error.
41992    Use char because int might match the return type of a GCC
41993    builtin and then its argument prototype would still apply.  */
41994 #ifdef __cplusplus
41995 extern "C"
41996 #endif
41997 char $ac_func ();
41998 /* The GNU C library defines this for functions which it implements
41999     to always fail with ENOSYS.  Some functions are actually named
42000     something starting with __ and the normal name is an alias.  */
42001 #if defined __stub_$ac_func || defined __stub___$ac_func
42002 choke me
42003 #endif
42004
42005 int
42006 main ()
42007 {
42008 return $ac_func ();
42009   ;
42010   return 0;
42011 }
42012 _ACEOF
42013 rm -f conftest.$ac_objext conftest$ac_exeext
42014 if { (ac_try="$ac_link"
42015 case "(($ac_try" in
42016   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42017   *) ac_try_echo=$ac_try;;
42018 esac
42019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42020   (eval "$ac_link") 2>conftest.er1
42021   ac_status=$?
42022   grep -v '^ *+' conftest.er1 >conftest.err
42023   rm -f conftest.er1
42024   cat conftest.err >&5
42025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42026   (exit $ac_status); } && {
42027          test -z "$ac_c_werror_flag" ||
42028          test ! -s conftest.err
42029        } && test -s conftest$ac_exeext &&
42030        $as_test_x conftest$ac_exeext; then
42031   eval "$as_ac_var=yes"
42032 else
42033   echo "$as_me: failed program was:" >&5
42034 sed 's/^/| /' conftest.$ac_ext >&5
42035
42036         eval "$as_ac_var=no"
42037 fi
42038
42039 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42040       conftest$ac_exeext conftest.$ac_ext
42041 fi
42042 ac_res=`eval echo '${'$as_ac_var'}'`
42043                { echo "$as_me:$LINENO: result: $ac_res" >&5
42044 echo "${ECHO_T}$ac_res" >&6; }
42045 if test `eval echo '${'$as_ac_var'}'` = yes; then
42046   cat >>confdefs.h <<_ACEOF
42047 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42048 _ACEOF
42049
42050              have_xattr=yes
42051
42052 cat >>confdefs.h <<\_ACEOF
42053 #define HAVE_OPENAT
42054 _ACEOF
42055
42056
42057 cat >>confdefs.h <<\_ACEOF
42058 #define HAVE_FSTATAT
42059 _ACEOF
42060
42061
42062 cat >>confdefs.h <<\_ACEOF
42063 #define HAVE_UNLINKAT
42064 _ACEOF
42065
42066
42067 cat >>confdefs.h <<\_ACEOF
42068 #define HAVE_FCHOWNAT
42069 _ACEOF
42070
42071
42072 cat >>confdefs.h <<\_ACEOF
42073 #define HAVE_FUTIMESAT
42074 _ACEOF
42075
42076
42077
42078 fi
42079 done
42080
42081
42082       if test $have_xattr = yes; then
42083          { echo "$as_me:$LINENO: checking for nvlist_next_nvpair in -lnvpair" >&5
42084 echo $ECHO_N "checking for nvlist_next_nvpair in -lnvpair... $ECHO_C" >&6; }
42085 if test "${ac_cv_lib_nvpair_nvlist_next_nvpair+set}" = set; then
42086   echo $ECHO_N "(cached) $ECHO_C" >&6
42087 else
42088   ac_check_lib_save_LIBS=$LIBS
42089 LIBS="-lnvpair  $LIBS"
42090 cat >conftest.$ac_ext <<_ACEOF
42091 /* confdefs.h.  */
42092 _ACEOF
42093 cat confdefs.h >>conftest.$ac_ext
42094 cat >>conftest.$ac_ext <<_ACEOF
42095 /* end confdefs.h.  */
42096
42097 /* Override any GCC internal prototype to avoid an error.
42098    Use char because int might match the return type of a GCC
42099    builtin and then its argument prototype would still apply.  */
42100 #ifdef __cplusplus
42101 extern "C"
42102 #endif
42103 char nvlist_next_nvpair ();
42104 int
42105 main ()
42106 {
42107 return nvlist_next_nvpair ();
42108   ;
42109   return 0;
42110 }
42111 _ACEOF
42112 rm -f conftest.$ac_objext conftest$ac_exeext
42113 if { (ac_try="$ac_link"
42114 case "(($ac_try" in
42115   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42116   *) ac_try_echo=$ac_try;;
42117 esac
42118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42119   (eval "$ac_link") 2>conftest.er1
42120   ac_status=$?
42121   grep -v '^ *+' conftest.er1 >conftest.err
42122   rm -f conftest.er1
42123   cat conftest.err >&5
42124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42125   (exit $ac_status); } && {
42126          test -z "$ac_c_werror_flag" ||
42127          test ! -s conftest.err
42128        } && test -s conftest$ac_exeext &&
42129        $as_test_x conftest$ac_exeext; then
42130   ac_cv_lib_nvpair_nvlist_next_nvpair=yes
42131 else
42132   echo "$as_me: failed program was:" >&5
42133 sed 's/^/| /' conftest.$ac_ext >&5
42134
42135         ac_cv_lib_nvpair_nvlist_next_nvpair=no
42136 fi
42137
42138 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42139       conftest$ac_exeext conftest.$ac_ext
42140 LIBS=$ac_check_lib_save_LIBS
42141 fi
42142 { echo "$as_me:$LINENO: result: $ac_cv_lib_nvpair_nvlist_next_nvpair" >&5
42143 echo "${ECHO_T}$ac_cv_lib_nvpair_nvlist_next_nvpair" >&6; }
42144 if test $ac_cv_lib_nvpair_nvlist_next_nvpair = yes; then
42145
42146                 FDLIBS="-lnvpair $FDLIBS"
42147
42148
42149 fi
42150
42151       fi
42152    fi
42153
42154    if test $have_xattr = yes; then
42155
42156 cat >>confdefs.h <<\_ACEOF
42157 #define HAVE_XATTR
42158 _ACEOF
42159
42160    fi
42161 fi
42162
42163 PTHREAD_LIB=""
42164 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
42165 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
42166 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
42167   echo $ECHO_N "(cached) $ECHO_C" >&6
42168 else
42169   ac_check_lib_save_LIBS=$LIBS
42170 LIBS="-lpthread  $LIBS"
42171 cat >conftest.$ac_ext <<_ACEOF
42172 /* confdefs.h.  */
42173 _ACEOF
42174 cat confdefs.h >>conftest.$ac_ext
42175 cat >>conftest.$ac_ext <<_ACEOF
42176 /* end confdefs.h.  */
42177
42178 /* Override any GCC internal prototype to avoid an error.
42179    Use char because int might match the return type of a GCC
42180    builtin and then its argument prototype would still apply.  */
42181 #ifdef __cplusplus
42182 extern "C"
42183 #endif
42184 char pthread_create ();
42185 int
42186 main ()
42187 {
42188 return pthread_create ();
42189   ;
42190   return 0;
42191 }
42192 _ACEOF
42193 rm -f conftest.$ac_objext conftest$ac_exeext
42194 if { (ac_try="$ac_link"
42195 case "(($ac_try" in
42196   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42197   *) ac_try_echo=$ac_try;;
42198 esac
42199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42200   (eval "$ac_link") 2>conftest.er1
42201   ac_status=$?
42202   grep -v '^ *+' conftest.er1 >conftest.err
42203   rm -f conftest.er1
42204   cat conftest.err >&5
42205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42206   (exit $ac_status); } && {
42207          test -z "$ac_c_werror_flag" ||
42208          test ! -s conftest.err
42209        } && test -s conftest$ac_exeext &&
42210        $as_test_x conftest$ac_exeext; then
42211   ac_cv_lib_pthread_pthread_create=yes
42212 else
42213   echo "$as_me: failed program was:" >&5
42214 sed 's/^/| /' conftest.$ac_ext >&5
42215
42216         ac_cv_lib_pthread_pthread_create=no
42217 fi
42218
42219 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42220       conftest$ac_exeext conftest.$ac_ext
42221 LIBS=$ac_check_lib_save_LIBS
42222 fi
42223 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
42224 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
42225 if test $ac_cv_lib_pthread_pthread_create = yes; then
42226   PTHREAD_LIB="-lpthread"
42227 else
42228
42229        { echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
42230 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6; }
42231 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
42232   echo $ECHO_N "(cached) $ECHO_C" >&6
42233 else
42234   ac_check_lib_save_LIBS=$LIBS
42235 LIBS="-lpthreads  $LIBS"
42236 cat >conftest.$ac_ext <<_ACEOF
42237 /* confdefs.h.  */
42238 _ACEOF
42239 cat confdefs.h >>conftest.$ac_ext
42240 cat >>conftest.$ac_ext <<_ACEOF
42241 /* end confdefs.h.  */
42242
42243 /* Override any GCC internal prototype to avoid an error.
42244    Use char because int might match the return type of a GCC
42245    builtin and then its argument prototype would still apply.  */
42246 #ifdef __cplusplus
42247 extern "C"
42248 #endif
42249 char pthread_create ();
42250 int
42251 main ()
42252 {
42253 return pthread_create ();
42254   ;
42255   return 0;
42256 }
42257 _ACEOF
42258 rm -f conftest.$ac_objext conftest$ac_exeext
42259 if { (ac_try="$ac_link"
42260 case "(($ac_try" in
42261   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42262   *) ac_try_echo=$ac_try;;
42263 esac
42264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42265   (eval "$ac_link") 2>conftest.er1
42266   ac_status=$?
42267   grep -v '^ *+' conftest.er1 >conftest.err
42268   rm -f conftest.er1
42269   cat conftest.err >&5
42270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42271   (exit $ac_status); } && {
42272          test -z "$ac_c_werror_flag" ||
42273          test ! -s conftest.err
42274        } && test -s conftest$ac_exeext &&
42275        $as_test_x conftest$ac_exeext; then
42276   ac_cv_lib_pthreads_pthread_create=yes
42277 else
42278   echo "$as_me: failed program was:" >&5
42279 sed 's/^/| /' conftest.$ac_ext >&5
42280
42281         ac_cv_lib_pthreads_pthread_create=no
42282 fi
42283
42284 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42285       conftest$ac_exeext conftest.$ac_ext
42286 LIBS=$ac_check_lib_save_LIBS
42287 fi
42288 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
42289 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6; }
42290 if test $ac_cv_lib_pthreads_pthread_create = yes; then
42291   PTHREAD_LIB="-lpthreads"
42292 else
42293
42294               { echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
42295 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6; }
42296 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
42297   echo $ECHO_N "(cached) $ECHO_C" >&6
42298 else
42299   ac_check_lib_save_LIBS=$LIBS
42300 LIBS="-lc_r  $LIBS"
42301 cat >conftest.$ac_ext <<_ACEOF
42302 /* confdefs.h.  */
42303 _ACEOF
42304 cat confdefs.h >>conftest.$ac_ext
42305 cat >>conftest.$ac_ext <<_ACEOF
42306 /* end confdefs.h.  */
42307
42308 /* Override any GCC internal prototype to avoid an error.
42309    Use char because int might match the return type of a GCC
42310    builtin and then its argument prototype would still apply.  */
42311 #ifdef __cplusplus
42312 extern "C"
42313 #endif
42314 char pthread_create ();
42315 int
42316 main ()
42317 {
42318 return pthread_create ();
42319   ;
42320   return 0;
42321 }
42322 _ACEOF
42323 rm -f conftest.$ac_objext conftest$ac_exeext
42324 if { (ac_try="$ac_link"
42325 case "(($ac_try" in
42326   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42327   *) ac_try_echo=$ac_try;;
42328 esac
42329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42330   (eval "$ac_link") 2>conftest.er1
42331   ac_status=$?
42332   grep -v '^ *+' conftest.er1 >conftest.err
42333   rm -f conftest.er1
42334   cat conftest.err >&5
42335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42336   (exit $ac_status); } && {
42337          test -z "$ac_c_werror_flag" ||
42338          test ! -s conftest.err
42339        } && test -s conftest$ac_exeext &&
42340        $as_test_x conftest$ac_exeext; then
42341   ac_cv_lib_c_r_pthread_create=yes
42342 else
42343   echo "$as_me: failed program was:" >&5
42344 sed 's/^/| /' conftest.$ac_ext >&5
42345
42346         ac_cv_lib_c_r_pthread_create=no
42347 fi
42348
42349 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42350       conftest$ac_exeext conftest.$ac_ext
42351 LIBS=$ac_check_lib_save_LIBS
42352 fi
42353 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
42354 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6; }
42355 if test $ac_cv_lib_c_r_pthread_create = yes; then
42356   PTHREAD_LIB="-lc_r"
42357 else
42358
42359                      { echo "$as_me:$LINENO: checking for pthread_create" >&5
42360 echo $ECHO_N "checking for pthread_create... $ECHO_C" >&6; }
42361 if test "${ac_cv_func_pthread_create+set}" = set; then
42362   echo $ECHO_N "(cached) $ECHO_C" >&6
42363 else
42364   cat >conftest.$ac_ext <<_ACEOF
42365 /* confdefs.h.  */
42366 _ACEOF
42367 cat confdefs.h >>conftest.$ac_ext
42368 cat >>conftest.$ac_ext <<_ACEOF
42369 /* end confdefs.h.  */
42370 /* Define pthread_create to an innocuous variant, in case <limits.h> declares pthread_create.
42371    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42372 #define pthread_create innocuous_pthread_create
42373
42374 /* System header to define __stub macros and hopefully few prototypes,
42375     which can conflict with char pthread_create (); below.
42376     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42377     <limits.h> exists even on freestanding compilers.  */
42378
42379 #ifdef __STDC__
42380 # include <limits.h>
42381 #else
42382 # include <assert.h>
42383 #endif
42384
42385 #undef pthread_create
42386
42387 /* Override any GCC internal prototype to avoid an error.
42388    Use char because int might match the return type of a GCC
42389    builtin and then its argument prototype would still apply.  */
42390 #ifdef __cplusplus
42391 extern "C"
42392 #endif
42393 char pthread_create ();
42394 /* The GNU C library defines this for functions which it implements
42395     to always fail with ENOSYS.  Some functions are actually named
42396     something starting with __ and the normal name is an alias.  */
42397 #if defined __stub_pthread_create || defined __stub___pthread_create
42398 choke me
42399 #endif
42400
42401 int
42402 main ()
42403 {
42404 return pthread_create ();
42405   ;
42406   return 0;
42407 }
42408 _ACEOF
42409 rm -f conftest.$ac_objext conftest$ac_exeext
42410 if { (ac_try="$ac_link"
42411 case "(($ac_try" in
42412   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42413   *) ac_try_echo=$ac_try;;
42414 esac
42415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42416   (eval "$ac_link") 2>conftest.er1
42417   ac_status=$?
42418   grep -v '^ *+' conftest.er1 >conftest.err
42419   rm -f conftest.er1
42420   cat conftest.err >&5
42421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42422   (exit $ac_status); } && {
42423          test -z "$ac_c_werror_flag" ||
42424          test ! -s conftest.err
42425        } && test -s conftest$ac_exeext &&
42426        $as_test_x conftest$ac_exeext; then
42427   ac_cv_func_pthread_create=yes
42428 else
42429   echo "$as_me: failed program was:" >&5
42430 sed 's/^/| /' conftest.$ac_ext >&5
42431
42432         ac_cv_func_pthread_create=no
42433 fi
42434
42435 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42436       conftest$ac_exeext conftest.$ac_ext
42437 fi
42438 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
42439 echo "${ECHO_T}$ac_cv_func_pthread_create" >&6; }
42440
42441
42442
42443 fi
42444
42445
42446
42447 fi
42448
42449
42450
42451 fi
42452
42453
42454
42455 cat >>confdefs.h <<\_ACEOF
42456 #define FDLIBS 1
42457 _ACEOF
42458
42459
42460 CFLAGS=${CFLAGS--O}
42461
42462 if test x$have_gcc = xyes ; then
42463    CPPFLAGS="$CPPFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
42464    CFLAGS="$CFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
42465 fi
42466 LDFLAGS=${LDFLAGS--O}
42467 DB_LIBS="${SQL_LFLAGS}"
42468 CPPFLAGS="$CPPFLAGS"
42469 CFLAGS="$CFLAGS"
42470
42471
42472
42473
42474
42475
42476
42477
42478
42479
42480
42481
42482
42483
42484
42485
42486 OBJLIST=
42487
42488
42489 lld="lld"
42490 llu="llu"
42491
42492 WCFLAGS=
42493 WLDFLAGS=
42494
42495 PFILES="platforms/Makefile"
42496 PSCMD="ps -e"
42497 WIN32=
42498 MACOSX=
42499 hostname=`uname -n | cut -d '.' -f 1`
42500 if test x${hostname} = x ; then
42501    hostname="localhost"
42502 fi
42503 case "$DISTNAME" in
42504 aix)
42505    DISTVER=`uname -r`
42506    PSCMD="ps -e -o pid,comm"
42507    PFILES="${PFILES} \
42508       platforms/aix/Makefile"
42509    TAPEDRIVE="/dev/rmt0.1"
42510   ;;
42511 alpha)
42512    DISTVER=`uname -r`
42513    PTHREAD_LIB="-lpthread -lexc"
42514    if test "${CC}" = "gcc" ; then
42515       lld="lld"
42516       llu="llu"
42517    else
42518       lld="ld"
42519       llu="lu"
42520    fi
42521    TAPEDRIVE="/dev/nrmt0"
42522   ;;
42523 bsdi)
42524    DISTVER=`uname -a |awk '{print $3}'`
42525    TAPEDRIVE="/dev/nrmt0"
42526    PTHREAD_LIB="-pthread"
42527    CFLAGS="${CFLAGS} -pthread"
42528    PSCMD="ps -ax -o pid,command"
42529    lld="qd"
42530    llu="qu"
42531    PFILES="${PFILES} \
42532        platforms/bsdi/Makefile \
42533        platforms/bsdi/bacula-fd \
42534        platforms/bsdi/bacula-sd \
42535        platforms/bsdi/bacula-dir"
42536    largefile_support="yes"
42537   ;;
42538 cygwin)
42539    DISTVER=`uname -a |awk '{print $3}'`
42540    TAPEDRIVE="/dev/nrst0"
42541    WIN32=win32
42542    WCFLAGS="-mwindows"
42543    WLDFLAGS="-mwindows"
42544   ;;
42545 darwin)
42546    DISTVER=`uname -r`
42547    TAPEDRIVE="/dev/nst0"
42548    PSCMD="ps -e -o pid,command"
42549    MACOSX=macosx
42550    PFILES="${PFILES} \
42551       platforms/darwin/Makefile"
42552   ;;
42553 debian)
42554       ping -c 1 $hostname 2>&1 1>/dev/null
42555    if test ! $? = 0; then
42556       hostname="localhost"
42557    fi
42558    if `test -f /etc/apt/sources.list && grep -q ubuntu /etc/apt/sources.list`; then
42559       DISTNAME="ubuntu"
42560    fi
42561    DISTVER=`cat /etc/debian_version`
42562    if test -f /etc/lsb-release ; then
42563       . /etc/lsb-release
42564       if test "x$DISTRIB_ID" != "x" ; then
42565          DISTNAME=$DISTRIB_ID
42566       fi
42567       if test "x$DISTRIB_RELEASE" != "x" ; then
42568          DISTVER=$DISTRIB_RELEASE
42569       fi
42570    fi
42571    if test "$DISTNAME" = "Ubuntu" ; then
42572       DISTNAME="ubuntu"
42573    fi
42574    TAPEDRIVE="/dev/nst0"
42575    PSCMD="ps -e -o pid,command"
42576    if test "$DISTNAME" = "ubuntu" ; then
42577       PFILES="${PFILES} \
42578          platforms/ubuntu/Makefile \
42579          platforms/ubuntu/bacula-fd \
42580          platforms/ubuntu/bacula-sd \
42581          platforms/ubuntu/bacula-dir"
42582    else
42583       PFILES="${PFILES} \
42584          platforms/debian/Makefile \
42585          platforms/debian/bacula-fd \
42586          platforms/debian/bacula-sd \
42587          platforms/debian/bacula-dir"
42588    fi
42589   ;;
42590 freebsd)
42591       ping -c 1 $hostname 2>&1 1>/dev/null
42592    if test ! $? = 0; then
42593       hostname="localhost"
42594    fi
42595    DISTVER=`uname -a |awk '{print $3}'`
42596    VER=`echo $DISTVER | cut -c 1`
42597    if test x$VER = x4 ; then
42598       PTHREAD_LIB="${PTHREAD_LIBS:--pthread}"
42599       CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS:--pthread}"
42600    fi
42601    lld="qd"
42602    llu="qu"
42603    TAPEDRIVE="/dev/nrsa0"
42604    PSCMD="ps -ax -o pid,command"
42605    PFILES="${PFILES} \
42606        platforms/freebsd/Makefile \
42607        platforms/freebsd/bacula-fd \
42608        platforms/freebsd/bacula-sd \
42609        platforms/freebsd/bacula-dir"
42610    largefile_support="yes"
42611   ;;
42612 hpux)
42613    PSCMD="UNIX95=1; ps -e -o pid,comm"
42614    CFLAGS="${CFLAGS} -D_XOPEN_SOURCE_EXTENDED=1"
42615    DISTVER=`uname -r`
42616    TAPEDRIVE="/dev/rmt/0hnb"
42617    PTHREAD_LIB="-lpthread"
42618    cat >>confdefs.h <<\_ACEOF
42619 #define _INCLUDE_LONGLONG 1
42620 _ACEOF
42621
42622   ;;
42623 irix)
42624    DISTVER=`uname -r`
42625    TAPEDRIVE="/dev/rmt/0cbn"
42626    PSCMD="ps -e -o pid,comm"
42627    PFILES="${PFILES} \
42628        platforms/irix/Makefile \
42629        platforms/irix/bacula-fd \
42630        platforms/irix/bacula-sd \
42631        platforms/irix/bacula-dir"
42632   ;;
42633 netbsd)
42634    DISTVER=`uname -a |awk '{print $3}'`
42635    lld="qd"
42636    llu="qu"
42637    TAPEDRIVE="/dev/nrst0"
42638    PSCMD="ps -ax -o pid,command"
42639    PTHREAD_LIB="-pthread"
42640    CFLAGS="${CFLAGS} -pthread"
42641   ;;
42642 openbsd)
42643    DISTVER=`uname -a |awk '{print $3}'`
42644    lld="qd"
42645    llu="qu"
42646    TAPEDRIVE="/dev/nrst0"
42647    PSCMD="ps -ax -o pid,command"
42648    PTHREAD_LIB="-pthread"
42649    CFLAGS="${CFLAGS} -pthread"
42650    PFILES="${PFILES} \
42651        platforms/openbsd/Makefile \
42652        platforms/openbsd/bacula-fd \
42653        platforms/openbsd/bacula-sd \
42654        platforms/openbsd/bacula-dir"
42655   ;;
42656 redhat)
42657       ping -c 1 $hostname 2>&1 1>/dev/null
42658    if test ! $? = 0; then
42659       hostname="localhost"
42660    fi
42661    if test -f /etc/whitebox-release ; then
42662       f=/etc/whitebox-release
42663    else
42664       f=/etc/redhat-release
42665    fi
42666    if test `cat $f | grep release |\
42667          cut -f 3 -d ' '`x = "Enterprise"x ; then
42668       DISTVER="Enterprise "`cat $f | grep release |\
42669           cut -f 6 -d ' '`
42670    else
42671        DISTVER=`cat /etc/redhat-release | grep release |\
42672            cut -f 5 -d ' '`
42673    fi
42674    TAPEDRIVE="/dev/nst0"
42675    PSCMD="ps -e -o pid,command"
42676    PFILES="${PFILES} \
42677        platforms/redhat/Makefile \
42678        platforms/redhat/bacula-fd \
42679        platforms/redhat/bacula-sd \
42680        platforms/redhat/bacula-dir \
42681        platforms/redhat/bacula.spec \
42682        "
42683   ;;
42684 mandrake)
42685       ping -c 1 $hostname 2>&1 1>/dev/null
42686    if test ! $? = 0; then
42687       hostname="localhost"
42688    fi
42689    DISTVER=`cat /etc/mandrake-release | grep release |\
42690       cut -f 5 -d ' '`
42691    TAPEDRIVE="/dev/nst0"
42692    PSCMD="ps -e -o pid,command"
42693    PFILES="${PFILES} \
42694        platforms/mandrake/Makefile \
42695        platforms/mandrake/bacula-fd \
42696        platforms/mandrake/bacula-sd \
42697        platforms/mandrake/bacula-dir \
42698        platforms/mandrake/bacula.spec \
42699        "
42700   ;;
42701 gentoo)
42702       ping -c 1 $hostname 2>&1 1>/dev/null
42703    if test ! $? = 0; then
42704       hostname="localhost"
42705    fi
42706    DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
42707    TAPEDRIVE="/dev/nst0"
42708    PSCMD="ps -e -o pid,command"
42709    PFILES="${PFILES} \
42710        platforms/gentoo/Makefile \
42711     platforms/gentoo/bacula-init \
42712        platforms/gentoo/bacula-fd \
42713        platforms/gentoo/bacula-sd \
42714        platforms/gentoo/bacula-dir"
42715   ;;
42716 slackware)
42717       ping -c 1 $hostname 2>&1 1>/dev/null
42718    if test ! $? = 0; then
42719       hostname="localhost"
42720    fi
42721    DISTVER=`cat /etc/slackware-version`
42722    TAPEDRIVE="/dev/nst0"
42723    PSCMD="ps -e -o pid,command"
42724    PFILES="${PFILES} \
42725        platforms/slackware/Makefile \
42726        platforms/slackware/rc.bacula-fd \
42727        platforms/slackware/rc.bacula-sd \
42728        platforms/slackware/rc.bacula-dir\
42729        platforms/slackware/functions.bacula"
42730   ;;
42731 solaris)
42732    DISTVER=`uname -r`
42733    TAPEDRIVE="/dev/rmt/0cbn"
42734    PSCMD="ps -e -o pid,comm"
42735    PFILES="${PFILES} \
42736        platforms/solaris/Makefile \
42737        platforms/solaris/bacula-fd \
42738        platforms/solaris/bacula-sd \
42739        platforms/solaris/bacula-dir"
42740    if test x$DISTVER = x5.6 ; then
42741        cat >>confdefs.h <<\_ACEOF
42742 #define HAVE_OLD_SOCKOPT 1
42743 _ACEOF
42744
42745    fi
42746    LIBS="$LIBS -lresolv"
42747   ;;
42748 suse)
42749       ping -c 1 $hostname 2>&1 1>/dev/null
42750    if test ! $? = 0; then
42751       hostname="localhost"
42752    fi
42753    DISTVER=`cat /etc/SuSE-release |grep VERSION|\
42754        cut -f 3 -d ' '`
42755    TAPEDRIVE="/dev/nst0"
42756    PSCMD="ps -e -o pid,command"
42757    PFILES="${PFILES} \
42758        platforms/suse/Makefile \
42759        platforms/suse/bacula-fd \
42760        platforms/suse/bacula-sd \
42761        platforms/suse/bacula-dir \
42762        platforms/suse/bacula \
42763        platforms/suse/bacula.spec"
42764   ;;
42765 suse5)
42766       ping -c 1 $hostname 2>&1 1>/dev/null
42767    if test ! $? = 0; then
42768       hostname="localhost"
42769    fi
42770    DISTNAME=suse
42771    DISTVER=5.x
42772    TAPEDRIVE="/dev/nst0"
42773    PSCMD="ps -e -o pid,command"
42774    PFILES="${PFILES} \
42775        platforms/suse/Makefile \
42776        platforms/suse/bacula-fd \
42777        platforms/suse/bacula-sd \
42778        platforms/suse/bacula-dir"
42779   ;;
42780 unknown)
42781    DISTVER=unknown
42782    TAPEDRIVE="/dev/nst0"
42783   ;;
42784 *)
42785   echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
42786   ;;
42787 esac
42788
42789
42790
42791 LIBS="$PTHREAD_LIB $LIBS"
42792
42793 cat >>confdefs.h <<_ACEOF
42794 #define lld "$lld"
42795 _ACEOF
42796
42797 cat >>confdefs.h <<_ACEOF
42798 #define llu "$llu"
42799 _ACEOF
42800
42801
42802
42803
42804
42805
42806
42807
42808 MCOMMON=./autoconf/Make.common
42809
42810
42811 if test "x${subsysdir}" = "x${sbindir}" ; then
42812    echo " "
42813    echo " "
42814    echo "You have set both --sbindir and --with-subsys-dir"
42815    echo "  equal to: ${subsysdir} "
42816    echo "This is not permitted. Please reconfigure."
42817    echo " "
42818    echo "Aborting configuration ..."
42819    echo " "
42820    echo " "
42821    exit 1
42822 fi
42823
42824 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/gnome2-console/Makefile src/gnome2-console/bgnome-console.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"
42825
42826 ac_config_commands="$ac_config_commands default"
42827
42828 cat >confcache <<\_ACEOF
42829 # This file is a shell script that caches the results of configure
42830 # tests run on this system so they can be shared between configure
42831 # scripts and configure runs, see configure's option --config-cache.
42832 # It is not useful on other systems.  If it contains results you don't
42833 # want to keep, you may remove or edit it.
42834 #
42835 # config.status only pays attention to the cache file if you give it
42836 # the --recheck option to rerun configure.
42837 #
42838 # `ac_cv_env_foo' variables (set or unset) will be overridden when
42839 # loading this file, other *unset* `ac_cv_foo' will be assigned the
42840 # following values.
42841
42842 _ACEOF
42843
42844 # The following way of writing the cache mishandles newlines in values,
42845 # but we know of no workaround that is simple, portable, and efficient.
42846 # So, we kill variables containing newlines.
42847 # Ultrix sh set writes to stderr and can't be redirected directly,
42848 # and sets the high bit in the cache file unless we assign to the vars.
42849 (
42850   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
42851     eval ac_val=\$$ac_var
42852     case $ac_val in #(
42853     *${as_nl}*)
42854       case $ac_var in #(
42855       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
42856 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
42857       esac
42858       case $ac_var in #(
42859       _ | IFS | as_nl) ;; #(
42860       *) $as_unset $ac_var ;;
42861       esac ;;
42862     esac
42863   done
42864
42865   (set) 2>&1 |
42866     case $as_nl`(ac_space=' '; set) 2>&1` in #(
42867     *${as_nl}ac_space=\ *)
42868       # `set' does not quote correctly, so add quotes (double-quote
42869       # substitution turns \\\\ into \\, and sed turns \\ into \).
42870       sed -n \
42871         "s/'/'\\\\''/g;
42872           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
42873       ;; #(
42874     *)
42875       # `set' quotes correctly as required by POSIX, so do not add quotes.
42876       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
42877       ;;
42878     esac |
42879     sort
42880 ) |
42881   sed '
42882      /^ac_cv_env_/b end
42883      t clear
42884      :clear
42885      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
42886      t end
42887      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
42888      :end' >>confcache
42889 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
42890   if test -w "$cache_file"; then
42891     test "x$cache_file" != "x/dev/null" &&
42892       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
42893 echo "$as_me: updating cache $cache_file" >&6;}
42894     cat confcache >$cache_file
42895   else
42896     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
42897 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
42898   fi
42899 fi
42900 rm -f confcache
42901
42902 test "x$prefix" = xNONE && prefix=$ac_default_prefix
42903 # Let make expand exec_prefix.
42904 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
42905
42906 DEFS=-DHAVE_CONFIG_H
42907
42908 ac_libobjs=
42909 ac_ltlibobjs=
42910 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
42911   # 1. Remove the extension, and $U if already installed.
42912   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
42913   ac_i=`echo "$ac_i" | sed "$ac_script"`
42914   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
42915   #    will be set to the directory where LIBOBJS objects are built.
42916   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
42917   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
42918 done
42919 LIBOBJS=$ac_libobjs
42920
42921 LTLIBOBJS=$ac_ltlibobjs
42922
42923
42924
42925 : ${CONFIG_STATUS=./config.status}
42926 ac_clean_files_save=$ac_clean_files
42927 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
42928 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
42929 echo "$as_me: creating $CONFIG_STATUS" >&6;}
42930 cat >$CONFIG_STATUS <<_ACEOF
42931 #! $SHELL
42932 # Generated by $as_me.
42933 # Run this file to recreate the current configuration.
42934 # Compiler output produced by configure, useful for debugging
42935 # configure, is in config.log if it exists.
42936
42937 debug=false
42938 ac_cs_recheck=false
42939 ac_cs_silent=false
42940 SHELL=\${CONFIG_SHELL-$SHELL}
42941 _ACEOF
42942
42943 cat >>$CONFIG_STATUS <<\_ACEOF
42944 ## --------------------- ##
42945 ## M4sh Initialization.  ##
42946 ## --------------------- ##
42947
42948 # Be more Bourne compatible
42949 DUALCASE=1; export DUALCASE # for MKS sh
42950 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
42951   emulate sh
42952   NULLCMD=:
42953   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
42954   # is contrary to our usage.  Disable this feature.
42955   alias -g '${1+"$@"}'='"$@"'
42956   setopt NO_GLOB_SUBST
42957 else
42958   case `(set -o) 2>/dev/null` in
42959   *posix*) set -o posix ;;
42960 esac
42961
42962 fi
42963
42964
42965
42966
42967 # PATH needs CR
42968 # Avoid depending upon Character Ranges.
42969 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
42970 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
42971 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
42972 as_cr_digits='0123456789'
42973 as_cr_alnum=$as_cr_Letters$as_cr_digits
42974
42975 # The user is always right.
42976 if test "${PATH_SEPARATOR+set}" != set; then
42977   echo "#! /bin/sh" >conf$$.sh
42978   echo  "exit 0"   >>conf$$.sh
42979   chmod +x conf$$.sh
42980   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
42981     PATH_SEPARATOR=';'
42982   else
42983     PATH_SEPARATOR=:
42984   fi
42985   rm -f conf$$.sh
42986 fi
42987
42988 # Support unset when possible.
42989 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
42990   as_unset=unset
42991 else
42992   as_unset=false
42993 fi
42994
42995
42996 # IFS
42997 # We need space, tab and new line, in precisely that order.  Quoting is
42998 # there to prevent editors from complaining about space-tab.
42999 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
43000 # splitting by setting IFS to empty value.)
43001 as_nl='
43002 '
43003 IFS=" ""        $as_nl"
43004
43005 # Find who we are.  Look in the path if we contain no directory separator.
43006 case $0 in
43007   *[\\/]* ) as_myself=$0 ;;
43008   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43009 for as_dir in $PATH
43010 do
43011   IFS=$as_save_IFS
43012   test -z "$as_dir" && as_dir=.
43013   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
43014 done
43015 IFS=$as_save_IFS
43016
43017      ;;
43018 esac
43019 # We did not find ourselves, most probably we were run as `sh COMMAND'
43020 # in which case we are not to be found in the path.
43021 if test "x$as_myself" = x; then
43022   as_myself=$0
43023 fi
43024 if test ! -f "$as_myself"; then
43025   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
43026   { (exit 1); exit 1; }
43027 fi
43028
43029 # Work around bugs in pre-3.0 UWIN ksh.
43030 for as_var in ENV MAIL MAILPATH
43031 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
43032 done
43033 PS1='$ '
43034 PS2='> '
43035 PS4='+ '
43036
43037 # NLS nuisances.
43038 for as_var in \
43039   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43040   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
43041   LC_TELEPHONE LC_TIME
43042 do
43043   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
43044     eval $as_var=C; export $as_var
43045   else
43046     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
43047   fi
43048 done
43049
43050 # Required to use basename.
43051 if expr a : '\(a\)' >/dev/null 2>&1 &&
43052    test "X`expr 00001 : '.*\(...\)'`" = X001; then
43053   as_expr=expr
43054 else
43055   as_expr=false
43056 fi
43057
43058 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
43059   as_basename=basename
43060 else
43061   as_basename=false
43062 fi
43063
43064
43065 # Name of the executable.
43066 as_me=`$as_basename -- "$0" ||
43067 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
43068          X"$0" : 'X\(//\)$' \| \
43069          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
43070 echo X/"$0" |
43071     sed '/^.*\/\([^/][^/]*\)\/*$/{
43072             s//\1/
43073             q
43074           }
43075           /^X\/\(\/\/\)$/{
43076             s//\1/
43077             q
43078           }
43079           /^X\/\(\/\).*/{
43080             s//\1/
43081             q
43082           }
43083           s/.*/./; q'`
43084
43085 # CDPATH.
43086 $as_unset CDPATH
43087
43088
43089
43090   as_lineno_1=$LINENO
43091   as_lineno_2=$LINENO
43092   test "x$as_lineno_1" != "x$as_lineno_2" &&
43093   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
43094
43095   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
43096   # uniformly replaced by the line number.  The first 'sed' inserts a
43097   # line-number line after each line using $LINENO; the second 'sed'
43098   # does the real work.  The second script uses 'N' to pair each
43099   # line-number line with the line containing $LINENO, and appends
43100   # trailing '-' during substitution so that $LINENO is not a special
43101   # case at line end.
43102   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
43103   # scripts with optimization help from Paolo Bonzini.  Blame Lee
43104   # E. McMahon (1931-1989) for sed's syntax.  :-)
43105   sed -n '
43106     p
43107     /[$]LINENO/=
43108   ' <$as_myself |
43109     sed '
43110       s/[$]LINENO.*/&-/
43111       t lineno
43112       b
43113       :lineno
43114       N
43115       :loop
43116       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
43117       t loop
43118       s/-\n.*//
43119     ' >$as_me.lineno &&
43120   chmod +x "$as_me.lineno" ||
43121     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
43122    { (exit 1); exit 1; }; }
43123
43124   # Don't try to exec as it changes $[0], causing all sort of problems
43125   # (the dirname of $[0] is not the place where we might find the
43126   # original and so on.  Autoconf is especially sensitive to this).
43127   . "./$as_me.lineno"
43128   # Exit status is that of the last command.
43129   exit
43130 }
43131
43132
43133 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
43134   as_dirname=dirname
43135 else
43136   as_dirname=false
43137 fi
43138
43139 ECHO_C= ECHO_N= ECHO_T=
43140 case `echo -n x` in
43141 -n*)
43142   case `echo 'x\c'` in
43143   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
43144   *)   ECHO_C='\c';;
43145   esac;;
43146 *)
43147   ECHO_N='-n';;
43148 esac
43149
43150 if expr a : '\(a\)' >/dev/null 2>&1 &&
43151    test "X`expr 00001 : '.*\(...\)'`" = X001; then
43152   as_expr=expr
43153 else
43154   as_expr=false
43155 fi
43156
43157 rm -f conf$$ conf$$.exe conf$$.file
43158 if test -d conf$$.dir; then
43159   rm -f conf$$.dir/conf$$.file
43160 else
43161   rm -f conf$$.dir
43162   mkdir conf$$.dir
43163 fi
43164 echo >conf$$.file
43165 if ln -s conf$$.file conf$$ 2>/dev/null; then
43166   as_ln_s='ln -s'
43167   # ... but there are two gotchas:
43168   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
43169   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
43170   # In both cases, we have to default to `cp -p'.
43171   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
43172     as_ln_s='cp -p'
43173 elif ln conf$$.file conf$$ 2>/dev/null; then
43174   as_ln_s=ln
43175 else
43176   as_ln_s='cp -p'
43177 fi
43178 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
43179 rmdir conf$$.dir 2>/dev/null
43180
43181 if mkdir -p . 2>/dev/null; then
43182   as_mkdir_p=:
43183 else
43184   test -d ./-p && rmdir ./-p
43185   as_mkdir_p=false
43186 fi
43187
43188 if test -x / >/dev/null 2>&1; then
43189   as_test_x='test -x'
43190 else
43191   if ls -dL / >/dev/null 2>&1; then
43192     as_ls_L_option=L
43193   else
43194     as_ls_L_option=
43195   fi
43196   as_test_x='
43197     eval sh -c '\''
43198       if test -d "$1"; then
43199         test -d "$1/.";
43200       else
43201         case $1 in
43202         -*)set "./$1";;
43203         esac;
43204         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
43205         ???[sx]*):;;*)false;;esac;fi
43206     '\'' sh
43207   '
43208 fi
43209 as_executable_p=$as_test_x
43210
43211 # Sed expression to map a string onto a valid CPP name.
43212 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
43213
43214 # Sed expression to map a string onto a valid variable name.
43215 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
43216
43217
43218 exec 6>&1
43219
43220 # Save the log message, to keep $[0] and so on meaningful, and to
43221 # report actual input values of CONFIG_FILES etc. instead of their
43222 # values after options handling.
43223 ac_log="
43224 This file was extended by $as_me, which was
43225 generated by GNU Autoconf 2.61.  Invocation command line was
43226
43227   CONFIG_FILES    = $CONFIG_FILES
43228   CONFIG_HEADERS  = $CONFIG_HEADERS
43229   CONFIG_LINKS    = $CONFIG_LINKS
43230   CONFIG_COMMANDS = $CONFIG_COMMANDS
43231   $ $0 $@
43232
43233 on `(hostname || uname -n) 2>/dev/null | sed 1q`
43234 "
43235
43236 _ACEOF
43237
43238 cat >>$CONFIG_STATUS <<_ACEOF
43239 # Files that config.status was made for.
43240 config_files="$ac_config_files"
43241 config_headers="$ac_config_headers"
43242 config_commands="$ac_config_commands"
43243
43244 _ACEOF
43245
43246 cat >>$CONFIG_STATUS <<\_ACEOF
43247 ac_cs_usage="\
43248 \`$as_me' instantiates files from templates according to the
43249 current configuration.
43250
43251 Usage: $0 [OPTIONS] [FILE]...
43252
43253   -h, --help       print this help, then exit
43254   -V, --version    print version number and configuration settings, then exit
43255   -q, --quiet      do not print progress messages
43256   -d, --debug      don't remove temporary files
43257       --recheck    update $as_me by reconfiguring in the same conditions
43258   --file=FILE[:TEMPLATE]
43259                    instantiate the configuration file FILE
43260   --header=FILE[:TEMPLATE]
43261                    instantiate the configuration header FILE
43262
43263 Configuration files:
43264 $config_files
43265
43266 Configuration headers:
43267 $config_headers
43268
43269 Configuration commands:
43270 $config_commands
43271
43272 Report bugs to <bug-autoconf@gnu.org>."
43273
43274 _ACEOF
43275 cat >>$CONFIG_STATUS <<_ACEOF
43276 ac_cs_version="\\
43277 config.status
43278 configured by $0, generated by GNU Autoconf 2.61,
43279   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
43280
43281 Copyright (C) 2006 Free Software Foundation, Inc.
43282 This config.status script is free software; the Free Software Foundation
43283 gives unlimited permission to copy, distribute and modify it."
43284
43285 ac_pwd='$ac_pwd'
43286 srcdir='$srcdir'
43287 INSTALL='$INSTALL'
43288 _ACEOF
43289
43290 cat >>$CONFIG_STATUS <<\_ACEOF
43291 # If no file are specified by the user, then we need to provide default
43292 # value.  By we need to know if files were specified by the user.
43293 ac_need_defaults=:
43294 while test $# != 0
43295 do
43296   case $1 in
43297   --*=*)
43298     ac_option=`expr "X$1" : 'X\([^=]*\)='`
43299     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
43300     ac_shift=:
43301     ;;
43302   *)
43303     ac_option=$1
43304     ac_optarg=$2
43305     ac_shift=shift
43306     ;;
43307   esac
43308
43309   case $ac_option in
43310   # Handling of the options.
43311   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
43312     ac_cs_recheck=: ;;
43313   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
43314     echo "$ac_cs_version"; exit ;;
43315   --debug | --debu | --deb | --de | --d | -d )
43316     debug=: ;;
43317   --file | --fil | --fi | --f )
43318     $ac_shift
43319     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
43320     ac_need_defaults=false;;
43321   --header | --heade | --head | --hea )
43322     $ac_shift
43323     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
43324     ac_need_defaults=false;;
43325   --he | --h)
43326     # Conflict between --help and --header
43327     { echo "$as_me: error: ambiguous option: $1
43328 Try \`$0 --help' for more information." >&2
43329    { (exit 1); exit 1; }; };;
43330   --help | --hel | -h )
43331     echo "$ac_cs_usage"; exit ;;
43332   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
43333   | -silent | --silent | --silen | --sile | --sil | --si | --s)
43334     ac_cs_silent=: ;;
43335
43336   # This is an error.
43337   -*) { echo "$as_me: error: unrecognized option: $1
43338 Try \`$0 --help' for more information." >&2
43339    { (exit 1); exit 1; }; } ;;
43340
43341   *) ac_config_targets="$ac_config_targets $1"
43342      ac_need_defaults=false ;;
43343
43344   esac
43345   shift
43346 done
43347
43348 ac_configure_extra_args=
43349
43350 if $ac_cs_silent; then
43351   exec 6>/dev/null
43352   ac_configure_extra_args="$ac_configure_extra_args --silent"
43353 fi
43354
43355 _ACEOF
43356 cat >>$CONFIG_STATUS <<_ACEOF
43357 if \$ac_cs_recheck; then
43358   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
43359   CONFIG_SHELL=$SHELL
43360   export CONFIG_SHELL
43361   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
43362 fi
43363
43364 _ACEOF
43365 cat >>$CONFIG_STATUS <<\_ACEOF
43366 exec 5>>config.log
43367 {
43368   echo
43369   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
43370 ## Running $as_me. ##
43371 _ASBOX
43372   echo "$ac_log"
43373 } >&5
43374
43375 _ACEOF
43376 cat >>$CONFIG_STATUS <<_ACEOF
43377 #
43378 # INIT-COMMANDS
43379 #
43380
43381
43382 # The HP-UX ksh and POSIX shell print the target directory to stdout
43383 # if CDPATH is set.
43384 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
43385
43386 sed_quote_subst='$sed_quote_subst'
43387 double_quote_subst='$double_quote_subst'
43388 delay_variable_subst='$delay_variable_subst'
43389 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
43390 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
43391 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
43392 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
43393 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
43394 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
43395 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
43396 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
43397 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
43398 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
43399 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
43400 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
43401 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
43402 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
43403 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
43404 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
43405 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
43406 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
43407 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
43408 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
43409 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
43410 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
43411 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
43412 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
43413 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
43414 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
43415 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
43416 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
43417 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
43418 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
43419 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
43420 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
43421 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
43422 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
43423 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
43424 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
43425 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
43426 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
43427 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
43428 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
43429 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
43430 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
43431 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
43432 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
43433 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"`'
43434 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"`'
43435 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
43436 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
43437 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
43438 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
43439 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
43440 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
43441 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
43442 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
43443 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
43444 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
43445 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
43446 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
43447 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
43448 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
43449 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
43450 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
43451 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
43452 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
43453 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
43454 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
43455 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
43456 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
43457 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
43458 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
43459 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
43460 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
43461 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
43462 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
43463 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
43464 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
43465 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
43466 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
43467 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
43468 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
43469 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
43470 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
43471 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
43472 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
43473 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
43474 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
43475 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
43476 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
43477 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
43478 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
43479 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
43480 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
43481 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
43482 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
43483 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
43484 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
43485 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
43486 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
43487 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
43488 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
43489 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
43490 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
43491 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
43492 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
43493 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
43494 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
43495 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
43496 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
43497 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
43498 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
43499 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
43500 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
43501 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
43502 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
43503 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
43504 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
43505 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
43506 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
43507 compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
43508 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
43509 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
43510 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
43511 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
43512 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
43513 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43514 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43515 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43516 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43517 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43518 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43519 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43520 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43521 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43522 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43523 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43524 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43525 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43526 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43527 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43528 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43529 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43530 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43531 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43532 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43533 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43534 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43535 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43536 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43537 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43538 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43539 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43540 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43541 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43542 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43543 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43544 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43545 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43546 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43547 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43548 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43549 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43550 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43551 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43552 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43553 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43554 compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43555 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43556 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43557 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43558 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43559 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43560
43561 LTCC='$LTCC'
43562 LTCFLAGS='$LTCFLAGS'
43563 compiler='$compiler_DEFAULT'
43564
43565 # Quote evaled strings.
43566 for var in SED \
43567 GREP \
43568 EGREP \
43569 FGREP \
43570 LD \
43571 NM \
43572 LN_S \
43573 lt_SP2NL \
43574 lt_NL2SP \
43575 reload_flag \
43576 OBJDUMP \
43577 deplibs_check_method \
43578 file_magic_cmd \
43579 AR \
43580 AR_FLAGS \
43581 STRIP \
43582 RANLIB \
43583 CC \
43584 CFLAGS \
43585 compiler \
43586 lt_cv_sys_global_symbol_pipe \
43587 lt_cv_sys_global_symbol_to_cdecl \
43588 lt_cv_sys_global_symbol_to_c_name_address \
43589 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
43590 SHELL \
43591 ECHO \
43592 lt_prog_compiler_no_builtin_flag \
43593 lt_prog_compiler_wl \
43594 lt_prog_compiler_pic \
43595 lt_prog_compiler_static \
43596 lt_cv_prog_compiler_c_o \
43597 need_locks \
43598 DSYMUTIL \
43599 NMEDIT \
43600 LIPO \
43601 OTOOL \
43602 OTOOL64 \
43603 shrext_cmds \
43604 export_dynamic_flag_spec \
43605 whole_archive_flag_spec \
43606 compiler_needs_object \
43607 with_gnu_ld \
43608 allow_undefined_flag \
43609 no_undefined_flag \
43610 hardcode_libdir_flag_spec \
43611 hardcode_libdir_flag_spec_ld \
43612 hardcode_libdir_separator \
43613 fix_srcfile_path \
43614 exclude_expsyms \
43615 include_expsyms \
43616 file_list_spec \
43617 variables_saved_for_relink \
43618 libname_spec \
43619 library_names_spec \
43620 soname_spec \
43621 finish_eval \
43622 old_striplib \
43623 striplib \
43624 compiler_lib_search_dirs \
43625 predep_objects \
43626 postdep_objects \
43627 predeps \
43628 postdeps \
43629 compiler_lib_search_path \
43630 LD_CXX \
43631 compiler_CXX \
43632 lt_prog_compiler_no_builtin_flag_CXX \
43633 lt_prog_compiler_wl_CXX \
43634 lt_prog_compiler_pic_CXX \
43635 lt_prog_compiler_static_CXX \
43636 lt_cv_prog_compiler_c_o_CXX \
43637 export_dynamic_flag_spec_CXX \
43638 whole_archive_flag_spec_CXX \
43639 compiler_needs_object_CXX \
43640 with_gnu_ld_CXX \
43641 allow_undefined_flag_CXX \
43642 no_undefined_flag_CXX \
43643 hardcode_libdir_flag_spec_CXX \
43644 hardcode_libdir_flag_spec_ld_CXX \
43645 hardcode_libdir_separator_CXX \
43646 fix_srcfile_path_CXX \
43647 exclude_expsyms_CXX \
43648 include_expsyms_CXX \
43649 file_list_spec_CXX \
43650 compiler_lib_search_dirs_CXX \
43651 predep_objects_CXX \
43652 postdep_objects_CXX \
43653 predeps_CXX \
43654 postdeps_CXX \
43655 compiler_lib_search_path_CXX; do
43656     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
43657     *[\\\\\\\`\\"\\\$]*)
43658       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
43659       ;;
43660     *)
43661       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
43662       ;;
43663     esac
43664 done
43665
43666 # Double-quote double-evaled strings.
43667 for var in reload_cmds \
43668 old_postinstall_cmds \
43669 old_postuninstall_cmds \
43670 old_archive_cmds \
43671 extract_expsyms_cmds \
43672 old_archive_from_new_cmds \
43673 old_archive_from_expsyms_cmds \
43674 archive_cmds \
43675 archive_expsym_cmds \
43676 module_cmds \
43677 module_expsym_cmds \
43678 export_symbols_cmds \
43679 prelink_cmds \
43680 postinstall_cmds \
43681 postuninstall_cmds \
43682 finish_cmds \
43683 sys_lib_search_path_spec \
43684 sys_lib_dlsearch_path_spec \
43685 old_archive_cmds_CXX \
43686 old_archive_from_new_cmds_CXX \
43687 old_archive_from_expsyms_cmds_CXX \
43688 archive_cmds_CXX \
43689 archive_expsym_cmds_CXX \
43690 module_cmds_CXX \
43691 module_expsym_cmds_CXX \
43692 export_symbols_cmds_CXX \
43693 prelink_cmds_CXX; do
43694     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
43695     *[\\\\\\\`\\"\\\$]*)
43696       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
43697       ;;
43698     *)
43699       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
43700       ;;
43701     esac
43702 done
43703
43704 # Fix-up fallback echo if it was mangled by the above quoting rules.
43705 case \$lt_ECHO in
43706 *'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
43707   ;;
43708 esac
43709
43710 ac_aux_dir='$ac_aux_dir'
43711 xsi_shell='$xsi_shell'
43712 lt_shell_append='$lt_shell_append'
43713
43714 # See if we are running on zsh, and set the options which allow our
43715 # commands through without removal of \ escapes INIT.
43716 if test -n "\${ZSH_VERSION+set}" ; then
43717    setopt NO_GLOB_SUBST
43718 fi
43719
43720
43721     PACKAGE='$PACKAGE'
43722     VERSION='$VERSION'
43723     TIMESTAMP='$TIMESTAMP'
43724     RM='$RM'
43725     ofile='$ofile'
43726
43727
43728
43729
43730
43731 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
43732     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
43733     # from automake.
43734     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
43735     # Capture the value of LINGUAS because we need it to compute CATALOGS.
43736     LINGUAS="${LINGUAS-%UNSET%}"
43737
43738
43739 _ACEOF
43740
43741 cat >>$CONFIG_STATUS <<\_ACEOF
43742
43743 # Handling of arguments.
43744 for ac_config_target in $ac_config_targets
43745 do
43746   case $ac_config_target in
43747     "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
43748     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
43749     "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
43750     "autoconf/Make.common") CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
43751     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
43752     "manpages/Makefile") CONFIG_FILES="$CONFIG_FILES manpages/Makefile" ;;
43753     "scripts/startmysql") CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
43754     "scripts/stopmysql") CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
43755     "scripts/btraceback") CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
43756     "scripts/startit") CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
43757     "scripts/stopit") CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
43758     "scripts/bconsole") CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
43759     "scripts/gconsole") CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
43760     "scripts/bacula") CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
43761     "scripts/bacula-ctl-dir") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-dir" ;;
43762     "scripts/bacula-ctl-fd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-fd" ;;
43763     "scripts/bacula-ctl-sd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-sd" ;;
43764     "scripts/devel_bacula") CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
43765     "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
43766     "scripts/logrotate") CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
43767     "scripts/bacula.desktop.gnome1") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
43768     "scripts/bacula.desktop.gnome2") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
43769     "scripts/bacula.desktop.gnome1.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
43770     "scripts/bacula.desktop.gnome2.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
43771     "scripts/bacula.desktop.gnome1.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
43772     "scripts/bacula.desktop.gnome2.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
43773     "scripts/bgnome-console.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bgnome-console.console_apps" ;;
43774     "scripts/mtx-changer") CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
43775     "scripts/disk-changer") CONFIG_FILES="$CONFIG_FILES scripts/disk-changer" ;;
43776     "scripts/dvd-handler") CONFIG_FILES="$CONFIG_FILES scripts/dvd-handler" ;;
43777     "scripts/dvd-simulator") CONFIG_FILES="$CONFIG_FILES scripts/dvd-simulator" ;;
43778     "scripts/bacula-tray-monitor.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bacula-tray-monitor.desktop" ;;
43779     "scripts/logwatch/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/Makefile" ;;
43780     "scripts/logwatch/logfile.bacula.conf") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/logfile.bacula.conf" ;;
43781     "scripts/wxconsole.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.console_apps" ;;
43782     "scripts/wxconsole.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.consolehelper" ;;
43783     "scripts/wxconsole.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.xsu" ;;
43784     "scripts/bat.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop" ;;
43785     "scripts/bat.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.xsu" ;;
43786     "scripts/bat.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.consolehelper" ;;
43787     "scripts/bat.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bat.console_apps" ;;
43788     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
43789     "src/host.h") CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
43790     "src/console/Makefile") CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
43791     "src/console/bconsole.conf") CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
43792     "src/gnome2-console/Makefile") CONFIG_FILES="$CONFIG_FILES src/gnome2-console/Makefile" ;;
43793     "src/gnome2-console/bgnome-console.conf") CONFIG_FILES="$CONFIG_FILES src/gnome2-console/bgnome-console.conf" ;;
43794     "src/qt-console/bat.conf") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.conf" ;;
43795     "src/qt-console/bat.pro") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro" ;;
43796     "src/qt-console/bat.pro.mingw32") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro.mingw32" ;;
43797     "src/qt-console/install_conf_file") CONFIG_FILES="$CONFIG_FILES src/qt-console/install_conf_file" ;;
43798     "src/wx-console/Makefile") CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
43799     "src/wx-console/bwx-console.conf") CONFIG_FILES="$CONFIG_FILES src/wx-console/bwx-console.conf" ;;
43800     "src/tray-monitor/Makefile") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/Makefile" ;;
43801     "src/tray-monitor/tray-monitor.conf") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/tray-monitor.conf" ;;
43802     "src/dird/Makefile") CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
43803     "src/dird/bacula-dir.conf") CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
43804     "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
43805     "src/stored/Makefile") CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
43806     "src/stored/bacula-sd.conf") CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
43807     "src/filed/Makefile") CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
43808     "src/filed/bacula-fd.conf") CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
43809     "src/cats/Makefile") CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
43810     "src/cats/make_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
43811     "src/cats/delete_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
43812     "src/cats/create_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
43813     "src/cats/update_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
43814     "src/cats/make_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
43815     "src/cats/grant_postgresql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
43816     "src/cats/drop_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
43817     "src/cats/drop_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
43818     "src/cats/create_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
43819     "src/cats/update_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
43820     "src/cats/make_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
43821     "src/cats/grant_mysql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
43822     "src/cats/drop_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
43823     "src/cats/drop_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
43824     "src/cats/create_sqlite_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite_database" ;;
43825     "src/cats/update_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite_tables" ;;
43826     "src/cats/make_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite_tables" ;;
43827     "src/cats/grant_sqlite_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite_privileges" ;;
43828     "src/cats/drop_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_tables" ;;
43829     "src/cats/drop_sqlite_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_database" ;;
43830     "src/cats/create_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite3_database" ;;
43831     "src/cats/update_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite3_tables" ;;
43832     "src/cats/make_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite3_tables" ;;
43833     "src/cats/grant_sqlite3_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite3_privileges" ;;
43834     "src/cats/drop_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_tables" ;;
43835     "src/cats/drop_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_database" ;;
43836     "src/cats/sqlite") CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
43837     "src/cats/mysql") CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
43838     "src/cats/create_bdb_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bdb_database" ;;
43839     "src/cats/update_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bdb_tables" ;;
43840     "src/cats/make_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bdb_tables" ;;
43841     "src/cats/grant_bdb_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bdb_privileges" ;;
43842     "src/cats/drop_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_tables" ;;
43843     "src/cats/drop_bdb_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_database" ;;
43844     "src/cats/create_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
43845     "src/cats/update_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
43846     "src/cats/grant_bacula_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
43847     "src/cats/make_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
43848     "src/cats/drop_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
43849     "src/cats/drop_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
43850     "src/findlib/Makefile") CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
43851     "src/tools/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
43852     "src/plugins/fd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/fd/Makefile" ;;
43853     "src/plugins/sd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/sd/Makefile" ;;
43854     "src/plugins/dir/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/dir/Makefile" ;;
43855     "src/win32/Makefile.inc") CONFIG_FILES="$CONFIG_FILES src/win32/Makefile.inc" ;;
43856     "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
43857     "updatedb/update_mysql_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_9_to_10" ;;
43858     "updatedb/update_sqlite3_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_9_to_10" ;;
43859     "updatedb/update_postgresql_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_9_to_10" ;;
43860     "updatedb/update_sqlite_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite_tables_9_to_10" ;;
43861     "updatedb/update_mysql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_10_to_11" ;;
43862     "updatedb/update_sqlite3_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_10_to_11" ;;
43863     "updatedb/update_postgresql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_10_to_11" ;;
43864     "updatedb/update_sqlite_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite_tables_10_to_11" ;;
43865     "$PFILES") CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
43866     "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
43867
43868   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
43869 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
43870    { (exit 1); exit 1; }; };;
43871   esac
43872 done
43873
43874
43875 # If the user did not use the arguments to specify the items to instantiate,
43876 # then the envvar interface is used.  Set only those that are not.
43877 # We use the long form for the default assignment because of an extremely
43878 # bizarre bug on SunOS 4.1.3.
43879 if $ac_need_defaults; then
43880   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
43881   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
43882   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
43883 fi
43884
43885 # Have a temporary directory for convenience.  Make it in the build tree
43886 # simply because there is no reason against having it here, and in addition,
43887 # creating and moving files from /tmp can sometimes cause problems.
43888 # Hook for its removal unless debugging.
43889 # Note that there is a small window in which the directory will not be cleaned:
43890 # after its creation but before its name has been assigned to `$tmp'.
43891 $debug ||
43892 {
43893   tmp=
43894   trap 'exit_status=$?
43895   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
43896 ' 0
43897   trap '{ (exit 1); exit 1; }' 1 2 13 15
43898 }
43899 # Create a (secure) tmp directory for tmp files.
43900
43901 {
43902   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
43903   test -n "$tmp" && test -d "$tmp"
43904 }  ||
43905 {
43906   tmp=./conf$$-$RANDOM
43907   (umask 077 && mkdir "$tmp")
43908 } ||
43909 {
43910    echo "$me: cannot create a temporary directory in ." >&2
43911    { (exit 1); exit 1; }
43912 }
43913
43914 #
43915 # Set up the sed scripts for CONFIG_FILES section.
43916 #
43917
43918 # No need to generate the scripts if there are no CONFIG_FILES.
43919 # This happens for instance when ./config.status config.h
43920 if test -n "$CONFIG_FILES"; then
43921
43922 _ACEOF
43923
43924 # Create sed commands to just substitute file output variables.
43925
43926 # Remaining file output variables are in a fragment that also has non-file
43927 # output varibles.
43928
43929
43930
43931 ac_delim='%!_!# '
43932 for ac_last_try in false false false false false :; do
43933   cat >conf$$subs.sed <<_ACEOF
43934 SHELL!$SHELL$ac_delim
43935 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
43936 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
43937 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
43938 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
43939 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
43940 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
43941 exec_prefix!$exec_prefix$ac_delim
43942 prefix!$prefix$ac_delim
43943 program_transform_name!$program_transform_name$ac_delim
43944 bindir!$bindir$ac_delim
43945 sbindir!$sbindir$ac_delim
43946 libexecdir!$libexecdir$ac_delim
43947 datarootdir!$datarootdir$ac_delim
43948 datadir!$datadir$ac_delim
43949 sysconfdir!$sysconfdir$ac_delim
43950 sharedstatedir!$sharedstatedir$ac_delim
43951 localstatedir!$localstatedir$ac_delim
43952 includedir!$includedir$ac_delim
43953 oldincludedir!$oldincludedir$ac_delim
43954 docdir!$docdir$ac_delim
43955 infodir!$infodir$ac_delim
43956 htmldir!$htmldir$ac_delim
43957 dvidir!$dvidir$ac_delim
43958 pdfdir!$pdfdir$ac_delim
43959 psdir!$psdir$ac_delim
43960 libdir!$libdir$ac_delim
43961 localedir!$localedir$ac_delim
43962 mandir!$mandir$ac_delim
43963 DEFS!$DEFS$ac_delim
43964 ECHO_C!$ECHO_C$ac_delim
43965 ECHO_N!$ECHO_N$ac_delim
43966 ECHO_T!$ECHO_T$ac_delim
43967 LIBS!$LIBS$ac_delim
43968 build_alias!$build_alias$ac_delim
43969 host_alias!$host_alias$ac_delim
43970 target_alias!$target_alias$ac_delim
43971 BUILD_DIR!$BUILD_DIR$ac_delim
43972 TOP_DIR!$TOP_DIR$ac_delim
43973 WIN32BUILDDIR!$WIN32BUILDDIR$ac_delim
43974 WIN32MAINDIR!$WIN32MAINDIR$ac_delim
43975 WIN32TOPDIR!$WIN32TOPDIR$ac_delim
43976 TRUEPRG!$TRUEPRG$ac_delim
43977 FALSEPRG!$FALSEPRG$ac_delim
43978 VERSION!$VERSION$ac_delim
43979 DATE!$DATE$ac_delim
43980 LSMDATE!$LSMDATE$ac_delim
43981 BACULA!$BACULA$ac_delim
43982 post_host!$post_host$ac_delim
43983 CC!$CC$ac_delim
43984 CFLAGS!$CFLAGS$ac_delim
43985 LDFLAGS!$LDFLAGS$ac_delim
43986 CPPFLAGS!$CPPFLAGS$ac_delim
43987 ac_ct_CC!$ac_ct_CC$ac_delim
43988 EXEEXT!$EXEEXT$ac_delim
43989 OBJEXT!$OBJEXT$ac_delim
43990 CXX!$CXX$ac_delim
43991 CXXFLAGS!$CXXFLAGS$ac_delim
43992 ac_ct_CXX!$ac_ct_CXX$ac_delim
43993 CPP!$CPP$ac_delim
43994 GREP!$GREP$ac_delim
43995 EGREP!$EGREP$ac_delim
43996 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
43997 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
43998 INSTALL_DATA!$INSTALL_DATA$ac_delim
43999 MV!$MV$ac_delim
44000 REMOVE!$REMOVE$ac_delim
44001 CP!$CP$ac_delim
44002 SED!$SED$ac_delim
44003 ECHO!$ECHO$ac_delim
44004 CMP!$CMP$ac_delim
44005 TBL!$TBL$ac_delim
44006 AR!$AR$ac_delim
44007 OPENSSL!$OPENSSL$ac_delim
44008 MTX!$MTX$ac_delim
44009 DD!$DD$ac_delim
44010 MKISOFS!$MKISOFS$ac_delim
44011 PYTHON!$PYTHON$ac_delim
44012 GROWISOFS!$GROWISOFS$ac_delim
44013 DVDRWMEDIAINFO!$DVDRWMEDIAINFO$ac_delim
44014 DVDRWFORMAT!$DVDRWFORMAT$ac_delim
44015 PKGCONFIG!$PKGCONFIG$ac_delim
44016 QMAKE!$QMAKE$ac_delim
44017 QMAKEQT4!$QMAKEQT4$ac_delim
44018 GMAKE!$GMAKE$ac_delim
44019 WXCONFIG!$WXCONFIG$ac_delim
44020 WXFLAGS!$WXFLAGS$ac_delim
44021 CDRECORD!$CDRECORD$ac_delim
44022 PIDOF!$PIDOF$ac_delim
44023 AWK!$AWK$ac_delim
44024 ARFLAGS!$ARFLAGS$ac_delim
44025 MAKE_SHELL!$MAKE_SHELL$ac_delim
44026 LOCAL_LIBS!$LOCAL_LIBS$ac_delim
44027 LOCAL_CFLAGS!$LOCAL_CFLAGS$ac_delim
44028 _ACEOF
44029
44030   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 94; then
44031     break
44032   elif $ac_last_try; then
44033     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
44034 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
44035    { (exit 1); exit 1; }; }
44036   else
44037     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
44038   fi
44039 done
44040
44041 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
44042 if test -n "$ac_eof"; then
44043   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
44044   ac_eof=`expr $ac_eof + 1`
44045 fi
44046
44047 cat >>$CONFIG_STATUS <<_ACEOF
44048 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
44049 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
44050 /^[      ]*@MCOMMON@[    ]*$/{
44051 r $MCOMMON
44052 d
44053 }
44054 _ACEOF
44055 sed '
44056 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
44057 s/^/s,@/; s/!/@,|#_!!_#|/
44058 :n
44059 t n
44060 s/'"$ac_delim"'$/,g/; t
44061 s/$/\\/; p
44062 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
44063 ' >>$CONFIG_STATUS <conf$$subs.sed
44064 rm -f conf$$subs.sed
44065 cat >>$CONFIG_STATUS <<_ACEOF
44066 CEOF$ac_eof
44067 _ACEOF
44068
44069
44070 ac_delim='%!_!# '
44071 for ac_last_try in false false false false false :; do
44072   cat >conf$$subs.sed <<_ACEOF
44073 LOCAL_LDFLAGS!$LOCAL_LDFLAGS$ac_delim
44074 LOCAL_DEFS!$LOCAL_DEFS$ac_delim
44075 LIBTOOL!$LIBTOOL$ac_delim
44076 build!$build$ac_delim
44077 build_cpu!$build_cpu$ac_delim
44078 build_vendor!$build_vendor$ac_delim
44079 build_os!$build_os$ac_delim
44080 host!$host$ac_delim
44081 host_cpu!$host_cpu$ac_delim
44082 host_vendor!$host_vendor$ac_delim
44083 host_os!$host_os$ac_delim
44084 FGREP!$FGREP$ac_delim
44085 LD!$LD$ac_delim
44086 DUMPBIN!$DUMPBIN$ac_delim
44087 ac_ct_DUMPBIN!$ac_ct_DUMPBIN$ac_delim
44088 NM!$NM$ac_delim
44089 LN_S!$LN_S$ac_delim
44090 OBJDUMP!$OBJDUMP$ac_delim
44091 STRIP!$STRIP$ac_delim
44092 RANLIB!$RANLIB$ac_delim
44093 lt_ECHO!$lt_ECHO$ac_delim
44094 DSYMUTIL!$DSYMUTIL$ac_delim
44095 NMEDIT!$NMEDIT$ac_delim
44096 LIPO!$LIPO$ac_delim
44097 OTOOL!$OTOOL$ac_delim
44098 OTOOL64!$OTOOL64$ac_delim
44099 CXXCPP!$CXXCPP$ac_delim
44100 DEFAULT_OBJECT_TYPE!$DEFAULT_OBJECT_TYPE$ac_delim
44101 DEFAULT_ARCHIVE_TYPE!$DEFAULT_ARCHIVE_TYPE$ac_delim
44102 DEFAULT_SHARED_OBJECT_TYPE!$DEFAULT_SHARED_OBJECT_TYPE$ac_delim
44103 LIBTOOL_INSTALL_TARGET!$LIBTOOL_INSTALL_TARGET$ac_delim
44104 LIBTOOL_UNINSTALL_TARGET!$LIBTOOL_UNINSTALL_TARGET$ac_delim
44105 LIBTOOL_CLEAN_TARGET!$LIBTOOL_CLEAN_TARGET$ac_delim
44106 QMAKE_LIBTOOL!$QMAKE_LIBTOOL$ac_delim
44107 INCLUDE_INSTALL_TARGET!$INCLUDE_INSTALL_TARGET$ac_delim
44108 INCLUDE_UNINSTALL_TARGET!$INCLUDE_UNINSTALL_TARGET$ac_delim
44109 HAVE_SUN_OS_TRUE!$HAVE_SUN_OS_TRUE$ac_delim
44110 HAVE_SUN_OS_FALSE!$HAVE_SUN_OS_FALSE$ac_delim
44111 HAVE_OSF1_OS_TRUE!$HAVE_OSF1_OS_TRUE$ac_delim
44112 HAVE_OSF1_OS_FALSE!$HAVE_OSF1_OS_FALSE$ac_delim
44113 HAVE_AIX_OS_TRUE!$HAVE_AIX_OS_TRUE$ac_delim
44114 HAVE_AIX_OS_FALSE!$HAVE_AIX_OS_FALSE$ac_delim
44115 HAVE_HPUX_OS_TRUE!$HAVE_HPUX_OS_TRUE$ac_delim
44116 HAVE_HPUX_OS_FALSE!$HAVE_HPUX_OS_FALSE$ac_delim
44117 HAVE_LINUX_OS_TRUE!$HAVE_LINUX_OS_TRUE$ac_delim
44118 HAVE_LINUX_OS_FALSE!$HAVE_LINUX_OS_FALSE$ac_delim
44119 HAVE_FREEBSD_OS_TRUE!$HAVE_FREEBSD_OS_TRUE$ac_delim
44120 HAVE_FREEBSD_OS_FALSE!$HAVE_FREEBSD_OS_FALSE$ac_delim
44121 HAVE_NETBSD_OS_TRUE!$HAVE_NETBSD_OS_TRUE$ac_delim
44122 HAVE_NETBSD_OS_FALSE!$HAVE_NETBSD_OS_FALSE$ac_delim
44123 HAVE_OPENBSD_OS_TRUE!$HAVE_OPENBSD_OS_TRUE$ac_delim
44124 HAVE_OPENBSD_OS_FALSE!$HAVE_OPENBSD_OS_FALSE$ac_delim
44125 HAVE_BSDI_OS_TRUE!$HAVE_BSDI_OS_TRUE$ac_delim
44126 HAVE_BSDI_OS_FALSE!$HAVE_BSDI_OS_FALSE$ac_delim
44127 HAVE_SGI_OS_TRUE!$HAVE_SGI_OS_TRUE$ac_delim
44128 HAVE_SGI_OS_FALSE!$HAVE_SGI_OS_FALSE$ac_delim
44129 HAVE_IRIX_OS_TRUE!$HAVE_IRIX_OS_TRUE$ac_delim
44130 HAVE_IRIX_OS_FALSE!$HAVE_IRIX_OS_FALSE$ac_delim
44131 HAVE_DARWIN_OS_TRUE!$HAVE_DARWIN_OS_TRUE$ac_delim
44132 HAVE_DARWIN_OS_FALSE!$HAVE_DARWIN_OS_FALSE$ac_delim
44133 SET_MAKE!$SET_MAKE$ac_delim
44134 MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
44135 USE_NLS!$USE_NLS$ac_delim
44136 MSGFMT!$MSGFMT$ac_delim
44137 GMSGFMT!$GMSGFMT$ac_delim
44138 XGETTEXT!$XGETTEXT$ac_delim
44139 MSGMERGE!$MSGMERGE$ac_delim
44140 INTL_MACOSX_LIBS!$INTL_MACOSX_LIBS$ac_delim
44141 LIBICONV!$LIBICONV$ac_delim
44142 LTLIBICONV!$LTLIBICONV$ac_delim
44143 INTLLIBS!$INTLLIBS$ac_delim
44144 LIBINTL!$LIBINTL$ac_delim
44145 LTLIBINTL!$LTLIBINTL$ac_delim
44146 POSUB!$POSUB$ac_delim
44147 GLIBC2!$GLIBC2$ac_delim
44148 ALLOCA!$ALLOCA$ac_delim
44149 GLIBC21!$GLIBC21$ac_delim
44150 HAVE_POSIX_PRINTF!$HAVE_POSIX_PRINTF$ac_delim
44151 HAVE_ASPRINTF!$HAVE_ASPRINTF$ac_delim
44152 HAVE_SNPRINTF!$HAVE_SNPRINTF$ac_delim
44153 HAVE_WPRINTF!$HAVE_WPRINTF$ac_delim
44154 INTLBISON!$INTLBISON$ac_delim
44155 BUILD_INCLUDED_LIBINTL!$BUILD_INCLUDED_LIBINTL$ac_delim
44156 USE_INCLUDED_LIBINTL!$USE_INCLUDED_LIBINTL$ac_delim
44157 CATOBJEXT!$CATOBJEXT$ac_delim
44158 DATADIRNAME!$DATADIRNAME$ac_delim
44159 INSTOBJEXT!$INSTOBJEXT$ac_delim
44160 GENCAT!$GENCAT$ac_delim
44161 INTLOBJS!$INTLOBJS$ac_delim
44162 INTL_LIBTOOL_SUFFIX_PREFIX!$INTL_LIBTOOL_SUFFIX_PREFIX$ac_delim
44163 GNOME_INCLUDEDIR!$GNOME_INCLUDEDIR$ac_delim
44164 GNOMEUI_LIBS!$GNOMEUI_LIBS$ac_delim
44165 GNOME_LIBDIR!$GNOME_LIBDIR$ac_delim
44166 GNOME_LIBS!$GNOME_LIBS$ac_delim
44167 GNOME_DIR!$GNOME_DIR$ac_delim
44168 BAT_DIR!$BAT_DIR$ac_delim
44169 QWT_INC!$QWT_INC$ac_delim
44170 _ACEOF
44171
44172   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
44173     break
44174   elif $ac_last_try; then
44175     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
44176 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
44177    { (exit 1); exit 1; }; }
44178   else
44179     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
44180   fi
44181 done
44182
44183 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
44184 if test -n "$ac_eof"; then
44185   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
44186   ac_eof=`expr $ac_eof + 1`
44187 fi
44188
44189 cat >>$CONFIG_STATUS <<_ACEOF
44190 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
44191 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
44192 _ACEOF
44193 sed '
44194 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
44195 s/^/s,@/; s/!/@,|#_!!_#|/
44196 :n
44197 t n
44198 s/'"$ac_delim"'$/,g/; t
44199 s/$/\\/; p
44200 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
44201 ' >>$CONFIG_STATUS <conf$$subs.sed
44202 rm -f conf$$subs.sed
44203 cat >>$CONFIG_STATUS <<_ACEOF
44204 CEOF$ac_eof
44205 _ACEOF
44206
44207
44208 ac_delim='%!_!# '
44209 for ac_last_try in false false false false false :; do
44210   cat >conf$$subs.sed <<_ACEOF
44211 QWT_LDFLAGS!$QWT_LDFLAGS$ac_delim
44212 QWT_LIB!$QWT_LIB$ac_delim
44213 QWT!$QWT$ac_delim
44214 WXCONS_CPPFLAGS!$WXCONS_CPPFLAGS$ac_delim
44215 WXCONS_LDFLAGS!$WXCONS_LDFLAGS$ac_delim
44216 WX_DIR!$WX_DIR$ac_delim
44217 TRAY_MONITOR_CPPFLAGS!$TRAY_MONITOR_CPPFLAGS$ac_delim
44218 TRAY_MONITOR_LDFLAGS!$TRAY_MONITOR_LDFLAGS$ac_delim
44219 TRAY_MONITOR_DIR!$TRAY_MONITOR_DIR$ac_delim
44220 TTOOL_LDFLAGS!$TTOOL_LDFLAGS$ac_delim
44221 STATIC_FD!$STATIC_FD$ac_delim
44222 STATIC_SD!$STATIC_SD$ac_delim
44223 STATIC_DIR!$STATIC_DIR$ac_delim
44224 STATIC_CONS!$STATIC_CONS$ac_delim
44225 STATIC_GNOME_CONS!$STATIC_GNOME_CONS$ac_delim
44226 STATIC_WX_CONS!$STATIC_WX_CONS$ac_delim
44227 ALL_DIRS!$ALL_DIRS$ac_delim
44228 DIRD_DIR!$DIRD_DIR$ac_delim
44229 DIR_TOOLS!$DIR_TOOLS$ac_delim
44230 STORED_DIR!$STORED_DIR$ac_delim
44231 CONS_INC!$CONS_INC$ac_delim
44232 CONS_OBJ!$CONS_OBJ$ac_delim
44233 CONS_SRC!$CONS_SRC$ac_delim
44234 CONS_LIBS!$CONS_LIBS$ac_delim
44235 CONS_LDFLAGS!$CONS_LDFLAGS$ac_delim
44236 READLINE_SRC!$READLINE_SRC$ac_delim
44237 PYTHON_LIBS!$PYTHON_LIBS$ac_delim
44238 PYTHON_INCDIR!$PYTHON_INCDIR$ac_delim
44239 OPENSSL_LIBS!$OPENSSL_LIBS$ac_delim
44240 OPENSSL_INC!$OPENSSL_INC$ac_delim
44241 working_dir!$working_dir$ac_delim
44242 archivedir!$archivedir$ac_delim
44243 basename!$basename$ac_delim
44244 scriptdir!$scriptdir$ac_delim
44245 bsrdir!$bsrdir$ac_delim
44246 logdir!$logdir$ac_delim
44247 plugindir!$plugindir$ac_delim
44248 dump_email!$dump_email$ac_delim
44249 job_email!$job_email$ac_delim
44250 smtp_host!$smtp_host$ac_delim
44251 piddir!$piddir$ac_delim
44252 subsysdir!$subsysdir$ac_delim
44253 baseport!$baseport$ac_delim
44254 dir_port!$dir_port$ac_delim
44255 fd_port!$fd_port$ac_delim
44256 sd_port!$sd_port$ac_delim
44257 dir_password!$dir_password$ac_delim
44258 fd_password!$fd_password$ac_delim
44259 sd_password!$sd_password$ac_delim
44260 mon_dir_password!$mon_dir_password$ac_delim
44261 mon_fd_password!$mon_fd_password$ac_delim
44262 mon_sd_password!$mon_sd_password$ac_delim
44263 db_name!$db_name$ac_delim
44264 db_user!$db_user$ac_delim
44265 db_password!$db_password$ac_delim
44266 db_port!$db_port$ac_delim
44267 dir_user!$dir_user$ac_delim
44268 dir_group!$dir_group$ac_delim
44269 sd_user!$sd_user$ac_delim
44270 sd_group!$sd_group$ac_delim
44271 fd_user!$fd_user$ac_delim
44272 fd_group!$fd_group$ac_delim
44273 SBINPERM!$SBINPERM$ac_delim
44274 SQL_LFLAGS!$SQL_LFLAGS$ac_delim
44275 SQL_INCLUDE!$SQL_INCLUDE$ac_delim
44276 SQL_BINDIR!$SQL_BINDIR$ac_delim
44277 DBI_DBD_DRIVERDIR!$DBI_DBD_DRIVERDIR$ac_delim
44278 uncomment_dbi!$uncomment_dbi$ac_delim
44279 DB_PROG!$DB_PROG$ac_delim
44280 DB_PROG_LIB!$DB_PROG_LIB$ac_delim
44281 cats!$cats$ac_delim
44282 DB_TYPE!$DB_TYPE$ac_delim
44283 GETCONF!$GETCONF$ac_delim
44284 XMKMF!$XMKMF$ac_delim
44285 X_CFLAGS!$X_CFLAGS$ac_delim
44286 X_PRE_LIBS!$X_PRE_LIBS$ac_delim
44287 X_LIBS!$X_LIBS$ac_delim
44288 X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
44289 LIBOBJS!$LIBOBJS$ac_delim
44290 FDLIBS!$FDLIBS$ac_delim
44291 DEBUG!$DEBUG$ac_delim
44292 DINCLUDE!$DINCLUDE$ac_delim
44293 DLIB!$DLIB$ac_delim
44294 DB_LIBS!$DB_LIBS$ac_delim
44295 WCFLAGS!$WCFLAGS$ac_delim
44296 WLDFLAGS!$WLDFLAGS$ac_delim
44297 WRAPLIBS!$WRAPLIBS$ac_delim
44298 OBJLIST!$OBJLIST$ac_delim
44299 hostname!$hostname$ac_delim
44300 TAPEDRIVE!$TAPEDRIVE$ac_delim
44301 PSCMD!$PSCMD$ac_delim
44302 WIN32!$WIN32$ac_delim
44303 MACOSX!$MACOSX$ac_delim
44304 DISTNAME!$DISTNAME$ac_delim
44305 DISTVER!$DISTVER$ac_delim
44306 LTLIBOBJS!$LTLIBOBJS$ac_delim
44307 _ACEOF
44308
44309   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 96; then
44310     break
44311   elif $ac_last_try; then
44312     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
44313 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
44314    { (exit 1); exit 1; }; }
44315   else
44316     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
44317   fi
44318 done
44319
44320 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
44321 if test -n "$ac_eof"; then
44322   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
44323   ac_eof=`expr $ac_eof + 1`
44324 fi
44325
44326 cat >>$CONFIG_STATUS <<_ACEOF
44327 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
44328 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
44329 _ACEOF
44330 sed '
44331 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
44332 s/^/s,@/; s/!/@,|#_!!_#|/
44333 :n
44334 t n
44335 s/'"$ac_delim"'$/,g/; t
44336 s/$/\\/; p
44337 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
44338 ' >>$CONFIG_STATUS <conf$$subs.sed
44339 rm -f conf$$subs.sed
44340 cat >>$CONFIG_STATUS <<_ACEOF
44341 CEOF$ac_eof
44342 _ACEOF
44343
44344
44345 # VPATH may cause trouble with some makes, so we remove $(srcdir),
44346 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
44347 # trailing colons and then remove the whole line if VPATH becomes empty
44348 # (actually we leave an empty line to preserve line numbers).
44349 if test "x$srcdir" = x.; then
44350   ac_vpsub='/^[  ]*VPATH[        ]*=/{
44351 s/:*\$(srcdir):*/:/
44352 s/:*\${srcdir}:*/:/
44353 s/:*@srcdir@:*/:/
44354 s/^\([^=]*=[     ]*\):*/\1/
44355 s/:*$//
44356 s/^[^=]*=[       ]*$//
44357 }'
44358 fi
44359
44360 cat >>$CONFIG_STATUS <<\_ACEOF
44361 fi # test -n "$CONFIG_FILES"
44362
44363
44364 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
44365 do
44366   case $ac_tag in
44367   :[FHLC]) ac_mode=$ac_tag; continue;;
44368   esac
44369   case $ac_mode$ac_tag in
44370   :[FHL]*:*);;
44371   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
44372 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
44373    { (exit 1); exit 1; }; };;
44374   :[FH]-) ac_tag=-:-;;
44375   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
44376   esac
44377   ac_save_IFS=$IFS
44378   IFS=:
44379   set x $ac_tag
44380   IFS=$ac_save_IFS
44381   shift
44382   ac_file=$1
44383   shift
44384
44385   case $ac_mode in
44386   :L) ac_source=$1;;
44387   :[FH])
44388     ac_file_inputs=
44389     for ac_f
44390     do
44391       case $ac_f in
44392       -) ac_f="$tmp/stdin";;
44393       *) # Look for the file first in the build tree, then in the source tree
44394          # (if the path is not absolute).  The absolute path cannot be DOS-style,
44395          # because $ac_f cannot contain `:'.
44396          test -f "$ac_f" ||
44397            case $ac_f in
44398            [\\/$]*) false;;
44399            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
44400            esac ||
44401            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
44402 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
44403    { (exit 1); exit 1; }; };;
44404       esac
44405       ac_file_inputs="$ac_file_inputs $ac_f"
44406     done
44407
44408     # Let's still pretend it is `configure' which instantiates (i.e., don't
44409     # use $as_me), people would be surprised to read:
44410     #    /* config.h.  Generated by config.status.  */
44411     configure_input="Generated from "`IFS=:
44412           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
44413     if test x"$ac_file" != x-; then
44414       configure_input="$ac_file.  $configure_input"
44415       { echo "$as_me:$LINENO: creating $ac_file" >&5
44416 echo "$as_me: creating $ac_file" >&6;}
44417     fi
44418
44419     case $ac_tag in
44420     *:-:* | *:-) cat >"$tmp/stdin";;
44421     esac
44422     ;;
44423   esac
44424
44425   ac_dir=`$as_dirname -- "$ac_file" ||
44426 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
44427          X"$ac_file" : 'X\(//\)[^/]' \| \
44428          X"$ac_file" : 'X\(//\)$' \| \
44429          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
44430 echo X"$ac_file" |
44431     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
44432             s//\1/
44433             q
44434           }
44435           /^X\(\/\/\)[^/].*/{
44436             s//\1/
44437             q
44438           }
44439           /^X\(\/\/\)$/{
44440             s//\1/
44441             q
44442           }
44443           /^X\(\/\).*/{
44444             s//\1/
44445             q
44446           }
44447           s/.*/./; q'`
44448   { as_dir="$ac_dir"
44449   case $as_dir in #(
44450   -*) as_dir=./$as_dir;;
44451   esac
44452   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
44453     as_dirs=
44454     while :; do
44455       case $as_dir in #(
44456       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
44457       *) as_qdir=$as_dir;;
44458       esac
44459       as_dirs="'$as_qdir' $as_dirs"
44460       as_dir=`$as_dirname -- "$as_dir" ||
44461 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
44462          X"$as_dir" : 'X\(//\)[^/]' \| \
44463          X"$as_dir" : 'X\(//\)$' \| \
44464          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
44465 echo X"$as_dir" |
44466     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
44467             s//\1/
44468             q
44469           }
44470           /^X\(\/\/\)[^/].*/{
44471             s//\1/
44472             q
44473           }
44474           /^X\(\/\/\)$/{
44475             s//\1/
44476             q
44477           }
44478           /^X\(\/\).*/{
44479             s//\1/
44480             q
44481           }
44482           s/.*/./; q'`
44483       test -d "$as_dir" && break
44484     done
44485     test -z "$as_dirs" || eval "mkdir $as_dirs"
44486   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
44487 echo "$as_me: error: cannot create directory $as_dir" >&2;}
44488    { (exit 1); exit 1; }; }; }
44489   ac_builddir=.
44490
44491 case "$ac_dir" in
44492 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
44493 *)
44494   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
44495   # A ".." for each directory in $ac_dir_suffix.
44496   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
44497   case $ac_top_builddir_sub in
44498   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
44499   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
44500   esac ;;
44501 esac
44502 ac_abs_top_builddir=$ac_pwd
44503 ac_abs_builddir=$ac_pwd$ac_dir_suffix
44504 # for backward compatibility:
44505 ac_top_builddir=$ac_top_build_prefix
44506
44507 case $srcdir in
44508   .)  # We are building in place.
44509     ac_srcdir=.
44510     ac_top_srcdir=$ac_top_builddir_sub
44511     ac_abs_top_srcdir=$ac_pwd ;;
44512   [\\/]* | ?:[\\/]* )  # Absolute name.
44513     ac_srcdir=$srcdir$ac_dir_suffix;
44514     ac_top_srcdir=$srcdir
44515     ac_abs_top_srcdir=$srcdir ;;
44516   *) # Relative name.
44517     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
44518     ac_top_srcdir=$ac_top_build_prefix$srcdir
44519     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
44520 esac
44521 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
44522
44523
44524   case $ac_mode in
44525   :F)
44526   #
44527   # CONFIG_FILE
44528   #
44529
44530   case $INSTALL in
44531   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
44532   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
44533   esac
44534 _ACEOF
44535
44536 cat >>$CONFIG_STATUS <<\_ACEOF
44537 # If the template does not know about datarootdir, expand it.
44538 # FIXME: This hack should be removed a few years after 2.60.
44539 ac_datarootdir_hack=; ac_datarootdir_seen=
44540
44541 case `sed -n '/datarootdir/ {
44542   p
44543   q
44544 }
44545 /@datadir@/p
44546 /@docdir@/p
44547 /@infodir@/p
44548 /@localedir@/p
44549 /@mandir@/p
44550 ' $ac_file_inputs` in
44551 *datarootdir*) ac_datarootdir_seen=yes;;
44552 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
44553   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
44554 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
44555 _ACEOF
44556 cat >>$CONFIG_STATUS <<_ACEOF
44557   ac_datarootdir_hack='
44558   s&@datadir@&$datadir&g
44559   s&@docdir@&$docdir&g
44560   s&@infodir@&$infodir&g
44561   s&@localedir@&$localedir&g
44562   s&@mandir@&$mandir&g
44563     s&\\\${datarootdir}&$datarootdir&g' ;;
44564 esac
44565 _ACEOF
44566
44567 # Neutralize VPATH when `$srcdir' = `.'.
44568 # Shell code in configure.ac might set extrasub.
44569 # FIXME: do we really want to maintain this feature?
44570 cat >>$CONFIG_STATUS <<_ACEOF
44571   sed "$ac_vpsub
44572 $extrasub
44573 _ACEOF
44574 cat >>$CONFIG_STATUS <<\_ACEOF
44575 :t
44576 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
44577 s&@configure_input@&$configure_input&;t t
44578 s&@top_builddir@&$ac_top_builddir_sub&;t t
44579 s&@srcdir@&$ac_srcdir&;t t
44580 s&@abs_srcdir@&$ac_abs_srcdir&;t t
44581 s&@top_srcdir@&$ac_top_srcdir&;t t
44582 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
44583 s&@builddir@&$ac_builddir&;t t
44584 s&@abs_builddir@&$ac_abs_builddir&;t t
44585 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
44586 s&@INSTALL@&$ac_INSTALL&;t t
44587 $ac_datarootdir_hack
44588 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" | sed 's/|#_!!_#|//g' >$tmp/out
44589
44590 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
44591   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
44592   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
44593   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
44594 which seems to be undefined.  Please make sure it is defined." >&5
44595 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
44596 which seems to be undefined.  Please make sure it is defined." >&2;}
44597
44598   rm -f "$tmp/stdin"
44599   case $ac_file in
44600   -) cat "$tmp/out"; rm -f "$tmp/out";;
44601   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
44602   esac
44603  ;;
44604   :H)
44605   #
44606   # CONFIG_HEADER
44607   #
44608 _ACEOF
44609
44610 # Transform confdefs.h into a sed script `conftest.defines', that
44611 # substitutes the proper values into config.h.in to produce config.h.
44612 rm -f conftest.defines conftest.tail
44613 # First, append a space to every undef/define line, to ease matching.
44614 echo 's/$/ /' >conftest.defines
44615 # Then, protect against being on the right side of a sed subst, or in
44616 # an unquoted here document, in config.status.  If some macros were
44617 # called several times there might be several #defines for the same
44618 # symbol, which is useless.  But do not sort them, since the last
44619 # AC_DEFINE must be honored.
44620 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
44621 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
44622 # NAME is the cpp macro being defined, VALUE is the value it is being given.
44623 # PARAMS is the parameter list in the macro definition--in most cases, it's
44624 # just an empty string.
44625 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
44626 ac_dB='\\)[      (].*,\\1define\\2'
44627 ac_dC=' '
44628 ac_dD=' ,'
44629
44630 uniq confdefs.h |
44631   sed -n '
44632         t rset
44633         :rset
44634         s/^[     ]*#[    ]*define[       ][      ]*//
44635         t ok
44636         d
44637         :ok
44638         s/[\\&,]/\\&/g
44639         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
44640         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
44641   ' >>conftest.defines
44642
44643 # Remove the space that was appended to ease matching.
44644 # Then replace #undef with comments.  This is necessary, for
44645 # example, in the case of _POSIX_SOURCE, which is predefined and required
44646 # on some systems where configure will not decide to define it.
44647 # (The regexp can be short, since the line contains either #define or #undef.)
44648 echo 's/ $//
44649 s,^[     #]*u.*,/* & */,' >>conftest.defines
44650
44651 # Break up conftest.defines:
44652 ac_max_sed_lines=50
44653
44654 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
44655 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
44656 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
44657 # et cetera.
44658 ac_in='$ac_file_inputs'
44659 ac_out='"$tmp/out1"'
44660 ac_nxt='"$tmp/out2"'
44661
44662 while :
44663 do
44664   # Write a here document:
44665     cat >>$CONFIG_STATUS <<_ACEOF
44666     # First, check the format of the line:
44667     cat >"\$tmp/defines.sed" <<\\CEOF
44668 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
44669 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
44670 b
44671 :def
44672 _ACEOF
44673   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
44674   echo 'CEOF
44675     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
44676   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
44677   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
44678   grep . conftest.tail >/dev/null || break
44679   rm -f conftest.defines
44680   mv conftest.tail conftest.defines
44681 done
44682 rm -f conftest.defines conftest.tail
44683
44684 echo "ac_result=$ac_in" >>$CONFIG_STATUS
44685 cat >>$CONFIG_STATUS <<\_ACEOF
44686   if test x"$ac_file" != x-; then
44687     echo "/* $configure_input  */" >"$tmp/config.h"
44688     cat "$ac_result" >>"$tmp/config.h"
44689     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
44690       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
44691 echo "$as_me: $ac_file is unchanged" >&6;}
44692     else
44693       rm -f $ac_file
44694       mv "$tmp/config.h" $ac_file
44695     fi
44696   else
44697     echo "/* $configure_input  */"
44698     cat "$ac_result"
44699   fi
44700   rm -f "$tmp/out12"
44701  ;;
44702
44703   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
44704 echo "$as_me: executing $ac_file commands" >&6;}
44705  ;;
44706   esac
44707
44708
44709   case $ac_file$ac_mode in
44710     "libtool":C)
44711
44712     # See if we are running on zsh, and set the options which allow our
44713     # commands through without removal of \ escapes.
44714     if test -n "${ZSH_VERSION+set}" ; then
44715       setopt NO_GLOB_SUBST
44716     fi
44717
44718     cfgfile="${ofile}T"
44719     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
44720     $RM "$cfgfile"
44721
44722     cat <<_LT_EOF >> "$cfgfile"
44723 #! $SHELL
44724
44725 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
44726 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
44727 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
44728 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
44729 #
44730 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
44731 #                 2006, 2007, 2008 Free Software Foundation, Inc.
44732 #   Written by Gordon Matzigkeit, 1996
44733 #
44734 #   This file is part of GNU Libtool.
44735 #
44736 # GNU Libtool is free software; you can redistribute it and/or
44737 # modify it under the terms of the GNU General Public License as
44738 # published by the Free Software Foundation; either version 2 of
44739 # the License, or (at your option) any later version.
44740 #
44741 # As a special exception to the GNU General Public License,
44742 # if you distribute this file as part of a program or library that
44743 # is built using GNU Libtool, you may include this file under the
44744 # same distribution terms that you use for the rest of that program.
44745 #
44746 # GNU Libtool is distributed in the hope that it will be useful,
44747 # but WITHOUT ANY WARRANTY; without even the implied warranty of
44748 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
44749 # GNU General Public License for more details.
44750 #
44751 # You should have received a copy of the GNU General Public License
44752 # along with GNU Libtool; see the file COPYING.  If not, a copy
44753 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
44754 # obtained by writing to the Free Software Foundation, Inc.,
44755 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
44756
44757
44758 # The names of the tagged configurations supported by this script.
44759 available_tags="CXX "
44760
44761 # ### BEGIN LIBTOOL CONFIG
44762
44763 # Which release of libtool.m4 was used?
44764 macro_version=$macro_version
44765 macro_revision=$macro_revision
44766
44767 # Whether or not to build shared libraries.
44768 build_libtool_libs=$enable_shared
44769
44770 # Whether or not to build static libraries.
44771 build_old_libs=$enable_static
44772
44773 # What type of objects to build.
44774 pic_mode=$pic_mode
44775
44776 # Whether or not to optimize for fast installation.
44777 fast_install=$enable_fast_install
44778
44779 # The host system.
44780 host_alias=$host_alias
44781 host=$host
44782 host_os=$host_os
44783
44784 # The build system.
44785 build_alias=$build_alias
44786 build=$build
44787 build_os=$build_os
44788
44789 # A sed program that does not truncate output.
44790 SED=$lt_SED
44791
44792 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
44793 Xsed="\$SED -e 1s/^X//"
44794
44795 # A grep program that handles long lines.
44796 GREP=$lt_GREP
44797
44798 # An ERE matcher.
44799 EGREP=$lt_EGREP
44800
44801 # A literal string matcher.
44802 FGREP=$lt_FGREP
44803
44804 # A BSD- or MS-compatible name lister.
44805 NM=$lt_NM
44806
44807 # Whether we need soft or hard links.
44808 LN_S=$lt_LN_S
44809
44810 # What is the maximum length of a command?
44811 max_cmd_len=$max_cmd_len
44812
44813 # Object file suffix (normally "o").
44814 objext=$ac_objext
44815
44816 # Executable file suffix (normally "").
44817 exeext=$exeext
44818
44819 # whether the shell understands "unset".
44820 lt_unset=$lt_unset
44821
44822 # turn spaces into newlines.
44823 SP2NL=$lt_lt_SP2NL
44824
44825 # turn newlines into spaces.
44826 NL2SP=$lt_lt_NL2SP
44827
44828 # How to create reloadable object files.
44829 reload_flag=$lt_reload_flag
44830 reload_cmds=$lt_reload_cmds
44831
44832 # An object symbol dumper.
44833 OBJDUMP=$lt_OBJDUMP
44834
44835 # Method to check whether dependent libraries are shared objects.
44836 deplibs_check_method=$lt_deplibs_check_method
44837
44838 # Command to use when deplibs_check_method == "file_magic".
44839 file_magic_cmd=$lt_file_magic_cmd
44840
44841 # The archiver.
44842 AR=$lt_AR
44843 AR_FLAGS=$lt_AR_FLAGS
44844
44845 # A symbol stripping program.
44846 STRIP=$lt_STRIP
44847
44848 # Commands used to install an old-style archive.
44849 RANLIB=$lt_RANLIB
44850 old_postinstall_cmds=$lt_old_postinstall_cmds
44851 old_postuninstall_cmds=$lt_old_postuninstall_cmds
44852
44853 # A C compiler.
44854 LTCC=$lt_CC
44855
44856 # LTCC compiler flags.
44857 LTCFLAGS=$lt_CFLAGS
44858
44859 # Take the output of nm and produce a listing of raw symbols and C names.
44860 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
44861
44862 # Transform the output of nm in a proper C declaration.
44863 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
44864
44865 # Transform the output of nm in a C name address pair.
44866 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
44867
44868 # Transform the output of nm in a C name address pair when lib prefix is needed.
44869 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
44870
44871 # The name of the directory that contains temporary libtool files.
44872 objdir=$objdir
44873
44874 # Shell to use when invoking shell scripts.
44875 SHELL=$lt_SHELL
44876
44877 # An echo program that does not interpret backslashes.
44878 ECHO=$lt_ECHO
44879
44880 # Used to examine libraries when file_magic_cmd begins with "file".
44881 MAGIC_CMD=$MAGIC_CMD
44882
44883 # Must we lock files when doing compilation?
44884 need_locks=$lt_need_locks
44885
44886 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
44887 DSYMUTIL=$lt_DSYMUTIL
44888
44889 # Tool to change global to local symbols on Mac OS X.
44890 NMEDIT=$lt_NMEDIT
44891
44892 # Tool to manipulate fat objects and archives on Mac OS X.
44893 LIPO=$lt_LIPO
44894
44895 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
44896 OTOOL=$lt_OTOOL
44897
44898 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
44899 OTOOL64=$lt_OTOOL64
44900
44901 # Old archive suffix (normally "a").
44902 libext=$libext
44903
44904 # Shared library suffix (normally ".so").
44905 shrext_cmds=$lt_shrext_cmds
44906
44907 # The commands to extract the exported symbol list from a shared archive.
44908 extract_expsyms_cmds=$lt_extract_expsyms_cmds
44909
44910 # Variables whose values should be saved in libtool wrapper scripts and
44911 # restored at link time.
44912 variables_saved_for_relink=$lt_variables_saved_for_relink
44913
44914 # Do we need the "lib" prefix for modules?
44915 need_lib_prefix=$need_lib_prefix
44916
44917 # Do we need a version for libraries?
44918 need_version=$need_version
44919
44920 # Library versioning type.
44921 version_type=$version_type
44922
44923 # Shared library runtime path variable.
44924 runpath_var=$runpath_var
44925
44926 # Shared library path variable.
44927 shlibpath_var=$shlibpath_var
44928
44929 # Is shlibpath searched before the hard-coded library search path?
44930 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
44931
44932 # Format of library name prefix.
44933 libname_spec=$lt_libname_spec
44934
44935 # List of archive names.  First name is the real one, the rest are links.
44936 # The last name is the one that the linker finds with -lNAME
44937 library_names_spec=$lt_library_names_spec
44938
44939 # The coded name of the library, if different from the real name.
44940 soname_spec=$lt_soname_spec
44941
44942 # Command to use after installation of a shared archive.
44943 postinstall_cmds=$lt_postinstall_cmds
44944
44945 # Command to use after uninstallation of a shared archive.
44946 postuninstall_cmds=$lt_postuninstall_cmds
44947
44948 # Commands used to finish a libtool library installation in a directory.
44949 finish_cmds=$lt_finish_cmds
44950
44951 # As "finish_cmds", except a single script fragment to be evaled but
44952 # not shown.
44953 finish_eval=$lt_finish_eval
44954
44955 # Whether we should hardcode library paths into libraries.
44956 hardcode_into_libs=$hardcode_into_libs
44957
44958 # Compile-time system search path for libraries.
44959 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
44960
44961 # Run-time system search path for libraries.
44962 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
44963
44964 # Whether dlopen is supported.
44965 dlopen_support=$enable_dlopen
44966
44967 # Whether dlopen of programs is supported.
44968 dlopen_self=$enable_dlopen_self
44969
44970 # Whether dlopen of statically linked programs is supported.
44971 dlopen_self_static=$enable_dlopen_self_static
44972
44973 # Commands to strip libraries.
44974 old_striplib=$lt_old_striplib
44975 striplib=$lt_striplib
44976
44977
44978 # The linker used to build libraries.
44979 LD=$lt_LD
44980
44981 # Commands used to build an old-style archive.
44982 old_archive_cmds=$lt_old_archive_cmds
44983
44984 # A language specific compiler.
44985 CC=$lt_compiler
44986
44987 # Is the compiler the GNU compiler?
44988 with_gcc=$GCC
44989
44990 # Compiler flag to turn off builtin functions.
44991 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
44992
44993 # How to pass a linker flag through the compiler.
44994 wl=$lt_lt_prog_compiler_wl
44995
44996 # Additional compiler flags for building library objects.
44997 pic_flag=$lt_lt_prog_compiler_pic
44998
44999 # Compiler flag to prevent dynamic linking.
45000 link_static_flag=$lt_lt_prog_compiler_static
45001
45002 # Does compiler simultaneously support -c and -o options?
45003 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
45004
45005 # Whether or not to add -lc for building shared libraries.
45006 build_libtool_need_lc=$archive_cmds_need_lc
45007
45008 # Whether or not to disallow shared libs when runtime libs are static.
45009 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
45010
45011 # Compiler flag to allow reflexive dlopens.
45012 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
45013
45014 # Compiler flag to generate shared objects directly from archives.
45015 whole_archive_flag_spec=$lt_whole_archive_flag_spec
45016
45017 # Whether the compiler copes with passing no objects directly.
45018 compiler_needs_object=$lt_compiler_needs_object
45019
45020 # Create an old-style archive from a shared archive.
45021 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
45022
45023 # Create a temporary old-style archive to link instead of a shared archive.
45024 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
45025
45026 # Commands used to build a shared archive.
45027 archive_cmds=$lt_archive_cmds
45028 archive_expsym_cmds=$lt_archive_expsym_cmds
45029
45030 # Commands used to build a loadable module if different from building
45031 # a shared archive.
45032 module_cmds=$lt_module_cmds
45033 module_expsym_cmds=$lt_module_expsym_cmds
45034
45035 # Whether we are building with GNU ld or not.
45036 with_gnu_ld=$lt_with_gnu_ld
45037
45038 # Flag that allows shared libraries with undefined symbols to be built.
45039 allow_undefined_flag=$lt_allow_undefined_flag
45040
45041 # Flag that enforces no undefined symbols.
45042 no_undefined_flag=$lt_no_undefined_flag
45043
45044 # Flag to hardcode \$libdir into a binary during linking.
45045 # This must work even if \$libdir does not exist
45046 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
45047
45048 # If ld is used when linking, flag to hardcode \$libdir into a binary
45049 # during linking.  This must work even if \$libdir does not exist.
45050 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
45051
45052 # Whether we need a single "-rpath" flag with a separated argument.
45053 hardcode_libdir_separator=$lt_hardcode_libdir_separator
45054
45055 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
45056 # DIR into the resulting binary.
45057 hardcode_direct=$hardcode_direct
45058
45059 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
45060 # DIR into the resulting binary and the resulting library dependency is
45061 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
45062 # library is relocated.
45063 hardcode_direct_absolute=$hardcode_direct_absolute
45064
45065 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
45066 # into the resulting binary.
45067 hardcode_minus_L=$hardcode_minus_L
45068
45069 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
45070 # into the resulting binary.
45071 hardcode_shlibpath_var=$hardcode_shlibpath_var
45072
45073 # Set to "yes" if building a shared library automatically hardcodes DIR
45074 # into the library and all subsequent libraries and executables linked
45075 # against it.
45076 hardcode_automatic=$hardcode_automatic
45077
45078 # Set to yes if linker adds runtime paths of dependent libraries
45079 # to runtime path list.
45080 inherit_rpath=$inherit_rpath
45081
45082 # Whether libtool must link a program against all its dependency libraries.
45083 link_all_deplibs=$link_all_deplibs
45084
45085 # Fix the shell variable \$srcfile for the compiler.
45086 fix_srcfile_path=$lt_fix_srcfile_path
45087
45088 # Set to "yes" if exported symbols are required.
45089 always_export_symbols=$always_export_symbols
45090
45091 # The commands to list exported symbols.
45092 export_symbols_cmds=$lt_export_symbols_cmds
45093
45094 # Symbols that should not be listed in the preloaded symbols.
45095 exclude_expsyms=$lt_exclude_expsyms
45096
45097 # Symbols that must always be exported.
45098 include_expsyms=$lt_include_expsyms
45099
45100 # Commands necessary for linking programs (against libraries) with templates.
45101 prelink_cmds=$lt_prelink_cmds
45102
45103 # Specify filename containing input files.
45104 file_list_spec=$lt_file_list_spec
45105
45106 # How to hardcode a shared library path into an executable.
45107 hardcode_action=$hardcode_action
45108
45109 # The directories searched by this compiler when creating a shared library.
45110 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
45111
45112 # Dependencies to place before and after the objects being linked to
45113 # create a shared library.
45114 predep_objects=$lt_predep_objects
45115 postdep_objects=$lt_postdep_objects
45116 predeps=$lt_predeps
45117 postdeps=$lt_postdeps
45118
45119 # The library search path used internally by the compiler when linking
45120 # a shared library.
45121 compiler_lib_search_path=$lt_compiler_lib_search_path
45122
45123 # ### END LIBTOOL CONFIG
45124
45125 _LT_EOF
45126
45127   case $host_os in
45128   aix3*)
45129     cat <<\_LT_EOF >> "$cfgfile"
45130 # AIX sometimes has problems with the GCC collect2 program.  For some
45131 # reason, if we set the COLLECT_NAMES environment variable, the problems
45132 # vanish in a puff of smoke.
45133 if test "X${COLLECT_NAMES+set}" != Xset; then
45134   COLLECT_NAMES=
45135   export COLLECT_NAMES
45136 fi
45137 _LT_EOF
45138     ;;
45139   esac
45140
45141
45142 ltmain="$ac_aux_dir/ltmain.sh"
45143
45144
45145   # We use sed instead of cat because bash on DJGPP gets confused if
45146   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
45147   # text mode, it properly converts lines to CR/LF.  This bash problem
45148   # is reportedly fixed, but why not run on old versions too?
45149   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
45150     || (rm -f "$cfgfile"; exit 1)
45151
45152   case $xsi_shell in
45153   yes)
45154     cat << \_LT_EOF >> "$cfgfile"
45155
45156 # func_dirname file append nondir_replacement
45157 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
45158 # otherwise set result to NONDIR_REPLACEMENT.
45159 func_dirname ()
45160 {
45161   case ${1} in
45162     */*) func_dirname_result="${1%/*}${2}" ;;
45163     *  ) func_dirname_result="${3}" ;;
45164   esac
45165 }
45166
45167 # func_basename file
45168 func_basename ()
45169 {
45170   func_basename_result="${1##*/}"
45171 }
45172
45173 # func_dirname_and_basename file append nondir_replacement
45174 # perform func_basename and func_dirname in a single function
45175 # call:
45176 #   dirname:  Compute the dirname of FILE.  If nonempty,
45177 #             add APPEND to the result, otherwise set result
45178 #             to NONDIR_REPLACEMENT.
45179 #             value returned in "$func_dirname_result"
45180 #   basename: Compute filename of FILE.
45181 #             value retuned in "$func_basename_result"
45182 # Implementation must be kept synchronized with func_dirname
45183 # and func_basename. For efficiency, we do not delegate to
45184 # those functions but instead duplicate the functionality here.
45185 func_dirname_and_basename ()
45186 {
45187   case ${1} in
45188     */*) func_dirname_result="${1%/*}${2}" ;;
45189     *  ) func_dirname_result="${3}" ;;
45190   esac
45191   func_basename_result="${1##*/}"
45192 }
45193
45194 # func_stripname prefix suffix name
45195 # strip PREFIX and SUFFIX off of NAME.
45196 # PREFIX and SUFFIX must not contain globbing or regex special
45197 # characters, hashes, percent signs, but SUFFIX may contain a leading
45198 # dot (in which case that matches only a dot).
45199 func_stripname ()
45200 {
45201   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
45202   # positional parameters, so assign one to ordinary parameter first.
45203   func_stripname_result=${3}
45204   func_stripname_result=${func_stripname_result#"${1}"}
45205   func_stripname_result=${func_stripname_result%"${2}"}
45206 }
45207
45208 # func_opt_split
45209 func_opt_split ()
45210 {
45211   func_opt_split_opt=${1%%=*}
45212   func_opt_split_arg=${1#*=}
45213 }
45214
45215 # func_lo2o object
45216 func_lo2o ()
45217 {
45218   case ${1} in
45219     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
45220     *)    func_lo2o_result=${1} ;;
45221   esac
45222 }
45223
45224 # func_xform libobj-or-source
45225 func_xform ()
45226 {
45227   func_xform_result=${1%.*}.lo
45228 }
45229
45230 # func_arith arithmetic-term...
45231 func_arith ()
45232 {
45233   func_arith_result=$(( $* ))
45234 }
45235
45236 # func_len string
45237 # STRING may not start with a hyphen.
45238 func_len ()
45239 {
45240   func_len_result=${#1}
45241 }
45242
45243 _LT_EOF
45244     ;;
45245   *) # Bourne compatible functions.
45246     cat << \_LT_EOF >> "$cfgfile"
45247
45248 # func_dirname file append nondir_replacement
45249 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
45250 # otherwise set result to NONDIR_REPLACEMENT.
45251 func_dirname ()
45252 {
45253   # Extract subdirectory from the argument.
45254   func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
45255   if test "X$func_dirname_result" = "X${1}"; then
45256     func_dirname_result="${3}"
45257   else
45258     func_dirname_result="$func_dirname_result${2}"
45259   fi
45260 }
45261
45262 # func_basename file
45263 func_basename ()
45264 {
45265   func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
45266 }
45267
45268
45269 # func_stripname prefix suffix name
45270 # strip PREFIX and SUFFIX off of NAME.
45271 # PREFIX and SUFFIX must not contain globbing or regex special
45272 # characters, hashes, percent signs, but SUFFIX may contain a leading
45273 # dot (in which case that matches only a dot).
45274 # func_strip_suffix prefix name
45275 func_stripname ()
45276 {
45277   case ${2} in
45278     .*) func_stripname_result=`$ECHO "X${3}" \
45279            | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
45280     *)  func_stripname_result=`$ECHO "X${3}" \
45281            | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
45282   esac
45283 }
45284
45285 # sed scripts:
45286 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
45287 my_sed_long_arg='1s/^-[^=]*=//'
45288
45289 # func_opt_split
45290 func_opt_split ()
45291 {
45292   func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
45293   func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
45294 }
45295
45296 # func_lo2o object
45297 func_lo2o ()
45298 {
45299   func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
45300 }
45301
45302 # func_xform libobj-or-source
45303 func_xform ()
45304 {
45305   func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
45306 }
45307
45308 # func_arith arithmetic-term...
45309 func_arith ()
45310 {
45311   func_arith_result=`expr "$@"`
45312 }
45313
45314 # func_len string
45315 # STRING may not start with a hyphen.
45316 func_len ()
45317 {
45318   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
45319 }
45320
45321 _LT_EOF
45322 esac
45323
45324 case $lt_shell_append in
45325   yes)
45326     cat << \_LT_EOF >> "$cfgfile"
45327
45328 # func_append var value
45329 # Append VALUE to the end of shell variable VAR.
45330 func_append ()
45331 {
45332   eval "$1+=\$2"
45333 }
45334 _LT_EOF
45335     ;;
45336   *)
45337     cat << \_LT_EOF >> "$cfgfile"
45338
45339 # func_append var value
45340 # Append VALUE to the end of shell variable VAR.
45341 func_append ()
45342 {
45343   eval "$1=\$$1\$2"
45344 }
45345
45346 _LT_EOF
45347     ;;
45348   esac
45349
45350
45351   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
45352     || (rm -f "$cfgfile"; exit 1)
45353
45354   mv -f "$cfgfile" "$ofile" ||
45355     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
45356   chmod +x "$ofile"
45357
45358
45359     cat <<_LT_EOF >> "$ofile"
45360
45361 # ### BEGIN LIBTOOL TAG CONFIG: CXX
45362
45363 # The linker used to build libraries.
45364 LD=$lt_LD_CXX
45365
45366 # Commands used to build an old-style archive.
45367 old_archive_cmds=$lt_old_archive_cmds_CXX
45368
45369 # A language specific compiler.
45370 CC=$lt_compiler_CXX
45371
45372 # Is the compiler the GNU compiler?
45373 with_gcc=$GCC_CXX
45374
45375 # Compiler flag to turn off builtin functions.
45376 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
45377
45378 # How to pass a linker flag through the compiler.
45379 wl=$lt_lt_prog_compiler_wl_CXX
45380
45381 # Additional compiler flags for building library objects.
45382 pic_flag=$lt_lt_prog_compiler_pic_CXX
45383
45384 # Compiler flag to prevent dynamic linking.
45385 link_static_flag=$lt_lt_prog_compiler_static_CXX
45386
45387 # Does compiler simultaneously support -c and -o options?
45388 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
45389
45390 # Whether or not to add -lc for building shared libraries.
45391 build_libtool_need_lc=$archive_cmds_need_lc_CXX
45392
45393 # Whether or not to disallow shared libs when runtime libs are static.
45394 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
45395
45396 # Compiler flag to allow reflexive dlopens.
45397 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
45398
45399 # Compiler flag to generate shared objects directly from archives.
45400 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
45401
45402 # Whether the compiler copes with passing no objects directly.
45403 compiler_needs_object=$lt_compiler_needs_object_CXX
45404
45405 # Create an old-style archive from a shared archive.
45406 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
45407
45408 # Create a temporary old-style archive to link instead of a shared archive.
45409 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
45410
45411 # Commands used to build a shared archive.
45412 archive_cmds=$lt_archive_cmds_CXX
45413 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
45414
45415 # Commands used to build a loadable module if different from building
45416 # a shared archive.
45417 module_cmds=$lt_module_cmds_CXX
45418 module_expsym_cmds=$lt_module_expsym_cmds_CXX
45419
45420 # Whether we are building with GNU ld or not.
45421 with_gnu_ld=$lt_with_gnu_ld_CXX
45422
45423 # Flag that allows shared libraries with undefined symbols to be built.
45424 allow_undefined_flag=$lt_allow_undefined_flag_CXX
45425
45426 # Flag that enforces no undefined symbols.
45427 no_undefined_flag=$lt_no_undefined_flag_CXX
45428
45429 # Flag to hardcode \$libdir into a binary during linking.
45430 # This must work even if \$libdir does not exist
45431 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
45432
45433 # If ld is used when linking, flag to hardcode \$libdir into a binary
45434 # during linking.  This must work even if \$libdir does not exist.
45435 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
45436
45437 # Whether we need a single "-rpath" flag with a separated argument.
45438 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
45439
45440 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
45441 # DIR into the resulting binary.
45442 hardcode_direct=$hardcode_direct_CXX
45443
45444 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
45445 # DIR into the resulting binary and the resulting library dependency is
45446 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
45447 # library is relocated.
45448 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
45449
45450 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
45451 # into the resulting binary.
45452 hardcode_minus_L=$hardcode_minus_L_CXX
45453
45454 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
45455 # into the resulting binary.
45456 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
45457
45458 # Set to "yes" if building a shared library automatically hardcodes DIR
45459 # into the library and all subsequent libraries and executables linked
45460 # against it.
45461 hardcode_automatic=$hardcode_automatic_CXX
45462
45463 # Set to yes if linker adds runtime paths of dependent libraries
45464 # to runtime path list.
45465 inherit_rpath=$inherit_rpath_CXX
45466
45467 # Whether libtool must link a program against all its dependency libraries.
45468 link_all_deplibs=$link_all_deplibs_CXX
45469
45470 # Fix the shell variable \$srcfile for the compiler.
45471 fix_srcfile_path=$lt_fix_srcfile_path_CXX
45472
45473 # Set to "yes" if exported symbols are required.
45474 always_export_symbols=$always_export_symbols_CXX
45475
45476 # The commands to list exported symbols.
45477 export_symbols_cmds=$lt_export_symbols_cmds_CXX
45478
45479 # Symbols that should not be listed in the preloaded symbols.
45480 exclude_expsyms=$lt_exclude_expsyms_CXX
45481
45482 # Symbols that must always be exported.
45483 include_expsyms=$lt_include_expsyms_CXX
45484
45485 # Commands necessary for linking programs (against libraries) with templates.
45486 prelink_cmds=$lt_prelink_cmds_CXX
45487
45488 # Specify filename containing input files.
45489 file_list_spec=$lt_file_list_spec_CXX
45490
45491 # How to hardcode a shared library path into an executable.
45492 hardcode_action=$hardcode_action_CXX
45493
45494 # The directories searched by this compiler when creating a shared library.
45495 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
45496
45497 # Dependencies to place before and after the objects being linked to
45498 # create a shared library.
45499 predep_objects=$lt_predep_objects_CXX
45500 postdep_objects=$lt_postdep_objects_CXX
45501 predeps=$lt_predeps_CXX
45502 postdeps=$lt_postdeps_CXX
45503
45504 # The library search path used internally by the compiler when linking
45505 # a shared library.
45506 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
45507
45508 # ### END LIBTOOL TAG CONFIG: CXX
45509 _LT_EOF
45510
45511  ;;
45512     "default-1":C)
45513     for ac_file in $CONFIG_FILES; do
45514       # Support "outfile[:infile[:infile...]]"
45515       case "$ac_file" in
45516         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
45517       esac
45518       # PO directories have a Makefile.in generated from Makefile.in.in.
45519       case "$ac_file" in */Makefile.in)
45520         # Adjust a relative srcdir.
45521         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
45522         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
45523         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
45524         # In autoconf-2.13 it is called $ac_given_srcdir.
45525         # In autoconf-2.50 it is called $srcdir.
45526         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
45527         case "$ac_given_srcdir" in
45528           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
45529           /*) top_srcdir="$ac_given_srcdir" ;;
45530           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
45531         esac
45532         # Treat a directory as a PO directory if and only if it has a
45533         # POTFILES.in file. This allows packages to have multiple PO
45534         # directories under different names or in different locations.
45535         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
45536           rm -f "$ac_dir/POTFILES"
45537           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
45538           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
45539           POMAKEFILEDEPS="POTFILES.in"
45540           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
45541           # on $ac_dir but don't depend on user-specified configuration
45542           # parameters.
45543           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
45544             # The LINGUAS file contains the set of available languages.
45545             if test -n "$OBSOLETE_ALL_LINGUAS"; then
45546               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
45547             fi
45548             ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
45549             # Hide the ALL_LINGUAS assigment from automake.
45550             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
45551             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
45552           else
45553             # The set of available languages was given in configure.in.
45554             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
45555           fi
45556           # Compute POFILES
45557           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
45558           # Compute UPDATEPOFILES
45559           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
45560           # Compute DUMMYPOFILES
45561           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
45562           # Compute GMOFILES
45563           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
45564           case "$ac_given_srcdir" in
45565             .) srcdirpre= ;;
45566             *) srcdirpre='$(srcdir)/' ;;
45567           esac
45568           POFILES=
45569           UPDATEPOFILES=
45570           DUMMYPOFILES=
45571           GMOFILES=
45572           for lang in $ALL_LINGUAS; do
45573             POFILES="$POFILES $srcdirpre$lang.po"
45574             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
45575             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
45576             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
45577           done
45578           # CATALOGS depends on both $ac_dir and the user's LINGUAS
45579           # environment variable.
45580           INST_LINGUAS=
45581           if test -n "$ALL_LINGUAS"; then
45582             for presentlang in $ALL_LINGUAS; do
45583               useit=no
45584               if test "%UNSET%" != "$LINGUAS"; then
45585                 desiredlanguages="$LINGUAS"
45586               else
45587                 desiredlanguages="$ALL_LINGUAS"
45588               fi
45589               for desiredlang in $desiredlanguages; do
45590                 # Use the presentlang catalog if desiredlang is
45591                 #   a. equal to presentlang, or
45592                 #   b. a variant of presentlang (because in this case,
45593                 #      presentlang can be used as a fallback for messages
45594                 #      which are not translated in the desiredlang catalog).
45595                 case "$desiredlang" in
45596                   "$presentlang"*) useit=yes;;
45597                 esac
45598               done
45599               if test $useit = yes; then
45600                 INST_LINGUAS="$INST_LINGUAS $presentlang"
45601               fi
45602             done
45603           fi
45604           CATALOGS=
45605           if test -n "$INST_LINGUAS"; then
45606             for lang in $INST_LINGUAS; do
45607               CATALOGS="$CATALOGS $lang.gmo"
45608             done
45609           fi
45610           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
45611           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"
45612           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
45613             if test -f "$f"; then
45614               case "$f" in
45615                 *.orig | *.bak | *~) ;;
45616                 *) cat "$f" >> "$ac_dir/Makefile" ;;
45617               esac
45618             fi
45619           done
45620         fi
45621         ;;
45622       esac
45623     done ;;
45624     "default":C)
45625  ;;
45626
45627   esac
45628 done # for ac_tag
45629
45630
45631 { (exit 0); exit 0; }
45632 _ACEOF
45633 chmod +x $CONFIG_STATUS
45634 ac_clean_files=$ac_clean_files_save
45635
45636
45637 # configure is writing to config.log, and then calls config.status.
45638 # config.status does its own redirection, appending to config.log.
45639 # Unfortunately, on DOS this fails, as config.log is still kept open
45640 # by configure, so config.status won't be able to write to it; its
45641 # output is simply discarded.  So we exec the FD to /dev/null,
45642 # effectively closing config.log, so it can be properly (re)opened and
45643 # appended to by config.status.  When coming back to configure, we
45644 # need to make the FD available again.
45645 if test "$no_create" != yes; then
45646   ac_cs_success=:
45647   ac_config_status_args=
45648   test "$silent" = yes &&
45649     ac_config_status_args="$ac_config_status_args --quiet"
45650   exec 5>/dev/null
45651   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
45652   exec 5>>config.log
45653   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
45654   # would make configure fail if this is the last instruction.
45655   $ac_cs_success || { (exit 1); exit 1; }
45656 fi
45657
45658
45659 if test "${support_bat}" = "yes" ; then
45660    if test "x$QMAKE" = "xnone" && test "x$QMAKEQT4" = "xnone"; then
45661       echo "Could not find qmake or qmake-qt4 in $PATH. Check your Qt installation"
45662       exit 1
45663    fi
45664
45665    QMAKEBIN="qmake"
45666
45667    if test "x$QMAKEQT4" != "xnone"; then
45668        QMAKEBIN=qmake-qt4
45669    fi
45670
45671    cd src/qt-console
45672    echo "Creating bat Makefile"
45673    touch bat
45674    chmod 755 bat
45675    $QMAKEBIN
45676    make clean
45677    cd ${BUILD_DIR}
45678 fi
45679
45680 if test X"$GCC" = "Xyes" ; then
45681   echo "Doing make of dependencies"
45682   ${MAKE:-make} depend
45683 fi
45684
45685 cd src/qt-console
45686 chmod 755 install_conf_file build-depkgs-qt-console
45687 cd ${BUILD_DIR}
45688
45689 cd scripts
45690 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
45691 chmod 755 dvd-handler dvd-simulator
45692 chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
45693 cd ..
45694
45695 c=updatedb
45696 chmod 755 $c/update_mysql_tables_10_to_11   $c/update_sqlite3_tables_10_to_11
45697 chmod 755 $c/update_postgresql_tables_10_to_11   $c/update_sqlite_tables_10_to_11
45698
45699 c=src/cats
45700
45701 chmod 755 $c/create_bacula_database   $c/update_bacula_tables  $c/make_bacula_tables
45702 chmod 755 $c/grant_bacula_privileges  $c/drop_bacula_tables    $c/drop_bacula_database
45703
45704 chmod 755 $c/create_bdb_database      $c/update_bdb_tables     $c/make_bdb_tables
45705 chmod 755 $c/grant_bdb_privileges     $c/drop_bdb_tables       $c/drop_bdb_database
45706
45707 chmod 755 $c/create_mysql_database    $c/update_mysql_tables   $c/make_mysql_tables
45708 chmod 755 $c/grant_mysql_privileges   $c/drop_mysql_tables     $c/drop_mysql_database
45709
45710 chmod 755 $c/create_sqlite_database   $c/update_sqlite_tables  $c/make_sqlite_tables
45711 chmod 755 $c/grant_sqlite_privileges  $c/drop_sqlite_tables    $c/drop_sqlite_database
45712
45713 chmod 755 $c/create_sqlite3_database   $c/update_sqlite3_tables  $c/make_sqlite3_tables
45714 chmod 755 $c/grant_sqlite3_privileges  $c/drop_sqlite3_tables    $c/drop_sqlite3_database
45715
45716 chmod 755 $c/create_postgresql_database  $c/update_postgresql_tables $c/make_postgresql_tables
45717 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables   $c/drop_postgresql_database
45718
45719 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup
45720 chmod 755 $c/sqlite
45721 chmod 755 $c/mysql
45722
45723 chmod 755 src/win32/build-depkgs-mingw32
45724
45725 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
45726    largefile_support="yes"
45727 fi
45728
45729 if test X"$GCC" = "Xyes" ; then
45730                CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
45731    if test "x${CCVERSION}" = "x" ; then
45732       CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
45733    fi
45734    CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
45735    if test x"${CXXVERSION}" = x ; then
45736       CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
45737    fi
45738 fi
45739
45740 # clean up any old junk
45741 echo " "
45742 echo "Cleaning up"
45743 echo " "
45744 make clean
45745
45746 if test "x${db_type}" = "xInternal" ; then
45747    echo " "
45748    echo " "
45749    echo "You have not specified either --enable-client-only or one of the"
45750    echo "  supported databases: MySQL, PostgreSQL, SQLite3, SQLite or DBI."
45751    echo "  This is not permitted. Please reconfigure."
45752    echo " "
45753    echo "Aborting the configuration ..."
45754    echo " "
45755    echo " "
45756    exit 1
45757 fi
45758
45759 echo "
45760 Configuration on `date`:
45761
45762    Host:                    ${host}${post_host} -- ${DISTNAME} ${DISTVER}
45763    Bacula version:          ${BACULA} ${VERSION} (${DATE})
45764    Source code location:    ${srcdir}
45765    Install binaries:        ${sbindir}
45766    Install libraries:       ${libdir}
45767    Install config files:    ${sysconfdir}
45768    Scripts directory:       ${scriptdir}
45769    Archive directory:       ${archivedir}
45770    Working directory:       ${working_dir}
45771    PID directory:           ${piddir}
45772    Subsys directory:        ${subsysdir}
45773    Man directory:           ${mandir}
45774    Data directory:          ${datarootdir}
45775    Plugin directory:        ${plugindir}
45776    C Compiler:              ${CC} ${CCVERSION}
45777    C++ Compiler:            ${CXX} ${CXXVERSION}
45778    Compiler flags:          ${WCFLAGS} ${CFLAGS}
45779    Linker flags:            ${WLDFLAGS} ${LDFLAGS}
45780    Libraries:               ${LIBS}
45781    Statically Linked Tools: ${support_static_tools}
45782    Statically Linked FD:    ${support_static_fd}
45783    Statically Linked SD:    ${support_static_sd}
45784    Statically Linked DIR:   ${support_static_dir}
45785    Statically Linked CONS:  ${support_static_cons}
45786    Database type:           ${db_type}
45787    Database port:           ${db_port}
45788    Database lib:            ${DB_LIBS}
45789    Database name:           ${db_name}
45790    Database user:           ${db_user}
45791
45792    Job Output Email:        ${job_email}
45793    Traceback Email:         ${dump_email}
45794    SMTP Host Address:       ${smtp_host}
45795
45796    Director Port:           ${dir_port}
45797    File daemon Port:        ${fd_port}
45798    Storage daemon Port:     ${sd_port}
45799
45800    Director User:           ${dir_user}
45801    Director Group:          ${dir_group}
45802    Storage Daemon User:     ${sd_user}
45803    Storage DaemonGroup:     ${sd_group}
45804    File Daemon User:        ${fd_user}
45805    File Daemon Group:       ${fd_group}
45806
45807    SQL binaries Directory   ${SQL_BINDIR}
45808
45809    Large file support:      $largefile_support
45810    Bacula conio support:    ${got_conio} ${CONS_LIBS}
45811    readline support:        ${got_readline} ${PRTREADLINE_SRC}
45812    TCP Wrappers support:    ${TCPW_MSG} ${WRAPLIBS}
45813    TLS support:             ${support_tls}
45814    Encryption support:      ${support_crypto}
45815    ZLIB support:            ${have_zlib}
45816    enable-smartalloc:       ${support_smartalloc}
45817    enable-lockmgr:          ${support_lockmgr}
45818    bat support:             ${support_bat} ${QWT_LDFLAGS}
45819    enable-gnome:            ${support_gnome} ${gnome_version}
45820    enable-bwx-console:      ${support_wx_console} ${wx_version}
45821    enable-tray-monitor:     ${support_tray_monitor}
45822    client-only:             ${build_client_only}
45823    build-dird:              ${build_dird}
45824    build-stored:            ${build_stored}
45825    ACL support:             ${have_acl}
45826    XATTR support:           ${have_xattr}
45827    Python support:          ${support_python} ${PYTHON_LIBS}
45828    Batch insert enabled:    ${support_batch_insert}
45829
45830   " > config.out
45831
45832 cat config.out