]> git.sur5r.net Git - bacula/bacula/blob - bacula/configure
a3b4e12ece1077a008aa1a8430ad16889a519b82
[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 FD_PLUGIN_DIR
894 INCLUDE_INSTALL_TARGET
895 INCLUDE_UNINSTALL_TARGET
896 HAVE_SUN_OS_TRUE
897 HAVE_SUN_OS_FALSE
898 HAVE_OSF1_OS_TRUE
899 HAVE_OSF1_OS_FALSE
900 HAVE_AIX_OS_TRUE
901 HAVE_AIX_OS_FALSE
902 HAVE_HPUX_OS_TRUE
903 HAVE_HPUX_OS_FALSE
904 HAVE_LINUX_OS_TRUE
905 HAVE_LINUX_OS_FALSE
906 HAVE_FREEBSD_OS_TRUE
907 HAVE_FREEBSD_OS_FALSE
908 HAVE_NETBSD_OS_TRUE
909 HAVE_NETBSD_OS_FALSE
910 HAVE_OPENBSD_OS_TRUE
911 HAVE_OPENBSD_OS_FALSE
912 HAVE_BSDI_OS_TRUE
913 HAVE_BSDI_OS_FALSE
914 HAVE_SGI_OS_TRUE
915 HAVE_SGI_OS_FALSE
916 HAVE_IRIX_OS_TRUE
917 HAVE_IRIX_OS_FALSE
918 HAVE_DARWIN_OS_TRUE
919 HAVE_DARWIN_OS_FALSE
920 SET_MAKE
921 MKINSTALLDIRS
922 USE_NLS
923 MSGFMT
924 GMSGFMT
925 XGETTEXT
926 MSGMERGE
927 INTL_MACOSX_LIBS
928 LIBICONV
929 LTLIBICONV
930 INTLLIBS
931 LIBINTL
932 LTLIBINTL
933 POSUB
934 GLIBC2
935 ALLOCA
936 GLIBC21
937 HAVE_POSIX_PRINTF
938 HAVE_ASPRINTF
939 HAVE_SNPRINTF
940 HAVE_WPRINTF
941 INTLBISON
942 BUILD_INCLUDED_LIBINTL
943 USE_INCLUDED_LIBINTL
944 CATOBJEXT
945 DATADIRNAME
946 INSTOBJEXT
947 GENCAT
948 INTLOBJS
949 INTL_LIBTOOL_SUFFIX_PREFIX
950 BAT_DIR
951 QWT_INC
952 QWT_LDFLAGS
953 QWT_LIB
954 QWT
955 WXCONS_CPPFLAGS
956 WXCONS_LDFLAGS
957 WX_DIR
958 TRAY_MONITOR_CPPFLAGS
959 TRAY_MONITOR_LDFLAGS
960 TRAY_MONITOR_DIR
961 TTOOL_LDFLAGS
962 STATIC_FD
963 STATIC_SD
964 STATIC_DIR
965 STATIC_CONS
966 STATIC_GNOME_CONS
967 STATIC_WX_CONS
968 ALL_DIRS
969 DIRD_DIR
970 DIR_TOOLS
971 STORED_DIR
972 CONS_INC
973 CONS_OBJ
974 CONS_SRC
975 CONS_LIBS
976 CONS_LDFLAGS
977 READLINE_SRC
978 PYTHON_LIBS
979 PYTHON_INCDIR
980 OPENSSL_LIBS
981 OPENSSL_INC
982 working_dir
983 archivedir
984 basename
985 hostname
986 scriptdir
987 bsrdir
988 logdir
989 plugindir
990 dump_email
991 job_email
992 smtp_host
993 piddir
994 subsysdir
995 baseport
996 dir_port
997 fd_port
998 sd_port
999 dir_password
1000 fd_password
1001 sd_password
1002 mon_dir_password
1003 mon_fd_password
1004 mon_sd_password
1005 db_name
1006 db_user
1007 db_password
1008 db_port
1009 dir_user
1010 dir_group
1011 sd_user
1012 sd_group
1013 fd_user
1014 fd_group
1015 SBINPERM
1016 SQL_LFLAGS
1017 SQL_INCLUDE
1018 SQL_BINDIR
1019 DBI_DBD_DRIVERDIR
1020 uncomment_dbi
1021 DB_PROG
1022 DB_PROG_LIB
1023 cats
1024 DB_TYPE
1025 GETCONF
1026 XMKMF
1027 X_CFLAGS
1028 X_PRE_LIBS
1029 X_LIBS
1030 X_EXTRA_LIBS
1031 LIBOBJS
1032 CAP_LIBS
1033 FDLIBS
1034 DEBUG
1035 DINCLUDE
1036 DLIB
1037 DB_LIBS
1038 WCFLAGS
1039 WLDFLAGS
1040 WRAPLIBS
1041 OBJLIST
1042 TAPEDRIVE
1043 PSCMD
1044 WIN32
1045 MACOSX
1046 DISTNAME
1047 DISTVER
1048 LTLIBOBJS'
1049 ac_subst_files='MCOMMON'
1050       ac_precious_vars='build_alias
1051 host_alias
1052 target_alias
1053 CC
1054 CFLAGS
1055 LDFLAGS
1056 LIBS
1057 CPPFLAGS
1058 CXX
1059 CXXFLAGS
1060 CCC
1061 CPP
1062 WXCONFIG
1063 WXFLAGS
1064 CXXCPP
1065 XMKMF'
1066
1067
1068 # Initialize some variables set by options.
1069 ac_init_help=
1070 ac_init_version=false
1071 # The variables have the same names as the options, with
1072 # dashes changed to underlines.
1073 cache_file=/dev/null
1074 exec_prefix=NONE
1075 no_create=
1076 no_recursion=
1077 prefix=NONE
1078 program_prefix=NONE
1079 program_suffix=NONE
1080 program_transform_name=s,x,x,
1081 silent=
1082 site=
1083 srcdir=
1084 verbose=
1085 x_includes=NONE
1086 x_libraries=NONE
1087
1088 # Installation directory options.
1089 # These are left unexpanded so users can "make install exec_prefix=/foo"
1090 # and all the variables that are supposed to be based on exec_prefix
1091 # by default will actually change.
1092 # Use braces instead of parens because sh, perl, etc. also accept them.
1093 # (The list follows the same order as the GNU Coding Standards.)
1094 bindir='${exec_prefix}/bin'
1095 sbindir='${exec_prefix}/sbin'
1096 libexecdir='${exec_prefix}/libexec'
1097 datarootdir='${prefix}/share'
1098 datadir='${datarootdir}'
1099 sysconfdir='${prefix}/etc'
1100 sharedstatedir='${prefix}/com'
1101 localstatedir='${prefix}/var'
1102 includedir='${prefix}/include'
1103 oldincludedir='/usr/include'
1104 docdir='${datarootdir}/doc/${PACKAGE}'
1105 infodir='${datarootdir}/info'
1106 htmldir='${docdir}'
1107 dvidir='${docdir}'
1108 pdfdir='${docdir}'
1109 psdir='${docdir}'
1110 libdir='${exec_prefix}/lib'
1111 localedir='${datarootdir}/locale'
1112 mandir='${datarootdir}/man'
1113
1114 ac_prev=
1115 ac_dashdash=
1116 for ac_option
1117 do
1118   # If the previous option needs an argument, assign it.
1119   if test -n "$ac_prev"; then
1120     eval $ac_prev=\$ac_option
1121     ac_prev=
1122     continue
1123   fi
1124
1125   case $ac_option in
1126   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1127   *)    ac_optarg=yes ;;
1128   esac
1129
1130   # Accept the important Cygnus configure options, so we can diagnose typos.
1131
1132   case $ac_dashdash$ac_option in
1133   --)
1134     ac_dashdash=yes ;;
1135
1136   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1137     ac_prev=bindir ;;
1138   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1139     bindir=$ac_optarg ;;
1140
1141   -build | --build | --buil | --bui | --bu)
1142     ac_prev=build_alias ;;
1143   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1144     build_alias=$ac_optarg ;;
1145
1146   -cache-file | --cache-file | --cache-fil | --cache-fi \
1147   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1148     ac_prev=cache_file ;;
1149   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1150   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1151     cache_file=$ac_optarg ;;
1152
1153   --config-cache | -C)
1154     cache_file=config.cache ;;
1155
1156   -datadir | --datadir | --datadi | --datad)
1157     ac_prev=datadir ;;
1158   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1159     datadir=$ac_optarg ;;
1160
1161   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1162   | --dataroo | --dataro | --datar)
1163     ac_prev=datarootdir ;;
1164   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1165   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1166     datarootdir=$ac_optarg ;;
1167
1168   -disable-* | --disable-*)
1169     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1170     # Reject names that are not valid shell variable names.
1171     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1172       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1173    { (exit 1); exit 1; }; }
1174     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1175     eval enable_$ac_feature=no ;;
1176
1177   -docdir | --docdir | --docdi | --doc | --do)
1178     ac_prev=docdir ;;
1179   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1180     docdir=$ac_optarg ;;
1181
1182   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1183     ac_prev=dvidir ;;
1184   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1185     dvidir=$ac_optarg ;;
1186
1187   -enable-* | --enable-*)
1188     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1189     # Reject names that are not valid shell variable names.
1190     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1191       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1192    { (exit 1); exit 1; }; }
1193     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1194     eval enable_$ac_feature=\$ac_optarg ;;
1195
1196   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1197   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1198   | --exec | --exe | --ex)
1199     ac_prev=exec_prefix ;;
1200   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1201   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1202   | --exec=* | --exe=* | --ex=*)
1203     exec_prefix=$ac_optarg ;;
1204
1205   -gas | --gas | --ga | --g)
1206     # Obsolete; use --with-gas.
1207     with_gas=yes ;;
1208
1209   -help | --help | --hel | --he | -h)
1210     ac_init_help=long ;;
1211   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1212     ac_init_help=recursive ;;
1213   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1214     ac_init_help=short ;;
1215
1216   -host | --host | --hos | --ho)
1217     ac_prev=host_alias ;;
1218   -host=* | --host=* | --hos=* | --ho=*)
1219     host_alias=$ac_optarg ;;
1220
1221   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1222     ac_prev=htmldir ;;
1223   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1224   | --ht=*)
1225     htmldir=$ac_optarg ;;
1226
1227   -includedir | --includedir | --includedi | --included | --include \
1228   | --includ | --inclu | --incl | --inc)
1229     ac_prev=includedir ;;
1230   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1231   | --includ=* | --inclu=* | --incl=* | --inc=*)
1232     includedir=$ac_optarg ;;
1233
1234   -infodir | --infodir | --infodi | --infod | --info | --inf)
1235     ac_prev=infodir ;;
1236   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1237     infodir=$ac_optarg ;;
1238
1239   -libdir | --libdir | --libdi | --libd)
1240     ac_prev=libdir ;;
1241   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1242     libdir=$ac_optarg ;;
1243
1244   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1245   | --libexe | --libex | --libe)
1246     ac_prev=libexecdir ;;
1247   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1248   | --libexe=* | --libex=* | --libe=*)
1249     libexecdir=$ac_optarg ;;
1250
1251   -localedir | --localedir | --localedi | --localed | --locale)
1252     ac_prev=localedir ;;
1253   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1254     localedir=$ac_optarg ;;
1255
1256   -localstatedir | --localstatedir | --localstatedi | --localstated \
1257   | --localstate | --localstat | --localsta | --localst | --locals)
1258     ac_prev=localstatedir ;;
1259   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1260   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1261     localstatedir=$ac_optarg ;;
1262
1263   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1264     ac_prev=mandir ;;
1265   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1266     mandir=$ac_optarg ;;
1267
1268   -nfp | --nfp | --nf)
1269     # Obsolete; use --without-fp.
1270     with_fp=no ;;
1271
1272   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1273   | --no-cr | --no-c | -n)
1274     no_create=yes ;;
1275
1276   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1277   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1278     no_recursion=yes ;;
1279
1280   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1281   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1282   | --oldin | --oldi | --old | --ol | --o)
1283     ac_prev=oldincludedir ;;
1284   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1285   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1286   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1287     oldincludedir=$ac_optarg ;;
1288
1289   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1290     ac_prev=prefix ;;
1291   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1292     prefix=$ac_optarg ;;
1293
1294   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1295   | --program-pre | --program-pr | --program-p)
1296     ac_prev=program_prefix ;;
1297   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1298   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1299     program_prefix=$ac_optarg ;;
1300
1301   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1302   | --program-suf | --program-su | --program-s)
1303     ac_prev=program_suffix ;;
1304   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1305   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1306     program_suffix=$ac_optarg ;;
1307
1308   -program-transform-name | --program-transform-name \
1309   | --program-transform-nam | --program-transform-na \
1310   | --program-transform-n | --program-transform- \
1311   | --program-transform | --program-transfor \
1312   | --program-transfo | --program-transf \
1313   | --program-trans | --program-tran \
1314   | --progr-tra | --program-tr | --program-t)
1315     ac_prev=program_transform_name ;;
1316   -program-transform-name=* | --program-transform-name=* \
1317   | --program-transform-nam=* | --program-transform-na=* \
1318   | --program-transform-n=* | --program-transform-=* \
1319   | --program-transform=* | --program-transfor=* \
1320   | --program-transfo=* | --program-transf=* \
1321   | --program-trans=* | --program-tran=* \
1322   | --progr-tra=* | --program-tr=* | --program-t=*)
1323     program_transform_name=$ac_optarg ;;
1324
1325   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1326     ac_prev=pdfdir ;;
1327   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1328     pdfdir=$ac_optarg ;;
1329
1330   -psdir | --psdir | --psdi | --psd | --ps)
1331     ac_prev=psdir ;;
1332   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1333     psdir=$ac_optarg ;;
1334
1335   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1336   | -silent | --silent | --silen | --sile | --sil)
1337     silent=yes ;;
1338
1339   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1340     ac_prev=sbindir ;;
1341   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1342   | --sbi=* | --sb=*)
1343     sbindir=$ac_optarg ;;
1344
1345   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1346   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1347   | --sharedst | --shareds | --shared | --share | --shar \
1348   | --sha | --sh)
1349     ac_prev=sharedstatedir ;;
1350   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1351   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1352   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1353   | --sha=* | --sh=*)
1354     sharedstatedir=$ac_optarg ;;
1355
1356   -site | --site | --sit)
1357     ac_prev=site ;;
1358   -site=* | --site=* | --sit=*)
1359     site=$ac_optarg ;;
1360
1361   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1362     ac_prev=srcdir ;;
1363   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1364     srcdir=$ac_optarg ;;
1365
1366   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1367   | --syscon | --sysco | --sysc | --sys | --sy)
1368     ac_prev=sysconfdir ;;
1369   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1370   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1371     sysconfdir=$ac_optarg ;;
1372
1373   -target | --target | --targe | --targ | --tar | --ta | --t)
1374     ac_prev=target_alias ;;
1375   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1376     target_alias=$ac_optarg ;;
1377
1378   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1379     verbose=yes ;;
1380
1381   -version | --version | --versio | --versi | --vers | -V)
1382     ac_init_version=: ;;
1383
1384   -with-* | --with-*)
1385     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1386     # Reject names that are not valid shell variable names.
1387     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1388       { echo "$as_me: error: invalid package name: $ac_package" >&2
1389    { (exit 1); exit 1; }; }
1390     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1391     eval with_$ac_package=\$ac_optarg ;;
1392
1393   -without-* | --without-*)
1394     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1395     # Reject names that are not valid shell variable names.
1396     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1397       { echo "$as_me: error: invalid package name: $ac_package" >&2
1398    { (exit 1); exit 1; }; }
1399     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1400     eval with_$ac_package=no ;;
1401
1402   --x)
1403     # Obsolete; use --with-x.
1404     with_x=yes ;;
1405
1406   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1407   | --x-incl | --x-inc | --x-in | --x-i)
1408     ac_prev=x_includes ;;
1409   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1410   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1411     x_includes=$ac_optarg ;;
1412
1413   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1414   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1415     ac_prev=x_libraries ;;
1416   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1417   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1418     x_libraries=$ac_optarg ;;
1419
1420   -*) { echo "$as_me: error: unrecognized option: $ac_option
1421 Try \`$0 --help' for more information." >&2
1422    { (exit 1); exit 1; }; }
1423     ;;
1424
1425   *=*)
1426     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1427     # Reject names that are not valid shell variable names.
1428     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1429       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1430    { (exit 1); exit 1; }; }
1431     eval $ac_envvar=\$ac_optarg
1432     export $ac_envvar ;;
1433
1434   *)
1435     # FIXME: should be removed in autoconf 3.0.
1436     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1437     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1438       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1439     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1440     ;;
1441
1442   esac
1443 done
1444
1445 if test -n "$ac_prev"; then
1446   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1447   { echo "$as_me: error: missing argument to $ac_option" >&2
1448    { (exit 1); exit 1; }; }
1449 fi
1450
1451 # Be sure to have absolute directory names.
1452 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1453                 datadir sysconfdir sharedstatedir localstatedir includedir \
1454                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1455                 libdir localedir mandir
1456 do
1457   eval ac_val=\$$ac_var
1458   case $ac_val in
1459     [\\/$]* | ?:[\\/]* )  continue;;
1460     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1461   esac
1462   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1463    { (exit 1); exit 1; }; }
1464 done
1465
1466 # There might be people who depend on the old broken behavior: `$host'
1467 # used to hold the argument of --host etc.
1468 # FIXME: To remove some day.
1469 build=$build_alias
1470 host=$host_alias
1471 target=$target_alias
1472
1473 # FIXME: To remove some day.
1474 if test "x$host_alias" != x; then
1475   if test "x$build_alias" = x; then
1476     cross_compiling=maybe
1477     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1478     If a cross compiler is detected then cross compile mode will be used." >&2
1479   elif test "x$build_alias" != "x$host_alias"; then
1480     cross_compiling=yes
1481   fi
1482 fi
1483
1484 ac_tool_prefix=
1485 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1486
1487 test "$silent" = yes && exec 6>/dev/null
1488
1489
1490 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1491 ac_ls_di=`ls -di .` &&
1492 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1493   { echo "$as_me: error: Working directory cannot be determined" >&2
1494    { (exit 1); exit 1; }; }
1495 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1496   { echo "$as_me: error: pwd does not report name of working directory" >&2
1497    { (exit 1); exit 1; }; }
1498
1499
1500 # Find the source files, if location was not specified.
1501 if test -z "$srcdir"; then
1502   ac_srcdir_defaulted=yes
1503   # Try the directory containing this script, then the parent directory.
1504   ac_confdir=`$as_dirname -- "$0" ||
1505 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1506          X"$0" : 'X\(//\)[^/]' \| \
1507          X"$0" : 'X\(//\)$' \| \
1508          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1509 echo X"$0" |
1510     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1511             s//\1/
1512             q
1513           }
1514           /^X\(\/\/\)[^/].*/{
1515             s//\1/
1516             q
1517           }
1518           /^X\(\/\/\)$/{
1519             s//\1/
1520             q
1521           }
1522           /^X\(\/\).*/{
1523             s//\1/
1524             q
1525           }
1526           s/.*/./; q'`
1527   srcdir=$ac_confdir
1528   if test ! -r "$srcdir/$ac_unique_file"; then
1529     srcdir=..
1530   fi
1531 else
1532   ac_srcdir_defaulted=no
1533 fi
1534 if test ! -r "$srcdir/$ac_unique_file"; then
1535   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1536   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1537    { (exit 1); exit 1; }; }
1538 fi
1539 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1540 ac_abs_confdir=`(
1541         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1542    { (exit 1); exit 1; }; }
1543         pwd)`
1544 # When building in place, set srcdir=.
1545 if test "$ac_abs_confdir" = "$ac_pwd"; then
1546   srcdir=.
1547 fi
1548 # Remove unnecessary trailing slashes from srcdir.
1549 # Double slashes in file names in object file debugging info
1550 # mess up M-x gdb in Emacs.
1551 case $srcdir in
1552 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1553 esac
1554 for ac_var in $ac_precious_vars; do
1555   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1556   eval ac_env_${ac_var}_value=\$${ac_var}
1557   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1558   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1559 done
1560
1561 #
1562 # Report the --help message.
1563 #
1564 if test "$ac_init_help" = "long"; then
1565   # Omit some internal or obsolete options to make the list less imposing.
1566   # This message is too long to be a string in the A/UX 3.1 sh.
1567   cat <<_ACEOF
1568 \`configure' configures this package to adapt to many kinds of systems.
1569
1570 Usage: $0 [OPTION]... [VAR=VALUE]...
1571
1572 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1573 VAR=VALUE.  See below for descriptions of some of the useful variables.
1574
1575 Defaults for the options are specified in brackets.
1576
1577 Configuration:
1578   -h, --help              display this help and exit
1579       --help=short        display options specific to this package
1580       --help=recursive    display the short help of all the included packages
1581   -V, --version           display version information and exit
1582   -q, --quiet, --silent   do not print \`checking...' messages
1583       --cache-file=FILE   cache test results in FILE [disabled]
1584   -C, --config-cache      alias for \`--cache-file=config.cache'
1585   -n, --no-create         do not create output files
1586       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1587
1588 Installation directories:
1589   --prefix=PREFIX         install architecture-independent files in PREFIX
1590                           [$ac_default_prefix]
1591   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1592                           [PREFIX]
1593
1594 By default, \`make install' will install all the files in
1595 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1596 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1597 for instance \`--prefix=\$HOME'.
1598
1599 For better control, use the options below.
1600
1601 Fine tuning of the installation directories:
1602   --bindir=DIR           user executables [EPREFIX/bin]
1603   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1604   --libexecdir=DIR       program executables [EPREFIX/libexec]
1605   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1606   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1607   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1608   --libdir=DIR           object code libraries [EPREFIX/lib]
1609   --includedir=DIR       C header files [PREFIX/include]
1610   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1611   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1612   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1613   --infodir=DIR          info documentation [DATAROOTDIR/info]
1614   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1615   --mandir=DIR           man documentation [DATAROOTDIR/man]
1616   --docdir=DIR           documentation root [DATAROOTDIR/doc/PACKAGE]
1617   --htmldir=DIR          html documentation [DOCDIR]
1618   --dvidir=DIR           dvi documentation [DOCDIR]
1619   --pdfdir=DIR           pdf documentation [DOCDIR]
1620   --psdir=DIR            ps documentation [DOCDIR]
1621 _ACEOF
1622
1623   cat <<\_ACEOF
1624
1625 X features:
1626   --x-includes=DIR    X include files are in DIR
1627   --x-libraries=DIR   X library files are in DIR
1628
1629 System types:
1630   --build=BUILD     configure for building on BUILD [guessed]
1631   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1632 _ACEOF
1633 fi
1634
1635 if test -n "$ac_init_help"; then
1636
1637   cat <<\_ACEOF
1638
1639 Optional Features:
1640   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1641   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1642   --enable-libtool        enable building using GNU libtool [default=yes]
1643   --enable-shared[=PKGS]  build shared libraries [default=yes]
1644   --enable-static[=PKGS]  build static libraries [default=no]
1645   --enable-fast-install[=PKGS]
1646                           optimize for fast installation [default=yes]
1647   --disable-libtool-lock  avoid locking (might break parallel builds)
1648   --enable-includes       enable installing of include files [default=no]
1649   --disable-nls           do not use Native Language Support
1650   --disable-rpath         do not hardcode runtime library paths
1651   --enable-gnome          enable build of bgnome-console GUI [default=no]
1652   --enable-bat            enable build of bat Qt4 GUI [default=no]
1653   --enable-bwx-console    enable build of wxWidgets console [default=no]
1654   --enable-tray-monitor   enable build of Gnome tray monitor (compatible with
1655                           KDE [default=no]
1656   --enable-smartalloc     enable smartalloc debugging support [default=no]
1657   --enable-lockmgr        enable lock manager support [default=no]
1658   --enable-static-tools   enable static tape tools [default=no]
1659   --enable-static-fd      enable static File daemon [default=no]
1660   --enable-static-sd      enable static Storage daemon [default=no]
1661   --enable-static-dir     enable static Director [default=no]
1662   --enable-static-cons    enable static Console [default=no]
1663   --enable-client-only    build client (File daemon) only [default=no]
1664   --enable-build-dird     enable building of dird (Director) [default=yes]
1665   --enable-build-stored   enable building of stored (Storage daemon)
1666                           [default=yes]
1667   --disable-conio         disable conio support [default=no]
1668   --enable-ipv6           enable ipv6 support [default=yes]
1669   --disable-readline      disable readline support [default=yes]
1670   --enable-batch-insert   enable the DB batch insert code [default=no]
1671   --disable-largefile     omit support for large files
1672   --disable-acl           disable acl support [default=auto]
1673   --disable-xattr         disable xattr support [default=auto]
1674
1675 Optional Packages:
1676   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1677   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1678   --with-pic              try to use only PIC/non-PIC objects [default=use
1679                           both]
1680   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1681   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1682   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1683   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1684   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1685   --without-libintl-prefix     don't search for libintl in includedir and libdir
1686   --with-included-gettext use the GNU gettext library included here
1687   --with-qwt[=DIR]        specify qwt library directory
1688   --with-readline[=DIR]   specify readline library directory
1689   --with-python[=DIR]     Include Python support. DIR is the Python base
1690                           install directory, default is to search through a
1691                           number of common places for the Python files.
1692   --with-tcp-wrappers[=DIR]
1693                           enable tcpwrappers support
1694   --with-openssl[=DIR]    Include OpenSSL support. DIR is the OpenSSL base
1695   --with-working-dir=PATH specify path of Bacula working directory
1696   --with-archivedir=PATH  specify path of SD archive directory
1697   --with-basename=RESNAME specify base resource name for daemons
1698   --with-hostname=RESNAME specify host name for daemons
1699   --with-scriptdir=PATH   specify path of Bacula scripts directory
1700   --with-bsrdir=PATH      specify path of Bacula bsrs directory
1701   --with-logdir=PATH      specify path of Bacula logs directory
1702   --with-plugindir=PATH   specify path of Bacula plugins directory
1703   --with-dump-email=EMAIL dump email address
1704   --with-job-email=EMAIL  job output email address
1705   --with-smtp-host=HOST   SMTP mail host address
1706   --with-pid-dir=PATH     specify location of Bacula pid files
1707   --with-subsys-dir=PATH  specify location of Bacula subsys file
1708   --with-baseport=PORT    specify base port address for daemons
1709   --with-dir-password=PASSWORD
1710                           specify Director's password
1711   --with-fd-password=PASSWORD
1712                           specify Client's password
1713   --with-sd-password=PASSWORD
1714                           specify Storage daemon's password
1715   --with-mon-dir-password=PASSWORD
1716                           specify Director's password used by the monitor
1717   --with-mon-fd-password=PASSWORD
1718                           specify Client's password used by the monitor
1719   --with-mon-sd-password=PASSWORD
1720                           specify Storage daemon's password used by the
1721                           monitor
1722   --with-db-name=DBNAME   specify database name [default=bacula]
1723   --with-db-user=UNAME    specify database user [default=bacula]
1724   --with-db-password=PWD  specify database password [default=*none*]
1725   --with-db-port=DBPORT   specify a database port [default=null]
1726   --with-dir-user=USER    specify user for Director daemon
1727   --with-dir-group=GROUP  specify group for Director daemon
1728   --with-sd-user=USER     specify user for Storage daemon
1729   --with-sd-group=GROUP   specify group for Storage daemon
1730   --with-fd-user=USER     specify user for File daemon
1731   --with-fd-group=GROUP   specify group for File daemon
1732   --with-sbin-perm=MODE   specify permissions for sbin binaries [default=0754]
1733   --with-postgresql[=DIR] Include PostgreSQL support. DIR is the PostgreSQL
1734                           base install directory, [default=/usr/local/pgsql]
1735   --with-mysql[=DIR]      Include MySQL support. DIR is the MySQL base install
1736                           directory, default is to search through a number of
1737                           common places for the MySQL files.
1738   --with-embedded-mysql[=DIR]
1739                           Include MySQL support. DIR is the MySQL base install
1740                           directory, default is to search through a number of
1741                           common places for the MySQL files.
1742   --with-sqlite3[=DIR]    Include SQLite3 support. DIR is the SQLite3 base
1743                           install directory, default is to search through a
1744                           number of common places for the SQLite3 files.
1745   --with-dbi[=DIR]        Include DBI support. DIR is the DBD base install
1746                           directory, default is to search through a number of
1747                           common places for the DBI files.
1748   --with-dbi-driver[=DRIVER]
1749                           Suport for DBI driver. DRIVER is the one DBI driver
1750                           like Mysql, Postgresql, others. Default is to not
1751                           configure any driver.
1752   --with-x                use the X Window System
1753
1754 Some influential environment variables:
1755   CC          C compiler command
1756   CFLAGS      C compiler flags
1757   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1758               nonstandard directory <lib dir>
1759   LIBS        libraries to pass to the linker, e.g. -l<library>
1760   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1761               you have headers in a nonstandard directory <include dir>
1762   CXX         C++ compiler command
1763   CXXFLAGS    C++ compiler flags
1764   CPP         C preprocessor
1765   WXCONFIG    wx-config command. On some systems, you must set it to
1766               wx-config-2.6 to use wxWidgets 2.6.
1767   WXFLAGS     Parameters to pass to wx-config (e.g. --unicode=no).
1768   CXXCPP      C++ preprocessor
1769   XMKMF       Path to xmkmf, Makefile generator for X Window System
1770
1771 Use these variables to override the choices made by `configure' or to help
1772 it to find libraries and programs with nonstandard names/locations.
1773
1774 _ACEOF
1775 ac_status=$?
1776 fi
1777
1778 if test "$ac_init_help" = "recursive"; then
1779   # If there are subdirs, report their specific --help.
1780   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1781     test -d "$ac_dir" || continue
1782     ac_builddir=.
1783
1784 case "$ac_dir" in
1785 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1786 *)
1787   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1788   # A ".." for each directory in $ac_dir_suffix.
1789   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1790   case $ac_top_builddir_sub in
1791   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1792   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1793   esac ;;
1794 esac
1795 ac_abs_top_builddir=$ac_pwd
1796 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1797 # for backward compatibility:
1798 ac_top_builddir=$ac_top_build_prefix
1799
1800 case $srcdir in
1801   .)  # We are building in place.
1802     ac_srcdir=.
1803     ac_top_srcdir=$ac_top_builddir_sub
1804     ac_abs_top_srcdir=$ac_pwd ;;
1805   [\\/]* | ?:[\\/]* )  # Absolute name.
1806     ac_srcdir=$srcdir$ac_dir_suffix;
1807     ac_top_srcdir=$srcdir
1808     ac_abs_top_srcdir=$srcdir ;;
1809   *) # Relative name.
1810     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1811     ac_top_srcdir=$ac_top_build_prefix$srcdir
1812     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1813 esac
1814 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1815
1816     cd "$ac_dir" || { ac_status=$?; continue; }
1817     # Check for guested configure.
1818     if test -f "$ac_srcdir/configure.gnu"; then
1819       echo &&
1820       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1821     elif test -f "$ac_srcdir/configure"; then
1822       echo &&
1823       $SHELL "$ac_srcdir/configure" --help=recursive
1824     else
1825       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1826     fi || ac_status=$?
1827     cd "$ac_pwd" || { ac_status=$?; break; }
1828   done
1829 fi
1830
1831 test -n "$ac_init_help" && exit $ac_status
1832 if $ac_init_version; then
1833   cat <<\_ACEOF
1834 configure
1835 generated by GNU Autoconf 2.61
1836
1837 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1838 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1839 This configure script is free software; the Free Software Foundation
1840 gives unlimited permission to copy, distribute and modify it.
1841 _ACEOF
1842   exit
1843 fi
1844 cat >config.log <<_ACEOF
1845 This file contains any messages produced by compilers while
1846 running configure, to aid debugging if configure makes a mistake.
1847
1848 It was created by $as_me, which was
1849 generated by GNU Autoconf 2.61.  Invocation command line was
1850
1851   $ $0 $@
1852
1853 _ACEOF
1854 exec 5>>config.log
1855 {
1856 cat <<_ASUNAME
1857 ## --------- ##
1858 ## Platform. ##
1859 ## --------- ##
1860
1861 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1862 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1863 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1864 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1865 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1866
1867 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1868 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1869
1870 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1871 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1872 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1873 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1874 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1875 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1876 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1877
1878 _ASUNAME
1879
1880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1881 for as_dir in $PATH
1882 do
1883   IFS=$as_save_IFS
1884   test -z "$as_dir" && as_dir=.
1885   echo "PATH: $as_dir"
1886 done
1887 IFS=$as_save_IFS
1888
1889 } >&5
1890
1891 cat >&5 <<_ACEOF
1892
1893
1894 ## ----------- ##
1895 ## Core tests. ##
1896 ## ----------- ##
1897
1898 _ACEOF
1899
1900
1901 # Keep a trace of the command line.
1902 # Strip out --no-create and --no-recursion so they do not pile up.
1903 # Strip out --silent because we don't want to record it for future runs.
1904 # Also quote any args containing shell meta-characters.
1905 # Make two passes to allow for proper duplicate-argument suppression.
1906 ac_configure_args=
1907 ac_configure_args0=
1908 ac_configure_args1=
1909 ac_must_keep_next=false
1910 for ac_pass in 1 2
1911 do
1912   for ac_arg
1913   do
1914     case $ac_arg in
1915     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1916     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1917     | -silent | --silent | --silen | --sile | --sil)
1918       continue ;;
1919     *\'*)
1920       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1921     esac
1922     case $ac_pass in
1923     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1924     2)
1925       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1926       if test $ac_must_keep_next = true; then
1927         ac_must_keep_next=false # Got value, back to normal.
1928       else
1929         case $ac_arg in
1930           *=* | --config-cache | -C | -disable-* | --disable-* \
1931           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1932           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1933           | -with-* | --with-* | -without-* | --without-* | --x)
1934             case "$ac_configure_args0 " in
1935               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1936             esac
1937             ;;
1938           -* ) ac_must_keep_next=true ;;
1939         esac
1940       fi
1941       ac_configure_args="$ac_configure_args '$ac_arg'"
1942       ;;
1943     esac
1944   done
1945 done
1946 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1947 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1948
1949 # When interrupted or exit'd, cleanup temporary files, and complete
1950 # config.log.  We remove comments because anyway the quotes in there
1951 # would cause problems or look ugly.
1952 # WARNING: Use '\'' to represent an apostrophe within the trap.
1953 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1954 trap 'exit_status=$?
1955   # Save into config.log some information that might help in debugging.
1956   {
1957     echo
1958
1959     cat <<\_ASBOX
1960 ## ---------------- ##
1961 ## Cache variables. ##
1962 ## ---------------- ##
1963 _ASBOX
1964     echo
1965     # The following way of writing the cache mishandles newlines in values,
1966 (
1967   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1968     eval ac_val=\$$ac_var
1969     case $ac_val in #(
1970     *${as_nl}*)
1971       case $ac_var in #(
1972       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1973 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1974       esac
1975       case $ac_var in #(
1976       _ | IFS | as_nl) ;; #(
1977       *) $as_unset $ac_var ;;
1978       esac ;;
1979     esac
1980   done
1981   (set) 2>&1 |
1982     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1983     *${as_nl}ac_space=\ *)
1984       sed -n \
1985         "s/'\''/'\''\\\\'\'''\''/g;
1986           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1987       ;; #(
1988     *)
1989       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1990       ;;
1991     esac |
1992     sort
1993 )
1994     echo
1995
1996     cat <<\_ASBOX
1997 ## ----------------- ##
1998 ## Output variables. ##
1999 ## ----------------- ##
2000 _ASBOX
2001     echo
2002     for ac_var in $ac_subst_vars
2003     do
2004       eval ac_val=\$$ac_var
2005       case $ac_val in
2006       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2007       esac
2008       echo "$ac_var='\''$ac_val'\''"
2009     done | sort
2010     echo
2011
2012     if test -n "$ac_subst_files"; then
2013       cat <<\_ASBOX
2014 ## ------------------- ##
2015 ## File substitutions. ##
2016 ## ------------------- ##
2017 _ASBOX
2018       echo
2019       for ac_var in $ac_subst_files
2020       do
2021         eval ac_val=\$$ac_var
2022         case $ac_val in
2023         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2024         esac
2025         echo "$ac_var='\''$ac_val'\''"
2026       done | sort
2027       echo
2028     fi
2029
2030     if test -s confdefs.h; then
2031       cat <<\_ASBOX
2032 ## ----------- ##
2033 ## confdefs.h. ##
2034 ## ----------- ##
2035 _ASBOX
2036       echo
2037       cat confdefs.h
2038       echo
2039     fi
2040     test "$ac_signal" != 0 &&
2041       echo "$as_me: caught signal $ac_signal"
2042     echo "$as_me: exit $exit_status"
2043   } >&5
2044   rm -f core *.core core.conftest.* &&
2045     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2046     exit $exit_status
2047 ' 0
2048 for ac_signal in 1 2 13 15; do
2049   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
2050 done
2051 ac_signal=0
2052
2053 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2054 rm -f -r conftest* confdefs.h
2055
2056 # Predefined preprocessor variables.
2057
2058 cat >>confdefs.h <<_ACEOF
2059 #define PACKAGE_NAME "$PACKAGE_NAME"
2060 _ACEOF
2061
2062
2063 cat >>confdefs.h <<_ACEOF
2064 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2065 _ACEOF
2066
2067
2068 cat >>confdefs.h <<_ACEOF
2069 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2070 _ACEOF
2071
2072
2073 cat >>confdefs.h <<_ACEOF
2074 #define PACKAGE_STRING "$PACKAGE_STRING"
2075 _ACEOF
2076
2077
2078 cat >>confdefs.h <<_ACEOF
2079 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2080 _ACEOF
2081
2082
2083 # Let the site file select an alternate cache file if it wants to.
2084 # Prefer explicitly selected file to automatically selected ones.
2085 if test -n "$CONFIG_SITE"; then
2086   set x "$CONFIG_SITE"
2087 elif test "x$prefix" != xNONE; then
2088   set x "$prefix/share/config.site" "$prefix/etc/config.site"
2089 else
2090   set x "$ac_default_prefix/share/config.site" \
2091         "$ac_default_prefix/etc/config.site"
2092 fi
2093 shift
2094 for ac_site_file
2095 do
2096   if test -r "$ac_site_file"; then
2097     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2098 echo "$as_me: loading site script $ac_site_file" >&6;}
2099     sed 's/^/| /' "$ac_site_file" >&5
2100     . "$ac_site_file"
2101   fi
2102 done
2103
2104 if test -r "$cache_file"; then
2105   # Some versions of bash will fail to source /dev/null (special
2106   # files actually), so we avoid doing that.
2107   if test -f "$cache_file"; then
2108     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
2109 echo "$as_me: loading cache $cache_file" >&6;}
2110     case $cache_file in
2111       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2112       *)                      . "./$cache_file";;
2113     esac
2114   fi
2115 else
2116   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
2117 echo "$as_me: creating cache $cache_file" >&6;}
2118   >$cache_file
2119 fi
2120
2121 # Check that the precious variables saved in the cache have kept the same
2122 # value.
2123 ac_cache_corrupted=false
2124 for ac_var in $ac_precious_vars; do
2125   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2126   eval ac_new_set=\$ac_env_${ac_var}_set
2127   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2128   eval ac_new_val=\$ac_env_${ac_var}_value
2129   case $ac_old_set,$ac_new_set in
2130     set,)
2131       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2132 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2133       ac_cache_corrupted=: ;;
2134     ,set)
2135       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2136 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2137       ac_cache_corrupted=: ;;
2138     ,);;
2139     *)
2140       if test "x$ac_old_val" != "x$ac_new_val"; then
2141         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2142 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2143         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
2144 echo "$as_me:   former value:  $ac_old_val" >&2;}
2145         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
2146 echo "$as_me:   current value: $ac_new_val" >&2;}
2147         ac_cache_corrupted=:
2148       fi;;
2149   esac
2150   # Pass precious variables to config.status.
2151   if test "$ac_new_set" = set; then
2152     case $ac_new_val in
2153     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2154     *) ac_arg=$ac_var=$ac_new_val ;;
2155     esac
2156     case " $ac_configure_args " in
2157       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2158       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2159     esac
2160   fi
2161 done
2162 if $ac_cache_corrupted; then
2163   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2164 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2165   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2166 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2167    { (exit 1); exit 1; }; }
2168 fi
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186 ac_ext=c
2187 ac_cpp='$CPP $CPPFLAGS'
2188 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2189 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2190 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2191
2192
2193 BUILD_DIR=`pwd`
2194 cd ..
2195 TOP_DIR=`pwd`
2196 cd ${BUILD_DIR}
2197
2198
2199 ac_aux_dir=
2200 for ac_dir in ${BUILD_DIR}/autoconf "$srcdir"/${BUILD_DIR}/autoconf; do
2201   if test -f "$ac_dir/install-sh"; then
2202     ac_aux_dir=$ac_dir
2203     ac_install_sh="$ac_aux_dir/install-sh -c"
2204     break
2205   elif test -f "$ac_dir/install.sh"; then
2206     ac_aux_dir=$ac_dir
2207     ac_install_sh="$ac_aux_dir/install.sh -c"
2208     break
2209   elif test -f "$ac_dir/shtool"; then
2210     ac_aux_dir=$ac_dir
2211     ac_install_sh="$ac_aux_dir/shtool install -c"
2212     break
2213   fi
2214 done
2215 if test -z "$ac_aux_dir"; then
2216   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" >&5
2217 echo "$as_me: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" >&2;}
2218    { (exit 1); exit 1; }; }
2219 fi
2220
2221 # These three variables are undocumented and unsupported,
2222 # and are intended to be withdrawn in a future Autoconf release.
2223 # They can cause serious problems if a builder's source tree is in a directory
2224 # whose full name contains unusual characters.
2225 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2226 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2227 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2228
2229
2230 ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
2231
2232
2233 WIN32BUILDDIR=${BUILD_DIR}/src/win32
2234 WIN32MAINDIR=${BUILD_DIR}
2235 WIN32TOPDIR=${TOP_DIR}
2236
2237
2238
2239
2240
2241
2242
2243 for ac_prog in true
2244 do
2245   # Extract the first word of "$ac_prog", so it can be a program name with args.
2246 set dummy $ac_prog; ac_word=$2
2247 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2248 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2249 if test "${ac_cv_path_TRUEPRG+set}" = set; then
2250   echo $ECHO_N "(cached) $ECHO_C" >&6
2251 else
2252   case $TRUEPRG in
2253   [\\/]* | ?:[\\/]*)
2254   ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
2255   ;;
2256   *)
2257   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2258 for as_dir in $PATH
2259 do
2260   IFS=$as_save_IFS
2261   test -z "$as_dir" && as_dir=.
2262   for ac_exec_ext in '' $ac_executable_extensions; do
2263   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2264     ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
2265     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2266     break 2
2267   fi
2268 done
2269 done
2270 IFS=$as_save_IFS
2271
2272   ;;
2273 esac
2274 fi
2275 TRUEPRG=$ac_cv_path_TRUEPRG
2276 if test -n "$TRUEPRG"; then
2277   { echo "$as_me:$LINENO: result: $TRUEPRG" >&5
2278 echo "${ECHO_T}$TRUEPRG" >&6; }
2279 else
2280   { echo "$as_me:$LINENO: result: no" >&5
2281 echo "${ECHO_T}no" >&6; }
2282 fi
2283
2284
2285   test -n "$TRUEPRG" && break
2286 done
2287 test -n "$TRUEPRG" || TRUEPRG=":"
2288
2289 for ac_prog in false
2290 do
2291   # Extract the first word of "$ac_prog", so it can be a program name with args.
2292 set dummy $ac_prog; ac_word=$2
2293 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2294 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2295 if test "${ac_cv_path_FALSEPRG+set}" = set; then
2296   echo $ECHO_N "(cached) $ECHO_C" >&6
2297 else
2298   case $FALSEPRG in
2299   [\\/]* | ?:[\\/]*)
2300   ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
2301   ;;
2302   *)
2303   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2304 for as_dir in $PATH
2305 do
2306   IFS=$as_save_IFS
2307   test -z "$as_dir" && as_dir=.
2308   for ac_exec_ext in '' $ac_executable_extensions; do
2309   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2310     ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
2311     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2312     break 2
2313   fi
2314 done
2315 done
2316 IFS=$as_save_IFS
2317
2318   ;;
2319 esac
2320 fi
2321 FALSEPRG=$ac_cv_path_FALSEPRG
2322 if test -n "$FALSEPRG"; then
2323   { echo "$as_me:$LINENO: result: $FALSEPRG" >&5
2324 echo "${ECHO_T}$FALSEPRG" >&6; }
2325 else
2326   { echo "$as_me:$LINENO: result: no" >&5
2327 echo "${ECHO_T}no" >&6; }
2328 fi
2329
2330
2331   test -n "$FALSEPRG" && break
2332 done
2333 test -n "$FALSEPRG" || FALSEPRG=":"
2334
2335
2336
2337 post_host=
2338 if test "x$BACULA" != x; then
2339    post_host=`echo -${BACULA} | tr 'A-Z ' 'a-z-'`
2340 fi
2341 BACULA=${BACULA:-Bacula}
2342 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2343 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2344 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2345 echo "configuring for ${BACULA} $VERSION ($DATE)"
2346
2347
2348 ac_ext=c
2349 ac_cpp='$CPP $CPPFLAGS'
2350 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2351 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2352 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2353 if test -n "$ac_tool_prefix"; then
2354   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2355 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2356 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2357 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2358 if test "${ac_cv_prog_CC+set}" = set; then
2359   echo $ECHO_N "(cached) $ECHO_C" >&6
2360 else
2361   if test -n "$CC"; then
2362   ac_cv_prog_CC="$CC" # Let the user override the test.
2363 else
2364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2365 for as_dir in $PATH
2366 do
2367   IFS=$as_save_IFS
2368   test -z "$as_dir" && as_dir=.
2369   for ac_exec_ext in '' $ac_executable_extensions; do
2370   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2371     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2372     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2373     break 2
2374   fi
2375 done
2376 done
2377 IFS=$as_save_IFS
2378
2379 fi
2380 fi
2381 CC=$ac_cv_prog_CC
2382 if test -n "$CC"; then
2383   { echo "$as_me:$LINENO: result: $CC" >&5
2384 echo "${ECHO_T}$CC" >&6; }
2385 else
2386   { echo "$as_me:$LINENO: result: no" >&5
2387 echo "${ECHO_T}no" >&6; }
2388 fi
2389
2390
2391 fi
2392 if test -z "$ac_cv_prog_CC"; then
2393   ac_ct_CC=$CC
2394   # Extract the first word of "gcc", so it can be a program name with args.
2395 set dummy gcc; ac_word=$2
2396 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2397 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2398 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2399   echo $ECHO_N "(cached) $ECHO_C" >&6
2400 else
2401   if test -n "$ac_ct_CC"; then
2402   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2403 else
2404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2405 for as_dir in $PATH
2406 do
2407   IFS=$as_save_IFS
2408   test -z "$as_dir" && as_dir=.
2409   for ac_exec_ext in '' $ac_executable_extensions; do
2410   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2411     ac_cv_prog_ac_ct_CC="gcc"
2412     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2413     break 2
2414   fi
2415 done
2416 done
2417 IFS=$as_save_IFS
2418
2419 fi
2420 fi
2421 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2422 if test -n "$ac_ct_CC"; then
2423   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2424 echo "${ECHO_T}$ac_ct_CC" >&6; }
2425 else
2426   { echo "$as_me:$LINENO: result: no" >&5
2427 echo "${ECHO_T}no" >&6; }
2428 fi
2429
2430   if test "x$ac_ct_CC" = x; then
2431     CC=""
2432   else
2433     case $cross_compiling:$ac_tool_warned in
2434 yes:)
2435 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2436 whose name does not start with the host triplet.  If you think this
2437 configuration is useful to you, please write to autoconf@gnu.org." >&5
2438 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2439 whose name does not start with the host triplet.  If you think this
2440 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2441 ac_tool_warned=yes ;;
2442 esac
2443     CC=$ac_ct_CC
2444   fi
2445 else
2446   CC="$ac_cv_prog_CC"
2447 fi
2448
2449 if test -z "$CC"; then
2450           if test -n "$ac_tool_prefix"; then
2451     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2452 set dummy ${ac_tool_prefix}cc; ac_word=$2
2453 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2454 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2455 if test "${ac_cv_prog_CC+set}" = set; then
2456   echo $ECHO_N "(cached) $ECHO_C" >&6
2457 else
2458   if test -n "$CC"; then
2459   ac_cv_prog_CC="$CC" # Let the user override the test.
2460 else
2461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2462 for as_dir in $PATH
2463 do
2464   IFS=$as_save_IFS
2465   test -z "$as_dir" && as_dir=.
2466   for ac_exec_ext in '' $ac_executable_extensions; do
2467   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2468     ac_cv_prog_CC="${ac_tool_prefix}cc"
2469     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2470     break 2
2471   fi
2472 done
2473 done
2474 IFS=$as_save_IFS
2475
2476 fi
2477 fi
2478 CC=$ac_cv_prog_CC
2479 if test -n "$CC"; then
2480   { echo "$as_me:$LINENO: result: $CC" >&5
2481 echo "${ECHO_T}$CC" >&6; }
2482 else
2483   { echo "$as_me:$LINENO: result: no" >&5
2484 echo "${ECHO_T}no" >&6; }
2485 fi
2486
2487
2488   fi
2489 fi
2490 if test -z "$CC"; then
2491   # Extract the first word of "cc", so it can be a program name with args.
2492 set dummy cc; ac_word=$2
2493 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2494 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2495 if test "${ac_cv_prog_CC+set}" = set; then
2496   echo $ECHO_N "(cached) $ECHO_C" >&6
2497 else
2498   if test -n "$CC"; then
2499   ac_cv_prog_CC="$CC" # Let the user override the test.
2500 else
2501   ac_prog_rejected=no
2502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2503 for as_dir in $PATH
2504 do
2505   IFS=$as_save_IFS
2506   test -z "$as_dir" && as_dir=.
2507   for ac_exec_ext in '' $ac_executable_extensions; do
2508   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2509     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2510        ac_prog_rejected=yes
2511        continue
2512      fi
2513     ac_cv_prog_CC="cc"
2514     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2515     break 2
2516   fi
2517 done
2518 done
2519 IFS=$as_save_IFS
2520
2521 if test $ac_prog_rejected = yes; then
2522   # We found a bogon in the path, so make sure we never use it.
2523   set dummy $ac_cv_prog_CC
2524   shift
2525   if test $# != 0; then
2526     # We chose a different compiler from the bogus one.
2527     # However, it has the same basename, so the bogon will be chosen
2528     # first if we set CC to just the basename; use the full file name.
2529     shift
2530     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2531   fi
2532 fi
2533 fi
2534 fi
2535 CC=$ac_cv_prog_CC
2536 if test -n "$CC"; then
2537   { echo "$as_me:$LINENO: result: $CC" >&5
2538 echo "${ECHO_T}$CC" >&6; }
2539 else
2540   { echo "$as_me:$LINENO: result: no" >&5
2541 echo "${ECHO_T}no" >&6; }
2542 fi
2543
2544
2545 fi
2546 if test -z "$CC"; then
2547   if test -n "$ac_tool_prefix"; then
2548   for ac_prog in cl.exe
2549   do
2550     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2551 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2552 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2553 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2554 if test "${ac_cv_prog_CC+set}" = set; then
2555   echo $ECHO_N "(cached) $ECHO_C" >&6
2556 else
2557   if test -n "$CC"; then
2558   ac_cv_prog_CC="$CC" # Let the user override the test.
2559 else
2560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2561 for as_dir in $PATH
2562 do
2563   IFS=$as_save_IFS
2564   test -z "$as_dir" && as_dir=.
2565   for ac_exec_ext in '' $ac_executable_extensions; do
2566   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2567     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2568     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2569     break 2
2570   fi
2571 done
2572 done
2573 IFS=$as_save_IFS
2574
2575 fi
2576 fi
2577 CC=$ac_cv_prog_CC
2578 if test -n "$CC"; then
2579   { echo "$as_me:$LINENO: result: $CC" >&5
2580 echo "${ECHO_T}$CC" >&6; }
2581 else
2582   { echo "$as_me:$LINENO: result: no" >&5
2583 echo "${ECHO_T}no" >&6; }
2584 fi
2585
2586
2587     test -n "$CC" && break
2588   done
2589 fi
2590 if test -z "$CC"; then
2591   ac_ct_CC=$CC
2592   for ac_prog in cl.exe
2593 do
2594   # Extract the first word of "$ac_prog", so it can be a program name with args.
2595 set dummy $ac_prog; ac_word=$2
2596 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2597 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2598 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2599   echo $ECHO_N "(cached) $ECHO_C" >&6
2600 else
2601   if test -n "$ac_ct_CC"; then
2602   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2603 else
2604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2605 for as_dir in $PATH
2606 do
2607   IFS=$as_save_IFS
2608   test -z "$as_dir" && as_dir=.
2609   for ac_exec_ext in '' $ac_executable_extensions; do
2610   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2611     ac_cv_prog_ac_ct_CC="$ac_prog"
2612     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2613     break 2
2614   fi
2615 done
2616 done
2617 IFS=$as_save_IFS
2618
2619 fi
2620 fi
2621 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2622 if test -n "$ac_ct_CC"; then
2623   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2624 echo "${ECHO_T}$ac_ct_CC" >&6; }
2625 else
2626   { echo "$as_me:$LINENO: result: no" >&5
2627 echo "${ECHO_T}no" >&6; }
2628 fi
2629
2630
2631   test -n "$ac_ct_CC" && break
2632 done
2633
2634   if test "x$ac_ct_CC" = x; then
2635     CC=""
2636   else
2637     case $cross_compiling:$ac_tool_warned in
2638 yes:)
2639 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2640 whose name does not start with the host triplet.  If you think this
2641 configuration is useful to you, please write to autoconf@gnu.org." >&5
2642 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2643 whose name does not start with the host triplet.  If you think this
2644 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2645 ac_tool_warned=yes ;;
2646 esac
2647     CC=$ac_ct_CC
2648   fi
2649 fi
2650
2651 fi
2652
2653
2654 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2655 See \`config.log' for more details." >&5
2656 echo "$as_me: error: no acceptable C compiler found in \$PATH
2657 See \`config.log' for more details." >&2;}
2658    { (exit 1); exit 1; }; }
2659
2660 # Provide some information about the compiler.
2661 echo "$as_me:$LINENO: checking for C compiler version" >&5
2662 ac_compiler=`set X $ac_compile; echo $2`
2663 { (ac_try="$ac_compiler --version >&5"
2664 case "(($ac_try" in
2665   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2666   *) ac_try_echo=$ac_try;;
2667 esac
2668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2669   (eval "$ac_compiler --version >&5") 2>&5
2670   ac_status=$?
2671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2672   (exit $ac_status); }
2673 { (ac_try="$ac_compiler -v >&5"
2674 case "(($ac_try" in
2675   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2676   *) ac_try_echo=$ac_try;;
2677 esac
2678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2679   (eval "$ac_compiler -v >&5") 2>&5
2680   ac_status=$?
2681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2682   (exit $ac_status); }
2683 { (ac_try="$ac_compiler -V >&5"
2684 case "(($ac_try" in
2685   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2686   *) ac_try_echo=$ac_try;;
2687 esac
2688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2689   (eval "$ac_compiler -V >&5") 2>&5
2690   ac_status=$?
2691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2692   (exit $ac_status); }
2693
2694 cat >conftest.$ac_ext <<_ACEOF
2695 /* confdefs.h.  */
2696 _ACEOF
2697 cat confdefs.h >>conftest.$ac_ext
2698 cat >>conftest.$ac_ext <<_ACEOF
2699 /* end confdefs.h.  */
2700
2701 int
2702 main ()
2703 {
2704
2705   ;
2706   return 0;
2707 }
2708 _ACEOF
2709 ac_clean_files_save=$ac_clean_files
2710 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2711 # Try to create an executable without -o first, disregard a.out.
2712 # It will help us diagnose broken compilers, and finding out an intuition
2713 # of exeext.
2714 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2715 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2716 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2717 #
2718 # List of possible output files, starting from the most likely.
2719 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2720 # only as a last resort.  b.out is created by i960 compilers.
2721 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2722 #
2723 # The IRIX 6 linker writes into existing files which may not be
2724 # executable, retaining their permissions.  Remove them first so a
2725 # subsequent execution test works.
2726 ac_rmfiles=
2727 for ac_file in $ac_files
2728 do
2729   case $ac_file in
2730     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2731     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2732   esac
2733 done
2734 rm -f $ac_rmfiles
2735
2736 if { (ac_try="$ac_link_default"
2737 case "(($ac_try" in
2738   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2739   *) ac_try_echo=$ac_try;;
2740 esac
2741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2742   (eval "$ac_link_default") 2>&5
2743   ac_status=$?
2744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2745   (exit $ac_status); }; then
2746   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2747 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2748 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2749 # so that the user can short-circuit this test for compilers unknown to
2750 # Autoconf.
2751 for ac_file in $ac_files ''
2752 do
2753   test -f "$ac_file" || continue
2754   case $ac_file in
2755     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2756         ;;
2757     [ab].out )
2758         # We found the default executable, but exeext='' is most
2759         # certainly right.
2760         break;;
2761     *.* )
2762         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2763         then :; else
2764            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2765         fi
2766         # We set ac_cv_exeext here because the later test for it is not
2767         # safe: cross compilers may not add the suffix if given an `-o'
2768         # argument, so we may need to know it at that point already.
2769         # Even if this section looks crufty: it has the advantage of
2770         # actually working.
2771         break;;
2772     * )
2773         break;;
2774   esac
2775 done
2776 test "$ac_cv_exeext" = no && ac_cv_exeext=
2777
2778 else
2779   ac_file=''
2780 fi
2781
2782 { echo "$as_me:$LINENO: result: $ac_file" >&5
2783 echo "${ECHO_T}$ac_file" >&6; }
2784 if test -z "$ac_file"; then
2785   echo "$as_me: failed program was:" >&5
2786 sed 's/^/| /' conftest.$ac_ext >&5
2787
2788 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2789 See \`config.log' for more details." >&5
2790 echo "$as_me: error: C compiler cannot create executables
2791 See \`config.log' for more details." >&2;}
2792    { (exit 77); exit 77; }; }
2793 fi
2794
2795 ac_exeext=$ac_cv_exeext
2796
2797 # Check that the compiler produces executables we can run.  If not, either
2798 # the compiler is broken, or we cross compile.
2799 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2800 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2801 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2802 # If not cross compiling, check that we can run a simple program.
2803 if test "$cross_compiling" != yes; then
2804   if { ac_try='./$ac_file'
2805   { (case "(($ac_try" in
2806   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2807   *) ac_try_echo=$ac_try;;
2808 esac
2809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2810   (eval "$ac_try") 2>&5
2811   ac_status=$?
2812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2813   (exit $ac_status); }; }; then
2814     cross_compiling=no
2815   else
2816     if test "$cross_compiling" = maybe; then
2817         cross_compiling=yes
2818     else
2819         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2820 If you meant to cross compile, use \`--host'.
2821 See \`config.log' for more details." >&5
2822 echo "$as_me: error: cannot run C compiled programs.
2823 If you meant to cross compile, use \`--host'.
2824 See \`config.log' for more details." >&2;}
2825    { (exit 1); exit 1; }; }
2826     fi
2827   fi
2828 fi
2829 { echo "$as_me:$LINENO: result: yes" >&5
2830 echo "${ECHO_T}yes" >&6; }
2831
2832 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2833 ac_clean_files=$ac_clean_files_save
2834 # Check that the compiler produces executables we can run.  If not, either
2835 # the compiler is broken, or we cross compile.
2836 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2837 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2838 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2839 echo "${ECHO_T}$cross_compiling" >&6; }
2840
2841 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2842 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2843 if { (ac_try="$ac_link"
2844 case "(($ac_try" in
2845   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2846   *) ac_try_echo=$ac_try;;
2847 esac
2848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2849   (eval "$ac_link") 2>&5
2850   ac_status=$?
2851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2852   (exit $ac_status); }; then
2853   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2854 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2855 # work properly (i.e., refer to `conftest.exe'), while it won't with
2856 # `rm'.
2857 for ac_file in conftest.exe conftest conftest.*; do
2858   test -f "$ac_file" || continue
2859   case $ac_file in
2860     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2861     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2862           break;;
2863     * ) break;;
2864   esac
2865 done
2866 else
2867   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2868 See \`config.log' for more details." >&5
2869 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2870 See \`config.log' for more details." >&2;}
2871    { (exit 1); exit 1; }; }
2872 fi
2873
2874 rm -f conftest$ac_cv_exeext
2875 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2876 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2877
2878 rm -f conftest.$ac_ext
2879 EXEEXT=$ac_cv_exeext
2880 ac_exeext=$EXEEXT
2881 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2882 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2883 if test "${ac_cv_objext+set}" = set; then
2884   echo $ECHO_N "(cached) $ECHO_C" >&6
2885 else
2886   cat >conftest.$ac_ext <<_ACEOF
2887 /* confdefs.h.  */
2888 _ACEOF
2889 cat confdefs.h >>conftest.$ac_ext
2890 cat >>conftest.$ac_ext <<_ACEOF
2891 /* end confdefs.h.  */
2892
2893 int
2894 main ()
2895 {
2896
2897   ;
2898   return 0;
2899 }
2900 _ACEOF
2901 rm -f conftest.o conftest.obj
2902 if { (ac_try="$ac_compile"
2903 case "(($ac_try" in
2904   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2905   *) ac_try_echo=$ac_try;;
2906 esac
2907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2908   (eval "$ac_compile") 2>&5
2909   ac_status=$?
2910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2911   (exit $ac_status); }; then
2912   for ac_file in conftest.o conftest.obj conftest.*; do
2913   test -f "$ac_file" || continue;
2914   case $ac_file in
2915     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2916     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2917        break;;
2918   esac
2919 done
2920 else
2921   echo "$as_me: failed program was:" >&5
2922 sed 's/^/| /' conftest.$ac_ext >&5
2923
2924 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2925 See \`config.log' for more details." >&5
2926 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2927 See \`config.log' for more details." >&2;}
2928    { (exit 1); exit 1; }; }
2929 fi
2930
2931 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2932 fi
2933 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2934 echo "${ECHO_T}$ac_cv_objext" >&6; }
2935 OBJEXT=$ac_cv_objext
2936 ac_objext=$OBJEXT
2937 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2938 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2939 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2940   echo $ECHO_N "(cached) $ECHO_C" >&6
2941 else
2942   cat >conftest.$ac_ext <<_ACEOF
2943 /* confdefs.h.  */
2944 _ACEOF
2945 cat confdefs.h >>conftest.$ac_ext
2946 cat >>conftest.$ac_ext <<_ACEOF
2947 /* end confdefs.h.  */
2948
2949 int
2950 main ()
2951 {
2952 #ifndef __GNUC__
2953        choke me
2954 #endif
2955
2956   ;
2957   return 0;
2958 }
2959 _ACEOF
2960 rm -f conftest.$ac_objext
2961 if { (ac_try="$ac_compile"
2962 case "(($ac_try" in
2963   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2964   *) ac_try_echo=$ac_try;;
2965 esac
2966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2967   (eval "$ac_compile") 2>conftest.er1
2968   ac_status=$?
2969   grep -v '^ *+' conftest.er1 >conftest.err
2970   rm -f conftest.er1
2971   cat conftest.err >&5
2972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2973   (exit $ac_status); } && {
2974          test -z "$ac_c_werror_flag" ||
2975          test ! -s conftest.err
2976        } && test -s conftest.$ac_objext; then
2977   ac_compiler_gnu=yes
2978 else
2979   echo "$as_me: failed program was:" >&5
2980 sed 's/^/| /' conftest.$ac_ext >&5
2981
2982         ac_compiler_gnu=no
2983 fi
2984
2985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2986 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2987
2988 fi
2989 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2990 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2991 GCC=`test $ac_compiler_gnu = yes && echo yes`
2992 ac_test_CFLAGS=${CFLAGS+set}
2993 ac_save_CFLAGS=$CFLAGS
2994 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2995 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2996 if test "${ac_cv_prog_cc_g+set}" = set; then
2997   echo $ECHO_N "(cached) $ECHO_C" >&6
2998 else
2999   ac_save_c_werror_flag=$ac_c_werror_flag
3000    ac_c_werror_flag=yes
3001    ac_cv_prog_cc_g=no
3002    CFLAGS="-g"
3003    cat >conftest.$ac_ext <<_ACEOF
3004 /* confdefs.h.  */
3005 _ACEOF
3006 cat confdefs.h >>conftest.$ac_ext
3007 cat >>conftest.$ac_ext <<_ACEOF
3008 /* end confdefs.h.  */
3009
3010 int
3011 main ()
3012 {
3013
3014   ;
3015   return 0;
3016 }
3017 _ACEOF
3018 rm -f conftest.$ac_objext
3019 if { (ac_try="$ac_compile"
3020 case "(($ac_try" in
3021   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3022   *) ac_try_echo=$ac_try;;
3023 esac
3024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3025   (eval "$ac_compile") 2>conftest.er1
3026   ac_status=$?
3027   grep -v '^ *+' conftest.er1 >conftest.err
3028   rm -f conftest.er1
3029   cat conftest.err >&5
3030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3031   (exit $ac_status); } && {
3032          test -z "$ac_c_werror_flag" ||
3033          test ! -s conftest.err
3034        } && test -s conftest.$ac_objext; then
3035   ac_cv_prog_cc_g=yes
3036 else
3037   echo "$as_me: failed program was:" >&5
3038 sed 's/^/| /' conftest.$ac_ext >&5
3039
3040         CFLAGS=""
3041       cat >conftest.$ac_ext <<_ACEOF
3042 /* confdefs.h.  */
3043 _ACEOF
3044 cat confdefs.h >>conftest.$ac_ext
3045 cat >>conftest.$ac_ext <<_ACEOF
3046 /* end confdefs.h.  */
3047
3048 int
3049 main ()
3050 {
3051
3052   ;
3053   return 0;
3054 }
3055 _ACEOF
3056 rm -f conftest.$ac_objext
3057 if { (ac_try="$ac_compile"
3058 case "(($ac_try" in
3059   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3060   *) ac_try_echo=$ac_try;;
3061 esac
3062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3063   (eval "$ac_compile") 2>conftest.er1
3064   ac_status=$?
3065   grep -v '^ *+' conftest.er1 >conftest.err
3066   rm -f conftest.er1
3067   cat conftest.err >&5
3068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3069   (exit $ac_status); } && {
3070          test -z "$ac_c_werror_flag" ||
3071          test ! -s conftest.err
3072        } && test -s conftest.$ac_objext; then
3073   :
3074 else
3075   echo "$as_me: failed program was:" >&5
3076 sed 's/^/| /' conftest.$ac_ext >&5
3077
3078         ac_c_werror_flag=$ac_save_c_werror_flag
3079          CFLAGS="-g"
3080          cat >conftest.$ac_ext <<_ACEOF
3081 /* confdefs.h.  */
3082 _ACEOF
3083 cat confdefs.h >>conftest.$ac_ext
3084 cat >>conftest.$ac_ext <<_ACEOF
3085 /* end confdefs.h.  */
3086
3087 int
3088 main ()
3089 {
3090
3091   ;
3092   return 0;
3093 }
3094 _ACEOF
3095 rm -f conftest.$ac_objext
3096 if { (ac_try="$ac_compile"
3097 case "(($ac_try" in
3098   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3099   *) ac_try_echo=$ac_try;;
3100 esac
3101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3102   (eval "$ac_compile") 2>conftest.er1
3103   ac_status=$?
3104   grep -v '^ *+' conftest.er1 >conftest.err
3105   rm -f conftest.er1
3106   cat conftest.err >&5
3107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3108   (exit $ac_status); } && {
3109          test -z "$ac_c_werror_flag" ||
3110          test ! -s conftest.err
3111        } && test -s conftest.$ac_objext; then
3112   ac_cv_prog_cc_g=yes
3113 else
3114   echo "$as_me: failed program was:" >&5
3115 sed 's/^/| /' conftest.$ac_ext >&5
3116
3117
3118 fi
3119
3120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3121 fi
3122
3123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3124 fi
3125
3126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3127    ac_c_werror_flag=$ac_save_c_werror_flag
3128 fi
3129 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3130 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3131 if test "$ac_test_CFLAGS" = set; then
3132   CFLAGS=$ac_save_CFLAGS
3133 elif test $ac_cv_prog_cc_g = yes; then
3134   if test "$GCC" = yes; then
3135     CFLAGS="-g -O2"
3136   else
3137     CFLAGS="-g"
3138   fi
3139 else
3140   if test "$GCC" = yes; then
3141     CFLAGS="-O2"
3142   else
3143     CFLAGS=
3144   fi
3145 fi
3146 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3147 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3148 if test "${ac_cv_prog_cc_c89+set}" = set; then
3149   echo $ECHO_N "(cached) $ECHO_C" >&6
3150 else
3151   ac_cv_prog_cc_c89=no
3152 ac_save_CC=$CC
3153 cat >conftest.$ac_ext <<_ACEOF
3154 /* confdefs.h.  */
3155 _ACEOF
3156 cat confdefs.h >>conftest.$ac_ext
3157 cat >>conftest.$ac_ext <<_ACEOF
3158 /* end confdefs.h.  */
3159 #include <stdarg.h>
3160 #include <stdio.h>
3161 #include <sys/types.h>
3162 #include <sys/stat.h>
3163 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3164 struct buf { int x; };
3165 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3166 static char *e (p, i)
3167      char **p;
3168      int i;
3169 {
3170   return p[i];
3171 }
3172 static char *f (char * (*g) (char **, int), char **p, ...)
3173 {
3174   char *s;
3175   va_list v;
3176   va_start (v,p);
3177   s = g (p, va_arg (v,int));
3178   va_end (v);
3179   return s;
3180 }
3181
3182 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3183    function prototypes and stuff, but not '\xHH' hex character constants.
3184    These don't provoke an error unfortunately, instead are silently treated
3185    as 'x'.  The following induces an error, until -std is added to get
3186    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3187    array size at least.  It's necessary to write '\x00'==0 to get something
3188    that's true only with -std.  */
3189 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3190
3191 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3192    inside strings and character constants.  */
3193 #define FOO(x) 'x'
3194 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3195
3196 int test (int i, double x);
3197 struct s1 {int (*f) (int a);};
3198 struct s2 {int (*f) (double a);};
3199 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3200 int argc;
3201 char **argv;
3202 int
3203 main ()
3204 {
3205 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3206   ;
3207   return 0;
3208 }
3209 _ACEOF
3210 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3211         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3212 do
3213   CC="$ac_save_CC $ac_arg"
3214   rm -f conftest.$ac_objext
3215 if { (ac_try="$ac_compile"
3216 case "(($ac_try" in
3217   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3218   *) ac_try_echo=$ac_try;;
3219 esac
3220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3221   (eval "$ac_compile") 2>conftest.er1
3222   ac_status=$?
3223   grep -v '^ *+' conftest.er1 >conftest.err
3224   rm -f conftest.er1
3225   cat conftest.err >&5
3226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3227   (exit $ac_status); } && {
3228          test -z "$ac_c_werror_flag" ||
3229          test ! -s conftest.err
3230        } && test -s conftest.$ac_objext; then
3231   ac_cv_prog_cc_c89=$ac_arg
3232 else
3233   echo "$as_me: failed program was:" >&5
3234 sed 's/^/| /' conftest.$ac_ext >&5
3235
3236
3237 fi
3238
3239 rm -f core conftest.err conftest.$ac_objext
3240   test "x$ac_cv_prog_cc_c89" != "xno" && break
3241 done
3242 rm -f conftest.$ac_ext
3243 CC=$ac_save_CC
3244
3245 fi
3246 # AC_CACHE_VAL
3247 case "x$ac_cv_prog_cc_c89" in
3248   x)
3249     { echo "$as_me:$LINENO: result: none needed" >&5
3250 echo "${ECHO_T}none needed" >&6; } ;;
3251   xno)
3252     { echo "$as_me:$LINENO: result: unsupported" >&5
3253 echo "${ECHO_T}unsupported" >&6; } ;;
3254   *)
3255     CC="$CC $ac_cv_prog_cc_c89"
3256     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3257 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3258 esac
3259
3260
3261 ac_ext=c
3262 ac_cpp='$CPP $CPPFLAGS'
3263 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3264 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3265 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3266
3267 ac_ext=cpp
3268 ac_cpp='$CXXCPP $CPPFLAGS'
3269 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3270 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3271 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3272 if test -z "$CXX"; then
3273   if test -n "$CCC"; then
3274     CXX=$CCC
3275   else
3276     if test -n "$ac_tool_prefix"; then
3277   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3278   do
3279     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3280 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3281 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3282 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3283 if test "${ac_cv_prog_CXX+set}" = set; then
3284   echo $ECHO_N "(cached) $ECHO_C" >&6
3285 else
3286   if test -n "$CXX"; then
3287   ac_cv_prog_CXX="$CXX" # Let the user override the test.
3288 else
3289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3290 for as_dir in $PATH
3291 do
3292   IFS=$as_save_IFS
3293   test -z "$as_dir" && as_dir=.
3294   for ac_exec_ext in '' $ac_executable_extensions; do
3295   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3296     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3297     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3298     break 2
3299   fi
3300 done
3301 done
3302 IFS=$as_save_IFS
3303
3304 fi
3305 fi
3306 CXX=$ac_cv_prog_CXX
3307 if test -n "$CXX"; then
3308   { echo "$as_me:$LINENO: result: $CXX" >&5
3309 echo "${ECHO_T}$CXX" >&6; }
3310 else
3311   { echo "$as_me:$LINENO: result: no" >&5
3312 echo "${ECHO_T}no" >&6; }
3313 fi
3314
3315
3316     test -n "$CXX" && break
3317   done
3318 fi
3319 if test -z "$CXX"; then
3320   ac_ct_CXX=$CXX
3321   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3322 do
3323   # Extract the first word of "$ac_prog", so it can be a program name with args.
3324 set dummy $ac_prog; ac_word=$2
3325 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3326 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3327 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3328   echo $ECHO_N "(cached) $ECHO_C" >&6
3329 else
3330   if test -n "$ac_ct_CXX"; then
3331   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3332 else
3333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3334 for as_dir in $PATH
3335 do
3336   IFS=$as_save_IFS
3337   test -z "$as_dir" && as_dir=.
3338   for ac_exec_ext in '' $ac_executable_extensions; do
3339   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3340     ac_cv_prog_ac_ct_CXX="$ac_prog"
3341     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3342     break 2
3343   fi
3344 done
3345 done
3346 IFS=$as_save_IFS
3347
3348 fi
3349 fi
3350 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3351 if test -n "$ac_ct_CXX"; then
3352   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3353 echo "${ECHO_T}$ac_ct_CXX" >&6; }
3354 else
3355   { echo "$as_me:$LINENO: result: no" >&5
3356 echo "${ECHO_T}no" >&6; }
3357 fi
3358
3359
3360   test -n "$ac_ct_CXX" && break
3361 done
3362
3363   if test "x$ac_ct_CXX" = x; then
3364     CXX="g++"
3365   else
3366     case $cross_compiling:$ac_tool_warned in
3367 yes:)
3368 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3369 whose name does not start with the host triplet.  If you think this
3370 configuration is useful to you, please write to autoconf@gnu.org." >&5
3371 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3372 whose name does not start with the host triplet.  If you think this
3373 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3374 ac_tool_warned=yes ;;
3375 esac
3376     CXX=$ac_ct_CXX
3377   fi
3378 fi
3379
3380   fi
3381 fi
3382 # Provide some information about the compiler.
3383 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3384 ac_compiler=`set X $ac_compile; echo $2`
3385 { (ac_try="$ac_compiler --version >&5"
3386 case "(($ac_try" in
3387   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3388   *) ac_try_echo=$ac_try;;
3389 esac
3390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3391   (eval "$ac_compiler --version >&5") 2>&5
3392   ac_status=$?
3393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3394   (exit $ac_status); }
3395 { (ac_try="$ac_compiler -v >&5"
3396 case "(($ac_try" in
3397   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3398   *) ac_try_echo=$ac_try;;
3399 esac
3400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3401   (eval "$ac_compiler -v >&5") 2>&5
3402   ac_status=$?
3403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3404   (exit $ac_status); }
3405 { (ac_try="$ac_compiler -V >&5"
3406 case "(($ac_try" in
3407   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3408   *) ac_try_echo=$ac_try;;
3409 esac
3410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3411   (eval "$ac_compiler -V >&5") 2>&5
3412   ac_status=$?
3413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3414   (exit $ac_status); }
3415
3416 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3417 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3418 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3419   echo $ECHO_N "(cached) $ECHO_C" >&6
3420 else
3421   cat >conftest.$ac_ext <<_ACEOF
3422 /* confdefs.h.  */
3423 _ACEOF
3424 cat confdefs.h >>conftest.$ac_ext
3425 cat >>conftest.$ac_ext <<_ACEOF
3426 /* end confdefs.h.  */
3427
3428 int
3429 main ()
3430 {
3431 #ifndef __GNUC__
3432        choke me
3433 #endif
3434
3435   ;
3436   return 0;
3437 }
3438 _ACEOF
3439 rm -f conftest.$ac_objext
3440 if { (ac_try="$ac_compile"
3441 case "(($ac_try" in
3442   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3443   *) ac_try_echo=$ac_try;;
3444 esac
3445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3446   (eval "$ac_compile") 2>conftest.er1
3447   ac_status=$?
3448   grep -v '^ *+' conftest.er1 >conftest.err
3449   rm -f conftest.er1
3450   cat conftest.err >&5
3451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3452   (exit $ac_status); } && {
3453          test -z "$ac_cxx_werror_flag" ||
3454          test ! -s conftest.err
3455        } && test -s conftest.$ac_objext; then
3456   ac_compiler_gnu=yes
3457 else
3458   echo "$as_me: failed program was:" >&5
3459 sed 's/^/| /' conftest.$ac_ext >&5
3460
3461         ac_compiler_gnu=no
3462 fi
3463
3464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3465 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3466
3467 fi
3468 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3469 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3470 GXX=`test $ac_compiler_gnu = yes && echo yes`
3471 ac_test_CXXFLAGS=${CXXFLAGS+set}
3472 ac_save_CXXFLAGS=$CXXFLAGS
3473 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3474 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3475 if test "${ac_cv_prog_cxx_g+set}" = set; then
3476   echo $ECHO_N "(cached) $ECHO_C" >&6
3477 else
3478   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3479    ac_cxx_werror_flag=yes
3480    ac_cv_prog_cxx_g=no
3481    CXXFLAGS="-g"
3482    cat >conftest.$ac_ext <<_ACEOF
3483 /* confdefs.h.  */
3484 _ACEOF
3485 cat confdefs.h >>conftest.$ac_ext
3486 cat >>conftest.$ac_ext <<_ACEOF
3487 /* end confdefs.h.  */
3488
3489 int
3490 main ()
3491 {
3492
3493   ;
3494   return 0;
3495 }
3496 _ACEOF
3497 rm -f conftest.$ac_objext
3498 if { (ac_try="$ac_compile"
3499 case "(($ac_try" in
3500   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3501   *) ac_try_echo=$ac_try;;
3502 esac
3503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3504   (eval "$ac_compile") 2>conftest.er1
3505   ac_status=$?
3506   grep -v '^ *+' conftest.er1 >conftest.err
3507   rm -f conftest.er1
3508   cat conftest.err >&5
3509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3510   (exit $ac_status); } && {
3511          test -z "$ac_cxx_werror_flag" ||
3512          test ! -s conftest.err
3513        } && test -s conftest.$ac_objext; then
3514   ac_cv_prog_cxx_g=yes
3515 else
3516   echo "$as_me: failed program was:" >&5
3517 sed 's/^/| /' conftest.$ac_ext >&5
3518
3519         CXXFLAGS=""
3520       cat >conftest.$ac_ext <<_ACEOF
3521 /* confdefs.h.  */
3522 _ACEOF
3523 cat confdefs.h >>conftest.$ac_ext
3524 cat >>conftest.$ac_ext <<_ACEOF
3525 /* end confdefs.h.  */
3526
3527 int
3528 main ()
3529 {
3530
3531   ;
3532   return 0;
3533 }
3534 _ACEOF
3535 rm -f conftest.$ac_objext
3536 if { (ac_try="$ac_compile"
3537 case "(($ac_try" in
3538   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3539   *) ac_try_echo=$ac_try;;
3540 esac
3541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3542   (eval "$ac_compile") 2>conftest.er1
3543   ac_status=$?
3544   grep -v '^ *+' conftest.er1 >conftest.err
3545   rm -f conftest.er1
3546   cat conftest.err >&5
3547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3548   (exit $ac_status); } && {
3549          test -z "$ac_cxx_werror_flag" ||
3550          test ! -s conftest.err
3551        } && test -s conftest.$ac_objext; then
3552   :
3553 else
3554   echo "$as_me: failed program was:" >&5
3555 sed 's/^/| /' conftest.$ac_ext >&5
3556
3557         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3558          CXXFLAGS="-g"
3559          cat >conftest.$ac_ext <<_ACEOF
3560 /* confdefs.h.  */
3561 _ACEOF
3562 cat confdefs.h >>conftest.$ac_ext
3563 cat >>conftest.$ac_ext <<_ACEOF
3564 /* end confdefs.h.  */
3565
3566 int
3567 main ()
3568 {
3569
3570   ;
3571   return 0;
3572 }
3573 _ACEOF
3574 rm -f conftest.$ac_objext
3575 if { (ac_try="$ac_compile"
3576 case "(($ac_try" in
3577   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3578   *) ac_try_echo=$ac_try;;
3579 esac
3580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3581   (eval "$ac_compile") 2>conftest.er1
3582   ac_status=$?
3583   grep -v '^ *+' conftest.er1 >conftest.err
3584   rm -f conftest.er1
3585   cat conftest.err >&5
3586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3587   (exit $ac_status); } && {
3588          test -z "$ac_cxx_werror_flag" ||
3589          test ! -s conftest.err
3590        } && test -s conftest.$ac_objext; then
3591   ac_cv_prog_cxx_g=yes
3592 else
3593   echo "$as_me: failed program was:" >&5
3594 sed 's/^/| /' conftest.$ac_ext >&5
3595
3596
3597 fi
3598
3599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3600 fi
3601
3602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3603 fi
3604
3605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3606    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3607 fi
3608 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3609 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3610 if test "$ac_test_CXXFLAGS" = set; then
3611   CXXFLAGS=$ac_save_CXXFLAGS
3612 elif test $ac_cv_prog_cxx_g = yes; then
3613   if test "$GXX" = yes; then
3614     CXXFLAGS="-g -O2"
3615   else
3616     CXXFLAGS="-g"
3617   fi
3618 else
3619   if test "$GXX" = yes; then
3620     CXXFLAGS="-O2"
3621   else
3622     CXXFLAGS=
3623   fi
3624 fi
3625 ac_ext=c
3626 ac_cpp='$CPP $CPPFLAGS'
3627 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3628 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3629 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3630
3631 if test "x$CC" != xcc; then
3632   { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
3633 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; }
3634 else
3635   { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
3636 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; }
3637 fi
3638 set dummy $CC; ac_cc=`echo $2 |
3639                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3640 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
3641   echo $ECHO_N "(cached) $ECHO_C" >&6
3642 else
3643   cat >conftest.$ac_ext <<_ACEOF
3644 /* confdefs.h.  */
3645 _ACEOF
3646 cat confdefs.h >>conftest.$ac_ext
3647 cat >>conftest.$ac_ext <<_ACEOF
3648 /* end confdefs.h.  */
3649
3650 int
3651 main ()
3652 {
3653
3654   ;
3655   return 0;
3656 }
3657 _ACEOF
3658 # Make sure it works both with $CC and with simple cc.
3659 # We do the test twice because some compilers refuse to overwrite an
3660 # existing .o file with -o, though they will create one.
3661 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3662 rm -f conftest2.*
3663 if { (case "(($ac_try" in
3664   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3665   *) ac_try_echo=$ac_try;;
3666 esac
3667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3668   (eval "$ac_try") 2>&5
3669   ac_status=$?
3670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3671   (exit $ac_status); } &&
3672    test -f conftest2.$ac_objext && { (case "(($ac_try" in
3673   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3674   *) ac_try_echo=$ac_try;;
3675 esac
3676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3677   (eval "$ac_try") 2>&5
3678   ac_status=$?
3679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3680   (exit $ac_status); };
3681 then
3682   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3683   if test "x$CC" != xcc; then
3684     # Test first that cc exists at all.
3685     if { ac_try='cc -c conftest.$ac_ext >&5'
3686   { (case "(($ac_try" in
3687   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3688   *) ac_try_echo=$ac_try;;
3689 esac
3690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3691   (eval "$ac_try") 2>&5
3692   ac_status=$?
3693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3694   (exit $ac_status); }; }; then
3695       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3696       rm -f conftest2.*
3697       if { (case "(($ac_try" in
3698   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3699   *) ac_try_echo=$ac_try;;
3700 esac
3701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3702   (eval "$ac_try") 2>&5
3703   ac_status=$?
3704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3705   (exit $ac_status); } &&
3706          test -f conftest2.$ac_objext && { (case "(($ac_try" in
3707   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3708   *) ac_try_echo=$ac_try;;
3709 esac
3710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3711   (eval "$ac_try") 2>&5
3712   ac_status=$?
3713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3714   (exit $ac_status); };
3715       then
3716         # cc works too.
3717         :
3718       else
3719         # cc exists but doesn't like -o.
3720         eval ac_cv_prog_cc_${ac_cc}_c_o=no
3721       fi
3722     fi
3723   fi
3724 else
3725   eval ac_cv_prog_cc_${ac_cc}_c_o=no
3726 fi
3727 rm -f core conftest*
3728
3729 fi
3730 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
3731   { echo "$as_me:$LINENO: result: yes" >&5
3732 echo "${ECHO_T}yes" >&6; }
3733 else
3734   { echo "$as_me:$LINENO: result: no" >&5
3735 echo "${ECHO_T}no" >&6; }
3736
3737 cat >>confdefs.h <<\_ACEOF
3738 #define NO_MINUS_C_MINUS_O 1
3739 _ACEOF
3740
3741 fi
3742
3743 ac_ext=c
3744 ac_cpp='$CPP $CPPFLAGS'
3745 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3746 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3747 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3748 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3749 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3750 # On Suns, sometimes $CPP names a directory.
3751 if test -n "$CPP" && test -d "$CPP"; then
3752   CPP=
3753 fi
3754 if test -z "$CPP"; then
3755   if test "${ac_cv_prog_CPP+set}" = set; then
3756   echo $ECHO_N "(cached) $ECHO_C" >&6
3757 else
3758       # Double quotes because CPP needs to be expanded
3759     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3760     do
3761       ac_preproc_ok=false
3762 for ac_c_preproc_warn_flag in '' yes
3763 do
3764   # Use a header file that comes with gcc, so configuring glibc
3765   # with a fresh cross-compiler works.
3766   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3767   # <limits.h> exists even on freestanding compilers.
3768   # On the NeXT, cc -E runs the code through the compiler's parser,
3769   # not just through cpp. "Syntax error" is here to catch this case.
3770   cat >conftest.$ac_ext <<_ACEOF
3771 /* confdefs.h.  */
3772 _ACEOF
3773 cat confdefs.h >>conftest.$ac_ext
3774 cat >>conftest.$ac_ext <<_ACEOF
3775 /* end confdefs.h.  */
3776 #ifdef __STDC__
3777 # include <limits.h>
3778 #else
3779 # include <assert.h>
3780 #endif
3781                      Syntax error
3782 _ACEOF
3783 if { (ac_try="$ac_cpp conftest.$ac_ext"
3784 case "(($ac_try" in
3785   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3786   *) ac_try_echo=$ac_try;;
3787 esac
3788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3789   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3790   ac_status=$?
3791   grep -v '^ *+' conftest.er1 >conftest.err
3792   rm -f conftest.er1
3793   cat conftest.err >&5
3794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3795   (exit $ac_status); } >/dev/null && {
3796          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3797          test ! -s conftest.err
3798        }; then
3799   :
3800 else
3801   echo "$as_me: failed program was:" >&5
3802 sed 's/^/| /' conftest.$ac_ext >&5
3803
3804   # Broken: fails on valid input.
3805 continue
3806 fi
3807
3808 rm -f conftest.err conftest.$ac_ext
3809
3810   # OK, works on sane cases.  Now check whether nonexistent headers
3811   # can be detected and how.
3812   cat >conftest.$ac_ext <<_ACEOF
3813 /* confdefs.h.  */
3814 _ACEOF
3815 cat confdefs.h >>conftest.$ac_ext
3816 cat >>conftest.$ac_ext <<_ACEOF
3817 /* end confdefs.h.  */
3818 #include <ac_nonexistent.h>
3819 _ACEOF
3820 if { (ac_try="$ac_cpp conftest.$ac_ext"
3821 case "(($ac_try" in
3822   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3823   *) ac_try_echo=$ac_try;;
3824 esac
3825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3826   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3827   ac_status=$?
3828   grep -v '^ *+' conftest.er1 >conftest.err
3829   rm -f conftest.er1
3830   cat conftest.err >&5
3831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3832   (exit $ac_status); } >/dev/null && {
3833          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3834          test ! -s conftest.err
3835        }; then
3836   # Broken: success on invalid input.
3837 continue
3838 else
3839   echo "$as_me: failed program was:" >&5
3840 sed 's/^/| /' conftest.$ac_ext >&5
3841
3842   # Passes both tests.
3843 ac_preproc_ok=:
3844 break
3845 fi
3846
3847 rm -f conftest.err conftest.$ac_ext
3848
3849 done
3850 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3851 rm -f conftest.err conftest.$ac_ext
3852 if $ac_preproc_ok; then
3853   break
3854 fi
3855
3856     done
3857     ac_cv_prog_CPP=$CPP
3858
3859 fi
3860   CPP=$ac_cv_prog_CPP
3861 else
3862   ac_cv_prog_CPP=$CPP
3863 fi
3864 { echo "$as_me:$LINENO: result: $CPP" >&5
3865 echo "${ECHO_T}$CPP" >&6; }
3866 ac_preproc_ok=false
3867 for ac_c_preproc_warn_flag in '' yes
3868 do
3869   # Use a header file that comes with gcc, so configuring glibc
3870   # with a fresh cross-compiler works.
3871   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3872   # <limits.h> exists even on freestanding compilers.
3873   # On the NeXT, cc -E runs the code through the compiler's parser,
3874   # not just through cpp. "Syntax error" is here to catch this case.
3875   cat >conftest.$ac_ext <<_ACEOF
3876 /* confdefs.h.  */
3877 _ACEOF
3878 cat confdefs.h >>conftest.$ac_ext
3879 cat >>conftest.$ac_ext <<_ACEOF
3880 /* end confdefs.h.  */
3881 #ifdef __STDC__
3882 # include <limits.h>
3883 #else
3884 # include <assert.h>
3885 #endif
3886                      Syntax error
3887 _ACEOF
3888 if { (ac_try="$ac_cpp conftest.$ac_ext"
3889 case "(($ac_try" in
3890   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3891   *) ac_try_echo=$ac_try;;
3892 esac
3893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3894   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3895   ac_status=$?
3896   grep -v '^ *+' conftest.er1 >conftest.err
3897   rm -f conftest.er1
3898   cat conftest.err >&5
3899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3900   (exit $ac_status); } >/dev/null && {
3901          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3902          test ! -s conftest.err
3903        }; then
3904   :
3905 else
3906   echo "$as_me: failed program was:" >&5
3907 sed 's/^/| /' conftest.$ac_ext >&5
3908
3909   # Broken: fails on valid input.
3910 continue
3911 fi
3912
3913 rm -f conftest.err conftest.$ac_ext
3914
3915   # OK, works on sane cases.  Now check whether nonexistent headers
3916   # can be detected and how.
3917   cat >conftest.$ac_ext <<_ACEOF
3918 /* confdefs.h.  */
3919 _ACEOF
3920 cat confdefs.h >>conftest.$ac_ext
3921 cat >>conftest.$ac_ext <<_ACEOF
3922 /* end confdefs.h.  */
3923 #include <ac_nonexistent.h>
3924 _ACEOF
3925 if { (ac_try="$ac_cpp conftest.$ac_ext"
3926 case "(($ac_try" in
3927   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3928   *) ac_try_echo=$ac_try;;
3929 esac
3930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3931   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3932   ac_status=$?
3933   grep -v '^ *+' conftest.er1 >conftest.err
3934   rm -f conftest.er1
3935   cat conftest.err >&5
3936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3937   (exit $ac_status); } >/dev/null && {
3938          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3939          test ! -s conftest.err
3940        }; then
3941   # Broken: success on invalid input.
3942 continue
3943 else
3944   echo "$as_me: failed program was:" >&5
3945 sed 's/^/| /' conftest.$ac_ext >&5
3946
3947   # Passes both tests.
3948 ac_preproc_ok=:
3949 break
3950 fi
3951
3952 rm -f conftest.err conftest.$ac_ext
3953
3954 done
3955 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3956 rm -f conftest.err conftest.$ac_ext
3957 if $ac_preproc_ok; then
3958   :
3959 else
3960   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3961 See \`config.log' for more details." >&5
3962 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3963 See \`config.log' for more details." >&2;}
3964    { (exit 1); exit 1; }; }
3965 fi
3966
3967 ac_ext=c
3968 ac_cpp='$CPP $CPPFLAGS'
3969 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3970 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3971 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3972
3973
3974 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3975 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3976 if test "${ac_cv_path_GREP+set}" = set; then
3977   echo $ECHO_N "(cached) $ECHO_C" >&6
3978 else
3979   # Extract the first word of "grep ggrep" to use in msg output
3980 if test -z "$GREP"; then
3981 set dummy grep ggrep; ac_prog_name=$2
3982 if test "${ac_cv_path_GREP+set}" = set; then
3983   echo $ECHO_N "(cached) $ECHO_C" >&6
3984 else
3985   ac_path_GREP_found=false
3986 # Loop through the user's path and test for each of PROGNAME-LIST
3987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3988 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3989 do
3990   IFS=$as_save_IFS
3991   test -z "$as_dir" && as_dir=.
3992   for ac_prog in grep ggrep; do
3993   for ac_exec_ext in '' $ac_executable_extensions; do
3994     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3995     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3996     # Check for GNU ac_path_GREP and select it if it is found.
3997   # Check for GNU $ac_path_GREP
3998 case `"$ac_path_GREP" --version 2>&1` in
3999 *GNU*)
4000   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4001 *)
4002   ac_count=0
4003   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4004   while :
4005   do
4006     cat "conftest.in" "conftest.in" >"conftest.tmp"
4007     mv "conftest.tmp" "conftest.in"
4008     cp "conftest.in" "conftest.nl"
4009     echo 'GREP' >> "conftest.nl"
4010     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4011     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4012     ac_count=`expr $ac_count + 1`
4013     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4014       # Best one so far, save it but keep looking for a better one
4015       ac_cv_path_GREP="$ac_path_GREP"
4016       ac_path_GREP_max=$ac_count
4017     fi
4018     # 10*(2^10) chars as input seems more than enough
4019     test $ac_count -gt 10 && break
4020   done
4021   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4022 esac
4023
4024
4025     $ac_path_GREP_found && break 3
4026   done
4027 done
4028
4029 done
4030 IFS=$as_save_IFS
4031
4032
4033 fi
4034
4035 GREP="$ac_cv_path_GREP"
4036 if test -z "$GREP"; then
4037   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4038 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4039    { (exit 1); exit 1; }; }
4040 fi
4041
4042 else
4043   ac_cv_path_GREP=$GREP
4044 fi
4045
4046
4047 fi
4048 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4049 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4050  GREP="$ac_cv_path_GREP"
4051
4052
4053 { echo "$as_me:$LINENO: checking for egrep" >&5
4054 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4055 if test "${ac_cv_path_EGREP+set}" = set; then
4056   echo $ECHO_N "(cached) $ECHO_C" >&6
4057 else
4058   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4059    then ac_cv_path_EGREP="$GREP -E"
4060    else
4061      # Extract the first word of "egrep" to use in msg output
4062 if test -z "$EGREP"; then
4063 set dummy egrep; ac_prog_name=$2
4064 if test "${ac_cv_path_EGREP+set}" = set; then
4065   echo $ECHO_N "(cached) $ECHO_C" >&6
4066 else
4067   ac_path_EGREP_found=false
4068 # Loop through the user's path and test for each of PROGNAME-LIST
4069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4070 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4071 do
4072   IFS=$as_save_IFS
4073   test -z "$as_dir" && as_dir=.
4074   for ac_prog in egrep; do
4075   for ac_exec_ext in '' $ac_executable_extensions; do
4076     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4077     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4078     # Check for GNU ac_path_EGREP and select it if it is found.
4079   # Check for GNU $ac_path_EGREP
4080 case `"$ac_path_EGREP" --version 2>&1` in
4081 *GNU*)
4082   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4083 *)
4084   ac_count=0
4085   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4086   while :
4087   do
4088     cat "conftest.in" "conftest.in" >"conftest.tmp"
4089     mv "conftest.tmp" "conftest.in"
4090     cp "conftest.in" "conftest.nl"
4091     echo 'EGREP' >> "conftest.nl"
4092     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4093     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4094     ac_count=`expr $ac_count + 1`
4095     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4096       # Best one so far, save it but keep looking for a better one
4097       ac_cv_path_EGREP="$ac_path_EGREP"
4098       ac_path_EGREP_max=$ac_count
4099     fi
4100     # 10*(2^10) chars as input seems more than enough
4101     test $ac_count -gt 10 && break
4102   done
4103   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4104 esac
4105
4106
4107     $ac_path_EGREP_found && break 3
4108   done
4109 done
4110
4111 done
4112 IFS=$as_save_IFS
4113
4114
4115 fi
4116
4117 EGREP="$ac_cv_path_EGREP"
4118 if test -z "$EGREP"; then
4119   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4120 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4121    { (exit 1); exit 1; }; }
4122 fi
4123
4124 else
4125   ac_cv_path_EGREP=$EGREP
4126 fi
4127
4128
4129    fi
4130 fi
4131 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4132 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4133  EGREP="$ac_cv_path_EGREP"
4134
4135
4136 if test $ac_cv_c_compiler_gnu = yes; then
4137     { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
4138 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
4139 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
4140   echo $ECHO_N "(cached) $ECHO_C" >&6
4141 else
4142     ac_pattern="Autoconf.*'x'"
4143   cat >conftest.$ac_ext <<_ACEOF
4144 /* confdefs.h.  */
4145 _ACEOF
4146 cat confdefs.h >>conftest.$ac_ext
4147 cat >>conftest.$ac_ext <<_ACEOF
4148 /* end confdefs.h.  */
4149 #include <sgtty.h>
4150 Autoconf TIOCGETP
4151 _ACEOF
4152 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4153   $EGREP "$ac_pattern" >/dev/null 2>&1; then
4154   ac_cv_prog_gcc_traditional=yes
4155 else
4156   ac_cv_prog_gcc_traditional=no
4157 fi
4158 rm -f conftest*
4159
4160
4161   if test $ac_cv_prog_gcc_traditional = no; then
4162     cat >conftest.$ac_ext <<_ACEOF
4163 /* confdefs.h.  */
4164 _ACEOF
4165 cat confdefs.h >>conftest.$ac_ext
4166 cat >>conftest.$ac_ext <<_ACEOF
4167 /* end confdefs.h.  */
4168 #include <termio.h>
4169 Autoconf TCGETA
4170 _ACEOF
4171 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4172   $EGREP "$ac_pattern" >/dev/null 2>&1; then
4173   ac_cv_prog_gcc_traditional=yes
4174 fi
4175 rm -f conftest*
4176
4177   fi
4178 fi
4179 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
4180 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
4181   if test $ac_cv_prog_gcc_traditional = yes; then
4182     CC="$CC -traditional"
4183   fi
4184 fi
4185
4186 BASECC=`basename $CC`
4187 have_gcc=no
4188 if test "x$BASECC" = xgcc; then
4189    cat >>confdefs.h <<\_ACEOF
4190 #define HAVE_GCC 1
4191 _ACEOF
4192
4193    have_gcc=yes
4194 fi
4195 # Extract the first word of "$CXX", so it can be a program name with args.
4196 set dummy $CXX; ac_word=$2
4197 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4198 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4199 if test "${ac_cv_path_CXX+set}" = set; then
4200   echo $ECHO_N "(cached) $ECHO_C" >&6
4201 else
4202   case $CXX in
4203   [\\/]* | ?:[\\/]*)
4204   ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
4205   ;;
4206   *)
4207   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4208 for as_dir in $PATH
4209 do
4210   IFS=$as_save_IFS
4211   test -z "$as_dir" && as_dir=.
4212   for ac_exec_ext in '' $ac_executable_extensions; do
4213   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4214     ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
4215     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4216     break 2
4217   fi
4218 done
4219 done
4220 IFS=$as_save_IFS
4221
4222   test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="$CXX"
4223   ;;
4224 esac
4225 fi
4226 CXX=$ac_cv_path_CXX
4227 if test -n "$CXX"; then
4228   { echo "$as_me:$LINENO: result: $CXX" >&5
4229 echo "${ECHO_T}$CXX" >&6; }
4230 else
4231   { echo "$as_me:$LINENO: result: no" >&5
4232 echo "${ECHO_T}no" >&6; }
4233 fi
4234
4235
4236 if test ! -e $CXX; then
4237    { { echo "$as_me:$LINENO: error: Unable to find C++ compiler" >&5
4238 echo "$as_me: error: Unable to find C++ compiler" >&2;}
4239    { (exit 1); exit 1; }; }
4240 fi
4241
4242 CXXFLAGS="-g -O2 -Wall"
4243 ac_ext=cpp
4244 ac_cpp='$CXXCPP $CPPFLAGS'
4245 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4246 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4247 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4248
4249
4250 # Find a good install program.  We prefer a C program (faster),
4251 # so one script is as good as another.  But avoid the broken or
4252 # incompatible versions:
4253 # SysV /etc/install, /usr/sbin/install
4254 # SunOS /usr/etc/install
4255 # IRIX /sbin/install
4256 # AIX /bin/install
4257 # AmigaOS /C/install, which installs bootblocks on floppy discs
4258 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4259 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4260 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4261 # OS/2's system install, which has a completely different semantic
4262 # ./install, which can be erroneously created by make from ./install.sh.
4263 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4264 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4265 if test -z "$INSTALL"; then
4266 if test "${ac_cv_path_install+set}" = set; then
4267   echo $ECHO_N "(cached) $ECHO_C" >&6
4268 else
4269   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4270 for as_dir in $PATH
4271 do
4272   IFS=$as_save_IFS
4273   test -z "$as_dir" && as_dir=.
4274   # Account for people who put trailing slashes in PATH elements.
4275 case $as_dir/ in
4276   ./ | .// | /cC/* | \
4277   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4278   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4279   /usr/ucb/* ) ;;
4280   *)
4281     # OSF1 and SCO ODT 3.0 have their own names for install.
4282     # Don't use installbsd from OSF since it installs stuff as root
4283     # by default.
4284     for ac_prog in ginstall scoinst install; do
4285       for ac_exec_ext in '' $ac_executable_extensions; do
4286         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4287           if test $ac_prog = install &&
4288             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4289             # AIX install.  It has an incompatible calling convention.
4290             :
4291           elif test $ac_prog = install &&
4292             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4293             # program-specific install script used by HP pwplus--don't use.
4294             :
4295           else
4296             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4297             break 3
4298           fi
4299         fi
4300       done
4301     done
4302     ;;
4303 esac
4304 done
4305 IFS=$as_save_IFS
4306
4307
4308 fi
4309   if test "${ac_cv_path_install+set}" = set; then
4310     INSTALL=$ac_cv_path_install
4311   else
4312     # As a last resort, use the slow shell script.  Don't cache a
4313     # value for INSTALL within a source directory, because that will
4314     # break other packages using the cache if that directory is
4315     # removed, or if the value is a relative name.
4316     INSTALL=$ac_install_sh
4317   fi
4318 fi
4319 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4320 echo "${ECHO_T}$INSTALL" >&6; }
4321
4322 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4323 # It thinks the first close brace ends the variable substitution.
4324 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4325
4326 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4327
4328 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4329
4330 # Extract the first word of "mv", so it can be a program name with args.
4331 set dummy mv; ac_word=$2
4332 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4333 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4334 if test "${ac_cv_path_MV+set}" = set; then
4335   echo $ECHO_N "(cached) $ECHO_C" >&6
4336 else
4337   case $MV in
4338   [\\/]* | ?:[\\/]*)
4339   ac_cv_path_MV="$MV" # Let the user override the test with a path.
4340   ;;
4341   *)
4342   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4343 for as_dir in $PATH
4344 do
4345   IFS=$as_save_IFS
4346   test -z "$as_dir" && as_dir=.
4347   for ac_exec_ext in '' $ac_executable_extensions; do
4348   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4349     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4350     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4351     break 2
4352   fi
4353 done
4354 done
4355 IFS=$as_save_IFS
4356
4357   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4358   ;;
4359 esac
4360 fi
4361 MV=$ac_cv_path_MV
4362 if test -n "$MV"; then
4363   { echo "$as_me:$LINENO: result: $MV" >&5
4364 echo "${ECHO_T}$MV" >&6; }
4365 else
4366   { echo "$as_me:$LINENO: result: no" >&5
4367 echo "${ECHO_T}no" >&6; }
4368 fi
4369
4370
4371 # Extract the first word of "rm", so it can be a program name with args.
4372 set dummy rm; ac_word=$2
4373 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4374 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4375 if test "${ac_cv_path_REMOVE+set}" = set; then
4376   echo $ECHO_N "(cached) $ECHO_C" >&6
4377 else
4378   case $REMOVE in
4379   [\\/]* | ?:[\\/]*)
4380   ac_cv_path_REMOVE="$REMOVE" # Let the user override the test with a path.
4381   ;;
4382   *)
4383   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4384 for as_dir in $PATH
4385 do
4386   IFS=$as_save_IFS
4387   test -z "$as_dir" && as_dir=.
4388   for ac_exec_ext in '' $ac_executable_extensions; do
4389   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4390     ac_cv_path_REMOVE="$as_dir/$ac_word$ac_exec_ext"
4391     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4392     break 2
4393   fi
4394 done
4395 done
4396 IFS=$as_save_IFS
4397
4398   test -z "$ac_cv_path_REMOVE" && ac_cv_path_REMOVE="rm"
4399   ;;
4400 esac
4401 fi
4402 REMOVE=$ac_cv_path_REMOVE
4403 if test -n "$REMOVE"; then
4404   { echo "$as_me:$LINENO: result: $REMOVE" >&5
4405 echo "${ECHO_T}$REMOVE" >&6; }
4406 else
4407   { echo "$as_me:$LINENO: result: no" >&5
4408 echo "${ECHO_T}no" >&6; }
4409 fi
4410
4411
4412 # Extract the first word of "cp", so it can be a program name with args.
4413 set dummy cp; ac_word=$2
4414 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4415 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4416 if test "${ac_cv_path_CP+set}" = set; then
4417   echo $ECHO_N "(cached) $ECHO_C" >&6
4418 else
4419   case $CP in
4420   [\\/]* | ?:[\\/]*)
4421   ac_cv_path_CP="$CP" # Let the user override the test with a path.
4422   ;;
4423   *)
4424   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4425 for as_dir in $PATH
4426 do
4427   IFS=$as_save_IFS
4428   test -z "$as_dir" && as_dir=.
4429   for ac_exec_ext in '' $ac_executable_extensions; do
4430   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4431     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4432     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4433     break 2
4434   fi
4435 done
4436 done
4437 IFS=$as_save_IFS
4438
4439   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
4440   ;;
4441 esac
4442 fi
4443 CP=$ac_cv_path_CP
4444 if test -n "$CP"; then
4445   { echo "$as_me:$LINENO: result: $CP" >&5
4446 echo "${ECHO_T}$CP" >&6; }
4447 else
4448   { echo "$as_me:$LINENO: result: no" >&5
4449 echo "${ECHO_T}no" >&6; }
4450 fi
4451
4452
4453 # Extract the first word of "sed", so it can be a program name with args.
4454 set dummy sed; ac_word=$2
4455 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4456 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4457 if test "${ac_cv_path_SED+set}" = set; then
4458   echo $ECHO_N "(cached) $ECHO_C" >&6
4459 else
4460   case $SED in
4461   [\\/]* | ?:[\\/]*)
4462   ac_cv_path_SED="$SED" # Let the user override the test with a path.
4463   ;;
4464   *)
4465   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4466 for as_dir in $PATH
4467 do
4468   IFS=$as_save_IFS
4469   test -z "$as_dir" && as_dir=.
4470   for ac_exec_ext in '' $ac_executable_extensions; do
4471   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4472     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
4473     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4474     break 2
4475   fi
4476 done
4477 done
4478 IFS=$as_save_IFS
4479
4480   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
4481   ;;
4482 esac
4483 fi
4484 SED=$ac_cv_path_SED
4485 if test -n "$SED"; then
4486   { echo "$as_me:$LINENO: result: $SED" >&5
4487 echo "${ECHO_T}$SED" >&6; }
4488 else
4489   { echo "$as_me:$LINENO: result: no" >&5
4490 echo "${ECHO_T}no" >&6; }
4491 fi
4492
4493
4494 # Extract the first word of "echo", so it can be a program name with args.
4495 set dummy echo; ac_word=$2
4496 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4497 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4498 if test "${ac_cv_path_ECHO+set}" = set; then
4499   echo $ECHO_N "(cached) $ECHO_C" >&6
4500 else
4501   case $ECHO in
4502   [\\/]* | ?:[\\/]*)
4503   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
4504   ;;
4505   *)
4506   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4507 for as_dir in $PATH
4508 do
4509   IFS=$as_save_IFS
4510   test -z "$as_dir" && as_dir=.
4511   for ac_exec_ext in '' $ac_executable_extensions; do
4512   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4513     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
4514     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4515     break 2
4516   fi
4517 done
4518 done
4519 IFS=$as_save_IFS
4520
4521   test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
4522   ;;
4523 esac
4524 fi
4525 ECHO=$ac_cv_path_ECHO
4526 if test -n "$ECHO"; then
4527   { echo "$as_me:$LINENO: result: $ECHO" >&5
4528 echo "${ECHO_T}$ECHO" >&6; }
4529 else
4530   { echo "$as_me:$LINENO: result: no" >&5
4531 echo "${ECHO_T}no" >&6; }
4532 fi
4533
4534
4535 # Extract the first word of "cmp", so it can be a program name with args.
4536 set dummy cmp; ac_word=$2
4537 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4538 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4539 if test "${ac_cv_path_CMP+set}" = set; then
4540   echo $ECHO_N "(cached) $ECHO_C" >&6
4541 else
4542   case $CMP in
4543   [\\/]* | ?:[\\/]*)
4544   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
4545   ;;
4546   *)
4547   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4548 for as_dir in $PATH
4549 do
4550   IFS=$as_save_IFS
4551   test -z "$as_dir" && as_dir=.
4552   for ac_exec_ext in '' $ac_executable_extensions; do
4553   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4554     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
4555     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4556     break 2
4557   fi
4558 done
4559 done
4560 IFS=$as_save_IFS
4561
4562   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
4563   ;;
4564 esac
4565 fi
4566 CMP=$ac_cv_path_CMP
4567 if test -n "$CMP"; then
4568   { echo "$as_me:$LINENO: result: $CMP" >&5
4569 echo "${ECHO_T}$CMP" >&6; }
4570 else
4571   { echo "$as_me:$LINENO: result: no" >&5
4572 echo "${ECHO_T}no" >&6; }
4573 fi
4574
4575
4576 # Extract the first word of "tbl", so it can be a program name with args.
4577 set dummy tbl; ac_word=$2
4578 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4579 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4580 if test "${ac_cv_path_TBL+set}" = set; then
4581   echo $ECHO_N "(cached) $ECHO_C" >&6
4582 else
4583   case $TBL in
4584   [\\/]* | ?:[\\/]*)
4585   ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
4586   ;;
4587   *)
4588   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4589 for as_dir in $PATH
4590 do
4591   IFS=$as_save_IFS
4592   test -z "$as_dir" && as_dir=.
4593   for ac_exec_ext in '' $ac_executable_extensions; do
4594   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4595     ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
4596     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4597     break 2
4598   fi
4599 done
4600 done
4601 IFS=$as_save_IFS
4602
4603   test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
4604   ;;
4605 esac
4606 fi
4607 TBL=$ac_cv_path_TBL
4608 if test -n "$TBL"; then
4609   { echo "$as_me:$LINENO: result: $TBL" >&5
4610 echo "${ECHO_T}$TBL" >&6; }
4611 else
4612   { echo "$as_me:$LINENO: result: no" >&5
4613 echo "${ECHO_T}no" >&6; }
4614 fi
4615
4616
4617 # Extract the first word of "ar", so it can be a program name with args.
4618 set dummy ar; ac_word=$2
4619 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4620 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4621 if test "${ac_cv_path_AR+set}" = set; then
4622   echo $ECHO_N "(cached) $ECHO_C" >&6
4623 else
4624   case $AR in
4625   [\\/]* | ?:[\\/]*)
4626   ac_cv_path_AR="$AR" # Let the user override the test with a path.
4627   ;;
4628   *)
4629   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4630 for as_dir in $PATH
4631 do
4632   IFS=$as_save_IFS
4633   test -z "$as_dir" && as_dir=.
4634   for ac_exec_ext in '' $ac_executable_extensions; do
4635   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4636     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
4637     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4638     break 2
4639   fi
4640 done
4641 done
4642 IFS=$as_save_IFS
4643
4644   test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
4645   ;;
4646 esac
4647 fi
4648 AR=$ac_cv_path_AR
4649 if test -n "$AR"; then
4650   { echo "$as_me:$LINENO: result: $AR" >&5
4651 echo "${ECHO_T}$AR" >&6; }
4652 else
4653   { echo "$as_me:$LINENO: result: no" >&5
4654 echo "${ECHO_T}no" >&6; }
4655 fi
4656
4657
4658 # Extract the first word of "openssl", so it can be a program name with args.
4659 set dummy openssl; ac_word=$2
4660 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4661 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4662 if test "${ac_cv_path_OPENSSL+set}" = set; then
4663   echo $ECHO_N "(cached) $ECHO_C" >&6
4664 else
4665   case $OPENSSL in
4666   [\\/]* | ?:[\\/]*)
4667   ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
4668   ;;
4669   *)
4670   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4671 for as_dir in $PATH
4672 do
4673   IFS=$as_save_IFS
4674   test -z "$as_dir" && as_dir=.
4675   for ac_exec_ext in '' $ac_executable_extensions; do
4676   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4677     ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
4678     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4679     break 2
4680   fi
4681 done
4682 done
4683 IFS=$as_save_IFS
4684
4685   test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
4686   ;;
4687 esac
4688 fi
4689 OPENSSL=$ac_cv_path_OPENSSL
4690 if test -n "$OPENSSL"; then
4691   { echo "$as_me:$LINENO: result: $OPENSSL" >&5
4692 echo "${ECHO_T}$OPENSSL" >&6; }
4693 else
4694   { echo "$as_me:$LINENO: result: no" >&5
4695 echo "${ECHO_T}no" >&6; }
4696 fi
4697
4698
4699 # Extract the first word of "mtx", so it can be a program name with args.
4700 set dummy mtx; ac_word=$2
4701 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4702 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4703 if test "${ac_cv_path_MTX+set}" = set; then
4704   echo $ECHO_N "(cached) $ECHO_C" >&6
4705 else
4706   case $MTX in
4707   [\\/]* | ?:[\\/]*)
4708   ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
4709   ;;
4710   *)
4711   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4712 for as_dir in $PATH
4713 do
4714   IFS=$as_save_IFS
4715   test -z "$as_dir" && as_dir=.
4716   for ac_exec_ext in '' $ac_executable_extensions; do
4717   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4718     ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
4719     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4720     break 2
4721   fi
4722 done
4723 done
4724 IFS=$as_save_IFS
4725
4726   test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
4727   ;;
4728 esac
4729 fi
4730 MTX=$ac_cv_path_MTX
4731 if test -n "$MTX"; then
4732   { echo "$as_me:$LINENO: result: $MTX" >&5
4733 echo "${ECHO_T}$MTX" >&6; }
4734 else
4735   { echo "$as_me:$LINENO: result: no" >&5
4736 echo "${ECHO_T}no" >&6; }
4737 fi
4738
4739
4740 # Extract the first word of "dd", so it can be a program name with args.
4741 set dummy dd; ac_word=$2
4742 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4743 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4744 if test "${ac_cv_path_DD+set}" = set; then
4745   echo $ECHO_N "(cached) $ECHO_C" >&6
4746 else
4747   case $DD in
4748   [\\/]* | ?:[\\/]*)
4749   ac_cv_path_DD="$DD" # Let the user override the test with a path.
4750   ;;
4751   *)
4752   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4753 for as_dir in $PATH
4754 do
4755   IFS=$as_save_IFS
4756   test -z "$as_dir" && as_dir=.
4757   for ac_exec_ext in '' $ac_executable_extensions; do
4758   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4759     ac_cv_path_DD="$as_dir/$ac_word$ac_exec_ext"
4760     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4761     break 2
4762   fi
4763 done
4764 done
4765 IFS=$as_save_IFS
4766
4767   test -z "$ac_cv_path_DD" && ac_cv_path_DD="dd"
4768   ;;
4769 esac
4770 fi
4771 DD=$ac_cv_path_DD
4772 if test -n "$DD"; then
4773   { echo "$as_me:$LINENO: result: $DD" >&5
4774 echo "${ECHO_T}$DD" >&6; }
4775 else
4776   { echo "$as_me:$LINENO: result: no" >&5
4777 echo "${ECHO_T}no" >&6; }
4778 fi
4779
4780
4781 # Extract the first word of "mkisofs", so it can be a program name with args.
4782 set dummy mkisofs; ac_word=$2
4783 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4784 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4785 if test "${ac_cv_path_MKISOFS+set}" = set; then
4786   echo $ECHO_N "(cached) $ECHO_C" >&6
4787 else
4788   case $MKISOFS in
4789   [\\/]* | ?:[\\/]*)
4790   ac_cv_path_MKISOFS="$MKISOFS" # Let the user override the test with a path.
4791   ;;
4792   *)
4793   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4794 for as_dir in $PATH
4795 do
4796   IFS=$as_save_IFS
4797   test -z "$as_dir" && as_dir=.
4798   for ac_exec_ext in '' $ac_executable_extensions; do
4799   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4800     ac_cv_path_MKISOFS="$as_dir/$ac_word$ac_exec_ext"
4801     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4802     break 2
4803   fi
4804 done
4805 done
4806 IFS=$as_save_IFS
4807
4808   test -z "$ac_cv_path_MKISOFS" && ac_cv_path_MKISOFS="mkisofs"
4809   ;;
4810 esac
4811 fi
4812 MKISOFS=$ac_cv_path_MKISOFS
4813 if test -n "$MKISOFS"; then
4814   { echo "$as_me:$LINENO: result: $MKISOFS" >&5
4815 echo "${ECHO_T}$MKISOFS" >&6; }
4816 else
4817   { echo "$as_me:$LINENO: result: no" >&5
4818 echo "${ECHO_T}no" >&6; }
4819 fi
4820
4821
4822 # Extract the first word of "python", so it can be a program name with args.
4823 set dummy python; ac_word=$2
4824 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4825 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4826 if test "${ac_cv_path_PYTHON+set}" = set; then
4827   echo $ECHO_N "(cached) $ECHO_C" >&6
4828 else
4829   case $PYTHON in
4830   [\\/]* | ?:[\\/]*)
4831   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
4832   ;;
4833   *)
4834   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4835 for as_dir in $PATH
4836 do
4837   IFS=$as_save_IFS
4838   test -z "$as_dir" && as_dir=.
4839   for ac_exec_ext in '' $ac_executable_extensions; do
4840   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4841     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
4842     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4843     break 2
4844   fi
4845 done
4846 done
4847 IFS=$as_save_IFS
4848
4849   test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="python"
4850   ;;
4851 esac
4852 fi
4853 PYTHON=$ac_cv_path_PYTHON
4854 if test -n "$PYTHON"; then
4855   { echo "$as_me:$LINENO: result: $PYTHON" >&5
4856 echo "${ECHO_T}$PYTHON" >&6; }
4857 else
4858   { echo "$as_me:$LINENO: result: no" >&5
4859 echo "${ECHO_T}no" >&6; }
4860 fi
4861
4862
4863 # Extract the first word of "growisofs", so it can be a program name with args.
4864 set dummy growisofs; ac_word=$2
4865 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4866 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4867 if test "${ac_cv_path_GROWISOFS+set}" = set; then
4868   echo $ECHO_N "(cached) $ECHO_C" >&6
4869 else
4870   case $GROWISOFS in
4871   [\\/]* | ?:[\\/]*)
4872   ac_cv_path_GROWISOFS="$GROWISOFS" # Let the user override the test with a path.
4873   ;;
4874   *)
4875   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4876 for as_dir in $PATH
4877 do
4878   IFS=$as_save_IFS
4879   test -z "$as_dir" && as_dir=.
4880   for ac_exec_ext in '' $ac_executable_extensions; do
4881   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4882     ac_cv_path_GROWISOFS="$as_dir/$ac_word$ac_exec_ext"
4883     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4884     break 2
4885   fi
4886 done
4887 done
4888 IFS=$as_save_IFS
4889
4890   test -z "$ac_cv_path_GROWISOFS" && ac_cv_path_GROWISOFS="growisofs"
4891   ;;
4892 esac
4893 fi
4894 GROWISOFS=$ac_cv_path_GROWISOFS
4895 if test -n "$GROWISOFS"; then
4896   { echo "$as_me:$LINENO: result: $GROWISOFS" >&5
4897 echo "${ECHO_T}$GROWISOFS" >&6; }
4898 else
4899   { echo "$as_me:$LINENO: result: no" >&5
4900 echo "${ECHO_T}no" >&6; }
4901 fi
4902
4903
4904 # Extract the first word of "dvd+rw-mediainfo", so it can be a program name with args.
4905 set dummy dvd+rw-mediainfo; ac_word=$2
4906 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4907 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4908 if test "${ac_cv_path_DVDRWMEDIAINFO+set}" = set; then
4909   echo $ECHO_N "(cached) $ECHO_C" >&6
4910 else
4911   case $DVDRWMEDIAINFO in
4912   [\\/]* | ?:[\\/]*)
4913   ac_cv_path_DVDRWMEDIAINFO="$DVDRWMEDIAINFO" # Let the user override the test with a path.
4914   ;;
4915   *)
4916   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4917 for as_dir in $PATH
4918 do
4919   IFS=$as_save_IFS
4920   test -z "$as_dir" && as_dir=.
4921   for ac_exec_ext in '' $ac_executable_extensions; do
4922   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4923     ac_cv_path_DVDRWMEDIAINFO="$as_dir/$ac_word$ac_exec_ext"
4924     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4925     break 2
4926   fi
4927 done
4928 done
4929 IFS=$as_save_IFS
4930
4931   test -z "$ac_cv_path_DVDRWMEDIAINFO" && ac_cv_path_DVDRWMEDIAINFO="dvd+rw-mediainfo"
4932   ;;
4933 esac
4934 fi
4935 DVDRWMEDIAINFO=$ac_cv_path_DVDRWMEDIAINFO
4936 if test -n "$DVDRWMEDIAINFO"; then
4937   { echo "$as_me:$LINENO: result: $DVDRWMEDIAINFO" >&5
4938 echo "${ECHO_T}$DVDRWMEDIAINFO" >&6; }
4939 else
4940   { echo "$as_me:$LINENO: result: no" >&5
4941 echo "${ECHO_T}no" >&6; }
4942 fi
4943
4944
4945 # Extract the first word of "dvd+rw-format", so it can be a program name with args.
4946 set dummy dvd+rw-format; ac_word=$2
4947 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4948 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4949 if test "${ac_cv_path_DVDRWFORMAT+set}" = set; then
4950   echo $ECHO_N "(cached) $ECHO_C" >&6
4951 else
4952   case $DVDRWFORMAT in
4953   [\\/]* | ?:[\\/]*)
4954   ac_cv_path_DVDRWFORMAT="$DVDRWFORMAT" # Let the user override the test with a path.
4955   ;;
4956   *)
4957   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4958 for as_dir in $PATH
4959 do
4960   IFS=$as_save_IFS
4961   test -z "$as_dir" && as_dir=.
4962   for ac_exec_ext in '' $ac_executable_extensions; do
4963   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4964     ac_cv_path_DVDRWFORMAT="$as_dir/$ac_word$ac_exec_ext"
4965     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4966     break 2
4967   fi
4968 done
4969 done
4970 IFS=$as_save_IFS
4971
4972   test -z "$ac_cv_path_DVDRWFORMAT" && ac_cv_path_DVDRWFORMAT="dvd+rw-format"
4973   ;;
4974 esac
4975 fi
4976 DVDRWFORMAT=$ac_cv_path_DVDRWFORMAT
4977 if test -n "$DVDRWFORMAT"; then
4978   { echo "$as_me:$LINENO: result: $DVDRWFORMAT" >&5
4979 echo "${ECHO_T}$DVDRWFORMAT" >&6; }
4980 else
4981   { echo "$as_me:$LINENO: result: no" >&5
4982 echo "${ECHO_T}no" >&6; }
4983 fi
4984
4985
4986 # Extract the first word of "pkg-config", so it can be a program name with args.
4987 set dummy pkg-config; ac_word=$2
4988 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4989 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4990 if test "${ac_cv_path_PKGCONFIG+set}" = set; then
4991   echo $ECHO_N "(cached) $ECHO_C" >&6
4992 else
4993   case $PKGCONFIG in
4994   [\\/]* | ?:[\\/]*)
4995   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
4996   ;;
4997   *)
4998   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4999 for as_dir in $PATH
5000 do
5001   IFS=$as_save_IFS
5002   test -z "$as_dir" && as_dir=.
5003   for ac_exec_ext in '' $ac_executable_extensions; do
5004   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5005     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
5006     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5007     break 2
5008   fi
5009 done
5010 done
5011 IFS=$as_save_IFS
5012
5013   test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
5014   ;;
5015 esac
5016 fi
5017 PKGCONFIG=$ac_cv_path_PKGCONFIG
5018 if test -n "$PKGCONFIG"; then
5019   { echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
5020 echo "${ECHO_T}$PKGCONFIG" >&6; }
5021 else
5022   { echo "$as_me:$LINENO: result: no" >&5
5023 echo "${ECHO_T}no" >&6; }
5024 fi
5025
5026
5027 # Extract the first word of "qmake", so it can be a program name with args.
5028 set dummy qmake; ac_word=$2
5029 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5030 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5031 if test "${ac_cv_path_QMAKE+set}" = set; then
5032   echo $ECHO_N "(cached) $ECHO_C" >&6
5033 else
5034   case $QMAKE in
5035   [\\/]* | ?:[\\/]*)
5036   ac_cv_path_QMAKE="$QMAKE" # Let the user override the test with a path.
5037   ;;
5038   *)
5039   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5040 for as_dir in $PATH
5041 do
5042   IFS=$as_save_IFS
5043   test -z "$as_dir" && as_dir=.
5044   for ac_exec_ext in '' $ac_executable_extensions; do
5045   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5046     ac_cv_path_QMAKE="$as_dir/$ac_word$ac_exec_ext"
5047     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5048     break 2
5049   fi
5050 done
5051 done
5052 IFS=$as_save_IFS
5053
5054   test -z "$ac_cv_path_QMAKE" && ac_cv_path_QMAKE="none"
5055   ;;
5056 esac
5057 fi
5058 QMAKE=$ac_cv_path_QMAKE
5059 if test -n "$QMAKE"; then
5060   { echo "$as_me:$LINENO: result: $QMAKE" >&5
5061 echo "${ECHO_T}$QMAKE" >&6; }
5062 else
5063   { echo "$as_me:$LINENO: result: no" >&5
5064 echo "${ECHO_T}no" >&6; }
5065 fi
5066
5067
5068 # Extract the first word of "qmake-qt4", so it can be a program name with args.
5069 set dummy qmake-qt4; ac_word=$2
5070 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5071 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5072 if test "${ac_cv_path_QMAKEQT4+set}" = set; then
5073   echo $ECHO_N "(cached) $ECHO_C" >&6
5074 else
5075   case $QMAKEQT4 in
5076   [\\/]* | ?:[\\/]*)
5077   ac_cv_path_QMAKEQT4="$QMAKEQT4" # Let the user override the test with a path.
5078   ;;
5079   *)
5080   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5081 for as_dir in $PATH
5082 do
5083   IFS=$as_save_IFS
5084   test -z "$as_dir" && as_dir=.
5085   for ac_exec_ext in '' $ac_executable_extensions; do
5086   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5087     ac_cv_path_QMAKEQT4="$as_dir/$ac_word$ac_exec_ext"
5088     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5089     break 2
5090   fi
5091 done
5092 done
5093 IFS=$as_save_IFS
5094
5095   test -z "$ac_cv_path_QMAKEQT4" && ac_cv_path_QMAKEQT4="none"
5096   ;;
5097 esac
5098 fi
5099 QMAKEQT4=$ac_cv_path_QMAKEQT4
5100 if test -n "$QMAKEQT4"; then
5101   { echo "$as_me:$LINENO: result: $QMAKEQT4" >&5
5102 echo "${ECHO_T}$QMAKEQT4" >&6; }
5103 else
5104   { echo "$as_me:$LINENO: result: no" >&5
5105 echo "${ECHO_T}no" >&6; }
5106 fi
5107
5108
5109 # Extract the first word of "gmake", so it can be a program name with args.
5110 set dummy gmake; ac_word=$2
5111 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5112 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5113 if test "${ac_cv_path_GMAKE+set}" = set; then
5114   echo $ECHO_N "(cached) $ECHO_C" >&6
5115 else
5116   case $GMAKE in
5117   [\\/]* | ?:[\\/]*)
5118   ac_cv_path_GMAKE="$GMAKE" # Let the user override the test with a path.
5119   ;;
5120   *)
5121   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5122 for as_dir in $PATH
5123 do
5124   IFS=$as_save_IFS
5125   test -z "$as_dir" && as_dir=.
5126   for ac_exec_ext in '' $ac_executable_extensions; do
5127   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5128     ac_cv_path_GMAKE="$as_dir/$ac_word$ac_exec_ext"
5129     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5130     break 2
5131   fi
5132 done
5133 done
5134 IFS=$as_save_IFS
5135
5136   test -z "$ac_cv_path_GMAKE" && ac_cv_path_GMAKE="none"
5137   ;;
5138 esac
5139 fi
5140 GMAKE=$ac_cv_path_GMAKE
5141 if test -n "$GMAKE"; then
5142   { echo "$as_me:$LINENO: result: $GMAKE" >&5
5143 echo "${ECHO_T}$GMAKE" >&6; }
5144 else
5145   { echo "$as_me:$LINENO: result: no" >&5
5146 echo "${ECHO_T}no" >&6; }
5147 fi
5148
5149
5150
5151 if test "x$WXCONFIG" = x; then
5152    WXCONFIG=wx-config
5153 fi
5154 # Extract the first word of "${WXCONFIG}", so it can be a program name with args.
5155 set dummy ${WXCONFIG}; ac_word=$2
5156 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5157 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5158 if test "${ac_cv_path_WXCONFIG+set}" = set; then
5159   echo $ECHO_N "(cached) $ECHO_C" >&6
5160 else
5161   case $WXCONFIG in
5162   [\\/]* | ?:[\\/]*)
5163   ac_cv_path_WXCONFIG="$WXCONFIG" # Let the user override the test with a path.
5164   ;;
5165   *)
5166   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5167 for as_dir in $PATH
5168 do
5169   IFS=$as_save_IFS
5170   test -z "$as_dir" && as_dir=.
5171   for ac_exec_ext in '' $ac_executable_extensions; do
5172   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5173     ac_cv_path_WXCONFIG="$as_dir/$ac_word$ac_exec_ext"
5174     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5175     break 2
5176   fi
5177 done
5178 done
5179 IFS=$as_save_IFS
5180
5181   test -z "$ac_cv_path_WXCONFIG" && ac_cv_path_WXCONFIG="${WXCONFIG}"
5182   ;;
5183 esac
5184 fi
5185 WXCONFIG=$ac_cv_path_WXCONFIG
5186 if test -n "$WXCONFIG"; then
5187   { echo "$as_me:$LINENO: result: $WXCONFIG" >&5
5188 echo "${ECHO_T}$WXCONFIG" >&6; }
5189 else
5190   { echo "$as_me:$LINENO: result: no" >&5
5191 echo "${ECHO_T}no" >&6; }
5192 fi
5193
5194
5195
5196 # Extract the first word of "cdrecord", so it can be a program name with args.
5197 set dummy cdrecord; ac_word=$2
5198 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5199 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5200 if test "${ac_cv_path_CDRECORD+set}" = set; then
5201   echo $ECHO_N "(cached) $ECHO_C" >&6
5202 else
5203   case $CDRECORD in
5204   [\\/]* | ?:[\\/]*)
5205   ac_cv_path_CDRECORD="$CDRECORD" # Let the user override the test with a path.
5206   ;;
5207   *)
5208   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5209 for as_dir in $PATH
5210 do
5211   IFS=$as_save_IFS
5212   test -z "$as_dir" && as_dir=.
5213   for ac_exec_ext in '' $ac_executable_extensions; do
5214   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5215     ac_cv_path_CDRECORD="$as_dir/$ac_word$ac_exec_ext"
5216     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5217     break 2
5218   fi
5219 done
5220 done
5221 IFS=$as_save_IFS
5222
5223   test -z "$ac_cv_path_CDRECORD" && ac_cv_path_CDRECORD="cdrecord"
5224   ;;
5225 esac
5226 fi
5227 CDRECORD=$ac_cv_path_CDRECORD
5228 if test -n "$CDRECORD"; then
5229   { echo "$as_me:$LINENO: result: $CDRECORD" >&5
5230 echo "${ECHO_T}$CDRECORD" >&6; }
5231 else
5232   { echo "$as_me:$LINENO: result: no" >&5
5233 echo "${ECHO_T}no" >&6; }
5234 fi
5235
5236
5237 # Extract the first word of "pidof", so it can be a program name with args.
5238 set dummy pidof; ac_word=$2
5239 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5240 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5241 if test "${ac_cv_path_PIDOF+set}" = set; then
5242   echo $ECHO_N "(cached) $ECHO_C" >&6
5243 else
5244   case $PIDOF in
5245   [\\/]* | ?:[\\/]*)
5246   ac_cv_path_PIDOF="$PIDOF" # Let the user override the test with a path.
5247   ;;
5248   *)
5249   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5250 for as_dir in $PATH
5251 do
5252   IFS=$as_save_IFS
5253   test -z "$as_dir" && as_dir=.
5254   for ac_exec_ext in '' $ac_executable_extensions; do
5255   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5256     ac_cv_path_PIDOF="$as_dir/$ac_word$ac_exec_ext"
5257     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5258     break 2
5259   fi
5260 done
5261 done
5262 IFS=$as_save_IFS
5263
5264   test -z "$ac_cv_path_PIDOF" && ac_cv_path_PIDOF="pidof"
5265   ;;
5266 esac
5267 fi
5268 PIDOF=$ac_cv_path_PIDOF
5269 if test -n "$PIDOF"; then
5270   { echo "$as_me:$LINENO: result: $PIDOF" >&5
5271 echo "${ECHO_T}$PIDOF" >&6; }
5272 else
5273   { echo "$as_me:$LINENO: result: no" >&5
5274 echo "${ECHO_T}no" >&6; }
5275 fi
5276
5277
5278 for ac_prog in gawk mawk nawk awk
5279 do
5280   # Extract the first word of "$ac_prog", so it can be a program name with args.
5281 set dummy $ac_prog; ac_word=$2
5282 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5283 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5284 if test "${ac_cv_prog_AWK+set}" = set; then
5285   echo $ECHO_N "(cached) $ECHO_C" >&6
5286 else
5287   if test -n "$AWK"; then
5288   ac_cv_prog_AWK="$AWK" # Let the user override the test.
5289 else
5290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5291 for as_dir in $PATH
5292 do
5293   IFS=$as_save_IFS
5294   test -z "$as_dir" && as_dir=.
5295   for ac_exec_ext in '' $ac_executable_extensions; do
5296   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5297     ac_cv_prog_AWK="$ac_prog"
5298     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5299     break 2
5300   fi
5301 done
5302 done
5303 IFS=$as_save_IFS
5304
5305 fi
5306 fi
5307 AWK=$ac_cv_prog_AWK
5308 if test -n "$AWK"; then
5309   { echo "$as_me:$LINENO: result: $AWK" >&5
5310 echo "${ECHO_T}$AWK" >&6; }
5311 else
5312   { echo "$as_me:$LINENO: result: no" >&5
5313 echo "${ECHO_T}no" >&6; }
5314 fi
5315
5316
5317   test -n "$AWK" && break
5318 done
5319
5320 # Some AWK programs fail, so test it and warn the user
5321 if echo xfoo | $AWK 'BEGIN { prog=ARGV1; ARGC=1 }
5322       { if ((prog == $2) || (("(" prog ")") == $2) ||
5323       (("" prog "") == $2) ||
5324       ((prog ":") == $2)) { print $1 ; exit 0 } }' xfoo>/dev/null; then :;
5325 else
5326   { { echo "$as_me:$LINENO: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
5327    The regex engine of $AWK is too broken to be used you
5328    might want to install GNU AWK.
5329    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&5
5330 echo "$as_me: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
5331    The regex engine of $AWK is too broken to be used you
5332    might want to install GNU AWK.
5333    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&2;}
5334    { (exit 1); exit 1; }; }
5335 fi
5336 THE_AWK=$AWK
5337 # Extract the first word of "$THE_AWK", so it can be a program name with args.
5338 set dummy $THE_AWK; ac_word=$2
5339 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5340 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5341 if test "${ac_cv_path_AWK+set}" = set; then
5342   echo $ECHO_N "(cached) $ECHO_C" >&6
5343 else
5344   case $AWK in
5345   [\\/]* | ?:[\\/]*)
5346   ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
5347   ;;
5348   *)
5349   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5350 for as_dir in $PATH
5351 do
5352   IFS=$as_save_IFS
5353   test -z "$as_dir" && as_dir=.
5354   for ac_exec_ext in '' $ac_executable_extensions; do
5355   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5356     ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
5357     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5358     break 2
5359   fi
5360 done
5361 done
5362 IFS=$as_save_IFS
5363
5364   test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="$THE_AWK"
5365   ;;
5366 esac
5367 fi
5368 AWK=$ac_cv_path_AWK
5369 if test -n "$AWK"; then
5370   { echo "$as_me:$LINENO: result: $AWK" >&5
5371 echo "${ECHO_T}$AWK" >&6; }
5372 else
5373   { echo "$as_me:$LINENO: result: no" >&5
5374 echo "${ECHO_T}no" >&6; }
5375 fi
5376
5377
5378
5379
5380 test -n "$ARFLAG" || ARFLAGS="cr"
5381
5382
5383 MAKE_SHELL=/bin/sh
5384
5385
5386
5387
5388
5389
5390
5391 use_libtool=yes
5392 # Check whether --enable-libtool was given.
5393 if test "${enable_libtool+set}" = set; then
5394   enableval=$enable_libtool;
5395        if test x$enableval = xno; then
5396           use_libtool=no
5397        fi
5398
5399
5400 fi
5401
5402 case `pwd` in
5403   *\ * | *\     *)
5404     { echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5405 echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5406 esac
5407
5408
5409
5410 macro_version='2.2.6'
5411 macro_revision='1.3012'
5412
5413
5414
5415
5416
5417
5418
5419
5420
5421
5422
5423
5424
5425 ltmain="$ac_aux_dir/ltmain.sh"
5426
5427 # Make sure we can run config.sub.
5428 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5429   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
5430 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
5431    { (exit 1); exit 1; }; }
5432
5433 { echo "$as_me:$LINENO: checking build system type" >&5
5434 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
5435 if test "${ac_cv_build+set}" = set; then
5436   echo $ECHO_N "(cached) $ECHO_C" >&6
5437 else
5438   ac_build_alias=$build_alias
5439 test "x$ac_build_alias" = x &&
5440   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5441 test "x$ac_build_alias" = x &&
5442   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
5443 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
5444    { (exit 1); exit 1; }; }
5445 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5446   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
5447 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
5448    { (exit 1); exit 1; }; }
5449
5450 fi
5451 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
5452 echo "${ECHO_T}$ac_cv_build" >&6; }
5453 case $ac_cv_build in
5454 *-*-*) ;;
5455 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
5456 echo "$as_me: error: invalid value of canonical build" >&2;}
5457    { (exit 1); exit 1; }; };;
5458 esac
5459 build=$ac_cv_build
5460 ac_save_IFS=$IFS; IFS='-'
5461 set x $ac_cv_build
5462 shift
5463 build_cpu=$1
5464 build_vendor=$2
5465 shift; shift
5466 # Remember, the first character of IFS is used to create $*,
5467 # except with old shells:
5468 build_os=$*
5469 IFS=$ac_save_IFS
5470 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5471
5472
5473 { echo "$as_me:$LINENO: checking host system type" >&5
5474 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
5475 if test "${ac_cv_host+set}" = set; then
5476   echo $ECHO_N "(cached) $ECHO_C" >&6
5477 else
5478   if test "x$host_alias" = x; then
5479   ac_cv_host=$ac_cv_build
5480 else
5481   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5482     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
5483 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
5484    { (exit 1); exit 1; }; }
5485 fi
5486
5487 fi
5488 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5489 echo "${ECHO_T}$ac_cv_host" >&6; }
5490 case $ac_cv_host in
5491 *-*-*) ;;
5492 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
5493 echo "$as_me: error: invalid value of canonical host" >&2;}
5494    { (exit 1); exit 1; }; };;
5495 esac
5496 host=$ac_cv_host
5497 ac_save_IFS=$IFS; IFS='-'
5498 set x $ac_cv_host
5499 shift
5500 host_cpu=$1
5501 host_vendor=$2
5502 shift; shift
5503 # Remember, the first character of IFS is used to create $*,
5504 # except with old shells:
5505 host_os=$*
5506 IFS=$ac_save_IFS
5507 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5508
5509
5510 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5511 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
5512 if test "${ac_cv_path_SED+set}" = set; then
5513   echo $ECHO_N "(cached) $ECHO_C" >&6
5514 else
5515             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5516      for ac_i in 1 2 3 4 5 6 7; do
5517        ac_script="$ac_script$as_nl$ac_script"
5518      done
5519      echo "$ac_script" | sed 99q >conftest.sed
5520      $as_unset ac_script || ac_script=
5521      # Extract the first word of "sed gsed" to use in msg output
5522 if test -z "$SED"; then
5523 set dummy sed gsed; ac_prog_name=$2
5524 if test "${ac_cv_path_SED+set}" = set; then
5525   echo $ECHO_N "(cached) $ECHO_C" >&6
5526 else
5527   ac_path_SED_found=false
5528 # Loop through the user's path and test for each of PROGNAME-LIST
5529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5530 for as_dir in $PATH
5531 do
5532   IFS=$as_save_IFS
5533   test -z "$as_dir" && as_dir=.
5534   for ac_prog in sed gsed; do
5535   for ac_exec_ext in '' $ac_executable_extensions; do
5536     ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5537     { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5538     # Check for GNU ac_path_SED and select it if it is found.
5539   # Check for GNU $ac_path_SED
5540 case `"$ac_path_SED" --version 2>&1` in
5541 *GNU*)
5542   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5543 *)
5544   ac_count=0
5545   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5546   while :
5547   do
5548     cat "conftest.in" "conftest.in" >"conftest.tmp"
5549     mv "conftest.tmp" "conftest.in"
5550     cp "conftest.in" "conftest.nl"
5551     echo '' >> "conftest.nl"
5552     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5553     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5554     ac_count=`expr $ac_count + 1`
5555     if test $ac_count -gt ${ac_path_SED_max-0}; then
5556       # Best one so far, save it but keep looking for a better one
5557       ac_cv_path_SED="$ac_path_SED"
5558       ac_path_SED_max=$ac_count
5559     fi
5560     # 10*(2^10) chars as input seems more than enough
5561     test $ac_count -gt 10 && break
5562   done
5563   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5564 esac
5565
5566
5567     $ac_path_SED_found && break 3
5568   done
5569 done
5570
5571 done
5572 IFS=$as_save_IFS
5573
5574
5575 fi
5576
5577 SED="$ac_cv_path_SED"
5578 if test -z "$SED"; then
5579   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in \$PATH" >&5
5580 echo "$as_me: error: no acceptable $ac_prog_name could be found in \$PATH" >&2;}
5581    { (exit 1); exit 1; }; }
5582 fi
5583
5584 else
5585   ac_cv_path_SED=$SED
5586 fi
5587
5588 fi
5589 { echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
5590 echo "${ECHO_T}$ac_cv_path_SED" >&6; }
5591  SED="$ac_cv_path_SED"
5592   rm -f conftest.sed
5593
5594 test -z "$SED" && SED=sed
5595 Xsed="$SED -e 1s/^X//"
5596
5597
5598
5599
5600
5601
5602
5603
5604
5605
5606
5607 { echo "$as_me:$LINENO: checking for fgrep" >&5
5608 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6; }
5609 if test "${ac_cv_path_FGREP+set}" = set; then
5610   echo $ECHO_N "(cached) $ECHO_C" >&6
5611 else
5612   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5613    then ac_cv_path_FGREP="$GREP -F"
5614    else
5615      # Extract the first word of "fgrep" to use in msg output
5616 if test -z "$FGREP"; then
5617 set dummy fgrep; ac_prog_name=$2
5618 if test "${ac_cv_path_FGREP+set}" = set; then
5619   echo $ECHO_N "(cached) $ECHO_C" >&6
5620 else
5621   ac_path_FGREP_found=false
5622 # Loop through the user's path and test for each of PROGNAME-LIST
5623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5624 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5625 do
5626   IFS=$as_save_IFS
5627   test -z "$as_dir" && as_dir=.
5628   for ac_prog in fgrep; do
5629   for ac_exec_ext in '' $ac_executable_extensions; do
5630     ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5631     { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5632     # Check for GNU ac_path_FGREP and select it if it is found.
5633   # Check for GNU $ac_path_FGREP
5634 case `"$ac_path_FGREP" --version 2>&1` in
5635 *GNU*)
5636   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5637 *)
5638   ac_count=0
5639   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5640   while :
5641   do
5642     cat "conftest.in" "conftest.in" >"conftest.tmp"
5643     mv "conftest.tmp" "conftest.in"
5644     cp "conftest.in" "conftest.nl"
5645     echo 'FGREP' >> "conftest.nl"
5646     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5647     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5648     ac_count=`expr $ac_count + 1`
5649     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5650       # Best one so far, save it but keep looking for a better one
5651       ac_cv_path_FGREP="$ac_path_FGREP"
5652       ac_path_FGREP_max=$ac_count
5653     fi
5654     # 10*(2^10) chars as input seems more than enough
5655     test $ac_count -gt 10 && break
5656   done
5657   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5658 esac
5659
5660
5661     $ac_path_FGREP_found && break 3
5662   done
5663 done
5664
5665 done
5666 IFS=$as_save_IFS
5667
5668
5669 fi
5670
5671 FGREP="$ac_cv_path_FGREP"
5672 if test -z "$FGREP"; then
5673   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5674 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5675    { (exit 1); exit 1; }; }
5676 fi
5677
5678 else
5679   ac_cv_path_FGREP=$FGREP
5680 fi
5681
5682
5683    fi
5684 fi
5685 { echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
5686 echo "${ECHO_T}$ac_cv_path_FGREP" >&6; }
5687  FGREP="$ac_cv_path_FGREP"
5688
5689
5690 test -z "$GREP" && GREP=grep
5691
5692
5693
5694
5695
5696
5697
5698
5699
5700
5701
5702
5703
5704
5705
5706
5707
5708
5709
5710 # Check whether --with-gnu-ld was given.
5711 if test "${with_gnu_ld+set}" = set; then
5712   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5713 else
5714   with_gnu_ld=no
5715 fi
5716
5717 ac_prog=ld
5718 if test "$GCC" = yes; then
5719   # Check if gcc -print-prog-name=ld gives a path.
5720   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5721 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
5722   case $host in
5723   *-*-mingw*)
5724     # gcc leaves a trailing carriage return which upsets mingw
5725     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5726   *)
5727     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5728   esac
5729   case $ac_prog in
5730     # Accept absolute paths.
5731     [\\/]* | ?:[\\/]*)
5732       re_direlt='/[^/][^/]*/\.\./'
5733       # Canonicalize the pathname of ld
5734       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5735       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5736         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5737       done
5738       test -z "$LD" && LD="$ac_prog"
5739       ;;
5740   "")
5741     # If it fails, then pretend we aren't using GCC.
5742     ac_prog=ld
5743     ;;
5744   *)
5745     # If it is relative, then search for the first ld in PATH.
5746     with_gnu_ld=unknown
5747     ;;
5748   esac
5749 elif test "$with_gnu_ld" = yes; then
5750   { echo "$as_me:$LINENO: checking for GNU ld" >&5
5751 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
5752 else
5753   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5754 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
5755 fi
5756 if test "${lt_cv_path_LD+set}" = set; then
5757   echo $ECHO_N "(cached) $ECHO_C" >&6
5758 else
5759   if test -z "$LD"; then
5760   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5761   for ac_dir in $PATH; do
5762     IFS="$lt_save_ifs"
5763     test -z "$ac_dir" && ac_dir=.
5764     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5765       lt_cv_path_LD="$ac_dir/$ac_prog"
5766       # Check to see if the program is GNU ld.  I'd rather use --version,
5767       # but apparently some variants of GNU ld only accept -v.
5768       # Break only if it was the GNU/non-GNU ld that we prefer.
5769       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5770       *GNU* | *'with BFD'*)
5771         test "$with_gnu_ld" != no && break
5772         ;;
5773       *)
5774         test "$with_gnu_ld" != yes && break
5775         ;;
5776       esac
5777     fi
5778   done
5779   IFS="$lt_save_ifs"
5780 else
5781   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5782 fi
5783 fi
5784
5785 LD="$lt_cv_path_LD"
5786 if test -n "$LD"; then
5787   { echo "$as_me:$LINENO: result: $LD" >&5
5788 echo "${ECHO_T}$LD" >&6; }
5789 else
5790   { echo "$as_me:$LINENO: result: no" >&5
5791 echo "${ECHO_T}no" >&6; }
5792 fi
5793 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5794 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5795    { (exit 1); exit 1; }; }
5796 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5797 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
5798 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5799   echo $ECHO_N "(cached) $ECHO_C" >&6
5800 else
5801   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5802 case `$LD -v 2>&1 </dev/null` in
5803 *GNU* | *'with BFD'*)
5804   lt_cv_prog_gnu_ld=yes
5805   ;;
5806 *)
5807   lt_cv_prog_gnu_ld=no
5808   ;;
5809 esac
5810 fi
5811 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5812 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
5813 with_gnu_ld=$lt_cv_prog_gnu_ld
5814
5815
5816
5817
5818
5819
5820
5821
5822
5823 { echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
5824 echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6; }
5825 if test "${lt_cv_path_NM+set}" = set; then
5826   echo $ECHO_N "(cached) $ECHO_C" >&6
5827 else
5828   if test -n "$NM"; then
5829   # Let the user override the test.
5830   lt_cv_path_NM="$NM"
5831 else
5832   lt_nm_to_check="${ac_tool_prefix}nm"
5833   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5834     lt_nm_to_check="$lt_nm_to_check nm"
5835   fi
5836   for lt_tmp_nm in $lt_nm_to_check; do
5837     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5838     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5839       IFS="$lt_save_ifs"
5840       test -z "$ac_dir" && ac_dir=.
5841       tmp_nm="$ac_dir/$lt_tmp_nm"
5842       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5843         # Check to see if the nm accepts a BSD-compat flag.
5844         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5845         #   nm: unknown option "B" ignored
5846         # Tru64's nm complains that /dev/null is an invalid object file
5847         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5848         */dev/null* | *'Invalid file or object type'*)
5849           lt_cv_path_NM="$tmp_nm -B"
5850           break
5851           ;;
5852         *)
5853           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5854           */dev/null*)
5855             lt_cv_path_NM="$tmp_nm -p"
5856             break
5857             ;;
5858           *)
5859             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5860             continue # so that we can try to find one that supports BSD flags
5861             ;;
5862           esac
5863           ;;
5864         esac
5865       fi
5866     done
5867     IFS="$lt_save_ifs"
5868   done
5869   : ${lt_cv_path_NM=no}
5870 fi
5871 fi
5872 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5873 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5874 if test "$lt_cv_path_NM" != "no"; then
5875   NM="$lt_cv_path_NM"
5876 else
5877   # Didn't find any BSD compatible name lister, look for dumpbin.
5878   if test -n "$ac_tool_prefix"; then
5879   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5880   do
5881     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5882 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5883 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5884 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5885 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
5886   echo $ECHO_N "(cached) $ECHO_C" >&6
5887 else
5888   if test -n "$DUMPBIN"; then
5889   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5890 else
5891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5892 for as_dir in $PATH
5893 do
5894   IFS=$as_save_IFS
5895   test -z "$as_dir" && as_dir=.
5896   for ac_exec_ext in '' $ac_executable_extensions; do
5897   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5898     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5899     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5900     break 2
5901   fi
5902 done
5903 done
5904 IFS=$as_save_IFS
5905
5906 fi
5907 fi
5908 DUMPBIN=$ac_cv_prog_DUMPBIN
5909 if test -n "$DUMPBIN"; then
5910   { echo "$as_me:$LINENO: result: $DUMPBIN" >&5
5911 echo "${ECHO_T}$DUMPBIN" >&6; }
5912 else
5913   { echo "$as_me:$LINENO: result: no" >&5
5914 echo "${ECHO_T}no" >&6; }
5915 fi
5916
5917
5918     test -n "$DUMPBIN" && break
5919   done
5920 fi
5921 if test -z "$DUMPBIN"; then
5922   ac_ct_DUMPBIN=$DUMPBIN
5923   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5924 do
5925   # Extract the first word of "$ac_prog", so it can be a program name with args.
5926 set dummy $ac_prog; ac_word=$2
5927 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5928 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5929 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
5930   echo $ECHO_N "(cached) $ECHO_C" >&6
5931 else
5932   if test -n "$ac_ct_DUMPBIN"; then
5933   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5934 else
5935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5936 for as_dir in $PATH
5937 do
5938   IFS=$as_save_IFS
5939   test -z "$as_dir" && as_dir=.
5940   for ac_exec_ext in '' $ac_executable_extensions; do
5941   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5942     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5943     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5944     break 2
5945   fi
5946 done
5947 done
5948 IFS=$as_save_IFS
5949
5950 fi
5951 fi
5952 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5953 if test -n "$ac_ct_DUMPBIN"; then
5954   { echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
5955 echo "${ECHO_T}$ac_ct_DUMPBIN" >&6; }
5956 else
5957   { echo "$as_me:$LINENO: result: no" >&5
5958 echo "${ECHO_T}no" >&6; }
5959 fi
5960
5961
5962   test -n "$ac_ct_DUMPBIN" && break
5963 done
5964
5965   if test "x$ac_ct_DUMPBIN" = x; then
5966     DUMPBIN=":"
5967   else
5968     case $cross_compiling:$ac_tool_warned in
5969 yes:)
5970 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5971 whose name does not start with the host triplet.  If you think this
5972 configuration is useful to you, please write to autoconf@gnu.org." >&5
5973 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5974 whose name does not start with the host triplet.  If you think this
5975 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5976 ac_tool_warned=yes ;;
5977 esac
5978     DUMPBIN=$ac_ct_DUMPBIN
5979   fi
5980 fi
5981
5982
5983   if test "$DUMPBIN" != ":"; then
5984     NM="$DUMPBIN"
5985   fi
5986 fi
5987 test -z "$NM" && NM=nm
5988
5989
5990
5991
5992
5993
5994 { echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
5995 echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6; }
5996 if test "${lt_cv_nm_interface+set}" = set; then
5997   echo $ECHO_N "(cached) $ECHO_C" >&6
5998 else
5999   lt_cv_nm_interface="BSD nm"
6000   echo "int some_variable = 0;" > conftest.$ac_ext
6001   (eval echo "\"\$as_me:6001: $ac_compile\"" >&5)
6002   (eval "$ac_compile" 2>conftest.err)
6003   cat conftest.err >&5
6004   (eval echo "\"\$as_me:6004: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6005   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6006   cat conftest.err >&5
6007   (eval echo "\"\$as_me:6007: output\"" >&5)
6008   cat conftest.out >&5
6009   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6010     lt_cv_nm_interface="MS dumpbin"
6011   fi
6012   rm -f conftest*
6013 fi
6014 { echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
6015 echo "${ECHO_T}$lt_cv_nm_interface" >&6; }
6016
6017 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6018 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6019 LN_S=$as_ln_s
6020 if test "$LN_S" = "ln -s"; then
6021   { echo "$as_me:$LINENO: result: yes" >&5
6022 echo "${ECHO_T}yes" >&6; }
6023 else
6024   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6025 echo "${ECHO_T}no, using $LN_S" >&6; }
6026 fi
6027
6028 # find the maximum length of command line arguments
6029 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6030 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6031 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6032   echo $ECHO_N "(cached) $ECHO_C" >&6
6033 else
6034     i=0
6035   teststring="ABCD"
6036
6037   case $build_os in
6038   msdosdjgpp*)
6039     # On DJGPP, this test can blow up pretty badly due to problems in libc
6040     # (any single argument exceeding 2000 bytes causes a buffer overrun
6041     # during glob expansion).  Even if it were fixed, the result of this
6042     # check would be larger than it should be.
6043     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6044     ;;
6045
6046   gnu*)
6047     # Under GNU Hurd, this test is not required because there is
6048     # no limit to the length of command line arguments.
6049     # Libtool will interpret -1 as no limit whatsoever
6050     lt_cv_sys_max_cmd_len=-1;
6051     ;;
6052
6053   cygwin* | mingw* | cegcc*)
6054     # On Win9x/ME, this test blows up -- it succeeds, but takes
6055     # about 5 minutes as the teststring grows exponentially.
6056     # Worse, since 9x/ME are not pre-emptively multitasking,
6057     # you end up with a "frozen" computer, even though with patience
6058     # the test eventually succeeds (with a max line length of 256k).
6059     # Instead, let's just punt: use the minimum linelength reported by
6060     # all of the supported platforms: 8192 (on NT/2K/XP).
6061     lt_cv_sys_max_cmd_len=8192;
6062     ;;
6063
6064   amigaos*)
6065     # On AmigaOS with pdksh, this test takes hours, literally.
6066     # So we just punt and use a minimum line length of 8192.
6067     lt_cv_sys_max_cmd_len=8192;
6068     ;;
6069
6070   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6071     # This has been around since 386BSD, at least.  Likely further.
6072     if test -x /sbin/sysctl; then
6073       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6074     elif test -x /usr/sbin/sysctl; then
6075       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6076     else
6077       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6078     fi
6079     # And add a safety zone
6080     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6081     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6082     ;;
6083
6084   interix*)
6085     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6086     lt_cv_sys_max_cmd_len=196608
6087     ;;
6088
6089   osf*)
6090     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6091     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6092     # nice to cause kernel panics so lets avoid the loop below.
6093     # First set a reasonable default.
6094     lt_cv_sys_max_cmd_len=16384
6095     #
6096     if test -x /sbin/sysconfig; then
6097       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6098         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6099       esac
6100     fi
6101     ;;
6102   sco3.2v5*)
6103     lt_cv_sys_max_cmd_len=102400
6104     ;;
6105   sysv5* | sco5v6* | sysv4.2uw2*)
6106     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6107     if test -n "$kargmax"; then
6108       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
6109     else
6110       lt_cv_sys_max_cmd_len=32768
6111     fi
6112     ;;
6113   *)
6114     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6115     if test -n "$lt_cv_sys_max_cmd_len"; then
6116       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6117       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6118     else
6119       # Make teststring a little bigger before we do anything with it.
6120       # a 1K string should be a reasonable start.
6121       for i in 1 2 3 4 5 6 7 8 ; do
6122         teststring=$teststring$teststring
6123       done
6124       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6125       # If test is not a shell built-in, we'll probably end up computing a
6126       # maximum length that is only half of the actual maximum length, but
6127       # we can't tell.
6128       while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
6129                  = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
6130               test $i != 17 # 1/2 MB should be enough
6131       do
6132         i=`expr $i + 1`
6133         teststring=$teststring$teststring
6134       done
6135       # Only check the string length outside the loop.
6136       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6137       teststring=
6138       # Add a significant safety factor because C++ compilers can tack on
6139       # massive amounts of additional arguments before passing them to the
6140       # linker.  It appears as though 1/2 is a usable value.
6141       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6142     fi
6143     ;;
6144   esac
6145
6146 fi
6147
6148 if test -n $lt_cv_sys_max_cmd_len ; then
6149   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6150 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6151 else
6152   { echo "$as_me:$LINENO: result: none" >&5
6153 echo "${ECHO_T}none" >&6; }
6154 fi
6155 max_cmd_len=$lt_cv_sys_max_cmd_len
6156
6157
6158
6159
6160
6161
6162 : ${CP="cp -f"}
6163 : ${MV="mv -f"}
6164 : ${RM="rm -f"}
6165
6166 { echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
6167 echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6; }
6168 # Try some XSI features
6169 xsi_shell=no
6170 ( _lt_dummy="a/b/c"
6171   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6172       = c,a/b,, \
6173     && eval 'test $(( 1 + 1 )) -eq 2 \
6174     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6175   && xsi_shell=yes
6176 { echo "$as_me:$LINENO: result: $xsi_shell" >&5
6177 echo "${ECHO_T}$xsi_shell" >&6; }
6178
6179
6180 { echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
6181 echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6; }
6182 lt_shell_append=no
6183 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6184     >/dev/null 2>&1 \
6185   && lt_shell_append=yes
6186 { echo "$as_me:$LINENO: result: $lt_shell_append" >&5
6187 echo "${ECHO_T}$lt_shell_append" >&6; }
6188
6189
6190 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6191   lt_unset=unset
6192 else
6193   lt_unset=false
6194 fi
6195
6196
6197
6198
6199
6200 # test EBCDIC or ASCII
6201 case `echo X|tr X '\101'` in
6202  A) # ASCII based system
6203     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6204   lt_SP2NL='tr \040 \012'
6205   lt_NL2SP='tr \015\012 \040\040'
6206   ;;
6207  *) # EBCDIC based system
6208   lt_SP2NL='tr \100 \n'
6209   lt_NL2SP='tr \r\n \100\100'
6210   ;;
6211 esac
6212
6213
6214
6215
6216
6217
6218
6219
6220
6221 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6222 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
6223 if test "${lt_cv_ld_reload_flag+set}" = set; then
6224   echo $ECHO_N "(cached) $ECHO_C" >&6
6225 else
6226   lt_cv_ld_reload_flag='-r'
6227 fi
6228 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6229 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
6230 reload_flag=$lt_cv_ld_reload_flag
6231 case $reload_flag in
6232 "" | " "*) ;;
6233 *) reload_flag=" $reload_flag" ;;
6234 esac
6235 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6236 case $host_os in
6237   darwin*)
6238     if test "$GCC" = yes; then
6239       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6240     else
6241       reload_cmds='$LD$reload_flag -o $output$reload_objs'
6242     fi
6243     ;;
6244 esac
6245
6246
6247
6248
6249
6250
6251
6252
6253
6254 if test -n "$ac_tool_prefix"; then
6255   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6256 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6257 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6258 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6259 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
6260   echo $ECHO_N "(cached) $ECHO_C" >&6
6261 else
6262   if test -n "$OBJDUMP"; then
6263   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6264 else
6265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6266 for as_dir in $PATH
6267 do
6268   IFS=$as_save_IFS
6269   test -z "$as_dir" && as_dir=.
6270   for ac_exec_ext in '' $ac_executable_extensions; do
6271   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6272     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6273     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6274     break 2
6275   fi
6276 done
6277 done
6278 IFS=$as_save_IFS
6279
6280 fi
6281 fi
6282 OBJDUMP=$ac_cv_prog_OBJDUMP
6283 if test -n "$OBJDUMP"; then
6284   { echo "$as_me:$LINENO: result: $OBJDUMP" >&5
6285 echo "${ECHO_T}$OBJDUMP" >&6; }
6286 else
6287   { echo "$as_me:$LINENO: result: no" >&5
6288 echo "${ECHO_T}no" >&6; }
6289 fi
6290
6291
6292 fi
6293 if test -z "$ac_cv_prog_OBJDUMP"; then
6294   ac_ct_OBJDUMP=$OBJDUMP
6295   # Extract the first word of "objdump", so it can be a program name with args.
6296 set dummy objdump; ac_word=$2
6297 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6298 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6299 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
6300   echo $ECHO_N "(cached) $ECHO_C" >&6
6301 else
6302   if test -n "$ac_ct_OBJDUMP"; then
6303   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6304 else
6305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6306 for as_dir in $PATH
6307 do
6308   IFS=$as_save_IFS
6309   test -z "$as_dir" && as_dir=.
6310   for ac_exec_ext in '' $ac_executable_extensions; do
6311   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6312     ac_cv_prog_ac_ct_OBJDUMP="objdump"
6313     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6314     break 2
6315   fi
6316 done
6317 done
6318 IFS=$as_save_IFS
6319
6320 fi
6321 fi
6322 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6323 if test -n "$ac_ct_OBJDUMP"; then
6324   { echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
6325 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6; }
6326 else
6327   { echo "$as_me:$LINENO: result: no" >&5
6328 echo "${ECHO_T}no" >&6; }
6329 fi
6330
6331   if test "x$ac_ct_OBJDUMP" = x; then
6332     OBJDUMP="false"
6333   else
6334     case $cross_compiling:$ac_tool_warned in
6335 yes:)
6336 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6337 whose name does not start with the host triplet.  If you think this
6338 configuration is useful to you, please write to autoconf@gnu.org." >&5
6339 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6340 whose name does not start with the host triplet.  If you think this
6341 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6342 ac_tool_warned=yes ;;
6343 esac
6344     OBJDUMP=$ac_ct_OBJDUMP
6345   fi
6346 else
6347   OBJDUMP="$ac_cv_prog_OBJDUMP"
6348 fi
6349
6350 test -z "$OBJDUMP" && OBJDUMP=objdump
6351
6352
6353
6354
6355
6356
6357
6358
6359
6360 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
6361 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
6362 if test "${lt_cv_deplibs_check_method+set}" = set; then
6363   echo $ECHO_N "(cached) $ECHO_C" >&6
6364 else
6365   lt_cv_file_magic_cmd='$MAGIC_CMD'
6366 lt_cv_file_magic_test_file=
6367 lt_cv_deplibs_check_method='unknown'
6368 # Need to set the preceding variable on all platforms that support
6369 # interlibrary dependencies.
6370 # 'none' -- dependencies not supported.
6371 # `unknown' -- same as none, but documents that we really don't know.
6372 # 'pass_all' -- all dependencies passed with no checks.
6373 # 'test_compile' -- check by making test program.
6374 # 'file_magic [[regex]]' -- check by looking for files in library path
6375 # which responds to the $file_magic_cmd with a given extended regex.
6376 # If you have `file' or equivalent on your system and you're not sure
6377 # whether `pass_all' will *always* work, you probably want this one.
6378
6379 case $host_os in
6380 aix[4-9]*)
6381   lt_cv_deplibs_check_method=pass_all
6382   ;;
6383
6384 beos*)
6385   lt_cv_deplibs_check_method=pass_all
6386   ;;
6387
6388 bsdi[45]*)
6389   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6390   lt_cv_file_magic_cmd='/usr/bin/file -L'
6391   lt_cv_file_magic_test_file=/shlib/libc.so
6392   ;;
6393
6394 cygwin*)
6395   # func_win32_libid is a shell function defined in ltmain.sh
6396   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6397   lt_cv_file_magic_cmd='func_win32_libid'
6398   ;;
6399
6400 mingw* | pw32*)
6401   # Base MSYS/MinGW do not provide the 'file' command needed by
6402   # func_win32_libid shell function, so use a weaker test based on 'objdump',
6403   # unless we find 'file', for example because we are cross-compiling.
6404   if ( file / ) >/dev/null 2>&1; then
6405     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6406     lt_cv_file_magic_cmd='func_win32_libid'
6407   else
6408     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6409     lt_cv_file_magic_cmd='$OBJDUMP -f'
6410   fi
6411   ;;
6412
6413 cegcc)
6414   # use the weaker test based on 'objdump'. See mingw*.
6415   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6416   lt_cv_file_magic_cmd='$OBJDUMP -f'
6417   ;;
6418
6419 darwin* | rhapsody*)
6420   lt_cv_deplibs_check_method=pass_all
6421   ;;
6422
6423 freebsd* | dragonfly*)
6424   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6425     case $host_cpu in
6426     i*86 )
6427       # Not sure whether the presence of OpenBSD here was a mistake.
6428       # Let's accept both of them until this is cleared up.
6429       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6430       lt_cv_file_magic_cmd=/usr/bin/file
6431       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6432       ;;
6433     esac
6434   else
6435     lt_cv_deplibs_check_method=pass_all
6436   fi
6437   ;;
6438
6439 gnu*)
6440   lt_cv_deplibs_check_method=pass_all
6441   ;;
6442
6443 hpux10.20* | hpux11*)
6444   lt_cv_file_magic_cmd=/usr/bin/file
6445   case $host_cpu in
6446   ia64*)
6447     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6448     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6449     ;;
6450   hppa*64*)
6451     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]'
6452     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6453     ;;
6454   *)
6455     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6456     lt_cv_file_magic_test_file=/usr/lib/libc.sl
6457     ;;
6458   esac
6459   ;;
6460
6461 interix[3-9]*)
6462   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6463   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6464   ;;
6465
6466 irix5* | irix6* | nonstopux*)
6467   case $LD in
6468   *-32|*"-32 ") libmagic=32-bit;;
6469   *-n32|*"-n32 ") libmagic=N32;;
6470   *-64|*"-64 ") libmagic=64-bit;;
6471   *) libmagic=never-match;;
6472   esac
6473   lt_cv_deplibs_check_method=pass_all
6474   ;;
6475
6476 # This must be Linux ELF.
6477 linux* | k*bsd*-gnu)
6478   lt_cv_deplibs_check_method=pass_all
6479   ;;
6480
6481 netbsd*)
6482   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6483     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6484   else
6485     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6486   fi
6487   ;;
6488
6489 newos6*)
6490   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6491   lt_cv_file_magic_cmd=/usr/bin/file
6492   lt_cv_file_magic_test_file=/usr/lib/libnls.so
6493   ;;
6494
6495 *nto* | *qnx*)
6496   lt_cv_deplibs_check_method=pass_all
6497   ;;
6498
6499 openbsd*)
6500   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6501     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6502   else
6503     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6504   fi
6505   ;;
6506
6507 osf3* | osf4* | osf5*)
6508   lt_cv_deplibs_check_method=pass_all
6509   ;;
6510
6511 rdos*)
6512   lt_cv_deplibs_check_method=pass_all
6513   ;;
6514
6515 solaris*)
6516   lt_cv_deplibs_check_method=pass_all
6517   ;;
6518
6519 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6520   lt_cv_deplibs_check_method=pass_all
6521   ;;
6522
6523 sysv4 | sysv4.3*)
6524   case $host_vendor in
6525   motorola)
6526     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]'
6527     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6528     ;;
6529   ncr)
6530     lt_cv_deplibs_check_method=pass_all
6531     ;;
6532   sequent)
6533     lt_cv_file_magic_cmd='/bin/file'
6534     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6535     ;;
6536   sni)
6537     lt_cv_file_magic_cmd='/bin/file'
6538     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6539     lt_cv_file_magic_test_file=/lib/libc.so
6540     ;;
6541   siemens)
6542     lt_cv_deplibs_check_method=pass_all
6543     ;;
6544   pc)
6545     lt_cv_deplibs_check_method=pass_all
6546     ;;
6547   esac
6548   ;;
6549
6550 tpf*)
6551   lt_cv_deplibs_check_method=pass_all
6552   ;;
6553 esac
6554
6555 fi
6556 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6557 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
6558 file_magic_cmd=$lt_cv_file_magic_cmd
6559 deplibs_check_method=$lt_cv_deplibs_check_method
6560 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6561
6562
6563
6564
6565
6566
6567
6568
6569
6570
6571
6572
6573 if test -n "$ac_tool_prefix"; then
6574   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6575 set dummy ${ac_tool_prefix}ar; ac_word=$2
6576 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6577 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6578 if test "${ac_cv_prog_AR+set}" = set; then
6579   echo $ECHO_N "(cached) $ECHO_C" >&6
6580 else
6581   if test -n "$AR"; then
6582   ac_cv_prog_AR="$AR" # Let the user override the test.
6583 else
6584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6585 for as_dir in $PATH
6586 do
6587   IFS=$as_save_IFS
6588   test -z "$as_dir" && as_dir=.
6589   for ac_exec_ext in '' $ac_executable_extensions; do
6590   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6591     ac_cv_prog_AR="${ac_tool_prefix}ar"
6592     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6593     break 2
6594   fi
6595 done
6596 done
6597 IFS=$as_save_IFS
6598
6599 fi
6600 fi
6601 AR=$ac_cv_prog_AR
6602 if test -n "$AR"; then
6603   { echo "$as_me:$LINENO: result: $AR" >&5
6604 echo "${ECHO_T}$AR" >&6; }
6605 else
6606   { echo "$as_me:$LINENO: result: no" >&5
6607 echo "${ECHO_T}no" >&6; }
6608 fi
6609
6610
6611 fi
6612 if test -z "$ac_cv_prog_AR"; then
6613   ac_ct_AR=$AR
6614   # Extract the first word of "ar", so it can be a program name with args.
6615 set dummy ar; ac_word=$2
6616 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6617 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6618 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6619   echo $ECHO_N "(cached) $ECHO_C" >&6
6620 else
6621   if test -n "$ac_ct_AR"; then
6622   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6623 else
6624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6625 for as_dir in $PATH
6626 do
6627   IFS=$as_save_IFS
6628   test -z "$as_dir" && as_dir=.
6629   for ac_exec_ext in '' $ac_executable_extensions; do
6630   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6631     ac_cv_prog_ac_ct_AR="ar"
6632     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6633     break 2
6634   fi
6635 done
6636 done
6637 IFS=$as_save_IFS
6638
6639 fi
6640 fi
6641 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6642 if test -n "$ac_ct_AR"; then
6643   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6644 echo "${ECHO_T}$ac_ct_AR" >&6; }
6645 else
6646   { echo "$as_me:$LINENO: result: no" >&5
6647 echo "${ECHO_T}no" >&6; }
6648 fi
6649
6650   if test "x$ac_ct_AR" = x; then
6651     AR="false"
6652   else
6653     case $cross_compiling:$ac_tool_warned in
6654 yes:)
6655 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6656 whose name does not start with the host triplet.  If you think this
6657 configuration is useful to you, please write to autoconf@gnu.org." >&5
6658 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6659 whose name does not start with the host triplet.  If you think this
6660 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6661 ac_tool_warned=yes ;;
6662 esac
6663     AR=$ac_ct_AR
6664   fi
6665 else
6666   AR="$ac_cv_prog_AR"
6667 fi
6668
6669 test -z "$AR" && AR=ar
6670 test -z "$AR_FLAGS" && AR_FLAGS=cru
6671
6672
6673
6674
6675
6676
6677
6678
6679
6680
6681
6682 if test -n "$ac_tool_prefix"; then
6683   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6684 set dummy ${ac_tool_prefix}strip; ac_word=$2
6685 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6686 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6687 if test "${ac_cv_prog_STRIP+set}" = set; then
6688   echo $ECHO_N "(cached) $ECHO_C" >&6
6689 else
6690   if test -n "$STRIP"; then
6691   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6692 else
6693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6694 for as_dir in $PATH
6695 do
6696   IFS=$as_save_IFS
6697   test -z "$as_dir" && as_dir=.
6698   for ac_exec_ext in '' $ac_executable_extensions; do
6699   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6700     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6701     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6702     break 2
6703   fi
6704 done
6705 done
6706 IFS=$as_save_IFS
6707
6708 fi
6709 fi
6710 STRIP=$ac_cv_prog_STRIP
6711 if test -n "$STRIP"; then
6712   { echo "$as_me:$LINENO: result: $STRIP" >&5
6713 echo "${ECHO_T}$STRIP" >&6; }
6714 else
6715   { echo "$as_me:$LINENO: result: no" >&5
6716 echo "${ECHO_T}no" >&6; }
6717 fi
6718
6719
6720 fi
6721 if test -z "$ac_cv_prog_STRIP"; then
6722   ac_ct_STRIP=$STRIP
6723   # Extract the first word of "strip", so it can be a program name with args.
6724 set dummy strip; ac_word=$2
6725 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6726 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6727 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6728   echo $ECHO_N "(cached) $ECHO_C" >&6
6729 else
6730   if test -n "$ac_ct_STRIP"; then
6731   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6732 else
6733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6734 for as_dir in $PATH
6735 do
6736   IFS=$as_save_IFS
6737   test -z "$as_dir" && as_dir=.
6738   for ac_exec_ext in '' $ac_executable_extensions; do
6739   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6740     ac_cv_prog_ac_ct_STRIP="strip"
6741     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6742     break 2
6743   fi
6744 done
6745 done
6746 IFS=$as_save_IFS
6747
6748 fi
6749 fi
6750 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6751 if test -n "$ac_ct_STRIP"; then
6752   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6753 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6754 else
6755   { echo "$as_me:$LINENO: result: no" >&5
6756 echo "${ECHO_T}no" >&6; }
6757 fi
6758
6759   if test "x$ac_ct_STRIP" = x; then
6760     STRIP=":"
6761   else
6762     case $cross_compiling:$ac_tool_warned in
6763 yes:)
6764 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6765 whose name does not start with the host triplet.  If you think this
6766 configuration is useful to you, please write to autoconf@gnu.org." >&5
6767 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6768 whose name does not start with the host triplet.  If you think this
6769 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6770 ac_tool_warned=yes ;;
6771 esac
6772     STRIP=$ac_ct_STRIP
6773   fi
6774 else
6775   STRIP="$ac_cv_prog_STRIP"
6776 fi
6777
6778 test -z "$STRIP" && STRIP=:
6779
6780
6781
6782
6783
6784
6785 if test -n "$ac_tool_prefix"; then
6786   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6787 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6788 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6789 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6790 if test "${ac_cv_prog_RANLIB+set}" = set; then
6791   echo $ECHO_N "(cached) $ECHO_C" >&6
6792 else
6793   if test -n "$RANLIB"; then
6794   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6795 else
6796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6797 for as_dir in $PATH
6798 do
6799   IFS=$as_save_IFS
6800   test -z "$as_dir" && as_dir=.
6801   for ac_exec_ext in '' $ac_executable_extensions; do
6802   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6803     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6804     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6805     break 2
6806   fi
6807 done
6808 done
6809 IFS=$as_save_IFS
6810
6811 fi
6812 fi
6813 RANLIB=$ac_cv_prog_RANLIB
6814 if test -n "$RANLIB"; then
6815   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6816 echo "${ECHO_T}$RANLIB" >&6; }
6817 else
6818   { echo "$as_me:$LINENO: result: no" >&5
6819 echo "${ECHO_T}no" >&6; }
6820 fi
6821
6822
6823 fi
6824 if test -z "$ac_cv_prog_RANLIB"; then
6825   ac_ct_RANLIB=$RANLIB
6826   # Extract the first word of "ranlib", so it can be a program name with args.
6827 set dummy ranlib; ac_word=$2
6828 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6829 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6830 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6831   echo $ECHO_N "(cached) $ECHO_C" >&6
6832 else
6833   if test -n "$ac_ct_RANLIB"; then
6834   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6835 else
6836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6837 for as_dir in $PATH
6838 do
6839   IFS=$as_save_IFS
6840   test -z "$as_dir" && as_dir=.
6841   for ac_exec_ext in '' $ac_executable_extensions; do
6842   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6843     ac_cv_prog_ac_ct_RANLIB="ranlib"
6844     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6845     break 2
6846   fi
6847 done
6848 done
6849 IFS=$as_save_IFS
6850
6851 fi
6852 fi
6853 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6854 if test -n "$ac_ct_RANLIB"; then
6855   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6856 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6857 else
6858   { echo "$as_me:$LINENO: result: no" >&5
6859 echo "${ECHO_T}no" >&6; }
6860 fi
6861
6862   if test "x$ac_ct_RANLIB" = x; then
6863     RANLIB=":"
6864   else
6865     case $cross_compiling:$ac_tool_warned in
6866 yes:)
6867 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6868 whose name does not start with the host triplet.  If you think this
6869 configuration is useful to you, please write to autoconf@gnu.org." >&5
6870 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6871 whose name does not start with the host triplet.  If you think this
6872 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6873 ac_tool_warned=yes ;;
6874 esac
6875     RANLIB=$ac_ct_RANLIB
6876   fi
6877 else
6878   RANLIB="$ac_cv_prog_RANLIB"
6879 fi
6880
6881 test -z "$RANLIB" && RANLIB=:
6882
6883
6884
6885
6886
6887
6888 # Determine commands to create old-style static archives.
6889 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6890 old_postinstall_cmds='chmod 644 $oldlib'
6891 old_postuninstall_cmds=
6892
6893 if test -n "$RANLIB"; then
6894   case $host_os in
6895   openbsd*)
6896     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6897     ;;
6898   *)
6899     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6900     ;;
6901   esac
6902   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6903 fi
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
6935
6936
6937
6938 # If no C compiler was specified, use CC.
6939 LTCC=${LTCC-"$CC"}
6940
6941 # If no C compiler flags were specified, use CFLAGS.
6942 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6943
6944 # Allow CC to be a program name with arguments.
6945 compiler=$CC
6946
6947
6948 # Check for command to grab the raw symbol name followed by C symbol from nm.
6949 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6950 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6951 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6952   echo $ECHO_N "(cached) $ECHO_C" >&6
6953 else
6954
6955 # These are sane defaults that work on at least a few old systems.
6956 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6957
6958 # Character class describing NM global symbol codes.
6959 symcode='[BCDEGRST]'
6960
6961 # Regexp to match symbols that can be accessed directly from C.
6962 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6963
6964 # Define system-specific variables.
6965 case $host_os in
6966 aix*)
6967   symcode='[BCDT]'
6968   ;;
6969 cygwin* | mingw* | pw32* | cegcc*)
6970   symcode='[ABCDGISTW]'
6971   ;;
6972 hpux*)
6973   if test "$host_cpu" = ia64; then
6974     symcode='[ABCDEGRST]'
6975   fi
6976   ;;
6977 irix* | nonstopux*)
6978   symcode='[BCDEGRST]'
6979   ;;
6980 osf*)
6981   symcode='[BCDEGQRST]'
6982   ;;
6983 solaris*)
6984   symcode='[BDRT]'
6985   ;;
6986 sco3.2v5*)
6987   symcode='[DT]'
6988   ;;
6989 sysv4.2uw2*)
6990   symcode='[DT]'
6991   ;;
6992 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6993   symcode='[ABDT]'
6994   ;;
6995 sysv4)
6996   symcode='[DFNSTU]'
6997   ;;
6998 esac
6999
7000 # If we're using GNU nm, then use its standard symbol codes.
7001 case `$NM -V 2>&1` in
7002 *GNU* | *'with BFD'*)
7003   symcode='[ABCDGIRSTW]' ;;
7004 esac
7005
7006 # Transform an extracted symbol line into a proper C declaration.
7007 # Some systems (esp. on ia64) link data and code symbols differently,
7008 # so use this general approach.
7009 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7010
7011 # Transform an extracted symbol line into symbol name and symbol address
7012 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
7013 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'"
7014
7015 # Handle CRLF in mingw tool chain
7016 opt_cr=
7017 case $build_os in
7018 mingw*)
7019   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7020   ;;
7021 esac
7022
7023 # Try without a prefix underscore, then with it.
7024 for ac_symprfx in "" "_"; do
7025
7026   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7027   symxfrm="\\1 $ac_symprfx\\2 \\2"
7028
7029   # Write the raw and C identifiers.
7030   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7031     # Fake it for dumpbin and say T for any non-static function
7032     # and D for any global variable.
7033     # Also find C++ and __fastcall symbols from MSVC++,
7034     # which start with @ or ?.
7035     lt_cv_sys_global_symbol_pipe="$AWK '"\
7036 "     {last_section=section; section=\$ 3};"\
7037 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7038 "     \$ 0!~/External *\|/{next};"\
7039 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7040 "     {if(hide[section]) next};"\
7041 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7042 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7043 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
7044 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7045 "     ' prfx=^$ac_symprfx"
7046   else
7047     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7048   fi
7049
7050   # Check to see that the pipe works correctly.
7051   pipe_works=no
7052
7053   rm -f conftest*
7054   cat > conftest.$ac_ext <<_LT_EOF
7055 #ifdef __cplusplus
7056 extern "C" {
7057 #endif
7058 char nm_test_var;
7059 void nm_test_func(void);
7060 void nm_test_func(void){}
7061 #ifdef __cplusplus
7062 }
7063 #endif
7064 int main(){nm_test_var='a';nm_test_func();return(0);}
7065 _LT_EOF
7066
7067   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7068   (eval $ac_compile) 2>&5
7069   ac_status=$?
7070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7071   (exit $ac_status); }; then
7072     # Now try to grab the symbols.
7073     nlist=conftest.nm
7074     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7075   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7076   ac_status=$?
7077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7078   (exit $ac_status); } && test -s "$nlist"; then
7079       # Try sorting and uniquifying the output.
7080       if sort "$nlist" | uniq > "$nlist"T; then
7081         mv -f "$nlist"T "$nlist"
7082       else
7083         rm -f "$nlist"T
7084       fi
7085
7086       # Make sure that we snagged all the symbols we need.
7087       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7088         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7089           cat <<_LT_EOF > conftest.$ac_ext
7090 #ifdef __cplusplus
7091 extern "C" {
7092 #endif
7093
7094 _LT_EOF
7095           # Now generate the symbol file.
7096           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7097
7098           cat <<_LT_EOF >> conftest.$ac_ext
7099
7100 /* The mapping between symbol names and symbols.  */
7101 const struct {
7102   const char *name;
7103   void       *address;
7104 }
7105 lt__PROGRAM__LTX_preloaded_symbols[] =
7106 {
7107   { "@PROGRAM@", (void *) 0 },
7108 _LT_EOF
7109           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7110           cat <<\_LT_EOF >> conftest.$ac_ext
7111   {0, (void *) 0}
7112 };
7113
7114 /* This works around a problem in FreeBSD linker */
7115 #ifdef FREEBSD_WORKAROUND
7116 static const void *lt_preloaded_setup() {
7117   return lt__PROGRAM__LTX_preloaded_symbols;
7118 }
7119 #endif
7120
7121 #ifdef __cplusplus
7122 }
7123 #endif
7124 _LT_EOF
7125           # Now try linking the two files.
7126           mv conftest.$ac_objext conftstm.$ac_objext
7127           lt_save_LIBS="$LIBS"
7128           lt_save_CFLAGS="$CFLAGS"
7129           LIBS="conftstm.$ac_objext"
7130           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7131           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7132   (eval $ac_link) 2>&5
7133   ac_status=$?
7134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7135   (exit $ac_status); } && test -s conftest${ac_exeext}; then
7136             pipe_works=yes
7137           fi
7138           LIBS="$lt_save_LIBS"
7139           CFLAGS="$lt_save_CFLAGS"
7140         else
7141           echo "cannot find nm_test_func in $nlist" >&5
7142         fi
7143       else
7144         echo "cannot find nm_test_var in $nlist" >&5
7145       fi
7146     else
7147       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7148     fi
7149   else
7150     echo "$progname: failed program was:" >&5
7151     cat conftest.$ac_ext >&5
7152   fi
7153   rm -rf conftest* conftst*
7154
7155   # Do not use the global_symbol_pipe unless it works.
7156   if test "$pipe_works" = yes; then
7157     break
7158   else
7159     lt_cv_sys_global_symbol_pipe=
7160   fi
7161 done
7162
7163 fi
7164
7165 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7166   lt_cv_sys_global_symbol_to_cdecl=
7167 fi
7168 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7169   { echo "$as_me:$LINENO: result: failed" >&5
7170 echo "${ECHO_T}failed" >&6; }
7171 else
7172   { echo "$as_me:$LINENO: result: ok" >&5
7173 echo "${ECHO_T}ok" >&6; }
7174 fi
7175
7176
7177
7178
7179
7180
7181
7182
7183
7184
7185
7186
7187
7188
7189
7190
7191
7192
7193
7194
7195
7196
7197 # Check whether --enable-libtool-lock was given.
7198 if test "${enable_libtool_lock+set}" = set; then
7199   enableval=$enable_libtool_lock;
7200 fi
7201
7202 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7203
7204 # Some flags need to be propagated to the compiler or linker for good
7205 # libtool support.
7206 case $host in
7207 ia64-*-hpux*)
7208   # Find out which ABI we are using.
7209   echo 'int i;' > conftest.$ac_ext
7210   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7211   (eval $ac_compile) 2>&5
7212   ac_status=$?
7213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7214   (exit $ac_status); }; then
7215     case `/usr/bin/file conftest.$ac_objext` in
7216       *ELF-32*)
7217         HPUX_IA64_MODE="32"
7218         ;;
7219       *ELF-64*)
7220         HPUX_IA64_MODE="64"
7221         ;;
7222     esac
7223   fi
7224   rm -rf conftest*
7225   ;;
7226 *-*-irix6*)
7227   # Find out which ABI we are using.
7228   echo '#line 7228 "configure"' > conftest.$ac_ext
7229   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7230   (eval $ac_compile) 2>&5
7231   ac_status=$?
7232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7233   (exit $ac_status); }; then
7234     if test "$lt_cv_prog_gnu_ld" = yes; then
7235       case `/usr/bin/file conftest.$ac_objext` in
7236         *32-bit*)
7237           LD="${LD-ld} -melf32bsmip"
7238           ;;
7239         *N32*)
7240           LD="${LD-ld} -melf32bmipn32"
7241           ;;
7242         *64-bit*)
7243           LD="${LD-ld} -melf64bmip"
7244         ;;
7245       esac
7246     else
7247       case `/usr/bin/file conftest.$ac_objext` in
7248         *32-bit*)
7249           LD="${LD-ld} -32"
7250           ;;
7251         *N32*)
7252           LD="${LD-ld} -n32"
7253           ;;
7254         *64-bit*)
7255           LD="${LD-ld} -64"
7256           ;;
7257       esac
7258     fi
7259   fi
7260   rm -rf conftest*
7261   ;;
7262
7263 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7264 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7265   # Find out which ABI we are using.
7266   echo 'int i;' > conftest.$ac_ext
7267   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7268   (eval $ac_compile) 2>&5
7269   ac_status=$?
7270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7271   (exit $ac_status); }; then
7272     case `/usr/bin/file conftest.o` in
7273       *32-bit*)
7274         case $host in
7275           x86_64-*kfreebsd*-gnu)
7276             LD="${LD-ld} -m elf_i386_fbsd"
7277             ;;
7278           x86_64-*linux*)
7279             LD="${LD-ld} -m elf_i386"
7280             ;;
7281           ppc64-*linux*|powerpc64-*linux*)
7282             LD="${LD-ld} -m elf32ppclinux"
7283             ;;
7284           s390x-*linux*)
7285             LD="${LD-ld} -m elf_s390"
7286             ;;
7287           sparc64-*linux*)
7288             LD="${LD-ld} -m elf32_sparc"
7289             ;;
7290         esac
7291         ;;
7292       *64-bit*)
7293         case $host in
7294           x86_64-*kfreebsd*-gnu)
7295             LD="${LD-ld} -m elf_x86_64_fbsd"
7296             ;;
7297           x86_64-*linux*)
7298             LD="${LD-ld} -m elf_x86_64"
7299             ;;
7300           ppc*-*linux*|powerpc*-*linux*)
7301             LD="${LD-ld} -m elf64ppc"
7302             ;;
7303           s390*-*linux*|s390*-*tpf*)
7304             LD="${LD-ld} -m elf64_s390"
7305             ;;
7306           sparc*-*linux*)
7307             LD="${LD-ld} -m elf64_sparc"
7308             ;;
7309         esac
7310         ;;
7311     esac
7312   fi
7313   rm -rf conftest*
7314   ;;
7315
7316 *-*-sco3.2v5*)
7317   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7318   SAVE_CFLAGS="$CFLAGS"
7319   CFLAGS="$CFLAGS -belf"
7320   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
7321 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
7322 if test "${lt_cv_cc_needs_belf+set}" = set; then
7323   echo $ECHO_N "(cached) $ECHO_C" >&6
7324 else
7325   ac_ext=c
7326 ac_cpp='$CPP $CPPFLAGS'
7327 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7328 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7329 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7330
7331      cat >conftest.$ac_ext <<_ACEOF
7332 /* confdefs.h.  */
7333 _ACEOF
7334 cat confdefs.h >>conftest.$ac_ext
7335 cat >>conftest.$ac_ext <<_ACEOF
7336 /* end confdefs.h.  */
7337
7338 int
7339 main ()
7340 {
7341
7342   ;
7343   return 0;
7344 }
7345 _ACEOF
7346 rm -f conftest.$ac_objext conftest$ac_exeext
7347 if { (ac_try="$ac_link"
7348 case "(($ac_try" in
7349   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7350   *) ac_try_echo=$ac_try;;
7351 esac
7352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7353   (eval "$ac_link") 2>conftest.er1
7354   ac_status=$?
7355   grep -v '^ *+' conftest.er1 >conftest.err
7356   rm -f conftest.er1
7357   cat conftest.err >&5
7358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7359   (exit $ac_status); } && {
7360          test -z "$ac_c_werror_flag" ||
7361          test ! -s conftest.err
7362        } && test -s conftest$ac_exeext &&
7363        $as_test_x conftest$ac_exeext; then
7364   lt_cv_cc_needs_belf=yes
7365 else
7366   echo "$as_me: failed program was:" >&5
7367 sed 's/^/| /' conftest.$ac_ext >&5
7368
7369         lt_cv_cc_needs_belf=no
7370 fi
7371
7372 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7373       conftest$ac_exeext conftest.$ac_ext
7374      ac_ext=c
7375 ac_cpp='$CPP $CPPFLAGS'
7376 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7377 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7378 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7379
7380 fi
7381 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
7382 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
7383   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7384     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7385     CFLAGS="$SAVE_CFLAGS"
7386   fi
7387   ;;
7388 sparc*-*solaris*)
7389   # Find out which ABI we are using.
7390   echo 'int i;' > conftest.$ac_ext
7391   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7392   (eval $ac_compile) 2>&5
7393   ac_status=$?
7394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7395   (exit $ac_status); }; then
7396     case `/usr/bin/file conftest.o` in
7397     *64-bit*)
7398       case $lt_cv_prog_gnu_ld in
7399       yes*) LD="${LD-ld} -m elf64_sparc" ;;
7400       *)
7401         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7402           LD="${LD-ld} -64"
7403         fi
7404         ;;
7405       esac
7406       ;;
7407     esac
7408   fi
7409   rm -rf conftest*
7410   ;;
7411 esac
7412
7413 need_locks="$enable_libtool_lock"
7414
7415
7416   case $host_os in
7417     rhapsody* | darwin*)
7418     if test -n "$ac_tool_prefix"; then
7419   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7420 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7421 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7422 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7423 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7424   echo $ECHO_N "(cached) $ECHO_C" >&6
7425 else
7426   if test -n "$DSYMUTIL"; then
7427   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7428 else
7429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7430 for as_dir in $PATH
7431 do
7432   IFS=$as_save_IFS
7433   test -z "$as_dir" && as_dir=.
7434   for ac_exec_ext in '' $ac_executable_extensions; do
7435   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7436     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7437     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7438     break 2
7439   fi
7440 done
7441 done
7442 IFS=$as_save_IFS
7443
7444 fi
7445 fi
7446 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7447 if test -n "$DSYMUTIL"; then
7448   { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7449 echo "${ECHO_T}$DSYMUTIL" >&6; }
7450 else
7451   { echo "$as_me:$LINENO: result: no" >&5
7452 echo "${ECHO_T}no" >&6; }
7453 fi
7454
7455
7456 fi
7457 if test -z "$ac_cv_prog_DSYMUTIL"; then
7458   ac_ct_DSYMUTIL=$DSYMUTIL
7459   # Extract the first word of "dsymutil", so it can be a program name with args.
7460 set dummy dsymutil; ac_word=$2
7461 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7462 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7463 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7464   echo $ECHO_N "(cached) $ECHO_C" >&6
7465 else
7466   if test -n "$ac_ct_DSYMUTIL"; then
7467   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7468 else
7469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7470 for as_dir in $PATH
7471 do
7472   IFS=$as_save_IFS
7473   test -z "$as_dir" && as_dir=.
7474   for ac_exec_ext in '' $ac_executable_extensions; do
7475   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7476     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7477     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7478     break 2
7479   fi
7480 done
7481 done
7482 IFS=$as_save_IFS
7483
7484 fi
7485 fi
7486 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7487 if test -n "$ac_ct_DSYMUTIL"; then
7488   { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7489 echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
7490 else
7491   { echo "$as_me:$LINENO: result: no" >&5
7492 echo "${ECHO_T}no" >&6; }
7493 fi
7494
7495   if test "x$ac_ct_DSYMUTIL" = x; then
7496     DSYMUTIL=":"
7497   else
7498     case $cross_compiling:$ac_tool_warned in
7499 yes:)
7500 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7501 whose name does not start with the host triplet.  If you think this
7502 configuration is useful to you, please write to autoconf@gnu.org." >&5
7503 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7504 whose name does not start with the host triplet.  If you think this
7505 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7506 ac_tool_warned=yes ;;
7507 esac
7508     DSYMUTIL=$ac_ct_DSYMUTIL
7509   fi
7510 else
7511   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7512 fi
7513
7514     if test -n "$ac_tool_prefix"; then
7515   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7516 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7517 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7518 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7519 if test "${ac_cv_prog_NMEDIT+set}" = set; then
7520   echo $ECHO_N "(cached) $ECHO_C" >&6
7521 else
7522   if test -n "$NMEDIT"; then
7523   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7524 else
7525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7526 for as_dir in $PATH
7527 do
7528   IFS=$as_save_IFS
7529   test -z "$as_dir" && as_dir=.
7530   for ac_exec_ext in '' $ac_executable_extensions; do
7531   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7532     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7533     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7534     break 2
7535   fi
7536 done
7537 done
7538 IFS=$as_save_IFS
7539
7540 fi
7541 fi
7542 NMEDIT=$ac_cv_prog_NMEDIT
7543 if test -n "$NMEDIT"; then
7544   { echo "$as_me:$LINENO: result: $NMEDIT" >&5
7545 echo "${ECHO_T}$NMEDIT" >&6; }
7546 else
7547   { echo "$as_me:$LINENO: result: no" >&5
7548 echo "${ECHO_T}no" >&6; }
7549 fi
7550
7551
7552 fi
7553 if test -z "$ac_cv_prog_NMEDIT"; then
7554   ac_ct_NMEDIT=$NMEDIT
7555   # Extract the first word of "nmedit", so it can be a program name with args.
7556 set dummy nmedit; ac_word=$2
7557 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7558 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7559 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7560   echo $ECHO_N "(cached) $ECHO_C" >&6
7561 else
7562   if test -n "$ac_ct_NMEDIT"; then
7563   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7564 else
7565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7566 for as_dir in $PATH
7567 do
7568   IFS=$as_save_IFS
7569   test -z "$as_dir" && as_dir=.
7570   for ac_exec_ext in '' $ac_executable_extensions; do
7571   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7572     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7573     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7574     break 2
7575   fi
7576 done
7577 done
7578 IFS=$as_save_IFS
7579
7580 fi
7581 fi
7582 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7583 if test -n "$ac_ct_NMEDIT"; then
7584   { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7585 echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
7586 else
7587   { echo "$as_me:$LINENO: result: no" >&5
7588 echo "${ECHO_T}no" >&6; }
7589 fi
7590
7591   if test "x$ac_ct_NMEDIT" = x; then
7592     NMEDIT=":"
7593   else
7594     case $cross_compiling:$ac_tool_warned in
7595 yes:)
7596 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7597 whose name does not start with the host triplet.  If you think this
7598 configuration is useful to you, please write to autoconf@gnu.org." >&5
7599 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7600 whose name does not start with the host triplet.  If you think this
7601 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7602 ac_tool_warned=yes ;;
7603 esac
7604     NMEDIT=$ac_ct_NMEDIT
7605   fi
7606 else
7607   NMEDIT="$ac_cv_prog_NMEDIT"
7608 fi
7609
7610     if test -n "$ac_tool_prefix"; then
7611   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7612 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7613 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7614 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7615 if test "${ac_cv_prog_LIPO+set}" = set; then
7616   echo $ECHO_N "(cached) $ECHO_C" >&6
7617 else
7618   if test -n "$LIPO"; then
7619   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7620 else
7621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7622 for as_dir in $PATH
7623 do
7624   IFS=$as_save_IFS
7625   test -z "$as_dir" && as_dir=.
7626   for ac_exec_ext in '' $ac_executable_extensions; do
7627   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7628     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7629     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7630     break 2
7631   fi
7632 done
7633 done
7634 IFS=$as_save_IFS
7635
7636 fi
7637 fi
7638 LIPO=$ac_cv_prog_LIPO
7639 if test -n "$LIPO"; then
7640   { echo "$as_me:$LINENO: result: $LIPO" >&5
7641 echo "${ECHO_T}$LIPO" >&6; }
7642 else
7643   { echo "$as_me:$LINENO: result: no" >&5
7644 echo "${ECHO_T}no" >&6; }
7645 fi
7646
7647
7648 fi
7649 if test -z "$ac_cv_prog_LIPO"; then
7650   ac_ct_LIPO=$LIPO
7651   # Extract the first word of "lipo", so it can be a program name with args.
7652 set dummy lipo; ac_word=$2
7653 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7654 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7655 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
7656   echo $ECHO_N "(cached) $ECHO_C" >&6
7657 else
7658   if test -n "$ac_ct_LIPO"; then
7659   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7660 else
7661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7662 for as_dir in $PATH
7663 do
7664   IFS=$as_save_IFS
7665   test -z "$as_dir" && as_dir=.
7666   for ac_exec_ext in '' $ac_executable_extensions; do
7667   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7668     ac_cv_prog_ac_ct_LIPO="lipo"
7669     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7670     break 2
7671   fi
7672 done
7673 done
7674 IFS=$as_save_IFS
7675
7676 fi
7677 fi
7678 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7679 if test -n "$ac_ct_LIPO"; then
7680   { echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
7681 echo "${ECHO_T}$ac_ct_LIPO" >&6; }
7682 else
7683   { echo "$as_me:$LINENO: result: no" >&5
7684 echo "${ECHO_T}no" >&6; }
7685 fi
7686
7687   if test "x$ac_ct_LIPO" = x; then
7688     LIPO=":"
7689   else
7690     case $cross_compiling:$ac_tool_warned in
7691 yes:)
7692 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7693 whose name does not start with the host triplet.  If you think this
7694 configuration is useful to you, please write to autoconf@gnu.org." >&5
7695 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7696 whose name does not start with the host triplet.  If you think this
7697 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7698 ac_tool_warned=yes ;;
7699 esac
7700     LIPO=$ac_ct_LIPO
7701   fi
7702 else
7703   LIPO="$ac_cv_prog_LIPO"
7704 fi
7705
7706     if test -n "$ac_tool_prefix"; then
7707   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7708 set dummy ${ac_tool_prefix}otool; ac_word=$2
7709 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7710 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7711 if test "${ac_cv_prog_OTOOL+set}" = set; then
7712   echo $ECHO_N "(cached) $ECHO_C" >&6
7713 else
7714   if test -n "$OTOOL"; then
7715   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7716 else
7717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7718 for as_dir in $PATH
7719 do
7720   IFS=$as_save_IFS
7721   test -z "$as_dir" && as_dir=.
7722   for ac_exec_ext in '' $ac_executable_extensions; do
7723   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7724     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7725     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7726     break 2
7727   fi
7728 done
7729 done
7730 IFS=$as_save_IFS
7731
7732 fi
7733 fi
7734 OTOOL=$ac_cv_prog_OTOOL
7735 if test -n "$OTOOL"; then
7736   { echo "$as_me:$LINENO: result: $OTOOL" >&5
7737 echo "${ECHO_T}$OTOOL" >&6; }
7738 else
7739   { echo "$as_me:$LINENO: result: no" >&5
7740 echo "${ECHO_T}no" >&6; }
7741 fi
7742
7743
7744 fi
7745 if test -z "$ac_cv_prog_OTOOL"; then
7746   ac_ct_OTOOL=$OTOOL
7747   # Extract the first word of "otool", so it can be a program name with args.
7748 set dummy otool; ac_word=$2
7749 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7750 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7751 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
7752   echo $ECHO_N "(cached) $ECHO_C" >&6
7753 else
7754   if test -n "$ac_ct_OTOOL"; then
7755   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7756 else
7757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7758 for as_dir in $PATH
7759 do
7760   IFS=$as_save_IFS
7761   test -z "$as_dir" && as_dir=.
7762   for ac_exec_ext in '' $ac_executable_extensions; do
7763   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7764     ac_cv_prog_ac_ct_OTOOL="otool"
7765     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7766     break 2
7767   fi
7768 done
7769 done
7770 IFS=$as_save_IFS
7771
7772 fi
7773 fi
7774 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7775 if test -n "$ac_ct_OTOOL"; then
7776   { echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
7777 echo "${ECHO_T}$ac_ct_OTOOL" >&6; }
7778 else
7779   { echo "$as_me:$LINENO: result: no" >&5
7780 echo "${ECHO_T}no" >&6; }
7781 fi
7782
7783   if test "x$ac_ct_OTOOL" = x; then
7784     OTOOL=":"
7785   else
7786     case $cross_compiling:$ac_tool_warned in
7787 yes:)
7788 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7789 whose name does not start with the host triplet.  If you think this
7790 configuration is useful to you, please write to autoconf@gnu.org." >&5
7791 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7792 whose name does not start with the host triplet.  If you think this
7793 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7794 ac_tool_warned=yes ;;
7795 esac
7796     OTOOL=$ac_ct_OTOOL
7797   fi
7798 else
7799   OTOOL="$ac_cv_prog_OTOOL"
7800 fi
7801
7802     if test -n "$ac_tool_prefix"; then
7803   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7804 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7805 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7806 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7807 if test "${ac_cv_prog_OTOOL64+set}" = set; then
7808   echo $ECHO_N "(cached) $ECHO_C" >&6
7809 else
7810   if test -n "$OTOOL64"; then
7811   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7812 else
7813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7814 for as_dir in $PATH
7815 do
7816   IFS=$as_save_IFS
7817   test -z "$as_dir" && as_dir=.
7818   for ac_exec_ext in '' $ac_executable_extensions; do
7819   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7820     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7821     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7822     break 2
7823   fi
7824 done
7825 done
7826 IFS=$as_save_IFS
7827
7828 fi
7829 fi
7830 OTOOL64=$ac_cv_prog_OTOOL64
7831 if test -n "$OTOOL64"; then
7832   { echo "$as_me:$LINENO: result: $OTOOL64" >&5
7833 echo "${ECHO_T}$OTOOL64" >&6; }
7834 else
7835   { echo "$as_me:$LINENO: result: no" >&5
7836 echo "${ECHO_T}no" >&6; }
7837 fi
7838
7839
7840 fi
7841 if test -z "$ac_cv_prog_OTOOL64"; then
7842   ac_ct_OTOOL64=$OTOOL64
7843   # Extract the first word of "otool64", so it can be a program name with args.
7844 set dummy otool64; ac_word=$2
7845 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7846 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7847 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
7848   echo $ECHO_N "(cached) $ECHO_C" >&6
7849 else
7850   if test -n "$ac_ct_OTOOL64"; then
7851   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7852 else
7853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7854 for as_dir in $PATH
7855 do
7856   IFS=$as_save_IFS
7857   test -z "$as_dir" && as_dir=.
7858   for ac_exec_ext in '' $ac_executable_extensions; do
7859   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7860     ac_cv_prog_ac_ct_OTOOL64="otool64"
7861     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7862     break 2
7863   fi
7864 done
7865 done
7866 IFS=$as_save_IFS
7867
7868 fi
7869 fi
7870 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7871 if test -n "$ac_ct_OTOOL64"; then
7872   { echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
7873 echo "${ECHO_T}$ac_ct_OTOOL64" >&6; }
7874 else
7875   { echo "$as_me:$LINENO: result: no" >&5
7876 echo "${ECHO_T}no" >&6; }
7877 fi
7878
7879   if test "x$ac_ct_OTOOL64" = x; then
7880     OTOOL64=":"
7881   else
7882     case $cross_compiling:$ac_tool_warned in
7883 yes:)
7884 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7885 whose name does not start with the host triplet.  If you think this
7886 configuration is useful to you, please write to autoconf@gnu.org." >&5
7887 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7888 whose name does not start with the host triplet.  If you think this
7889 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7890 ac_tool_warned=yes ;;
7891 esac
7892     OTOOL64=$ac_ct_OTOOL64
7893   fi
7894 else
7895   OTOOL64="$ac_cv_prog_OTOOL64"
7896 fi
7897
7898
7899
7900
7901
7902
7903
7904
7905
7906
7907
7908
7909
7910
7911
7912
7913
7914
7915
7916
7917
7918
7919
7920
7921
7922
7923
7924     { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7925 echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
7926 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7927   echo $ECHO_N "(cached) $ECHO_C" >&6
7928 else
7929   lt_cv_apple_cc_single_mod=no
7930       if test -z "${LT_MULTI_MODULE}"; then
7931         # By default we will add the -single_module flag. You can override
7932         # by either setting the environment variable LT_MULTI_MODULE
7933         # non-empty at configure time, or by adding -multi_module to the
7934         # link flags.
7935         rm -rf libconftest.dylib*
7936         echo "int foo(void){return 1;}" > conftest.c
7937         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7938 -dynamiclib -Wl,-single_module conftest.c" >&5
7939         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7940           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7941         _lt_result=$?
7942         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7943           lt_cv_apple_cc_single_mod=yes
7944         else
7945           cat conftest.err >&5
7946         fi
7947         rm -rf libconftest.dylib*
7948         rm -f conftest.*
7949       fi
7950 fi
7951 { echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7952 echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
7953     { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7954 echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
7955 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7956   echo $ECHO_N "(cached) $ECHO_C" >&6
7957 else
7958   lt_cv_ld_exported_symbols_list=no
7959       save_LDFLAGS=$LDFLAGS
7960       echo "_main" > conftest.sym
7961       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7962       cat >conftest.$ac_ext <<_ACEOF
7963 /* confdefs.h.  */
7964 _ACEOF
7965 cat confdefs.h >>conftest.$ac_ext
7966 cat >>conftest.$ac_ext <<_ACEOF
7967 /* end confdefs.h.  */
7968
7969 int
7970 main ()
7971 {
7972
7973   ;
7974   return 0;
7975 }
7976 _ACEOF
7977 rm -f conftest.$ac_objext conftest$ac_exeext
7978 if { (ac_try="$ac_link"
7979 case "(($ac_try" in
7980   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7981   *) ac_try_echo=$ac_try;;
7982 esac
7983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7984   (eval "$ac_link") 2>conftest.er1
7985   ac_status=$?
7986   grep -v '^ *+' conftest.er1 >conftest.err
7987   rm -f conftest.er1
7988   cat conftest.err >&5
7989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7990   (exit $ac_status); } && {
7991          test -z "$ac_c_werror_flag" ||
7992          test ! -s conftest.err
7993        } && test -s conftest$ac_exeext &&
7994        $as_test_x conftest$ac_exeext; then
7995   lt_cv_ld_exported_symbols_list=yes
7996 else
7997   echo "$as_me: failed program was:" >&5
7998 sed 's/^/| /' conftest.$ac_ext >&5
7999
8000         lt_cv_ld_exported_symbols_list=no
8001 fi
8002
8003 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8004       conftest$ac_exeext conftest.$ac_ext
8005         LDFLAGS="$save_LDFLAGS"
8006
8007 fi
8008 { echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
8009 echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
8010     case $host_os in
8011     rhapsody* | darwin1.[012])
8012       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8013     darwin1.*)
8014       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8015     darwin*) # darwin 5.x on
8016       # if running on 10.5 or later, the deployment target defaults
8017       # to the OS version, if on x86, and 10.4, the deployment
8018       # target defaults to 10.4. Don't you love it?
8019       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8020         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8021           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8022         10.[012]*)
8023           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8024         10.*)
8025           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8026       esac
8027     ;;
8028   esac
8029     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8030       _lt_dar_single_mod='$single_module'
8031     fi
8032     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8033       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8034     else
8035       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8036     fi
8037     if test "$DSYMUTIL" != ":"; then
8038       _lt_dsymutil='~$DSYMUTIL $lib || :'
8039     else
8040       _lt_dsymutil=
8041     fi
8042     ;;
8043   esac
8044
8045 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8046 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
8047 if test "${ac_cv_header_stdc+set}" = set; then
8048   echo $ECHO_N "(cached) $ECHO_C" >&6
8049 else
8050   cat >conftest.$ac_ext <<_ACEOF
8051 /* confdefs.h.  */
8052 _ACEOF
8053 cat confdefs.h >>conftest.$ac_ext
8054 cat >>conftest.$ac_ext <<_ACEOF
8055 /* end confdefs.h.  */
8056 #include <stdlib.h>
8057 #include <stdarg.h>
8058 #include <string.h>
8059 #include <float.h>
8060
8061 int
8062 main ()
8063 {
8064
8065   ;
8066   return 0;
8067 }
8068 _ACEOF
8069 rm -f conftest.$ac_objext
8070 if { (ac_try="$ac_compile"
8071 case "(($ac_try" in
8072   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8073   *) ac_try_echo=$ac_try;;
8074 esac
8075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8076   (eval "$ac_compile") 2>conftest.er1
8077   ac_status=$?
8078   grep -v '^ *+' conftest.er1 >conftest.err
8079   rm -f conftest.er1
8080   cat conftest.err >&5
8081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8082   (exit $ac_status); } && {
8083          test -z "$ac_c_werror_flag" ||
8084          test ! -s conftest.err
8085        } && test -s conftest.$ac_objext; then
8086   ac_cv_header_stdc=yes
8087 else
8088   echo "$as_me: failed program was:" >&5
8089 sed 's/^/| /' conftest.$ac_ext >&5
8090
8091         ac_cv_header_stdc=no
8092 fi
8093
8094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8095
8096 if test $ac_cv_header_stdc = yes; then
8097   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8098   cat >conftest.$ac_ext <<_ACEOF
8099 /* confdefs.h.  */
8100 _ACEOF
8101 cat confdefs.h >>conftest.$ac_ext
8102 cat >>conftest.$ac_ext <<_ACEOF
8103 /* end confdefs.h.  */
8104 #include <string.h>
8105
8106 _ACEOF
8107 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8108   $EGREP "memchr" >/dev/null 2>&1; then
8109   :
8110 else
8111   ac_cv_header_stdc=no
8112 fi
8113 rm -f conftest*
8114
8115 fi
8116
8117 if test $ac_cv_header_stdc = yes; then
8118   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8119   cat >conftest.$ac_ext <<_ACEOF
8120 /* confdefs.h.  */
8121 _ACEOF
8122 cat confdefs.h >>conftest.$ac_ext
8123 cat >>conftest.$ac_ext <<_ACEOF
8124 /* end confdefs.h.  */
8125 #include <stdlib.h>
8126
8127 _ACEOF
8128 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8129   $EGREP "free" >/dev/null 2>&1; then
8130   :
8131 else
8132   ac_cv_header_stdc=no
8133 fi
8134 rm -f conftest*
8135
8136 fi
8137
8138 if test $ac_cv_header_stdc = yes; then
8139   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8140   if test "$cross_compiling" = yes; then
8141   :
8142 else
8143   cat >conftest.$ac_ext <<_ACEOF
8144 /* confdefs.h.  */
8145 _ACEOF
8146 cat confdefs.h >>conftest.$ac_ext
8147 cat >>conftest.$ac_ext <<_ACEOF
8148 /* end confdefs.h.  */
8149 #include <ctype.h>
8150 #include <stdlib.h>
8151 #if ((' ' & 0x0FF) == 0x020)
8152 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8153 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8154 #else
8155 # define ISLOWER(c) \
8156                    (('a' <= (c) && (c) <= 'i') \
8157                      || ('j' <= (c) && (c) <= 'r') \
8158                      || ('s' <= (c) && (c) <= 'z'))
8159 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8160 #endif
8161
8162 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8163 int
8164 main ()
8165 {
8166   int i;
8167   for (i = 0; i < 256; i++)
8168     if (XOR (islower (i), ISLOWER (i))
8169         || toupper (i) != TOUPPER (i))
8170       return 2;
8171   return 0;
8172 }
8173 _ACEOF
8174 rm -f conftest$ac_exeext
8175 if { (ac_try="$ac_link"
8176 case "(($ac_try" in
8177   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8178   *) ac_try_echo=$ac_try;;
8179 esac
8180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8181   (eval "$ac_link") 2>&5
8182   ac_status=$?
8183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8184   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8185   { (case "(($ac_try" in
8186   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8187   *) ac_try_echo=$ac_try;;
8188 esac
8189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8190   (eval "$ac_try") 2>&5
8191   ac_status=$?
8192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8193   (exit $ac_status); }; }; then
8194   :
8195 else
8196   echo "$as_me: program exited with status $ac_status" >&5
8197 echo "$as_me: failed program was:" >&5
8198 sed 's/^/| /' conftest.$ac_ext >&5
8199
8200 ( exit $ac_status )
8201 ac_cv_header_stdc=no
8202 fi
8203 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8204 fi
8205
8206
8207 fi
8208 fi
8209 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8210 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
8211 if test $ac_cv_header_stdc = yes; then
8212
8213 cat >>confdefs.h <<\_ACEOF
8214 #define STDC_HEADERS 1
8215 _ACEOF
8216
8217 fi
8218
8219 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8220
8221
8222
8223
8224
8225
8226
8227
8228
8229 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8230                   inttypes.h stdint.h unistd.h
8231 do
8232 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8233 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8234 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8235 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8236   echo $ECHO_N "(cached) $ECHO_C" >&6
8237 else
8238   cat >conftest.$ac_ext <<_ACEOF
8239 /* confdefs.h.  */
8240 _ACEOF
8241 cat confdefs.h >>conftest.$ac_ext
8242 cat >>conftest.$ac_ext <<_ACEOF
8243 /* end confdefs.h.  */
8244 $ac_includes_default
8245
8246 #include <$ac_header>
8247 _ACEOF
8248 rm -f conftest.$ac_objext
8249 if { (ac_try="$ac_compile"
8250 case "(($ac_try" in
8251   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8252   *) ac_try_echo=$ac_try;;
8253 esac
8254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8255   (eval "$ac_compile") 2>conftest.er1
8256   ac_status=$?
8257   grep -v '^ *+' conftest.er1 >conftest.err
8258   rm -f conftest.er1
8259   cat conftest.err >&5
8260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8261   (exit $ac_status); } && {
8262          test -z "$ac_c_werror_flag" ||
8263          test ! -s conftest.err
8264        } && test -s conftest.$ac_objext; then
8265   eval "$as_ac_Header=yes"
8266 else
8267   echo "$as_me: failed program was:" >&5
8268 sed 's/^/| /' conftest.$ac_ext >&5
8269
8270         eval "$as_ac_Header=no"
8271 fi
8272
8273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8274 fi
8275 ac_res=`eval echo '${'$as_ac_Header'}'`
8276                { echo "$as_me:$LINENO: result: $ac_res" >&5
8277 echo "${ECHO_T}$ac_res" >&6; }
8278 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8279   cat >>confdefs.h <<_ACEOF
8280 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8281 _ACEOF
8282
8283 fi
8284
8285 done
8286
8287
8288
8289 for ac_header in dlfcn.h
8290 do
8291 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8292 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8293 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8294 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8295   echo $ECHO_N "(cached) $ECHO_C" >&6
8296 else
8297   cat >conftest.$ac_ext <<_ACEOF
8298 /* confdefs.h.  */
8299 _ACEOF
8300 cat confdefs.h >>conftest.$ac_ext
8301 cat >>conftest.$ac_ext <<_ACEOF
8302 /* end confdefs.h.  */
8303 $ac_includes_default
8304
8305 #include <$ac_header>
8306 _ACEOF
8307 rm -f conftest.$ac_objext
8308 if { (ac_try="$ac_compile"
8309 case "(($ac_try" in
8310   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8311   *) ac_try_echo=$ac_try;;
8312 esac
8313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8314   (eval "$ac_compile") 2>conftest.er1
8315   ac_status=$?
8316   grep -v '^ *+' conftest.er1 >conftest.err
8317   rm -f conftest.er1
8318   cat conftest.err >&5
8319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8320   (exit $ac_status); } && {
8321          test -z "$ac_c_werror_flag" ||
8322          test ! -s conftest.err
8323        } && test -s conftest.$ac_objext; then
8324   eval "$as_ac_Header=yes"
8325 else
8326   echo "$as_me: failed program was:" >&5
8327 sed 's/^/| /' conftest.$ac_ext >&5
8328
8329         eval "$as_ac_Header=no"
8330 fi
8331
8332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8333 fi
8334 ac_res=`eval echo '${'$as_ac_Header'}'`
8335                { echo "$as_me:$LINENO: result: $ac_res" >&5
8336 echo "${ECHO_T}$ac_res" >&6; }
8337 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8338   cat >>confdefs.h <<_ACEOF
8339 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8340 _ACEOF
8341
8342 fi
8343
8344 done
8345
8346
8347
8348 ac_ext=cpp
8349 ac_cpp='$CXXCPP $CPPFLAGS'
8350 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8351 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8352 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8353 if test -z "$CXX"; then
8354   if test -n "$CCC"; then
8355     CXX=$CCC
8356   else
8357     if test -n "$ac_tool_prefix"; then
8358   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
8359   do
8360     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8361 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8362 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8363 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8364 if test "${ac_cv_prog_CXX+set}" = set; then
8365   echo $ECHO_N "(cached) $ECHO_C" >&6
8366 else
8367   if test -n "$CXX"; then
8368   ac_cv_prog_CXX="$CXX" # Let the user override the test.
8369 else
8370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8371 for as_dir in $PATH
8372 do
8373   IFS=$as_save_IFS
8374   test -z "$as_dir" && as_dir=.
8375   for ac_exec_ext in '' $ac_executable_extensions; do
8376   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8377     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
8378     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8379     break 2
8380   fi
8381 done
8382 done
8383 IFS=$as_save_IFS
8384
8385 fi
8386 fi
8387 CXX=$ac_cv_prog_CXX
8388 if test -n "$CXX"; then
8389   { echo "$as_me:$LINENO: result: $CXX" >&5
8390 echo "${ECHO_T}$CXX" >&6; }
8391 else
8392   { echo "$as_me:$LINENO: result: no" >&5
8393 echo "${ECHO_T}no" >&6; }
8394 fi
8395
8396
8397     test -n "$CXX" && break
8398   done
8399 fi
8400 if test -z "$CXX"; then
8401   ac_ct_CXX=$CXX
8402   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
8403 do
8404   # Extract the first word of "$ac_prog", so it can be a program name with args.
8405 set dummy $ac_prog; ac_word=$2
8406 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8407 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8408 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
8409   echo $ECHO_N "(cached) $ECHO_C" >&6
8410 else
8411   if test -n "$ac_ct_CXX"; then
8412   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
8413 else
8414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8415 for as_dir in $PATH
8416 do
8417   IFS=$as_save_IFS
8418   test -z "$as_dir" && as_dir=.
8419   for ac_exec_ext in '' $ac_executable_extensions; do
8420   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8421     ac_cv_prog_ac_ct_CXX="$ac_prog"
8422     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8423     break 2
8424   fi
8425 done
8426 done
8427 IFS=$as_save_IFS
8428
8429 fi
8430 fi
8431 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
8432 if test -n "$ac_ct_CXX"; then
8433   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
8434 echo "${ECHO_T}$ac_ct_CXX" >&6; }
8435 else
8436   { echo "$as_me:$LINENO: result: no" >&5
8437 echo "${ECHO_T}no" >&6; }
8438 fi
8439
8440
8441   test -n "$ac_ct_CXX" && break
8442 done
8443
8444   if test "x$ac_ct_CXX" = x; then
8445     CXX="g++"
8446   else
8447     case $cross_compiling:$ac_tool_warned in
8448 yes:)
8449 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8450 whose name does not start with the host triplet.  If you think this
8451 configuration is useful to you, please write to autoconf@gnu.org." >&5
8452 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8453 whose name does not start with the host triplet.  If you think this
8454 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8455 ac_tool_warned=yes ;;
8456 esac
8457     CXX=$ac_ct_CXX
8458   fi
8459 fi
8460
8461   fi
8462 fi
8463 # Provide some information about the compiler.
8464 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
8465 ac_compiler=`set X $ac_compile; echo $2`
8466 { (ac_try="$ac_compiler --version >&5"
8467 case "(($ac_try" in
8468   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8469   *) ac_try_echo=$ac_try;;
8470 esac
8471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8472   (eval "$ac_compiler --version >&5") 2>&5
8473   ac_status=$?
8474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8475   (exit $ac_status); }
8476 { (ac_try="$ac_compiler -v >&5"
8477 case "(($ac_try" in
8478   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8479   *) ac_try_echo=$ac_try;;
8480 esac
8481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8482   (eval "$ac_compiler -v >&5") 2>&5
8483   ac_status=$?
8484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8485   (exit $ac_status); }
8486 { (ac_try="$ac_compiler -V >&5"
8487 case "(($ac_try" in
8488   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8489   *) ac_try_echo=$ac_try;;
8490 esac
8491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8492   (eval "$ac_compiler -V >&5") 2>&5
8493   ac_status=$?
8494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8495   (exit $ac_status); }
8496
8497 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
8498 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
8499 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
8500   echo $ECHO_N "(cached) $ECHO_C" >&6
8501 else
8502   cat >conftest.$ac_ext <<_ACEOF
8503 /* confdefs.h.  */
8504 _ACEOF
8505 cat confdefs.h >>conftest.$ac_ext
8506 cat >>conftest.$ac_ext <<_ACEOF
8507 /* end confdefs.h.  */
8508
8509 int
8510 main ()
8511 {
8512 #ifndef __GNUC__
8513        choke me
8514 #endif
8515
8516   ;
8517   return 0;
8518 }
8519 _ACEOF
8520 rm -f conftest.$ac_objext
8521 if { (ac_try="$ac_compile"
8522 case "(($ac_try" in
8523   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8524   *) ac_try_echo=$ac_try;;
8525 esac
8526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8527   (eval "$ac_compile") 2>conftest.er1
8528   ac_status=$?
8529   grep -v '^ *+' conftest.er1 >conftest.err
8530   rm -f conftest.er1
8531   cat conftest.err >&5
8532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8533   (exit $ac_status); } && {
8534          test -z "$ac_cxx_werror_flag" ||
8535          test ! -s conftest.err
8536        } && test -s conftest.$ac_objext; then
8537   ac_compiler_gnu=yes
8538 else
8539   echo "$as_me: failed program was:" >&5
8540 sed 's/^/| /' conftest.$ac_ext >&5
8541
8542         ac_compiler_gnu=no
8543 fi
8544
8545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8546 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
8547
8548 fi
8549 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
8550 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
8551 GXX=`test $ac_compiler_gnu = yes && echo yes`
8552 ac_test_CXXFLAGS=${CXXFLAGS+set}
8553 ac_save_CXXFLAGS=$CXXFLAGS
8554 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
8555 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
8556 if test "${ac_cv_prog_cxx_g+set}" = set; then
8557   echo $ECHO_N "(cached) $ECHO_C" >&6
8558 else
8559   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
8560    ac_cxx_werror_flag=yes
8561    ac_cv_prog_cxx_g=no
8562    CXXFLAGS="-g"
8563    cat >conftest.$ac_ext <<_ACEOF
8564 /* confdefs.h.  */
8565 _ACEOF
8566 cat confdefs.h >>conftest.$ac_ext
8567 cat >>conftest.$ac_ext <<_ACEOF
8568 /* end confdefs.h.  */
8569
8570 int
8571 main ()
8572 {
8573
8574   ;
8575   return 0;
8576 }
8577 _ACEOF
8578 rm -f conftest.$ac_objext
8579 if { (ac_try="$ac_compile"
8580 case "(($ac_try" in
8581   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8582   *) ac_try_echo=$ac_try;;
8583 esac
8584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8585   (eval "$ac_compile") 2>conftest.er1
8586   ac_status=$?
8587   grep -v '^ *+' conftest.er1 >conftest.err
8588   rm -f conftest.er1
8589   cat conftest.err >&5
8590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8591   (exit $ac_status); } && {
8592          test -z "$ac_cxx_werror_flag" ||
8593          test ! -s conftest.err
8594        } && test -s conftest.$ac_objext; then
8595   ac_cv_prog_cxx_g=yes
8596 else
8597   echo "$as_me: failed program was:" >&5
8598 sed 's/^/| /' conftest.$ac_ext >&5
8599
8600         CXXFLAGS=""
8601       cat >conftest.$ac_ext <<_ACEOF
8602 /* confdefs.h.  */
8603 _ACEOF
8604 cat confdefs.h >>conftest.$ac_ext
8605 cat >>conftest.$ac_ext <<_ACEOF
8606 /* end confdefs.h.  */
8607
8608 int
8609 main ()
8610 {
8611
8612   ;
8613   return 0;
8614 }
8615 _ACEOF
8616 rm -f conftest.$ac_objext
8617 if { (ac_try="$ac_compile"
8618 case "(($ac_try" in
8619   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8620   *) ac_try_echo=$ac_try;;
8621 esac
8622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8623   (eval "$ac_compile") 2>conftest.er1
8624   ac_status=$?
8625   grep -v '^ *+' conftest.er1 >conftest.err
8626   rm -f conftest.er1
8627   cat conftest.err >&5
8628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8629   (exit $ac_status); } && {
8630          test -z "$ac_cxx_werror_flag" ||
8631          test ! -s conftest.err
8632        } && test -s conftest.$ac_objext; then
8633   :
8634 else
8635   echo "$as_me: failed program was:" >&5
8636 sed 's/^/| /' conftest.$ac_ext >&5
8637
8638         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8639          CXXFLAGS="-g"
8640          cat >conftest.$ac_ext <<_ACEOF
8641 /* confdefs.h.  */
8642 _ACEOF
8643 cat confdefs.h >>conftest.$ac_ext
8644 cat >>conftest.$ac_ext <<_ACEOF
8645 /* end confdefs.h.  */
8646
8647 int
8648 main ()
8649 {
8650
8651   ;
8652   return 0;
8653 }
8654 _ACEOF
8655 rm -f conftest.$ac_objext
8656 if { (ac_try="$ac_compile"
8657 case "(($ac_try" in
8658   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8659   *) ac_try_echo=$ac_try;;
8660 esac
8661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8662   (eval "$ac_compile") 2>conftest.er1
8663   ac_status=$?
8664   grep -v '^ *+' conftest.er1 >conftest.err
8665   rm -f conftest.er1
8666   cat conftest.err >&5
8667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8668   (exit $ac_status); } && {
8669          test -z "$ac_cxx_werror_flag" ||
8670          test ! -s conftest.err
8671        } && test -s conftest.$ac_objext; then
8672   ac_cv_prog_cxx_g=yes
8673 else
8674   echo "$as_me: failed program was:" >&5
8675 sed 's/^/| /' conftest.$ac_ext >&5
8676
8677
8678 fi
8679
8680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8681 fi
8682
8683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8684 fi
8685
8686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8687    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8688 fi
8689 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
8690 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
8691 if test "$ac_test_CXXFLAGS" = set; then
8692   CXXFLAGS=$ac_save_CXXFLAGS
8693 elif test $ac_cv_prog_cxx_g = yes; then
8694   if test "$GXX" = yes; then
8695     CXXFLAGS="-g -O2"
8696   else
8697     CXXFLAGS="-g"
8698   fi
8699 else
8700   if test "$GXX" = yes; then
8701     CXXFLAGS="-O2"
8702   else
8703     CXXFLAGS=
8704   fi
8705 fi
8706 ac_ext=cpp
8707 ac_cpp='$CXXCPP $CPPFLAGS'
8708 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8709 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8710 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8711
8712 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
8713     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
8714     (test "X$CXX" != "Xg++"))) ; then
8715   ac_ext=cpp
8716 ac_cpp='$CXXCPP $CPPFLAGS'
8717 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8718 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8719 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8720 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
8721 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
8722 if test -z "$CXXCPP"; then
8723   if test "${ac_cv_prog_CXXCPP+set}" = set; then
8724   echo $ECHO_N "(cached) $ECHO_C" >&6
8725 else
8726       # Double quotes because CXXCPP needs to be expanded
8727     for CXXCPP in "$CXX -E" "/lib/cpp"
8728     do
8729       ac_preproc_ok=false
8730 for ac_cxx_preproc_warn_flag in '' yes
8731 do
8732   # Use a header file that comes with gcc, so configuring glibc
8733   # with a fresh cross-compiler works.
8734   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8735   # <limits.h> exists even on freestanding compilers.
8736   # On the NeXT, cc -E runs the code through the compiler's parser,
8737   # not just through cpp. "Syntax error" is here to catch this case.
8738   cat >conftest.$ac_ext <<_ACEOF
8739 /* confdefs.h.  */
8740 _ACEOF
8741 cat confdefs.h >>conftest.$ac_ext
8742 cat >>conftest.$ac_ext <<_ACEOF
8743 /* end confdefs.h.  */
8744 #ifdef __STDC__
8745 # include <limits.h>
8746 #else
8747 # include <assert.h>
8748 #endif
8749                      Syntax error
8750 _ACEOF
8751 if { (ac_try="$ac_cpp conftest.$ac_ext"
8752 case "(($ac_try" in
8753   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8754   *) ac_try_echo=$ac_try;;
8755 esac
8756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8757   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8758   ac_status=$?
8759   grep -v '^ *+' conftest.er1 >conftest.err
8760   rm -f conftest.er1
8761   cat conftest.err >&5
8762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8763   (exit $ac_status); } >/dev/null && {
8764          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8765          test ! -s conftest.err
8766        }; then
8767   :
8768 else
8769   echo "$as_me: failed program was:" >&5
8770 sed 's/^/| /' conftest.$ac_ext >&5
8771
8772   # Broken: fails on valid input.
8773 continue
8774 fi
8775
8776 rm -f conftest.err conftest.$ac_ext
8777
8778   # OK, works on sane cases.  Now check whether nonexistent headers
8779   # can be detected and how.
8780   cat >conftest.$ac_ext <<_ACEOF
8781 /* confdefs.h.  */
8782 _ACEOF
8783 cat confdefs.h >>conftest.$ac_ext
8784 cat >>conftest.$ac_ext <<_ACEOF
8785 /* end confdefs.h.  */
8786 #include <ac_nonexistent.h>
8787 _ACEOF
8788 if { (ac_try="$ac_cpp conftest.$ac_ext"
8789 case "(($ac_try" in
8790   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8791   *) ac_try_echo=$ac_try;;
8792 esac
8793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8794   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8795   ac_status=$?
8796   grep -v '^ *+' conftest.er1 >conftest.err
8797   rm -f conftest.er1
8798   cat conftest.err >&5
8799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8800   (exit $ac_status); } >/dev/null && {
8801          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8802          test ! -s conftest.err
8803        }; then
8804   # Broken: success on invalid input.
8805 continue
8806 else
8807   echo "$as_me: failed program was:" >&5
8808 sed 's/^/| /' conftest.$ac_ext >&5
8809
8810   # Passes both tests.
8811 ac_preproc_ok=:
8812 break
8813 fi
8814
8815 rm -f conftest.err conftest.$ac_ext
8816
8817 done
8818 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8819 rm -f conftest.err conftest.$ac_ext
8820 if $ac_preproc_ok; then
8821   break
8822 fi
8823
8824     done
8825     ac_cv_prog_CXXCPP=$CXXCPP
8826
8827 fi
8828   CXXCPP=$ac_cv_prog_CXXCPP
8829 else
8830   ac_cv_prog_CXXCPP=$CXXCPP
8831 fi
8832 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
8833 echo "${ECHO_T}$CXXCPP" >&6; }
8834 ac_preproc_ok=false
8835 for ac_cxx_preproc_warn_flag in '' yes
8836 do
8837   # Use a header file that comes with gcc, so configuring glibc
8838   # with a fresh cross-compiler works.
8839   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8840   # <limits.h> exists even on freestanding compilers.
8841   # On the NeXT, cc -E runs the code through the compiler's parser,
8842   # not just through cpp. "Syntax error" is here to catch this case.
8843   cat >conftest.$ac_ext <<_ACEOF
8844 /* confdefs.h.  */
8845 _ACEOF
8846 cat confdefs.h >>conftest.$ac_ext
8847 cat >>conftest.$ac_ext <<_ACEOF
8848 /* end confdefs.h.  */
8849 #ifdef __STDC__
8850 # include <limits.h>
8851 #else
8852 # include <assert.h>
8853 #endif
8854                      Syntax error
8855 _ACEOF
8856 if { (ac_try="$ac_cpp conftest.$ac_ext"
8857 case "(($ac_try" in
8858   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8859   *) ac_try_echo=$ac_try;;
8860 esac
8861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8862   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8863   ac_status=$?
8864   grep -v '^ *+' conftest.er1 >conftest.err
8865   rm -f conftest.er1
8866   cat conftest.err >&5
8867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8868   (exit $ac_status); } >/dev/null && {
8869          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8870          test ! -s conftest.err
8871        }; then
8872   :
8873 else
8874   echo "$as_me: failed program was:" >&5
8875 sed 's/^/| /' conftest.$ac_ext >&5
8876
8877   # Broken: fails on valid input.
8878 continue
8879 fi
8880
8881 rm -f conftest.err conftest.$ac_ext
8882
8883   # OK, works on sane cases.  Now check whether nonexistent headers
8884   # can be detected and how.
8885   cat >conftest.$ac_ext <<_ACEOF
8886 /* confdefs.h.  */
8887 _ACEOF
8888 cat confdefs.h >>conftest.$ac_ext
8889 cat >>conftest.$ac_ext <<_ACEOF
8890 /* end confdefs.h.  */
8891 #include <ac_nonexistent.h>
8892 _ACEOF
8893 if { (ac_try="$ac_cpp conftest.$ac_ext"
8894 case "(($ac_try" in
8895   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8896   *) ac_try_echo=$ac_try;;
8897 esac
8898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8899   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8900   ac_status=$?
8901   grep -v '^ *+' conftest.er1 >conftest.err
8902   rm -f conftest.er1
8903   cat conftest.err >&5
8904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8905   (exit $ac_status); } >/dev/null && {
8906          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8907          test ! -s conftest.err
8908        }; then
8909   # Broken: success on invalid input.
8910 continue
8911 else
8912   echo "$as_me: failed program was:" >&5
8913 sed 's/^/| /' conftest.$ac_ext >&5
8914
8915   # Passes both tests.
8916 ac_preproc_ok=:
8917 break
8918 fi
8919
8920 rm -f conftest.err conftest.$ac_ext
8921
8922 done
8923 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8924 rm -f conftest.err conftest.$ac_ext
8925 if $ac_preproc_ok; then
8926   :
8927 else
8928   _lt_caught_CXX_error=yes
8929 fi
8930
8931 ac_ext=cpp
8932 ac_cpp='$CXXCPP $CPPFLAGS'
8933 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8934 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8935 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8936
8937 else
8938   _lt_caught_CXX_error=yes
8939 fi
8940
8941
8942
8943
8944
8945 # Set options
8946 # Check whether --enable-shared was given.
8947 if test "${enable_shared+set}" = set; then
8948   enableval=$enable_shared; p=${PACKAGE-default}
8949     case $enableval in
8950     yes) enable_shared=yes ;;
8951     no) enable_shared=no ;;
8952     *)
8953       enable_shared=no
8954       # Look at the argument we got.  We use all the common list separators.
8955       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8956       for pkg in $enableval; do
8957         IFS="$lt_save_ifs"
8958         if test "X$pkg" = "X$p"; then
8959           enable_shared=yes
8960         fi
8961       done
8962       IFS="$lt_save_ifs"
8963       ;;
8964     esac
8965 else
8966   enable_shared=yes
8967 fi
8968
8969
8970
8971
8972
8973
8974
8975 # Check whether --enable-static was given.
8976 if test "${enable_static+set}" = set; then
8977   enableval=$enable_static; p=${PACKAGE-default}
8978     case $enableval in
8979     yes) enable_static=yes ;;
8980     no) enable_static=no ;;
8981     *)
8982      enable_static=no
8983       # Look at the argument we got.  We use all the common list separators.
8984       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8985       for pkg in $enableval; do
8986         IFS="$lt_save_ifs"
8987         if test "X$pkg" = "X$p"; then
8988           enable_static=yes
8989         fi
8990       done
8991       IFS="$lt_save_ifs"
8992       ;;
8993     esac
8994 else
8995   enable_static=no
8996 fi
8997
8998
8999
9000
9001
9002
9003
9004
9005
9006
9007         enable_dlopen=no
9008
9009
9010   enable_win32_dll=no
9011
9012
9013
9014
9015
9016 # Check whether --with-pic was given.
9017 if test "${with_pic+set}" = set; then
9018   withval=$with_pic; pic_mode="$withval"
9019 else
9020   pic_mode=default
9021 fi
9022
9023
9024 test -z "$pic_mode" && pic_mode=default
9025
9026
9027
9028
9029
9030
9031
9032   # Check whether --enable-fast-install was given.
9033 if test "${enable_fast_install+set}" = set; then
9034   enableval=$enable_fast_install; p=${PACKAGE-default}
9035     case $enableval in
9036     yes) enable_fast_install=yes ;;
9037     no) enable_fast_install=no ;;
9038     *)
9039       enable_fast_install=no
9040       # Look at the argument we got.  We use all the common list separators.
9041       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9042       for pkg in $enableval; do
9043         IFS="$lt_save_ifs"
9044         if test "X$pkg" = "X$p"; then
9045           enable_fast_install=yes
9046         fi
9047       done
9048       IFS="$lt_save_ifs"
9049       ;;
9050     esac
9051 else
9052   enable_fast_install=yes
9053 fi
9054
9055
9056
9057
9058
9059
9060
9061
9062
9063
9064
9065 # This can be used to rebuild libtool when needed
9066 LIBTOOL_DEPS="$ltmain"
9067
9068 # Always use our own libtool.
9069 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9070
9071
9072
9073
9074
9075
9076
9077
9078
9079
9080
9081
9082
9083
9084
9085
9086
9087
9088
9089
9090
9091
9092
9093
9094
9095 test -z "$LN_S" && LN_S="ln -s"
9096
9097
9098
9099
9100
9101
9102
9103
9104
9105
9106
9107
9108
9109
9110 if test -n "${ZSH_VERSION+set}" ; then
9111    setopt NO_GLOB_SUBST
9112 fi
9113
9114 { echo "$as_me:$LINENO: checking for objdir" >&5
9115 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9116 if test "${lt_cv_objdir+set}" = set; then
9117   echo $ECHO_N "(cached) $ECHO_C" >&6
9118 else
9119   rm -f .libs 2>/dev/null
9120 mkdir .libs 2>/dev/null
9121 if test -d .libs; then
9122   lt_cv_objdir=.libs
9123 else
9124   # MS-DOS does not allow filenames that begin with a dot.
9125   lt_cv_objdir=_libs
9126 fi
9127 rmdir .libs 2>/dev/null
9128 fi
9129 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
9130 echo "${ECHO_T}$lt_cv_objdir" >&6; }
9131 objdir=$lt_cv_objdir
9132
9133
9134
9135
9136
9137 cat >>confdefs.h <<_ACEOF
9138 #define LT_OBJDIR "$lt_cv_objdir/"
9139 _ACEOF
9140
9141
9142
9143
9144
9145
9146
9147
9148
9149
9150
9151
9152
9153
9154
9155
9156
9157 case $host_os in
9158 aix3*)
9159   # AIX sometimes has problems with the GCC collect2 program.  For some
9160   # reason, if we set the COLLECT_NAMES environment variable, the problems
9161   # vanish in a puff of smoke.
9162   if test "X${COLLECT_NAMES+set}" != Xset; then
9163     COLLECT_NAMES=
9164     export COLLECT_NAMES
9165   fi
9166   ;;
9167 esac
9168
9169 # Sed substitution that helps us do robust quoting.  It backslashifies
9170 # metacharacters that are still active within double-quoted strings.
9171 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
9172
9173 # Same as above, but do not quote variable references.
9174 double_quote_subst='s/\(["`\\]\)/\\\1/g'
9175
9176 # Sed substitution to delay expansion of an escaped shell variable in a
9177 # double_quote_subst'ed string.
9178 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9179
9180 # Sed substitution to delay expansion of an escaped single quote.
9181 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
9182
9183 # Sed substitution to avoid accidental globbing in evaled expressions
9184 no_glob_subst='s/\*/\\\*/g'
9185
9186 # Global variables:
9187 ofile=libtool
9188 can_build_shared=yes
9189
9190 # All known linkers require a `.a' archive for static linking (except MSVC,
9191 # which needs '.lib').
9192 libext=a
9193
9194 with_gnu_ld="$lt_cv_prog_gnu_ld"
9195
9196 old_CC="$CC"
9197 old_CFLAGS="$CFLAGS"
9198
9199 # Set sane defaults for various variables
9200 test -z "$CC" && CC=cc
9201 test -z "$LTCC" && LTCC=$CC
9202 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9203 test -z "$LD" && LD=ld
9204 test -z "$ac_objext" && ac_objext=o
9205
9206 for cc_temp in $compiler""; do
9207   case $cc_temp in
9208     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9209     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9210     \-*) ;;
9211     *) break;;
9212   esac
9213 done
9214 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9215
9216
9217 # Only perform the check for file, if the check method requires it
9218 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9219 case $deplibs_check_method in
9220 file_magic*)
9221   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9222     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
9223 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
9224 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9225   echo $ECHO_N "(cached) $ECHO_C" >&6
9226 else
9227   case $MAGIC_CMD in
9228 [\\/*] |  ?:[\\/]*)
9229   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9230   ;;
9231 *)
9232   lt_save_MAGIC_CMD="$MAGIC_CMD"
9233   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9234   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9235   for ac_dir in $ac_dummy; do
9236     IFS="$lt_save_ifs"
9237     test -z "$ac_dir" && ac_dir=.
9238     if test -f $ac_dir/${ac_tool_prefix}file; then
9239       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9240       if test -n "$file_magic_test_file"; then
9241         case $deplibs_check_method in
9242         "file_magic "*)
9243           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9244           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9245           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9246             $EGREP "$file_magic_regex" > /dev/null; then
9247             :
9248           else
9249             cat <<_LT_EOF 1>&2
9250
9251 *** Warning: the command libtool uses to detect shared libraries,
9252 *** $file_magic_cmd, produces output that libtool cannot recognize.
9253 *** The result is that libtool may fail to recognize shared libraries
9254 *** as such.  This will affect the creation of libtool libraries that
9255 *** depend on shared libraries, but programs linked with such libtool
9256 *** libraries will work regardless of this problem.  Nevertheless, you
9257 *** may want to report the problem to your system manager and/or to
9258 *** bug-libtool@gnu.org
9259
9260 _LT_EOF
9261           fi ;;
9262         esac
9263       fi
9264       break
9265     fi
9266   done
9267   IFS="$lt_save_ifs"
9268   MAGIC_CMD="$lt_save_MAGIC_CMD"
9269   ;;
9270 esac
9271 fi
9272
9273 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9274 if test -n "$MAGIC_CMD"; then
9275   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9276 echo "${ECHO_T}$MAGIC_CMD" >&6; }
9277 else
9278   { echo "$as_me:$LINENO: result: no" >&5
9279 echo "${ECHO_T}no" >&6; }
9280 fi
9281
9282
9283
9284
9285
9286 if test -z "$lt_cv_path_MAGIC_CMD"; then
9287   if test -n "$ac_tool_prefix"; then
9288     { echo "$as_me:$LINENO: checking for file" >&5
9289 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
9290 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9291   echo $ECHO_N "(cached) $ECHO_C" >&6
9292 else
9293   case $MAGIC_CMD in
9294 [\\/*] |  ?:[\\/]*)
9295   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9296   ;;
9297 *)
9298   lt_save_MAGIC_CMD="$MAGIC_CMD"
9299   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9300   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9301   for ac_dir in $ac_dummy; do
9302     IFS="$lt_save_ifs"
9303     test -z "$ac_dir" && ac_dir=.
9304     if test -f $ac_dir/file; then
9305       lt_cv_path_MAGIC_CMD="$ac_dir/file"
9306       if test -n "$file_magic_test_file"; then
9307         case $deplibs_check_method in
9308         "file_magic "*)
9309           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9310           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9311           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9312             $EGREP "$file_magic_regex" > /dev/null; then
9313             :
9314           else
9315             cat <<_LT_EOF 1>&2
9316
9317 *** Warning: the command libtool uses to detect shared libraries,
9318 *** $file_magic_cmd, produces output that libtool cannot recognize.
9319 *** The result is that libtool may fail to recognize shared libraries
9320 *** as such.  This will affect the creation of libtool libraries that
9321 *** depend on shared libraries, but programs linked with such libtool
9322 *** libraries will work regardless of this problem.  Nevertheless, you
9323 *** may want to report the problem to your system manager and/or to
9324 *** bug-libtool@gnu.org
9325
9326 _LT_EOF
9327           fi ;;
9328         esac
9329       fi
9330       break
9331     fi
9332   done
9333   IFS="$lt_save_ifs"
9334   MAGIC_CMD="$lt_save_MAGIC_CMD"
9335   ;;
9336 esac
9337 fi
9338
9339 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9340 if test -n "$MAGIC_CMD"; then
9341   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9342 echo "${ECHO_T}$MAGIC_CMD" >&6; }
9343 else
9344   { echo "$as_me:$LINENO: result: no" >&5
9345 echo "${ECHO_T}no" >&6; }
9346 fi
9347
9348
9349   else
9350     MAGIC_CMD=:
9351   fi
9352 fi
9353
9354   fi
9355   ;;
9356 esac
9357
9358 # Use C for the default configuration in the libtool script
9359
9360 lt_save_CC="$CC"
9361 ac_ext=c
9362 ac_cpp='$CPP $CPPFLAGS'
9363 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9364 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9365 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9366
9367
9368 # Source file extension for C test sources.
9369 ac_ext=c
9370
9371 # Object file extension for compiled C test sources.
9372 objext=o
9373 objext=$objext
9374
9375 # Code to be used in simple compile tests
9376 lt_simple_compile_test_code="int some_variable = 0;"
9377
9378 # Code to be used in simple link tests
9379 lt_simple_link_test_code='int main(){return(0);}'
9380
9381
9382
9383
9384
9385
9386
9387 # If no C compiler was specified, use CC.
9388 LTCC=${LTCC-"$CC"}
9389
9390 # If no C compiler flags were specified, use CFLAGS.
9391 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9392
9393 # Allow CC to be a program name with arguments.
9394 compiler=$CC
9395
9396 # Save the default compiler, since it gets overwritten when the other
9397 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9398 compiler_DEFAULT=$CC
9399
9400 # save warnings/boilerplate of simple test code
9401 ac_outfile=conftest.$ac_objext
9402 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9403 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9404 _lt_compiler_boilerplate=`cat conftest.err`
9405 $RM conftest*
9406
9407 ac_outfile=conftest.$ac_objext
9408 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9409 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9410 _lt_linker_boilerplate=`cat conftest.err`
9411 $RM -r conftest*
9412
9413
9414 ## CAVEAT EMPTOR:
9415 ## There is no encapsulation within the following macros, do not change
9416 ## the running order or otherwise move them around unless you know exactly
9417 ## what you are doing...
9418 if test -n "$compiler"; then
9419
9420 lt_prog_compiler_no_builtin_flag=
9421
9422 if test "$GCC" = yes; then
9423   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
9424
9425   { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9426 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
9427 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
9428   echo $ECHO_N "(cached) $ECHO_C" >&6
9429 else
9430   lt_cv_prog_compiler_rtti_exceptions=no
9431    ac_outfile=conftest.$ac_objext
9432    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9433    lt_compiler_flag="-fno-rtti -fno-exceptions"
9434    # Insert the option either (1) after the last *FLAGS variable, or
9435    # (2) before a word containing "conftest.", or (3) at the end.
9436    # Note that $ac_compile itself does not contain backslashes and begins
9437    # with a dollar sign (not a hyphen), so the echo should work correctly.
9438    # The option is referenced via a variable to avoid confusing sed.
9439    lt_compile=`echo "$ac_compile" | $SED \
9440    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9441    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9442    -e 's:$: $lt_compiler_flag:'`
9443    (eval echo "\"\$as_me:9443: $lt_compile\"" >&5)
9444    (eval "$lt_compile" 2>conftest.err)
9445    ac_status=$?
9446    cat conftest.err >&5
9447    echo "$as_me:9447: \$? = $ac_status" >&5
9448    if (exit $ac_status) && test -s "$ac_outfile"; then
9449      # The compiler can only warn and ignore the option if not recognized
9450      # So say no if there are warnings other than the usual output.
9451      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9452      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9453      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9454        lt_cv_prog_compiler_rtti_exceptions=yes
9455      fi
9456    fi
9457    $RM conftest*
9458
9459 fi
9460 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9461 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9462
9463 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9464     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9465 else
9466     :
9467 fi
9468
9469 fi
9470
9471
9472
9473
9474
9475
9476   lt_prog_compiler_wl=
9477 lt_prog_compiler_pic=
9478 lt_prog_compiler_static=
9479
9480 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
9481 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
9482
9483   if test "$GCC" = yes; then
9484     lt_prog_compiler_wl='-Wl,'
9485     lt_prog_compiler_static='-static'
9486
9487     case $host_os in
9488       aix*)
9489       # All AIX code is PIC.
9490       if test "$host_cpu" = ia64; then
9491         # AIX 5 now supports IA64 processor
9492         lt_prog_compiler_static='-Bstatic'
9493       fi
9494       ;;
9495
9496     amigaos*)
9497       case $host_cpu in
9498       powerpc)
9499             # see comment about AmigaOS4 .so support
9500             lt_prog_compiler_pic='-fPIC'
9501         ;;
9502       m68k)
9503             # FIXME: we need at least 68020 code to build shared libraries, but
9504             # adding the `-m68020' flag to GCC prevents building anything better,
9505             # like `-m68040'.
9506             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9507         ;;
9508       esac
9509       ;;
9510
9511     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9512       # PIC is the default for these OSes.
9513       ;;
9514
9515     mingw* | cygwin* | pw32* | os2* | cegcc*)
9516       # This hack is so that the source file can tell whether it is being
9517       # built for inclusion in a dll (and should export symbols for example).
9518       # Although the cygwin gcc ignores -fPIC, still need this for old-style
9519       # (--disable-auto-import) libraries
9520       lt_prog_compiler_pic='-DDLL_EXPORT'
9521       ;;
9522
9523     darwin* | rhapsody*)
9524       # PIC is the default on this platform
9525       # Common symbols not allowed in MH_DYLIB files
9526       lt_prog_compiler_pic='-fno-common'
9527       ;;
9528
9529     hpux*)
9530       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9531       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9532       # sets the default TLS model and affects inlining.
9533       case $host_cpu in
9534       hppa*64*)
9535         # +Z the default
9536         ;;
9537       *)
9538         lt_prog_compiler_pic='-fPIC'
9539         ;;
9540       esac
9541       ;;
9542
9543     interix[3-9]*)
9544       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9545       # Instead, we relocate shared libraries at runtime.
9546       ;;
9547
9548     msdosdjgpp*)
9549       # Just because we use GCC doesn't mean we suddenly get shared libraries
9550       # on systems that don't support them.
9551       lt_prog_compiler_can_build_shared=no
9552       enable_shared=no
9553       ;;
9554
9555     *nto* | *qnx*)
9556       # QNX uses GNU C++, but need to define -shared option too, otherwise
9557       # it will coredump.
9558       lt_prog_compiler_pic='-fPIC -shared'
9559       ;;
9560
9561     sysv4*MP*)
9562       if test -d /usr/nec; then
9563         lt_prog_compiler_pic=-Kconform_pic
9564       fi
9565       ;;
9566
9567     *)
9568       lt_prog_compiler_pic='-fPIC'
9569       ;;
9570     esac
9571   else
9572     # PORTME Check for flag to pass linker flags through the system compiler.
9573     case $host_os in
9574     aix*)
9575       lt_prog_compiler_wl='-Wl,'
9576       if test "$host_cpu" = ia64; then
9577         # AIX 5 now supports IA64 processor
9578         lt_prog_compiler_static='-Bstatic'
9579       else
9580         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9581       fi
9582       ;;
9583
9584     mingw* | cygwin* | pw32* | os2* | cegcc*)
9585       # This hack is so that the source file can tell whether it is being
9586       # built for inclusion in a dll (and should export symbols for example).
9587       lt_prog_compiler_pic='-DDLL_EXPORT'
9588       ;;
9589
9590     hpux9* | hpux10* | hpux11*)
9591       lt_prog_compiler_wl='-Wl,'
9592       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9593       # not for PA HP-UX.
9594       case $host_cpu in
9595       hppa*64*|ia64*)
9596         # +Z the default
9597         ;;
9598       *)
9599         lt_prog_compiler_pic='+Z'
9600         ;;
9601       esac
9602       # Is there a better lt_prog_compiler_static that works with the bundled CC?
9603       lt_prog_compiler_static='${wl}-a ${wl}archive'
9604       ;;
9605
9606     irix5* | irix6* | nonstopux*)
9607       lt_prog_compiler_wl='-Wl,'
9608       # PIC (with -KPIC) is the default.
9609       lt_prog_compiler_static='-non_shared'
9610       ;;
9611
9612     linux* | k*bsd*-gnu)
9613       case $cc_basename in
9614       # old Intel for x86_64 which still supported -KPIC.
9615       ecc*)
9616         lt_prog_compiler_wl='-Wl,'
9617         lt_prog_compiler_pic='-KPIC'
9618         lt_prog_compiler_static='-static'
9619         ;;
9620       # icc used to be incompatible with GCC.
9621       # ICC 10 doesn't accept -KPIC any more.
9622       icc* | ifort*)
9623         lt_prog_compiler_wl='-Wl,'
9624         lt_prog_compiler_pic='-fPIC'
9625         lt_prog_compiler_static='-static'
9626         ;;
9627       # Lahey Fortran 8.1.
9628       lf95*)
9629         lt_prog_compiler_wl='-Wl,'
9630         lt_prog_compiler_pic='--shared'
9631         lt_prog_compiler_static='--static'
9632         ;;
9633       pgcc* | pgf77* | pgf90* | pgf95*)
9634         # Portland Group compilers (*not* the Pentium gcc compiler,
9635         # which looks to be a dead project)
9636         lt_prog_compiler_wl='-Wl,'
9637         lt_prog_compiler_pic='-fpic'
9638         lt_prog_compiler_static='-Bstatic'
9639         ;;
9640       ccc*)
9641         lt_prog_compiler_wl='-Wl,'
9642         # All Alpha code is PIC.
9643         lt_prog_compiler_static='-non_shared'
9644         ;;
9645       xl*)
9646         # IBM XL C 8.0/Fortran 10.1 on PPC
9647         lt_prog_compiler_wl='-Wl,'
9648         lt_prog_compiler_pic='-qpic'
9649         lt_prog_compiler_static='-qstaticlink'
9650         ;;
9651       *)
9652         case `$CC -V 2>&1 | sed 5q` in
9653         *Sun\ C*)
9654           # Sun C 5.9
9655           lt_prog_compiler_pic='-KPIC'
9656           lt_prog_compiler_static='-Bstatic'
9657           lt_prog_compiler_wl='-Wl,'
9658           ;;
9659         *Sun\ F*)
9660           # Sun Fortran 8.3 passes all unrecognized flags to the linker
9661           lt_prog_compiler_pic='-KPIC'
9662           lt_prog_compiler_static='-Bstatic'
9663           lt_prog_compiler_wl=''
9664           ;;
9665         esac
9666         ;;
9667       esac
9668       ;;
9669
9670     newsos6)
9671       lt_prog_compiler_pic='-KPIC'
9672       lt_prog_compiler_static='-Bstatic'
9673       ;;
9674
9675     *nto* | *qnx*)
9676       # QNX uses GNU C++, but need to define -shared option too, otherwise
9677       # it will coredump.
9678       lt_prog_compiler_pic='-fPIC -shared'
9679       ;;
9680
9681     osf3* | osf4* | osf5*)
9682       lt_prog_compiler_wl='-Wl,'
9683       # All OSF/1 code is PIC.
9684       lt_prog_compiler_static='-non_shared'
9685       ;;
9686
9687     rdos*)
9688       lt_prog_compiler_static='-non_shared'
9689       ;;
9690
9691     solaris*)
9692       lt_prog_compiler_pic='-KPIC'
9693       lt_prog_compiler_static='-Bstatic'
9694       case $cc_basename in
9695       f77* | f90* | f95*)
9696         lt_prog_compiler_wl='-Qoption ld ';;
9697       *)
9698         lt_prog_compiler_wl='-Wl,';;
9699       esac
9700       ;;
9701
9702     sunos4*)
9703       lt_prog_compiler_wl='-Qoption ld '
9704       lt_prog_compiler_pic='-PIC'
9705       lt_prog_compiler_static='-Bstatic'
9706       ;;
9707
9708     sysv4 | sysv4.2uw2* | sysv4.3*)
9709       lt_prog_compiler_wl='-Wl,'
9710       lt_prog_compiler_pic='-KPIC'
9711       lt_prog_compiler_static='-Bstatic'
9712       ;;
9713
9714     sysv4*MP*)
9715       if test -d /usr/nec ;then
9716         lt_prog_compiler_pic='-Kconform_pic'
9717         lt_prog_compiler_static='-Bstatic'
9718       fi
9719       ;;
9720
9721     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9722       lt_prog_compiler_wl='-Wl,'
9723       lt_prog_compiler_pic='-KPIC'
9724       lt_prog_compiler_static='-Bstatic'
9725       ;;
9726
9727     unicos*)
9728       lt_prog_compiler_wl='-Wl,'
9729       lt_prog_compiler_can_build_shared=no
9730       ;;
9731
9732     uts4*)
9733       lt_prog_compiler_pic='-pic'
9734       lt_prog_compiler_static='-Bstatic'
9735       ;;
9736
9737     *)
9738       lt_prog_compiler_can_build_shared=no
9739       ;;
9740     esac
9741   fi
9742
9743 case $host_os in
9744   # For platforms which do not support PIC, -DPIC is meaningless:
9745   *djgpp*)
9746     lt_prog_compiler_pic=
9747     ;;
9748   *)
9749     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9750     ;;
9751 esac
9752 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
9753 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
9754
9755
9756
9757
9758
9759
9760 #
9761 # Check to make sure the PIC flag actually works.
9762 #
9763 if test -n "$lt_prog_compiler_pic"; then
9764   { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9765 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
9766 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
9767   echo $ECHO_N "(cached) $ECHO_C" >&6
9768 else
9769   lt_cv_prog_compiler_pic_works=no
9770    ac_outfile=conftest.$ac_objext
9771    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9772    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9773    # Insert the option either (1) after the last *FLAGS variable, or
9774    # (2) before a word containing "conftest.", or (3) at the end.
9775    # Note that $ac_compile itself does not contain backslashes and begins
9776    # with a dollar sign (not a hyphen), so the echo should work correctly.
9777    # The option is referenced via a variable to avoid confusing sed.
9778    lt_compile=`echo "$ac_compile" | $SED \
9779    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9780    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9781    -e 's:$: $lt_compiler_flag:'`
9782    (eval echo "\"\$as_me:9782: $lt_compile\"" >&5)
9783    (eval "$lt_compile" 2>conftest.err)
9784    ac_status=$?
9785    cat conftest.err >&5
9786    echo "$as_me:9786: \$? = $ac_status" >&5
9787    if (exit $ac_status) && test -s "$ac_outfile"; then
9788      # The compiler can only warn and ignore the option if not recognized
9789      # So say no if there are warnings other than the usual output.
9790      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9791      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9792      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9793        lt_cv_prog_compiler_pic_works=yes
9794      fi
9795    fi
9796    $RM conftest*
9797
9798 fi
9799 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
9800 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
9801
9802 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9803     case $lt_prog_compiler_pic in
9804      "" | " "*) ;;
9805      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9806      esac
9807 else
9808     lt_prog_compiler_pic=
9809      lt_prog_compiler_can_build_shared=no
9810 fi
9811
9812 fi
9813
9814
9815
9816
9817
9818
9819 #
9820 # Check to make sure the static flag actually works.
9821 #
9822 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9823 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9824 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
9825 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
9826   echo $ECHO_N "(cached) $ECHO_C" >&6
9827 else
9828   lt_cv_prog_compiler_static_works=no
9829    save_LDFLAGS="$LDFLAGS"
9830    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9831    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9832    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9833      # The linker can only warn and ignore the option if not recognized
9834      # So say no if there are warnings
9835      if test -s conftest.err; then
9836        # Append any errors to the config.log.
9837        cat conftest.err 1>&5
9838        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9839        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9840        if diff conftest.exp conftest.er2 >/dev/null; then
9841          lt_cv_prog_compiler_static_works=yes
9842        fi
9843      else
9844        lt_cv_prog_compiler_static_works=yes
9845      fi
9846    fi
9847    $RM -r conftest*
9848    LDFLAGS="$save_LDFLAGS"
9849
9850 fi
9851 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
9852 echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
9853
9854 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9855     :
9856 else
9857     lt_prog_compiler_static=
9858 fi
9859
9860
9861
9862
9863
9864
9865
9866   { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9867 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
9868 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9869   echo $ECHO_N "(cached) $ECHO_C" >&6
9870 else
9871   lt_cv_prog_compiler_c_o=no
9872    $RM -r conftest 2>/dev/null
9873    mkdir conftest
9874    cd conftest
9875    mkdir out
9876    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9877
9878    lt_compiler_flag="-o out/conftest2.$ac_objext"
9879    # Insert the option either (1) after the last *FLAGS variable, or
9880    # (2) before a word containing "conftest.", or (3) at the end.
9881    # Note that $ac_compile itself does not contain backslashes and begins
9882    # with a dollar sign (not a hyphen), so the echo should work correctly.
9883    lt_compile=`echo "$ac_compile" | $SED \
9884    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9885    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9886    -e 's:$: $lt_compiler_flag:'`
9887    (eval echo "\"\$as_me:9887: $lt_compile\"" >&5)
9888    (eval "$lt_compile" 2>out/conftest.err)
9889    ac_status=$?
9890    cat out/conftest.err >&5
9891    echo "$as_me:9891: \$? = $ac_status" >&5
9892    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9893    then
9894      # The compiler can only warn and ignore the option if not recognized
9895      # So say no if there are warnings
9896      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9897      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9898      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9899        lt_cv_prog_compiler_c_o=yes
9900      fi
9901    fi
9902    chmod u+w . 2>&5
9903    $RM conftest*
9904    # SGI C++ compiler will create directory out/ii_files/ for
9905    # template instantiation
9906    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9907    $RM out/* && rmdir out
9908    cd ..
9909    $RM -r conftest
9910    $RM conftest*
9911
9912 fi
9913 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9914 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
9915
9916
9917
9918
9919
9920
9921   { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9922 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
9923 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9924   echo $ECHO_N "(cached) $ECHO_C" >&6
9925 else
9926   lt_cv_prog_compiler_c_o=no
9927    $RM -r conftest 2>/dev/null
9928    mkdir conftest
9929    cd conftest
9930    mkdir out
9931    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9932
9933    lt_compiler_flag="-o out/conftest2.$ac_objext"
9934    # Insert the option either (1) after the last *FLAGS variable, or
9935    # (2) before a word containing "conftest.", or (3) at the end.
9936    # Note that $ac_compile itself does not contain backslashes and begins
9937    # with a dollar sign (not a hyphen), so the echo should work correctly.
9938    lt_compile=`echo "$ac_compile" | $SED \
9939    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9940    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9941    -e 's:$: $lt_compiler_flag:'`
9942    (eval echo "\"\$as_me:9942: $lt_compile\"" >&5)
9943    (eval "$lt_compile" 2>out/conftest.err)
9944    ac_status=$?
9945    cat out/conftest.err >&5
9946    echo "$as_me:9946: \$? = $ac_status" >&5
9947    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9948    then
9949      # The compiler can only warn and ignore the option if not recognized
9950      # So say no if there are warnings
9951      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9952      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9953      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9954        lt_cv_prog_compiler_c_o=yes
9955      fi
9956    fi
9957    chmod u+w . 2>&5
9958    $RM conftest*
9959    # SGI C++ compiler will create directory out/ii_files/ for
9960    # template instantiation
9961    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9962    $RM out/* && rmdir out
9963    cd ..
9964    $RM -r conftest
9965    $RM conftest*
9966
9967 fi
9968 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9969 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
9970
9971
9972
9973
9974 hard_links="nottested"
9975 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9976   # do not overwrite the value of need_locks provided by the user
9977   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
9978 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
9979   hard_links=yes
9980   $RM conftest*
9981   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9982   touch conftest.a
9983   ln conftest.a conftest.b 2>&5 || hard_links=no
9984   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9985   { echo "$as_me:$LINENO: result: $hard_links" >&5
9986 echo "${ECHO_T}$hard_links" >&6; }
9987   if test "$hard_links" = no; then
9988     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9989 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9990     need_locks=warn
9991   fi
9992 else
9993   need_locks=no
9994 fi
9995
9996
9997
9998
9999
10000
10001   { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10002 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
10003
10004   runpath_var=
10005   allow_undefined_flag=
10006   always_export_symbols=no
10007   archive_cmds=
10008   archive_expsym_cmds=
10009   compiler_needs_object=no
10010   enable_shared_with_static_runtimes=no
10011   export_dynamic_flag_spec=
10012   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10013   hardcode_automatic=no
10014   hardcode_direct=no
10015   hardcode_direct_absolute=no
10016   hardcode_libdir_flag_spec=
10017   hardcode_libdir_flag_spec_ld=
10018   hardcode_libdir_separator=
10019   hardcode_minus_L=no
10020   hardcode_shlibpath_var=unsupported
10021   inherit_rpath=no
10022   link_all_deplibs=unknown
10023   module_cmds=
10024   module_expsym_cmds=
10025   old_archive_from_new_cmds=
10026   old_archive_from_expsyms_cmds=
10027   thread_safe_flag_spec=
10028   whole_archive_flag_spec=
10029   # include_expsyms should be a list of space-separated symbols to be *always*
10030   # included in the symbol list
10031   include_expsyms=
10032   # exclude_expsyms can be an extended regexp of symbols to exclude
10033   # it will be wrapped by ` (' and `)$', so one must not match beginning or
10034   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10035   # as well as any symbol that contains `d'.
10036   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10037   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10038   # platforms (ab)use it in PIC code, but their linkers get confused if
10039   # the symbol is explicitly referenced.  Since portable code cannot
10040   # rely on this symbol name, it's probably fine to never include it in
10041   # preloaded symbol tables.
10042   # Exclude shared library initialization/finalization symbols.
10043   extract_expsyms_cmds=
10044
10045   case $host_os in
10046   cygwin* | mingw* | pw32* | cegcc*)
10047     # FIXME: the MSVC++ port hasn't been tested in a loooong time
10048     # When not using gcc, we currently assume that we are using
10049     # Microsoft Visual C++.
10050     if test "$GCC" != yes; then
10051       with_gnu_ld=no
10052     fi
10053     ;;
10054   interix*)
10055     # we just hope/assume this is gcc and not c89 (= MSVC++)
10056     with_gnu_ld=yes
10057     ;;
10058   openbsd*)
10059     with_gnu_ld=no
10060     ;;
10061   esac
10062
10063   ld_shlibs=yes
10064   if test "$with_gnu_ld" = yes; then
10065     # If archive_cmds runs LD, not CC, wlarc should be empty
10066     wlarc='${wl}'
10067
10068     # Set some defaults for GNU ld with shared library support. These
10069     # are reset later if shared libraries are not supported. Putting them
10070     # here allows them to be overridden if necessary.
10071     runpath_var=LD_RUN_PATH
10072     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10073     export_dynamic_flag_spec='${wl}--export-dynamic'
10074     # ancient GNU ld didn't support --whole-archive et. al.
10075     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10076       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10077     else
10078       whole_archive_flag_spec=
10079     fi
10080     supports_anon_versioning=no
10081     case `$LD -v 2>&1` in
10082       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10083       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10084       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10085       *\ 2.11.*) ;; # other 2.11 versions
10086       *) supports_anon_versioning=yes ;;
10087     esac
10088
10089     # See if GNU ld supports shared libraries.
10090     case $host_os in
10091     aix[3-9]*)
10092       # On AIX/PPC, the GNU linker is very broken
10093       if test "$host_cpu" != ia64; then
10094         ld_shlibs=no
10095         cat <<_LT_EOF 1>&2
10096
10097 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
10098 *** to be unable to reliably create shared libraries on AIX.
10099 *** Therefore, libtool is disabling shared libraries support.  If you
10100 *** really care for shared libraries, you may want to modify your PATH
10101 *** so that a non-GNU linker is found, and then restart.
10102
10103 _LT_EOF
10104       fi
10105       ;;
10106
10107     amigaos*)
10108       case $host_cpu in
10109       powerpc)
10110             # see comment about AmigaOS4 .so support
10111             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10112             archive_expsym_cmds=''
10113         ;;
10114       m68k)
10115             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)'
10116             hardcode_libdir_flag_spec='-L$libdir'
10117             hardcode_minus_L=yes
10118         ;;
10119       esac
10120       ;;
10121
10122     beos*)
10123       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10124         allow_undefined_flag=unsupported
10125         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10126         # support --undefined.  This deserves some investigation.  FIXME
10127         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10128       else
10129         ld_shlibs=no
10130       fi
10131       ;;
10132
10133     cygwin* | mingw* | pw32* | cegcc*)
10134       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10135       # as there is no search path for DLLs.
10136       hardcode_libdir_flag_spec='-L$libdir'
10137       allow_undefined_flag=unsupported
10138       always_export_symbols=no
10139       enable_shared_with_static_runtimes=yes
10140       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10141
10142       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10143         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10144         # If the export-symbols file already is a .def file (1st line
10145         # is EXPORTS), use it as is; otherwise, prepend...
10146         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10147           cp $export_symbols $output_objdir/$soname.def;
10148         else
10149           echo EXPORTS > $output_objdir/$soname.def;
10150           cat $export_symbols >> $output_objdir/$soname.def;
10151         fi~
10152         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10153       else
10154         ld_shlibs=no
10155       fi
10156       ;;
10157
10158     interix[3-9]*)
10159       hardcode_direct=no
10160       hardcode_shlibpath_var=no
10161       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10162       export_dynamic_flag_spec='${wl}-E'
10163       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10164       # Instead, shared libraries are loaded at an image base (0x10000000 by
10165       # default) and relocated if they conflict, which is a slow very memory
10166       # consuming and fragmenting process.  To avoid this, we pick a random,
10167       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10168       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10169       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10170       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'
10171       ;;
10172
10173     gnu* | linux* | tpf* | k*bsd*-gnu)
10174       tmp_diet=no
10175       if test "$host_os" = linux-dietlibc; then
10176         case $cc_basename in
10177           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
10178         esac
10179       fi
10180       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10181          && test "$tmp_diet" = no
10182       then
10183         tmp_addflag=
10184         tmp_sharedflag='-shared'
10185         case $cc_basename,$host_cpu in
10186         pgcc*)                          # Portland Group C compiler
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'
10189           ;;
10190         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
10191           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'
10192           tmp_addflag=' $pic_flag -Mnomain' ;;
10193         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
10194           tmp_addflag=' -i_dynamic' ;;
10195         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
10196           tmp_addflag=' -i_dynamic -nofor_main' ;;
10197         ifc* | ifort*)                  # Intel Fortran compiler
10198           tmp_addflag=' -nofor_main' ;;
10199         lf95*)                          # Lahey Fortran 8.1
10200           whole_archive_flag_spec=
10201           tmp_sharedflag='--shared' ;;
10202         xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
10203           tmp_sharedflag='-qmkshrobj'
10204           tmp_addflag= ;;
10205         esac
10206         case `$CC -V 2>&1 | sed 5q` in
10207         *Sun\ C*)                       # Sun C 5.9
10208           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'
10209           compiler_needs_object=yes
10210           tmp_sharedflag='-G' ;;
10211         *Sun\ F*)                       # Sun Fortran 8.3
10212           tmp_sharedflag='-G' ;;
10213         esac
10214         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10215
10216         if test "x$supports_anon_versioning" = xyes; then
10217           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10218             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10219             echo "local: *; };" >> $output_objdir/$libname.ver~
10220             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10221         fi
10222
10223         case $cc_basename in
10224         xlf*)
10225           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10226           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10227           hardcode_libdir_flag_spec=
10228           hardcode_libdir_flag_spec_ld='-rpath $libdir'
10229           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
10230           if test "x$supports_anon_versioning" = xyes; then
10231             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10232               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10233               echo "local: *; };" >> $output_objdir/$libname.ver~
10234               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10235           fi
10236           ;;
10237         esac
10238       else
10239         ld_shlibs=no
10240       fi
10241       ;;
10242
10243     netbsd*)
10244       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10245         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10246         wlarc=
10247       else
10248         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10249         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10250       fi
10251       ;;
10252
10253     solaris*)
10254       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10255         ld_shlibs=no
10256         cat <<_LT_EOF 1>&2
10257
10258 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10259 *** create shared libraries on Solaris systems.  Therefore, libtool
10260 *** is disabling shared libraries support.  We urge you to upgrade GNU
10261 *** binutils to release 2.9.1 or newer.  Another option is to modify
10262 *** your PATH or compiler configuration so that the native linker is
10263 *** used, and then restart.
10264
10265 _LT_EOF
10266       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10267         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10268         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10269       else
10270         ld_shlibs=no
10271       fi
10272       ;;
10273
10274     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10275       case `$LD -v 2>&1` in
10276         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10277         ld_shlibs=no
10278         cat <<_LT_EOF 1>&2
10279
10280 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10281 *** reliably create shared libraries on SCO systems.  Therefore, libtool
10282 *** is disabling shared libraries support.  We urge you to upgrade GNU
10283 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10284 *** your PATH or compiler configuration so that the native linker is
10285 *** used, and then restart.
10286
10287 _LT_EOF
10288         ;;
10289         *)
10290           # For security reasons, it is highly recommended that you always
10291           # use absolute paths for naming shared libraries, and exclude the
10292           # DT_RUNPATH tag from executables and libraries.  But doing so
10293           # requires that you compile everything twice, which is a pain.
10294           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10295             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10296             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10297             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10298           else
10299             ld_shlibs=no
10300           fi
10301         ;;
10302       esac
10303       ;;
10304
10305     sunos4*)
10306       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10307       wlarc=
10308       hardcode_direct=yes
10309       hardcode_shlibpath_var=no
10310       ;;
10311
10312     *)
10313       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10314         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10315         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10316       else
10317         ld_shlibs=no
10318       fi
10319       ;;
10320     esac
10321
10322     if test "$ld_shlibs" = no; then
10323       runpath_var=
10324       hardcode_libdir_flag_spec=
10325       export_dynamic_flag_spec=
10326       whole_archive_flag_spec=
10327     fi
10328   else
10329     # PORTME fill in a description of your system's linker (not GNU ld)
10330     case $host_os in
10331     aix3*)
10332       allow_undefined_flag=unsupported
10333       always_export_symbols=yes
10334       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'
10335       # Note: this linker hardcodes the directories in LIBPATH if there
10336       # are no directories specified by -L.
10337       hardcode_minus_L=yes
10338       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10339         # Neither direct hardcoding nor static linking is supported with a
10340         # broken collect2.
10341         hardcode_direct=unsupported
10342       fi
10343       ;;
10344
10345     aix[4-9]*)
10346       if test "$host_cpu" = ia64; then
10347         # On IA64, the linker does run time linking by default, so we don't
10348         # have to do anything special.
10349         aix_use_runtimelinking=no
10350         exp_sym_flag='-Bexport'
10351         no_entry_flag=""
10352       else
10353         # If we're using GNU nm, then we don't want the "-C" option.
10354         # -C means demangle to AIX nm, but means don't demangle with GNU nm
10355         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10356           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'
10357         else
10358           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'
10359         fi
10360         aix_use_runtimelinking=no
10361
10362         # Test if we are trying to use run time linking or normal
10363         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10364         # need to do runtime linking.
10365         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10366           for ld_flag in $LDFLAGS; do
10367           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10368             aix_use_runtimelinking=yes
10369             break
10370           fi
10371           done
10372           ;;
10373         esac
10374
10375         exp_sym_flag='-bexport'
10376         no_entry_flag='-bnoentry'
10377       fi
10378
10379       # When large executables or shared objects are built, AIX ld can
10380       # have problems creating the table of contents.  If linking a library
10381       # or program results in "error TOC overflow" add -mminimal-toc to
10382       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10383       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10384
10385       archive_cmds=''
10386       hardcode_direct=yes
10387       hardcode_direct_absolute=yes
10388       hardcode_libdir_separator=':'
10389       link_all_deplibs=yes
10390       file_list_spec='${wl}-f,'
10391
10392       if test "$GCC" = yes; then
10393         case $host_os in aix4.[012]|aix4.[012].*)
10394         # We only want to do this on AIX 4.2 and lower, the check
10395         # below for broken collect2 doesn't work under 4.3+
10396           collect2name=`${CC} -print-prog-name=collect2`
10397           if test -f "$collect2name" &&
10398            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10399           then
10400           # We have reworked collect2
10401           :
10402           else
10403           # We have old collect2
10404           hardcode_direct=unsupported
10405           # It fails to find uninstalled libraries when the uninstalled
10406           # path is not listed in the libpath.  Setting hardcode_minus_L
10407           # to unsupported forces relinking
10408           hardcode_minus_L=yes
10409           hardcode_libdir_flag_spec='-L$libdir'
10410           hardcode_libdir_separator=
10411           fi
10412           ;;
10413         esac
10414         shared_flag='-shared'
10415         if test "$aix_use_runtimelinking" = yes; then
10416           shared_flag="$shared_flag "'${wl}-G'
10417         fi
10418       else
10419         # not using gcc
10420         if test "$host_cpu" = ia64; then
10421         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10422         # chokes on -Wl,-G. The following line is correct:
10423           shared_flag='-G'
10424         else
10425           if test "$aix_use_runtimelinking" = yes; then
10426             shared_flag='${wl}-G'
10427           else
10428             shared_flag='${wl}-bM:SRE'
10429           fi
10430         fi
10431       fi
10432
10433       export_dynamic_flag_spec='${wl}-bexpall'
10434       # It seems that -bexpall does not export symbols beginning with
10435       # underscore (_), so it is better to generate a list of symbols to export.
10436       always_export_symbols=yes
10437       if test "$aix_use_runtimelinking" = yes; then
10438         # Warning - without using the other runtime loading flags (-brtl),
10439         # -berok will link without error, but may produce a broken library.
10440         allow_undefined_flag='-berok'
10441         # Determine the default libpath from the value encoded in an
10442         # empty executable.
10443         cat >conftest.$ac_ext <<_ACEOF
10444 /* confdefs.h.  */
10445 _ACEOF
10446 cat confdefs.h >>conftest.$ac_ext
10447 cat >>conftest.$ac_ext <<_ACEOF
10448 /* end confdefs.h.  */
10449
10450 int
10451 main ()
10452 {
10453
10454   ;
10455   return 0;
10456 }
10457 _ACEOF
10458 rm -f conftest.$ac_objext conftest$ac_exeext
10459 if { (ac_try="$ac_link"
10460 case "(($ac_try" in
10461   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10462   *) ac_try_echo=$ac_try;;
10463 esac
10464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10465   (eval "$ac_link") 2>conftest.er1
10466   ac_status=$?
10467   grep -v '^ *+' conftest.er1 >conftest.err
10468   rm -f conftest.er1
10469   cat conftest.err >&5
10470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10471   (exit $ac_status); } && {
10472          test -z "$ac_c_werror_flag" ||
10473          test ! -s conftest.err
10474        } && test -s conftest$ac_exeext &&
10475        $as_test_x conftest$ac_exeext; then
10476
10477 lt_aix_libpath_sed='
10478     /Import File Strings/,/^$/ {
10479         /^0/ {
10480             s/^0  *\(.*\)$/\1/
10481             p
10482         }
10483     }'
10484 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10485 # Check for a 64-bit object if we didn't find anything.
10486 if test -z "$aix_libpath"; then
10487   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10488 fi
10489 else
10490   echo "$as_me: failed program was:" >&5
10491 sed 's/^/| /' conftest.$ac_ext >&5
10492
10493
10494 fi
10495
10496 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10497       conftest$ac_exeext conftest.$ac_ext
10498 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10499
10500         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10501         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"
10502       else
10503         if test "$host_cpu" = ia64; then
10504           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10505           allow_undefined_flag="-z nodefs"
10506           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"
10507         else
10508          # Determine the default libpath from the value encoded in an
10509          # empty executable.
10510          cat >conftest.$ac_ext <<_ACEOF
10511 /* confdefs.h.  */
10512 _ACEOF
10513 cat confdefs.h >>conftest.$ac_ext
10514 cat >>conftest.$ac_ext <<_ACEOF
10515 /* end confdefs.h.  */
10516
10517 int
10518 main ()
10519 {
10520
10521   ;
10522   return 0;
10523 }
10524 _ACEOF
10525 rm -f conftest.$ac_objext conftest$ac_exeext
10526 if { (ac_try="$ac_link"
10527 case "(($ac_try" in
10528   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10529   *) ac_try_echo=$ac_try;;
10530 esac
10531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10532   (eval "$ac_link") 2>conftest.er1
10533   ac_status=$?
10534   grep -v '^ *+' conftest.er1 >conftest.err
10535   rm -f conftest.er1
10536   cat conftest.err >&5
10537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10538   (exit $ac_status); } && {
10539          test -z "$ac_c_werror_flag" ||
10540          test ! -s conftest.err
10541        } && test -s conftest$ac_exeext &&
10542        $as_test_x conftest$ac_exeext; then
10543
10544 lt_aix_libpath_sed='
10545     /Import File Strings/,/^$/ {
10546         /^0/ {
10547             s/^0  *\(.*\)$/\1/
10548             p
10549         }
10550     }'
10551 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10552 # Check for a 64-bit object if we didn't find anything.
10553 if test -z "$aix_libpath"; then
10554   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10555 fi
10556 else
10557   echo "$as_me: failed program was:" >&5
10558 sed 's/^/| /' conftest.$ac_ext >&5
10559
10560
10561 fi
10562
10563 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10564       conftest$ac_exeext conftest.$ac_ext
10565 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10566
10567          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10568           # Warning - without using the other run time loading flags,
10569           # -berok will link without error, but may produce a broken library.
10570           no_undefined_flag=' ${wl}-bernotok'
10571           allow_undefined_flag=' ${wl}-berok'
10572           # Exported symbols can be pulled into shared objects from archives
10573           whole_archive_flag_spec='$convenience'
10574           archive_cmds_need_lc=yes
10575           # This is similar to how AIX traditionally builds its shared libraries.
10576           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'
10577         fi
10578       fi
10579       ;;
10580
10581     amigaos*)
10582       case $host_cpu in
10583       powerpc)
10584             # see comment about AmigaOS4 .so support
10585             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10586             archive_expsym_cmds=''
10587         ;;
10588       m68k)
10589             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)'
10590             hardcode_libdir_flag_spec='-L$libdir'
10591             hardcode_minus_L=yes
10592         ;;
10593       esac
10594       ;;
10595
10596     bsdi[45]*)
10597       export_dynamic_flag_spec=-rdynamic
10598       ;;
10599
10600     cygwin* | mingw* | pw32* | cegcc*)
10601       # When not using gcc, we currently assume that we are using
10602       # Microsoft Visual C++.
10603       # hardcode_libdir_flag_spec is actually meaningless, as there is
10604       # no search path for DLLs.
10605       hardcode_libdir_flag_spec=' '
10606       allow_undefined_flag=unsupported
10607       # Tell ltmain to make .lib files, not .a files.
10608       libext=lib
10609       # Tell ltmain to make .dll files, not .so files.
10610       shrext_cmds=".dll"
10611       # FIXME: Setting linknames here is a bad hack.
10612       archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
10613       # The linker will automatically build a .lib file if we build a DLL.
10614       old_archive_from_new_cmds='true'
10615       # FIXME: Should let the user specify the lib program.
10616       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10617       fix_srcfile_path='`cygpath -w "$srcfile"`'
10618       enable_shared_with_static_runtimes=yes
10619       ;;
10620
10621     darwin* | rhapsody*)
10622
10623
10624   archive_cmds_need_lc=no
10625   hardcode_direct=no
10626   hardcode_automatic=yes
10627   hardcode_shlibpath_var=unsupported
10628   whole_archive_flag_spec=''
10629   link_all_deplibs=yes
10630   allow_undefined_flag="$_lt_dar_allow_undefined"
10631   case $cc_basename in
10632      ifort*) _lt_dar_can_shared=yes ;;
10633      *) _lt_dar_can_shared=$GCC ;;
10634   esac
10635   if test "$_lt_dar_can_shared" = "yes"; then
10636     output_verbose_link_cmd=echo
10637     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10638     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10639     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}"
10640     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}"
10641
10642   else
10643   ld_shlibs=no
10644   fi
10645
10646       ;;
10647
10648     dgux*)
10649       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10650       hardcode_libdir_flag_spec='-L$libdir'
10651       hardcode_shlibpath_var=no
10652       ;;
10653
10654     freebsd1*)
10655       ld_shlibs=no
10656       ;;
10657
10658     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10659     # support.  Future versions do this automatically, but an explicit c++rt0.o
10660     # does not break anything, and helps significantly (at the cost of a little
10661     # extra space).
10662     freebsd2.2*)
10663       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10664       hardcode_libdir_flag_spec='-R$libdir'
10665       hardcode_direct=yes
10666       hardcode_shlibpath_var=no
10667       ;;
10668
10669     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10670     freebsd2*)
10671       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10672       hardcode_direct=yes
10673       hardcode_minus_L=yes
10674       hardcode_shlibpath_var=no
10675       ;;
10676
10677     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10678     freebsd* | dragonfly*)
10679       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10680       hardcode_libdir_flag_spec='-R$libdir'
10681       hardcode_direct=yes
10682       hardcode_shlibpath_var=no
10683       ;;
10684
10685     hpux9*)
10686       if test "$GCC" = yes; then
10687         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'
10688       else
10689         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'
10690       fi
10691       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10692       hardcode_libdir_separator=:
10693       hardcode_direct=yes
10694
10695       # hardcode_minus_L: Not really in the search PATH,
10696       # but as the default location of the library.
10697       hardcode_minus_L=yes
10698       export_dynamic_flag_spec='${wl}-E'
10699       ;;
10700
10701     hpux10*)
10702       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10703         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10704       else
10705         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10706       fi
10707       if test "$with_gnu_ld" = no; then
10708         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10709         hardcode_libdir_flag_spec_ld='+b $libdir'
10710         hardcode_libdir_separator=:
10711         hardcode_direct=yes
10712         hardcode_direct_absolute=yes
10713         export_dynamic_flag_spec='${wl}-E'
10714         # hardcode_minus_L: Not really in the search PATH,
10715         # but as the default location of the library.
10716         hardcode_minus_L=yes
10717       fi
10718       ;;
10719
10720     hpux11*)
10721       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10722         case $host_cpu in
10723         hppa*64*)
10724           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10725           ;;
10726         ia64*)
10727           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10728           ;;
10729         *)
10730           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10731           ;;
10732         esac
10733       else
10734         case $host_cpu in
10735         hppa*64*)
10736           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10737           ;;
10738         ia64*)
10739           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10740           ;;
10741         *)
10742           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10743           ;;
10744         esac
10745       fi
10746       if test "$with_gnu_ld" = no; then
10747         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10748         hardcode_libdir_separator=:
10749
10750         case $host_cpu in
10751         hppa*64*|ia64*)
10752           hardcode_direct=no
10753           hardcode_shlibpath_var=no
10754           ;;
10755         *)
10756           hardcode_direct=yes
10757           hardcode_direct_absolute=yes
10758           export_dynamic_flag_spec='${wl}-E'
10759
10760           # hardcode_minus_L: Not really in the search PATH,
10761           # but as the default location of the library.
10762           hardcode_minus_L=yes
10763           ;;
10764         esac
10765       fi
10766       ;;
10767
10768     irix5* | irix6* | nonstopux*)
10769       if test "$GCC" = yes; then
10770         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'
10771         # Try to use the -exported_symbol ld option, if it does not
10772         # work, assume that -exports_file does not work either and
10773         # implicitly export all symbols.
10774         save_LDFLAGS="$LDFLAGS"
10775         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10776         cat >conftest.$ac_ext <<_ACEOF
10777 int foo(void) {}
10778 _ACEOF
10779 rm -f conftest.$ac_objext conftest$ac_exeext
10780 if { (ac_try="$ac_link"
10781 case "(($ac_try" in
10782   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10783   *) ac_try_echo=$ac_try;;
10784 esac
10785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10786   (eval "$ac_link") 2>conftest.er1
10787   ac_status=$?
10788   grep -v '^ *+' conftest.er1 >conftest.err
10789   rm -f conftest.er1
10790   cat conftest.err >&5
10791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10792   (exit $ac_status); } && {
10793          test -z "$ac_c_werror_flag" ||
10794          test ! -s conftest.err
10795        } && test -s conftest$ac_exeext &&
10796        $as_test_x conftest$ac_exeext; then
10797   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'
10798
10799 else
10800   echo "$as_me: failed program was:" >&5
10801 sed 's/^/| /' conftest.$ac_ext >&5
10802
10803
10804 fi
10805
10806 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10807       conftest$ac_exeext conftest.$ac_ext
10808         LDFLAGS="$save_LDFLAGS"
10809       else
10810         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'
10811         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'
10812       fi
10813       archive_cmds_need_lc='no'
10814       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10815       hardcode_libdir_separator=:
10816       inherit_rpath=yes
10817       link_all_deplibs=yes
10818       ;;
10819
10820     netbsd*)
10821       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10822         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10823       else
10824         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10825       fi
10826       hardcode_libdir_flag_spec='-R$libdir'
10827       hardcode_direct=yes
10828       hardcode_shlibpath_var=no
10829       ;;
10830
10831     newsos6)
10832       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10833       hardcode_direct=yes
10834       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10835       hardcode_libdir_separator=:
10836       hardcode_shlibpath_var=no
10837       ;;
10838
10839     *nto* | *qnx*)
10840       ;;
10841
10842     openbsd*)
10843       if test -f /usr/libexec/ld.so; then
10844         hardcode_direct=yes
10845         hardcode_shlibpath_var=no
10846         hardcode_direct_absolute=yes
10847         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10848           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10849           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10850           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10851           export_dynamic_flag_spec='${wl}-E'
10852         else
10853           case $host_os in
10854            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10855              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10856              hardcode_libdir_flag_spec='-R$libdir'
10857              ;;
10858            *)
10859              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10860              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10861              ;;
10862           esac
10863         fi
10864       else
10865         ld_shlibs=no
10866       fi
10867       ;;
10868
10869     os2*)
10870       hardcode_libdir_flag_spec='-L$libdir'
10871       hardcode_minus_L=yes
10872       allow_undefined_flag=unsupported
10873       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'
10874       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10875       ;;
10876
10877     osf3*)
10878       if test "$GCC" = yes; then
10879         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10880         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'
10881       else
10882         allow_undefined_flag=' -expect_unresolved \*'
10883         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'
10884       fi
10885       archive_cmds_need_lc='no'
10886       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10887       hardcode_libdir_separator=:
10888       ;;
10889
10890     osf4* | osf5*)      # as osf3* with the addition of -msym flag
10891       if test "$GCC" = yes; then
10892         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10893         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'
10894         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10895       else
10896         allow_undefined_flag=' -expect_unresolved \*'
10897         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'
10898         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~
10899         $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'
10900
10901         # Both c and cxx compiler support -rpath directly
10902         hardcode_libdir_flag_spec='-rpath $libdir'
10903       fi
10904       archive_cmds_need_lc='no'
10905       hardcode_libdir_separator=:
10906       ;;
10907
10908     solaris*)
10909       no_undefined_flag=' -z defs'
10910       if test "$GCC" = yes; then
10911         wlarc='${wl}'
10912         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10913         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10914           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10915       else
10916         case `$CC -V 2>&1` in
10917         *"Compilers 5.0"*)
10918           wlarc=''
10919           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10920           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10921           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10922           ;;
10923         *)
10924           wlarc='${wl}'
10925           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10926           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10927           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10928           ;;
10929         esac
10930       fi
10931       hardcode_libdir_flag_spec='-R$libdir'
10932       hardcode_shlibpath_var=no
10933       case $host_os in
10934       solaris2.[0-5] | solaris2.[0-5].*) ;;
10935       *)
10936         # The compiler driver will combine and reorder linker options,
10937         # but understands `-z linker_flag'.  GCC discards it without `$wl',
10938         # but is careful enough not to reorder.
10939         # Supported since Solaris 2.6 (maybe 2.5.1?)
10940         if test "$GCC" = yes; then
10941           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10942         else
10943           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10944         fi
10945         ;;
10946       esac
10947       link_all_deplibs=yes
10948       ;;
10949
10950     sunos4*)
10951       if test "x$host_vendor" = xsequent; then
10952         # Use $CC to link under sequent, because it throws in some extra .o
10953         # files that make .init and .fini sections work.
10954         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10955       else
10956         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10957       fi
10958       hardcode_libdir_flag_spec='-L$libdir'
10959       hardcode_direct=yes
10960       hardcode_minus_L=yes
10961       hardcode_shlibpath_var=no
10962       ;;
10963
10964     sysv4)
10965       case $host_vendor in
10966         sni)
10967           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10968           hardcode_direct=yes # is this really true???
10969         ;;
10970         siemens)
10971           ## LD is ld it makes a PLAMLIB
10972           ## CC just makes a GrossModule.
10973           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10974           reload_cmds='$CC -r -o $output$reload_objs'
10975           hardcode_direct=no
10976         ;;
10977         motorola)
10978           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10979           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10980         ;;
10981       esac
10982       runpath_var='LD_RUN_PATH'
10983       hardcode_shlibpath_var=no
10984       ;;
10985
10986     sysv4.3*)
10987       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10988       hardcode_shlibpath_var=no
10989       export_dynamic_flag_spec='-Bexport'
10990       ;;
10991
10992     sysv4*MP*)
10993       if test -d /usr/nec; then
10994         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10995         hardcode_shlibpath_var=no
10996         runpath_var=LD_RUN_PATH
10997         hardcode_runpath_var=yes
10998         ld_shlibs=yes
10999       fi
11000       ;;
11001
11002     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11003       no_undefined_flag='${wl}-z,text'
11004       archive_cmds_need_lc=no
11005       hardcode_shlibpath_var=no
11006       runpath_var='LD_RUN_PATH'
11007
11008       if test "$GCC" = yes; then
11009         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11010         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11011       else
11012         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11013         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11014       fi
11015       ;;
11016
11017     sysv5* | sco3.2v5* | sco5v6*)
11018       # Note: We can NOT use -z defs as we might desire, because we do not
11019       # link with -lc, and that would cause any symbols used from libc to
11020       # always be unresolved, which means just about no library would
11021       # ever link correctly.  If we're not using GNU ld we use -z text
11022       # though, which does catch some bad symbols but isn't as heavy-handed
11023       # as -z defs.
11024       no_undefined_flag='${wl}-z,text'
11025       allow_undefined_flag='${wl}-z,nodefs'
11026       archive_cmds_need_lc=no
11027       hardcode_shlibpath_var=no
11028       hardcode_libdir_flag_spec='${wl}-R,$libdir'
11029       hardcode_libdir_separator=':'
11030       link_all_deplibs=yes
11031       export_dynamic_flag_spec='${wl}-Bexport'
11032       runpath_var='LD_RUN_PATH'
11033
11034       if test "$GCC" = yes; then
11035         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11036         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11037       else
11038         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11039         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11040       fi
11041       ;;
11042
11043     uts4*)
11044       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11045       hardcode_libdir_flag_spec='-L$libdir'
11046       hardcode_shlibpath_var=no
11047       ;;
11048
11049     *)
11050       ld_shlibs=no
11051       ;;
11052     esac
11053
11054     if test x$host_vendor = xsni; then
11055       case $host in
11056       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11057         export_dynamic_flag_spec='${wl}-Blargedynsym'
11058         ;;
11059       esac
11060     fi
11061   fi
11062
11063 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
11064 echo "${ECHO_T}$ld_shlibs" >&6; }
11065 test "$ld_shlibs" = no && can_build_shared=no
11066
11067 with_gnu_ld=$with_gnu_ld
11068
11069
11070
11071
11072
11073
11074
11075
11076
11077
11078
11079
11080
11081
11082
11083 #
11084 # Do we need to explicitly link libc?
11085 #
11086 case "x$archive_cmds_need_lc" in
11087 x|xyes)
11088   # Assume -lc should be added
11089   archive_cmds_need_lc=yes
11090
11091   if test "$enable_shared" = yes && test "$GCC" = yes; then
11092     case $archive_cmds in
11093     *'~'*)
11094       # FIXME: we may have to deal with multi-command sequences.
11095       ;;
11096     '$CC '*)
11097       # Test whether the compiler implicitly links with -lc since on some
11098       # systems, -lgcc has to come before -lc. If gcc already passes -lc
11099       # to ld, don't add -lc before -lgcc.
11100       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11101 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
11102       $RM conftest*
11103       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11104
11105       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11106   (eval $ac_compile) 2>&5
11107   ac_status=$?
11108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11109   (exit $ac_status); } 2>conftest.err; then
11110         soname=conftest
11111         lib=conftest
11112         libobjs=conftest.$ac_objext
11113         deplibs=
11114         wl=$lt_prog_compiler_wl
11115         pic_flag=$lt_prog_compiler_pic
11116         compiler_flags=-v
11117         linker_flags=-v
11118         verstring=
11119         output_objdir=.
11120         libname=conftest
11121         lt_save_allow_undefined_flag=$allow_undefined_flag
11122         allow_undefined_flag=
11123         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
11124   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11125   ac_status=$?
11126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11127   (exit $ac_status); }
11128         then
11129           archive_cmds_need_lc=no
11130         else
11131           archive_cmds_need_lc=yes
11132         fi
11133         allow_undefined_flag=$lt_save_allow_undefined_flag
11134       else
11135         cat conftest.err 1>&5
11136       fi
11137       $RM conftest*
11138       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
11139 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
11140       ;;
11141     esac
11142   fi
11143   ;;
11144 esac
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
11299
11300
11301
11302   { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11303 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
11304
11305 if test "$GCC" = yes; then
11306   case $host_os in
11307     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11308     *) lt_awk_arg="/^libraries:/" ;;
11309   esac
11310   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11311   if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
11312     # if the path contains ";" then we assume it to be the separator
11313     # otherwise default to the standard path separator (i.e. ":") - it is
11314     # assumed that no part of a normal pathname contains ";" but that should
11315     # okay in the real world where ";" in dirpaths is itself problematic.
11316     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
11317   else
11318     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11319   fi
11320   # Ok, now we have the path, separated by spaces, we can step through it
11321   # and add multilib dir if necessary.
11322   lt_tmp_lt_search_path_spec=
11323   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11324   for lt_sys_path in $lt_search_path_spec; do
11325     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11326       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11327     else
11328       test -d "$lt_sys_path" && \
11329         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11330     fi
11331   done
11332   lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
11333 BEGIN {RS=" "; FS="/|\n";} {
11334   lt_foo="";
11335   lt_count=0;
11336   for (lt_i = NF; lt_i > 0; lt_i--) {
11337     if ($lt_i != "" && $lt_i != ".") {
11338       if ($lt_i == "..") {
11339         lt_count++;
11340       } else {
11341         if (lt_count == 0) {
11342           lt_foo="/" $lt_i lt_foo;
11343         } else {
11344           lt_count--;
11345         }
11346       }
11347     }
11348   }
11349   if (lt_foo != "") { lt_freq[lt_foo]++; }
11350   if (lt_freq[lt_foo] == 1) { print lt_foo; }
11351 }'`
11352   sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
11353 else
11354   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11355 fi
11356 library_names_spec=
11357 libname_spec='lib$name'
11358 soname_spec=
11359 shrext_cmds=".so"
11360 postinstall_cmds=
11361 postuninstall_cmds=
11362 finish_cmds=
11363 finish_eval=
11364 shlibpath_var=
11365 shlibpath_overrides_runpath=unknown
11366 version_type=none
11367 dynamic_linker="$host_os ld.so"
11368 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11369 need_lib_prefix=unknown
11370 hardcode_into_libs=no
11371
11372 # when you set need_version to no, make sure it does not cause -set_version
11373 # flags to be left without arguments
11374 need_version=unknown
11375
11376 case $host_os in
11377 aix3*)
11378   version_type=linux
11379   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11380   shlibpath_var=LIBPATH
11381
11382   # AIX 3 has no versioning support, so we append a major version to the name.
11383   soname_spec='${libname}${release}${shared_ext}$major'
11384   ;;
11385
11386 aix[4-9]*)
11387   version_type=linux
11388   need_lib_prefix=no
11389   need_version=no
11390   hardcode_into_libs=yes
11391   if test "$host_cpu" = ia64; then
11392     # AIX 5 supports IA64
11393     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11394     shlibpath_var=LD_LIBRARY_PATH
11395   else
11396     # With GCC up to 2.95.x, collect2 would create an import file
11397     # for dependence libraries.  The import file would start with
11398     # the line `#! .'.  This would cause the generated library to
11399     # depend on `.', always an invalid library.  This was fixed in
11400     # development snapshots of GCC prior to 3.0.
11401     case $host_os in
11402       aix4 | aix4.[01] | aix4.[01].*)
11403       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11404            echo ' yes '
11405            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11406         :
11407       else
11408         can_build_shared=no
11409       fi
11410       ;;
11411     esac
11412     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11413     # soname into executable. Probably we can add versioning support to
11414     # collect2, so additional links can be useful in future.
11415     if test "$aix_use_runtimelinking" = yes; then
11416       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11417       # instead of lib<name>.a to let people know that these are not
11418       # typical AIX shared libraries.
11419       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11420     else
11421       # We preserve .a as extension for shared libraries through AIX4.2
11422       # and later when we are not doing run time linking.
11423       library_names_spec='${libname}${release}.a $libname.a'
11424       soname_spec='${libname}${release}${shared_ext}$major'
11425     fi
11426     shlibpath_var=LIBPATH
11427   fi
11428   ;;
11429
11430 amigaos*)
11431   case $host_cpu in
11432   powerpc)
11433     # Since July 2007 AmigaOS4 officially supports .so libraries.
11434     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11435     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11436     ;;
11437   m68k)
11438     library_names_spec='$libname.ixlibrary $libname.a'
11439     # Create ${libname}_ixlibrary.a entries in /sys/libs.
11440     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'
11441     ;;
11442   esac
11443   ;;
11444
11445 beos*)
11446   library_names_spec='${libname}${shared_ext}'
11447   dynamic_linker="$host_os ld.so"
11448   shlibpath_var=LIBRARY_PATH
11449   ;;
11450
11451 bsdi[45]*)
11452   version_type=linux
11453   need_version=no
11454   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11455   soname_spec='${libname}${release}${shared_ext}$major'
11456   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11457   shlibpath_var=LD_LIBRARY_PATH
11458   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11459   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11460   # the default ld.so.conf also contains /usr/contrib/lib and
11461   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11462   # libtool to hard-code these into programs
11463   ;;
11464
11465 cygwin* | mingw* | pw32* | cegcc*)
11466   version_type=windows
11467   shrext_cmds=".dll"
11468   need_version=no
11469   need_lib_prefix=no
11470
11471   case $GCC,$host_os in
11472   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11473     library_names_spec='$libname.dll.a'
11474     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11475     postinstall_cmds='base_file=`basename \${file}`~
11476       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11477       dldir=$destdir/`dirname \$dlpath`~
11478       test -d \$dldir || mkdir -p \$dldir~
11479       $install_prog $dir/$dlname \$dldir/$dlname~
11480       chmod a+x \$dldir/$dlname~
11481       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11482         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11483       fi'
11484     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11485       dlpath=$dir/\$dldll~
11486        $RM \$dlpath'
11487     shlibpath_overrides_runpath=yes
11488
11489     case $host_os in
11490     cygwin*)
11491       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11492       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11493       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11494       ;;
11495     mingw* | cegcc*)
11496       # MinGW DLLs use traditional 'lib' prefix
11497       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11498       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11499       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11500         # It is most probably a Windows format PATH printed by
11501         # mingw gcc, but we are running on Cygwin. Gcc prints its search
11502         # path with ; separators, and with drive letters. We can handle the
11503         # drive letters (cygwin fileutils understands them), so leave them,
11504         # especially as we might pass files found there to a mingw objdump,
11505         # which wouldn't understand a cygwinified path. Ahh.
11506         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11507       else
11508         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11509       fi
11510       ;;
11511     pw32*)
11512       # pw32 DLLs use 'pw' prefix rather than 'lib'
11513       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11514       ;;
11515     esac
11516     ;;
11517
11518   *)
11519     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11520     ;;
11521   esac
11522   dynamic_linker='Win32 ld.exe'
11523   # FIXME: first we should search . and the directory the executable is in
11524   shlibpath_var=PATH
11525   ;;
11526
11527 darwin* | rhapsody*)
11528   dynamic_linker="$host_os dyld"
11529   version_type=darwin
11530   need_lib_prefix=no
11531   need_version=no
11532   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11533   soname_spec='${libname}${release}${major}$shared_ext'
11534   shlibpath_overrides_runpath=yes
11535   shlibpath_var=DYLD_LIBRARY_PATH
11536   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11537
11538   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11539   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11540   ;;
11541
11542 dgux*)
11543   version_type=linux
11544   need_lib_prefix=no
11545   need_version=no
11546   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11547   soname_spec='${libname}${release}${shared_ext}$major'
11548   shlibpath_var=LD_LIBRARY_PATH
11549   ;;
11550
11551 freebsd1*)
11552   dynamic_linker=no
11553   ;;
11554
11555 freebsd* | dragonfly*)
11556   # DragonFly does not have aout.  When/if they implement a new
11557   # versioning mechanism, adjust this.
11558   if test -x /usr/bin/objformat; then
11559     objformat=`/usr/bin/objformat`
11560   else
11561     case $host_os in
11562     freebsd[123]*) objformat=aout ;;
11563     *) objformat=elf ;;
11564     esac
11565   fi
11566   version_type=freebsd-$objformat
11567   case $version_type in
11568     freebsd-elf*)
11569       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11570       need_version=no
11571       need_lib_prefix=no
11572       ;;
11573     freebsd-*)
11574       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11575       need_version=yes
11576       ;;
11577   esac
11578   shlibpath_var=LD_LIBRARY_PATH
11579   case $host_os in
11580   freebsd2*)
11581     shlibpath_overrides_runpath=yes
11582     ;;
11583   freebsd3.[01]* | freebsdelf3.[01]*)
11584     shlibpath_overrides_runpath=yes
11585     hardcode_into_libs=yes
11586     ;;
11587   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11588   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11589     shlibpath_overrides_runpath=no
11590     hardcode_into_libs=yes
11591     ;;
11592   *) # from 4.6 on, and DragonFly
11593     shlibpath_overrides_runpath=yes
11594     hardcode_into_libs=yes
11595     ;;
11596   esac
11597   ;;
11598
11599 gnu*)
11600   version_type=linux
11601   need_lib_prefix=no
11602   need_version=no
11603   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11604   soname_spec='${libname}${release}${shared_ext}$major'
11605   shlibpath_var=LD_LIBRARY_PATH
11606   hardcode_into_libs=yes
11607   ;;
11608
11609 hpux9* | hpux10* | hpux11*)
11610   # Give a soname corresponding to the major version so that dld.sl refuses to
11611   # link against other versions.
11612   version_type=sunos
11613   need_lib_prefix=no
11614   need_version=no
11615   case $host_cpu in
11616   ia64*)
11617     shrext_cmds='.so'
11618     hardcode_into_libs=yes
11619     dynamic_linker="$host_os dld.so"
11620     shlibpath_var=LD_LIBRARY_PATH
11621     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11622     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11623     soname_spec='${libname}${release}${shared_ext}$major'
11624     if test "X$HPUX_IA64_MODE" = X32; then
11625       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11626     else
11627       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11628     fi
11629     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11630     ;;
11631   hppa*64*)
11632     shrext_cmds='.sl'
11633     hardcode_into_libs=yes
11634     dynamic_linker="$host_os dld.sl"
11635     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11636     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11637     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11638     soname_spec='${libname}${release}${shared_ext}$major'
11639     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11640     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11641     ;;
11642   *)
11643     shrext_cmds='.sl'
11644     dynamic_linker="$host_os dld.sl"
11645     shlibpath_var=SHLIB_PATH
11646     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11647     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11648     soname_spec='${libname}${release}${shared_ext}$major'
11649     ;;
11650   esac
11651   # HP-UX runs *really* slowly unless shared libraries are mode 555.
11652   postinstall_cmds='chmod 555 $lib'
11653   ;;
11654
11655 interix[3-9]*)
11656   version_type=linux
11657   need_lib_prefix=no
11658   need_version=no
11659   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11660   soname_spec='${libname}${release}${shared_ext}$major'
11661   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11662   shlibpath_var=LD_LIBRARY_PATH
11663   shlibpath_overrides_runpath=no
11664   hardcode_into_libs=yes
11665   ;;
11666
11667 irix5* | irix6* | nonstopux*)
11668   case $host_os in
11669     nonstopux*) version_type=nonstopux ;;
11670     *)
11671         if test "$lt_cv_prog_gnu_ld" = yes; then
11672                 version_type=linux
11673         else
11674                 version_type=irix
11675         fi ;;
11676   esac
11677   need_lib_prefix=no
11678   need_version=no
11679   soname_spec='${libname}${release}${shared_ext}$major'
11680   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11681   case $host_os in
11682   irix5* | nonstopux*)
11683     libsuff= shlibsuff=
11684     ;;
11685   *)
11686     case $LD in # libtool.m4 will add one of these switches to LD
11687     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11688       libsuff= shlibsuff= libmagic=32-bit;;
11689     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11690       libsuff=32 shlibsuff=N32 libmagic=N32;;
11691     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11692       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11693     *) libsuff= shlibsuff= libmagic=never-match;;
11694     esac
11695     ;;
11696   esac
11697   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11698   shlibpath_overrides_runpath=no
11699   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11700   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11701   hardcode_into_libs=yes
11702   ;;
11703
11704 # No shared lib support for Linux oldld, aout, or coff.
11705 linux*oldld* | linux*aout* | linux*coff*)
11706   dynamic_linker=no
11707   ;;
11708
11709 # This must be Linux ELF.
11710 linux* | k*bsd*-gnu)
11711   version_type=linux
11712   need_lib_prefix=no
11713   need_version=no
11714   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11715   soname_spec='${libname}${release}${shared_ext}$major'
11716   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11717   shlibpath_var=LD_LIBRARY_PATH
11718   shlibpath_overrides_runpath=no
11719   # Some binutils ld are patched to set DT_RUNPATH
11720   save_LDFLAGS=$LDFLAGS
11721   save_libdir=$libdir
11722   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11723        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11724   cat >conftest.$ac_ext <<_ACEOF
11725 /* confdefs.h.  */
11726 _ACEOF
11727 cat confdefs.h >>conftest.$ac_ext
11728 cat >>conftest.$ac_ext <<_ACEOF
11729 /* end confdefs.h.  */
11730
11731 int
11732 main ()
11733 {
11734
11735   ;
11736   return 0;
11737 }
11738 _ACEOF
11739 rm -f conftest.$ac_objext conftest$ac_exeext
11740 if { (ac_try="$ac_link"
11741 case "(($ac_try" in
11742   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11743   *) ac_try_echo=$ac_try;;
11744 esac
11745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11746   (eval "$ac_link") 2>conftest.er1
11747   ac_status=$?
11748   grep -v '^ *+' conftest.er1 >conftest.err
11749   rm -f conftest.er1
11750   cat conftest.err >&5
11751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11752   (exit $ac_status); } && {
11753          test -z "$ac_c_werror_flag" ||
11754          test ! -s conftest.err
11755        } && test -s conftest$ac_exeext &&
11756        $as_test_x conftest$ac_exeext; then
11757   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
11758   shlibpath_overrides_runpath=yes
11759 fi
11760
11761 else
11762   echo "$as_me: failed program was:" >&5
11763 sed 's/^/| /' conftest.$ac_ext >&5
11764
11765
11766 fi
11767
11768 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11769       conftest$ac_exeext conftest.$ac_ext
11770   LDFLAGS=$save_LDFLAGS
11771   libdir=$save_libdir
11772
11773   # This implies no fast_install, which is unacceptable.
11774   # Some rework will be needed to allow for fast_install
11775   # before this can be enabled.
11776   hardcode_into_libs=yes
11777
11778   # Append ld.so.conf contents to the search path
11779   if test -f /etc/ld.so.conf; then
11780     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' ' '`
11781     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11782   fi
11783
11784   # We used to test for /lib/ld.so.1 and disable shared libraries on
11785   # powerpc, because MkLinux only supported shared libraries with the
11786   # GNU dynamic linker.  Since this was broken with cross compilers,
11787   # most powerpc-linux boxes support dynamic linking these days and
11788   # people can always --disable-shared, the test was removed, and we
11789   # assume the GNU/Linux dynamic linker is in use.
11790   dynamic_linker='GNU/Linux ld.so'
11791   ;;
11792
11793 netbsd*)
11794   version_type=sunos
11795   need_lib_prefix=no
11796   need_version=no
11797   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11798     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11799     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11800     dynamic_linker='NetBSD (a.out) ld.so'
11801   else
11802     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11803     soname_spec='${libname}${release}${shared_ext}$major'
11804     dynamic_linker='NetBSD ld.elf_so'
11805   fi
11806   shlibpath_var=LD_LIBRARY_PATH
11807   shlibpath_overrides_runpath=yes
11808   hardcode_into_libs=yes
11809   ;;
11810
11811 newsos6)
11812   version_type=linux
11813   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11814   shlibpath_var=LD_LIBRARY_PATH
11815   shlibpath_overrides_runpath=yes
11816   ;;
11817
11818 *nto* | *qnx*)
11819   version_type=qnx
11820   need_lib_prefix=no
11821   need_version=no
11822   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11823   soname_spec='${libname}${release}${shared_ext}$major'
11824   shlibpath_var=LD_LIBRARY_PATH
11825   shlibpath_overrides_runpath=no
11826   hardcode_into_libs=yes
11827   dynamic_linker='ldqnx.so'
11828   ;;
11829
11830 openbsd*)
11831   version_type=sunos
11832   sys_lib_dlsearch_path_spec="/usr/lib"
11833   need_lib_prefix=no
11834   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11835   case $host_os in
11836     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
11837     *)                          need_version=no  ;;
11838   esac
11839   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11840   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11841   shlibpath_var=LD_LIBRARY_PATH
11842   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11843     case $host_os in
11844       openbsd2.[89] | openbsd2.[89].*)
11845         shlibpath_overrides_runpath=no
11846         ;;
11847       *)
11848         shlibpath_overrides_runpath=yes
11849         ;;
11850       esac
11851   else
11852     shlibpath_overrides_runpath=yes
11853   fi
11854   ;;
11855
11856 os2*)
11857   libname_spec='$name'
11858   shrext_cmds=".dll"
11859   need_lib_prefix=no
11860   library_names_spec='$libname${shared_ext} $libname.a'
11861   dynamic_linker='OS/2 ld.exe'
11862   shlibpath_var=LIBPATH
11863   ;;
11864
11865 osf3* | osf4* | osf5*)
11866   version_type=osf
11867   need_lib_prefix=no
11868   need_version=no
11869   soname_spec='${libname}${release}${shared_ext}$major'
11870   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11871   shlibpath_var=LD_LIBRARY_PATH
11872   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11873   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11874   ;;
11875
11876 rdos*)
11877   dynamic_linker=no
11878   ;;
11879
11880 solaris*)
11881   version_type=linux
11882   need_lib_prefix=no
11883   need_version=no
11884   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11885   soname_spec='${libname}${release}${shared_ext}$major'
11886   shlibpath_var=LD_LIBRARY_PATH
11887   shlibpath_overrides_runpath=yes
11888   hardcode_into_libs=yes
11889   # ldd complains unless libraries are executable
11890   postinstall_cmds='chmod +x $lib'
11891   ;;
11892
11893 sunos4*)
11894   version_type=sunos
11895   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11896   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11897   shlibpath_var=LD_LIBRARY_PATH
11898   shlibpath_overrides_runpath=yes
11899   if test "$with_gnu_ld" = yes; then
11900     need_lib_prefix=no
11901   fi
11902   need_version=yes
11903   ;;
11904
11905 sysv4 | sysv4.3*)
11906   version_type=linux
11907   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11908   soname_spec='${libname}${release}${shared_ext}$major'
11909   shlibpath_var=LD_LIBRARY_PATH
11910   case $host_vendor in
11911     sni)
11912       shlibpath_overrides_runpath=no
11913       need_lib_prefix=no
11914       runpath_var=LD_RUN_PATH
11915       ;;
11916     siemens)
11917       need_lib_prefix=no
11918       ;;
11919     motorola)
11920       need_lib_prefix=no
11921       need_version=no
11922       shlibpath_overrides_runpath=no
11923       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11924       ;;
11925   esac
11926   ;;
11927
11928 sysv4*MP*)
11929   if test -d /usr/nec ;then
11930     version_type=linux
11931     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11932     soname_spec='$libname${shared_ext}.$major'
11933     shlibpath_var=LD_LIBRARY_PATH
11934   fi
11935   ;;
11936
11937 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11938   version_type=freebsd-elf
11939   need_lib_prefix=no
11940   need_version=no
11941   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11942   soname_spec='${libname}${release}${shared_ext}$major'
11943   shlibpath_var=LD_LIBRARY_PATH
11944   shlibpath_overrides_runpath=yes
11945   hardcode_into_libs=yes
11946   if test "$with_gnu_ld" = yes; then
11947     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11948   else
11949     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11950     case $host_os in
11951       sco3.2v5*)
11952         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11953         ;;
11954     esac
11955   fi
11956   sys_lib_dlsearch_path_spec='/usr/lib'
11957   ;;
11958
11959 tpf*)
11960   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11961   version_type=linux
11962   need_lib_prefix=no
11963   need_version=no
11964   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11965   shlibpath_var=LD_LIBRARY_PATH
11966   shlibpath_overrides_runpath=no
11967   hardcode_into_libs=yes
11968   ;;
11969
11970 uts4*)
11971   version_type=linux
11972   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11973   soname_spec='${libname}${release}${shared_ext}$major'
11974   shlibpath_var=LD_LIBRARY_PATH
11975   ;;
11976
11977 *)
11978   dynamic_linker=no
11979   ;;
11980 esac
11981 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11982 echo "${ECHO_T}$dynamic_linker" >&6; }
11983 test "$dynamic_linker" = no && can_build_shared=no
11984
11985 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11986 if test "$GCC" = yes; then
11987   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11988 fi
11989
11990 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11991   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11992 fi
11993 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11994   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11995 fi
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
12080
12081
12082
12083   { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12084 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
12085 hardcode_action=
12086 if test -n "$hardcode_libdir_flag_spec" ||
12087    test -n "$runpath_var" ||
12088    test "X$hardcode_automatic" = "Xyes" ; then
12089
12090   # We can hardcode non-existent directories.
12091   if test "$hardcode_direct" != no &&
12092      # If the only mechanism to avoid hardcoding is shlibpath_var, we
12093      # have to relink, otherwise we might link with an installed library
12094      # when we should be linking with a yet-to-be-installed one
12095      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12096      test "$hardcode_minus_L" != no; then
12097     # Linking always hardcodes the temporary library directory.
12098     hardcode_action=relink
12099   else
12100     # We can link without hardcoding, and we can hardcode nonexisting dirs.
12101     hardcode_action=immediate
12102   fi
12103 else
12104   # We cannot hardcode anything, or else we can only hardcode existing
12105   # directories.
12106   hardcode_action=unsupported
12107 fi
12108 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
12109 echo "${ECHO_T}$hardcode_action" >&6; }
12110
12111 if test "$hardcode_action" = relink ||
12112    test "$inherit_rpath" = yes; then
12113   # Fast installation is not supported
12114   enable_fast_install=no
12115 elif test "$shlibpath_overrides_runpath" = yes ||
12116      test "$enable_shared" = no; then
12117   # Fast installation is not necessary
12118   enable_fast_install=needless
12119 fi
12120
12121
12122
12123
12124
12125
12126   if test "x$enable_dlopen" != xyes; then
12127   enable_dlopen=unknown
12128   enable_dlopen_self=unknown
12129   enable_dlopen_self_static=unknown
12130 else
12131   lt_cv_dlopen=no
12132   lt_cv_dlopen_libs=
12133
12134   case $host_os in
12135   beos*)
12136     lt_cv_dlopen="load_add_on"
12137     lt_cv_dlopen_libs=
12138     lt_cv_dlopen_self=yes
12139     ;;
12140
12141   mingw* | pw32* | cegcc*)
12142     lt_cv_dlopen="LoadLibrary"
12143     lt_cv_dlopen_libs=
12144     ;;
12145
12146   cygwin*)
12147     lt_cv_dlopen="dlopen"
12148     lt_cv_dlopen_libs=
12149     ;;
12150
12151   darwin*)
12152   # if libdl is installed we need to link against it
12153     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12154 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
12155 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12156   echo $ECHO_N "(cached) $ECHO_C" >&6
12157 else
12158   ac_check_lib_save_LIBS=$LIBS
12159 LIBS="-ldl  $LIBS"
12160 cat >conftest.$ac_ext <<_ACEOF
12161 /* confdefs.h.  */
12162 _ACEOF
12163 cat confdefs.h >>conftest.$ac_ext
12164 cat >>conftest.$ac_ext <<_ACEOF
12165 /* end confdefs.h.  */
12166
12167 /* Override any GCC internal prototype to avoid an error.
12168    Use char because int might match the return type of a GCC
12169    builtin and then its argument prototype would still apply.  */
12170 #ifdef __cplusplus
12171 extern "C"
12172 #endif
12173 char dlopen ();
12174 int
12175 main ()
12176 {
12177 return dlopen ();
12178   ;
12179   return 0;
12180 }
12181 _ACEOF
12182 rm -f conftest.$ac_objext conftest$ac_exeext
12183 if { (ac_try="$ac_link"
12184 case "(($ac_try" in
12185   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12186   *) ac_try_echo=$ac_try;;
12187 esac
12188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12189   (eval "$ac_link") 2>conftest.er1
12190   ac_status=$?
12191   grep -v '^ *+' conftest.er1 >conftest.err
12192   rm -f conftest.er1
12193   cat conftest.err >&5
12194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12195   (exit $ac_status); } && {
12196          test -z "$ac_c_werror_flag" ||
12197          test ! -s conftest.err
12198        } && test -s conftest$ac_exeext &&
12199        $as_test_x conftest$ac_exeext; then
12200   ac_cv_lib_dl_dlopen=yes
12201 else
12202   echo "$as_me: failed program was:" >&5
12203 sed 's/^/| /' conftest.$ac_ext >&5
12204
12205         ac_cv_lib_dl_dlopen=no
12206 fi
12207
12208 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12209       conftest$ac_exeext conftest.$ac_ext
12210 LIBS=$ac_check_lib_save_LIBS
12211 fi
12212 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12213 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
12214 if test $ac_cv_lib_dl_dlopen = yes; then
12215   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12216 else
12217
12218     lt_cv_dlopen="dyld"
12219     lt_cv_dlopen_libs=
12220     lt_cv_dlopen_self=yes
12221
12222 fi
12223
12224     ;;
12225
12226   *)
12227     { echo "$as_me:$LINENO: checking for shl_load" >&5
12228 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
12229 if test "${ac_cv_func_shl_load+set}" = set; then
12230   echo $ECHO_N "(cached) $ECHO_C" >&6
12231 else
12232   cat >conftest.$ac_ext <<_ACEOF
12233 /* confdefs.h.  */
12234 _ACEOF
12235 cat confdefs.h >>conftest.$ac_ext
12236 cat >>conftest.$ac_ext <<_ACEOF
12237 /* end confdefs.h.  */
12238 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12239    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12240 #define shl_load innocuous_shl_load
12241
12242 /* System header to define __stub macros and hopefully few prototypes,
12243     which can conflict with char shl_load (); below.
12244     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12245     <limits.h> exists even on freestanding compilers.  */
12246
12247 #ifdef __STDC__
12248 # include <limits.h>
12249 #else
12250 # include <assert.h>
12251 #endif
12252
12253 #undef shl_load
12254
12255 /* Override any GCC internal prototype to avoid an error.
12256    Use char because int might match the return type of a GCC
12257    builtin and then its argument prototype would still apply.  */
12258 #ifdef __cplusplus
12259 extern "C"
12260 #endif
12261 char shl_load ();
12262 /* The GNU C library defines this for functions which it implements
12263     to always fail with ENOSYS.  Some functions are actually named
12264     something starting with __ and the normal name is an alias.  */
12265 #if defined __stub_shl_load || defined __stub___shl_load
12266 choke me
12267 #endif
12268
12269 int
12270 main ()
12271 {
12272 return shl_load ();
12273   ;
12274   return 0;
12275 }
12276 _ACEOF
12277 rm -f conftest.$ac_objext conftest$ac_exeext
12278 if { (ac_try="$ac_link"
12279 case "(($ac_try" in
12280   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12281   *) ac_try_echo=$ac_try;;
12282 esac
12283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12284   (eval "$ac_link") 2>conftest.er1
12285   ac_status=$?
12286   grep -v '^ *+' conftest.er1 >conftest.err
12287   rm -f conftest.er1
12288   cat conftest.err >&5
12289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12290   (exit $ac_status); } && {
12291          test -z "$ac_c_werror_flag" ||
12292          test ! -s conftest.err
12293        } && test -s conftest$ac_exeext &&
12294        $as_test_x conftest$ac_exeext; then
12295   ac_cv_func_shl_load=yes
12296 else
12297   echo "$as_me: failed program was:" >&5
12298 sed 's/^/| /' conftest.$ac_ext >&5
12299
12300         ac_cv_func_shl_load=no
12301 fi
12302
12303 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12304       conftest$ac_exeext conftest.$ac_ext
12305 fi
12306 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12307 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
12308 if test $ac_cv_func_shl_load = yes; then
12309   lt_cv_dlopen="shl_load"
12310 else
12311   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12312 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
12313 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12314   echo $ECHO_N "(cached) $ECHO_C" >&6
12315 else
12316   ac_check_lib_save_LIBS=$LIBS
12317 LIBS="-ldld  $LIBS"
12318 cat >conftest.$ac_ext <<_ACEOF
12319 /* confdefs.h.  */
12320 _ACEOF
12321 cat confdefs.h >>conftest.$ac_ext
12322 cat >>conftest.$ac_ext <<_ACEOF
12323 /* end confdefs.h.  */
12324
12325 /* Override any GCC internal prototype to avoid an error.
12326    Use char because int might match the return type of a GCC
12327    builtin and then its argument prototype would still apply.  */
12328 #ifdef __cplusplus
12329 extern "C"
12330 #endif
12331 char shl_load ();
12332 int
12333 main ()
12334 {
12335 return shl_load ();
12336   ;
12337   return 0;
12338 }
12339 _ACEOF
12340 rm -f conftest.$ac_objext conftest$ac_exeext
12341 if { (ac_try="$ac_link"
12342 case "(($ac_try" in
12343   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12344   *) ac_try_echo=$ac_try;;
12345 esac
12346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12347   (eval "$ac_link") 2>conftest.er1
12348   ac_status=$?
12349   grep -v '^ *+' conftest.er1 >conftest.err
12350   rm -f conftest.er1
12351   cat conftest.err >&5
12352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12353   (exit $ac_status); } && {
12354          test -z "$ac_c_werror_flag" ||
12355          test ! -s conftest.err
12356        } && test -s conftest$ac_exeext &&
12357        $as_test_x conftest$ac_exeext; then
12358   ac_cv_lib_dld_shl_load=yes
12359 else
12360   echo "$as_me: failed program was:" >&5
12361 sed 's/^/| /' conftest.$ac_ext >&5
12362
12363         ac_cv_lib_dld_shl_load=no
12364 fi
12365
12366 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12367       conftest$ac_exeext conftest.$ac_ext
12368 LIBS=$ac_check_lib_save_LIBS
12369 fi
12370 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12371 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
12372 if test $ac_cv_lib_dld_shl_load = yes; then
12373   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12374 else
12375   { echo "$as_me:$LINENO: checking for dlopen" >&5
12376 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
12377 if test "${ac_cv_func_dlopen+set}" = set; then
12378   echo $ECHO_N "(cached) $ECHO_C" >&6
12379 else
12380   cat >conftest.$ac_ext <<_ACEOF
12381 /* confdefs.h.  */
12382 _ACEOF
12383 cat confdefs.h >>conftest.$ac_ext
12384 cat >>conftest.$ac_ext <<_ACEOF
12385 /* end confdefs.h.  */
12386 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12387    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12388 #define dlopen innocuous_dlopen
12389
12390 /* System header to define __stub macros and hopefully few prototypes,
12391     which can conflict with char dlopen (); below.
12392     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12393     <limits.h> exists even on freestanding compilers.  */
12394
12395 #ifdef __STDC__
12396 # include <limits.h>
12397 #else
12398 # include <assert.h>
12399 #endif
12400
12401 #undef dlopen
12402
12403 /* Override any GCC internal prototype to avoid an error.
12404    Use char because int might match the return type of a GCC
12405    builtin and then its argument prototype would still apply.  */
12406 #ifdef __cplusplus
12407 extern "C"
12408 #endif
12409 char dlopen ();
12410 /* The GNU C library defines this for functions which it implements
12411     to always fail with ENOSYS.  Some functions are actually named
12412     something starting with __ and the normal name is an alias.  */
12413 #if defined __stub_dlopen || defined __stub___dlopen
12414 choke me
12415 #endif
12416
12417 int
12418 main ()
12419 {
12420 return dlopen ();
12421   ;
12422   return 0;
12423 }
12424 _ACEOF
12425 rm -f conftest.$ac_objext conftest$ac_exeext
12426 if { (ac_try="$ac_link"
12427 case "(($ac_try" in
12428   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12429   *) ac_try_echo=$ac_try;;
12430 esac
12431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12432   (eval "$ac_link") 2>conftest.er1
12433   ac_status=$?
12434   grep -v '^ *+' conftest.er1 >conftest.err
12435   rm -f conftest.er1
12436   cat conftest.err >&5
12437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12438   (exit $ac_status); } && {
12439          test -z "$ac_c_werror_flag" ||
12440          test ! -s conftest.err
12441        } && test -s conftest$ac_exeext &&
12442        $as_test_x conftest$ac_exeext; then
12443   ac_cv_func_dlopen=yes
12444 else
12445   echo "$as_me: failed program was:" >&5
12446 sed 's/^/| /' conftest.$ac_ext >&5
12447
12448         ac_cv_func_dlopen=no
12449 fi
12450
12451 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12452       conftest$ac_exeext conftest.$ac_ext
12453 fi
12454 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12455 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
12456 if test $ac_cv_func_dlopen = yes; then
12457   lt_cv_dlopen="dlopen"
12458 else
12459   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12460 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
12461 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12462   echo $ECHO_N "(cached) $ECHO_C" >&6
12463 else
12464   ac_check_lib_save_LIBS=$LIBS
12465 LIBS="-ldl  $LIBS"
12466 cat >conftest.$ac_ext <<_ACEOF
12467 /* confdefs.h.  */
12468 _ACEOF
12469 cat confdefs.h >>conftest.$ac_ext
12470 cat >>conftest.$ac_ext <<_ACEOF
12471 /* end confdefs.h.  */
12472
12473 /* Override any GCC internal prototype to avoid an error.
12474    Use char because int might match the return type of a GCC
12475    builtin and then its argument prototype would still apply.  */
12476 #ifdef __cplusplus
12477 extern "C"
12478 #endif
12479 char dlopen ();
12480 int
12481 main ()
12482 {
12483 return dlopen ();
12484   ;
12485   return 0;
12486 }
12487 _ACEOF
12488 rm -f conftest.$ac_objext conftest$ac_exeext
12489 if { (ac_try="$ac_link"
12490 case "(($ac_try" in
12491   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12492   *) ac_try_echo=$ac_try;;
12493 esac
12494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12495   (eval "$ac_link") 2>conftest.er1
12496   ac_status=$?
12497   grep -v '^ *+' conftest.er1 >conftest.err
12498   rm -f conftest.er1
12499   cat conftest.err >&5
12500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12501   (exit $ac_status); } && {
12502          test -z "$ac_c_werror_flag" ||
12503          test ! -s conftest.err
12504        } && test -s conftest$ac_exeext &&
12505        $as_test_x conftest$ac_exeext; then
12506   ac_cv_lib_dl_dlopen=yes
12507 else
12508   echo "$as_me: failed program was:" >&5
12509 sed 's/^/| /' conftest.$ac_ext >&5
12510
12511         ac_cv_lib_dl_dlopen=no
12512 fi
12513
12514 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12515       conftest$ac_exeext conftest.$ac_ext
12516 LIBS=$ac_check_lib_save_LIBS
12517 fi
12518 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12519 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
12520 if test $ac_cv_lib_dl_dlopen = yes; then
12521   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12522 else
12523   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12524 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
12525 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12526   echo $ECHO_N "(cached) $ECHO_C" >&6
12527 else
12528   ac_check_lib_save_LIBS=$LIBS
12529 LIBS="-lsvld  $LIBS"
12530 cat >conftest.$ac_ext <<_ACEOF
12531 /* confdefs.h.  */
12532 _ACEOF
12533 cat confdefs.h >>conftest.$ac_ext
12534 cat >>conftest.$ac_ext <<_ACEOF
12535 /* end confdefs.h.  */
12536
12537 /* Override any GCC internal prototype to avoid an error.
12538    Use char because int might match the return type of a GCC
12539    builtin and then its argument prototype would still apply.  */
12540 #ifdef __cplusplus
12541 extern "C"
12542 #endif
12543 char dlopen ();
12544 int
12545 main ()
12546 {
12547 return dlopen ();
12548   ;
12549   return 0;
12550 }
12551 _ACEOF
12552 rm -f conftest.$ac_objext conftest$ac_exeext
12553 if { (ac_try="$ac_link"
12554 case "(($ac_try" in
12555   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12556   *) ac_try_echo=$ac_try;;
12557 esac
12558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12559   (eval "$ac_link") 2>conftest.er1
12560   ac_status=$?
12561   grep -v '^ *+' conftest.er1 >conftest.err
12562   rm -f conftest.er1
12563   cat conftest.err >&5
12564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12565   (exit $ac_status); } && {
12566          test -z "$ac_c_werror_flag" ||
12567          test ! -s conftest.err
12568        } && test -s conftest$ac_exeext &&
12569        $as_test_x conftest$ac_exeext; then
12570   ac_cv_lib_svld_dlopen=yes
12571 else
12572   echo "$as_me: failed program was:" >&5
12573 sed 's/^/| /' conftest.$ac_ext >&5
12574
12575         ac_cv_lib_svld_dlopen=no
12576 fi
12577
12578 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12579       conftest$ac_exeext conftest.$ac_ext
12580 LIBS=$ac_check_lib_save_LIBS
12581 fi
12582 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12583 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
12584 if test $ac_cv_lib_svld_dlopen = yes; then
12585   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12586 else
12587   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12588 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
12589 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12590   echo $ECHO_N "(cached) $ECHO_C" >&6
12591 else
12592   ac_check_lib_save_LIBS=$LIBS
12593 LIBS="-ldld  $LIBS"
12594 cat >conftest.$ac_ext <<_ACEOF
12595 /* confdefs.h.  */
12596 _ACEOF
12597 cat confdefs.h >>conftest.$ac_ext
12598 cat >>conftest.$ac_ext <<_ACEOF
12599 /* end confdefs.h.  */
12600
12601 /* Override any GCC internal prototype to avoid an error.
12602    Use char because int might match the return type of a GCC
12603    builtin and then its argument prototype would still apply.  */
12604 #ifdef __cplusplus
12605 extern "C"
12606 #endif
12607 char dld_link ();
12608 int
12609 main ()
12610 {
12611 return dld_link ();
12612   ;
12613   return 0;
12614 }
12615 _ACEOF
12616 rm -f conftest.$ac_objext conftest$ac_exeext
12617 if { (ac_try="$ac_link"
12618 case "(($ac_try" in
12619   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12620   *) ac_try_echo=$ac_try;;
12621 esac
12622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12623   (eval "$ac_link") 2>conftest.er1
12624   ac_status=$?
12625   grep -v '^ *+' conftest.er1 >conftest.err
12626   rm -f conftest.er1
12627   cat conftest.err >&5
12628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12629   (exit $ac_status); } && {
12630          test -z "$ac_c_werror_flag" ||
12631          test ! -s conftest.err
12632        } && test -s conftest$ac_exeext &&
12633        $as_test_x conftest$ac_exeext; then
12634   ac_cv_lib_dld_dld_link=yes
12635 else
12636   echo "$as_me: failed program was:" >&5
12637 sed 's/^/| /' conftest.$ac_ext >&5
12638
12639         ac_cv_lib_dld_dld_link=no
12640 fi
12641
12642 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12643       conftest$ac_exeext conftest.$ac_ext
12644 LIBS=$ac_check_lib_save_LIBS
12645 fi
12646 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12647 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
12648 if test $ac_cv_lib_dld_dld_link = yes; then
12649   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12650 fi
12651
12652
12653 fi
12654
12655
12656 fi
12657
12658
12659 fi
12660
12661
12662 fi
12663
12664
12665 fi
12666
12667     ;;
12668   esac
12669
12670   if test "x$lt_cv_dlopen" != xno; then
12671     enable_dlopen=yes
12672   else
12673     enable_dlopen=no
12674   fi
12675
12676   case $lt_cv_dlopen in
12677   dlopen)
12678     save_CPPFLAGS="$CPPFLAGS"
12679     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12680
12681     save_LDFLAGS="$LDFLAGS"
12682     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12683
12684     save_LIBS="$LIBS"
12685     LIBS="$lt_cv_dlopen_libs $LIBS"
12686
12687     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12688 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
12689 if test "${lt_cv_dlopen_self+set}" = set; then
12690   echo $ECHO_N "(cached) $ECHO_C" >&6
12691 else
12692           if test "$cross_compiling" = yes; then :
12693   lt_cv_dlopen_self=cross
12694 else
12695   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12696   lt_status=$lt_dlunknown
12697   cat > conftest.$ac_ext <<_LT_EOF
12698 #line 12698 "configure"
12699 #include "confdefs.h"
12700
12701 #if HAVE_DLFCN_H
12702 #include <dlfcn.h>
12703 #endif
12704
12705 #include <stdio.h>
12706
12707 #ifdef RTLD_GLOBAL
12708 #  define LT_DLGLOBAL           RTLD_GLOBAL
12709 #else
12710 #  ifdef DL_GLOBAL
12711 #    define LT_DLGLOBAL         DL_GLOBAL
12712 #  else
12713 #    define LT_DLGLOBAL         0
12714 #  endif
12715 #endif
12716
12717 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12718    find out it does not work in some platform. */
12719 #ifndef LT_DLLAZY_OR_NOW
12720 #  ifdef RTLD_LAZY
12721 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12722 #  else
12723 #    ifdef DL_LAZY
12724 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12725 #    else
12726 #      ifdef RTLD_NOW
12727 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12728 #      else
12729 #        ifdef DL_NOW
12730 #          define LT_DLLAZY_OR_NOW      DL_NOW
12731 #        else
12732 #          define LT_DLLAZY_OR_NOW      0
12733 #        endif
12734 #      endif
12735 #    endif
12736 #  endif
12737 #endif
12738
12739 void fnord() { int i=42;}
12740 int main ()
12741 {
12742   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12743   int status = $lt_dlunknown;
12744
12745   if (self)
12746     {
12747       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12748       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12749       /* dlclose (self); */
12750     }
12751   else
12752     puts (dlerror ());
12753
12754   return status;
12755 }
12756 _LT_EOF
12757   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12758   (eval $ac_link) 2>&5
12759   ac_status=$?
12760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12761   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12762     (./conftest; exit; ) >&5 2>/dev/null
12763     lt_status=$?
12764     case x$lt_status in
12765       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12766       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12767       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12768     esac
12769   else :
12770     # compilation failed
12771     lt_cv_dlopen_self=no
12772   fi
12773 fi
12774 rm -fr conftest*
12775
12776
12777 fi
12778 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12779 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
12780
12781     if test "x$lt_cv_dlopen_self" = xyes; then
12782       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12783       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12784 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
12785 if test "${lt_cv_dlopen_self_static+set}" = set; then
12786   echo $ECHO_N "(cached) $ECHO_C" >&6
12787 else
12788           if test "$cross_compiling" = yes; then :
12789   lt_cv_dlopen_self_static=cross
12790 else
12791   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12792   lt_status=$lt_dlunknown
12793   cat > conftest.$ac_ext <<_LT_EOF
12794 #line 12794 "configure"
12795 #include "confdefs.h"
12796
12797 #if HAVE_DLFCN_H
12798 #include <dlfcn.h>
12799 #endif
12800
12801 #include <stdio.h>
12802
12803 #ifdef RTLD_GLOBAL
12804 #  define LT_DLGLOBAL           RTLD_GLOBAL
12805 #else
12806 #  ifdef DL_GLOBAL
12807 #    define LT_DLGLOBAL         DL_GLOBAL
12808 #  else
12809 #    define LT_DLGLOBAL         0
12810 #  endif
12811 #endif
12812
12813 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12814    find out it does not work in some platform. */
12815 #ifndef LT_DLLAZY_OR_NOW
12816 #  ifdef RTLD_LAZY
12817 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12818 #  else
12819 #    ifdef DL_LAZY
12820 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12821 #    else
12822 #      ifdef RTLD_NOW
12823 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12824 #      else
12825 #        ifdef DL_NOW
12826 #          define LT_DLLAZY_OR_NOW      DL_NOW
12827 #        else
12828 #          define LT_DLLAZY_OR_NOW      0
12829 #        endif
12830 #      endif
12831 #    endif
12832 #  endif
12833 #endif
12834
12835 void fnord() { int i=42;}
12836 int main ()
12837 {
12838   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12839   int status = $lt_dlunknown;
12840
12841   if (self)
12842     {
12843       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12844       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12845       /* dlclose (self); */
12846     }
12847   else
12848     puts (dlerror ());
12849
12850   return status;
12851 }
12852 _LT_EOF
12853   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12854   (eval $ac_link) 2>&5
12855   ac_status=$?
12856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12857   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12858     (./conftest; exit; ) >&5 2>/dev/null
12859     lt_status=$?
12860     case x$lt_status in
12861       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12862       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12863       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12864     esac
12865   else :
12866     # compilation failed
12867     lt_cv_dlopen_self_static=no
12868   fi
12869 fi
12870 rm -fr conftest*
12871
12872
12873 fi
12874 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12875 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
12876     fi
12877
12878     CPPFLAGS="$save_CPPFLAGS"
12879     LDFLAGS="$save_LDFLAGS"
12880     LIBS="$save_LIBS"
12881     ;;
12882   esac
12883
12884   case $lt_cv_dlopen_self in
12885   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12886   *) enable_dlopen_self=unknown ;;
12887   esac
12888
12889   case $lt_cv_dlopen_self_static in
12890   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12891   *) enable_dlopen_self_static=unknown ;;
12892   esac
12893 fi
12894
12895
12896
12897
12898
12899
12900
12901
12902
12903
12904
12905
12906
12907
12908
12909
12910
12911 striplib=
12912 old_striplib=
12913 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12914 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
12915 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12916   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12917   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12918   { echo "$as_me:$LINENO: result: yes" >&5
12919 echo "${ECHO_T}yes" >&6; }
12920 else
12921 # FIXME - insert some real tests, host_os isn't really good enough
12922   case $host_os in
12923   darwin*)
12924     if test -n "$STRIP" ; then
12925       striplib="$STRIP -x"
12926       old_striplib="$STRIP -S"
12927       { echo "$as_me:$LINENO: result: yes" >&5
12928 echo "${ECHO_T}yes" >&6; }
12929     else
12930       { echo "$as_me:$LINENO: result: no" >&5
12931 echo "${ECHO_T}no" >&6; }
12932     fi
12933     ;;
12934   *)
12935     { echo "$as_me:$LINENO: result: no" >&5
12936 echo "${ECHO_T}no" >&6; }
12937     ;;
12938   esac
12939 fi
12940
12941
12942
12943
12944
12945
12946
12947
12948
12949
12950
12951
12952   # Report which library types will actually be built
12953   { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12954 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
12955   { echo "$as_me:$LINENO: result: $can_build_shared" >&5
12956 echo "${ECHO_T}$can_build_shared" >&6; }
12957
12958   { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12959 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
12960   test "$can_build_shared" = "no" && enable_shared=no
12961
12962   # On AIX, shared libraries and static libraries use the same namespace, and
12963   # are all built from PIC.
12964   case $host_os in
12965   aix3*)
12966     test "$enable_shared" = yes && enable_static=no
12967     if test -n "$RANLIB"; then
12968       archive_cmds="$archive_cmds~\$RANLIB \$lib"
12969       postinstall_cmds='$RANLIB $lib'
12970     fi
12971     ;;
12972
12973   aix[4-9]*)
12974     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12975       test "$enable_shared" = yes && enable_static=no
12976     fi
12977     ;;
12978   esac
12979   { echo "$as_me:$LINENO: result: $enable_shared" >&5
12980 echo "${ECHO_T}$enable_shared" >&6; }
12981
12982   { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12983 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
12984   # Make sure either enable_shared or enable_static is yes.
12985   test "$enable_shared" = yes || enable_static=yes
12986   { echo "$as_me:$LINENO: result: $enable_static" >&5
12987 echo "${ECHO_T}$enable_static" >&6; }
12988
12989
12990
12991
12992 fi
12993 ac_ext=cpp
12994 ac_cpp='$CXXCPP $CPPFLAGS'
12995 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12996 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12997 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12998
12999 CC="$lt_save_CC"
13000
13001
13002 ac_ext=cpp
13003 ac_cpp='$CXXCPP $CPPFLAGS'
13004 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13005 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13006 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13007
13008 archive_cmds_need_lc_CXX=no
13009 allow_undefined_flag_CXX=
13010 always_export_symbols_CXX=no
13011 archive_expsym_cmds_CXX=
13012 compiler_needs_object_CXX=no
13013 export_dynamic_flag_spec_CXX=
13014 hardcode_direct_CXX=no
13015 hardcode_direct_absolute_CXX=no
13016 hardcode_libdir_flag_spec_CXX=
13017 hardcode_libdir_flag_spec_ld_CXX=
13018 hardcode_libdir_separator_CXX=
13019 hardcode_minus_L_CXX=no
13020 hardcode_shlibpath_var_CXX=unsupported
13021 hardcode_automatic_CXX=no
13022 inherit_rpath_CXX=no
13023 module_cmds_CXX=
13024 module_expsym_cmds_CXX=
13025 link_all_deplibs_CXX=unknown
13026 old_archive_cmds_CXX=$old_archive_cmds
13027 no_undefined_flag_CXX=
13028 whole_archive_flag_spec_CXX=
13029 enable_shared_with_static_runtimes_CXX=no
13030
13031 # Source file extension for C++ test sources.
13032 ac_ext=cpp
13033
13034 # Object file extension for compiled C++ test sources.
13035 objext=o
13036 objext_CXX=$objext
13037
13038 # No sense in running all these tests if we already determined that
13039 # the CXX compiler isn't working.  Some variables (like enable_shared)
13040 # are currently assumed to apply to all compilers on this platform,
13041 # and will be corrupted by setting them based on a non-working compiler.
13042 if test "$_lt_caught_CXX_error" != yes; then
13043   # Code to be used in simple compile tests
13044   lt_simple_compile_test_code="int some_variable = 0;"
13045
13046   # Code to be used in simple link tests
13047   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13048
13049   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13050
13051
13052
13053
13054
13055
13056 # If no C compiler was specified, use CC.
13057 LTCC=${LTCC-"$CC"}
13058
13059 # If no C compiler flags were specified, use CFLAGS.
13060 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13061
13062 # Allow CC to be a program name with arguments.
13063 compiler=$CC
13064
13065
13066   # save warnings/boilerplate of simple test code
13067   ac_outfile=conftest.$ac_objext
13068 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13069 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13070 _lt_compiler_boilerplate=`cat conftest.err`
13071 $RM conftest*
13072
13073   ac_outfile=conftest.$ac_objext
13074 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13075 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13076 _lt_linker_boilerplate=`cat conftest.err`
13077 $RM -r conftest*
13078
13079
13080   # Allow CC to be a program name with arguments.
13081   lt_save_CC=$CC
13082   lt_save_LD=$LD
13083   lt_save_GCC=$GCC
13084   GCC=$GXX
13085   lt_save_with_gnu_ld=$with_gnu_ld
13086   lt_save_path_LD=$lt_cv_path_LD
13087   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13088     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13089   else
13090     $as_unset lt_cv_prog_gnu_ld
13091   fi
13092   if test -n "${lt_cv_path_LDCXX+set}"; then
13093     lt_cv_path_LD=$lt_cv_path_LDCXX
13094   else
13095     $as_unset lt_cv_path_LD
13096   fi
13097   test -z "${LDCXX+set}" || LD=$LDCXX
13098   CC=${CXX-"c++"}
13099   compiler=$CC
13100   compiler_CXX=$CC
13101   for cc_temp in $compiler""; do
13102   case $cc_temp in
13103     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13104     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13105     \-*) ;;
13106     *) break;;
13107   esac
13108 done
13109 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13110
13111
13112   if test -n "$compiler"; then
13113     # We don't want -fno-exception when compiling C++ code, so set the
13114     # no_builtin_flag separately
13115     if test "$GXX" = yes; then
13116       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13117     else
13118       lt_prog_compiler_no_builtin_flag_CXX=
13119     fi
13120
13121     if test "$GXX" = yes; then
13122       # Set up default GNU C++ configuration
13123
13124
13125
13126 # Check whether --with-gnu-ld was given.
13127 if test "${with_gnu_ld+set}" = set; then
13128   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13129 else
13130   with_gnu_ld=no
13131 fi
13132
13133 ac_prog=ld
13134 if test "$GCC" = yes; then
13135   # Check if gcc -print-prog-name=ld gives a path.
13136   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
13137 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
13138   case $host in
13139   *-*-mingw*)
13140     # gcc leaves a trailing carriage return which upsets mingw
13141     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13142   *)
13143     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13144   esac
13145   case $ac_prog in
13146     # Accept absolute paths.
13147     [\\/]* | ?:[\\/]*)
13148       re_direlt='/[^/][^/]*/\.\./'
13149       # Canonicalize the pathname of ld
13150       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13151       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13152         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13153       done
13154       test -z "$LD" && LD="$ac_prog"
13155       ;;
13156   "")
13157     # If it fails, then pretend we aren't using GCC.
13158     ac_prog=ld
13159     ;;
13160   *)
13161     # If it is relative, then search for the first ld in PATH.
13162     with_gnu_ld=unknown
13163     ;;
13164   esac
13165 elif test "$with_gnu_ld" = yes; then
13166   { echo "$as_me:$LINENO: checking for GNU ld" >&5
13167 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
13168 else
13169   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
13170 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
13171 fi
13172 if test "${lt_cv_path_LD+set}" = set; then
13173   echo $ECHO_N "(cached) $ECHO_C" >&6
13174 else
13175   if test -z "$LD"; then
13176   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13177   for ac_dir in $PATH; do
13178     IFS="$lt_save_ifs"
13179     test -z "$ac_dir" && ac_dir=.
13180     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13181       lt_cv_path_LD="$ac_dir/$ac_prog"
13182       # Check to see if the program is GNU ld.  I'd rather use --version,
13183       # but apparently some variants of GNU ld only accept -v.
13184       # Break only if it was the GNU/non-GNU ld that we prefer.
13185       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13186       *GNU* | *'with BFD'*)
13187         test "$with_gnu_ld" != no && break
13188         ;;
13189       *)
13190         test "$with_gnu_ld" != yes && break
13191         ;;
13192       esac
13193     fi
13194   done
13195   IFS="$lt_save_ifs"
13196 else
13197   lt_cv_path_LD="$LD" # Let the user override the test with a path.
13198 fi
13199 fi
13200
13201 LD="$lt_cv_path_LD"
13202 if test -n "$LD"; then
13203   { echo "$as_me:$LINENO: result: $LD" >&5
13204 echo "${ECHO_T}$LD" >&6; }
13205 else
13206   { echo "$as_me:$LINENO: result: no" >&5
13207 echo "${ECHO_T}no" >&6; }
13208 fi
13209 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
13210 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
13211    { (exit 1); exit 1; }; }
13212 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
13213 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
13214 if test "${lt_cv_prog_gnu_ld+set}" = set; then
13215   echo $ECHO_N "(cached) $ECHO_C" >&6
13216 else
13217   # I'd rather use --version here, but apparently some GNU lds only accept -v.
13218 case `$LD -v 2>&1 </dev/null` in
13219 *GNU* | *'with BFD'*)
13220   lt_cv_prog_gnu_ld=yes
13221   ;;
13222 *)
13223   lt_cv_prog_gnu_ld=no
13224   ;;
13225 esac
13226 fi
13227 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
13228 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
13229 with_gnu_ld=$lt_cv_prog_gnu_ld
13230
13231
13232
13233
13234
13235
13236
13237       # Check if GNU C++ uses GNU ld as the underlying linker, since the
13238       # archiving commands below assume that GNU ld is being used.
13239       if test "$with_gnu_ld" = yes; then
13240         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13241         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'
13242
13243         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13244         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13245
13246         # If archive_cmds runs LD, not CC, wlarc should be empty
13247         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13248         #     investigate it a little bit more. (MM)
13249         wlarc='${wl}'
13250
13251         # ancient GNU ld didn't support --whole-archive et. al.
13252         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13253           $GREP 'no-whole-archive' > /dev/null; then
13254           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13255         else
13256           whole_archive_flag_spec_CXX=
13257         fi
13258       else
13259         with_gnu_ld=no
13260         wlarc=
13261
13262         # A generic and very simple default shared library creation
13263         # command for GNU C++ for the case where it uses the native
13264         # linker, instead of GNU ld.  If possible, this setting should
13265         # overridden to take advantage of the native linker features on
13266         # the platform it is being used on.
13267         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13268       fi
13269
13270       # Commands to make compiler produce verbose output that lists
13271       # what "hidden" libraries, object files and flags are used when
13272       # linking a shared library.
13273       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13274
13275     else
13276       GXX=no
13277       with_gnu_ld=no
13278       wlarc=
13279     fi
13280
13281     # PORTME: fill in a description of your system's C++ link characteristics
13282     { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13283 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
13284     ld_shlibs_CXX=yes
13285     case $host_os in
13286       aix3*)
13287         # FIXME: insert proper C++ library support
13288         ld_shlibs_CXX=no
13289         ;;
13290       aix[4-9]*)
13291         if test "$host_cpu" = ia64; then
13292           # On IA64, the linker does run time linking by default, so we don't
13293           # have to do anything special.
13294           aix_use_runtimelinking=no
13295           exp_sym_flag='-Bexport'
13296           no_entry_flag=""
13297         else
13298           aix_use_runtimelinking=no
13299
13300           # Test if we are trying to use run time linking or normal
13301           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13302           # need to do runtime linking.
13303           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13304             for ld_flag in $LDFLAGS; do
13305               case $ld_flag in
13306               *-brtl*)
13307                 aix_use_runtimelinking=yes
13308                 break
13309                 ;;
13310               esac
13311             done
13312             ;;
13313           esac
13314
13315           exp_sym_flag='-bexport'
13316           no_entry_flag='-bnoentry'
13317         fi
13318
13319         # When large executables or shared objects are built, AIX ld can
13320         # have problems creating the table of contents.  If linking a library
13321         # or program results in "error TOC overflow" add -mminimal-toc to
13322         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13323         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13324
13325         archive_cmds_CXX=''
13326         hardcode_direct_CXX=yes
13327         hardcode_direct_absolute_CXX=yes
13328         hardcode_libdir_separator_CXX=':'
13329         link_all_deplibs_CXX=yes
13330         file_list_spec_CXX='${wl}-f,'
13331
13332         if test "$GXX" = yes; then
13333           case $host_os in aix4.[012]|aix4.[012].*)
13334           # We only want to do this on AIX 4.2 and lower, the check
13335           # below for broken collect2 doesn't work under 4.3+
13336           collect2name=`${CC} -print-prog-name=collect2`
13337           if test -f "$collect2name" &&
13338              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13339           then
13340             # We have reworked collect2
13341             :
13342           else
13343             # We have old collect2
13344             hardcode_direct_CXX=unsupported
13345             # It fails to find uninstalled libraries when the uninstalled
13346             # path is not listed in the libpath.  Setting hardcode_minus_L
13347             # to unsupported forces relinking
13348             hardcode_minus_L_CXX=yes
13349             hardcode_libdir_flag_spec_CXX='-L$libdir'
13350             hardcode_libdir_separator_CXX=
13351           fi
13352           esac
13353           shared_flag='-shared'
13354           if test "$aix_use_runtimelinking" = yes; then
13355             shared_flag="$shared_flag "'${wl}-G'
13356           fi
13357         else
13358           # not using gcc
13359           if test "$host_cpu" = ia64; then
13360           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13361           # chokes on -Wl,-G. The following line is correct:
13362           shared_flag='-G'
13363           else
13364             if test "$aix_use_runtimelinking" = yes; then
13365               shared_flag='${wl}-G'
13366             else
13367               shared_flag='${wl}-bM:SRE'
13368             fi
13369           fi
13370         fi
13371
13372         export_dynamic_flag_spec_CXX='${wl}-bexpall'
13373         # It seems that -bexpall does not export symbols beginning with
13374         # underscore (_), so it is better to generate a list of symbols to
13375         # export.
13376         always_export_symbols_CXX=yes
13377         if test "$aix_use_runtimelinking" = yes; then
13378           # Warning - without using the other runtime loading flags (-brtl),
13379           # -berok will link without error, but may produce a broken library.
13380           allow_undefined_flag_CXX='-berok'
13381           # Determine the default libpath from the value encoded in an empty
13382           # executable.
13383           cat >conftest.$ac_ext <<_ACEOF
13384 /* confdefs.h.  */
13385 _ACEOF
13386 cat confdefs.h >>conftest.$ac_ext
13387 cat >>conftest.$ac_ext <<_ACEOF
13388 /* end confdefs.h.  */
13389
13390 int
13391 main ()
13392 {
13393
13394   ;
13395   return 0;
13396 }
13397 _ACEOF
13398 rm -f conftest.$ac_objext conftest$ac_exeext
13399 if { (ac_try="$ac_link"
13400 case "(($ac_try" in
13401   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13402   *) ac_try_echo=$ac_try;;
13403 esac
13404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13405   (eval "$ac_link") 2>conftest.er1
13406   ac_status=$?
13407   grep -v '^ *+' conftest.er1 >conftest.err
13408   rm -f conftest.er1
13409   cat conftest.err >&5
13410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13411   (exit $ac_status); } && {
13412          test -z "$ac_cxx_werror_flag" ||
13413          test ! -s conftest.err
13414        } && test -s conftest$ac_exeext &&
13415        $as_test_x conftest$ac_exeext; then
13416
13417 lt_aix_libpath_sed='
13418     /Import File Strings/,/^$/ {
13419         /^0/ {
13420             s/^0  *\(.*\)$/\1/
13421             p
13422         }
13423     }'
13424 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13425 # Check for a 64-bit object if we didn't find anything.
13426 if test -z "$aix_libpath"; then
13427   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13428 fi
13429 else
13430   echo "$as_me: failed program was:" >&5
13431 sed 's/^/| /' conftest.$ac_ext >&5
13432
13433
13434 fi
13435
13436 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13437       conftest$ac_exeext conftest.$ac_ext
13438 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13439
13440           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13441
13442           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"
13443         else
13444           if test "$host_cpu" = ia64; then
13445             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13446             allow_undefined_flag_CXX="-z nodefs"
13447             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"
13448           else
13449             # Determine the default libpath from the value encoded in an
13450             # empty executable.
13451             cat >conftest.$ac_ext <<_ACEOF
13452 /* confdefs.h.  */
13453 _ACEOF
13454 cat confdefs.h >>conftest.$ac_ext
13455 cat >>conftest.$ac_ext <<_ACEOF
13456 /* end confdefs.h.  */
13457
13458 int
13459 main ()
13460 {
13461
13462   ;
13463   return 0;
13464 }
13465 _ACEOF
13466 rm -f conftest.$ac_objext conftest$ac_exeext
13467 if { (ac_try="$ac_link"
13468 case "(($ac_try" in
13469   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13470   *) ac_try_echo=$ac_try;;
13471 esac
13472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13473   (eval "$ac_link") 2>conftest.er1
13474   ac_status=$?
13475   grep -v '^ *+' conftest.er1 >conftest.err
13476   rm -f conftest.er1
13477   cat conftest.err >&5
13478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13479   (exit $ac_status); } && {
13480          test -z "$ac_cxx_werror_flag" ||
13481          test ! -s conftest.err
13482        } && test -s conftest$ac_exeext &&
13483        $as_test_x conftest$ac_exeext; then
13484
13485 lt_aix_libpath_sed='
13486     /Import File Strings/,/^$/ {
13487         /^0/ {
13488             s/^0  *\(.*\)$/\1/
13489             p
13490         }
13491     }'
13492 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13493 # Check for a 64-bit object if we didn't find anything.
13494 if test -z "$aix_libpath"; then
13495   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13496 fi
13497 else
13498   echo "$as_me: failed program was:" >&5
13499 sed 's/^/| /' conftest.$ac_ext >&5
13500
13501
13502 fi
13503
13504 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13505       conftest$ac_exeext conftest.$ac_ext
13506 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13507
13508             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13509             # Warning - without using the other run time loading flags,
13510             # -berok will link without error, but may produce a broken library.
13511             no_undefined_flag_CXX=' ${wl}-bernotok'
13512             allow_undefined_flag_CXX=' ${wl}-berok'
13513             # Exported symbols can be pulled into shared objects from archives
13514             whole_archive_flag_spec_CXX='$convenience'
13515             archive_cmds_need_lc_CXX=yes
13516             # This is similar to how AIX traditionally builds its shared
13517             # libraries.
13518             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'
13519           fi
13520         fi
13521         ;;
13522
13523       beos*)
13524         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13525           allow_undefined_flag_CXX=unsupported
13526           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13527           # support --undefined.  This deserves some investigation.  FIXME
13528           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13529         else
13530           ld_shlibs_CXX=no
13531         fi
13532         ;;
13533
13534       chorus*)
13535         case $cc_basename in
13536           *)
13537           # FIXME: insert proper C++ library support
13538           ld_shlibs_CXX=no
13539           ;;
13540         esac
13541         ;;
13542
13543       cygwin* | mingw* | pw32* | cegcc*)
13544         # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13545         # as there is no search path for DLLs.
13546         hardcode_libdir_flag_spec_CXX='-L$libdir'
13547         allow_undefined_flag_CXX=unsupported
13548         always_export_symbols_CXX=no
13549         enable_shared_with_static_runtimes_CXX=yes
13550
13551         if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13552           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'
13553           # If the export-symbols file already is a .def file (1st line
13554           # is EXPORTS), use it as is; otherwise, prepend...
13555           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13556             cp $export_symbols $output_objdir/$soname.def;
13557           else
13558             echo EXPORTS > $output_objdir/$soname.def;
13559             cat $export_symbols >> $output_objdir/$soname.def;
13560           fi~
13561           $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'
13562         else
13563           ld_shlibs_CXX=no
13564         fi
13565         ;;
13566       darwin* | rhapsody*)
13567
13568
13569   archive_cmds_need_lc_CXX=no
13570   hardcode_direct_CXX=no
13571   hardcode_automatic_CXX=yes
13572   hardcode_shlibpath_var_CXX=unsupported
13573   whole_archive_flag_spec_CXX=''
13574   link_all_deplibs_CXX=yes
13575   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13576   case $cc_basename in
13577      ifort*) _lt_dar_can_shared=yes ;;
13578      *) _lt_dar_can_shared=$GCC ;;
13579   esac
13580   if test "$_lt_dar_can_shared" = "yes"; then
13581     output_verbose_link_cmd=echo
13582     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}"
13583     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13584     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}"
13585     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}"
13586        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13587       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}"
13588       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}"
13589     fi
13590
13591   else
13592   ld_shlibs_CXX=no
13593   fi
13594
13595         ;;
13596
13597       dgux*)
13598         case $cc_basename in
13599           ec++*)
13600             # FIXME: insert proper C++ library support
13601             ld_shlibs_CXX=no
13602             ;;
13603           ghcx*)
13604             # Green Hills C++ Compiler
13605             # FIXME: insert proper C++ library support
13606             ld_shlibs_CXX=no
13607             ;;
13608           *)
13609             # FIXME: insert proper C++ library support
13610             ld_shlibs_CXX=no
13611             ;;
13612         esac
13613         ;;
13614
13615       freebsd[12]*)
13616         # C++ shared libraries reported to be fairly broken before
13617         # switch to ELF
13618         ld_shlibs_CXX=no
13619         ;;
13620
13621       freebsd-elf*)
13622         archive_cmds_need_lc_CXX=no
13623         ;;
13624
13625       freebsd* | dragonfly*)
13626         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13627         # conventions
13628         ld_shlibs_CXX=yes
13629         ;;
13630
13631       gnu*)
13632         ;;
13633
13634       hpux9*)
13635         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13636         hardcode_libdir_separator_CXX=:
13637         export_dynamic_flag_spec_CXX='${wl}-E'
13638         hardcode_direct_CXX=yes
13639         hardcode_minus_L_CXX=yes # Not in the search PATH,
13640                                              # but as the default
13641                                              # location of the library.
13642
13643         case $cc_basename in
13644           CC*)
13645             # FIXME: insert proper C++ library support
13646             ld_shlibs_CXX=no
13647             ;;
13648           aCC*)
13649             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'
13650             # Commands to make compiler produce verbose output that lists
13651             # what "hidden" libraries, object files and flags are used when
13652             # linking a shared library.
13653             #
13654             # There doesn't appear to be a way to prevent this compiler from
13655             # explicitly linking system object files so we need to strip them
13656             # from the output so that they don't get included in the library
13657             # dependencies.
13658             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'
13659             ;;
13660           *)
13661             if test "$GXX" = yes; then
13662               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'
13663             else
13664               # FIXME: insert proper C++ library support
13665               ld_shlibs_CXX=no
13666             fi
13667             ;;
13668         esac
13669         ;;
13670
13671       hpux10*|hpux11*)
13672         if test $with_gnu_ld = no; then
13673           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13674           hardcode_libdir_separator_CXX=:
13675
13676           case $host_cpu in
13677             hppa*64*|ia64*)
13678               ;;
13679             *)
13680               export_dynamic_flag_spec_CXX='${wl}-E'
13681               ;;
13682           esac
13683         fi
13684         case $host_cpu in
13685           hppa*64*|ia64*)
13686             hardcode_direct_CXX=no
13687             hardcode_shlibpath_var_CXX=no
13688             ;;
13689           *)
13690             hardcode_direct_CXX=yes
13691             hardcode_direct_absolute_CXX=yes
13692             hardcode_minus_L_CXX=yes # Not in the search PATH,
13693                                                  # but as the default
13694                                                  # location of the library.
13695             ;;
13696         esac
13697
13698         case $cc_basename in
13699           CC*)
13700             # FIXME: insert proper C++ library support
13701             ld_shlibs_CXX=no
13702             ;;
13703           aCC*)
13704             case $host_cpu in
13705               hppa*64*)
13706                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13707                 ;;
13708               ia64*)
13709                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13710                 ;;
13711               *)
13712                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13713                 ;;
13714             esac
13715             # Commands to make compiler produce verbose output that lists
13716             # what "hidden" libraries, object files and flags are used when
13717             # linking a shared library.
13718             #
13719             # There doesn't appear to be a way to prevent this compiler from
13720             # explicitly linking system object files so we need to strip them
13721             # from the output so that they don't get included in the library
13722             # dependencies.
13723             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'
13724             ;;
13725           *)
13726             if test "$GXX" = yes; then
13727               if test $with_gnu_ld = no; then
13728                 case $host_cpu in
13729                   hppa*64*)
13730                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13731                     ;;
13732                   ia64*)
13733                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13734                     ;;
13735                   *)
13736                     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'
13737                     ;;
13738                 esac
13739               fi
13740             else
13741               # FIXME: insert proper C++ library support
13742               ld_shlibs_CXX=no
13743             fi
13744             ;;
13745         esac
13746         ;;
13747
13748       interix[3-9]*)
13749         hardcode_direct_CXX=no
13750         hardcode_shlibpath_var_CXX=no
13751         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13752         export_dynamic_flag_spec_CXX='${wl}-E'
13753         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13754         # Instead, shared libraries are loaded at an image base (0x10000000 by
13755         # default) and relocated if they conflict, which is a slow very memory
13756         # consuming and fragmenting process.  To avoid this, we pick a random,
13757         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13758         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13759         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'
13760         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'
13761         ;;
13762       irix5* | irix6*)
13763         case $cc_basename in
13764           CC*)
13765             # SGI C++
13766             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'
13767
13768             # Archives containing C++ object files must be created using
13769             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
13770             # necessary to make sure instantiated templates are included
13771             # in the archive.
13772             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13773             ;;
13774           *)
13775             if test "$GXX" = yes; then
13776               if test "$with_gnu_ld" = no; then
13777                 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'
13778               else
13779                 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'
13780               fi
13781             fi
13782             link_all_deplibs_CXX=yes
13783             ;;
13784         esac
13785         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13786         hardcode_libdir_separator_CXX=:
13787         inherit_rpath_CXX=yes
13788         ;;
13789
13790       linux* | k*bsd*-gnu)
13791         case $cc_basename in
13792           KCC*)
13793             # Kuck and Associates, Inc. (KAI) C++ Compiler
13794
13795             # KCC will only create a shared library if the output file
13796             # ends with ".so" (or ".sl" for HP-UX), so rename the library
13797             # to its proper name (with version) after linking.
13798             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'
13799             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'
13800             # Commands to make compiler produce verbose output that lists
13801             # what "hidden" libraries, object files and flags are used when
13802             # linking a shared library.
13803             #
13804             # There doesn't appear to be a way to prevent this compiler from
13805             # explicitly linking system object files so we need to strip them
13806             # from the output so that they don't get included in the library
13807             # dependencies.
13808             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'
13809
13810             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13811             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13812
13813             # Archives containing C++ object files must be created using
13814             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13815             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13816             ;;
13817           icpc* | ecpc* )
13818             # Intel C++
13819             with_gnu_ld=yes
13820             # version 8.0 and above of icpc choke on multiply defined symbols
13821             # if we add $predep_objects and $postdep_objects, however 7.1 and
13822             # earlier do not add the objects themselves.
13823             case `$CC -V 2>&1` in
13824               *"Version 7."*)
13825                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13826                 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'
13827                 ;;
13828               *)  # Version 8.0 or newer
13829                 tmp_idyn=
13830                 case $host_cpu in
13831                   ia64*) tmp_idyn=' -i_dynamic';;
13832                 esac
13833                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13834                 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'
13835                 ;;
13836             esac
13837             archive_cmds_need_lc_CXX=no
13838             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13839             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13840             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13841             ;;
13842           pgCC* | pgcpp*)
13843             # Portland Group C++ compiler
13844             case `$CC -V` in
13845             *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
13846               prelink_cmds_CXX='tpldir=Template.dir~
13847                 rm -rf $tpldir~
13848                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13849                 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
13850               old_archive_cmds_CXX='tpldir=Template.dir~
13851                 rm -rf $tpldir~
13852                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13853                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
13854                 $RANLIB $oldlib'
13855               archive_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 -o $lib'
13859               archive_expsym_cmds_CXX='tpldir=Template.dir~
13860                 rm -rf $tpldir~
13861                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13862                 $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'
13863               ;;
13864             *) # Version 6 will use weak symbols
13865               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13866               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'
13867               ;;
13868             esac
13869
13870             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13871             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13872             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'
13873             ;;
13874           cxx*)
13875             # Compaq C++
13876             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13877             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'
13878
13879             runpath_var=LD_RUN_PATH
13880             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13881             hardcode_libdir_separator_CXX=:
13882
13883             # Commands to make compiler produce verbose output that lists
13884             # what "hidden" libraries, object files and flags are used when
13885             # linking a shared library.
13886             #
13887             # There doesn't appear to be a way to prevent this compiler from
13888             # explicitly linking system object files so we need to strip them
13889             # from the output so that they don't get included in the library
13890             # dependencies.
13891             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'
13892             ;;
13893           xl*)
13894             # IBM XL 8.0 on PPC, with GNU ld
13895             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13896             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13897             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13898             if test "x$supports_anon_versioning" = xyes; then
13899               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13900                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13901                 echo "local: *; };" >> $output_objdir/$libname.ver~
13902                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13903             fi
13904             ;;
13905           *)
13906             case `$CC -V 2>&1 | sed 5q` in
13907             *Sun\ C*)
13908               # Sun C++ 5.9
13909               no_undefined_flag_CXX=' -zdefs'
13910               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13911               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'
13912               hardcode_libdir_flag_spec_CXX='-R$libdir'
13913               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'
13914               compiler_needs_object_CXX=yes
13915
13916               # Not sure whether something based on
13917               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13918               # would be better.
13919               output_verbose_link_cmd='echo'
13920
13921               # Archives containing C++ object files must be created using
13922               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13923               # necessary to make sure instantiated templates are included
13924               # in the archive.
13925               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13926               ;;
13927             esac
13928             ;;
13929         esac
13930         ;;
13931
13932       lynxos*)
13933         # FIXME: insert proper C++ library support
13934         ld_shlibs_CXX=no
13935         ;;
13936
13937       m88k*)
13938         # FIXME: insert proper C++ library support
13939         ld_shlibs_CXX=no
13940         ;;
13941
13942       mvs*)
13943         case $cc_basename in
13944           cxx*)
13945             # FIXME: insert proper C++ library support
13946             ld_shlibs_CXX=no
13947             ;;
13948           *)
13949             # FIXME: insert proper C++ library support
13950             ld_shlibs_CXX=no
13951             ;;
13952         esac
13953         ;;
13954
13955       netbsd*)
13956         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13957           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13958           wlarc=
13959           hardcode_libdir_flag_spec_CXX='-R$libdir'
13960           hardcode_direct_CXX=yes
13961           hardcode_shlibpath_var_CXX=no
13962         fi
13963         # Workaround some broken pre-1.5 toolchains
13964         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13965         ;;
13966
13967       *nto* | *qnx*)
13968         ld_shlibs_CXX=yes
13969         ;;
13970
13971       openbsd2*)
13972         # C++ shared libraries are fairly broken
13973         ld_shlibs_CXX=no
13974         ;;
13975
13976       openbsd*)
13977         if test -f /usr/libexec/ld.so; then
13978           hardcode_direct_CXX=yes
13979           hardcode_shlibpath_var_CXX=no
13980           hardcode_direct_absolute_CXX=yes
13981           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13982           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13983           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13984             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13985             export_dynamic_flag_spec_CXX='${wl}-E'
13986             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13987           fi
13988           output_verbose_link_cmd=echo
13989         else
13990           ld_shlibs_CXX=no
13991         fi
13992         ;;
13993
13994       osf3* | osf4* | osf5*)
13995         case $cc_basename in
13996           KCC*)
13997             # Kuck and Associates, Inc. (KAI) C++ Compiler
13998
13999             # KCC will only create a shared library if the output file
14000             # ends with ".so" (or ".sl" for HP-UX), so rename the library
14001             # to its proper name (with version) after linking.
14002             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'
14003
14004             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14005             hardcode_libdir_separator_CXX=:
14006
14007             # Archives containing C++ object files must be created using
14008             # the KAI C++ compiler.
14009             case $host in
14010               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14011               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14012             esac
14013             ;;
14014           RCC*)
14015             # Rational C++ 2.4.1
14016             # FIXME: insert proper C++ library support
14017             ld_shlibs_CXX=no
14018             ;;
14019           cxx*)
14020             case $host in
14021               osf3*)
14022                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14023                 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'
14024                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14025                 ;;
14026               *)
14027                 allow_undefined_flag_CXX=' -expect_unresolved \*'
14028                 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'
14029                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14030                   echo "-hidden">> $lib.exp~
14031                   $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~
14032                   $RM $lib.exp'
14033                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14034                 ;;
14035             esac
14036
14037             hardcode_libdir_separator_CXX=:
14038
14039             # Commands to make compiler produce verbose output that lists
14040             # what "hidden" libraries, object files and flags are used when
14041             # linking a shared library.
14042             #
14043             # There doesn't appear to be a way to prevent this compiler from
14044             # explicitly linking system object files so we need to strip them
14045             # from the output so that they don't get included in the library
14046             # dependencies.
14047             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'
14048             ;;
14049           *)
14050             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14051               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14052               case $host in
14053                 osf3*)
14054                   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'
14055                   ;;
14056                 *)
14057                   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'
14058                   ;;
14059               esac
14060
14061               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14062               hardcode_libdir_separator_CXX=:
14063
14064               # Commands to make compiler produce verbose output that lists
14065               # what "hidden" libraries, object files and flags are used when
14066               # linking a shared library.
14067               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14068
14069             else
14070               # FIXME: insert proper C++ library support
14071               ld_shlibs_CXX=no
14072             fi
14073             ;;
14074         esac
14075         ;;
14076
14077       psos*)
14078         # FIXME: insert proper C++ library support
14079         ld_shlibs_CXX=no
14080         ;;
14081
14082       sunos4*)
14083         case $cc_basename in
14084           CC*)
14085             # Sun C++ 4.x
14086             # FIXME: insert proper C++ library support
14087             ld_shlibs_CXX=no
14088             ;;
14089           lcc*)
14090             # Lucid
14091             # FIXME: insert proper C++ library support
14092             ld_shlibs_CXX=no
14093             ;;
14094           *)
14095             # FIXME: insert proper C++ library support
14096             ld_shlibs_CXX=no
14097             ;;
14098         esac
14099         ;;
14100
14101       solaris*)
14102         case $cc_basename in
14103           CC*)
14104             # Sun C++ 4.2, 5.x and Centerline C++
14105             archive_cmds_need_lc_CXX=yes
14106             no_undefined_flag_CXX=' -zdefs'
14107             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14108             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14109               $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'
14110
14111             hardcode_libdir_flag_spec_CXX='-R$libdir'
14112             hardcode_shlibpath_var_CXX=no
14113             case $host_os in
14114               solaris2.[0-5] | solaris2.[0-5].*) ;;
14115               *)
14116                 # The compiler driver will combine and reorder linker options,
14117                 # but understands `-z linker_flag'.
14118                 # Supported since Solaris 2.6 (maybe 2.5.1?)
14119                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14120                 ;;
14121             esac
14122             link_all_deplibs_CXX=yes
14123
14124             output_verbose_link_cmd='echo'
14125
14126             # Archives containing C++ object files must be created using
14127             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
14128             # necessary to make sure instantiated templates are included
14129             # in the archive.
14130             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14131             ;;
14132           gcx*)
14133             # Green Hills C++ Compiler
14134             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14135
14136             # The C++ compiler must be used to create the archive.
14137             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14138             ;;
14139           *)
14140             # GNU C++ compiler with Solaris linker
14141             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14142               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14143               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14144                 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14145                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14146                   $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14147
14148                 # Commands to make compiler produce verbose output that lists
14149                 # what "hidden" libraries, object files and flags are used when
14150                 # linking a shared library.
14151                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14152               else
14153                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
14154                 # platform.
14155                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14156                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14157                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14158
14159                 # Commands to make compiler produce verbose output that lists
14160                 # what "hidden" libraries, object files and flags are used when
14161                 # linking a shared library.
14162                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14163               fi
14164
14165               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14166               case $host_os in
14167                 solaris2.[0-5] | solaris2.[0-5].*) ;;
14168                 *)
14169                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14170                   ;;
14171               esac
14172             fi
14173             ;;
14174         esac
14175         ;;
14176
14177     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14178       no_undefined_flag_CXX='${wl}-z,text'
14179       archive_cmds_need_lc_CXX=no
14180       hardcode_shlibpath_var_CXX=no
14181       runpath_var='LD_RUN_PATH'
14182
14183       case $cc_basename in
14184         CC*)
14185           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14186           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14187           ;;
14188         *)
14189           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14190           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14191           ;;
14192       esac
14193       ;;
14194
14195       sysv5* | sco3.2v5* | sco5v6*)
14196         # Note: We can NOT use -z defs as we might desire, because we do not
14197         # link with -lc, and that would cause any symbols used from libc to
14198         # always be unresolved, which means just about no library would
14199         # ever link correctly.  If we're not using GNU ld we use -z text
14200         # though, which does catch some bad symbols but isn't as heavy-handed
14201         # as -z defs.
14202         no_undefined_flag_CXX='${wl}-z,text'
14203         allow_undefined_flag_CXX='${wl}-z,nodefs'
14204         archive_cmds_need_lc_CXX=no
14205         hardcode_shlibpath_var_CXX=no
14206         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14207         hardcode_libdir_separator_CXX=':'
14208         link_all_deplibs_CXX=yes
14209         export_dynamic_flag_spec_CXX='${wl}-Bexport'
14210         runpath_var='LD_RUN_PATH'
14211
14212         case $cc_basename in
14213           CC*)
14214             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14215             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14216             ;;
14217           *)
14218             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14219             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14220             ;;
14221         esac
14222       ;;
14223
14224       tandem*)
14225         case $cc_basename in
14226           NCC*)
14227             # NonStop-UX NCC 3.20
14228             # FIXME: insert proper C++ library support
14229             ld_shlibs_CXX=no
14230             ;;
14231           *)
14232             # FIXME: insert proper C++ library support
14233             ld_shlibs_CXX=no
14234             ;;
14235         esac
14236         ;;
14237
14238       vxworks*)
14239         # FIXME: insert proper C++ library support
14240         ld_shlibs_CXX=no
14241         ;;
14242
14243       *)
14244         # FIXME: insert proper C++ library support
14245         ld_shlibs_CXX=no
14246         ;;
14247     esac
14248
14249     { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14250 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
14251     test "$ld_shlibs_CXX" = no && can_build_shared=no
14252
14253     GCC_CXX="$GXX"
14254     LD_CXX="$LD"
14255
14256     ## CAVEAT EMPTOR:
14257     ## There is no encapsulation within the following macros, do not change
14258     ## the running order or otherwise move them around unless you know exactly
14259     ## what you are doing...
14260     # Dependencies to place before and after the object being linked:
14261 predep_objects_CXX=
14262 postdep_objects_CXX=
14263 predeps_CXX=
14264 postdeps_CXX=
14265 compiler_lib_search_path_CXX=
14266
14267 cat > conftest.$ac_ext <<_LT_EOF
14268 class Foo
14269 {
14270 public:
14271   Foo (void) { a = 0; }
14272 private:
14273   int a;
14274 };
14275 _LT_EOF
14276
14277 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14278   (eval $ac_compile) 2>&5
14279   ac_status=$?
14280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14281   (exit $ac_status); }; then
14282   # Parse the compiler output and extract the necessary
14283   # objects, libraries and library flags.
14284
14285   # Sentinel used to keep track of whether or not we are before
14286   # the conftest object file.
14287   pre_test_object_deps_done=no
14288
14289   for p in `eval "$output_verbose_link_cmd"`; do
14290     case $p in
14291
14292     -L* | -R* | -l*)
14293        # Some compilers place space between "-{L,R}" and the path.
14294        # Remove the space.
14295        if test $p = "-L" ||
14296           test $p = "-R"; then
14297          prev=$p
14298          continue
14299        else
14300          prev=
14301        fi
14302
14303        if test "$pre_test_object_deps_done" = no; then
14304          case $p in
14305          -L* | -R*)
14306            # Internal compiler library paths should come after those
14307            # provided the user.  The postdeps already come after the
14308            # user supplied libs so there is no need to process them.
14309            if test -z "$compiler_lib_search_path_CXX"; then
14310              compiler_lib_search_path_CXX="${prev}${p}"
14311            else
14312              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14313            fi
14314            ;;
14315          # The "-l" case would never come before the object being
14316          # linked, so don't bother handling this case.
14317          esac
14318        else
14319          if test -z "$postdeps_CXX"; then
14320            postdeps_CXX="${prev}${p}"
14321          else
14322            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14323          fi
14324        fi
14325        ;;
14326
14327     *.$objext)
14328        # This assumes that the test object file only shows up
14329        # once in the compiler output.
14330        if test "$p" = "conftest.$objext"; then
14331          pre_test_object_deps_done=yes
14332          continue
14333        fi
14334
14335        if test "$pre_test_object_deps_done" = no; then
14336          if test -z "$predep_objects_CXX"; then
14337            predep_objects_CXX="$p"
14338          else
14339            predep_objects_CXX="$predep_objects_CXX $p"
14340          fi
14341        else
14342          if test -z "$postdep_objects_CXX"; then
14343            postdep_objects_CXX="$p"
14344          else
14345            postdep_objects_CXX="$postdep_objects_CXX $p"
14346          fi
14347        fi
14348        ;;
14349
14350     *) ;; # Ignore the rest.
14351
14352     esac
14353   done
14354
14355   # Clean up.
14356   rm -f a.out a.exe
14357 else
14358   echo "libtool.m4: error: problem compiling CXX test program"
14359 fi
14360
14361 $RM -f confest.$objext
14362
14363 # PORTME: override above test on systems where it is broken
14364 case $host_os in
14365 interix[3-9]*)
14366   # Interix 3.5 installs completely hosed .la files for C++, so rather than
14367   # hack all around it, let's just trust "g++" to DTRT.
14368   predep_objects_CXX=
14369   postdep_objects_CXX=
14370   postdeps_CXX=
14371   ;;
14372
14373 linux*)
14374   case `$CC -V 2>&1 | sed 5q` in
14375   *Sun\ C*)
14376     # Sun C++ 5.9
14377
14378     # The more standards-conforming stlport4 library is
14379     # incompatible with the Cstd library. Avoid specifying
14380     # it if it's in CXXFLAGS. Ignore libCrun as
14381     # -library=stlport4 depends on it.
14382     case " $CXX $CXXFLAGS " in
14383     *" -library=stlport4 "*)
14384       solaris_use_stlport4=yes
14385       ;;
14386     esac
14387
14388     if test "$solaris_use_stlport4" != yes; then
14389       postdeps_CXX='-library=Cstd -library=Crun'
14390     fi
14391     ;;
14392   esac
14393   ;;
14394
14395 solaris*)
14396   case $cc_basename in
14397   CC*)
14398     # The more standards-conforming stlport4 library is
14399     # incompatible with the Cstd library. Avoid specifying
14400     # it if it's in CXXFLAGS. Ignore libCrun as
14401     # -library=stlport4 depends on it.
14402     case " $CXX $CXXFLAGS " in
14403     *" -library=stlport4 "*)
14404       solaris_use_stlport4=yes
14405       ;;
14406     esac
14407
14408     # Adding this requires a known-good setup of shared libraries for
14409     # Sun compiler versions before 5.6, else PIC objects from an old
14410     # archive will be linked into the output, leading to subtle bugs.
14411     if test "$solaris_use_stlport4" != yes; then
14412       postdeps_CXX='-library=Cstd -library=Crun'
14413     fi
14414     ;;
14415   esac
14416   ;;
14417 esac
14418
14419
14420 case " $postdeps_CXX " in
14421 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14422 esac
14423  compiler_lib_search_dirs_CXX=
14424 if test -n "${compiler_lib_search_path_CXX}"; then
14425  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14426 fi
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
14455
14456
14457
14458     lt_prog_compiler_wl_CXX=
14459 lt_prog_compiler_pic_CXX=
14460 lt_prog_compiler_static_CXX=
14461
14462 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14463 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14464
14465   # C++ specific cases for pic, static, wl, etc.
14466   if test "$GXX" = yes; then
14467     lt_prog_compiler_wl_CXX='-Wl,'
14468     lt_prog_compiler_static_CXX='-static'
14469
14470     case $host_os in
14471     aix*)
14472       # All AIX code is PIC.
14473       if test "$host_cpu" = ia64; then
14474         # AIX 5 now supports IA64 processor
14475         lt_prog_compiler_static_CXX='-Bstatic'
14476       fi
14477       ;;
14478
14479     amigaos*)
14480       case $host_cpu in
14481       powerpc)
14482             # see comment about AmigaOS4 .so support
14483             lt_prog_compiler_pic_CXX='-fPIC'
14484         ;;
14485       m68k)
14486             # FIXME: we need at least 68020 code to build shared libraries, but
14487             # adding the `-m68020' flag to GCC prevents building anything better,
14488             # like `-m68040'.
14489             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14490         ;;
14491       esac
14492       ;;
14493
14494     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14495       # PIC is the default for these OSes.
14496       ;;
14497     mingw* | cygwin* | os2* | pw32* | cegcc*)
14498       # This hack is so that the source file can tell whether it is being
14499       # built for inclusion in a dll (and should export symbols for example).
14500       # Although the cygwin gcc ignores -fPIC, still need this for old-style
14501       # (--disable-auto-import) libraries
14502       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14503       ;;
14504     darwin* | rhapsody*)
14505       # PIC is the default on this platform
14506       # Common symbols not allowed in MH_DYLIB files
14507       lt_prog_compiler_pic_CXX='-fno-common'
14508       ;;
14509     *djgpp*)
14510       # DJGPP does not support shared libraries at all
14511       lt_prog_compiler_pic_CXX=
14512       ;;
14513     interix[3-9]*)
14514       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14515       # Instead, we relocate shared libraries at runtime.
14516       ;;
14517     sysv4*MP*)
14518       if test -d /usr/nec; then
14519         lt_prog_compiler_pic_CXX=-Kconform_pic
14520       fi
14521       ;;
14522     hpux*)
14523       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14524       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
14525       # sets the default TLS model and affects inlining.
14526       case $host_cpu in
14527       hppa*64*)
14528         ;;
14529       *)
14530         lt_prog_compiler_pic_CXX='-fPIC'
14531         ;;
14532       esac
14533       ;;
14534     *qnx* | *nto*)
14535       # QNX uses GNU C++, but need to define -shared option too, otherwise
14536       # it will coredump.
14537       lt_prog_compiler_pic_CXX='-fPIC -shared'
14538       ;;
14539     *)
14540       lt_prog_compiler_pic_CXX='-fPIC'
14541       ;;
14542     esac
14543   else
14544     case $host_os in
14545       aix[4-9]*)
14546         # All AIX code is PIC.
14547         if test "$host_cpu" = ia64; then
14548           # AIX 5 now supports IA64 processor
14549           lt_prog_compiler_static_CXX='-Bstatic'
14550         else
14551           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14552         fi
14553         ;;
14554       chorus*)
14555         case $cc_basename in
14556         cxch68*)
14557           # Green Hills C++ Compiler
14558           # _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"
14559           ;;
14560         esac
14561         ;;
14562       dgux*)
14563         case $cc_basename in
14564           ec++*)
14565             lt_prog_compiler_pic_CXX='-KPIC'
14566             ;;
14567           ghcx*)
14568             # Green Hills C++ Compiler
14569             lt_prog_compiler_pic_CXX='-pic'
14570             ;;
14571           *)
14572             ;;
14573         esac
14574         ;;
14575       freebsd* | dragonfly*)
14576         # FreeBSD uses GNU C++
14577         ;;
14578       hpux9* | hpux10* | hpux11*)
14579         case $cc_basename in
14580           CC*)
14581             lt_prog_compiler_wl_CXX='-Wl,'
14582             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14583             if test "$host_cpu" != ia64; then
14584               lt_prog_compiler_pic_CXX='+Z'
14585             fi
14586             ;;
14587           aCC*)
14588             lt_prog_compiler_wl_CXX='-Wl,'
14589             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14590             case $host_cpu in
14591             hppa*64*|ia64*)
14592               # +Z the default
14593               ;;
14594             *)
14595               lt_prog_compiler_pic_CXX='+Z'
14596               ;;
14597             esac
14598             ;;
14599           *)
14600             ;;
14601         esac
14602         ;;
14603       interix*)
14604         # This is c89, which is MS Visual C++ (no shared libs)
14605         # Anyone wants to do a port?
14606         ;;
14607       irix5* | irix6* | nonstopux*)
14608         case $cc_basename in
14609           CC*)
14610             lt_prog_compiler_wl_CXX='-Wl,'
14611             lt_prog_compiler_static_CXX='-non_shared'
14612             # CC pic flag -KPIC is the default.
14613             ;;
14614           *)
14615             ;;
14616         esac
14617         ;;
14618       linux* | k*bsd*-gnu)
14619         case $cc_basename in
14620           KCC*)
14621             # KAI C++ Compiler
14622             lt_prog_compiler_wl_CXX='--backend -Wl,'
14623             lt_prog_compiler_pic_CXX='-fPIC'
14624             ;;
14625           ecpc* )
14626             # old Intel C++ for x86_64 which still supported -KPIC.
14627             lt_prog_compiler_wl_CXX='-Wl,'
14628             lt_prog_compiler_pic_CXX='-KPIC'
14629             lt_prog_compiler_static_CXX='-static'
14630             ;;
14631           icpc* )
14632             # Intel C++, used to be incompatible with GCC.
14633             # ICC 10 doesn't accept -KPIC any more.
14634             lt_prog_compiler_wl_CXX='-Wl,'
14635             lt_prog_compiler_pic_CXX='-fPIC'
14636             lt_prog_compiler_static_CXX='-static'
14637             ;;
14638           pgCC* | pgcpp*)
14639             # Portland Group C++ compiler
14640             lt_prog_compiler_wl_CXX='-Wl,'
14641             lt_prog_compiler_pic_CXX='-fpic'
14642             lt_prog_compiler_static_CXX='-Bstatic'
14643             ;;
14644           cxx*)
14645             # Compaq C++
14646             # Make sure the PIC flag is empty.  It appears that all Alpha
14647             # Linux and Compaq Tru64 Unix objects are PIC.
14648             lt_prog_compiler_pic_CXX=
14649             lt_prog_compiler_static_CXX='-non_shared'
14650             ;;
14651           xlc* | xlC*)
14652             # IBM XL 8.0 on PPC
14653             lt_prog_compiler_wl_CXX='-Wl,'
14654             lt_prog_compiler_pic_CXX='-qpic'
14655             lt_prog_compiler_static_CXX='-qstaticlink'
14656             ;;
14657           *)
14658             case `$CC -V 2>&1 | sed 5q` in
14659             *Sun\ C*)
14660               # Sun C++ 5.9
14661               lt_prog_compiler_pic_CXX='-KPIC'
14662               lt_prog_compiler_static_CXX='-Bstatic'
14663               lt_prog_compiler_wl_CXX='-Qoption ld '
14664               ;;
14665             esac
14666             ;;
14667         esac
14668         ;;
14669       lynxos*)
14670         ;;
14671       m88k*)
14672         ;;
14673       mvs*)
14674         case $cc_basename in
14675           cxx*)
14676             lt_prog_compiler_pic_CXX='-W c,exportall'
14677             ;;
14678           *)
14679             ;;
14680         esac
14681         ;;
14682       netbsd*)
14683         ;;
14684       *qnx* | *nto*)
14685         # QNX uses GNU C++, but need to define -shared option too, otherwise
14686         # it will coredump.
14687         lt_prog_compiler_pic_CXX='-fPIC -shared'
14688         ;;
14689       osf3* | osf4* | osf5*)
14690         case $cc_basename in
14691           KCC*)
14692             lt_prog_compiler_wl_CXX='--backend -Wl,'
14693             ;;
14694           RCC*)
14695             # Rational C++ 2.4.1
14696             lt_prog_compiler_pic_CXX='-pic'
14697             ;;
14698           cxx*)
14699             # Digital/Compaq C++
14700             lt_prog_compiler_wl_CXX='-Wl,'
14701             # Make sure the PIC flag is empty.  It appears that all Alpha
14702             # Linux and Compaq Tru64 Unix objects are PIC.
14703             lt_prog_compiler_pic_CXX=
14704             lt_prog_compiler_static_CXX='-non_shared'
14705             ;;
14706           *)
14707             ;;
14708         esac
14709         ;;
14710       psos*)
14711         ;;
14712       solaris*)
14713         case $cc_basename in
14714           CC*)
14715             # Sun C++ 4.2, 5.x and Centerline C++
14716             lt_prog_compiler_pic_CXX='-KPIC'
14717             lt_prog_compiler_static_CXX='-Bstatic'
14718             lt_prog_compiler_wl_CXX='-Qoption ld '
14719             ;;
14720           gcx*)
14721             # Green Hills C++ Compiler
14722             lt_prog_compiler_pic_CXX='-PIC'
14723             ;;
14724           *)
14725             ;;
14726         esac
14727         ;;
14728       sunos4*)
14729         case $cc_basename in
14730           CC*)
14731             # Sun C++ 4.x
14732             lt_prog_compiler_pic_CXX='-pic'
14733             lt_prog_compiler_static_CXX='-Bstatic'
14734             ;;
14735           lcc*)
14736             # Lucid
14737             lt_prog_compiler_pic_CXX='-pic'
14738             ;;
14739           *)
14740             ;;
14741         esac
14742         ;;
14743       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14744         case $cc_basename in
14745           CC*)
14746             lt_prog_compiler_wl_CXX='-Wl,'
14747             lt_prog_compiler_pic_CXX='-KPIC'
14748             lt_prog_compiler_static_CXX='-Bstatic'
14749             ;;
14750         esac
14751         ;;
14752       tandem*)
14753         case $cc_basename in
14754           NCC*)
14755             # NonStop-UX NCC 3.20
14756             lt_prog_compiler_pic_CXX='-KPIC'
14757             ;;
14758           *)
14759             ;;
14760         esac
14761         ;;
14762       vxworks*)
14763         ;;
14764       *)
14765         lt_prog_compiler_can_build_shared_CXX=no
14766         ;;
14767     esac
14768   fi
14769
14770 case $host_os in
14771   # For platforms which do not support PIC, -DPIC is meaningless:
14772   *djgpp*)
14773     lt_prog_compiler_pic_CXX=
14774     ;;
14775   *)
14776     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14777     ;;
14778 esac
14779 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
14780 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
14781
14782
14783
14784 #
14785 # Check to make sure the PIC flag actually works.
14786 #
14787 if test -n "$lt_prog_compiler_pic_CXX"; then
14788   { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14789 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
14790 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
14791   echo $ECHO_N "(cached) $ECHO_C" >&6
14792 else
14793   lt_cv_prog_compiler_pic_works_CXX=no
14794    ac_outfile=conftest.$ac_objext
14795    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14796    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14797    # Insert the option either (1) after the last *FLAGS variable, or
14798    # (2) before a word containing "conftest.", or (3) at the end.
14799    # Note that $ac_compile itself does not contain backslashes and begins
14800    # with a dollar sign (not a hyphen), so the echo should work correctly.
14801    # The option is referenced via a variable to avoid confusing sed.
14802    lt_compile=`echo "$ac_compile" | $SED \
14803    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14804    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14805    -e 's:$: $lt_compiler_flag:'`
14806    (eval echo "\"\$as_me:14806: $lt_compile\"" >&5)
14807    (eval "$lt_compile" 2>conftest.err)
14808    ac_status=$?
14809    cat conftest.err >&5
14810    echo "$as_me:14810: \$? = $ac_status" >&5
14811    if (exit $ac_status) && test -s "$ac_outfile"; then
14812      # The compiler can only warn and ignore the option if not recognized
14813      # So say no if there are warnings other than the usual output.
14814      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14815      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14816      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14817        lt_cv_prog_compiler_pic_works_CXX=yes
14818      fi
14819    fi
14820    $RM conftest*
14821
14822 fi
14823 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14824 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14825
14826 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14827     case $lt_prog_compiler_pic_CXX in
14828      "" | " "*) ;;
14829      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14830      esac
14831 else
14832     lt_prog_compiler_pic_CXX=
14833      lt_prog_compiler_can_build_shared_CXX=no
14834 fi
14835
14836 fi
14837
14838
14839
14840 #
14841 # Check to make sure the static flag actually works.
14842 #
14843 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14844 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14845 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14846 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
14847   echo $ECHO_N "(cached) $ECHO_C" >&6
14848 else
14849   lt_cv_prog_compiler_static_works_CXX=no
14850    save_LDFLAGS="$LDFLAGS"
14851    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14852    echo "$lt_simple_link_test_code" > conftest.$ac_ext
14853    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14854      # The linker can only warn and ignore the option if not recognized
14855      # So say no if there are warnings
14856      if test -s conftest.err; then
14857        # Append any errors to the config.log.
14858        cat conftest.err 1>&5
14859        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14860        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14861        if diff conftest.exp conftest.er2 >/dev/null; then
14862          lt_cv_prog_compiler_static_works_CXX=yes
14863        fi
14864      else
14865        lt_cv_prog_compiler_static_works_CXX=yes
14866      fi
14867    fi
14868    $RM -r conftest*
14869    LDFLAGS="$save_LDFLAGS"
14870
14871 fi
14872 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14873 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6; }
14874
14875 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14876     :
14877 else
14878     lt_prog_compiler_static_CXX=
14879 fi
14880
14881
14882
14883
14884     { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14885 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14886 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14887   echo $ECHO_N "(cached) $ECHO_C" >&6
14888 else
14889   lt_cv_prog_compiler_c_o_CXX=no
14890    $RM -r conftest 2>/dev/null
14891    mkdir conftest
14892    cd conftest
14893    mkdir out
14894    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14895
14896    lt_compiler_flag="-o out/conftest2.$ac_objext"
14897    # Insert the option either (1) after the last *FLAGS variable, or
14898    # (2) before a word containing "conftest.", or (3) at the end.
14899    # Note that $ac_compile itself does not contain backslashes and begins
14900    # with a dollar sign (not a hyphen), so the echo should work correctly.
14901    lt_compile=`echo "$ac_compile" | $SED \
14902    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14903    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14904    -e 's:$: $lt_compiler_flag:'`
14905    (eval echo "\"\$as_me:14905: $lt_compile\"" >&5)
14906    (eval "$lt_compile" 2>out/conftest.err)
14907    ac_status=$?
14908    cat out/conftest.err >&5
14909    echo "$as_me:14909: \$? = $ac_status" >&5
14910    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14911    then
14912      # The compiler can only warn and ignore the option if not recognized
14913      # So say no if there are warnings
14914      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14915      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14916      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14917        lt_cv_prog_compiler_c_o_CXX=yes
14918      fi
14919    fi
14920    chmod u+w . 2>&5
14921    $RM conftest*
14922    # SGI C++ compiler will create directory out/ii_files/ for
14923    # template instantiation
14924    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14925    $RM out/* && rmdir out
14926    cd ..
14927    $RM -r conftest
14928    $RM conftest*
14929
14930 fi
14931 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14932 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
14933
14934
14935
14936     { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14937 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14938 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14939   echo $ECHO_N "(cached) $ECHO_C" >&6
14940 else
14941   lt_cv_prog_compiler_c_o_CXX=no
14942    $RM -r conftest 2>/dev/null
14943    mkdir conftest
14944    cd conftest
14945    mkdir out
14946    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14947
14948    lt_compiler_flag="-o out/conftest2.$ac_objext"
14949    # Insert the option either (1) after the last *FLAGS variable, or
14950    # (2) before a word containing "conftest.", or (3) at the end.
14951    # Note that $ac_compile itself does not contain backslashes and begins
14952    # with a dollar sign (not a hyphen), so the echo should work correctly.
14953    lt_compile=`echo "$ac_compile" | $SED \
14954    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14955    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14956    -e 's:$: $lt_compiler_flag:'`
14957    (eval echo "\"\$as_me:14957: $lt_compile\"" >&5)
14958    (eval "$lt_compile" 2>out/conftest.err)
14959    ac_status=$?
14960    cat out/conftest.err >&5
14961    echo "$as_me:14961: \$? = $ac_status" >&5
14962    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14963    then
14964      # The compiler can only warn and ignore the option if not recognized
14965      # So say no if there are warnings
14966      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14967      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14968      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14969        lt_cv_prog_compiler_c_o_CXX=yes
14970      fi
14971    fi
14972    chmod u+w . 2>&5
14973    $RM conftest*
14974    # SGI C++ compiler will create directory out/ii_files/ for
14975    # template instantiation
14976    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14977    $RM out/* && rmdir out
14978    cd ..
14979    $RM -r conftest
14980    $RM conftest*
14981
14982 fi
14983 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14984 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
14985
14986
14987
14988
14989 hard_links="nottested"
14990 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14991   # do not overwrite the value of need_locks provided by the user
14992   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14993 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14994   hard_links=yes
14995   $RM conftest*
14996   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14997   touch conftest.a
14998   ln conftest.a conftest.b 2>&5 || hard_links=no
14999   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15000   { echo "$as_me:$LINENO: result: $hard_links" >&5
15001 echo "${ECHO_T}$hard_links" >&6; }
15002   if test "$hard_links" = no; then
15003     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15004 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15005     need_locks=warn
15006   fi
15007 else
15008   need_locks=no
15009 fi
15010
15011
15012
15013     { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15014 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
15015
15016   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15017   case $host_os in
15018   aix[4-9]*)
15019     # If we're using GNU nm, then we don't want the "-C" option.
15020     # -C means demangle to AIX nm, but means don't demangle with GNU nm
15021     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15022       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'
15023     else
15024       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'
15025     fi
15026     ;;
15027   pw32*)
15028     export_symbols_cmds_CXX="$ltdll_cmds"
15029   ;;
15030   cygwin* | mingw* | cegcc*)
15031     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'
15032   ;;
15033   *)
15034     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15035   ;;
15036   esac
15037   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15038
15039 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
15040 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
15041 test "$ld_shlibs_CXX" = no && can_build_shared=no
15042
15043 with_gnu_ld_CXX=$with_gnu_ld
15044
15045
15046
15047
15048
15049
15050 #
15051 # Do we need to explicitly link libc?
15052 #
15053 case "x$archive_cmds_need_lc_CXX" in
15054 x|xyes)
15055   # Assume -lc should be added
15056   archive_cmds_need_lc_CXX=yes
15057
15058   if test "$enable_shared" = yes && test "$GCC" = yes; then
15059     case $archive_cmds_CXX in
15060     *'~'*)
15061       # FIXME: we may have to deal with multi-command sequences.
15062       ;;
15063     '$CC '*)
15064       # Test whether the compiler implicitly links with -lc since on some
15065       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15066       # to ld, don't add -lc before -lgcc.
15067       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15068 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15069       $RM conftest*
15070       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15071
15072       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15073   (eval $ac_compile) 2>&5
15074   ac_status=$?
15075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15076   (exit $ac_status); } 2>conftest.err; then
15077         soname=conftest
15078         lib=conftest
15079         libobjs=conftest.$ac_objext
15080         deplibs=
15081         wl=$lt_prog_compiler_wl_CXX
15082         pic_flag=$lt_prog_compiler_pic_CXX
15083         compiler_flags=-v
15084         linker_flags=-v
15085         verstring=
15086         output_objdir=.
15087         libname=conftest
15088         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15089         allow_undefined_flag_CXX=
15090         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
15091   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15092   ac_status=$?
15093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15094   (exit $ac_status); }
15095         then
15096           archive_cmds_need_lc_CXX=no
15097         else
15098           archive_cmds_need_lc_CXX=yes
15099         fi
15100         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15101       else
15102         cat conftest.err 1>&5
15103       fi
15104       $RM conftest*
15105       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
15106 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
15107       ;;
15108     esac
15109   fi
15110   ;;
15111 esac
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
15173
15174
15175
15176     { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15177 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15178
15179 library_names_spec=
15180 libname_spec='lib$name'
15181 soname_spec=
15182 shrext_cmds=".so"
15183 postinstall_cmds=
15184 postuninstall_cmds=
15185 finish_cmds=
15186 finish_eval=
15187 shlibpath_var=
15188 shlibpath_overrides_runpath=unknown
15189 version_type=none
15190 dynamic_linker="$host_os ld.so"
15191 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15192 need_lib_prefix=unknown
15193 hardcode_into_libs=no
15194
15195 # when you set need_version to no, make sure it does not cause -set_version
15196 # flags to be left without arguments
15197 need_version=unknown
15198
15199 case $host_os in
15200 aix3*)
15201   version_type=linux
15202   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15203   shlibpath_var=LIBPATH
15204
15205   # AIX 3 has no versioning support, so we append a major version to the name.
15206   soname_spec='${libname}${release}${shared_ext}$major'
15207   ;;
15208
15209 aix[4-9]*)
15210   version_type=linux
15211   need_lib_prefix=no
15212   need_version=no
15213   hardcode_into_libs=yes
15214   if test "$host_cpu" = ia64; then
15215     # AIX 5 supports IA64
15216     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15217     shlibpath_var=LD_LIBRARY_PATH
15218   else
15219     # With GCC up to 2.95.x, collect2 would create an import file
15220     # for dependence libraries.  The import file would start with
15221     # the line `#! .'.  This would cause the generated library to
15222     # depend on `.', always an invalid library.  This was fixed in
15223     # development snapshots of GCC prior to 3.0.
15224     case $host_os in
15225       aix4 | aix4.[01] | aix4.[01].*)
15226       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15227            echo ' yes '
15228            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15229         :
15230       else
15231         can_build_shared=no
15232       fi
15233       ;;
15234     esac
15235     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15236     # soname into executable. Probably we can add versioning support to
15237     # collect2, so additional links can be useful in future.
15238     if test "$aix_use_runtimelinking" = yes; then
15239       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15240       # instead of lib<name>.a to let people know that these are not
15241       # typical AIX shared libraries.
15242       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15243     else
15244       # We preserve .a as extension for shared libraries through AIX4.2
15245       # and later when we are not doing run time linking.
15246       library_names_spec='${libname}${release}.a $libname.a'
15247       soname_spec='${libname}${release}${shared_ext}$major'
15248     fi
15249     shlibpath_var=LIBPATH
15250   fi
15251   ;;
15252
15253 amigaos*)
15254   case $host_cpu in
15255   powerpc)
15256     # Since July 2007 AmigaOS4 officially supports .so libraries.
15257     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15258     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15259     ;;
15260   m68k)
15261     library_names_spec='$libname.ixlibrary $libname.a'
15262     # Create ${libname}_ixlibrary.a entries in /sys/libs.
15263     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'
15264     ;;
15265   esac
15266   ;;
15267
15268 beos*)
15269   library_names_spec='${libname}${shared_ext}'
15270   dynamic_linker="$host_os ld.so"
15271   shlibpath_var=LIBRARY_PATH
15272   ;;
15273
15274 bsdi[45]*)
15275   version_type=linux
15276   need_version=no
15277   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15278   soname_spec='${libname}${release}${shared_ext}$major'
15279   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15280   shlibpath_var=LD_LIBRARY_PATH
15281   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15282   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15283   # the default ld.so.conf also contains /usr/contrib/lib and
15284   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15285   # libtool to hard-code these into programs
15286   ;;
15287
15288 cygwin* | mingw* | pw32* | cegcc*)
15289   version_type=windows
15290   shrext_cmds=".dll"
15291   need_version=no
15292   need_lib_prefix=no
15293
15294   case $GCC,$host_os in
15295   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
15296     library_names_spec='$libname.dll.a'
15297     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15298     postinstall_cmds='base_file=`basename \${file}`~
15299       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15300       dldir=$destdir/`dirname \$dlpath`~
15301       test -d \$dldir || mkdir -p \$dldir~
15302       $install_prog $dir/$dlname \$dldir/$dlname~
15303       chmod a+x \$dldir/$dlname~
15304       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15305         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15306       fi'
15307     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15308       dlpath=$dir/\$dldll~
15309        $RM \$dlpath'
15310     shlibpath_overrides_runpath=yes
15311
15312     case $host_os in
15313     cygwin*)
15314       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15315       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15316       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15317       ;;
15318     mingw* | cegcc*)
15319       # MinGW DLLs use traditional 'lib' prefix
15320       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15321       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15322       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15323         # It is most probably a Windows format PATH printed by
15324         # mingw gcc, but we are running on Cygwin. Gcc prints its search
15325         # path with ; separators, and with drive letters. We can handle the
15326         # drive letters (cygwin fileutils understands them), so leave them,
15327         # especially as we might pass files found there to a mingw objdump,
15328         # which wouldn't understand a cygwinified path. Ahh.
15329         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15330       else
15331         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15332       fi
15333       ;;
15334     pw32*)
15335       # pw32 DLLs use 'pw' prefix rather than 'lib'
15336       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15337       ;;
15338     esac
15339     ;;
15340
15341   *)
15342     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15343     ;;
15344   esac
15345   dynamic_linker='Win32 ld.exe'
15346   # FIXME: first we should search . and the directory the executable is in
15347   shlibpath_var=PATH
15348   ;;
15349
15350 darwin* | rhapsody*)
15351   dynamic_linker="$host_os dyld"
15352   version_type=darwin
15353   need_lib_prefix=no
15354   need_version=no
15355   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15356   soname_spec='${libname}${release}${major}$shared_ext'
15357   shlibpath_overrides_runpath=yes
15358   shlibpath_var=DYLD_LIBRARY_PATH
15359   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15360
15361   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15362   ;;
15363
15364 dgux*)
15365   version_type=linux
15366   need_lib_prefix=no
15367   need_version=no
15368   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15369   soname_spec='${libname}${release}${shared_ext}$major'
15370   shlibpath_var=LD_LIBRARY_PATH
15371   ;;
15372
15373 freebsd1*)
15374   dynamic_linker=no
15375   ;;
15376
15377 freebsd* | dragonfly*)
15378   # DragonFly does not have aout.  When/if they implement a new
15379   # versioning mechanism, adjust this.
15380   if test -x /usr/bin/objformat; then
15381     objformat=`/usr/bin/objformat`
15382   else
15383     case $host_os in
15384     freebsd[123]*) objformat=aout ;;
15385     *) objformat=elf ;;
15386     esac
15387   fi
15388   version_type=freebsd-$objformat
15389   case $version_type in
15390     freebsd-elf*)
15391       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15392       need_version=no
15393       need_lib_prefix=no
15394       ;;
15395     freebsd-*)
15396       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15397       need_version=yes
15398       ;;
15399   esac
15400   shlibpath_var=LD_LIBRARY_PATH
15401   case $host_os in
15402   freebsd2*)
15403     shlibpath_overrides_runpath=yes
15404     ;;
15405   freebsd3.[01]* | freebsdelf3.[01]*)
15406     shlibpath_overrides_runpath=yes
15407     hardcode_into_libs=yes
15408     ;;
15409   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15410   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15411     shlibpath_overrides_runpath=no
15412     hardcode_into_libs=yes
15413     ;;
15414   *) # from 4.6 on, and DragonFly
15415     shlibpath_overrides_runpath=yes
15416     hardcode_into_libs=yes
15417     ;;
15418   esac
15419   ;;
15420
15421 gnu*)
15422   version_type=linux
15423   need_lib_prefix=no
15424   need_version=no
15425   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15426   soname_spec='${libname}${release}${shared_ext}$major'
15427   shlibpath_var=LD_LIBRARY_PATH
15428   hardcode_into_libs=yes
15429   ;;
15430
15431 hpux9* | hpux10* | hpux11*)
15432   # Give a soname corresponding to the major version so that dld.sl refuses to
15433   # link against other versions.
15434   version_type=sunos
15435   need_lib_prefix=no
15436   need_version=no
15437   case $host_cpu in
15438   ia64*)
15439     shrext_cmds='.so'
15440     hardcode_into_libs=yes
15441     dynamic_linker="$host_os dld.so"
15442     shlibpath_var=LD_LIBRARY_PATH
15443     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15444     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15445     soname_spec='${libname}${release}${shared_ext}$major'
15446     if test "X$HPUX_IA64_MODE" = X32; then
15447       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15448     else
15449       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15450     fi
15451     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15452     ;;
15453   hppa*64*)
15454     shrext_cmds='.sl'
15455     hardcode_into_libs=yes
15456     dynamic_linker="$host_os dld.sl"
15457     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15458     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15459     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15460     soname_spec='${libname}${release}${shared_ext}$major'
15461     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15462     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15463     ;;
15464   *)
15465     shrext_cmds='.sl'
15466     dynamic_linker="$host_os dld.sl"
15467     shlibpath_var=SHLIB_PATH
15468     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15469     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15470     soname_spec='${libname}${release}${shared_ext}$major'
15471     ;;
15472   esac
15473   # HP-UX runs *really* slowly unless shared libraries are mode 555.
15474   postinstall_cmds='chmod 555 $lib'
15475   ;;
15476
15477 interix[3-9]*)
15478   version_type=linux
15479   need_lib_prefix=no
15480   need_version=no
15481   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15482   soname_spec='${libname}${release}${shared_ext}$major'
15483   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15484   shlibpath_var=LD_LIBRARY_PATH
15485   shlibpath_overrides_runpath=no
15486   hardcode_into_libs=yes
15487   ;;
15488
15489 irix5* | irix6* | nonstopux*)
15490   case $host_os in
15491     nonstopux*) version_type=nonstopux ;;
15492     *)
15493         if test "$lt_cv_prog_gnu_ld" = yes; then
15494                 version_type=linux
15495         else
15496                 version_type=irix
15497         fi ;;
15498   esac
15499   need_lib_prefix=no
15500   need_version=no
15501   soname_spec='${libname}${release}${shared_ext}$major'
15502   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15503   case $host_os in
15504   irix5* | nonstopux*)
15505     libsuff= shlibsuff=
15506     ;;
15507   *)
15508     case $LD in # libtool.m4 will add one of these switches to LD
15509     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15510       libsuff= shlibsuff= libmagic=32-bit;;
15511     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15512       libsuff=32 shlibsuff=N32 libmagic=N32;;
15513     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15514       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15515     *) libsuff= shlibsuff= libmagic=never-match;;
15516     esac
15517     ;;
15518   esac
15519   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15520   shlibpath_overrides_runpath=no
15521   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15522   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15523   hardcode_into_libs=yes
15524   ;;
15525
15526 # No shared lib support for Linux oldld, aout, or coff.
15527 linux*oldld* | linux*aout* | linux*coff*)
15528   dynamic_linker=no
15529   ;;
15530
15531 # This must be Linux ELF.
15532 linux* | k*bsd*-gnu)
15533   version_type=linux
15534   need_lib_prefix=no
15535   need_version=no
15536   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15537   soname_spec='${libname}${release}${shared_ext}$major'
15538   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15539   shlibpath_var=LD_LIBRARY_PATH
15540   shlibpath_overrides_runpath=no
15541   # Some binutils ld are patched to set DT_RUNPATH
15542   save_LDFLAGS=$LDFLAGS
15543   save_libdir=$libdir
15544   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15545        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15546   cat >conftest.$ac_ext <<_ACEOF
15547 /* confdefs.h.  */
15548 _ACEOF
15549 cat confdefs.h >>conftest.$ac_ext
15550 cat >>conftest.$ac_ext <<_ACEOF
15551 /* end confdefs.h.  */
15552
15553 int
15554 main ()
15555 {
15556
15557   ;
15558   return 0;
15559 }
15560 _ACEOF
15561 rm -f conftest.$ac_objext conftest$ac_exeext
15562 if { (ac_try="$ac_link"
15563 case "(($ac_try" in
15564   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15565   *) ac_try_echo=$ac_try;;
15566 esac
15567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15568   (eval "$ac_link") 2>conftest.er1
15569   ac_status=$?
15570   grep -v '^ *+' conftest.er1 >conftest.err
15571   rm -f conftest.er1
15572   cat conftest.err >&5
15573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15574   (exit $ac_status); } && {
15575          test -z "$ac_cxx_werror_flag" ||
15576          test ! -s conftest.err
15577        } && test -s conftest$ac_exeext &&
15578        $as_test_x conftest$ac_exeext; then
15579   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
15580   shlibpath_overrides_runpath=yes
15581 fi
15582
15583 else
15584   echo "$as_me: failed program was:" >&5
15585 sed 's/^/| /' conftest.$ac_ext >&5
15586
15587
15588 fi
15589
15590 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15591       conftest$ac_exeext conftest.$ac_ext
15592   LDFLAGS=$save_LDFLAGS
15593   libdir=$save_libdir
15594
15595   # This implies no fast_install, which is unacceptable.
15596   # Some rework will be needed to allow for fast_install
15597   # before this can be enabled.
15598   hardcode_into_libs=yes
15599
15600   # Append ld.so.conf contents to the search path
15601   if test -f /etc/ld.so.conf; then
15602     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' ' '`
15603     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15604   fi
15605
15606   # We used to test for /lib/ld.so.1 and disable shared libraries on
15607   # powerpc, because MkLinux only supported shared libraries with the
15608   # GNU dynamic linker.  Since this was broken with cross compilers,
15609   # most powerpc-linux boxes support dynamic linking these days and
15610   # people can always --disable-shared, the test was removed, and we
15611   # assume the GNU/Linux dynamic linker is in use.
15612   dynamic_linker='GNU/Linux ld.so'
15613   ;;
15614
15615 netbsd*)
15616   version_type=sunos
15617   need_lib_prefix=no
15618   need_version=no
15619   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15620     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15621     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15622     dynamic_linker='NetBSD (a.out) ld.so'
15623   else
15624     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15625     soname_spec='${libname}${release}${shared_ext}$major'
15626     dynamic_linker='NetBSD ld.elf_so'
15627   fi
15628   shlibpath_var=LD_LIBRARY_PATH
15629   shlibpath_overrides_runpath=yes
15630   hardcode_into_libs=yes
15631   ;;
15632
15633 newsos6)
15634   version_type=linux
15635   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15636   shlibpath_var=LD_LIBRARY_PATH
15637   shlibpath_overrides_runpath=yes
15638   ;;
15639
15640 *nto* | *qnx*)
15641   version_type=qnx
15642   need_lib_prefix=no
15643   need_version=no
15644   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15645   soname_spec='${libname}${release}${shared_ext}$major'
15646   shlibpath_var=LD_LIBRARY_PATH
15647   shlibpath_overrides_runpath=no
15648   hardcode_into_libs=yes
15649   dynamic_linker='ldqnx.so'
15650   ;;
15651
15652 openbsd*)
15653   version_type=sunos
15654   sys_lib_dlsearch_path_spec="/usr/lib"
15655   need_lib_prefix=no
15656   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15657   case $host_os in
15658     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
15659     *)                          need_version=no  ;;
15660   esac
15661   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15662   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15663   shlibpath_var=LD_LIBRARY_PATH
15664   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15665     case $host_os in
15666       openbsd2.[89] | openbsd2.[89].*)
15667         shlibpath_overrides_runpath=no
15668         ;;
15669       *)
15670         shlibpath_overrides_runpath=yes
15671         ;;
15672       esac
15673   else
15674     shlibpath_overrides_runpath=yes
15675   fi
15676   ;;
15677
15678 os2*)
15679   libname_spec='$name'
15680   shrext_cmds=".dll"
15681   need_lib_prefix=no
15682   library_names_spec='$libname${shared_ext} $libname.a'
15683   dynamic_linker='OS/2 ld.exe'
15684   shlibpath_var=LIBPATH
15685   ;;
15686
15687 osf3* | osf4* | osf5*)
15688   version_type=osf
15689   need_lib_prefix=no
15690   need_version=no
15691   soname_spec='${libname}${release}${shared_ext}$major'
15692   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15693   shlibpath_var=LD_LIBRARY_PATH
15694   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15695   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15696   ;;
15697
15698 rdos*)
15699   dynamic_linker=no
15700   ;;
15701
15702 solaris*)
15703   version_type=linux
15704   need_lib_prefix=no
15705   need_version=no
15706   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15707   soname_spec='${libname}${release}${shared_ext}$major'
15708   shlibpath_var=LD_LIBRARY_PATH
15709   shlibpath_overrides_runpath=yes
15710   hardcode_into_libs=yes
15711   # ldd complains unless libraries are executable
15712   postinstall_cmds='chmod +x $lib'
15713   ;;
15714
15715 sunos4*)
15716   version_type=sunos
15717   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15718   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15719   shlibpath_var=LD_LIBRARY_PATH
15720   shlibpath_overrides_runpath=yes
15721   if test "$with_gnu_ld" = yes; then
15722     need_lib_prefix=no
15723   fi
15724   need_version=yes
15725   ;;
15726
15727 sysv4 | sysv4.3*)
15728   version_type=linux
15729   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15730   soname_spec='${libname}${release}${shared_ext}$major'
15731   shlibpath_var=LD_LIBRARY_PATH
15732   case $host_vendor in
15733     sni)
15734       shlibpath_overrides_runpath=no
15735       need_lib_prefix=no
15736       runpath_var=LD_RUN_PATH
15737       ;;
15738     siemens)
15739       need_lib_prefix=no
15740       ;;
15741     motorola)
15742       need_lib_prefix=no
15743       need_version=no
15744       shlibpath_overrides_runpath=no
15745       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15746       ;;
15747   esac
15748   ;;
15749
15750 sysv4*MP*)
15751   if test -d /usr/nec ;then
15752     version_type=linux
15753     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15754     soname_spec='$libname${shared_ext}.$major'
15755     shlibpath_var=LD_LIBRARY_PATH
15756   fi
15757   ;;
15758
15759 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15760   version_type=freebsd-elf
15761   need_lib_prefix=no
15762   need_version=no
15763   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15764   soname_spec='${libname}${release}${shared_ext}$major'
15765   shlibpath_var=LD_LIBRARY_PATH
15766   shlibpath_overrides_runpath=yes
15767   hardcode_into_libs=yes
15768   if test "$with_gnu_ld" = yes; then
15769     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15770   else
15771     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15772     case $host_os in
15773       sco3.2v5*)
15774         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15775         ;;
15776     esac
15777   fi
15778   sys_lib_dlsearch_path_spec='/usr/lib'
15779   ;;
15780
15781 tpf*)
15782   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
15783   version_type=linux
15784   need_lib_prefix=no
15785   need_version=no
15786   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15787   shlibpath_var=LD_LIBRARY_PATH
15788   shlibpath_overrides_runpath=no
15789   hardcode_into_libs=yes
15790   ;;
15791
15792 uts4*)
15793   version_type=linux
15794   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15795   soname_spec='${libname}${release}${shared_ext}$major'
15796   shlibpath_var=LD_LIBRARY_PATH
15797   ;;
15798
15799 *)
15800   dynamic_linker=no
15801   ;;
15802 esac
15803 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15804 echo "${ECHO_T}$dynamic_linker" >&6; }
15805 test "$dynamic_linker" = no && can_build_shared=no
15806
15807 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15808 if test "$GCC" = yes; then
15809   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15810 fi
15811
15812 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15813   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15814 fi
15815 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15816   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15817 fi
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
15851
15852
15853
15854     { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15855 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15856 hardcode_action_CXX=
15857 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15858    test -n "$runpath_var_CXX" ||
15859    test "X$hardcode_automatic_CXX" = "Xyes" ; then
15860
15861   # We can hardcode non-existent directories.
15862   if test "$hardcode_direct_CXX" != no &&
15863      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15864      # have to relink, otherwise we might link with an installed library
15865      # when we should be linking with a yet-to-be-installed one
15866      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15867      test "$hardcode_minus_L_CXX" != no; then
15868     # Linking always hardcodes the temporary library directory.
15869     hardcode_action_CXX=relink
15870   else
15871     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15872     hardcode_action_CXX=immediate
15873   fi
15874 else
15875   # We cannot hardcode anything, or else we can only hardcode existing
15876   # directories.
15877   hardcode_action_CXX=unsupported
15878 fi
15879 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
15880 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
15881
15882 if test "$hardcode_action_CXX" = relink ||
15883    test "$inherit_rpath_CXX" = yes; then
15884   # Fast installation is not supported
15885   enable_fast_install=no
15886 elif test "$shlibpath_overrides_runpath" = yes ||
15887      test "$enable_shared" = no; then
15888   # Fast installation is not necessary
15889   enable_fast_install=needless
15890 fi
15891
15892
15893
15894
15895
15896
15897
15898   fi # test -n "$compiler"
15899
15900   CC=$lt_save_CC
15901   LDCXX=$LD
15902   LD=$lt_save_LD
15903   GCC=$lt_save_GCC
15904   with_gnu_ld=$lt_save_with_gnu_ld
15905   lt_cv_path_LDCXX=$lt_cv_path_LD
15906   lt_cv_path_LD=$lt_save_path_LD
15907   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15908   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15909 fi # test "$_lt_caught_CXX_error" != yes
15910
15911 ac_ext=cpp
15912 ac_cpp='$CXXCPP $CPPFLAGS'
15913 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15914 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15915 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15916
15917
15918
15919
15920
15921
15922
15923
15924
15925
15926
15927
15928
15929         ac_config_commands="$ac_config_commands libtool"
15930
15931
15932
15933
15934 # Only expand once:
15935
15936
15937
15938
15939 if test x$use_libtool != xno; then
15940    DEFAULT_OBJECT_TYPE=".lo"
15941    DEFAULT_ARCHIVE_TYPE=".la"
15942    DEFAULT_SHARED_OBJECT_TYPE=".la"
15943    LIBTOOL="\$(LIBTOOL)"
15944    LIBTOOL_INSTALL_TARGET="libtool-install"
15945    LIBTOOL_UNINSTALL_TARGET="libtool-uninstall"
15946    LIBTOOL_CLEAN_TARGET="libtool-clean"
15947    QMAKE_LIBTOOL="${BUILD_DIR}/libtool"
15948    FD_PLUGIN_DIR="src/plugins/fd"
15949    have_plugins=yes
15950 else
15951    DEFAULT_OBJECT_TYPE=".o"
15952    DEFAULT_ARCHIVE_TYPE=".a"
15953    DEFAULT_SHARED_OBJECT_TYPE=".so"
15954    LIBTOOL="# \$(LIBTOOL)"
15955    LIBTOOL_INSTALL_TARGET=""
15956    LIBTOOL_UNINSTALL_TARGET=""
15957    LIBTOOL_CLEAN_TARGET=""
15958    QMAKE_LIBTOOL="# ${BUILD_DIR}/libtool"
15959    FD_PLUGIN_DIR=""
15960    have_plugins=no
15961 fi
15962
15963
15964
15965
15966
15967
15968
15969
15970
15971
15972
15973 # Check whether --enable-includes was given.
15974 if test "${enable_includes+set}" = set; then
15975   enableval=$enable_includes;
15976        if test x$enableval = xyes; then
15977           install_includes=yes
15978        fi
15979
15980
15981 fi
15982
15983
15984
15985 if test x$use_libtool != xno -a x$install_includes = xyes; then
15986    INCLUDE_INSTALL_TARGET="install-includes"
15987    INCLUDE_UNINSTALL_TARGET="uninstall-includes"
15988 else
15989    INCLUDE_INSTALL_TARGET=""
15990    INCLUDE_UNINSTALL_TARGET=""
15991 fi
15992
15993
15994
15995
15996 { echo "$as_me:$LINENO: checking host system type" >&5
15997 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
15998 if test "${ac_cv_host+set}" = set; then
15999   echo $ECHO_N "(cached) $ECHO_C" >&6
16000 else
16001   if test "x$host_alias" = x; then
16002   ac_cv_host=$ac_cv_build
16003 else
16004   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
16005     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
16006 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
16007    { (exit 1); exit 1; }; }
16008 fi
16009
16010 fi
16011 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
16012 echo "${ECHO_T}$ac_cv_host" >&6; }
16013 case $ac_cv_host in
16014 *-*-*) ;;
16015 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
16016 echo "$as_me: error: invalid value of canonical host" >&2;}
16017    { (exit 1); exit 1; }; };;
16018 esac
16019 host=$ac_cv_host
16020 ac_save_IFS=$IFS; IFS='-'
16021 set x $ac_cv_host
16022 shift
16023 host_cpu=$1
16024 host_vendor=$2
16025 shift; shift
16026 # Remember, the first character of IFS is used to create $*,
16027 # except with old shells:
16028 host_os=$*
16029 IFS=$ac_save_IFS
16030 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
16031
16032
16033 case $host_os in
16034   *cygwin* ) CYGWIN=yes;;
16035          * ) CYGWIN=no;;
16036 esac
16037
16038 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
16039 then
16040
16041
16042 if $TRUEPRG; then
16043   HAVE_SUN_OS_TRUE=
16044   HAVE_SUN_OS_FALSE='#'
16045 else
16046   HAVE_SUN_OS_TRUE='#'
16047   HAVE_SUN_OS_FALSE=
16048 fi
16049         cat >>confdefs.h <<\_ACEOF
16050 #define HAVE_SUN_OS 1
16051 _ACEOF
16052
16053 else
16054
16055
16056 if $FALSEPRG; then
16057   HAVE_SUN_OS_TRUE=
16058   HAVE_SUN_OS_FALSE='#'
16059 else
16060   HAVE_SUN_OS_TRUE='#'
16061   HAVE_SUN_OS_FALSE=
16062 fi
16063 fi
16064
16065 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
16066 then
16067
16068
16069 if $TRUEPRG; then
16070   HAVE_OSF1_OS_TRUE=
16071   HAVE_OSF1_OS_FALSE='#'
16072 else
16073   HAVE_OSF1_OS_TRUE='#'
16074   HAVE_OSF1_OS_FALSE=
16075 fi
16076         cat >>confdefs.h <<\_ACEOF
16077 #define HAVE_OSF1_OS 1
16078 _ACEOF
16079
16080 else
16081
16082
16083 if $FALSEPRG; then
16084   HAVE_OSF1_OS_TRUE=
16085   HAVE_OSF1_OS_FALSE='#'
16086 else
16087   HAVE_OSF1_OS_TRUE='#'
16088   HAVE_OSF1_OS_FALSE=
16089 fi
16090 fi
16091
16092 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
16093 then
16094
16095
16096 if $TRUEPRG; then
16097   HAVE_AIX_OS_TRUE=
16098   HAVE_AIX_OS_FALSE='#'
16099 else
16100   HAVE_AIX_OS_TRUE='#'
16101   HAVE_AIX_OS_FALSE=
16102 fi
16103         cat >>confdefs.h <<\_ACEOF
16104 #define HAVE_AIX_OS 1
16105 _ACEOF
16106
16107 else
16108
16109
16110 if $FALSEPRG; then
16111   HAVE_AIX_OS_TRUE=
16112   HAVE_AIX_OS_FALSE='#'
16113 else
16114   HAVE_AIX_OS_TRUE='#'
16115   HAVE_AIX_OS_FALSE=
16116 fi
16117 fi
16118
16119 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
16120 then
16121
16122
16123 if $TRUEPRG; then
16124   HAVE_HPUX_OS_TRUE=
16125   HAVE_HPUX_OS_FALSE='#'
16126 else
16127   HAVE_HPUX_OS_TRUE='#'
16128   HAVE_HPUX_OS_FALSE=
16129 fi
16130         cat >>confdefs.h <<\_ACEOF
16131 #define HAVE_HPUX_OS 1
16132 _ACEOF
16133
16134 else
16135
16136
16137 if $FALSEPRG; then
16138   HAVE_HPUX_OS_TRUE=
16139   HAVE_HPUX_OS_FALSE='#'
16140 else
16141   HAVE_HPUX_OS_TRUE='#'
16142   HAVE_HPUX_OS_FALSE=
16143 fi
16144 fi
16145
16146 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
16147 then
16148
16149
16150 if $TRUEPRG; then
16151   HAVE_LINUX_OS_TRUE=
16152   HAVE_LINUX_OS_FALSE='#'
16153 else
16154   HAVE_LINUX_OS_TRUE='#'
16155   HAVE_LINUX_OS_FALSE=
16156 fi
16157         cat >>confdefs.h <<\_ACEOF
16158 #define HAVE_LINUX_OS 1
16159 _ACEOF
16160
16161 else
16162
16163
16164 if $FALSEPRG; then
16165   HAVE_LINUX_OS_TRUE=
16166   HAVE_LINUX_OS_FALSE='#'
16167 else
16168   HAVE_LINUX_OS_TRUE='#'
16169   HAVE_LINUX_OS_FALSE=
16170 fi
16171 fi
16172
16173 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
16174 then
16175
16176
16177 if $TRUEPRG; then
16178   HAVE_FREEBSD_OS_TRUE=
16179   HAVE_FREEBSD_OS_FALSE='#'
16180 else
16181   HAVE_FREEBSD_OS_TRUE='#'
16182   HAVE_FREEBSD_OS_FALSE=
16183 fi
16184         cat >>confdefs.h <<\_ACEOF
16185 #define HAVE_FREEBSD_OS 1
16186 _ACEOF
16187
16188 else
16189
16190
16191 if $FALSEPRG; then
16192   HAVE_FREEBSD_OS_TRUE=
16193   HAVE_FREEBSD_OS_FALSE='#'
16194 else
16195   HAVE_FREEBSD_OS_TRUE='#'
16196   HAVE_FREEBSD_OS_FALSE=
16197 fi
16198 fi
16199
16200 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
16201 then
16202
16203
16204 if $TRUEPRG; then
16205   HAVE_NETBSD_OS_TRUE=
16206   HAVE_NETBSD_OS_FALSE='#'
16207 else
16208   HAVE_NETBSD_OS_TRUE='#'
16209   HAVE_NETBSD_OS_FALSE=
16210 fi
16211         cat >>confdefs.h <<\_ACEOF
16212 #define HAVE_NETBSD_OS 1
16213 _ACEOF
16214
16215 else
16216
16217
16218 if $FALSEPRG; then
16219   HAVE_NETBSD_OS_TRUE=
16220   HAVE_NETBSD_OS_FALSE='#'
16221 else
16222   HAVE_NETBSD_OS_TRUE='#'
16223   HAVE_NETBSD_OS_FALSE=
16224 fi
16225 fi
16226
16227 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
16228 then
16229
16230
16231 if $TRUEPRG; then
16232   HAVE_OPENBSD_OS_TRUE=
16233   HAVE_OPENBSD_OS_FALSE='#'
16234 else
16235   HAVE_OPENBSD_OS_TRUE='#'
16236   HAVE_OPENBSD_OS_FALSE=
16237 fi
16238         cat >>confdefs.h <<\_ACEOF
16239 #define HAVE_OPENBSD_OS 1
16240 _ACEOF
16241
16242 else
16243
16244
16245 if $FALSEPRG; then
16246   HAVE_OPENBSD_OS_TRUE=
16247   HAVE_OPENBSD_OS_FALSE='#'
16248 else
16249   HAVE_OPENBSD_OS_TRUE='#'
16250   HAVE_OPENBSD_OS_FALSE=
16251 fi
16252 fi
16253
16254 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
16255 then
16256
16257
16258 if $TRUEPRG; then
16259   HAVE_BSDI_OS_TRUE=
16260   HAVE_BSDI_OS_FALSE='#'
16261 else
16262   HAVE_BSDI_OS_TRUE='#'
16263   HAVE_BSDI_OS_FALSE=
16264 fi
16265         cat >>confdefs.h <<\_ACEOF
16266 #define HAVE_BSDI_OS 1
16267 _ACEOF
16268
16269 else
16270
16271
16272 if $FALSEPRG; then
16273   HAVE_BSDI_OS_TRUE=
16274   HAVE_BSDI_OS_FALSE='#'
16275 else
16276   HAVE_BSDI_OS_TRUE='#'
16277   HAVE_BSDI_OS_FALSE=
16278 fi
16279 fi
16280
16281 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
16282 then
16283
16284
16285 if $TRUEPRG; then
16286   HAVE_SGI_OS_TRUE=
16287   HAVE_SGI_OS_FALSE='#'
16288 else
16289   HAVE_SGI_OS_TRUE='#'
16290   HAVE_SGI_OS_FALSE=
16291 fi
16292         cat >>confdefs.h <<\_ACEOF
16293 #define HAVE_SGI_OS 1
16294 _ACEOF
16295
16296 else
16297
16298
16299 if $FALSEPRG; then
16300   HAVE_SGI_OS_TRUE=
16301   HAVE_SGI_OS_FALSE='#'
16302 else
16303   HAVE_SGI_OS_TRUE='#'
16304   HAVE_SGI_OS_FALSE=
16305 fi
16306 fi
16307
16308 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX -o x`uname -s` = xIRIX64
16309 then
16310
16311
16312 if $TRUEPRG; then
16313   HAVE_IRIX_OS_TRUE=
16314   HAVE_IRIX_OS_FALSE='#'
16315 else
16316   HAVE_IRIX_OS_TRUE='#'
16317   HAVE_IRIX_OS_FALSE=
16318 fi
16319         cat >>confdefs.h <<\_ACEOF
16320 #define HAVE_IRIX_OS 1
16321 _ACEOF
16322
16323 else
16324
16325
16326 if $FALSEPRG; then
16327   HAVE_IRIX_OS_TRUE=
16328   HAVE_IRIX_OS_FALSE='#'
16329 else
16330   HAVE_IRIX_OS_TRUE='#'
16331   HAVE_IRIX_OS_FALSE=
16332 fi
16333 fi
16334
16335 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
16336 then
16337
16338
16339 if $TRUEPRG; then
16340   HAVE_DARWIN_OS_TRUE=
16341   HAVE_DARWIN_OS_FALSE='#'
16342 else
16343   HAVE_DARWIN_OS_TRUE='#'
16344   HAVE_DARWIN_OS_FALSE=
16345 fi
16346     cat >>confdefs.h <<\_ACEOF
16347 #define HAVE_DARWIN_OS 1
16348 _ACEOF
16349
16350 else
16351
16352
16353 if $FALSEPRG; then
16354   HAVE_DARWIN_OS_TRUE=
16355   HAVE_DARWIN_OS_FALSE='#'
16356 else
16357   HAVE_DARWIN_OS_TRUE='#'
16358   HAVE_DARWIN_OS_FALSE=
16359 fi
16360 fi
16361
16362
16363 { echo "$as_me:$LINENO: checking for Operating System Distribution" >&5
16364 echo $ECHO_N "checking for Operating System Distribution... $ECHO_C" >&6; }
16365 if test "x$DISTNAME" != "x"
16366 then
16367         echo "distname set to $DISTNAME"
16368 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
16369 then
16370         DISTNAME=alpha
16371 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
16372 then
16373         DISTNAME=aix
16374 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
16375 then
16376         DISTNAME=hpux
16377 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
16378 then
16379         DISTNAME=solaris
16380 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
16381 then
16382         DISTNAME=freebsd
16383 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
16384 then
16385         DISTNAME=netbsd
16386 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
16387 then
16388         DISTNAME=openbsd
16389 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
16390 then
16391         DISTNAME=irix
16392 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
16393 then
16394         DISTNAME=bsdi
16395 elif test -f /etc/SuSE-release
16396 then
16397         DISTNAME=suse
16398 elif test -d /etc/SuSEconfig
16399 then
16400         DISTNAME=suse5
16401 elif test -f /etc/mandrake-release
16402 then
16403         DISTNAME=mandrake
16404 elif test -f /etc/whitebox-release
16405 then
16406        DISTNAME=redhat
16407 elif test -f /etc/redhat-release
16408 then
16409         DISTNAME=redhat
16410 elif test -f /etc/gentoo-release
16411 then
16412         DISTNAME=gentoo
16413 elif test -f /etc/debian_version
16414 then
16415         DISTNAME=debian
16416 elif test -f /etc/slackware-version
16417 then
16418         DISTNAME=slackware
16419 elif test x$host_vendor = xapple
16420 then
16421     DISTNAME=osx
16422 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
16423 then
16424     DISTNAME=darwin
16425 elif test -f /etc/engarde-version
16426 then
16427         DISTNAME=engarde
16428 elif test "$CYGWIN" = yes
16429 then
16430         DISTNAME=cygwin
16431         cat >>confdefs.h <<\_ACEOF
16432 #define HAVE_CYGWIN 1
16433 _ACEOF
16434
16435 else
16436         DISTNAME=unknown
16437 fi
16438 { echo "$as_me:$LINENO: result: done" >&5
16439 echo "${ECHO_T}done" >&6; }
16440
16441
16442 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
16443 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
16444 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
16445 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
16446   echo $ECHO_N "(cached) $ECHO_C" >&6
16447 else
16448   cat >conftest.make <<\_ACEOF
16449 SHELL = /bin/sh
16450 all:
16451         @echo '@@@%%%=$(MAKE)=@@@%%%'
16452 _ACEOF
16453 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
16454 case `${MAKE-make} -f conftest.make 2>/dev/null` in
16455   *@@@%%%=?*=@@@%%%*)
16456     eval ac_cv_prog_make_${ac_make}_set=yes;;
16457   *)
16458     eval ac_cv_prog_make_${ac_make}_set=no;;
16459 esac
16460 rm -f conftest.make
16461 fi
16462 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
16463   { echo "$as_me:$LINENO: result: yes" >&5
16464 echo "${ECHO_T}yes" >&6; }
16465   SET_MAKE=
16466 else
16467   { echo "$as_me:$LINENO: result: no" >&5
16468 echo "${ECHO_T}no" >&6; }
16469   SET_MAKE="MAKE=${MAKE-make}"
16470 fi
16471
16472
16473
16474         MKINSTALLDIRS=
16475   if test -n "$ac_aux_dir"; then
16476     case "$ac_aux_dir" in
16477       /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
16478       *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
16479     esac
16480   fi
16481   if test -z "$MKINSTALLDIRS"; then
16482     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
16483   fi
16484
16485
16486
16487   { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
16488 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
16489     # Check whether --enable-nls was given.
16490 if test "${enable_nls+set}" = set; then
16491   enableval=$enable_nls; USE_NLS=$enableval
16492 else
16493   USE_NLS=yes
16494 fi
16495
16496   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
16497 echo "${ECHO_T}$USE_NLS" >&6; }
16498
16499
16500
16501
16502
16503
16504 # Prepare PATH_SEPARATOR.
16505 # The user is always right.
16506 if test "${PATH_SEPARATOR+set}" != set; then
16507   echo "#! /bin/sh" >conf$$.sh
16508   echo  "exit 0"   >>conf$$.sh
16509   chmod +x conf$$.sh
16510   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16511     PATH_SEPARATOR=';'
16512   else
16513     PATH_SEPARATOR=:
16514   fi
16515   rm -f conf$$.sh
16516 fi
16517
16518 # Find out how to test for executable files. Don't use a zero-byte file,
16519 # as systems may use methods other than mode bits to determine executability.
16520 cat >conf$$.file <<_ASEOF
16521 #! /bin/sh
16522 exit 0
16523 _ASEOF
16524 chmod +x conf$$.file
16525 if test -x conf$$.file >/dev/null 2>&1; then
16526   ac_executable_p="test -x"
16527 else
16528   ac_executable_p="test -f"
16529 fi
16530 rm -f conf$$.file
16531
16532 # Extract the first word of "msgfmt", so it can be a program name with args.
16533 set dummy msgfmt; ac_word=$2
16534 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16535 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16536 if test "${ac_cv_path_MSGFMT+set}" = set; then
16537   echo $ECHO_N "(cached) $ECHO_C" >&6
16538 else
16539   case "$MSGFMT" in
16540   [\\/]* | ?:[\\/]*)
16541     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
16542     ;;
16543   *)
16544     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16545     for ac_dir in $PATH; do
16546       IFS="$ac_save_IFS"
16547       test -z "$ac_dir" && ac_dir=.
16548       for ac_exec_ext in '' $ac_executable_extensions; do
16549         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16550           echo "$as_me: trying $ac_dir/$ac_word..." >&5
16551           if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
16552      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16553             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
16554             break 2
16555           fi
16556         fi
16557       done
16558     done
16559     IFS="$ac_save_IFS"
16560   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
16561     ;;
16562 esac
16563 fi
16564 MSGFMT="$ac_cv_path_MSGFMT"
16565 if test "$MSGFMT" != ":"; then
16566   { echo "$as_me:$LINENO: result: $MSGFMT" >&5
16567 echo "${ECHO_T}$MSGFMT" >&6; }
16568 else
16569   { echo "$as_me:$LINENO: result: no" >&5
16570 echo "${ECHO_T}no" >&6; }
16571 fi
16572
16573   # Extract the first word of "gmsgfmt", so it can be a program name with args.
16574 set dummy gmsgfmt; ac_word=$2
16575 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16576 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16577 if test "${ac_cv_path_GMSGFMT+set}" = set; then
16578   echo $ECHO_N "(cached) $ECHO_C" >&6
16579 else
16580   case $GMSGFMT in
16581   [\\/]* | ?:[\\/]*)
16582   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
16583   ;;
16584   *)
16585   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16586 for as_dir in $PATH
16587 do
16588   IFS=$as_save_IFS
16589   test -z "$as_dir" && as_dir=.
16590   for ac_exec_ext in '' $ac_executable_extensions; do
16591   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16592     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
16593     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16594     break 2
16595   fi
16596 done
16597 done
16598 IFS=$as_save_IFS
16599
16600   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
16601   ;;
16602 esac
16603 fi
16604 GMSGFMT=$ac_cv_path_GMSGFMT
16605 if test -n "$GMSGFMT"; then
16606   { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
16607 echo "${ECHO_T}$GMSGFMT" >&6; }
16608 else
16609   { echo "$as_me:$LINENO: result: no" >&5
16610 echo "${ECHO_T}no" >&6; }
16611 fi
16612
16613
16614
16615
16616 # Prepare PATH_SEPARATOR.
16617 # The user is always right.
16618 if test "${PATH_SEPARATOR+set}" != set; then
16619   echo "#! /bin/sh" >conf$$.sh
16620   echo  "exit 0"   >>conf$$.sh
16621   chmod +x conf$$.sh
16622   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16623     PATH_SEPARATOR=';'
16624   else
16625     PATH_SEPARATOR=:
16626   fi
16627   rm -f conf$$.sh
16628 fi
16629
16630 # Find out how to test for executable files. Don't use a zero-byte file,
16631 # as systems may use methods other than mode bits to determine executability.
16632 cat >conf$$.file <<_ASEOF
16633 #! /bin/sh
16634 exit 0
16635 _ASEOF
16636 chmod +x conf$$.file
16637 if test -x conf$$.file >/dev/null 2>&1; then
16638   ac_executable_p="test -x"
16639 else
16640   ac_executable_p="test -f"
16641 fi
16642 rm -f conf$$.file
16643
16644 # Extract the first word of "xgettext", so it can be a program name with args.
16645 set dummy xgettext; ac_word=$2
16646 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16647 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16648 if test "${ac_cv_path_XGETTEXT+set}" = set; then
16649   echo $ECHO_N "(cached) $ECHO_C" >&6
16650 else
16651   case "$XGETTEXT" in
16652   [\\/]* | ?:[\\/]*)
16653     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
16654     ;;
16655   *)
16656     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16657     for ac_dir in $PATH; do
16658       IFS="$ac_save_IFS"
16659       test -z "$ac_dir" && ac_dir=.
16660       for ac_exec_ext in '' $ac_executable_extensions; do
16661         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16662           echo "$as_me: trying $ac_dir/$ac_word..." >&5
16663           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
16664      (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
16665             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
16666             break 2
16667           fi
16668         fi
16669       done
16670     done
16671     IFS="$ac_save_IFS"
16672   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
16673     ;;
16674 esac
16675 fi
16676 XGETTEXT="$ac_cv_path_XGETTEXT"
16677 if test "$XGETTEXT" != ":"; then
16678   { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
16679 echo "${ECHO_T}$XGETTEXT" >&6; }
16680 else
16681   { echo "$as_me:$LINENO: result: no" >&5
16682 echo "${ECHO_T}no" >&6; }
16683 fi
16684
16685     rm -f messages.po
16686
16687
16688 # Prepare PATH_SEPARATOR.
16689 # The user is always right.
16690 if test "${PATH_SEPARATOR+set}" != set; then
16691   echo "#! /bin/sh" >conf$$.sh
16692   echo  "exit 0"   >>conf$$.sh
16693   chmod +x conf$$.sh
16694   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16695     PATH_SEPARATOR=';'
16696   else
16697     PATH_SEPARATOR=:
16698   fi
16699   rm -f conf$$.sh
16700 fi
16701
16702 # Find out how to test for executable files. Don't use a zero-byte file,
16703 # as systems may use methods other than mode bits to determine executability.
16704 cat >conf$$.file <<_ASEOF
16705 #! /bin/sh
16706 exit 0
16707 _ASEOF
16708 chmod +x conf$$.file
16709 if test -x conf$$.file >/dev/null 2>&1; then
16710   ac_executable_p="test -x"
16711 else
16712   ac_executable_p="test -f"
16713 fi
16714 rm -f conf$$.file
16715
16716 # Extract the first word of "msgmerge", so it can be a program name with args.
16717 set dummy msgmerge; ac_word=$2
16718 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16719 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16720 if test "${ac_cv_path_MSGMERGE+set}" = set; then
16721   echo $ECHO_N "(cached) $ECHO_C" >&6
16722 else
16723   case "$MSGMERGE" in
16724   [\\/]* | ?:[\\/]*)
16725     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
16726     ;;
16727   *)
16728     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16729     for ac_dir in $PATH; do
16730       IFS="$ac_save_IFS"
16731       test -z "$ac_dir" && ac_dir=.
16732       for ac_exec_ext in '' $ac_executable_extensions; do
16733         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16734           echo "$as_me: trying $ac_dir/$ac_word..." >&5
16735           if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
16736             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
16737             break 2
16738           fi
16739         fi
16740       done
16741     done
16742     IFS="$ac_save_IFS"
16743   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
16744     ;;
16745 esac
16746 fi
16747 MSGMERGE="$ac_cv_path_MSGMERGE"
16748 if test "$MSGMERGE" != ":"; then
16749   { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
16750 echo "${ECHO_T}$MSGMERGE" >&6; }
16751 else
16752   { echo "$as_me:$LINENO: result: no" >&5
16753 echo "${ECHO_T}no" >&6; }
16754 fi
16755
16756
16757       if test "$GMSGFMT" != ":"; then
16758             if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
16759        (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16760       : ;
16761     else
16762       GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
16763       { echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
16764 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
16765       GMSGFMT=":"
16766     fi
16767   fi
16768
16769       if test "$XGETTEXT" != ":"; then
16770             if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
16771        (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
16772       : ;
16773     else
16774       { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
16775 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; }
16776       XGETTEXT=":"
16777     fi
16778         rm -f messages.po
16779   fi
16780
16781   ac_config_commands="$ac_config_commands default-1"
16782
16783
16784
16785       if test "X$prefix" = "XNONE"; then
16786     acl_final_prefix="$ac_default_prefix"
16787   else
16788     acl_final_prefix="$prefix"
16789   fi
16790   if test "X$exec_prefix" = "XNONE"; then
16791     acl_final_exec_prefix='${prefix}'
16792   else
16793     acl_final_exec_prefix="$exec_prefix"
16794   fi
16795   acl_save_prefix="$prefix"
16796   prefix="$acl_final_prefix"
16797   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
16798   prefix="$acl_save_prefix"
16799
16800
16801 # Check whether --with-gnu-ld was given.
16802 if test "${with_gnu_ld+set}" = set; then
16803   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
16804 else
16805   with_gnu_ld=no
16806 fi
16807
16808 # Prepare PATH_SEPARATOR.
16809 # The user is always right.
16810 if test "${PATH_SEPARATOR+set}" != set; then
16811   echo "#! /bin/sh" >conf$$.sh
16812   echo  "exit 0"   >>conf$$.sh
16813   chmod +x conf$$.sh
16814   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16815     PATH_SEPARATOR=';'
16816   else
16817     PATH_SEPARATOR=:
16818   fi
16819   rm -f conf$$.sh
16820 fi
16821 ac_prog=ld
16822 if test "$GCC" = yes; then
16823   # Check if gcc -print-prog-name=ld gives a path.
16824   { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
16825 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
16826   case $host in
16827   *-*-mingw*)
16828     # gcc leaves a trailing carriage return which upsets mingw
16829     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16830   *)
16831     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16832   esac
16833   case $ac_prog in
16834     # Accept absolute paths.
16835     [\\/]* | [A-Za-z]:[\\/]*)
16836       re_direlt='/[^/][^/]*/\.\./'
16837       # Canonicalize the path of ld
16838       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
16839       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
16840         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
16841       done
16842       test -z "$LD" && LD="$ac_prog"
16843       ;;
16844   "")
16845     # If it fails, then pretend we aren't using GCC.
16846     ac_prog=ld
16847     ;;
16848   *)
16849     # If it is relative, then search for the first ld in PATH.
16850     with_gnu_ld=unknown
16851     ;;
16852   esac
16853 elif test "$with_gnu_ld" = yes; then
16854   { echo "$as_me:$LINENO: checking for GNU ld" >&5
16855 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
16856 else
16857   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
16858 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
16859 fi
16860 if test "${acl_cv_path_LD+set}" = set; then
16861   echo $ECHO_N "(cached) $ECHO_C" >&6
16862 else
16863   if test -z "$LD"; then
16864   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
16865   for ac_dir in $PATH; do
16866     test -z "$ac_dir" && ac_dir=.
16867     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16868       acl_cv_path_LD="$ac_dir/$ac_prog"
16869       # Check to see if the program is GNU ld.  I'd rather use --version,
16870       # but apparently some GNU ld's only accept -v.
16871       # Break only if it was the GNU/non-GNU ld that we prefer.
16872       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
16873       *GNU* | *'with BFD'*)
16874         test "$with_gnu_ld" != no && break ;;
16875       *)
16876         test "$with_gnu_ld" != yes && break ;;
16877       esac
16878     fi
16879   done
16880   IFS="$ac_save_ifs"
16881 else
16882   acl_cv_path_LD="$LD" # Let the user override the test with a path.
16883 fi
16884 fi
16885
16886 LD="$acl_cv_path_LD"
16887 if test -n "$LD"; then
16888   { echo "$as_me:$LINENO: result: $LD" >&5
16889 echo "${ECHO_T}$LD" >&6; }
16890 else
16891   { echo "$as_me:$LINENO: result: no" >&5
16892 echo "${ECHO_T}no" >&6; }
16893 fi
16894 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
16895 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
16896    { (exit 1); exit 1; }; }
16897 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
16898 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
16899 if test "${acl_cv_prog_gnu_ld+set}" = set; then
16900   echo $ECHO_N "(cached) $ECHO_C" >&6
16901 else
16902   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
16903 case `$LD -v 2>&1 </dev/null` in
16904 *GNU* | *'with BFD'*)
16905   acl_cv_prog_gnu_ld=yes ;;
16906 *)
16907   acl_cv_prog_gnu_ld=no ;;
16908 esac
16909 fi
16910 { echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
16911 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
16912 with_gnu_ld=$acl_cv_prog_gnu_ld
16913
16914
16915
16916
16917                                                 { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
16918 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
16919 if test "${acl_cv_rpath+set}" = set; then
16920   echo $ECHO_N "(cached) $ECHO_C" >&6
16921 else
16922
16923     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
16924     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
16925     . ./conftest.sh
16926     rm -f ./conftest.sh
16927     acl_cv_rpath=done
16928
16929 fi
16930 { echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
16931 echo "${ECHO_T}$acl_cv_rpath" >&6; }
16932   wl="$acl_cv_wl"
16933   libext="$acl_cv_libext"
16934   shlibext="$acl_cv_shlibext"
16935   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
16936   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
16937   hardcode_direct="$acl_cv_hardcode_direct"
16938   hardcode_minus_L="$acl_cv_hardcode_minus_L"
16939     # Check whether --enable-rpath was given.
16940 if test "${enable_rpath+set}" = set; then
16941   enableval=$enable_rpath; :
16942 else
16943   enable_rpath=yes
16944 fi
16945
16946
16947
16948
16949
16950
16951
16952
16953     use_additional=yes
16954
16955   acl_save_prefix="$prefix"
16956   prefix="$acl_final_prefix"
16957   acl_save_exec_prefix="$exec_prefix"
16958   exec_prefix="$acl_final_exec_prefix"
16959
16960     eval additional_includedir=\"$includedir\"
16961     eval additional_libdir=\"$libdir\"
16962
16963   exec_prefix="$acl_save_exec_prefix"
16964   prefix="$acl_save_prefix"
16965
16966
16967 # Check whether --with-libiconv-prefix was given.
16968 if test "${with_libiconv_prefix+set}" = set; then
16969   withval=$with_libiconv_prefix;
16970     if test "X$withval" = "Xno"; then
16971       use_additional=no
16972     else
16973       if test "X$withval" = "X"; then
16974
16975   acl_save_prefix="$prefix"
16976   prefix="$acl_final_prefix"
16977   acl_save_exec_prefix="$exec_prefix"
16978   exec_prefix="$acl_final_exec_prefix"
16979
16980           eval additional_includedir=\"$includedir\"
16981           eval additional_libdir=\"$libdir\"
16982
16983   exec_prefix="$acl_save_exec_prefix"
16984   prefix="$acl_save_prefix"
16985
16986       else
16987         additional_includedir="$withval/include"
16988         additional_libdir="$withval/lib"
16989       fi
16990     fi
16991
16992 fi
16993
16994       LIBICONV=
16995   LTLIBICONV=
16996   INCICONV=
16997   rpathdirs=
16998   ltrpathdirs=
16999   names_already_handled=
17000   names_next_round='iconv '
17001   while test -n "$names_next_round"; do
17002     names_this_round="$names_next_round"
17003     names_next_round=
17004     for name in $names_this_round; do
17005       already_handled=
17006       for n in $names_already_handled; do
17007         if test "$n" = "$name"; then
17008           already_handled=yes
17009           break
17010         fi
17011       done
17012       if test -z "$already_handled"; then
17013         names_already_handled="$names_already_handled $name"
17014                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
17015         eval value=\"\$HAVE_LIB$uppername\"
17016         if test -n "$value"; then
17017           if test "$value" = yes; then
17018             eval value=\"\$LIB$uppername\"
17019             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
17020             eval value=\"\$LTLIB$uppername\"
17021             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
17022           else
17023                                     :
17024           fi
17025         else
17026                               found_dir=
17027           found_la=
17028           found_so=
17029           found_a=
17030           if test $use_additional = yes; then
17031             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
17032               found_dir="$additional_libdir"
17033               found_so="$additional_libdir/lib$name.$shlibext"
17034               if test -f "$additional_libdir/lib$name.la"; then
17035                 found_la="$additional_libdir/lib$name.la"
17036               fi
17037             else
17038               if test -f "$additional_libdir/lib$name.$libext"; then
17039                 found_dir="$additional_libdir"
17040                 found_a="$additional_libdir/lib$name.$libext"
17041                 if test -f "$additional_libdir/lib$name.la"; then
17042                   found_la="$additional_libdir/lib$name.la"
17043                 fi
17044               fi
17045             fi
17046           fi
17047           if test "X$found_dir" = "X"; then
17048             for x in $LDFLAGS $LTLIBICONV; do
17049
17050   acl_save_prefix="$prefix"
17051   prefix="$acl_final_prefix"
17052   acl_save_exec_prefix="$exec_prefix"
17053   exec_prefix="$acl_final_exec_prefix"
17054   eval x=\"$x\"
17055   exec_prefix="$acl_save_exec_prefix"
17056   prefix="$acl_save_prefix"
17057
17058               case "$x" in
17059                 -L*)
17060                   dir=`echo "X$x" | sed -e 's/^X-L//'`
17061                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
17062                     found_dir="$dir"
17063                     found_so="$dir/lib$name.$shlibext"
17064                     if test -f "$dir/lib$name.la"; then
17065                       found_la="$dir/lib$name.la"
17066                     fi
17067                   else
17068                     if test -f "$dir/lib$name.$libext"; then
17069                       found_dir="$dir"
17070                       found_a="$dir/lib$name.$libext"
17071                       if test -f "$dir/lib$name.la"; then
17072                         found_la="$dir/lib$name.la"
17073                       fi
17074                     fi
17075                   fi
17076                   ;;
17077               esac
17078               if test "X$found_dir" != "X"; then
17079                 break
17080               fi
17081             done
17082           fi
17083           if test "X$found_dir" != "X"; then
17084                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
17085             if test "X$found_so" != "X"; then
17086                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
17087                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17088               else
17089                                                                                 haveit=
17090                 for x in $ltrpathdirs; do
17091                   if test "X$x" = "X$found_dir"; then
17092                     haveit=yes
17093                     break
17094                   fi
17095                 done
17096                 if test -z "$haveit"; then
17097                   ltrpathdirs="$ltrpathdirs $found_dir"
17098                 fi
17099                                 if test "$hardcode_direct" = yes; then
17100                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17101                 else
17102                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
17103                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17104                                                             haveit=
17105                     for x in $rpathdirs; do
17106                       if test "X$x" = "X$found_dir"; then
17107                         haveit=yes
17108                         break
17109                       fi
17110                     done
17111                     if test -z "$haveit"; then
17112                       rpathdirs="$rpathdirs $found_dir"
17113                     fi
17114                   else
17115                                                                                 haveit=
17116                     for x in $LDFLAGS $LIBICONV; do
17117
17118   acl_save_prefix="$prefix"
17119   prefix="$acl_final_prefix"
17120   acl_save_exec_prefix="$exec_prefix"
17121   exec_prefix="$acl_final_exec_prefix"
17122   eval x=\"$x\"
17123   exec_prefix="$acl_save_exec_prefix"
17124   prefix="$acl_save_prefix"
17125
17126                       if test "X$x" = "X-L$found_dir"; then
17127                         haveit=yes
17128                         break
17129                       fi
17130                     done
17131                     if test -z "$haveit"; then
17132                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
17133                     fi
17134                     if test "$hardcode_minus_L" != no; then
17135                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17136                     else
17137                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
17138                     fi
17139                   fi
17140                 fi
17141               fi
17142             else
17143               if test "X$found_a" != "X"; then
17144                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
17145               else
17146                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
17147               fi
17148             fi
17149                         additional_includedir=
17150             case "$found_dir" in
17151               */lib | */lib/)
17152                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17153                 additional_includedir="$basedir/include"
17154                 ;;
17155             esac
17156             if test "X$additional_includedir" != "X"; then
17157                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
17158                 haveit=
17159                 if test "X$additional_includedir" = "X/usr/local/include"; then
17160                   if test -n "$GCC"; then
17161                     case $host_os in
17162                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17163                     esac
17164                   fi
17165                 fi
17166                 if test -z "$haveit"; then
17167                   for x in $CPPFLAGS $INCICONV; do
17168
17169   acl_save_prefix="$prefix"
17170   prefix="$acl_final_prefix"
17171   acl_save_exec_prefix="$exec_prefix"
17172   exec_prefix="$acl_final_exec_prefix"
17173   eval x=\"$x\"
17174   exec_prefix="$acl_save_exec_prefix"
17175   prefix="$acl_save_prefix"
17176
17177                     if test "X$x" = "X-I$additional_includedir"; then
17178                       haveit=yes
17179                       break
17180                     fi
17181                   done
17182                   if test -z "$haveit"; then
17183                     if test -d "$additional_includedir"; then
17184                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
17185                     fi
17186                   fi
17187                 fi
17188               fi
17189             fi
17190                         if test -n "$found_la"; then
17191                                                         save_libdir="$libdir"
17192               case "$found_la" in
17193                 */* | *\\*) . "$found_la" ;;
17194                 *) . "./$found_la" ;;
17195               esac
17196               libdir="$save_libdir"
17197                             for dep in $dependency_libs; do
17198                 case "$dep" in
17199                   -L*)
17200                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17201                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
17202                       haveit=
17203                       if test "X$additional_libdir" = "X/usr/local/lib"; then
17204                         if test -n "$GCC"; then
17205                           case $host_os in
17206                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17207                           esac
17208                         fi
17209                       fi
17210                       if test -z "$haveit"; then
17211                         haveit=
17212                         for x in $LDFLAGS $LIBICONV; do
17213
17214   acl_save_prefix="$prefix"
17215   prefix="$acl_final_prefix"
17216   acl_save_exec_prefix="$exec_prefix"
17217   exec_prefix="$acl_final_exec_prefix"
17218   eval x=\"$x\"
17219   exec_prefix="$acl_save_exec_prefix"
17220   prefix="$acl_save_prefix"
17221
17222                           if test "X$x" = "X-L$additional_libdir"; then
17223                             haveit=yes
17224                             break
17225                           fi
17226                         done
17227                         if test -z "$haveit"; then
17228                           if test -d "$additional_libdir"; then
17229                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
17230                           fi
17231                         fi
17232                         haveit=
17233                         for x in $LDFLAGS $LTLIBICONV; do
17234
17235   acl_save_prefix="$prefix"
17236   prefix="$acl_final_prefix"
17237   acl_save_exec_prefix="$exec_prefix"
17238   exec_prefix="$acl_final_exec_prefix"
17239   eval x=\"$x\"
17240   exec_prefix="$acl_save_exec_prefix"
17241   prefix="$acl_save_prefix"
17242
17243                           if test "X$x" = "X-L$additional_libdir"; then
17244                             haveit=yes
17245                             break
17246                           fi
17247                         done
17248                         if test -z "$haveit"; then
17249                           if test -d "$additional_libdir"; then
17250                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
17251                           fi
17252                         fi
17253                       fi
17254                     fi
17255                     ;;
17256                   -R*)
17257                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
17258                     if test "$enable_rpath" != no; then
17259                                                                   haveit=
17260                       for x in $rpathdirs; do
17261                         if test "X$x" = "X$dir"; then
17262                           haveit=yes
17263                           break
17264                         fi
17265                       done
17266                       if test -z "$haveit"; then
17267                         rpathdirs="$rpathdirs $dir"
17268                       fi
17269                                                                   haveit=
17270                       for x in $ltrpathdirs; do
17271                         if test "X$x" = "X$dir"; then
17272                           haveit=yes
17273                           break
17274                         fi
17275                       done
17276                       if test -z "$haveit"; then
17277                         ltrpathdirs="$ltrpathdirs $dir"
17278                       fi
17279                     fi
17280                     ;;
17281                   -l*)
17282                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
17283                     ;;
17284                   *.la)
17285                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
17286                     ;;
17287                   *)
17288                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
17289                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
17290                     ;;
17291                 esac
17292               done
17293             fi
17294           else
17295                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
17296             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
17297           fi
17298         fi
17299       fi
17300     done
17301   done
17302   if test "X$rpathdirs" != "X"; then
17303     if test -n "$hardcode_libdir_separator"; then
17304                         alldirs=
17305       for found_dir in $rpathdirs; do
17306         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
17307       done
17308             acl_save_libdir="$libdir"
17309       libdir="$alldirs"
17310       eval flag=\"$hardcode_libdir_flag_spec\"
17311       libdir="$acl_save_libdir"
17312       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
17313     else
17314             for found_dir in $rpathdirs; do
17315         acl_save_libdir="$libdir"
17316         libdir="$found_dir"
17317         eval flag=\"$hardcode_libdir_flag_spec\"
17318         libdir="$acl_save_libdir"
17319         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
17320       done
17321     fi
17322   fi
17323   if test "X$ltrpathdirs" != "X"; then
17324             for found_dir in $ltrpathdirs; do
17325       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
17326     done
17327   fi
17328
17329
17330
17331
17332
17333
17334
17335
17336
17337
17338
17339
17340
17341
17342
17343
17344
17345
17346     { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
17347 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
17348 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
17349   echo $ECHO_N "(cached) $ECHO_C" >&6
17350 else
17351   gt_save_CPPFLAGS="$CPPFLAGS"
17352      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
17353      gt_save_LIBS="$LIBS"
17354      LIBS="$LIBS -framework CoreFoundation"
17355      cat >conftest.$ac_ext <<_ACEOF
17356 /* confdefs.h.  */
17357 _ACEOF
17358 cat confdefs.h >>conftest.$ac_ext
17359 cat >>conftest.$ac_ext <<_ACEOF
17360 /* end confdefs.h.  */
17361 #include <CFPreferences.h>
17362 int
17363 main ()
17364 {
17365 CFPreferencesCopyAppValue(NULL, NULL)
17366   ;
17367   return 0;
17368 }
17369 _ACEOF
17370 rm -f conftest.$ac_objext conftest$ac_exeext
17371 if { (ac_try="$ac_link"
17372 case "(($ac_try" in
17373   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17374   *) ac_try_echo=$ac_try;;
17375 esac
17376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17377   (eval "$ac_link") 2>conftest.er1
17378   ac_status=$?
17379   grep -v '^ *+' conftest.er1 >conftest.err
17380   rm -f conftest.er1
17381   cat conftest.err >&5
17382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17383   (exit $ac_status); } && {
17384          test -z "$ac_cxx_werror_flag" ||
17385          test ! -s conftest.err
17386        } && test -s conftest$ac_exeext &&
17387        $as_test_x conftest$ac_exeext; then
17388   gt_cv_func_CFPreferencesCopyAppValue=yes
17389 else
17390   echo "$as_me: failed program was:" >&5
17391 sed 's/^/| /' conftest.$ac_ext >&5
17392
17393         gt_cv_func_CFPreferencesCopyAppValue=no
17394 fi
17395
17396 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17397       conftest$ac_exeext conftest.$ac_ext
17398      CPPFLAGS="$gt_save_CPPFLAGS"
17399      LIBS="$gt_save_LIBS"
17400 fi
17401 { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
17402 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
17403   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
17404
17405 cat >>confdefs.h <<\_ACEOF
17406 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
17407 _ACEOF
17408
17409   fi
17410     { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
17411 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
17412 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
17413   echo $ECHO_N "(cached) $ECHO_C" >&6
17414 else
17415   gt_save_CPPFLAGS="$CPPFLAGS"
17416      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
17417      gt_save_LIBS="$LIBS"
17418      LIBS="$LIBS -framework CoreFoundation"
17419      cat >conftest.$ac_ext <<_ACEOF
17420 /* confdefs.h.  */
17421 _ACEOF
17422 cat confdefs.h >>conftest.$ac_ext
17423 cat >>conftest.$ac_ext <<_ACEOF
17424 /* end confdefs.h.  */
17425 #include <CFLocale.h>
17426 int
17427 main ()
17428 {
17429 CFLocaleCopyCurrent();
17430   ;
17431   return 0;
17432 }
17433 _ACEOF
17434 rm -f conftest.$ac_objext conftest$ac_exeext
17435 if { (ac_try="$ac_link"
17436 case "(($ac_try" in
17437   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17438   *) ac_try_echo=$ac_try;;
17439 esac
17440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17441   (eval "$ac_link") 2>conftest.er1
17442   ac_status=$?
17443   grep -v '^ *+' conftest.er1 >conftest.err
17444   rm -f conftest.er1
17445   cat conftest.err >&5
17446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17447   (exit $ac_status); } && {
17448          test -z "$ac_cxx_werror_flag" ||
17449          test ! -s conftest.err
17450        } && test -s conftest$ac_exeext &&
17451        $as_test_x conftest$ac_exeext; then
17452   gt_cv_func_CFLocaleCopyCurrent=yes
17453 else
17454   echo "$as_me: failed program was:" >&5
17455 sed 's/^/| /' conftest.$ac_ext >&5
17456
17457         gt_cv_func_CFLocaleCopyCurrent=no
17458 fi
17459
17460 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17461       conftest$ac_exeext conftest.$ac_ext
17462      CPPFLAGS="$gt_save_CPPFLAGS"
17463      LIBS="$gt_save_LIBS"
17464 fi
17465 { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
17466 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
17467   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
17468
17469 cat >>confdefs.h <<\_ACEOF
17470 #define HAVE_CFLOCALECOPYCURRENT 1
17471 _ACEOF
17472
17473   fi
17474   INTL_MACOSX_LIBS=
17475   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
17476     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
17477   fi
17478
17479
17480
17481
17482   { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
17483 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
17484     # Check whether --enable-nls was given.
17485 if test "${enable_nls+set}" = set; then
17486   enableval=$enable_nls; USE_NLS=$enableval
17487 else
17488   USE_NLS=yes
17489 fi
17490
17491   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
17492 echo "${ECHO_T}$USE_NLS" >&6; }
17493
17494
17495
17496
17497   LIBINTL=
17498   LTLIBINTL=
17499   POSUB=
17500
17501     if test "$USE_NLS" = "yes"; then
17502     gt_use_preinstalled_gnugettext=no
17503
17504
17505
17506
17507
17508
17509         { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
17510 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
17511 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
17512   echo $ECHO_N "(cached) $ECHO_C" >&6
17513 else
17514   cat >conftest.$ac_ext <<_ACEOF
17515 /* confdefs.h.  */
17516 _ACEOF
17517 cat confdefs.h >>conftest.$ac_ext
17518 cat >>conftest.$ac_ext <<_ACEOF
17519 /* end confdefs.h.  */
17520 #include <libintl.h>
17521 extern int _nl_msg_cat_cntr;
17522 extern int *_nl_domain_bindings;
17523 int
17524 main ()
17525 {
17526 bindtextdomain ("", "");
17527 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
17528   ;
17529   return 0;
17530 }
17531 _ACEOF
17532 rm -f conftest.$ac_objext conftest$ac_exeext
17533 if { (ac_try="$ac_link"
17534 case "(($ac_try" in
17535   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17536   *) ac_try_echo=$ac_try;;
17537 esac
17538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17539   (eval "$ac_link") 2>conftest.er1
17540   ac_status=$?
17541   grep -v '^ *+' conftest.er1 >conftest.err
17542   rm -f conftest.er1
17543   cat conftest.err >&5
17544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17545   (exit $ac_status); } && {
17546          test -z "$ac_cxx_werror_flag" ||
17547          test ! -s conftest.err
17548        } && test -s conftest$ac_exeext &&
17549        $as_test_x conftest$ac_exeext; then
17550   gt_cv_func_gnugettext1_libc=yes
17551 else
17552   echo "$as_me: failed program was:" >&5
17553 sed 's/^/| /' conftest.$ac_ext >&5
17554
17555         gt_cv_func_gnugettext1_libc=no
17556 fi
17557
17558 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17559       conftest$ac_exeext conftest.$ac_ext
17560 fi
17561 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
17562 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
17563
17564         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
17565
17566
17567
17568
17569
17570           am_save_CPPFLAGS="$CPPFLAGS"
17571
17572   for element in $INCICONV; do
17573     haveit=
17574     for x in $CPPFLAGS; do
17575
17576   acl_save_prefix="$prefix"
17577   prefix="$acl_final_prefix"
17578   acl_save_exec_prefix="$exec_prefix"
17579   exec_prefix="$acl_final_exec_prefix"
17580   eval x=\"$x\"
17581   exec_prefix="$acl_save_exec_prefix"
17582   prefix="$acl_save_prefix"
17583
17584       if test "X$x" = "X$element"; then
17585         haveit=yes
17586         break
17587       fi
17588     done
17589     if test -z "$haveit"; then
17590       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
17591     fi
17592   done
17593
17594
17595   { echo "$as_me:$LINENO: checking for iconv" >&5
17596 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
17597 if test "${am_cv_func_iconv+set}" = set; then
17598   echo $ECHO_N "(cached) $ECHO_C" >&6
17599 else
17600
17601     am_cv_func_iconv="no, consider installing GNU libiconv"
17602     am_cv_lib_iconv=no
17603     cat >conftest.$ac_ext <<_ACEOF
17604 /* confdefs.h.  */
17605 _ACEOF
17606 cat confdefs.h >>conftest.$ac_ext
17607 cat >>conftest.$ac_ext <<_ACEOF
17608 /* end confdefs.h.  */
17609 #include <stdlib.h>
17610 #include <iconv.h>
17611 int
17612 main ()
17613 {
17614 iconv_t cd = iconv_open("","");
17615        iconv(cd,NULL,NULL,NULL,NULL);
17616        iconv_close(cd);
17617   ;
17618   return 0;
17619 }
17620 _ACEOF
17621 rm -f conftest.$ac_objext conftest$ac_exeext
17622 if { (ac_try="$ac_link"
17623 case "(($ac_try" in
17624   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17625   *) ac_try_echo=$ac_try;;
17626 esac
17627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17628   (eval "$ac_link") 2>conftest.er1
17629   ac_status=$?
17630   grep -v '^ *+' conftest.er1 >conftest.err
17631   rm -f conftest.er1
17632   cat conftest.err >&5
17633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17634   (exit $ac_status); } && {
17635          test -z "$ac_cxx_werror_flag" ||
17636          test ! -s conftest.err
17637        } && test -s conftest$ac_exeext &&
17638        $as_test_x conftest$ac_exeext; then
17639   am_cv_func_iconv=yes
17640 else
17641   echo "$as_me: failed program was:" >&5
17642 sed 's/^/| /' conftest.$ac_ext >&5
17643
17644
17645 fi
17646
17647 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17648       conftest$ac_exeext conftest.$ac_ext
17649     if test "$am_cv_func_iconv" != yes; then
17650       am_save_LIBS="$LIBS"
17651       LIBS="$LIBS $LIBICONV"
17652       cat >conftest.$ac_ext <<_ACEOF
17653 /* confdefs.h.  */
17654 _ACEOF
17655 cat confdefs.h >>conftest.$ac_ext
17656 cat >>conftest.$ac_ext <<_ACEOF
17657 /* end confdefs.h.  */
17658 #include <stdlib.h>
17659 #include <iconv.h>
17660 int
17661 main ()
17662 {
17663 iconv_t cd = iconv_open("","");
17664          iconv(cd,NULL,NULL,NULL,NULL);
17665          iconv_close(cd);
17666   ;
17667   return 0;
17668 }
17669 _ACEOF
17670 rm -f conftest.$ac_objext conftest$ac_exeext
17671 if { (ac_try="$ac_link"
17672 case "(($ac_try" in
17673   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17674   *) ac_try_echo=$ac_try;;
17675 esac
17676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17677   (eval "$ac_link") 2>conftest.er1
17678   ac_status=$?
17679   grep -v '^ *+' conftest.er1 >conftest.err
17680   rm -f conftest.er1
17681   cat conftest.err >&5
17682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17683   (exit $ac_status); } && {
17684          test -z "$ac_cxx_werror_flag" ||
17685          test ! -s conftest.err
17686        } && test -s conftest$ac_exeext &&
17687        $as_test_x conftest$ac_exeext; then
17688   am_cv_lib_iconv=yes
17689         am_cv_func_iconv=yes
17690 else
17691   echo "$as_me: failed program was:" >&5
17692 sed 's/^/| /' conftest.$ac_ext >&5
17693
17694
17695 fi
17696
17697 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17698       conftest$ac_exeext conftest.$ac_ext
17699       LIBS="$am_save_LIBS"
17700     fi
17701
17702 fi
17703 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
17704 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
17705   if test "$am_cv_func_iconv" = yes; then
17706
17707 cat >>confdefs.h <<\_ACEOF
17708 #define HAVE_ICONV 1
17709 _ACEOF
17710
17711   fi
17712   if test "$am_cv_lib_iconv" = yes; then
17713     { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
17714 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
17715     { echo "$as_me:$LINENO: result: $LIBICONV" >&5
17716 echo "${ECHO_T}$LIBICONV" >&6; }
17717   else
17718             CPPFLAGS="$am_save_CPPFLAGS"
17719     LIBICONV=
17720     LTLIBICONV=
17721   fi
17722
17723
17724
17725
17726
17727
17728     use_additional=yes
17729
17730   acl_save_prefix="$prefix"
17731   prefix="$acl_final_prefix"
17732   acl_save_exec_prefix="$exec_prefix"
17733   exec_prefix="$acl_final_exec_prefix"
17734
17735     eval additional_includedir=\"$includedir\"
17736     eval additional_libdir=\"$libdir\"
17737
17738   exec_prefix="$acl_save_exec_prefix"
17739   prefix="$acl_save_prefix"
17740
17741
17742 # Check whether --with-libintl-prefix was given.
17743 if test "${with_libintl_prefix+set}" = set; then
17744   withval=$with_libintl_prefix;
17745     if test "X$withval" = "Xno"; then
17746       use_additional=no
17747     else
17748       if test "X$withval" = "X"; then
17749
17750   acl_save_prefix="$prefix"
17751   prefix="$acl_final_prefix"
17752   acl_save_exec_prefix="$exec_prefix"
17753   exec_prefix="$acl_final_exec_prefix"
17754
17755           eval additional_includedir=\"$includedir\"
17756           eval additional_libdir=\"$libdir\"
17757
17758   exec_prefix="$acl_save_exec_prefix"
17759   prefix="$acl_save_prefix"
17760
17761       else
17762         additional_includedir="$withval/include"
17763         additional_libdir="$withval/lib"
17764       fi
17765     fi
17766
17767 fi
17768
17769       LIBINTL=
17770   LTLIBINTL=
17771   INCINTL=
17772   rpathdirs=
17773   ltrpathdirs=
17774   names_already_handled=
17775   names_next_round='intl '
17776   while test -n "$names_next_round"; do
17777     names_this_round="$names_next_round"
17778     names_next_round=
17779     for name in $names_this_round; do
17780       already_handled=
17781       for n in $names_already_handled; do
17782         if test "$n" = "$name"; then
17783           already_handled=yes
17784           break
17785         fi
17786       done
17787       if test -z "$already_handled"; then
17788         names_already_handled="$names_already_handled $name"
17789                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
17790         eval value=\"\$HAVE_LIB$uppername\"
17791         if test -n "$value"; then
17792           if test "$value" = yes; then
17793             eval value=\"\$LIB$uppername\"
17794             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
17795             eval value=\"\$LTLIB$uppername\"
17796             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
17797           else
17798                                     :
17799           fi
17800         else
17801                               found_dir=
17802           found_la=
17803           found_so=
17804           found_a=
17805           if test $use_additional = yes; then
17806             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
17807               found_dir="$additional_libdir"
17808               found_so="$additional_libdir/lib$name.$shlibext"
17809               if test -f "$additional_libdir/lib$name.la"; then
17810                 found_la="$additional_libdir/lib$name.la"
17811               fi
17812             else
17813               if test -f "$additional_libdir/lib$name.$libext"; then
17814                 found_dir="$additional_libdir"
17815                 found_a="$additional_libdir/lib$name.$libext"
17816                 if test -f "$additional_libdir/lib$name.la"; then
17817                   found_la="$additional_libdir/lib$name.la"
17818                 fi
17819               fi
17820             fi
17821           fi
17822           if test "X$found_dir" = "X"; then
17823             for x in $LDFLAGS $LTLIBINTL; do
17824
17825   acl_save_prefix="$prefix"
17826   prefix="$acl_final_prefix"
17827   acl_save_exec_prefix="$exec_prefix"
17828   exec_prefix="$acl_final_exec_prefix"
17829   eval x=\"$x\"
17830   exec_prefix="$acl_save_exec_prefix"
17831   prefix="$acl_save_prefix"
17832
17833               case "$x" in
17834                 -L*)
17835                   dir=`echo "X$x" | sed -e 's/^X-L//'`
17836                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
17837                     found_dir="$dir"
17838                     found_so="$dir/lib$name.$shlibext"
17839                     if test -f "$dir/lib$name.la"; then
17840                       found_la="$dir/lib$name.la"
17841                     fi
17842                   else
17843                     if test -f "$dir/lib$name.$libext"; then
17844                       found_dir="$dir"
17845                       found_a="$dir/lib$name.$libext"
17846                       if test -f "$dir/lib$name.la"; then
17847                         found_la="$dir/lib$name.la"
17848                       fi
17849                     fi
17850                   fi
17851                   ;;
17852               esac
17853               if test "X$found_dir" != "X"; then
17854                 break
17855               fi
17856             done
17857           fi
17858           if test "X$found_dir" != "X"; then
17859                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
17860             if test "X$found_so" != "X"; then
17861                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
17862                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17863               else
17864                                                                                 haveit=
17865                 for x in $ltrpathdirs; do
17866                   if test "X$x" = "X$found_dir"; then
17867                     haveit=yes
17868                     break
17869                   fi
17870                 done
17871                 if test -z "$haveit"; then
17872                   ltrpathdirs="$ltrpathdirs $found_dir"
17873                 fi
17874                                 if test "$hardcode_direct" = yes; then
17875                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17876                 else
17877                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
17878                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17879                                                             haveit=
17880                     for x in $rpathdirs; do
17881                       if test "X$x" = "X$found_dir"; then
17882                         haveit=yes
17883                         break
17884                       fi
17885                     done
17886                     if test -z "$haveit"; then
17887                       rpathdirs="$rpathdirs $found_dir"
17888                     fi
17889                   else
17890                                                                                 haveit=
17891                     for x in $LDFLAGS $LIBINTL; do
17892
17893   acl_save_prefix="$prefix"
17894   prefix="$acl_final_prefix"
17895   acl_save_exec_prefix="$exec_prefix"
17896   exec_prefix="$acl_final_exec_prefix"
17897   eval x=\"$x\"
17898   exec_prefix="$acl_save_exec_prefix"
17899   prefix="$acl_save_prefix"
17900
17901                       if test "X$x" = "X-L$found_dir"; then
17902                         haveit=yes
17903                         break
17904                       fi
17905                     done
17906                     if test -z "$haveit"; then
17907                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
17908                     fi
17909                     if test "$hardcode_minus_L" != no; then
17910                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17911                     else
17912                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
17913                     fi
17914                   fi
17915                 fi
17916               fi
17917             else
17918               if test "X$found_a" != "X"; then
17919                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
17920               else
17921                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
17922               fi
17923             fi
17924                         additional_includedir=
17925             case "$found_dir" in
17926               */lib | */lib/)
17927                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17928                 additional_includedir="$basedir/include"
17929                 ;;
17930             esac
17931             if test "X$additional_includedir" != "X"; then
17932                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
17933                 haveit=
17934                 if test "X$additional_includedir" = "X/usr/local/include"; then
17935                   if test -n "$GCC"; then
17936                     case $host_os in
17937                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17938                     esac
17939                   fi
17940                 fi
17941                 if test -z "$haveit"; then
17942                   for x in $CPPFLAGS $INCINTL; do
17943
17944   acl_save_prefix="$prefix"
17945   prefix="$acl_final_prefix"
17946   acl_save_exec_prefix="$exec_prefix"
17947   exec_prefix="$acl_final_exec_prefix"
17948   eval x=\"$x\"
17949   exec_prefix="$acl_save_exec_prefix"
17950   prefix="$acl_save_prefix"
17951
17952                     if test "X$x" = "X-I$additional_includedir"; then
17953                       haveit=yes
17954                       break
17955                     fi
17956                   done
17957                   if test -z "$haveit"; then
17958                     if test -d "$additional_includedir"; then
17959                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
17960                     fi
17961                   fi
17962                 fi
17963               fi
17964             fi
17965                         if test -n "$found_la"; then
17966                                                         save_libdir="$libdir"
17967               case "$found_la" in
17968                 */* | *\\*) . "$found_la" ;;
17969                 *) . "./$found_la" ;;
17970               esac
17971               libdir="$save_libdir"
17972                             for dep in $dependency_libs; do
17973                 case "$dep" in
17974                   -L*)
17975                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17976                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
17977                       haveit=
17978                       if test "X$additional_libdir" = "X/usr/local/lib"; then
17979                         if test -n "$GCC"; then
17980                           case $host_os in
17981                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17982                           esac
17983                         fi
17984                       fi
17985                       if test -z "$haveit"; then
17986                         haveit=
17987                         for x in $LDFLAGS $LIBINTL; do
17988
17989   acl_save_prefix="$prefix"
17990   prefix="$acl_final_prefix"
17991   acl_save_exec_prefix="$exec_prefix"
17992   exec_prefix="$acl_final_exec_prefix"
17993   eval x=\"$x\"
17994   exec_prefix="$acl_save_exec_prefix"
17995   prefix="$acl_save_prefix"
17996
17997                           if test "X$x" = "X-L$additional_libdir"; then
17998                             haveit=yes
17999                             break
18000                           fi
18001                         done
18002                         if test -z "$haveit"; then
18003                           if test -d "$additional_libdir"; then
18004                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
18005                           fi
18006                         fi
18007                         haveit=
18008                         for x in $LDFLAGS $LTLIBINTL; do
18009
18010   acl_save_prefix="$prefix"
18011   prefix="$acl_final_prefix"
18012   acl_save_exec_prefix="$exec_prefix"
18013   exec_prefix="$acl_final_exec_prefix"
18014   eval x=\"$x\"
18015   exec_prefix="$acl_save_exec_prefix"
18016   prefix="$acl_save_prefix"
18017
18018                           if test "X$x" = "X-L$additional_libdir"; then
18019                             haveit=yes
18020                             break
18021                           fi
18022                         done
18023                         if test -z "$haveit"; then
18024                           if test -d "$additional_libdir"; then
18025                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
18026                           fi
18027                         fi
18028                       fi
18029                     fi
18030                     ;;
18031                   -R*)
18032                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
18033                     if test "$enable_rpath" != no; then
18034                                                                   haveit=
18035                       for x in $rpathdirs; do
18036                         if test "X$x" = "X$dir"; then
18037                           haveit=yes
18038                           break
18039                         fi
18040                       done
18041                       if test -z "$haveit"; then
18042                         rpathdirs="$rpathdirs $dir"
18043                       fi
18044                                                                   haveit=
18045                       for x in $ltrpathdirs; do
18046                         if test "X$x" = "X$dir"; then
18047                           haveit=yes
18048                           break
18049                         fi
18050                       done
18051                       if test -z "$haveit"; then
18052                         ltrpathdirs="$ltrpathdirs $dir"
18053                       fi
18054                     fi
18055                     ;;
18056                   -l*)
18057                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
18058                     ;;
18059                   *.la)
18060                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
18061                     ;;
18062                   *)
18063                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
18064                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
18065                     ;;
18066                 esac
18067               done
18068             fi
18069           else
18070                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
18071             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
18072           fi
18073         fi
18074       fi
18075     done
18076   done
18077   if test "X$rpathdirs" != "X"; then
18078     if test -n "$hardcode_libdir_separator"; then
18079                         alldirs=
18080       for found_dir in $rpathdirs; do
18081         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
18082       done
18083             acl_save_libdir="$libdir"
18084       libdir="$alldirs"
18085       eval flag=\"$hardcode_libdir_flag_spec\"
18086       libdir="$acl_save_libdir"
18087       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
18088     else
18089             for found_dir in $rpathdirs; do
18090         acl_save_libdir="$libdir"
18091         libdir="$found_dir"
18092         eval flag=\"$hardcode_libdir_flag_spec\"
18093         libdir="$acl_save_libdir"
18094         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
18095       done
18096     fi
18097   fi
18098   if test "X$ltrpathdirs" != "X"; then
18099             for found_dir in $ltrpathdirs; do
18100       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
18101     done
18102   fi
18103
18104           { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
18105 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
18106 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
18107   echo $ECHO_N "(cached) $ECHO_C" >&6
18108 else
18109   gt_save_CPPFLAGS="$CPPFLAGS"
18110             CPPFLAGS="$CPPFLAGS $INCINTL"
18111             gt_save_LIBS="$LIBS"
18112             LIBS="$LIBS $LIBINTL"
18113                         cat >conftest.$ac_ext <<_ACEOF
18114 /* confdefs.h.  */
18115 _ACEOF
18116 cat confdefs.h >>conftest.$ac_ext
18117 cat >>conftest.$ac_ext <<_ACEOF
18118 /* end confdefs.h.  */
18119 #include <libintl.h>
18120 extern int _nl_msg_cat_cntr;
18121 extern
18122 #ifdef __cplusplus
18123 "C"
18124 #endif
18125 const char *_nl_expand_alias (const char *);
18126 int
18127 main ()
18128 {
18129 bindtextdomain ("", "");
18130 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
18131   ;
18132   return 0;
18133 }
18134 _ACEOF
18135 rm -f conftest.$ac_objext conftest$ac_exeext
18136 if { (ac_try="$ac_link"
18137 case "(($ac_try" in
18138   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18139   *) ac_try_echo=$ac_try;;
18140 esac
18141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18142   (eval "$ac_link") 2>conftest.er1
18143   ac_status=$?
18144   grep -v '^ *+' conftest.er1 >conftest.err
18145   rm -f conftest.er1
18146   cat conftest.err >&5
18147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18148   (exit $ac_status); } && {
18149          test -z "$ac_cxx_werror_flag" ||
18150          test ! -s conftest.err
18151        } && test -s conftest$ac_exeext &&
18152        $as_test_x conftest$ac_exeext; then
18153   gt_cv_func_gnugettext1_libintl=yes
18154 else
18155   echo "$as_me: failed program was:" >&5
18156 sed 's/^/| /' conftest.$ac_ext >&5
18157
18158         gt_cv_func_gnugettext1_libintl=no
18159 fi
18160
18161 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18162       conftest$ac_exeext conftest.$ac_ext
18163                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
18164               LIBS="$LIBS $LIBICONV"
18165               cat >conftest.$ac_ext <<_ACEOF
18166 /* confdefs.h.  */
18167 _ACEOF
18168 cat confdefs.h >>conftest.$ac_ext
18169 cat >>conftest.$ac_ext <<_ACEOF
18170 /* end confdefs.h.  */
18171 #include <libintl.h>
18172 extern int _nl_msg_cat_cntr;
18173 extern
18174 #ifdef __cplusplus
18175 "C"
18176 #endif
18177 const char *_nl_expand_alias (const char *);
18178 int
18179 main ()
18180 {
18181 bindtextdomain ("", "");
18182 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
18183   ;
18184   return 0;
18185 }
18186 _ACEOF
18187 rm -f conftest.$ac_objext conftest$ac_exeext
18188 if { (ac_try="$ac_link"
18189 case "(($ac_try" in
18190   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18191   *) ac_try_echo=$ac_try;;
18192 esac
18193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18194   (eval "$ac_link") 2>conftest.er1
18195   ac_status=$?
18196   grep -v '^ *+' conftest.er1 >conftest.err
18197   rm -f conftest.er1
18198   cat conftest.err >&5
18199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18200   (exit $ac_status); } && {
18201          test -z "$ac_cxx_werror_flag" ||
18202          test ! -s conftest.err
18203        } && test -s conftest$ac_exeext &&
18204        $as_test_x conftest$ac_exeext; then
18205   LIBINTL="$LIBINTL $LIBICONV"
18206                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
18207                 gt_cv_func_gnugettext1_libintl=yes
18208
18209 else
18210   echo "$as_me: failed program was:" >&5
18211 sed 's/^/| /' conftest.$ac_ext >&5
18212
18213
18214 fi
18215
18216 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18217       conftest$ac_exeext conftest.$ac_ext
18218             fi
18219             CPPFLAGS="$gt_save_CPPFLAGS"
18220             LIBS="$gt_save_LIBS"
18221 fi
18222 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
18223 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
18224         fi
18225
18226                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
18227            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
18228                 && test "$PACKAGE" != gettext-runtime \
18229                 && test "$PACKAGE" != gettext-tools; }; then
18230           gt_use_preinstalled_gnugettext=yes
18231         else
18232                     LIBINTL=
18233           LTLIBINTL=
18234           INCINTL=
18235         fi
18236
18237
18238
18239     if test -n "$INTL_MACOSX_LIBS"; then
18240       if test "$gt_use_preinstalled_gnugettext" = "yes" \
18241          || test "$nls_cv_use_gnu_gettext" = "yes"; then
18242                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
18243         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
18244       fi
18245     fi
18246
18247     if test "$gt_use_preinstalled_gnugettext" = "yes" \
18248        || test "$nls_cv_use_gnu_gettext" = "yes"; then
18249
18250 cat >>confdefs.h <<\_ACEOF
18251 #define ENABLE_NLS 1
18252 _ACEOF
18253
18254     else
18255       USE_NLS=no
18256     fi
18257   fi
18258
18259   { echo "$as_me:$LINENO: checking whether to use NLS" >&5
18260 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
18261   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
18262 echo "${ECHO_T}$USE_NLS" >&6; }
18263   if test "$USE_NLS" = "yes"; then
18264     { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
18265 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
18266     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
18267       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
18268         gt_source="external libintl"
18269       else
18270         gt_source="libc"
18271       fi
18272     else
18273       gt_source="included intl directory"
18274     fi
18275     { echo "$as_me:$LINENO: result: $gt_source" >&5
18276 echo "${ECHO_T}$gt_source" >&6; }
18277   fi
18278
18279   if test "$USE_NLS" = "yes"; then
18280
18281     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
18282       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
18283         { echo "$as_me:$LINENO: checking how to link with libintl" >&5
18284 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
18285         { echo "$as_me:$LINENO: result: $LIBINTL" >&5
18286 echo "${ECHO_T}$LIBINTL" >&6; }
18287
18288   for element in $INCINTL; do
18289     haveit=
18290     for x in $CPPFLAGS; do
18291
18292   acl_save_prefix="$prefix"
18293   prefix="$acl_final_prefix"
18294   acl_save_exec_prefix="$exec_prefix"
18295   exec_prefix="$acl_final_exec_prefix"
18296   eval x=\"$x\"
18297   exec_prefix="$acl_save_exec_prefix"
18298   prefix="$acl_save_prefix"
18299
18300       if test "X$x" = "X$element"; then
18301         haveit=yes
18302         break
18303       fi
18304     done
18305     if test -z "$haveit"; then
18306       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
18307     fi
18308   done
18309
18310       fi
18311
18312
18313 cat >>confdefs.h <<\_ACEOF
18314 #define HAVE_GETTEXT 1
18315 _ACEOF
18316
18317
18318 cat >>confdefs.h <<\_ACEOF
18319 #define HAVE_DCGETTEXT 1
18320 _ACEOF
18321
18322     fi
18323
18324         POSUB=po
18325   fi
18326
18327
18328
18329     INTLLIBS="$LIBINTL"
18330
18331
18332
18333
18334
18335
18336
18337 os_name=`uname -s 2>/dev/null`
18338 if test x${prefix} = xNONE ; then
18339    if test `eval echo ${sysconfdir}` = NONE/etc ; then
18340       sysconfdir=/etc/bacula
18341    fi
18342
18343    if test `eval echo ${libdir}` = NONE/lib ; then
18344       case ${os_name} in
18345       Linux)
18346          os_processor=`uname -p 2>/dev/null`
18347          case ${os_processor} in
18348          x86_64)
18349             libdir=/usr/lib64
18350             ;;
18351          *)
18352             libdir=/usr/lib
18353             ;;
18354          esac
18355          ;;
18356       *)
18357          libdir=/usr/lib
18358          ;;
18359       esac
18360    fi
18361
18362    if test `eval echo ${includedir}` = NONE/include ; then
18363       includedir=/usr/include
18364    fi
18365
18366    if test `eval echo ${datarootdir}` = NONE/share ; then
18367       datarootdir=/usr/share
18368    fi
18369    prefix=
18370 fi
18371
18372 if test x${exec_prefix} = xNONE ; then
18373    exec_prefix=${prefix}
18374 fi
18375
18376 sysconfdir=`eval echo ${sysconfdir}`
18377 datarootdir=`eval echo ${datarootdir}`
18378 docdir=`eval echo ${docdir}`
18379 htmldir=`eval echo ${htmldir}`
18380 libdir=`eval echo ${libdir}`
18381 includedir=`eval echo ${includedir}`
18382 localedir=`eval echo ${datarootdir}/locale`
18383 cat >>confdefs.h <<_ACEOF
18384 #define SYSCONFDIR "$sysconfdir"
18385 _ACEOF
18386
18387 cat >>confdefs.h <<_ACEOF
18388 #define LOCALEDIR "$localedir"
18389 _ACEOF
18390
18391
18392 if test x$sbindir = x'${exec_prefix}/sbin' ; then
18393    sbindir=${exec_prefix}/sbin
18394 fi
18395 sbindir=`eval echo ${sbindir}`
18396
18397 if test x$mandir = x'${prefix}/man' ; then
18398    mandir=/usr/share/man
18399 fi
18400
18401 if test x$htmldir = x${docdir} ; then
18402    htmldir=`eval echo ${docdir}bacula/html`
18403 fi
18404
18405 if test x$docdir = x'/usr/share/doc/' ; then
18406    docdir=`eval echo ${docdir}bacula`
18407 fi
18408
18409
18410 for ac_prog in msgfmt
18411 do
18412   # Extract the first word of "$ac_prog", so it can be a program name with args.
18413 set dummy $ac_prog; ac_word=$2
18414 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18415 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18416 if test "${ac_cv_path_MSGFMT+set}" = set; then
18417   echo $ECHO_N "(cached) $ECHO_C" >&6
18418 else
18419   case $MSGFMT in
18420   [\\/]* | ?:[\\/]*)
18421   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
18422   ;;
18423   *)
18424   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18425 for as_dir in $PATH
18426 do
18427   IFS=$as_save_IFS
18428   test -z "$as_dir" && as_dir=.
18429   for ac_exec_ext in '' $ac_executable_extensions; do
18430   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18431     ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
18432     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18433     break 2
18434   fi
18435 done
18436 done
18437 IFS=$as_save_IFS
18438
18439   ;;
18440 esac
18441 fi
18442 MSGFMT=$ac_cv_path_MSGFMT
18443 if test -n "$MSGFMT"; then
18444   { echo "$as_me:$LINENO: result: $MSGFMT" >&5
18445 echo "${ECHO_T}$MSGFMT" >&6; }
18446 else
18447   { echo "$as_me:$LINENO: result: no" >&5
18448 echo "${ECHO_T}no" >&6; }
18449 fi
18450
18451
18452   test -n "$MSGFMT" && break
18453 done
18454 test -n "$MSGFMT" || MSGFMT="no"
18455
18456 if test "$MSGFMT" = "no"
18457 then
18458    echo 'msgfmt program not found, disabling NLS !'
18459    USE_NLS=no
18460    USE_INCLUDED_LIBINTL=no
18461 #else
18462
18463
18464     { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2 or newer" >&5
18465 echo $ECHO_N "checking whether we are using the GNU C Library 2 or newer... $ECHO_C" >&6; }
18466 if test "${ac_cv_gnu_library_2+set}" = set; then
18467   echo $ECHO_N "(cached) $ECHO_C" >&6
18468 else
18469   cat >conftest.$ac_ext <<_ACEOF
18470 /* confdefs.h.  */
18471 _ACEOF
18472 cat confdefs.h >>conftest.$ac_ext
18473 cat >>conftest.$ac_ext <<_ACEOF
18474 /* end confdefs.h.  */
18475
18476 #include <features.h>
18477 #ifdef __GNU_LIBRARY__
18478  #if (__GLIBC__ >= 2)
18479   Lucky GNU user
18480  #endif
18481 #endif
18482
18483 _ACEOF
18484 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18485   $EGREP "Lucky GNU user" >/dev/null 2>&1; then
18486   ac_cv_gnu_library_2=yes
18487 else
18488   ac_cv_gnu_library_2=no
18489 fi
18490 rm -f conftest*
18491
18492
18493
18494 fi
18495 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2" >&5
18496 echo "${ECHO_T}$ac_cv_gnu_library_2" >&6; }
18497
18498     GLIBC2="$ac_cv_gnu_library_2"
18499
18500
18501 if test -n "$ac_tool_prefix"; then
18502   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
18503 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
18504 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18505 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18506 if test "${ac_cv_prog_RANLIB+set}" = set; then
18507   echo $ECHO_N "(cached) $ECHO_C" >&6
18508 else
18509   if test -n "$RANLIB"; then
18510   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
18511 else
18512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18513 for as_dir in $PATH
18514 do
18515   IFS=$as_save_IFS
18516   test -z "$as_dir" && as_dir=.
18517   for ac_exec_ext in '' $ac_executable_extensions; do
18518   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18519     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
18520     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18521     break 2
18522   fi
18523 done
18524 done
18525 IFS=$as_save_IFS
18526
18527 fi
18528 fi
18529 RANLIB=$ac_cv_prog_RANLIB
18530 if test -n "$RANLIB"; then
18531   { echo "$as_me:$LINENO: result: $RANLIB" >&5
18532 echo "${ECHO_T}$RANLIB" >&6; }
18533 else
18534   { echo "$as_me:$LINENO: result: no" >&5
18535 echo "${ECHO_T}no" >&6; }
18536 fi
18537
18538
18539 fi
18540 if test -z "$ac_cv_prog_RANLIB"; then
18541   ac_ct_RANLIB=$RANLIB
18542   # Extract the first word of "ranlib", so it can be a program name with args.
18543 set dummy ranlib; ac_word=$2
18544 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18545 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18546 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
18547   echo $ECHO_N "(cached) $ECHO_C" >&6
18548 else
18549   if test -n "$ac_ct_RANLIB"; then
18550   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
18551 else
18552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18553 for as_dir in $PATH
18554 do
18555   IFS=$as_save_IFS
18556   test -z "$as_dir" && as_dir=.
18557   for ac_exec_ext in '' $ac_executable_extensions; do
18558   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18559     ac_cv_prog_ac_ct_RANLIB="ranlib"
18560     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18561     break 2
18562   fi
18563 done
18564 done
18565 IFS=$as_save_IFS
18566
18567 fi
18568 fi
18569 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
18570 if test -n "$ac_ct_RANLIB"; then
18571   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
18572 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
18573 else
18574   { echo "$as_me:$LINENO: result: no" >&5
18575 echo "${ECHO_T}no" >&6; }
18576 fi
18577
18578   if test "x$ac_ct_RANLIB" = x; then
18579     RANLIB=":"
18580   else
18581     case $cross_compiling:$ac_tool_warned in
18582 yes:)
18583 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
18584 whose name does not start with the host triplet.  If you think this
18585 configuration is useful to you, please write to autoconf@gnu.org." >&5
18586 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
18587 whose name does not start with the host triplet.  If you think this
18588 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
18589 ac_tool_warned=yes ;;
18590 esac
18591     RANLIB=$ac_ct_RANLIB
18592   fi
18593 else
18594   RANLIB="$ac_cv_prog_RANLIB"
18595 fi
18596
18597
18598         { echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
18599 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6; }
18600 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
18601   echo $ECHO_N "(cached) $ECHO_C" >&6
18602 else
18603   ac_check_lib_save_LIBS=$LIBS
18604 LIBS="-lcposix  $LIBS"
18605 cat >conftest.$ac_ext <<_ACEOF
18606 /* confdefs.h.  */
18607 _ACEOF
18608 cat confdefs.h >>conftest.$ac_ext
18609 cat >>conftest.$ac_ext <<_ACEOF
18610 /* end confdefs.h.  */
18611
18612 /* Override any GCC internal prototype to avoid an error.
18613    Use char because int might match the return type of a GCC
18614    builtin and then its argument prototype would still apply.  */
18615 #ifdef __cplusplus
18616 extern "C"
18617 #endif
18618 char strerror ();
18619 int
18620 main ()
18621 {
18622 return strerror ();
18623   ;
18624   return 0;
18625 }
18626 _ACEOF
18627 rm -f conftest.$ac_objext conftest$ac_exeext
18628 if { (ac_try="$ac_link"
18629 case "(($ac_try" in
18630   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18631   *) ac_try_echo=$ac_try;;
18632 esac
18633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18634   (eval "$ac_link") 2>conftest.er1
18635   ac_status=$?
18636   grep -v '^ *+' conftest.er1 >conftest.err
18637   rm -f conftest.er1
18638   cat conftest.err >&5
18639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18640   (exit $ac_status); } && {
18641          test -z "$ac_cxx_werror_flag" ||
18642          test ! -s conftest.err
18643        } && test -s conftest$ac_exeext &&
18644        $as_test_x conftest$ac_exeext; then
18645   ac_cv_lib_cposix_strerror=yes
18646 else
18647   echo "$as_me: failed program was:" >&5
18648 sed 's/^/| /' conftest.$ac_ext >&5
18649
18650         ac_cv_lib_cposix_strerror=no
18651 fi
18652
18653 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18654       conftest$ac_exeext conftest.$ac_ext
18655 LIBS=$ac_check_lib_save_LIBS
18656 fi
18657 { echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
18658 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6; }
18659 if test $ac_cv_lib_cposix_strerror = yes; then
18660   LIBS="$LIBS -lcposix"
18661 fi
18662
18663
18664
18665 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
18666 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
18667 if test "${ac_cv_c_const+set}" = set; then
18668   echo $ECHO_N "(cached) $ECHO_C" >&6
18669 else
18670   cat >conftest.$ac_ext <<_ACEOF
18671 /* confdefs.h.  */
18672 _ACEOF
18673 cat confdefs.h >>conftest.$ac_ext
18674 cat >>conftest.$ac_ext <<_ACEOF
18675 /* end confdefs.h.  */
18676
18677 int
18678 main ()
18679 {
18680 /* FIXME: Include the comments suggested by Paul. */
18681 #ifndef __cplusplus
18682   /* Ultrix mips cc rejects this.  */
18683   typedef int charset[2];
18684   const charset cs;
18685   /* SunOS 4.1.1 cc rejects this.  */
18686   char const *const *pcpcc;
18687   char **ppc;
18688   /* NEC SVR4.0.2 mips cc rejects this.  */
18689   struct point {int x, y;};
18690   static struct point const zero = {0,0};
18691   /* AIX XL C 1.02.0.0 rejects this.
18692      It does not let you subtract one const X* pointer from another in
18693      an arm of an if-expression whose if-part is not a constant
18694      expression */
18695   const char *g = "string";
18696   pcpcc = &g + (g ? g-g : 0);
18697   /* HPUX 7.0 cc rejects these. */
18698   ++pcpcc;
18699   ppc = (char**) pcpcc;
18700   pcpcc = (char const *const *) ppc;
18701   { /* SCO 3.2v4 cc rejects this.  */
18702     char *t;
18703     char const *s = 0 ? (char *) 0 : (char const *) 0;
18704
18705     *t++ = 0;
18706     if (s) return 0;
18707   }
18708   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
18709     int x[] = {25, 17};
18710     const int *foo = &x[0];
18711     ++foo;
18712   }
18713   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
18714     typedef const int *iptr;
18715     iptr p = 0;
18716     ++p;
18717   }
18718   { /* AIX XL C 1.02.0.0 rejects this saying
18719        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
18720     struct s { int j; const int *ap[3]; };
18721     struct s *b; b->j = 5;
18722   }
18723   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
18724     const int foo = 10;
18725     if (!foo) return 0;
18726   }
18727   return !cs[0] && !zero.x;
18728 #endif
18729
18730   ;
18731   return 0;
18732 }
18733 _ACEOF
18734 rm -f conftest.$ac_objext
18735 if { (ac_try="$ac_compile"
18736 case "(($ac_try" in
18737   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18738   *) ac_try_echo=$ac_try;;
18739 esac
18740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18741   (eval "$ac_compile") 2>conftest.er1
18742   ac_status=$?
18743   grep -v '^ *+' conftest.er1 >conftest.err
18744   rm -f conftest.er1
18745   cat conftest.err >&5
18746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18747   (exit $ac_status); } && {
18748          test -z "$ac_cxx_werror_flag" ||
18749          test ! -s conftest.err
18750        } && test -s conftest.$ac_objext; then
18751   ac_cv_c_const=yes
18752 else
18753   echo "$as_me: failed program was:" >&5
18754 sed 's/^/| /' conftest.$ac_ext >&5
18755
18756         ac_cv_c_const=no
18757 fi
18758
18759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18760 fi
18761 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
18762 echo "${ECHO_T}$ac_cv_c_const" >&6; }
18763 if test $ac_cv_c_const = no; then
18764
18765 cat >>confdefs.h <<\_ACEOF
18766 #define const
18767 _ACEOF
18768
18769 fi
18770
18771
18772   { echo "$as_me:$LINENO: checking for signed" >&5
18773 echo $ECHO_N "checking for signed... $ECHO_C" >&6; }
18774 if test "${bh_cv_c_signed+set}" = set; then
18775   echo $ECHO_N "(cached) $ECHO_C" >&6
18776 else
18777   cat >conftest.$ac_ext <<_ACEOF
18778 /* confdefs.h.  */
18779 _ACEOF
18780 cat confdefs.h >>conftest.$ac_ext
18781 cat >>conftest.$ac_ext <<_ACEOF
18782 /* end confdefs.h.  */
18783
18784 int
18785 main ()
18786 {
18787 signed char x;
18788   ;
18789   return 0;
18790 }
18791 _ACEOF
18792 rm -f conftest.$ac_objext
18793 if { (ac_try="$ac_compile"
18794 case "(($ac_try" in
18795   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18796   *) ac_try_echo=$ac_try;;
18797 esac
18798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18799   (eval "$ac_compile") 2>conftest.er1
18800   ac_status=$?
18801   grep -v '^ *+' conftest.er1 >conftest.err
18802   rm -f conftest.er1
18803   cat conftest.err >&5
18804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18805   (exit $ac_status); } && {
18806          test -z "$ac_cxx_werror_flag" ||
18807          test ! -s conftest.err
18808        } && test -s conftest.$ac_objext; then
18809   bh_cv_c_signed=yes
18810 else
18811   echo "$as_me: failed program was:" >&5
18812 sed 's/^/| /' conftest.$ac_ext >&5
18813
18814         bh_cv_c_signed=no
18815 fi
18816
18817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18818 fi
18819 { echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
18820 echo "${ECHO_T}$bh_cv_c_signed" >&6; }
18821   if test $bh_cv_c_signed = no; then
18822
18823 cat >>confdefs.h <<\_ACEOF
18824 #define signed
18825 _ACEOF
18826
18827   fi
18828
18829 { echo "$as_me:$LINENO: checking for inline" >&5
18830 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
18831 if test "${ac_cv_c_inline+set}" = set; then
18832   echo $ECHO_N "(cached) $ECHO_C" >&6
18833 else
18834   ac_cv_c_inline=no
18835 for ac_kw in inline __inline__ __inline; do
18836   cat >conftest.$ac_ext <<_ACEOF
18837 /* confdefs.h.  */
18838 _ACEOF
18839 cat confdefs.h >>conftest.$ac_ext
18840 cat >>conftest.$ac_ext <<_ACEOF
18841 /* end confdefs.h.  */
18842 #ifndef __cplusplus
18843 typedef int foo_t;
18844 static $ac_kw foo_t static_foo () {return 0; }
18845 $ac_kw foo_t foo () {return 0; }
18846 #endif
18847
18848 _ACEOF
18849 rm -f conftest.$ac_objext
18850 if { (ac_try="$ac_compile"
18851 case "(($ac_try" in
18852   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18853   *) ac_try_echo=$ac_try;;
18854 esac
18855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18856   (eval "$ac_compile") 2>conftest.er1
18857   ac_status=$?
18858   grep -v '^ *+' conftest.er1 >conftest.err
18859   rm -f conftest.er1
18860   cat conftest.err >&5
18861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18862   (exit $ac_status); } && {
18863          test -z "$ac_cxx_werror_flag" ||
18864          test ! -s conftest.err
18865        } && test -s conftest.$ac_objext; then
18866   ac_cv_c_inline=$ac_kw
18867 else
18868   echo "$as_me: failed program was:" >&5
18869 sed 's/^/| /' conftest.$ac_ext >&5
18870
18871
18872 fi
18873
18874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18875   test "$ac_cv_c_inline" != no && break
18876 done
18877
18878 fi
18879 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
18880 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
18881
18882
18883 case $ac_cv_c_inline in
18884   inline | yes) ;;
18885   *)
18886     case $ac_cv_c_inline in
18887       no) ac_val=;;
18888       *) ac_val=$ac_cv_c_inline;;
18889     esac
18890     cat >>confdefs.h <<_ACEOF
18891 #ifndef __cplusplus
18892 #define inline $ac_val
18893 #endif
18894 _ACEOF
18895     ;;
18896 esac
18897
18898 { echo "$as_me:$LINENO: checking for off_t" >&5
18899 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
18900 if test "${ac_cv_type_off_t+set}" = set; then
18901   echo $ECHO_N "(cached) $ECHO_C" >&6
18902 else
18903   cat >conftest.$ac_ext <<_ACEOF
18904 /* confdefs.h.  */
18905 _ACEOF
18906 cat confdefs.h >>conftest.$ac_ext
18907 cat >>conftest.$ac_ext <<_ACEOF
18908 /* end confdefs.h.  */
18909 $ac_includes_default
18910 typedef off_t ac__type_new_;
18911 int
18912 main ()
18913 {
18914 if ((ac__type_new_ *) 0)
18915   return 0;
18916 if (sizeof (ac__type_new_))
18917   return 0;
18918   ;
18919   return 0;
18920 }
18921 _ACEOF
18922 rm -f conftest.$ac_objext
18923 if { (ac_try="$ac_compile"
18924 case "(($ac_try" in
18925   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18926   *) ac_try_echo=$ac_try;;
18927 esac
18928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18929   (eval "$ac_compile") 2>conftest.er1
18930   ac_status=$?
18931   grep -v '^ *+' conftest.er1 >conftest.err
18932   rm -f conftest.er1
18933   cat conftest.err >&5
18934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18935   (exit $ac_status); } && {
18936          test -z "$ac_cxx_werror_flag" ||
18937          test ! -s conftest.err
18938        } && test -s conftest.$ac_objext; then
18939   ac_cv_type_off_t=yes
18940 else
18941   echo "$as_me: failed program was:" >&5
18942 sed 's/^/| /' conftest.$ac_ext >&5
18943
18944         ac_cv_type_off_t=no
18945 fi
18946
18947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18948 fi
18949 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
18950 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
18951 if test $ac_cv_type_off_t = yes; then
18952   :
18953 else
18954
18955 cat >>confdefs.h <<_ACEOF
18956 #define off_t long int
18957 _ACEOF
18958
18959 fi
18960
18961 { echo "$as_me:$LINENO: checking for size_t" >&5
18962 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
18963 if test "${ac_cv_type_size_t+set}" = set; then
18964   echo $ECHO_N "(cached) $ECHO_C" >&6
18965 else
18966   cat >conftest.$ac_ext <<_ACEOF
18967 /* confdefs.h.  */
18968 _ACEOF
18969 cat confdefs.h >>conftest.$ac_ext
18970 cat >>conftest.$ac_ext <<_ACEOF
18971 /* end confdefs.h.  */
18972 $ac_includes_default
18973 typedef size_t ac__type_new_;
18974 int
18975 main ()
18976 {
18977 if ((ac__type_new_ *) 0)
18978   return 0;
18979 if (sizeof (ac__type_new_))
18980   return 0;
18981   ;
18982   return 0;
18983 }
18984 _ACEOF
18985 rm -f conftest.$ac_objext
18986 if { (ac_try="$ac_compile"
18987 case "(($ac_try" in
18988   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18989   *) ac_try_echo=$ac_try;;
18990 esac
18991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18992   (eval "$ac_compile") 2>conftest.er1
18993   ac_status=$?
18994   grep -v '^ *+' conftest.er1 >conftest.err
18995   rm -f conftest.er1
18996   cat conftest.err >&5
18997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18998   (exit $ac_status); } && {
18999          test -z "$ac_cxx_werror_flag" ||
19000          test ! -s conftest.err
19001        } && test -s conftest.$ac_objext; then
19002   ac_cv_type_size_t=yes
19003 else
19004   echo "$as_me: failed program was:" >&5
19005 sed 's/^/| /' conftest.$ac_ext >&5
19006
19007         ac_cv_type_size_t=no
19008 fi
19009
19010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19011 fi
19012 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
19013 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
19014 if test $ac_cv_type_size_t = yes; then
19015   :
19016 else
19017
19018 cat >>confdefs.h <<_ACEOF
19019 #define size_t unsigned int
19020 _ACEOF
19021
19022 fi
19023
19024
19025   { echo "$as_me:$LINENO: checking for long long" >&5
19026 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
19027 if test "${ac_cv_type_long_long+set}" = set; then
19028   echo $ECHO_N "(cached) $ECHO_C" >&6
19029 else
19030   cat >conftest.$ac_ext <<_ACEOF
19031 /* confdefs.h.  */
19032 _ACEOF
19033 cat confdefs.h >>conftest.$ac_ext
19034 cat >>conftest.$ac_ext <<_ACEOF
19035 /* end confdefs.h.  */
19036 long long ll = 1LL; int i = 63;
19037 int
19038 main ()
19039 {
19040 long long llmax = (long long) -1;
19041      return ll << i | ll >> i | llmax / ll | llmax % ll;
19042   ;
19043   return 0;
19044 }
19045 _ACEOF
19046 rm -f conftest.$ac_objext conftest$ac_exeext
19047 if { (ac_try="$ac_link"
19048 case "(($ac_try" in
19049   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19050   *) ac_try_echo=$ac_try;;
19051 esac
19052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19053   (eval "$ac_link") 2>conftest.er1
19054   ac_status=$?
19055   grep -v '^ *+' conftest.er1 >conftest.err
19056   rm -f conftest.er1
19057   cat conftest.err >&5
19058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19059   (exit $ac_status); } && {
19060          test -z "$ac_cxx_werror_flag" ||
19061          test ! -s conftest.err
19062        } && test -s conftest$ac_exeext &&
19063        $as_test_x conftest$ac_exeext; then
19064   ac_cv_type_long_long=yes
19065 else
19066   echo "$as_me: failed program was:" >&5
19067 sed 's/^/| /' conftest.$ac_ext >&5
19068
19069         ac_cv_type_long_long=no
19070 fi
19071
19072 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19073       conftest$ac_exeext conftest.$ac_ext
19074 fi
19075 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
19076 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
19077   if test $ac_cv_type_long_long = yes; then
19078
19079 cat >>confdefs.h <<\_ACEOF
19080 #define HAVE_LONG_LONG 1
19081 _ACEOF
19082
19083   fi
19084
19085
19086   { echo "$as_me:$LINENO: checking for long double" >&5
19087 echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
19088 if test "${gt_cv_c_long_double+set}" = set; then
19089   echo $ECHO_N "(cached) $ECHO_C" >&6
19090 else
19091   if test "$GCC" = yes; then
19092        gt_cv_c_long_double=yes
19093      else
19094        cat >conftest.$ac_ext <<_ACEOF
19095 /* confdefs.h.  */
19096 _ACEOF
19097 cat confdefs.h >>conftest.$ac_ext
19098 cat >>conftest.$ac_ext <<_ACEOF
19099 /* end confdefs.h.  */
19100
19101          /* The Stardent Vistra knows sizeof(long double), but does not support it.  */
19102          long double foo = 0.0;
19103          /* On Ultrix 4.3 cc, long double is 4 and double is 8.  */
19104          int array [2*(sizeof(long double) >= sizeof(double)) - 1];
19105
19106 int
19107 main ()
19108 {
19109
19110   ;
19111   return 0;
19112 }
19113 _ACEOF
19114 rm -f conftest.$ac_objext
19115 if { (ac_try="$ac_compile"
19116 case "(($ac_try" in
19117   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19118   *) ac_try_echo=$ac_try;;
19119 esac
19120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19121   (eval "$ac_compile") 2>conftest.er1
19122   ac_status=$?
19123   grep -v '^ *+' conftest.er1 >conftest.err
19124   rm -f conftest.er1
19125   cat conftest.err >&5
19126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19127   (exit $ac_status); } && {
19128          test -z "$ac_cxx_werror_flag" ||
19129          test ! -s conftest.err
19130        } && test -s conftest.$ac_objext; then
19131   gt_cv_c_long_double=yes
19132 else
19133   echo "$as_me: failed program was:" >&5
19134 sed 's/^/| /' conftest.$ac_ext >&5
19135
19136         gt_cv_c_long_double=no
19137 fi
19138
19139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19140      fi
19141 fi
19142 { echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
19143 echo "${ECHO_T}$gt_cv_c_long_double" >&6; }
19144   if test $gt_cv_c_long_double = yes; then
19145
19146 cat >>confdefs.h <<\_ACEOF
19147 #define HAVE_LONG_DOUBLE 1
19148 _ACEOF
19149
19150   fi
19151
19152
19153   { echo "$as_me:$LINENO: checking for wchar_t" >&5
19154 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
19155 if test "${gt_cv_c_wchar_t+set}" = set; then
19156   echo $ECHO_N "(cached) $ECHO_C" >&6
19157 else
19158   cat >conftest.$ac_ext <<_ACEOF
19159 /* confdefs.h.  */
19160 _ACEOF
19161 cat confdefs.h >>conftest.$ac_ext
19162 cat >>conftest.$ac_ext <<_ACEOF
19163 /* end confdefs.h.  */
19164 #include <stddef.h>
19165        wchar_t foo = (wchar_t)'\0';
19166 int
19167 main ()
19168 {
19169
19170   ;
19171   return 0;
19172 }
19173 _ACEOF
19174 rm -f conftest.$ac_objext
19175 if { (ac_try="$ac_compile"
19176 case "(($ac_try" in
19177   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19178   *) ac_try_echo=$ac_try;;
19179 esac
19180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19181   (eval "$ac_compile") 2>conftest.er1
19182   ac_status=$?
19183   grep -v '^ *+' conftest.er1 >conftest.err
19184   rm -f conftest.er1
19185   cat conftest.err >&5
19186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19187   (exit $ac_status); } && {
19188          test -z "$ac_cxx_werror_flag" ||
19189          test ! -s conftest.err
19190        } && test -s conftest.$ac_objext; then
19191   gt_cv_c_wchar_t=yes
19192 else
19193   echo "$as_me: failed program was:" >&5
19194 sed 's/^/| /' conftest.$ac_ext >&5
19195
19196         gt_cv_c_wchar_t=no
19197 fi
19198
19199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19200 fi
19201 { echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
19202 echo "${ECHO_T}$gt_cv_c_wchar_t" >&6; }
19203   if test $gt_cv_c_wchar_t = yes; then
19204
19205 cat >>confdefs.h <<\_ACEOF
19206 #define HAVE_WCHAR_T 1
19207 _ACEOF
19208
19209   fi
19210
19211
19212   { echo "$as_me:$LINENO: checking for wint_t" >&5
19213 echo $ECHO_N "checking for wint_t... $ECHO_C" >&6; }
19214 if test "${gt_cv_c_wint_t+set}" = set; then
19215   echo $ECHO_N "(cached) $ECHO_C" >&6
19216 else
19217   cat >conftest.$ac_ext <<_ACEOF
19218 /* confdefs.h.  */
19219 _ACEOF
19220 cat confdefs.h >>conftest.$ac_ext
19221 cat >>conftest.$ac_ext <<_ACEOF
19222 /* end confdefs.h.  */
19223 #include <wchar.h>
19224        wint_t foo = (wchar_t)'\0';
19225 int
19226 main ()
19227 {
19228
19229   ;
19230   return 0;
19231 }
19232 _ACEOF
19233 rm -f conftest.$ac_objext
19234 if { (ac_try="$ac_compile"
19235 case "(($ac_try" in
19236   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19237   *) ac_try_echo=$ac_try;;
19238 esac
19239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19240   (eval "$ac_compile") 2>conftest.er1
19241   ac_status=$?
19242   grep -v '^ *+' conftest.er1 >conftest.err
19243   rm -f conftest.er1
19244   cat conftest.err >&5
19245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19246   (exit $ac_status); } && {
19247          test -z "$ac_cxx_werror_flag" ||
19248          test ! -s conftest.err
19249        } && test -s conftest.$ac_objext; then
19250   gt_cv_c_wint_t=yes
19251 else
19252   echo "$as_me: failed program was:" >&5
19253 sed 's/^/| /' conftest.$ac_ext >&5
19254
19255         gt_cv_c_wint_t=no
19256 fi
19257
19258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19259 fi
19260 { echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
19261 echo "${ECHO_T}$gt_cv_c_wint_t" >&6; }
19262   if test $gt_cv_c_wint_t = yes; then
19263
19264 cat >>confdefs.h <<\_ACEOF
19265 #define HAVE_WINT_T 1
19266 _ACEOF
19267
19268   fi
19269
19270
19271   { echo "$as_me:$LINENO: checking for inttypes.h" >&5
19272 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
19273 if test "${gl_cv_header_inttypes_h+set}" = set; then
19274   echo $ECHO_N "(cached) $ECHO_C" >&6
19275 else
19276   cat >conftest.$ac_ext <<_ACEOF
19277 /* confdefs.h.  */
19278 _ACEOF
19279 cat confdefs.h >>conftest.$ac_ext
19280 cat >>conftest.$ac_ext <<_ACEOF
19281 /* end confdefs.h.  */
19282 #include <sys/types.h>
19283 #include <inttypes.h>
19284 int
19285 main ()
19286 {
19287 uintmax_t i = (uintmax_t) -1;
19288   ;
19289   return 0;
19290 }
19291 _ACEOF
19292 rm -f conftest.$ac_objext
19293 if { (ac_try="$ac_compile"
19294 case "(($ac_try" in
19295   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19296   *) ac_try_echo=$ac_try;;
19297 esac
19298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19299   (eval "$ac_compile") 2>conftest.er1
19300   ac_status=$?
19301   grep -v '^ *+' conftest.er1 >conftest.err
19302   rm -f conftest.er1
19303   cat conftest.err >&5
19304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19305   (exit $ac_status); } && {
19306          test -z "$ac_cxx_werror_flag" ||
19307          test ! -s conftest.err
19308        } && test -s conftest.$ac_objext; then
19309   gl_cv_header_inttypes_h=yes
19310 else
19311   echo "$as_me: failed program was:" >&5
19312 sed 's/^/| /' conftest.$ac_ext >&5
19313
19314         gl_cv_header_inttypes_h=no
19315 fi
19316
19317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19318 fi
19319 { echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5
19320 echo "${ECHO_T}$gl_cv_header_inttypes_h" >&6; }
19321   if test $gl_cv_header_inttypes_h = yes; then
19322
19323 cat >>confdefs.h <<_ACEOF
19324 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
19325 _ACEOF
19326
19327   fi
19328
19329
19330   { echo "$as_me:$LINENO: checking for stdint.h" >&5
19331 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
19332 if test "${gl_cv_header_stdint_h+set}" = set; then
19333   echo $ECHO_N "(cached) $ECHO_C" >&6
19334 else
19335   cat >conftest.$ac_ext <<_ACEOF
19336 /* confdefs.h.  */
19337 _ACEOF
19338 cat confdefs.h >>conftest.$ac_ext
19339 cat >>conftest.$ac_ext <<_ACEOF
19340 /* end confdefs.h.  */
19341 #include <sys/types.h>
19342 #include <stdint.h>
19343 int
19344 main ()
19345 {
19346 uintmax_t i = (uintmax_t) -1;
19347   ;
19348   return 0;
19349 }
19350 _ACEOF
19351 rm -f conftest.$ac_objext
19352 if { (ac_try="$ac_compile"
19353 case "(($ac_try" in
19354   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19355   *) ac_try_echo=$ac_try;;
19356 esac
19357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19358   (eval "$ac_compile") 2>conftest.er1
19359   ac_status=$?
19360   grep -v '^ *+' conftest.er1 >conftest.err
19361   rm -f conftest.er1
19362   cat conftest.err >&5
19363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19364   (exit $ac_status); } && {
19365          test -z "$ac_cxx_werror_flag" ||
19366          test ! -s conftest.err
19367        } && test -s conftest.$ac_objext; then
19368   gl_cv_header_stdint_h=yes
19369 else
19370   echo "$as_me: failed program was:" >&5
19371 sed 's/^/| /' conftest.$ac_ext >&5
19372
19373         gl_cv_header_stdint_h=no
19374 fi
19375
19376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19377 fi
19378 { echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
19379 echo "${ECHO_T}$gl_cv_header_stdint_h" >&6; }
19380   if test $gl_cv_header_stdint_h = yes; then
19381
19382 cat >>confdefs.h <<_ACEOF
19383 #define HAVE_STDINT_H_WITH_UINTMAX 1
19384 _ACEOF
19385
19386   fi
19387
19388
19389
19390
19391   { echo "$as_me:$LINENO: checking for intmax_t" >&5
19392 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; }
19393 if test "${gt_cv_c_intmax_t+set}" = set; then
19394   echo $ECHO_N "(cached) $ECHO_C" >&6
19395 else
19396   cat >conftest.$ac_ext <<_ACEOF
19397 /* confdefs.h.  */
19398 _ACEOF
19399 cat confdefs.h >>conftest.$ac_ext
19400 cat >>conftest.$ac_ext <<_ACEOF
19401 /* end confdefs.h.  */
19402
19403 #include <stddef.h>
19404 #include <stdlib.h>
19405 #if HAVE_STDINT_H_WITH_UINTMAX
19406 #include <stdint.h>
19407 #endif
19408 #if HAVE_INTTYPES_H_WITH_UINTMAX
19409 #include <inttypes.h>
19410 #endif
19411
19412 int
19413 main ()
19414 {
19415 intmax_t x = -1;
19416   ;
19417   return 0;
19418 }
19419 _ACEOF
19420 rm -f conftest.$ac_objext
19421 if { (ac_try="$ac_compile"
19422 case "(($ac_try" in
19423   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19424   *) ac_try_echo=$ac_try;;
19425 esac
19426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19427   (eval "$ac_compile") 2>conftest.er1
19428   ac_status=$?
19429   grep -v '^ *+' conftest.er1 >conftest.err
19430   rm -f conftest.er1
19431   cat conftest.err >&5
19432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19433   (exit $ac_status); } && {
19434          test -z "$ac_cxx_werror_flag" ||
19435          test ! -s conftest.err
19436        } && test -s conftest.$ac_objext; then
19437   gt_cv_c_intmax_t=yes
19438 else
19439   echo "$as_me: failed program was:" >&5
19440 sed 's/^/| /' conftest.$ac_ext >&5
19441
19442         gt_cv_c_intmax_t=no
19443 fi
19444
19445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19446 fi
19447 { echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
19448 echo "${ECHO_T}$gt_cv_c_intmax_t" >&6; }
19449   if test $gt_cv_c_intmax_t = yes; then
19450
19451 cat >>confdefs.h <<\_ACEOF
19452 #define HAVE_INTMAX_T 1
19453 _ACEOF
19454
19455   fi
19456
19457
19458
19459   { echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
19460 echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6; }
19461 if test "${gt_cv_func_printf_posix+set}" = set; then
19462   echo $ECHO_N "(cached) $ECHO_C" >&6
19463 else
19464
19465       if test "$cross_compiling" = yes; then
19466
19467         cat >conftest.$ac_ext <<_ACEOF
19468 /* confdefs.h.  */
19469 _ACEOF
19470 cat confdefs.h >>conftest.$ac_ext
19471 cat >>conftest.$ac_ext <<_ACEOF
19472 /* end confdefs.h.  */
19473
19474 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
19475   notposix
19476 #endif
19477
19478 _ACEOF
19479 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19480   $EGREP "notposix" >/dev/null 2>&1; then
19481   gt_cv_func_printf_posix="guessing no"
19482 else
19483   gt_cv_func_printf_posix="guessing yes"
19484 fi
19485 rm -f conftest*
19486
19487
19488 else
19489   cat >conftest.$ac_ext <<_ACEOF
19490 /* confdefs.h.  */
19491 _ACEOF
19492 cat confdefs.h >>conftest.$ac_ext
19493 cat >>conftest.$ac_ext <<_ACEOF
19494 /* end confdefs.h.  */
19495
19496 #include <stdio.h>
19497 #include <string.h>
19498 /* The string "%2$d %1$d", with dollar characters protected from the shell's
19499    dollar expansion (possibly an autoconf bug).  */
19500 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
19501 static char buf[100];
19502 int main ()
19503 {
19504   sprintf (buf, format, 33, 55);
19505   return (strcmp (buf, "55 33") != 0);
19506 }
19507 _ACEOF
19508 rm -f conftest$ac_exeext
19509 if { (ac_try="$ac_link"
19510 case "(($ac_try" in
19511   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19512   *) ac_try_echo=$ac_try;;
19513 esac
19514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19515   (eval "$ac_link") 2>&5
19516   ac_status=$?
19517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19518   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19519   { (case "(($ac_try" in
19520   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19521   *) ac_try_echo=$ac_try;;
19522 esac
19523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19524   (eval "$ac_try") 2>&5
19525   ac_status=$?
19526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19527   (exit $ac_status); }; }; then
19528   gt_cv_func_printf_posix=yes
19529 else
19530   echo "$as_me: program exited with status $ac_status" >&5
19531 echo "$as_me: failed program was:" >&5
19532 sed 's/^/| /' conftest.$ac_ext >&5
19533
19534 ( exit $ac_status )
19535 gt_cv_func_printf_posix=no
19536 fi
19537 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19538 fi
19539
19540
19541
19542 fi
19543 { echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
19544 echo "${ECHO_T}$gt_cv_func_printf_posix" >&6; }
19545   case $gt_cv_func_printf_posix in
19546     *yes)
19547
19548 cat >>confdefs.h <<\_ACEOF
19549 #define HAVE_POSIX_PRINTF 1
19550 _ACEOF
19551
19552       ;;
19553   esac
19554
19555 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
19556 # for constant arguments.  Useless!
19557 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
19558 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
19559 if test "${ac_cv_working_alloca_h+set}" = set; then
19560   echo $ECHO_N "(cached) $ECHO_C" >&6
19561 else
19562   cat >conftest.$ac_ext <<_ACEOF
19563 /* confdefs.h.  */
19564 _ACEOF
19565 cat confdefs.h >>conftest.$ac_ext
19566 cat >>conftest.$ac_ext <<_ACEOF
19567 /* end confdefs.h.  */
19568 #include <alloca.h>
19569 int
19570 main ()
19571 {
19572 char *p = (char *) alloca (2 * sizeof (int));
19573                           if (p) return 0;
19574   ;
19575   return 0;
19576 }
19577 _ACEOF
19578 rm -f conftest.$ac_objext conftest$ac_exeext
19579 if { (ac_try="$ac_link"
19580 case "(($ac_try" in
19581   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19582   *) ac_try_echo=$ac_try;;
19583 esac
19584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19585   (eval "$ac_link") 2>conftest.er1
19586   ac_status=$?
19587   grep -v '^ *+' conftest.er1 >conftest.err
19588   rm -f conftest.er1
19589   cat conftest.err >&5
19590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19591   (exit $ac_status); } && {
19592          test -z "$ac_cxx_werror_flag" ||
19593          test ! -s conftest.err
19594        } && test -s conftest$ac_exeext &&
19595        $as_test_x conftest$ac_exeext; then
19596   ac_cv_working_alloca_h=yes
19597 else
19598   echo "$as_me: failed program was:" >&5
19599 sed 's/^/| /' conftest.$ac_ext >&5
19600
19601         ac_cv_working_alloca_h=no
19602 fi
19603
19604 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19605       conftest$ac_exeext conftest.$ac_ext
19606 fi
19607 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
19608 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
19609 if test $ac_cv_working_alloca_h = yes; then
19610
19611 cat >>confdefs.h <<\_ACEOF
19612 #define HAVE_ALLOCA_H 1
19613 _ACEOF
19614
19615 fi
19616
19617 { echo "$as_me:$LINENO: checking for alloca" >&5
19618 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
19619 if test "${ac_cv_func_alloca_works+set}" = set; then
19620   echo $ECHO_N "(cached) $ECHO_C" >&6
19621 else
19622   cat >conftest.$ac_ext <<_ACEOF
19623 /* confdefs.h.  */
19624 _ACEOF
19625 cat confdefs.h >>conftest.$ac_ext
19626 cat >>conftest.$ac_ext <<_ACEOF
19627 /* end confdefs.h.  */
19628 #ifdef __GNUC__
19629 # define alloca __builtin_alloca
19630 #else
19631 # ifdef _MSC_VER
19632 #  include <malloc.h>
19633 #  define alloca _alloca
19634 # else
19635 #  ifdef HAVE_ALLOCA_H
19636 #   include <alloca.h>
19637 #  else
19638 #   ifdef _AIX
19639  #pragma alloca
19640 #   else
19641 #    ifndef alloca /* predefined by HP cc +Olibcalls */
19642 char *alloca ();
19643 #    endif
19644 #   endif
19645 #  endif
19646 # endif
19647 #endif
19648
19649 int
19650 main ()
19651 {
19652 char *p = (char *) alloca (1);
19653                                     if (p) return 0;
19654   ;
19655   return 0;
19656 }
19657 _ACEOF
19658 rm -f conftest.$ac_objext conftest$ac_exeext
19659 if { (ac_try="$ac_link"
19660 case "(($ac_try" in
19661   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19662   *) ac_try_echo=$ac_try;;
19663 esac
19664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19665   (eval "$ac_link") 2>conftest.er1
19666   ac_status=$?
19667   grep -v '^ *+' conftest.er1 >conftest.err
19668   rm -f conftest.er1
19669   cat conftest.err >&5
19670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19671   (exit $ac_status); } && {
19672          test -z "$ac_cxx_werror_flag" ||
19673          test ! -s conftest.err
19674        } && test -s conftest$ac_exeext &&
19675        $as_test_x conftest$ac_exeext; then
19676   ac_cv_func_alloca_works=yes
19677 else
19678   echo "$as_me: failed program was:" >&5
19679 sed 's/^/| /' conftest.$ac_ext >&5
19680
19681         ac_cv_func_alloca_works=no
19682 fi
19683
19684 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19685       conftest$ac_exeext conftest.$ac_ext
19686 fi
19687 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
19688 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
19689
19690 if test $ac_cv_func_alloca_works = yes; then
19691
19692 cat >>confdefs.h <<\_ACEOF
19693 #define HAVE_ALLOCA 1
19694 _ACEOF
19695
19696 else
19697   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
19698 # that cause trouble.  Some versions do not even contain alloca or
19699 # contain a buggy version.  If you still want to use their alloca,
19700 # use ar to extract alloca.o from them instead of compiling alloca.c.
19701
19702 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
19703
19704 cat >>confdefs.h <<\_ACEOF
19705 #define C_ALLOCA 1
19706 _ACEOF
19707
19708
19709 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
19710 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
19711 if test "${ac_cv_os_cray+set}" = set; then
19712   echo $ECHO_N "(cached) $ECHO_C" >&6
19713 else
19714   cat >conftest.$ac_ext <<_ACEOF
19715 /* confdefs.h.  */
19716 _ACEOF
19717 cat confdefs.h >>conftest.$ac_ext
19718 cat >>conftest.$ac_ext <<_ACEOF
19719 /* end confdefs.h.  */
19720 #if defined CRAY && ! defined CRAY2
19721 webecray
19722 #else
19723 wenotbecray
19724 #endif
19725
19726 _ACEOF
19727 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19728   $EGREP "webecray" >/dev/null 2>&1; then
19729   ac_cv_os_cray=yes
19730 else
19731   ac_cv_os_cray=no
19732 fi
19733 rm -f conftest*
19734
19735 fi
19736 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
19737 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
19738 if test $ac_cv_os_cray = yes; then
19739   for ac_func in _getb67 GETB67 getb67; do
19740     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19741 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19742 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19743 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19744   echo $ECHO_N "(cached) $ECHO_C" >&6
19745 else
19746   cat >conftest.$ac_ext <<_ACEOF
19747 /* confdefs.h.  */
19748 _ACEOF
19749 cat confdefs.h >>conftest.$ac_ext
19750 cat >>conftest.$ac_ext <<_ACEOF
19751 /* end confdefs.h.  */
19752 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19753    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19754 #define $ac_func innocuous_$ac_func
19755
19756 /* System header to define __stub macros and hopefully few prototypes,
19757     which can conflict with char $ac_func (); below.
19758     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19759     <limits.h> exists even on freestanding compilers.  */
19760
19761 #ifdef __STDC__
19762 # include <limits.h>
19763 #else
19764 # include <assert.h>
19765 #endif
19766
19767 #undef $ac_func
19768
19769 /* Override any GCC internal prototype to avoid an error.
19770    Use char because int might match the return type of a GCC
19771    builtin and then its argument prototype would still apply.  */
19772 #ifdef __cplusplus
19773 extern "C"
19774 #endif
19775 char $ac_func ();
19776 /* The GNU C library defines this for functions which it implements
19777     to always fail with ENOSYS.  Some functions are actually named
19778     something starting with __ and the normal name is an alias.  */
19779 #if defined __stub_$ac_func || defined __stub___$ac_func
19780 choke me
19781 #endif
19782
19783 int
19784 main ()
19785 {
19786 return $ac_func ();
19787   ;
19788   return 0;
19789 }
19790 _ACEOF
19791 rm -f conftest.$ac_objext conftest$ac_exeext
19792 if { (ac_try="$ac_link"
19793 case "(($ac_try" in
19794   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19795   *) ac_try_echo=$ac_try;;
19796 esac
19797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19798   (eval "$ac_link") 2>conftest.er1
19799   ac_status=$?
19800   grep -v '^ *+' conftest.er1 >conftest.err
19801   rm -f conftest.er1
19802   cat conftest.err >&5
19803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19804   (exit $ac_status); } && {
19805          test -z "$ac_cxx_werror_flag" ||
19806          test ! -s conftest.err
19807        } && test -s conftest$ac_exeext &&
19808        $as_test_x conftest$ac_exeext; then
19809   eval "$as_ac_var=yes"
19810 else
19811   echo "$as_me: failed program was:" >&5
19812 sed 's/^/| /' conftest.$ac_ext >&5
19813
19814         eval "$as_ac_var=no"
19815 fi
19816
19817 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19818       conftest$ac_exeext conftest.$ac_ext
19819 fi
19820 ac_res=`eval echo '${'$as_ac_var'}'`
19821                { echo "$as_me:$LINENO: result: $ac_res" >&5
19822 echo "${ECHO_T}$ac_res" >&6; }
19823 if test `eval echo '${'$as_ac_var'}'` = yes; then
19824
19825 cat >>confdefs.h <<_ACEOF
19826 #define CRAY_STACKSEG_END $ac_func
19827 _ACEOF
19828
19829     break
19830 fi
19831
19832   done
19833 fi
19834
19835 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
19836 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
19837 if test "${ac_cv_c_stack_direction+set}" = set; then
19838   echo $ECHO_N "(cached) $ECHO_C" >&6
19839 else
19840   if test "$cross_compiling" = yes; then
19841   ac_cv_c_stack_direction=0
19842 else
19843   cat >conftest.$ac_ext <<_ACEOF
19844 /* confdefs.h.  */
19845 _ACEOF
19846 cat confdefs.h >>conftest.$ac_ext
19847 cat >>conftest.$ac_ext <<_ACEOF
19848 /* end confdefs.h.  */
19849 $ac_includes_default
19850 int
19851 find_stack_direction ()
19852 {
19853   static char *addr = 0;
19854   auto char dummy;
19855   if (addr == 0)
19856     {
19857       addr = &dummy;
19858       return find_stack_direction ();
19859     }
19860   else
19861     return (&dummy > addr) ? 1 : -1;
19862 }
19863
19864 int
19865 main ()
19866 {
19867   return find_stack_direction () < 0;
19868 }
19869 _ACEOF
19870 rm -f conftest$ac_exeext
19871 if { (ac_try="$ac_link"
19872 case "(($ac_try" in
19873   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19874   *) ac_try_echo=$ac_try;;
19875 esac
19876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19877   (eval "$ac_link") 2>&5
19878   ac_status=$?
19879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19880   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19881   { (case "(($ac_try" in
19882   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19883   *) ac_try_echo=$ac_try;;
19884 esac
19885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19886   (eval "$ac_try") 2>&5
19887   ac_status=$?
19888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19889   (exit $ac_status); }; }; then
19890   ac_cv_c_stack_direction=1
19891 else
19892   echo "$as_me: program exited with status $ac_status" >&5
19893 echo "$as_me: failed program was:" >&5
19894 sed 's/^/| /' conftest.$ac_ext >&5
19895
19896 ( exit $ac_status )
19897 ac_cv_c_stack_direction=-1
19898 fi
19899 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19900 fi
19901
19902
19903 fi
19904 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
19905 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
19906
19907 cat >>confdefs.h <<_ACEOF
19908 #define STACK_DIRECTION $ac_cv_c_stack_direction
19909 _ACEOF
19910
19911
19912 fi
19913
19914
19915
19916 for ac_header in stdlib.h unistd.h
19917 do
19918 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19919 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19920   { echo "$as_me:$LINENO: checking for $ac_header" >&5
19921 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19922 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19923   echo $ECHO_N "(cached) $ECHO_C" >&6
19924 fi
19925 ac_res=`eval echo '${'$as_ac_Header'}'`
19926                { echo "$as_me:$LINENO: result: $ac_res" >&5
19927 echo "${ECHO_T}$ac_res" >&6; }
19928 else
19929   # Is the header compilable?
19930 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19931 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19932 cat >conftest.$ac_ext <<_ACEOF
19933 /* confdefs.h.  */
19934 _ACEOF
19935 cat confdefs.h >>conftest.$ac_ext
19936 cat >>conftest.$ac_ext <<_ACEOF
19937 /* end confdefs.h.  */
19938 $ac_includes_default
19939 #include <$ac_header>
19940 _ACEOF
19941 rm -f conftest.$ac_objext
19942 if { (ac_try="$ac_compile"
19943 case "(($ac_try" in
19944   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19945   *) ac_try_echo=$ac_try;;
19946 esac
19947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19948   (eval "$ac_compile") 2>conftest.er1
19949   ac_status=$?
19950   grep -v '^ *+' conftest.er1 >conftest.err
19951   rm -f conftest.er1
19952   cat conftest.err >&5
19953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19954   (exit $ac_status); } && {
19955          test -z "$ac_cxx_werror_flag" ||
19956          test ! -s conftest.err
19957        } && test -s conftest.$ac_objext; then
19958   ac_header_compiler=yes
19959 else
19960   echo "$as_me: failed program was:" >&5
19961 sed 's/^/| /' conftest.$ac_ext >&5
19962
19963         ac_header_compiler=no
19964 fi
19965
19966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19967 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19968 echo "${ECHO_T}$ac_header_compiler" >&6; }
19969
19970 # Is the header present?
19971 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19972 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19973 cat >conftest.$ac_ext <<_ACEOF
19974 /* confdefs.h.  */
19975 _ACEOF
19976 cat confdefs.h >>conftest.$ac_ext
19977 cat >>conftest.$ac_ext <<_ACEOF
19978 /* end confdefs.h.  */
19979 #include <$ac_header>
19980 _ACEOF
19981 if { (ac_try="$ac_cpp conftest.$ac_ext"
19982 case "(($ac_try" in
19983   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19984   *) ac_try_echo=$ac_try;;
19985 esac
19986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19987   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19988   ac_status=$?
19989   grep -v '^ *+' conftest.er1 >conftest.err
19990   rm -f conftest.er1
19991   cat conftest.err >&5
19992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19993   (exit $ac_status); } >/dev/null && {
19994          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
19995          test ! -s conftest.err
19996        }; then
19997   ac_header_preproc=yes
19998 else
19999   echo "$as_me: failed program was:" >&5
20000 sed 's/^/| /' conftest.$ac_ext >&5
20001
20002   ac_header_preproc=no
20003 fi
20004
20005 rm -f conftest.err conftest.$ac_ext
20006 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20007 echo "${ECHO_T}$ac_header_preproc" >&6; }
20008
20009 # So?  What about this header?
20010 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
20011   yes:no: )
20012     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20013 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20014     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20015 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20016     ac_header_preproc=yes
20017     ;;
20018   no:yes:* )
20019     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20020 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20021     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20022 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20023     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20024 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20025     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20026 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20027     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20028 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20029     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20030 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20031
20032     ;;
20033 esac
20034 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20035 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20036 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20037   echo $ECHO_N "(cached) $ECHO_C" >&6
20038 else
20039   eval "$as_ac_Header=\$ac_header_preproc"
20040 fi
20041 ac_res=`eval echo '${'$as_ac_Header'}'`
20042                { echo "$as_me:$LINENO: result: $ac_res" >&5
20043 echo "${ECHO_T}$ac_res" >&6; }
20044
20045 fi
20046 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20047   cat >>confdefs.h <<_ACEOF
20048 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20049 _ACEOF
20050
20051 fi
20052
20053 done
20054
20055
20056 for ac_func in getpagesize
20057 do
20058 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20059 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20060 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20061 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20062   echo $ECHO_N "(cached) $ECHO_C" >&6
20063 else
20064   cat >conftest.$ac_ext <<_ACEOF
20065 /* confdefs.h.  */
20066 _ACEOF
20067 cat confdefs.h >>conftest.$ac_ext
20068 cat >>conftest.$ac_ext <<_ACEOF
20069 /* end confdefs.h.  */
20070 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20071    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20072 #define $ac_func innocuous_$ac_func
20073
20074 /* System header to define __stub macros and hopefully few prototypes,
20075     which can conflict with char $ac_func (); below.
20076     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20077     <limits.h> exists even on freestanding compilers.  */
20078
20079 #ifdef __STDC__
20080 # include <limits.h>
20081 #else
20082 # include <assert.h>
20083 #endif
20084
20085 #undef $ac_func
20086
20087 /* Override any GCC internal prototype to avoid an error.
20088    Use char because int might match the return type of a GCC
20089    builtin and then its argument prototype would still apply.  */
20090 #ifdef __cplusplus
20091 extern "C"
20092 #endif
20093 char $ac_func ();
20094 /* The GNU C library defines this for functions which it implements
20095     to always fail with ENOSYS.  Some functions are actually named
20096     something starting with __ and the normal name is an alias.  */
20097 #if defined __stub_$ac_func || defined __stub___$ac_func
20098 choke me
20099 #endif
20100
20101 int
20102 main ()
20103 {
20104 return $ac_func ();
20105   ;
20106   return 0;
20107 }
20108 _ACEOF
20109 rm -f conftest.$ac_objext conftest$ac_exeext
20110 if { (ac_try="$ac_link"
20111 case "(($ac_try" in
20112   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20113   *) ac_try_echo=$ac_try;;
20114 esac
20115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20116   (eval "$ac_link") 2>conftest.er1
20117   ac_status=$?
20118   grep -v '^ *+' conftest.er1 >conftest.err
20119   rm -f conftest.er1
20120   cat conftest.err >&5
20121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20122   (exit $ac_status); } && {
20123          test -z "$ac_cxx_werror_flag" ||
20124          test ! -s conftest.err
20125        } && test -s conftest$ac_exeext &&
20126        $as_test_x conftest$ac_exeext; then
20127   eval "$as_ac_var=yes"
20128 else
20129   echo "$as_me: failed program was:" >&5
20130 sed 's/^/| /' conftest.$ac_ext >&5
20131
20132         eval "$as_ac_var=no"
20133 fi
20134
20135 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20136       conftest$ac_exeext conftest.$ac_ext
20137 fi
20138 ac_res=`eval echo '${'$as_ac_var'}'`
20139                { echo "$as_me:$LINENO: result: $ac_res" >&5
20140 echo "${ECHO_T}$ac_res" >&6; }
20141 if test `eval echo '${'$as_ac_var'}'` = yes; then
20142   cat >>confdefs.h <<_ACEOF
20143 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20144 _ACEOF
20145
20146 fi
20147 done
20148
20149 { echo "$as_me:$LINENO: checking for working mmap" >&5
20150 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20151 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20152   echo $ECHO_N "(cached) $ECHO_C" >&6
20153 else
20154   if test "$cross_compiling" = yes; then
20155   ac_cv_func_mmap_fixed_mapped=no
20156 else
20157   cat >conftest.$ac_ext <<_ACEOF
20158 /* confdefs.h.  */
20159 _ACEOF
20160 cat confdefs.h >>conftest.$ac_ext
20161 cat >>conftest.$ac_ext <<_ACEOF
20162 /* end confdefs.h.  */
20163 $ac_includes_default
20164 /* malloc might have been renamed as rpl_malloc. */
20165 #undef malloc
20166
20167 /* Thanks to Mike Haertel and Jim Avera for this test.
20168    Here is a matrix of mmap possibilities:
20169         mmap private not fixed
20170         mmap private fixed at somewhere currently unmapped
20171         mmap private fixed at somewhere already mapped
20172         mmap shared not fixed
20173         mmap shared fixed at somewhere currently unmapped
20174         mmap shared fixed at somewhere already mapped
20175    For private mappings, we should verify that changes cannot be read()
20176    back from the file, nor mmap's back from the file at a different
20177    address.  (There have been systems where private was not correctly
20178    implemented like the infamous i386 svr4.0, and systems where the
20179    VM page cache was not coherent with the file system buffer cache
20180    like early versions of FreeBSD and possibly contemporary NetBSD.)
20181    For shared mappings, we should conversely verify that changes get
20182    propagated back to all the places they're supposed to be.
20183
20184    Grep wants private fixed already mapped.
20185    The main things grep needs to know about mmap are:
20186    * does it exist and is it safe to write into the mmap'd area
20187    * how to use it (BSD variants)  */
20188
20189 #include <fcntl.h>
20190 #include <sys/mman.h>
20191
20192 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
20193 char *malloc ();
20194 #endif
20195
20196 /* This mess was copied from the GNU getpagesize.h.  */
20197 #ifndef HAVE_GETPAGESIZE
20198 /* Assume that all systems that can run configure have sys/param.h.  */
20199 # ifndef HAVE_SYS_PARAM_H
20200 #  define HAVE_SYS_PARAM_H 1
20201 # endif
20202
20203 # ifdef _SC_PAGESIZE
20204 #  define getpagesize() sysconf(_SC_PAGESIZE)
20205 # else /* no _SC_PAGESIZE */
20206 #  ifdef HAVE_SYS_PARAM_H
20207 #   include <sys/param.h>
20208 #   ifdef EXEC_PAGESIZE
20209 #    define getpagesize() EXEC_PAGESIZE
20210 #   else /* no EXEC_PAGESIZE */
20211 #    ifdef NBPG
20212 #     define getpagesize() NBPG * CLSIZE
20213 #     ifndef CLSIZE
20214 #      define CLSIZE 1
20215 #     endif /* no CLSIZE */
20216 #    else /* no NBPG */
20217 #     ifdef NBPC
20218 #      define getpagesize() NBPC
20219 #     else /* no NBPC */
20220 #      ifdef PAGESIZE
20221 #       define getpagesize() PAGESIZE
20222 #      endif /* PAGESIZE */
20223 #     endif /* no NBPC */
20224 #    endif /* no NBPG */
20225 #   endif /* no EXEC_PAGESIZE */
20226 #  else /* no HAVE_SYS_PARAM_H */
20227 #   define getpagesize() 8192   /* punt totally */
20228 #  endif /* no HAVE_SYS_PARAM_H */
20229 # endif /* no _SC_PAGESIZE */
20230
20231 #endif /* no HAVE_GETPAGESIZE */
20232
20233 int
20234 main ()
20235 {
20236   char *data, *data2, *data3;
20237   int i, pagesize;
20238   int fd;
20239
20240   pagesize = getpagesize ();
20241
20242   /* First, make a file with some known garbage in it. */
20243   data = (char *) malloc (pagesize);
20244   if (!data)
20245     return 1;
20246   for (i = 0; i < pagesize; ++i)
20247     *(data + i) = rand ();
20248   umask (0);
20249   fd = creat ("conftest.mmap", 0600);
20250   if (fd < 0)
20251     return 1;
20252   if (write (fd, data, pagesize) != pagesize)
20253     return 1;
20254   close (fd);
20255
20256   /* Next, try to mmap the file at a fixed address which already has
20257      something else allocated at it.  If we can, also make sure that
20258      we see the same garbage.  */
20259   fd = open ("conftest.mmap", O_RDWR);
20260   if (fd < 0)
20261     return 1;
20262   data2 = (char *) malloc (2 * pagesize);
20263   if (!data2)
20264     return 1;
20265   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
20266   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20267                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
20268     return 1;
20269   for (i = 0; i < pagesize; ++i)
20270     if (*(data + i) != *(data2 + i))
20271       return 1;
20272
20273   /* Finally, make sure that changes to the mapped area do not
20274      percolate back to the file as seen by read().  (This is a bug on
20275      some variants of i386 svr4.0.)  */
20276   for (i = 0; i < pagesize; ++i)
20277     *(data2 + i) = *(data2 + i) + 1;
20278   data3 = (char *) malloc (pagesize);
20279   if (!data3)
20280     return 1;
20281   if (read (fd, data3, pagesize) != pagesize)
20282     return 1;
20283   for (i = 0; i < pagesize; ++i)
20284     if (*(data + i) != *(data3 + i))
20285       return 1;
20286   close (fd);
20287   return 0;
20288 }
20289 _ACEOF
20290 rm -f conftest$ac_exeext
20291 if { (ac_try="$ac_link"
20292 case "(($ac_try" in
20293   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20294   *) ac_try_echo=$ac_try;;
20295 esac
20296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20297   (eval "$ac_link") 2>&5
20298   ac_status=$?
20299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20300   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20301   { (case "(($ac_try" in
20302   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20303   *) ac_try_echo=$ac_try;;
20304 esac
20305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20306   (eval "$ac_try") 2>&5
20307   ac_status=$?
20308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20309   (exit $ac_status); }; }; then
20310   ac_cv_func_mmap_fixed_mapped=yes
20311 else
20312   echo "$as_me: program exited with status $ac_status" >&5
20313 echo "$as_me: failed program was:" >&5
20314 sed 's/^/| /' conftest.$ac_ext >&5
20315
20316 ( exit $ac_status )
20317 ac_cv_func_mmap_fixed_mapped=no
20318 fi
20319 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20320 fi
20321
20322
20323 fi
20324 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20325 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
20326 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20327
20328 cat >>confdefs.h <<\_ACEOF
20329 #define HAVE_MMAP 1
20330 _ACEOF
20331
20332 fi
20333 rm -f conftest.mmap
20334
20335
20336     { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
20337 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6; }
20338 if test "${ac_cv_gnu_library_2_1+set}" = set; then
20339   echo $ECHO_N "(cached) $ECHO_C" >&6
20340 else
20341   cat >conftest.$ac_ext <<_ACEOF
20342 /* confdefs.h.  */
20343 _ACEOF
20344 cat confdefs.h >>conftest.$ac_ext
20345 cat >>conftest.$ac_ext <<_ACEOF
20346 /* end confdefs.h.  */
20347
20348 #include <features.h>
20349 #ifdef __GNU_LIBRARY__
20350  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
20351   Lucky GNU user
20352  #endif
20353 #endif
20354
20355 _ACEOF
20356 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20357   $EGREP "Lucky GNU user" >/dev/null 2>&1; then
20358   ac_cv_gnu_library_2_1=yes
20359 else
20360   ac_cv_gnu_library_2_1=no
20361 fi
20362 rm -f conftest*
20363
20364
20365
20366 fi
20367 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
20368 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6; }
20369
20370     GLIBC21="$ac_cv_gnu_library_2_1"
20371
20372
20373
20374
20375   { echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
20376 echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6; }
20377 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
20378   echo $ECHO_N "(cached) $ECHO_C" >&6
20379 else
20380
20381       if test "$cross_compiling" = yes; then
20382
20383           # Guess based on the CPU.
20384           case "$host_cpu" in
20385             alpha* | i3456786 | m68k | s390*)
20386               gt_cv_int_divbyzero_sigfpe="guessing yes";;
20387             *)
20388               gt_cv_int_divbyzero_sigfpe="guessing no";;
20389           esac
20390
20391 else
20392   cat >conftest.$ac_ext <<_ACEOF
20393 /* confdefs.h.  */
20394 _ACEOF
20395 cat confdefs.h >>conftest.$ac_ext
20396 cat >>conftest.$ac_ext <<_ACEOF
20397 /* end confdefs.h.  */
20398
20399 #include <stdlib.h>
20400 #include <signal.h>
20401
20402 static void
20403 #ifdef __cplusplus
20404 sigfpe_handler (int sig)
20405 #else
20406 sigfpe_handler (sig) int sig;
20407 #endif
20408 {
20409   /* Exit with code 0 if SIGFPE, with code 1 if any other signal.  */
20410   exit (sig != SIGFPE);
20411 }
20412
20413 int x = 1;
20414 int y = 0;
20415 int z;
20416 int nan;
20417
20418 int main ()
20419 {
20420   signal (SIGFPE, sigfpe_handler);
20421 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP.  */
20422 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
20423   signal (SIGTRAP, sigfpe_handler);
20424 #endif
20425 /* Linux/SPARC yields signal SIGILL.  */
20426 #if defined (__sparc__) && defined (__linux__)
20427   signal (SIGILL, sigfpe_handler);
20428 #endif
20429
20430   z = x / y;
20431   nan = y / y;
20432   exit (1);
20433 }
20434
20435 _ACEOF
20436 rm -f conftest$ac_exeext
20437 if { (ac_try="$ac_link"
20438 case "(($ac_try" in
20439   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20440   *) ac_try_echo=$ac_try;;
20441 esac
20442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20443   (eval "$ac_link") 2>&5
20444   ac_status=$?
20445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20446   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20447   { (case "(($ac_try" in
20448   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20449   *) ac_try_echo=$ac_try;;
20450 esac
20451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20452   (eval "$ac_try") 2>&5
20453   ac_status=$?
20454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20455   (exit $ac_status); }; }; then
20456   gt_cv_int_divbyzero_sigfpe=yes
20457 else
20458   echo "$as_me: program exited with status $ac_status" >&5
20459 echo "$as_me: failed program was:" >&5
20460 sed 's/^/| /' conftest.$ac_ext >&5
20461
20462 ( exit $ac_status )
20463 gt_cv_int_divbyzero_sigfpe=no
20464 fi
20465 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20466 fi
20467
20468
20469
20470 fi
20471 { echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
20472 echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6; }
20473   case "$gt_cv_int_divbyzero_sigfpe" in
20474     *yes) value=1;;
20475     *) value=0;;
20476   esac
20477
20478 cat >>confdefs.h <<_ACEOF
20479 #define INTDIV0_RAISES_SIGFPE $value
20480 _ACEOF
20481
20482
20483
20484   { echo "$as_me:$LINENO: checking for unsigned long long" >&5
20485 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; }
20486 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
20487   echo $ECHO_N "(cached) $ECHO_C" >&6
20488 else
20489   cat >conftest.$ac_ext <<_ACEOF
20490 /* confdefs.h.  */
20491 _ACEOF
20492 cat confdefs.h >>conftest.$ac_ext
20493 cat >>conftest.$ac_ext <<_ACEOF
20494 /* end confdefs.h.  */
20495 unsigned long long ull = 1ULL; int i = 63;
20496 int
20497 main ()
20498 {
20499 unsigned long long ullmax = (unsigned long long) -1;
20500      return ull << i | ull >> i | ullmax / ull | ullmax % ull;
20501   ;
20502   return 0;
20503 }
20504 _ACEOF
20505 rm -f conftest.$ac_objext conftest$ac_exeext
20506 if { (ac_try="$ac_link"
20507 case "(($ac_try" in
20508   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20509   *) ac_try_echo=$ac_try;;
20510 esac
20511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20512   (eval "$ac_link") 2>conftest.er1
20513   ac_status=$?
20514   grep -v '^ *+' conftest.er1 >conftest.err
20515   rm -f conftest.er1
20516   cat conftest.err >&5
20517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20518   (exit $ac_status); } && {
20519          test -z "$ac_cxx_werror_flag" ||
20520          test ! -s conftest.err
20521        } && test -s conftest$ac_exeext &&
20522        $as_test_x conftest$ac_exeext; then
20523   ac_cv_type_unsigned_long_long=yes
20524 else
20525   echo "$as_me: failed program was:" >&5
20526 sed 's/^/| /' conftest.$ac_ext >&5
20527
20528         ac_cv_type_unsigned_long_long=no
20529 fi
20530
20531 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20532       conftest$ac_exeext conftest.$ac_ext
20533 fi
20534 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
20535 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; }
20536   if test $ac_cv_type_unsigned_long_long = yes; then
20537
20538 cat >>confdefs.h <<\_ACEOF
20539 #define HAVE_UNSIGNED_LONG_LONG 1
20540 _ACEOF
20541
20542   fi
20543
20544
20545
20546
20547   if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
20548
20549     test $ac_cv_type_unsigned_long_long = yes \
20550       && ac_type='unsigned long long' \
20551       || ac_type='unsigned long'
20552
20553 cat >>confdefs.h <<_ACEOF
20554 #define uintmax_t $ac_type
20555 _ACEOF
20556
20557   else
20558
20559 cat >>confdefs.h <<\_ACEOF
20560 #define HAVE_UINTMAX_T 1
20561 _ACEOF
20562
20563   fi
20564
20565
20566   { echo "$as_me:$LINENO: checking for inttypes.h" >&5
20567 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
20568 if test "${gt_cv_header_inttypes_h+set}" = set; then
20569   echo $ECHO_N "(cached) $ECHO_C" >&6
20570 else
20571
20572     cat >conftest.$ac_ext <<_ACEOF
20573 /* confdefs.h.  */
20574 _ACEOF
20575 cat confdefs.h >>conftest.$ac_ext
20576 cat >>conftest.$ac_ext <<_ACEOF
20577 /* end confdefs.h.  */
20578 #include <sys/types.h>
20579 #include <inttypes.h>
20580 int
20581 main ()
20582 {
20583
20584   ;
20585   return 0;
20586 }
20587 _ACEOF
20588 rm -f conftest.$ac_objext
20589 if { (ac_try="$ac_compile"
20590 case "(($ac_try" in
20591   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20592   *) ac_try_echo=$ac_try;;
20593 esac
20594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20595   (eval "$ac_compile") 2>conftest.er1
20596   ac_status=$?
20597   grep -v '^ *+' conftest.er1 >conftest.err
20598   rm -f conftest.er1
20599   cat conftest.err >&5
20600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20601   (exit $ac_status); } && {
20602          test -z "$ac_cxx_werror_flag" ||
20603          test ! -s conftest.err
20604        } && test -s conftest.$ac_objext; then
20605   gt_cv_header_inttypes_h=yes
20606 else
20607   echo "$as_me: failed program was:" >&5
20608 sed 's/^/| /' conftest.$ac_ext >&5
20609
20610         gt_cv_header_inttypes_h=no
20611 fi
20612
20613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20614
20615 fi
20616 { echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
20617 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6; }
20618   if test $gt_cv_header_inttypes_h = yes; then
20619
20620 cat >>confdefs.h <<_ACEOF
20621 #define HAVE_INTTYPES_H 1
20622 _ACEOF
20623
20624   fi
20625
20626
20627
20628   if test $gt_cv_header_inttypes_h = yes; then
20629     { echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
20630 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6; }
20631 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
20632   echo $ECHO_N "(cached) $ECHO_C" >&6
20633 else
20634
20635         cat >conftest.$ac_ext <<_ACEOF
20636 /* confdefs.h.  */
20637 _ACEOF
20638 cat confdefs.h >>conftest.$ac_ext
20639 cat >>conftest.$ac_ext <<_ACEOF
20640 /* end confdefs.h.  */
20641 #include <inttypes.h>
20642 #ifdef PRId32
20643 char *p = PRId32;
20644 #endif
20645
20646 int
20647 main ()
20648 {
20649
20650   ;
20651   return 0;
20652 }
20653 _ACEOF
20654 rm -f conftest.$ac_objext
20655 if { (ac_try="$ac_compile"
20656 case "(($ac_try" in
20657   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20658   *) ac_try_echo=$ac_try;;
20659 esac
20660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20661   (eval "$ac_compile") 2>conftest.er1
20662   ac_status=$?
20663   grep -v '^ *+' conftest.er1 >conftest.err
20664   rm -f conftest.er1
20665   cat conftest.err >&5
20666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20667   (exit $ac_status); } && {
20668          test -z "$ac_cxx_werror_flag" ||
20669          test ! -s conftest.err
20670        } && test -s conftest.$ac_objext; then
20671   gt_cv_inttypes_pri_broken=no
20672 else
20673   echo "$as_me: failed program was:" >&5
20674 sed 's/^/| /' conftest.$ac_ext >&5
20675
20676         gt_cv_inttypes_pri_broken=yes
20677 fi
20678
20679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20680
20681 fi
20682 { echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
20683 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6; }
20684   fi
20685   if test "$gt_cv_inttypes_pri_broken" = yes; then
20686
20687 cat >>confdefs.h <<_ACEOF
20688 #define PRI_MACROS_BROKEN 1
20689 _ACEOF
20690
20691   fi
20692
20693
20694
20695 for ac_header in stdint.h
20696 do
20697 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20698 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20699   { echo "$as_me:$LINENO: checking for $ac_header" >&5
20700 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20701 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20702   echo $ECHO_N "(cached) $ECHO_C" >&6
20703 fi
20704 ac_res=`eval echo '${'$as_ac_Header'}'`
20705                { echo "$as_me:$LINENO: result: $ac_res" >&5
20706 echo "${ECHO_T}$ac_res" >&6; }
20707 else
20708   # Is the header compilable?
20709 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20710 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20711 cat >conftest.$ac_ext <<_ACEOF
20712 /* confdefs.h.  */
20713 _ACEOF
20714 cat confdefs.h >>conftest.$ac_ext
20715 cat >>conftest.$ac_ext <<_ACEOF
20716 /* end confdefs.h.  */
20717 $ac_includes_default
20718 #include <$ac_header>
20719 _ACEOF
20720 rm -f conftest.$ac_objext
20721 if { (ac_try="$ac_compile"
20722 case "(($ac_try" in
20723   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20724   *) ac_try_echo=$ac_try;;
20725 esac
20726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20727   (eval "$ac_compile") 2>conftest.er1
20728   ac_status=$?
20729   grep -v '^ *+' conftest.er1 >conftest.err
20730   rm -f conftest.er1
20731   cat conftest.err >&5
20732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20733   (exit $ac_status); } && {
20734          test -z "$ac_cxx_werror_flag" ||
20735          test ! -s conftest.err
20736        } && test -s conftest.$ac_objext; then
20737   ac_header_compiler=yes
20738 else
20739   echo "$as_me: failed program was:" >&5
20740 sed 's/^/| /' conftest.$ac_ext >&5
20741
20742         ac_header_compiler=no
20743 fi
20744
20745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20746 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20747 echo "${ECHO_T}$ac_header_compiler" >&6; }
20748
20749 # Is the header present?
20750 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20751 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20752 cat >conftest.$ac_ext <<_ACEOF
20753 /* confdefs.h.  */
20754 _ACEOF
20755 cat confdefs.h >>conftest.$ac_ext
20756 cat >>conftest.$ac_ext <<_ACEOF
20757 /* end confdefs.h.  */
20758 #include <$ac_header>
20759 _ACEOF
20760 if { (ac_try="$ac_cpp conftest.$ac_ext"
20761 case "(($ac_try" in
20762   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20763   *) ac_try_echo=$ac_try;;
20764 esac
20765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20766   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20767   ac_status=$?
20768   grep -v '^ *+' conftest.er1 >conftest.err
20769   rm -f conftest.er1
20770   cat conftest.err >&5
20771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20772   (exit $ac_status); } >/dev/null && {
20773          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
20774          test ! -s conftest.err
20775        }; then
20776   ac_header_preproc=yes
20777 else
20778   echo "$as_me: failed program was:" >&5
20779 sed 's/^/| /' conftest.$ac_ext >&5
20780
20781   ac_header_preproc=no
20782 fi
20783
20784 rm -f conftest.err conftest.$ac_ext
20785 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20786 echo "${ECHO_T}$ac_header_preproc" >&6; }
20787
20788 # So?  What about this header?
20789 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
20790   yes:no: )
20791     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20792 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20793     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20794 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20795     ac_header_preproc=yes
20796     ;;
20797   no:yes:* )
20798     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20799 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20800     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20801 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20802     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20803 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20804     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20805 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20806     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20807 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20808     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20809 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20810
20811     ;;
20812 esac
20813 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20814 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20815 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20816   echo $ECHO_N "(cached) $ECHO_C" >&6
20817 else
20818   eval "$as_ac_Header=\$ac_header_preproc"
20819 fi
20820 ac_res=`eval echo '${'$as_ac_Header'}'`
20821                { echo "$as_me:$LINENO: result: $ac_res" >&5
20822 echo "${ECHO_T}$ac_res" >&6; }
20823
20824 fi
20825 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20826   cat >>confdefs.h <<_ACEOF
20827 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20828 _ACEOF
20829
20830 fi
20831
20832 done
20833
20834     { echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
20835 echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6; }
20836   result=
20837   cat >conftest.$ac_ext <<_ACEOF
20838 /* confdefs.h.  */
20839 _ACEOF
20840 cat confdefs.h >>conftest.$ac_ext
20841 cat >>conftest.$ac_ext <<_ACEOF
20842 /* end confdefs.h.  */
20843
20844 #include <limits.h>
20845 #if HAVE_STDINT_H
20846 #include <stdint.h>
20847 #endif
20848 #ifdef SIZE_MAX
20849 Found it
20850 #endif
20851
20852 _ACEOF
20853 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20854   $EGREP "Found it" >/dev/null 2>&1; then
20855   result=yes
20856 fi
20857 rm -f conftest*
20858
20859   if test -z "$result"; then
20860                     if test "$cross_compiling" = yes; then
20861   # Depending upon the size, compute the lo and hi bounds.
20862 cat >conftest.$ac_ext <<_ACEOF
20863 /* confdefs.h.  */
20864 _ACEOF
20865 cat confdefs.h >>conftest.$ac_ext
20866 cat >>conftest.$ac_ext <<_ACEOF
20867 /* end confdefs.h.  */
20868 #include <stddef.h>
20869 int
20870 main ()
20871 {
20872 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
20873 test_array [0] = 0
20874
20875   ;
20876   return 0;
20877 }
20878 _ACEOF
20879 rm -f conftest.$ac_objext
20880 if { (ac_try="$ac_compile"
20881 case "(($ac_try" in
20882   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20883   *) ac_try_echo=$ac_try;;
20884 esac
20885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20886   (eval "$ac_compile") 2>conftest.er1
20887   ac_status=$?
20888   grep -v '^ *+' conftest.er1 >conftest.err
20889   rm -f conftest.er1
20890   cat conftest.err >&5
20891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20892   (exit $ac_status); } && {
20893          test -z "$ac_cxx_werror_flag" ||
20894          test ! -s conftest.err
20895        } && test -s conftest.$ac_objext; then
20896   ac_lo=0 ac_mid=0
20897   while :; do
20898     cat >conftest.$ac_ext <<_ACEOF
20899 /* confdefs.h.  */
20900 _ACEOF
20901 cat confdefs.h >>conftest.$ac_ext
20902 cat >>conftest.$ac_ext <<_ACEOF
20903 /* end confdefs.h.  */
20904 #include <stddef.h>
20905 int
20906 main ()
20907 {
20908 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
20909 test_array [0] = 0
20910
20911   ;
20912   return 0;
20913 }
20914 _ACEOF
20915 rm -f conftest.$ac_objext
20916 if { (ac_try="$ac_compile"
20917 case "(($ac_try" in
20918   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20919   *) ac_try_echo=$ac_try;;
20920 esac
20921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20922   (eval "$ac_compile") 2>conftest.er1
20923   ac_status=$?
20924   grep -v '^ *+' conftest.er1 >conftest.err
20925   rm -f conftest.er1
20926   cat conftest.err >&5
20927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20928   (exit $ac_status); } && {
20929          test -z "$ac_cxx_werror_flag" ||
20930          test ! -s conftest.err
20931        } && test -s conftest.$ac_objext; then
20932   ac_hi=$ac_mid; break
20933 else
20934   echo "$as_me: failed program was:" >&5
20935 sed 's/^/| /' conftest.$ac_ext >&5
20936
20937         ac_lo=`expr $ac_mid + 1`
20938                         if test $ac_lo -le $ac_mid; then
20939                           ac_lo= ac_hi=
20940                           break
20941                         fi
20942                         ac_mid=`expr 2 '*' $ac_mid + 1`
20943 fi
20944
20945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20946   done
20947 else
20948   echo "$as_me: failed program was:" >&5
20949 sed 's/^/| /' conftest.$ac_ext >&5
20950
20951         cat >conftest.$ac_ext <<_ACEOF
20952 /* confdefs.h.  */
20953 _ACEOF
20954 cat confdefs.h >>conftest.$ac_ext
20955 cat >>conftest.$ac_ext <<_ACEOF
20956 /* end confdefs.h.  */
20957 #include <stddef.h>
20958 int
20959 main ()
20960 {
20961 static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
20962 test_array [0] = 0
20963
20964   ;
20965   return 0;
20966 }
20967 _ACEOF
20968 rm -f conftest.$ac_objext
20969 if { (ac_try="$ac_compile"
20970 case "(($ac_try" in
20971   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20972   *) ac_try_echo=$ac_try;;
20973 esac
20974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20975   (eval "$ac_compile") 2>conftest.er1
20976   ac_status=$?
20977   grep -v '^ *+' conftest.er1 >conftest.err
20978   rm -f conftest.er1
20979   cat conftest.err >&5
20980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20981   (exit $ac_status); } && {
20982          test -z "$ac_cxx_werror_flag" ||
20983          test ! -s conftest.err
20984        } && test -s conftest.$ac_objext; then
20985   ac_hi=-1 ac_mid=-1
20986   while :; do
20987     cat >conftest.$ac_ext <<_ACEOF
20988 /* confdefs.h.  */
20989 _ACEOF
20990 cat confdefs.h >>conftest.$ac_ext
20991 cat >>conftest.$ac_ext <<_ACEOF
20992 /* end confdefs.h.  */
20993 #include <stddef.h>
20994 int
20995 main ()
20996 {
20997 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
20998 test_array [0] = 0
20999
21000   ;
21001   return 0;
21002 }
21003 _ACEOF
21004 rm -f conftest.$ac_objext
21005 if { (ac_try="$ac_compile"
21006 case "(($ac_try" in
21007   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21008   *) ac_try_echo=$ac_try;;
21009 esac
21010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21011   (eval "$ac_compile") 2>conftest.er1
21012   ac_status=$?
21013   grep -v '^ *+' conftest.er1 >conftest.err
21014   rm -f conftest.er1
21015   cat conftest.err >&5
21016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21017   (exit $ac_status); } && {
21018          test -z "$ac_cxx_werror_flag" ||
21019          test ! -s conftest.err
21020        } && test -s conftest.$ac_objext; then
21021   ac_lo=$ac_mid; break
21022 else
21023   echo "$as_me: failed program was:" >&5
21024 sed 's/^/| /' conftest.$ac_ext >&5
21025
21026         ac_hi=`expr '(' $ac_mid ')' - 1`
21027                         if test $ac_mid -le $ac_hi; then
21028                           ac_lo= ac_hi=
21029                           break
21030                         fi
21031                         ac_mid=`expr 2 '*' $ac_mid`
21032 fi
21033
21034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21035   done
21036 else
21037   echo "$as_me: failed program was:" >&5
21038 sed 's/^/| /' conftest.$ac_ext >&5
21039
21040         ac_lo= ac_hi=
21041 fi
21042
21043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21044 fi
21045
21046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21047 # Binary search between lo and hi bounds.
21048 while test "x$ac_lo" != "x$ac_hi"; do
21049   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21050   cat >conftest.$ac_ext <<_ACEOF
21051 /* confdefs.h.  */
21052 _ACEOF
21053 cat confdefs.h >>conftest.$ac_ext
21054 cat >>conftest.$ac_ext <<_ACEOF
21055 /* end confdefs.h.  */
21056 #include <stddef.h>
21057 int
21058 main ()
21059 {
21060 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
21061 test_array [0] = 0
21062
21063   ;
21064   return 0;
21065 }
21066 _ACEOF
21067 rm -f conftest.$ac_objext
21068 if { (ac_try="$ac_compile"
21069 case "(($ac_try" in
21070   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21071   *) ac_try_echo=$ac_try;;
21072 esac
21073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21074   (eval "$ac_compile") 2>conftest.er1
21075   ac_status=$?
21076   grep -v '^ *+' conftest.er1 >conftest.err
21077   rm -f conftest.er1
21078   cat conftest.err >&5
21079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21080   (exit $ac_status); } && {
21081          test -z "$ac_cxx_werror_flag" ||
21082          test ! -s conftest.err
21083        } && test -s conftest.$ac_objext; then
21084   ac_hi=$ac_mid
21085 else
21086   echo "$as_me: failed program was:" >&5
21087 sed 's/^/| /' conftest.$ac_ext >&5
21088
21089         ac_lo=`expr '(' $ac_mid ')' + 1`
21090 fi
21091
21092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21093 done
21094 case $ac_lo in
21095 ?*) res_hi=$ac_lo;;
21096 '') result=? ;;
21097 esac
21098 else
21099   cat >conftest.$ac_ext <<_ACEOF
21100 /* confdefs.h.  */
21101 _ACEOF
21102 cat confdefs.h >>conftest.$ac_ext
21103 cat >>conftest.$ac_ext <<_ACEOF
21104 /* end confdefs.h.  */
21105 #include <stddef.h>
21106 static long int longval () { return ~(size_t)0 / 10; }
21107 static unsigned long int ulongval () { return ~(size_t)0 / 10; }
21108 #include <stdio.h>
21109 #include <stdlib.h>
21110 int
21111 main ()
21112 {
21113
21114   FILE *f = fopen ("conftest.val", "w");
21115   if (! f)
21116     return 1;
21117   if ((~(size_t)0 / 10) < 0)
21118     {
21119       long int i = longval ();
21120       if (i != (~(size_t)0 / 10))
21121         return 1;
21122       fprintf (f, "%ld\n", i);
21123     }
21124   else
21125     {
21126       unsigned long int i = ulongval ();
21127       if (i != (~(size_t)0 / 10))
21128         return 1;
21129       fprintf (f, "%lu\n", i);
21130     }
21131   return ferror (f) || fclose (f) != 0;
21132
21133   ;
21134   return 0;
21135 }
21136 _ACEOF
21137 rm -f conftest$ac_exeext
21138 if { (ac_try="$ac_link"
21139 case "(($ac_try" in
21140   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21141   *) ac_try_echo=$ac_try;;
21142 esac
21143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21144   (eval "$ac_link") 2>&5
21145   ac_status=$?
21146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21147   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21148   { (case "(($ac_try" in
21149   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21150   *) ac_try_echo=$ac_try;;
21151 esac
21152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21153   (eval "$ac_try") 2>&5
21154   ac_status=$?
21155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21156   (exit $ac_status); }; }; then
21157   res_hi=`cat conftest.val`
21158 else
21159   echo "$as_me: program exited with status $ac_status" >&5
21160 echo "$as_me: failed program was:" >&5
21161 sed 's/^/| /' conftest.$ac_ext >&5
21162
21163 ( exit $ac_status )
21164 result=?
21165 fi
21166 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21167 fi
21168 rm -f conftest.val
21169
21170     if test "$cross_compiling" = yes; then
21171   # Depending upon the size, compute the lo and hi bounds.
21172 cat >conftest.$ac_ext <<_ACEOF
21173 /* confdefs.h.  */
21174 _ACEOF
21175 cat confdefs.h >>conftest.$ac_ext
21176 cat >>conftest.$ac_ext <<_ACEOF
21177 /* end confdefs.h.  */
21178 #include <stddef.h>
21179 int
21180 main ()
21181 {
21182 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
21183 test_array [0] = 0
21184
21185   ;
21186   return 0;
21187 }
21188 _ACEOF
21189 rm -f conftest.$ac_objext
21190 if { (ac_try="$ac_compile"
21191 case "(($ac_try" in
21192   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21193   *) ac_try_echo=$ac_try;;
21194 esac
21195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21196   (eval "$ac_compile") 2>conftest.er1
21197   ac_status=$?
21198   grep -v '^ *+' conftest.er1 >conftest.err
21199   rm -f conftest.er1
21200   cat conftest.err >&5
21201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21202   (exit $ac_status); } && {
21203          test -z "$ac_cxx_werror_flag" ||
21204          test ! -s conftest.err
21205        } && test -s conftest.$ac_objext; then
21206   ac_lo=0 ac_mid=0
21207   while :; do
21208     cat >conftest.$ac_ext <<_ACEOF
21209 /* confdefs.h.  */
21210 _ACEOF
21211 cat confdefs.h >>conftest.$ac_ext
21212 cat >>conftest.$ac_ext <<_ACEOF
21213 /* end confdefs.h.  */
21214 #include <stddef.h>
21215 int
21216 main ()
21217 {
21218 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
21219 test_array [0] = 0
21220
21221   ;
21222   return 0;
21223 }
21224 _ACEOF
21225 rm -f conftest.$ac_objext
21226 if { (ac_try="$ac_compile"
21227 case "(($ac_try" in
21228   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21229   *) ac_try_echo=$ac_try;;
21230 esac
21231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21232   (eval "$ac_compile") 2>conftest.er1
21233   ac_status=$?
21234   grep -v '^ *+' conftest.er1 >conftest.err
21235   rm -f conftest.er1
21236   cat conftest.err >&5
21237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21238   (exit $ac_status); } && {
21239          test -z "$ac_cxx_werror_flag" ||
21240          test ! -s conftest.err
21241        } && test -s conftest.$ac_objext; then
21242   ac_hi=$ac_mid; break
21243 else
21244   echo "$as_me: failed program was:" >&5
21245 sed 's/^/| /' conftest.$ac_ext >&5
21246
21247         ac_lo=`expr $ac_mid + 1`
21248                         if test $ac_lo -le $ac_mid; then
21249                           ac_lo= ac_hi=
21250                           break
21251                         fi
21252                         ac_mid=`expr 2 '*' $ac_mid + 1`
21253 fi
21254
21255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21256   done
21257 else
21258   echo "$as_me: failed program was:" >&5
21259 sed 's/^/| /' conftest.$ac_ext >&5
21260
21261         cat >conftest.$ac_ext <<_ACEOF
21262 /* confdefs.h.  */
21263 _ACEOF
21264 cat confdefs.h >>conftest.$ac_ext
21265 cat >>conftest.$ac_ext <<_ACEOF
21266 /* end confdefs.h.  */
21267 #include <stddef.h>
21268 int
21269 main ()
21270 {
21271 static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
21272 test_array [0] = 0
21273
21274   ;
21275   return 0;
21276 }
21277 _ACEOF
21278 rm -f conftest.$ac_objext
21279 if { (ac_try="$ac_compile"
21280 case "(($ac_try" in
21281   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21282   *) ac_try_echo=$ac_try;;
21283 esac
21284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21285   (eval "$ac_compile") 2>conftest.er1
21286   ac_status=$?
21287   grep -v '^ *+' conftest.er1 >conftest.err
21288   rm -f conftest.er1
21289   cat conftest.err >&5
21290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21291   (exit $ac_status); } && {
21292          test -z "$ac_cxx_werror_flag" ||
21293          test ! -s conftest.err
21294        } && test -s conftest.$ac_objext; then
21295   ac_hi=-1 ac_mid=-1
21296   while :; do
21297     cat >conftest.$ac_ext <<_ACEOF
21298 /* confdefs.h.  */
21299 _ACEOF
21300 cat confdefs.h >>conftest.$ac_ext
21301 cat >>conftest.$ac_ext <<_ACEOF
21302 /* end confdefs.h.  */
21303 #include <stddef.h>
21304 int
21305 main ()
21306 {
21307 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
21308 test_array [0] = 0
21309
21310   ;
21311   return 0;
21312 }
21313 _ACEOF
21314 rm -f conftest.$ac_objext
21315 if { (ac_try="$ac_compile"
21316 case "(($ac_try" in
21317   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21318   *) ac_try_echo=$ac_try;;
21319 esac
21320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21321   (eval "$ac_compile") 2>conftest.er1
21322   ac_status=$?
21323   grep -v '^ *+' conftest.er1 >conftest.err
21324   rm -f conftest.er1
21325   cat conftest.err >&5
21326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21327   (exit $ac_status); } && {
21328          test -z "$ac_cxx_werror_flag" ||
21329          test ! -s conftest.err
21330        } && test -s conftest.$ac_objext; then
21331   ac_lo=$ac_mid; break
21332 else
21333   echo "$as_me: failed program was:" >&5
21334 sed 's/^/| /' conftest.$ac_ext >&5
21335
21336         ac_hi=`expr '(' $ac_mid ')' - 1`
21337                         if test $ac_mid -le $ac_hi; then
21338                           ac_lo= ac_hi=
21339                           break
21340                         fi
21341                         ac_mid=`expr 2 '*' $ac_mid`
21342 fi
21343
21344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21345   done
21346 else
21347   echo "$as_me: failed program was:" >&5
21348 sed 's/^/| /' conftest.$ac_ext >&5
21349
21350         ac_lo= ac_hi=
21351 fi
21352
21353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21354 fi
21355
21356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21357 # Binary search between lo and hi bounds.
21358 while test "x$ac_lo" != "x$ac_hi"; do
21359   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21360   cat >conftest.$ac_ext <<_ACEOF
21361 /* confdefs.h.  */
21362 _ACEOF
21363 cat confdefs.h >>conftest.$ac_ext
21364 cat >>conftest.$ac_ext <<_ACEOF
21365 /* end confdefs.h.  */
21366 #include <stddef.h>
21367 int
21368 main ()
21369 {
21370 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
21371 test_array [0] = 0
21372
21373   ;
21374   return 0;
21375 }
21376 _ACEOF
21377 rm -f conftest.$ac_objext
21378 if { (ac_try="$ac_compile"
21379 case "(($ac_try" in
21380   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21381   *) ac_try_echo=$ac_try;;
21382 esac
21383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21384   (eval "$ac_compile") 2>conftest.er1
21385   ac_status=$?
21386   grep -v '^ *+' conftest.er1 >conftest.err
21387   rm -f conftest.er1
21388   cat conftest.err >&5
21389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21390   (exit $ac_status); } && {
21391          test -z "$ac_cxx_werror_flag" ||
21392          test ! -s conftest.err
21393        } && test -s conftest.$ac_objext; then
21394   ac_hi=$ac_mid
21395 else
21396   echo "$as_me: failed program was:" >&5
21397 sed 's/^/| /' conftest.$ac_ext >&5
21398
21399         ac_lo=`expr '(' $ac_mid ')' + 1`
21400 fi
21401
21402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21403 done
21404 case $ac_lo in
21405 ?*) res_lo=$ac_lo;;
21406 '') result=? ;;
21407 esac
21408 else
21409   cat >conftest.$ac_ext <<_ACEOF
21410 /* confdefs.h.  */
21411 _ACEOF
21412 cat confdefs.h >>conftest.$ac_ext
21413 cat >>conftest.$ac_ext <<_ACEOF
21414 /* end confdefs.h.  */
21415 #include <stddef.h>
21416 static long int longval () { return ~(size_t)0 % 10; }
21417 static unsigned long int ulongval () { return ~(size_t)0 % 10; }
21418 #include <stdio.h>
21419 #include <stdlib.h>
21420 int
21421 main ()
21422 {
21423
21424   FILE *f = fopen ("conftest.val", "w");
21425   if (! f)
21426     return 1;
21427   if ((~(size_t)0 % 10) < 0)
21428     {
21429       long int i = longval ();
21430       if (i != (~(size_t)0 % 10))
21431         return 1;
21432       fprintf (f, "%ld\n", i);
21433     }
21434   else
21435     {
21436       unsigned long int i = ulongval ();
21437       if (i != (~(size_t)0 % 10))
21438         return 1;
21439       fprintf (f, "%lu\n", i);
21440     }
21441   return ferror (f) || fclose (f) != 0;
21442
21443   ;
21444   return 0;
21445 }
21446 _ACEOF
21447 rm -f conftest$ac_exeext
21448 if { (ac_try="$ac_link"
21449 case "(($ac_try" in
21450   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21451   *) ac_try_echo=$ac_try;;
21452 esac
21453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21454   (eval "$ac_link") 2>&5
21455   ac_status=$?
21456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21457   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21458   { (case "(($ac_try" in
21459   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21460   *) ac_try_echo=$ac_try;;
21461 esac
21462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21463   (eval "$ac_try") 2>&5
21464   ac_status=$?
21465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21466   (exit $ac_status); }; }; then
21467   res_lo=`cat conftest.val`
21468 else
21469   echo "$as_me: program exited with status $ac_status" >&5
21470 echo "$as_me: failed program was:" >&5
21471 sed 's/^/| /' conftest.$ac_ext >&5
21472
21473 ( exit $ac_status )
21474 result=?
21475 fi
21476 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21477 fi
21478 rm -f conftest.val
21479
21480     if test "$cross_compiling" = yes; then
21481   # Depending upon the size, compute the lo and hi bounds.
21482 cat >conftest.$ac_ext <<_ACEOF
21483 /* confdefs.h.  */
21484 _ACEOF
21485 cat confdefs.h >>conftest.$ac_ext
21486 cat >>conftest.$ac_ext <<_ACEOF
21487 /* end confdefs.h.  */
21488 #include <stddef.h>
21489 int
21490 main ()
21491 {
21492 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
21493 test_array [0] = 0
21494
21495   ;
21496   return 0;
21497 }
21498 _ACEOF
21499 rm -f conftest.$ac_objext
21500 if { (ac_try="$ac_compile"
21501 case "(($ac_try" in
21502   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21503   *) ac_try_echo=$ac_try;;
21504 esac
21505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21506   (eval "$ac_compile") 2>conftest.er1
21507   ac_status=$?
21508   grep -v '^ *+' conftest.er1 >conftest.err
21509   rm -f conftest.er1
21510   cat conftest.err >&5
21511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21512   (exit $ac_status); } && {
21513          test -z "$ac_cxx_werror_flag" ||
21514          test ! -s conftest.err
21515        } && test -s conftest.$ac_objext; then
21516   ac_lo=0 ac_mid=0
21517   while :; do
21518     cat >conftest.$ac_ext <<_ACEOF
21519 /* confdefs.h.  */
21520 _ACEOF
21521 cat confdefs.h >>conftest.$ac_ext
21522 cat >>conftest.$ac_ext <<_ACEOF
21523 /* end confdefs.h.  */
21524 #include <stddef.h>
21525 int
21526 main ()
21527 {
21528 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
21529 test_array [0] = 0
21530
21531   ;
21532   return 0;
21533 }
21534 _ACEOF
21535 rm -f conftest.$ac_objext
21536 if { (ac_try="$ac_compile"
21537 case "(($ac_try" in
21538   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21539   *) ac_try_echo=$ac_try;;
21540 esac
21541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21542   (eval "$ac_compile") 2>conftest.er1
21543   ac_status=$?
21544   grep -v '^ *+' conftest.er1 >conftest.err
21545   rm -f conftest.er1
21546   cat conftest.err >&5
21547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21548   (exit $ac_status); } && {
21549          test -z "$ac_cxx_werror_flag" ||
21550          test ! -s conftest.err
21551        } && test -s conftest.$ac_objext; then
21552   ac_hi=$ac_mid; break
21553 else
21554   echo "$as_me: failed program was:" >&5
21555 sed 's/^/| /' conftest.$ac_ext >&5
21556
21557         ac_lo=`expr $ac_mid + 1`
21558                         if test $ac_lo -le $ac_mid; then
21559                           ac_lo= ac_hi=
21560                           break
21561                         fi
21562                         ac_mid=`expr 2 '*' $ac_mid + 1`
21563 fi
21564
21565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21566   done
21567 else
21568   echo "$as_me: failed program was:" >&5
21569 sed 's/^/| /' conftest.$ac_ext >&5
21570
21571         cat >conftest.$ac_ext <<_ACEOF
21572 /* confdefs.h.  */
21573 _ACEOF
21574 cat confdefs.h >>conftest.$ac_ext
21575 cat >>conftest.$ac_ext <<_ACEOF
21576 /* end confdefs.h.  */
21577 #include <stddef.h>
21578 int
21579 main ()
21580 {
21581 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
21582 test_array [0] = 0
21583
21584   ;
21585   return 0;
21586 }
21587 _ACEOF
21588 rm -f conftest.$ac_objext
21589 if { (ac_try="$ac_compile"
21590 case "(($ac_try" in
21591   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21592   *) ac_try_echo=$ac_try;;
21593 esac
21594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21595   (eval "$ac_compile") 2>conftest.er1
21596   ac_status=$?
21597   grep -v '^ *+' conftest.er1 >conftest.err
21598   rm -f conftest.er1
21599   cat conftest.err >&5
21600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21601   (exit $ac_status); } && {
21602          test -z "$ac_cxx_werror_flag" ||
21603          test ! -s conftest.err
21604        } && test -s conftest.$ac_objext; then
21605   ac_hi=-1 ac_mid=-1
21606   while :; do
21607     cat >conftest.$ac_ext <<_ACEOF
21608 /* confdefs.h.  */
21609 _ACEOF
21610 cat confdefs.h >>conftest.$ac_ext
21611 cat >>conftest.$ac_ext <<_ACEOF
21612 /* end confdefs.h.  */
21613 #include <stddef.h>
21614 int
21615 main ()
21616 {
21617 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
21618 test_array [0] = 0
21619
21620   ;
21621   return 0;
21622 }
21623 _ACEOF
21624 rm -f conftest.$ac_objext
21625 if { (ac_try="$ac_compile"
21626 case "(($ac_try" in
21627   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21628   *) ac_try_echo=$ac_try;;
21629 esac
21630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21631   (eval "$ac_compile") 2>conftest.er1
21632   ac_status=$?
21633   grep -v '^ *+' conftest.er1 >conftest.err
21634   rm -f conftest.er1
21635   cat conftest.err >&5
21636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21637   (exit $ac_status); } && {
21638          test -z "$ac_cxx_werror_flag" ||
21639          test ! -s conftest.err
21640        } && test -s conftest.$ac_objext; then
21641   ac_lo=$ac_mid; break
21642 else
21643   echo "$as_me: failed program was:" >&5
21644 sed 's/^/| /' conftest.$ac_ext >&5
21645
21646         ac_hi=`expr '(' $ac_mid ')' - 1`
21647                         if test $ac_mid -le $ac_hi; then
21648                           ac_lo= ac_hi=
21649                           break
21650                         fi
21651                         ac_mid=`expr 2 '*' $ac_mid`
21652 fi
21653
21654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21655   done
21656 else
21657   echo "$as_me: failed program was:" >&5
21658 sed 's/^/| /' conftest.$ac_ext >&5
21659
21660         ac_lo= ac_hi=
21661 fi
21662
21663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21664 fi
21665
21666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21667 # Binary search between lo and hi bounds.
21668 while test "x$ac_lo" != "x$ac_hi"; do
21669   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21670   cat >conftest.$ac_ext <<_ACEOF
21671 /* confdefs.h.  */
21672 _ACEOF
21673 cat confdefs.h >>conftest.$ac_ext
21674 cat >>conftest.$ac_ext <<_ACEOF
21675 /* end confdefs.h.  */
21676 #include <stddef.h>
21677 int
21678 main ()
21679 {
21680 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
21681 test_array [0] = 0
21682
21683   ;
21684   return 0;
21685 }
21686 _ACEOF
21687 rm -f conftest.$ac_objext
21688 if { (ac_try="$ac_compile"
21689 case "(($ac_try" in
21690   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21691   *) ac_try_echo=$ac_try;;
21692 esac
21693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21694   (eval "$ac_compile") 2>conftest.er1
21695   ac_status=$?
21696   grep -v '^ *+' conftest.er1 >conftest.err
21697   rm -f conftest.er1
21698   cat conftest.err >&5
21699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21700   (exit $ac_status); } && {
21701          test -z "$ac_cxx_werror_flag" ||
21702          test ! -s conftest.err
21703        } && test -s conftest.$ac_objext; then
21704   ac_hi=$ac_mid
21705 else
21706   echo "$as_me: failed program was:" >&5
21707 sed 's/^/| /' conftest.$ac_ext >&5
21708
21709         ac_lo=`expr '(' $ac_mid ')' + 1`
21710 fi
21711
21712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21713 done
21714 case $ac_lo in
21715 ?*) fits_in_uint=$ac_lo;;
21716 '') result=? ;;
21717 esac
21718 else
21719   cat >conftest.$ac_ext <<_ACEOF
21720 /* confdefs.h.  */
21721 _ACEOF
21722 cat confdefs.h >>conftest.$ac_ext
21723 cat >>conftest.$ac_ext <<_ACEOF
21724 /* end confdefs.h.  */
21725 #include <stddef.h>
21726 static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
21727 static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
21728 #include <stdio.h>
21729 #include <stdlib.h>
21730 int
21731 main ()
21732 {
21733
21734   FILE *f = fopen ("conftest.val", "w");
21735   if (! f)
21736     return 1;
21737   if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
21738     {
21739       long int i = longval ();
21740       if (i != (sizeof (size_t) <= sizeof (unsigned int)))
21741         return 1;
21742       fprintf (f, "%ld\n", i);
21743     }
21744   else
21745     {
21746       unsigned long int i = ulongval ();
21747       if (i != (sizeof (size_t) <= sizeof (unsigned int)))
21748         return 1;
21749       fprintf (f, "%lu\n", i);
21750     }
21751   return ferror (f) || fclose (f) != 0;
21752
21753   ;
21754   return 0;
21755 }
21756 _ACEOF
21757 rm -f conftest$ac_exeext
21758 if { (ac_try="$ac_link"
21759 case "(($ac_try" in
21760   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21761   *) ac_try_echo=$ac_try;;
21762 esac
21763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21764   (eval "$ac_link") 2>&5
21765   ac_status=$?
21766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21767   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21768   { (case "(($ac_try" in
21769   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21770   *) ac_try_echo=$ac_try;;
21771 esac
21772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21773   (eval "$ac_try") 2>&5
21774   ac_status=$?
21775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21776   (exit $ac_status); }; }; then
21777   fits_in_uint=`cat conftest.val`
21778 else
21779   echo "$as_me: program exited with status $ac_status" >&5
21780 echo "$as_me: failed program was:" >&5
21781 sed 's/^/| /' conftest.$ac_ext >&5
21782
21783 ( exit $ac_status )
21784 result=?
21785 fi
21786 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21787 fi
21788 rm -f conftest.val
21789
21790     if test "$fits_in_uint" = 1; then
21791                   cat >conftest.$ac_ext <<_ACEOF
21792 /* confdefs.h.  */
21793 _ACEOF
21794 cat confdefs.h >>conftest.$ac_ext
21795 cat >>conftest.$ac_ext <<_ACEOF
21796 /* end confdefs.h.  */
21797 #include <stddef.h>
21798         extern size_t foo;
21799         extern unsigned long foo;
21800
21801 int
21802 main ()
21803 {
21804
21805   ;
21806   return 0;
21807 }
21808 _ACEOF
21809 rm -f conftest.$ac_objext
21810 if { (ac_try="$ac_compile"
21811 case "(($ac_try" in
21812   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21813   *) ac_try_echo=$ac_try;;
21814 esac
21815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21816   (eval "$ac_compile") 2>conftest.er1
21817   ac_status=$?
21818   grep -v '^ *+' conftest.er1 >conftest.err
21819   rm -f conftest.er1
21820   cat conftest.err >&5
21821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21822   (exit $ac_status); } && {
21823          test -z "$ac_cxx_werror_flag" ||
21824          test ! -s conftest.err
21825        } && test -s conftest.$ac_objext; then
21826   fits_in_uint=0
21827 else
21828   echo "$as_me: failed program was:" >&5
21829 sed 's/^/| /' conftest.$ac_ext >&5
21830
21831
21832 fi
21833
21834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21835     fi
21836     if test -z "$result"; then
21837       if test "$fits_in_uint" = 1; then
21838         result="$res_hi$res_lo"U
21839       else
21840         result="$res_hi$res_lo"UL
21841       fi
21842     else
21843             result='~(size_t)0'
21844     fi
21845   fi
21846   { echo "$as_me:$LINENO: result: $result" >&5
21847 echo "${ECHO_T}$result" >&6; }
21848   if test "$result" != yes; then
21849
21850 cat >>confdefs.h <<_ACEOF
21851 #define SIZE_MAX $result
21852 _ACEOF
21853
21854   fi
21855
21856
21857
21858
21859
21860 for ac_header in stdint.h
21861 do
21862 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21863 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21864   { echo "$as_me:$LINENO: checking for $ac_header" >&5
21865 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21866 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21867   echo $ECHO_N "(cached) $ECHO_C" >&6
21868 fi
21869 ac_res=`eval echo '${'$as_ac_Header'}'`
21870                { echo "$as_me:$LINENO: result: $ac_res" >&5
21871 echo "${ECHO_T}$ac_res" >&6; }
21872 else
21873   # Is the header compilable?
21874 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21875 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21876 cat >conftest.$ac_ext <<_ACEOF
21877 /* confdefs.h.  */
21878 _ACEOF
21879 cat confdefs.h >>conftest.$ac_ext
21880 cat >>conftest.$ac_ext <<_ACEOF
21881 /* end confdefs.h.  */
21882 $ac_includes_default
21883 #include <$ac_header>
21884 _ACEOF
21885 rm -f conftest.$ac_objext
21886 if { (ac_try="$ac_compile"
21887 case "(($ac_try" in
21888   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21889   *) ac_try_echo=$ac_try;;
21890 esac
21891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21892   (eval "$ac_compile") 2>conftest.er1
21893   ac_status=$?
21894   grep -v '^ *+' conftest.er1 >conftest.err
21895   rm -f conftest.er1
21896   cat conftest.err >&5
21897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21898   (exit $ac_status); } && {
21899          test -z "$ac_cxx_werror_flag" ||
21900          test ! -s conftest.err
21901        } && test -s conftest.$ac_objext; then
21902   ac_header_compiler=yes
21903 else
21904   echo "$as_me: failed program was:" >&5
21905 sed 's/^/| /' conftest.$ac_ext >&5
21906
21907         ac_header_compiler=no
21908 fi
21909
21910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21911 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21912 echo "${ECHO_T}$ac_header_compiler" >&6; }
21913
21914 # Is the header present?
21915 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21916 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21917 cat >conftest.$ac_ext <<_ACEOF
21918 /* confdefs.h.  */
21919 _ACEOF
21920 cat confdefs.h >>conftest.$ac_ext
21921 cat >>conftest.$ac_ext <<_ACEOF
21922 /* end confdefs.h.  */
21923 #include <$ac_header>
21924 _ACEOF
21925 if { (ac_try="$ac_cpp conftest.$ac_ext"
21926 case "(($ac_try" in
21927   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21928   *) ac_try_echo=$ac_try;;
21929 esac
21930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21931   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21932   ac_status=$?
21933   grep -v '^ *+' conftest.er1 >conftest.err
21934   rm -f conftest.er1
21935   cat conftest.err >&5
21936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21937   (exit $ac_status); } >/dev/null && {
21938          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
21939          test ! -s conftest.err
21940        }; then
21941   ac_header_preproc=yes
21942 else
21943   echo "$as_me: failed program was:" >&5
21944 sed 's/^/| /' conftest.$ac_ext >&5
21945
21946   ac_header_preproc=no
21947 fi
21948
21949 rm -f conftest.err conftest.$ac_ext
21950 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21951 echo "${ECHO_T}$ac_header_preproc" >&6; }
21952
21953 # So?  What about this header?
21954 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
21955   yes:no: )
21956     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21957 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21958     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21959 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21960     ac_header_preproc=yes
21961     ;;
21962   no:yes:* )
21963     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21964 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21965     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21966 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21967     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21968 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21969     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21970 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21971     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21972 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21973     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21974 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21975
21976     ;;
21977 esac
21978 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21979 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21980 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21981   echo $ECHO_N "(cached) $ECHO_C" >&6
21982 else
21983   eval "$as_ac_Header=\$ac_header_preproc"
21984 fi
21985 ac_res=`eval echo '${'$as_ac_Header'}'`
21986                { echo "$as_me:$LINENO: result: $ac_res" >&5
21987 echo "${ECHO_T}$ac_res" >&6; }
21988
21989 fi
21990 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21991   cat >>confdefs.h <<_ACEOF
21992 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21993 _ACEOF
21994
21995 fi
21996
21997 done
21998
21999
22000
22001
22002
22003
22004
22005
22006   { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
22007 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
22008 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
22009   echo $ECHO_N "(cached) $ECHO_C" >&6
22010 else
22011   cat >conftest.$ac_ext <<_ACEOF
22012 /* confdefs.h.  */
22013 _ACEOF
22014 cat confdefs.h >>conftest.$ac_ext
22015 cat >>conftest.$ac_ext <<_ACEOF
22016 /* end confdefs.h.  */
22017 $ac_includes_default
22018 typedef ptrdiff_t ac__type_new_;
22019 int
22020 main ()
22021 {
22022 if ((ac__type_new_ *) 0)
22023   return 0;
22024 if (sizeof (ac__type_new_))
22025   return 0;
22026   ;
22027   return 0;
22028 }
22029 _ACEOF
22030 rm -f conftest.$ac_objext
22031 if { (ac_try="$ac_compile"
22032 case "(($ac_try" in
22033   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22034   *) ac_try_echo=$ac_try;;
22035 esac
22036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22037   (eval "$ac_compile") 2>conftest.er1
22038   ac_status=$?
22039   grep -v '^ *+' conftest.er1 >conftest.err
22040   rm -f conftest.er1
22041   cat conftest.err >&5
22042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22043   (exit $ac_status); } && {
22044          test -z "$ac_cxx_werror_flag" ||
22045          test ! -s conftest.err
22046        } && test -s conftest.$ac_objext; then
22047   ac_cv_type_ptrdiff_t=yes
22048 else
22049   echo "$as_me: failed program was:" >&5
22050 sed 's/^/| /' conftest.$ac_ext >&5
22051
22052         ac_cv_type_ptrdiff_t=no
22053 fi
22054
22055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22056 fi
22057 { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
22058 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
22059 if test $ac_cv_type_ptrdiff_t = yes; then
22060   :
22061 else
22062
22063 cat >>confdefs.h <<\_ACEOF
22064 #define ptrdiff_t long
22065 _ACEOF
22066
22067
22068 fi
22069
22070
22071
22072
22073
22074
22075
22076
22077
22078
22079
22080 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
22081 stdlib.h string.h unistd.h sys/param.h
22082 do
22083 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22084 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22085   { echo "$as_me:$LINENO: checking for $ac_header" >&5
22086 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22087 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22088   echo $ECHO_N "(cached) $ECHO_C" >&6
22089 fi
22090 ac_res=`eval echo '${'$as_ac_Header'}'`
22091                { echo "$as_me:$LINENO: result: $ac_res" >&5
22092 echo "${ECHO_T}$ac_res" >&6; }
22093 else
22094   # Is the header compilable?
22095 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22096 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22097 cat >conftest.$ac_ext <<_ACEOF
22098 /* confdefs.h.  */
22099 _ACEOF
22100 cat confdefs.h >>conftest.$ac_ext
22101 cat >>conftest.$ac_ext <<_ACEOF
22102 /* end confdefs.h.  */
22103 $ac_includes_default
22104 #include <$ac_header>
22105 _ACEOF
22106 rm -f conftest.$ac_objext
22107 if { (ac_try="$ac_compile"
22108 case "(($ac_try" in
22109   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22110   *) ac_try_echo=$ac_try;;
22111 esac
22112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22113   (eval "$ac_compile") 2>conftest.er1
22114   ac_status=$?
22115   grep -v '^ *+' conftest.er1 >conftest.err
22116   rm -f conftest.er1
22117   cat conftest.err >&5
22118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22119   (exit $ac_status); } && {
22120          test -z "$ac_cxx_werror_flag" ||
22121          test ! -s conftest.err
22122        } && test -s conftest.$ac_objext; then
22123   ac_header_compiler=yes
22124 else
22125   echo "$as_me: failed program was:" >&5
22126 sed 's/^/| /' conftest.$ac_ext >&5
22127
22128         ac_header_compiler=no
22129 fi
22130
22131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22132 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22133 echo "${ECHO_T}$ac_header_compiler" >&6; }
22134
22135 # Is the header present?
22136 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22137 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22138 cat >conftest.$ac_ext <<_ACEOF
22139 /* confdefs.h.  */
22140 _ACEOF
22141 cat confdefs.h >>conftest.$ac_ext
22142 cat >>conftest.$ac_ext <<_ACEOF
22143 /* end confdefs.h.  */
22144 #include <$ac_header>
22145 _ACEOF
22146 if { (ac_try="$ac_cpp conftest.$ac_ext"
22147 case "(($ac_try" in
22148   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22149   *) ac_try_echo=$ac_try;;
22150 esac
22151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22152   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22153   ac_status=$?
22154   grep -v '^ *+' conftest.er1 >conftest.err
22155   rm -f conftest.er1
22156   cat conftest.err >&5
22157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22158   (exit $ac_status); } >/dev/null && {
22159          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
22160          test ! -s conftest.err
22161        }; then
22162   ac_header_preproc=yes
22163 else
22164   echo "$as_me: failed program was:" >&5
22165 sed 's/^/| /' conftest.$ac_ext >&5
22166
22167   ac_header_preproc=no
22168 fi
22169
22170 rm -f conftest.err conftest.$ac_ext
22171 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22172 echo "${ECHO_T}$ac_header_preproc" >&6; }
22173
22174 # So?  What about this header?
22175 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
22176   yes:no: )
22177     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22178 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22179     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22180 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22181     ac_header_preproc=yes
22182     ;;
22183   no:yes:* )
22184     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22185 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22186     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22187 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22188     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22189 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22190     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22191 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22192     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22193 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22194     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22195 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22196
22197     ;;
22198 esac
22199 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22200 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22201 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22202   echo $ECHO_N "(cached) $ECHO_C" >&6
22203 else
22204   eval "$as_ac_Header=\$ac_header_preproc"
22205 fi
22206 ac_res=`eval echo '${'$as_ac_Header'}'`
22207                { echo "$as_me:$LINENO: result: $ac_res" >&5
22208 echo "${ECHO_T}$ac_res" >&6; }
22209
22210 fi
22211 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22212   cat >>confdefs.h <<_ACEOF
22213 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22214 _ACEOF
22215
22216 fi
22217
22218 done
22219
22220
22221
22222
22223
22224
22225
22226
22227
22228
22229
22230
22231
22232
22233
22234
22235
22236
22237
22238
22239
22240
22241
22242
22243 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
22244 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
22245 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
22246 __fsetlocking
22247 do
22248 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22249 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22250 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22251 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22252   echo $ECHO_N "(cached) $ECHO_C" >&6
22253 else
22254   cat >conftest.$ac_ext <<_ACEOF
22255 /* confdefs.h.  */
22256 _ACEOF
22257 cat confdefs.h >>conftest.$ac_ext
22258 cat >>conftest.$ac_ext <<_ACEOF
22259 /* end confdefs.h.  */
22260 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22261    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22262 #define $ac_func innocuous_$ac_func
22263
22264 /* System header to define __stub macros and hopefully few prototypes,
22265     which can conflict with char $ac_func (); below.
22266     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22267     <limits.h> exists even on freestanding compilers.  */
22268
22269 #ifdef __STDC__
22270 # include <limits.h>
22271 #else
22272 # include <assert.h>
22273 #endif
22274
22275 #undef $ac_func
22276
22277 /* Override any GCC internal prototype to avoid an error.
22278    Use char because int might match the return type of a GCC
22279    builtin and then its argument prototype would still apply.  */
22280 #ifdef __cplusplus
22281 extern "C"
22282 #endif
22283 char $ac_func ();
22284 /* The GNU C library defines this for functions which it implements
22285     to always fail with ENOSYS.  Some functions are actually named
22286     something starting with __ and the normal name is an alias.  */
22287 #if defined __stub_$ac_func || defined __stub___$ac_func
22288 choke me
22289 #endif
22290
22291 int
22292 main ()
22293 {
22294 return $ac_func ();
22295   ;
22296   return 0;
22297 }
22298 _ACEOF
22299 rm -f conftest.$ac_objext conftest$ac_exeext
22300 if { (ac_try="$ac_link"
22301 case "(($ac_try" in
22302   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22303   *) ac_try_echo=$ac_try;;
22304 esac
22305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22306   (eval "$ac_link") 2>conftest.er1
22307   ac_status=$?
22308   grep -v '^ *+' conftest.er1 >conftest.err
22309   rm -f conftest.er1
22310   cat conftest.err >&5
22311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22312   (exit $ac_status); } && {
22313          test -z "$ac_cxx_werror_flag" ||
22314          test ! -s conftest.err
22315        } && test -s conftest$ac_exeext &&
22316        $as_test_x conftest$ac_exeext; then
22317   eval "$as_ac_var=yes"
22318 else
22319   echo "$as_me: failed program was:" >&5
22320 sed 's/^/| /' conftest.$ac_ext >&5
22321
22322         eval "$as_ac_var=no"
22323 fi
22324
22325 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22326       conftest$ac_exeext conftest.$ac_ext
22327 fi
22328 ac_res=`eval echo '${'$as_ac_var'}'`
22329                { echo "$as_me:$LINENO: result: $ac_res" >&5
22330 echo "${ECHO_T}$ac_res" >&6; }
22331 if test `eval echo '${'$as_ac_var'}'` = yes; then
22332   cat >>confdefs.h <<_ACEOF
22333 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22334 _ACEOF
22335
22336 fi
22337 done
22338
22339
22340
22341   { echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
22342 echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6; }
22343 if test "${ac_cv_have_decl__snprintf+set}" = set; then
22344   echo $ECHO_N "(cached) $ECHO_C" >&6
22345 else
22346   cat >conftest.$ac_ext <<_ACEOF
22347 /* confdefs.h.  */
22348 _ACEOF
22349 cat confdefs.h >>conftest.$ac_ext
22350 cat >>conftest.$ac_ext <<_ACEOF
22351 /* end confdefs.h.  */
22352 #include <stdio.h>
22353 int
22354 main ()
22355 {
22356
22357 #ifndef _snprintf
22358   char *p = (char *) _snprintf;
22359 #endif
22360
22361   ;
22362   return 0;
22363 }
22364 _ACEOF
22365 rm -f conftest.$ac_objext
22366 if { (ac_try="$ac_compile"
22367 case "(($ac_try" in
22368   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22369   *) ac_try_echo=$ac_try;;
22370 esac
22371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22372   (eval "$ac_compile") 2>conftest.er1
22373   ac_status=$?
22374   grep -v '^ *+' conftest.er1 >conftest.err
22375   rm -f conftest.er1
22376   cat conftest.err >&5
22377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22378   (exit $ac_status); } && {
22379          test -z "$ac_cxx_werror_flag" ||
22380          test ! -s conftest.err
22381        } && test -s conftest.$ac_objext; then
22382   ac_cv_have_decl__snprintf=yes
22383 else
22384   echo "$as_me: failed program was:" >&5
22385 sed 's/^/| /' conftest.$ac_ext >&5
22386
22387         ac_cv_have_decl__snprintf=no
22388 fi
22389
22390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22391 fi
22392 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
22393 echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6; }
22394   if test $ac_cv_have_decl__snprintf = yes; then
22395     gt_value=1
22396   else
22397     gt_value=0
22398   fi
22399
22400 cat >>confdefs.h <<_ACEOF
22401 #define HAVE_DECL__SNPRINTF $gt_value
22402 _ACEOF
22403
22404
22405
22406   { echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
22407 echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6; }
22408 if test "${ac_cv_have_decl__snwprintf+set}" = set; then
22409   echo $ECHO_N "(cached) $ECHO_C" >&6
22410 else
22411   cat >conftest.$ac_ext <<_ACEOF
22412 /* confdefs.h.  */
22413 _ACEOF
22414 cat confdefs.h >>conftest.$ac_ext
22415 cat >>conftest.$ac_ext <<_ACEOF
22416 /* end confdefs.h.  */
22417 #include <stdio.h>
22418 int
22419 main ()
22420 {
22421
22422 #ifndef _snwprintf
22423   char *p = (char *) _snwprintf;
22424 #endif
22425
22426   ;
22427   return 0;
22428 }
22429 _ACEOF
22430 rm -f conftest.$ac_objext
22431 if { (ac_try="$ac_compile"
22432 case "(($ac_try" in
22433   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22434   *) ac_try_echo=$ac_try;;
22435 esac
22436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22437   (eval "$ac_compile") 2>conftest.er1
22438   ac_status=$?
22439   grep -v '^ *+' conftest.er1 >conftest.err
22440   rm -f conftest.er1
22441   cat conftest.err >&5
22442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22443   (exit $ac_status); } && {
22444          test -z "$ac_cxx_werror_flag" ||
22445          test ! -s conftest.err
22446        } && test -s conftest.$ac_objext; then
22447   ac_cv_have_decl__snwprintf=yes
22448 else
22449   echo "$as_me: failed program was:" >&5
22450 sed 's/^/| /' conftest.$ac_ext >&5
22451
22452         ac_cv_have_decl__snwprintf=no
22453 fi
22454
22455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22456 fi
22457 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
22458 echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6; }
22459   if test $ac_cv_have_decl__snwprintf = yes; then
22460     gt_value=1
22461   else
22462     gt_value=0
22463   fi
22464
22465 cat >>confdefs.h <<_ACEOF
22466 #define HAVE_DECL__SNWPRINTF $gt_value
22467 _ACEOF
22468
22469
22470
22471
22472   { echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
22473 echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6; }
22474 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
22475   echo $ECHO_N "(cached) $ECHO_C" >&6
22476 else
22477   cat >conftest.$ac_ext <<_ACEOF
22478 /* confdefs.h.  */
22479 _ACEOF
22480 cat confdefs.h >>conftest.$ac_ext
22481 cat >>conftest.$ac_ext <<_ACEOF
22482 /* end confdefs.h.  */
22483 #include <stdio.h>
22484 int
22485 main ()
22486 {
22487
22488 #ifndef feof_unlocked
22489   char *p = (char *) feof_unlocked;
22490 #endif
22491
22492   ;
22493   return 0;
22494 }
22495 _ACEOF
22496 rm -f conftest.$ac_objext
22497 if { (ac_try="$ac_compile"
22498 case "(($ac_try" in
22499   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22500   *) ac_try_echo=$ac_try;;
22501 esac
22502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22503   (eval "$ac_compile") 2>conftest.er1
22504   ac_status=$?
22505   grep -v '^ *+' conftest.er1 >conftest.err
22506   rm -f conftest.er1
22507   cat conftest.err >&5
22508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22509   (exit $ac_status); } && {
22510          test -z "$ac_cxx_werror_flag" ||
22511          test ! -s conftest.err
22512        } && test -s conftest.$ac_objext; then
22513   ac_cv_have_decl_feof_unlocked=yes
22514 else
22515   echo "$as_me: failed program was:" >&5
22516 sed 's/^/| /' conftest.$ac_ext >&5
22517
22518         ac_cv_have_decl_feof_unlocked=no
22519 fi
22520
22521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22522 fi
22523 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
22524 echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6; }
22525   if test $ac_cv_have_decl_feof_unlocked = yes; then
22526     gt_value=1
22527   else
22528     gt_value=0
22529   fi
22530
22531 cat >>confdefs.h <<_ACEOF
22532 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
22533 _ACEOF
22534
22535
22536
22537   { echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
22538 echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6; }
22539 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
22540   echo $ECHO_N "(cached) $ECHO_C" >&6
22541 else
22542   cat >conftest.$ac_ext <<_ACEOF
22543 /* confdefs.h.  */
22544 _ACEOF
22545 cat confdefs.h >>conftest.$ac_ext
22546 cat >>conftest.$ac_ext <<_ACEOF
22547 /* end confdefs.h.  */
22548 #include <stdio.h>
22549 int
22550 main ()
22551 {
22552
22553 #ifndef fgets_unlocked
22554   char *p = (char *) fgets_unlocked;
22555 #endif
22556
22557   ;
22558   return 0;
22559 }
22560 _ACEOF
22561 rm -f conftest.$ac_objext
22562 if { (ac_try="$ac_compile"
22563 case "(($ac_try" in
22564   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22565   *) ac_try_echo=$ac_try;;
22566 esac
22567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22568   (eval "$ac_compile") 2>conftest.er1
22569   ac_status=$?
22570   grep -v '^ *+' conftest.er1 >conftest.err
22571   rm -f conftest.er1
22572   cat conftest.err >&5
22573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22574   (exit $ac_status); } && {
22575          test -z "$ac_cxx_werror_flag" ||
22576          test ! -s conftest.err
22577        } && test -s conftest.$ac_objext; then
22578   ac_cv_have_decl_fgets_unlocked=yes
22579 else
22580   echo "$as_me: failed program was:" >&5
22581 sed 's/^/| /' conftest.$ac_ext >&5
22582
22583         ac_cv_have_decl_fgets_unlocked=no
22584 fi
22585
22586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22587 fi
22588 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
22589 echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6; }
22590   if test $ac_cv_have_decl_fgets_unlocked = yes; then
22591     gt_value=1
22592   else
22593     gt_value=0
22594   fi
22595
22596 cat >>confdefs.h <<_ACEOF
22597 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
22598 _ACEOF
22599
22600
22601
22602   { echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
22603 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6; }
22604 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
22605   echo $ECHO_N "(cached) $ECHO_C" >&6
22606 else
22607   cat >conftest.$ac_ext <<_ACEOF
22608 /* confdefs.h.  */
22609 _ACEOF
22610 cat confdefs.h >>conftest.$ac_ext
22611 cat >>conftest.$ac_ext <<_ACEOF
22612 /* end confdefs.h.  */
22613 #include <stdio.h>
22614 int
22615 main ()
22616 {
22617
22618 #ifndef getc_unlocked
22619   char *p = (char *) getc_unlocked;
22620 #endif
22621
22622   ;
22623   return 0;
22624 }
22625 _ACEOF
22626 rm -f conftest.$ac_objext
22627 if { (ac_try="$ac_compile"
22628 case "(($ac_try" in
22629   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22630   *) ac_try_echo=$ac_try;;
22631 esac
22632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22633   (eval "$ac_compile") 2>conftest.er1
22634   ac_status=$?
22635   grep -v '^ *+' conftest.er1 >conftest.err
22636   rm -f conftest.er1
22637   cat conftest.err >&5
22638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22639   (exit $ac_status); } && {
22640          test -z "$ac_cxx_werror_flag" ||
22641          test ! -s conftest.err
22642        } && test -s conftest.$ac_objext; then
22643   ac_cv_have_decl_getc_unlocked=yes
22644 else
22645   echo "$as_me: failed program was:" >&5
22646 sed 's/^/| /' conftest.$ac_ext >&5
22647
22648         ac_cv_have_decl_getc_unlocked=no
22649 fi
22650
22651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22652 fi
22653 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
22654 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6; }
22655   if test $ac_cv_have_decl_getc_unlocked = yes; then
22656     gt_value=1
22657   else
22658     gt_value=0
22659   fi
22660
22661 cat >>confdefs.h <<_ACEOF
22662 #define HAVE_DECL_GETC_UNLOCKED $gt_value
22663 _ACEOF
22664
22665
22666
22667   case $gt_cv_func_printf_posix in
22668     *yes) HAVE_POSIX_PRINTF=1 ;;
22669     *) HAVE_POSIX_PRINTF=0 ;;
22670   esac
22671
22672   if test "$ac_cv_func_asprintf" = yes; then
22673     HAVE_ASPRINTF=1
22674   else
22675     HAVE_ASPRINTF=0
22676   fi
22677
22678   if test "$ac_cv_func_snprintf" = yes; then
22679     HAVE_SNPRINTF=1
22680   else
22681     HAVE_SNPRINTF=0
22682   fi
22683
22684   if test "$ac_cv_func_wprintf" = yes; then
22685     HAVE_WPRINTF=1
22686   else
22687     HAVE_WPRINTF=0
22688   fi
22689
22690
22691
22692
22693
22694
22695
22696           am_save_CPPFLAGS="$CPPFLAGS"
22697
22698   for element in $INCICONV; do
22699     haveit=
22700     for x in $CPPFLAGS; do
22701
22702   acl_save_prefix="$prefix"
22703   prefix="$acl_final_prefix"
22704   acl_save_exec_prefix="$exec_prefix"
22705   exec_prefix="$acl_final_exec_prefix"
22706   eval x=\"$x\"
22707   exec_prefix="$acl_save_exec_prefix"
22708   prefix="$acl_save_prefix"
22709
22710       if test "X$x" = "X$element"; then
22711         haveit=yes
22712         break
22713       fi
22714     done
22715     if test -z "$haveit"; then
22716       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
22717     fi
22718   done
22719
22720
22721   { echo "$as_me:$LINENO: checking for iconv" >&5
22722 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
22723 if test "${am_cv_func_iconv+set}" = set; then
22724   echo $ECHO_N "(cached) $ECHO_C" >&6
22725 else
22726
22727     am_cv_func_iconv="no, consider installing GNU libiconv"
22728     am_cv_lib_iconv=no
22729     cat >conftest.$ac_ext <<_ACEOF
22730 /* confdefs.h.  */
22731 _ACEOF
22732 cat confdefs.h >>conftest.$ac_ext
22733 cat >>conftest.$ac_ext <<_ACEOF
22734 /* end confdefs.h.  */
22735 #include <stdlib.h>
22736 #include <iconv.h>
22737 int
22738 main ()
22739 {
22740 iconv_t cd = iconv_open("","");
22741        iconv(cd,NULL,NULL,NULL,NULL);
22742        iconv_close(cd);
22743   ;
22744   return 0;
22745 }
22746 _ACEOF
22747 rm -f conftest.$ac_objext conftest$ac_exeext
22748 if { (ac_try="$ac_link"
22749 case "(($ac_try" in
22750   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22751   *) ac_try_echo=$ac_try;;
22752 esac
22753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22754   (eval "$ac_link") 2>conftest.er1
22755   ac_status=$?
22756   grep -v '^ *+' conftest.er1 >conftest.err
22757   rm -f conftest.er1
22758   cat conftest.err >&5
22759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22760   (exit $ac_status); } && {
22761          test -z "$ac_cxx_werror_flag" ||
22762          test ! -s conftest.err
22763        } && test -s conftest$ac_exeext &&
22764        $as_test_x conftest$ac_exeext; then
22765   am_cv_func_iconv=yes
22766 else
22767   echo "$as_me: failed program was:" >&5
22768 sed 's/^/| /' conftest.$ac_ext >&5
22769
22770
22771 fi
22772
22773 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22774       conftest$ac_exeext conftest.$ac_ext
22775     if test "$am_cv_func_iconv" != yes; then
22776       am_save_LIBS="$LIBS"
22777       LIBS="$LIBS $LIBICONV"
22778       cat >conftest.$ac_ext <<_ACEOF
22779 /* confdefs.h.  */
22780 _ACEOF
22781 cat confdefs.h >>conftest.$ac_ext
22782 cat >>conftest.$ac_ext <<_ACEOF
22783 /* end confdefs.h.  */
22784 #include <stdlib.h>
22785 #include <iconv.h>
22786 int
22787 main ()
22788 {
22789 iconv_t cd = iconv_open("","");
22790          iconv(cd,NULL,NULL,NULL,NULL);
22791          iconv_close(cd);
22792   ;
22793   return 0;
22794 }
22795 _ACEOF
22796 rm -f conftest.$ac_objext conftest$ac_exeext
22797 if { (ac_try="$ac_link"
22798 case "(($ac_try" in
22799   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22800   *) ac_try_echo=$ac_try;;
22801 esac
22802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22803   (eval "$ac_link") 2>conftest.er1
22804   ac_status=$?
22805   grep -v '^ *+' conftest.er1 >conftest.err
22806   rm -f conftest.er1
22807   cat conftest.err >&5
22808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22809   (exit $ac_status); } && {
22810          test -z "$ac_cxx_werror_flag" ||
22811          test ! -s conftest.err
22812        } && test -s conftest$ac_exeext &&
22813        $as_test_x conftest$ac_exeext; then
22814   am_cv_lib_iconv=yes
22815         am_cv_func_iconv=yes
22816 else
22817   echo "$as_me: failed program was:" >&5
22818 sed 's/^/| /' conftest.$ac_ext >&5
22819
22820
22821 fi
22822
22823 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22824       conftest$ac_exeext conftest.$ac_ext
22825       LIBS="$am_save_LIBS"
22826     fi
22827
22828 fi
22829 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
22830 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
22831   if test "$am_cv_func_iconv" = yes; then
22832
22833 cat >>confdefs.h <<\_ACEOF
22834 #define HAVE_ICONV 1
22835 _ACEOF
22836
22837   fi
22838   if test "$am_cv_lib_iconv" = yes; then
22839     { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
22840 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
22841     { echo "$as_me:$LINENO: result: $LIBICONV" >&5
22842 echo "${ECHO_T}$LIBICONV" >&6; }
22843   else
22844             CPPFLAGS="$am_save_CPPFLAGS"
22845     LIBICONV=
22846     LTLIBICONV=
22847   fi
22848
22849
22850
22851   if test "$am_cv_func_iconv" = yes; then
22852     { echo "$as_me:$LINENO: checking for iconv declaration" >&5
22853 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
22854     if test "${am_cv_proto_iconv+set}" = set; then
22855   echo $ECHO_N "(cached) $ECHO_C" >&6
22856 else
22857
22858       cat >conftest.$ac_ext <<_ACEOF
22859 /* confdefs.h.  */
22860 _ACEOF
22861 cat confdefs.h >>conftest.$ac_ext
22862 cat >>conftest.$ac_ext <<_ACEOF
22863 /* end confdefs.h.  */
22864
22865 #include <stdlib.h>
22866 #include <iconv.h>
22867 extern
22868 #ifdef __cplusplus
22869 "C"
22870 #endif
22871 #if defined(__STDC__) || defined(__cplusplus)
22872 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
22873 #else
22874 size_t iconv();
22875 #endif
22876
22877 int
22878 main ()
22879 {
22880
22881   ;
22882   return 0;
22883 }
22884 _ACEOF
22885 rm -f conftest.$ac_objext
22886 if { (ac_try="$ac_compile"
22887 case "(($ac_try" in
22888   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22889   *) ac_try_echo=$ac_try;;
22890 esac
22891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22892   (eval "$ac_compile") 2>conftest.er1
22893   ac_status=$?
22894   grep -v '^ *+' conftest.er1 >conftest.err
22895   rm -f conftest.er1
22896   cat conftest.err >&5
22897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22898   (exit $ac_status); } && {
22899          test -z "$ac_cxx_werror_flag" ||
22900          test ! -s conftest.err
22901        } && test -s conftest.$ac_objext; then
22902   am_cv_proto_iconv_arg1=""
22903 else
22904   echo "$as_me: failed program was:" >&5
22905 sed 's/^/| /' conftest.$ac_ext >&5
22906
22907         am_cv_proto_iconv_arg1="const"
22908 fi
22909
22910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22911       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);"
22912 fi
22913
22914     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
22915     { echo "$as_me:$LINENO: result: ${ac_t:-
22916          }$am_cv_proto_iconv" >&5
22917 echo "${ECHO_T}${ac_t:-
22918          }$am_cv_proto_iconv" >&6; }
22919
22920 cat >>confdefs.h <<_ACEOF
22921 #define ICONV_CONST $am_cv_proto_iconv_arg1
22922 _ACEOF
22923
22924   fi
22925
22926
22927   { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
22928 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
22929 if test "${am_cv_langinfo_codeset+set}" = set; then
22930   echo $ECHO_N "(cached) $ECHO_C" >&6
22931 else
22932   cat >conftest.$ac_ext <<_ACEOF
22933 /* confdefs.h.  */
22934 _ACEOF
22935 cat confdefs.h >>conftest.$ac_ext
22936 cat >>conftest.$ac_ext <<_ACEOF
22937 /* end confdefs.h.  */
22938 #include <langinfo.h>
22939 int
22940 main ()
22941 {
22942 char* cs = nl_langinfo(CODESET);
22943   ;
22944   return 0;
22945 }
22946 _ACEOF
22947 rm -f conftest.$ac_objext conftest$ac_exeext
22948 if { (ac_try="$ac_link"
22949 case "(($ac_try" in
22950   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22951   *) ac_try_echo=$ac_try;;
22952 esac
22953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22954   (eval "$ac_link") 2>conftest.er1
22955   ac_status=$?
22956   grep -v '^ *+' conftest.er1 >conftest.err
22957   rm -f conftest.er1
22958   cat conftest.err >&5
22959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22960   (exit $ac_status); } && {
22961          test -z "$ac_cxx_werror_flag" ||
22962          test ! -s conftest.err
22963        } && test -s conftest$ac_exeext &&
22964        $as_test_x conftest$ac_exeext; then
22965   am_cv_langinfo_codeset=yes
22966 else
22967   echo "$as_me: failed program was:" >&5
22968 sed 's/^/| /' conftest.$ac_ext >&5
22969
22970         am_cv_langinfo_codeset=no
22971 fi
22972
22973 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22974       conftest$ac_exeext conftest.$ac_ext
22975
22976 fi
22977 { echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
22978 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6; }
22979   if test $am_cv_langinfo_codeset = yes; then
22980
22981 cat >>confdefs.h <<\_ACEOF
22982 #define HAVE_LANGINFO_CODESET 1
22983 _ACEOF
22984
22985   fi
22986
22987   if test $ac_cv_header_locale_h = yes; then
22988
22989   { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
22990 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
22991 if test "${gt_cv_val_LC_MESSAGES+set}" = set; then
22992   echo $ECHO_N "(cached) $ECHO_C" >&6
22993 else
22994   cat >conftest.$ac_ext <<_ACEOF
22995 /* confdefs.h.  */
22996 _ACEOF
22997 cat confdefs.h >>conftest.$ac_ext
22998 cat >>conftest.$ac_ext <<_ACEOF
22999 /* end confdefs.h.  */
23000 #include <locale.h>
23001 int
23002 main ()
23003 {
23004 return LC_MESSAGES
23005   ;
23006   return 0;
23007 }
23008 _ACEOF
23009 rm -f conftest.$ac_objext conftest$ac_exeext
23010 if { (ac_try="$ac_link"
23011 case "(($ac_try" in
23012   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23013   *) ac_try_echo=$ac_try;;
23014 esac
23015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23016   (eval "$ac_link") 2>conftest.er1
23017   ac_status=$?
23018   grep -v '^ *+' conftest.er1 >conftest.err
23019   rm -f conftest.er1
23020   cat conftest.err >&5
23021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23022   (exit $ac_status); } && {
23023          test -z "$ac_cxx_werror_flag" ||
23024          test ! -s conftest.err
23025        } && test -s conftest$ac_exeext &&
23026        $as_test_x conftest$ac_exeext; then
23027   gt_cv_val_LC_MESSAGES=yes
23028 else
23029   echo "$as_me: failed program was:" >&5
23030 sed 's/^/| /' conftest.$ac_ext >&5
23031
23032         gt_cv_val_LC_MESSAGES=no
23033 fi
23034
23035 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23036       conftest$ac_exeext conftest.$ac_ext
23037 fi
23038 { echo "$as_me:$LINENO: result: $gt_cv_val_LC_MESSAGES" >&5
23039 echo "${ECHO_T}$gt_cv_val_LC_MESSAGES" >&6; }
23040   if test $gt_cv_val_LC_MESSAGES = yes; then
23041
23042 cat >>confdefs.h <<\_ACEOF
23043 #define HAVE_LC_MESSAGES 1
23044 _ACEOF
23045
23046   fi
23047
23048   fi
23049
23050   if test -n "$INTL_MACOSX_LIBS"; then
23051     CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
23052   fi
23053
23054                       for ac_prog in bison
23055 do
23056   # Extract the first word of "$ac_prog", so it can be a program name with args.
23057 set dummy $ac_prog; ac_word=$2
23058 { echo "$as_me:$LINENO: checking for $ac_word" >&5
23059 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
23060 if test "${ac_cv_prog_INTLBISON+set}" = set; then
23061   echo $ECHO_N "(cached) $ECHO_C" >&6
23062 else
23063   if test -n "$INTLBISON"; then
23064   ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
23065 else
23066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23067 for as_dir in $PATH
23068 do
23069   IFS=$as_save_IFS
23070   test -z "$as_dir" && as_dir=.
23071   for ac_exec_ext in '' $ac_executable_extensions; do
23072   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23073     ac_cv_prog_INTLBISON="$ac_prog"
23074     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23075     break 2
23076   fi
23077 done
23078 done
23079 IFS=$as_save_IFS
23080
23081 fi
23082 fi
23083 INTLBISON=$ac_cv_prog_INTLBISON
23084 if test -n "$INTLBISON"; then
23085   { echo "$as_me:$LINENO: result: $INTLBISON" >&5
23086 echo "${ECHO_T}$INTLBISON" >&6; }
23087 else
23088   { echo "$as_me:$LINENO: result: no" >&5
23089 echo "${ECHO_T}no" >&6; }
23090 fi
23091
23092
23093   test -n "$INTLBISON" && break
23094 done
23095
23096   if test -z "$INTLBISON"; then
23097     ac_verc_fail=yes
23098   else
23099         { echo "$as_me:$LINENO: checking version of bison" >&5
23100 echo $ECHO_N "checking version of bison... $ECHO_C" >&6; }
23101     ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
23102     case $ac_prog_version in
23103       '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
23104       1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
23105          ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
23106       *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
23107     esac
23108     { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
23109 echo "${ECHO_T}$ac_prog_version" >&6; }
23110   fi
23111   if test $ac_verc_fail = yes; then
23112     INTLBISON=:
23113   fi
23114
23115
23116
23117
23118
23119
23120
23121
23122
23123
23124
23125
23126
23127
23128
23129
23130     { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
23131 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
23132 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
23133   echo $ECHO_N "(cached) $ECHO_C" >&6
23134 else
23135   gt_save_CPPFLAGS="$CPPFLAGS"
23136      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
23137      gt_save_LIBS="$LIBS"
23138      LIBS="$LIBS -framework CoreFoundation"
23139      cat >conftest.$ac_ext <<_ACEOF
23140 /* confdefs.h.  */
23141 _ACEOF
23142 cat confdefs.h >>conftest.$ac_ext
23143 cat >>conftest.$ac_ext <<_ACEOF
23144 /* end confdefs.h.  */
23145 #include <CFPreferences.h>
23146 int
23147 main ()
23148 {
23149 CFPreferencesCopyAppValue(NULL, NULL)
23150   ;
23151   return 0;
23152 }
23153 _ACEOF
23154 rm -f conftest.$ac_objext conftest$ac_exeext
23155 if { (ac_try="$ac_link"
23156 case "(($ac_try" in
23157   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23158   *) ac_try_echo=$ac_try;;
23159 esac
23160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23161   (eval "$ac_link") 2>conftest.er1
23162   ac_status=$?
23163   grep -v '^ *+' conftest.er1 >conftest.err
23164   rm -f conftest.er1
23165   cat conftest.err >&5
23166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23167   (exit $ac_status); } && {
23168          test -z "$ac_cxx_werror_flag" ||
23169          test ! -s conftest.err
23170        } && test -s conftest$ac_exeext &&
23171        $as_test_x conftest$ac_exeext; then
23172   gt_cv_func_CFPreferencesCopyAppValue=yes
23173 else
23174   echo "$as_me: failed program was:" >&5
23175 sed 's/^/| /' conftest.$ac_ext >&5
23176
23177         gt_cv_func_CFPreferencesCopyAppValue=no
23178 fi
23179
23180 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23181       conftest$ac_exeext conftest.$ac_ext
23182      CPPFLAGS="$gt_save_CPPFLAGS"
23183      LIBS="$gt_save_LIBS"
23184 fi
23185 { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
23186 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
23187   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
23188
23189 cat >>confdefs.h <<\_ACEOF
23190 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
23191 _ACEOF
23192
23193   fi
23194     { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
23195 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
23196 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
23197   echo $ECHO_N "(cached) $ECHO_C" >&6
23198 else
23199   gt_save_CPPFLAGS="$CPPFLAGS"
23200      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
23201      gt_save_LIBS="$LIBS"
23202      LIBS="$LIBS -framework CoreFoundation"
23203      cat >conftest.$ac_ext <<_ACEOF
23204 /* confdefs.h.  */
23205 _ACEOF
23206 cat confdefs.h >>conftest.$ac_ext
23207 cat >>conftest.$ac_ext <<_ACEOF
23208 /* end confdefs.h.  */
23209 #include <CFLocale.h>
23210 int
23211 main ()
23212 {
23213 CFLocaleCopyCurrent();
23214   ;
23215   return 0;
23216 }
23217 _ACEOF
23218 rm -f conftest.$ac_objext conftest$ac_exeext
23219 if { (ac_try="$ac_link"
23220 case "(($ac_try" in
23221   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23222   *) ac_try_echo=$ac_try;;
23223 esac
23224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23225   (eval "$ac_link") 2>conftest.er1
23226   ac_status=$?
23227   grep -v '^ *+' conftest.er1 >conftest.err
23228   rm -f conftest.er1
23229   cat conftest.err >&5
23230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23231   (exit $ac_status); } && {
23232          test -z "$ac_cxx_werror_flag" ||
23233          test ! -s conftest.err
23234        } && test -s conftest$ac_exeext &&
23235        $as_test_x conftest$ac_exeext; then
23236   gt_cv_func_CFLocaleCopyCurrent=yes
23237 else
23238   echo "$as_me: failed program was:" >&5
23239 sed 's/^/| /' conftest.$ac_ext >&5
23240
23241         gt_cv_func_CFLocaleCopyCurrent=no
23242 fi
23243
23244 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23245       conftest$ac_exeext conftest.$ac_ext
23246      CPPFLAGS="$gt_save_CPPFLAGS"
23247      LIBS="$gt_save_LIBS"
23248 fi
23249 { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
23250 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
23251   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
23252
23253 cat >>confdefs.h <<\_ACEOF
23254 #define HAVE_CFLOCALECOPYCURRENT 1
23255 _ACEOF
23256
23257   fi
23258   INTL_MACOSX_LIBS=
23259   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
23260     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
23261   fi
23262
23263
23264
23265
23266   { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
23267 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
23268     # Check whether --enable-nls was given.
23269 if test "${enable_nls+set}" = set; then
23270   enableval=$enable_nls; USE_NLS=$enableval
23271 else
23272   USE_NLS=yes
23273 fi
23274
23275   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
23276 echo "${ECHO_T}$USE_NLS" >&6; }
23277
23278
23279
23280
23281     BUILD_INCLUDED_LIBINTL=no
23282     USE_INCLUDED_LIBINTL=no
23283
23284   LIBINTL=
23285   LTLIBINTL=
23286   POSUB=
23287
23288     if test "$USE_NLS" = "yes"; then
23289     gt_use_preinstalled_gnugettext=no
23290
23291       { echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
23292 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6; }
23293
23294 # Check whether --with-included-gettext was given.
23295 if test "${with_included_gettext+set}" = set; then
23296   withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
23297 else
23298   nls_cv_force_use_gnu_gettext=no
23299 fi
23300
23301       { echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
23302 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6; }
23303
23304       nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
23305       if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
23306
23307
23308
23309
23310
23311
23312         { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
23313 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
23314 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
23315   echo $ECHO_N "(cached) $ECHO_C" >&6
23316 else
23317   cat >conftest.$ac_ext <<_ACEOF
23318 /* confdefs.h.  */
23319 _ACEOF
23320 cat confdefs.h >>conftest.$ac_ext
23321 cat >>conftest.$ac_ext <<_ACEOF
23322 /* end confdefs.h.  */
23323 #include <libintl.h>
23324 extern int _nl_msg_cat_cntr;
23325 extern int *_nl_domain_bindings;
23326 int
23327 main ()
23328 {
23329 bindtextdomain ("", "");
23330 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
23331   ;
23332   return 0;
23333 }
23334 _ACEOF
23335 rm -f conftest.$ac_objext conftest$ac_exeext
23336 if { (ac_try="$ac_link"
23337 case "(($ac_try" in
23338   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23339   *) ac_try_echo=$ac_try;;
23340 esac
23341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23342   (eval "$ac_link") 2>conftest.er1
23343   ac_status=$?
23344   grep -v '^ *+' conftest.er1 >conftest.err
23345   rm -f conftest.er1
23346   cat conftest.err >&5
23347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23348   (exit $ac_status); } && {
23349          test -z "$ac_cxx_werror_flag" ||
23350          test ! -s conftest.err
23351        } && test -s conftest$ac_exeext &&
23352        $as_test_x conftest$ac_exeext; then
23353   gt_cv_func_gnugettext1_libc=yes
23354 else
23355   echo "$as_me: failed program was:" >&5
23356 sed 's/^/| /' conftest.$ac_ext >&5
23357
23358         gt_cv_func_gnugettext1_libc=no
23359 fi
23360
23361 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23362       conftest$ac_exeext conftest.$ac_ext
23363 fi
23364 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
23365 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
23366
23367         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
23368
23369
23370
23371     use_additional=yes
23372
23373   acl_save_prefix="$prefix"
23374   prefix="$acl_final_prefix"
23375   acl_save_exec_prefix="$exec_prefix"
23376   exec_prefix="$acl_final_exec_prefix"
23377
23378     eval additional_includedir=\"$includedir\"
23379     eval additional_libdir=\"$libdir\"
23380
23381   exec_prefix="$acl_save_exec_prefix"
23382   prefix="$acl_save_prefix"
23383
23384
23385 # Check whether --with-libintl-prefix was given.
23386 if test "${with_libintl_prefix+set}" = set; then
23387   withval=$with_libintl_prefix;
23388     if test "X$withval" = "Xno"; then
23389       use_additional=no
23390     else
23391       if test "X$withval" = "X"; then
23392
23393   acl_save_prefix="$prefix"
23394   prefix="$acl_final_prefix"
23395   acl_save_exec_prefix="$exec_prefix"
23396   exec_prefix="$acl_final_exec_prefix"
23397
23398           eval additional_includedir=\"$includedir\"
23399           eval additional_libdir=\"$libdir\"
23400
23401   exec_prefix="$acl_save_exec_prefix"
23402   prefix="$acl_save_prefix"
23403
23404       else
23405         additional_includedir="$withval/include"
23406         additional_libdir="$withval/lib"
23407       fi
23408     fi
23409
23410 fi
23411
23412       LIBINTL=
23413   LTLIBINTL=
23414   INCINTL=
23415   rpathdirs=
23416   ltrpathdirs=
23417   names_already_handled=
23418   names_next_round='intl '
23419   while test -n "$names_next_round"; do
23420     names_this_round="$names_next_round"
23421     names_next_round=
23422     for name in $names_this_round; do
23423       already_handled=
23424       for n in $names_already_handled; do
23425         if test "$n" = "$name"; then
23426           already_handled=yes
23427           break
23428         fi
23429       done
23430       if test -z "$already_handled"; then
23431         names_already_handled="$names_already_handled $name"
23432                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
23433         eval value=\"\$HAVE_LIB$uppername\"
23434         if test -n "$value"; then
23435           if test "$value" = yes; then
23436             eval value=\"\$LIB$uppername\"
23437             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
23438             eval value=\"\$LTLIB$uppername\"
23439             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
23440           else
23441                                     :
23442           fi
23443         else
23444                               found_dir=
23445           found_la=
23446           found_so=
23447           found_a=
23448           if test $use_additional = yes; then
23449             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
23450               found_dir="$additional_libdir"
23451               found_so="$additional_libdir/lib$name.$shlibext"
23452               if test -f "$additional_libdir/lib$name.la"; then
23453                 found_la="$additional_libdir/lib$name.la"
23454               fi
23455             else
23456               if test -f "$additional_libdir/lib$name.$libext"; then
23457                 found_dir="$additional_libdir"
23458                 found_a="$additional_libdir/lib$name.$libext"
23459                 if test -f "$additional_libdir/lib$name.la"; then
23460                   found_la="$additional_libdir/lib$name.la"
23461                 fi
23462               fi
23463             fi
23464           fi
23465           if test "X$found_dir" = "X"; then
23466             for x in $LDFLAGS $LTLIBINTL; do
23467
23468   acl_save_prefix="$prefix"
23469   prefix="$acl_final_prefix"
23470   acl_save_exec_prefix="$exec_prefix"
23471   exec_prefix="$acl_final_exec_prefix"
23472   eval x=\"$x\"
23473   exec_prefix="$acl_save_exec_prefix"
23474   prefix="$acl_save_prefix"
23475
23476               case "$x" in
23477                 -L*)
23478                   dir=`echo "X$x" | sed -e 's/^X-L//'`
23479                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
23480                     found_dir="$dir"
23481                     found_so="$dir/lib$name.$shlibext"
23482                     if test -f "$dir/lib$name.la"; then
23483                       found_la="$dir/lib$name.la"
23484                     fi
23485                   else
23486                     if test -f "$dir/lib$name.$libext"; then
23487                       found_dir="$dir"
23488                       found_a="$dir/lib$name.$libext"
23489                       if test -f "$dir/lib$name.la"; then
23490                         found_la="$dir/lib$name.la"
23491                       fi
23492                     fi
23493                   fi
23494                   ;;
23495               esac
23496               if test "X$found_dir" != "X"; then
23497                 break
23498               fi
23499             done
23500           fi
23501           if test "X$found_dir" != "X"; then
23502                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
23503             if test "X$found_so" != "X"; then
23504                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
23505                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23506               else
23507                                                                                 haveit=
23508                 for x in $ltrpathdirs; do
23509                   if test "X$x" = "X$found_dir"; then
23510                     haveit=yes
23511                     break
23512                   fi
23513                 done
23514                 if test -z "$haveit"; then
23515                   ltrpathdirs="$ltrpathdirs $found_dir"
23516                 fi
23517                                 if test "$hardcode_direct" = yes; then
23518                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23519                 else
23520                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
23521                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23522                                                             haveit=
23523                     for x in $rpathdirs; do
23524                       if test "X$x" = "X$found_dir"; then
23525                         haveit=yes
23526                         break
23527                       fi
23528                     done
23529                     if test -z "$haveit"; then
23530                       rpathdirs="$rpathdirs $found_dir"
23531                     fi
23532                   else
23533                                                                                 haveit=
23534                     for x in $LDFLAGS $LIBINTL; do
23535
23536   acl_save_prefix="$prefix"
23537   prefix="$acl_final_prefix"
23538   acl_save_exec_prefix="$exec_prefix"
23539   exec_prefix="$acl_final_exec_prefix"
23540   eval x=\"$x\"
23541   exec_prefix="$acl_save_exec_prefix"
23542   prefix="$acl_save_prefix"
23543
23544                       if test "X$x" = "X-L$found_dir"; then
23545                         haveit=yes
23546                         break
23547                       fi
23548                     done
23549                     if test -z "$haveit"; then
23550                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
23551                     fi
23552                     if test "$hardcode_minus_L" != no; then
23553                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23554                     else
23555                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
23556                     fi
23557                   fi
23558                 fi
23559               fi
23560             else
23561               if test "X$found_a" != "X"; then
23562                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
23563               else
23564                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
23565               fi
23566             fi
23567                         additional_includedir=
23568             case "$found_dir" in
23569               */lib | */lib/)
23570                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
23571                 additional_includedir="$basedir/include"
23572                 ;;
23573             esac
23574             if test "X$additional_includedir" != "X"; then
23575                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
23576                 haveit=
23577                 if test "X$additional_includedir" = "X/usr/local/include"; then
23578                   if test -n "$GCC"; then
23579                     case $host_os in
23580                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
23581                     esac
23582                   fi
23583                 fi
23584                 if test -z "$haveit"; then
23585                   for x in $CPPFLAGS $INCINTL; do
23586
23587   acl_save_prefix="$prefix"
23588   prefix="$acl_final_prefix"
23589   acl_save_exec_prefix="$exec_prefix"
23590   exec_prefix="$acl_final_exec_prefix"
23591   eval x=\"$x\"
23592   exec_prefix="$acl_save_exec_prefix"
23593   prefix="$acl_save_prefix"
23594
23595                     if test "X$x" = "X-I$additional_includedir"; then
23596                       haveit=yes
23597                       break
23598                     fi
23599                   done
23600                   if test -z "$haveit"; then
23601                     if test -d "$additional_includedir"; then
23602                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
23603                     fi
23604                   fi
23605                 fi
23606               fi
23607             fi
23608                         if test -n "$found_la"; then
23609                                                         save_libdir="$libdir"
23610               case "$found_la" in
23611                 */* | *\\*) . "$found_la" ;;
23612                 *) . "./$found_la" ;;
23613               esac
23614               libdir="$save_libdir"
23615                             for dep in $dependency_libs; do
23616                 case "$dep" in
23617                   -L*)
23618                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
23619                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
23620                       haveit=
23621                       if test "X$additional_libdir" = "X/usr/local/lib"; then
23622                         if test -n "$GCC"; then
23623                           case $host_os in
23624                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
23625                           esac
23626                         fi
23627                       fi
23628                       if test -z "$haveit"; then
23629                         haveit=
23630                         for x in $LDFLAGS $LIBINTL; do
23631
23632   acl_save_prefix="$prefix"
23633   prefix="$acl_final_prefix"
23634   acl_save_exec_prefix="$exec_prefix"
23635   exec_prefix="$acl_final_exec_prefix"
23636   eval x=\"$x\"
23637   exec_prefix="$acl_save_exec_prefix"
23638   prefix="$acl_save_prefix"
23639
23640                           if test "X$x" = "X-L$additional_libdir"; then
23641                             haveit=yes
23642                             break
23643                           fi
23644                         done
23645                         if test -z "$haveit"; then
23646                           if test -d "$additional_libdir"; then
23647                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
23648                           fi
23649                         fi
23650                         haveit=
23651                         for x in $LDFLAGS $LTLIBINTL; do
23652
23653   acl_save_prefix="$prefix"
23654   prefix="$acl_final_prefix"
23655   acl_save_exec_prefix="$exec_prefix"
23656   exec_prefix="$acl_final_exec_prefix"
23657   eval x=\"$x\"
23658   exec_prefix="$acl_save_exec_prefix"
23659   prefix="$acl_save_prefix"
23660
23661                           if test "X$x" = "X-L$additional_libdir"; then
23662                             haveit=yes
23663                             break
23664                           fi
23665                         done
23666                         if test -z "$haveit"; then
23667                           if test -d "$additional_libdir"; then
23668                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
23669                           fi
23670                         fi
23671                       fi
23672                     fi
23673                     ;;
23674                   -R*)
23675                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
23676                     if test "$enable_rpath" != no; then
23677                                                                   haveit=
23678                       for x in $rpathdirs; do
23679                         if test "X$x" = "X$dir"; then
23680                           haveit=yes
23681                           break
23682                         fi
23683                       done
23684                       if test -z "$haveit"; then
23685                         rpathdirs="$rpathdirs $dir"
23686                       fi
23687                                                                   haveit=
23688                       for x in $ltrpathdirs; do
23689                         if test "X$x" = "X$dir"; then
23690                           haveit=yes
23691                           break
23692                         fi
23693                       done
23694                       if test -z "$haveit"; then
23695                         ltrpathdirs="$ltrpathdirs $dir"
23696                       fi
23697                     fi
23698                     ;;
23699                   -l*)
23700                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
23701                     ;;
23702                   *.la)
23703                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
23704                     ;;
23705                   *)
23706                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
23707                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
23708                     ;;
23709                 esac
23710               done
23711             fi
23712           else
23713                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
23714             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
23715           fi
23716         fi
23717       fi
23718     done
23719   done
23720   if test "X$rpathdirs" != "X"; then
23721     if test -n "$hardcode_libdir_separator"; then
23722                         alldirs=
23723       for found_dir in $rpathdirs; do
23724         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
23725       done
23726             acl_save_libdir="$libdir"
23727       libdir="$alldirs"
23728       eval flag=\"$hardcode_libdir_flag_spec\"
23729       libdir="$acl_save_libdir"
23730       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
23731     else
23732             for found_dir in $rpathdirs; do
23733         acl_save_libdir="$libdir"
23734         libdir="$found_dir"
23735         eval flag=\"$hardcode_libdir_flag_spec\"
23736         libdir="$acl_save_libdir"
23737         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
23738       done
23739     fi
23740   fi
23741   if test "X$ltrpathdirs" != "X"; then
23742             for found_dir in $ltrpathdirs; do
23743       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
23744     done
23745   fi
23746
23747           { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
23748 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
23749 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
23750   echo $ECHO_N "(cached) $ECHO_C" >&6
23751 else
23752   gt_save_CPPFLAGS="$CPPFLAGS"
23753             CPPFLAGS="$CPPFLAGS $INCINTL"
23754             gt_save_LIBS="$LIBS"
23755             LIBS="$LIBS $LIBINTL"
23756                         cat >conftest.$ac_ext <<_ACEOF
23757 /* confdefs.h.  */
23758 _ACEOF
23759 cat confdefs.h >>conftest.$ac_ext
23760 cat >>conftest.$ac_ext <<_ACEOF
23761 /* end confdefs.h.  */
23762 #include <libintl.h>
23763 extern int _nl_msg_cat_cntr;
23764 extern
23765 #ifdef __cplusplus
23766 "C"
23767 #endif
23768 const char *_nl_expand_alias (const char *);
23769 int
23770 main ()
23771 {
23772 bindtextdomain ("", "");
23773 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
23774   ;
23775   return 0;
23776 }
23777 _ACEOF
23778 rm -f conftest.$ac_objext conftest$ac_exeext
23779 if { (ac_try="$ac_link"
23780 case "(($ac_try" in
23781   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23782   *) ac_try_echo=$ac_try;;
23783 esac
23784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23785   (eval "$ac_link") 2>conftest.er1
23786   ac_status=$?
23787   grep -v '^ *+' conftest.er1 >conftest.err
23788   rm -f conftest.er1
23789   cat conftest.err >&5
23790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23791   (exit $ac_status); } && {
23792          test -z "$ac_cxx_werror_flag" ||
23793          test ! -s conftest.err
23794        } && test -s conftest$ac_exeext &&
23795        $as_test_x conftest$ac_exeext; then
23796   gt_cv_func_gnugettext1_libintl=yes
23797 else
23798   echo "$as_me: failed program was:" >&5
23799 sed 's/^/| /' conftest.$ac_ext >&5
23800
23801         gt_cv_func_gnugettext1_libintl=no
23802 fi
23803
23804 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23805       conftest$ac_exeext conftest.$ac_ext
23806                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
23807               LIBS="$LIBS $LIBICONV"
23808               cat >conftest.$ac_ext <<_ACEOF
23809 /* confdefs.h.  */
23810 _ACEOF
23811 cat confdefs.h >>conftest.$ac_ext
23812 cat >>conftest.$ac_ext <<_ACEOF
23813 /* end confdefs.h.  */
23814 #include <libintl.h>
23815 extern int _nl_msg_cat_cntr;
23816 extern
23817 #ifdef __cplusplus
23818 "C"
23819 #endif
23820 const char *_nl_expand_alias (const char *);
23821 int
23822 main ()
23823 {
23824 bindtextdomain ("", "");
23825 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
23826   ;
23827   return 0;
23828 }
23829 _ACEOF
23830 rm -f conftest.$ac_objext conftest$ac_exeext
23831 if { (ac_try="$ac_link"
23832 case "(($ac_try" in
23833   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23834   *) ac_try_echo=$ac_try;;
23835 esac
23836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23837   (eval "$ac_link") 2>conftest.er1
23838   ac_status=$?
23839   grep -v '^ *+' conftest.er1 >conftest.err
23840   rm -f conftest.er1
23841   cat conftest.err >&5
23842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23843   (exit $ac_status); } && {
23844          test -z "$ac_cxx_werror_flag" ||
23845          test ! -s conftest.err
23846        } && test -s conftest$ac_exeext &&
23847        $as_test_x conftest$ac_exeext; then
23848   LIBINTL="$LIBINTL $LIBICONV"
23849                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
23850                 gt_cv_func_gnugettext1_libintl=yes
23851
23852 else
23853   echo "$as_me: failed program was:" >&5
23854 sed 's/^/| /' conftest.$ac_ext >&5
23855
23856
23857 fi
23858
23859 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23860       conftest$ac_exeext conftest.$ac_ext
23861             fi
23862             CPPFLAGS="$gt_save_CPPFLAGS"
23863             LIBS="$gt_save_LIBS"
23864 fi
23865 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
23866 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
23867         fi
23868
23869                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
23870            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
23871                 && test "$PACKAGE" != gettext-runtime \
23872                 && test "$PACKAGE" != gettext-tools; }; then
23873           gt_use_preinstalled_gnugettext=yes
23874         else
23875                     LIBINTL=
23876           LTLIBINTL=
23877           INCINTL=
23878         fi
23879
23880
23881         if test "$gt_use_preinstalled_gnugettext" != "yes"; then
23882                               nls_cv_use_gnu_gettext=yes
23883         fi
23884       fi
23885
23886       if test "$nls_cv_use_gnu_gettext" = "yes"; then
23887                 BUILD_INCLUDED_LIBINTL=yes
23888         USE_INCLUDED_LIBINTL=yes
23889         LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
23890         LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
23891         LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
23892       fi
23893
23894       CATOBJEXT=
23895       if test "$gt_use_preinstalled_gnugettext" = "yes" \
23896          || test "$nls_cv_use_gnu_gettext" = "yes"; then
23897                 CATOBJEXT=.gmo
23898       fi
23899
23900
23901     if test -n "$INTL_MACOSX_LIBS"; then
23902       if test "$gt_use_preinstalled_gnugettext" = "yes" \
23903          || test "$nls_cv_use_gnu_gettext" = "yes"; then
23904                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
23905         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
23906       fi
23907     fi
23908
23909     if test "$gt_use_preinstalled_gnugettext" = "yes" \
23910        || test "$nls_cv_use_gnu_gettext" = "yes"; then
23911
23912 cat >>confdefs.h <<\_ACEOF
23913 #define ENABLE_NLS 1
23914 _ACEOF
23915
23916     else
23917       USE_NLS=no
23918     fi
23919   fi
23920
23921   { echo "$as_me:$LINENO: checking whether to use NLS" >&5
23922 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
23923   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
23924 echo "${ECHO_T}$USE_NLS" >&6; }
23925   if test "$USE_NLS" = "yes"; then
23926     { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
23927 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
23928     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
23929       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
23930         gt_source="external libintl"
23931       else
23932         gt_source="libc"
23933       fi
23934     else
23935       gt_source="included intl directory"
23936     fi
23937     { echo "$as_me:$LINENO: result: $gt_source" >&5
23938 echo "${ECHO_T}$gt_source" >&6; }
23939   fi
23940
23941   if test "$USE_NLS" = "yes"; then
23942
23943     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
23944       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
23945         { echo "$as_me:$LINENO: checking how to link with libintl" >&5
23946 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
23947         { echo "$as_me:$LINENO: result: $LIBINTL" >&5
23948 echo "${ECHO_T}$LIBINTL" >&6; }
23949
23950   for element in $INCINTL; do
23951     haveit=
23952     for x in $CPPFLAGS; do
23953
23954   acl_save_prefix="$prefix"
23955   prefix="$acl_final_prefix"
23956   acl_save_exec_prefix="$exec_prefix"
23957   exec_prefix="$acl_final_exec_prefix"
23958   eval x=\"$x\"
23959   exec_prefix="$acl_save_exec_prefix"
23960   prefix="$acl_save_prefix"
23961
23962       if test "X$x" = "X$element"; then
23963         haveit=yes
23964         break
23965       fi
23966     done
23967     if test -z "$haveit"; then
23968       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
23969     fi
23970   done
23971
23972       fi
23973
23974
23975 cat >>confdefs.h <<\_ACEOF
23976 #define HAVE_GETTEXT 1
23977 _ACEOF
23978
23979
23980 cat >>confdefs.h <<\_ACEOF
23981 #define HAVE_DCGETTEXT 1
23982 _ACEOF
23983
23984     fi
23985
23986         POSUB=po
23987   fi
23988
23989
23990             if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
23991       BUILD_INCLUDED_LIBINTL=yes
23992     fi
23993
23994
23995
23996
23997
23998         nls_cv_header_intl=
23999     nls_cv_header_libgt=
24000
24001         DATADIRNAME=share
24002
24003
24004         INSTOBJEXT=.mo
24005
24006
24007         GENCAT=gencat
24008
24009
24010         INTLOBJS=
24011     if test "$USE_INCLUDED_LIBINTL" = yes; then
24012       INTLOBJS="\$(GETTOBJS)"
24013     fi
24014
24015
24016         INTL_LIBTOOL_SUFFIX_PREFIX=
24017
24018
24019
24020     INTLLIBS="$LIBINTL"
24021
24022
24023
24024
24025
24026
24027 fi
24028
24029 support_mysql=no
24030 support_sqlite=no
24031 support_sqlite3=no
24032 support_postgresql=no
24033 support_dbi=no
24034 support_smartalloc=yes
24035 support_readline=yes
24036 support_conio=yes
24037 support_gnome=no
24038 support_bat=no
24039 support_wx_console=no
24040 support_tray_monitor=no
24041 support_tls=no
24042 support_crypto=no
24043 gnome_version=
24044 wx_version=
24045 support_static_tools=no
24046 support_static_fd=no
24047 support_static_sd=no
24048 support_static_dir=no
24049 support_static_cons=no
24050 support_python=no
24051 build_client_only=no
24052 build_dird=yes
24053 build_stored=yes
24054 cats=
24055 db_type=Internal
24056 support_lockmgr=no
24057 DB_TYPE=bdb
24058
24059
24060 # Check whether --enable-gnome was given.
24061 if test "${enable_gnome+set}" = set; then
24062   enableval=$enable_gnome;
24063        if test x$enableval = xyes; then
24064           support_gnome=yes
24065        fi
24066
24067
24068 fi
24069
24070
24071 GNOME_DIR=
24072 if test x$support_gnome = xyes; then
24073    { { echo "$as_me:$LINENO: error: bgnome-console no longer supported" >&5
24074 echo "$as_me: error: bgnome-console no longer supported" >&2;}
24075    { (exit 1); exit 1; }; }
24076    { { echo "$as_me:$LINENO: error: --enable-gnome option no longer supported" >&5
24077 echo "$as_me: error: --enable-gnome option no longer supported" >&2;}
24078    { (exit 1); exit 1; }; }
24079 fi
24080 # AC_SUBST(GNOME_DIR)
24081
24082 # Check whether --enable-bat was given.
24083 if test "${enable_bat+set}" = set; then
24084   enableval=$enable_bat;
24085        if test x$enableval = xyes; then
24086
24087 cat >>confdefs.h <<\_ACEOF
24088 #define HAVE_BAT 1
24089 _ACEOF
24090
24091           support_bat=yes
24092        fi
24093
24094
24095 fi
24096
24097
24098 BAT_DIR=
24099 if test x$support_bat = xyes; then
24100    abc=`$PKGCONFIG --atleast-version=4.2 QtGui`
24101    pkg=$?
24102    if test $pkg = 0; then
24103       BAT_DIR=src/qt-console
24104    else
24105       { { echo "$as_me:$LINENO: error: Unable to find Qt4 installation needed by bat" >&5
24106 echo "$as_me: error: Unable to find Qt4 installation needed by bat" >&2;}
24107    { (exit 1); exit 1; }; }
24108    fi
24109 fi
24110
24111 got_qwt=no
24112 QWT_INC=
24113 QWT_LDFLAGS=
24114 QWT_LIB=
24115 QWT=
24116 no_qwt=no
24117 if test x$support_bat = xyes; then
24118    { echo "$as_me:$LINENO: checking for qwt support" >&5
24119 echo $ECHO_N "checking for qwt support... $ECHO_C" >&6; }
24120
24121 # Check whether --with-qwt was given.
24122 if test "${with_qwt+set}" = set; then
24123   withval=$with_qwt;
24124           case "$with_qwt" in
24125           no)
24126              no_qwt=yes
24127              ;;
24128           yes|*)
24129              if test -f ${with_qwt}/include/qwt.h; then
24130                 QWT_INC="${with_qwt}/include"
24131                 QWT_LDFLAGS="-L${with_qwt}/lib"
24132                 QWT_LIB="-lqwt"
24133                 QWT="qwt"
24134              fi
24135              ;;
24136           esac
24137
24138
24139 fi
24140
24141
24142             if test $no_qwt = no; then
24143       if test x$QWT_INC = x; then
24144          for root in /usr /usr/local; do
24145             for ver in qwt qwt5 qwt-qt4; do
24146                if test -f ${root}/include/${ver}/qwt.h; then
24147                   QWT_INC="${root}/include/${ver}"
24148                   if test -d ${root}/lib64/; then
24149                      QWT_LDFLAGS="-L${root}/lib64"
24150                   elif test -d ${root}/lib/64/; then
24151                      QWT_LDFLAGS="-L${root}/64"
24152                   else
24153                      QWT_LDFLAGS="-L${root}/lib"
24154                   fi
24155                   QWT_LIB="-lqwt"
24156                   QWT="qwt"
24157                   got_qwt=yes
24158                   break;
24159                fi
24160             done
24161          done
24162       fi
24163    fi
24164    if test x$QWT_INC = x; then
24165       { echo "$as_me:$LINENO: result: no" >&5
24166 echo "${ECHO_T}no" >&6; }
24167    else
24168
24169 cat >>confdefs.h <<\_ACEOF
24170 #define HAVE_QWT 1
24171 _ACEOF
24172
24173       { echo "$as_me:$LINENO: result: yes" >&5
24174 echo "${ECHO_T}yes" >&6; }
24175    fi
24176 fi
24177
24178
24179
24180
24181
24182
24183
24184 # Check whether --enable-bwx-console was given.
24185 if test "${enable_bwx_console+set}" = set; then
24186   enableval=$enable_bwx_console;
24187        if test x$enableval = xyes; then
24188           support_wx_console=yes
24189        fi
24190
24191
24192 fi
24193
24194
24195 WX_DIR=
24196 if test x$support_wx_console = xyes; then
24197    abc=`$WXCONFIG $WXFLAGS --cppflags`
24198    pkg=$?
24199    if test $pkg = 0; then
24200       wx_version="wxWidgets `$WXCONFIG $WXFLAGS --release`"
24201       WXCONS_CPPFLAGS=`$WXCONFIG $WXFLAGS --cppflags`
24202       WXCONS_LDFLAGS=`$WXCONFIG $WXFLAGS --libs`
24203
24204
24205
24206       WX_DIR="src/wx-console"
24207    else
24208       echo " "
24209       echo "wx-config program not found. bwx-console disabled."
24210       echo " "
24211       support_wx_console=no
24212    fi
24213 fi
24214
24215
24216 # Check whether --enable-tray-monitor was given.
24217 if test "${enable_tray_monitor+set}" = set; then
24218   enableval=$enable_tray_monitor;
24219        if test x$enableval = xyes; then
24220           support_tray_monitor=yes
24221        fi
24222
24223
24224 fi
24225
24226
24227 TRAY_MONITOR_DIR=
24228 if test x$support_tray_monitor = xyes; then
24229    abc=`$PKGCONFIG --exists gtk+-2.0`
24230    pkg=$?
24231    if test $pkg = 0; then
24232       TRAY_MONITOR_CPPFLAGS=`$PKGCONFIG --cflags gtk+-2.0`
24233       TRAY_MONITOR_LDFLAGS=`$PKGCONFIG --libs gtk+-2.0`
24234
24235
24236       TRAY_MONITOR_DIR=src/tray-monitor
24237       abc=`$PKGCONFIG --atleast-version=2.4 gtk+-2.0`
24238       pkg=$?
24239       if test $pkg = 0; then
24240
24241 cat >>confdefs.h <<\_ACEOF
24242 #define HAVE_GTK_2_4 1
24243 _ACEOF
24244
24245       fi
24246    fi
24247 fi
24248
24249
24250 # Check whether --enable-smartalloc was given.
24251 if test "${enable_smartalloc+set}" = set; then
24252   enableval=$enable_smartalloc;
24253        if test x$enableval = xno; then
24254           support_smartalloc=no
24255        fi
24256
24257
24258 fi
24259
24260
24261 if test x$support_smartalloc = xyes; then
24262
24263 cat >>confdefs.h <<\_ACEOF
24264 #define SMARTALLOC 1
24265 _ACEOF
24266
24267 fi
24268
24269 # Check whether --enable-lockmgr was given.
24270 if test "${enable_lockmgr+set}" = set; then
24271   enableval=$enable_lockmgr;
24272        if test x$enableval = xyes; then
24273           support_lockmgr=yes
24274        fi
24275
24276
24277 fi
24278
24279
24280 if test x$support_lockmgr = xyes; then
24281
24282 cat >>confdefs.h <<\_ACEOF
24283 #define _USE_LOCKMGR 1
24284 _ACEOF
24285
24286 fi
24287
24288
24289 # Check whether --enable-static-tools was given.
24290 if test "${enable_static_tools+set}" = set; then
24291   enableval=$enable_static_tools;
24292        if test x$enableval = xyes; then
24293           if test x$use_libtool = xyes; then
24294              { { echo "$as_me:$LINENO: error: Libtool is enabled, not compatible with static tools,
24295   please rerun configure with --disable-libtool" >&5
24296 echo "$as_me: error: Libtool is enabled, not compatible with static tools,
24297   please rerun configure with --disable-libtool" >&2;}
24298    { (exit 1); exit 1; }; }
24299           fi
24300           support_static_tools=yes
24301        fi
24302
24303
24304 fi
24305
24306
24307 TTOOL_LDFLAGS=
24308 if test x$support_static_tools = xyes; then
24309    TTOOL_LDFLAGS="-static"
24310 fi
24311
24312
24313 # Check whether --enable-static-fd was given.
24314 if test "${enable_static_fd+set}" = set; then
24315   enableval=$enable_static_fd;
24316        if test x$enableval = xyes; then
24317           if test x$use_libtool = xyes; then
24318              { { echo "$as_me:$LINENO: error: Libtool is enabled, not compatible with static tools,
24319   please rerun configure with --disable-libtool" >&5
24320 echo "$as_me: error: Libtool is enabled, not compatible with static tools,
24321   please rerun configure with --disable-libtool" >&2;}
24322    { (exit 1); exit 1; }; }
24323           fi
24324           support_static_fd=yes
24325        fi
24326
24327
24328 fi
24329
24330
24331 STATIC_FD=
24332 if test x$support_static_fd = xyes; then
24333    STATIC_FD="static-bacula-fd"
24334 fi
24335
24336
24337 # Check whether --enable-static-sd was given.
24338 if test "${enable_static_sd+set}" = set; then
24339   enableval=$enable_static_sd;
24340        if test x$enableval = xyes; then
24341           if test x$use_libtool = xyes; then
24342              { { echo "$as_me:$LINENO: error: Libtool is enabled, not compatible with static tools,
24343   please rerun configure with --disable-libtool" >&5
24344 echo "$as_me: error: Libtool is enabled, not compatible with static tools,
24345   please rerun configure with --disable-libtool" >&2;}
24346    { (exit 1); exit 1; }; }
24347           fi
24348           support_static_sd=yes
24349        fi
24350
24351
24352 fi
24353
24354
24355 STATIC_SD=
24356 if test x$support_static_sd = xyes; then
24357    STATIC_SD="static-bacula-sd"
24358 fi
24359
24360
24361 # Check whether --enable-static-dir was given.
24362 if test "${enable_static_dir+set}" = set; then
24363   enableval=$enable_static_dir;
24364        if test x$enableval = xyes; then
24365           if test x$use_libtool = xyes; then
24366              { { echo "$as_me:$LINENO: error: Libtool is enabled, not compatible with static tools,
24367   please rerun configure with --disable-libtool" >&5
24368 echo "$as_me: error: Libtool is enabled, not compatible with static tools,
24369   please rerun configure with --disable-libtool" >&2;}
24370    { (exit 1); exit 1; }; }
24371           fi
24372           support_static_dir=yes
24373        fi
24374
24375
24376 fi
24377
24378
24379 STATIC_DIR=
24380 if test x$support_static_dir = xyes; then
24381    STATIC_DIR="static-bacula-dir"
24382 fi
24383
24384
24385 # Check whether --enable-static-cons was given.
24386 if test "${enable_static_cons+set}" = set; then
24387   enableval=$enable_static_cons;
24388        if test x$enableval = xyes; then
24389           if test x$use_libtool = xyes; then
24390              { { echo "$as_me:$LINENO: error: Libtool is enabled, not compatible with static tools,
24391   please rerun configure with --disable-libtool" >&5
24392 echo "$as_me: error: Libtool is enabled, not compatible with static tools,
24393   please rerun configure with --disable-libtool" >&2;}
24394    { (exit 1); exit 1; }; }
24395           fi
24396           support_static_cons=yes
24397        fi
24398
24399
24400 fi
24401
24402
24403 STATIC_CONS=
24404 STATIC_GNOME_CONS=
24405 STATIC_WX_CONS=
24406 if test x$support_static_cons = xyes; then
24407    STATIC_CONS="static-bconsole"
24408    STATIC_GNOME_CONS="static-bgnome-console"
24409    STATIC_WX_CONS="static-bwx-console"
24410 fi
24411
24412
24413
24414
24415 # Check whether --enable-client-only was given.
24416 if test "${enable_client_only+set}" = set; then
24417   enableval=$enable_client_only;
24418        if test x$enableval = xyes; then
24419           build_client_only=yes
24420           db_type=None
24421           DB_TYPE=none
24422        fi
24423
24424
24425 fi
24426
24427 if test x$build_client_only = xno; then
24428    ALL_DIRS="subdirs"
24429 else
24430    ALL_DIRS=""
24431 fi
24432
24433
24434 # Check whether --enable-build-dird was given.
24435 if test "${enable_build_dird+set}" = set; then
24436   enableval=$enable_build_dird;
24437        if test x$enableval = xno; then
24438           build_dird=no
24439        fi
24440
24441
24442 fi
24443
24444 if test x$build_dird = xyes; then
24445    DIRD_DIR="src/dird"
24446    DIR_TOOLS="DIRTOOLS"
24447 else
24448    DIRD_DIR=""
24449    DIR_TOOLS="NODIRTOOLS"
24450 fi
24451
24452
24453
24454 # Check whether --enable-build-stored was given.
24455 if test "${enable_build_stored+set}" = set; then
24456   enableval=$enable_build_stored;
24457       if test x$enableval = xno; then
24458          build_stored=no
24459       fi
24460
24461
24462 fi
24463
24464 if test x$build_stored = xyes; then
24465    STORED_DIR="src/stored"
24466 else
24467    STORED_DIR=""
24468 fi
24469
24470
24471 # Check whether --enable-conio was given.
24472 if test "${enable_conio+set}" = set; then
24473   enableval=$enable_conio;
24474        if test x$enableval = xno; then
24475           support_conio=no
24476        fi
24477
24478
24479 fi
24480
24481
24482
24483 support_ipv6=yes
24484 # Check whether --enable-ipv6 was given.
24485 if test "${enable_ipv6+set}" = set; then
24486   enableval=$enable_ipv6;
24487        if test x$enableval = xno; then
24488           support_ipv6=no
24489        fi
24490
24491
24492 fi
24493
24494
24495 if test x$support_ipv6 = xyes; then
24496     cat >conftest.$ac_ext <<_ACEOF
24497 /* confdefs.h.  */
24498 _ACEOF
24499 cat confdefs.h >>conftest.$ac_ext
24500 cat >>conftest.$ac_ext <<_ACEOF
24501 /* end confdefs.h.  */
24502  #include <sys/types.h>
24503 #include <sys/socket.h>
24504 #include <netinet/in.h>
24505 int
24506 main ()
24507 {
24508 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] = 0;
24509   ;
24510   return 0;
24511 }
24512 _ACEOF
24513 rm -f conftest.$ac_objext conftest$ac_exeext
24514 if { (ac_try="$ac_link"
24515 case "(($ac_try" in
24516   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24517   *) ac_try_echo=$ac_try;;
24518 esac
24519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24520   (eval "$ac_link") 2>conftest.er1
24521   ac_status=$?
24522   grep -v '^ *+' conftest.er1 >conftest.err
24523   rm -f conftest.er1
24524   cat conftest.err >&5
24525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24526   (exit $ac_status); } && {
24527          test -z "$ac_cxx_werror_flag" ||
24528          test ! -s conftest.err
24529        } && test -s conftest$ac_exeext &&
24530        $as_test_x conftest$ac_exeext; then
24531   support_ipv6=yes
24532 else
24533   echo "$as_me: failed program was:" >&5
24534 sed 's/^/| /' conftest.$ac_ext >&5
24535
24536         support_ipv6=no
24537 fi
24538
24539 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24540       conftest$ac_exeext conftest.$ac_ext
24541 fi
24542
24543 if test x$support_ipv6 = xyes; then
24544
24545 cat >>confdefs.h <<\_ACEOF
24546 #define HAVE_IPV6 1
24547 _ACEOF
24548
24549 fi
24550
24551 got_conio="no"
24552 if test x$support_conio = xyes; then
24553    if test "${ac_cv_header_termcap_h+set}" = set; then
24554   { echo "$as_me:$LINENO: checking for termcap.h" >&5
24555 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6; }
24556 if test "${ac_cv_header_termcap_h+set}" = set; then
24557   echo $ECHO_N "(cached) $ECHO_C" >&6
24558 fi
24559 { echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
24560 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6; }
24561 else
24562   # Is the header compilable?
24563 { echo "$as_me:$LINENO: checking termcap.h usability" >&5
24564 echo $ECHO_N "checking termcap.h usability... $ECHO_C" >&6; }
24565 cat >conftest.$ac_ext <<_ACEOF
24566 /* confdefs.h.  */
24567 _ACEOF
24568 cat confdefs.h >>conftest.$ac_ext
24569 cat >>conftest.$ac_ext <<_ACEOF
24570 /* end confdefs.h.  */
24571 $ac_includes_default
24572 #include <termcap.h>
24573 _ACEOF
24574 rm -f conftest.$ac_objext
24575 if { (ac_try="$ac_compile"
24576 case "(($ac_try" in
24577   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24578   *) ac_try_echo=$ac_try;;
24579 esac
24580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24581   (eval "$ac_compile") 2>conftest.er1
24582   ac_status=$?
24583   grep -v '^ *+' conftest.er1 >conftest.err
24584   rm -f conftest.er1
24585   cat conftest.err >&5
24586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24587   (exit $ac_status); } && {
24588          test -z "$ac_cxx_werror_flag" ||
24589          test ! -s conftest.err
24590        } && test -s conftest.$ac_objext; then
24591   ac_header_compiler=yes
24592 else
24593   echo "$as_me: failed program was:" >&5
24594 sed 's/^/| /' conftest.$ac_ext >&5
24595
24596         ac_header_compiler=no
24597 fi
24598
24599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24600 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24601 echo "${ECHO_T}$ac_header_compiler" >&6; }
24602
24603 # Is the header present?
24604 { echo "$as_me:$LINENO: checking termcap.h presence" >&5
24605 echo $ECHO_N "checking termcap.h presence... $ECHO_C" >&6; }
24606 cat >conftest.$ac_ext <<_ACEOF
24607 /* confdefs.h.  */
24608 _ACEOF
24609 cat confdefs.h >>conftest.$ac_ext
24610 cat >>conftest.$ac_ext <<_ACEOF
24611 /* end confdefs.h.  */
24612 #include <termcap.h>
24613 _ACEOF
24614 if { (ac_try="$ac_cpp conftest.$ac_ext"
24615 case "(($ac_try" in
24616   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24617   *) ac_try_echo=$ac_try;;
24618 esac
24619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24620   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24621   ac_status=$?
24622   grep -v '^ *+' conftest.er1 >conftest.err
24623   rm -f conftest.er1
24624   cat conftest.err >&5
24625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24626   (exit $ac_status); } >/dev/null && {
24627          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
24628          test ! -s conftest.err
24629        }; then
24630   ac_header_preproc=yes
24631 else
24632   echo "$as_me: failed program was:" >&5
24633 sed 's/^/| /' conftest.$ac_ext >&5
24634
24635   ac_header_preproc=no
24636 fi
24637
24638 rm -f conftest.err conftest.$ac_ext
24639 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24640 echo "${ECHO_T}$ac_header_preproc" >&6; }
24641
24642 # So?  What about this header?
24643 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
24644   yes:no: )
24645     { echo "$as_me:$LINENO: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&5
24646 echo "$as_me: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24647     { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the compiler's result" >&5
24648 echo "$as_me: WARNING: termcap.h: proceeding with the compiler's result" >&2;}
24649     ac_header_preproc=yes
24650     ;;
24651   no:yes:* )
24652     { echo "$as_me:$LINENO: WARNING: termcap.h: present but cannot be compiled" >&5
24653 echo "$as_me: WARNING: termcap.h: present but cannot be compiled" >&2;}
24654     { echo "$as_me:$LINENO: WARNING: termcap.h:     check for missing prerequisite headers?" >&5
24655 echo "$as_me: WARNING: termcap.h:     check for missing prerequisite headers?" >&2;}
24656     { echo "$as_me:$LINENO: WARNING: termcap.h: see the Autoconf documentation" >&5
24657 echo "$as_me: WARNING: termcap.h: see the Autoconf documentation" >&2;}
24658     { echo "$as_me:$LINENO: WARNING: termcap.h:     section \"Present But Cannot Be Compiled\"" >&5
24659 echo "$as_me: WARNING: termcap.h:     section \"Present But Cannot Be Compiled\"" >&2;}
24660     { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the preprocessor's result" >&5
24661 echo "$as_me: WARNING: termcap.h: proceeding with the preprocessor's result" >&2;}
24662     { echo "$as_me:$LINENO: WARNING: termcap.h: in the future, the compiler will take precedence" >&5
24663 echo "$as_me: WARNING: termcap.h: in the future, the compiler will take precedence" >&2;}
24664
24665     ;;
24666 esac
24667 { echo "$as_me:$LINENO: checking for termcap.h" >&5
24668 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6; }
24669 if test "${ac_cv_header_termcap_h+set}" = set; then
24670   echo $ECHO_N "(cached) $ECHO_C" >&6
24671 else
24672   ac_cv_header_termcap_h=$ac_header_preproc
24673 fi
24674 { echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
24675 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6; }
24676
24677 fi
24678 if test $ac_cv_header_termcap_h = yes; then
24679    { echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
24680 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6; }
24681 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
24682   echo $ECHO_N "(cached) $ECHO_C" >&6
24683 else
24684   ac_check_lib_save_LIBS=$LIBS
24685 LIBS="-ltermcap  $LIBS"
24686 cat >conftest.$ac_ext <<_ACEOF
24687 /* confdefs.h.  */
24688 _ACEOF
24689 cat confdefs.h >>conftest.$ac_ext
24690 cat >>conftest.$ac_ext <<_ACEOF
24691 /* end confdefs.h.  */
24692
24693 /* Override any GCC internal prototype to avoid an error.
24694    Use char because int might match the return type of a GCC
24695    builtin and then its argument prototype would still apply.  */
24696 #ifdef __cplusplus
24697 extern "C"
24698 #endif
24699 char tgetent ();
24700 int
24701 main ()
24702 {
24703 return tgetent ();
24704   ;
24705   return 0;
24706 }
24707 _ACEOF
24708 rm -f conftest.$ac_objext conftest$ac_exeext
24709 if { (ac_try="$ac_link"
24710 case "(($ac_try" in
24711   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24712   *) ac_try_echo=$ac_try;;
24713 esac
24714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24715   (eval "$ac_link") 2>conftest.er1
24716   ac_status=$?
24717   grep -v '^ *+' conftest.er1 >conftest.err
24718   rm -f conftest.er1
24719   cat conftest.err >&5
24720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24721   (exit $ac_status); } && {
24722          test -z "$ac_cxx_werror_flag" ||
24723          test ! -s conftest.err
24724        } && test -s conftest$ac_exeext &&
24725        $as_test_x conftest$ac_exeext; then
24726   ac_cv_lib_termcap_tgetent=yes
24727 else
24728   echo "$as_me: failed program was:" >&5
24729 sed 's/^/| /' conftest.$ac_ext >&5
24730
24731         ac_cv_lib_termcap_tgetent=no
24732 fi
24733
24734 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24735       conftest$ac_exeext conftest.$ac_ext
24736 LIBS=$ac_check_lib_save_LIBS
24737 fi
24738 { echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
24739 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6; }
24740 if test $ac_cv_lib_termcap_tgetent = yes; then
24741    CONS_LIBS="-ltermcap"
24742     CONS_OBJ="conio.o"
24743     CONS_SRC="conio.c"
24744     got_conio="yes"
24745     support_readline=no
24746
24747 cat >>confdefs.h <<\_ACEOF
24748 #define HAVE_CONIO 1
24749 _ACEOF
24750
24751
24752 else
24753    { echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
24754 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6; }
24755 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
24756   echo $ECHO_N "(cached) $ECHO_C" >&6
24757 else
24758   ac_check_lib_save_LIBS=$LIBS
24759 LIBS="-lncurses  $LIBS"
24760 cat >conftest.$ac_ext <<_ACEOF
24761 /* confdefs.h.  */
24762 _ACEOF
24763 cat confdefs.h >>conftest.$ac_ext
24764 cat >>conftest.$ac_ext <<_ACEOF
24765 /* end confdefs.h.  */
24766
24767 /* Override any GCC internal prototype to avoid an error.
24768    Use char because int might match the return type of a GCC
24769    builtin and then its argument prototype would still apply.  */
24770 #ifdef __cplusplus
24771 extern "C"
24772 #endif
24773 char tgetent ();
24774 int
24775 main ()
24776 {
24777 return tgetent ();
24778   ;
24779   return 0;
24780 }
24781 _ACEOF
24782 rm -f conftest.$ac_objext conftest$ac_exeext
24783 if { (ac_try="$ac_link"
24784 case "(($ac_try" in
24785   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24786   *) ac_try_echo=$ac_try;;
24787 esac
24788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24789   (eval "$ac_link") 2>conftest.er1
24790   ac_status=$?
24791   grep -v '^ *+' conftest.er1 >conftest.err
24792   rm -f conftest.er1
24793   cat conftest.err >&5
24794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24795   (exit $ac_status); } && {
24796          test -z "$ac_cxx_werror_flag" ||
24797          test ! -s conftest.err
24798        } && test -s conftest$ac_exeext &&
24799        $as_test_x conftest$ac_exeext; then
24800   ac_cv_lib_ncurses_tgetent=yes
24801 else
24802   echo "$as_me: failed program was:" >&5
24803 sed 's/^/| /' conftest.$ac_ext >&5
24804
24805         ac_cv_lib_ncurses_tgetent=no
24806 fi
24807
24808 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24809       conftest$ac_exeext conftest.$ac_ext
24810 LIBS=$ac_check_lib_save_LIBS
24811 fi
24812 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
24813 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6; }
24814 if test $ac_cv_lib_ncurses_tgetent = yes; then
24815    CONS_LIBS="-lncurses"
24816       CONS_OBJ="conio.o"
24817       CONS_SRC="conio.c"
24818       got_conio="yes"
24819       support_readline=no
24820
24821 cat >>confdefs.h <<\_ACEOF
24822 #define HAVE_CONIO 1
24823 _ACEOF
24824
24825
24826 fi
24827
24828
24829 fi
24830
24831
24832 else
24833
24834
24835 for ac_header in curses.h
24836 do
24837 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24838 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24839   { echo "$as_me:$LINENO: checking for $ac_header" >&5
24840 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24841 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24842   echo $ECHO_N "(cached) $ECHO_C" >&6
24843 fi
24844 ac_res=`eval echo '${'$as_ac_Header'}'`
24845                { echo "$as_me:$LINENO: result: $ac_res" >&5
24846 echo "${ECHO_T}$ac_res" >&6; }
24847 else
24848   # Is the header compilable?
24849 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
24850 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
24851 cat >conftest.$ac_ext <<_ACEOF
24852 /* confdefs.h.  */
24853 _ACEOF
24854 cat confdefs.h >>conftest.$ac_ext
24855 cat >>conftest.$ac_ext <<_ACEOF
24856 /* end confdefs.h.  */
24857 $ac_includes_default
24858 #include <$ac_header>
24859 _ACEOF
24860 rm -f conftest.$ac_objext
24861 if { (ac_try="$ac_compile"
24862 case "(($ac_try" in
24863   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24864   *) ac_try_echo=$ac_try;;
24865 esac
24866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24867   (eval "$ac_compile") 2>conftest.er1
24868   ac_status=$?
24869   grep -v '^ *+' conftest.er1 >conftest.err
24870   rm -f conftest.er1
24871   cat conftest.err >&5
24872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24873   (exit $ac_status); } && {
24874          test -z "$ac_cxx_werror_flag" ||
24875          test ! -s conftest.err
24876        } && test -s conftest.$ac_objext; then
24877   ac_header_compiler=yes
24878 else
24879   echo "$as_me: failed program was:" >&5
24880 sed 's/^/| /' conftest.$ac_ext >&5
24881
24882         ac_header_compiler=no
24883 fi
24884
24885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24886 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24887 echo "${ECHO_T}$ac_header_compiler" >&6; }
24888
24889 # Is the header present?
24890 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
24891 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
24892 cat >conftest.$ac_ext <<_ACEOF
24893 /* confdefs.h.  */
24894 _ACEOF
24895 cat confdefs.h >>conftest.$ac_ext
24896 cat >>conftest.$ac_ext <<_ACEOF
24897 /* end confdefs.h.  */
24898 #include <$ac_header>
24899 _ACEOF
24900 if { (ac_try="$ac_cpp conftest.$ac_ext"
24901 case "(($ac_try" in
24902   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24903   *) ac_try_echo=$ac_try;;
24904 esac
24905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24906   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24907   ac_status=$?
24908   grep -v '^ *+' conftest.er1 >conftest.err
24909   rm -f conftest.er1
24910   cat conftest.err >&5
24911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24912   (exit $ac_status); } >/dev/null && {
24913          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
24914          test ! -s conftest.err
24915        }; then
24916   ac_header_preproc=yes
24917 else
24918   echo "$as_me: failed program was:" >&5
24919 sed 's/^/| /' conftest.$ac_ext >&5
24920
24921   ac_header_preproc=no
24922 fi
24923
24924 rm -f conftest.err conftest.$ac_ext
24925 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24926 echo "${ECHO_T}$ac_header_preproc" >&6; }
24927
24928 # So?  What about this header?
24929 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
24930   yes:no: )
24931     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24932 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24933     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24934 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24935     ac_header_preproc=yes
24936     ;;
24937   no:yes:* )
24938     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24939 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24940     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
24941 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
24942     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24943 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24944     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
24945 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
24946     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24947 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24948     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24949 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24950
24951     ;;
24952 esac
24953 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24954 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24955 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24956   echo $ECHO_N "(cached) $ECHO_C" >&6
24957 else
24958   eval "$as_ac_Header=\$ac_header_preproc"
24959 fi
24960 ac_res=`eval echo '${'$as_ac_Header'}'`
24961                { echo "$as_me:$LINENO: result: $ac_res" >&5
24962 echo "${ECHO_T}$ac_res" >&6; }
24963
24964 fi
24965 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24966   cat >>confdefs.h <<_ACEOF
24967 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24968 _ACEOF
24969
24970 fi
24971
24972 done
24973
24974     { echo "$as_me:$LINENO: checking for term.h" >&5
24975 echo $ECHO_N "checking for term.h... $ECHO_C" >&6; }
24976 if test "${ac_cv_header_term_h+set}" = set; then
24977   echo $ECHO_N "(cached) $ECHO_C" >&6
24978 else
24979   cat >conftest.$ac_ext <<_ACEOF
24980 /* confdefs.h.  */
24981 _ACEOF
24982 cat confdefs.h >>conftest.$ac_ext
24983 cat >>conftest.$ac_ext <<_ACEOF
24984 /* end confdefs.h.  */
24985 #if HAVE_CURSES_H
24986 #include <curses.h>
24987 #endif
24988
24989
24990 #include <term.h>
24991 _ACEOF
24992 rm -f conftest.$ac_objext
24993 if { (ac_try="$ac_compile"
24994 case "(($ac_try" in
24995   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24996   *) ac_try_echo=$ac_try;;
24997 esac
24998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24999   (eval "$ac_compile") 2>conftest.er1
25000   ac_status=$?
25001   grep -v '^ *+' conftest.er1 >conftest.err
25002   rm -f conftest.er1
25003   cat conftest.err >&5
25004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25005   (exit $ac_status); } && {
25006          test -z "$ac_cxx_werror_flag" ||
25007          test ! -s conftest.err
25008        } && test -s conftest.$ac_objext; then
25009   ac_cv_header_term_h=yes
25010 else
25011   echo "$as_me: failed program was:" >&5
25012 sed 's/^/| /' conftest.$ac_ext >&5
25013
25014         ac_cv_header_term_h=no
25015 fi
25016
25017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25018 fi
25019 { echo "$as_me:$LINENO: result: $ac_cv_header_term_h" >&5
25020 echo "${ECHO_T}$ac_cv_header_term_h" >&6; }
25021 if test $ac_cv_header_term_h = yes; then
25022    { echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
25023 echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6; }
25024 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
25025   echo $ECHO_N "(cached) $ECHO_C" >&6
25026 else
25027   ac_check_lib_save_LIBS=$LIBS
25028 LIBS="-lcurses  $LIBS"
25029 cat >conftest.$ac_ext <<_ACEOF
25030 /* confdefs.h.  */
25031 _ACEOF
25032 cat confdefs.h >>conftest.$ac_ext
25033 cat >>conftest.$ac_ext <<_ACEOF
25034 /* end confdefs.h.  */
25035
25036 /* Override any GCC internal prototype to avoid an error.
25037    Use char because int might match the return type of a GCC
25038    builtin and then its argument prototype would still apply.  */
25039 #ifdef __cplusplus
25040 extern "C"
25041 #endif
25042 char tgetent ();
25043 int
25044 main ()
25045 {
25046 return tgetent ();
25047   ;
25048   return 0;
25049 }
25050 _ACEOF
25051 rm -f conftest.$ac_objext conftest$ac_exeext
25052 if { (ac_try="$ac_link"
25053 case "(($ac_try" in
25054   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25055   *) ac_try_echo=$ac_try;;
25056 esac
25057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25058   (eval "$ac_link") 2>conftest.er1
25059   ac_status=$?
25060   grep -v '^ *+' conftest.er1 >conftest.err
25061   rm -f conftest.er1
25062   cat conftest.err >&5
25063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25064   (exit $ac_status); } && {
25065          test -z "$ac_cxx_werror_flag" ||
25066          test ! -s conftest.err
25067        } && test -s conftest$ac_exeext &&
25068        $as_test_x conftest$ac_exeext; then
25069   ac_cv_lib_curses_tgetent=yes
25070 else
25071   echo "$as_me: failed program was:" >&5
25072 sed 's/^/| /' conftest.$ac_ext >&5
25073
25074         ac_cv_lib_curses_tgetent=no
25075 fi
25076
25077 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25078       conftest$ac_exeext conftest.$ac_ext
25079 LIBS=$ac_check_lib_save_LIBS
25080 fi
25081 { echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
25082 echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6; }
25083 if test $ac_cv_lib_curses_tgetent = yes; then
25084    CONS_LIBS="-lcurses"
25085          CONS_OBJ="conio.o"
25086          CONS_SRC="conio.c"
25087          got_conio="yes"
25088          support_readline=no
25089
25090 cat >>confdefs.h <<\_ACEOF
25091 #define HAVE_CONIO 1
25092 _ACEOF
25093
25094
25095 fi
25096
25097
25098 else
25099    echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "
25100 fi
25101
25102
25103
25104 fi
25105
25106
25107 fi
25108
25109
25110 # Check whether --enable-readline was given.
25111 if test "${enable_readline+set}" = set; then
25112   enableval=$enable_readline;
25113        if test x$enableval = xno; then
25114           support_readline=no
25115        fi
25116
25117
25118 fi
25119
25120
25121 got_readline="no"
25122 READLINE_SRC=
25123 if test x$support_readline = xyes; then
25124
25125 # Check whether --with-readline was given.
25126 if test "${with_readline+set}" = set; then
25127   withval=$with_readline;
25128           case "$with_readline" in
25129           no)
25130              :
25131              ;;
25132           yes|*)
25133              if test -f ${with_readline}/readline.h; then
25134                 CONS_INC="-I${with_readline}"
25135                 CONS_LDFLAGS="-L$with_readline"
25136              elif test -f ${with_readline}/include/readline/readline.h; then
25137                 CONS_INC="-I${with_readline}/include/readline"
25138                 CONS_LDFLAGS="-L${with_readline}/lib"
25139                 with_readline="${with_readline}/include/readline"
25140              else
25141                 with_readline="/usr/include/readline"
25142              fi
25143
25144              as_ac_Header=`echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
25145 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25146   { echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
25147 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6; }
25148 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25149   echo $ECHO_N "(cached) $ECHO_C" >&6
25150 fi
25151 ac_res=`eval echo '${'$as_ac_Header'}'`
25152                { echo "$as_me:$LINENO: result: $ac_res" >&5
25153 echo "${ECHO_T}$ac_res" >&6; }
25154 else
25155   # Is the header compilable?
25156 { echo "$as_me:$LINENO: checking ${with_readline}/readline.h usability" >&5
25157 echo $ECHO_N "checking ${with_readline}/readline.h usability... $ECHO_C" >&6; }
25158 cat >conftest.$ac_ext <<_ACEOF
25159 /* confdefs.h.  */
25160 _ACEOF
25161 cat confdefs.h >>conftest.$ac_ext
25162 cat >>conftest.$ac_ext <<_ACEOF
25163 /* end confdefs.h.  */
25164 $ac_includes_default
25165 #include <${with_readline}/readline.h>
25166 _ACEOF
25167 rm -f conftest.$ac_objext
25168 if { (ac_try="$ac_compile"
25169 case "(($ac_try" in
25170   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25171   *) ac_try_echo=$ac_try;;
25172 esac
25173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25174   (eval "$ac_compile") 2>conftest.er1
25175   ac_status=$?
25176   grep -v '^ *+' conftest.er1 >conftest.err
25177   rm -f conftest.er1
25178   cat conftest.err >&5
25179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25180   (exit $ac_status); } && {
25181          test -z "$ac_cxx_werror_flag" ||
25182          test ! -s conftest.err
25183        } && test -s conftest.$ac_objext; then
25184   ac_header_compiler=yes
25185 else
25186   echo "$as_me: failed program was:" >&5
25187 sed 's/^/| /' conftest.$ac_ext >&5
25188
25189         ac_header_compiler=no
25190 fi
25191
25192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25193 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25194 echo "${ECHO_T}$ac_header_compiler" >&6; }
25195
25196 # Is the header present?
25197 { echo "$as_me:$LINENO: checking ${with_readline}/readline.h presence" >&5
25198 echo $ECHO_N "checking ${with_readline}/readline.h presence... $ECHO_C" >&6; }
25199 cat >conftest.$ac_ext <<_ACEOF
25200 /* confdefs.h.  */
25201 _ACEOF
25202 cat confdefs.h >>conftest.$ac_ext
25203 cat >>conftest.$ac_ext <<_ACEOF
25204 /* end confdefs.h.  */
25205 #include <${with_readline}/readline.h>
25206 _ACEOF
25207 if { (ac_try="$ac_cpp conftest.$ac_ext"
25208 case "(($ac_try" in
25209   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25210   *) ac_try_echo=$ac_try;;
25211 esac
25212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25213   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25214   ac_status=$?
25215   grep -v '^ *+' conftest.er1 >conftest.err
25216   rm -f conftest.er1
25217   cat conftest.err >&5
25218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25219   (exit $ac_status); } >/dev/null && {
25220          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
25221          test ! -s conftest.err
25222        }; then
25223   ac_header_preproc=yes
25224 else
25225   echo "$as_me: failed program was:" >&5
25226 sed 's/^/| /' conftest.$ac_ext >&5
25227
25228   ac_header_preproc=no
25229 fi
25230
25231 rm -f conftest.err conftest.$ac_ext
25232 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25233 echo "${ECHO_T}$ac_header_preproc" >&6; }
25234
25235 # So?  What about this header?
25236 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
25237   yes:no: )
25238     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
25239 echo "$as_me: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25240     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&5
25241 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&2;}
25242     ac_header_preproc=yes
25243     ;;
25244   no:yes:* )
25245     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&5
25246 echo "$as_me: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&2;}
25247     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h:     check for missing prerequisite headers?" >&5
25248 echo "$as_me: WARNING: ${with_readline}/readline.h:     check for missing prerequisite headers?" >&2;}
25249     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&5
25250 echo "$as_me: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&2;}
25251     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
25252 echo "$as_me: WARNING: ${with_readline}/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
25253     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
25254 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
25255     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&5
25256 echo "$as_me: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&2;}
25257
25258     ;;
25259 esac
25260 { echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
25261 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6; }
25262 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25263   echo $ECHO_N "(cached) $ECHO_C" >&6
25264 else
25265   eval "$as_ac_Header=\$ac_header_preproc"
25266 fi
25267 ac_res=`eval echo '${'$as_ac_Header'}'`
25268                { echo "$as_me:$LINENO: result: $ac_res" >&5
25269 echo "${ECHO_T}$ac_res" >&6; }
25270
25271 fi
25272 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25273
25274
25275 cat >>confdefs.h <<\_ACEOF
25276 #define HAVE_READLINE 1
25277 _ACEOF
25278
25279                     CONS_LIBS="-lreadline -lhistory -ltermcap"
25280                     got_readline="yes"
25281
25282 else
25283
25284                     echo " "
25285                     echo "readline.h not found. readline turned off ..."
25286                     echo " "
25287
25288
25289 fi
25290
25291
25292              ;;
25293           esac
25294
25295 else
25296
25297                  if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
25298   { echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
25299 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6; }
25300 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
25301   echo $ECHO_N "(cached) $ECHO_C" >&6
25302 fi
25303 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
25304 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6; }
25305 else
25306   # Is the header compilable?
25307 { echo "$as_me:$LINENO: checking /usr/include/readline/readline.h usability" >&5
25308 echo $ECHO_N "checking /usr/include/readline/readline.h usability... $ECHO_C" >&6; }
25309 cat >conftest.$ac_ext <<_ACEOF
25310 /* confdefs.h.  */
25311 _ACEOF
25312 cat confdefs.h >>conftest.$ac_ext
25313 cat >>conftest.$ac_ext <<_ACEOF
25314 /* end confdefs.h.  */
25315 $ac_includes_default
25316 #include </usr/include/readline/readline.h>
25317 _ACEOF
25318 rm -f conftest.$ac_objext
25319 if { (ac_try="$ac_compile"
25320 case "(($ac_try" in
25321   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25322   *) ac_try_echo=$ac_try;;
25323 esac
25324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25325   (eval "$ac_compile") 2>conftest.er1
25326   ac_status=$?
25327   grep -v '^ *+' conftest.er1 >conftest.err
25328   rm -f conftest.er1
25329   cat conftest.err >&5
25330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25331   (exit $ac_status); } && {
25332          test -z "$ac_cxx_werror_flag" ||
25333          test ! -s conftest.err
25334        } && test -s conftest.$ac_objext; then
25335   ac_header_compiler=yes
25336 else
25337   echo "$as_me: failed program was:" >&5
25338 sed 's/^/| /' conftest.$ac_ext >&5
25339
25340         ac_header_compiler=no
25341 fi
25342
25343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25344 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25345 echo "${ECHO_T}$ac_header_compiler" >&6; }
25346
25347 # Is the header present?
25348 { echo "$as_me:$LINENO: checking /usr/include/readline/readline.h presence" >&5
25349 echo $ECHO_N "checking /usr/include/readline/readline.h presence... $ECHO_C" >&6; }
25350 cat >conftest.$ac_ext <<_ACEOF
25351 /* confdefs.h.  */
25352 _ACEOF
25353 cat confdefs.h >>conftest.$ac_ext
25354 cat >>conftest.$ac_ext <<_ACEOF
25355 /* end confdefs.h.  */
25356 #include </usr/include/readline/readline.h>
25357 _ACEOF
25358 if { (ac_try="$ac_cpp conftest.$ac_ext"
25359 case "(($ac_try" in
25360   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25361   *) ac_try_echo=$ac_try;;
25362 esac
25363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25364   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25365   ac_status=$?
25366   grep -v '^ *+' conftest.er1 >conftest.err
25367   rm -f conftest.er1
25368   cat conftest.err >&5
25369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25370   (exit $ac_status); } >/dev/null && {
25371          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
25372          test ! -s conftest.err
25373        }; then
25374   ac_header_preproc=yes
25375 else
25376   echo "$as_me: failed program was:" >&5
25377 sed 's/^/| /' conftest.$ac_ext >&5
25378
25379   ac_header_preproc=no
25380 fi
25381
25382 rm -f conftest.err conftest.$ac_ext
25383 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25384 echo "${ECHO_T}$ac_header_preproc" >&6; }
25385
25386 # So?  What about this header?
25387 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
25388   yes:no: )
25389     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
25390 echo "$as_me: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25391     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&5
25392 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&2;}
25393     ac_header_preproc=yes
25394     ;;
25395   no:yes:* )
25396     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&5
25397 echo "$as_me: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&2;}
25398     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h:     check for missing prerequisite headers?" >&5
25399 echo "$as_me: WARNING: /usr/include/readline/readline.h:     check for missing prerequisite headers?" >&2;}
25400     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&5
25401 echo "$as_me: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&2;}
25402     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
25403 echo "$as_me: WARNING: /usr/include/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
25404     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
25405 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
25406     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&5
25407 echo "$as_me: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&2;}
25408
25409     ;;
25410 esac
25411 { echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
25412 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6; }
25413 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
25414   echo $ECHO_N "(cached) $ECHO_C" >&6
25415 else
25416   ac_cv_header__usr_include_readline_readline_h=$ac_header_preproc
25417 fi
25418 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
25419 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6; }
25420
25421 fi
25422 if test $ac_cv_header__usr_include_readline_readline_h = yes; then
25423
25424
25425 cat >>confdefs.h <<\_ACEOF
25426 #define HAVE_READLINE 1
25427 _ACEOF
25428
25429                 got_readline="yes"
25430                 CONS_INC="-I/usr/include/readline"
25431                 CONS_LIBS="-lreadline -ltermcap"
25432
25433 else
25434
25435                                 as_ac_Header=`echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
25436 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25437   { echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
25438 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6; }
25439 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25440   echo $ECHO_N "(cached) $ECHO_C" >&6
25441 fi
25442 ac_res=`eval echo '${'$as_ac_Header'}'`
25443                { echo "$as_me:$LINENO: result: $ac_res" >&5
25444 echo "${ECHO_T}$ac_res" >&6; }
25445 else
25446   # Is the header compilable?
25447 { echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h usability" >&5
25448 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h usability... $ECHO_C" >&6; }
25449 cat >conftest.$ac_ext <<_ACEOF
25450 /* confdefs.h.  */
25451 _ACEOF
25452 cat confdefs.h >>conftest.$ac_ext
25453 cat >>conftest.$ac_ext <<_ACEOF
25454 /* end confdefs.h.  */
25455 $ac_includes_default
25456 #include <${TOP_DIR}/depkgs/readline/readline.h>
25457 _ACEOF
25458 rm -f conftest.$ac_objext
25459 if { (ac_try="$ac_compile"
25460 case "(($ac_try" in
25461   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25462   *) ac_try_echo=$ac_try;;
25463 esac
25464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25465   (eval "$ac_compile") 2>conftest.er1
25466   ac_status=$?
25467   grep -v '^ *+' conftest.er1 >conftest.err
25468   rm -f conftest.er1
25469   cat conftest.err >&5
25470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25471   (exit $ac_status); } && {
25472          test -z "$ac_cxx_werror_flag" ||
25473          test ! -s conftest.err
25474        } && test -s conftest.$ac_objext; then
25475   ac_header_compiler=yes
25476 else
25477   echo "$as_me: failed program was:" >&5
25478 sed 's/^/| /' conftest.$ac_ext >&5
25479
25480         ac_header_compiler=no
25481 fi
25482
25483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25484 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25485 echo "${ECHO_T}$ac_header_compiler" >&6; }
25486
25487 # Is the header present?
25488 { echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h presence" >&5
25489 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h presence... $ECHO_C" >&6; }
25490 cat >conftest.$ac_ext <<_ACEOF
25491 /* confdefs.h.  */
25492 _ACEOF
25493 cat confdefs.h >>conftest.$ac_ext
25494 cat >>conftest.$ac_ext <<_ACEOF
25495 /* end confdefs.h.  */
25496 #include <${TOP_DIR}/depkgs/readline/readline.h>
25497 _ACEOF
25498 if { (ac_try="$ac_cpp conftest.$ac_ext"
25499 case "(($ac_try" in
25500   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25501   *) ac_try_echo=$ac_try;;
25502 esac
25503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25504   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25505   ac_status=$?
25506   grep -v '^ *+' conftest.er1 >conftest.err
25507   rm -f conftest.er1
25508   cat conftest.err >&5
25509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25510   (exit $ac_status); } >/dev/null && {
25511          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
25512          test ! -s conftest.err
25513        }; then
25514   ac_header_preproc=yes
25515 else
25516   echo "$as_me: failed program was:" >&5
25517 sed 's/^/| /' conftest.$ac_ext >&5
25518
25519   ac_header_preproc=no
25520 fi
25521
25522 rm -f conftest.err conftest.$ac_ext
25523 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25524 echo "${ECHO_T}$ac_header_preproc" >&6; }
25525
25526 # So?  What about this header?
25527 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
25528   yes:no: )
25529     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
25530 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25531     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&5
25532 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&2;}
25533     ac_header_preproc=yes
25534     ;;
25535   no:yes:* )
25536     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&5
25537 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&2;}
25538     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     check for missing prerequisite headers?" >&5
25539 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     check for missing prerequisite headers?" >&2;}
25540     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&5
25541 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&2;}
25542     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
25543 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
25544     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
25545 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
25546     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&5
25547 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&2;}
25548
25549     ;;
25550 esac
25551 { echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
25552 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6; }
25553 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25554   echo $ECHO_N "(cached) $ECHO_C" >&6
25555 else
25556   eval "$as_ac_Header=\$ac_header_preproc"
25557 fi
25558 ac_res=`eval echo '${'$as_ac_Header'}'`
25559                { echo "$as_me:$LINENO: result: $ac_res" >&5
25560 echo "${ECHO_T}$ac_res" >&6; }
25561
25562 fi
25563 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25564
25565
25566 cat >>confdefs.h <<\_ACEOF
25567 #define HAVE_READLINE 1
25568 _ACEOF
25569
25570                         got_readline="yes"
25571                         CONS_INC="-I${TOP_DIR}/depkgs/readline"
25572                         CONS_LIBS="-lreadline -lhistory -ltermcap"
25573                         CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
25574                         PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
25575
25576 else
25577
25578                         echo " "
25579                         echo "readline.h not found. readline turned off ..."
25580                         echo " "
25581
25582
25583 fi
25584
25585
25586
25587
25588 fi
25589
25590
25591
25592
25593 fi
25594
25595 fi
25596
25597
25598
25599
25600
25601
25602
25603
25604 MAKE_SHELL=/bin/sh
25605
25606 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
25607 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
25608 if test "${ac_cv_header_stat_broken+set}" = set; then
25609   echo $ECHO_N "(cached) $ECHO_C" >&6
25610 else
25611   cat >conftest.$ac_ext <<_ACEOF
25612 /* confdefs.h.  */
25613 _ACEOF
25614 cat confdefs.h >>conftest.$ac_ext
25615 cat >>conftest.$ac_ext <<_ACEOF
25616 /* end confdefs.h.  */
25617 #include <sys/types.h>
25618 #include <sys/stat.h>
25619
25620 #if defined S_ISBLK && defined S_IFDIR
25621 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
25622 #endif
25623
25624 #if defined S_ISBLK && defined S_IFCHR
25625 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
25626 #endif
25627
25628 #if defined S_ISLNK && defined S_IFREG
25629 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
25630 #endif
25631
25632 #if defined S_ISSOCK && defined S_IFREG
25633 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
25634 #endif
25635
25636 _ACEOF
25637 rm -f conftest.$ac_objext
25638 if { (ac_try="$ac_compile"
25639 case "(($ac_try" in
25640   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25641   *) ac_try_echo=$ac_try;;
25642 esac
25643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25644   (eval "$ac_compile") 2>conftest.er1
25645   ac_status=$?
25646   grep -v '^ *+' conftest.er1 >conftest.err
25647   rm -f conftest.er1
25648   cat conftest.err >&5
25649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25650   (exit $ac_status); } && {
25651          test -z "$ac_cxx_werror_flag" ||
25652          test ! -s conftest.err
25653        } && test -s conftest.$ac_objext; then
25654   ac_cv_header_stat_broken=no
25655 else
25656   echo "$as_me: failed program was:" >&5
25657 sed 's/^/| /' conftest.$ac_ext >&5
25658
25659         ac_cv_header_stat_broken=yes
25660 fi
25661
25662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25663 fi
25664 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
25665 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
25666 if test $ac_cv_header_stat_broken = yes; then
25667
25668 cat >>confdefs.h <<\_ACEOF
25669 #define STAT_MACROS_BROKEN 1
25670 _ACEOF
25671
25672 fi
25673
25674
25675
25676
25677
25678
25679 ac_header_dirent=no
25680 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
25681   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
25682 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
25683 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
25684 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25685   echo $ECHO_N "(cached) $ECHO_C" >&6
25686 else
25687   cat >conftest.$ac_ext <<_ACEOF
25688 /* confdefs.h.  */
25689 _ACEOF
25690 cat confdefs.h >>conftest.$ac_ext
25691 cat >>conftest.$ac_ext <<_ACEOF
25692 /* end confdefs.h.  */
25693 #include <sys/types.h>
25694 #include <$ac_hdr>
25695
25696 int
25697 main ()
25698 {
25699 if ((DIR *) 0)
25700 return 0;
25701   ;
25702   return 0;
25703 }
25704 _ACEOF
25705 rm -f conftest.$ac_objext
25706 if { (ac_try="$ac_compile"
25707 case "(($ac_try" in
25708   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25709   *) ac_try_echo=$ac_try;;
25710 esac
25711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25712   (eval "$ac_compile") 2>conftest.er1
25713   ac_status=$?
25714   grep -v '^ *+' conftest.er1 >conftest.err
25715   rm -f conftest.er1
25716   cat conftest.err >&5
25717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25718   (exit $ac_status); } && {
25719          test -z "$ac_cxx_werror_flag" ||
25720          test ! -s conftest.err
25721        } && test -s conftest.$ac_objext; then
25722   eval "$as_ac_Header=yes"
25723 else
25724   echo "$as_me: failed program was:" >&5
25725 sed 's/^/| /' conftest.$ac_ext >&5
25726
25727         eval "$as_ac_Header=no"
25728 fi
25729
25730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25731 fi
25732 ac_res=`eval echo '${'$as_ac_Header'}'`
25733                { echo "$as_me:$LINENO: result: $ac_res" >&5
25734 echo "${ECHO_T}$ac_res" >&6; }
25735 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25736   cat >>confdefs.h <<_ACEOF
25737 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
25738 _ACEOF
25739
25740 ac_header_dirent=$ac_hdr; break
25741 fi
25742
25743 done
25744 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
25745 if test $ac_header_dirent = dirent.h; then
25746   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
25747 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
25748 if test "${ac_cv_search_opendir+set}" = set; then
25749   echo $ECHO_N "(cached) $ECHO_C" >&6
25750 else
25751   ac_func_search_save_LIBS=$LIBS
25752 cat >conftest.$ac_ext <<_ACEOF
25753 /* confdefs.h.  */
25754 _ACEOF
25755 cat confdefs.h >>conftest.$ac_ext
25756 cat >>conftest.$ac_ext <<_ACEOF
25757 /* end confdefs.h.  */
25758
25759 /* Override any GCC internal prototype to avoid an error.
25760    Use char because int might match the return type of a GCC
25761    builtin and then its argument prototype would still apply.  */
25762 #ifdef __cplusplus
25763 extern "C"
25764 #endif
25765 char opendir ();
25766 int
25767 main ()
25768 {
25769 return opendir ();
25770   ;
25771   return 0;
25772 }
25773 _ACEOF
25774 for ac_lib in '' dir; do
25775   if test -z "$ac_lib"; then
25776     ac_res="none required"
25777   else
25778     ac_res=-l$ac_lib
25779     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25780   fi
25781   rm -f conftest.$ac_objext conftest$ac_exeext
25782 if { (ac_try="$ac_link"
25783 case "(($ac_try" in
25784   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25785   *) ac_try_echo=$ac_try;;
25786 esac
25787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25788   (eval "$ac_link") 2>conftest.er1
25789   ac_status=$?
25790   grep -v '^ *+' conftest.er1 >conftest.err
25791   rm -f conftest.er1
25792   cat conftest.err >&5
25793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25794   (exit $ac_status); } && {
25795          test -z "$ac_cxx_werror_flag" ||
25796          test ! -s conftest.err
25797        } && test -s conftest$ac_exeext &&
25798        $as_test_x conftest$ac_exeext; then
25799   ac_cv_search_opendir=$ac_res
25800 else
25801   echo "$as_me: failed program was:" >&5
25802 sed 's/^/| /' conftest.$ac_ext >&5
25803
25804
25805 fi
25806
25807 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25808       conftest$ac_exeext
25809   if test "${ac_cv_search_opendir+set}" = set; then
25810   break
25811 fi
25812 done
25813 if test "${ac_cv_search_opendir+set}" = set; then
25814   :
25815 else
25816   ac_cv_search_opendir=no
25817 fi
25818 rm conftest.$ac_ext
25819 LIBS=$ac_func_search_save_LIBS
25820 fi
25821 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25822 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
25823 ac_res=$ac_cv_search_opendir
25824 if test "$ac_res" != no; then
25825   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25826
25827 fi
25828
25829 else
25830   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
25831 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
25832 if test "${ac_cv_search_opendir+set}" = set; then
25833   echo $ECHO_N "(cached) $ECHO_C" >&6
25834 else
25835   ac_func_search_save_LIBS=$LIBS
25836 cat >conftest.$ac_ext <<_ACEOF
25837 /* confdefs.h.  */
25838 _ACEOF
25839 cat confdefs.h >>conftest.$ac_ext
25840 cat >>conftest.$ac_ext <<_ACEOF
25841 /* end confdefs.h.  */
25842
25843 /* Override any GCC internal prototype to avoid an error.
25844    Use char because int might match the return type of a GCC
25845    builtin and then its argument prototype would still apply.  */
25846 #ifdef __cplusplus
25847 extern "C"
25848 #endif
25849 char opendir ();
25850 int
25851 main ()
25852 {
25853 return opendir ();
25854   ;
25855   return 0;
25856 }
25857 _ACEOF
25858 for ac_lib in '' x; do
25859   if test -z "$ac_lib"; then
25860     ac_res="none required"
25861   else
25862     ac_res=-l$ac_lib
25863     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25864   fi
25865   rm -f conftest.$ac_objext conftest$ac_exeext
25866 if { (ac_try="$ac_link"
25867 case "(($ac_try" in
25868   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25869   *) ac_try_echo=$ac_try;;
25870 esac
25871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25872   (eval "$ac_link") 2>conftest.er1
25873   ac_status=$?
25874   grep -v '^ *+' conftest.er1 >conftest.err
25875   rm -f conftest.er1
25876   cat conftest.err >&5
25877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25878   (exit $ac_status); } && {
25879          test -z "$ac_cxx_werror_flag" ||
25880          test ! -s conftest.err
25881        } && test -s conftest$ac_exeext &&
25882        $as_test_x conftest$ac_exeext; then
25883   ac_cv_search_opendir=$ac_res
25884 else
25885   echo "$as_me: failed program was:" >&5
25886 sed 's/^/| /' conftest.$ac_ext >&5
25887
25888
25889 fi
25890
25891 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25892       conftest$ac_exeext
25893   if test "${ac_cv_search_opendir+set}" = set; then
25894   break
25895 fi
25896 done
25897 if test "${ac_cv_search_opendir+set}" = set; then
25898   :
25899 else
25900   ac_cv_search_opendir=no
25901 fi
25902 rm conftest.$ac_ext
25903 LIBS=$ac_func_search_save_LIBS
25904 fi
25905 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25906 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
25907 ac_res=$ac_cv_search_opendir
25908 if test "$ac_res" != no; then
25909   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25910
25911 fi
25912
25913 fi
25914
25915
25916
25917
25918
25919
25920
25921
25922 for ac_func in strcasecmp select setenv putenv tcgetattr lstat lchown
25923 do
25924 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25925 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25926 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25927 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25928   echo $ECHO_N "(cached) $ECHO_C" >&6
25929 else
25930   cat >conftest.$ac_ext <<_ACEOF
25931 /* confdefs.h.  */
25932 _ACEOF
25933 cat confdefs.h >>conftest.$ac_ext
25934 cat >>conftest.$ac_ext <<_ACEOF
25935 /* end confdefs.h.  */
25936 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25937    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25938 #define $ac_func innocuous_$ac_func
25939
25940 /* System header to define __stub macros and hopefully few prototypes,
25941     which can conflict with char $ac_func (); below.
25942     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25943     <limits.h> exists even on freestanding compilers.  */
25944
25945 #ifdef __STDC__
25946 # include <limits.h>
25947 #else
25948 # include <assert.h>
25949 #endif
25950
25951 #undef $ac_func
25952
25953 /* Override any GCC internal prototype to avoid an error.
25954    Use char because int might match the return type of a GCC
25955    builtin and then its argument prototype would still apply.  */
25956 #ifdef __cplusplus
25957 extern "C"
25958 #endif
25959 char $ac_func ();
25960 /* The GNU C library defines this for functions which it implements
25961     to always fail with ENOSYS.  Some functions are actually named
25962     something starting with __ and the normal name is an alias.  */
25963 #if defined __stub_$ac_func || defined __stub___$ac_func
25964 choke me
25965 #endif
25966
25967 int
25968 main ()
25969 {
25970 return $ac_func ();
25971   ;
25972   return 0;
25973 }
25974 _ACEOF
25975 rm -f conftest.$ac_objext conftest$ac_exeext
25976 if { (ac_try="$ac_link"
25977 case "(($ac_try" in
25978   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25979   *) ac_try_echo=$ac_try;;
25980 esac
25981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25982   (eval "$ac_link") 2>conftest.er1
25983   ac_status=$?
25984   grep -v '^ *+' conftest.er1 >conftest.err
25985   rm -f conftest.er1
25986   cat conftest.err >&5
25987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25988   (exit $ac_status); } && {
25989          test -z "$ac_cxx_werror_flag" ||
25990          test ! -s conftest.err
25991        } && test -s conftest$ac_exeext &&
25992        $as_test_x conftest$ac_exeext; then
25993   eval "$as_ac_var=yes"
25994 else
25995   echo "$as_me: failed program was:" >&5
25996 sed 's/^/| /' conftest.$ac_ext >&5
25997
25998         eval "$as_ac_var=no"
25999 fi
26000
26001 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26002       conftest$ac_exeext conftest.$ac_ext
26003 fi
26004 ac_res=`eval echo '${'$as_ac_var'}'`
26005                { echo "$as_me:$LINENO: result: $ac_res" >&5
26006 echo "${ECHO_T}$ac_res" >&6; }
26007 if test `eval echo '${'$as_ac_var'}'` = yes; then
26008   cat >>confdefs.h <<_ACEOF
26009 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26010 _ACEOF
26011
26012 fi
26013 done
26014
26015
26016
26017 for ac_func in nanosleep nl_langinfo
26018 do
26019 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26020 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26021 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26022 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26023   echo $ECHO_N "(cached) $ECHO_C" >&6
26024 else
26025   cat >conftest.$ac_ext <<_ACEOF
26026 /* confdefs.h.  */
26027 _ACEOF
26028 cat confdefs.h >>conftest.$ac_ext
26029 cat >>conftest.$ac_ext <<_ACEOF
26030 /* end confdefs.h.  */
26031 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26032    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26033 #define $ac_func innocuous_$ac_func
26034
26035 /* System header to define __stub macros and hopefully few prototypes,
26036     which can conflict with char $ac_func (); below.
26037     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26038     <limits.h> exists even on freestanding compilers.  */
26039
26040 #ifdef __STDC__
26041 # include <limits.h>
26042 #else
26043 # include <assert.h>
26044 #endif
26045
26046 #undef $ac_func
26047
26048 /* Override any GCC internal prototype to avoid an error.
26049    Use char because int might match the return type of a GCC
26050    builtin and then its argument prototype would still apply.  */
26051 #ifdef __cplusplus
26052 extern "C"
26053 #endif
26054 char $ac_func ();
26055 /* The GNU C library defines this for functions which it implements
26056     to always fail with ENOSYS.  Some functions are actually named
26057     something starting with __ and the normal name is an alias.  */
26058 #if defined __stub_$ac_func || defined __stub___$ac_func
26059 choke me
26060 #endif
26061
26062 int
26063 main ()
26064 {
26065 return $ac_func ();
26066   ;
26067   return 0;
26068 }
26069 _ACEOF
26070 rm -f conftest.$ac_objext conftest$ac_exeext
26071 if { (ac_try="$ac_link"
26072 case "(($ac_try" in
26073   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26074   *) ac_try_echo=$ac_try;;
26075 esac
26076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26077   (eval "$ac_link") 2>conftest.er1
26078   ac_status=$?
26079   grep -v '^ *+' conftest.er1 >conftest.err
26080   rm -f conftest.er1
26081   cat conftest.err >&5
26082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26083   (exit $ac_status); } && {
26084          test -z "$ac_cxx_werror_flag" ||
26085          test ! -s conftest.err
26086        } && test -s conftest$ac_exeext &&
26087        $as_test_x conftest$ac_exeext; then
26088   eval "$as_ac_var=yes"
26089 else
26090   echo "$as_me: failed program was:" >&5
26091 sed 's/^/| /' conftest.$ac_ext >&5
26092
26093         eval "$as_ac_var=no"
26094 fi
26095
26096 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26097       conftest$ac_exeext conftest.$ac_ext
26098 fi
26099 ac_res=`eval echo '${'$as_ac_var'}'`
26100                { echo "$as_me:$LINENO: result: $ac_res" >&5
26101 echo "${ECHO_T}$ac_res" >&6; }
26102 if test `eval echo '${'$as_ac_var'}'` = yes; then
26103   cat >>confdefs.h <<_ACEOF
26104 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26105 _ACEOF
26106
26107 fi
26108 done
26109
26110
26111 for ac_header in varargs.h
26112 do
26113 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26114 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26115   { echo "$as_me:$LINENO: checking for $ac_header" >&5
26116 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26117 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26118   echo $ECHO_N "(cached) $ECHO_C" >&6
26119 fi
26120 ac_res=`eval echo '${'$as_ac_Header'}'`
26121                { echo "$as_me:$LINENO: result: $ac_res" >&5
26122 echo "${ECHO_T}$ac_res" >&6; }
26123 else
26124   # Is the header compilable?
26125 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
26126 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
26127 cat >conftest.$ac_ext <<_ACEOF
26128 /* confdefs.h.  */
26129 _ACEOF
26130 cat confdefs.h >>conftest.$ac_ext
26131 cat >>conftest.$ac_ext <<_ACEOF
26132 /* end confdefs.h.  */
26133 $ac_includes_default
26134 #include <$ac_header>
26135 _ACEOF
26136 rm -f conftest.$ac_objext
26137 if { (ac_try="$ac_compile"
26138 case "(($ac_try" in
26139   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26140   *) ac_try_echo=$ac_try;;
26141 esac
26142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26143   (eval "$ac_compile") 2>conftest.er1
26144   ac_status=$?
26145   grep -v '^ *+' conftest.er1 >conftest.err
26146   rm -f conftest.er1
26147   cat conftest.err >&5
26148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26149   (exit $ac_status); } && {
26150          test -z "$ac_cxx_werror_flag" ||
26151          test ! -s conftest.err
26152        } && test -s conftest.$ac_objext; then
26153   ac_header_compiler=yes
26154 else
26155   echo "$as_me: failed program was:" >&5
26156 sed 's/^/| /' conftest.$ac_ext >&5
26157
26158         ac_header_compiler=no
26159 fi
26160
26161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26162 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26163 echo "${ECHO_T}$ac_header_compiler" >&6; }
26164
26165 # Is the header present?
26166 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
26167 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
26168 cat >conftest.$ac_ext <<_ACEOF
26169 /* confdefs.h.  */
26170 _ACEOF
26171 cat confdefs.h >>conftest.$ac_ext
26172 cat >>conftest.$ac_ext <<_ACEOF
26173 /* end confdefs.h.  */
26174 #include <$ac_header>
26175 _ACEOF
26176 if { (ac_try="$ac_cpp conftest.$ac_ext"
26177 case "(($ac_try" in
26178   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26179   *) ac_try_echo=$ac_try;;
26180 esac
26181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26182   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26183   ac_status=$?
26184   grep -v '^ *+' conftest.er1 >conftest.err
26185   rm -f conftest.er1
26186   cat conftest.err >&5
26187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26188   (exit $ac_status); } >/dev/null && {
26189          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
26190          test ! -s conftest.err
26191        }; then
26192   ac_header_preproc=yes
26193 else
26194   echo "$as_me: failed program was:" >&5
26195 sed 's/^/| /' conftest.$ac_ext >&5
26196
26197   ac_header_preproc=no
26198 fi
26199
26200 rm -f conftest.err conftest.$ac_ext
26201 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26202 echo "${ECHO_T}$ac_header_preproc" >&6; }
26203
26204 # So?  What about this header?
26205 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
26206   yes:no: )
26207     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26208 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26209     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26210 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26211     ac_header_preproc=yes
26212     ;;
26213   no:yes:* )
26214     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26215 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26216     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26217 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26218     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26219 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26220     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26221 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26222     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26223 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26224     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26225 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26226
26227     ;;
26228 esac
26229 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26230 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26231 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26232   echo $ECHO_N "(cached) $ECHO_C" >&6
26233 else
26234   eval "$as_ac_Header=\$ac_header_preproc"
26235 fi
26236 ac_res=`eval echo '${'$as_ac_Header'}'`
26237                { echo "$as_me:$LINENO: result: $ac_res" >&5
26238 echo "${ECHO_T}$ac_res" >&6; }
26239
26240 fi
26241 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26242   cat >>confdefs.h <<_ACEOF
26243 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26244 _ACEOF
26245
26246 fi
26247
26248 done
26249
26250
26251
26252 { echo "$as_me:$LINENO: checking for Python support" >&5
26253 echo $ECHO_N "checking for Python support... $ECHO_C" >&6; }
26254
26255 # Check whether --with-python was given.
26256 if test "${with_python+set}" = set; then
26257   withval=$with_python;
26258        PYTHON_INCDIR=
26259        PYTHON_LIBS=
26260        if test "$withval" != "no"; then
26261           if test "$withval" = "yes"; then
26262              if test -e /usr/bin/python-config ; then
26263                 PYTHON_INCDIR=`/usr/bin/python-config --includes`
26264                 PYTHON_LIBS=`/usr/bin/python-config --libs`
26265              else
26266                 for python_root in /usr /usr/local /usr/sfw; do
26267                    for ver in python2.2 python2.3 python2.4 python2.5 python2.6 python3; do
26268                       if test -f $python_root/include/${ver}/Python.h; then
26269                          PYTHON_INCDIR=-I$python_root/include/${ver}
26270                          if test -d $python_root/lib64/${ver}/config; then
26271                             PYTHON_LIBS="-L$python_root/lib64/${ver}/config -l${ver}"
26272                          else
26273                             PYTHON_LIBS="-L$python_root/lib/${ver}/config -l${ver}"
26274                          fi
26275                          break
26276                       fi
26277                    done
26278                 done
26279
26280                 if test x$PYTHON_INCDIR = x; then
26281                    if test -f $prefix/include/Python.h; then
26282                       PYTHON_INCDIR=-I$prefix/include
26283                       if test -d $prefix/lib64/config; then
26284                          PYTHON_LIBS="-L$prefix/lib64/config -lpython"
26285                       else
26286                          PYTHON_LIBS="-L$prefix/lib/config -lpython"
26287                       fi
26288                    else
26289                       { echo "$as_me:$LINENO: result: no" >&5
26290 echo "${ECHO_T}no" >&6; }
26291                       { { echo "$as_me:$LINENO: error: Unable to find Python.h in standard locations" >&5
26292 echo "$as_me: error: Unable to find Python.h in standard locations" >&2;}
26293    { (exit 1); exit 1; }; }
26294                    fi
26295                 fi
26296              fi
26297           else
26298              if test -e $withval/bin/python-config ; then
26299                 PYTHON_INCDIR=`$withval/bin/python-config --includes`
26300                 PYTHON_LIBS=`$withval/bin/python-config --libs`
26301              elif test -f $withval/Python.h; then
26302                 PYTHON_INCDIR=-I$withval
26303                 PYTHON_LIBS="-L$withval/config -lpython"
26304              elif test -f $withval/include/Python.h; then
26305                 PYTHON_INCDIR=-I$withval/include
26306                 if test -d $withval/lib64/config; then
26307                    PYTHON_LIBS="-L$withval/lib64/config -lpython"
26308                 else
26309                    PYTHON_LIBS="-L$withval/lib/config -lpython"
26310                 fi
26311              elif test -f $withval/include/python/Python.h; then
26312                 PYTHON_INCDIR=-I$withval/include/python
26313                 if test -d $withval/lib64/python/config; then
26314                    PYTHON_LIBS="-L$withval/lib64/python/config -lpython"
26315                 else
26316                    PYTHON_LIBS="-L$withval/lib/python/config -lpython"
26317                 fi
26318              else
26319                 { echo "$as_me:$LINENO: result: no" >&5
26320 echo "${ECHO_T}no" >&6; }
26321                 { { echo "$as_me:$LINENO: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&5
26322 echo "$as_me: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&2;}
26323    { (exit 1); exit 1; }; }
26324              fi
26325           fi
26326
26327           cat >>confdefs.h <<\_ACEOF
26328 #define HAVE_PYTHON 1
26329 _ACEOF
26330
26331           { echo "$as_me:$LINENO: result: yes" >&5
26332 echo "${ECHO_T}yes" >&6; }
26333           support_python=yes
26334           { echo "$as_me:$LINENO: checking for more Python libs" >&5
26335 echo "$as_me: checking for more Python libs" >&6;}
26336           saved_LIBS="$LIBS"; LIBS=
26337           { echo "$as_me:$LINENO: checking for library containing shm_open" >&5
26338 echo $ECHO_N "checking for library containing shm_open... $ECHO_C" >&6; }
26339 if test "${ac_cv_search_shm_open+set}" = set; then
26340   echo $ECHO_N "(cached) $ECHO_C" >&6
26341 else
26342   ac_func_search_save_LIBS=$LIBS
26343 cat >conftest.$ac_ext <<_ACEOF
26344 /* confdefs.h.  */
26345 _ACEOF
26346 cat confdefs.h >>conftest.$ac_ext
26347 cat >>conftest.$ac_ext <<_ACEOF
26348 /* end confdefs.h.  */
26349
26350 /* Override any GCC internal prototype to avoid an error.
26351    Use char because int might match the return type of a GCC
26352    builtin and then its argument prototype would still apply.  */
26353 #ifdef __cplusplus
26354 extern "C"
26355 #endif
26356 char shm_open ();
26357 int
26358 main ()
26359 {
26360 return shm_open ();
26361   ;
26362   return 0;
26363 }
26364 _ACEOF
26365 for ac_lib in '' rt; do
26366   if test -z "$ac_lib"; then
26367     ac_res="none required"
26368   else
26369     ac_res=-l$ac_lib
26370     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
26371   fi
26372   rm -f conftest.$ac_objext conftest$ac_exeext
26373 if { (ac_try="$ac_link"
26374 case "(($ac_try" in
26375   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26376   *) ac_try_echo=$ac_try;;
26377 esac
26378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26379   (eval "$ac_link") 2>conftest.er1
26380   ac_status=$?
26381   grep -v '^ *+' conftest.er1 >conftest.err
26382   rm -f conftest.er1
26383   cat conftest.err >&5
26384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26385   (exit $ac_status); } && {
26386          test -z "$ac_cxx_werror_flag" ||
26387          test ! -s conftest.err
26388        } && test -s conftest$ac_exeext &&
26389        $as_test_x conftest$ac_exeext; then
26390   ac_cv_search_shm_open=$ac_res
26391 else
26392   echo "$as_me: failed program was:" >&5
26393 sed 's/^/| /' conftest.$ac_ext >&5
26394
26395
26396 fi
26397
26398 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26399       conftest$ac_exeext
26400   if test "${ac_cv_search_shm_open+set}" = set; then
26401   break
26402 fi
26403 done
26404 if test "${ac_cv_search_shm_open+set}" = set; then
26405   :
26406 else
26407   ac_cv_search_shm_open=no
26408 fi
26409 rm conftest.$ac_ext
26410 LIBS=$ac_func_search_save_LIBS
26411 fi
26412 { echo "$as_me:$LINENO: result: $ac_cv_search_shm_open" >&5
26413 echo "${ECHO_T}$ac_cv_search_shm_open" >&6; }
26414 ac_res=$ac_cv_search_shm_open
26415 if test "$ac_res" != no; then
26416   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26417
26418 fi
26419
26420
26421 { echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
26422 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6; }
26423 if test "${ac_cv_lib_util_openpty+set}" = set; then
26424   echo $ECHO_N "(cached) $ECHO_C" >&6
26425 else
26426   ac_check_lib_save_LIBS=$LIBS
26427 LIBS="-lutil  $LIBS"
26428 cat >conftest.$ac_ext <<_ACEOF
26429 /* confdefs.h.  */
26430 _ACEOF
26431 cat confdefs.h >>conftest.$ac_ext
26432 cat >>conftest.$ac_ext <<_ACEOF
26433 /* end confdefs.h.  */
26434
26435 /* Override any GCC internal prototype to avoid an error.
26436    Use char because int might match the return type of a GCC
26437    builtin and then its argument prototype would still apply.  */
26438 #ifdef __cplusplus
26439 extern "C"
26440 #endif
26441 char openpty ();
26442 int
26443 main ()
26444 {
26445 return openpty ();
26446   ;
26447   return 0;
26448 }
26449 _ACEOF
26450 rm -f conftest.$ac_objext conftest$ac_exeext
26451 if { (ac_try="$ac_link"
26452 case "(($ac_try" in
26453   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26454   *) ac_try_echo=$ac_try;;
26455 esac
26456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26457   (eval "$ac_link") 2>conftest.er1
26458   ac_status=$?
26459   grep -v '^ *+' conftest.er1 >conftest.err
26460   rm -f conftest.er1
26461   cat conftest.err >&5
26462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26463   (exit $ac_status); } && {
26464          test -z "$ac_cxx_werror_flag" ||
26465          test ! -s conftest.err
26466        } && test -s conftest$ac_exeext &&
26467        $as_test_x conftest$ac_exeext; then
26468   ac_cv_lib_util_openpty=yes
26469 else
26470   echo "$as_me: failed program was:" >&5
26471 sed 's/^/| /' conftest.$ac_ext >&5
26472
26473         ac_cv_lib_util_openpty=no
26474 fi
26475
26476 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26477       conftest$ac_exeext conftest.$ac_ext
26478 LIBS=$ac_check_lib_save_LIBS
26479 fi
26480 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
26481 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6; }
26482 if test $ac_cv_lib_util_openpty = yes; then
26483   cat >>confdefs.h <<_ACEOF
26484 #define HAVE_LIBUTIL 1
26485 _ACEOF
26486
26487   LIBS="-lutil $LIBS"
26488
26489 fi
26490
26491           PYTHON_LIBS="$PYTHON_LIBS $LIBS"
26492           LIBS="$saved_LIBS"
26493        else
26494           { echo "$as_me:$LINENO: result: no" >&5
26495 echo "${ECHO_T}no" >&6; }
26496        fi
26497
26498 else
26499
26500        { echo "$as_me:$LINENO: result: no" >&5
26501 echo "${ECHO_T}no" >&6; }
26502
26503
26504 fi
26505
26506
26507
26508
26509 { echo "$as_me:$LINENO: checking for socket" >&5
26510 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
26511 if test "${ac_cv_func_socket+set}" = set; then
26512   echo $ECHO_N "(cached) $ECHO_C" >&6
26513 else
26514   cat >conftest.$ac_ext <<_ACEOF
26515 /* confdefs.h.  */
26516 _ACEOF
26517 cat confdefs.h >>conftest.$ac_ext
26518 cat >>conftest.$ac_ext <<_ACEOF
26519 /* end confdefs.h.  */
26520 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
26521    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26522 #define socket innocuous_socket
26523
26524 /* System header to define __stub macros and hopefully few prototypes,
26525     which can conflict with char socket (); below.
26526     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26527     <limits.h> exists even on freestanding compilers.  */
26528
26529 #ifdef __STDC__
26530 # include <limits.h>
26531 #else
26532 # include <assert.h>
26533 #endif
26534
26535 #undef socket
26536
26537 /* Override any GCC internal prototype to avoid an error.
26538    Use char because int might match the return type of a GCC
26539    builtin and then its argument prototype would still apply.  */
26540 #ifdef __cplusplus
26541 extern "C"
26542 #endif
26543 char socket ();
26544 /* The GNU C library defines this for functions which it implements
26545     to always fail with ENOSYS.  Some functions are actually named
26546     something starting with __ and the normal name is an alias.  */
26547 #if defined __stub_socket || defined __stub___socket
26548 choke me
26549 #endif
26550
26551 int
26552 main ()
26553 {
26554 return socket ();
26555   ;
26556   return 0;
26557 }
26558 _ACEOF
26559 rm -f conftest.$ac_objext conftest$ac_exeext
26560 if { (ac_try="$ac_link"
26561 case "(($ac_try" in
26562   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26563   *) ac_try_echo=$ac_try;;
26564 esac
26565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26566   (eval "$ac_link") 2>conftest.er1
26567   ac_status=$?
26568   grep -v '^ *+' conftest.er1 >conftest.err
26569   rm -f conftest.er1
26570   cat conftest.err >&5
26571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26572   (exit $ac_status); } && {
26573          test -z "$ac_cxx_werror_flag" ||
26574          test ! -s conftest.err
26575        } && test -s conftest$ac_exeext &&
26576        $as_test_x conftest$ac_exeext; then
26577   ac_cv_func_socket=yes
26578 else
26579   echo "$as_me: failed program was:" >&5
26580 sed 's/^/| /' conftest.$ac_ext >&5
26581
26582         ac_cv_func_socket=no
26583 fi
26584
26585 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26586       conftest$ac_exeext conftest.$ac_ext
26587 fi
26588 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
26589 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
26590 if test $ac_cv_func_socket = yes; then
26591   { echo "$as_me:$LINENO: result: using libc's socket" >&5
26592 echo "${ECHO_T}using libc's socket" >&6; }
26593 else
26594
26595 { echo "$as_me:$LINENO: checking for socket in -lxnet" >&5
26596 echo $ECHO_N "checking for socket in -lxnet... $ECHO_C" >&6; }
26597 if test "${ac_cv_lib_xnet_socket+set}" = set; then
26598   echo $ECHO_N "(cached) $ECHO_C" >&6
26599 else
26600   ac_check_lib_save_LIBS=$LIBS
26601 LIBS="-lxnet  $LIBS"
26602 cat >conftest.$ac_ext <<_ACEOF
26603 /* confdefs.h.  */
26604 _ACEOF
26605 cat confdefs.h >>conftest.$ac_ext
26606 cat >>conftest.$ac_ext <<_ACEOF
26607 /* end confdefs.h.  */
26608
26609 /* Override any GCC internal prototype to avoid an error.
26610    Use char because int might match the return type of a GCC
26611    builtin and then its argument prototype would still apply.  */
26612 #ifdef __cplusplus
26613 extern "C"
26614 #endif
26615 char socket ();
26616 int
26617 main ()
26618 {
26619 return socket ();
26620   ;
26621   return 0;
26622 }
26623 _ACEOF
26624 rm -f conftest.$ac_objext conftest$ac_exeext
26625 if { (ac_try="$ac_link"
26626 case "(($ac_try" in
26627   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26628   *) ac_try_echo=$ac_try;;
26629 esac
26630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26631   (eval "$ac_link") 2>conftest.er1
26632   ac_status=$?
26633   grep -v '^ *+' conftest.er1 >conftest.err
26634   rm -f conftest.er1
26635   cat conftest.err >&5
26636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26637   (exit $ac_status); } && {
26638          test -z "$ac_cxx_werror_flag" ||
26639          test ! -s conftest.err
26640        } && test -s conftest$ac_exeext &&
26641        $as_test_x conftest$ac_exeext; then
26642   ac_cv_lib_xnet_socket=yes
26643 else
26644   echo "$as_me: failed program was:" >&5
26645 sed 's/^/| /' conftest.$ac_ext >&5
26646
26647         ac_cv_lib_xnet_socket=no
26648 fi
26649
26650 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26651       conftest$ac_exeext conftest.$ac_ext
26652 LIBS=$ac_check_lib_save_LIBS
26653 fi
26654 { echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_socket" >&5
26655 echo "${ECHO_T}$ac_cv_lib_xnet_socket" >&6; }
26656 if test $ac_cv_lib_xnet_socket = yes; then
26657   cat >>confdefs.h <<_ACEOF
26658 #define HAVE_LIBXNET 1
26659 _ACEOF
26660
26661   LIBS="-lxnet $LIBS"
26662
26663 fi
26664
26665
26666 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
26667 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
26668 if test "${ac_cv_lib_socket_socket+set}" = set; then
26669   echo $ECHO_N "(cached) $ECHO_C" >&6
26670 else
26671   ac_check_lib_save_LIBS=$LIBS
26672 LIBS="-lsocket  $LIBS"
26673 cat >conftest.$ac_ext <<_ACEOF
26674 /* confdefs.h.  */
26675 _ACEOF
26676 cat confdefs.h >>conftest.$ac_ext
26677 cat >>conftest.$ac_ext <<_ACEOF
26678 /* end confdefs.h.  */
26679
26680 /* Override any GCC internal prototype to avoid an error.
26681    Use char because int might match the return type of a GCC
26682    builtin and then its argument prototype would still apply.  */
26683 #ifdef __cplusplus
26684 extern "C"
26685 #endif
26686 char socket ();
26687 int
26688 main ()
26689 {
26690 return socket ();
26691   ;
26692   return 0;
26693 }
26694 _ACEOF
26695 rm -f conftest.$ac_objext conftest$ac_exeext
26696 if { (ac_try="$ac_link"
26697 case "(($ac_try" in
26698   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26699   *) ac_try_echo=$ac_try;;
26700 esac
26701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26702   (eval "$ac_link") 2>conftest.er1
26703   ac_status=$?
26704   grep -v '^ *+' conftest.er1 >conftest.err
26705   rm -f conftest.er1
26706   cat conftest.err >&5
26707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26708   (exit $ac_status); } && {
26709          test -z "$ac_cxx_werror_flag" ||
26710          test ! -s conftest.err
26711        } && test -s conftest$ac_exeext &&
26712        $as_test_x conftest$ac_exeext; then
26713   ac_cv_lib_socket_socket=yes
26714 else
26715   echo "$as_me: failed program was:" >&5
26716 sed 's/^/| /' conftest.$ac_ext >&5
26717
26718         ac_cv_lib_socket_socket=no
26719 fi
26720
26721 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26722       conftest$ac_exeext conftest.$ac_ext
26723 LIBS=$ac_check_lib_save_LIBS
26724 fi
26725 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
26726 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
26727 if test $ac_cv_lib_socket_socket = yes; then
26728   cat >>confdefs.h <<_ACEOF
26729 #define HAVE_LIBSOCKET 1
26730 _ACEOF
26731
26732   LIBS="-lsocket $LIBS"
26733
26734 fi
26735
26736
26737 { echo "$as_me:$LINENO: checking for socket in -linet" >&5
26738 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6; }
26739 if test "${ac_cv_lib_inet_socket+set}" = set; then
26740   echo $ECHO_N "(cached) $ECHO_C" >&6
26741 else
26742   ac_check_lib_save_LIBS=$LIBS
26743 LIBS="-linet  $LIBS"
26744 cat >conftest.$ac_ext <<_ACEOF
26745 /* confdefs.h.  */
26746 _ACEOF
26747 cat confdefs.h >>conftest.$ac_ext
26748 cat >>conftest.$ac_ext <<_ACEOF
26749 /* end confdefs.h.  */
26750
26751 /* Override any GCC internal prototype to avoid an error.
26752    Use char because int might match the return type of a GCC
26753    builtin and then its argument prototype would still apply.  */
26754 #ifdef __cplusplus
26755 extern "C"
26756 #endif
26757 char socket ();
26758 int
26759 main ()
26760 {
26761 return socket ();
26762   ;
26763   return 0;
26764 }
26765 _ACEOF
26766 rm -f conftest.$ac_objext conftest$ac_exeext
26767 if { (ac_try="$ac_link"
26768 case "(($ac_try" in
26769   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26770   *) ac_try_echo=$ac_try;;
26771 esac
26772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26773   (eval "$ac_link") 2>conftest.er1
26774   ac_status=$?
26775   grep -v '^ *+' conftest.er1 >conftest.err
26776   rm -f conftest.er1
26777   cat conftest.err >&5
26778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26779   (exit $ac_status); } && {
26780          test -z "$ac_cxx_werror_flag" ||
26781          test ! -s conftest.err
26782        } && test -s conftest$ac_exeext &&
26783        $as_test_x conftest$ac_exeext; then
26784   ac_cv_lib_inet_socket=yes
26785 else
26786   echo "$as_me: failed program was:" >&5
26787 sed 's/^/| /' conftest.$ac_ext >&5
26788
26789         ac_cv_lib_inet_socket=no
26790 fi
26791
26792 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26793       conftest$ac_exeext conftest.$ac_ext
26794 LIBS=$ac_check_lib_save_LIBS
26795 fi
26796 { echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
26797 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6; }
26798 if test $ac_cv_lib_inet_socket = yes; then
26799   cat >>confdefs.h <<_ACEOF
26800 #define HAVE_LIBINET 1
26801 _ACEOF
26802
26803   LIBS="-linet $LIBS"
26804
26805 fi
26806
26807 fi
26808
26809
26810 TCPW_MSG="no"
26811 WRAPLIBS=""
26812
26813 # Check whether --with-tcp-wrappers was given.
26814 if test "${with_tcp_wrappers+set}" = set; then
26815   withval=$with_tcp_wrappers;
26816        if test "x$withval" != "xno" ; then
26817           saved_LIBS="$LIBS"
26818           LIBS="$saved_LIBS -lwrap"
26819           { echo "$as_me:$LINENO: checking for library containing nanosleep" >&5
26820 echo $ECHO_N "checking for library containing nanosleep... $ECHO_C" >&6; }
26821 if test "${ac_cv_search_nanosleep+set}" = set; then
26822   echo $ECHO_N "(cached) $ECHO_C" >&6
26823 else
26824   ac_func_search_save_LIBS=$LIBS
26825 cat >conftest.$ac_ext <<_ACEOF
26826 /* confdefs.h.  */
26827 _ACEOF
26828 cat confdefs.h >>conftest.$ac_ext
26829 cat >>conftest.$ac_ext <<_ACEOF
26830 /* end confdefs.h.  */
26831
26832 /* Override any GCC internal prototype to avoid an error.
26833    Use char because int might match the return type of a GCC
26834    builtin and then its argument prototype would still apply.  */
26835 #ifdef __cplusplus
26836 extern "C"
26837 #endif
26838 char nanosleep ();
26839 int
26840 main ()
26841 {
26842 return nanosleep ();
26843   ;
26844   return 0;
26845 }
26846 _ACEOF
26847 for ac_lib in '' rt; do
26848   if test -z "$ac_lib"; then
26849     ac_res="none required"
26850   else
26851     ac_res=-l$ac_lib
26852     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
26853   fi
26854   rm -f conftest.$ac_objext conftest$ac_exeext
26855 if { (ac_try="$ac_link"
26856 case "(($ac_try" in
26857   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26858   *) ac_try_echo=$ac_try;;
26859 esac
26860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26861   (eval "$ac_link") 2>conftest.er1
26862   ac_status=$?
26863   grep -v '^ *+' conftest.er1 >conftest.err
26864   rm -f conftest.er1
26865   cat conftest.err >&5
26866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26867   (exit $ac_status); } && {
26868          test -z "$ac_cxx_werror_flag" ||
26869          test ! -s conftest.err
26870        } && test -s conftest$ac_exeext &&
26871        $as_test_x conftest$ac_exeext; then
26872   ac_cv_search_nanosleep=$ac_res
26873 else
26874   echo "$as_me: failed program was:" >&5
26875 sed 's/^/| /' conftest.$ac_ext >&5
26876
26877
26878 fi
26879
26880 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26881       conftest$ac_exeext
26882   if test "${ac_cv_search_nanosleep+set}" = set; then
26883   break
26884 fi
26885 done
26886 if test "${ac_cv_search_nanosleep+set}" = set; then
26887   :
26888 else
26889   ac_cv_search_nanosleep=no
26890 fi
26891 rm conftest.$ac_ext
26892 LIBS=$ac_func_search_save_LIBS
26893 fi
26894 { echo "$as_me:$LINENO: result: $ac_cv_search_nanosleep" >&5
26895 echo "${ECHO_T}$ac_cv_search_nanosleep" >&6; }
26896 ac_res=$ac_cv_search_nanosleep
26897 if test "$ac_res" != no; then
26898   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26899
26900 fi
26901
26902           { echo "$as_me:$LINENO: checking for libwrap" >&5
26903 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6; }
26904           cat >conftest.$ac_ext <<_ACEOF
26905 /* confdefs.h.  */
26906 _ACEOF
26907 cat confdefs.h >>conftest.$ac_ext
26908 cat >>conftest.$ac_ext <<_ACEOF
26909 /* end confdefs.h.  */
26910
26911                #include <sys/types.h>
26912                #include <tcpd.h>
26913                int deny_severity = 0;
26914                int allow_severity = 0;
26915                struct request_info *req;
26916
26917 int
26918 main ()
26919 {
26920
26921                 hosts_access(req);
26922
26923   ;
26924   return 0;
26925 }
26926 _ACEOF
26927 rm -f conftest.$ac_objext conftest$ac_exeext
26928 if { (ac_try="$ac_link"
26929 case "(($ac_try" in
26930   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26931   *) ac_try_echo=$ac_try;;
26932 esac
26933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26934   (eval "$ac_link") 2>conftest.er1
26935   ac_status=$?
26936   grep -v '^ *+' conftest.er1 >conftest.err
26937   rm -f conftest.er1
26938   cat conftest.err >&5
26939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26940   (exit $ac_status); } && {
26941          test -z "$ac_cxx_werror_flag" ||
26942          test ! -s conftest.err
26943        } && test -s conftest$ac_exeext &&
26944        $as_test_x conftest$ac_exeext; then
26945
26946                  { echo "$as_me:$LINENO: result: yes" >&5
26947 echo "${ECHO_T}yes" >&6; }
26948
26949 cat >>confdefs.h <<\_ACEOF
26950 #define HAVE_LIBWRAP 1
26951 _ACEOF
26952
26953                  TCPW_MSG="yes"
26954                  LIBS="$saved_LIBS"
26955                  WRAPLIBS="-lwrap"
26956
26957 else
26958   echo "$as_me: failed program was:" >&5
26959 sed 's/^/| /' conftest.$ac_ext >&5
26960
26961
26962                  LIBS="$saved_LIBS -lwrap -lnsl"
26963                  WRAPLIBS="$saved_LIBS -lwrap -lnsl"
26964                  cat >conftest.$ac_ext <<_ACEOF
26965 /* confdefs.h.  */
26966 _ACEOF
26967 cat confdefs.h >>conftest.$ac_ext
26968 cat >>conftest.$ac_ext <<_ACEOF
26969 /* end confdefs.h.  */
26970
26971                        #include <sys/types.h>
26972                        #include <tcpd.h>
26973                        int deny_severity = 0;
26974                        int allow_severity = 0;
26975                        struct request_info *req;
26976
26977 int
26978 main ()
26979 {
26980
26981                        hosts_access(req);
26982
26983   ;
26984   return 0;
26985 }
26986 _ACEOF
26987 rm -f conftest.$ac_objext conftest$ac_exeext
26988 if { (ac_try="$ac_link"
26989 case "(($ac_try" in
26990   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26991   *) ac_try_echo=$ac_try;;
26992 esac
26993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26994   (eval "$ac_link") 2>conftest.er1
26995   ac_status=$?
26996   grep -v '^ *+' conftest.er1 >conftest.err
26997   rm -f conftest.er1
26998   cat conftest.err >&5
26999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27000   (exit $ac_status); } && {
27001          test -z "$ac_cxx_werror_flag" ||
27002          test ! -s conftest.err
27003        } && test -s conftest$ac_exeext &&
27004        $as_test_x conftest$ac_exeext; then
27005
27006                       { echo "$as_me:$LINENO: result: yes" >&5
27007 echo "${ECHO_T}yes" >&6; }
27008
27009 cat >>confdefs.h <<\_ACEOF
27010 #define HAVE_LIBWRAP 1
27011 _ACEOF
27012
27013                       TCPW_MSG="yes"
27014                       LIBS="$saved_LIBS"
27015                       WRAPLIBS="-lwrap"
27016
27017 else
27018   echo "$as_me: failed program was:" >&5
27019 sed 's/^/| /' conftest.$ac_ext >&5
27020
27021
27022                       { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
27023 echo "$as_me: error: *** libwrap missing" >&2;}
27024    { (exit 1); exit 1; }; }
27025
27026
27027 fi
27028
27029 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27030       conftest$ac_exeext conftest.$ac_ext
27031
27032
27033 fi
27034
27035 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27036       conftest$ac_exeext conftest.$ac_ext
27037        fi
27038
27039
27040 fi
27041
27042
27043 { echo "$as_me:$LINENO: checking for OpenSSL" >&5
27044 echo $ECHO_N "checking for OpenSSL... $ECHO_C" >&6; }
27045
27046 # Check whether --with-openssl was given.
27047 if test "${with_openssl+set}" = set; then
27048   withval=$with_openssl;
27049         with_openssl_directory=${withval}
27050
27051
27052 fi
27053
27054
27055 if test "x$with_openssl_directory" != "xno"; then
27056    OPENSSL_LIBS="-lssl -lcrypto"
27057    OPENSSL_INC=""
27058
27059    if test "x$with_openssl_directory" != "xyes" && test x"${with_openssl_directory}" != "x"; then
27060       #
27061       # Make sure the $with_openssl_directory also makes sense
27062       #
27063       if test -d "$with_openssl_directory/lib" -a -d "$with_openssl_directory/include"; then
27064          OPENSSL_LIBS="-L$with_openssl_directory/lib $OPENSSL_LIBS"
27065          OPENSSL_INC="-I$with_openssl_directory/include $OPENSSL_INC"
27066       fi
27067    fi
27068
27069    saved_LIBS="${LIBS}"
27070    saved_CFLAGS="${CFLAGS}"
27071    LIBS="${saved_LIBS} ${OPENSSL_LIBS}"
27072    CFLAGS="${saved_CFLAGS} ${OPENSSL_INC}"
27073
27074    cat >conftest.$ac_ext <<_ACEOF
27075 /* confdefs.h.  */
27076 _ACEOF
27077 cat confdefs.h >>conftest.$ac_ext
27078 cat >>conftest.$ac_ext <<_ACEOF
27079 /* end confdefs.h.  */
27080
27081           #include <openssl/ssl.h>
27082
27083 int
27084 main ()
27085 {
27086
27087            CRYPTO_set_id_callback(NULL);
27088
27089   ;
27090   return 0;
27091 }
27092 _ACEOF
27093 rm -f conftest.$ac_objext conftest$ac_exeext
27094 if { (ac_try="$ac_link"
27095 case "(($ac_try" in
27096   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27097   *) ac_try_echo=$ac_try;;
27098 esac
27099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27100   (eval "$ac_link") 2>conftest.er1
27101   ac_status=$?
27102   grep -v '^ *+' conftest.er1 >conftest.err
27103   rm -f conftest.er1
27104   cat conftest.err >&5
27105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27106   (exit $ac_status); } && {
27107          test -z "$ac_cxx_werror_flag" ||
27108          test ! -s conftest.err
27109        } && test -s conftest$ac_exeext &&
27110        $as_test_x conftest$ac_exeext; then
27111
27112           support_tls="yes"
27113           support_crypto="yes"
27114
27115 else
27116   echo "$as_me: failed program was:" >&5
27117 sed 's/^/| /' conftest.$ac_ext >&5
27118
27119
27120           support_tls="no"
27121
27122
27123 fi
27124
27125 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27126       conftest$ac_exeext conftest.$ac_ext
27127
27128    cat >conftest.$ac_ext <<_ACEOF
27129 /* confdefs.h.  */
27130 _ACEOF
27131 cat confdefs.h >>conftest.$ac_ext
27132 cat >>conftest.$ac_ext <<_ACEOF
27133 /* end confdefs.h.  */
27134
27135           #include <openssl/evp.h>
27136
27137 int
27138 main ()
27139 {
27140
27141           EVP_sha512();
27142
27143   ;
27144   return 0;
27145 }
27146 _ACEOF
27147 rm -f conftest.$ac_objext conftest$ac_exeext
27148 if { (ac_try="$ac_link"
27149 case "(($ac_try" in
27150   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27151   *) ac_try_echo=$ac_try;;
27152 esac
27153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27154   (eval "$ac_link") 2>conftest.er1
27155   ac_status=$?
27156   grep -v '^ *+' conftest.er1 >conftest.err
27157   rm -f conftest.er1
27158   cat conftest.err >&5
27159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27160   (exit $ac_status); } && {
27161          test -z "$ac_cxx_werror_flag" ||
27162          test ! -s conftest.err
27163        } && test -s conftest$ac_exeext &&
27164        $as_test_x conftest$ac_exeext; then
27165
27166           ac_cv_openssl_sha2="yes"
27167
27168 else
27169   echo "$as_me: failed program was:" >&5
27170 sed 's/^/| /' conftest.$ac_ext >&5
27171
27172
27173           ac_cv_openssl_sha2="no"
27174
27175
27176 fi
27177
27178 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27179       conftest$ac_exeext conftest.$ac_ext
27180
27181                cat >conftest.$ac_ext <<_ACEOF
27182 /* confdefs.h.  */
27183 _ACEOF
27184 cat confdefs.h >>conftest.$ac_ext
27185 cat >>conftest.$ac_ext <<_ACEOF
27186 /* end confdefs.h.  */
27187
27188           #include <openssl/evp.h>
27189
27190 int
27191 main ()
27192 {
27193
27194           EVP_aes_192_cbc();
27195
27196   ;
27197   return 0;
27198 }
27199 _ACEOF
27200 rm -f conftest.$ac_objext conftest$ac_exeext
27201 if { (ac_try="$ac_link"
27202 case "(($ac_try" in
27203   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27204   *) ac_try_echo=$ac_try;;
27205 esac
27206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27207   (eval "$ac_link") 2>conftest.er1
27208   ac_status=$?
27209   grep -v '^ *+' conftest.er1 >conftest.err
27210   rm -f conftest.er1
27211   cat conftest.err >&5
27212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27213   (exit $ac_status); } && {
27214          test -z "$ac_cxx_werror_flag" ||
27215          test ! -s conftest.err
27216        } && test -s conftest$ac_exeext &&
27217        $as_test_x conftest$ac_exeext; then
27218
27219           ac_cv_openssl_export="no"
27220
27221 else
27222   echo "$as_me: failed program was:" >&5
27223 sed 's/^/| /' conftest.$ac_ext >&5
27224
27225
27226           ac_cv_openssl_export="yes"
27227
27228
27229 fi
27230
27231 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27232       conftest$ac_exeext conftest.$ac_ext
27233
27234    LIBS="${saved_LIBS}"
27235    CFLAGS="${saved_CFLAGS}"
27236
27237    if test "$support_tls" = "yes"; then
27238
27239 cat >>confdefs.h <<\_ACEOF
27240 #define HAVE_OPENSSL 1
27241 _ACEOF
27242
27243
27244 cat >>confdefs.h <<\_ACEOF
27245 #define HAVE_TLS 1
27246 _ACEOF
27247
27248
27249 cat >>confdefs.h <<\_ACEOF
27250 #define HAVE_CRYPTO 1
27251 _ACEOF
27252
27253    fi
27254
27255    if test "$ac_cv_openssl_sha2" = "yes"; then
27256
27257 cat >>confdefs.h <<\_ACEOF
27258 #define HAVE_SHA2 1
27259 _ACEOF
27260
27261    fi
27262
27263    if test "$ac_cv_openssl_export" = "yes"; then
27264
27265 cat >>confdefs.h <<\_ACEOF
27266 #define HAVE_OPENSSL_EXPORT_LIBRARY 1
27267 _ACEOF
27268
27269    fi
27270 else
27271    support_tls="no"
27272    support_crypto="no"
27273    OPENSSL_LIBS=""
27274    OPENSSL_INC=""
27275 fi
27276
27277 if test "$support_tls" = "no"; then
27278    OPENSSL_LIBS=""
27279    OPENSSL_INC=""
27280 fi
27281
27282 { echo "$as_me:$LINENO: result: $support_tls" >&5
27283 echo "${ECHO_T}$support_tls" >&6; }
27284
27285
27286
27287 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
27288 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
27289 if test "${ac_cv_search_dlopen+set}" = set; then
27290   echo $ECHO_N "(cached) $ECHO_C" >&6
27291 else
27292   ac_func_search_save_LIBS=$LIBS
27293 cat >conftest.$ac_ext <<_ACEOF
27294 /* confdefs.h.  */
27295 _ACEOF
27296 cat confdefs.h >>conftest.$ac_ext
27297 cat >>conftest.$ac_ext <<_ACEOF
27298 /* end confdefs.h.  */
27299
27300 /* Override any GCC internal prototype to avoid an error.
27301    Use char because int might match the return type of a GCC
27302    builtin and then its argument prototype would still apply.  */
27303 #ifdef __cplusplus
27304 extern "C"
27305 #endif
27306 char dlopen ();
27307 int
27308 main ()
27309 {
27310 return dlopen ();
27311   ;
27312   return 0;
27313 }
27314 _ACEOF
27315 for ac_lib in '' dl; do
27316   if test -z "$ac_lib"; then
27317     ac_res="none required"
27318   else
27319     ac_res=-l$ac_lib
27320     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27321   fi
27322   rm -f conftest.$ac_objext conftest$ac_exeext
27323 if { (ac_try="$ac_link"
27324 case "(($ac_try" in
27325   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27326   *) ac_try_echo=$ac_try;;
27327 esac
27328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27329   (eval "$ac_link") 2>conftest.er1
27330   ac_status=$?
27331   grep -v '^ *+' conftest.er1 >conftest.err
27332   rm -f conftest.er1
27333   cat conftest.err >&5
27334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27335   (exit $ac_status); } && {
27336          test -z "$ac_cxx_werror_flag" ||
27337          test ! -s conftest.err
27338        } && test -s conftest$ac_exeext &&
27339        $as_test_x conftest$ac_exeext; then
27340   ac_cv_search_dlopen=$ac_res
27341 else
27342   echo "$as_me: failed program was:" >&5
27343 sed 's/^/| /' conftest.$ac_ext >&5
27344
27345
27346 fi
27347
27348 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27349       conftest$ac_exeext
27350   if test "${ac_cv_search_dlopen+set}" = set; then
27351   break
27352 fi
27353 done
27354 if test "${ac_cv_search_dlopen+set}" = set; then
27355   :
27356 else
27357   ac_cv_search_dlopen=no
27358 fi
27359 rm conftest.$ac_ext
27360 LIBS=$ac_func_search_save_LIBS
27361 fi
27362 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
27363 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
27364 ac_res=$ac_cv_search_dlopen
27365 if test "$ac_res" != no; then
27366   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27367
27368 fi
27369
27370
27371 working_dir=`eval echo ${prefix}/var/bacula/working`
27372
27373 # Check whether --with-working-dir was given.
27374 if test "${with_working_dir+set}" = set; then
27375   withval=$with_working_dir;
27376        if test "x$withval" != "xno" ; then
27377          working_dir=$withval
27378        fi
27379
27380
27381 fi
27382
27383
27384
27385
27386 archivedir=/tmp
27387
27388 # Check whether --with-archivedir was given.
27389 if test "${with_archivedir+set}" = set; then
27390   withval=$with_archivedir;
27391        if test "x$withval" != "xno" ; then
27392           archivedir=$withval
27393        fi
27394
27395
27396 fi
27397
27398
27399
27400
27401 basename=`hostname`
27402
27403 # Check whether --with-basename was given.
27404 if test "${with_basename+set}" = set; then
27405   withval=$with_basename;
27406        if test "x$withval" != "xno" ; then
27407           basename=$withval
27408        fi
27409
27410
27411 fi
27412
27413
27414
27415
27416 hostname=`uname -n | cut -d '.' -f 1`
27417 if test x${hostname} = x ; then
27418   hostname="localhost"
27419 fi
27420
27421 # Check whether --with-hostname was given.
27422 if test "${with_hostname+set}" = set; then
27423   withval=$with_hostname;
27424        if test "x$withval" != "xno" ; then
27425          hostname=$withval
27426        fi
27427
27428
27429 fi
27430
27431
27432
27433
27434
27435 scriptdir=`eval echo ${sysconfdir}`
27436
27437 # Check whether --with-scriptdir was given.
27438 if test "${with_scriptdir+set}" = set; then
27439   withval=$with_scriptdir;
27440        if test "x$withval" != "xno" ; then
27441           scriptdir=$withval
27442        fi
27443
27444
27445 fi
27446
27447
27448
27449
27450
27451 bsrdir=/tmp
27452
27453 # Check whether --with-bsrdir was given.
27454 if test "${with_bsrdir+set}" = set; then
27455   withval=$with_bsrdir;
27456        if test "x$withval" != "xno" ; then
27457           bsrdir=$withval
27458        fi
27459
27460
27461 fi
27462
27463
27464
27465
27466 logdir=/tmp
27467
27468 # Check whether --with-logdir was given.
27469 if test "${with_logdir+set}" = set; then
27470   withval=$with_logdir;
27471        if test "x$withval" != "xno" ; then
27472           logdir=$withval
27473        fi
27474
27475
27476 fi
27477
27478
27479
27480
27481
27482 # ------------------------------------------
27483 # Where to place plugindir (plugin files)
27484 # ------------------------------------------
27485 plugindir=`eval echo ${libdir}`
27486
27487 # Check whether --with-plugindir was given.
27488 if test "${with_plugindir+set}" = set; then
27489   withval=$with_plugindir;
27490        if test "x$withval" != "xno" ; then
27491           plugindir=$withval
27492        fi
27493
27494
27495 fi
27496
27497
27498
27499
27500 dump_email=root@localhost
27501
27502 # Check whether --with-dump-email was given.
27503 if test "${with_dump_email+set}" = set; then
27504   withval=$with_dump_email;
27505        if test "x$withval" != "xno" ; then
27506           dump_email=$withval
27507        fi
27508
27509
27510 fi
27511
27512
27513
27514
27515 job_email=root@localhost
27516
27517 # Check whether --with-job-email was given.
27518 if test "${with_job_email+set}" = set; then
27519   withval=$with_job_email;
27520        if test "x$withval" != "xno" ; then
27521           job_email=$withval
27522        fi
27523
27524
27525 fi
27526
27527
27528
27529
27530 smtp_host=localhost
27531
27532 # Check whether --with-smtp_host was given.
27533 if test "${with_smtp_host+set}" = set; then
27534   withval=$with_smtp_host;
27535        if test "x$withval" != "xno" ; then
27536           smtp_host=$withval
27537        fi
27538
27539
27540 fi
27541
27542
27543
27544
27545 piddir=/var/run
27546
27547 # Check whether --with-pid-dir was given.
27548 if test "${with_pid_dir+set}" = set; then
27549   withval=$with_pid_dir;
27550        if test "x$withval" != "xno" ; then
27551           piddir=$withval
27552        fi
27553
27554
27555 fi
27556
27557
27558 cat >>confdefs.h <<_ACEOF
27559 #define _PATH_BACULA_PIDDIR "$piddir"
27560 _ACEOF
27561
27562
27563
27564 subsysdir=/var/run/subsys
27565 if test -d /var/run/subsys; then
27566    subsysdir=/var/run/subsys
27567 elif test -d /var/lock/subsys; then
27568    subsysdir=/var/lock/subsys
27569 else
27570    subsysdir=/var/run/subsys
27571 fi
27572
27573 # Check whether --with-subsys-dir was given.
27574 if test "${with_subsys_dir+set}" = set; then
27575   withval=$with_subsys_dir;
27576        if test "x$withval" != "xno" ; then
27577           subsysdir=$withval
27578        fi
27579
27580
27581 fi
27582
27583
27584
27585
27586 baseport=9101
27587
27588 # Check whether --with-baseport was given.
27589 if test "${with_baseport+set}" = set; then
27590   withval=$with_baseport;
27591        if test "x$withval" != "xno" ; then
27592           baseport=$withval
27593        fi
27594
27595
27596 fi
27597
27598
27599
27600 dir_port=`expr $baseport`
27601 fd_port=`expr $baseport + 1`
27602 sd_port=`expr $fd_port + 1`
27603
27604
27605
27606
27607
27608 dir_password=
27609
27610 # Check whether --with-dir-password was given.
27611 if test "${with_dir_password+set}" = set; then
27612   withval=$with_dir_password;
27613        if test "x$withval" != "xno" ; then
27614           dir_password=$withval
27615        fi
27616
27617
27618 fi
27619
27620
27621 if test "x$dir_password" = "x" ; then
27622    if test "x$OPENSSL" = "xnone" ; then
27623       key=`autoconf/randpass 33`
27624    else
27625       key=`openssl rand -base64 33`
27626    fi
27627    dir_password=$key
27628 fi
27629
27630 fd_password=
27631
27632 # Check whether --with-fd-password was given.
27633 if test "${with_fd_password+set}" = set; then
27634   withval=$with_fd_password;
27635        if test "x$withval" != "xno" ; then
27636           fd_password=$withval
27637        fi
27638
27639
27640 fi
27641
27642
27643 if test "x$fd_password" = "x" ; then
27644    if test "x$OPENSSL" = "xnone" ; then
27645       key=`autoconf/randpass 37`
27646    else
27647       key=`openssl rand -base64 33`
27648    fi
27649    fd_password=$key
27650 fi
27651
27652 sd_password=
27653
27654 # Check whether --with-sd-password was given.
27655 if test "${with_sd_password+set}" = set; then
27656   withval=$with_sd_password;
27657        if test "x$withval" != "xno" ; then
27658           sd_password=$withval
27659        fi
27660
27661
27662 fi
27663
27664
27665 if test "x$sd_password" = "x" ; then
27666    if test "x$OPENSSL" = "xnone" ; then
27667       key=`autoconf/randpass 41`
27668    else
27669       key=`openssl rand -base64 33`
27670    fi
27671    sd_password=$key
27672 fi
27673
27674 mon_dir_password=
27675
27676 # Check whether --with-mon-dir-password was given.
27677 if test "${with_mon_dir_password+set}" = set; then
27678   withval=$with_mon_dir_password;
27679        if test "x$withval" != "xno" ; then
27680           mon_dir_password=$withval
27681        fi
27682
27683
27684 fi
27685
27686
27687 if test "x$mon_dir_password" = "x" ; then
27688    if test "x$OPENSSL" = "xnone" ; then
27689       key=`autoconf/randpass 33`
27690    else
27691       key=`openssl rand -base64 33`
27692    fi
27693    mon_dir_password=$key
27694 fi
27695
27696 mon_fd_password=
27697
27698 # Check whether --with-mon-fd-password was given.
27699 if test "${with_mon_fd_password+set}" = set; then
27700   withval=$with_mon_fd_password;
27701        if test "x$withval" != "xno" ; then
27702           mon_fd_password=$withval
27703        fi
27704
27705
27706 fi
27707
27708
27709 if test "x$mon_fd_password" = "x" ; then
27710    if test "x$OPENSSL" = "xnone" ; then
27711       key=`autoconf/randpass 37`
27712    else
27713       key=`openssl rand -base64 33`
27714    fi
27715    mon_fd_password=$key
27716 fi
27717
27718 mon_sd_password=
27719
27720 # Check whether --with-mon-sd-password was given.
27721 if test "${with_mon_sd_password+set}" = set; then
27722   withval=$with_mon_sd_password;
27723        if test "x$withval" != "xno" ; then
27724           mon_sd_password=$withval
27725        fi
27726
27727
27728 fi
27729
27730
27731 if test "x$mon_sd_password" = "x" ; then
27732    if test "x$OPENSSL" = "xnone" ; then
27733       key=`autoconf/randpass 41`
27734    else
27735       key=`openssl rand -base64 33`
27736    fi
27737    mon_sd_password=$key
27738 fi
27739
27740
27741
27742
27743
27744
27745
27746
27747 db_name=bacula
27748
27749 # Check whether --with-db_name was given.
27750 if test "${with_db_name+set}" = set; then
27751   withval=$with_db_name;
27752        if test "x$withval" != "x" ; then
27753           db_name=$withval
27754        fi
27755
27756
27757 fi
27758
27759
27760
27761 db_user=bacula
27762
27763 # Check whether --with-db_user was given.
27764 if test "${with_db_user+set}" = set; then
27765   withval=$with_db_user;
27766        if test "x$withval" != "x" ; then
27767           db_user=$withval
27768        fi
27769
27770
27771 fi
27772
27773
27774
27775 db_password=
27776
27777 # Check whether --with-db_password was given.
27778 if test "${with_db_password+set}" = set; then
27779   withval=$with_db_password;
27780        if test "x$withval" != "x" ; then
27781           db_password=$withval
27782        fi
27783
27784
27785 fi
27786
27787
27788
27789 db_port=" "
27790
27791 # Check whether --with-db_port was given.
27792 if test "${with_db_port+set}" = set; then
27793   withval=$with_db_port;
27794        if test "x$withval" != "x" ; then
27795           db_port=$withval
27796        fi
27797
27798
27799 fi
27800
27801
27802
27803 #
27804 # Handle users and groups for each daemon
27805 #
27806 dir_user=
27807
27808 # Check whether --with-dir_user was given.
27809 if test "${with_dir_user+set}" = set; then
27810   withval=$with_dir_user;
27811        if test "x$withval" != "x" ; then
27812            dir_user=$withval
27813        fi
27814
27815
27816 fi
27817
27818
27819 dir_group=
27820
27821 # Check whether --with-dir_group was given.
27822 if test "${with_dir_group+set}" = set; then
27823   withval=$with_dir_group;
27824        if test "x$withval" != "x" ; then
27825           dir_group=$withval
27826        fi
27827
27828
27829 fi
27830
27831
27832 sd_user=
27833
27834 # Check whether --with-sd_user was given.
27835 if test "${with_sd_user+set}" = set; then
27836   withval=$with_sd_user;
27837        if test "x$withval" != "x" ; then
27838           sd_user=$withval
27839        fi
27840
27841
27842 fi
27843
27844
27845 sd_group=
27846
27847 # Check whether --with-sd_group was given.
27848 if test "${with_sd_group+set}" = set; then
27849   withval=$with_sd_group;
27850        if test "x$withval" != "x" ; then
27851           sd_group=$withval
27852        fi
27853
27854
27855 fi
27856
27857
27858 fd_user=
27859
27860 # Check whether --with-fd_user was given.
27861 if test "${with_fd_user+set}" = set; then
27862   withval=$with_fd_user;
27863        if test "x$withval" != "x" ; then
27864           fd_user=$withval
27865        fi
27866
27867
27868 fi
27869
27870
27871 fd_group=
27872
27873 # Check whether --with-fd_group was given.
27874 if test "${with_fd_group+set}" = set; then
27875   withval=$with_fd_group;
27876        if test "x$withval" != "x" ; then
27877           fd_group=$withval
27878        fi
27879
27880
27881 fi
27882
27883
27884
27885
27886
27887
27888
27889
27890
27891 SBINPERM=0754
27892
27893 # Check whether --with-sbin-perm was given.
27894 if test "${with_sbin_perm+set}" = set; then
27895   withval=$with_sbin_perm;
27896        if test "x$withval" != "x" ; then
27897           SBINPERM=$withval
27898        fi
27899
27900
27901 fi
27902
27903
27904
27905
27906 SQL_LIB=
27907
27908 db_found=no
27909 { echo "$as_me:$LINENO: checking for PostgreSQL support" >&5
27910 echo $ECHO_N "checking for PostgreSQL support... $ECHO_C" >&6; }
27911
27912 # Check whether --with-postgresql was given.
27913 if test "${with_postgresql+set}" = set; then
27914   withval=$with_postgresql;
27915   if test "$withval" != "no"; then
27916       if test "$db_found" = "yes"; then
27917           { echo "$as_me:$LINENO: result: error" >&5
27918 echo "${ECHO_T}error" >&6; }
27919           { { echo "$as_me:$LINENO: error: \"You can configure for only one database.\"" >&5
27920 echo "$as_me: error: \"You can configure for only one database.\"" >&2;}
27921    { (exit 1); exit 1; }; };
27922       fi
27923       if test "$withval" = "yes"; then
27924           PG_CONFIG=`which pg_config`
27925           if test -n "$PG_CONFIG";then
27926               POSTGRESQL_INCDIR=`"$PG_CONFIG" --includedir`
27927               POSTGRESQL_LIBDIR=`"$PG_CONFIG" --libdir`
27928               POSTGRESQL_BINDIR=`"$PG_CONFIG" --bindir`
27929           elif test -f /usr/local/include/libpq-fe.h; then
27930               POSTGRESQL_INCDIR=/usr/local/include
27931               if test -d /usr/local/lib64; then
27932                  POSTGRESQL_LIBDIR=/usr/local/lib64
27933               else
27934                  POSTGRESQL_LIBDIR=/usr/local/lib
27935               fi
27936               POSTGRESQL_BINDIR=/usr/local/bin
27937           elif test -f /usr/include/libpq-fe.h; then
27938               POSTGRESQL_INCDIR=/usr/include
27939               if test -d /usr/lib64; then
27940                  POSTGRESQL_LIBDIR=/usr/lib64
27941               else
27942                  POSTGRESQL_LIBDIR=/usr/lib
27943               fi
27944               POSTGRESQL_BINDIR=/usr/bin
27945           elif test -f /usr/include/pgsql/libpq-fe.h; then
27946               POSTGRESQL_INCDIR=/usr/include/pgsql
27947               if test -d /usr/lib64/pgsql; then
27948                  POSTGRESQL_LIBDIR=/usr/lib64/pgsql
27949               else
27950                  POSTGRESQL_LIBDIR=/usr/lib/pgsql
27951               fi
27952               POSTGRESQL_BINDIR=/usr/bin
27953           elif test -f /usr/include/postgresql/libpq-fe.h; then
27954               POSTGRESQL_INCDIR=/usr/include/postgresql
27955               if test -d /usr/lib64/postgresql; then
27956                  POSTGRESQL_LIBDIR=/usr/lib64/postgresql
27957               else
27958                  POSTGRESQL_LIBDIR=/usr/lib/postgresql
27959               fi
27960               POSTGRESQL_BINDIR=/usr/bin
27961           else
27962               { echo "$as_me:$LINENO: result: no" >&5
27963 echo "${ECHO_T}no" >&6; }
27964               { { echo "$as_me:$LINENO: error: Unable to find libpq-fe.h in standard locations" >&5
27965 echo "$as_me: error: Unable to find libpq-fe.h in standard locations" >&2;}
27966    { (exit 1); exit 1; }; }
27967           fi
27968       elif test -f $withval/include/libpq-fe.h; then
27969           POSTGRESQL_INCDIR=$withval/include
27970           POSTGRESQL_LIBDIR=$withval/lib
27971           POSTGRESQL_BINDIR=$withval/bin
27972       elif test -f $withval/include/postgresql/libpq-fe.h; then
27973           POSTGRESQL_INCDIR=$withval/include/postgresql
27974      if test -d $withval/lib64; then
27975          POSTGRESQL_LIBDIR=$withval/lib64
27976      else
27977          POSTGRESQL_LIBDIR=$withval/lib
27978      fi
27979           POSTGRESQL_BINDIR=$withval/bin
27980       else
27981           { echo "$as_me:$LINENO: result: no" >&5
27982 echo "${ECHO_T}no" >&6; }
27983           { { echo "$as_me:$LINENO: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&5
27984 echo "$as_me: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&2;}
27985    { (exit 1); exit 1; }; }
27986       fi
27987       POSTGRESQL_LFLAGS="-L$POSTGRESQL_LIBDIR -lpq"
27988       { echo "$as_me:$LINENO: checking for crypt" >&5
27989 echo $ECHO_N "checking for crypt... $ECHO_C" >&6; }
27990 if test "${ac_cv_func_crypt+set}" = set; then
27991   echo $ECHO_N "(cached) $ECHO_C" >&6
27992 else
27993   cat >conftest.$ac_ext <<_ACEOF
27994 /* confdefs.h.  */
27995 _ACEOF
27996 cat confdefs.h >>conftest.$ac_ext
27997 cat >>conftest.$ac_ext <<_ACEOF
27998 /* end confdefs.h.  */
27999 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
28000    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28001 #define crypt innocuous_crypt
28002
28003 /* System header to define __stub macros and hopefully few prototypes,
28004     which can conflict with char crypt (); below.
28005     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28006     <limits.h> exists even on freestanding compilers.  */
28007
28008 #ifdef __STDC__
28009 # include <limits.h>
28010 #else
28011 # include <assert.h>
28012 #endif
28013
28014 #undef crypt
28015
28016 /* Override any GCC internal prototype to avoid an error.
28017    Use char because int might match the return type of a GCC
28018    builtin and then its argument prototype would still apply.  */
28019 #ifdef __cplusplus
28020 extern "C"
28021 #endif
28022 char crypt ();
28023 /* The GNU C library defines this for functions which it implements
28024     to always fail with ENOSYS.  Some functions are actually named
28025     something starting with __ and the normal name is an alias.  */
28026 #if defined __stub_crypt || defined __stub___crypt
28027 choke me
28028 #endif
28029
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_cxx_werror_flag" ||
28053          test ! -s conftest.err
28054        } && test -s conftest$ac_exeext &&
28055        $as_test_x conftest$ac_exeext; then
28056   ac_cv_func_crypt=yes
28057 else
28058   echo "$as_me: failed program was:" >&5
28059 sed 's/^/| /' conftest.$ac_ext >&5
28060
28061         ac_cv_func_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 fi
28067 { echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
28068 echo "${ECHO_T}$ac_cv_func_crypt" >&6; }
28069 if test $ac_cv_func_crypt = yes; then
28070   :
28071 else
28072   { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
28073 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
28074 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
28075   echo $ECHO_N "(cached) $ECHO_C" >&6
28076 else
28077   ac_check_lib_save_LIBS=$LIBS
28078 LIBS="-lcrypt  $LIBS"
28079 cat >conftest.$ac_ext <<_ACEOF
28080 /* confdefs.h.  */
28081 _ACEOF
28082 cat confdefs.h >>conftest.$ac_ext
28083 cat >>conftest.$ac_ext <<_ACEOF
28084 /* end confdefs.h.  */
28085
28086 /* Override any GCC internal prototype to avoid an error.
28087    Use char because int might match the return type of a GCC
28088    builtin and then its argument prototype would still apply.  */
28089 #ifdef __cplusplus
28090 extern "C"
28091 #endif
28092 char crypt ();
28093 int
28094 main ()
28095 {
28096 return crypt ();
28097   ;
28098   return 0;
28099 }
28100 _ACEOF
28101 rm -f conftest.$ac_objext conftest$ac_exeext
28102 if { (ac_try="$ac_link"
28103 case "(($ac_try" in
28104   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28105   *) ac_try_echo=$ac_try;;
28106 esac
28107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28108   (eval "$ac_link") 2>conftest.er1
28109   ac_status=$?
28110   grep -v '^ *+' conftest.er1 >conftest.err
28111   rm -f conftest.er1
28112   cat conftest.err >&5
28113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28114   (exit $ac_status); } && {
28115          test -z "$ac_cxx_werror_flag" ||
28116          test ! -s conftest.err
28117        } && test -s conftest$ac_exeext &&
28118        $as_test_x conftest$ac_exeext; then
28119   ac_cv_lib_crypt_crypt=yes
28120 else
28121   echo "$as_me: failed program was:" >&5
28122 sed 's/^/| /' conftest.$ac_ext >&5
28123
28124         ac_cv_lib_crypt_crypt=no
28125 fi
28126
28127 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28128       conftest$ac_exeext conftest.$ac_ext
28129 LIBS=$ac_check_lib_save_LIBS
28130 fi
28131 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
28132 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
28133 if test $ac_cv_lib_crypt_crypt = yes; then
28134   POSTGRESQL_LFLAGS="$POSTGRESQL_LFLAGS -lcrypt"
28135 fi
28136
28137 fi
28138
28139       SQL_INCLUDE=-I$POSTGRESQL_INCDIR
28140       SQL_LFLAGS=$POSTGRESQL_LFLAGS
28141       SQL_BINDIR=$POSTGRESQL_BINDIR
28142       SQL_LIB=$POSTGRESQL_LIBDIR/libpq.a
28143
28144       cat >>confdefs.h <<\_ACEOF
28145 #define HAVE_POSTGRESQL 1
28146 _ACEOF
28147
28148       { echo "$as_me:$LINENO: result: yes" >&5
28149 echo "${ECHO_T}yes" >&6; }
28150       db_found=yes
28151       support_postgresql=yes
28152       db_type=PostgreSQL
28153       DB_TYPE=postgresql
28154   else
28155       { echo "$as_me:$LINENO: result: no" >&5
28156 echo "${ECHO_T}no" >&6; }
28157   fi
28158
28159 else
28160
28161   { echo "$as_me:$LINENO: result: no" >&5
28162 echo "${ECHO_T}no" >&6; }
28163
28164 fi
28165
28166
28167
28168
28169
28170
28171
28172
28173 db_found=no
28174 { echo "$as_me:$LINENO: checking for MySQL support" >&5
28175 echo $ECHO_N "checking for MySQL support... $ECHO_C" >&6; }
28176
28177 # Check whether --with-mysql was given.
28178 if test "${with_mysql+set}" = set; then
28179   withval=$with_mysql;
28180   if test "$withval" != "no"; then
28181         if test "$withval" = "yes"; then
28182            if test -f /usr/local/mysql/include/mysql/mysql.h; then
28183                    MYSQL_INCDIR=/usr/local/mysql/include/mysql
28184                    if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
28185                         -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
28186                            MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
28187                    else
28188                            MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
28189                    fi
28190                    MYSQL_BINDIR=/usr/local/mysql/bin
28191            elif test -f /usr/include/mysql/mysql.h; then
28192                    MYSQL_INCDIR=/usr/include/mysql
28193                    if test -f /usr/lib64/mysql/libmysqlclient_r.a \
28194                         -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
28195                            MYSQL_LIBDIR=/usr/lib64/mysql
28196                    elif test -f /usr/lib64/libmysqlclient_r.a \
28197                         -o -f /usr/lib64/libmysqlclient_r.so; then
28198                            MYSQL_LIBDIR=/usr/lib64
28199                    elif test -f /usr/lib/mysql/libmysqlclient_r.a \
28200                           -o -f /usr/lib/mysql/libmysqlclient_r.so; then
28201                            MYSQL_LIBDIR=/usr/lib/mysql
28202                    else
28203                            MYSQL_LIBDIR=/usr/lib
28204                    fi
28205                    MYSQL_BINDIR=/usr/bin
28206            elif test -f /usr/include/mysql.h; then
28207                    MYSQL_INCDIR=/usr/include
28208                    if test -f /usr/lib64/libmysqlclient_r.a \
28209                         -o -f /usr/lib64/libmysqlclient_r.so; then
28210                            MYSQL_LIBDIR=/usr/lib64
28211                    else
28212                            MYSQL_LIBDIR=/usr/lib
28213                    fi
28214                    MYSQL_BINDIR=/usr/bin
28215            elif test -f /usr/local/include/mysql/mysql.h; then
28216                    MYSQL_INCDIR=/usr/local/include/mysql
28217                    if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
28218                         -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
28219                            MYSQL_LIBDIR=/usr/local/lib64/mysql
28220                    else
28221                            MYSQL_LIBDIR=/usr/local/lib/mysql
28222                    fi
28223                    MYSQL_BINDIR=/usr/local/bin
28224            elif test -f /usr/local/include/mysql.h; then
28225                    MYSQL_INCDIR=/usr/local/include
28226                    if test -f /usr/local/lib64/libmysqlclient_r.a \
28227                         -o -f /usr/local/lib64/libmysqlclient_r.so; then
28228                            MYSQL_LIBDIR=/usr/local/lib64
28229                    else
28230                            MYSQL_LIBDIR=/usr/local/lib
28231                    fi
28232                    MYSQL_BINDIR=/usr/local/bin
28233            else
28234               { echo "$as_me:$LINENO: result: no" >&5
28235 echo "${ECHO_T}no" >&6; }
28236               { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
28237 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
28238    { (exit 1); exit 1; }; }
28239            fi
28240         else
28241            if test -f $withval/include/mysql/mysql.h; then
28242               MYSQL_INCDIR=$withval/include/mysql
28243               if test -f $withval/lib64/mysql/libmysqlclient_r.a \
28244                    -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
28245                  MYSQL_LIBDIR=$withval/lib64/mysql
28246               elif test -f $withval/lib64/libmysqlclient_r.a \
28247                    -o -f $withval/lib64/libmysqlclient_r.so; then
28248                  MYSQL_LIBDIR=$withval/lib64
28249               elif test -f $withval/lib/libmysqlclient_r.a \
28250                    -o -f $withval/lib/libmysqlclient_r.so; then
28251                  MYSQL_LIBDIR=$withval/lib
28252               else
28253                  MYSQL_LIBDIR=$withval/lib/mysql
28254               fi
28255               MYSQL_BINDIR=$withval/bin
28256            elif test -f $withval/include/mysql.h; then
28257               MYSQL_INCDIR=$withval/include
28258               if test -f $withval/lib64/libmysqlclient_r.a \
28259                    -o -f $withval/lib64/libmysqlclient_r.so; then
28260                  MYSQL_LIBDIR=$withval/lib64
28261               else
28262                  MYSQL_LIBDIR=$withval/lib
28263               fi
28264               MYSQL_BINDIR=$withval/bin
28265            else
28266               { echo "$as_me:$LINENO: result: no" >&5
28267 echo "${ECHO_T}no" >&6; }
28268               { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
28269 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
28270    { (exit 1); exit 1; }; }
28271            fi
28272         fi
28273     SQL_INCLUDE=-I$MYSQL_INCDIR
28274     if test -f $MYSQL_LIBDIR/libmysqlclient_r.a \
28275          -o -f $MYSQL_LIBDIR/libmysqlclient_r.so; then
28276        SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
28277        cat >>confdefs.h <<\_ACEOF
28278 #define HAVE_THREAD_SAFE_MYSQL 1
28279 _ACEOF
28280
28281     fi
28282     SQL_BINDIR=$MYSQL_BINDIR
28283     SQL_LIB=$MYSQL_LIBDIR/libmysqlclient_r.a
28284
28285     cat >>confdefs.h <<\_ACEOF
28286 #define HAVE_MYSQL 1
28287 _ACEOF
28288
28289     { echo "$as_me:$LINENO: result: yes" >&5
28290 echo "${ECHO_T}yes" >&6; }
28291     db_found=yes
28292     support_mysql=yes
28293     db_type=MySQL
28294     DB_TYPE=mysql
28295
28296   else
28297         { echo "$as_me:$LINENO: result: no" >&5
28298 echo "${ECHO_T}no" >&6; }
28299   fi
28300
28301
28302 fi
28303
28304
28305
28306 # Check whether --with-embedded-mysql was given.
28307 if test "${with_embedded_mysql+set}" = set; then
28308   withval=$with_embedded_mysql;
28309   if test "$withval" != "no"; then
28310         if test "$withval" = "yes"; then
28311                 if test -f /usr/local/mysql/include/mysql/mysql.h; then
28312                         MYSQL_INCDIR=/usr/local/mysql/include/mysql
28313                         if test -d /usr/local/mysql/lib64/mysql; then
28314                                 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
28315                         else
28316                                 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
28317                         fi
28318                         MYSQL_BINDIR=/usr/local/mysql/bin
28319                 elif test -f /usr/include/mysql/mysql.h; then
28320                         MYSQL_INCDIR=/usr/include/mysql
28321                         if test -d /usr/lib64/mysql; then
28322                                 MYSQL_LIBDIR=/usr/lib64/mysql
28323                         else
28324                                 MYSQL_LIBDIR=/usr/lib/mysql
28325                         fi
28326                         MYSQL_BINDIR=/usr/bin
28327                 elif test -f /usr/include/mysql.h; then
28328                         MYSQL_INCDIR=/usr/include
28329                         if test -d /usr/lib64; then
28330                                 MYSQL_LIBDIR=/usr/lib64
28331                         else
28332                                 MYSQL_LIBDIR=/usr/lib
28333                         fi
28334                         MYSQL_BINDIR=/usr/bin
28335                 elif test -f /usr/local/include/mysql/mysql.h; then
28336                         MYSQL_INCDIR=/usr/local/include/mysql
28337                         if test -d /usr/local/lib64/mysql; then
28338                                 MYSQL_LIBDIR=/usr/local/lib64/mysql
28339                         else
28340                                 MYSQL_LIBDIR=/usr/local/lib/mysql
28341                         fi
28342                         MYSQL_BINDIR=/usr/local/bin
28343                 elif test -f /usr/local/include/mysql.h; then
28344                         MYSQL_INCDIR=/usr/local/include
28345                         if test -d /usr/local/lib64; then
28346                                 MYSQL_LIBDIR=/usr/local/lib64
28347                         else
28348                                 MYSQL_LIBDIR=/usr/local/lib
28349                         fi
28350                         MYSQL_BINDIR=/usr/local/bin
28351                 else
28352                    { echo "$as_me:$LINENO: result: no" >&5
28353 echo "${ECHO_T}no" >&6; }
28354                    { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
28355 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
28356    { (exit 1); exit 1; }; }
28357                 fi
28358         else
28359                 if test -f $withval/include/mysql/mysql.h; then
28360                         MYSQL_INCDIR=$withval/include/mysql
28361                         if test -d $withval/lib64/mysql; then
28362                                 MYSQL_LIBDIR=$withval/lib64/mysql
28363                         else
28364                                 MYSQL_LIBDIR=$withval/lib/mysql
28365                         fi
28366                         MYSQL_BINDIR=$withval/bin
28367                 elif test -f $withval/include/mysql.h; then
28368                         MYSQL_INCDIR=$withval/include
28369                         if test -d $withval/lib64; then
28370                                 MYSQL_LIBDIR=$withval/lib64
28371                         else
28372                                 MYSQL_LIBDIR=$withval/lib
28373                         fi
28374                         MYSQL_BINDIR=$withval/bin
28375                 else
28376                    { echo "$as_me:$LINENO: result: no" >&5
28377 echo "${ECHO_T}no" >&6; }
28378                    { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
28379 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
28380    { (exit 1); exit 1; }; }
28381                 fi
28382         fi
28383     SQL_INCLUDE=-I$MYSQL_INCDIR
28384     SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
28385     SQL_BINDIR=$MYSQL_BINDIR
28386     SQL_LIB=$MYSQL_LIBDIR/libmysqld.a
28387
28388     cat >>confdefs.h <<\_ACEOF
28389 #define HAVE_MYSQL 1
28390 _ACEOF
28391
28392     cat >>confdefs.h <<\_ACEOF
28393 #define HAVE_EMBEDDED_MYSQL 1
28394 _ACEOF
28395
28396     { echo "$as_me:$LINENO: result: yes" >&5
28397 echo "${ECHO_T}yes" >&6; }
28398     db_found=yes
28399     support_mysql=yes
28400     db_type=MySQL
28401     DB_TYPE=mysql
28402
28403   else
28404         { echo "$as_me:$LINENO: result: no" >&5
28405 echo "${ECHO_T}no" >&6; }
28406   fi
28407
28408
28409 fi
28410
28411
28412
28413
28414
28415
28416
28417
28418
28419
28420 db_found=no
28421 { echo "$as_me:$LINENO: checking for SQLite3 support" >&5
28422 echo $ECHO_N "checking for SQLite3 support... $ECHO_C" >&6; }
28423
28424 # Check whether --with-sqlite3 was given.
28425 if test "${with_sqlite3+set}" = set; then
28426   withval=$with_sqlite3;
28427   if test "$withval" != "no"; then
28428      if test "$withval" = "yes"; then
28429         if test -f /usr/local/include/sqlite3.h; then
28430            SQLITE_INCDIR=/usr/local/include
28431            if test -d /usr/local/lib64; then
28432               SQLITE_LIBDIR=/usr/local/lib64
28433            else
28434               SQLITE_LIBDIR=/usr/local/lib
28435            fi
28436            SQLITE_BINDIR=/usr/local/bin
28437         elif test -f /usr/include/sqlite3.h; then
28438            SQLITE_INCDIR=/usr/include
28439            if test -d /usr/lib64; then
28440               SQLITE_LIBDIR=/usr/lib64
28441            else
28442               SQLITE_LIBDIR=/usr/lib
28443            fi
28444            SQLITE_BINDIR=/usr/bin
28445         elif test -f $prefix/include/sqlite3.h; then
28446            SQLITE_INCDIR=$prefix/include
28447            if test -d $prefix/lib64; then
28448               SQLITE_LIBDIR=$prefix/lib64
28449            else
28450               SQLITE_LIBDIR=$prefix/lib
28451            fi
28452            SQLITE_BINDIR=$prefix/bin
28453         else
28454            { echo "$as_me:$LINENO: result: no" >&5
28455 echo "${ECHO_T}no" >&6; }
28456            { { echo "$as_me:$LINENO: error: Unable to find sqlite3.h in standard locations" >&5
28457 echo "$as_me: error: Unable to find sqlite3.h in standard locations" >&2;}
28458    { (exit 1); exit 1; }; }
28459         fi
28460      else
28461         if test -f $withval/sqlite3.h; then
28462            SQLITE_INCDIR=$withval
28463            SQLITE_LIBDIR=$withval
28464            SQLITE_BINDIR=$withval
28465         elif test -f $withval/include/sqlite3.h; then
28466            SQLITE_INCDIR=$withval/include
28467            if test -d $withval/lib64; then
28468               SQLITE_LIBDIR=$withval/lib64
28469            else
28470               SQLITE_LIBDIR=$withval/lib
28471            fi
28472            SQLITE_BINDIR=$withval/bin
28473         else
28474            { echo "$as_me:$LINENO: result: no" >&5
28475 echo "${ECHO_T}no" >&6; }
28476            { { echo "$as_me:$LINENO: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&5
28477 echo "$as_me: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&2;}
28478    { (exit 1); exit 1; }; }
28479         fi
28480      fi
28481      SQL_INCLUDE=-I$SQLITE_INCDIR
28482      SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite3"
28483      SQL_BINDIR=$SQLITE_BINDIR
28484      SQL_LIB=$SQLITE_LIBDIR/libsqlite3.a
28485
28486      cat >>confdefs.h <<\_ACEOF
28487 #define HAVE_SQLITE3 1
28488 _ACEOF
28489
28490      { echo "$as_me:$LINENO: result: yes" >&5
28491 echo "${ECHO_T}yes" >&6; }
28492      db_found=yes
28493      support_sqlite3=yes
28494      db_type=SQLite3
28495      DB_TYPE=sqlite3
28496
28497   else
28498      { echo "$as_me:$LINENO: result: no" >&5
28499 echo "${ECHO_T}no" >&6; }
28500   fi
28501
28502 else
28503
28504   { echo "$as_me:$LINENO: result: no" >&5
28505 echo "${ECHO_T}no" >&6; }
28506
28507 fi
28508
28509
28510
28511
28512
28513
28514
28515 # BA_CHECK_SQLITE_DB
28516
28517
28518 db_found=no
28519 { echo "$as_me:$LINENO: checking for DBI support" >&5
28520 echo $ECHO_N "checking for DBI support... $ECHO_C" >&6; }
28521
28522 # Check whether --with-dbi was given.
28523 if test "${with_dbi+set}" = set; then
28524   withval=$with_dbi;
28525   if test "$withval" != "no"; then
28526      if test "$withval" = "yes"; then
28527         if test -f /usr/local/include/dbi/dbi.h; then
28528            DBI_INCDIR=/usr/local/dbi/include
28529            if test -d /usr/local/lib64; then
28530               DBI_LIBDIR=/usr/local/lib64
28531            else
28532               DBI_LIBDIR=/usr/local/lib
28533            fi
28534            DBI_BINDIR=/usr/local/bin
28535         elif test -f /usr/include/dbi/dbi.h; then
28536            DBI_INCDIR=/usr/include
28537            if test -d /usr/lib64; then
28538               DBI_LIBDIR=/usr/lib64
28539            else
28540               DBI_LIBDIR=/usr/lib
28541            fi
28542            DBI_BINDIR=/usr/bin
28543         elif test -f $prefix/include/dbi/dbi.h; then
28544            DBI_INCDIR=$prefix/include
28545            if test -d $prefix/lib64; then
28546               DBI_LIBDIR=$prefix/lib64
28547            else
28548               DBI_LIBDIR=$prefix/lib
28549            fi
28550            DBI_BINDIR=$prefix/bin
28551         else
28552            { echo "$as_me:$LINENO: result: no" >&5
28553 echo "${ECHO_T}no" >&6; }
28554            { { echo "$as_me:$LINENO: error: Unable to find dbi.h in standard locations" >&5
28555 echo "$as_me: error: Unable to find dbi.h in standard locations" >&2;}
28556    { (exit 1); exit 1; }; }
28557         fi
28558         if test -d /usr/local/lib/dbd; then
28559            DRIVERDIR=/usr/local/lib/dbd
28560            if test -d /usr/local/lib64/dbd; then
28561               DRIVERDIR=/usr/local/lib64/dbd
28562            else
28563               DRIVERDIR=/usr/local/lib/dbd
28564            fi
28565         elif test -d /usr/lib/dbd; then
28566            DRIVERDIR=/usr/lib/dbd
28567            if test -d /usr/lib64/dbd; then
28568               DRIVERDIR=/usr/lib64/dbd
28569            else
28570               DRIVERDIR=/usr/lib/dbd
28571            fi
28572         elif test -d $prefix/lib/dbd; then
28573            if test -d $prefix/lib64/dbd; then
28574               DRIVERDIR=$prefix/lib64/dbd
28575            else
28576               DRIVERDIR=$prefix/lib/dbd
28577            fi
28578         elif test -d /usr/local/lib64/dbd; then
28579            DRIVERDIR=/usr/local/lib64/dbd
28580         elif test -d /usr/lib64/dbd; then
28581            DRIVERDIR=/usr/lib64/dbd
28582         elif test -d $prefix/lib64/dbd; then
28583            DRIVERDIR=$prefix/lib64/dbd
28584         else
28585            { echo "$as_me:$LINENO: result: no" >&5
28586 echo "${ECHO_T}no" >&6; }
28587            { { echo "$as_me:$LINENO: error: Unable to find DBD drivers in standard locations" >&5
28588 echo "$as_me: error: Unable to find DBD drivers in standard locations" >&2;}
28589    { (exit 1); exit 1; }; }
28590         fi
28591      else
28592         if test -f $withval/dbi.h; then
28593            DBI_INCDIR=$withval
28594            DBI_LIBDIR=$withval
28595            DBI_BINDIR=$withval
28596         elif test -f $withval/include/dbi/dbi.h; then
28597            DBI_INCDIR=$withval/include
28598            if test -d $withval/lib64; then
28599               DBI_LIBDIR=$withval/lib64
28600            else
28601               DBI_LIBDIR=$withval/lib
28602            fi
28603            DBI_BINDIR=$withval/bin
28604         else
28605            { echo "$as_me:$LINENO: result: no" >&5
28606 echo "${ECHO_T}no" >&6; }
28607            { { echo "$as_me:$LINENO: error: Invalid DBI directory $withval - unable to find dbi.h under $withval" >&5
28608 echo "$as_me: error: Invalid DBI directory $withval - unable to find dbi.h under $withval" >&2;}
28609    { (exit 1); exit 1; }; }
28610         fi
28611         if test -d $withval/dbd; then
28612            DRIVERDIR=$withval/dbd
28613         elif test -d $withval/lib/; then
28614            if test -d $withval/lib64/dbd; then
28615               DRIVERDIR=$withval/lib64/dbd
28616            else
28617               DRIVERDIR=$withval/lib/dbd
28618            fi
28619         elif test -d $withval/lib64/dbd; then
28620            DRIVERDIR=$withval/lib64/dbd
28621         else
28622            { echo "$as_me:$LINENO: result: no" >&5
28623 echo "${ECHO_T}no" >&6; }
28624            { { echo "$as_me:$LINENO: error: Invalid DBD driver directory $withval - unable to find DBD drivers under $withval" >&5
28625 echo "$as_me: error: Invalid DBD driver directory $withval - unable to find DBD drivers under $withval" >&2;}
28626    { (exit 1); exit 1; }; }
28627         fi
28628      fi
28629      SQL_INCLUDE=-I$DBI_INCDIR
28630      SQL_LFLAGS="-L$DBI_LIBDIR -ldbi"
28631      SQL_BINDIR=$DBI_BINDIR
28632      SQL_LIB=$DBI_LIBDIR/libdbi.a
28633      DBI_DBD_DRIVERDIR="-D DBI_DRIVER_DIR=\\\"$DRIVERDIR\\\""
28634
28635
28636 cat >>confdefs.h <<\_ACEOF
28637 #define HAVE_DBI 1
28638 _ACEOF
28639
28640      { echo "$as_me:$LINENO: result: yes" >&5
28641 echo "${ECHO_T}yes" >&6; }
28642      db_found=yes
28643      support_dbi=yes
28644      db_type=DBI
28645      DB_TYPE=dbi
28646      uncomment_dbi=" "
28647
28648   else
28649      { echo "$as_me:$LINENO: result: no" >&5
28650 echo "${ECHO_T}no" >&6; }
28651   fi
28652
28653 else
28654
28655   { echo "$as_me:$LINENO: result: no" >&5
28656 echo "${ECHO_T}no" >&6; }
28657
28658 fi
28659
28660
28661
28662
28663
28664
28665
28666
28667
28668
28669 db_found=no
28670 db_prog=no
28671 { echo "$as_me:$LINENO: checking for DBI drivers support" >&5
28672 echo $ECHO_N "checking for DBI drivers support... $ECHO_C" >&6; }
28673
28674 # Check whether --with-dbi-driver was given.
28675 if test "${with_dbi_driver+set}" = set; then
28676   withval=$with_dbi_driver;
28677   if test "$withval" != "no"; then
28678      case $withval in
28679         "mysql")
28680            db_prog="mysql"
28681            if test -f /usr/local/mysql/bin/mysql; then
28682               SQL_BINDIR=/usr/local/mysql/bin
28683               if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
28684                  -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
28685                  SQL_LIBDIR=/usr/local/mysql/lib64/mysql
28686               else
28687                  SQL_LIBDIR=/usr/local/mysql/lib/mysql
28688               fi
28689            elif test -f /usr/bin/mysql; then
28690               SQL_BINDIR=/usr/bin
28691               if test -f /usr/lib64/mysql/libmysqlclient_r.a \
28692                   -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
28693                   SQL_LIBDIR=/usr/lib64/mysql
28694               elif test -f /usr/lib/mysql/libmysqlclient_r.a \
28695                   -o -f /usr/lib/mysql/libmysqlclient_r.so; then
28696                   SQL_LIBDIR=/usr/lib/mysql
28697               else
28698                   SQL_LIBDIR=/usr/lib
28699               fi
28700            elif test -f /usr/local/bin/mysql; then
28701               SQL_BINDIR=/usr/local/bin
28702               if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
28703                   -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
28704                   SQL_LIBDIR=/usr/local/lib64/mysql
28705               elif test -f /usr/local/lib/mysql/libmysqlclient_r.a \
28706                   -o -f /usr/local/lib/mysql/libmysqlclient_r.so; then
28707                   SQL_LIBDIR=/usr/local/lib/mysql
28708               else
28709                   SQL_LIBDIR=/usr/local/lib
28710               fi
28711            elif test -f $withval/bin/mysql; then
28712               SQL_BINDIR=$withval/bin
28713               if test -f $withval/lib64/mysql/libmysqlclient_r.a \
28714                   -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
28715                   SQL_LIBDIR=$withval/lib64/mysql
28716               elif test -f $withval/lib64/libmysqlclient_r.a \
28717                   -o -f $withval/lib64/libmysqlclient_r.so; then
28718                   SQL_LIBDIR=$withval/lib64
28719               elif test -f $withval/lib/libmysqlclient_r.a \
28720                   -o -f $withval/lib/libmysqlclient_r.so; then
28721                   SQL_LIBDIR=$withval/lib/
28722               else
28723                   SQL_LIBDIR=$withval/lib/mysql
28724               fi
28725            else
28726               { echo "$as_me:$LINENO: result: no" >&5
28727 echo "${ECHO_T}no" >&6; }
28728               { { echo "$as_me:$LINENO: error: Unable to find mysql in standard locations" >&5
28729 echo "$as_me: error: Unable to find mysql in standard locations" >&2;}
28730    { (exit 1); exit 1; }; }
28731            fi
28732            if test -f $SQL_LIBDIR/libmysqlclient_r.so; then
28733               DB_PROG_LIB=$SQL_LIBDIR/libmysqlclient_r.so
28734            else
28735               DB_PROG_LIB=$SQL_LIBDIR/libmysqlclient_r.a
28736            fi
28737         ;;
28738         "postgresql")
28739            db_prog="postgresql"
28740            PG_CONFIG=`which pg_config`
28741            if test -n "$PG_CONFIG"; then
28742               SQL_BINDIR=`"$PG_CONFIG" --bindir`
28743               SQL_LIBDIR=`"$PG_CONFIG" --libdir`
28744            elif test -f /usr/local/bin/psql; then
28745               SQL_BINDIR=/usr/local/bin
28746               if test -d /usr/local/lib64; then
28747                  SQL_LIBDIR=/usr/local/lib64
28748               else
28749                  SQL_LIBDIR=/usr/local/lib
28750               fi
28751            elif test -f /usr/bin/psql; then
28752               SQL_BINDIR=/usr/local/bin
28753               if test -d /usr/lib64/postgresql; then
28754                  SQL_LIBDIR=/usr/lib64/postgresql
28755               elif test -d /usr/lib/postgresql; then
28756                  SQL_LIBDIR=/usr/lib/postgresql
28757               elif test -d /usr/lib64; then
28758                  SQL_LIBDIR=/usr/lib64
28759               else
28760                  SQL_LIBDIR=/usr/lib
28761               fi
28762            elif test -f $withval/bin/psql; then
28763               SQL_BINDIR=$withval/bin
28764               if test -d $withval/lib64; then
28765                  SQL_LIBDIR=$withval/lib64
28766               else
28767                  SQL_LIBDIR=$withval/lib
28768               fi
28769            else
28770               { echo "$as_me:$LINENO: result: no" >&5
28771 echo "${ECHO_T}no" >&6; }
28772               { { echo "$as_me:$LINENO: error: Unable to find psql in standard locations" >&5
28773 echo "$as_me: error: Unable to find psql in standard locations" >&2;}
28774    { (exit 1); exit 1; }; }
28775            fi
28776            if test -f $SQL_LIBDIR/libpq.so; then
28777               DB_PROG_LIB=$SQL_LIBDIR/libpq.so
28778            else
28779               DB_PROG_LIB=$SQL_LIBDIR/libpq.a
28780            fi
28781         ;;
28782         "sqlite")
28783            db_prog="sqlite"
28784            if test -f /usr/local/bin/sqlite; then
28785               SQL_BINDIR=/usr/local/bin
28786               if test -d /usr/local/lib64; then
28787                  SQL_LIBDIR=/usr/local/lib64
28788               else
28789                  SQL_LIBDIR=/usr/local/lib
28790               fi
28791            elif test -f /usr/bin/sqlite; then
28792               SQL_BINDIR=/usr/bin
28793               if test -d /usr/lib64; then
28794                  SQL_LIBDIR=/usr/lib64
28795               else
28796                  SQL_LIBDIR=/usr/lib
28797               fi
28798            elif test -f $withval/bin/sqlite; then
28799               SQL_BINDIR=$withval/bin
28800               if test -d $withval/lib64; then
28801                  SQL_LIBDIR=$withval/lib64
28802               else
28803                  SQL_LIBDIR=$withval/lib
28804               fi
28805            else
28806               { echo "$as_me:$LINENO: result: no" >&5
28807 echo "${ECHO_T}no" >&6; }
28808               { { echo "$as_me:$LINENO: error: Unable to find sqlite in standard locations" >&5
28809 echo "$as_me: error: Unable to find sqlite in standard locations" >&2;}
28810    { (exit 1); exit 1; }; }
28811            fi
28812            if test -f $SQL_LIBDIR/libsqlite.so; then
28813               DB_PROG_LIB=$SQL_LIBDIR/libsqlite.so
28814            else
28815               DB_PROG_LIB=$SQL_LIBDIR/libsqlite.a
28816            fi
28817         ;;
28818         "sqlite3")
28819            db_prog="sqlite3"
28820            if test -f /usr/local/bin/sqlite3; then
28821               SQL_BINDIR=/usr/local/bin
28822               if test -d /usr/local/lib64; then
28823                  SQL_LIBDIR=/usr/local/lib64
28824               else
28825                  SQL_LIBDIR=/usr/local/lib
28826               fi
28827            elif test -f /usr/bin/sqlite3; then
28828               SQL_BINDIR=/usr/bin
28829               if test -d /usr/lib64; then
28830                  SQL_LIBDIR=/usr/lib64
28831               else
28832                  SQL_LIBDIR=/usr/lib
28833               fi
28834            elif test -f $withval/bin/sqlite3; then
28835               SQL_BINDIR=$withval/bin
28836               if test -d $withval/lib64; then
28837                  SQL_LIBDIR=$withval/lib64
28838               else
28839                  SQL_LIBDIR=$withval/lib
28840               fi
28841            else
28842               { echo "$as_me:$LINENO: result: no" >&5
28843 echo "${ECHO_T}no" >&6; }
28844               { { echo "$as_me:$LINENO: error: Unable to find sqlite in standard locations" >&5
28845 echo "$as_me: error: Unable to find sqlite in standard locations" >&2;}
28846    { (exit 1); exit 1; }; }
28847            fi
28848            if test -f $SQL_LIBDIR/libsqlite3.so; then
28849               DB_PROG_LIB=$SQL_LIBDIR/libsqlite3.so
28850            else
28851               DB_PROG_LIB=$SQL_LIBDIR/libsqlite3.a
28852            fi
28853         ;;
28854         *)
28855            { echo "$as_me:$LINENO: result: no" >&5
28856 echo "${ECHO_T}no" >&6; }
28857            { { echo "$as_me:$LINENO: error: Unable to set DBI driver. $withval is not supported" >&5
28858 echo "$as_me: error: Unable to set DBI driver. $withval is not supported" >&2;}
28859    { (exit 1); exit 1; }; }
28860         ;;
28861      esac
28862
28863      { echo "$as_me:$LINENO: result: yes" >&5
28864 echo "${ECHO_T}yes" >&6; }
28865      DB_PROG=$db_prog
28866   else
28867      { echo "$as_me:$LINENO: result: no" >&5
28868 echo "${ECHO_T}no" >&6; }
28869   fi
28870
28871 else
28872
28873   { echo "$as_me:$LINENO: result: no" >&5
28874 echo "${ECHO_T}no" >&6; }
28875
28876 fi
28877
28878
28879
28880
28881
28882
28883
28884
28885
28886
28887 support_batch_insert=no
28888 A=`test -f $SQL_LIB && nm $SQL_LIB | grep pthread_mutex_lock`
28889 pkg=$?
28890 if test $pkg = 0; then
28891    support_batch_insert=yes
28892    # Check whether --enable-batch-insert was given.
28893 if test "${enable_batch_insert+set}" = set; then
28894   enableval=$enable_batch_insert;
28895           if test x$enableval = xno; then
28896              support_batch_insert=no
28897           else
28898              support_batch_insert=yes
28899           fi
28900
28901
28902 fi
28903
28904 fi
28905
28906 if test x$DB_TYPE = xpostgresql; then
28907    { echo "$as_me:$LINENO: checking for PQisthreadsafe in -lpq" >&5
28908 echo $ECHO_N "checking for PQisthreadsafe in -lpq... $ECHO_C" >&6; }
28909 if test "${ac_cv_lib_pq_PQisthreadsafe+set}" = set; then
28910   echo $ECHO_N "(cached) $ECHO_C" >&6
28911 else
28912   ac_check_lib_save_LIBS=$LIBS
28913 LIBS="-lpq  $LIBS"
28914 cat >conftest.$ac_ext <<_ACEOF
28915 /* confdefs.h.  */
28916 _ACEOF
28917 cat confdefs.h >>conftest.$ac_ext
28918 cat >>conftest.$ac_ext <<_ACEOF
28919 /* end confdefs.h.  */
28920
28921 /* Override any GCC internal prototype to avoid an error.
28922    Use char because int might match the return type of a GCC
28923    builtin and then its argument prototype would still apply.  */
28924 #ifdef __cplusplus
28925 extern "C"
28926 #endif
28927 char PQisthreadsafe ();
28928 int
28929 main ()
28930 {
28931 return PQisthreadsafe ();
28932   ;
28933   return 0;
28934 }
28935 _ACEOF
28936 rm -f conftest.$ac_objext conftest$ac_exeext
28937 if { (ac_try="$ac_link"
28938 case "(($ac_try" in
28939   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28940   *) ac_try_echo=$ac_try;;
28941 esac
28942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28943   (eval "$ac_link") 2>conftest.er1
28944   ac_status=$?
28945   grep -v '^ *+' conftest.er1 >conftest.err
28946   rm -f conftest.er1
28947   cat conftest.err >&5
28948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28949   (exit $ac_status); } && {
28950          test -z "$ac_cxx_werror_flag" ||
28951          test ! -s conftest.err
28952        } && test -s conftest$ac_exeext &&
28953        $as_test_x conftest$ac_exeext; then
28954   ac_cv_lib_pq_PQisthreadsafe=yes
28955 else
28956   echo "$as_me: failed program was:" >&5
28957 sed 's/^/| /' conftest.$ac_ext >&5
28958
28959         ac_cv_lib_pq_PQisthreadsafe=no
28960 fi
28961
28962 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28963       conftest$ac_exeext conftest.$ac_ext
28964 LIBS=$ac_check_lib_save_LIBS
28965 fi
28966 { echo "$as_me:$LINENO: result: $ac_cv_lib_pq_PQisthreadsafe" >&5
28967 echo "${ECHO_T}$ac_cv_lib_pq_PQisthreadsafe" >&6; }
28968 if test $ac_cv_lib_pq_PQisthreadsafe = yes; then
28969
28970 cat >>confdefs.h <<\_ACEOF
28971 #define HAVE_PQISTHREADSAFE 1
28972 _ACEOF
28973
28974 fi
28975
28976    { echo "$as_me:$LINENO: checking for PQputCopyData in -lpq" >&5
28977 echo $ECHO_N "checking for PQputCopyData in -lpq... $ECHO_C" >&6; }
28978 if test "${ac_cv_lib_pq_PQputCopyData+set}" = set; then
28979   echo $ECHO_N "(cached) $ECHO_C" >&6
28980 else
28981   ac_check_lib_save_LIBS=$LIBS
28982 LIBS="-lpq  $LIBS"
28983 cat >conftest.$ac_ext <<_ACEOF
28984 /* confdefs.h.  */
28985 _ACEOF
28986 cat confdefs.h >>conftest.$ac_ext
28987 cat >>conftest.$ac_ext <<_ACEOF
28988 /* end confdefs.h.  */
28989
28990 /* Override any GCC internal prototype to avoid an error.
28991    Use char because int might match the return type of a GCC
28992    builtin and then its argument prototype would still apply.  */
28993 #ifdef __cplusplus
28994 extern "C"
28995 #endif
28996 char PQputCopyData ();
28997 int
28998 main ()
28999 {
29000 return PQputCopyData ();
29001   ;
29002   return 0;
29003 }
29004 _ACEOF
29005 rm -f conftest.$ac_objext conftest$ac_exeext
29006 if { (ac_try="$ac_link"
29007 case "(($ac_try" in
29008   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29009   *) ac_try_echo=$ac_try;;
29010 esac
29011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29012   (eval "$ac_link") 2>conftest.er1
29013   ac_status=$?
29014   grep -v '^ *+' conftest.er1 >conftest.err
29015   rm -f conftest.er1
29016   cat conftest.err >&5
29017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29018   (exit $ac_status); } && {
29019          test -z "$ac_cxx_werror_flag" ||
29020          test ! -s conftest.err
29021        } && test -s conftest$ac_exeext &&
29022        $as_test_x conftest$ac_exeext; then
29023   ac_cv_lib_pq_PQputCopyData=yes
29024 else
29025   echo "$as_me: failed program was:" >&5
29026 sed 's/^/| /' conftest.$ac_ext >&5
29027
29028         ac_cv_lib_pq_PQputCopyData=no
29029 fi
29030
29031 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29032       conftest$ac_exeext conftest.$ac_ext
29033 LIBS=$ac_check_lib_save_LIBS
29034 fi
29035 { echo "$as_me:$LINENO: result: $ac_cv_lib_pq_PQputCopyData" >&5
29036 echo "${ECHO_T}$ac_cv_lib_pq_PQputCopyData" >&6; }
29037 if test $ac_cv_lib_pq_PQputCopyData = yes; then
29038
29039 cat >>confdefs.h <<\_ACEOF
29040 #define HAVE_PQ_COPY 1
29041 _ACEOF
29042
29043 fi
29044
29045    if test "x$ac_cv_lib_pq_PQputCopyData" != "xyes"
29046     then
29047         support_batch_insert=no
29048    fi
29049 fi
29050
29051 if test x$DB_TYPE = xdbi; then
29052    DB_TYPE=$DB_PROG
29053    db_type=$DB_PROG
29054    pkg=1
29055       if test $DB_PROG = postgresql; then
29056       { echo "$as_me:$LINENO: checking for PQisthreadsafe in -lpq" >&5
29057 echo $ECHO_N "checking for PQisthreadsafe in -lpq... $ECHO_C" >&6; }
29058 if test "${ac_cv_lib_pq_PQisthreadsafe+set}" = set; then
29059   echo $ECHO_N "(cached) $ECHO_C" >&6
29060 else
29061   ac_check_lib_save_LIBS=$LIBS
29062 LIBS="-lpq  $LIBS"
29063 cat >conftest.$ac_ext <<_ACEOF
29064 /* confdefs.h.  */
29065 _ACEOF
29066 cat confdefs.h >>conftest.$ac_ext
29067 cat >>conftest.$ac_ext <<_ACEOF
29068 /* end confdefs.h.  */
29069
29070 /* Override any GCC internal prototype to avoid an error.
29071    Use char because int might match the return type of a GCC
29072    builtin and then its argument prototype would still apply.  */
29073 #ifdef __cplusplus
29074 extern "C"
29075 #endif
29076 char PQisthreadsafe ();
29077 int
29078 main ()
29079 {
29080 return PQisthreadsafe ();
29081   ;
29082   return 0;
29083 }
29084 _ACEOF
29085 rm -f conftest.$ac_objext conftest$ac_exeext
29086 if { (ac_try="$ac_link"
29087 case "(($ac_try" in
29088   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29089   *) ac_try_echo=$ac_try;;
29090 esac
29091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29092   (eval "$ac_link") 2>conftest.er1
29093   ac_status=$?
29094   grep -v '^ *+' conftest.er1 >conftest.err
29095   rm -f conftest.er1
29096   cat conftest.err >&5
29097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29098   (exit $ac_status); } && {
29099          test -z "$ac_cxx_werror_flag" ||
29100          test ! -s conftest.err
29101        } && test -s conftest$ac_exeext &&
29102        $as_test_x conftest$ac_exeext; then
29103   ac_cv_lib_pq_PQisthreadsafe=yes
29104 else
29105   echo "$as_me: failed program was:" >&5
29106 sed 's/^/| /' conftest.$ac_ext >&5
29107
29108         ac_cv_lib_pq_PQisthreadsafe=no
29109 fi
29110
29111 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29112       conftest$ac_exeext conftest.$ac_ext
29113 LIBS=$ac_check_lib_save_LIBS
29114 fi
29115 { echo "$as_me:$LINENO: result: $ac_cv_lib_pq_PQisthreadsafe" >&5
29116 echo "${ECHO_T}$ac_cv_lib_pq_PQisthreadsafe" >&6; }
29117 if test $ac_cv_lib_pq_PQisthreadsafe = yes; then
29118   cat >>confdefs.h <<\_ACEOF
29119 #define HAVE_PQISTHREADSAFE 1
29120 _ACEOF
29121
29122 fi
29123
29124       { echo "$as_me:$LINENO: checking for PQputCopyData in -lpq" >&5
29125 echo $ECHO_N "checking for PQputCopyData in -lpq... $ECHO_C" >&6; }
29126 if test "${ac_cv_lib_pq_PQputCopyData+set}" = set; then
29127   echo $ECHO_N "(cached) $ECHO_C" >&6
29128 else
29129   ac_check_lib_save_LIBS=$LIBS
29130 LIBS="-lpq  $LIBS"
29131 cat >conftest.$ac_ext <<_ACEOF
29132 /* confdefs.h.  */
29133 _ACEOF
29134 cat confdefs.h >>conftest.$ac_ext
29135 cat >>conftest.$ac_ext <<_ACEOF
29136 /* end confdefs.h.  */
29137
29138 /* Override any GCC internal prototype to avoid an error.
29139    Use char because int might match the return type of a GCC
29140    builtin and then its argument prototype would still apply.  */
29141 #ifdef __cplusplus
29142 extern "C"
29143 #endif
29144 char PQputCopyData ();
29145 int
29146 main ()
29147 {
29148 return PQputCopyData ();
29149   ;
29150   return 0;
29151 }
29152 _ACEOF
29153 rm -f conftest.$ac_objext conftest$ac_exeext
29154 if { (ac_try="$ac_link"
29155 case "(($ac_try" in
29156   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29157   *) ac_try_echo=$ac_try;;
29158 esac
29159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29160   (eval "$ac_link") 2>conftest.er1
29161   ac_status=$?
29162   grep -v '^ *+' conftest.er1 >conftest.err
29163   rm -f conftest.er1
29164   cat conftest.err >&5
29165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29166   (exit $ac_status); } && {
29167          test -z "$ac_cxx_werror_flag" ||
29168          test ! -s conftest.err
29169        } && test -s conftest$ac_exeext &&
29170        $as_test_x conftest$ac_exeext; then
29171   ac_cv_lib_pq_PQputCopyData=yes
29172 else
29173   echo "$as_me: failed program was:" >&5
29174 sed 's/^/| /' conftest.$ac_ext >&5
29175
29176         ac_cv_lib_pq_PQputCopyData=no
29177 fi
29178
29179 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29180       conftest$ac_exeext conftest.$ac_ext
29181 LIBS=$ac_check_lib_save_LIBS
29182 fi
29183 { echo "$as_me:$LINENO: result: $ac_cv_lib_pq_PQputCopyData" >&5
29184 echo "${ECHO_T}$ac_cv_lib_pq_PQputCopyData" >&6; }
29185 if test $ac_cv_lib_pq_PQputCopyData = yes; then
29186   cat >>confdefs.h <<\_ACEOF
29187 #define HAVE_PQ_COPY 1
29188 _ACEOF
29189
29190 fi
29191
29192       test "x$ac_cv_lib_pq_PQputCopyData" != "xyes"
29193       pkg=$?
29194    fi
29195
29196    if test $DB_PROG = mysql; then
29197       A=`test -f $SQL_LIB && nm $DB_PROG_LIB | grep pthread_mutex_lock`
29198       pkg=$?
29199    fi
29200
29201    if test $DB_PROG = sqlite3; then
29202       A=`test -f $SQL_LIB && nm $DB_PROG_LIB | grep pthread_mutex_lock`
29203       pkg=$?
29204    fi
29205
29206    if test $pkg = 0; then
29207       # Check whether --enable-batch-insert was given.
29208 if test "${enable_batch_insert+set}" = set; then
29209   enableval=$enable_batch_insert;
29210              if test x$enableval = xno; then
29211                 support_batch_insert=no
29212              else
29213                 support_batch_insert=yes
29214              fi
29215
29216
29217 fi
29218
29219    fi
29220 else
29221       uncomment_dbi="#"
29222 fi
29223
29224
29225
29226 if test $support_batch_insert = yes ; then
29227
29228 cat >>confdefs.h <<\_ACEOF
29229 #define HAVE_BATCH_FILE_INSERT 1
29230 _ACEOF
29231
29232 fi
29233
29234 cat >>confdefs.h <<\_ACEOF
29235 #define PROTOTYPES 1
29236 _ACEOF
29237
29238
29239 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
29240    if test -z "$CCOPTS"; then
29241       CCOPTS='-g -O2 -Wall'
29242    fi
29243    CFLAGS="$CCOPTS"
29244 fi
29245
29246
29247
29248 largefile_support="no"
29249
29250    # Check whether --enable-largefile was given.
29251 if test "${enable_largefile+set}" = set; then
29252   enableval=$enable_largefile;
29253 fi
29254
29255    if test "$enable_largefile" != no; then
29256      if test -n "$ac_tool_prefix"; then
29257   # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
29258 set dummy ${ac_tool_prefix}getconf; ac_word=$2
29259 { echo "$as_me:$LINENO: checking for $ac_word" >&5
29260 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
29261 if test "${ac_cv_prog_GETCONF+set}" = set; then
29262   echo $ECHO_N "(cached) $ECHO_C" >&6
29263 else
29264   if test -n "$GETCONF"; then
29265   ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
29266 else
29267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29268 for as_dir in $PATH
29269 do
29270   IFS=$as_save_IFS
29271   test -z "$as_dir" && as_dir=.
29272   for ac_exec_ext in '' $ac_executable_extensions; do
29273   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29274     ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
29275     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29276     break 2
29277   fi
29278 done
29279 done
29280 IFS=$as_save_IFS
29281
29282 fi
29283 fi
29284 GETCONF=$ac_cv_prog_GETCONF
29285 if test -n "$GETCONF"; then
29286   { echo "$as_me:$LINENO: result: $GETCONF" >&5
29287 echo "${ECHO_T}$GETCONF" >&6; }
29288 else
29289   { echo "$as_me:$LINENO: result: no" >&5
29290 echo "${ECHO_T}no" >&6; }
29291 fi
29292
29293
29294 fi
29295 if test -z "$ac_cv_prog_GETCONF"; then
29296   ac_ct_GETCONF=$GETCONF
29297   # Extract the first word of "getconf", so it can be a program name with args.
29298 set dummy getconf; ac_word=$2
29299 { echo "$as_me:$LINENO: checking for $ac_word" >&5
29300 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
29301 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
29302   echo $ECHO_N "(cached) $ECHO_C" >&6
29303 else
29304   if test -n "$ac_ct_GETCONF"; then
29305   ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
29306 else
29307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29308 for as_dir in $PATH
29309 do
29310   IFS=$as_save_IFS
29311   test -z "$as_dir" && as_dir=.
29312   for ac_exec_ext in '' $ac_executable_extensions; do
29313   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29314     ac_cv_prog_ac_ct_GETCONF="getconf"
29315     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29316     break 2
29317   fi
29318 done
29319 done
29320 IFS=$as_save_IFS
29321
29322 fi
29323 fi
29324 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
29325 if test -n "$ac_ct_GETCONF"; then
29326   { echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
29327 echo "${ECHO_T}$ac_ct_GETCONF" >&6; }
29328 else
29329   { echo "$as_me:$LINENO: result: no" >&5
29330 echo "${ECHO_T}no" >&6; }
29331 fi
29332
29333   if test "x$ac_ct_GETCONF" = x; then
29334     GETCONF=""
29335   else
29336     case $cross_compiling:$ac_tool_warned in
29337 yes:)
29338 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
29339 whose name does not start with the host triplet.  If you think this
29340 configuration is useful to you, please write to autoconf@gnu.org." >&5
29341 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
29342 whose name does not start with the host triplet.  If you think this
29343 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
29344 ac_tool_warned=yes ;;
29345 esac
29346     GETCONF=$ac_ct_GETCONF
29347   fi
29348 else
29349   GETCONF="$ac_cv_prog_GETCONF"
29350 fi
29351
29352      { echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
29353 echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" >&6; }
29354 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
29355   echo $ECHO_N "(cached) $ECHO_C" >&6
29356 else
29357   ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
29358         ac_cv_sys_largefile_CFLAGS=no
29359         case "$host_os" in
29360            # IRIX 6.2 and later require cc -n32.
29361            irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
29362              if test "$GCC" != yes; then
29363                ac_cv_sys_largefile_CFLAGS=-n32
29364              fi
29365              ac_save_CC="$CC"
29366              CC="$CC $ac_cv_sys_largefile_CFLAGS"
29367              cat >conftest.$ac_ext <<_ACEOF
29368 /* confdefs.h.  */
29369 _ACEOF
29370 cat confdefs.h >>conftest.$ac_ext
29371 cat >>conftest.$ac_ext <<_ACEOF
29372 /* end confdefs.h.  */
29373
29374 int
29375 main ()
29376 {
29377
29378   ;
29379   return 0;
29380 }
29381 _ACEOF
29382 rm -f conftest.$ac_objext conftest$ac_exeext
29383 if { (ac_try="$ac_link"
29384 case "(($ac_try" in
29385   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29386   *) ac_try_echo=$ac_try;;
29387 esac
29388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29389   (eval "$ac_link") 2>conftest.er1
29390   ac_status=$?
29391   grep -v '^ *+' conftest.er1 >conftest.err
29392   rm -f conftest.er1
29393   cat conftest.err >&5
29394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29395   (exit $ac_status); } && {
29396          test -z "$ac_cxx_werror_flag" ||
29397          test ! -s conftest.err
29398        } && test -s conftest$ac_exeext &&
29399        $as_test_x conftest$ac_exeext; then
29400   :
29401 else
29402   echo "$as_me: failed program was:" >&5
29403 sed 's/^/| /' conftest.$ac_ext >&5
29404
29405         ac_cv_sys_largefile_CFLAGS=no
29406 fi
29407
29408 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29409       conftest$ac_exeext conftest.$ac_ext
29410              CC="$ac_save_CC"
29411            esac
29412       }
29413 fi
29414 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
29415 echo "${ECHO_T}$ac_cv_sys_largefile_CFLAGS" >&6; }
29416      { echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
29417 echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" >&6; }
29418 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
29419   echo $ECHO_N "(cached) $ECHO_C" >&6
29420 else
29421   ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
29422         ac_cv_sys_largefile_LDFLAGS=no
29423
29424       }
29425 fi
29426 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
29427 echo "${ECHO_T}$ac_cv_sys_largefile_LDFLAGS" >&6; }
29428      { echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
29429 echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" >&6; }
29430 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
29431   echo $ECHO_N "(cached) $ECHO_C" >&6
29432 else
29433   ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
29434         ac_cv_sys_largefile_LIBS=no
29435
29436       }
29437 fi
29438 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
29439 echo "${ECHO_T}$ac_cv_sys_largefile_LIBS" >&6; }
29440
29441      for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
29442        case "$ac_flag" in
29443        no) ;;
29444        -D_FILE_OFFSET_BITS=*) ;;
29445        -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
29446        -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
29447        -D?* | -I?*)
29448          case "$ac_flag" in
29449    no) ;;
29450    ?*)
29451      case "$CPPFLAGS" in
29452      '') CPPFLAGS="$ac_flag" ;;
29453      *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
29454      esac ;;
29455    esac ;;
29456        *)
29457          case "$ac_flag" in
29458    no) ;;
29459    ?*)
29460      case "$CFLAGS" in
29461      '') CFLAGS="$ac_flag" ;;
29462      *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
29463      esac ;;
29464    esac ;;
29465        esac
29466      done
29467      case "$ac_cv_sys_largefile_LDFLAGS" in
29468    no) ;;
29469    ?*)
29470      case "$LDFLAGS" in
29471      '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
29472      *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
29473      esac ;;
29474    esac
29475      case "$ac_cv_sys_largefile_LIBS" in
29476    no) ;;
29477    ?*)
29478      case "$LIBS" in
29479      '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
29480      *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
29481      esac ;;
29482    esac
29483      { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
29484 echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" >&6; }
29485 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
29486   echo $ECHO_N "(cached) $ECHO_C" >&6
29487 else
29488   ac_cv_sys_file_offset_bits=no
29489       ac_cv_sys_file_offset_bits=64
29490       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
29491         case "$ac_flag" in
29492         -D_FILE_OFFSET_BITS)
29493           ac_cv_sys_file_offset_bits=1 ;;
29494         -D_FILE_OFFSET_BITS=*)
29495           ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
29496         esac
29497       done
29498
29499 fi
29500 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
29501 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
29502    if test "$ac_cv_sys_file_offset_bits" != no; then
29503
29504 cat >>confdefs.h <<_ACEOF
29505 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
29506 _ACEOF
29507
29508    fi
29509      { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
29510 echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" >&6; }
29511 if test "${ac_cv_sys_largefile_source+set}" = set; then
29512   echo $ECHO_N "(cached) $ECHO_C" >&6
29513 else
29514   ac_cv_sys_largefile_source=no
29515       ac_cv_sys_largefile_source=1
29516       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
29517         case "$ac_flag" in
29518         -D_LARGEFILE_SOURCE)
29519           ac_cv_sys_largefile_source=1 ;;
29520         -D_LARGEFILE_SOURCE=*)
29521           ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
29522         esac
29523       done
29524
29525 fi
29526 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
29527 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
29528    if test "$ac_cv_sys_largefile_source" != no; then
29529
29530 cat >>confdefs.h <<_ACEOF
29531 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
29532 _ACEOF
29533
29534    fi
29535      { echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
29536 echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" >&6; }
29537 if test "${ac_cv_sys_large_files+set}" = set; then
29538   echo $ECHO_N "(cached) $ECHO_C" >&6
29539 else
29540   ac_cv_sys_large_files=no
29541       ac_cv_sys_large_files=1
29542       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
29543         case "$ac_flag" in
29544         -D_LARGE_FILES)
29545           ac_cv_sys_large_files=1 ;;
29546         -D_LARGE_FILES=*)
29547           ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
29548         esac
29549       done
29550
29551 fi
29552 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
29553 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
29554    if test "$ac_cv_sys_large_files" != no; then
29555
29556 cat >>confdefs.h <<_ACEOF
29557 #define _LARGE_FILES $ac_cv_sys_large_files
29558 _ACEOF
29559
29560    fi
29561    fi
29562
29563
29564 { echo "$as_me:$LINENO: checking for X" >&5
29565 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
29566
29567
29568 # Check whether --with-x was given.
29569 if test "${with_x+set}" = set; then
29570   withval=$with_x;
29571 fi
29572
29573 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
29574 if test "x$with_x" = xno; then
29575   # The user explicitly disabled X.
29576   have_x=disabled
29577 else
29578   case $x_includes,$x_libraries in #(
29579     *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
29580 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
29581    { (exit 1); exit 1; }; };; #(
29582     *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
29583   echo $ECHO_N "(cached) $ECHO_C" >&6
29584 else
29585   # One or both of the vars are not set, and there is no cached value.
29586 ac_x_includes=no ac_x_libraries=no
29587 rm -f -r conftest.dir
29588 if mkdir conftest.dir; then
29589   cd conftest.dir
29590   cat >Imakefile <<'_ACEOF'
29591 incroot:
29592         @echo incroot='${INCROOT}'
29593 usrlibdir:
29594         @echo usrlibdir='${USRLIBDIR}'
29595 libdir:
29596         @echo libdir='${LIBDIR}'
29597 _ACEOF
29598   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
29599     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
29600     for ac_var in incroot usrlibdir libdir; do
29601       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
29602     done
29603     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
29604     for ac_extension in a so sl; do
29605       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
29606          test -f "$ac_im_libdir/libX11.$ac_extension"; then
29607         ac_im_usrlibdir=$ac_im_libdir; break
29608       fi
29609     done
29610     # Screen out bogus values from the imake configuration.  They are
29611     # bogus both because they are the default anyway, and because
29612     # using them would break gcc on systems where it needs fixed includes.
29613     case $ac_im_incroot in
29614         /usr/include) ac_x_includes= ;;
29615         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
29616     esac
29617     case $ac_im_usrlibdir in
29618         /usr/lib | /lib) ;;
29619         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
29620     esac
29621   fi
29622   cd ..
29623   rm -f -r conftest.dir
29624 fi
29625
29626 # Standard set of common directories for X headers.
29627 # Check X11 before X11Rn because it is often a symlink to the current release.
29628 ac_x_header_dirs='
29629 /usr/X11/include
29630 /usr/X11R6/include
29631 /usr/X11R5/include
29632 /usr/X11R4/include
29633
29634 /usr/include/X11
29635 /usr/include/X11R6
29636 /usr/include/X11R5
29637 /usr/include/X11R4
29638
29639 /usr/local/X11/include
29640 /usr/local/X11R6/include
29641 /usr/local/X11R5/include
29642 /usr/local/X11R4/include
29643
29644 /usr/local/include/X11
29645 /usr/local/include/X11R6
29646 /usr/local/include/X11R5
29647 /usr/local/include/X11R4
29648
29649 /usr/X386/include
29650 /usr/x386/include
29651 /usr/XFree86/include/X11
29652
29653 /usr/include
29654 /usr/local/include
29655 /usr/unsupported/include
29656 /usr/athena/include
29657 /usr/local/x11r5/include
29658 /usr/lpp/Xamples/include
29659
29660 /usr/openwin/include
29661 /usr/openwin/share/include'
29662
29663 if test "$ac_x_includes" = no; then
29664   # Guess where to find include files, by looking for Xlib.h.
29665   # First, try using that file with no special directory specified.
29666   cat >conftest.$ac_ext <<_ACEOF
29667 /* confdefs.h.  */
29668 _ACEOF
29669 cat confdefs.h >>conftest.$ac_ext
29670 cat >>conftest.$ac_ext <<_ACEOF
29671 /* end confdefs.h.  */
29672 #include <X11/Xlib.h>
29673 _ACEOF
29674 if { (ac_try="$ac_cpp conftest.$ac_ext"
29675 case "(($ac_try" in
29676   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29677   *) ac_try_echo=$ac_try;;
29678 esac
29679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29680   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29681   ac_status=$?
29682   grep -v '^ *+' conftest.er1 >conftest.err
29683   rm -f conftest.er1
29684   cat conftest.err >&5
29685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29686   (exit $ac_status); } >/dev/null && {
29687          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
29688          test ! -s conftest.err
29689        }; then
29690   # We can compile using X headers with no special include directory.
29691 ac_x_includes=
29692 else
29693   echo "$as_me: failed program was:" >&5
29694 sed 's/^/| /' conftest.$ac_ext >&5
29695
29696   for ac_dir in $ac_x_header_dirs; do
29697   if test -r "$ac_dir/X11/Xlib.h"; then
29698     ac_x_includes=$ac_dir
29699     break
29700   fi
29701 done
29702 fi
29703
29704 rm -f conftest.err conftest.$ac_ext
29705 fi # $ac_x_includes = no
29706
29707 if test "$ac_x_libraries" = no; then
29708   # Check for the libraries.
29709   # See if we find them without any special options.
29710   # Don't add to $LIBS permanently.
29711   ac_save_LIBS=$LIBS
29712   LIBS="-lX11 $LIBS"
29713   cat >conftest.$ac_ext <<_ACEOF
29714 /* confdefs.h.  */
29715 _ACEOF
29716 cat confdefs.h >>conftest.$ac_ext
29717 cat >>conftest.$ac_ext <<_ACEOF
29718 /* end confdefs.h.  */
29719 #include <X11/Xlib.h>
29720 int
29721 main ()
29722 {
29723 XrmInitialize ()
29724   ;
29725   return 0;
29726 }
29727 _ACEOF
29728 rm -f conftest.$ac_objext conftest$ac_exeext
29729 if { (ac_try="$ac_link"
29730 case "(($ac_try" in
29731   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29732   *) ac_try_echo=$ac_try;;
29733 esac
29734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29735   (eval "$ac_link") 2>conftest.er1
29736   ac_status=$?
29737   grep -v '^ *+' conftest.er1 >conftest.err
29738   rm -f conftest.er1
29739   cat conftest.err >&5
29740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29741   (exit $ac_status); } && {
29742          test -z "$ac_cxx_werror_flag" ||
29743          test ! -s conftest.err
29744        } && test -s conftest$ac_exeext &&
29745        $as_test_x conftest$ac_exeext; then
29746   LIBS=$ac_save_LIBS
29747 # We can link X programs with no special library path.
29748 ac_x_libraries=
29749 else
29750   echo "$as_me: failed program was:" >&5
29751 sed 's/^/| /' conftest.$ac_ext >&5
29752
29753         LIBS=$ac_save_LIBS
29754 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
29755 do
29756   # Don't even attempt the hair of trying to link an X program!
29757   for ac_extension in a so sl; do
29758     if test -r "$ac_dir/libX11.$ac_extension"; then
29759       ac_x_libraries=$ac_dir
29760       break 2
29761     fi
29762   done
29763 done
29764 fi
29765
29766 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29767       conftest$ac_exeext conftest.$ac_ext
29768 fi # $ac_x_libraries = no
29769
29770 case $ac_x_includes,$ac_x_libraries in #(
29771   no,* | *,no | *\'*)
29772     # Didn't find X, or a directory has "'" in its name.
29773     ac_cv_have_x="have_x=no";; #(
29774   *)
29775     # Record where we found X for the cache.
29776     ac_cv_have_x="have_x=yes\
29777         ac_x_includes='$ac_x_includes'\
29778         ac_x_libraries='$ac_x_libraries'"
29779 esac
29780 fi
29781 ;; #(
29782     *) have_x=yes;;
29783   esac
29784   eval "$ac_cv_have_x"
29785 fi # $with_x != no
29786
29787 if test "$have_x" != yes; then
29788   { echo "$as_me:$LINENO: result: $have_x" >&5
29789 echo "${ECHO_T}$have_x" >&6; }
29790   no_x=yes
29791 else
29792   # If each of the values was on the command line, it overrides each guess.
29793   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
29794   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
29795   # Update the cache value to reflect the command line values.
29796   ac_cv_have_x="have_x=yes\
29797         ac_x_includes='$x_includes'\
29798         ac_x_libraries='$x_libraries'"
29799   { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
29800 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
29801 fi
29802
29803 if test "$no_x" = yes; then
29804   # Not all programs may use this symbol, but it does not hurt to define it.
29805
29806 cat >>confdefs.h <<\_ACEOF
29807 #define X_DISPLAY_MISSING 1
29808 _ACEOF
29809
29810   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
29811 else
29812   if test -n "$x_includes"; then
29813     X_CFLAGS="$X_CFLAGS -I$x_includes"
29814   fi
29815
29816   # It would also be nice to do this for all -L options, not just this one.
29817   if test -n "$x_libraries"; then
29818     X_LIBS="$X_LIBS -L$x_libraries"
29819     # For Solaris; some versions of Sun CC require a space after -R and
29820     # others require no space.  Words are not sufficient . . . .
29821     { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
29822 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
29823     ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
29824     ac_xsave_cxx_werror_flag=$ac_cxx_werror_flag
29825     ac_cxx_werror_flag=yes
29826     cat >conftest.$ac_ext <<_ACEOF
29827 /* confdefs.h.  */
29828 _ACEOF
29829 cat confdefs.h >>conftest.$ac_ext
29830 cat >>conftest.$ac_ext <<_ACEOF
29831 /* end confdefs.h.  */
29832
29833 int
29834 main ()
29835 {
29836
29837   ;
29838   return 0;
29839 }
29840 _ACEOF
29841 rm -f conftest.$ac_objext conftest$ac_exeext
29842 if { (ac_try="$ac_link"
29843 case "(($ac_try" in
29844   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29845   *) ac_try_echo=$ac_try;;
29846 esac
29847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29848   (eval "$ac_link") 2>conftest.er1
29849   ac_status=$?
29850   grep -v '^ *+' conftest.er1 >conftest.err
29851   rm -f conftest.er1
29852   cat conftest.err >&5
29853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29854   (exit $ac_status); } && {
29855          test -z "$ac_cxx_werror_flag" ||
29856          test ! -s conftest.err
29857        } && test -s conftest$ac_exeext &&
29858        $as_test_x conftest$ac_exeext; then
29859   { echo "$as_me:$LINENO: result: no" >&5
29860 echo "${ECHO_T}no" >&6; }
29861        X_LIBS="$X_LIBS -R$x_libraries"
29862 else
29863   echo "$as_me: failed program was:" >&5
29864 sed 's/^/| /' conftest.$ac_ext >&5
29865
29866         LIBS="$ac_xsave_LIBS -R $x_libraries"
29867        cat >conftest.$ac_ext <<_ACEOF
29868 /* confdefs.h.  */
29869 _ACEOF
29870 cat confdefs.h >>conftest.$ac_ext
29871 cat >>conftest.$ac_ext <<_ACEOF
29872 /* end confdefs.h.  */
29873
29874 int
29875 main ()
29876 {
29877
29878   ;
29879   return 0;
29880 }
29881 _ACEOF
29882 rm -f conftest.$ac_objext conftest$ac_exeext
29883 if { (ac_try="$ac_link"
29884 case "(($ac_try" in
29885   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29886   *) ac_try_echo=$ac_try;;
29887 esac
29888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29889   (eval "$ac_link") 2>conftest.er1
29890   ac_status=$?
29891   grep -v '^ *+' conftest.er1 >conftest.err
29892   rm -f conftest.er1
29893   cat conftest.err >&5
29894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29895   (exit $ac_status); } && {
29896          test -z "$ac_cxx_werror_flag" ||
29897          test ! -s conftest.err
29898        } && test -s conftest$ac_exeext &&
29899        $as_test_x conftest$ac_exeext; then
29900   { echo "$as_me:$LINENO: result: yes" >&5
29901 echo "${ECHO_T}yes" >&6; }
29902           X_LIBS="$X_LIBS -R $x_libraries"
29903 else
29904   echo "$as_me: failed program was:" >&5
29905 sed 's/^/| /' conftest.$ac_ext >&5
29906
29907         { echo "$as_me:$LINENO: result: neither works" >&5
29908 echo "${ECHO_T}neither works" >&6; }
29909 fi
29910
29911 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29912       conftest$ac_exeext conftest.$ac_ext
29913 fi
29914
29915 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29916       conftest$ac_exeext conftest.$ac_ext
29917     ac_cxx_werror_flag=$ac_xsave_cxx_werror_flag
29918     LIBS=$ac_xsave_LIBS
29919   fi
29920
29921   # Check for system-dependent libraries X programs must link with.
29922   # Do this before checking for the system-independent R6 libraries
29923   # (-lICE), since we may need -lsocket or whatever for X linking.
29924
29925   if test "$ISC" = yes; then
29926     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
29927   else
29928     # Martyn Johnson says this is needed for Ultrix, if the X
29929     # libraries were built with DECnet support.  And Karl Berry says
29930     # the Alpha needs dnet_stub (dnet does not exist).
29931     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
29932     cat >conftest.$ac_ext <<_ACEOF
29933 /* confdefs.h.  */
29934 _ACEOF
29935 cat confdefs.h >>conftest.$ac_ext
29936 cat >>conftest.$ac_ext <<_ACEOF
29937 /* end confdefs.h.  */
29938
29939 /* Override any GCC internal prototype to avoid an error.
29940    Use char because int might match the return type of a GCC
29941    builtin and then its argument prototype would still apply.  */
29942 #ifdef __cplusplus
29943 extern "C"
29944 #endif
29945 char XOpenDisplay ();
29946 int
29947 main ()
29948 {
29949 return XOpenDisplay ();
29950   ;
29951   return 0;
29952 }
29953 _ACEOF
29954 rm -f conftest.$ac_objext conftest$ac_exeext
29955 if { (ac_try="$ac_link"
29956 case "(($ac_try" in
29957   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29958   *) ac_try_echo=$ac_try;;
29959 esac
29960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29961   (eval "$ac_link") 2>conftest.er1
29962   ac_status=$?
29963   grep -v '^ *+' conftest.er1 >conftest.err
29964   rm -f conftest.er1
29965   cat conftest.err >&5
29966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29967   (exit $ac_status); } && {
29968          test -z "$ac_cxx_werror_flag" ||
29969          test ! -s conftest.err
29970        } && test -s conftest$ac_exeext &&
29971        $as_test_x conftest$ac_exeext; then
29972   :
29973 else
29974   echo "$as_me: failed program was:" >&5
29975 sed 's/^/| /' conftest.$ac_ext >&5
29976
29977         { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
29978 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
29979 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
29980   echo $ECHO_N "(cached) $ECHO_C" >&6
29981 else
29982   ac_check_lib_save_LIBS=$LIBS
29983 LIBS="-ldnet  $LIBS"
29984 cat >conftest.$ac_ext <<_ACEOF
29985 /* confdefs.h.  */
29986 _ACEOF
29987 cat confdefs.h >>conftest.$ac_ext
29988 cat >>conftest.$ac_ext <<_ACEOF
29989 /* end confdefs.h.  */
29990
29991 /* Override any GCC internal prototype to avoid an error.
29992    Use char because int might match the return type of a GCC
29993    builtin and then its argument prototype would still apply.  */
29994 #ifdef __cplusplus
29995 extern "C"
29996 #endif
29997 char dnet_ntoa ();
29998 int
29999 main ()
30000 {
30001 return dnet_ntoa ();
30002   ;
30003   return 0;
30004 }
30005 _ACEOF
30006 rm -f conftest.$ac_objext conftest$ac_exeext
30007 if { (ac_try="$ac_link"
30008 case "(($ac_try" in
30009   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30010   *) ac_try_echo=$ac_try;;
30011 esac
30012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30013   (eval "$ac_link") 2>conftest.er1
30014   ac_status=$?
30015   grep -v '^ *+' conftest.er1 >conftest.err
30016   rm -f conftest.er1
30017   cat conftest.err >&5
30018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30019   (exit $ac_status); } && {
30020          test -z "$ac_cxx_werror_flag" ||
30021          test ! -s conftest.err
30022        } && test -s conftest$ac_exeext &&
30023        $as_test_x conftest$ac_exeext; then
30024   ac_cv_lib_dnet_dnet_ntoa=yes
30025 else
30026   echo "$as_me: failed program was:" >&5
30027 sed 's/^/| /' conftest.$ac_ext >&5
30028
30029         ac_cv_lib_dnet_dnet_ntoa=no
30030 fi
30031
30032 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30033       conftest$ac_exeext conftest.$ac_ext
30034 LIBS=$ac_check_lib_save_LIBS
30035 fi
30036 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
30037 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
30038 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
30039   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
30040 fi
30041
30042     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
30043       { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
30044 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
30045 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
30046   echo $ECHO_N "(cached) $ECHO_C" >&6
30047 else
30048   ac_check_lib_save_LIBS=$LIBS
30049 LIBS="-ldnet_stub  $LIBS"
30050 cat >conftest.$ac_ext <<_ACEOF
30051 /* confdefs.h.  */
30052 _ACEOF
30053 cat confdefs.h >>conftest.$ac_ext
30054 cat >>conftest.$ac_ext <<_ACEOF
30055 /* end confdefs.h.  */
30056
30057 /* Override any GCC internal prototype to avoid an error.
30058    Use char because int might match the return type of a GCC
30059    builtin and then its argument prototype would still apply.  */
30060 #ifdef __cplusplus
30061 extern "C"
30062 #endif
30063 char dnet_ntoa ();
30064 int
30065 main ()
30066 {
30067 return dnet_ntoa ();
30068   ;
30069   return 0;
30070 }
30071 _ACEOF
30072 rm -f conftest.$ac_objext conftest$ac_exeext
30073 if { (ac_try="$ac_link"
30074 case "(($ac_try" in
30075   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30076   *) ac_try_echo=$ac_try;;
30077 esac
30078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30079   (eval "$ac_link") 2>conftest.er1
30080   ac_status=$?
30081   grep -v '^ *+' conftest.er1 >conftest.err
30082   rm -f conftest.er1
30083   cat conftest.err >&5
30084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30085   (exit $ac_status); } && {
30086          test -z "$ac_cxx_werror_flag" ||
30087          test ! -s conftest.err
30088        } && test -s conftest$ac_exeext &&
30089        $as_test_x conftest$ac_exeext; then
30090   ac_cv_lib_dnet_stub_dnet_ntoa=yes
30091 else
30092   echo "$as_me: failed program was:" >&5
30093 sed 's/^/| /' conftest.$ac_ext >&5
30094
30095         ac_cv_lib_dnet_stub_dnet_ntoa=no
30096 fi
30097
30098 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30099       conftest$ac_exeext conftest.$ac_ext
30100 LIBS=$ac_check_lib_save_LIBS
30101 fi
30102 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
30103 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
30104 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
30105   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
30106 fi
30107
30108     fi
30109 fi
30110
30111 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30112       conftest$ac_exeext conftest.$ac_ext
30113     LIBS="$ac_xsave_LIBS"
30114
30115     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
30116     # to get the SysV transport functions.
30117     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
30118     # needs -lnsl.
30119     # The nsl library prevents programs from opening the X display
30120     # on Irix 5.2, according to T.E. Dickey.
30121     # The functions gethostbyname, getservbyname, and inet_addr are
30122     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
30123     { echo "$as_me:$LINENO: checking for gethostbyname" >&5
30124 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
30125 if test "${ac_cv_func_gethostbyname+set}" = set; then
30126   echo $ECHO_N "(cached) $ECHO_C" >&6
30127 else
30128   cat >conftest.$ac_ext <<_ACEOF
30129 /* confdefs.h.  */
30130 _ACEOF
30131 cat confdefs.h >>conftest.$ac_ext
30132 cat >>conftest.$ac_ext <<_ACEOF
30133 /* end confdefs.h.  */
30134 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
30135    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30136 #define gethostbyname innocuous_gethostbyname
30137
30138 /* System header to define __stub macros and hopefully few prototypes,
30139     which can conflict with char gethostbyname (); below.
30140     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30141     <limits.h> exists even on freestanding compilers.  */
30142
30143 #ifdef __STDC__
30144 # include <limits.h>
30145 #else
30146 # include <assert.h>
30147 #endif
30148
30149 #undef gethostbyname
30150
30151 /* Override any GCC internal prototype to avoid an error.
30152    Use char because int might match the return type of a GCC
30153    builtin and then its argument prototype would still apply.  */
30154 #ifdef __cplusplus
30155 extern "C"
30156 #endif
30157 char gethostbyname ();
30158 /* The GNU C library defines this for functions which it implements
30159     to always fail with ENOSYS.  Some functions are actually named
30160     something starting with __ and the normal name is an alias.  */
30161 #if defined __stub_gethostbyname || defined __stub___gethostbyname
30162 choke me
30163 #endif
30164
30165 int
30166 main ()
30167 {
30168 return gethostbyname ();
30169   ;
30170   return 0;
30171 }
30172 _ACEOF
30173 rm -f conftest.$ac_objext conftest$ac_exeext
30174 if { (ac_try="$ac_link"
30175 case "(($ac_try" in
30176   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30177   *) ac_try_echo=$ac_try;;
30178 esac
30179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30180   (eval "$ac_link") 2>conftest.er1
30181   ac_status=$?
30182   grep -v '^ *+' conftest.er1 >conftest.err
30183   rm -f conftest.er1
30184   cat conftest.err >&5
30185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30186   (exit $ac_status); } && {
30187          test -z "$ac_cxx_werror_flag" ||
30188          test ! -s conftest.err
30189        } && test -s conftest$ac_exeext &&
30190        $as_test_x conftest$ac_exeext; then
30191   ac_cv_func_gethostbyname=yes
30192 else
30193   echo "$as_me: failed program was:" >&5
30194 sed 's/^/| /' conftest.$ac_ext >&5
30195
30196         ac_cv_func_gethostbyname=no
30197 fi
30198
30199 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30200       conftest$ac_exeext conftest.$ac_ext
30201 fi
30202 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
30203 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
30204
30205     if test $ac_cv_func_gethostbyname = no; then
30206       { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
30207 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
30208 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
30209   echo $ECHO_N "(cached) $ECHO_C" >&6
30210 else
30211   ac_check_lib_save_LIBS=$LIBS
30212 LIBS="-lnsl  $LIBS"
30213 cat >conftest.$ac_ext <<_ACEOF
30214 /* confdefs.h.  */
30215 _ACEOF
30216 cat confdefs.h >>conftest.$ac_ext
30217 cat >>conftest.$ac_ext <<_ACEOF
30218 /* end confdefs.h.  */
30219
30220 /* Override any GCC internal prototype to avoid an error.
30221    Use char because int might match the return type of a GCC
30222    builtin and then its argument prototype would still apply.  */
30223 #ifdef __cplusplus
30224 extern "C"
30225 #endif
30226 char gethostbyname ();
30227 int
30228 main ()
30229 {
30230 return gethostbyname ();
30231   ;
30232   return 0;
30233 }
30234 _ACEOF
30235 rm -f conftest.$ac_objext conftest$ac_exeext
30236 if { (ac_try="$ac_link"
30237 case "(($ac_try" in
30238   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30239   *) ac_try_echo=$ac_try;;
30240 esac
30241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30242   (eval "$ac_link") 2>conftest.er1
30243   ac_status=$?
30244   grep -v '^ *+' conftest.er1 >conftest.err
30245   rm -f conftest.er1
30246   cat conftest.err >&5
30247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30248   (exit $ac_status); } && {
30249          test -z "$ac_cxx_werror_flag" ||
30250          test ! -s conftest.err
30251        } && test -s conftest$ac_exeext &&
30252        $as_test_x conftest$ac_exeext; then
30253   ac_cv_lib_nsl_gethostbyname=yes
30254 else
30255   echo "$as_me: failed program was:" >&5
30256 sed 's/^/| /' conftest.$ac_ext >&5
30257
30258         ac_cv_lib_nsl_gethostbyname=no
30259 fi
30260
30261 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30262       conftest$ac_exeext conftest.$ac_ext
30263 LIBS=$ac_check_lib_save_LIBS
30264 fi
30265 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
30266 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
30267 if test $ac_cv_lib_nsl_gethostbyname = yes; then
30268   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
30269 fi
30270
30271       if test $ac_cv_lib_nsl_gethostbyname = no; then
30272         { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
30273 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
30274 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
30275   echo $ECHO_N "(cached) $ECHO_C" >&6
30276 else
30277   ac_check_lib_save_LIBS=$LIBS
30278 LIBS="-lbsd  $LIBS"
30279 cat >conftest.$ac_ext <<_ACEOF
30280 /* confdefs.h.  */
30281 _ACEOF
30282 cat confdefs.h >>conftest.$ac_ext
30283 cat >>conftest.$ac_ext <<_ACEOF
30284 /* end confdefs.h.  */
30285
30286 /* Override any GCC internal prototype to avoid an error.
30287    Use char because int might match the return type of a GCC
30288    builtin and then its argument prototype would still apply.  */
30289 #ifdef __cplusplus
30290 extern "C"
30291 #endif
30292 char gethostbyname ();
30293 int
30294 main ()
30295 {
30296 return gethostbyname ();
30297   ;
30298   return 0;
30299 }
30300 _ACEOF
30301 rm -f conftest.$ac_objext conftest$ac_exeext
30302 if { (ac_try="$ac_link"
30303 case "(($ac_try" in
30304   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30305   *) ac_try_echo=$ac_try;;
30306 esac
30307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30308   (eval "$ac_link") 2>conftest.er1
30309   ac_status=$?
30310   grep -v '^ *+' conftest.er1 >conftest.err
30311   rm -f conftest.er1
30312   cat conftest.err >&5
30313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30314   (exit $ac_status); } && {
30315          test -z "$ac_cxx_werror_flag" ||
30316          test ! -s conftest.err
30317        } && test -s conftest$ac_exeext &&
30318        $as_test_x conftest$ac_exeext; then
30319   ac_cv_lib_bsd_gethostbyname=yes
30320 else
30321   echo "$as_me: failed program was:" >&5
30322 sed 's/^/| /' conftest.$ac_ext >&5
30323
30324         ac_cv_lib_bsd_gethostbyname=no
30325 fi
30326
30327 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30328       conftest$ac_exeext conftest.$ac_ext
30329 LIBS=$ac_check_lib_save_LIBS
30330 fi
30331 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
30332 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
30333 if test $ac_cv_lib_bsd_gethostbyname = yes; then
30334   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
30335 fi
30336
30337       fi
30338     fi
30339
30340     # lieder@skyler.mavd.honeywell.com says without -lsocket,
30341     # socket/setsockopt and other routines are undefined under SCO ODT
30342     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
30343     # on later versions), says Simon Leinen: it contains gethostby*
30344     # variants that don't use the name server (or something).  -lsocket
30345     # must be given before -lnsl if both are needed.  We assume that
30346     # if connect needs -lnsl, so does gethostbyname.
30347     { echo "$as_me:$LINENO: checking for connect" >&5
30348 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
30349 if test "${ac_cv_func_connect+set}" = set; then
30350   echo $ECHO_N "(cached) $ECHO_C" >&6
30351 else
30352   cat >conftest.$ac_ext <<_ACEOF
30353 /* confdefs.h.  */
30354 _ACEOF
30355 cat confdefs.h >>conftest.$ac_ext
30356 cat >>conftest.$ac_ext <<_ACEOF
30357 /* end confdefs.h.  */
30358 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
30359    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30360 #define connect innocuous_connect
30361
30362 /* System header to define __stub macros and hopefully few prototypes,
30363     which can conflict with char connect (); below.
30364     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30365     <limits.h> exists even on freestanding compilers.  */
30366
30367 #ifdef __STDC__
30368 # include <limits.h>
30369 #else
30370 # include <assert.h>
30371 #endif
30372
30373 #undef connect
30374
30375 /* Override any GCC internal prototype to avoid an error.
30376    Use char because int might match the return type of a GCC
30377    builtin and then its argument prototype would still apply.  */
30378 #ifdef __cplusplus
30379 extern "C"
30380 #endif
30381 char connect ();
30382 /* The GNU C library defines this for functions which it implements
30383     to always fail with ENOSYS.  Some functions are actually named
30384     something starting with __ and the normal name is an alias.  */
30385 #if defined __stub_connect || defined __stub___connect
30386 choke me
30387 #endif
30388
30389 int
30390 main ()
30391 {
30392 return connect ();
30393   ;
30394   return 0;
30395 }
30396 _ACEOF
30397 rm -f conftest.$ac_objext conftest$ac_exeext
30398 if { (ac_try="$ac_link"
30399 case "(($ac_try" in
30400   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30401   *) ac_try_echo=$ac_try;;
30402 esac
30403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30404   (eval "$ac_link") 2>conftest.er1
30405   ac_status=$?
30406   grep -v '^ *+' conftest.er1 >conftest.err
30407   rm -f conftest.er1
30408   cat conftest.err >&5
30409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30410   (exit $ac_status); } && {
30411          test -z "$ac_cxx_werror_flag" ||
30412          test ! -s conftest.err
30413        } && test -s conftest$ac_exeext &&
30414        $as_test_x conftest$ac_exeext; then
30415   ac_cv_func_connect=yes
30416 else
30417   echo "$as_me: failed program was:" >&5
30418 sed 's/^/| /' conftest.$ac_ext >&5
30419
30420         ac_cv_func_connect=no
30421 fi
30422
30423 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30424       conftest$ac_exeext conftest.$ac_ext
30425 fi
30426 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
30427 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
30428
30429     if test $ac_cv_func_connect = no; then
30430       { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
30431 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
30432 if test "${ac_cv_lib_socket_connect+set}" = set; then
30433   echo $ECHO_N "(cached) $ECHO_C" >&6
30434 else
30435   ac_check_lib_save_LIBS=$LIBS
30436 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
30437 cat >conftest.$ac_ext <<_ACEOF
30438 /* confdefs.h.  */
30439 _ACEOF
30440 cat confdefs.h >>conftest.$ac_ext
30441 cat >>conftest.$ac_ext <<_ACEOF
30442 /* end confdefs.h.  */
30443
30444 /* Override any GCC internal prototype to avoid an error.
30445    Use char because int might match the return type of a GCC
30446    builtin and then its argument prototype would still apply.  */
30447 #ifdef __cplusplus
30448 extern "C"
30449 #endif
30450 char connect ();
30451 int
30452 main ()
30453 {
30454 return connect ();
30455   ;
30456   return 0;
30457 }
30458 _ACEOF
30459 rm -f conftest.$ac_objext conftest$ac_exeext
30460 if { (ac_try="$ac_link"
30461 case "(($ac_try" in
30462   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30463   *) ac_try_echo=$ac_try;;
30464 esac
30465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30466   (eval "$ac_link") 2>conftest.er1
30467   ac_status=$?
30468   grep -v '^ *+' conftest.er1 >conftest.err
30469   rm -f conftest.er1
30470   cat conftest.err >&5
30471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30472   (exit $ac_status); } && {
30473          test -z "$ac_cxx_werror_flag" ||
30474          test ! -s conftest.err
30475        } && test -s conftest$ac_exeext &&
30476        $as_test_x conftest$ac_exeext; then
30477   ac_cv_lib_socket_connect=yes
30478 else
30479   echo "$as_me: failed program was:" >&5
30480 sed 's/^/| /' conftest.$ac_ext >&5
30481
30482         ac_cv_lib_socket_connect=no
30483 fi
30484
30485 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30486       conftest$ac_exeext conftest.$ac_ext
30487 LIBS=$ac_check_lib_save_LIBS
30488 fi
30489 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
30490 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
30491 if test $ac_cv_lib_socket_connect = yes; then
30492   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
30493 fi
30494
30495     fi
30496
30497     # Guillermo Gomez says -lposix is necessary on A/UX.
30498     { echo "$as_me:$LINENO: checking for remove" >&5
30499 echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
30500 if test "${ac_cv_func_remove+set}" = set; then
30501   echo $ECHO_N "(cached) $ECHO_C" >&6
30502 else
30503   cat >conftest.$ac_ext <<_ACEOF
30504 /* confdefs.h.  */
30505 _ACEOF
30506 cat confdefs.h >>conftest.$ac_ext
30507 cat >>conftest.$ac_ext <<_ACEOF
30508 /* end confdefs.h.  */
30509 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
30510    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30511 #define remove innocuous_remove
30512
30513 /* System header to define __stub macros and hopefully few prototypes,
30514     which can conflict with char remove (); below.
30515     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30516     <limits.h> exists even on freestanding compilers.  */
30517
30518 #ifdef __STDC__
30519 # include <limits.h>
30520 #else
30521 # include <assert.h>
30522 #endif
30523
30524 #undef remove
30525
30526 /* Override any GCC internal prototype to avoid an error.
30527    Use char because int might match the return type of a GCC
30528    builtin and then its argument prototype would still apply.  */
30529 #ifdef __cplusplus
30530 extern "C"
30531 #endif
30532 char remove ();
30533 /* The GNU C library defines this for functions which it implements
30534     to always fail with ENOSYS.  Some functions are actually named
30535     something starting with __ and the normal name is an alias.  */
30536 #if defined __stub_remove || defined __stub___remove
30537 choke me
30538 #endif
30539
30540 int
30541 main ()
30542 {
30543 return remove ();
30544   ;
30545   return 0;
30546 }
30547 _ACEOF
30548 rm -f conftest.$ac_objext conftest$ac_exeext
30549 if { (ac_try="$ac_link"
30550 case "(($ac_try" in
30551   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30552   *) ac_try_echo=$ac_try;;
30553 esac
30554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30555   (eval "$ac_link") 2>conftest.er1
30556   ac_status=$?
30557   grep -v '^ *+' conftest.er1 >conftest.err
30558   rm -f conftest.er1
30559   cat conftest.err >&5
30560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30561   (exit $ac_status); } && {
30562          test -z "$ac_cxx_werror_flag" ||
30563          test ! -s conftest.err
30564        } && test -s conftest$ac_exeext &&
30565        $as_test_x conftest$ac_exeext; then
30566   ac_cv_func_remove=yes
30567 else
30568   echo "$as_me: failed program was:" >&5
30569 sed 's/^/| /' conftest.$ac_ext >&5
30570
30571         ac_cv_func_remove=no
30572 fi
30573
30574 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30575       conftest$ac_exeext conftest.$ac_ext
30576 fi
30577 { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
30578 echo "${ECHO_T}$ac_cv_func_remove" >&6; }
30579
30580     if test $ac_cv_func_remove = no; then
30581       { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
30582 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
30583 if test "${ac_cv_lib_posix_remove+set}" = set; then
30584   echo $ECHO_N "(cached) $ECHO_C" >&6
30585 else
30586   ac_check_lib_save_LIBS=$LIBS
30587 LIBS="-lposix  $LIBS"
30588 cat >conftest.$ac_ext <<_ACEOF
30589 /* confdefs.h.  */
30590 _ACEOF
30591 cat confdefs.h >>conftest.$ac_ext
30592 cat >>conftest.$ac_ext <<_ACEOF
30593 /* end confdefs.h.  */
30594
30595 /* Override any GCC internal prototype to avoid an error.
30596    Use char because int might match the return type of a GCC
30597    builtin and then its argument prototype would still apply.  */
30598 #ifdef __cplusplus
30599 extern "C"
30600 #endif
30601 char remove ();
30602 int
30603 main ()
30604 {
30605 return remove ();
30606   ;
30607   return 0;
30608 }
30609 _ACEOF
30610 rm -f conftest.$ac_objext conftest$ac_exeext
30611 if { (ac_try="$ac_link"
30612 case "(($ac_try" in
30613   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30614   *) ac_try_echo=$ac_try;;
30615 esac
30616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30617   (eval "$ac_link") 2>conftest.er1
30618   ac_status=$?
30619   grep -v '^ *+' conftest.er1 >conftest.err
30620   rm -f conftest.er1
30621   cat conftest.err >&5
30622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30623   (exit $ac_status); } && {
30624          test -z "$ac_cxx_werror_flag" ||
30625          test ! -s conftest.err
30626        } && test -s conftest$ac_exeext &&
30627        $as_test_x conftest$ac_exeext; then
30628   ac_cv_lib_posix_remove=yes
30629 else
30630   echo "$as_me: failed program was:" >&5
30631 sed 's/^/| /' conftest.$ac_ext >&5
30632
30633         ac_cv_lib_posix_remove=no
30634 fi
30635
30636 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30637       conftest$ac_exeext conftest.$ac_ext
30638 LIBS=$ac_check_lib_save_LIBS
30639 fi
30640 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
30641 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
30642 if test $ac_cv_lib_posix_remove = yes; then
30643   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
30644 fi
30645
30646     fi
30647
30648     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
30649     { echo "$as_me:$LINENO: checking for shmat" >&5
30650 echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
30651 if test "${ac_cv_func_shmat+set}" = set; then
30652   echo $ECHO_N "(cached) $ECHO_C" >&6
30653 else
30654   cat >conftest.$ac_ext <<_ACEOF
30655 /* confdefs.h.  */
30656 _ACEOF
30657 cat confdefs.h >>conftest.$ac_ext
30658 cat >>conftest.$ac_ext <<_ACEOF
30659 /* end confdefs.h.  */
30660 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
30661    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30662 #define shmat innocuous_shmat
30663
30664 /* System header to define __stub macros and hopefully few prototypes,
30665     which can conflict with char shmat (); below.
30666     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30667     <limits.h> exists even on freestanding compilers.  */
30668
30669 #ifdef __STDC__
30670 # include <limits.h>
30671 #else
30672 # include <assert.h>
30673 #endif
30674
30675 #undef shmat
30676
30677 /* Override any GCC internal prototype to avoid an error.
30678    Use char because int might match the return type of a GCC
30679    builtin and then its argument prototype would still apply.  */
30680 #ifdef __cplusplus
30681 extern "C"
30682 #endif
30683 char shmat ();
30684 /* The GNU C library defines this for functions which it implements
30685     to always fail with ENOSYS.  Some functions are actually named
30686     something starting with __ and the normal name is an alias.  */
30687 #if defined __stub_shmat || defined __stub___shmat
30688 choke me
30689 #endif
30690
30691 int
30692 main ()
30693 {
30694 return shmat ();
30695   ;
30696   return 0;
30697 }
30698 _ACEOF
30699 rm -f conftest.$ac_objext conftest$ac_exeext
30700 if { (ac_try="$ac_link"
30701 case "(($ac_try" in
30702   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30703   *) ac_try_echo=$ac_try;;
30704 esac
30705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30706   (eval "$ac_link") 2>conftest.er1
30707   ac_status=$?
30708   grep -v '^ *+' conftest.er1 >conftest.err
30709   rm -f conftest.er1
30710   cat conftest.err >&5
30711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30712   (exit $ac_status); } && {
30713          test -z "$ac_cxx_werror_flag" ||
30714          test ! -s conftest.err
30715        } && test -s conftest$ac_exeext &&
30716        $as_test_x conftest$ac_exeext; then
30717   ac_cv_func_shmat=yes
30718 else
30719   echo "$as_me: failed program was:" >&5
30720 sed 's/^/| /' conftest.$ac_ext >&5
30721
30722         ac_cv_func_shmat=no
30723 fi
30724
30725 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30726       conftest$ac_exeext conftest.$ac_ext
30727 fi
30728 { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
30729 echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
30730
30731     if test $ac_cv_func_shmat = no; then
30732       { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
30733 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
30734 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
30735   echo $ECHO_N "(cached) $ECHO_C" >&6
30736 else
30737   ac_check_lib_save_LIBS=$LIBS
30738 LIBS="-lipc  $LIBS"
30739 cat >conftest.$ac_ext <<_ACEOF
30740 /* confdefs.h.  */
30741 _ACEOF
30742 cat confdefs.h >>conftest.$ac_ext
30743 cat >>conftest.$ac_ext <<_ACEOF
30744 /* end confdefs.h.  */
30745
30746 /* Override any GCC internal prototype to avoid an error.
30747    Use char because int might match the return type of a GCC
30748    builtin and then its argument prototype would still apply.  */
30749 #ifdef __cplusplus
30750 extern "C"
30751 #endif
30752 char shmat ();
30753 int
30754 main ()
30755 {
30756 return shmat ();
30757   ;
30758   return 0;
30759 }
30760 _ACEOF
30761 rm -f conftest.$ac_objext conftest$ac_exeext
30762 if { (ac_try="$ac_link"
30763 case "(($ac_try" in
30764   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30765   *) ac_try_echo=$ac_try;;
30766 esac
30767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30768   (eval "$ac_link") 2>conftest.er1
30769   ac_status=$?
30770   grep -v '^ *+' conftest.er1 >conftest.err
30771   rm -f conftest.er1
30772   cat conftest.err >&5
30773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30774   (exit $ac_status); } && {
30775          test -z "$ac_cxx_werror_flag" ||
30776          test ! -s conftest.err
30777        } && test -s conftest$ac_exeext &&
30778        $as_test_x conftest$ac_exeext; then
30779   ac_cv_lib_ipc_shmat=yes
30780 else
30781   echo "$as_me: failed program was:" >&5
30782 sed 's/^/| /' conftest.$ac_ext >&5
30783
30784         ac_cv_lib_ipc_shmat=no
30785 fi
30786
30787 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30788       conftest$ac_exeext conftest.$ac_ext
30789 LIBS=$ac_check_lib_save_LIBS
30790 fi
30791 { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
30792 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
30793 if test $ac_cv_lib_ipc_shmat = yes; then
30794   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
30795 fi
30796
30797     fi
30798   fi
30799
30800   # Check for libraries that X11R6 Xt/Xaw programs need.
30801   ac_save_LDFLAGS=$LDFLAGS
30802   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
30803   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
30804   # check for ICE first), but we must link in the order -lSM -lICE or
30805   # we get undefined symbols.  So assume we have SM if we have ICE.
30806   # These have to be linked with before -lX11, unlike the other
30807   # libraries we check for below, so use a different variable.
30808   # John Interrante, Karl Berry
30809   { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
30810 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
30811 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
30812   echo $ECHO_N "(cached) $ECHO_C" >&6
30813 else
30814   ac_check_lib_save_LIBS=$LIBS
30815 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
30816 cat >conftest.$ac_ext <<_ACEOF
30817 /* confdefs.h.  */
30818 _ACEOF
30819 cat confdefs.h >>conftest.$ac_ext
30820 cat >>conftest.$ac_ext <<_ACEOF
30821 /* end confdefs.h.  */
30822
30823 /* Override any GCC internal prototype to avoid an error.
30824    Use char because int might match the return type of a GCC
30825    builtin and then its argument prototype would still apply.  */
30826 #ifdef __cplusplus
30827 extern "C"
30828 #endif
30829 char IceConnectionNumber ();
30830 int
30831 main ()
30832 {
30833 return IceConnectionNumber ();
30834   ;
30835   return 0;
30836 }
30837 _ACEOF
30838 rm -f conftest.$ac_objext conftest$ac_exeext
30839 if { (ac_try="$ac_link"
30840 case "(($ac_try" in
30841   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30842   *) ac_try_echo=$ac_try;;
30843 esac
30844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30845   (eval "$ac_link") 2>conftest.er1
30846   ac_status=$?
30847   grep -v '^ *+' conftest.er1 >conftest.err
30848   rm -f conftest.er1
30849   cat conftest.err >&5
30850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30851   (exit $ac_status); } && {
30852          test -z "$ac_cxx_werror_flag" ||
30853          test ! -s conftest.err
30854        } && test -s conftest$ac_exeext &&
30855        $as_test_x conftest$ac_exeext; then
30856   ac_cv_lib_ICE_IceConnectionNumber=yes
30857 else
30858   echo "$as_me: failed program was:" >&5
30859 sed 's/^/| /' conftest.$ac_ext >&5
30860
30861         ac_cv_lib_ICE_IceConnectionNumber=no
30862 fi
30863
30864 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30865       conftest$ac_exeext conftest.$ac_ext
30866 LIBS=$ac_check_lib_save_LIBS
30867 fi
30868 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
30869 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
30870 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
30871   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
30872 fi
30873
30874   LDFLAGS=$ac_save_LDFLAGS
30875
30876 fi
30877
30878
30879
30880
30881
30882
30883
30884
30885
30886
30887
30888
30889
30890
30891
30892
30893
30894
30895
30896
30897
30898
30899
30900
30901
30902
30903
30904
30905
30906
30907
30908 for ac_header in \
30909    assert.h \
30910    fcntl.h \
30911    grp.h \
30912    pwd.h \
30913    libc.h \
30914    limits.h \
30915    stdarg.h \
30916    stdlib.h \
30917    stdint.h \
30918    string.h \
30919    strings.h \
30920    termios.h \
30921    termcap.h \
30922    term.h \
30923    unistd.h \
30924    sys/bitypes.h \
30925    sys/byteorder.h \
30926    sys/ioctl.h \
30927    sys/select.h \
30928    sys/socket.h \
30929    sys/sockio.h \
30930    sys/stat.h \
30931    sys/time.h \
30932    sys/types.h \
30933    arpa/nameser.h \
30934    mtio.h \
30935    sys/mtio.h \
30936    sys/tape.h \
30937    regex.h \
30938
30939 do
30940 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30941 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30942   { echo "$as_me:$LINENO: checking for $ac_header" >&5
30943 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30944 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30945   echo $ECHO_N "(cached) $ECHO_C" >&6
30946 fi
30947 ac_res=`eval echo '${'$as_ac_Header'}'`
30948                { echo "$as_me:$LINENO: result: $ac_res" >&5
30949 echo "${ECHO_T}$ac_res" >&6; }
30950 else
30951   # Is the header compilable?
30952 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30953 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30954 cat >conftest.$ac_ext <<_ACEOF
30955 /* confdefs.h.  */
30956 _ACEOF
30957 cat confdefs.h >>conftest.$ac_ext
30958 cat >>conftest.$ac_ext <<_ACEOF
30959 /* end confdefs.h.  */
30960 $ac_includes_default
30961 #include <$ac_header>
30962 _ACEOF
30963 rm -f conftest.$ac_objext
30964 if { (ac_try="$ac_compile"
30965 case "(($ac_try" in
30966   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30967   *) ac_try_echo=$ac_try;;
30968 esac
30969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30970   (eval "$ac_compile") 2>conftest.er1
30971   ac_status=$?
30972   grep -v '^ *+' conftest.er1 >conftest.err
30973   rm -f conftest.er1
30974   cat conftest.err >&5
30975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30976   (exit $ac_status); } && {
30977          test -z "$ac_cxx_werror_flag" ||
30978          test ! -s conftest.err
30979        } && test -s conftest.$ac_objext; then
30980   ac_header_compiler=yes
30981 else
30982   echo "$as_me: failed program was:" >&5
30983 sed 's/^/| /' conftest.$ac_ext >&5
30984
30985         ac_header_compiler=no
30986 fi
30987
30988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30989 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30990 echo "${ECHO_T}$ac_header_compiler" >&6; }
30991
30992 # Is the header present?
30993 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30994 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30995 cat >conftest.$ac_ext <<_ACEOF
30996 /* confdefs.h.  */
30997 _ACEOF
30998 cat confdefs.h >>conftest.$ac_ext
30999 cat >>conftest.$ac_ext <<_ACEOF
31000 /* end confdefs.h.  */
31001 #include <$ac_header>
31002 _ACEOF
31003 if { (ac_try="$ac_cpp conftest.$ac_ext"
31004 case "(($ac_try" in
31005   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31006   *) ac_try_echo=$ac_try;;
31007 esac
31008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31009   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31010   ac_status=$?
31011   grep -v '^ *+' conftest.er1 >conftest.err
31012   rm -f conftest.er1
31013   cat conftest.err >&5
31014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31015   (exit $ac_status); } >/dev/null && {
31016          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
31017          test ! -s conftest.err
31018        }; then
31019   ac_header_preproc=yes
31020 else
31021   echo "$as_me: failed program was:" >&5
31022 sed 's/^/| /' conftest.$ac_ext >&5
31023
31024   ac_header_preproc=no
31025 fi
31026
31027 rm -f conftest.err conftest.$ac_ext
31028 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31029 echo "${ECHO_T}$ac_header_preproc" >&6; }
31030
31031 # So?  What about this header?
31032 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
31033   yes:no: )
31034     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31035 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31036     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31037 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31038     ac_header_preproc=yes
31039     ;;
31040   no:yes:* )
31041     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31042 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31043     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
31044 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
31045     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31046 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31047     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
31048 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
31049     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31050 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31051     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31052 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31053
31054     ;;
31055 esac
31056 { echo "$as_me:$LINENO: checking for $ac_header" >&5
31057 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
31058 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31059   echo $ECHO_N "(cached) $ECHO_C" >&6
31060 else
31061   eval "$as_ac_Header=\$ac_header_preproc"
31062 fi
31063 ac_res=`eval echo '${'$as_ac_Header'}'`
31064                { echo "$as_me:$LINENO: result: $ac_res" >&5
31065 echo "${ECHO_T}$ac_res" >&6; }
31066
31067 fi
31068 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31069   cat >>confdefs.h <<_ACEOF
31070 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31071 _ACEOF
31072
31073 fi
31074
31075 done
31076
31077 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
31078 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
31079 if test "${ac_cv_header_stdc+set}" = set; then
31080   echo $ECHO_N "(cached) $ECHO_C" >&6
31081 else
31082   cat >conftest.$ac_ext <<_ACEOF
31083 /* confdefs.h.  */
31084 _ACEOF
31085 cat confdefs.h >>conftest.$ac_ext
31086 cat >>conftest.$ac_ext <<_ACEOF
31087 /* end confdefs.h.  */
31088 #include <stdlib.h>
31089 #include <stdarg.h>
31090 #include <string.h>
31091 #include <float.h>
31092
31093 int
31094 main ()
31095 {
31096
31097   ;
31098   return 0;
31099 }
31100 _ACEOF
31101 rm -f conftest.$ac_objext
31102 if { (ac_try="$ac_compile"
31103 case "(($ac_try" in
31104   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31105   *) ac_try_echo=$ac_try;;
31106 esac
31107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31108   (eval "$ac_compile") 2>conftest.er1
31109   ac_status=$?
31110   grep -v '^ *+' conftest.er1 >conftest.err
31111   rm -f conftest.er1
31112   cat conftest.err >&5
31113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31114   (exit $ac_status); } && {
31115          test -z "$ac_cxx_werror_flag" ||
31116          test ! -s conftest.err
31117        } && test -s conftest.$ac_objext; then
31118   ac_cv_header_stdc=yes
31119 else
31120   echo "$as_me: failed program was:" >&5
31121 sed 's/^/| /' conftest.$ac_ext >&5
31122
31123         ac_cv_header_stdc=no
31124 fi
31125
31126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31127
31128 if test $ac_cv_header_stdc = yes; then
31129   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
31130   cat >conftest.$ac_ext <<_ACEOF
31131 /* confdefs.h.  */
31132 _ACEOF
31133 cat confdefs.h >>conftest.$ac_ext
31134 cat >>conftest.$ac_ext <<_ACEOF
31135 /* end confdefs.h.  */
31136 #include <string.h>
31137
31138 _ACEOF
31139 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31140   $EGREP "memchr" >/dev/null 2>&1; then
31141   :
31142 else
31143   ac_cv_header_stdc=no
31144 fi
31145 rm -f conftest*
31146
31147 fi
31148
31149 if test $ac_cv_header_stdc = yes; then
31150   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
31151   cat >conftest.$ac_ext <<_ACEOF
31152 /* confdefs.h.  */
31153 _ACEOF
31154 cat confdefs.h >>conftest.$ac_ext
31155 cat >>conftest.$ac_ext <<_ACEOF
31156 /* end confdefs.h.  */
31157 #include <stdlib.h>
31158
31159 _ACEOF
31160 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31161   $EGREP "free" >/dev/null 2>&1; then
31162   :
31163 else
31164   ac_cv_header_stdc=no
31165 fi
31166 rm -f conftest*
31167
31168 fi
31169
31170 if test $ac_cv_header_stdc = yes; then
31171   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
31172   if test "$cross_compiling" = yes; then
31173   :
31174 else
31175   cat >conftest.$ac_ext <<_ACEOF
31176 /* confdefs.h.  */
31177 _ACEOF
31178 cat confdefs.h >>conftest.$ac_ext
31179 cat >>conftest.$ac_ext <<_ACEOF
31180 /* end confdefs.h.  */
31181 #include <ctype.h>
31182 #include <stdlib.h>
31183 #if ((' ' & 0x0FF) == 0x020)
31184 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
31185 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
31186 #else
31187 # define ISLOWER(c) \
31188                    (('a' <= (c) && (c) <= 'i') \
31189                      || ('j' <= (c) && (c) <= 'r') \
31190                      || ('s' <= (c) && (c) <= 'z'))
31191 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
31192 #endif
31193
31194 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
31195 int
31196 main ()
31197 {
31198   int i;
31199   for (i = 0; i < 256; i++)
31200     if (XOR (islower (i), ISLOWER (i))
31201         || toupper (i) != TOUPPER (i))
31202       return 2;
31203   return 0;
31204 }
31205 _ACEOF
31206 rm -f conftest$ac_exeext
31207 if { (ac_try="$ac_link"
31208 case "(($ac_try" in
31209   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31210   *) ac_try_echo=$ac_try;;
31211 esac
31212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31213   (eval "$ac_link") 2>&5
31214   ac_status=$?
31215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31216   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31217   { (case "(($ac_try" in
31218   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31219   *) ac_try_echo=$ac_try;;
31220 esac
31221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31222   (eval "$ac_try") 2>&5
31223   ac_status=$?
31224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31225   (exit $ac_status); }; }; then
31226   :
31227 else
31228   echo "$as_me: program exited with status $ac_status" >&5
31229 echo "$as_me: failed program was:" >&5
31230 sed 's/^/| /' conftest.$ac_ext >&5
31231
31232 ( exit $ac_status )
31233 ac_cv_header_stdc=no
31234 fi
31235 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31236 fi
31237
31238
31239 fi
31240 fi
31241 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
31242 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
31243 if test $ac_cv_header_stdc = yes; then
31244
31245 cat >>confdefs.h <<\_ACEOF
31246 #define STDC_HEADERS 1
31247 _ACEOF
31248
31249 fi
31250
31251 { echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
31252 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6; }
31253 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
31254   echo $ECHO_N "(cached) $ECHO_C" >&6
31255 else
31256   cat >conftest.$ac_ext <<_ACEOF
31257 /* confdefs.h.  */
31258 _ACEOF
31259 cat confdefs.h >>conftest.$ac_ext
31260 cat >>conftest.$ac_ext <<_ACEOF
31261 /* end confdefs.h.  */
31262 #include <sys/types.h>
31263 int
31264 main ()
31265 {
31266 return makedev(0, 0);
31267   ;
31268   return 0;
31269 }
31270 _ACEOF
31271 rm -f conftest.$ac_objext conftest$ac_exeext
31272 if { (ac_try="$ac_link"
31273 case "(($ac_try" in
31274   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31275   *) ac_try_echo=$ac_try;;
31276 esac
31277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31278   (eval "$ac_link") 2>conftest.er1
31279   ac_status=$?
31280   grep -v '^ *+' conftest.er1 >conftest.err
31281   rm -f conftest.er1
31282   cat conftest.err >&5
31283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31284   (exit $ac_status); } && {
31285          test -z "$ac_cxx_werror_flag" ||
31286          test ! -s conftest.err
31287        } && test -s conftest$ac_exeext &&
31288        $as_test_x conftest$ac_exeext; then
31289   ac_cv_header_sys_types_h_makedev=yes
31290 else
31291   echo "$as_me: failed program was:" >&5
31292 sed 's/^/| /' conftest.$ac_ext >&5
31293
31294         ac_cv_header_sys_types_h_makedev=no
31295 fi
31296
31297 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31298       conftest$ac_exeext conftest.$ac_ext
31299
31300 fi
31301 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
31302 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6; }
31303
31304 if test $ac_cv_header_sys_types_h_makedev = no; then
31305 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
31306   { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
31307 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
31308 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
31309   echo $ECHO_N "(cached) $ECHO_C" >&6
31310 fi
31311 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
31312 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
31313 else
31314   # Is the header compilable?
31315 { echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
31316 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6; }
31317 cat >conftest.$ac_ext <<_ACEOF
31318 /* confdefs.h.  */
31319 _ACEOF
31320 cat confdefs.h >>conftest.$ac_ext
31321 cat >>conftest.$ac_ext <<_ACEOF
31322 /* end confdefs.h.  */
31323 $ac_includes_default
31324 #include <sys/mkdev.h>
31325 _ACEOF
31326 rm -f conftest.$ac_objext
31327 if { (ac_try="$ac_compile"
31328 case "(($ac_try" in
31329   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31330   *) ac_try_echo=$ac_try;;
31331 esac
31332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31333   (eval "$ac_compile") 2>conftest.er1
31334   ac_status=$?
31335   grep -v '^ *+' conftest.er1 >conftest.err
31336   rm -f conftest.er1
31337   cat conftest.err >&5
31338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31339   (exit $ac_status); } && {
31340          test -z "$ac_cxx_werror_flag" ||
31341          test ! -s conftest.err
31342        } && test -s conftest.$ac_objext; then
31343   ac_header_compiler=yes
31344 else
31345   echo "$as_me: failed program was:" >&5
31346 sed 's/^/| /' conftest.$ac_ext >&5
31347
31348         ac_header_compiler=no
31349 fi
31350
31351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31352 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31353 echo "${ECHO_T}$ac_header_compiler" >&6; }
31354
31355 # Is the header present?
31356 { echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
31357 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6; }
31358 cat >conftest.$ac_ext <<_ACEOF
31359 /* confdefs.h.  */
31360 _ACEOF
31361 cat confdefs.h >>conftest.$ac_ext
31362 cat >>conftest.$ac_ext <<_ACEOF
31363 /* end confdefs.h.  */
31364 #include <sys/mkdev.h>
31365 _ACEOF
31366 if { (ac_try="$ac_cpp conftest.$ac_ext"
31367 case "(($ac_try" in
31368   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31369   *) ac_try_echo=$ac_try;;
31370 esac
31371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31372   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31373   ac_status=$?
31374   grep -v '^ *+' conftest.er1 >conftest.err
31375   rm -f conftest.er1
31376   cat conftest.err >&5
31377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31378   (exit $ac_status); } >/dev/null && {
31379          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
31380          test ! -s conftest.err
31381        }; then
31382   ac_header_preproc=yes
31383 else
31384   echo "$as_me: failed program was:" >&5
31385 sed 's/^/| /' conftest.$ac_ext >&5
31386
31387   ac_header_preproc=no
31388 fi
31389
31390 rm -f conftest.err conftest.$ac_ext
31391 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31392 echo "${ECHO_T}$ac_header_preproc" >&6; }
31393
31394 # So?  What about this header?
31395 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
31396   yes:no: )
31397     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
31398 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31399     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
31400 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
31401     ac_header_preproc=yes
31402     ;;
31403   no:yes:* )
31404     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
31405 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
31406     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&5
31407 echo "$as_me: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&2;}
31408     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
31409 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
31410     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&5
31411 echo "$as_me: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&2;}
31412     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
31413 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
31414     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
31415 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
31416
31417     ;;
31418 esac
31419 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
31420 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
31421 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
31422   echo $ECHO_N "(cached) $ECHO_C" >&6
31423 else
31424   ac_cv_header_sys_mkdev_h=$ac_header_preproc
31425 fi
31426 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
31427 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
31428
31429 fi
31430 if test $ac_cv_header_sys_mkdev_h = yes; then
31431
31432 cat >>confdefs.h <<\_ACEOF
31433 #define MAJOR_IN_MKDEV 1
31434 _ACEOF
31435
31436 fi
31437
31438
31439
31440   if test $ac_cv_header_sys_mkdev_h = no; then
31441     if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
31442   { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
31443 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
31444 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
31445   echo $ECHO_N "(cached) $ECHO_C" >&6
31446 fi
31447 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
31448 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
31449 else
31450   # Is the header compilable?
31451 { echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
31452 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6; }
31453 cat >conftest.$ac_ext <<_ACEOF
31454 /* confdefs.h.  */
31455 _ACEOF
31456 cat confdefs.h >>conftest.$ac_ext
31457 cat >>conftest.$ac_ext <<_ACEOF
31458 /* end confdefs.h.  */
31459 $ac_includes_default
31460 #include <sys/sysmacros.h>
31461 _ACEOF
31462 rm -f conftest.$ac_objext
31463 if { (ac_try="$ac_compile"
31464 case "(($ac_try" in
31465   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31466   *) ac_try_echo=$ac_try;;
31467 esac
31468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31469   (eval "$ac_compile") 2>conftest.er1
31470   ac_status=$?
31471   grep -v '^ *+' conftest.er1 >conftest.err
31472   rm -f conftest.er1
31473   cat conftest.err >&5
31474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31475   (exit $ac_status); } && {
31476          test -z "$ac_cxx_werror_flag" ||
31477          test ! -s conftest.err
31478        } && test -s conftest.$ac_objext; then
31479   ac_header_compiler=yes
31480 else
31481   echo "$as_me: failed program was:" >&5
31482 sed 's/^/| /' conftest.$ac_ext >&5
31483
31484         ac_header_compiler=no
31485 fi
31486
31487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31488 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31489 echo "${ECHO_T}$ac_header_compiler" >&6; }
31490
31491 # Is the header present?
31492 { echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
31493 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6; }
31494 cat >conftest.$ac_ext <<_ACEOF
31495 /* confdefs.h.  */
31496 _ACEOF
31497 cat confdefs.h >>conftest.$ac_ext
31498 cat >>conftest.$ac_ext <<_ACEOF
31499 /* end confdefs.h.  */
31500 #include <sys/sysmacros.h>
31501 _ACEOF
31502 if { (ac_try="$ac_cpp conftest.$ac_ext"
31503 case "(($ac_try" in
31504   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31505   *) ac_try_echo=$ac_try;;
31506 esac
31507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31508   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31509   ac_status=$?
31510   grep -v '^ *+' conftest.er1 >conftest.err
31511   rm -f conftest.er1
31512   cat conftest.err >&5
31513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31514   (exit $ac_status); } >/dev/null && {
31515          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
31516          test ! -s conftest.err
31517        }; then
31518   ac_header_preproc=yes
31519 else
31520   echo "$as_me: failed program was:" >&5
31521 sed 's/^/| /' conftest.$ac_ext >&5
31522
31523   ac_header_preproc=no
31524 fi
31525
31526 rm -f conftest.err conftest.$ac_ext
31527 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31528 echo "${ECHO_T}$ac_header_preproc" >&6; }
31529
31530 # So?  What about this header?
31531 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
31532   yes:no: )
31533     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
31534 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31535     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
31536 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
31537     ac_header_preproc=yes
31538     ;;
31539   no:yes:* )
31540     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
31541 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
31542     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&5
31543 echo "$as_me: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&2;}
31544     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
31545 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
31546     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&5
31547 echo "$as_me: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&2;}
31548     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
31549 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
31550     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
31551 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
31552
31553     ;;
31554 esac
31555 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
31556 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
31557 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
31558   echo $ECHO_N "(cached) $ECHO_C" >&6
31559 else
31560   ac_cv_header_sys_sysmacros_h=$ac_header_preproc
31561 fi
31562 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
31563 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
31564
31565 fi
31566 if test $ac_cv_header_sys_sysmacros_h = yes; then
31567
31568 cat >>confdefs.h <<\_ACEOF
31569 #define MAJOR_IN_SYSMACROS 1
31570 _ACEOF
31571
31572 fi
31573
31574
31575   fi
31576 fi
31577
31578
31579
31580
31581
31582
31583 ac_header_dirent=no
31584 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
31585   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
31586 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
31587 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
31588 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31589   echo $ECHO_N "(cached) $ECHO_C" >&6
31590 else
31591   cat >conftest.$ac_ext <<_ACEOF
31592 /* confdefs.h.  */
31593 _ACEOF
31594 cat confdefs.h >>conftest.$ac_ext
31595 cat >>conftest.$ac_ext <<_ACEOF
31596 /* end confdefs.h.  */
31597 #include <sys/types.h>
31598 #include <$ac_hdr>
31599
31600 int
31601 main ()
31602 {
31603 if ((DIR *) 0)
31604 return 0;
31605   ;
31606   return 0;
31607 }
31608 _ACEOF
31609 rm -f conftest.$ac_objext
31610 if { (ac_try="$ac_compile"
31611 case "(($ac_try" in
31612   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31613   *) ac_try_echo=$ac_try;;
31614 esac
31615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31616   (eval "$ac_compile") 2>conftest.er1
31617   ac_status=$?
31618   grep -v '^ *+' conftest.er1 >conftest.err
31619   rm -f conftest.er1
31620   cat conftest.err >&5
31621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31622   (exit $ac_status); } && {
31623          test -z "$ac_cxx_werror_flag" ||
31624          test ! -s conftest.err
31625        } && test -s conftest.$ac_objext; then
31626   eval "$as_ac_Header=yes"
31627 else
31628   echo "$as_me: failed program was:" >&5
31629 sed 's/^/| /' conftest.$ac_ext >&5
31630
31631         eval "$as_ac_Header=no"
31632 fi
31633
31634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31635 fi
31636 ac_res=`eval echo '${'$as_ac_Header'}'`
31637                { echo "$as_me:$LINENO: result: $ac_res" >&5
31638 echo "${ECHO_T}$ac_res" >&6; }
31639 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31640   cat >>confdefs.h <<_ACEOF
31641 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
31642 _ACEOF
31643
31644 ac_header_dirent=$ac_hdr; break
31645 fi
31646
31647 done
31648 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
31649 if test $ac_header_dirent = dirent.h; then
31650   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
31651 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
31652 if test "${ac_cv_search_opendir+set}" = set; then
31653   echo $ECHO_N "(cached) $ECHO_C" >&6
31654 else
31655   ac_func_search_save_LIBS=$LIBS
31656 cat >conftest.$ac_ext <<_ACEOF
31657 /* confdefs.h.  */
31658 _ACEOF
31659 cat confdefs.h >>conftest.$ac_ext
31660 cat >>conftest.$ac_ext <<_ACEOF
31661 /* end confdefs.h.  */
31662
31663 /* Override any GCC internal prototype to avoid an error.
31664    Use char because int might match the return type of a GCC
31665    builtin and then its argument prototype would still apply.  */
31666 #ifdef __cplusplus
31667 extern "C"
31668 #endif
31669 char opendir ();
31670 int
31671 main ()
31672 {
31673 return opendir ();
31674   ;
31675   return 0;
31676 }
31677 _ACEOF
31678 for ac_lib in '' dir; do
31679   if test -z "$ac_lib"; then
31680     ac_res="none required"
31681   else
31682     ac_res=-l$ac_lib
31683     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
31684   fi
31685   rm -f conftest.$ac_objext conftest$ac_exeext
31686 if { (ac_try="$ac_link"
31687 case "(($ac_try" in
31688   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31689   *) ac_try_echo=$ac_try;;
31690 esac
31691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31692   (eval "$ac_link") 2>conftest.er1
31693   ac_status=$?
31694   grep -v '^ *+' conftest.er1 >conftest.err
31695   rm -f conftest.er1
31696   cat conftest.err >&5
31697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31698   (exit $ac_status); } && {
31699          test -z "$ac_cxx_werror_flag" ||
31700          test ! -s conftest.err
31701        } && test -s conftest$ac_exeext &&
31702        $as_test_x conftest$ac_exeext; then
31703   ac_cv_search_opendir=$ac_res
31704 else
31705   echo "$as_me: failed program was:" >&5
31706 sed 's/^/| /' conftest.$ac_ext >&5
31707
31708
31709 fi
31710
31711 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31712       conftest$ac_exeext
31713   if test "${ac_cv_search_opendir+set}" = set; then
31714   break
31715 fi
31716 done
31717 if test "${ac_cv_search_opendir+set}" = set; then
31718   :
31719 else
31720   ac_cv_search_opendir=no
31721 fi
31722 rm conftest.$ac_ext
31723 LIBS=$ac_func_search_save_LIBS
31724 fi
31725 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
31726 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
31727 ac_res=$ac_cv_search_opendir
31728 if test "$ac_res" != no; then
31729   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
31730
31731 fi
31732
31733 else
31734   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
31735 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
31736 if test "${ac_cv_search_opendir+set}" = set; then
31737   echo $ECHO_N "(cached) $ECHO_C" >&6
31738 else
31739   ac_func_search_save_LIBS=$LIBS
31740 cat >conftest.$ac_ext <<_ACEOF
31741 /* confdefs.h.  */
31742 _ACEOF
31743 cat confdefs.h >>conftest.$ac_ext
31744 cat >>conftest.$ac_ext <<_ACEOF
31745 /* end confdefs.h.  */
31746
31747 /* Override any GCC internal prototype to avoid an error.
31748    Use char because int might match the return type of a GCC
31749    builtin and then its argument prototype would still apply.  */
31750 #ifdef __cplusplus
31751 extern "C"
31752 #endif
31753 char opendir ();
31754 int
31755 main ()
31756 {
31757 return opendir ();
31758   ;
31759   return 0;
31760 }
31761 _ACEOF
31762 for ac_lib in '' x; do
31763   if test -z "$ac_lib"; then
31764     ac_res="none required"
31765   else
31766     ac_res=-l$ac_lib
31767     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
31768   fi
31769   rm -f conftest.$ac_objext conftest$ac_exeext
31770 if { (ac_try="$ac_link"
31771 case "(($ac_try" in
31772   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31773   *) ac_try_echo=$ac_try;;
31774 esac
31775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31776   (eval "$ac_link") 2>conftest.er1
31777   ac_status=$?
31778   grep -v '^ *+' conftest.er1 >conftest.err
31779   rm -f conftest.er1
31780   cat conftest.err >&5
31781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31782   (exit $ac_status); } && {
31783          test -z "$ac_cxx_werror_flag" ||
31784          test ! -s conftest.err
31785        } && test -s conftest$ac_exeext &&
31786        $as_test_x conftest$ac_exeext; then
31787   ac_cv_search_opendir=$ac_res
31788 else
31789   echo "$as_me: failed program was:" >&5
31790 sed 's/^/| /' conftest.$ac_ext >&5
31791
31792
31793 fi
31794
31795 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31796       conftest$ac_exeext
31797   if test "${ac_cv_search_opendir+set}" = set; then
31798   break
31799 fi
31800 done
31801 if test "${ac_cv_search_opendir+set}" = set; then
31802   :
31803 else
31804   ac_cv_search_opendir=no
31805 fi
31806 rm conftest.$ac_ext
31807 LIBS=$ac_func_search_save_LIBS
31808 fi
31809 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
31810 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
31811 ac_res=$ac_cv_search_opendir
31812 if test "$ac_res" != no; then
31813   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
31814
31815 fi
31816
31817 fi
31818
31819 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
31820 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
31821 if test "${ac_cv_header_stat_broken+set}" = set; then
31822   echo $ECHO_N "(cached) $ECHO_C" >&6
31823 else
31824   cat >conftest.$ac_ext <<_ACEOF
31825 /* confdefs.h.  */
31826 _ACEOF
31827 cat confdefs.h >>conftest.$ac_ext
31828 cat >>conftest.$ac_ext <<_ACEOF
31829 /* end confdefs.h.  */
31830 #include <sys/types.h>
31831 #include <sys/stat.h>
31832
31833 #if defined S_ISBLK && defined S_IFDIR
31834 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
31835 #endif
31836
31837 #if defined S_ISBLK && defined S_IFCHR
31838 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
31839 #endif
31840
31841 #if defined S_ISLNK && defined S_IFREG
31842 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
31843 #endif
31844
31845 #if defined S_ISSOCK && defined S_IFREG
31846 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
31847 #endif
31848
31849 _ACEOF
31850 rm -f conftest.$ac_objext
31851 if { (ac_try="$ac_compile"
31852 case "(($ac_try" in
31853   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31854   *) ac_try_echo=$ac_try;;
31855 esac
31856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31857   (eval "$ac_compile") 2>conftest.er1
31858   ac_status=$?
31859   grep -v '^ *+' conftest.er1 >conftest.err
31860   rm -f conftest.er1
31861   cat conftest.err >&5
31862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31863   (exit $ac_status); } && {
31864          test -z "$ac_cxx_werror_flag" ||
31865          test ! -s conftest.err
31866        } && test -s conftest.$ac_objext; then
31867   ac_cv_header_stat_broken=no
31868 else
31869   echo "$as_me: failed program was:" >&5
31870 sed 's/^/| /' conftest.$ac_ext >&5
31871
31872         ac_cv_header_stat_broken=yes
31873 fi
31874
31875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31876 fi
31877 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
31878 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
31879 if test $ac_cv_header_stat_broken = yes; then
31880
31881 cat >>confdefs.h <<\_ACEOF
31882 #define STAT_MACROS_BROKEN 1
31883 _ACEOF
31884
31885 fi
31886
31887 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
31888 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
31889 if test "${ac_cv_header_sys_wait_h+set}" = set; then
31890   echo $ECHO_N "(cached) $ECHO_C" >&6
31891 else
31892   cat >conftest.$ac_ext <<_ACEOF
31893 /* confdefs.h.  */
31894 _ACEOF
31895 cat confdefs.h >>conftest.$ac_ext
31896 cat >>conftest.$ac_ext <<_ACEOF
31897 /* end confdefs.h.  */
31898 #include <sys/types.h>
31899 #include <sys/wait.h>
31900 #ifndef WEXITSTATUS
31901 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
31902 #endif
31903 #ifndef WIFEXITED
31904 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
31905 #endif
31906
31907 int
31908 main ()
31909 {
31910   int s;
31911   wait (&s);
31912   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
31913   ;
31914   return 0;
31915 }
31916 _ACEOF
31917 rm -f conftest.$ac_objext
31918 if { (ac_try="$ac_compile"
31919 case "(($ac_try" in
31920   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31921   *) ac_try_echo=$ac_try;;
31922 esac
31923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31924   (eval "$ac_compile") 2>conftest.er1
31925   ac_status=$?
31926   grep -v '^ *+' conftest.er1 >conftest.err
31927   rm -f conftest.er1
31928   cat conftest.err >&5
31929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31930   (exit $ac_status); } && {
31931          test -z "$ac_cxx_werror_flag" ||
31932          test ! -s conftest.err
31933        } && test -s conftest.$ac_objext; then
31934   ac_cv_header_sys_wait_h=yes
31935 else
31936   echo "$as_me: failed program was:" >&5
31937 sed 's/^/| /' conftest.$ac_ext >&5
31938
31939         ac_cv_header_sys_wait_h=no
31940 fi
31941
31942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31943 fi
31944 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
31945 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
31946 if test $ac_cv_header_sys_wait_h = yes; then
31947
31948 cat >>confdefs.h <<\_ACEOF
31949 #define HAVE_SYS_WAIT_H 1
31950 _ACEOF
31951
31952 fi
31953
31954 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
31955 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
31956 if test "${ac_cv_header_time+set}" = set; then
31957   echo $ECHO_N "(cached) $ECHO_C" >&6
31958 else
31959   cat >conftest.$ac_ext <<_ACEOF
31960 /* confdefs.h.  */
31961 _ACEOF
31962 cat confdefs.h >>conftest.$ac_ext
31963 cat >>conftest.$ac_ext <<_ACEOF
31964 /* end confdefs.h.  */
31965 #include <sys/types.h>
31966 #include <sys/time.h>
31967 #include <time.h>
31968
31969 int
31970 main ()
31971 {
31972 if ((struct tm *) 0)
31973 return 0;
31974   ;
31975   return 0;
31976 }
31977 _ACEOF
31978 rm -f conftest.$ac_objext
31979 if { (ac_try="$ac_compile"
31980 case "(($ac_try" in
31981   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31982   *) ac_try_echo=$ac_try;;
31983 esac
31984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31985   (eval "$ac_compile") 2>conftest.er1
31986   ac_status=$?
31987   grep -v '^ *+' conftest.er1 >conftest.err
31988   rm -f conftest.er1
31989   cat conftest.err >&5
31990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31991   (exit $ac_status); } && {
31992          test -z "$ac_cxx_werror_flag" ||
31993          test ! -s conftest.err
31994        } && test -s conftest.$ac_objext; then
31995   ac_cv_header_time=yes
31996 else
31997   echo "$as_me: failed program was:" >&5
31998 sed 's/^/| /' conftest.$ac_ext >&5
31999
32000         ac_cv_header_time=no
32001 fi
32002
32003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32004 fi
32005 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
32006 echo "${ECHO_T}$ac_cv_header_time" >&6; }
32007 if test $ac_cv_header_time = yes; then
32008
32009 cat >>confdefs.h <<\_ACEOF
32010 #define TIME_WITH_SYS_TIME 1
32011 _ACEOF
32012
32013 fi
32014
32015 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
32016 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
32017 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
32018   echo $ECHO_N "(cached) $ECHO_C" >&6
32019 else
32020   cat >conftest.$ac_ext <<_ACEOF
32021 /* confdefs.h.  */
32022 _ACEOF
32023 cat confdefs.h >>conftest.$ac_ext
32024 cat >>conftest.$ac_ext <<_ACEOF
32025 /* end confdefs.h.  */
32026 $ac_includes_default
32027 int
32028 main ()
32029 {
32030 static struct stat ac_aggr;
32031 if (ac_aggr.st_blksize)
32032 return 0;
32033   ;
32034   return 0;
32035 }
32036 _ACEOF
32037 rm -f conftest.$ac_objext
32038 if { (ac_try="$ac_compile"
32039 case "(($ac_try" in
32040   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32041   *) ac_try_echo=$ac_try;;
32042 esac
32043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32044   (eval "$ac_compile") 2>conftest.er1
32045   ac_status=$?
32046   grep -v '^ *+' conftest.er1 >conftest.err
32047   rm -f conftest.er1
32048   cat conftest.err >&5
32049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32050   (exit $ac_status); } && {
32051          test -z "$ac_cxx_werror_flag" ||
32052          test ! -s conftest.err
32053        } && test -s conftest.$ac_objext; then
32054   ac_cv_member_struct_stat_st_blksize=yes
32055 else
32056   echo "$as_me: failed program was:" >&5
32057 sed 's/^/| /' conftest.$ac_ext >&5
32058
32059         cat >conftest.$ac_ext <<_ACEOF
32060 /* confdefs.h.  */
32061 _ACEOF
32062 cat confdefs.h >>conftest.$ac_ext
32063 cat >>conftest.$ac_ext <<_ACEOF
32064 /* end confdefs.h.  */
32065 $ac_includes_default
32066 int
32067 main ()
32068 {
32069 static struct stat ac_aggr;
32070 if (sizeof ac_aggr.st_blksize)
32071 return 0;
32072   ;
32073   return 0;
32074 }
32075 _ACEOF
32076 rm -f conftest.$ac_objext
32077 if { (ac_try="$ac_compile"
32078 case "(($ac_try" in
32079   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32080   *) ac_try_echo=$ac_try;;
32081 esac
32082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32083   (eval "$ac_compile") 2>conftest.er1
32084   ac_status=$?
32085   grep -v '^ *+' conftest.er1 >conftest.err
32086   rm -f conftest.er1
32087   cat conftest.err >&5
32088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32089   (exit $ac_status); } && {
32090          test -z "$ac_cxx_werror_flag" ||
32091          test ! -s conftest.err
32092        } && test -s conftest.$ac_objext; then
32093   ac_cv_member_struct_stat_st_blksize=yes
32094 else
32095   echo "$as_me: failed program was:" >&5
32096 sed 's/^/| /' conftest.$ac_ext >&5
32097
32098         ac_cv_member_struct_stat_st_blksize=no
32099 fi
32100
32101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32102 fi
32103
32104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32105 fi
32106 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
32107 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
32108 if test $ac_cv_member_struct_stat_st_blksize = yes; then
32109
32110 cat >>confdefs.h <<_ACEOF
32111 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
32112 _ACEOF
32113
32114
32115 cat >>confdefs.h <<\_ACEOF
32116 #define HAVE_ST_BLKSIZE 1
32117 _ACEOF
32118
32119 fi
32120
32121
32122 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
32123 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
32124 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
32125   echo $ECHO_N "(cached) $ECHO_C" >&6
32126 else
32127   cat >conftest.$ac_ext <<_ACEOF
32128 /* confdefs.h.  */
32129 _ACEOF
32130 cat confdefs.h >>conftest.$ac_ext
32131 cat >>conftest.$ac_ext <<_ACEOF
32132 /* end confdefs.h.  */
32133 $ac_includes_default
32134 int
32135 main ()
32136 {
32137 static struct stat ac_aggr;
32138 if (ac_aggr.st_blocks)
32139 return 0;
32140   ;
32141   return 0;
32142 }
32143 _ACEOF
32144 rm -f conftest.$ac_objext
32145 if { (ac_try="$ac_compile"
32146 case "(($ac_try" in
32147   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32148   *) ac_try_echo=$ac_try;;
32149 esac
32150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32151   (eval "$ac_compile") 2>conftest.er1
32152   ac_status=$?
32153   grep -v '^ *+' conftest.er1 >conftest.err
32154   rm -f conftest.er1
32155   cat conftest.err >&5
32156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32157   (exit $ac_status); } && {
32158          test -z "$ac_cxx_werror_flag" ||
32159          test ! -s conftest.err
32160        } && test -s conftest.$ac_objext; then
32161   ac_cv_member_struct_stat_st_blocks=yes
32162 else
32163   echo "$as_me: failed program was:" >&5
32164 sed 's/^/| /' conftest.$ac_ext >&5
32165
32166         cat >conftest.$ac_ext <<_ACEOF
32167 /* confdefs.h.  */
32168 _ACEOF
32169 cat confdefs.h >>conftest.$ac_ext
32170 cat >>conftest.$ac_ext <<_ACEOF
32171 /* end confdefs.h.  */
32172 $ac_includes_default
32173 int
32174 main ()
32175 {
32176 static struct stat ac_aggr;
32177 if (sizeof ac_aggr.st_blocks)
32178 return 0;
32179   ;
32180   return 0;
32181 }
32182 _ACEOF
32183 rm -f conftest.$ac_objext
32184 if { (ac_try="$ac_compile"
32185 case "(($ac_try" in
32186   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32187   *) ac_try_echo=$ac_try;;
32188 esac
32189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32190   (eval "$ac_compile") 2>conftest.er1
32191   ac_status=$?
32192   grep -v '^ *+' conftest.er1 >conftest.err
32193   rm -f conftest.er1
32194   cat conftest.err >&5
32195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32196   (exit $ac_status); } && {
32197          test -z "$ac_cxx_werror_flag" ||
32198          test ! -s conftest.err
32199        } && test -s conftest.$ac_objext; then
32200   ac_cv_member_struct_stat_st_blocks=yes
32201 else
32202   echo "$as_me: failed program was:" >&5
32203 sed 's/^/| /' conftest.$ac_ext >&5
32204
32205         ac_cv_member_struct_stat_st_blocks=no
32206 fi
32207
32208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
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_member_struct_stat_st_blocks" >&5
32214 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
32215 if test $ac_cv_member_struct_stat_st_blocks = yes; then
32216
32217 cat >>confdefs.h <<_ACEOF
32218 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
32219 _ACEOF
32220
32221
32222 cat >>confdefs.h <<\_ACEOF
32223 #define HAVE_ST_BLOCKS 1
32224 _ACEOF
32225
32226 else
32227   case " $LIBOBJS " in
32228   *" fileblocks.$ac_objext "* ) ;;
32229   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
32230  ;;
32231 esac
32232
32233 fi
32234
32235
32236 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
32237 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
32238 if test "${ac_cv_struct_tm+set}" = set; then
32239   echo $ECHO_N "(cached) $ECHO_C" >&6
32240 else
32241   cat >conftest.$ac_ext <<_ACEOF
32242 /* confdefs.h.  */
32243 _ACEOF
32244 cat confdefs.h >>conftest.$ac_ext
32245 cat >>conftest.$ac_ext <<_ACEOF
32246 /* end confdefs.h.  */
32247 #include <sys/types.h>
32248 #include <time.h>
32249
32250 int
32251 main ()
32252 {
32253 struct tm tm;
32254                                      int *p = &tm.tm_sec;
32255                                      return !p;
32256   ;
32257   return 0;
32258 }
32259 _ACEOF
32260 rm -f conftest.$ac_objext
32261 if { (ac_try="$ac_compile"
32262 case "(($ac_try" in
32263   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32264   *) ac_try_echo=$ac_try;;
32265 esac
32266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32267   (eval "$ac_compile") 2>conftest.er1
32268   ac_status=$?
32269   grep -v '^ *+' conftest.er1 >conftest.err
32270   rm -f conftest.er1
32271   cat conftest.err >&5
32272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32273   (exit $ac_status); } && {
32274          test -z "$ac_cxx_werror_flag" ||
32275          test ! -s conftest.err
32276        } && test -s conftest.$ac_objext; then
32277   ac_cv_struct_tm=time.h
32278 else
32279   echo "$as_me: failed program was:" >&5
32280 sed 's/^/| /' conftest.$ac_ext >&5
32281
32282         ac_cv_struct_tm=sys/time.h
32283 fi
32284
32285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32286 fi
32287 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
32288 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
32289 if test $ac_cv_struct_tm = sys/time.h; then
32290
32291 cat >>confdefs.h <<\_ACEOF
32292 #define TM_IN_SYS_TIME 1
32293 _ACEOF
32294
32295 fi
32296
32297 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
32298 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
32299 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
32300   echo $ECHO_N "(cached) $ECHO_C" >&6
32301 else
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 #include <sys/types.h>
32309 #include <$ac_cv_struct_tm>
32310
32311
32312 int
32313 main ()
32314 {
32315 static struct tm ac_aggr;
32316 if (ac_aggr.tm_zone)
32317 return 0;
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_cxx_werror_flag" ||
32337          test ! -s conftest.err
32338        } && test -s conftest.$ac_objext; then
32339   ac_cv_member_struct_tm_tm_zone=yes
32340 else
32341   echo "$as_me: failed program was:" >&5
32342 sed 's/^/| /' conftest.$ac_ext >&5
32343
32344         cat >conftest.$ac_ext <<_ACEOF
32345 /* confdefs.h.  */
32346 _ACEOF
32347 cat confdefs.h >>conftest.$ac_ext
32348 cat >>conftest.$ac_ext <<_ACEOF
32349 /* end confdefs.h.  */
32350 #include <sys/types.h>
32351 #include <$ac_cv_struct_tm>
32352
32353
32354 int
32355 main ()
32356 {
32357 static struct tm ac_aggr;
32358 if (sizeof ac_aggr.tm_zone)
32359 return 0;
32360   ;
32361   return 0;
32362 }
32363 _ACEOF
32364 rm -f conftest.$ac_objext
32365 if { (ac_try="$ac_compile"
32366 case "(($ac_try" in
32367   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32368   *) ac_try_echo=$ac_try;;
32369 esac
32370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32371   (eval "$ac_compile") 2>conftest.er1
32372   ac_status=$?
32373   grep -v '^ *+' conftest.er1 >conftest.err
32374   rm -f conftest.er1
32375   cat conftest.err >&5
32376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32377   (exit $ac_status); } && {
32378          test -z "$ac_cxx_werror_flag" ||
32379          test ! -s conftest.err
32380        } && test -s conftest.$ac_objext; then
32381   ac_cv_member_struct_tm_tm_zone=yes
32382 else
32383   echo "$as_me: failed program was:" >&5
32384 sed 's/^/| /' conftest.$ac_ext >&5
32385
32386         ac_cv_member_struct_tm_tm_zone=no
32387 fi
32388
32389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32390 fi
32391
32392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32393 fi
32394 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
32395 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
32396 if test $ac_cv_member_struct_tm_tm_zone = yes; then
32397
32398 cat >>confdefs.h <<_ACEOF
32399 #define HAVE_STRUCT_TM_TM_ZONE 1
32400 _ACEOF
32401
32402
32403 fi
32404
32405 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
32406
32407 cat >>confdefs.h <<\_ACEOF
32408 #define HAVE_TM_ZONE 1
32409 _ACEOF
32410
32411 else
32412   { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
32413 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
32414 if test "${ac_cv_have_decl_tzname+set}" = set; then
32415   echo $ECHO_N "(cached) $ECHO_C" >&6
32416 else
32417   cat >conftest.$ac_ext <<_ACEOF
32418 /* confdefs.h.  */
32419 _ACEOF
32420 cat confdefs.h >>conftest.$ac_ext
32421 cat >>conftest.$ac_ext <<_ACEOF
32422 /* end confdefs.h.  */
32423 #include <time.h>
32424
32425 int
32426 main ()
32427 {
32428 #ifndef tzname
32429   (void) tzname;
32430 #endif
32431
32432   ;
32433   return 0;
32434 }
32435 _ACEOF
32436 rm -f conftest.$ac_objext
32437 if { (ac_try="$ac_compile"
32438 case "(($ac_try" in
32439   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32440   *) ac_try_echo=$ac_try;;
32441 esac
32442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32443   (eval "$ac_compile") 2>conftest.er1
32444   ac_status=$?
32445   grep -v '^ *+' conftest.er1 >conftest.err
32446   rm -f conftest.er1
32447   cat conftest.err >&5
32448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32449   (exit $ac_status); } && {
32450          test -z "$ac_cxx_werror_flag" ||
32451          test ! -s conftest.err
32452        } && test -s conftest.$ac_objext; then
32453   ac_cv_have_decl_tzname=yes
32454 else
32455   echo "$as_me: failed program was:" >&5
32456 sed 's/^/| /' conftest.$ac_ext >&5
32457
32458         ac_cv_have_decl_tzname=no
32459 fi
32460
32461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32462 fi
32463 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
32464 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
32465 if test $ac_cv_have_decl_tzname = yes; then
32466
32467 cat >>confdefs.h <<_ACEOF
32468 #define HAVE_DECL_TZNAME 1
32469 _ACEOF
32470
32471
32472 else
32473   cat >>confdefs.h <<_ACEOF
32474 #define HAVE_DECL_TZNAME 0
32475 _ACEOF
32476
32477
32478 fi
32479
32480
32481   { echo "$as_me:$LINENO: checking for tzname" >&5
32482 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
32483 if test "${ac_cv_var_tzname+set}" = set; then
32484   echo $ECHO_N "(cached) $ECHO_C" >&6
32485 else
32486   cat >conftest.$ac_ext <<_ACEOF
32487 /* confdefs.h.  */
32488 _ACEOF
32489 cat confdefs.h >>conftest.$ac_ext
32490 cat >>conftest.$ac_ext <<_ACEOF
32491 /* end confdefs.h.  */
32492 #include <time.h>
32493 #if !HAVE_DECL_TZNAME
32494 extern char *tzname[];
32495 #endif
32496
32497 int
32498 main ()
32499 {
32500 return tzname[0][0];
32501   ;
32502   return 0;
32503 }
32504 _ACEOF
32505 rm -f conftest.$ac_objext conftest$ac_exeext
32506 if { (ac_try="$ac_link"
32507 case "(($ac_try" in
32508   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32509   *) ac_try_echo=$ac_try;;
32510 esac
32511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32512   (eval "$ac_link") 2>conftest.er1
32513   ac_status=$?
32514   grep -v '^ *+' conftest.er1 >conftest.err
32515   rm -f conftest.er1
32516   cat conftest.err >&5
32517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32518   (exit $ac_status); } && {
32519          test -z "$ac_cxx_werror_flag" ||
32520          test ! -s conftest.err
32521        } && test -s conftest$ac_exeext &&
32522        $as_test_x conftest$ac_exeext; then
32523   ac_cv_var_tzname=yes
32524 else
32525   echo "$as_me: failed program was:" >&5
32526 sed 's/^/| /' conftest.$ac_ext >&5
32527
32528         ac_cv_var_tzname=no
32529 fi
32530
32531 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32532       conftest$ac_exeext conftest.$ac_ext
32533 fi
32534 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
32535 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
32536   if test $ac_cv_var_tzname = yes; then
32537
32538 cat >>confdefs.h <<\_ACEOF
32539 #define HAVE_TZNAME 1
32540 _ACEOF
32541
32542   fi
32543 fi
32544
32545
32546 { echo "$as_me:$LINENO: checking for utime.h" >&5
32547 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6; }
32548 if test "${ba_cv_header_utime_h+set}" = set; then
32549   echo $ECHO_N "(cached) $ECHO_C" >&6
32550 else
32551
32552        cat >conftest.$ac_ext <<_ACEOF
32553 /* confdefs.h.  */
32554 _ACEOF
32555 cat confdefs.h >>conftest.$ac_ext
32556 cat >>conftest.$ac_ext <<_ACEOF
32557 /* end confdefs.h.  */
32558
32559               #include <sys/types.h>
32560               #include <utime.h>
32561
32562 int
32563 main ()
32564 {
32565
32566               struct utimbuf foo
32567
32568   ;
32569   return 0;
32570 }
32571 _ACEOF
32572 rm -f conftest.$ac_objext
32573 if { (ac_try="$ac_compile"
32574 case "(($ac_try" in
32575   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32576   *) ac_try_echo=$ac_try;;
32577 esac
32578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32579   (eval "$ac_compile") 2>conftest.er1
32580   ac_status=$?
32581   grep -v '^ *+' conftest.er1 >conftest.err
32582   rm -f conftest.er1
32583   cat conftest.err >&5
32584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32585   (exit $ac_status); } && {
32586          test -z "$ac_cxx_werror_flag" ||
32587          test ! -s conftest.err
32588        } && test -s conftest.$ac_objext; then
32589
32590               ba_cv_header_utime_h=yes
32591
32592 else
32593   echo "$as_me: failed program was:" >&5
32594 sed 's/^/| /' conftest.$ac_ext >&5
32595
32596
32597               ba_cv_header_utime_h=no
32598
32599
32600 fi
32601
32602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32603
32604
32605 fi
32606 { echo "$as_me:$LINENO: result: $ba_cv_header_utime_h" >&5
32607 echo "${ECHO_T}$ba_cv_header_utime_h" >&6; }
32608 test $ba_cv_header_utime_h = yes &&
32609 cat >>confdefs.h <<\_ACEOF
32610 #define HAVE_UTIME_H 1
32611 _ACEOF
32612
32613
32614 { echo "$as_me:$LINENO: checking for socklen_t" >&5
32615 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
32616 if test "${ba_cv_header_socklen_t+set}" = set; then
32617   echo $ECHO_N "(cached) $ECHO_C" >&6
32618 else
32619
32620        cat >conftest.$ac_ext <<_ACEOF
32621 /* confdefs.h.  */
32622 _ACEOF
32623 cat confdefs.h >>conftest.$ac_ext
32624 cat >>conftest.$ac_ext <<_ACEOF
32625 /* end confdefs.h.  */
32626
32627               #include <sys/types.h>
32628               #include <sys/socket.h>
32629
32630 int
32631 main ()
32632 {
32633
32634               socklen_t x
32635
32636   ;
32637   return 0;
32638 }
32639 _ACEOF
32640 rm -f conftest.$ac_objext
32641 if { (ac_try="$ac_compile"
32642 case "(($ac_try" in
32643   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32644   *) ac_try_echo=$ac_try;;
32645 esac
32646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32647   (eval "$ac_compile") 2>conftest.er1
32648   ac_status=$?
32649   grep -v '^ *+' conftest.er1 >conftest.err
32650   rm -f conftest.er1
32651   cat conftest.err >&5
32652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32653   (exit $ac_status); } && {
32654          test -z "$ac_cxx_werror_flag" ||
32655          test ! -s conftest.err
32656        } && test -s conftest.$ac_objext; then
32657
32658              ba_cv_header_socklen_t=yes
32659
32660 else
32661   echo "$as_me: failed program was:" >&5
32662 sed 's/^/| /' conftest.$ac_ext >&5
32663
32664
32665              ba_cv_header_socklen_t=no
32666
32667
32668 fi
32669
32670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32671
32672
32673 fi
32674 { echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
32675 echo "${ECHO_T}$ba_cv_header_socklen_t" >&6; }
32676 test $ba_cv_header_socklen_t = yes &&
32677 cat >>confdefs.h <<\_ACEOF
32678 #define HAVE_SOCKLEN_T 1
32679 _ACEOF
32680
32681
32682 { echo "$as_me:$LINENO: checking for ioctl_req_t" >&5
32683 echo $ECHO_N "checking for ioctl_req_t... $ECHO_C" >&6; }
32684 if test "${ba_cv_header_ioctl_req_t+set}" = set; then
32685   echo $ECHO_N "(cached) $ECHO_C" >&6
32686 else
32687
32688        cat >conftest.$ac_ext <<_ACEOF
32689 /* confdefs.h.  */
32690 _ACEOF
32691 cat confdefs.h >>conftest.$ac_ext
32692 cat >>conftest.$ac_ext <<_ACEOF
32693 /* end confdefs.h.  */
32694
32695               #include <unistd.h>
32696               #include <sys/types.h>
32697               #include <sys/ioctl.h>
32698
32699 int
32700 main ()
32701 {
32702
32703               unsigned long int req = 0;
32704               int fd = 0;
32705               ioctl(fd, req);
32706
32707   ;
32708   return 0;
32709 }
32710 _ACEOF
32711 rm -f conftest.$ac_objext
32712 if { (ac_try="$ac_compile"
32713 case "(($ac_try" in
32714   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32715   *) ac_try_echo=$ac_try;;
32716 esac
32717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32718   (eval "$ac_compile") 2>conftest.er1
32719   ac_status=$?
32720   grep -v '^ *+' conftest.er1 >conftest.err
32721   rm -f conftest.er1
32722   cat conftest.err >&5
32723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32724   (exit $ac_status); } && {
32725          test -z "$ac_cxx_werror_flag" ||
32726          test ! -s conftest.err
32727        } && test -s conftest.$ac_objext; then
32728
32729              ba_cv_header_ioctl_req_t=yes
32730
32731 else
32732   echo "$as_me: failed program was:" >&5
32733 sed 's/^/| /' conftest.$ac_ext >&5
32734
32735
32736              ba_cv_header_ioct_req_t_t=no
32737
32738
32739 fi
32740
32741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32742
32743
32744 fi
32745 { echo "$as_me:$LINENO: result: $ba_cv_header_ioctl_req_t" >&5
32746 echo "${ECHO_T}$ba_cv_header_ioctl_req_t" >&6; }
32747 test $ba_cv_header_ioctl_req_t = yes &&
32748 cat >>confdefs.h <<\_ACEOF
32749 #define HAVE_IOCTL_ULINT_REQUEST 1
32750 _ACEOF
32751
32752
32753
32754 ac_ext=cpp
32755 ac_cpp='$CXXCPP $CPPFLAGS'
32756 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32757 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32758 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32759
32760 { echo "$as_me:$LINENO: checking for typeof" >&5
32761 echo $ECHO_N "checking for typeof... $ECHO_C" >&6; }
32762 if test "${ba_cv_have_typeof+set}" = set; then
32763   echo $ECHO_N "(cached) $ECHO_C" >&6
32764 else
32765
32766        if test "$cross_compiling" = yes; then
32767
32768               ba_cv_have_typeof=no
32769
32770
32771 else
32772   cat >conftest.$ac_ext <<_ACEOF
32773 /* confdefs.h.  */
32774 _ACEOF
32775 cat confdefs.h >>conftest.$ac_ext
32776 cat >>conftest.$ac_ext <<_ACEOF
32777 /* end confdefs.h.  */
32778
32779               main(){char *a = 0; a = (typeof a)a;}
32780
32781 _ACEOF
32782 rm -f conftest$ac_exeext
32783 if { (ac_try="$ac_link"
32784 case "(($ac_try" in
32785   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32786   *) ac_try_echo=$ac_try;;
32787 esac
32788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32789   (eval "$ac_link") 2>&5
32790   ac_status=$?
32791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32792   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32793   { (case "(($ac_try" in
32794   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32795   *) ac_try_echo=$ac_try;;
32796 esac
32797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32798   (eval "$ac_try") 2>&5
32799   ac_status=$?
32800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32801   (exit $ac_status); }; }; then
32802
32803               ba_cv_have_typeof=yes
32804
32805 else
32806   echo "$as_me: program exited with status $ac_status" >&5
32807 echo "$as_me: failed program was:" >&5
32808 sed 's/^/| /' conftest.$ac_ext >&5
32809
32810 ( exit $ac_status )
32811
32812               ba_cv_have_typeof=no
32813
32814 fi
32815 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32816 fi
32817
32818
32819
32820
32821 fi
32822 { echo "$as_me:$LINENO: result: $ba_cv_have_typeof" >&5
32823 echo "${ECHO_T}$ba_cv_have_typeof" >&6; }
32824 test $ba_cv_have_typeof = yes &&
32825 cat >>confdefs.h <<\_ACEOF
32826 #define HAVE_TYPEOF 1
32827 _ACEOF
32828
32829 ac_ext=cpp
32830 ac_cpp='$CXXCPP $CPPFLAGS'
32831 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32832 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32833 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32834
32835
32836 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
32837 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
32838 if test "${ac_cv_c_const+set}" = set; then
32839   echo $ECHO_N "(cached) $ECHO_C" >&6
32840 else
32841   cat >conftest.$ac_ext <<_ACEOF
32842 /* confdefs.h.  */
32843 _ACEOF
32844 cat confdefs.h >>conftest.$ac_ext
32845 cat >>conftest.$ac_ext <<_ACEOF
32846 /* end confdefs.h.  */
32847
32848 int
32849 main ()
32850 {
32851 /* FIXME: Include the comments suggested by Paul. */
32852 #ifndef __cplusplus
32853   /* Ultrix mips cc rejects this.  */
32854   typedef int charset[2];
32855   const charset cs;
32856   /* SunOS 4.1.1 cc rejects this.  */
32857   char const *const *pcpcc;
32858   char **ppc;
32859   /* NEC SVR4.0.2 mips cc rejects this.  */
32860   struct point {int x, y;};
32861   static struct point const zero = {0,0};
32862   /* AIX XL C 1.02.0.0 rejects this.
32863      It does not let you subtract one const X* pointer from another in
32864      an arm of an if-expression whose if-part is not a constant
32865      expression */
32866   const char *g = "string";
32867   pcpcc = &g + (g ? g-g : 0);
32868   /* HPUX 7.0 cc rejects these. */
32869   ++pcpcc;
32870   ppc = (char**) pcpcc;
32871   pcpcc = (char const *const *) ppc;
32872   { /* SCO 3.2v4 cc rejects this.  */
32873     char *t;
32874     char const *s = 0 ? (char *) 0 : (char const *) 0;
32875
32876     *t++ = 0;
32877     if (s) return 0;
32878   }
32879   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
32880     int x[] = {25, 17};
32881     const int *foo = &x[0];
32882     ++foo;
32883   }
32884   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
32885     typedef const int *iptr;
32886     iptr p = 0;
32887     ++p;
32888   }
32889   { /* AIX XL C 1.02.0.0 rejects this saying
32890        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
32891     struct s { int j; const int *ap[3]; };
32892     struct s *b; b->j = 5;
32893   }
32894   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
32895     const int foo = 10;
32896     if (!foo) return 0;
32897   }
32898   return !cs[0] && !zero.x;
32899 #endif
32900
32901   ;
32902   return 0;
32903 }
32904 _ACEOF
32905 rm -f conftest.$ac_objext
32906 if { (ac_try="$ac_compile"
32907 case "(($ac_try" in
32908   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32909   *) ac_try_echo=$ac_try;;
32910 esac
32911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32912   (eval "$ac_compile") 2>conftest.er1
32913   ac_status=$?
32914   grep -v '^ *+' conftest.er1 >conftest.err
32915   rm -f conftest.er1
32916   cat conftest.err >&5
32917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32918   (exit $ac_status); } && {
32919          test -z "$ac_cxx_werror_flag" ||
32920          test ! -s conftest.err
32921        } && test -s conftest.$ac_objext; then
32922   ac_cv_c_const=yes
32923 else
32924   echo "$as_me: failed program was:" >&5
32925 sed 's/^/| /' conftest.$ac_ext >&5
32926
32927         ac_cv_c_const=no
32928 fi
32929
32930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32931 fi
32932 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
32933 echo "${ECHO_T}$ac_cv_c_const" >&6; }
32934 if test $ac_cv_c_const = no; then
32935
32936 cat >>confdefs.h <<\_ACEOF
32937 #define const
32938 _ACEOF
32939
32940 fi
32941
32942
32943 { echo "$as_me:$LINENO: checking how to get filesystem type" >&5
32944 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" >&6; }
32945 fstype=no
32946 # The order of these tests is important.
32947 cat >conftest.$ac_ext <<_ACEOF
32948 /* confdefs.h.  */
32949 _ACEOF
32950 cat confdefs.h >>conftest.$ac_ext
32951 cat >>conftest.$ac_ext <<_ACEOF
32952 /* end confdefs.h.  */
32953
32954        #include <sys/statvfs.h>
32955        #include <sys/fstyp.h>
32956
32957 _ACEOF
32958 if { (ac_try="$ac_cpp conftest.$ac_ext"
32959 case "(($ac_try" in
32960   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32961   *) ac_try_echo=$ac_try;;
32962 esac
32963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32964   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32965   ac_status=$?
32966   grep -v '^ *+' conftest.er1 >conftest.err
32967   rm -f conftest.er1
32968   cat conftest.err >&5
32969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32970   (exit $ac_status); } >/dev/null && {
32971          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
32972          test ! -s conftest.err
32973        }; then
32974   cat >>confdefs.h <<\_ACEOF
32975 #define FSTYPE_STATVFS 1
32976 _ACEOF
32977  fstype=SVR4
32978
32979 else
32980   echo "$as_me: failed program was:" >&5
32981 sed 's/^/| /' conftest.$ac_ext >&5
32982
32983
32984 fi
32985
32986 rm -f conftest.err conftest.$ac_ext
32987 if test $fstype = no; then
32988    cat >conftest.$ac_ext <<_ACEOF
32989 /* confdefs.h.  */
32990 _ACEOF
32991 cat confdefs.h >>conftest.$ac_ext
32992 cat >>conftest.$ac_ext <<_ACEOF
32993 /* end confdefs.h.  */
32994
32995           #include <sys/statfs.h>
32996           #include <sys/fstyp.h>
32997
32998 _ACEOF
32999 if { (ac_try="$ac_cpp conftest.$ac_ext"
33000 case "(($ac_try" in
33001   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33002   *) ac_try_echo=$ac_try;;
33003 esac
33004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33005   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33006   ac_status=$?
33007   grep -v '^ *+' conftest.er1 >conftest.err
33008   rm -f conftest.er1
33009   cat conftest.err >&5
33010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33011   (exit $ac_status); } >/dev/null && {
33012          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
33013          test ! -s conftest.err
33014        }; then
33015   cat >>confdefs.h <<\_ACEOF
33016 #define FSTYPE_USG_STATFS 1
33017 _ACEOF
33018  fstype=SVR3
33019
33020 else
33021   echo "$as_me: failed program was:" >&5
33022 sed 's/^/| /' conftest.$ac_ext >&5
33023
33024
33025 fi
33026
33027 rm -f conftest.err conftest.$ac_ext
33028 fi
33029 if test $fstype = no; then
33030    cat >conftest.$ac_ext <<_ACEOF
33031 /* confdefs.h.  */
33032 _ACEOF
33033 cat confdefs.h >>conftest.$ac_ext
33034 cat >>conftest.$ac_ext <<_ACEOF
33035 /* end confdefs.h.  */
33036
33037           #include <sys/statfs.h>
33038           #include <sys/vmount.h>
33039
33040 _ACEOF
33041 if { (ac_try="$ac_cpp conftest.$ac_ext"
33042 case "(($ac_try" in
33043   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33044   *) ac_try_echo=$ac_try;;
33045 esac
33046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33047   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33048   ac_status=$?
33049   grep -v '^ *+' conftest.er1 >conftest.err
33050   rm -f conftest.er1
33051   cat conftest.err >&5
33052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33053   (exit $ac_status); } >/dev/null && {
33054          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
33055          test ! -s conftest.err
33056        }; then
33057   cat >>confdefs.h <<\_ACEOF
33058 #define FSTYPE_AIX_STATFS 1
33059 _ACEOF
33060  fstype=AIX
33061
33062 else
33063   echo "$as_me: failed program was:" >&5
33064 sed 's/^/| /' conftest.$ac_ext >&5
33065
33066
33067 fi
33068
33069 rm -f conftest.err conftest.$ac_ext
33070 fi
33071 if test $fstype = no; then
33072    cat >conftest.$ac_ext <<_ACEOF
33073 /* confdefs.h.  */
33074 _ACEOF
33075 cat confdefs.h >>conftest.$ac_ext
33076 cat >>conftest.$ac_ext <<_ACEOF
33077 /* end confdefs.h.  */
33078
33079           #include <mntent.h>
33080
33081 _ACEOF
33082 if { (ac_try="$ac_cpp conftest.$ac_ext"
33083 case "(($ac_try" in
33084   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33085   *) ac_try_echo=$ac_try;;
33086 esac
33087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33088   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33089   ac_status=$?
33090   grep -v '^ *+' conftest.er1 >conftest.err
33091   rm -f conftest.er1
33092   cat conftest.err >&5
33093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33094   (exit $ac_status); } >/dev/null && {
33095          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
33096          test ! -s conftest.err
33097        }; then
33098   cat >>confdefs.h <<\_ACEOF
33099 #define FSTYPE_MNTENT 1
33100 _ACEOF
33101  fstype=4.3BSD
33102
33103 else
33104   echo "$as_me: failed program was:" >&5
33105 sed 's/^/| /' conftest.$ac_ext >&5
33106
33107
33108 fi
33109
33110 rm -f conftest.err conftest.$ac_ext
33111 fi
33112 if test $fstype = no; then
33113    cat >conftest.$ac_ext <<_ACEOF
33114 /* confdefs.h.  */
33115 _ACEOF
33116 cat confdefs.h >>conftest.$ac_ext
33117 cat >>conftest.$ac_ext <<_ACEOF
33118 /* end confdefs.h.  */
33119 #include <sys/mount.h>
33120
33121 _ACEOF
33122 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33123   $EGREP "f_type;" >/dev/null 2>&1; then
33124   cat >>confdefs.h <<\_ACEOF
33125 #define FSTYPE_STATFS 1
33126 _ACEOF
33127  fstype=4.4BSD/OSF1
33128 fi
33129 rm -f conftest*
33130
33131 fi
33132 if test $fstype = no; then
33133    cat >conftest.$ac_ext <<_ACEOF
33134 /* confdefs.h.  */
33135 _ACEOF
33136 cat confdefs.h >>conftest.$ac_ext
33137 cat >>conftest.$ac_ext <<_ACEOF
33138 /* end confdefs.h.  */
33139
33140           #include <sys/mount.h>
33141           #include <sys/fs_types.h>
33142
33143 _ACEOF
33144 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 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); } >/dev/null && {
33157          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
33158          test ! -s conftest.err
33159        }; then
33160   cat >>confdefs.h <<\_ACEOF
33161 #define FSTYPE_GETMNT 1
33162 _ACEOF
33163  fstype=Ultrix
33164
33165 else
33166   echo "$as_me: failed program was:" >&5
33167 sed 's/^/| /' conftest.$ac_ext >&5
33168
33169
33170 fi
33171
33172 rm -f conftest.err conftest.$ac_ext
33173 fi
33174 { echo "$as_me:$LINENO: result: $fstype" >&5
33175 echo "${ECHO_T}$fstype" >&6; }
33176
33177 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
33178   { echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
33179 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6; }
33180 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
33181   echo $ECHO_N "(cached) $ECHO_C" >&6
33182 fi
33183 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
33184 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6; }
33185 else
33186   # Is the header compilable?
33187 { echo "$as_me:$LINENO: checking sys/statvfs.h usability" >&5
33188 echo $ECHO_N "checking sys/statvfs.h usability... $ECHO_C" >&6; }
33189 cat >conftest.$ac_ext <<_ACEOF
33190 /* confdefs.h.  */
33191 _ACEOF
33192 cat confdefs.h >>conftest.$ac_ext
33193 cat >>conftest.$ac_ext <<_ACEOF
33194 /* end confdefs.h.  */
33195 $ac_includes_default
33196 #include <sys/statvfs.h>
33197 _ACEOF
33198 rm -f conftest.$ac_objext
33199 if { (ac_try="$ac_compile"
33200 case "(($ac_try" in
33201   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33202   *) ac_try_echo=$ac_try;;
33203 esac
33204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33205   (eval "$ac_compile") 2>conftest.er1
33206   ac_status=$?
33207   grep -v '^ *+' conftest.er1 >conftest.err
33208   rm -f conftest.er1
33209   cat conftest.err >&5
33210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33211   (exit $ac_status); } && {
33212          test -z "$ac_cxx_werror_flag" ||
33213          test ! -s conftest.err
33214        } && test -s conftest.$ac_objext; then
33215   ac_header_compiler=yes
33216 else
33217   echo "$as_me: failed program was:" >&5
33218 sed 's/^/| /' conftest.$ac_ext >&5
33219
33220         ac_header_compiler=no
33221 fi
33222
33223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33224 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33225 echo "${ECHO_T}$ac_header_compiler" >&6; }
33226
33227 # Is the header present?
33228 { echo "$as_me:$LINENO: checking sys/statvfs.h presence" >&5
33229 echo $ECHO_N "checking sys/statvfs.h presence... $ECHO_C" >&6; }
33230 cat >conftest.$ac_ext <<_ACEOF
33231 /* confdefs.h.  */
33232 _ACEOF
33233 cat confdefs.h >>conftest.$ac_ext
33234 cat >>conftest.$ac_ext <<_ACEOF
33235 /* end confdefs.h.  */
33236 #include <sys/statvfs.h>
33237 _ACEOF
33238 if { (ac_try="$ac_cpp conftest.$ac_ext"
33239 case "(($ac_try" in
33240   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33241   *) ac_try_echo=$ac_try;;
33242 esac
33243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33244   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33245   ac_status=$?
33246   grep -v '^ *+' conftest.er1 >conftest.err
33247   rm -f conftest.er1
33248   cat conftest.err >&5
33249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33250   (exit $ac_status); } >/dev/null && {
33251          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
33252          test ! -s conftest.err
33253        }; then
33254   ac_header_preproc=yes
33255 else
33256   echo "$as_me: failed program was:" >&5
33257 sed 's/^/| /' conftest.$ac_ext >&5
33258
33259   ac_header_preproc=no
33260 fi
33261
33262 rm -f conftest.err conftest.$ac_ext
33263 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33264 echo "${ECHO_T}$ac_header_preproc" >&6; }
33265
33266 # So?  What about this header?
33267 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
33268   yes:no: )
33269     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&5
33270 echo "$as_me: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
33271     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&5
33272 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&2;}
33273     ac_header_preproc=yes
33274     ;;
33275   no:yes:* )
33276     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: present but cannot be compiled" >&5
33277 echo "$as_me: WARNING: sys/statvfs.h: present but cannot be compiled" >&2;}
33278     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h:     check for missing prerequisite headers?" >&5
33279 echo "$as_me: WARNING: sys/statvfs.h:     check for missing prerequisite headers?" >&2;}
33280     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: see the Autoconf documentation" >&5
33281 echo "$as_me: WARNING: sys/statvfs.h: see the Autoconf documentation" >&2;}
33282     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h:     section \"Present But Cannot Be Compiled\"" >&5
33283 echo "$as_me: WARNING: sys/statvfs.h:     section \"Present But Cannot Be Compiled\"" >&2;}
33284     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&5
33285 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&2;}
33286     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&5
33287 echo "$as_me: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&2;}
33288
33289     ;;
33290 esac
33291 { echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
33292 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6; }
33293 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
33294   echo $ECHO_N "(cached) $ECHO_C" >&6
33295 else
33296   ac_cv_header_sys_statvfs_h=$ac_header_preproc
33297 fi
33298 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
33299 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6; }
33300
33301 fi
33302 if test $ac_cv_header_sys_statvfs_h = yes; then
33303
33304 cat >>confdefs.h <<\_ACEOF
33305 #define HAVE_SYS_STATVFS_H 1
33306 _ACEOF
33307
33308 fi
33309
33310
33311
33312 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
33313 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
33314 if test "${ac_cv_type_signal+set}" = set; then
33315   echo $ECHO_N "(cached) $ECHO_C" >&6
33316 else
33317   cat >conftest.$ac_ext <<_ACEOF
33318 /* confdefs.h.  */
33319 _ACEOF
33320 cat confdefs.h >>conftest.$ac_ext
33321 cat >>conftest.$ac_ext <<_ACEOF
33322 /* end confdefs.h.  */
33323 #include <sys/types.h>
33324 #include <signal.h>
33325
33326 int
33327 main ()
33328 {
33329 return *(signal (0, 0)) (0) == 1;
33330   ;
33331   return 0;
33332 }
33333 _ACEOF
33334 rm -f conftest.$ac_objext
33335 if { (ac_try="$ac_compile"
33336 case "(($ac_try" in
33337   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33338   *) ac_try_echo=$ac_try;;
33339 esac
33340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33341   (eval "$ac_compile") 2>conftest.er1
33342   ac_status=$?
33343   grep -v '^ *+' conftest.er1 >conftest.err
33344   rm -f conftest.er1
33345   cat conftest.err >&5
33346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33347   (exit $ac_status); } && {
33348          test -z "$ac_cxx_werror_flag" ||
33349          test ! -s conftest.err
33350        } && test -s conftest.$ac_objext; then
33351   ac_cv_type_signal=int
33352 else
33353   echo "$as_me: failed program was:" >&5
33354 sed 's/^/| /' conftest.$ac_ext >&5
33355
33356         ac_cv_type_signal=void
33357 fi
33358
33359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33360 fi
33361 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
33362 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
33363
33364 cat >>confdefs.h <<_ACEOF
33365 #define RETSIGTYPE $ac_cv_type_signal
33366 _ACEOF
33367
33368
33369
33370   { echo "$as_me:$LINENO: checking for type of signal functions" >&5
33371 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6; }
33372   if test "${bash_cv_signal_vintage+set}" = set; then
33373   echo $ECHO_N "(cached) $ECHO_C" >&6
33374 else
33375
33376     cat >conftest.$ac_ext <<_ACEOF
33377 /* confdefs.h.  */
33378 _ACEOF
33379 cat confdefs.h >>conftest.$ac_ext
33380 cat >>conftest.$ac_ext <<_ACEOF
33381 /* end confdefs.h.  */
33382 #include <signal.h>
33383 int
33384 main ()
33385 {
33386
33387       sigset_t ss;
33388       struct sigaction sa;
33389       sigemptyset(&ss); sigsuspend(&ss);
33390       sigaction(SIGINT, &sa, (struct sigaction *) 0);
33391       sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
33392
33393   ;
33394   return 0;
33395 }
33396 _ACEOF
33397 rm -f conftest.$ac_objext conftest$ac_exeext
33398 if { (ac_try="$ac_link"
33399 case "(($ac_try" in
33400   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33401   *) ac_try_echo=$ac_try;;
33402 esac
33403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33404   (eval "$ac_link") 2>conftest.er1
33405   ac_status=$?
33406   grep -v '^ *+' conftest.er1 >conftest.err
33407   rm -f conftest.er1
33408   cat conftest.err >&5
33409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33410   (exit $ac_status); } && {
33411          test -z "$ac_cxx_werror_flag" ||
33412          test ! -s conftest.err
33413        } && test -s conftest$ac_exeext &&
33414        $as_test_x conftest$ac_exeext; then
33415   bash_cv_signal_vintage="posix"
33416 else
33417   echo "$as_me: failed program was:" >&5
33418 sed 's/^/| /' conftest.$ac_ext >&5
33419
33420
33421       cat >conftest.$ac_ext <<_ACEOF
33422 /* confdefs.h.  */
33423 _ACEOF
33424 cat confdefs.h >>conftest.$ac_ext
33425 cat >>conftest.$ac_ext <<_ACEOF
33426 /* end confdefs.h.  */
33427 #include <signal.h>
33428 int
33429 main ()
33430 {
33431
33432           int mask = sigmask(SIGINT);
33433           sigsetmask(mask); sigblock(mask); sigpause(mask);
33434
33435   ;
33436   return 0;
33437 }
33438 _ACEOF
33439 rm -f conftest.$ac_objext conftest$ac_exeext
33440 if { (ac_try="$ac_link"
33441 case "(($ac_try" in
33442   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33443   *) ac_try_echo=$ac_try;;
33444 esac
33445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33446   (eval "$ac_link") 2>conftest.er1
33447   ac_status=$?
33448   grep -v '^ *+' conftest.er1 >conftest.err
33449   rm -f conftest.er1
33450   cat conftest.err >&5
33451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33452   (exit $ac_status); } && {
33453          test -z "$ac_cxx_werror_flag" ||
33454          test ! -s conftest.err
33455        } && test -s conftest$ac_exeext &&
33456        $as_test_x conftest$ac_exeext; then
33457   bash_cv_signal_vintage="4.2bsd"
33458 else
33459   echo "$as_me: failed program was:" >&5
33460 sed 's/^/| /' conftest.$ac_ext >&5
33461
33462
33463         cat >conftest.$ac_ext <<_ACEOF
33464 /* confdefs.h.  */
33465 _ACEOF
33466 cat confdefs.h >>conftest.$ac_ext
33467 cat >>conftest.$ac_ext <<_ACEOF
33468 /* end confdefs.h.  */
33469
33470           #include <signal.h>
33471           RETSIGTYPE foo() { }
33472 int
33473 main ()
33474 {
33475
33476                   int mask = sigmask(SIGINT);
33477                   sigset(SIGINT, foo); sigrelse(SIGINT);
33478                   sighold(SIGINT); sigpause(SIGINT);
33479
33480   ;
33481   return 0;
33482 }
33483 _ACEOF
33484 rm -f conftest.$ac_objext conftest$ac_exeext
33485 if { (ac_try="$ac_link"
33486 case "(($ac_try" in
33487   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33488   *) ac_try_echo=$ac_try;;
33489 esac
33490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33491   (eval "$ac_link") 2>conftest.er1
33492   ac_status=$?
33493   grep -v '^ *+' conftest.er1 >conftest.err
33494   rm -f conftest.er1
33495   cat conftest.err >&5
33496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33497   (exit $ac_status); } && {
33498          test -z "$ac_cxx_werror_flag" ||
33499          test ! -s conftest.err
33500        } && test -s conftest$ac_exeext &&
33501        $as_test_x conftest$ac_exeext; then
33502   bash_cv_signal_vintage="svr3"
33503 else
33504   echo "$as_me: failed program was:" >&5
33505 sed 's/^/| /' conftest.$ac_ext >&5
33506
33507         bash_cv_signal_vintage="v7"
33508
33509 fi
33510
33511 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33512       conftest$ac_exeext conftest.$ac_ext
33513
33514 fi
33515
33516 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33517       conftest$ac_exeext conftest.$ac_ext
33518
33519 fi
33520
33521 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33522       conftest$ac_exeext conftest.$ac_ext
33523
33524 fi
33525
33526   { echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
33527 echo "${ECHO_T}$bash_cv_signal_vintage" >&6; }
33528   if test "$bash_cv_signal_vintage" = "posix"; then
33529     cat >>confdefs.h <<\_ACEOF
33530 #define HAVE_POSIX_SIGNALS 1
33531 _ACEOF
33532
33533   elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
33534     cat >>confdefs.h <<\_ACEOF
33535 #define HAVE_BSD_SIGNALS 1
33536 _ACEOF
33537
33538   elif test "$bash_cv_signal_vintage" = "svr3"; then
33539     cat >>confdefs.h <<\_ACEOF
33540 #define HAVE_USG_SIGHOLD 1
33541 _ACEOF
33542
33543   fi
33544
33545 { echo "$as_me:$LINENO: checking for mode_t" >&5
33546 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
33547 if test "${ac_cv_type_mode_t+set}" = set; then
33548   echo $ECHO_N "(cached) $ECHO_C" >&6
33549 else
33550   cat >conftest.$ac_ext <<_ACEOF
33551 /* confdefs.h.  */
33552 _ACEOF
33553 cat confdefs.h >>conftest.$ac_ext
33554 cat >>conftest.$ac_ext <<_ACEOF
33555 /* end confdefs.h.  */
33556 $ac_includes_default
33557 typedef mode_t ac__type_new_;
33558 int
33559 main ()
33560 {
33561 if ((ac__type_new_ *) 0)
33562   return 0;
33563 if (sizeof (ac__type_new_))
33564   return 0;
33565   ;
33566   return 0;
33567 }
33568 _ACEOF
33569 rm -f conftest.$ac_objext
33570 if { (ac_try="$ac_compile"
33571 case "(($ac_try" in
33572   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33573   *) ac_try_echo=$ac_try;;
33574 esac
33575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33576   (eval "$ac_compile") 2>conftest.er1
33577   ac_status=$?
33578   grep -v '^ *+' conftest.er1 >conftest.err
33579   rm -f conftest.er1
33580   cat conftest.err >&5
33581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33582   (exit $ac_status); } && {
33583          test -z "$ac_cxx_werror_flag" ||
33584          test ! -s conftest.err
33585        } && test -s conftest.$ac_objext; then
33586   ac_cv_type_mode_t=yes
33587 else
33588   echo "$as_me: failed program was:" >&5
33589 sed 's/^/| /' conftest.$ac_ext >&5
33590
33591         ac_cv_type_mode_t=no
33592 fi
33593
33594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33595 fi
33596 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
33597 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
33598 if test $ac_cv_type_mode_t = yes; then
33599   :
33600 else
33601
33602 cat >>confdefs.h <<_ACEOF
33603 #define mode_t int
33604 _ACEOF
33605
33606 fi
33607
33608 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
33609 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
33610 if test "${ac_cv_type_uid_t+set}" = set; then
33611   echo $ECHO_N "(cached) $ECHO_C" >&6
33612 else
33613   cat >conftest.$ac_ext <<_ACEOF
33614 /* confdefs.h.  */
33615 _ACEOF
33616 cat confdefs.h >>conftest.$ac_ext
33617 cat >>conftest.$ac_ext <<_ACEOF
33618 /* end confdefs.h.  */
33619 #include <sys/types.h>
33620
33621 _ACEOF
33622 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33623   $EGREP "uid_t" >/dev/null 2>&1; then
33624   ac_cv_type_uid_t=yes
33625 else
33626   ac_cv_type_uid_t=no
33627 fi
33628 rm -f conftest*
33629
33630 fi
33631 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
33632 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
33633 if test $ac_cv_type_uid_t = no; then
33634
33635 cat >>confdefs.h <<\_ACEOF
33636 #define uid_t int
33637 _ACEOF
33638
33639
33640 cat >>confdefs.h <<\_ACEOF
33641 #define gid_t int
33642 _ACEOF
33643
33644 fi
33645
33646 { echo "$as_me:$LINENO: checking for size_t" >&5
33647 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
33648 if test "${ac_cv_type_size_t+set}" = set; then
33649   echo $ECHO_N "(cached) $ECHO_C" >&6
33650 else
33651   cat >conftest.$ac_ext <<_ACEOF
33652 /* confdefs.h.  */
33653 _ACEOF
33654 cat confdefs.h >>conftest.$ac_ext
33655 cat >>conftest.$ac_ext <<_ACEOF
33656 /* end confdefs.h.  */
33657 $ac_includes_default
33658 typedef size_t ac__type_new_;
33659 int
33660 main ()
33661 {
33662 if ((ac__type_new_ *) 0)
33663   return 0;
33664 if (sizeof (ac__type_new_))
33665   return 0;
33666   ;
33667   return 0;
33668 }
33669 _ACEOF
33670 rm -f conftest.$ac_objext
33671 if { (ac_try="$ac_compile"
33672 case "(($ac_try" in
33673   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33674   *) ac_try_echo=$ac_try;;
33675 esac
33676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33677   (eval "$ac_compile") 2>conftest.er1
33678   ac_status=$?
33679   grep -v '^ *+' conftest.er1 >conftest.err
33680   rm -f conftest.er1
33681   cat conftest.err >&5
33682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33683   (exit $ac_status); } && {
33684          test -z "$ac_cxx_werror_flag" ||
33685          test ! -s conftest.err
33686        } && test -s conftest.$ac_objext; then
33687   ac_cv_type_size_t=yes
33688 else
33689   echo "$as_me: failed program was:" >&5
33690 sed 's/^/| /' conftest.$ac_ext >&5
33691
33692         ac_cv_type_size_t=no
33693 fi
33694
33695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33696 fi
33697 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
33698 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
33699 if test $ac_cv_type_size_t = yes; then
33700   :
33701 else
33702
33703 cat >>confdefs.h <<_ACEOF
33704 #define size_t unsigned int
33705 _ACEOF
33706
33707 fi
33708
33709 { echo "$as_me:$LINENO: checking for pid_t" >&5
33710 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
33711 if test "${ac_cv_type_pid_t+set}" = set; then
33712   echo $ECHO_N "(cached) $ECHO_C" >&6
33713 else
33714   cat >conftest.$ac_ext <<_ACEOF
33715 /* confdefs.h.  */
33716 _ACEOF
33717 cat confdefs.h >>conftest.$ac_ext
33718 cat >>conftest.$ac_ext <<_ACEOF
33719 /* end confdefs.h.  */
33720 $ac_includes_default
33721 typedef pid_t ac__type_new_;
33722 int
33723 main ()
33724 {
33725 if ((ac__type_new_ *) 0)
33726   return 0;
33727 if (sizeof (ac__type_new_))
33728   return 0;
33729   ;
33730   return 0;
33731 }
33732 _ACEOF
33733 rm -f conftest.$ac_objext
33734 if { (ac_try="$ac_compile"
33735 case "(($ac_try" in
33736   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33737   *) ac_try_echo=$ac_try;;
33738 esac
33739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33740   (eval "$ac_compile") 2>conftest.er1
33741   ac_status=$?
33742   grep -v '^ *+' conftest.er1 >conftest.err
33743   rm -f conftest.er1
33744   cat conftest.err >&5
33745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33746   (exit $ac_status); } && {
33747          test -z "$ac_cxx_werror_flag" ||
33748          test ! -s conftest.err
33749        } && test -s conftest.$ac_objext; then
33750   ac_cv_type_pid_t=yes
33751 else
33752   echo "$as_me: failed program was:" >&5
33753 sed 's/^/| /' conftest.$ac_ext >&5
33754
33755         ac_cv_type_pid_t=no
33756 fi
33757
33758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33759 fi
33760 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
33761 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
33762 if test $ac_cv_type_pid_t = yes; then
33763   :
33764 else
33765
33766 cat >>confdefs.h <<_ACEOF
33767 #define pid_t int
33768 _ACEOF
33769
33770 fi
33771
33772 { echo "$as_me:$LINENO: checking for off_t" >&5
33773 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
33774 if test "${ac_cv_type_off_t+set}" = set; then
33775   echo $ECHO_N "(cached) $ECHO_C" >&6
33776 else
33777   cat >conftest.$ac_ext <<_ACEOF
33778 /* confdefs.h.  */
33779 _ACEOF
33780 cat confdefs.h >>conftest.$ac_ext
33781 cat >>conftest.$ac_ext <<_ACEOF
33782 /* end confdefs.h.  */
33783 $ac_includes_default
33784 typedef off_t ac__type_new_;
33785 int
33786 main ()
33787 {
33788 if ((ac__type_new_ *) 0)
33789   return 0;
33790 if (sizeof (ac__type_new_))
33791   return 0;
33792   ;
33793   return 0;
33794 }
33795 _ACEOF
33796 rm -f conftest.$ac_objext
33797 if { (ac_try="$ac_compile"
33798 case "(($ac_try" in
33799   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33800   *) ac_try_echo=$ac_try;;
33801 esac
33802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33803   (eval "$ac_compile") 2>conftest.er1
33804   ac_status=$?
33805   grep -v '^ *+' conftest.er1 >conftest.err
33806   rm -f conftest.er1
33807   cat conftest.err >&5
33808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33809   (exit $ac_status); } && {
33810          test -z "$ac_cxx_werror_flag" ||
33811          test ! -s conftest.err
33812        } && test -s conftest.$ac_objext; then
33813   ac_cv_type_off_t=yes
33814 else
33815   echo "$as_me: failed program was:" >&5
33816 sed 's/^/| /' conftest.$ac_ext >&5
33817
33818         ac_cv_type_off_t=no
33819 fi
33820
33821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33822 fi
33823 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
33824 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
33825 if test $ac_cv_type_off_t = yes; then
33826   :
33827 else
33828
33829 cat >>confdefs.h <<_ACEOF
33830 #define off_t long int
33831 _ACEOF
33832
33833 fi
33834
33835
33836   { echo "$as_me:$LINENO: checking for intptr_t" >&5
33837 echo $ECHO_N "checking for intptr_t... $ECHO_C" >&6; }
33838 if test "${ac_cv_type_intptr_t+set}" = set; then
33839   echo $ECHO_N "(cached) $ECHO_C" >&6
33840 else
33841   cat >conftest.$ac_ext <<_ACEOF
33842 /* confdefs.h.  */
33843 _ACEOF
33844 cat confdefs.h >>conftest.$ac_ext
33845 cat >>conftest.$ac_ext <<_ACEOF
33846 /* end confdefs.h.  */
33847 $ac_includes_default
33848 typedef intptr_t ac__type_new_;
33849 int
33850 main ()
33851 {
33852 if ((ac__type_new_ *) 0)
33853   return 0;
33854 if (sizeof (ac__type_new_))
33855   return 0;
33856   ;
33857   return 0;
33858 }
33859 _ACEOF
33860 rm -f conftest.$ac_objext
33861 if { (ac_try="$ac_compile"
33862 case "(($ac_try" in
33863   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33864   *) ac_try_echo=$ac_try;;
33865 esac
33866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33867   (eval "$ac_compile") 2>conftest.er1
33868   ac_status=$?
33869   grep -v '^ *+' conftest.er1 >conftest.err
33870   rm -f conftest.er1
33871   cat conftest.err >&5
33872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33873   (exit $ac_status); } && {
33874          test -z "$ac_cxx_werror_flag" ||
33875          test ! -s conftest.err
33876        } && test -s conftest.$ac_objext; then
33877   ac_cv_type_intptr_t=yes
33878 else
33879   echo "$as_me: failed program was:" >&5
33880 sed 's/^/| /' conftest.$ac_ext >&5
33881
33882         ac_cv_type_intptr_t=no
33883 fi
33884
33885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33886 fi
33887 { echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
33888 echo "${ECHO_T}$ac_cv_type_intptr_t" >&6; }
33889 if test $ac_cv_type_intptr_t = yes; then
33890
33891 cat >>confdefs.h <<\_ACEOF
33892 #define HAVE_INTPTR_T 1
33893 _ACEOF
33894
33895 else
33896   for ac_type in 'int' 'long int' 'long long int'; do
33897        cat >conftest.$ac_ext <<_ACEOF
33898 /* confdefs.h.  */
33899 _ACEOF
33900 cat confdefs.h >>conftest.$ac_ext
33901 cat >>conftest.$ac_ext <<_ACEOF
33902 /* end confdefs.h.  */
33903 $ac_includes_default
33904 int
33905 main ()
33906 {
33907 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
33908 test_array [0] = 0
33909
33910   ;
33911   return 0;
33912 }
33913 _ACEOF
33914 rm -f conftest.$ac_objext
33915 if { (ac_try="$ac_compile"
33916 case "(($ac_try" in
33917   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33918   *) ac_try_echo=$ac_try;;
33919 esac
33920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33921   (eval "$ac_compile") 2>conftest.er1
33922   ac_status=$?
33923   grep -v '^ *+' conftest.er1 >conftest.err
33924   rm -f conftest.er1
33925   cat conftest.err >&5
33926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33927   (exit $ac_status); } && {
33928          test -z "$ac_cxx_werror_flag" ||
33929          test ! -s conftest.err
33930        } && test -s conftest.$ac_objext; then
33931
33932 cat >>confdefs.h <<_ACEOF
33933 #define intptr_t $ac_type
33934 _ACEOF
33935
33936           ac_type=
33937 else
33938   echo "$as_me: failed program was:" >&5
33939 sed 's/^/| /' conftest.$ac_ext >&5
33940
33941
33942 fi
33943
33944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33945        test -z "$ac_type" && break
33946      done
33947 fi
33948
33949
33950
33951   { echo "$as_me:$LINENO: checking for uintptr_t" >&5
33952 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; }
33953 if test "${ac_cv_type_uintptr_t+set}" = set; then
33954   echo $ECHO_N "(cached) $ECHO_C" >&6
33955 else
33956   cat >conftest.$ac_ext <<_ACEOF
33957 /* confdefs.h.  */
33958 _ACEOF
33959 cat confdefs.h >>conftest.$ac_ext
33960 cat >>conftest.$ac_ext <<_ACEOF
33961 /* end confdefs.h.  */
33962 $ac_includes_default
33963 typedef uintptr_t ac__type_new_;
33964 int
33965 main ()
33966 {
33967 if ((ac__type_new_ *) 0)
33968   return 0;
33969 if (sizeof (ac__type_new_))
33970   return 0;
33971   ;
33972   return 0;
33973 }
33974 _ACEOF
33975 rm -f conftest.$ac_objext
33976 if { (ac_try="$ac_compile"
33977 case "(($ac_try" in
33978   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33979   *) ac_try_echo=$ac_try;;
33980 esac
33981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33982   (eval "$ac_compile") 2>conftest.er1
33983   ac_status=$?
33984   grep -v '^ *+' conftest.er1 >conftest.err
33985   rm -f conftest.er1
33986   cat conftest.err >&5
33987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33988   (exit $ac_status); } && {
33989          test -z "$ac_cxx_werror_flag" ||
33990          test ! -s conftest.err
33991        } && test -s conftest.$ac_objext; then
33992   ac_cv_type_uintptr_t=yes
33993 else
33994   echo "$as_me: failed program was:" >&5
33995 sed 's/^/| /' conftest.$ac_ext >&5
33996
33997         ac_cv_type_uintptr_t=no
33998 fi
33999
34000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34001 fi
34002 { echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
34003 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; }
34004 if test $ac_cv_type_uintptr_t = yes; then
34005
34006 cat >>confdefs.h <<\_ACEOF
34007 #define HAVE_UINTPTR_T 1
34008 _ACEOF
34009
34010 else
34011   for ac_type in 'unsigned int' 'unsigned long int' \
34012         'unsigned long long int'; do
34013        cat >conftest.$ac_ext <<_ACEOF
34014 /* confdefs.h.  */
34015 _ACEOF
34016 cat confdefs.h >>conftest.$ac_ext
34017 cat >>conftest.$ac_ext <<_ACEOF
34018 /* end confdefs.h.  */
34019 $ac_includes_default
34020 int
34021 main ()
34022 {
34023 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
34024 test_array [0] = 0
34025
34026   ;
34027   return 0;
34028 }
34029 _ACEOF
34030 rm -f conftest.$ac_objext
34031 if { (ac_try="$ac_compile"
34032 case "(($ac_try" in
34033   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34034   *) ac_try_echo=$ac_try;;
34035 esac
34036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34037   (eval "$ac_compile") 2>conftest.er1
34038   ac_status=$?
34039   grep -v '^ *+' conftest.er1 >conftest.err
34040   rm -f conftest.er1
34041   cat conftest.err >&5
34042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34043   (exit $ac_status); } && {
34044          test -z "$ac_cxx_werror_flag" ||
34045          test ! -s conftest.err
34046        } && test -s conftest.$ac_objext; then
34047
34048 cat >>confdefs.h <<_ACEOF
34049 #define uintptr_t $ac_type
34050 _ACEOF
34051
34052           ac_type=
34053 else
34054   echo "$as_me: failed program was:" >&5
34055 sed 's/^/| /' conftest.$ac_ext >&5
34056
34057
34058 fi
34059
34060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34061        test -z "$ac_type" && break
34062      done
34063 fi
34064
34065
34066 { echo "$as_me:$LINENO: checking for ino_t" >&5
34067 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6; }
34068 if test "${ac_cv_type_ino_t+set}" = set; then
34069   echo $ECHO_N "(cached) $ECHO_C" >&6
34070 else
34071   cat >conftest.$ac_ext <<_ACEOF
34072 /* confdefs.h.  */
34073 _ACEOF
34074 cat confdefs.h >>conftest.$ac_ext
34075 cat >>conftest.$ac_ext <<_ACEOF
34076 /* end confdefs.h.  */
34077 $ac_includes_default
34078 typedef ino_t ac__type_new_;
34079 int
34080 main ()
34081 {
34082 if ((ac__type_new_ *) 0)
34083   return 0;
34084 if (sizeof (ac__type_new_))
34085   return 0;
34086   ;
34087   return 0;
34088 }
34089 _ACEOF
34090 rm -f conftest.$ac_objext
34091 if { (ac_try="$ac_compile"
34092 case "(($ac_try" in
34093   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34094   *) ac_try_echo=$ac_try;;
34095 esac
34096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34097   (eval "$ac_compile") 2>conftest.er1
34098   ac_status=$?
34099   grep -v '^ *+' conftest.er1 >conftest.err
34100   rm -f conftest.er1
34101   cat conftest.err >&5
34102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34103   (exit $ac_status); } && {
34104          test -z "$ac_cxx_werror_flag" ||
34105          test ! -s conftest.err
34106        } && test -s conftest.$ac_objext; then
34107   ac_cv_type_ino_t=yes
34108 else
34109   echo "$as_me: failed program was:" >&5
34110 sed 's/^/| /' conftest.$ac_ext >&5
34111
34112         ac_cv_type_ino_t=no
34113 fi
34114
34115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34116 fi
34117 { echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
34118 echo "${ECHO_T}$ac_cv_type_ino_t" >&6; }
34119 if test $ac_cv_type_ino_t = yes; then
34120   :
34121 else
34122
34123 cat >>confdefs.h <<_ACEOF
34124 #define ino_t unsigned long
34125 _ACEOF
34126
34127 fi
34128
34129 { echo "$as_me:$LINENO: checking for dev_t" >&5
34130 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6; }
34131 if test "${ac_cv_type_dev_t+set}" = set; then
34132   echo $ECHO_N "(cached) $ECHO_C" >&6
34133 else
34134   cat >conftest.$ac_ext <<_ACEOF
34135 /* confdefs.h.  */
34136 _ACEOF
34137 cat confdefs.h >>conftest.$ac_ext
34138 cat >>conftest.$ac_ext <<_ACEOF
34139 /* end confdefs.h.  */
34140 $ac_includes_default
34141 typedef dev_t ac__type_new_;
34142 int
34143 main ()
34144 {
34145 if ((ac__type_new_ *) 0)
34146   return 0;
34147 if (sizeof (ac__type_new_))
34148   return 0;
34149   ;
34150   return 0;
34151 }
34152 _ACEOF
34153 rm -f conftest.$ac_objext
34154 if { (ac_try="$ac_compile"
34155 case "(($ac_try" in
34156   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34157   *) ac_try_echo=$ac_try;;
34158 esac
34159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34160   (eval "$ac_compile") 2>conftest.er1
34161   ac_status=$?
34162   grep -v '^ *+' conftest.er1 >conftest.err
34163   rm -f conftest.er1
34164   cat conftest.err >&5
34165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34166   (exit $ac_status); } && {
34167          test -z "$ac_cxx_werror_flag" ||
34168          test ! -s conftest.err
34169        } && test -s conftest.$ac_objext; then
34170   ac_cv_type_dev_t=yes
34171 else
34172   echo "$as_me: failed program was:" >&5
34173 sed 's/^/| /' conftest.$ac_ext >&5
34174
34175         ac_cv_type_dev_t=no
34176 fi
34177
34178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34179 fi
34180 { echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
34181 echo "${ECHO_T}$ac_cv_type_dev_t" >&6; }
34182 if test $ac_cv_type_dev_t = yes; then
34183   :
34184 else
34185
34186 cat >>confdefs.h <<_ACEOF
34187 #define dev_t unsigned long
34188 _ACEOF
34189
34190 fi
34191
34192 { echo "$as_me:$LINENO: checking for daddr_t" >&5
34193 echo $ECHO_N "checking for daddr_t... $ECHO_C" >&6; }
34194 if test "${ac_cv_type_daddr_t+set}" = set; then
34195   echo $ECHO_N "(cached) $ECHO_C" >&6
34196 else
34197   cat >conftest.$ac_ext <<_ACEOF
34198 /* confdefs.h.  */
34199 _ACEOF
34200 cat confdefs.h >>conftest.$ac_ext
34201 cat >>conftest.$ac_ext <<_ACEOF
34202 /* end confdefs.h.  */
34203 $ac_includes_default
34204 typedef daddr_t ac__type_new_;
34205 int
34206 main ()
34207 {
34208 if ((ac__type_new_ *) 0)
34209   return 0;
34210 if (sizeof (ac__type_new_))
34211   return 0;
34212   ;
34213   return 0;
34214 }
34215 _ACEOF
34216 rm -f conftest.$ac_objext
34217 if { (ac_try="$ac_compile"
34218 case "(($ac_try" in
34219   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34220   *) ac_try_echo=$ac_try;;
34221 esac
34222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34223   (eval "$ac_compile") 2>conftest.er1
34224   ac_status=$?
34225   grep -v '^ *+' conftest.er1 >conftest.err
34226   rm -f conftest.er1
34227   cat conftest.err >&5
34228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34229   (exit $ac_status); } && {
34230          test -z "$ac_cxx_werror_flag" ||
34231          test ! -s conftest.err
34232        } && test -s conftest.$ac_objext; then
34233   ac_cv_type_daddr_t=yes
34234 else
34235   echo "$as_me: failed program was:" >&5
34236 sed 's/^/| /' conftest.$ac_ext >&5
34237
34238         ac_cv_type_daddr_t=no
34239 fi
34240
34241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34242 fi
34243 { echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
34244 echo "${ECHO_T}$ac_cv_type_daddr_t" >&6; }
34245 if test $ac_cv_type_daddr_t = yes; then
34246   :
34247 else
34248
34249 cat >>confdefs.h <<_ACEOF
34250 #define daddr_t long
34251 _ACEOF
34252
34253 fi
34254
34255 { echo "$as_me:$LINENO: checking for major_t" >&5
34256 echo $ECHO_N "checking for major_t... $ECHO_C" >&6; }
34257 if test "${ac_cv_type_major_t+set}" = set; then
34258   echo $ECHO_N "(cached) $ECHO_C" >&6
34259 else
34260   cat >conftest.$ac_ext <<_ACEOF
34261 /* confdefs.h.  */
34262 _ACEOF
34263 cat confdefs.h >>conftest.$ac_ext
34264 cat >>conftest.$ac_ext <<_ACEOF
34265 /* end confdefs.h.  */
34266 $ac_includes_default
34267 typedef major_t ac__type_new_;
34268 int
34269 main ()
34270 {
34271 if ((ac__type_new_ *) 0)
34272   return 0;
34273 if (sizeof (ac__type_new_))
34274   return 0;
34275   ;
34276   return 0;
34277 }
34278 _ACEOF
34279 rm -f conftest.$ac_objext
34280 if { (ac_try="$ac_compile"
34281 case "(($ac_try" in
34282   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34283   *) ac_try_echo=$ac_try;;
34284 esac
34285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34286   (eval "$ac_compile") 2>conftest.er1
34287   ac_status=$?
34288   grep -v '^ *+' conftest.er1 >conftest.err
34289   rm -f conftest.er1
34290   cat conftest.err >&5
34291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34292   (exit $ac_status); } && {
34293          test -z "$ac_cxx_werror_flag" ||
34294          test ! -s conftest.err
34295        } && test -s conftest.$ac_objext; then
34296   ac_cv_type_major_t=yes
34297 else
34298   echo "$as_me: failed program was:" >&5
34299 sed 's/^/| /' conftest.$ac_ext >&5
34300
34301         ac_cv_type_major_t=no
34302 fi
34303
34304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34305 fi
34306 { echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
34307 echo "${ECHO_T}$ac_cv_type_major_t" >&6; }
34308 if test $ac_cv_type_major_t = yes; then
34309   :
34310 else
34311
34312 cat >>confdefs.h <<_ACEOF
34313 #define major_t int
34314 _ACEOF
34315
34316 fi
34317
34318 { echo "$as_me:$LINENO: checking for minor_t" >&5
34319 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6; }
34320 if test "${ac_cv_type_minor_t+set}" = set; then
34321   echo $ECHO_N "(cached) $ECHO_C" >&6
34322 else
34323   cat >conftest.$ac_ext <<_ACEOF
34324 /* confdefs.h.  */
34325 _ACEOF
34326 cat confdefs.h >>conftest.$ac_ext
34327 cat >>conftest.$ac_ext <<_ACEOF
34328 /* end confdefs.h.  */
34329 $ac_includes_default
34330 typedef minor_t ac__type_new_;
34331 int
34332 main ()
34333 {
34334 if ((ac__type_new_ *) 0)
34335   return 0;
34336 if (sizeof (ac__type_new_))
34337   return 0;
34338   ;
34339   return 0;
34340 }
34341 _ACEOF
34342 rm -f conftest.$ac_objext
34343 if { (ac_try="$ac_compile"
34344 case "(($ac_try" in
34345   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34346   *) ac_try_echo=$ac_try;;
34347 esac
34348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34349   (eval "$ac_compile") 2>conftest.er1
34350   ac_status=$?
34351   grep -v '^ *+' conftest.er1 >conftest.err
34352   rm -f conftest.er1
34353   cat conftest.err >&5
34354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34355   (exit $ac_status); } && {
34356          test -z "$ac_cxx_werror_flag" ||
34357          test ! -s conftest.err
34358        } && test -s conftest.$ac_objext; then
34359   ac_cv_type_minor_t=yes
34360 else
34361   echo "$as_me: failed program was:" >&5
34362 sed 's/^/| /' conftest.$ac_ext >&5
34363
34364         ac_cv_type_minor_t=no
34365 fi
34366
34367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34368 fi
34369 { echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
34370 echo "${ECHO_T}$ac_cv_type_minor_t" >&6; }
34371 if test $ac_cv_type_minor_t = yes; then
34372   :
34373 else
34374
34375 cat >>confdefs.h <<_ACEOF
34376 #define minor_t int
34377 _ACEOF
34378
34379 fi
34380
34381 { echo "$as_me:$LINENO: checking for ssize_t" >&5
34382 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
34383 if test "${ac_cv_type_ssize_t+set}" = set; then
34384   echo $ECHO_N "(cached) $ECHO_C" >&6
34385 else
34386   cat >conftest.$ac_ext <<_ACEOF
34387 /* confdefs.h.  */
34388 _ACEOF
34389 cat confdefs.h >>conftest.$ac_ext
34390 cat >>conftest.$ac_ext <<_ACEOF
34391 /* end confdefs.h.  */
34392 $ac_includes_default
34393 typedef ssize_t ac__type_new_;
34394 int
34395 main ()
34396 {
34397 if ((ac__type_new_ *) 0)
34398   return 0;
34399 if (sizeof (ac__type_new_))
34400   return 0;
34401   ;
34402   return 0;
34403 }
34404 _ACEOF
34405 rm -f conftest.$ac_objext
34406 if { (ac_try="$ac_compile"
34407 case "(($ac_try" in
34408   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34409   *) ac_try_echo=$ac_try;;
34410 esac
34411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34412   (eval "$ac_compile") 2>conftest.er1
34413   ac_status=$?
34414   grep -v '^ *+' conftest.er1 >conftest.err
34415   rm -f conftest.er1
34416   cat conftest.err >&5
34417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34418   (exit $ac_status); } && {
34419          test -z "$ac_cxx_werror_flag" ||
34420          test ! -s conftest.err
34421        } && test -s conftest.$ac_objext; then
34422   ac_cv_type_ssize_t=yes
34423 else
34424   echo "$as_me: failed program was:" >&5
34425 sed 's/^/| /' conftest.$ac_ext >&5
34426
34427         ac_cv_type_ssize_t=no
34428 fi
34429
34430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34431 fi
34432 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
34433 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
34434 if test $ac_cv_type_ssize_t = yes; then
34435   :
34436 else
34437
34438 cat >>confdefs.h <<_ACEOF
34439 #define ssize_t int
34440 _ACEOF
34441
34442 fi
34443
34444 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
34445 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
34446 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
34447   echo $ECHO_N "(cached) $ECHO_C" >&6
34448 else
34449   cat >conftest.$ac_ext <<_ACEOF
34450 /* confdefs.h.  */
34451 _ACEOF
34452 cat confdefs.h >>conftest.$ac_ext
34453 cat >>conftest.$ac_ext <<_ACEOF
34454 /* end confdefs.h.  */
34455 $ac_includes_default
34456 int
34457 main ()
34458 {
34459 static struct stat ac_aggr;
34460 if (ac_aggr.st_blocks)
34461 return 0;
34462   ;
34463   return 0;
34464 }
34465 _ACEOF
34466 rm -f conftest.$ac_objext
34467 if { (ac_try="$ac_compile"
34468 case "(($ac_try" in
34469   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34470   *) ac_try_echo=$ac_try;;
34471 esac
34472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34473   (eval "$ac_compile") 2>conftest.er1
34474   ac_status=$?
34475   grep -v '^ *+' conftest.er1 >conftest.err
34476   rm -f conftest.er1
34477   cat conftest.err >&5
34478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34479   (exit $ac_status); } && {
34480          test -z "$ac_cxx_werror_flag" ||
34481          test ! -s conftest.err
34482        } && test -s conftest.$ac_objext; then
34483   ac_cv_member_struct_stat_st_blocks=yes
34484 else
34485   echo "$as_me: failed program was:" >&5
34486 sed 's/^/| /' conftest.$ac_ext >&5
34487
34488         cat >conftest.$ac_ext <<_ACEOF
34489 /* confdefs.h.  */
34490 _ACEOF
34491 cat confdefs.h >>conftest.$ac_ext
34492 cat >>conftest.$ac_ext <<_ACEOF
34493 /* end confdefs.h.  */
34494 $ac_includes_default
34495 int
34496 main ()
34497 {
34498 static struct stat ac_aggr;
34499 if (sizeof ac_aggr.st_blocks)
34500 return 0;
34501   ;
34502   return 0;
34503 }
34504 _ACEOF
34505 rm -f conftest.$ac_objext
34506 if { (ac_try="$ac_compile"
34507 case "(($ac_try" in
34508   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34509   *) ac_try_echo=$ac_try;;
34510 esac
34511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34512   (eval "$ac_compile") 2>conftest.er1
34513   ac_status=$?
34514   grep -v '^ *+' conftest.er1 >conftest.err
34515   rm -f conftest.er1
34516   cat conftest.err >&5
34517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34518   (exit $ac_status); } && {
34519          test -z "$ac_cxx_werror_flag" ||
34520          test ! -s conftest.err
34521        } && test -s conftest.$ac_objext; then
34522   ac_cv_member_struct_stat_st_blocks=yes
34523 else
34524   echo "$as_me: failed program was:" >&5
34525 sed 's/^/| /' conftest.$ac_ext >&5
34526
34527         ac_cv_member_struct_stat_st_blocks=no
34528 fi
34529
34530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34531 fi
34532
34533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34534 fi
34535 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
34536 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
34537 if test $ac_cv_member_struct_stat_st_blocks = yes; then
34538
34539 cat >>confdefs.h <<_ACEOF
34540 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
34541 _ACEOF
34542
34543
34544 cat >>confdefs.h <<\_ACEOF
34545 #define HAVE_ST_BLOCKS 1
34546 _ACEOF
34547
34548 else
34549   case " $LIBOBJS " in
34550   *" fileblocks.$ac_objext "* ) ;;
34551   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
34552  ;;
34553 esac
34554
34555 fi
34556
34557
34558 { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
34559 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
34560 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
34561   echo $ECHO_N "(cached) $ECHO_C" >&6
34562 else
34563   cat >conftest.$ac_ext <<_ACEOF
34564 /* confdefs.h.  */
34565 _ACEOF
34566 cat confdefs.h >>conftest.$ac_ext
34567 cat >>conftest.$ac_ext <<_ACEOF
34568 /* end confdefs.h.  */
34569 $ac_includes_default
34570 int
34571 main ()
34572 {
34573 static struct stat ac_aggr;
34574 if (ac_aggr.st_rdev)
34575 return 0;
34576   ;
34577   return 0;
34578 }
34579 _ACEOF
34580 rm -f conftest.$ac_objext
34581 if { (ac_try="$ac_compile"
34582 case "(($ac_try" in
34583   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34584   *) ac_try_echo=$ac_try;;
34585 esac
34586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34587   (eval "$ac_compile") 2>conftest.er1
34588   ac_status=$?
34589   grep -v '^ *+' conftest.er1 >conftest.err
34590   rm -f conftest.er1
34591   cat conftest.err >&5
34592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34593   (exit $ac_status); } && {
34594          test -z "$ac_cxx_werror_flag" ||
34595          test ! -s conftest.err
34596        } && test -s conftest.$ac_objext; then
34597   ac_cv_member_struct_stat_st_rdev=yes
34598 else
34599   echo "$as_me: failed program was:" >&5
34600 sed 's/^/| /' conftest.$ac_ext >&5
34601
34602         cat >conftest.$ac_ext <<_ACEOF
34603 /* confdefs.h.  */
34604 _ACEOF
34605 cat confdefs.h >>conftest.$ac_ext
34606 cat >>conftest.$ac_ext <<_ACEOF
34607 /* end confdefs.h.  */
34608 $ac_includes_default
34609 int
34610 main ()
34611 {
34612 static struct stat ac_aggr;
34613 if (sizeof ac_aggr.st_rdev)
34614 return 0;
34615   ;
34616   return 0;
34617 }
34618 _ACEOF
34619 rm -f conftest.$ac_objext
34620 if { (ac_try="$ac_compile"
34621 case "(($ac_try" in
34622   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34623   *) ac_try_echo=$ac_try;;
34624 esac
34625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34626   (eval "$ac_compile") 2>conftest.er1
34627   ac_status=$?
34628   grep -v '^ *+' conftest.er1 >conftest.err
34629   rm -f conftest.er1
34630   cat conftest.err >&5
34631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34632   (exit $ac_status); } && {
34633          test -z "$ac_cxx_werror_flag" ||
34634          test ! -s conftest.err
34635        } && test -s conftest.$ac_objext; then
34636   ac_cv_member_struct_stat_st_rdev=yes
34637 else
34638   echo "$as_me: failed program was:" >&5
34639 sed 's/^/| /' conftest.$ac_ext >&5
34640
34641         ac_cv_member_struct_stat_st_rdev=no
34642 fi
34643
34644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34645 fi
34646
34647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34648 fi
34649 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
34650 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
34651 if test $ac_cv_member_struct_stat_st_rdev = yes; then
34652
34653 cat >>confdefs.h <<_ACEOF
34654 #define HAVE_STRUCT_STAT_ST_RDEV 1
34655 _ACEOF
34656
34657
34658 cat >>confdefs.h <<\_ACEOF
34659 #define HAVE_ST_RDEV 1
34660 _ACEOF
34661
34662 fi
34663
34664
34665 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
34666 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
34667 if test "${ac_cv_struct_tm+set}" = set; then
34668   echo $ECHO_N "(cached) $ECHO_C" >&6
34669 else
34670   cat >conftest.$ac_ext <<_ACEOF
34671 /* confdefs.h.  */
34672 _ACEOF
34673 cat confdefs.h >>conftest.$ac_ext
34674 cat >>conftest.$ac_ext <<_ACEOF
34675 /* end confdefs.h.  */
34676 #include <sys/types.h>
34677 #include <time.h>
34678
34679 int
34680 main ()
34681 {
34682 struct tm tm;
34683                                      int *p = &tm.tm_sec;
34684                                      return !p;
34685   ;
34686   return 0;
34687 }
34688 _ACEOF
34689 rm -f conftest.$ac_objext
34690 if { (ac_try="$ac_compile"
34691 case "(($ac_try" in
34692   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34693   *) ac_try_echo=$ac_try;;
34694 esac
34695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34696   (eval "$ac_compile") 2>conftest.er1
34697   ac_status=$?
34698   grep -v '^ *+' conftest.er1 >conftest.err
34699   rm -f conftest.er1
34700   cat conftest.err >&5
34701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34702   (exit $ac_status); } && {
34703          test -z "$ac_cxx_werror_flag" ||
34704          test ! -s conftest.err
34705        } && test -s conftest.$ac_objext; then
34706   ac_cv_struct_tm=time.h
34707 else
34708   echo "$as_me: failed program was:" >&5
34709 sed 's/^/| /' conftest.$ac_ext >&5
34710
34711         ac_cv_struct_tm=sys/time.h
34712 fi
34713
34714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34715 fi
34716 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
34717 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
34718 if test $ac_cv_struct_tm = sys/time.h; then
34719
34720 cat >>confdefs.h <<\_ACEOF
34721 #define TM_IN_SYS_TIME 1
34722 _ACEOF
34723
34724 fi
34725
34726 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
34727 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
34728 if test "${ac_cv_c_const+set}" = set; then
34729   echo $ECHO_N "(cached) $ECHO_C" >&6
34730 else
34731   cat >conftest.$ac_ext <<_ACEOF
34732 /* confdefs.h.  */
34733 _ACEOF
34734 cat confdefs.h >>conftest.$ac_ext
34735 cat >>conftest.$ac_ext <<_ACEOF
34736 /* end confdefs.h.  */
34737
34738 int
34739 main ()
34740 {
34741 /* FIXME: Include the comments suggested by Paul. */
34742 #ifndef __cplusplus
34743   /* Ultrix mips cc rejects this.  */
34744   typedef int charset[2];
34745   const charset cs;
34746   /* SunOS 4.1.1 cc rejects this.  */
34747   char const *const *pcpcc;
34748   char **ppc;
34749   /* NEC SVR4.0.2 mips cc rejects this.  */
34750   struct point {int x, y;};
34751   static struct point const zero = {0,0};
34752   /* AIX XL C 1.02.0.0 rejects this.
34753      It does not let you subtract one const X* pointer from another in
34754      an arm of an if-expression whose if-part is not a constant
34755      expression */
34756   const char *g = "string";
34757   pcpcc = &g + (g ? g-g : 0);
34758   /* HPUX 7.0 cc rejects these. */
34759   ++pcpcc;
34760   ppc = (char**) pcpcc;
34761   pcpcc = (char const *const *) ppc;
34762   { /* SCO 3.2v4 cc rejects this.  */
34763     char *t;
34764     char const *s = 0 ? (char *) 0 : (char const *) 0;
34765
34766     *t++ = 0;
34767     if (s) return 0;
34768   }
34769   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
34770     int x[] = {25, 17};
34771     const int *foo = &x[0];
34772     ++foo;
34773   }
34774   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
34775     typedef const int *iptr;
34776     iptr p = 0;
34777     ++p;
34778   }
34779   { /* AIX XL C 1.02.0.0 rejects this saying
34780        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
34781     struct s { int j; const int *ap[3]; };
34782     struct s *b; b->j = 5;
34783   }
34784   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
34785     const int foo = 10;
34786     if (!foo) return 0;
34787   }
34788   return !cs[0] && !zero.x;
34789 #endif
34790
34791   ;
34792   return 0;
34793 }
34794 _ACEOF
34795 rm -f conftest.$ac_objext
34796 if { (ac_try="$ac_compile"
34797 case "(($ac_try" in
34798   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34799   *) ac_try_echo=$ac_try;;
34800 esac
34801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34802   (eval "$ac_compile") 2>conftest.er1
34803   ac_status=$?
34804   grep -v '^ *+' conftest.er1 >conftest.err
34805   rm -f conftest.er1
34806   cat conftest.err >&5
34807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34808   (exit $ac_status); } && {
34809          test -z "$ac_cxx_werror_flag" ||
34810          test ! -s conftest.err
34811        } && test -s conftest.$ac_objext; then
34812   ac_cv_c_const=yes
34813 else
34814   echo "$as_me: failed program was:" >&5
34815 sed 's/^/| /' conftest.$ac_ext >&5
34816
34817         ac_cv_c_const=no
34818 fi
34819
34820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34821 fi
34822 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
34823 echo "${ECHO_T}$ac_cv_c_const" >&6; }
34824 if test $ac_cv_c_const = no; then
34825
34826 cat >>confdefs.h <<\_ACEOF
34827 #define const
34828 _ACEOF
34829
34830 fi
34831
34832
34833 { echo "$as_me:$LINENO: checking for char" >&5
34834 echo $ECHO_N "checking for char... $ECHO_C" >&6; }
34835 if test "${ac_cv_type_char+set}" = set; then
34836   echo $ECHO_N "(cached) $ECHO_C" >&6
34837 else
34838   cat >conftest.$ac_ext <<_ACEOF
34839 /* confdefs.h.  */
34840 _ACEOF
34841 cat confdefs.h >>conftest.$ac_ext
34842 cat >>conftest.$ac_ext <<_ACEOF
34843 /* end confdefs.h.  */
34844 $ac_includes_default
34845 typedef char ac__type_new_;
34846 int
34847 main ()
34848 {
34849 if ((ac__type_new_ *) 0)
34850   return 0;
34851 if (sizeof (ac__type_new_))
34852   return 0;
34853   ;
34854   return 0;
34855 }
34856 _ACEOF
34857 rm -f conftest.$ac_objext
34858 if { (ac_try="$ac_compile"
34859 case "(($ac_try" in
34860   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34861   *) ac_try_echo=$ac_try;;
34862 esac
34863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34864   (eval "$ac_compile") 2>conftest.er1
34865   ac_status=$?
34866   grep -v '^ *+' conftest.er1 >conftest.err
34867   rm -f conftest.er1
34868   cat conftest.err >&5
34869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34870   (exit $ac_status); } && {
34871          test -z "$ac_cxx_werror_flag" ||
34872          test ! -s conftest.err
34873        } && test -s conftest.$ac_objext; then
34874   ac_cv_type_char=yes
34875 else
34876   echo "$as_me: failed program was:" >&5
34877 sed 's/^/| /' conftest.$ac_ext >&5
34878
34879         ac_cv_type_char=no
34880 fi
34881
34882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34883 fi
34884 { echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
34885 echo "${ECHO_T}$ac_cv_type_char" >&6; }
34886
34887 # The cast to long int works around a bug in the HP C Compiler
34888 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
34889 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
34890 # This bug is HP SR number 8606223364.
34891 { echo "$as_me:$LINENO: checking size of char" >&5
34892 echo $ECHO_N "checking size of char... $ECHO_C" >&6; }
34893 if test "${ac_cv_sizeof_char+set}" = set; then
34894   echo $ECHO_N "(cached) $ECHO_C" >&6
34895 else
34896   if test "$cross_compiling" = yes; then
34897   # Depending upon the size, compute the lo and hi bounds.
34898 cat >conftest.$ac_ext <<_ACEOF
34899 /* confdefs.h.  */
34900 _ACEOF
34901 cat confdefs.h >>conftest.$ac_ext
34902 cat >>conftest.$ac_ext <<_ACEOF
34903 /* end confdefs.h.  */
34904 $ac_includes_default
34905    typedef char ac__type_sizeof_;
34906 int
34907 main ()
34908 {
34909 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
34910 test_array [0] = 0
34911
34912   ;
34913   return 0;
34914 }
34915 _ACEOF
34916 rm -f conftest.$ac_objext
34917 if { (ac_try="$ac_compile"
34918 case "(($ac_try" in
34919   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34920   *) ac_try_echo=$ac_try;;
34921 esac
34922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34923   (eval "$ac_compile") 2>conftest.er1
34924   ac_status=$?
34925   grep -v '^ *+' conftest.er1 >conftest.err
34926   rm -f conftest.er1
34927   cat conftest.err >&5
34928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34929   (exit $ac_status); } && {
34930          test -z "$ac_cxx_werror_flag" ||
34931          test ! -s conftest.err
34932        } && test -s conftest.$ac_objext; then
34933   ac_lo=0 ac_mid=0
34934   while :; do
34935     cat >conftest.$ac_ext <<_ACEOF
34936 /* confdefs.h.  */
34937 _ACEOF
34938 cat confdefs.h >>conftest.$ac_ext
34939 cat >>conftest.$ac_ext <<_ACEOF
34940 /* end confdefs.h.  */
34941 $ac_includes_default
34942    typedef char ac__type_sizeof_;
34943 int
34944 main ()
34945 {
34946 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34947 test_array [0] = 0
34948
34949   ;
34950   return 0;
34951 }
34952 _ACEOF
34953 rm -f conftest.$ac_objext
34954 if { (ac_try="$ac_compile"
34955 case "(($ac_try" in
34956   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34957   *) ac_try_echo=$ac_try;;
34958 esac
34959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34960   (eval "$ac_compile") 2>conftest.er1
34961   ac_status=$?
34962   grep -v '^ *+' conftest.er1 >conftest.err
34963   rm -f conftest.er1
34964   cat conftest.err >&5
34965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34966   (exit $ac_status); } && {
34967          test -z "$ac_cxx_werror_flag" ||
34968          test ! -s conftest.err
34969        } && test -s conftest.$ac_objext; then
34970   ac_hi=$ac_mid; break
34971 else
34972   echo "$as_me: failed program was:" >&5
34973 sed 's/^/| /' conftest.$ac_ext >&5
34974
34975         ac_lo=`expr $ac_mid + 1`
34976                         if test $ac_lo -le $ac_mid; then
34977                           ac_lo= ac_hi=
34978                           break
34979                         fi
34980                         ac_mid=`expr 2 '*' $ac_mid + 1`
34981 fi
34982
34983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34984   done
34985 else
34986   echo "$as_me: failed program was:" >&5
34987 sed 's/^/| /' conftest.$ac_ext >&5
34988
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 char ac__type_sizeof_;
34997 int
34998 main ()
34999 {
35000 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
35001 test_array [0] = 0
35002
35003   ;
35004   return 0;
35005 }
35006 _ACEOF
35007 rm -f conftest.$ac_objext
35008 if { (ac_try="$ac_compile"
35009 case "(($ac_try" in
35010   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35011   *) ac_try_echo=$ac_try;;
35012 esac
35013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35014   (eval "$ac_compile") 2>conftest.er1
35015   ac_status=$?
35016   grep -v '^ *+' conftest.er1 >conftest.err
35017   rm -f conftest.er1
35018   cat conftest.err >&5
35019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35020   (exit $ac_status); } && {
35021          test -z "$ac_cxx_werror_flag" ||
35022          test ! -s conftest.err
35023        } && test -s conftest.$ac_objext; then
35024   ac_hi=-1 ac_mid=-1
35025   while :; do
35026     cat >conftest.$ac_ext <<_ACEOF
35027 /* confdefs.h.  */
35028 _ACEOF
35029 cat confdefs.h >>conftest.$ac_ext
35030 cat >>conftest.$ac_ext <<_ACEOF
35031 /* end confdefs.h.  */
35032 $ac_includes_default
35033    typedef char ac__type_sizeof_;
35034 int
35035 main ()
35036 {
35037 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
35038 test_array [0] = 0
35039
35040   ;
35041   return 0;
35042 }
35043 _ACEOF
35044 rm -f conftest.$ac_objext
35045 if { (ac_try="$ac_compile"
35046 case "(($ac_try" in
35047   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35048   *) ac_try_echo=$ac_try;;
35049 esac
35050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35051   (eval "$ac_compile") 2>conftest.er1
35052   ac_status=$?
35053   grep -v '^ *+' conftest.er1 >conftest.err
35054   rm -f conftest.er1
35055   cat conftest.err >&5
35056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35057   (exit $ac_status); } && {
35058          test -z "$ac_cxx_werror_flag" ||
35059          test ! -s conftest.err
35060        } && test -s conftest.$ac_objext; then
35061   ac_lo=$ac_mid; break
35062 else
35063   echo "$as_me: failed program was:" >&5
35064 sed 's/^/| /' conftest.$ac_ext >&5
35065
35066         ac_hi=`expr '(' $ac_mid ')' - 1`
35067                         if test $ac_mid -le $ac_hi; then
35068                           ac_lo= ac_hi=
35069                           break
35070                         fi
35071                         ac_mid=`expr 2 '*' $ac_mid`
35072 fi
35073
35074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35075   done
35076 else
35077   echo "$as_me: failed program was:" >&5
35078 sed 's/^/| /' conftest.$ac_ext >&5
35079
35080         ac_lo= ac_hi=
35081 fi
35082
35083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35084 fi
35085
35086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35087 # Binary search between lo and hi bounds.
35088 while test "x$ac_lo" != "x$ac_hi"; do
35089   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
35090   cat >conftest.$ac_ext <<_ACEOF
35091 /* confdefs.h.  */
35092 _ACEOF
35093 cat confdefs.h >>conftest.$ac_ext
35094 cat >>conftest.$ac_ext <<_ACEOF
35095 /* end confdefs.h.  */
35096 $ac_includes_default
35097    typedef char ac__type_sizeof_;
35098 int
35099 main ()
35100 {
35101 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35102 test_array [0] = 0
35103
35104   ;
35105   return 0;
35106 }
35107 _ACEOF
35108 rm -f conftest.$ac_objext
35109 if { (ac_try="$ac_compile"
35110 case "(($ac_try" in
35111   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35112   *) ac_try_echo=$ac_try;;
35113 esac
35114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35115   (eval "$ac_compile") 2>conftest.er1
35116   ac_status=$?
35117   grep -v '^ *+' conftest.er1 >conftest.err
35118   rm -f conftest.er1
35119   cat conftest.err >&5
35120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35121   (exit $ac_status); } && {
35122          test -z "$ac_cxx_werror_flag" ||
35123          test ! -s conftest.err
35124        } && test -s conftest.$ac_objext; then
35125   ac_hi=$ac_mid
35126 else
35127   echo "$as_me: failed program was:" >&5
35128 sed 's/^/| /' conftest.$ac_ext >&5
35129
35130         ac_lo=`expr '(' $ac_mid ')' + 1`
35131 fi
35132
35133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35134 done
35135 case $ac_lo in
35136 ?*) ac_cv_sizeof_char=$ac_lo;;
35137 '') if test "$ac_cv_type_char" = yes; then
35138      { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
35139 See \`config.log' for more details." >&5
35140 echo "$as_me: error: cannot compute sizeof (char)
35141 See \`config.log' for more details." >&2;}
35142    { (exit 77); exit 77; }; }
35143    else
35144      ac_cv_sizeof_char=0
35145    fi ;;
35146 esac
35147 else
35148   cat >conftest.$ac_ext <<_ACEOF
35149 /* confdefs.h.  */
35150 _ACEOF
35151 cat confdefs.h >>conftest.$ac_ext
35152 cat >>conftest.$ac_ext <<_ACEOF
35153 /* end confdefs.h.  */
35154 $ac_includes_default
35155    typedef char ac__type_sizeof_;
35156 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
35157 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
35158 #include <stdio.h>
35159 #include <stdlib.h>
35160 int
35161 main ()
35162 {
35163
35164   FILE *f = fopen ("conftest.val", "w");
35165   if (! f)
35166     return 1;
35167   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
35168     {
35169       long int i = longval ();
35170       if (i != ((long int) (sizeof (ac__type_sizeof_))))
35171         return 1;
35172       fprintf (f, "%ld\n", i);
35173     }
35174   else
35175     {
35176       unsigned long int i = ulongval ();
35177       if (i != ((long int) (sizeof (ac__type_sizeof_))))
35178         return 1;
35179       fprintf (f, "%lu\n", i);
35180     }
35181   return ferror (f) || fclose (f) != 0;
35182
35183   ;
35184   return 0;
35185 }
35186 _ACEOF
35187 rm -f conftest$ac_exeext
35188 if { (ac_try="$ac_link"
35189 case "(($ac_try" in
35190   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35191   *) ac_try_echo=$ac_try;;
35192 esac
35193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35194   (eval "$ac_link") 2>&5
35195   ac_status=$?
35196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35197   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35198   { (case "(($ac_try" in
35199   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35200   *) ac_try_echo=$ac_try;;
35201 esac
35202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35203   (eval "$ac_try") 2>&5
35204   ac_status=$?
35205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35206   (exit $ac_status); }; }; then
35207   ac_cv_sizeof_char=`cat conftest.val`
35208 else
35209   echo "$as_me: program exited with status $ac_status" >&5
35210 echo "$as_me: failed program was:" >&5
35211 sed 's/^/| /' conftest.$ac_ext >&5
35212
35213 ( exit $ac_status )
35214 if test "$ac_cv_type_char" = yes; then
35215      { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
35216 See \`config.log' for more details." >&5
35217 echo "$as_me: error: cannot compute sizeof (char)
35218 See \`config.log' for more details." >&2;}
35219    { (exit 77); exit 77; }; }
35220    else
35221      ac_cv_sizeof_char=0
35222    fi
35223 fi
35224 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35225 fi
35226 rm -f conftest.val
35227 fi
35228 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
35229 echo "${ECHO_T}$ac_cv_sizeof_char" >&6; }
35230
35231
35232
35233 cat >>confdefs.h <<_ACEOF
35234 #define SIZEOF_CHAR $ac_cv_sizeof_char
35235 _ACEOF
35236
35237
35238 { echo "$as_me:$LINENO: checking for short int" >&5
35239 echo $ECHO_N "checking for short int... $ECHO_C" >&6; }
35240 if test "${ac_cv_type_short_int+set}" = set; then
35241   echo $ECHO_N "(cached) $ECHO_C" >&6
35242 else
35243   cat >conftest.$ac_ext <<_ACEOF
35244 /* confdefs.h.  */
35245 _ACEOF
35246 cat confdefs.h >>conftest.$ac_ext
35247 cat >>conftest.$ac_ext <<_ACEOF
35248 /* end confdefs.h.  */
35249 $ac_includes_default
35250 typedef short int ac__type_new_;
35251 int
35252 main ()
35253 {
35254 if ((ac__type_new_ *) 0)
35255   return 0;
35256 if (sizeof (ac__type_new_))
35257   return 0;
35258   ;
35259   return 0;
35260 }
35261 _ACEOF
35262 rm -f conftest.$ac_objext
35263 if { (ac_try="$ac_compile"
35264 case "(($ac_try" in
35265   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35266   *) ac_try_echo=$ac_try;;
35267 esac
35268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35269   (eval "$ac_compile") 2>conftest.er1
35270   ac_status=$?
35271   grep -v '^ *+' conftest.er1 >conftest.err
35272   rm -f conftest.er1
35273   cat conftest.err >&5
35274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35275   (exit $ac_status); } && {
35276          test -z "$ac_cxx_werror_flag" ||
35277          test ! -s conftest.err
35278        } && test -s conftest.$ac_objext; then
35279   ac_cv_type_short_int=yes
35280 else
35281   echo "$as_me: failed program was:" >&5
35282 sed 's/^/| /' conftest.$ac_ext >&5
35283
35284         ac_cv_type_short_int=no
35285 fi
35286
35287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35288 fi
35289 { echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
35290 echo "${ECHO_T}$ac_cv_type_short_int" >&6; }
35291
35292 # The cast to long int works around a bug in the HP C Compiler
35293 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
35294 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
35295 # This bug is HP SR number 8606223364.
35296 { echo "$as_me:$LINENO: checking size of short int" >&5
35297 echo $ECHO_N "checking size of short int... $ECHO_C" >&6; }
35298 if test "${ac_cv_sizeof_short_int+set}" = set; then
35299   echo $ECHO_N "(cached) $ECHO_C" >&6
35300 else
35301   if test "$cross_compiling" = yes; then
35302   # Depending upon the size, compute the lo and hi bounds.
35303 cat >conftest.$ac_ext <<_ACEOF
35304 /* confdefs.h.  */
35305 _ACEOF
35306 cat confdefs.h >>conftest.$ac_ext
35307 cat >>conftest.$ac_ext <<_ACEOF
35308 /* end confdefs.h.  */
35309 $ac_includes_default
35310    typedef short int ac__type_sizeof_;
35311 int
35312 main ()
35313 {
35314 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
35315 test_array [0] = 0
35316
35317   ;
35318   return 0;
35319 }
35320 _ACEOF
35321 rm -f conftest.$ac_objext
35322 if { (ac_try="$ac_compile"
35323 case "(($ac_try" in
35324   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35325   *) ac_try_echo=$ac_try;;
35326 esac
35327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35328   (eval "$ac_compile") 2>conftest.er1
35329   ac_status=$?
35330   grep -v '^ *+' conftest.er1 >conftest.err
35331   rm -f conftest.er1
35332   cat conftest.err >&5
35333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35334   (exit $ac_status); } && {
35335          test -z "$ac_cxx_werror_flag" ||
35336          test ! -s conftest.err
35337        } && test -s conftest.$ac_objext; then
35338   ac_lo=0 ac_mid=0
35339   while :; do
35340     cat >conftest.$ac_ext <<_ACEOF
35341 /* confdefs.h.  */
35342 _ACEOF
35343 cat confdefs.h >>conftest.$ac_ext
35344 cat >>conftest.$ac_ext <<_ACEOF
35345 /* end confdefs.h.  */
35346 $ac_includes_default
35347    typedef short int ac__type_sizeof_;
35348 int
35349 main ()
35350 {
35351 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35352 test_array [0] = 0
35353
35354   ;
35355   return 0;
35356 }
35357 _ACEOF
35358 rm -f conftest.$ac_objext
35359 if { (ac_try="$ac_compile"
35360 case "(($ac_try" in
35361   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35362   *) ac_try_echo=$ac_try;;
35363 esac
35364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35365   (eval "$ac_compile") 2>conftest.er1
35366   ac_status=$?
35367   grep -v '^ *+' conftest.er1 >conftest.err
35368   rm -f conftest.er1
35369   cat conftest.err >&5
35370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35371   (exit $ac_status); } && {
35372          test -z "$ac_cxx_werror_flag" ||
35373          test ! -s conftest.err
35374        } && test -s conftest.$ac_objext; then
35375   ac_hi=$ac_mid; break
35376 else
35377   echo "$as_me: failed program was:" >&5
35378 sed 's/^/| /' conftest.$ac_ext >&5
35379
35380         ac_lo=`expr $ac_mid + 1`
35381                         if test $ac_lo -le $ac_mid; then
35382                           ac_lo= ac_hi=
35383                           break
35384                         fi
35385                         ac_mid=`expr 2 '*' $ac_mid + 1`
35386 fi
35387
35388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35389   done
35390 else
35391   echo "$as_me: failed program was:" >&5
35392 sed 's/^/| /' conftest.$ac_ext >&5
35393
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 short int ac__type_sizeof_;
35402 int
35403 main ()
35404 {
35405 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
35406 test_array [0] = 0
35407
35408   ;
35409   return 0;
35410 }
35411 _ACEOF
35412 rm -f conftest.$ac_objext
35413 if { (ac_try="$ac_compile"
35414 case "(($ac_try" in
35415   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35416   *) ac_try_echo=$ac_try;;
35417 esac
35418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35419   (eval "$ac_compile") 2>conftest.er1
35420   ac_status=$?
35421   grep -v '^ *+' conftest.er1 >conftest.err
35422   rm -f conftest.er1
35423   cat conftest.err >&5
35424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35425   (exit $ac_status); } && {
35426          test -z "$ac_cxx_werror_flag" ||
35427          test ! -s conftest.err
35428        } && test -s conftest.$ac_objext; then
35429   ac_hi=-1 ac_mid=-1
35430   while :; do
35431     cat >conftest.$ac_ext <<_ACEOF
35432 /* confdefs.h.  */
35433 _ACEOF
35434 cat confdefs.h >>conftest.$ac_ext
35435 cat >>conftest.$ac_ext <<_ACEOF
35436 /* end confdefs.h.  */
35437 $ac_includes_default
35438    typedef short int ac__type_sizeof_;
35439 int
35440 main ()
35441 {
35442 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
35443 test_array [0] = 0
35444
35445   ;
35446   return 0;
35447 }
35448 _ACEOF
35449 rm -f conftest.$ac_objext
35450 if { (ac_try="$ac_compile"
35451 case "(($ac_try" in
35452   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35453   *) ac_try_echo=$ac_try;;
35454 esac
35455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35456   (eval "$ac_compile") 2>conftest.er1
35457   ac_status=$?
35458   grep -v '^ *+' conftest.er1 >conftest.err
35459   rm -f conftest.er1
35460   cat conftest.err >&5
35461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35462   (exit $ac_status); } && {
35463          test -z "$ac_cxx_werror_flag" ||
35464          test ! -s conftest.err
35465        } && test -s conftest.$ac_objext; then
35466   ac_lo=$ac_mid; break
35467 else
35468   echo "$as_me: failed program was:" >&5
35469 sed 's/^/| /' conftest.$ac_ext >&5
35470
35471         ac_hi=`expr '(' $ac_mid ')' - 1`
35472                         if test $ac_mid -le $ac_hi; then
35473                           ac_lo= ac_hi=
35474                           break
35475                         fi
35476                         ac_mid=`expr 2 '*' $ac_mid`
35477 fi
35478
35479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35480   done
35481 else
35482   echo "$as_me: failed program was:" >&5
35483 sed 's/^/| /' conftest.$ac_ext >&5
35484
35485         ac_lo= ac_hi=
35486 fi
35487
35488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35489 fi
35490
35491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35492 # Binary search between lo and hi bounds.
35493 while test "x$ac_lo" != "x$ac_hi"; do
35494   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
35495   cat >conftest.$ac_ext <<_ACEOF
35496 /* confdefs.h.  */
35497 _ACEOF
35498 cat confdefs.h >>conftest.$ac_ext
35499 cat >>conftest.$ac_ext <<_ACEOF
35500 /* end confdefs.h.  */
35501 $ac_includes_default
35502    typedef short int ac__type_sizeof_;
35503 int
35504 main ()
35505 {
35506 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35507 test_array [0] = 0
35508
35509   ;
35510   return 0;
35511 }
35512 _ACEOF
35513 rm -f conftest.$ac_objext
35514 if { (ac_try="$ac_compile"
35515 case "(($ac_try" in
35516   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35517   *) ac_try_echo=$ac_try;;
35518 esac
35519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35520   (eval "$ac_compile") 2>conftest.er1
35521   ac_status=$?
35522   grep -v '^ *+' conftest.er1 >conftest.err
35523   rm -f conftest.er1
35524   cat conftest.err >&5
35525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35526   (exit $ac_status); } && {
35527          test -z "$ac_cxx_werror_flag" ||
35528          test ! -s conftest.err
35529        } && test -s conftest.$ac_objext; then
35530   ac_hi=$ac_mid
35531 else
35532   echo "$as_me: failed program was:" >&5
35533 sed 's/^/| /' conftest.$ac_ext >&5
35534
35535         ac_lo=`expr '(' $ac_mid ')' + 1`
35536 fi
35537
35538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35539 done
35540 case $ac_lo in
35541 ?*) ac_cv_sizeof_short_int=$ac_lo;;
35542 '') if test "$ac_cv_type_short_int" = yes; then
35543      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
35544 See \`config.log' for more details." >&5
35545 echo "$as_me: error: cannot compute sizeof (short int)
35546 See \`config.log' for more details." >&2;}
35547    { (exit 77); exit 77; }; }
35548    else
35549      ac_cv_sizeof_short_int=0
35550    fi ;;
35551 esac
35552 else
35553   cat >conftest.$ac_ext <<_ACEOF
35554 /* confdefs.h.  */
35555 _ACEOF
35556 cat confdefs.h >>conftest.$ac_ext
35557 cat >>conftest.$ac_ext <<_ACEOF
35558 /* end confdefs.h.  */
35559 $ac_includes_default
35560    typedef short int ac__type_sizeof_;
35561 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
35562 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
35563 #include <stdio.h>
35564 #include <stdlib.h>
35565 int
35566 main ()
35567 {
35568
35569   FILE *f = fopen ("conftest.val", "w");
35570   if (! f)
35571     return 1;
35572   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
35573     {
35574       long int i = longval ();
35575       if (i != ((long int) (sizeof (ac__type_sizeof_))))
35576         return 1;
35577       fprintf (f, "%ld\n", i);
35578     }
35579   else
35580     {
35581       unsigned long int i = ulongval ();
35582       if (i != ((long int) (sizeof (ac__type_sizeof_))))
35583         return 1;
35584       fprintf (f, "%lu\n", i);
35585     }
35586   return ferror (f) || fclose (f) != 0;
35587
35588   ;
35589   return 0;
35590 }
35591 _ACEOF
35592 rm -f conftest$ac_exeext
35593 if { (ac_try="$ac_link"
35594 case "(($ac_try" in
35595   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35596   *) ac_try_echo=$ac_try;;
35597 esac
35598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35599   (eval "$ac_link") 2>&5
35600   ac_status=$?
35601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35602   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35603   { (case "(($ac_try" in
35604   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35605   *) ac_try_echo=$ac_try;;
35606 esac
35607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35608   (eval "$ac_try") 2>&5
35609   ac_status=$?
35610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35611   (exit $ac_status); }; }; then
35612   ac_cv_sizeof_short_int=`cat conftest.val`
35613 else
35614   echo "$as_me: program exited with status $ac_status" >&5
35615 echo "$as_me: failed program was:" >&5
35616 sed 's/^/| /' conftest.$ac_ext >&5
35617
35618 ( exit $ac_status )
35619 if test "$ac_cv_type_short_int" = yes; then
35620      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
35621 See \`config.log' for more details." >&5
35622 echo "$as_me: error: cannot compute sizeof (short int)
35623 See \`config.log' for more details." >&2;}
35624    { (exit 77); exit 77; }; }
35625    else
35626      ac_cv_sizeof_short_int=0
35627    fi
35628 fi
35629 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35630 fi
35631 rm -f conftest.val
35632 fi
35633 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
35634 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6; }
35635
35636
35637
35638 cat >>confdefs.h <<_ACEOF
35639 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
35640 _ACEOF
35641
35642
35643 { echo "$as_me:$LINENO: checking for int" >&5
35644 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
35645 if test "${ac_cv_type_int+set}" = set; then
35646   echo $ECHO_N "(cached) $ECHO_C" >&6
35647 else
35648   cat >conftest.$ac_ext <<_ACEOF
35649 /* confdefs.h.  */
35650 _ACEOF
35651 cat confdefs.h >>conftest.$ac_ext
35652 cat >>conftest.$ac_ext <<_ACEOF
35653 /* end confdefs.h.  */
35654 $ac_includes_default
35655 typedef int ac__type_new_;
35656 int
35657 main ()
35658 {
35659 if ((ac__type_new_ *) 0)
35660   return 0;
35661 if (sizeof (ac__type_new_))
35662   return 0;
35663   ;
35664   return 0;
35665 }
35666 _ACEOF
35667 rm -f conftest.$ac_objext
35668 if { (ac_try="$ac_compile"
35669 case "(($ac_try" in
35670   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35671   *) ac_try_echo=$ac_try;;
35672 esac
35673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35674   (eval "$ac_compile") 2>conftest.er1
35675   ac_status=$?
35676   grep -v '^ *+' conftest.er1 >conftest.err
35677   rm -f conftest.er1
35678   cat conftest.err >&5
35679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35680   (exit $ac_status); } && {
35681          test -z "$ac_cxx_werror_flag" ||
35682          test ! -s conftest.err
35683        } && test -s conftest.$ac_objext; then
35684   ac_cv_type_int=yes
35685 else
35686   echo "$as_me: failed program was:" >&5
35687 sed 's/^/| /' conftest.$ac_ext >&5
35688
35689         ac_cv_type_int=no
35690 fi
35691
35692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35693 fi
35694 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
35695 echo "${ECHO_T}$ac_cv_type_int" >&6; }
35696
35697 # The cast to long int works around a bug in the HP C Compiler
35698 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
35699 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
35700 # This bug is HP SR number 8606223364.
35701 { echo "$as_me:$LINENO: checking size of int" >&5
35702 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
35703 if test "${ac_cv_sizeof_int+set}" = set; then
35704   echo $ECHO_N "(cached) $ECHO_C" >&6
35705 else
35706   if test "$cross_compiling" = yes; then
35707   # Depending upon the size, compute the lo and hi bounds.
35708 cat >conftest.$ac_ext <<_ACEOF
35709 /* confdefs.h.  */
35710 _ACEOF
35711 cat confdefs.h >>conftest.$ac_ext
35712 cat >>conftest.$ac_ext <<_ACEOF
35713 /* end confdefs.h.  */
35714 $ac_includes_default
35715    typedef int ac__type_sizeof_;
35716 int
35717 main ()
35718 {
35719 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
35720 test_array [0] = 0
35721
35722   ;
35723   return 0;
35724 }
35725 _ACEOF
35726 rm -f conftest.$ac_objext
35727 if { (ac_try="$ac_compile"
35728 case "(($ac_try" in
35729   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35730   *) ac_try_echo=$ac_try;;
35731 esac
35732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35733   (eval "$ac_compile") 2>conftest.er1
35734   ac_status=$?
35735   grep -v '^ *+' conftest.er1 >conftest.err
35736   rm -f conftest.er1
35737   cat conftest.err >&5
35738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35739   (exit $ac_status); } && {
35740          test -z "$ac_cxx_werror_flag" ||
35741          test ! -s conftest.err
35742        } && test -s conftest.$ac_objext; then
35743   ac_lo=0 ac_mid=0
35744   while :; do
35745     cat >conftest.$ac_ext <<_ACEOF
35746 /* confdefs.h.  */
35747 _ACEOF
35748 cat confdefs.h >>conftest.$ac_ext
35749 cat >>conftest.$ac_ext <<_ACEOF
35750 /* end confdefs.h.  */
35751 $ac_includes_default
35752    typedef int ac__type_sizeof_;
35753 int
35754 main ()
35755 {
35756 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35757 test_array [0] = 0
35758
35759   ;
35760   return 0;
35761 }
35762 _ACEOF
35763 rm -f conftest.$ac_objext
35764 if { (ac_try="$ac_compile"
35765 case "(($ac_try" in
35766   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35767   *) ac_try_echo=$ac_try;;
35768 esac
35769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35770   (eval "$ac_compile") 2>conftest.er1
35771   ac_status=$?
35772   grep -v '^ *+' conftest.er1 >conftest.err
35773   rm -f conftest.er1
35774   cat conftest.err >&5
35775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35776   (exit $ac_status); } && {
35777          test -z "$ac_cxx_werror_flag" ||
35778          test ! -s conftest.err
35779        } && test -s conftest.$ac_objext; then
35780   ac_hi=$ac_mid; break
35781 else
35782   echo "$as_me: failed program was:" >&5
35783 sed 's/^/| /' conftest.$ac_ext >&5
35784
35785         ac_lo=`expr $ac_mid + 1`
35786                         if test $ac_lo -le $ac_mid; then
35787                           ac_lo= ac_hi=
35788                           break
35789                         fi
35790                         ac_mid=`expr 2 '*' $ac_mid + 1`
35791 fi
35792
35793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35794   done
35795 else
35796   echo "$as_me: failed program was:" >&5
35797 sed 's/^/| /' conftest.$ac_ext >&5
35798
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 int ac__type_sizeof_;
35807 int
35808 main ()
35809 {
35810 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
35811 test_array [0] = 0
35812
35813   ;
35814   return 0;
35815 }
35816 _ACEOF
35817 rm -f conftest.$ac_objext
35818 if { (ac_try="$ac_compile"
35819 case "(($ac_try" in
35820   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35821   *) ac_try_echo=$ac_try;;
35822 esac
35823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35824   (eval "$ac_compile") 2>conftest.er1
35825   ac_status=$?
35826   grep -v '^ *+' conftest.er1 >conftest.err
35827   rm -f conftest.er1
35828   cat conftest.err >&5
35829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35830   (exit $ac_status); } && {
35831          test -z "$ac_cxx_werror_flag" ||
35832          test ! -s conftest.err
35833        } && test -s conftest.$ac_objext; then
35834   ac_hi=-1 ac_mid=-1
35835   while :; do
35836     cat >conftest.$ac_ext <<_ACEOF
35837 /* confdefs.h.  */
35838 _ACEOF
35839 cat confdefs.h >>conftest.$ac_ext
35840 cat >>conftest.$ac_ext <<_ACEOF
35841 /* end confdefs.h.  */
35842 $ac_includes_default
35843    typedef int ac__type_sizeof_;
35844 int
35845 main ()
35846 {
35847 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
35848 test_array [0] = 0
35849
35850   ;
35851   return 0;
35852 }
35853 _ACEOF
35854 rm -f conftest.$ac_objext
35855 if { (ac_try="$ac_compile"
35856 case "(($ac_try" in
35857   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35858   *) ac_try_echo=$ac_try;;
35859 esac
35860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35861   (eval "$ac_compile") 2>conftest.er1
35862   ac_status=$?
35863   grep -v '^ *+' conftest.er1 >conftest.err
35864   rm -f conftest.er1
35865   cat conftest.err >&5
35866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35867   (exit $ac_status); } && {
35868          test -z "$ac_cxx_werror_flag" ||
35869          test ! -s conftest.err
35870        } && test -s conftest.$ac_objext; then
35871   ac_lo=$ac_mid; break
35872 else
35873   echo "$as_me: failed program was:" >&5
35874 sed 's/^/| /' conftest.$ac_ext >&5
35875
35876         ac_hi=`expr '(' $ac_mid ')' - 1`
35877                         if test $ac_mid -le $ac_hi; then
35878                           ac_lo= ac_hi=
35879                           break
35880                         fi
35881                         ac_mid=`expr 2 '*' $ac_mid`
35882 fi
35883
35884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35885   done
35886 else
35887   echo "$as_me: failed program was:" >&5
35888 sed 's/^/| /' conftest.$ac_ext >&5
35889
35890         ac_lo= ac_hi=
35891 fi
35892
35893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35894 fi
35895
35896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35897 # Binary search between lo and hi bounds.
35898 while test "x$ac_lo" != "x$ac_hi"; do
35899   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
35900   cat >conftest.$ac_ext <<_ACEOF
35901 /* confdefs.h.  */
35902 _ACEOF
35903 cat confdefs.h >>conftest.$ac_ext
35904 cat >>conftest.$ac_ext <<_ACEOF
35905 /* end confdefs.h.  */
35906 $ac_includes_default
35907    typedef int ac__type_sizeof_;
35908 int
35909 main ()
35910 {
35911 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35912 test_array [0] = 0
35913
35914   ;
35915   return 0;
35916 }
35917 _ACEOF
35918 rm -f conftest.$ac_objext
35919 if { (ac_try="$ac_compile"
35920 case "(($ac_try" in
35921   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35922   *) ac_try_echo=$ac_try;;
35923 esac
35924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35925   (eval "$ac_compile") 2>conftest.er1
35926   ac_status=$?
35927   grep -v '^ *+' conftest.er1 >conftest.err
35928   rm -f conftest.er1
35929   cat conftest.err >&5
35930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35931   (exit $ac_status); } && {
35932          test -z "$ac_cxx_werror_flag" ||
35933          test ! -s conftest.err
35934        } && test -s conftest.$ac_objext; then
35935   ac_hi=$ac_mid
35936 else
35937   echo "$as_me: failed program was:" >&5
35938 sed 's/^/| /' conftest.$ac_ext >&5
35939
35940         ac_lo=`expr '(' $ac_mid ')' + 1`
35941 fi
35942
35943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35944 done
35945 case $ac_lo in
35946 ?*) ac_cv_sizeof_int=$ac_lo;;
35947 '') if test "$ac_cv_type_int" = yes; then
35948      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
35949 See \`config.log' for more details." >&5
35950 echo "$as_me: error: cannot compute sizeof (int)
35951 See \`config.log' for more details." >&2;}
35952    { (exit 77); exit 77; }; }
35953    else
35954      ac_cv_sizeof_int=0
35955    fi ;;
35956 esac
35957 else
35958   cat >conftest.$ac_ext <<_ACEOF
35959 /* confdefs.h.  */
35960 _ACEOF
35961 cat confdefs.h >>conftest.$ac_ext
35962 cat >>conftest.$ac_ext <<_ACEOF
35963 /* end confdefs.h.  */
35964 $ac_includes_default
35965    typedef int ac__type_sizeof_;
35966 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
35967 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
35968 #include <stdio.h>
35969 #include <stdlib.h>
35970 int
35971 main ()
35972 {
35973
35974   FILE *f = fopen ("conftest.val", "w");
35975   if (! f)
35976     return 1;
35977   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
35978     {
35979       long int i = longval ();
35980       if (i != ((long int) (sizeof (ac__type_sizeof_))))
35981         return 1;
35982       fprintf (f, "%ld\n", i);
35983     }
35984   else
35985     {
35986       unsigned long int i = ulongval ();
35987       if (i != ((long int) (sizeof (ac__type_sizeof_))))
35988         return 1;
35989       fprintf (f, "%lu\n", i);
35990     }
35991   return ferror (f) || fclose (f) != 0;
35992
35993   ;
35994   return 0;
35995 }
35996 _ACEOF
35997 rm -f conftest$ac_exeext
35998 if { (ac_try="$ac_link"
35999 case "(($ac_try" in
36000   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36001   *) ac_try_echo=$ac_try;;
36002 esac
36003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36004   (eval "$ac_link") 2>&5
36005   ac_status=$?
36006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36007   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36008   { (case "(($ac_try" in
36009   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36010   *) ac_try_echo=$ac_try;;
36011 esac
36012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36013   (eval "$ac_try") 2>&5
36014   ac_status=$?
36015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36016   (exit $ac_status); }; }; then
36017   ac_cv_sizeof_int=`cat conftest.val`
36018 else
36019   echo "$as_me: program exited with status $ac_status" >&5
36020 echo "$as_me: failed program was:" >&5
36021 sed 's/^/| /' conftest.$ac_ext >&5
36022
36023 ( exit $ac_status )
36024 if test "$ac_cv_type_int" = yes; then
36025      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
36026 See \`config.log' for more details." >&5
36027 echo "$as_me: error: cannot compute sizeof (int)
36028 See \`config.log' for more details." >&2;}
36029    { (exit 77); exit 77; }; }
36030    else
36031      ac_cv_sizeof_int=0
36032    fi
36033 fi
36034 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36035 fi
36036 rm -f conftest.val
36037 fi
36038 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
36039 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
36040
36041
36042
36043 cat >>confdefs.h <<_ACEOF
36044 #define SIZEOF_INT $ac_cv_sizeof_int
36045 _ACEOF
36046
36047
36048 { echo "$as_me:$LINENO: checking for long int" >&5
36049 echo $ECHO_N "checking for long int... $ECHO_C" >&6; }
36050 if test "${ac_cv_type_long_int+set}" = set; then
36051   echo $ECHO_N "(cached) $ECHO_C" >&6
36052 else
36053   cat >conftest.$ac_ext <<_ACEOF
36054 /* confdefs.h.  */
36055 _ACEOF
36056 cat confdefs.h >>conftest.$ac_ext
36057 cat >>conftest.$ac_ext <<_ACEOF
36058 /* end confdefs.h.  */
36059 $ac_includes_default
36060 typedef long int ac__type_new_;
36061 int
36062 main ()
36063 {
36064 if ((ac__type_new_ *) 0)
36065   return 0;
36066 if (sizeof (ac__type_new_))
36067   return 0;
36068   ;
36069   return 0;
36070 }
36071 _ACEOF
36072 rm -f conftest.$ac_objext
36073 if { (ac_try="$ac_compile"
36074 case "(($ac_try" in
36075   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36076   *) ac_try_echo=$ac_try;;
36077 esac
36078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36079   (eval "$ac_compile") 2>conftest.er1
36080   ac_status=$?
36081   grep -v '^ *+' conftest.er1 >conftest.err
36082   rm -f conftest.er1
36083   cat conftest.err >&5
36084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36085   (exit $ac_status); } && {
36086          test -z "$ac_cxx_werror_flag" ||
36087          test ! -s conftest.err
36088        } && test -s conftest.$ac_objext; then
36089   ac_cv_type_long_int=yes
36090 else
36091   echo "$as_me: failed program was:" >&5
36092 sed 's/^/| /' conftest.$ac_ext >&5
36093
36094         ac_cv_type_long_int=no
36095 fi
36096
36097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36098 fi
36099 { echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
36100 echo "${ECHO_T}$ac_cv_type_long_int" >&6; }
36101
36102 # The cast to long int works around a bug in the HP C Compiler
36103 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
36104 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
36105 # This bug is HP SR number 8606223364.
36106 { echo "$as_me:$LINENO: checking size of long int" >&5
36107 echo $ECHO_N "checking size of long int... $ECHO_C" >&6; }
36108 if test "${ac_cv_sizeof_long_int+set}" = set; then
36109   echo $ECHO_N "(cached) $ECHO_C" >&6
36110 else
36111   if test "$cross_compiling" = yes; then
36112   # Depending upon the size, compute the lo and hi bounds.
36113 cat >conftest.$ac_ext <<_ACEOF
36114 /* confdefs.h.  */
36115 _ACEOF
36116 cat confdefs.h >>conftest.$ac_ext
36117 cat >>conftest.$ac_ext <<_ACEOF
36118 /* end confdefs.h.  */
36119 $ac_includes_default
36120    typedef long int ac__type_sizeof_;
36121 int
36122 main ()
36123 {
36124 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
36125 test_array [0] = 0
36126
36127   ;
36128   return 0;
36129 }
36130 _ACEOF
36131 rm -f conftest.$ac_objext
36132 if { (ac_try="$ac_compile"
36133 case "(($ac_try" in
36134   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36135   *) ac_try_echo=$ac_try;;
36136 esac
36137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36138   (eval "$ac_compile") 2>conftest.er1
36139   ac_status=$?
36140   grep -v '^ *+' conftest.er1 >conftest.err
36141   rm -f conftest.er1
36142   cat conftest.err >&5
36143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36144   (exit $ac_status); } && {
36145          test -z "$ac_cxx_werror_flag" ||
36146          test ! -s conftest.err
36147        } && test -s conftest.$ac_objext; then
36148   ac_lo=0 ac_mid=0
36149   while :; do
36150     cat >conftest.$ac_ext <<_ACEOF
36151 /* confdefs.h.  */
36152 _ACEOF
36153 cat confdefs.h >>conftest.$ac_ext
36154 cat >>conftest.$ac_ext <<_ACEOF
36155 /* end confdefs.h.  */
36156 $ac_includes_default
36157    typedef long int ac__type_sizeof_;
36158 int
36159 main ()
36160 {
36161 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36162 test_array [0] = 0
36163
36164   ;
36165   return 0;
36166 }
36167 _ACEOF
36168 rm -f conftest.$ac_objext
36169 if { (ac_try="$ac_compile"
36170 case "(($ac_try" in
36171   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36172   *) ac_try_echo=$ac_try;;
36173 esac
36174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36175   (eval "$ac_compile") 2>conftest.er1
36176   ac_status=$?
36177   grep -v '^ *+' conftest.er1 >conftest.err
36178   rm -f conftest.er1
36179   cat conftest.err >&5
36180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36181   (exit $ac_status); } && {
36182          test -z "$ac_cxx_werror_flag" ||
36183          test ! -s conftest.err
36184        } && test -s conftest.$ac_objext; then
36185   ac_hi=$ac_mid; break
36186 else
36187   echo "$as_me: failed program was:" >&5
36188 sed 's/^/| /' conftest.$ac_ext >&5
36189
36190         ac_lo=`expr $ac_mid + 1`
36191                         if test $ac_lo -le $ac_mid; then
36192                           ac_lo= ac_hi=
36193                           break
36194                         fi
36195                         ac_mid=`expr 2 '*' $ac_mid + 1`
36196 fi
36197
36198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36199   done
36200 else
36201   echo "$as_me: failed program was:" >&5
36202 sed 's/^/| /' conftest.$ac_ext >&5
36203
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 int ac__type_sizeof_;
36212 int
36213 main ()
36214 {
36215 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
36216 test_array [0] = 0
36217
36218   ;
36219   return 0;
36220 }
36221 _ACEOF
36222 rm -f conftest.$ac_objext
36223 if { (ac_try="$ac_compile"
36224 case "(($ac_try" in
36225   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36226   *) ac_try_echo=$ac_try;;
36227 esac
36228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36229   (eval "$ac_compile") 2>conftest.er1
36230   ac_status=$?
36231   grep -v '^ *+' conftest.er1 >conftest.err
36232   rm -f conftest.er1
36233   cat conftest.err >&5
36234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36235   (exit $ac_status); } && {
36236          test -z "$ac_cxx_werror_flag" ||
36237          test ! -s conftest.err
36238        } && test -s conftest.$ac_objext; then
36239   ac_hi=-1 ac_mid=-1
36240   while :; do
36241     cat >conftest.$ac_ext <<_ACEOF
36242 /* confdefs.h.  */
36243 _ACEOF
36244 cat confdefs.h >>conftest.$ac_ext
36245 cat >>conftest.$ac_ext <<_ACEOF
36246 /* end confdefs.h.  */
36247 $ac_includes_default
36248    typedef long int ac__type_sizeof_;
36249 int
36250 main ()
36251 {
36252 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
36253 test_array [0] = 0
36254
36255   ;
36256   return 0;
36257 }
36258 _ACEOF
36259 rm -f conftest.$ac_objext
36260 if { (ac_try="$ac_compile"
36261 case "(($ac_try" in
36262   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36263   *) ac_try_echo=$ac_try;;
36264 esac
36265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36266   (eval "$ac_compile") 2>conftest.er1
36267   ac_status=$?
36268   grep -v '^ *+' conftest.er1 >conftest.err
36269   rm -f conftest.er1
36270   cat conftest.err >&5
36271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36272   (exit $ac_status); } && {
36273          test -z "$ac_cxx_werror_flag" ||
36274          test ! -s conftest.err
36275        } && test -s conftest.$ac_objext; then
36276   ac_lo=$ac_mid; break
36277 else
36278   echo "$as_me: failed program was:" >&5
36279 sed 's/^/| /' conftest.$ac_ext >&5
36280
36281         ac_hi=`expr '(' $ac_mid ')' - 1`
36282                         if test $ac_mid -le $ac_hi; then
36283                           ac_lo= ac_hi=
36284                           break
36285                         fi
36286                         ac_mid=`expr 2 '*' $ac_mid`
36287 fi
36288
36289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36290   done
36291 else
36292   echo "$as_me: failed program was:" >&5
36293 sed 's/^/| /' conftest.$ac_ext >&5
36294
36295         ac_lo= ac_hi=
36296 fi
36297
36298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36299 fi
36300
36301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36302 # Binary search between lo and hi bounds.
36303 while test "x$ac_lo" != "x$ac_hi"; do
36304   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
36305   cat >conftest.$ac_ext <<_ACEOF
36306 /* confdefs.h.  */
36307 _ACEOF
36308 cat confdefs.h >>conftest.$ac_ext
36309 cat >>conftest.$ac_ext <<_ACEOF
36310 /* end confdefs.h.  */
36311 $ac_includes_default
36312    typedef long int ac__type_sizeof_;
36313 int
36314 main ()
36315 {
36316 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36317 test_array [0] = 0
36318
36319   ;
36320   return 0;
36321 }
36322 _ACEOF
36323 rm -f conftest.$ac_objext
36324 if { (ac_try="$ac_compile"
36325 case "(($ac_try" in
36326   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36327   *) ac_try_echo=$ac_try;;
36328 esac
36329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36330   (eval "$ac_compile") 2>conftest.er1
36331   ac_status=$?
36332   grep -v '^ *+' conftest.er1 >conftest.err
36333   rm -f conftest.er1
36334   cat conftest.err >&5
36335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36336   (exit $ac_status); } && {
36337          test -z "$ac_cxx_werror_flag" ||
36338          test ! -s conftest.err
36339        } && test -s conftest.$ac_objext; then
36340   ac_hi=$ac_mid
36341 else
36342   echo "$as_me: failed program was:" >&5
36343 sed 's/^/| /' conftest.$ac_ext >&5
36344
36345         ac_lo=`expr '(' $ac_mid ')' + 1`
36346 fi
36347
36348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36349 done
36350 case $ac_lo in
36351 ?*) ac_cv_sizeof_long_int=$ac_lo;;
36352 '') if test "$ac_cv_type_long_int" = yes; then
36353      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
36354 See \`config.log' for more details." >&5
36355 echo "$as_me: error: cannot compute sizeof (long int)
36356 See \`config.log' for more details." >&2;}
36357    { (exit 77); exit 77; }; }
36358    else
36359      ac_cv_sizeof_long_int=0
36360    fi ;;
36361 esac
36362 else
36363   cat >conftest.$ac_ext <<_ACEOF
36364 /* confdefs.h.  */
36365 _ACEOF
36366 cat confdefs.h >>conftest.$ac_ext
36367 cat >>conftest.$ac_ext <<_ACEOF
36368 /* end confdefs.h.  */
36369 $ac_includes_default
36370    typedef long int ac__type_sizeof_;
36371 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
36372 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
36373 #include <stdio.h>
36374 #include <stdlib.h>
36375 int
36376 main ()
36377 {
36378
36379   FILE *f = fopen ("conftest.val", "w");
36380   if (! f)
36381     return 1;
36382   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
36383     {
36384       long int i = longval ();
36385       if (i != ((long int) (sizeof (ac__type_sizeof_))))
36386         return 1;
36387       fprintf (f, "%ld\n", i);
36388     }
36389   else
36390     {
36391       unsigned long int i = ulongval ();
36392       if (i != ((long int) (sizeof (ac__type_sizeof_))))
36393         return 1;
36394       fprintf (f, "%lu\n", i);
36395     }
36396   return ferror (f) || fclose (f) != 0;
36397
36398   ;
36399   return 0;
36400 }
36401 _ACEOF
36402 rm -f conftest$ac_exeext
36403 if { (ac_try="$ac_link"
36404 case "(($ac_try" in
36405   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36406   *) ac_try_echo=$ac_try;;
36407 esac
36408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36409   (eval "$ac_link") 2>&5
36410   ac_status=$?
36411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36412   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36413   { (case "(($ac_try" in
36414   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36415   *) ac_try_echo=$ac_try;;
36416 esac
36417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36418   (eval "$ac_try") 2>&5
36419   ac_status=$?
36420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36421   (exit $ac_status); }; }; then
36422   ac_cv_sizeof_long_int=`cat conftest.val`
36423 else
36424   echo "$as_me: program exited with status $ac_status" >&5
36425 echo "$as_me: failed program was:" >&5
36426 sed 's/^/| /' conftest.$ac_ext >&5
36427
36428 ( exit $ac_status )
36429 if test "$ac_cv_type_long_int" = yes; then
36430      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
36431 See \`config.log' for more details." >&5
36432 echo "$as_me: error: cannot compute sizeof (long int)
36433 See \`config.log' for more details." >&2;}
36434    { (exit 77); exit 77; }; }
36435    else
36436      ac_cv_sizeof_long_int=0
36437    fi
36438 fi
36439 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36440 fi
36441 rm -f conftest.val
36442 fi
36443 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
36444 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6; }
36445
36446
36447
36448 cat >>confdefs.h <<_ACEOF
36449 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
36450 _ACEOF
36451
36452
36453 { echo "$as_me:$LINENO: checking for long long int" >&5
36454 echo $ECHO_N "checking for long long int... $ECHO_C" >&6; }
36455 if test "${ac_cv_type_long_long_int+set}" = set; then
36456   echo $ECHO_N "(cached) $ECHO_C" >&6
36457 else
36458   cat >conftest.$ac_ext <<_ACEOF
36459 /* confdefs.h.  */
36460 _ACEOF
36461 cat confdefs.h >>conftest.$ac_ext
36462 cat >>conftest.$ac_ext <<_ACEOF
36463 /* end confdefs.h.  */
36464 $ac_includes_default
36465 typedef long long int ac__type_new_;
36466 int
36467 main ()
36468 {
36469 if ((ac__type_new_ *) 0)
36470   return 0;
36471 if (sizeof (ac__type_new_))
36472   return 0;
36473   ;
36474   return 0;
36475 }
36476 _ACEOF
36477 rm -f conftest.$ac_objext
36478 if { (ac_try="$ac_compile"
36479 case "(($ac_try" in
36480   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36481   *) ac_try_echo=$ac_try;;
36482 esac
36483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36484   (eval "$ac_compile") 2>conftest.er1
36485   ac_status=$?
36486   grep -v '^ *+' conftest.er1 >conftest.err
36487   rm -f conftest.er1
36488   cat conftest.err >&5
36489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36490   (exit $ac_status); } && {
36491          test -z "$ac_cxx_werror_flag" ||
36492          test ! -s conftest.err
36493        } && test -s conftest.$ac_objext; then
36494   ac_cv_type_long_long_int=yes
36495 else
36496   echo "$as_me: failed program was:" >&5
36497 sed 's/^/| /' conftest.$ac_ext >&5
36498
36499         ac_cv_type_long_long_int=no
36500 fi
36501
36502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36503 fi
36504 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
36505 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6; }
36506
36507 # The cast to long int works around a bug in the HP C Compiler
36508 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
36509 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
36510 # This bug is HP SR number 8606223364.
36511 { echo "$as_me:$LINENO: checking size of long long int" >&5
36512 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6; }
36513 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
36514   echo $ECHO_N "(cached) $ECHO_C" >&6
36515 else
36516   if test "$cross_compiling" = yes; then
36517   # Depending upon the size, compute the lo and hi bounds.
36518 cat >conftest.$ac_ext <<_ACEOF
36519 /* confdefs.h.  */
36520 _ACEOF
36521 cat confdefs.h >>conftest.$ac_ext
36522 cat >>conftest.$ac_ext <<_ACEOF
36523 /* end confdefs.h.  */
36524 $ac_includes_default
36525    typedef long long int ac__type_sizeof_;
36526 int
36527 main ()
36528 {
36529 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
36530 test_array [0] = 0
36531
36532   ;
36533   return 0;
36534 }
36535 _ACEOF
36536 rm -f conftest.$ac_objext
36537 if { (ac_try="$ac_compile"
36538 case "(($ac_try" in
36539   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36540   *) ac_try_echo=$ac_try;;
36541 esac
36542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36543   (eval "$ac_compile") 2>conftest.er1
36544   ac_status=$?
36545   grep -v '^ *+' conftest.er1 >conftest.err
36546   rm -f conftest.er1
36547   cat conftest.err >&5
36548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36549   (exit $ac_status); } && {
36550          test -z "$ac_cxx_werror_flag" ||
36551          test ! -s conftest.err
36552        } && test -s conftest.$ac_objext; then
36553   ac_lo=0 ac_mid=0
36554   while :; do
36555     cat >conftest.$ac_ext <<_ACEOF
36556 /* confdefs.h.  */
36557 _ACEOF
36558 cat confdefs.h >>conftest.$ac_ext
36559 cat >>conftest.$ac_ext <<_ACEOF
36560 /* end confdefs.h.  */
36561 $ac_includes_default
36562    typedef long long int ac__type_sizeof_;
36563 int
36564 main ()
36565 {
36566 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36567 test_array [0] = 0
36568
36569   ;
36570   return 0;
36571 }
36572 _ACEOF
36573 rm -f conftest.$ac_objext
36574 if { (ac_try="$ac_compile"
36575 case "(($ac_try" in
36576   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36577   *) ac_try_echo=$ac_try;;
36578 esac
36579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36580   (eval "$ac_compile") 2>conftest.er1
36581   ac_status=$?
36582   grep -v '^ *+' conftest.er1 >conftest.err
36583   rm -f conftest.er1
36584   cat conftest.err >&5
36585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36586   (exit $ac_status); } && {
36587          test -z "$ac_cxx_werror_flag" ||
36588          test ! -s conftest.err
36589        } && test -s conftest.$ac_objext; then
36590   ac_hi=$ac_mid; break
36591 else
36592   echo "$as_me: failed program was:" >&5
36593 sed 's/^/| /' conftest.$ac_ext >&5
36594
36595         ac_lo=`expr $ac_mid + 1`
36596                         if test $ac_lo -le $ac_mid; then
36597                           ac_lo= ac_hi=
36598                           break
36599                         fi
36600                         ac_mid=`expr 2 '*' $ac_mid + 1`
36601 fi
36602
36603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36604   done
36605 else
36606   echo "$as_me: failed program was:" >&5
36607 sed 's/^/| /' conftest.$ac_ext >&5
36608
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 long long int ac__type_sizeof_;
36617 int
36618 main ()
36619 {
36620 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
36621 test_array [0] = 0
36622
36623   ;
36624   return 0;
36625 }
36626 _ACEOF
36627 rm -f conftest.$ac_objext
36628 if { (ac_try="$ac_compile"
36629 case "(($ac_try" in
36630   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36631   *) ac_try_echo=$ac_try;;
36632 esac
36633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36634   (eval "$ac_compile") 2>conftest.er1
36635   ac_status=$?
36636   grep -v '^ *+' conftest.er1 >conftest.err
36637   rm -f conftest.er1
36638   cat conftest.err >&5
36639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36640   (exit $ac_status); } && {
36641          test -z "$ac_cxx_werror_flag" ||
36642          test ! -s conftest.err
36643        } && test -s conftest.$ac_objext; then
36644   ac_hi=-1 ac_mid=-1
36645   while :; do
36646     cat >conftest.$ac_ext <<_ACEOF
36647 /* confdefs.h.  */
36648 _ACEOF
36649 cat confdefs.h >>conftest.$ac_ext
36650 cat >>conftest.$ac_ext <<_ACEOF
36651 /* end confdefs.h.  */
36652 $ac_includes_default
36653    typedef long long int ac__type_sizeof_;
36654 int
36655 main ()
36656 {
36657 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
36658 test_array [0] = 0
36659
36660   ;
36661   return 0;
36662 }
36663 _ACEOF
36664 rm -f conftest.$ac_objext
36665 if { (ac_try="$ac_compile"
36666 case "(($ac_try" in
36667   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36668   *) ac_try_echo=$ac_try;;
36669 esac
36670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36671   (eval "$ac_compile") 2>conftest.er1
36672   ac_status=$?
36673   grep -v '^ *+' conftest.er1 >conftest.err
36674   rm -f conftest.er1
36675   cat conftest.err >&5
36676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36677   (exit $ac_status); } && {
36678          test -z "$ac_cxx_werror_flag" ||
36679          test ! -s conftest.err
36680        } && test -s conftest.$ac_objext; then
36681   ac_lo=$ac_mid; break
36682 else
36683   echo "$as_me: failed program was:" >&5
36684 sed 's/^/| /' conftest.$ac_ext >&5
36685
36686         ac_hi=`expr '(' $ac_mid ')' - 1`
36687                         if test $ac_mid -le $ac_hi; then
36688                           ac_lo= ac_hi=
36689                           break
36690                         fi
36691                         ac_mid=`expr 2 '*' $ac_mid`
36692 fi
36693
36694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36695   done
36696 else
36697   echo "$as_me: failed program was:" >&5
36698 sed 's/^/| /' conftest.$ac_ext >&5
36699
36700         ac_lo= ac_hi=
36701 fi
36702
36703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36704 fi
36705
36706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36707 # Binary search between lo and hi bounds.
36708 while test "x$ac_lo" != "x$ac_hi"; do
36709   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
36710   cat >conftest.$ac_ext <<_ACEOF
36711 /* confdefs.h.  */
36712 _ACEOF
36713 cat confdefs.h >>conftest.$ac_ext
36714 cat >>conftest.$ac_ext <<_ACEOF
36715 /* end confdefs.h.  */
36716 $ac_includes_default
36717    typedef long long int ac__type_sizeof_;
36718 int
36719 main ()
36720 {
36721 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36722 test_array [0] = 0
36723
36724   ;
36725   return 0;
36726 }
36727 _ACEOF
36728 rm -f conftest.$ac_objext
36729 if { (ac_try="$ac_compile"
36730 case "(($ac_try" in
36731   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36732   *) ac_try_echo=$ac_try;;
36733 esac
36734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36735   (eval "$ac_compile") 2>conftest.er1
36736   ac_status=$?
36737   grep -v '^ *+' conftest.er1 >conftest.err
36738   rm -f conftest.er1
36739   cat conftest.err >&5
36740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36741   (exit $ac_status); } && {
36742          test -z "$ac_cxx_werror_flag" ||
36743          test ! -s conftest.err
36744        } && test -s conftest.$ac_objext; then
36745   ac_hi=$ac_mid
36746 else
36747   echo "$as_me: failed program was:" >&5
36748 sed 's/^/| /' conftest.$ac_ext >&5
36749
36750         ac_lo=`expr '(' $ac_mid ')' + 1`
36751 fi
36752
36753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36754 done
36755 case $ac_lo in
36756 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
36757 '') if test "$ac_cv_type_long_long_int" = yes; then
36758      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
36759 See \`config.log' for more details." >&5
36760 echo "$as_me: error: cannot compute sizeof (long long int)
36761 See \`config.log' for more details." >&2;}
36762    { (exit 77); exit 77; }; }
36763    else
36764      ac_cv_sizeof_long_long_int=0
36765    fi ;;
36766 esac
36767 else
36768   cat >conftest.$ac_ext <<_ACEOF
36769 /* confdefs.h.  */
36770 _ACEOF
36771 cat confdefs.h >>conftest.$ac_ext
36772 cat >>conftest.$ac_ext <<_ACEOF
36773 /* end confdefs.h.  */
36774 $ac_includes_default
36775    typedef long long int ac__type_sizeof_;
36776 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
36777 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
36778 #include <stdio.h>
36779 #include <stdlib.h>
36780 int
36781 main ()
36782 {
36783
36784   FILE *f = fopen ("conftest.val", "w");
36785   if (! f)
36786     return 1;
36787   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
36788     {
36789       long int i = longval ();
36790       if (i != ((long int) (sizeof (ac__type_sizeof_))))
36791         return 1;
36792       fprintf (f, "%ld\n", i);
36793     }
36794   else
36795     {
36796       unsigned long int i = ulongval ();
36797       if (i != ((long int) (sizeof (ac__type_sizeof_))))
36798         return 1;
36799       fprintf (f, "%lu\n", i);
36800     }
36801   return ferror (f) || fclose (f) != 0;
36802
36803   ;
36804   return 0;
36805 }
36806 _ACEOF
36807 rm -f conftest$ac_exeext
36808 if { (ac_try="$ac_link"
36809 case "(($ac_try" in
36810   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36811   *) ac_try_echo=$ac_try;;
36812 esac
36813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36814   (eval "$ac_link") 2>&5
36815   ac_status=$?
36816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36817   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36818   { (case "(($ac_try" in
36819   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36820   *) ac_try_echo=$ac_try;;
36821 esac
36822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36823   (eval "$ac_try") 2>&5
36824   ac_status=$?
36825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36826   (exit $ac_status); }; }; then
36827   ac_cv_sizeof_long_long_int=`cat conftest.val`
36828 else
36829   echo "$as_me: program exited with status $ac_status" >&5
36830 echo "$as_me: failed program was:" >&5
36831 sed 's/^/| /' conftest.$ac_ext >&5
36832
36833 ( exit $ac_status )
36834 if test "$ac_cv_type_long_long_int" = yes; then
36835      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
36836 See \`config.log' for more details." >&5
36837 echo "$as_me: error: cannot compute sizeof (long long int)
36838 See \`config.log' for more details." >&2;}
36839    { (exit 77); exit 77; }; }
36840    else
36841      ac_cv_sizeof_long_long_int=0
36842    fi
36843 fi
36844 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36845 fi
36846 rm -f conftest.val
36847 fi
36848 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
36849 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6; }
36850
36851
36852
36853 cat >>confdefs.h <<_ACEOF
36854 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
36855 _ACEOF
36856
36857
36858 { echo "$as_me:$LINENO: checking for int *" >&5
36859 echo $ECHO_N "checking for int *... $ECHO_C" >&6; }
36860 if test "${ac_cv_type_int_p+set}" = set; then
36861   echo $ECHO_N "(cached) $ECHO_C" >&6
36862 else
36863   cat >conftest.$ac_ext <<_ACEOF
36864 /* confdefs.h.  */
36865 _ACEOF
36866 cat confdefs.h >>conftest.$ac_ext
36867 cat >>conftest.$ac_ext <<_ACEOF
36868 /* end confdefs.h.  */
36869 $ac_includes_default
36870 typedef int * ac__type_new_;
36871 int
36872 main ()
36873 {
36874 if ((ac__type_new_ *) 0)
36875   return 0;
36876 if (sizeof (ac__type_new_))
36877   return 0;
36878   ;
36879   return 0;
36880 }
36881 _ACEOF
36882 rm -f conftest.$ac_objext
36883 if { (ac_try="$ac_compile"
36884 case "(($ac_try" in
36885   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36886   *) ac_try_echo=$ac_try;;
36887 esac
36888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36889   (eval "$ac_compile") 2>conftest.er1
36890   ac_status=$?
36891   grep -v '^ *+' conftest.er1 >conftest.err
36892   rm -f conftest.er1
36893   cat conftest.err >&5
36894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36895   (exit $ac_status); } && {
36896          test -z "$ac_cxx_werror_flag" ||
36897          test ! -s conftest.err
36898        } && test -s conftest.$ac_objext; then
36899   ac_cv_type_int_p=yes
36900 else
36901   echo "$as_me: failed program was:" >&5
36902 sed 's/^/| /' conftest.$ac_ext >&5
36903
36904         ac_cv_type_int_p=no
36905 fi
36906
36907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36908 fi
36909 { echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
36910 echo "${ECHO_T}$ac_cv_type_int_p" >&6; }
36911
36912 # The cast to long int works around a bug in the HP C Compiler
36913 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
36914 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
36915 # This bug is HP SR number 8606223364.
36916 { echo "$as_me:$LINENO: checking size of int *" >&5
36917 echo $ECHO_N "checking size of int *... $ECHO_C" >&6; }
36918 if test "${ac_cv_sizeof_int_p+set}" = set; then
36919   echo $ECHO_N "(cached) $ECHO_C" >&6
36920 else
36921   if test "$cross_compiling" = yes; then
36922   # Depending upon the size, compute the lo and hi bounds.
36923 cat >conftest.$ac_ext <<_ACEOF
36924 /* confdefs.h.  */
36925 _ACEOF
36926 cat confdefs.h >>conftest.$ac_ext
36927 cat >>conftest.$ac_ext <<_ACEOF
36928 /* end confdefs.h.  */
36929 $ac_includes_default
36930    typedef int * ac__type_sizeof_;
36931 int
36932 main ()
36933 {
36934 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
36935 test_array [0] = 0
36936
36937   ;
36938   return 0;
36939 }
36940 _ACEOF
36941 rm -f conftest.$ac_objext
36942 if { (ac_try="$ac_compile"
36943 case "(($ac_try" in
36944   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36945   *) ac_try_echo=$ac_try;;
36946 esac
36947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36948   (eval "$ac_compile") 2>conftest.er1
36949   ac_status=$?
36950   grep -v '^ *+' conftest.er1 >conftest.err
36951   rm -f conftest.er1
36952   cat conftest.err >&5
36953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36954   (exit $ac_status); } && {
36955          test -z "$ac_cxx_werror_flag" ||
36956          test ! -s conftest.err
36957        } && test -s conftest.$ac_objext; then
36958   ac_lo=0 ac_mid=0
36959   while :; do
36960     cat >conftest.$ac_ext <<_ACEOF
36961 /* confdefs.h.  */
36962 _ACEOF
36963 cat confdefs.h >>conftest.$ac_ext
36964 cat >>conftest.$ac_ext <<_ACEOF
36965 /* end confdefs.h.  */
36966 $ac_includes_default
36967    typedef int * ac__type_sizeof_;
36968 int
36969 main ()
36970 {
36971 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36972 test_array [0] = 0
36973
36974   ;
36975   return 0;
36976 }
36977 _ACEOF
36978 rm -f conftest.$ac_objext
36979 if { (ac_try="$ac_compile"
36980 case "(($ac_try" in
36981   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36982   *) ac_try_echo=$ac_try;;
36983 esac
36984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36985   (eval "$ac_compile") 2>conftest.er1
36986   ac_status=$?
36987   grep -v '^ *+' conftest.er1 >conftest.err
36988   rm -f conftest.er1
36989   cat conftest.err >&5
36990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36991   (exit $ac_status); } && {
36992          test -z "$ac_cxx_werror_flag" ||
36993          test ! -s conftest.err
36994        } && test -s conftest.$ac_objext; then
36995   ac_hi=$ac_mid; break
36996 else
36997   echo "$as_me: failed program was:" >&5
36998 sed 's/^/| /' conftest.$ac_ext >&5
36999
37000         ac_lo=`expr $ac_mid + 1`
37001                         if test $ac_lo -le $ac_mid; then
37002                           ac_lo= ac_hi=
37003                           break
37004                         fi
37005                         ac_mid=`expr 2 '*' $ac_mid + 1`
37006 fi
37007
37008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37009   done
37010 else
37011   echo "$as_me: failed program was:" >&5
37012 sed 's/^/| /' conftest.$ac_ext >&5
37013
37014         cat >conftest.$ac_ext <<_ACEOF
37015 /* confdefs.h.  */
37016 _ACEOF
37017 cat confdefs.h >>conftest.$ac_ext
37018 cat >>conftest.$ac_ext <<_ACEOF
37019 /* end confdefs.h.  */
37020 $ac_includes_default
37021    typedef int * ac__type_sizeof_;
37022 int
37023 main ()
37024 {
37025 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
37026 test_array [0] = 0
37027
37028   ;
37029   return 0;
37030 }
37031 _ACEOF
37032 rm -f conftest.$ac_objext
37033 if { (ac_try="$ac_compile"
37034 case "(($ac_try" in
37035   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37036   *) ac_try_echo=$ac_try;;
37037 esac
37038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37039   (eval "$ac_compile") 2>conftest.er1
37040   ac_status=$?
37041   grep -v '^ *+' conftest.er1 >conftest.err
37042   rm -f conftest.er1
37043   cat conftest.err >&5
37044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37045   (exit $ac_status); } && {
37046          test -z "$ac_cxx_werror_flag" ||
37047          test ! -s conftest.err
37048        } && test -s conftest.$ac_objext; then
37049   ac_hi=-1 ac_mid=-1
37050   while :; do
37051     cat >conftest.$ac_ext <<_ACEOF
37052 /* confdefs.h.  */
37053 _ACEOF
37054 cat confdefs.h >>conftest.$ac_ext
37055 cat >>conftest.$ac_ext <<_ACEOF
37056 /* end confdefs.h.  */
37057 $ac_includes_default
37058    typedef int * ac__type_sizeof_;
37059 int
37060 main ()
37061 {
37062 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
37063 test_array [0] = 0
37064
37065   ;
37066   return 0;
37067 }
37068 _ACEOF
37069 rm -f conftest.$ac_objext
37070 if { (ac_try="$ac_compile"
37071 case "(($ac_try" in
37072   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37073   *) ac_try_echo=$ac_try;;
37074 esac
37075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37076   (eval "$ac_compile") 2>conftest.er1
37077   ac_status=$?
37078   grep -v '^ *+' conftest.er1 >conftest.err
37079   rm -f conftest.er1
37080   cat conftest.err >&5
37081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37082   (exit $ac_status); } && {
37083          test -z "$ac_cxx_werror_flag" ||
37084          test ! -s conftest.err
37085        } && test -s conftest.$ac_objext; then
37086   ac_lo=$ac_mid; break
37087 else
37088   echo "$as_me: failed program was:" >&5
37089 sed 's/^/| /' conftest.$ac_ext >&5
37090
37091         ac_hi=`expr '(' $ac_mid ')' - 1`
37092                         if test $ac_mid -le $ac_hi; then
37093                           ac_lo= ac_hi=
37094                           break
37095                         fi
37096                         ac_mid=`expr 2 '*' $ac_mid`
37097 fi
37098
37099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37100   done
37101 else
37102   echo "$as_me: failed program was:" >&5
37103 sed 's/^/| /' conftest.$ac_ext >&5
37104
37105         ac_lo= ac_hi=
37106 fi
37107
37108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37109 fi
37110
37111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37112 # Binary search between lo and hi bounds.
37113 while test "x$ac_lo" != "x$ac_hi"; do
37114   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
37115   cat >conftest.$ac_ext <<_ACEOF
37116 /* confdefs.h.  */
37117 _ACEOF
37118 cat confdefs.h >>conftest.$ac_ext
37119 cat >>conftest.$ac_ext <<_ACEOF
37120 /* end confdefs.h.  */
37121 $ac_includes_default
37122    typedef int * ac__type_sizeof_;
37123 int
37124 main ()
37125 {
37126 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
37127 test_array [0] = 0
37128
37129   ;
37130   return 0;
37131 }
37132 _ACEOF
37133 rm -f conftest.$ac_objext
37134 if { (ac_try="$ac_compile"
37135 case "(($ac_try" in
37136   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37137   *) ac_try_echo=$ac_try;;
37138 esac
37139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37140   (eval "$ac_compile") 2>conftest.er1
37141   ac_status=$?
37142   grep -v '^ *+' conftest.er1 >conftest.err
37143   rm -f conftest.er1
37144   cat conftest.err >&5
37145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37146   (exit $ac_status); } && {
37147          test -z "$ac_cxx_werror_flag" ||
37148          test ! -s conftest.err
37149        } && test -s conftest.$ac_objext; then
37150   ac_hi=$ac_mid
37151 else
37152   echo "$as_me: failed program was:" >&5
37153 sed 's/^/| /' conftest.$ac_ext >&5
37154
37155         ac_lo=`expr '(' $ac_mid ')' + 1`
37156 fi
37157
37158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37159 done
37160 case $ac_lo in
37161 ?*) ac_cv_sizeof_int_p=$ac_lo;;
37162 '') if test "$ac_cv_type_int_p" = yes; then
37163      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
37164 See \`config.log' for more details." >&5
37165 echo "$as_me: error: cannot compute sizeof (int *)
37166 See \`config.log' for more details." >&2;}
37167    { (exit 77); exit 77; }; }
37168    else
37169      ac_cv_sizeof_int_p=0
37170    fi ;;
37171 esac
37172 else
37173   cat >conftest.$ac_ext <<_ACEOF
37174 /* confdefs.h.  */
37175 _ACEOF
37176 cat confdefs.h >>conftest.$ac_ext
37177 cat >>conftest.$ac_ext <<_ACEOF
37178 /* end confdefs.h.  */
37179 $ac_includes_default
37180    typedef int * ac__type_sizeof_;
37181 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
37182 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
37183 #include <stdio.h>
37184 #include <stdlib.h>
37185 int
37186 main ()
37187 {
37188
37189   FILE *f = fopen ("conftest.val", "w");
37190   if (! f)
37191     return 1;
37192   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
37193     {
37194       long int i = longval ();
37195       if (i != ((long int) (sizeof (ac__type_sizeof_))))
37196         return 1;
37197       fprintf (f, "%ld\n", i);
37198     }
37199   else
37200     {
37201       unsigned long int i = ulongval ();
37202       if (i != ((long int) (sizeof (ac__type_sizeof_))))
37203         return 1;
37204       fprintf (f, "%lu\n", i);
37205     }
37206   return ferror (f) || fclose (f) != 0;
37207
37208   ;
37209   return 0;
37210 }
37211 _ACEOF
37212 rm -f conftest$ac_exeext
37213 if { (ac_try="$ac_link"
37214 case "(($ac_try" in
37215   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37216   *) ac_try_echo=$ac_try;;
37217 esac
37218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37219   (eval "$ac_link") 2>&5
37220   ac_status=$?
37221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37222   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
37223   { (case "(($ac_try" in
37224   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37225   *) ac_try_echo=$ac_try;;
37226 esac
37227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37228   (eval "$ac_try") 2>&5
37229   ac_status=$?
37230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37231   (exit $ac_status); }; }; then
37232   ac_cv_sizeof_int_p=`cat conftest.val`
37233 else
37234   echo "$as_me: program exited with status $ac_status" >&5
37235 echo "$as_me: failed program was:" >&5
37236 sed 's/^/| /' conftest.$ac_ext >&5
37237
37238 ( exit $ac_status )
37239 if test "$ac_cv_type_int_p" = yes; then
37240      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
37241 See \`config.log' for more details." >&5
37242 echo "$as_me: error: cannot compute sizeof (int *)
37243 See \`config.log' for more details." >&2;}
37244    { (exit 77); exit 77; }; }
37245    else
37246      ac_cv_sizeof_int_p=0
37247    fi
37248 fi
37249 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
37250 fi
37251 rm -f conftest.val
37252 fi
37253 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
37254 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6; }
37255
37256
37257
37258 cat >>confdefs.h <<_ACEOF
37259 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
37260 _ACEOF
37261
37262
37263
37264 { echo "$as_me:$LINENO: checking for u_int type" >&5
37265 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6; }
37266 if test "${ac_cv_have_u_int+set}" = set; then
37267   echo $ECHO_N "(cached) $ECHO_C" >&6
37268 else
37269
37270        cat >conftest.$ac_ext <<_ACEOF
37271 /* confdefs.h.  */
37272 _ACEOF
37273 cat confdefs.h >>conftest.$ac_ext
37274 cat >>conftest.$ac_ext <<_ACEOF
37275 /* end confdefs.h.  */
37276
37277               #include <sys/types.h>
37278
37279 int
37280 main ()
37281 {
37282
37283               u_int a; a = 1;
37284
37285   ;
37286   return 0;
37287 }
37288 _ACEOF
37289 rm -f conftest.$ac_objext
37290 if { (ac_try="$ac_compile"
37291 case "(($ac_try" in
37292   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37293   *) ac_try_echo=$ac_try;;
37294 esac
37295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37296   (eval "$ac_compile") 2>conftest.er1
37297   ac_status=$?
37298   grep -v '^ *+' conftest.er1 >conftest.err
37299   rm -f conftest.er1
37300   cat conftest.err >&5
37301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37302   (exit $ac_status); } && {
37303          test -z "$ac_cxx_werror_flag" ||
37304          test ! -s conftest.err
37305        } && test -s conftest.$ac_objext; then
37306
37307               ac_cv_have_u_int="yes"
37308
37309 else
37310   echo "$as_me: failed program was:" >&5
37311 sed 's/^/| /' conftest.$ac_ext >&5
37312
37313
37314               ac_cv_have_u_int="no"
37315
37316
37317 fi
37318
37319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37320
37321
37322 fi
37323 { echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
37324 echo "${ECHO_T}$ac_cv_have_u_int" >&6; }
37325 if test "x$ac_cv_have_u_int" = "xyes" ; then
37326    cat >>confdefs.h <<\_ACEOF
37327 #define HAVE_U_INT 1
37328 _ACEOF
37329
37330    have_u_int=1
37331 fi
37332
37333 { echo "$as_me:$LINENO: checking for intmax_t type" >&5
37334 echo $ECHO_N "checking for intmax_t type... $ECHO_C" >&6; }
37335 if test "${ac_cv_have_intmax_t+set}" = set; then
37336   echo $ECHO_N "(cached) $ECHO_C" >&6
37337 else
37338
37339        cat >conftest.$ac_ext <<_ACEOF
37340 /* confdefs.h.  */
37341 _ACEOF
37342 cat confdefs.h >>conftest.$ac_ext
37343 cat >>conftest.$ac_ext <<_ACEOF
37344 /* end confdefs.h.  */
37345
37346               #include <sys/types.h>
37347
37348 int
37349 main ()
37350 {
37351
37352               intmax_t a; a = 1;
37353
37354   ;
37355   return 0;
37356 }
37357 _ACEOF
37358 rm -f conftest.$ac_objext
37359 if { (ac_try="$ac_compile"
37360 case "(($ac_try" in
37361   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37362   *) ac_try_echo=$ac_try;;
37363 esac
37364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37365   (eval "$ac_compile") 2>conftest.er1
37366   ac_status=$?
37367   grep -v '^ *+' conftest.er1 >conftest.err
37368   rm -f conftest.er1
37369   cat conftest.err >&5
37370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37371   (exit $ac_status); } && {
37372          test -z "$ac_cxx_werror_flag" ||
37373          test ! -s conftest.err
37374        } && test -s conftest.$ac_objext; then
37375
37376               ac_cv_have_intmax_t="yes"
37377
37378 else
37379   echo "$as_me: failed program was:" >&5
37380 sed 's/^/| /' conftest.$ac_ext >&5
37381
37382
37383               cat >conftest.$ac_ext <<_ACEOF
37384 /* confdefs.h.  */
37385 _ACEOF
37386 cat confdefs.h >>conftest.$ac_ext
37387 cat >>conftest.$ac_ext <<_ACEOF
37388 /* end confdefs.h.  */
37389
37390                      #include <stdint.h>
37391
37392 int
37393 main ()
37394 {
37395
37396                      intmax_t a; a = 1;
37397
37398   ;
37399   return 0;
37400 }
37401 _ACEOF
37402 rm -f conftest.$ac_objext
37403 if { (ac_try="$ac_compile"
37404 case "(($ac_try" in
37405   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37406   *) ac_try_echo=$ac_try;;
37407 esac
37408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37409   (eval "$ac_compile") 2>conftest.er1
37410   ac_status=$?
37411   grep -v '^ *+' conftest.er1 >conftest.err
37412   rm -f conftest.er1
37413   cat conftest.err >&5
37414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37415   (exit $ac_status); } && {
37416          test -z "$ac_cxx_werror_flag" ||
37417          test ! -s conftest.err
37418        } && test -s conftest.$ac_objext; then
37419
37420                      ac_cv_have_intmax_t="yes"
37421
37422 else
37423   echo "$as_me: failed program was:" >&5
37424 sed 's/^/| /' conftest.$ac_ext >&5
37425
37426
37427                      ac_cv_have_intmax_t="no"
37428
37429
37430 fi
37431
37432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37433
37434
37435 fi
37436
37437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37438
37439
37440 fi
37441 { echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
37442 echo "${ECHO_T}$ac_cv_have_intmax_t" >&6; }
37443 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
37444    cat >>confdefs.h <<\_ACEOF
37445 #define HAVE_INTMAX_T 1
37446 _ACEOF
37447
37448    have_intmax_t=1
37449 fi
37450
37451 { echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
37452 echo $ECHO_N "checking for u_intmax_t type... $ECHO_C" >&6; }
37453 if test "${ac_cv_have_u_intmax_t+set}" = set; then
37454   echo $ECHO_N "(cached) $ECHO_C" >&6
37455 else
37456
37457        cat >conftest.$ac_ext <<_ACEOF
37458 /* confdefs.h.  */
37459 _ACEOF
37460 cat confdefs.h >>conftest.$ac_ext
37461 cat >>conftest.$ac_ext <<_ACEOF
37462 /* end confdefs.h.  */
37463
37464               #include <sys/types.h>
37465
37466 int
37467 main ()
37468 {
37469
37470               u_intmax_t a; a = 1;
37471
37472   ;
37473   return 0;
37474 }
37475 _ACEOF
37476 rm -f conftest.$ac_objext
37477 if { (ac_try="$ac_compile"
37478 case "(($ac_try" in
37479   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37480   *) ac_try_echo=$ac_try;;
37481 esac
37482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37483   (eval "$ac_compile") 2>conftest.er1
37484   ac_status=$?
37485   grep -v '^ *+' conftest.er1 >conftest.err
37486   rm -f conftest.er1
37487   cat conftest.err >&5
37488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37489   (exit $ac_status); } && {
37490          test -z "$ac_cxx_werror_flag" ||
37491          test ! -s conftest.err
37492        } && test -s conftest.$ac_objext; then
37493
37494               ac_cv_have_u_intmax_t="yes"
37495
37496 else
37497   echo "$as_me: failed program was:" >&5
37498 sed 's/^/| /' conftest.$ac_ext >&5
37499
37500
37501               cat >conftest.$ac_ext <<_ACEOF
37502 /* confdefs.h.  */
37503 _ACEOF
37504 cat confdefs.h >>conftest.$ac_ext
37505 cat >>conftest.$ac_ext <<_ACEOF
37506 /* end confdefs.h.  */
37507
37508                      #include <stdint.h>
37509
37510 int
37511 main ()
37512 {
37513
37514                     u_intmax_t a; a = 1;
37515
37516   ;
37517   return 0;
37518 }
37519 _ACEOF
37520 rm -f conftest.$ac_objext
37521 if { (ac_try="$ac_compile"
37522 case "(($ac_try" in
37523   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37524   *) ac_try_echo=$ac_try;;
37525 esac
37526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37527   (eval "$ac_compile") 2>conftest.er1
37528   ac_status=$?
37529   grep -v '^ *+' conftest.er1 >conftest.err
37530   rm -f conftest.er1
37531   cat conftest.err >&5
37532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37533   (exit $ac_status); } && {
37534          test -z "$ac_cxx_werror_flag" ||
37535          test ! -s conftest.err
37536        } && test -s conftest.$ac_objext; then
37537
37538                     ac_cv_have_u_intmax_t="yes"
37539
37540 else
37541   echo "$as_me: failed program was:" >&5
37542 sed 's/^/| /' conftest.$ac_ext >&5
37543
37544
37545                     ac_cv_have_u_intmax_t="no"
37546
37547
37548 fi
37549
37550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37551
37552
37553 fi
37554
37555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37556
37557
37558 fi
37559 { echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
37560 echo "${ECHO_T}$ac_cv_have_u_intmax_t" >&6; }
37561 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
37562    cat >>confdefs.h <<\_ACEOF
37563 #define HAVE_U_INTMAX_T 1
37564 _ACEOF
37565
37566    have_u_intmax_t=1
37567 fi
37568
37569 { echo "$as_me:$LINENO: checking for intXX_t types" >&5
37570 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6; }
37571 if test "${ac_cv_have_intxx_t+set}" = set; then
37572   echo $ECHO_N "(cached) $ECHO_C" >&6
37573 else
37574
37575        cat >conftest.$ac_ext <<_ACEOF
37576 /* confdefs.h.  */
37577 _ACEOF
37578 cat confdefs.h >>conftest.$ac_ext
37579 cat >>conftest.$ac_ext <<_ACEOF
37580 /* end confdefs.h.  */
37581
37582               #include <sys/types.h>
37583
37584 int
37585 main ()
37586 {
37587
37588               int8_t a; int16_t b; int32_t c; a = b = c = 1;
37589
37590   ;
37591   return 0;
37592 }
37593 _ACEOF
37594 rm -f conftest.$ac_objext
37595 if { (ac_try="$ac_compile"
37596 case "(($ac_try" in
37597   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37598   *) ac_try_echo=$ac_try;;
37599 esac
37600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37601   (eval "$ac_compile") 2>conftest.er1
37602   ac_status=$?
37603   grep -v '^ *+' conftest.er1 >conftest.err
37604   rm -f conftest.er1
37605   cat conftest.err >&5
37606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37607   (exit $ac_status); } && {
37608          test -z "$ac_cxx_werror_flag" ||
37609          test ! -s conftest.err
37610        } && test -s conftest.$ac_objext; then
37611
37612               ac_cv_have_intxx_t="yes"
37613
37614 else
37615   echo "$as_me: failed program was:" >&5
37616 sed 's/^/| /' conftest.$ac_ext >&5
37617
37618
37619               ac_cv_have_intxx_t="no"
37620
37621
37622 fi
37623
37624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37625
37626
37627 fi
37628 { echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
37629 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6; }
37630 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
37631    cat >>confdefs.h <<\_ACEOF
37632 #define HAVE_INTXX_T 1
37633 _ACEOF
37634
37635    have_intxx_t=1
37636 fi
37637
37638 { echo "$as_me:$LINENO: checking for int64_t type" >&5
37639 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6; }
37640 if test "${ac_cv_have_int64_t+set}" = set; then
37641   echo $ECHO_N "(cached) $ECHO_C" >&6
37642 else
37643
37644        cat >conftest.$ac_ext <<_ACEOF
37645 /* confdefs.h.  */
37646 _ACEOF
37647 cat confdefs.h >>conftest.$ac_ext
37648 cat >>conftest.$ac_ext <<_ACEOF
37649 /* end confdefs.h.  */
37650
37651               #include <sys/types.h>
37652
37653 int
37654 main ()
37655 {
37656
37657               int64_t a; a = 1;
37658
37659   ;
37660   return 0;
37661 }
37662 _ACEOF
37663 rm -f conftest.$ac_objext
37664 if { (ac_try="$ac_compile"
37665 case "(($ac_try" in
37666   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37667   *) ac_try_echo=$ac_try;;
37668 esac
37669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37670   (eval "$ac_compile") 2>conftest.er1
37671   ac_status=$?
37672   grep -v '^ *+' conftest.er1 >conftest.err
37673   rm -f conftest.er1
37674   cat conftest.err >&5
37675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37676   (exit $ac_status); } && {
37677          test -z "$ac_cxx_werror_flag" ||
37678          test ! -s conftest.err
37679        } && test -s conftest.$ac_objext; then
37680
37681               ac_cv_have_int64_t="yes"
37682
37683 else
37684   echo "$as_me: failed program was:" >&5
37685 sed 's/^/| /' conftest.$ac_ext >&5
37686
37687
37688               ac_cv_have_int64_t="no"
37689
37690
37691 fi
37692
37693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37694
37695
37696 fi
37697 { echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
37698 echo "${ECHO_T}$ac_cv_have_int64_t" >&6; }
37699 if test "x$ac_cv_have_int64_t" = "xyes" ; then
37700    cat >>confdefs.h <<\_ACEOF
37701 #define HAVE_INT64_T 1
37702 _ACEOF
37703
37704    have_int64_t=1
37705 fi
37706
37707 { echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
37708 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6; }
37709 if test "${ac_cv_have_u_intxx_t+set}" = set; then
37710   echo $ECHO_N "(cached) $ECHO_C" >&6
37711 else
37712
37713        cat >conftest.$ac_ext <<_ACEOF
37714 /* confdefs.h.  */
37715 _ACEOF
37716 cat confdefs.h >>conftest.$ac_ext
37717 cat >>conftest.$ac_ext <<_ACEOF
37718 /* end confdefs.h.  */
37719
37720               #include <sys/types.h>
37721
37722 int
37723 main ()
37724 {
37725
37726               u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
37727
37728   ;
37729   return 0;
37730 }
37731 _ACEOF
37732 rm -f conftest.$ac_objext
37733 if { (ac_try="$ac_compile"
37734 case "(($ac_try" in
37735   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37736   *) ac_try_echo=$ac_try;;
37737 esac
37738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37739   (eval "$ac_compile") 2>conftest.er1
37740   ac_status=$?
37741   grep -v '^ *+' conftest.er1 >conftest.err
37742   rm -f conftest.er1
37743   cat conftest.err >&5
37744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37745   (exit $ac_status); } && {
37746          test -z "$ac_cxx_werror_flag" ||
37747          test ! -s conftest.err
37748        } && test -s conftest.$ac_objext; then
37749
37750              ac_cv_have_u_intxx_t="yes"
37751
37752 else
37753   echo "$as_me: failed program was:" >&5
37754 sed 's/^/| /' conftest.$ac_ext >&5
37755
37756
37757              ac_cv_have_u_intxx_t="no"
37758
37759
37760 fi
37761
37762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37763
37764
37765 fi
37766 { echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
37767 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6; }
37768 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
37769    cat >>confdefs.h <<\_ACEOF
37770 #define HAVE_U_INTXX_T 1
37771 _ACEOF
37772
37773    have_u_intxx_t=1
37774 fi
37775
37776 { echo "$as_me:$LINENO: checking for u_int64_t types" >&5
37777 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6; }
37778 if test "${ac_cv_have_u_int64_t+set}" = set; then
37779   echo $ECHO_N "(cached) $ECHO_C" >&6
37780 else
37781
37782        cat >conftest.$ac_ext <<_ACEOF
37783 /* confdefs.h.  */
37784 _ACEOF
37785 cat confdefs.h >>conftest.$ac_ext
37786 cat >>conftest.$ac_ext <<_ACEOF
37787 /* end confdefs.h.  */
37788
37789               #include <sys/types.h>
37790
37791 int
37792 main ()
37793 {
37794
37795               u_int64_t a; a = 1;
37796
37797   ;
37798   return 0;
37799 }
37800 _ACEOF
37801 rm -f conftest.$ac_objext
37802 if { (ac_try="$ac_compile"
37803 case "(($ac_try" in
37804   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37805   *) ac_try_echo=$ac_try;;
37806 esac
37807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37808   (eval "$ac_compile") 2>conftest.er1
37809   ac_status=$?
37810   grep -v '^ *+' conftest.er1 >conftest.err
37811   rm -f conftest.er1
37812   cat conftest.err >&5
37813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37814   (exit $ac_status); } && {
37815          test -z "$ac_cxx_werror_flag" ||
37816          test ! -s conftest.err
37817        } && test -s conftest.$ac_objext; then
37818
37819              ac_cv_have_u_int64_t="yes"
37820
37821 else
37822   echo "$as_me: failed program was:" >&5
37823 sed 's/^/| /' conftest.$ac_ext >&5
37824
37825
37826              ac_cv_have_u_int64_t="no"
37827
37828
37829 fi
37830
37831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37832
37833
37834 fi
37835 { echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
37836 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6; }
37837 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
37838    cat >>confdefs.h <<\_ACEOF
37839 #define HAVE_U_INT64_T 1
37840 _ACEOF
37841
37842    have_u_int64_t=1
37843 fi
37844
37845 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
37846     test "x$ac_cv_header_sys_bitypes_h" = "xyes")
37847 then
37848    { echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
37849 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6; }
37850    cat >conftest.$ac_ext <<_ACEOF
37851 /* confdefs.h.  */
37852 _ACEOF
37853 cat confdefs.h >>conftest.$ac_ext
37854 cat >>conftest.$ac_ext <<_ACEOF
37855 /* end confdefs.h.  */
37856
37857           #include <sys/bitypes.h>
37858
37859 int
37860 main ()
37861 {
37862
37863           int8_t a; int16_t b; int32_t c;
37864           u_int8_t e; u_int16_t f; u_int32_t g;
37865           a = b = c = e = f = g = 1;
37866
37867   ;
37868   return 0;
37869 }
37870 _ACEOF
37871 rm -f conftest.$ac_objext
37872 if { (ac_try="$ac_compile"
37873 case "(($ac_try" in
37874   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37875   *) ac_try_echo=$ac_try;;
37876 esac
37877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37878   (eval "$ac_compile") 2>conftest.er1
37879   ac_status=$?
37880   grep -v '^ *+' conftest.er1 >conftest.err
37881   rm -f conftest.er1
37882   cat conftest.err >&5
37883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37884   (exit $ac_status); } && {
37885          test -z "$ac_cxx_werror_flag" ||
37886          test ! -s conftest.err
37887        } && test -s conftest.$ac_objext; then
37888
37889           cat >>confdefs.h <<\_ACEOF
37890 #define HAVE_U_INTXX_T 1
37891 _ACEOF
37892
37893           cat >>confdefs.h <<\_ACEOF
37894 #define HAVE_INTXX_T 1
37895 _ACEOF
37896
37897           cat >>confdefs.h <<\_ACEOF
37898 #define HAVE_SYS_BITYPES_H 1
37899 _ACEOF
37900
37901           { echo "$as_me:$LINENO: result: yes" >&5
37902 echo "${ECHO_T}yes" >&6; }
37903
37904 else
37905   echo "$as_me: failed program was:" >&5
37906 sed 's/^/| /' conftest.$ac_ext >&5
37907
37908
37909           { echo "$as_me:$LINENO: result: no" >&5
37910 echo "${ECHO_T}no" >&6; }
37911
37912
37913 fi
37914
37915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37916 fi
37917
37918 if test -z "$have_u_intxx_t" ; then
37919    { echo "$as_me:$LINENO: checking for uintXX_t types" >&5
37920 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6; }
37921 if test "${ac_cv_have_uintxx_t+set}" = set; then
37922   echo $ECHO_N "(cached) $ECHO_C" >&6
37923 else
37924
37925           cat >conftest.$ac_ext <<_ACEOF
37926 /* confdefs.h.  */
37927 _ACEOF
37928 cat confdefs.h >>conftest.$ac_ext
37929 cat >>conftest.$ac_ext <<_ACEOF
37930 /* end confdefs.h.  */
37931
37932                  #include <sys/types.h>
37933
37934 int
37935 main ()
37936 {
37937
37938                  uint8_t a; uint16_t b;
37939                  uint32_t c; a = b = c = 1;
37940
37941   ;
37942   return 0;
37943 }
37944 _ACEOF
37945 rm -f conftest.$ac_objext
37946 if { (ac_try="$ac_compile"
37947 case "(($ac_try" in
37948   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37949   *) ac_try_echo=$ac_try;;
37950 esac
37951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37952   (eval "$ac_compile") 2>conftest.er1
37953   ac_status=$?
37954   grep -v '^ *+' conftest.er1 >conftest.err
37955   rm -f conftest.er1
37956   cat conftest.err >&5
37957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37958   (exit $ac_status); } && {
37959          test -z "$ac_cxx_werror_flag" ||
37960          test ! -s conftest.err
37961        } && test -s conftest.$ac_objext; then
37962
37963                 ac_cv_have_uintxx_t="yes"
37964
37965 else
37966   echo "$as_me: failed program was:" >&5
37967 sed 's/^/| /' conftest.$ac_ext >&5
37968
37969
37970                 ac_cv_have_uintxx_t="no"
37971
37972
37973 fi
37974
37975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37976
37977
37978 fi
37979 { echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
37980 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6; }
37981    if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
37982       cat >>confdefs.h <<\_ACEOF
37983 #define HAVE_UINTXX_T 1
37984 _ACEOF
37985
37986    fi
37987 fi
37988
37989 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
37990     test "x$ac_cv_header_sys_bitypes_h" = "xyes")
37991 then
37992    { echo "$as_me:$LINENO: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
37993 echo $ECHO_N "checking for int64_t and u_int64_t types in sys/bitypes.h... $ECHO_C" >&6; }
37994    cat >conftest.$ac_ext <<_ACEOF
37995 /* confdefs.h.  */
37996 _ACEOF
37997 cat confdefs.h >>conftest.$ac_ext
37998 cat >>conftest.$ac_ext <<_ACEOF
37999 /* end confdefs.h.  */
38000
38001           #include <sys/bitypes.h>
38002
38003 int
38004 main ()
38005 {
38006
38007           int64_t a; u_int64_t b;
38008           a = b = 1;
38009
38010   ;
38011   return 0;
38012 }
38013 _ACEOF
38014 rm -f conftest.$ac_objext
38015 if { (ac_try="$ac_compile"
38016 case "(($ac_try" in
38017   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38018   *) ac_try_echo=$ac_try;;
38019 esac
38020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38021   (eval "$ac_compile") 2>conftest.er1
38022   ac_status=$?
38023   grep -v '^ *+' conftest.er1 >conftest.err
38024   rm -f conftest.er1
38025   cat conftest.err >&5
38026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38027   (exit $ac_status); } && {
38028          test -z "$ac_cxx_werror_flag" ||
38029          test ! -s conftest.err
38030        } && test -s conftest.$ac_objext; then
38031
38032           cat >>confdefs.h <<\_ACEOF
38033 #define HAVE_U_INT64_T 1
38034 _ACEOF
38035
38036           cat >>confdefs.h <<\_ACEOF
38037 #define HAVE_INT64_T 1
38038 _ACEOF
38039
38040           { echo "$as_me:$LINENO: result: yes" >&5
38041 echo "${ECHO_T}yes" >&6; }
38042
38043 else
38044   echo "$as_me: failed program was:" >&5
38045 sed 's/^/| /' conftest.$ac_ext >&5
38046
38047
38048           { echo "$as_me:$LINENO: result: no" >&5
38049 echo "${ECHO_T}no" >&6; }
38050
38051
38052 fi
38053
38054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38055 fi
38056
38057 if (test -z "$have_uintxx_t" && \
38058     test "x$ac_cv_header_sys_bitypes_h" = "xyes")
38059 then
38060    { echo "$as_me:$LINENO: checking for uintXX_t types in sys/bitypes.h" >&5
38061 echo $ECHO_N "checking for uintXX_t types in sys/bitypes.h... $ECHO_C" >&6; }
38062    cat >conftest.$ac_ext <<_ACEOF
38063 /* confdefs.h.  */
38064 _ACEOF
38065 cat confdefs.h >>conftest.$ac_ext
38066 cat >>conftest.$ac_ext <<_ACEOF
38067 /* end confdefs.h.  */
38068
38069           #include <sys/bitypes.h>
38070
38071 int
38072 main ()
38073 {
38074
38075           uint8_t a; uint16_t b;
38076           uint32_t c; a = b = c = 1;
38077
38078   ;
38079   return 0;
38080 }
38081 _ACEOF
38082 rm -f conftest.$ac_objext
38083 if { (ac_try="$ac_compile"
38084 case "(($ac_try" in
38085   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38086   *) ac_try_echo=$ac_try;;
38087 esac
38088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38089   (eval "$ac_compile") 2>conftest.er1
38090   ac_status=$?
38091   grep -v '^ *+' conftest.er1 >conftest.err
38092   rm -f conftest.er1
38093   cat conftest.err >&5
38094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38095   (exit $ac_status); } && {
38096          test -z "$ac_cxx_werror_flag" ||
38097          test ! -s conftest.err
38098        } && test -s conftest.$ac_objext; then
38099
38100           cat >>confdefs.h <<\_ACEOF
38101 #define HAVE_UINTXX_T 1
38102 _ACEOF
38103
38104           { echo "$as_me:$LINENO: result: yes" >&5
38105 echo "${ECHO_T}yes" >&6; }
38106
38107 else
38108   echo "$as_me: failed program was:" >&5
38109 sed 's/^/| /' conftest.$ac_ext >&5
38110
38111
38112           { echo "$as_me:$LINENO: result: no" >&5
38113 echo "${ECHO_T}no" >&6; }
38114
38115
38116 fi
38117
38118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38119 fi
38120
38121
38122
38123
38124
38125
38126
38127
38128
38129
38130
38131
38132
38133
38134 for ac_func in \
38135    fork \
38136    getcwd \
38137    gethostname \
38138    getpid \
38139    gettimeofday \
38140    setpgid \
38141    setpgrp \
38142    setsid \
38143    signal \
38144    strerror \
38145    strncmp \
38146    strncpy \
38147    vfprintf \
38148
38149 do
38150 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38151 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38152 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38153 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38154   echo $ECHO_N "(cached) $ECHO_C" >&6
38155 else
38156   cat >conftest.$ac_ext <<_ACEOF
38157 /* confdefs.h.  */
38158 _ACEOF
38159 cat confdefs.h >>conftest.$ac_ext
38160 cat >>conftest.$ac_ext <<_ACEOF
38161 /* end confdefs.h.  */
38162 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38163    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38164 #define $ac_func innocuous_$ac_func
38165
38166 /* System header to define __stub macros and hopefully few prototypes,
38167     which can conflict with char $ac_func (); below.
38168     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38169     <limits.h> exists even on freestanding compilers.  */
38170
38171 #ifdef __STDC__
38172 # include <limits.h>
38173 #else
38174 # include <assert.h>
38175 #endif
38176
38177 #undef $ac_func
38178
38179 /* Override any GCC internal prototype to avoid an error.
38180    Use char because int might match the return type of a GCC
38181    builtin and then its argument prototype would still apply.  */
38182 #ifdef __cplusplus
38183 extern "C"
38184 #endif
38185 char $ac_func ();
38186 /* The GNU C library defines this for functions which it implements
38187     to always fail with ENOSYS.  Some functions are actually named
38188     something starting with __ and the normal name is an alias.  */
38189 #if defined __stub_$ac_func || defined __stub___$ac_func
38190 choke me
38191 #endif
38192
38193 int
38194 main ()
38195 {
38196 return $ac_func ();
38197   ;
38198   return 0;
38199 }
38200 _ACEOF
38201 rm -f conftest.$ac_objext conftest$ac_exeext
38202 if { (ac_try="$ac_link"
38203 case "(($ac_try" in
38204   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38205   *) ac_try_echo=$ac_try;;
38206 esac
38207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38208   (eval "$ac_link") 2>conftest.er1
38209   ac_status=$?
38210   grep -v '^ *+' conftest.er1 >conftest.err
38211   rm -f conftest.er1
38212   cat conftest.err >&5
38213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38214   (exit $ac_status); } && {
38215          test -z "$ac_cxx_werror_flag" ||
38216          test ! -s conftest.err
38217        } && test -s conftest$ac_exeext &&
38218        $as_test_x conftest$ac_exeext; then
38219   eval "$as_ac_var=yes"
38220 else
38221   echo "$as_me: failed program was:" >&5
38222 sed 's/^/| /' conftest.$ac_ext >&5
38223
38224         eval "$as_ac_var=no"
38225 fi
38226
38227 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38228       conftest$ac_exeext conftest.$ac_ext
38229 fi
38230 ac_res=`eval echo '${'$as_ac_var'}'`
38231                { echo "$as_me:$LINENO: result: $ac_res" >&5
38232 echo "${ECHO_T}$ac_res" >&6; }
38233 if test `eval echo '${'$as_ac_var'}'` = yes; then
38234   cat >>confdefs.h <<_ACEOF
38235 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38236 _ACEOF
38237
38238 else
38239   echo 'configure: cannot find needed function.'; exit 1
38240
38241 fi
38242 done
38243
38244
38245
38246 for ac_func in fchdir
38247 do
38248 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38249 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38250 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38251 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38252   echo $ECHO_N "(cached) $ECHO_C" >&6
38253 else
38254   cat >conftest.$ac_ext <<_ACEOF
38255 /* confdefs.h.  */
38256 _ACEOF
38257 cat confdefs.h >>conftest.$ac_ext
38258 cat >>conftest.$ac_ext <<_ACEOF
38259 /* end confdefs.h.  */
38260 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38261    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38262 #define $ac_func innocuous_$ac_func
38263
38264 /* System header to define __stub macros and hopefully few prototypes,
38265     which can conflict with char $ac_func (); below.
38266     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38267     <limits.h> exists even on freestanding compilers.  */
38268
38269 #ifdef __STDC__
38270 # include <limits.h>
38271 #else
38272 # include <assert.h>
38273 #endif
38274
38275 #undef $ac_func
38276
38277 /* Override any GCC internal prototype to avoid an error.
38278    Use char because int might match the return type of a GCC
38279    builtin and then its argument prototype would still apply.  */
38280 #ifdef __cplusplus
38281 extern "C"
38282 #endif
38283 char $ac_func ();
38284 /* The GNU C library defines this for functions which it implements
38285     to always fail with ENOSYS.  Some functions are actually named
38286     something starting with __ and the normal name is an alias.  */
38287 #if defined __stub_$ac_func || defined __stub___$ac_func
38288 choke me
38289 #endif
38290
38291 int
38292 main ()
38293 {
38294 return $ac_func ();
38295   ;
38296   return 0;
38297 }
38298 _ACEOF
38299 rm -f conftest.$ac_objext conftest$ac_exeext
38300 if { (ac_try="$ac_link"
38301 case "(($ac_try" in
38302   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38303   *) ac_try_echo=$ac_try;;
38304 esac
38305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38306   (eval "$ac_link") 2>conftest.er1
38307   ac_status=$?
38308   grep -v '^ *+' conftest.er1 >conftest.err
38309   rm -f conftest.er1
38310   cat conftest.err >&5
38311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38312   (exit $ac_status); } && {
38313          test -z "$ac_cxx_werror_flag" ||
38314          test ! -s conftest.err
38315        } && test -s conftest$ac_exeext &&
38316        $as_test_x conftest$ac_exeext; then
38317   eval "$as_ac_var=yes"
38318 else
38319   echo "$as_me: failed program was:" >&5
38320 sed 's/^/| /' conftest.$ac_ext >&5
38321
38322         eval "$as_ac_var=no"
38323 fi
38324
38325 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38326       conftest$ac_exeext conftest.$ac_ext
38327 fi
38328 ac_res=`eval echo '${'$as_ac_var'}'`
38329                { echo "$as_me:$LINENO: result: $ac_res" >&5
38330 echo "${ECHO_T}$ac_res" >&6; }
38331 if test `eval echo '${'$as_ac_var'}'` = yes; then
38332   cat >>confdefs.h <<_ACEOF
38333 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38334 _ACEOF
38335  cat >>confdefs.h <<\_ACEOF
38336 #define HAVE_FCHDIR 1
38337 _ACEOF
38338
38339 fi
38340 done
38341
38342
38343 for ac_func in strtoll
38344 do
38345 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38346 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38347 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38348 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38349   echo $ECHO_N "(cached) $ECHO_C" >&6
38350 else
38351   cat >conftest.$ac_ext <<_ACEOF
38352 /* confdefs.h.  */
38353 _ACEOF
38354 cat confdefs.h >>conftest.$ac_ext
38355 cat >>conftest.$ac_ext <<_ACEOF
38356 /* end confdefs.h.  */
38357 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38358    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38359 #define $ac_func innocuous_$ac_func
38360
38361 /* System header to define __stub macros and hopefully few prototypes,
38362     which can conflict with char $ac_func (); below.
38363     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38364     <limits.h> exists even on freestanding compilers.  */
38365
38366 #ifdef __STDC__
38367 # include <limits.h>
38368 #else
38369 # include <assert.h>
38370 #endif
38371
38372 #undef $ac_func
38373
38374 /* Override any GCC internal prototype to avoid an error.
38375    Use char because int might match the return type of a GCC
38376    builtin and then its argument prototype would still apply.  */
38377 #ifdef __cplusplus
38378 extern "C"
38379 #endif
38380 char $ac_func ();
38381 /* The GNU C library defines this for functions which it implements
38382     to always fail with ENOSYS.  Some functions are actually named
38383     something starting with __ and the normal name is an alias.  */
38384 #if defined __stub_$ac_func || defined __stub___$ac_func
38385 choke me
38386 #endif
38387
38388 int
38389 main ()
38390 {
38391 return $ac_func ();
38392   ;
38393   return 0;
38394 }
38395 _ACEOF
38396 rm -f conftest.$ac_objext conftest$ac_exeext
38397 if { (ac_try="$ac_link"
38398 case "(($ac_try" in
38399   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38400   *) ac_try_echo=$ac_try;;
38401 esac
38402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38403   (eval "$ac_link") 2>conftest.er1
38404   ac_status=$?
38405   grep -v '^ *+' conftest.er1 >conftest.err
38406   rm -f conftest.er1
38407   cat conftest.err >&5
38408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38409   (exit $ac_status); } && {
38410          test -z "$ac_cxx_werror_flag" ||
38411          test ! -s conftest.err
38412        } && test -s conftest$ac_exeext &&
38413        $as_test_x conftest$ac_exeext; then
38414   eval "$as_ac_var=yes"
38415 else
38416   echo "$as_me: failed program was:" >&5
38417 sed 's/^/| /' conftest.$ac_ext >&5
38418
38419         eval "$as_ac_var=no"
38420 fi
38421
38422 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38423       conftest$ac_exeext conftest.$ac_ext
38424 fi
38425 ac_res=`eval echo '${'$as_ac_var'}'`
38426                { echo "$as_me:$LINENO: result: $ac_res" >&5
38427 echo "${ECHO_T}$ac_res" >&6; }
38428 if test `eval echo '${'$as_ac_var'}'` = yes; then
38429   cat >>confdefs.h <<_ACEOF
38430 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38431 _ACEOF
38432  cat >>confdefs.h <<\_ACEOF
38433 #define HAVE_STRTOLL 1
38434 _ACEOF
38435
38436 fi
38437 done
38438
38439
38440 for ac_func in posix_fadvise
38441 do
38442 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38443 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38444 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38445 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38446   echo $ECHO_N "(cached) $ECHO_C" >&6
38447 else
38448   cat >conftest.$ac_ext <<_ACEOF
38449 /* confdefs.h.  */
38450 _ACEOF
38451 cat confdefs.h >>conftest.$ac_ext
38452 cat >>conftest.$ac_ext <<_ACEOF
38453 /* end confdefs.h.  */
38454 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38455    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38456 #define $ac_func innocuous_$ac_func
38457
38458 /* System header to define __stub macros and hopefully few prototypes,
38459     which can conflict with char $ac_func (); below.
38460     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38461     <limits.h> exists even on freestanding compilers.  */
38462
38463 #ifdef __STDC__
38464 # include <limits.h>
38465 #else
38466 # include <assert.h>
38467 #endif
38468
38469 #undef $ac_func
38470
38471 /* Override any GCC internal prototype to avoid an error.
38472    Use char because int might match the return type of a GCC
38473    builtin and then its argument prototype would still apply.  */
38474 #ifdef __cplusplus
38475 extern "C"
38476 #endif
38477 char $ac_func ();
38478 /* The GNU C library defines this for functions which it implements
38479     to always fail with ENOSYS.  Some functions are actually named
38480     something starting with __ and the normal name is an alias.  */
38481 #if defined __stub_$ac_func || defined __stub___$ac_func
38482 choke me
38483 #endif
38484
38485 int
38486 main ()
38487 {
38488 return $ac_func ();
38489   ;
38490   return 0;
38491 }
38492 _ACEOF
38493 rm -f conftest.$ac_objext conftest$ac_exeext
38494 if { (ac_try="$ac_link"
38495 case "(($ac_try" in
38496   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38497   *) ac_try_echo=$ac_try;;
38498 esac
38499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38500   (eval "$ac_link") 2>conftest.er1
38501   ac_status=$?
38502   grep -v '^ *+' conftest.er1 >conftest.err
38503   rm -f conftest.er1
38504   cat conftest.err >&5
38505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38506   (exit $ac_status); } && {
38507          test -z "$ac_cxx_werror_flag" ||
38508          test ! -s conftest.err
38509        } && test -s conftest$ac_exeext &&
38510        $as_test_x conftest$ac_exeext; then
38511   eval "$as_ac_var=yes"
38512 else
38513   echo "$as_me: failed program was:" >&5
38514 sed 's/^/| /' conftest.$ac_ext >&5
38515
38516         eval "$as_ac_var=no"
38517 fi
38518
38519 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38520       conftest$ac_exeext conftest.$ac_ext
38521 fi
38522 ac_res=`eval echo '${'$as_ac_var'}'`
38523                { echo "$as_me:$LINENO: result: $ac_res" >&5
38524 echo "${ECHO_T}$ac_res" >&6; }
38525 if test `eval echo '${'$as_ac_var'}'` = yes; then
38526   cat >>confdefs.h <<_ACEOF
38527 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38528 _ACEOF
38529
38530 fi
38531 done
38532
38533
38534 for ac_func in fdatasync
38535 do
38536 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38537 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38538 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38539 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38540   echo $ECHO_N "(cached) $ECHO_C" >&6
38541 else
38542   cat >conftest.$ac_ext <<_ACEOF
38543 /* confdefs.h.  */
38544 _ACEOF
38545 cat confdefs.h >>conftest.$ac_ext
38546 cat >>conftest.$ac_ext <<_ACEOF
38547 /* end confdefs.h.  */
38548 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38549    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38550 #define $ac_func innocuous_$ac_func
38551
38552 /* System header to define __stub macros and hopefully few prototypes,
38553     which can conflict with char $ac_func (); below.
38554     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38555     <limits.h> exists even on freestanding compilers.  */
38556
38557 #ifdef __STDC__
38558 # include <limits.h>
38559 #else
38560 # include <assert.h>
38561 #endif
38562
38563 #undef $ac_func
38564
38565 /* Override any GCC internal prototype to avoid an error.
38566    Use char because int might match the return type of a GCC
38567    builtin and then its argument prototype would still apply.  */
38568 #ifdef __cplusplus
38569 extern "C"
38570 #endif
38571 char $ac_func ();
38572 /* The GNU C library defines this for functions which it implements
38573     to always fail with ENOSYS.  Some functions are actually named
38574     something starting with __ and the normal name is an alias.  */
38575 #if defined __stub_$ac_func || defined __stub___$ac_func
38576 choke me
38577 #endif
38578
38579 int
38580 main ()
38581 {
38582 return $ac_func ();
38583   ;
38584   return 0;
38585 }
38586 _ACEOF
38587 rm -f conftest.$ac_objext conftest$ac_exeext
38588 if { (ac_try="$ac_link"
38589 case "(($ac_try" in
38590   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38591   *) ac_try_echo=$ac_try;;
38592 esac
38593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38594   (eval "$ac_link") 2>conftest.er1
38595   ac_status=$?
38596   grep -v '^ *+' conftest.er1 >conftest.err
38597   rm -f conftest.er1
38598   cat conftest.err >&5
38599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38600   (exit $ac_status); } && {
38601          test -z "$ac_cxx_werror_flag" ||
38602          test ! -s conftest.err
38603        } && test -s conftest$ac_exeext &&
38604        $as_test_x conftest$ac_exeext; then
38605   eval "$as_ac_var=yes"
38606 else
38607   echo "$as_me: failed program was:" >&5
38608 sed 's/^/| /' conftest.$ac_ext >&5
38609
38610         eval "$as_ac_var=no"
38611 fi
38612
38613 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38614       conftest$ac_exeext conftest.$ac_ext
38615 fi
38616 ac_res=`eval echo '${'$as_ac_var'}'`
38617                { echo "$as_me:$LINENO: result: $ac_res" >&5
38618 echo "${ECHO_T}$ac_res" >&6; }
38619 if test `eval echo '${'$as_ac_var'}'` = yes; then
38620   cat >>confdefs.h <<_ACEOF
38621 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38622 _ACEOF
38623
38624 fi
38625 done
38626
38627
38628
38629 for ac_func in chflags
38630 do
38631 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38632 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38633 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38634 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38635   echo $ECHO_N "(cached) $ECHO_C" >&6
38636 else
38637   cat >conftest.$ac_ext <<_ACEOF
38638 /* confdefs.h.  */
38639 _ACEOF
38640 cat confdefs.h >>conftest.$ac_ext
38641 cat >>conftest.$ac_ext <<_ACEOF
38642 /* end confdefs.h.  */
38643 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38644    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38645 #define $ac_func innocuous_$ac_func
38646
38647 /* System header to define __stub macros and hopefully few prototypes,
38648     which can conflict with char $ac_func (); below.
38649     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38650     <limits.h> exists even on freestanding compilers.  */
38651
38652 #ifdef __STDC__
38653 # include <limits.h>
38654 #else
38655 # include <assert.h>
38656 #endif
38657
38658 #undef $ac_func
38659
38660 /* Override any GCC internal prototype to avoid an error.
38661    Use char because int might match the return type of a GCC
38662    builtin and then its argument prototype would still apply.  */
38663 #ifdef __cplusplus
38664 extern "C"
38665 #endif
38666 char $ac_func ();
38667 /* The GNU C library defines this for functions which it implements
38668     to always fail with ENOSYS.  Some functions are actually named
38669     something starting with __ and the normal name is an alias.  */
38670 #if defined __stub_$ac_func || defined __stub___$ac_func
38671 choke me
38672 #endif
38673
38674 int
38675 main ()
38676 {
38677 return $ac_func ();
38678   ;
38679   return 0;
38680 }
38681 _ACEOF
38682 rm -f conftest.$ac_objext conftest$ac_exeext
38683 if { (ac_try="$ac_link"
38684 case "(($ac_try" in
38685   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38686   *) ac_try_echo=$ac_try;;
38687 esac
38688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38689   (eval "$ac_link") 2>conftest.er1
38690   ac_status=$?
38691   grep -v '^ *+' conftest.er1 >conftest.err
38692   rm -f conftest.er1
38693   cat conftest.err >&5
38694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38695   (exit $ac_status); } && {
38696          test -z "$ac_cxx_werror_flag" ||
38697          test ! -s conftest.err
38698        } && test -s conftest$ac_exeext &&
38699        $as_test_x conftest$ac_exeext; then
38700   eval "$as_ac_var=yes"
38701 else
38702   echo "$as_me: failed program was:" >&5
38703 sed 's/^/| /' conftest.$ac_ext >&5
38704
38705         eval "$as_ac_var=no"
38706 fi
38707
38708 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38709       conftest$ac_exeext conftest.$ac_ext
38710 fi
38711 ac_res=`eval echo '${'$as_ac_var'}'`
38712                { echo "$as_me:$LINENO: result: $ac_res" >&5
38713 echo "${ECHO_T}$ac_res" >&6; }
38714 if test `eval echo '${'$as_ac_var'}'` = yes; then
38715   cat >>confdefs.h <<_ACEOF
38716 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38717 _ACEOF
38718
38719 fi
38720 done
38721
38722
38723
38724
38725
38726
38727 for ac_func in snprintf vsnprintf gethostid fseeko
38728 do
38729 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38730 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38731 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38732 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38733   echo $ECHO_N "(cached) $ECHO_C" >&6
38734 else
38735   cat >conftest.$ac_ext <<_ACEOF
38736 /* confdefs.h.  */
38737 _ACEOF
38738 cat confdefs.h >>conftest.$ac_ext
38739 cat >>conftest.$ac_ext <<_ACEOF
38740 /* end confdefs.h.  */
38741 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38742    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38743 #define $ac_func innocuous_$ac_func
38744
38745 /* System header to define __stub macros and hopefully few prototypes,
38746     which can conflict with char $ac_func (); below.
38747     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38748     <limits.h> exists even on freestanding compilers.  */
38749
38750 #ifdef __STDC__
38751 # include <limits.h>
38752 #else
38753 # include <assert.h>
38754 #endif
38755
38756 #undef $ac_func
38757
38758 /* Override any GCC internal prototype to avoid an error.
38759    Use char because int might match the return type of a GCC
38760    builtin and then its argument prototype would still apply.  */
38761 #ifdef __cplusplus
38762 extern "C"
38763 #endif
38764 char $ac_func ();
38765 /* The GNU C library defines this for functions which it implements
38766     to always fail with ENOSYS.  Some functions are actually named
38767     something starting with __ and the normal name is an alias.  */
38768 #if defined __stub_$ac_func || defined __stub___$ac_func
38769 choke me
38770 #endif
38771
38772 int
38773 main ()
38774 {
38775 return $ac_func ();
38776   ;
38777   return 0;
38778 }
38779 _ACEOF
38780 rm -f conftest.$ac_objext conftest$ac_exeext
38781 if { (ac_try="$ac_link"
38782 case "(($ac_try" in
38783   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38784   *) ac_try_echo=$ac_try;;
38785 esac
38786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38787   (eval "$ac_link") 2>conftest.er1
38788   ac_status=$?
38789   grep -v '^ *+' conftest.er1 >conftest.err
38790   rm -f conftest.er1
38791   cat conftest.err >&5
38792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38793   (exit $ac_status); } && {
38794          test -z "$ac_cxx_werror_flag" ||
38795          test ! -s conftest.err
38796        } && test -s conftest$ac_exeext &&
38797        $as_test_x conftest$ac_exeext; then
38798   eval "$as_ac_var=yes"
38799 else
38800   echo "$as_me: failed program was:" >&5
38801 sed 's/^/| /' conftest.$ac_ext >&5
38802
38803         eval "$as_ac_var=no"
38804 fi
38805
38806 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38807       conftest$ac_exeext conftest.$ac_ext
38808 fi
38809 ac_res=`eval echo '${'$as_ac_var'}'`
38810                { echo "$as_me:$LINENO: result: $ac_res" >&5
38811 echo "${ECHO_T}$ac_res" >&6; }
38812 if test `eval echo '${'$as_ac_var'}'` = yes; then
38813   cat >>confdefs.h <<_ACEOF
38814 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38815 _ACEOF
38816
38817 fi
38818 done
38819
38820
38821 { echo "$as_me:$LINENO: checking for va_copy" >&5
38822 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6; }
38823 if test "${ba_cv_va_copy+set}" = set; then
38824   echo $ECHO_N "(cached) $ECHO_C" >&6
38825 else
38826
38827        cat >conftest.$ac_ext <<_ACEOF
38828 /* confdefs.h.  */
38829 _ACEOF
38830 cat confdefs.h >>conftest.$ac_ext
38831 cat >>conftest.$ac_ext <<_ACEOF
38832 /* end confdefs.h.  */
38833
38834               #include <stdarg.h>
38835               void use_va_copy(va_list args){va_list args2; va_copy(args2,args); va_end(args2);}
38836               void call_use_va_copy(int junk,...){va_list args; va_start(args,junk); use_va_copy(args); va_end(args);}
38837
38838 int
38839 main ()
38840 {
38841
38842               call_use_va_copy(1,2,3)
38843
38844   ;
38845   return 0;
38846 }
38847 _ACEOF
38848 rm -f conftest.$ac_objext conftest$ac_exeext
38849 if { (ac_try="$ac_link"
38850 case "(($ac_try" in
38851   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38852   *) ac_try_echo=$ac_try;;
38853 esac
38854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38855   (eval "$ac_link") 2>conftest.er1
38856   ac_status=$?
38857   grep -v '^ *+' conftest.er1 >conftest.err
38858   rm -f conftest.er1
38859   cat conftest.err >&5
38860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38861   (exit $ac_status); } && {
38862          test -z "$ac_cxx_werror_flag" ||
38863          test ! -s conftest.err
38864        } && test -s conftest$ac_exeext &&
38865        $as_test_x conftest$ac_exeext; then
38866
38867               ba_cv_va_copy=yes,
38868
38869 else
38870   echo "$as_me: failed program was:" >&5
38871 sed 's/^/| /' conftest.$ac_ext >&5
38872
38873
38874               ba_cv_va_copy=no
38875
38876
38877 fi
38878
38879 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38880       conftest$ac_exeext conftest.$ac_ext
38881
38882
38883 fi
38884 { echo "$as_me:$LINENO: result: $ba_cv_va_copy" >&5
38885 echo "${ECHO_T}$ba_cv_va_copy" >&6; }
38886 test $ba_cv_va_copy = yes &&
38887 cat >>confdefs.h <<\_ACEOF
38888 #define HAVE_VA_COPY 1
38889 _ACEOF
38890
38891
38892
38893
38894
38895
38896 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
38897 do
38898 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38899 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38900 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38901 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38902   echo $ECHO_N "(cached) $ECHO_C" >&6
38903 else
38904   cat >conftest.$ac_ext <<_ACEOF
38905 /* confdefs.h.  */
38906 _ACEOF
38907 cat confdefs.h >>conftest.$ac_ext
38908 cat >>conftest.$ac_ext <<_ACEOF
38909 /* end confdefs.h.  */
38910 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38911    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38912 #define $ac_func innocuous_$ac_func
38913
38914 /* System header to define __stub macros and hopefully few prototypes,
38915     which can conflict with char $ac_func (); below.
38916     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38917     <limits.h> exists even on freestanding compilers.  */
38918
38919 #ifdef __STDC__
38920 # include <limits.h>
38921 #else
38922 # include <assert.h>
38923 #endif
38924
38925 #undef $ac_func
38926
38927 /* Override any GCC internal prototype to avoid an error.
38928    Use char because int might match the return type of a GCC
38929    builtin and then its argument prototype would still apply.  */
38930 #ifdef __cplusplus
38931 extern "C"
38932 #endif
38933 char $ac_func ();
38934 /* The GNU C library defines this for functions which it implements
38935     to always fail with ENOSYS.  Some functions are actually named
38936     something starting with __ and the normal name is an alias.  */
38937 #if defined __stub_$ac_func || defined __stub___$ac_func
38938 choke me
38939 #endif
38940
38941 int
38942 main ()
38943 {
38944 return $ac_func ();
38945   ;
38946   return 0;
38947 }
38948 _ACEOF
38949 rm -f conftest.$ac_objext conftest$ac_exeext
38950 if { (ac_try="$ac_link"
38951 case "(($ac_try" in
38952   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38953   *) ac_try_echo=$ac_try;;
38954 esac
38955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38956   (eval "$ac_link") 2>conftest.er1
38957   ac_status=$?
38958   grep -v '^ *+' conftest.er1 >conftest.err
38959   rm -f conftest.er1
38960   cat conftest.err >&5
38961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38962   (exit $ac_status); } && {
38963          test -z "$ac_cxx_werror_flag" ||
38964          test ! -s conftest.err
38965        } && test -s conftest$ac_exeext &&
38966        $as_test_x conftest$ac_exeext; then
38967   eval "$as_ac_var=yes"
38968 else
38969   echo "$as_me: failed program was:" >&5
38970 sed 's/^/| /' conftest.$ac_ext >&5
38971
38972         eval "$as_ac_var=no"
38973 fi
38974
38975 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38976       conftest$ac_exeext conftest.$ac_ext
38977 fi
38978 ac_res=`eval echo '${'$as_ac_var'}'`
38979                { echo "$as_me:$LINENO: result: $ac_res" >&5
38980 echo "${ECHO_T}$ac_res" >&6; }
38981 if test `eval echo '${'$as_ac_var'}'` = yes; then
38982   cat >>confdefs.h <<_ACEOF
38983 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38984 _ACEOF
38985
38986 fi
38987 done
38988
38989
38990 # If resolver functions are not in libc check for -lnsl or -lresolv.
38991 { echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
38992 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6; }
38993 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
38994   echo $ECHO_N "(cached) $ECHO_C" >&6
38995 else
38996   cat >conftest.$ac_ext <<_ACEOF
38997 /* confdefs.h.  */
38998 _ACEOF
38999 cat confdefs.h >>conftest.$ac_ext
39000 cat >>conftest.$ac_ext <<_ACEOF
39001 /* end confdefs.h.  */
39002 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
39003    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39004 #define gethostbyname_r innocuous_gethostbyname_r
39005
39006 /* System header to define __stub macros and hopefully few prototypes,
39007     which can conflict with char gethostbyname_r (); below.
39008     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39009     <limits.h> exists even on freestanding compilers.  */
39010
39011 #ifdef __STDC__
39012 # include <limits.h>
39013 #else
39014 # include <assert.h>
39015 #endif
39016
39017 #undef gethostbyname_r
39018
39019 /* Override any GCC internal prototype to avoid an error.
39020    Use char because int might match the return type of a GCC
39021    builtin and then its argument prototype would still apply.  */
39022 #ifdef __cplusplus
39023 extern "C"
39024 #endif
39025 char gethostbyname_r ();
39026 /* The GNU C library defines this for functions which it implements
39027     to always fail with ENOSYS.  Some functions are actually named
39028     something starting with __ and the normal name is an alias.  */
39029 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
39030 choke me
39031 #endif
39032
39033 int
39034 main ()
39035 {
39036 return gethostbyname_r ();
39037   ;
39038   return 0;
39039 }
39040 _ACEOF
39041 rm -f conftest.$ac_objext conftest$ac_exeext
39042 if { (ac_try="$ac_link"
39043 case "(($ac_try" in
39044   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39045   *) ac_try_echo=$ac_try;;
39046 esac
39047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39048   (eval "$ac_link") 2>conftest.er1
39049   ac_status=$?
39050   grep -v '^ *+' conftest.er1 >conftest.err
39051   rm -f conftest.er1
39052   cat conftest.err >&5
39053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39054   (exit $ac_status); } && {
39055          test -z "$ac_cxx_werror_flag" ||
39056          test ! -s conftest.err
39057        } && test -s conftest$ac_exeext &&
39058        $as_test_x conftest$ac_exeext; then
39059   ac_cv_func_gethostbyname_r=yes
39060 else
39061   echo "$as_me: failed program was:" >&5
39062 sed 's/^/| /' conftest.$ac_ext >&5
39063
39064         ac_cv_func_gethostbyname_r=no
39065 fi
39066
39067 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39068       conftest$ac_exeext conftest.$ac_ext
39069 fi
39070 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
39071 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6; }
39072 if test $ac_cv_func_gethostbyname_r = yes; then
39073   { echo "$as_me:$LINENO: result: using libc's resolver" >&5
39074 echo "${ECHO_T}using libc's resolver" >&6; }
39075 else
39076
39077 { echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
39078 echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6; }
39079 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
39080   echo $ECHO_N "(cached) $ECHO_C" >&6
39081 else
39082   ac_check_lib_save_LIBS=$LIBS
39083 LIBS="-lnsl  $LIBS"
39084 cat >conftest.$ac_ext <<_ACEOF
39085 /* confdefs.h.  */
39086 _ACEOF
39087 cat confdefs.h >>conftest.$ac_ext
39088 cat >>conftest.$ac_ext <<_ACEOF
39089 /* end confdefs.h.  */
39090
39091 /* Override any GCC internal prototype to avoid an error.
39092    Use char because int might match the return type of a GCC
39093    builtin and then its argument prototype would still apply.  */
39094 #ifdef __cplusplus
39095 extern "C"
39096 #endif
39097 char gethostbyname_r ();
39098 int
39099 main ()
39100 {
39101 return gethostbyname_r ();
39102   ;
39103   return 0;
39104 }
39105 _ACEOF
39106 rm -f conftest.$ac_objext conftest$ac_exeext
39107 if { (ac_try="$ac_link"
39108 case "(($ac_try" in
39109   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39110   *) ac_try_echo=$ac_try;;
39111 esac
39112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39113   (eval "$ac_link") 2>conftest.er1
39114   ac_status=$?
39115   grep -v '^ *+' conftest.er1 >conftest.err
39116   rm -f conftest.er1
39117   cat conftest.err >&5
39118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39119   (exit $ac_status); } && {
39120          test -z "$ac_cxx_werror_flag" ||
39121          test ! -s conftest.err
39122        } && test -s conftest$ac_exeext &&
39123        $as_test_x conftest$ac_exeext; then
39124   ac_cv_lib_nsl_gethostbyname_r=yes
39125 else
39126   echo "$as_me: failed program was:" >&5
39127 sed 's/^/| /' conftest.$ac_ext >&5
39128
39129         ac_cv_lib_nsl_gethostbyname_r=no
39130 fi
39131
39132 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39133       conftest$ac_exeext conftest.$ac_ext
39134 LIBS=$ac_check_lib_save_LIBS
39135 fi
39136 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
39137 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6; }
39138 if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
39139   cat >>confdefs.h <<_ACEOF
39140 #define HAVE_LIBNSL 1
39141 _ACEOF
39142
39143   LIBS="-lnsl $LIBS"
39144
39145 fi
39146
39147
39148 { echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
39149 echo $ECHO_N "checking for gethostbyname_r in -lresolv... $ECHO_C" >&6; }
39150 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
39151   echo $ECHO_N "(cached) $ECHO_C" >&6
39152 else
39153   ac_check_lib_save_LIBS=$LIBS
39154 LIBS="-lresolv  $LIBS"
39155 cat >conftest.$ac_ext <<_ACEOF
39156 /* confdefs.h.  */
39157 _ACEOF
39158 cat confdefs.h >>conftest.$ac_ext
39159 cat >>conftest.$ac_ext <<_ACEOF
39160 /* end confdefs.h.  */
39161
39162 /* Override any GCC internal prototype to avoid an error.
39163    Use char because int might match the return type of a GCC
39164    builtin and then its argument prototype would still apply.  */
39165 #ifdef __cplusplus
39166 extern "C"
39167 #endif
39168 char gethostbyname_r ();
39169 int
39170 main ()
39171 {
39172 return gethostbyname_r ();
39173   ;
39174   return 0;
39175 }
39176 _ACEOF
39177 rm -f conftest.$ac_objext conftest$ac_exeext
39178 if { (ac_try="$ac_link"
39179 case "(($ac_try" in
39180   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39181   *) ac_try_echo=$ac_try;;
39182 esac
39183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39184   (eval "$ac_link") 2>conftest.er1
39185   ac_status=$?
39186   grep -v '^ *+' conftest.er1 >conftest.err
39187   rm -f conftest.er1
39188   cat conftest.err >&5
39189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39190   (exit $ac_status); } && {
39191          test -z "$ac_cxx_werror_flag" ||
39192          test ! -s conftest.err
39193        } && test -s conftest$ac_exeext &&
39194        $as_test_x conftest$ac_exeext; then
39195   ac_cv_lib_resolv_gethostbyname_r=yes
39196 else
39197   echo "$as_me: failed program was:" >&5
39198 sed 's/^/| /' conftest.$ac_ext >&5
39199
39200         ac_cv_lib_resolv_gethostbyname_r=no
39201 fi
39202
39203 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39204       conftest$ac_exeext conftest.$ac_ext
39205 LIBS=$ac_check_lib_save_LIBS
39206 fi
39207 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
39208 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname_r" >&6; }
39209 if test $ac_cv_lib_resolv_gethostbyname_r = yes; then
39210   cat >>confdefs.h <<_ACEOF
39211 #define HAVE_LIBRESOLV 1
39212 _ACEOF
39213
39214   LIBS="-lresolv $LIBS"
39215
39216 fi
39217
39218 fi
39219
39220
39221
39222 for ac_func in inet_pton
39223 do
39224 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39225 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39226 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39227 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39228   echo $ECHO_N "(cached) $ECHO_C" >&6
39229 else
39230   cat >conftest.$ac_ext <<_ACEOF
39231 /* confdefs.h.  */
39232 _ACEOF
39233 cat confdefs.h >>conftest.$ac_ext
39234 cat >>conftest.$ac_ext <<_ACEOF
39235 /* end confdefs.h.  */
39236 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39237    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39238 #define $ac_func innocuous_$ac_func
39239
39240 /* System header to define __stub macros and hopefully few prototypes,
39241     which can conflict with char $ac_func (); below.
39242     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39243     <limits.h> exists even on freestanding compilers.  */
39244
39245 #ifdef __STDC__
39246 # include <limits.h>
39247 #else
39248 # include <assert.h>
39249 #endif
39250
39251 #undef $ac_func
39252
39253 /* Override any GCC internal prototype to avoid an error.
39254    Use char because int might match the return type of a GCC
39255    builtin and then its argument prototype would still apply.  */
39256 #ifdef __cplusplus
39257 extern "C"
39258 #endif
39259 char $ac_func ();
39260 /* The GNU C library defines this for functions which it implements
39261     to always fail with ENOSYS.  Some functions are actually named
39262     something starting with __ and the normal name is an alias.  */
39263 #if defined __stub_$ac_func || defined __stub___$ac_func
39264 choke me
39265 #endif
39266
39267 int
39268 main ()
39269 {
39270 return $ac_func ();
39271   ;
39272   return 0;
39273 }
39274 _ACEOF
39275 rm -f conftest.$ac_objext conftest$ac_exeext
39276 if { (ac_try="$ac_link"
39277 case "(($ac_try" in
39278   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39279   *) ac_try_echo=$ac_try;;
39280 esac
39281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39282   (eval "$ac_link") 2>conftest.er1
39283   ac_status=$?
39284   grep -v '^ *+' conftest.er1 >conftest.err
39285   rm -f conftest.er1
39286   cat conftest.err >&5
39287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39288   (exit $ac_status); } && {
39289          test -z "$ac_cxx_werror_flag" ||
39290          test ! -s conftest.err
39291        } && test -s conftest$ac_exeext &&
39292        $as_test_x conftest$ac_exeext; then
39293   eval "$as_ac_var=yes"
39294 else
39295   echo "$as_me: failed program was:" >&5
39296 sed 's/^/| /' conftest.$ac_ext >&5
39297
39298         eval "$as_ac_var=no"
39299 fi
39300
39301 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39302       conftest$ac_exeext conftest.$ac_ext
39303 fi
39304 ac_res=`eval echo '${'$as_ac_var'}'`
39305                { echo "$as_me:$LINENO: result: $ac_res" >&5
39306 echo "${ECHO_T}$ac_res" >&6; }
39307 if test `eval echo '${'$as_ac_var'}'` = yes; then
39308   cat >>confdefs.h <<_ACEOF
39309 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39310 _ACEOF
39311  cat >>confdefs.h <<\_ACEOF
39312 #define HAVE_INET_PTON 1
39313 _ACEOF
39314
39315 fi
39316 done
39317
39318
39319 for ac_func in inet_ntop
39320 do
39321 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39322 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39323 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39324 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39325   echo $ECHO_N "(cached) $ECHO_C" >&6
39326 else
39327   cat >conftest.$ac_ext <<_ACEOF
39328 /* confdefs.h.  */
39329 _ACEOF
39330 cat confdefs.h >>conftest.$ac_ext
39331 cat >>conftest.$ac_ext <<_ACEOF
39332 /* end confdefs.h.  */
39333 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39334    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39335 #define $ac_func innocuous_$ac_func
39336
39337 /* System header to define __stub macros and hopefully few prototypes,
39338     which can conflict with char $ac_func (); below.
39339     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39340     <limits.h> exists even on freestanding compilers.  */
39341
39342 #ifdef __STDC__
39343 # include <limits.h>
39344 #else
39345 # include <assert.h>
39346 #endif
39347
39348 #undef $ac_func
39349
39350 /* Override any GCC internal prototype to avoid an error.
39351    Use char because int might match the return type of a GCC
39352    builtin and then its argument prototype would still apply.  */
39353 #ifdef __cplusplus
39354 extern "C"
39355 #endif
39356 char $ac_func ();
39357 /* The GNU C library defines this for functions which it implements
39358     to always fail with ENOSYS.  Some functions are actually named
39359     something starting with __ and the normal name is an alias.  */
39360 #if defined __stub_$ac_func || defined __stub___$ac_func
39361 choke me
39362 #endif
39363
39364 int
39365 main ()
39366 {
39367 return $ac_func ();
39368   ;
39369   return 0;
39370 }
39371 _ACEOF
39372 rm -f conftest.$ac_objext conftest$ac_exeext
39373 if { (ac_try="$ac_link"
39374 case "(($ac_try" in
39375   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39376   *) ac_try_echo=$ac_try;;
39377 esac
39378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39379   (eval "$ac_link") 2>conftest.er1
39380   ac_status=$?
39381   grep -v '^ *+' conftest.er1 >conftest.err
39382   rm -f conftest.er1
39383   cat conftest.err >&5
39384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39385   (exit $ac_status); } && {
39386          test -z "$ac_cxx_werror_flag" ||
39387          test ! -s conftest.err
39388        } && test -s conftest$ac_exeext &&
39389        $as_test_x conftest$ac_exeext; then
39390   eval "$as_ac_var=yes"
39391 else
39392   echo "$as_me: failed program was:" >&5
39393 sed 's/^/| /' conftest.$ac_ext >&5
39394
39395         eval "$as_ac_var=no"
39396 fi
39397
39398 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39399       conftest$ac_exeext conftest.$ac_ext
39400 fi
39401 ac_res=`eval echo '${'$as_ac_var'}'`
39402                { echo "$as_me:$LINENO: result: $ac_res" >&5
39403 echo "${ECHO_T}$ac_res" >&6; }
39404 if test `eval echo '${'$as_ac_var'}'` = yes; then
39405   cat >>confdefs.h <<_ACEOF
39406 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39407 _ACEOF
39408  cat >>confdefs.h <<\_ACEOF
39409 #define HAVE_INET_NTOP 1
39410 _ACEOF
39411
39412 fi
39413 done
39414
39415
39416 for ac_func in gethostbyname2
39417 do
39418 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39419 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39420 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39421 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39422   echo $ECHO_N "(cached) $ECHO_C" >&6
39423 else
39424   cat >conftest.$ac_ext <<_ACEOF
39425 /* confdefs.h.  */
39426 _ACEOF
39427 cat confdefs.h >>conftest.$ac_ext
39428 cat >>conftest.$ac_ext <<_ACEOF
39429 /* end confdefs.h.  */
39430 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39431    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39432 #define $ac_func innocuous_$ac_func
39433
39434 /* System header to define __stub macros and hopefully few prototypes,
39435     which can conflict with char $ac_func (); below.
39436     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39437     <limits.h> exists even on freestanding compilers.  */
39438
39439 #ifdef __STDC__
39440 # include <limits.h>
39441 #else
39442 # include <assert.h>
39443 #endif
39444
39445 #undef $ac_func
39446
39447 /* Override any GCC internal prototype to avoid an error.
39448    Use char because int might match the return type of a GCC
39449    builtin and then its argument prototype would still apply.  */
39450 #ifdef __cplusplus
39451 extern "C"
39452 #endif
39453 char $ac_func ();
39454 /* The GNU C library defines this for functions which it implements
39455     to always fail with ENOSYS.  Some functions are actually named
39456     something starting with __ and the normal name is an alias.  */
39457 #if defined __stub_$ac_func || defined __stub___$ac_func
39458 choke me
39459 #endif
39460
39461 int
39462 main ()
39463 {
39464 return $ac_func ();
39465   ;
39466   return 0;
39467 }
39468 _ACEOF
39469 rm -f conftest.$ac_objext conftest$ac_exeext
39470 if { (ac_try="$ac_link"
39471 case "(($ac_try" in
39472   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39473   *) ac_try_echo=$ac_try;;
39474 esac
39475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39476   (eval "$ac_link") 2>conftest.er1
39477   ac_status=$?
39478   grep -v '^ *+' conftest.er1 >conftest.err
39479   rm -f conftest.er1
39480   cat conftest.err >&5
39481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39482   (exit $ac_status); } && {
39483          test -z "$ac_cxx_werror_flag" ||
39484          test ! -s conftest.err
39485        } && test -s conftest$ac_exeext &&
39486        $as_test_x conftest$ac_exeext; then
39487   eval "$as_ac_var=yes"
39488 else
39489   echo "$as_me: failed program was:" >&5
39490 sed 's/^/| /' conftest.$ac_ext >&5
39491
39492         eval "$as_ac_var=no"
39493 fi
39494
39495 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39496       conftest$ac_exeext conftest.$ac_ext
39497 fi
39498 ac_res=`eval echo '${'$as_ac_var'}'`
39499                { echo "$as_me:$LINENO: result: $ac_res" >&5
39500 echo "${ECHO_T}$ac_res" >&6; }
39501 if test `eval echo '${'$as_ac_var'}'` = yes; then
39502   cat >>confdefs.h <<_ACEOF
39503 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39504 _ACEOF
39505  cat >>confdefs.h <<\_ACEOF
39506 #define HAVE_GETHOSTBYNAME2 1
39507 _ACEOF
39508
39509 fi
39510 done
39511
39512
39513 { echo "$as_me:$LINENO: checking for struct sockaddr has a sa_len field" >&5
39514 echo $ECHO_N "checking for struct sockaddr has a sa_len field... $ECHO_C" >&6; }
39515 if test "${ac_cv_struct_sockaddr_sa_len+set}" = set; then
39516   echo $ECHO_N "(cached) $ECHO_C" >&6
39517 else
39518
39519        cat >conftest.$ac_ext <<_ACEOF
39520 /* confdefs.h.  */
39521 _ACEOF
39522 cat confdefs.h >>conftest.$ac_ext
39523 cat >>conftest.$ac_ext <<_ACEOF
39524 /* end confdefs.h.  */
39525
39526               #include <sys/socket.h>
39527
39528 int
39529 main ()
39530 {
39531
39532               struct sockaddr s; s.sa_len;
39533
39534   ;
39535   return 0;
39536 }
39537 _ACEOF
39538 rm -f conftest.$ac_objext
39539 if { (ac_try="$ac_compile"
39540 case "(($ac_try" in
39541   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39542   *) ac_try_echo=$ac_try;;
39543 esac
39544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39545   (eval "$ac_compile") 2>conftest.er1
39546   ac_status=$?
39547   grep -v '^ *+' conftest.er1 >conftest.err
39548   rm -f conftest.er1
39549   cat conftest.err >&5
39550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39551   (exit $ac_status); } && {
39552          test -z "$ac_cxx_werror_flag" ||
39553          test ! -s conftest.err
39554        } && test -s conftest.$ac_objext; then
39555
39556              ac_cv_struct_sockaddr_sa_len=yes
39557
39558 else
39559   echo "$as_me: failed program was:" >&5
39560 sed 's/^/| /' conftest.$ac_ext >&5
39561
39562         ac_cv_struct_sockaddr_sa_len=no
39563
39564
39565 fi
39566
39567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39568
39569
39570 fi
39571 { echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_sa_len" >&5
39572 echo "${ECHO_T}$ac_cv_struct_sockaddr_sa_len" >&6; }
39573
39574 if test $ac_cv_struct_sockaddr_sa_len = yes; then
39575
39576 cat >>confdefs.h <<\_ACEOF
39577 #define HAVE_SA_LEN 1
39578 _ACEOF
39579
39580 fi
39581
39582
39583 for ac_func in strftime
39584 do
39585 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39586 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39587 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39588 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39589   echo $ECHO_N "(cached) $ECHO_C" >&6
39590 else
39591   cat >conftest.$ac_ext <<_ACEOF
39592 /* confdefs.h.  */
39593 _ACEOF
39594 cat confdefs.h >>conftest.$ac_ext
39595 cat >>conftest.$ac_ext <<_ACEOF
39596 /* end confdefs.h.  */
39597 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39598    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39599 #define $ac_func innocuous_$ac_func
39600
39601 /* System header to define __stub macros and hopefully few prototypes,
39602     which can conflict with char $ac_func (); below.
39603     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39604     <limits.h> exists even on freestanding compilers.  */
39605
39606 #ifdef __STDC__
39607 # include <limits.h>
39608 #else
39609 # include <assert.h>
39610 #endif
39611
39612 #undef $ac_func
39613
39614 /* Override any GCC internal prototype to avoid an error.
39615    Use char because int might match the return type of a GCC
39616    builtin and then its argument prototype would still apply.  */
39617 #ifdef __cplusplus
39618 extern "C"
39619 #endif
39620 char $ac_func ();
39621 /* The GNU C library defines this for functions which it implements
39622     to always fail with ENOSYS.  Some functions are actually named
39623     something starting with __ and the normal name is an alias.  */
39624 #if defined __stub_$ac_func || defined __stub___$ac_func
39625 choke me
39626 #endif
39627
39628 int
39629 main ()
39630 {
39631 return $ac_func ();
39632   ;
39633   return 0;
39634 }
39635 _ACEOF
39636 rm -f conftest.$ac_objext conftest$ac_exeext
39637 if { (ac_try="$ac_link"
39638 case "(($ac_try" in
39639   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39640   *) ac_try_echo=$ac_try;;
39641 esac
39642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39643   (eval "$ac_link") 2>conftest.er1
39644   ac_status=$?
39645   grep -v '^ *+' conftest.er1 >conftest.err
39646   rm -f conftest.er1
39647   cat conftest.err >&5
39648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39649   (exit $ac_status); } && {
39650          test -z "$ac_cxx_werror_flag" ||
39651          test ! -s conftest.err
39652        } && test -s conftest$ac_exeext &&
39653        $as_test_x conftest$ac_exeext; then
39654   eval "$as_ac_var=yes"
39655 else
39656   echo "$as_me: failed program was:" >&5
39657 sed 's/^/| /' conftest.$ac_ext >&5
39658
39659         eval "$as_ac_var=no"
39660 fi
39661
39662 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39663       conftest$ac_exeext conftest.$ac_ext
39664 fi
39665 ac_res=`eval echo '${'$as_ac_var'}'`
39666                { echo "$as_me:$LINENO: result: $ac_res" >&5
39667 echo "${ECHO_T}$ac_res" >&6; }
39668 if test `eval echo '${'$as_ac_var'}'` = yes; then
39669   cat >>confdefs.h <<_ACEOF
39670 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39671 _ACEOF
39672
39673 else
39674   # strftime is in -lintl on SCO UNIX.
39675 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
39676 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
39677 if test "${ac_cv_lib_intl_strftime+set}" = set; then
39678   echo $ECHO_N "(cached) $ECHO_C" >&6
39679 else
39680   ac_check_lib_save_LIBS=$LIBS
39681 LIBS="-lintl  $LIBS"
39682 cat >conftest.$ac_ext <<_ACEOF
39683 /* confdefs.h.  */
39684 _ACEOF
39685 cat confdefs.h >>conftest.$ac_ext
39686 cat >>conftest.$ac_ext <<_ACEOF
39687 /* end confdefs.h.  */
39688
39689 /* Override any GCC internal prototype to avoid an error.
39690    Use char because int might match the return type of a GCC
39691    builtin and then its argument prototype would still apply.  */
39692 #ifdef __cplusplus
39693 extern "C"
39694 #endif
39695 char strftime ();
39696 int
39697 main ()
39698 {
39699 return strftime ();
39700   ;
39701   return 0;
39702 }
39703 _ACEOF
39704 rm -f conftest.$ac_objext conftest$ac_exeext
39705 if { (ac_try="$ac_link"
39706 case "(($ac_try" in
39707   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39708   *) ac_try_echo=$ac_try;;
39709 esac
39710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39711   (eval "$ac_link") 2>conftest.er1
39712   ac_status=$?
39713   grep -v '^ *+' conftest.er1 >conftest.err
39714   rm -f conftest.er1
39715   cat conftest.err >&5
39716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39717   (exit $ac_status); } && {
39718          test -z "$ac_cxx_werror_flag" ||
39719          test ! -s conftest.err
39720        } && test -s conftest$ac_exeext &&
39721        $as_test_x conftest$ac_exeext; then
39722   ac_cv_lib_intl_strftime=yes
39723 else
39724   echo "$as_me: failed program was:" >&5
39725 sed 's/^/| /' conftest.$ac_ext >&5
39726
39727         ac_cv_lib_intl_strftime=no
39728 fi
39729
39730 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39731       conftest$ac_exeext conftest.$ac_ext
39732 LIBS=$ac_check_lib_save_LIBS
39733 fi
39734 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
39735 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
39736 if test $ac_cv_lib_intl_strftime = yes; then
39737   cat >>confdefs.h <<\_ACEOF
39738 #define HAVE_STRFTIME 1
39739 _ACEOF
39740
39741 LIBS="-lintl $LIBS"
39742 fi
39743
39744 fi
39745 done
39746
39747
39748 for ac_func in vprintf
39749 do
39750 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39751 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39752 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39753 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39754   echo $ECHO_N "(cached) $ECHO_C" >&6
39755 else
39756   cat >conftest.$ac_ext <<_ACEOF
39757 /* confdefs.h.  */
39758 _ACEOF
39759 cat confdefs.h >>conftest.$ac_ext
39760 cat >>conftest.$ac_ext <<_ACEOF
39761 /* end confdefs.h.  */
39762 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39763    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39764 #define $ac_func innocuous_$ac_func
39765
39766 /* System header to define __stub macros and hopefully few prototypes,
39767     which can conflict with char $ac_func (); below.
39768     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39769     <limits.h> exists even on freestanding compilers.  */
39770
39771 #ifdef __STDC__
39772 # include <limits.h>
39773 #else
39774 # include <assert.h>
39775 #endif
39776
39777 #undef $ac_func
39778
39779 /* Override any GCC internal prototype to avoid an error.
39780    Use char because int might match the return type of a GCC
39781    builtin and then its argument prototype would still apply.  */
39782 #ifdef __cplusplus
39783 extern "C"
39784 #endif
39785 char $ac_func ();
39786 /* The GNU C library defines this for functions which it implements
39787     to always fail with ENOSYS.  Some functions are actually named
39788     something starting with __ and the normal name is an alias.  */
39789 #if defined __stub_$ac_func || defined __stub___$ac_func
39790 choke me
39791 #endif
39792
39793 int
39794 main ()
39795 {
39796 return $ac_func ();
39797   ;
39798   return 0;
39799 }
39800 _ACEOF
39801 rm -f conftest.$ac_objext conftest$ac_exeext
39802 if { (ac_try="$ac_link"
39803 case "(($ac_try" in
39804   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39805   *) ac_try_echo=$ac_try;;
39806 esac
39807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39808   (eval "$ac_link") 2>conftest.er1
39809   ac_status=$?
39810   grep -v '^ *+' conftest.er1 >conftest.err
39811   rm -f conftest.er1
39812   cat conftest.err >&5
39813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39814   (exit $ac_status); } && {
39815          test -z "$ac_cxx_werror_flag" ||
39816          test ! -s conftest.err
39817        } && test -s conftest$ac_exeext &&
39818        $as_test_x conftest$ac_exeext; then
39819   eval "$as_ac_var=yes"
39820 else
39821   echo "$as_me: failed program was:" >&5
39822 sed 's/^/| /' conftest.$ac_ext >&5
39823
39824         eval "$as_ac_var=no"
39825 fi
39826
39827 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39828       conftest$ac_exeext conftest.$ac_ext
39829 fi
39830 ac_res=`eval echo '${'$as_ac_var'}'`
39831                { echo "$as_me:$LINENO: result: $ac_res" >&5
39832 echo "${ECHO_T}$ac_res" >&6; }
39833 if test `eval echo '${'$as_ac_var'}'` = yes; then
39834   cat >>confdefs.h <<_ACEOF
39835 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39836 _ACEOF
39837
39838 { echo "$as_me:$LINENO: checking for _doprnt" >&5
39839 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
39840 if test "${ac_cv_func__doprnt+set}" = set; then
39841   echo $ECHO_N "(cached) $ECHO_C" >&6
39842 else
39843   cat >conftest.$ac_ext <<_ACEOF
39844 /* confdefs.h.  */
39845 _ACEOF
39846 cat confdefs.h >>conftest.$ac_ext
39847 cat >>conftest.$ac_ext <<_ACEOF
39848 /* end confdefs.h.  */
39849 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
39850    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39851 #define _doprnt innocuous__doprnt
39852
39853 /* System header to define __stub macros and hopefully few prototypes,
39854     which can conflict with char _doprnt (); below.
39855     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39856     <limits.h> exists even on freestanding compilers.  */
39857
39858 #ifdef __STDC__
39859 # include <limits.h>
39860 #else
39861 # include <assert.h>
39862 #endif
39863
39864 #undef _doprnt
39865
39866 /* Override any GCC internal prototype to avoid an error.
39867    Use char because int might match the return type of a GCC
39868    builtin and then its argument prototype would still apply.  */
39869 #ifdef __cplusplus
39870 extern "C"
39871 #endif
39872 char _doprnt ();
39873 /* The GNU C library defines this for functions which it implements
39874     to always fail with ENOSYS.  Some functions are actually named
39875     something starting with __ and the normal name is an alias.  */
39876 #if defined __stub__doprnt || defined __stub____doprnt
39877 choke me
39878 #endif
39879
39880 int
39881 main ()
39882 {
39883 return _doprnt ();
39884   ;
39885   return 0;
39886 }
39887 _ACEOF
39888 rm -f conftest.$ac_objext conftest$ac_exeext
39889 if { (ac_try="$ac_link"
39890 case "(($ac_try" in
39891   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39892   *) ac_try_echo=$ac_try;;
39893 esac
39894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39895   (eval "$ac_link") 2>conftest.er1
39896   ac_status=$?
39897   grep -v '^ *+' conftest.er1 >conftest.err
39898   rm -f conftest.er1
39899   cat conftest.err >&5
39900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39901   (exit $ac_status); } && {
39902          test -z "$ac_cxx_werror_flag" ||
39903          test ! -s conftest.err
39904        } && test -s conftest$ac_exeext &&
39905        $as_test_x conftest$ac_exeext; then
39906   ac_cv_func__doprnt=yes
39907 else
39908   echo "$as_me: failed program was:" >&5
39909 sed 's/^/| /' conftest.$ac_ext >&5
39910
39911         ac_cv_func__doprnt=no
39912 fi
39913
39914 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39915       conftest$ac_exeext conftest.$ac_ext
39916 fi
39917 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
39918 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
39919 if test $ac_cv_func__doprnt = yes; then
39920
39921 cat >>confdefs.h <<\_ACEOF
39922 #define HAVE_DOPRNT 1
39923 _ACEOF
39924
39925 fi
39926
39927 fi
39928 done
39929
39930
39931 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
39932 # for constant arguments.  Useless!
39933 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
39934 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
39935 if test "${ac_cv_working_alloca_h+set}" = set; then
39936   echo $ECHO_N "(cached) $ECHO_C" >&6
39937 else
39938   cat >conftest.$ac_ext <<_ACEOF
39939 /* confdefs.h.  */
39940 _ACEOF
39941 cat confdefs.h >>conftest.$ac_ext
39942 cat >>conftest.$ac_ext <<_ACEOF
39943 /* end confdefs.h.  */
39944 #include <alloca.h>
39945 int
39946 main ()
39947 {
39948 char *p = (char *) alloca (2 * sizeof (int));
39949                           if (p) return 0;
39950   ;
39951   return 0;
39952 }
39953 _ACEOF
39954 rm -f conftest.$ac_objext conftest$ac_exeext
39955 if { (ac_try="$ac_link"
39956 case "(($ac_try" in
39957   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39958   *) ac_try_echo=$ac_try;;
39959 esac
39960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39961   (eval "$ac_link") 2>conftest.er1
39962   ac_status=$?
39963   grep -v '^ *+' conftest.er1 >conftest.err
39964   rm -f conftest.er1
39965   cat conftest.err >&5
39966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39967   (exit $ac_status); } && {
39968          test -z "$ac_cxx_werror_flag" ||
39969          test ! -s conftest.err
39970        } && test -s conftest$ac_exeext &&
39971        $as_test_x conftest$ac_exeext; then
39972   ac_cv_working_alloca_h=yes
39973 else
39974   echo "$as_me: failed program was:" >&5
39975 sed 's/^/| /' conftest.$ac_ext >&5
39976
39977         ac_cv_working_alloca_h=no
39978 fi
39979
39980 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39981       conftest$ac_exeext conftest.$ac_ext
39982 fi
39983 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
39984 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
39985 if test $ac_cv_working_alloca_h = yes; then
39986
39987 cat >>confdefs.h <<\_ACEOF
39988 #define HAVE_ALLOCA_H 1
39989 _ACEOF
39990
39991 fi
39992
39993 { echo "$as_me:$LINENO: checking for alloca" >&5
39994 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
39995 if test "${ac_cv_func_alloca_works+set}" = set; then
39996   echo $ECHO_N "(cached) $ECHO_C" >&6
39997 else
39998   cat >conftest.$ac_ext <<_ACEOF
39999 /* confdefs.h.  */
40000 _ACEOF
40001 cat confdefs.h >>conftest.$ac_ext
40002 cat >>conftest.$ac_ext <<_ACEOF
40003 /* end confdefs.h.  */
40004 #ifdef __GNUC__
40005 # define alloca __builtin_alloca
40006 #else
40007 # ifdef _MSC_VER
40008 #  include <malloc.h>
40009 #  define alloca _alloca
40010 # else
40011 #  ifdef HAVE_ALLOCA_H
40012 #   include <alloca.h>
40013 #  else
40014 #   ifdef _AIX
40015  #pragma alloca
40016 #   else
40017 #    ifndef alloca /* predefined by HP cc +Olibcalls */
40018 char *alloca ();
40019 #    endif
40020 #   endif
40021 #  endif
40022 # endif
40023 #endif
40024
40025 int
40026 main ()
40027 {
40028 char *p = (char *) alloca (1);
40029                                     if (p) return 0;
40030   ;
40031   return 0;
40032 }
40033 _ACEOF
40034 rm -f conftest.$ac_objext conftest$ac_exeext
40035 if { (ac_try="$ac_link"
40036 case "(($ac_try" in
40037   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40038   *) ac_try_echo=$ac_try;;
40039 esac
40040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40041   (eval "$ac_link") 2>conftest.er1
40042   ac_status=$?
40043   grep -v '^ *+' conftest.er1 >conftest.err
40044   rm -f conftest.er1
40045   cat conftest.err >&5
40046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40047   (exit $ac_status); } && {
40048          test -z "$ac_cxx_werror_flag" ||
40049          test ! -s conftest.err
40050        } && test -s conftest$ac_exeext &&
40051        $as_test_x conftest$ac_exeext; then
40052   ac_cv_func_alloca_works=yes
40053 else
40054   echo "$as_me: failed program was:" >&5
40055 sed 's/^/| /' conftest.$ac_ext >&5
40056
40057         ac_cv_func_alloca_works=no
40058 fi
40059
40060 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40061       conftest$ac_exeext conftest.$ac_ext
40062 fi
40063 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
40064 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
40065
40066 if test $ac_cv_func_alloca_works = yes; then
40067
40068 cat >>confdefs.h <<\_ACEOF
40069 #define HAVE_ALLOCA 1
40070 _ACEOF
40071
40072 else
40073   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
40074 # that cause trouble.  Some versions do not even contain alloca or
40075 # contain a buggy version.  If you still want to use their alloca,
40076 # use ar to extract alloca.o from them instead of compiling alloca.c.
40077
40078 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
40079
40080 cat >>confdefs.h <<\_ACEOF
40081 #define C_ALLOCA 1
40082 _ACEOF
40083
40084
40085 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
40086 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
40087 if test "${ac_cv_os_cray+set}" = set; then
40088   echo $ECHO_N "(cached) $ECHO_C" >&6
40089 else
40090   cat >conftest.$ac_ext <<_ACEOF
40091 /* confdefs.h.  */
40092 _ACEOF
40093 cat confdefs.h >>conftest.$ac_ext
40094 cat >>conftest.$ac_ext <<_ACEOF
40095 /* end confdefs.h.  */
40096 #if defined CRAY && ! defined CRAY2
40097 webecray
40098 #else
40099 wenotbecray
40100 #endif
40101
40102 _ACEOF
40103 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40104   $EGREP "webecray" >/dev/null 2>&1; then
40105   ac_cv_os_cray=yes
40106 else
40107   ac_cv_os_cray=no
40108 fi
40109 rm -f conftest*
40110
40111 fi
40112 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
40113 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
40114 if test $ac_cv_os_cray = yes; then
40115   for ac_func in _getb67 GETB67 getb67; do
40116     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40117 { echo "$as_me:$LINENO: checking for $ac_func" >&5
40118 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
40119 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
40120   echo $ECHO_N "(cached) $ECHO_C" >&6
40121 else
40122   cat >conftest.$ac_ext <<_ACEOF
40123 /* confdefs.h.  */
40124 _ACEOF
40125 cat confdefs.h >>conftest.$ac_ext
40126 cat >>conftest.$ac_ext <<_ACEOF
40127 /* end confdefs.h.  */
40128 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40129    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40130 #define $ac_func innocuous_$ac_func
40131
40132 /* System header to define __stub macros and hopefully few prototypes,
40133     which can conflict with char $ac_func (); below.
40134     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40135     <limits.h> exists even on freestanding compilers.  */
40136
40137 #ifdef __STDC__
40138 # include <limits.h>
40139 #else
40140 # include <assert.h>
40141 #endif
40142
40143 #undef $ac_func
40144
40145 /* Override any GCC internal prototype to avoid an error.
40146    Use char because int might match the return type of a GCC
40147    builtin and then its argument prototype would still apply.  */
40148 #ifdef __cplusplus
40149 extern "C"
40150 #endif
40151 char $ac_func ();
40152 /* The GNU C library defines this for functions which it implements
40153     to always fail with ENOSYS.  Some functions are actually named
40154     something starting with __ and the normal name is an alias.  */
40155 #if defined __stub_$ac_func || defined __stub___$ac_func
40156 choke me
40157 #endif
40158
40159 int
40160 main ()
40161 {
40162 return $ac_func ();
40163   ;
40164   return 0;
40165 }
40166 _ACEOF
40167 rm -f conftest.$ac_objext conftest$ac_exeext
40168 if { (ac_try="$ac_link"
40169 case "(($ac_try" in
40170   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40171   *) ac_try_echo=$ac_try;;
40172 esac
40173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40174   (eval "$ac_link") 2>conftest.er1
40175   ac_status=$?
40176   grep -v '^ *+' conftest.er1 >conftest.err
40177   rm -f conftest.er1
40178   cat conftest.err >&5
40179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40180   (exit $ac_status); } && {
40181          test -z "$ac_cxx_werror_flag" ||
40182          test ! -s conftest.err
40183        } && test -s conftest$ac_exeext &&
40184        $as_test_x conftest$ac_exeext; then
40185   eval "$as_ac_var=yes"
40186 else
40187   echo "$as_me: failed program was:" >&5
40188 sed 's/^/| /' conftest.$ac_ext >&5
40189
40190         eval "$as_ac_var=no"
40191 fi
40192
40193 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40194       conftest$ac_exeext conftest.$ac_ext
40195 fi
40196 ac_res=`eval echo '${'$as_ac_var'}'`
40197                { echo "$as_me:$LINENO: result: $ac_res" >&5
40198 echo "${ECHO_T}$ac_res" >&6; }
40199 if test `eval echo '${'$as_ac_var'}'` = yes; then
40200
40201 cat >>confdefs.h <<_ACEOF
40202 #define CRAY_STACKSEG_END $ac_func
40203 _ACEOF
40204
40205     break
40206 fi
40207
40208   done
40209 fi
40210
40211 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
40212 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
40213 if test "${ac_cv_c_stack_direction+set}" = set; then
40214   echo $ECHO_N "(cached) $ECHO_C" >&6
40215 else
40216   if test "$cross_compiling" = yes; then
40217   ac_cv_c_stack_direction=0
40218 else
40219   cat >conftest.$ac_ext <<_ACEOF
40220 /* confdefs.h.  */
40221 _ACEOF
40222 cat confdefs.h >>conftest.$ac_ext
40223 cat >>conftest.$ac_ext <<_ACEOF
40224 /* end confdefs.h.  */
40225 $ac_includes_default
40226 int
40227 find_stack_direction ()
40228 {
40229   static char *addr = 0;
40230   auto char dummy;
40231   if (addr == 0)
40232     {
40233       addr = &dummy;
40234       return find_stack_direction ();
40235     }
40236   else
40237     return (&dummy > addr) ? 1 : -1;
40238 }
40239
40240 int
40241 main ()
40242 {
40243   return find_stack_direction () < 0;
40244 }
40245 _ACEOF
40246 rm -f conftest$ac_exeext
40247 if { (ac_try="$ac_link"
40248 case "(($ac_try" in
40249   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40250   *) ac_try_echo=$ac_try;;
40251 esac
40252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40253   (eval "$ac_link") 2>&5
40254   ac_status=$?
40255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40256   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
40257   { (case "(($ac_try" in
40258   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40259   *) ac_try_echo=$ac_try;;
40260 esac
40261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40262   (eval "$ac_try") 2>&5
40263   ac_status=$?
40264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40265   (exit $ac_status); }; }; then
40266   ac_cv_c_stack_direction=1
40267 else
40268   echo "$as_me: program exited with status $ac_status" >&5
40269 echo "$as_me: failed program was:" >&5
40270 sed 's/^/| /' conftest.$ac_ext >&5
40271
40272 ( exit $ac_status )
40273 ac_cv_c_stack_direction=-1
40274 fi
40275 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
40276 fi
40277
40278
40279 fi
40280 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
40281 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
40282
40283 cat >>confdefs.h <<_ACEOF
40284 #define STACK_DIRECTION $ac_cv_c_stack_direction
40285 _ACEOF
40286
40287
40288 fi
40289
40290 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
40291 # -lseq on Dynix/PTX, -lgen on Unixware.
40292 { echo "$as_me:$LINENO: checking for library containing getmntent" >&5
40293 echo $ECHO_N "checking for library containing getmntent... $ECHO_C" >&6; }
40294 if test "${ac_cv_search_getmntent+set}" = set; then
40295   echo $ECHO_N "(cached) $ECHO_C" >&6
40296 else
40297   ac_func_search_save_LIBS=$LIBS
40298 cat >conftest.$ac_ext <<_ACEOF
40299 /* confdefs.h.  */
40300 _ACEOF
40301 cat confdefs.h >>conftest.$ac_ext
40302 cat >>conftest.$ac_ext <<_ACEOF
40303 /* end confdefs.h.  */
40304
40305 /* Override any GCC internal prototype to avoid an error.
40306    Use char because int might match the return type of a GCC
40307    builtin and then its argument prototype would still apply.  */
40308 #ifdef __cplusplus
40309 extern "C"
40310 #endif
40311 char getmntent ();
40312 int
40313 main ()
40314 {
40315 return getmntent ();
40316   ;
40317   return 0;
40318 }
40319 _ACEOF
40320 for ac_lib in '' sun seq gen; do
40321   if test -z "$ac_lib"; then
40322     ac_res="none required"
40323   else
40324     ac_res=-l$ac_lib
40325     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
40326   fi
40327   rm -f conftest.$ac_objext conftest$ac_exeext
40328 if { (ac_try="$ac_link"
40329 case "(($ac_try" in
40330   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40331   *) ac_try_echo=$ac_try;;
40332 esac
40333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40334   (eval "$ac_link") 2>conftest.er1
40335   ac_status=$?
40336   grep -v '^ *+' conftest.er1 >conftest.err
40337   rm -f conftest.er1
40338   cat conftest.err >&5
40339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40340   (exit $ac_status); } && {
40341          test -z "$ac_cxx_werror_flag" ||
40342          test ! -s conftest.err
40343        } && test -s conftest$ac_exeext &&
40344        $as_test_x conftest$ac_exeext; then
40345   ac_cv_search_getmntent=$ac_res
40346 else
40347   echo "$as_me: failed program was:" >&5
40348 sed 's/^/| /' conftest.$ac_ext >&5
40349
40350
40351 fi
40352
40353 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40354       conftest$ac_exeext
40355   if test "${ac_cv_search_getmntent+set}" = set; then
40356   break
40357 fi
40358 done
40359 if test "${ac_cv_search_getmntent+set}" = set; then
40360   :
40361 else
40362   ac_cv_search_getmntent=no
40363 fi
40364 rm conftest.$ac_ext
40365 LIBS=$ac_func_search_save_LIBS
40366 fi
40367 { echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5
40368 echo "${ECHO_T}$ac_cv_search_getmntent" >&6; }
40369 ac_res=$ac_cv_search_getmntent
40370 if test "$ac_res" != no; then
40371   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
40372   ac_cv_func_getmntent=yes
40373
40374 cat >>confdefs.h <<\_ACEOF
40375 #define HAVE_GETMNTENT 1
40376 _ACEOF
40377
40378 else
40379   ac_cv_func_getmntent=no
40380 fi
40381
40382
40383 { echo "$as_me:$LINENO: checking whether closedir returns void" >&5
40384 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6; }
40385 if test "${ac_cv_func_closedir_void+set}" = set; then
40386   echo $ECHO_N "(cached) $ECHO_C" >&6
40387 else
40388   if test "$cross_compiling" = yes; then
40389   ac_cv_func_closedir_void=yes
40390 else
40391   cat >conftest.$ac_ext <<_ACEOF
40392 /* confdefs.h.  */
40393 _ACEOF
40394 cat confdefs.h >>conftest.$ac_ext
40395 cat >>conftest.$ac_ext <<_ACEOF
40396 /* end confdefs.h.  */
40397 $ac_includes_default
40398 #include <$ac_header_dirent>
40399 #ifndef __cplusplus
40400 int closedir ();
40401 #endif
40402
40403 int
40404 main ()
40405 {
40406 return closedir (opendir (".")) != 0;
40407   ;
40408   return 0;
40409 }
40410 _ACEOF
40411 rm -f conftest$ac_exeext
40412 if { (ac_try="$ac_link"
40413 case "(($ac_try" in
40414   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40415   *) ac_try_echo=$ac_try;;
40416 esac
40417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40418   (eval "$ac_link") 2>&5
40419   ac_status=$?
40420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40421   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
40422   { (case "(($ac_try" in
40423   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40424   *) ac_try_echo=$ac_try;;
40425 esac
40426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40427   (eval "$ac_try") 2>&5
40428   ac_status=$?
40429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40430   (exit $ac_status); }; }; then
40431   ac_cv_func_closedir_void=no
40432 else
40433   echo "$as_me: program exited with status $ac_status" >&5
40434 echo "$as_me: failed program was:" >&5
40435 sed 's/^/| /' conftest.$ac_ext >&5
40436
40437 ( exit $ac_status )
40438 ac_cv_func_closedir_void=yes
40439 fi
40440 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
40441 fi
40442
40443
40444 fi
40445 { echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
40446 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; }
40447 if test $ac_cv_func_closedir_void = yes; then
40448
40449 cat >>confdefs.h <<\_ACEOF
40450 #define CLOSEDIR_VOID 1
40451 _ACEOF
40452
40453 fi
40454
40455 { echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
40456 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6; }
40457 if test "${ac_cv_func_setpgrp_void+set}" = set; then
40458   echo $ECHO_N "(cached) $ECHO_C" >&6
40459 else
40460   if test "$cross_compiling" = yes; then
40461   { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
40462 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
40463    { (exit 1); exit 1; }; }
40464 else
40465   cat >conftest.$ac_ext <<_ACEOF
40466 /* confdefs.h.  */
40467 _ACEOF
40468 cat confdefs.h >>conftest.$ac_ext
40469 cat >>conftest.$ac_ext <<_ACEOF
40470 /* end confdefs.h.  */
40471 $ac_includes_default
40472 int
40473 main ()
40474 {
40475 /* If this system has a BSD-style setpgrp which takes arguments,
40476   setpgrp(1, 1) will fail with ESRCH and return -1, in that case
40477   exit successfully. */
40478   return setpgrp (1,1) != -1;
40479   ;
40480   return 0;
40481 }
40482 _ACEOF
40483 rm -f conftest$ac_exeext
40484 if { (ac_try="$ac_link"
40485 case "(($ac_try" in
40486   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40487   *) ac_try_echo=$ac_try;;
40488 esac
40489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40490   (eval "$ac_link") 2>&5
40491   ac_status=$?
40492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40493   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
40494   { (case "(($ac_try" in
40495   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40496   *) ac_try_echo=$ac_try;;
40497 esac
40498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40499   (eval "$ac_try") 2>&5
40500   ac_status=$?
40501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40502   (exit $ac_status); }; }; then
40503   ac_cv_func_setpgrp_void=no
40504 else
40505   echo "$as_me: program exited with status $ac_status" >&5
40506 echo "$as_me: failed program was:" >&5
40507 sed 's/^/| /' conftest.$ac_ext >&5
40508
40509 ( exit $ac_status )
40510 ac_cv_func_setpgrp_void=yes
40511 fi
40512 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
40513 fi
40514
40515
40516 fi
40517 { echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
40518 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6; }
40519 if test $ac_cv_func_setpgrp_void = yes; then
40520
40521 cat >>confdefs.h <<\_ACEOF
40522 #define SETPGRP_VOID 1
40523 _ACEOF
40524
40525 fi
40526             # AC_FUNC_FNMATCH    dnl use local version
40527
40528 { echo "$as_me:$LINENO: checking for gettext in -lintl" >&5
40529 echo $ECHO_N "checking for gettext in -lintl... $ECHO_C" >&6; }
40530 if test "${ac_cv_lib_intl_gettext+set}" = set; then
40531   echo $ECHO_N "(cached) $ECHO_C" >&6
40532 else
40533   ac_check_lib_save_LIBS=$LIBS
40534 LIBS="-lintl  $LIBS"
40535 cat >conftest.$ac_ext <<_ACEOF
40536 /* confdefs.h.  */
40537 _ACEOF
40538 cat confdefs.h >>conftest.$ac_ext
40539 cat >>conftest.$ac_ext <<_ACEOF
40540 /* end confdefs.h.  */
40541
40542 /* Override any GCC internal prototype to avoid an error.
40543    Use char because int might match the return type of a GCC
40544    builtin and then its argument prototype would still apply.  */
40545 #ifdef __cplusplus
40546 extern "C"
40547 #endif
40548 char gettext ();
40549 int
40550 main ()
40551 {
40552 return gettext ();
40553   ;
40554   return 0;
40555 }
40556 _ACEOF
40557 rm -f conftest.$ac_objext conftest$ac_exeext
40558 if { (ac_try="$ac_link"
40559 case "(($ac_try" in
40560   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40561   *) ac_try_echo=$ac_try;;
40562 esac
40563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40564   (eval "$ac_link") 2>conftest.er1
40565   ac_status=$?
40566   grep -v '^ *+' conftest.er1 >conftest.err
40567   rm -f conftest.er1
40568   cat conftest.err >&5
40569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40570   (exit $ac_status); } && {
40571          test -z "$ac_cxx_werror_flag" ||
40572          test ! -s conftest.err
40573        } && test -s conftest$ac_exeext &&
40574        $as_test_x conftest$ac_exeext; then
40575   ac_cv_lib_intl_gettext=yes
40576 else
40577   echo "$as_me: failed program was:" >&5
40578 sed 's/^/| /' conftest.$ac_ext >&5
40579
40580         ac_cv_lib_intl_gettext=no
40581 fi
40582
40583 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40584       conftest$ac_exeext conftest.$ac_ext
40585 LIBS=$ac_check_lib_save_LIBS
40586 fi
40587 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_gettext" >&5
40588 echo "${ECHO_T}$ac_cv_lib_intl_gettext" >&6; }
40589 if test $ac_cv_lib_intl_gettext = yes; then
40590   LIBS="$LIBS -lintl"
40591 fi
40592
40593
40594
40595 { echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
40596 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6; }
40597 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
40598   echo $ECHO_N "(cached) $ECHO_C" >&6
40599 else
40600   ac_check_lib_save_LIBS=$LIBS
40601 LIBS="-lsun  $LIBS"
40602 cat >conftest.$ac_ext <<_ACEOF
40603 /* confdefs.h.  */
40604 _ACEOF
40605 cat confdefs.h >>conftest.$ac_ext
40606 cat >>conftest.$ac_ext <<_ACEOF
40607 /* end confdefs.h.  */
40608
40609 /* Override any GCC internal prototype to avoid an error.
40610    Use char because int might match the return type of a GCC
40611    builtin and then its argument prototype would still apply.  */
40612 #ifdef __cplusplus
40613 extern "C"
40614 #endif
40615 char getpwnam ();
40616 int
40617 main ()
40618 {
40619 return getpwnam ();
40620   ;
40621   return 0;
40622 }
40623 _ACEOF
40624 rm -f conftest.$ac_objext conftest$ac_exeext
40625 if { (ac_try="$ac_link"
40626 case "(($ac_try" in
40627   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40628   *) ac_try_echo=$ac_try;;
40629 esac
40630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40631   (eval "$ac_link") 2>conftest.er1
40632   ac_status=$?
40633   grep -v '^ *+' conftest.er1 >conftest.err
40634   rm -f conftest.er1
40635   cat conftest.err >&5
40636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40637   (exit $ac_status); } && {
40638          test -z "$ac_cxx_werror_flag" ||
40639          test ! -s conftest.err
40640        } && test -s conftest$ac_exeext &&
40641        $as_test_x conftest$ac_exeext; then
40642   ac_cv_lib_sun_getpwnam=yes
40643 else
40644   echo "$as_me: failed program was:" >&5
40645 sed 's/^/| /' conftest.$ac_ext >&5
40646
40647         ac_cv_lib_sun_getpwnam=no
40648 fi
40649
40650 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40651       conftest$ac_exeext conftest.$ac_ext
40652 LIBS=$ac_check_lib_save_LIBS
40653 fi
40654 { echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
40655 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6; }
40656 if test $ac_cv_lib_sun_getpwnam = yes; then
40657   cat >>confdefs.h <<_ACEOF
40658 #define HAVE_LIBSUN 1
40659 _ACEOF
40660
40661   LIBS="-lsun $LIBS"
40662
40663 fi
40664
40665
40666
40667 for ac_header in zlib.h
40668 do
40669 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
40670 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40671   { echo "$as_me:$LINENO: checking for $ac_header" >&5
40672 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
40673 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40674   echo $ECHO_N "(cached) $ECHO_C" >&6
40675 fi
40676 ac_res=`eval echo '${'$as_ac_Header'}'`
40677                { echo "$as_me:$LINENO: result: $ac_res" >&5
40678 echo "${ECHO_T}$ac_res" >&6; }
40679 else
40680   # Is the header compilable?
40681 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
40682 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
40683 cat >conftest.$ac_ext <<_ACEOF
40684 /* confdefs.h.  */
40685 _ACEOF
40686 cat confdefs.h >>conftest.$ac_ext
40687 cat >>conftest.$ac_ext <<_ACEOF
40688 /* end confdefs.h.  */
40689 $ac_includes_default
40690 #include <$ac_header>
40691 _ACEOF
40692 rm -f conftest.$ac_objext
40693 if { (ac_try="$ac_compile"
40694 case "(($ac_try" in
40695   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40696   *) ac_try_echo=$ac_try;;
40697 esac
40698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40699   (eval "$ac_compile") 2>conftest.er1
40700   ac_status=$?
40701   grep -v '^ *+' conftest.er1 >conftest.err
40702   rm -f conftest.er1
40703   cat conftest.err >&5
40704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40705   (exit $ac_status); } && {
40706          test -z "$ac_cxx_werror_flag" ||
40707          test ! -s conftest.err
40708        } && test -s conftest.$ac_objext; then
40709   ac_header_compiler=yes
40710 else
40711   echo "$as_me: failed program was:" >&5
40712 sed 's/^/| /' conftest.$ac_ext >&5
40713
40714         ac_header_compiler=no
40715 fi
40716
40717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40718 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
40719 echo "${ECHO_T}$ac_header_compiler" >&6; }
40720
40721 # Is the header present?
40722 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
40723 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
40724 cat >conftest.$ac_ext <<_ACEOF
40725 /* confdefs.h.  */
40726 _ACEOF
40727 cat confdefs.h >>conftest.$ac_ext
40728 cat >>conftest.$ac_ext <<_ACEOF
40729 /* end confdefs.h.  */
40730 #include <$ac_header>
40731 _ACEOF
40732 if { (ac_try="$ac_cpp conftest.$ac_ext"
40733 case "(($ac_try" in
40734   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40735   *) ac_try_echo=$ac_try;;
40736 esac
40737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40738   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
40739   ac_status=$?
40740   grep -v '^ *+' conftest.er1 >conftest.err
40741   rm -f conftest.er1
40742   cat conftest.err >&5
40743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40744   (exit $ac_status); } >/dev/null && {
40745          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
40746          test ! -s conftest.err
40747        }; then
40748   ac_header_preproc=yes
40749 else
40750   echo "$as_me: failed program was:" >&5
40751 sed 's/^/| /' conftest.$ac_ext >&5
40752
40753   ac_header_preproc=no
40754 fi
40755
40756 rm -f conftest.err conftest.$ac_ext
40757 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
40758 echo "${ECHO_T}$ac_header_preproc" >&6; }
40759
40760 # So?  What about this header?
40761 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
40762   yes:no: )
40763     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
40764 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
40765     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
40766 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
40767     ac_header_preproc=yes
40768     ;;
40769   no:yes:* )
40770     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
40771 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
40772     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
40773 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
40774     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
40775 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
40776     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
40777 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
40778     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
40779 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
40780     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
40781 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
40782
40783     ;;
40784 esac
40785 { echo "$as_me:$LINENO: checking for $ac_header" >&5
40786 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
40787 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40788   echo $ECHO_N "(cached) $ECHO_C" >&6
40789 else
40790   eval "$as_ac_Header=\$ac_header_preproc"
40791 fi
40792 ac_res=`eval echo '${'$as_ac_Header'}'`
40793                { echo "$as_me:$LINENO: result: $ac_res" >&5
40794 echo "${ECHO_T}$ac_res" >&6; }
40795
40796 fi
40797 if test `eval echo '${'$as_ac_Header'}'` = yes; then
40798   cat >>confdefs.h <<_ACEOF
40799 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
40800 _ACEOF
40801
40802 fi
40803
40804 done
40805
40806 { echo "$as_me:$LINENO: checking for deflate in -lz" >&5
40807 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6; }
40808 if test "${ac_cv_lib_z_deflate+set}" = set; then
40809   echo $ECHO_N "(cached) $ECHO_C" >&6
40810 else
40811   ac_check_lib_save_LIBS=$LIBS
40812 LIBS="-lz  $LIBS"
40813 cat >conftest.$ac_ext <<_ACEOF
40814 /* confdefs.h.  */
40815 _ACEOF
40816 cat confdefs.h >>conftest.$ac_ext
40817 cat >>conftest.$ac_ext <<_ACEOF
40818 /* end confdefs.h.  */
40819
40820 /* Override any GCC internal prototype to avoid an error.
40821    Use char because int might match the return type of a GCC
40822    builtin and then its argument prototype would still apply.  */
40823 #ifdef __cplusplus
40824 extern "C"
40825 #endif
40826 char deflate ();
40827 int
40828 main ()
40829 {
40830 return deflate ();
40831   ;
40832   return 0;
40833 }
40834 _ACEOF
40835 rm -f conftest.$ac_objext conftest$ac_exeext
40836 if { (ac_try="$ac_link"
40837 case "(($ac_try" in
40838   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40839   *) ac_try_echo=$ac_try;;
40840 esac
40841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40842   (eval "$ac_link") 2>conftest.er1
40843   ac_status=$?
40844   grep -v '^ *+' conftest.er1 >conftest.err
40845   rm -f conftest.er1
40846   cat conftest.err >&5
40847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40848   (exit $ac_status); } && {
40849          test -z "$ac_cxx_werror_flag" ||
40850          test ! -s conftest.err
40851        } && test -s conftest$ac_exeext &&
40852        $as_test_x conftest$ac_exeext; then
40853   ac_cv_lib_z_deflate=yes
40854 else
40855   echo "$as_me: failed program was:" >&5
40856 sed 's/^/| /' conftest.$ac_ext >&5
40857
40858         ac_cv_lib_z_deflate=no
40859 fi
40860
40861 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40862       conftest$ac_exeext conftest.$ac_ext
40863 LIBS=$ac_check_lib_save_LIBS
40864 fi
40865 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
40866 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6; }
40867 if test $ac_cv_lib_z_deflate = yes; then
40868   FDLIBS="-lz"
40869 fi
40870
40871 have_zlib=no
40872 if test x$FDLIBS = x-lz; then
40873    cat >>confdefs.h <<\_ACEOF
40874 #define HAVE_LIBZ 1
40875 _ACEOF
40876
40877    have_zlib=yes
40878 fi
40879
40880 support_acl=auto
40881 # Check whether --enable-acl was given.
40882 if test "${enable_acl+set}" = set; then
40883   enableval=$enable_acl;
40884        if test x$enableval = xyes; then
40885           support_acl=yes
40886        elif test x$enableval = xno; then
40887           support_acl=no
40888        fi
40889
40890
40891 fi
40892
40893
40894 have_acl=no
40895 have_extended_acl=no
40896 if test x$support_acl = xyes -o x$support_acl = xauto; then
40897    if test "${ac_cv_header_sys_acl_h+set}" = set; then
40898   { echo "$as_me:$LINENO: checking for sys/acl.h" >&5
40899 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6; }
40900 if test "${ac_cv_header_sys_acl_h+set}" = set; then
40901   echo $ECHO_N "(cached) $ECHO_C" >&6
40902 fi
40903 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
40904 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6; }
40905 else
40906   # Is the header compilable?
40907 { echo "$as_me:$LINENO: checking sys/acl.h usability" >&5
40908 echo $ECHO_N "checking sys/acl.h usability... $ECHO_C" >&6; }
40909 cat >conftest.$ac_ext <<_ACEOF
40910 /* confdefs.h.  */
40911 _ACEOF
40912 cat confdefs.h >>conftest.$ac_ext
40913 cat >>conftest.$ac_ext <<_ACEOF
40914 /* end confdefs.h.  */
40915 $ac_includes_default
40916 #include <sys/acl.h>
40917 _ACEOF
40918 rm -f conftest.$ac_objext
40919 if { (ac_try="$ac_compile"
40920 case "(($ac_try" in
40921   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40922   *) ac_try_echo=$ac_try;;
40923 esac
40924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40925   (eval "$ac_compile") 2>conftest.er1
40926   ac_status=$?
40927   grep -v '^ *+' conftest.er1 >conftest.err
40928   rm -f conftest.er1
40929   cat conftest.err >&5
40930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40931   (exit $ac_status); } && {
40932          test -z "$ac_cxx_werror_flag" ||
40933          test ! -s conftest.err
40934        } && test -s conftest.$ac_objext; then
40935   ac_header_compiler=yes
40936 else
40937   echo "$as_me: failed program was:" >&5
40938 sed 's/^/| /' conftest.$ac_ext >&5
40939
40940         ac_header_compiler=no
40941 fi
40942
40943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40944 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
40945 echo "${ECHO_T}$ac_header_compiler" >&6; }
40946
40947 # Is the header present?
40948 { echo "$as_me:$LINENO: checking sys/acl.h presence" >&5
40949 echo $ECHO_N "checking sys/acl.h presence... $ECHO_C" >&6; }
40950 cat >conftest.$ac_ext <<_ACEOF
40951 /* confdefs.h.  */
40952 _ACEOF
40953 cat confdefs.h >>conftest.$ac_ext
40954 cat >>conftest.$ac_ext <<_ACEOF
40955 /* end confdefs.h.  */
40956 #include <sys/acl.h>
40957 _ACEOF
40958 if { (ac_try="$ac_cpp conftest.$ac_ext"
40959 case "(($ac_try" in
40960   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40961   *) ac_try_echo=$ac_try;;
40962 esac
40963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40964   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
40965   ac_status=$?
40966   grep -v '^ *+' conftest.er1 >conftest.err
40967   rm -f conftest.er1
40968   cat conftest.err >&5
40969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40970   (exit $ac_status); } >/dev/null && {
40971          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
40972          test ! -s conftest.err
40973        }; then
40974   ac_header_preproc=yes
40975 else
40976   echo "$as_me: failed program was:" >&5
40977 sed 's/^/| /' conftest.$ac_ext >&5
40978
40979   ac_header_preproc=no
40980 fi
40981
40982 rm -f conftest.err conftest.$ac_ext
40983 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
40984 echo "${ECHO_T}$ac_header_preproc" >&6; }
40985
40986 # So?  What about this header?
40987 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
40988   yes:no: )
40989     { echo "$as_me:$LINENO: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&5
40990 echo "$as_me: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
40991     { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the compiler's result" >&5
40992 echo "$as_me: WARNING: sys/acl.h: proceeding with the compiler's result" >&2;}
40993     ac_header_preproc=yes
40994     ;;
40995   no:yes:* )
40996     { echo "$as_me:$LINENO: WARNING: sys/acl.h: present but cannot be compiled" >&5
40997 echo "$as_me: WARNING: sys/acl.h: present but cannot be compiled" >&2;}
40998     { echo "$as_me:$LINENO: WARNING: sys/acl.h:     check for missing prerequisite headers?" >&5
40999 echo "$as_me: WARNING: sys/acl.h:     check for missing prerequisite headers?" >&2;}
41000     { echo "$as_me:$LINENO: WARNING: sys/acl.h: see the Autoconf documentation" >&5
41001 echo "$as_me: WARNING: sys/acl.h: see the Autoconf documentation" >&2;}
41002     { echo "$as_me:$LINENO: WARNING: sys/acl.h:     section \"Present But Cannot Be Compiled\"" >&5
41003 echo "$as_me: WARNING: sys/acl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
41004     { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
41005 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
41006     { echo "$as_me:$LINENO: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&5
41007 echo "$as_me: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&2;}
41008
41009     ;;
41010 esac
41011 { echo "$as_me:$LINENO: checking for sys/acl.h" >&5
41012 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6; }
41013 if test "${ac_cv_header_sys_acl_h+set}" = set; then
41014   echo $ECHO_N "(cached) $ECHO_C" >&6
41015 else
41016   ac_cv_header_sys_acl_h=$ac_header_preproc
41017 fi
41018 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
41019 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6; }
41020
41021 fi
41022 if test $ac_cv_header_sys_acl_h = yes; then
41023
41024 cat >>confdefs.h <<\_ACEOF
41025 #define HAVE_SYS_ACL_H 1
41026 _ACEOF
41027
41028 fi
41029
41030
41031    { echo "$as_me:$LINENO: checking for acl_get_file" >&5
41032 echo $ECHO_N "checking for acl_get_file... $ECHO_C" >&6; }
41033 if test "${ac_cv_func_acl_get_file+set}" = set; then
41034   echo $ECHO_N "(cached) $ECHO_C" >&6
41035 else
41036   cat >conftest.$ac_ext <<_ACEOF
41037 /* confdefs.h.  */
41038 _ACEOF
41039 cat confdefs.h >>conftest.$ac_ext
41040 cat >>conftest.$ac_ext <<_ACEOF
41041 /* end confdefs.h.  */
41042 /* Define acl_get_file to an innocuous variant, in case <limits.h> declares acl_get_file.
41043    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41044 #define acl_get_file innocuous_acl_get_file
41045
41046 /* System header to define __stub macros and hopefully few prototypes,
41047     which can conflict with char acl_get_file (); below.
41048     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41049     <limits.h> exists even on freestanding compilers.  */
41050
41051 #ifdef __STDC__
41052 # include <limits.h>
41053 #else
41054 # include <assert.h>
41055 #endif
41056
41057 #undef acl_get_file
41058
41059 /* Override any GCC internal prototype to avoid an error.
41060    Use char because int might match the return type of a GCC
41061    builtin and then its argument prototype would still apply.  */
41062 #ifdef __cplusplus
41063 extern "C"
41064 #endif
41065 char acl_get_file ();
41066 /* The GNU C library defines this for functions which it implements
41067     to always fail with ENOSYS.  Some functions are actually named
41068     something starting with __ and the normal name is an alias.  */
41069 #if defined __stub_acl_get_file || defined __stub___acl_get_file
41070 choke me
41071 #endif
41072
41073 int
41074 main ()
41075 {
41076 return acl_get_file ();
41077   ;
41078   return 0;
41079 }
41080 _ACEOF
41081 rm -f conftest.$ac_objext conftest$ac_exeext
41082 if { (ac_try="$ac_link"
41083 case "(($ac_try" in
41084   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41085   *) ac_try_echo=$ac_try;;
41086 esac
41087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41088   (eval "$ac_link") 2>conftest.er1
41089   ac_status=$?
41090   grep -v '^ *+' conftest.er1 >conftest.err
41091   rm -f conftest.er1
41092   cat conftest.err >&5
41093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41094   (exit $ac_status); } && {
41095          test -z "$ac_cxx_werror_flag" ||
41096          test ! -s conftest.err
41097        } && test -s conftest$ac_exeext &&
41098        $as_test_x conftest$ac_exeext; then
41099   ac_cv_func_acl_get_file=yes
41100 else
41101   echo "$as_me: failed program was:" >&5
41102 sed 's/^/| /' conftest.$ac_ext >&5
41103
41104         ac_cv_func_acl_get_file=no
41105 fi
41106
41107 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41108       conftest$ac_exeext conftest.$ac_ext
41109 fi
41110 { echo "$as_me:$LINENO: result: $ac_cv_func_acl_get_file" >&5
41111 echo "${ECHO_T}$ac_cv_func_acl_get_file" >&6; }
41112 if test $ac_cv_func_acl_get_file = yes; then
41113
41114           have_acl=yes
41115
41116 else
41117
41118           { echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
41119 echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6; }
41120 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
41121   echo $ECHO_N "(cached) $ECHO_C" >&6
41122 else
41123   ac_check_lib_save_LIBS=$LIBS
41124 LIBS="-lacl  $LIBS"
41125 cat >conftest.$ac_ext <<_ACEOF
41126 /* confdefs.h.  */
41127 _ACEOF
41128 cat confdefs.h >>conftest.$ac_ext
41129 cat >>conftest.$ac_ext <<_ACEOF
41130 /* end confdefs.h.  */
41131
41132 /* Override any GCC internal prototype to avoid an error.
41133    Use char because int might match the return type of a GCC
41134    builtin and then its argument prototype would still apply.  */
41135 #ifdef __cplusplus
41136 extern "C"
41137 #endif
41138 char acl_get_file ();
41139 int
41140 main ()
41141 {
41142 return acl_get_file ();
41143   ;
41144   return 0;
41145 }
41146 _ACEOF
41147 rm -f conftest.$ac_objext conftest$ac_exeext
41148 if { (ac_try="$ac_link"
41149 case "(($ac_try" in
41150   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41151   *) ac_try_echo=$ac_try;;
41152 esac
41153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41154   (eval "$ac_link") 2>conftest.er1
41155   ac_status=$?
41156   grep -v '^ *+' conftest.er1 >conftest.err
41157   rm -f conftest.er1
41158   cat conftest.err >&5
41159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41160   (exit $ac_status); } && {
41161          test -z "$ac_cxx_werror_flag" ||
41162          test ! -s conftest.err
41163        } && test -s conftest$ac_exeext &&
41164        $as_test_x conftest$ac_exeext; then
41165   ac_cv_lib_acl_acl_get_file=yes
41166 else
41167   echo "$as_me: failed program was:" >&5
41168 sed 's/^/| /' conftest.$ac_ext >&5
41169
41170         ac_cv_lib_acl_acl_get_file=no
41171 fi
41172
41173 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41174       conftest$ac_exeext conftest.$ac_ext
41175 LIBS=$ac_check_lib_save_LIBS
41176 fi
41177 { echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
41178 echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6; }
41179 if test $ac_cv_lib_acl_acl_get_file = yes; then
41180
41181                  have_acl=yes;
41182                  FDLIBS="-lacl $FDLIBS"
41183
41184 else
41185
41186                  { echo "$as_me:$LINENO: checking for acl_get_file in -lpacl" >&5
41187 echo $ECHO_N "checking for acl_get_file in -lpacl... $ECHO_C" >&6; }
41188 if test "${ac_cv_lib_pacl_acl_get_file+set}" = set; then
41189   echo $ECHO_N "(cached) $ECHO_C" >&6
41190 else
41191   ac_check_lib_save_LIBS=$LIBS
41192 LIBS="-lpacl  $LIBS"
41193 cat >conftest.$ac_ext <<_ACEOF
41194 /* confdefs.h.  */
41195 _ACEOF
41196 cat confdefs.h >>conftest.$ac_ext
41197 cat >>conftest.$ac_ext <<_ACEOF
41198 /* end confdefs.h.  */
41199
41200 /* Override any GCC internal prototype to avoid an error.
41201    Use char because int might match the return type of a GCC
41202    builtin and then its argument prototype would still apply.  */
41203 #ifdef __cplusplus
41204 extern "C"
41205 #endif
41206 char acl_get_file ();
41207 int
41208 main ()
41209 {
41210 return acl_get_file ();
41211   ;
41212   return 0;
41213 }
41214 _ACEOF
41215 rm -f conftest.$ac_objext conftest$ac_exeext
41216 if { (ac_try="$ac_link"
41217 case "(($ac_try" in
41218   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41219   *) ac_try_echo=$ac_try;;
41220 esac
41221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41222   (eval "$ac_link") 2>conftest.er1
41223   ac_status=$?
41224   grep -v '^ *+' conftest.er1 >conftest.err
41225   rm -f conftest.er1
41226   cat conftest.err >&5
41227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41228   (exit $ac_status); } && {
41229          test -z "$ac_cxx_werror_flag" ||
41230          test ! -s conftest.err
41231        } && test -s conftest$ac_exeext &&
41232        $as_test_x conftest$ac_exeext; then
41233   ac_cv_lib_pacl_acl_get_file=yes
41234 else
41235   echo "$as_me: failed program was:" >&5
41236 sed 's/^/| /' conftest.$ac_ext >&5
41237
41238         ac_cv_lib_pacl_acl_get_file=no
41239 fi
41240
41241 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41242       conftest$ac_exeext conftest.$ac_ext
41243 LIBS=$ac_check_lib_save_LIBS
41244 fi
41245 { echo "$as_me:$LINENO: result: $ac_cv_lib_pacl_acl_get_file" >&5
41246 echo "${ECHO_T}$ac_cv_lib_pacl_acl_get_file" >&6; }
41247 if test $ac_cv_lib_pacl_acl_get_file = yes; then
41248
41249                         have_acl=yes;
41250                         FDLIBS="-lpacl $FDLIBS"
41251
41252 else
41253
41254                         { echo "$as_me:$LINENO: checking for acltotext in -lsec" >&5
41255 echo $ECHO_N "checking for acltotext in -lsec... $ECHO_C" >&6; }
41256 if test "${ac_cv_lib_sec_acltotext+set}" = set; then
41257   echo $ECHO_N "(cached) $ECHO_C" >&6
41258 else
41259   ac_check_lib_save_LIBS=$LIBS
41260 LIBS="-lsec  $LIBS"
41261 cat >conftest.$ac_ext <<_ACEOF
41262 /* confdefs.h.  */
41263 _ACEOF
41264 cat confdefs.h >>conftest.$ac_ext
41265 cat >>conftest.$ac_ext <<_ACEOF
41266 /* end confdefs.h.  */
41267
41268 /* Override any GCC internal prototype to avoid an error.
41269    Use char because int might match the return type of a GCC
41270    builtin and then its argument prototype would still apply.  */
41271 #ifdef __cplusplus
41272 extern "C"
41273 #endif
41274 char acltotext ();
41275 int
41276 main ()
41277 {
41278 return acltotext ();
41279   ;
41280   return 0;
41281 }
41282 _ACEOF
41283 rm -f conftest.$ac_objext conftest$ac_exeext
41284 if { (ac_try="$ac_link"
41285 case "(($ac_try" in
41286   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41287   *) ac_try_echo=$ac_try;;
41288 esac
41289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41290   (eval "$ac_link") 2>conftest.er1
41291   ac_status=$?
41292   grep -v '^ *+' conftest.er1 >conftest.err
41293   rm -f conftest.er1
41294   cat conftest.err >&5
41295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41296   (exit $ac_status); } && {
41297          test -z "$ac_cxx_werror_flag" ||
41298          test ! -s conftest.err
41299        } && test -s conftest$ac_exeext &&
41300        $as_test_x conftest$ac_exeext; then
41301   ac_cv_lib_sec_acltotext=yes
41302 else
41303   echo "$as_me: failed program was:" >&5
41304 sed 's/^/| /' conftest.$ac_ext >&5
41305
41306         ac_cv_lib_sec_acltotext=no
41307 fi
41308
41309 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41310       conftest$ac_exeext conftest.$ac_ext
41311 LIBS=$ac_check_lib_save_LIBS
41312 fi
41313 { echo "$as_me:$LINENO: result: $ac_cv_lib_sec_acltotext" >&5
41314 echo "${ECHO_T}$ac_cv_lib_sec_acltotext" >&6; }
41315 if test $ac_cv_lib_sec_acltotext = yes; then
41316
41317                                have_acl=yes;
41318                                FDLIBS="-lsec $FDLIBS"
41319
41320                                { echo "$as_me:$LINENO: checking for acl_totext in -lsec" >&5
41321 echo $ECHO_N "checking for acl_totext in -lsec... $ECHO_C" >&6; }
41322 if test "${ac_cv_lib_sec_acl_totext+set}" = set; then
41323   echo $ECHO_N "(cached) $ECHO_C" >&6
41324 else
41325   ac_check_lib_save_LIBS=$LIBS
41326 LIBS="-lsec  $LIBS"
41327 cat >conftest.$ac_ext <<_ACEOF
41328 /* confdefs.h.  */
41329 _ACEOF
41330 cat confdefs.h >>conftest.$ac_ext
41331 cat >>conftest.$ac_ext <<_ACEOF
41332 /* end confdefs.h.  */
41333
41334 /* Override any GCC internal prototype to avoid an error.
41335    Use char because int might match the return type of a GCC
41336    builtin and then its argument prototype would still apply.  */
41337 #ifdef __cplusplus
41338 extern "C"
41339 #endif
41340 char acl_totext ();
41341 int
41342 main ()
41343 {
41344 return acl_totext ();
41345   ;
41346   return 0;
41347 }
41348 _ACEOF
41349 rm -f conftest.$ac_objext conftest$ac_exeext
41350 if { (ac_try="$ac_link"
41351 case "(($ac_try" in
41352   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41353   *) ac_try_echo=$ac_try;;
41354 esac
41355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41356   (eval "$ac_link") 2>conftest.er1
41357   ac_status=$?
41358   grep -v '^ *+' conftest.er1 >conftest.err
41359   rm -f conftest.er1
41360   cat conftest.err >&5
41361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41362   (exit $ac_status); } && {
41363          test -z "$ac_cxx_werror_flag" ||
41364          test ! -s conftest.err
41365        } && test -s conftest$ac_exeext &&
41366        $as_test_x conftest$ac_exeext; then
41367   ac_cv_lib_sec_acl_totext=yes
41368 else
41369   echo "$as_me: failed program was:" >&5
41370 sed 's/^/| /' conftest.$ac_ext >&5
41371
41372         ac_cv_lib_sec_acl_totext=no
41373 fi
41374
41375 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41376       conftest$ac_exeext conftest.$ac_ext
41377 LIBS=$ac_check_lib_save_LIBS
41378 fi
41379 { echo "$as_me:$LINENO: result: $ac_cv_lib_sec_acl_totext" >&5
41380 echo "${ECHO_T}$ac_cv_lib_sec_acl_totext" >&6; }
41381 if test $ac_cv_lib_sec_acl_totext = yes; then
41382
41383                                       have_extended_acl=yes
41384
41385
41386 fi
41387
41388
41389
41390 fi
41391
41392
41393
41394 fi
41395
41396
41397
41398 fi
41399
41400
41401
41402 fi
41403
41404
41405    if test x$support_acl = xyes -a $have_acl != yes; then
41406       { { echo "$as_me:$LINENO: error: acl support explicitly enabled but no supported acl implementation found,
41407   please either load the acl libraries or rerun configure without --enable-acl" >&5
41408 echo "$as_me: error: acl support explicitly enabled but no supported acl implementation found,
41409   please either load the acl libraries or rerun configure without --enable-acl" >&2;}
41410    { (exit 1); exit 1; }; }
41411    else
41412       if test $have_acl = yes; then
41413
41414 cat >>confdefs.h <<\_ACEOF
41415 #define HAVE_ACL 1
41416 _ACEOF
41417
41418       fi
41419
41420       if test $have_extended_acl = yes; then
41421
41422 cat >>confdefs.h <<\_ACEOF
41423 #define HAVE_EXTENDED_ACL 1
41424 _ACEOF
41425
41426       fi
41427    fi
41428 fi
41429
41430 support_xattr=auto
41431 # Check whether --enable-xattr was given.
41432 if test "${enable_xattr+set}" = set; then
41433   enableval=$enable_xattr;
41434        if test x$enableval = xyes; then
41435           support_xattr=yes
41436        elif test x$enableval = xno; then
41437           support_xattr=no
41438        fi
41439
41440
41441 fi
41442
41443
41444 have_xattr=no
41445 if test x$support_xattr = xyes -o x$support_xattr = xauto; then
41446             if test "${ac_cv_header_sys_extattr_h+set}" = set; then
41447   { echo "$as_me:$LINENO: checking for sys/extattr.h" >&5
41448 echo $ECHO_N "checking for sys/extattr.h... $ECHO_C" >&6; }
41449 if test "${ac_cv_header_sys_extattr_h+set}" = set; then
41450   echo $ECHO_N "(cached) $ECHO_C" >&6
41451 fi
41452 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_extattr_h" >&5
41453 echo "${ECHO_T}$ac_cv_header_sys_extattr_h" >&6; }
41454 else
41455   # Is the header compilable?
41456 { echo "$as_me:$LINENO: checking sys/extattr.h usability" >&5
41457 echo $ECHO_N "checking sys/extattr.h usability... $ECHO_C" >&6; }
41458 cat >conftest.$ac_ext <<_ACEOF
41459 /* confdefs.h.  */
41460 _ACEOF
41461 cat confdefs.h >>conftest.$ac_ext
41462 cat >>conftest.$ac_ext <<_ACEOF
41463 /* end confdefs.h.  */
41464 $ac_includes_default
41465 #include <sys/extattr.h>
41466 _ACEOF
41467 rm -f conftest.$ac_objext
41468 if { (ac_try="$ac_compile"
41469 case "(($ac_try" in
41470   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41471   *) ac_try_echo=$ac_try;;
41472 esac
41473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41474   (eval "$ac_compile") 2>conftest.er1
41475   ac_status=$?
41476   grep -v '^ *+' conftest.er1 >conftest.err
41477   rm -f conftest.er1
41478   cat conftest.err >&5
41479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41480   (exit $ac_status); } && {
41481          test -z "$ac_cxx_werror_flag" ||
41482          test ! -s conftest.err
41483        } && test -s conftest.$ac_objext; then
41484   ac_header_compiler=yes
41485 else
41486   echo "$as_me: failed program was:" >&5
41487 sed 's/^/| /' conftest.$ac_ext >&5
41488
41489         ac_header_compiler=no
41490 fi
41491
41492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41493 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
41494 echo "${ECHO_T}$ac_header_compiler" >&6; }
41495
41496 # Is the header present?
41497 { echo "$as_me:$LINENO: checking sys/extattr.h presence" >&5
41498 echo $ECHO_N "checking sys/extattr.h presence... $ECHO_C" >&6; }
41499 cat >conftest.$ac_ext <<_ACEOF
41500 /* confdefs.h.  */
41501 _ACEOF
41502 cat confdefs.h >>conftest.$ac_ext
41503 cat >>conftest.$ac_ext <<_ACEOF
41504 /* end confdefs.h.  */
41505 #include <sys/extattr.h>
41506 _ACEOF
41507 if { (ac_try="$ac_cpp conftest.$ac_ext"
41508 case "(($ac_try" in
41509   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41510   *) ac_try_echo=$ac_try;;
41511 esac
41512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41513   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
41514   ac_status=$?
41515   grep -v '^ *+' conftest.er1 >conftest.err
41516   rm -f conftest.er1
41517   cat conftest.err >&5
41518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41519   (exit $ac_status); } >/dev/null && {
41520          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
41521          test ! -s conftest.err
41522        }; then
41523   ac_header_preproc=yes
41524 else
41525   echo "$as_me: failed program was:" >&5
41526 sed 's/^/| /' conftest.$ac_ext >&5
41527
41528   ac_header_preproc=no
41529 fi
41530
41531 rm -f conftest.err conftest.$ac_ext
41532 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
41533 echo "${ECHO_T}$ac_header_preproc" >&6; }
41534
41535 # So?  What about this header?
41536 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
41537   yes:no: )
41538     { echo "$as_me:$LINENO: WARNING: sys/extattr.h: accepted by the compiler, rejected by the preprocessor!" >&5
41539 echo "$as_me: WARNING: sys/extattr.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
41540     { echo "$as_me:$LINENO: WARNING: sys/extattr.h: proceeding with the compiler's result" >&5
41541 echo "$as_me: WARNING: sys/extattr.h: proceeding with the compiler's result" >&2;}
41542     ac_header_preproc=yes
41543     ;;
41544   no:yes:* )
41545     { echo "$as_me:$LINENO: WARNING: sys/extattr.h: present but cannot be compiled" >&5
41546 echo "$as_me: WARNING: sys/extattr.h: present but cannot be compiled" >&2;}
41547     { echo "$as_me:$LINENO: WARNING: sys/extattr.h:     check for missing prerequisite headers?" >&5
41548 echo "$as_me: WARNING: sys/extattr.h:     check for missing prerequisite headers?" >&2;}
41549     { echo "$as_me:$LINENO: WARNING: sys/extattr.h: see the Autoconf documentation" >&5
41550 echo "$as_me: WARNING: sys/extattr.h: see the Autoconf documentation" >&2;}
41551     { echo "$as_me:$LINENO: WARNING: sys/extattr.h:     section \"Present But Cannot Be Compiled\"" >&5
41552 echo "$as_me: WARNING: sys/extattr.h:     section \"Present But Cannot Be Compiled\"" >&2;}
41553     { echo "$as_me:$LINENO: WARNING: sys/extattr.h: proceeding with the preprocessor's result" >&5
41554 echo "$as_me: WARNING: sys/extattr.h: proceeding with the preprocessor's result" >&2;}
41555     { echo "$as_me:$LINENO: WARNING: sys/extattr.h: in the future, the compiler will take precedence" >&5
41556 echo "$as_me: WARNING: sys/extattr.h: in the future, the compiler will take precedence" >&2;}
41557
41558     ;;
41559 esac
41560 { echo "$as_me:$LINENO: checking for sys/extattr.h" >&5
41561 echo $ECHO_N "checking for sys/extattr.h... $ECHO_C" >&6; }
41562 if test "${ac_cv_header_sys_extattr_h+set}" = set; then
41563   echo $ECHO_N "(cached) $ECHO_C" >&6
41564 else
41565   ac_cv_header_sys_extattr_h=$ac_header_preproc
41566 fi
41567 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_extattr_h" >&5
41568 echo "${ECHO_T}$ac_cv_header_sys_extattr_h" >&6; }
41569
41570 fi
41571 if test $ac_cv_header_sys_extattr_h = yes; then
41572
41573 cat >>confdefs.h <<\_ACEOF
41574 #define HAVE_SYS_EXTATTR_H 1
41575 _ACEOF
41576
41577 fi
41578
41579
41580    if test "${ac_cv_header_libutil_h+set}" = set; then
41581   { echo "$as_me:$LINENO: checking for libutil.h" >&5
41582 echo $ECHO_N "checking for libutil.h... $ECHO_C" >&6; }
41583 if test "${ac_cv_header_libutil_h+set}" = set; then
41584   echo $ECHO_N "(cached) $ECHO_C" >&6
41585 fi
41586 { echo "$as_me:$LINENO: result: $ac_cv_header_libutil_h" >&5
41587 echo "${ECHO_T}$ac_cv_header_libutil_h" >&6; }
41588 else
41589   # Is the header compilable?
41590 { echo "$as_me:$LINENO: checking libutil.h usability" >&5
41591 echo $ECHO_N "checking libutil.h usability... $ECHO_C" >&6; }
41592 cat >conftest.$ac_ext <<_ACEOF
41593 /* confdefs.h.  */
41594 _ACEOF
41595 cat confdefs.h >>conftest.$ac_ext
41596 cat >>conftest.$ac_ext <<_ACEOF
41597 /* end confdefs.h.  */
41598 $ac_includes_default
41599 #include <libutil.h>
41600 _ACEOF
41601 rm -f conftest.$ac_objext
41602 if { (ac_try="$ac_compile"
41603 case "(($ac_try" in
41604   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41605   *) ac_try_echo=$ac_try;;
41606 esac
41607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41608   (eval "$ac_compile") 2>conftest.er1
41609   ac_status=$?
41610   grep -v '^ *+' conftest.er1 >conftest.err
41611   rm -f conftest.er1
41612   cat conftest.err >&5
41613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41614   (exit $ac_status); } && {
41615          test -z "$ac_cxx_werror_flag" ||
41616          test ! -s conftest.err
41617        } && test -s conftest.$ac_objext; then
41618   ac_header_compiler=yes
41619 else
41620   echo "$as_me: failed program was:" >&5
41621 sed 's/^/| /' conftest.$ac_ext >&5
41622
41623         ac_header_compiler=no
41624 fi
41625
41626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41627 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
41628 echo "${ECHO_T}$ac_header_compiler" >&6; }
41629
41630 # Is the header present?
41631 { echo "$as_me:$LINENO: checking libutil.h presence" >&5
41632 echo $ECHO_N "checking libutil.h presence... $ECHO_C" >&6; }
41633 cat >conftest.$ac_ext <<_ACEOF
41634 /* confdefs.h.  */
41635 _ACEOF
41636 cat confdefs.h >>conftest.$ac_ext
41637 cat >>conftest.$ac_ext <<_ACEOF
41638 /* end confdefs.h.  */
41639 #include <libutil.h>
41640 _ACEOF
41641 if { (ac_try="$ac_cpp conftest.$ac_ext"
41642 case "(($ac_try" in
41643   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41644   *) ac_try_echo=$ac_try;;
41645 esac
41646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41647   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
41648   ac_status=$?
41649   grep -v '^ *+' conftest.er1 >conftest.err
41650   rm -f conftest.er1
41651   cat conftest.err >&5
41652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41653   (exit $ac_status); } >/dev/null && {
41654          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
41655          test ! -s conftest.err
41656        }; then
41657   ac_header_preproc=yes
41658 else
41659   echo "$as_me: failed program was:" >&5
41660 sed 's/^/| /' conftest.$ac_ext >&5
41661
41662   ac_header_preproc=no
41663 fi
41664
41665 rm -f conftest.err conftest.$ac_ext
41666 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
41667 echo "${ECHO_T}$ac_header_preproc" >&6; }
41668
41669 # So?  What about this header?
41670 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
41671   yes:no: )
41672     { echo "$as_me:$LINENO: WARNING: libutil.h: accepted by the compiler, rejected by the preprocessor!" >&5
41673 echo "$as_me: WARNING: libutil.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
41674     { echo "$as_me:$LINENO: WARNING: libutil.h: proceeding with the compiler's result" >&5
41675 echo "$as_me: WARNING: libutil.h: proceeding with the compiler's result" >&2;}
41676     ac_header_preproc=yes
41677     ;;
41678   no:yes:* )
41679     { echo "$as_me:$LINENO: WARNING: libutil.h: present but cannot be compiled" >&5
41680 echo "$as_me: WARNING: libutil.h: present but cannot be compiled" >&2;}
41681     { echo "$as_me:$LINENO: WARNING: libutil.h:     check for missing prerequisite headers?" >&5
41682 echo "$as_me: WARNING: libutil.h:     check for missing prerequisite headers?" >&2;}
41683     { echo "$as_me:$LINENO: WARNING: libutil.h: see the Autoconf documentation" >&5
41684 echo "$as_me: WARNING: libutil.h: see the Autoconf documentation" >&2;}
41685     { echo "$as_me:$LINENO: WARNING: libutil.h:     section \"Present But Cannot Be Compiled\"" >&5
41686 echo "$as_me: WARNING: libutil.h:     section \"Present But Cannot Be Compiled\"" >&2;}
41687     { echo "$as_me:$LINENO: WARNING: libutil.h: proceeding with the preprocessor's result" >&5
41688 echo "$as_me: WARNING: libutil.h: proceeding with the preprocessor's result" >&2;}
41689     { echo "$as_me:$LINENO: WARNING: libutil.h: in the future, the compiler will take precedence" >&5
41690 echo "$as_me: WARNING: libutil.h: in the future, the compiler will take precedence" >&2;}
41691
41692     ;;
41693 esac
41694 { echo "$as_me:$LINENO: checking for libutil.h" >&5
41695 echo $ECHO_N "checking for libutil.h... $ECHO_C" >&6; }
41696 if test "${ac_cv_header_libutil_h+set}" = set; then
41697   echo $ECHO_N "(cached) $ECHO_C" >&6
41698 else
41699   ac_cv_header_libutil_h=$ac_header_preproc
41700 fi
41701 { echo "$as_me:$LINENO: result: $ac_cv_header_libutil_h" >&5
41702 echo "${ECHO_T}$ac_cv_header_libutil_h" >&6; }
41703
41704 fi
41705 if test $ac_cv_header_libutil_h = yes; then
41706
41707 cat >>confdefs.h <<\_ACEOF
41708 #define HAVE_LIBUTIL_H 1
41709 _ACEOF
41710
41711 fi
41712
41713
41714
41715
41716
41717 for ac_func in extattr_get_link extattr_set_link extattr_list_link
41718 do
41719 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41720 { echo "$as_me:$LINENO: checking for $ac_func" >&5
41721 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
41722 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41723   echo $ECHO_N "(cached) $ECHO_C" >&6
41724 else
41725   cat >conftest.$ac_ext <<_ACEOF
41726 /* confdefs.h.  */
41727 _ACEOF
41728 cat confdefs.h >>conftest.$ac_ext
41729 cat >>conftest.$ac_ext <<_ACEOF
41730 /* end confdefs.h.  */
41731 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41732    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41733 #define $ac_func innocuous_$ac_func
41734
41735 /* System header to define __stub macros and hopefully few prototypes,
41736     which can conflict with char $ac_func (); below.
41737     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41738     <limits.h> exists even on freestanding compilers.  */
41739
41740 #ifdef __STDC__
41741 # include <limits.h>
41742 #else
41743 # include <assert.h>
41744 #endif
41745
41746 #undef $ac_func
41747
41748 /* Override any GCC internal prototype to avoid an error.
41749    Use char because int might match the return type of a GCC
41750    builtin and then its argument prototype would still apply.  */
41751 #ifdef __cplusplus
41752 extern "C"
41753 #endif
41754 char $ac_func ();
41755 /* The GNU C library defines this for functions which it implements
41756     to always fail with ENOSYS.  Some functions are actually named
41757     something starting with __ and the normal name is an alias.  */
41758 #if defined __stub_$ac_func || defined __stub___$ac_func
41759 choke me
41760 #endif
41761
41762 int
41763 main ()
41764 {
41765 return $ac_func ();
41766   ;
41767   return 0;
41768 }
41769 _ACEOF
41770 rm -f conftest.$ac_objext conftest$ac_exeext
41771 if { (ac_try="$ac_link"
41772 case "(($ac_try" in
41773   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41774   *) ac_try_echo=$ac_try;;
41775 esac
41776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41777   (eval "$ac_link") 2>conftest.er1
41778   ac_status=$?
41779   grep -v '^ *+' conftest.er1 >conftest.err
41780   rm -f conftest.er1
41781   cat conftest.err >&5
41782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41783   (exit $ac_status); } && {
41784          test -z "$ac_cxx_werror_flag" ||
41785          test ! -s conftest.err
41786        } && test -s conftest$ac_exeext &&
41787        $as_test_x conftest$ac_exeext; then
41788   eval "$as_ac_var=yes"
41789 else
41790   echo "$as_me: failed program was:" >&5
41791 sed 's/^/| /' conftest.$ac_ext >&5
41792
41793         eval "$as_ac_var=no"
41794 fi
41795
41796 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41797       conftest$ac_exeext conftest.$ac_ext
41798 fi
41799 ac_res=`eval echo '${'$as_ac_var'}'`
41800                { echo "$as_me:$LINENO: result: $ac_res" >&5
41801 echo "${ECHO_T}$ac_res" >&6; }
41802 if test `eval echo '${'$as_ac_var'}'` = yes; then
41803   cat >>confdefs.h <<_ACEOF
41804 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41805 _ACEOF
41806
41807           have_xattr=yes
41808
41809 cat >>confdefs.h <<\_ACEOF
41810 #define HAVE_EXTATTR_GET_LINK 1
41811 _ACEOF
41812
41813
41814 cat >>confdefs.h <<\_ACEOF
41815 #define HAVE_EXTATTR_SET_LINK 1
41816 _ACEOF
41817
41818
41819 cat >>confdefs.h <<\_ACEOF
41820 #define HAVE_EXTATTR_LIST_LINK 1
41821 _ACEOF
41822
41823
41824
41825 fi
41826 done
41827
41828
41829    if test $have_xattr = no; then
41830
41831
41832
41833 for ac_func in extattr_get_file extattr_set_file extattr_list_file
41834 do
41835 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41836 { echo "$as_me:$LINENO: checking for $ac_func" >&5
41837 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
41838 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41839   echo $ECHO_N "(cached) $ECHO_C" >&6
41840 else
41841   cat >conftest.$ac_ext <<_ACEOF
41842 /* confdefs.h.  */
41843 _ACEOF
41844 cat confdefs.h >>conftest.$ac_ext
41845 cat >>conftest.$ac_ext <<_ACEOF
41846 /* end confdefs.h.  */
41847 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41848    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41849 #define $ac_func innocuous_$ac_func
41850
41851 /* System header to define __stub macros and hopefully few prototypes,
41852     which can conflict with char $ac_func (); below.
41853     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41854     <limits.h> exists even on freestanding compilers.  */
41855
41856 #ifdef __STDC__
41857 # include <limits.h>
41858 #else
41859 # include <assert.h>
41860 #endif
41861
41862 #undef $ac_func
41863
41864 /* Override any GCC internal prototype to avoid an error.
41865    Use char because int might match the return type of a GCC
41866    builtin and then its argument prototype would still apply.  */
41867 #ifdef __cplusplus
41868 extern "C"
41869 #endif
41870 char $ac_func ();
41871 /* The GNU C library defines this for functions which it implements
41872     to always fail with ENOSYS.  Some functions are actually named
41873     something starting with __ and the normal name is an alias.  */
41874 #if defined __stub_$ac_func || defined __stub___$ac_func
41875 choke me
41876 #endif
41877
41878 int
41879 main ()
41880 {
41881 return $ac_func ();
41882   ;
41883   return 0;
41884 }
41885 _ACEOF
41886 rm -f conftest.$ac_objext conftest$ac_exeext
41887 if { (ac_try="$ac_link"
41888 case "(($ac_try" in
41889   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41890   *) ac_try_echo=$ac_try;;
41891 esac
41892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41893   (eval "$ac_link") 2>conftest.er1
41894   ac_status=$?
41895   grep -v '^ *+' conftest.er1 >conftest.err
41896   rm -f conftest.er1
41897   cat conftest.err >&5
41898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41899   (exit $ac_status); } && {
41900          test -z "$ac_cxx_werror_flag" ||
41901          test ! -s conftest.err
41902        } && test -s conftest$ac_exeext &&
41903        $as_test_x conftest$ac_exeext; then
41904   eval "$as_ac_var=yes"
41905 else
41906   echo "$as_me: failed program was:" >&5
41907 sed 's/^/| /' conftest.$ac_ext >&5
41908
41909         eval "$as_ac_var=no"
41910 fi
41911
41912 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41913       conftest$ac_exeext conftest.$ac_ext
41914 fi
41915 ac_res=`eval echo '${'$as_ac_var'}'`
41916                { echo "$as_me:$LINENO: result: $ac_res" >&5
41917 echo "${ECHO_T}$ac_res" >&6; }
41918 if test `eval echo '${'$as_ac_var'}'` = yes; then
41919   cat >>confdefs.h <<_ACEOF
41920 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41921 _ACEOF
41922
41923              have_xattr=yes
41924
41925 cat >>confdefs.h <<\_ACEOF
41926 #define HAVE_EXTATTR_GET_FILE 1
41927 _ACEOF
41928
41929
41930 cat >>confdefs.h <<\_ACEOF
41931 #define HAVE_EXTATTR_SET_FILE 1
41932 _ACEOF
41933
41934
41935 cat >>confdefs.h <<\_ACEOF
41936 #define HAVE_EXTATTR_LIST_FILE 1
41937 _ACEOF
41938
41939
41940
41941 fi
41942 done
41943
41944    fi
41945
41946    if test $have_xattr = yes; then
41947       have_extattr_string_in_libc=no
41948
41949
41950 for ac_func in extattr_namespace_to_string extattr_string_to_namespace
41951 do
41952 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41953 { echo "$as_me:$LINENO: checking for $ac_func" >&5
41954 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
41955 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41956   echo $ECHO_N "(cached) $ECHO_C" >&6
41957 else
41958   cat >conftest.$ac_ext <<_ACEOF
41959 /* confdefs.h.  */
41960 _ACEOF
41961 cat confdefs.h >>conftest.$ac_ext
41962 cat >>conftest.$ac_ext <<_ACEOF
41963 /* end confdefs.h.  */
41964 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41965    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41966 #define $ac_func innocuous_$ac_func
41967
41968 /* System header to define __stub macros and hopefully few prototypes,
41969     which can conflict with char $ac_func (); below.
41970     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41971     <limits.h> exists even on freestanding compilers.  */
41972
41973 #ifdef __STDC__
41974 # include <limits.h>
41975 #else
41976 # include <assert.h>
41977 #endif
41978
41979 #undef $ac_func
41980
41981 /* Override any GCC internal prototype to avoid an error.
41982    Use char because int might match the return type of a GCC
41983    builtin and then its argument prototype would still apply.  */
41984 #ifdef __cplusplus
41985 extern "C"
41986 #endif
41987 char $ac_func ();
41988 /* The GNU C library defines this for functions which it implements
41989     to always fail with ENOSYS.  Some functions are actually named
41990     something starting with __ and the normal name is an alias.  */
41991 #if defined __stub_$ac_func || defined __stub___$ac_func
41992 choke me
41993 #endif
41994
41995 int
41996 main ()
41997 {
41998 return $ac_func ();
41999   ;
42000   return 0;
42001 }
42002 _ACEOF
42003 rm -f conftest.$ac_objext conftest$ac_exeext
42004 if { (ac_try="$ac_link"
42005 case "(($ac_try" in
42006   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42007   *) ac_try_echo=$ac_try;;
42008 esac
42009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42010   (eval "$ac_link") 2>conftest.er1
42011   ac_status=$?
42012   grep -v '^ *+' conftest.er1 >conftest.err
42013   rm -f conftest.er1
42014   cat conftest.err >&5
42015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42016   (exit $ac_status); } && {
42017          test -z "$ac_cxx_werror_flag" ||
42018          test ! -s conftest.err
42019        } && test -s conftest$ac_exeext &&
42020        $as_test_x conftest$ac_exeext; then
42021   eval "$as_ac_var=yes"
42022 else
42023   echo "$as_me: failed program was:" >&5
42024 sed 's/^/| /' conftest.$ac_ext >&5
42025
42026         eval "$as_ac_var=no"
42027 fi
42028
42029 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42030       conftest$ac_exeext conftest.$ac_ext
42031 fi
42032 ac_res=`eval echo '${'$as_ac_var'}'`
42033                { echo "$as_me:$LINENO: result: $ac_res" >&5
42034 echo "${ECHO_T}$ac_res" >&6; }
42035 if test `eval echo '${'$as_ac_var'}'` = yes; then
42036   cat >>confdefs.h <<_ACEOF
42037 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42038 _ACEOF
42039
42040              have_extattr_string_in_libc=yes
42041
42042 cat >>confdefs.h <<\_ACEOF
42043 #define HAVE_EXTATTR_NAMESPACE_TO_STRING 1
42044 _ACEOF
42045
42046
42047 cat >>confdefs.h <<\_ACEOF
42048 #define HAVE_EXTATTR_STRING_TO_NAMESPACE 1
42049 _ACEOF
42050
42051
42052
42053 fi
42054 done
42055
42056
42057                         if test $have_extattr_string_in_libc = no; then
42058          { echo "$as_me:$LINENO: checking for extattr_namespace_to_string extattr_string_to_namespace in -lutil" >&5
42059 echo $ECHO_N "checking for extattr_namespace_to_string extattr_string_to_namespace in -lutil... $ECHO_C" >&6; }
42060 if test "${ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace+set}" = set; then
42061   echo $ECHO_N "(cached) $ECHO_C" >&6
42062 else
42063   ac_check_lib_save_LIBS=$LIBS
42064 LIBS="-lutil  $LIBS"
42065 cat >conftest.$ac_ext <<_ACEOF
42066 /* confdefs.h.  */
42067 _ACEOF
42068 cat confdefs.h >>conftest.$ac_ext
42069 cat >>conftest.$ac_ext <<_ACEOF
42070 /* end confdefs.h.  */
42071
42072 /* Override any GCC internal prototype to avoid an error.
42073    Use char because int might match the return type of a GCC
42074    builtin and then its argument prototype would still apply.  */
42075 #ifdef __cplusplus
42076 extern "C"
42077 #endif
42078 char extattr_namespace_to_string extattr_string_to_namespace ();
42079 int
42080 main ()
42081 {
42082 return extattr_namespace_to_string extattr_string_to_namespace ();
42083   ;
42084   return 0;
42085 }
42086 _ACEOF
42087 rm -f conftest.$ac_objext conftest$ac_exeext
42088 if { (ac_try="$ac_link"
42089 case "(($ac_try" in
42090   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42091   *) ac_try_echo=$ac_try;;
42092 esac
42093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42094   (eval "$ac_link") 2>conftest.er1
42095   ac_status=$?
42096   grep -v '^ *+' conftest.er1 >conftest.err
42097   rm -f conftest.er1
42098   cat conftest.err >&5
42099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42100   (exit $ac_status); } && {
42101          test -z "$ac_cxx_werror_flag" ||
42102          test ! -s conftest.err
42103        } && test -s conftest$ac_exeext &&
42104        $as_test_x conftest$ac_exeext; then
42105   ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace=yes
42106 else
42107   echo "$as_me: failed program was:" >&5
42108 sed 's/^/| /' conftest.$ac_ext >&5
42109
42110         ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace=no
42111 fi
42112
42113 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42114       conftest$ac_exeext conftest.$ac_ext
42115 LIBS=$ac_check_lib_save_LIBS
42116 fi
42117 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" >&5
42118 echo "${ECHO_T}$ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" >&6; }
42119 if test $ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace = yes; then
42120
42121
42122 cat >>confdefs.h <<\_ACEOF
42123 #define HAVE_EXTATTR_NAMESPACE_TO_STRING 1
42124 _ACEOF
42125
42126
42127 cat >>confdefs.h <<\_ACEOF
42128 #define HAVE_EXTATTR_STRING_TO_NAMESPACE 1
42129 _ACEOF
42130
42131                 FDLIBS="-lutil $FDLIBS"
42132
42133
42134 fi
42135
42136       fi
42137    fi
42138
42139             if test $have_xattr = no; then
42140       if test "${ac_cv_header_sys_xattr_h+set}" = set; then
42141   { echo "$as_me:$LINENO: checking for sys/xattr.h" >&5
42142 echo $ECHO_N "checking for sys/xattr.h... $ECHO_C" >&6; }
42143 if test "${ac_cv_header_sys_xattr_h+set}" = set; then
42144   echo $ECHO_N "(cached) $ECHO_C" >&6
42145 fi
42146 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_xattr_h" >&5
42147 echo "${ECHO_T}$ac_cv_header_sys_xattr_h" >&6; }
42148 else
42149   # Is the header compilable?
42150 { echo "$as_me:$LINENO: checking sys/xattr.h usability" >&5
42151 echo $ECHO_N "checking sys/xattr.h usability... $ECHO_C" >&6; }
42152 cat >conftest.$ac_ext <<_ACEOF
42153 /* confdefs.h.  */
42154 _ACEOF
42155 cat confdefs.h >>conftest.$ac_ext
42156 cat >>conftest.$ac_ext <<_ACEOF
42157 /* end confdefs.h.  */
42158 $ac_includes_default
42159 #include <sys/xattr.h>
42160 _ACEOF
42161 rm -f conftest.$ac_objext
42162 if { (ac_try="$ac_compile"
42163 case "(($ac_try" in
42164   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42165   *) ac_try_echo=$ac_try;;
42166 esac
42167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42168   (eval "$ac_compile") 2>conftest.er1
42169   ac_status=$?
42170   grep -v '^ *+' conftest.er1 >conftest.err
42171   rm -f conftest.er1
42172   cat conftest.err >&5
42173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42174   (exit $ac_status); } && {
42175          test -z "$ac_cxx_werror_flag" ||
42176          test ! -s conftest.err
42177        } && test -s conftest.$ac_objext; then
42178   ac_header_compiler=yes
42179 else
42180   echo "$as_me: failed program was:" >&5
42181 sed 's/^/| /' conftest.$ac_ext >&5
42182
42183         ac_header_compiler=no
42184 fi
42185
42186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42187 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
42188 echo "${ECHO_T}$ac_header_compiler" >&6; }
42189
42190 # Is the header present?
42191 { echo "$as_me:$LINENO: checking sys/xattr.h presence" >&5
42192 echo $ECHO_N "checking sys/xattr.h presence... $ECHO_C" >&6; }
42193 cat >conftest.$ac_ext <<_ACEOF
42194 /* confdefs.h.  */
42195 _ACEOF
42196 cat confdefs.h >>conftest.$ac_ext
42197 cat >>conftest.$ac_ext <<_ACEOF
42198 /* end confdefs.h.  */
42199 #include <sys/xattr.h>
42200 _ACEOF
42201 if { (ac_try="$ac_cpp conftest.$ac_ext"
42202 case "(($ac_try" in
42203   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42204   *) ac_try_echo=$ac_try;;
42205 esac
42206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42207   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
42208   ac_status=$?
42209   grep -v '^ *+' conftest.er1 >conftest.err
42210   rm -f conftest.er1
42211   cat conftest.err >&5
42212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42213   (exit $ac_status); } >/dev/null && {
42214          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
42215          test ! -s conftest.err
42216        }; then
42217   ac_header_preproc=yes
42218 else
42219   echo "$as_me: failed program was:" >&5
42220 sed 's/^/| /' conftest.$ac_ext >&5
42221
42222   ac_header_preproc=no
42223 fi
42224
42225 rm -f conftest.err conftest.$ac_ext
42226 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
42227 echo "${ECHO_T}$ac_header_preproc" >&6; }
42228
42229 # So?  What about this header?
42230 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
42231   yes:no: )
42232     { echo "$as_me:$LINENO: WARNING: sys/xattr.h: accepted by the compiler, rejected by the preprocessor!" >&5
42233 echo "$as_me: WARNING: sys/xattr.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
42234     { echo "$as_me:$LINENO: WARNING: sys/xattr.h: proceeding with the compiler's result" >&5
42235 echo "$as_me: WARNING: sys/xattr.h: proceeding with the compiler's result" >&2;}
42236     ac_header_preproc=yes
42237     ;;
42238   no:yes:* )
42239     { echo "$as_me:$LINENO: WARNING: sys/xattr.h: present but cannot be compiled" >&5
42240 echo "$as_me: WARNING: sys/xattr.h: present but cannot be compiled" >&2;}
42241     { echo "$as_me:$LINENO: WARNING: sys/xattr.h:     check for missing prerequisite headers?" >&5
42242 echo "$as_me: WARNING: sys/xattr.h:     check for missing prerequisite headers?" >&2;}
42243     { echo "$as_me:$LINENO: WARNING: sys/xattr.h: see the Autoconf documentation" >&5
42244 echo "$as_me: WARNING: sys/xattr.h: see the Autoconf documentation" >&2;}
42245     { echo "$as_me:$LINENO: WARNING: sys/xattr.h:     section \"Present But Cannot Be Compiled\"" >&5
42246 echo "$as_me: WARNING: sys/xattr.h:     section \"Present But Cannot Be Compiled\"" >&2;}
42247     { echo "$as_me:$LINENO: WARNING: sys/xattr.h: proceeding with the preprocessor's result" >&5
42248 echo "$as_me: WARNING: sys/xattr.h: proceeding with the preprocessor's result" >&2;}
42249     { echo "$as_me:$LINENO: WARNING: sys/xattr.h: in the future, the compiler will take precedence" >&5
42250 echo "$as_me: WARNING: sys/xattr.h: in the future, the compiler will take precedence" >&2;}
42251
42252     ;;
42253 esac
42254 { echo "$as_me:$LINENO: checking for sys/xattr.h" >&5
42255 echo $ECHO_N "checking for sys/xattr.h... $ECHO_C" >&6; }
42256 if test "${ac_cv_header_sys_xattr_h+set}" = set; then
42257   echo $ECHO_N "(cached) $ECHO_C" >&6
42258 else
42259   ac_cv_header_sys_xattr_h=$ac_header_preproc
42260 fi
42261 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_xattr_h" >&5
42262 echo "${ECHO_T}$ac_cv_header_sys_xattr_h" >&6; }
42263
42264 fi
42265 if test $ac_cv_header_sys_xattr_h = yes; then
42266
42267 cat >>confdefs.h <<\_ACEOF
42268 #define HAVE_SYS_XATTR_H 1
42269 _ACEOF
42270
42271 fi
42272
42273
42274
42275
42276
42277 for ac_func in llistxattr lgetxattr lsetxattr
42278 do
42279 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42280 { echo "$as_me:$LINENO: checking for $ac_func" >&5
42281 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
42282 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
42283   echo $ECHO_N "(cached) $ECHO_C" >&6
42284 else
42285   cat >conftest.$ac_ext <<_ACEOF
42286 /* confdefs.h.  */
42287 _ACEOF
42288 cat confdefs.h >>conftest.$ac_ext
42289 cat >>conftest.$ac_ext <<_ACEOF
42290 /* end confdefs.h.  */
42291 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42292    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42293 #define $ac_func innocuous_$ac_func
42294
42295 /* System header to define __stub macros and hopefully few prototypes,
42296     which can conflict with char $ac_func (); below.
42297     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42298     <limits.h> exists even on freestanding compilers.  */
42299
42300 #ifdef __STDC__
42301 # include <limits.h>
42302 #else
42303 # include <assert.h>
42304 #endif
42305
42306 #undef $ac_func
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 $ac_func ();
42315 /* The GNU C library defines this for functions which it implements
42316     to always fail with ENOSYS.  Some functions are actually named
42317     something starting with __ and the normal name is an alias.  */
42318 #if defined __stub_$ac_func || defined __stub___$ac_func
42319 choke me
42320 #endif
42321
42322 int
42323 main ()
42324 {
42325 return $ac_func ();
42326   ;
42327   return 0;
42328 }
42329 _ACEOF
42330 rm -f conftest.$ac_objext conftest$ac_exeext
42331 if { (ac_try="$ac_link"
42332 case "(($ac_try" in
42333   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42334   *) ac_try_echo=$ac_try;;
42335 esac
42336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42337   (eval "$ac_link") 2>conftest.er1
42338   ac_status=$?
42339   grep -v '^ *+' conftest.er1 >conftest.err
42340   rm -f conftest.er1
42341   cat conftest.err >&5
42342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42343   (exit $ac_status); } && {
42344          test -z "$ac_cxx_werror_flag" ||
42345          test ! -s conftest.err
42346        } && test -s conftest$ac_exeext &&
42347        $as_test_x conftest$ac_exeext; then
42348   eval "$as_ac_var=yes"
42349 else
42350   echo "$as_me: failed program was:" >&5
42351 sed 's/^/| /' conftest.$ac_ext >&5
42352
42353         eval "$as_ac_var=no"
42354 fi
42355
42356 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42357       conftest$ac_exeext conftest.$ac_ext
42358 fi
42359 ac_res=`eval echo '${'$as_ac_var'}'`
42360                { echo "$as_me:$LINENO: result: $ac_res" >&5
42361 echo "${ECHO_T}$ac_res" >&6; }
42362 if test `eval echo '${'$as_ac_var'}'` = yes; then
42363   cat >>confdefs.h <<_ACEOF
42364 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42365 _ACEOF
42366
42367              have_xattr=yes
42368
42369 cat >>confdefs.h <<\_ACEOF
42370 #define HAVE_LLISTXATTR 1
42371 _ACEOF
42372
42373
42374 cat >>confdefs.h <<\_ACEOF
42375 #define HAVE_LGETXATTR 1
42376 _ACEOF
42377
42378
42379 cat >>confdefs.h <<\_ACEOF
42380 #define HAVE_LSETXATTR 1
42381 _ACEOF
42382
42383
42384
42385 fi
42386 done
42387
42388
42389       if test $have_xattr = no; then
42390
42391
42392
42393 for ac_func in listxattr getxattr setxattr
42394 do
42395 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42396 { echo "$as_me:$LINENO: checking for $ac_func" >&5
42397 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
42398 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
42399   echo $ECHO_N "(cached) $ECHO_C" >&6
42400 else
42401   cat >conftest.$ac_ext <<_ACEOF
42402 /* confdefs.h.  */
42403 _ACEOF
42404 cat confdefs.h >>conftest.$ac_ext
42405 cat >>conftest.$ac_ext <<_ACEOF
42406 /* end confdefs.h.  */
42407 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42408    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42409 #define $ac_func innocuous_$ac_func
42410
42411 /* System header to define __stub macros and hopefully few prototypes,
42412     which can conflict with char $ac_func (); below.
42413     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42414     <limits.h> exists even on freestanding compilers.  */
42415
42416 #ifdef __STDC__
42417 # include <limits.h>
42418 #else
42419 # include <assert.h>
42420 #endif
42421
42422 #undef $ac_func
42423
42424 /* Override any GCC internal prototype to avoid an error.
42425    Use char because int might match the return type of a GCC
42426    builtin and then its argument prototype would still apply.  */
42427 #ifdef __cplusplus
42428 extern "C"
42429 #endif
42430 char $ac_func ();
42431 /* The GNU C library defines this for functions which it implements
42432     to always fail with ENOSYS.  Some functions are actually named
42433     something starting with __ and the normal name is an alias.  */
42434 #if defined __stub_$ac_func || defined __stub___$ac_func
42435 choke me
42436 #endif
42437
42438 int
42439 main ()
42440 {
42441 return $ac_func ();
42442   ;
42443   return 0;
42444 }
42445 _ACEOF
42446 rm -f conftest.$ac_objext conftest$ac_exeext
42447 if { (ac_try="$ac_link"
42448 case "(($ac_try" in
42449   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42450   *) ac_try_echo=$ac_try;;
42451 esac
42452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42453   (eval "$ac_link") 2>conftest.er1
42454   ac_status=$?
42455   grep -v '^ *+' conftest.er1 >conftest.err
42456   rm -f conftest.er1
42457   cat conftest.err >&5
42458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42459   (exit $ac_status); } && {
42460          test -z "$ac_cxx_werror_flag" ||
42461          test ! -s conftest.err
42462        } && test -s conftest$ac_exeext &&
42463        $as_test_x conftest$ac_exeext; then
42464   eval "$as_ac_var=yes"
42465 else
42466   echo "$as_me: failed program was:" >&5
42467 sed 's/^/| /' conftest.$ac_ext >&5
42468
42469         eval "$as_ac_var=no"
42470 fi
42471
42472 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42473       conftest$ac_exeext conftest.$ac_ext
42474 fi
42475 ac_res=`eval echo '${'$as_ac_var'}'`
42476                { echo "$as_me:$LINENO: result: $ac_res" >&5
42477 echo "${ECHO_T}$ac_res" >&6; }
42478 if test `eval echo '${'$as_ac_var'}'` = yes; then
42479   cat >>confdefs.h <<_ACEOF
42480 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42481 _ACEOF
42482
42483                 have_xattr=yes
42484
42485 cat >>confdefs.h <<\_ACEOF
42486 #define HAVE_LISTXATTR 1
42487 _ACEOF
42488
42489
42490 cat >>confdefs.h <<\_ACEOF
42491 #define HAVE_GETXATTR 1
42492 _ACEOF
42493
42494
42495 cat >>confdefs.h <<\_ACEOF
42496 #define HAVE_SETXATTR 1
42497 _ACEOF
42498
42499
42500
42501 fi
42502 done
42503
42504       fi
42505    fi
42506
42507             if test $have_xattr = no; then
42508       if test "${ac_cv_header_sys_attr_h+set}" = set; then
42509   { echo "$as_me:$LINENO: checking for sys/attr.h" >&5
42510 echo $ECHO_N "checking for sys/attr.h... $ECHO_C" >&6; }
42511 if test "${ac_cv_header_sys_attr_h+set}" = set; then
42512   echo $ECHO_N "(cached) $ECHO_C" >&6
42513 fi
42514 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_attr_h" >&5
42515 echo "${ECHO_T}$ac_cv_header_sys_attr_h" >&6; }
42516 else
42517   # Is the header compilable?
42518 { echo "$as_me:$LINENO: checking sys/attr.h usability" >&5
42519 echo $ECHO_N "checking sys/attr.h usability... $ECHO_C" >&6; }
42520 cat >conftest.$ac_ext <<_ACEOF
42521 /* confdefs.h.  */
42522 _ACEOF
42523 cat confdefs.h >>conftest.$ac_ext
42524 cat >>conftest.$ac_ext <<_ACEOF
42525 /* end confdefs.h.  */
42526 $ac_includes_default
42527 #include <sys/attr.h>
42528 _ACEOF
42529 rm -f conftest.$ac_objext
42530 if { (ac_try="$ac_compile"
42531 case "(($ac_try" in
42532   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42533   *) ac_try_echo=$ac_try;;
42534 esac
42535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42536   (eval "$ac_compile") 2>conftest.er1
42537   ac_status=$?
42538   grep -v '^ *+' conftest.er1 >conftest.err
42539   rm -f conftest.er1
42540   cat conftest.err >&5
42541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42542   (exit $ac_status); } && {
42543          test -z "$ac_cxx_werror_flag" ||
42544          test ! -s conftest.err
42545        } && test -s conftest.$ac_objext; then
42546   ac_header_compiler=yes
42547 else
42548   echo "$as_me: failed program was:" >&5
42549 sed 's/^/| /' conftest.$ac_ext >&5
42550
42551         ac_header_compiler=no
42552 fi
42553
42554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42555 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
42556 echo "${ECHO_T}$ac_header_compiler" >&6; }
42557
42558 # Is the header present?
42559 { echo "$as_me:$LINENO: checking sys/attr.h presence" >&5
42560 echo $ECHO_N "checking sys/attr.h presence... $ECHO_C" >&6; }
42561 cat >conftest.$ac_ext <<_ACEOF
42562 /* confdefs.h.  */
42563 _ACEOF
42564 cat confdefs.h >>conftest.$ac_ext
42565 cat >>conftest.$ac_ext <<_ACEOF
42566 /* end confdefs.h.  */
42567 #include <sys/attr.h>
42568 _ACEOF
42569 if { (ac_try="$ac_cpp conftest.$ac_ext"
42570 case "(($ac_try" in
42571   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42572   *) ac_try_echo=$ac_try;;
42573 esac
42574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42575   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
42576   ac_status=$?
42577   grep -v '^ *+' conftest.er1 >conftest.err
42578   rm -f conftest.er1
42579   cat conftest.err >&5
42580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42581   (exit $ac_status); } >/dev/null && {
42582          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
42583          test ! -s conftest.err
42584        }; then
42585   ac_header_preproc=yes
42586 else
42587   echo "$as_me: failed program was:" >&5
42588 sed 's/^/| /' conftest.$ac_ext >&5
42589
42590   ac_header_preproc=no
42591 fi
42592
42593 rm -f conftest.err conftest.$ac_ext
42594 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
42595 echo "${ECHO_T}$ac_header_preproc" >&6; }
42596
42597 # So?  What about this header?
42598 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
42599   yes:no: )
42600     { echo "$as_me:$LINENO: WARNING: sys/attr.h: accepted by the compiler, rejected by the preprocessor!" >&5
42601 echo "$as_me: WARNING: sys/attr.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
42602     { echo "$as_me:$LINENO: WARNING: sys/attr.h: proceeding with the compiler's result" >&5
42603 echo "$as_me: WARNING: sys/attr.h: proceeding with the compiler's result" >&2;}
42604     ac_header_preproc=yes
42605     ;;
42606   no:yes:* )
42607     { echo "$as_me:$LINENO: WARNING: sys/attr.h: present but cannot be compiled" >&5
42608 echo "$as_me: WARNING: sys/attr.h: present but cannot be compiled" >&2;}
42609     { echo "$as_me:$LINENO: WARNING: sys/attr.h:     check for missing prerequisite headers?" >&5
42610 echo "$as_me: WARNING: sys/attr.h:     check for missing prerequisite headers?" >&2;}
42611     { echo "$as_me:$LINENO: WARNING: sys/attr.h: see the Autoconf documentation" >&5
42612 echo "$as_me: WARNING: sys/attr.h: see the Autoconf documentation" >&2;}
42613     { echo "$as_me:$LINENO: WARNING: sys/attr.h:     section \"Present But Cannot Be Compiled\"" >&5
42614 echo "$as_me: WARNING: sys/attr.h:     section \"Present But Cannot Be Compiled\"" >&2;}
42615     { echo "$as_me:$LINENO: WARNING: sys/attr.h: proceeding with the preprocessor's result" >&5
42616 echo "$as_me: WARNING: sys/attr.h: proceeding with the preprocessor's result" >&2;}
42617     { echo "$as_me:$LINENO: WARNING: sys/attr.h: in the future, the compiler will take precedence" >&5
42618 echo "$as_me: WARNING: sys/attr.h: in the future, the compiler will take precedence" >&2;}
42619
42620     ;;
42621 esac
42622 { echo "$as_me:$LINENO: checking for sys/attr.h" >&5
42623 echo $ECHO_N "checking for sys/attr.h... $ECHO_C" >&6; }
42624 if test "${ac_cv_header_sys_attr_h+set}" = set; then
42625   echo $ECHO_N "(cached) $ECHO_C" >&6
42626 else
42627   ac_cv_header_sys_attr_h=$ac_header_preproc
42628 fi
42629 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_attr_h" >&5
42630 echo "${ECHO_T}$ac_cv_header_sys_attr_h" >&6; }
42631
42632 fi
42633 if test $ac_cv_header_sys_attr_h = yes; then
42634
42635 cat >>confdefs.h <<\_ACEOF
42636 #define HAVE_SYS_ATTR_H 1
42637 _ACEOF
42638
42639 fi
42640
42641
42642       if test "${ac_cv_header_sys_nvpair_h+set}" = set; then
42643   { echo "$as_me:$LINENO: checking for sys/nvpair.h" >&5
42644 echo $ECHO_N "checking for sys/nvpair.h... $ECHO_C" >&6; }
42645 if test "${ac_cv_header_sys_nvpair_h+set}" = set; then
42646   echo $ECHO_N "(cached) $ECHO_C" >&6
42647 fi
42648 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_nvpair_h" >&5
42649 echo "${ECHO_T}$ac_cv_header_sys_nvpair_h" >&6; }
42650 else
42651   # Is the header compilable?
42652 { echo "$as_me:$LINENO: checking sys/nvpair.h usability" >&5
42653 echo $ECHO_N "checking sys/nvpair.h usability... $ECHO_C" >&6; }
42654 cat >conftest.$ac_ext <<_ACEOF
42655 /* confdefs.h.  */
42656 _ACEOF
42657 cat confdefs.h >>conftest.$ac_ext
42658 cat >>conftest.$ac_ext <<_ACEOF
42659 /* end confdefs.h.  */
42660 $ac_includes_default
42661 #include <sys/nvpair.h>
42662 _ACEOF
42663 rm -f conftest.$ac_objext
42664 if { (ac_try="$ac_compile"
42665 case "(($ac_try" in
42666   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42667   *) ac_try_echo=$ac_try;;
42668 esac
42669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42670   (eval "$ac_compile") 2>conftest.er1
42671   ac_status=$?
42672   grep -v '^ *+' conftest.er1 >conftest.err
42673   rm -f conftest.er1
42674   cat conftest.err >&5
42675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42676   (exit $ac_status); } && {
42677          test -z "$ac_cxx_werror_flag" ||
42678          test ! -s conftest.err
42679        } && test -s conftest.$ac_objext; then
42680   ac_header_compiler=yes
42681 else
42682   echo "$as_me: failed program was:" >&5
42683 sed 's/^/| /' conftest.$ac_ext >&5
42684
42685         ac_header_compiler=no
42686 fi
42687
42688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42689 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
42690 echo "${ECHO_T}$ac_header_compiler" >&6; }
42691
42692 # Is the header present?
42693 { echo "$as_me:$LINENO: checking sys/nvpair.h presence" >&5
42694 echo $ECHO_N "checking sys/nvpair.h presence... $ECHO_C" >&6; }
42695 cat >conftest.$ac_ext <<_ACEOF
42696 /* confdefs.h.  */
42697 _ACEOF
42698 cat confdefs.h >>conftest.$ac_ext
42699 cat >>conftest.$ac_ext <<_ACEOF
42700 /* end confdefs.h.  */
42701 #include <sys/nvpair.h>
42702 _ACEOF
42703 if { (ac_try="$ac_cpp conftest.$ac_ext"
42704 case "(($ac_try" in
42705   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42706   *) ac_try_echo=$ac_try;;
42707 esac
42708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42709   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
42710   ac_status=$?
42711   grep -v '^ *+' conftest.er1 >conftest.err
42712   rm -f conftest.er1
42713   cat conftest.err >&5
42714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42715   (exit $ac_status); } >/dev/null && {
42716          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
42717          test ! -s conftest.err
42718        }; then
42719   ac_header_preproc=yes
42720 else
42721   echo "$as_me: failed program was:" >&5
42722 sed 's/^/| /' conftest.$ac_ext >&5
42723
42724   ac_header_preproc=no
42725 fi
42726
42727 rm -f conftest.err conftest.$ac_ext
42728 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
42729 echo "${ECHO_T}$ac_header_preproc" >&6; }
42730
42731 # So?  What about this header?
42732 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
42733   yes:no: )
42734     { echo "$as_me:$LINENO: WARNING: sys/nvpair.h: accepted by the compiler, rejected by the preprocessor!" >&5
42735 echo "$as_me: WARNING: sys/nvpair.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
42736     { echo "$as_me:$LINENO: WARNING: sys/nvpair.h: proceeding with the compiler's result" >&5
42737 echo "$as_me: WARNING: sys/nvpair.h: proceeding with the compiler's result" >&2;}
42738     ac_header_preproc=yes
42739     ;;
42740   no:yes:* )
42741     { echo "$as_me:$LINENO: WARNING: sys/nvpair.h: present but cannot be compiled" >&5
42742 echo "$as_me: WARNING: sys/nvpair.h: present but cannot be compiled" >&2;}
42743     { echo "$as_me:$LINENO: WARNING: sys/nvpair.h:     check for missing prerequisite headers?" >&5
42744 echo "$as_me: WARNING: sys/nvpair.h:     check for missing prerequisite headers?" >&2;}
42745     { echo "$as_me:$LINENO: WARNING: sys/nvpair.h: see the Autoconf documentation" >&5
42746 echo "$as_me: WARNING: sys/nvpair.h: see the Autoconf documentation" >&2;}
42747     { echo "$as_me:$LINENO: WARNING: sys/nvpair.h:     section \"Present But Cannot Be Compiled\"" >&5
42748 echo "$as_me: WARNING: sys/nvpair.h:     section \"Present But Cannot Be Compiled\"" >&2;}
42749     { echo "$as_me:$LINENO: WARNING: sys/nvpair.h: proceeding with the preprocessor's result" >&5
42750 echo "$as_me: WARNING: sys/nvpair.h: proceeding with the preprocessor's result" >&2;}
42751     { echo "$as_me:$LINENO: WARNING: sys/nvpair.h: in the future, the compiler will take precedence" >&5
42752 echo "$as_me: WARNING: sys/nvpair.h: in the future, the compiler will take precedence" >&2;}
42753
42754     ;;
42755 esac
42756 { echo "$as_me:$LINENO: checking for sys/nvpair.h" >&5
42757 echo $ECHO_N "checking for sys/nvpair.h... $ECHO_C" >&6; }
42758 if test "${ac_cv_header_sys_nvpair_h+set}" = set; then
42759   echo $ECHO_N "(cached) $ECHO_C" >&6
42760 else
42761   ac_cv_header_sys_nvpair_h=$ac_header_preproc
42762 fi
42763 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_nvpair_h" >&5
42764 echo "${ECHO_T}$ac_cv_header_sys_nvpair_h" >&6; }
42765
42766 fi
42767 if test $ac_cv_header_sys_nvpair_h = yes; then
42768
42769 cat >>confdefs.h <<\_ACEOF
42770 #define HAVE_SYS_NVPAIR_H 1
42771 _ACEOF
42772
42773 fi
42774
42775
42776       if test "${ac_cv_header_attr_h+set}" = set; then
42777   { echo "$as_me:$LINENO: checking for attr.h" >&5
42778 echo $ECHO_N "checking for attr.h... $ECHO_C" >&6; }
42779 if test "${ac_cv_header_attr_h+set}" = set; then
42780   echo $ECHO_N "(cached) $ECHO_C" >&6
42781 fi
42782 { echo "$as_me:$LINENO: result: $ac_cv_header_attr_h" >&5
42783 echo "${ECHO_T}$ac_cv_header_attr_h" >&6; }
42784 else
42785   # Is the header compilable?
42786 { echo "$as_me:$LINENO: checking attr.h usability" >&5
42787 echo $ECHO_N "checking attr.h usability... $ECHO_C" >&6; }
42788 cat >conftest.$ac_ext <<_ACEOF
42789 /* confdefs.h.  */
42790 _ACEOF
42791 cat confdefs.h >>conftest.$ac_ext
42792 cat >>conftest.$ac_ext <<_ACEOF
42793 /* end confdefs.h.  */
42794 $ac_includes_default
42795 #include <attr.h>
42796 _ACEOF
42797 rm -f conftest.$ac_objext
42798 if { (ac_try="$ac_compile"
42799 case "(($ac_try" in
42800   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42801   *) ac_try_echo=$ac_try;;
42802 esac
42803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42804   (eval "$ac_compile") 2>conftest.er1
42805   ac_status=$?
42806   grep -v '^ *+' conftest.er1 >conftest.err
42807   rm -f conftest.er1
42808   cat conftest.err >&5
42809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42810   (exit $ac_status); } && {
42811          test -z "$ac_cxx_werror_flag" ||
42812          test ! -s conftest.err
42813        } && test -s conftest.$ac_objext; then
42814   ac_header_compiler=yes
42815 else
42816   echo "$as_me: failed program was:" >&5
42817 sed 's/^/| /' conftest.$ac_ext >&5
42818
42819         ac_header_compiler=no
42820 fi
42821
42822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42823 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
42824 echo "${ECHO_T}$ac_header_compiler" >&6; }
42825
42826 # Is the header present?
42827 { echo "$as_me:$LINENO: checking attr.h presence" >&5
42828 echo $ECHO_N "checking attr.h presence... $ECHO_C" >&6; }
42829 cat >conftest.$ac_ext <<_ACEOF
42830 /* confdefs.h.  */
42831 _ACEOF
42832 cat confdefs.h >>conftest.$ac_ext
42833 cat >>conftest.$ac_ext <<_ACEOF
42834 /* end confdefs.h.  */
42835 #include <attr.h>
42836 _ACEOF
42837 if { (ac_try="$ac_cpp conftest.$ac_ext"
42838 case "(($ac_try" in
42839   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42840   *) ac_try_echo=$ac_try;;
42841 esac
42842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42843   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
42844   ac_status=$?
42845   grep -v '^ *+' conftest.er1 >conftest.err
42846   rm -f conftest.er1
42847   cat conftest.err >&5
42848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42849   (exit $ac_status); } >/dev/null && {
42850          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
42851          test ! -s conftest.err
42852        }; then
42853   ac_header_preproc=yes
42854 else
42855   echo "$as_me: failed program was:" >&5
42856 sed 's/^/| /' conftest.$ac_ext >&5
42857
42858   ac_header_preproc=no
42859 fi
42860
42861 rm -f conftest.err conftest.$ac_ext
42862 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
42863 echo "${ECHO_T}$ac_header_preproc" >&6; }
42864
42865 # So?  What about this header?
42866 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
42867   yes:no: )
42868     { echo "$as_me:$LINENO: WARNING: attr.h: accepted by the compiler, rejected by the preprocessor!" >&5
42869 echo "$as_me: WARNING: attr.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
42870     { echo "$as_me:$LINENO: WARNING: attr.h: proceeding with the compiler's result" >&5
42871 echo "$as_me: WARNING: attr.h: proceeding with the compiler's result" >&2;}
42872     ac_header_preproc=yes
42873     ;;
42874   no:yes:* )
42875     { echo "$as_me:$LINENO: WARNING: attr.h: present but cannot be compiled" >&5
42876 echo "$as_me: WARNING: attr.h: present but cannot be compiled" >&2;}
42877     { echo "$as_me:$LINENO: WARNING: attr.h:     check for missing prerequisite headers?" >&5
42878 echo "$as_me: WARNING: attr.h:     check for missing prerequisite headers?" >&2;}
42879     { echo "$as_me:$LINENO: WARNING: attr.h: see the Autoconf documentation" >&5
42880 echo "$as_me: WARNING: attr.h: see the Autoconf documentation" >&2;}
42881     { echo "$as_me:$LINENO: WARNING: attr.h:     section \"Present But Cannot Be Compiled\"" >&5
42882 echo "$as_me: WARNING: attr.h:     section \"Present But Cannot Be Compiled\"" >&2;}
42883     { echo "$as_me:$LINENO: WARNING: attr.h: proceeding with the preprocessor's result" >&5
42884 echo "$as_me: WARNING: attr.h: proceeding with the preprocessor's result" >&2;}
42885     { echo "$as_me:$LINENO: WARNING: attr.h: in the future, the compiler will take precedence" >&5
42886 echo "$as_me: WARNING: attr.h: in the future, the compiler will take precedence" >&2;}
42887
42888     ;;
42889 esac
42890 { echo "$as_me:$LINENO: checking for attr.h" >&5
42891 echo $ECHO_N "checking for attr.h... $ECHO_C" >&6; }
42892 if test "${ac_cv_header_attr_h+set}" = set; then
42893   echo $ECHO_N "(cached) $ECHO_C" >&6
42894 else
42895   ac_cv_header_attr_h=$ac_header_preproc
42896 fi
42897 { echo "$as_me:$LINENO: result: $ac_cv_header_attr_h" >&5
42898 echo "${ECHO_T}$ac_cv_header_attr_h" >&6; }
42899
42900 fi
42901 if test $ac_cv_header_attr_h = yes; then
42902
42903 cat >>confdefs.h <<\_ACEOF
42904 #define HAVE_ATTR_H 1
42905 _ACEOF
42906
42907 fi
42908
42909
42910
42911
42912
42913
42914
42915
42916 for ac_func in openat fstatat unlinkat fchownat futimesat
42917 do
42918 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42919 { echo "$as_me:$LINENO: checking for $ac_func" >&5
42920 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
42921 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
42922   echo $ECHO_N "(cached) $ECHO_C" >&6
42923 else
42924   cat >conftest.$ac_ext <<_ACEOF
42925 /* confdefs.h.  */
42926 _ACEOF
42927 cat confdefs.h >>conftest.$ac_ext
42928 cat >>conftest.$ac_ext <<_ACEOF
42929 /* end confdefs.h.  */
42930 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42931    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42932 #define $ac_func innocuous_$ac_func
42933
42934 /* System header to define __stub macros and hopefully few prototypes,
42935     which can conflict with char $ac_func (); below.
42936     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42937     <limits.h> exists even on freestanding compilers.  */
42938
42939 #ifdef __STDC__
42940 # include <limits.h>
42941 #else
42942 # include <assert.h>
42943 #endif
42944
42945 #undef $ac_func
42946
42947 /* Override any GCC internal prototype to avoid an error.
42948    Use char because int might match the return type of a GCC
42949    builtin and then its argument prototype would still apply.  */
42950 #ifdef __cplusplus
42951 extern "C"
42952 #endif
42953 char $ac_func ();
42954 /* The GNU C library defines this for functions which it implements
42955     to always fail with ENOSYS.  Some functions are actually named
42956     something starting with __ and the normal name is an alias.  */
42957 #if defined __stub_$ac_func || defined __stub___$ac_func
42958 choke me
42959 #endif
42960
42961 int
42962 main ()
42963 {
42964 return $ac_func ();
42965   ;
42966   return 0;
42967 }
42968 _ACEOF
42969 rm -f conftest.$ac_objext conftest$ac_exeext
42970 if { (ac_try="$ac_link"
42971 case "(($ac_try" in
42972   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42973   *) ac_try_echo=$ac_try;;
42974 esac
42975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42976   (eval "$ac_link") 2>conftest.er1
42977   ac_status=$?
42978   grep -v '^ *+' conftest.er1 >conftest.err
42979   rm -f conftest.er1
42980   cat conftest.err >&5
42981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42982   (exit $ac_status); } && {
42983          test -z "$ac_cxx_werror_flag" ||
42984          test ! -s conftest.err
42985        } && test -s conftest$ac_exeext &&
42986        $as_test_x conftest$ac_exeext; then
42987   eval "$as_ac_var=yes"
42988 else
42989   echo "$as_me: failed program was:" >&5
42990 sed 's/^/| /' conftest.$ac_ext >&5
42991
42992         eval "$as_ac_var=no"
42993 fi
42994
42995 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42996       conftest$ac_exeext conftest.$ac_ext
42997 fi
42998 ac_res=`eval echo '${'$as_ac_var'}'`
42999                { echo "$as_me:$LINENO: result: $ac_res" >&5
43000 echo "${ECHO_T}$ac_res" >&6; }
43001 if test `eval echo '${'$as_ac_var'}'` = yes; then
43002   cat >>confdefs.h <<_ACEOF
43003 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43004 _ACEOF
43005
43006              have_xattr=yes
43007
43008 cat >>confdefs.h <<\_ACEOF
43009 #define HAVE_OPENAT 1
43010 _ACEOF
43011
43012
43013 cat >>confdefs.h <<\_ACEOF
43014 #define HAVE_FSTATAT 1
43015 _ACEOF
43016
43017
43018 cat >>confdefs.h <<\_ACEOF
43019 #define HAVE_UNLINKAT 1
43020 _ACEOF
43021
43022
43023 cat >>confdefs.h <<\_ACEOF
43024 #define HAVE_FCHOWNAT 1
43025 _ACEOF
43026
43027
43028 cat >>confdefs.h <<\_ACEOF
43029 #define HAVE_FUTIMESAT 1
43030 _ACEOF
43031
43032
43033
43034 fi
43035 done
43036
43037
43038       if test $have_xattr = yes; then
43039          { echo "$as_me:$LINENO: checking for nvlist_next_nvpair in -lnvpair" >&5
43040 echo $ECHO_N "checking for nvlist_next_nvpair in -lnvpair... $ECHO_C" >&6; }
43041 if test "${ac_cv_lib_nvpair_nvlist_next_nvpair+set}" = set; then
43042   echo $ECHO_N "(cached) $ECHO_C" >&6
43043 else
43044   ac_check_lib_save_LIBS=$LIBS
43045 LIBS="-lnvpair  $LIBS"
43046 cat >conftest.$ac_ext <<_ACEOF
43047 /* confdefs.h.  */
43048 _ACEOF
43049 cat confdefs.h >>conftest.$ac_ext
43050 cat >>conftest.$ac_ext <<_ACEOF
43051 /* end confdefs.h.  */
43052
43053 /* Override any GCC internal prototype to avoid an error.
43054    Use char because int might match the return type of a GCC
43055    builtin and then its argument prototype would still apply.  */
43056 #ifdef __cplusplus
43057 extern "C"
43058 #endif
43059 char nvlist_next_nvpair ();
43060 int
43061 main ()
43062 {
43063 return nvlist_next_nvpair ();
43064   ;
43065   return 0;
43066 }
43067 _ACEOF
43068 rm -f conftest.$ac_objext conftest$ac_exeext
43069 if { (ac_try="$ac_link"
43070 case "(($ac_try" in
43071   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43072   *) ac_try_echo=$ac_try;;
43073 esac
43074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43075   (eval "$ac_link") 2>conftest.er1
43076   ac_status=$?
43077   grep -v '^ *+' conftest.er1 >conftest.err
43078   rm -f conftest.er1
43079   cat conftest.err >&5
43080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43081   (exit $ac_status); } && {
43082          test -z "$ac_cxx_werror_flag" ||
43083          test ! -s conftest.err
43084        } && test -s conftest$ac_exeext &&
43085        $as_test_x conftest$ac_exeext; then
43086   ac_cv_lib_nvpair_nvlist_next_nvpair=yes
43087 else
43088   echo "$as_me: failed program was:" >&5
43089 sed 's/^/| /' conftest.$ac_ext >&5
43090
43091         ac_cv_lib_nvpair_nvlist_next_nvpair=no
43092 fi
43093
43094 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43095       conftest$ac_exeext conftest.$ac_ext
43096 LIBS=$ac_check_lib_save_LIBS
43097 fi
43098 { echo "$as_me:$LINENO: result: $ac_cv_lib_nvpair_nvlist_next_nvpair" >&5
43099 echo "${ECHO_T}$ac_cv_lib_nvpair_nvlist_next_nvpair" >&6; }
43100 if test $ac_cv_lib_nvpair_nvlist_next_nvpair = yes; then
43101
43102
43103 cat >>confdefs.h <<\_ACEOF
43104 #define HAVE_NVLIST_NEXT_NVPAIR 1
43105 _ACEOF
43106
43107                 FDLIBS="-lnvpair $FDLIBS"
43108
43109
43110 fi
43111
43112       fi
43113    fi
43114
43115    if test x$support_xattr = xyes -a $have_xattr != yes; then
43116       { { echo "$as_me:$LINENO: error: xattr support explicitly enabled but no supported xattr implementation found,
43117   please either load the xattr libraries or rerun configure without --enable-xattr" >&5
43118 echo "$as_me: error: xattr support explicitly enabled but no supported xattr implementation found,
43119   please either load the xattr libraries or rerun configure without --enable-xattr" >&2;}
43120    { (exit 1); exit 1; }; }
43121    else
43122       if test $have_xattr = yes; then
43123
43124 cat >>confdefs.h <<\_ACEOF
43125 #define HAVE_XATTR 1
43126 _ACEOF
43127
43128       fi
43129    fi
43130 fi
43131
43132 PTHREAD_LIB=""
43133 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
43134 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
43135 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
43136   echo $ECHO_N "(cached) $ECHO_C" >&6
43137 else
43138   ac_check_lib_save_LIBS=$LIBS
43139 LIBS="-lpthread  $LIBS"
43140 cat >conftest.$ac_ext <<_ACEOF
43141 /* confdefs.h.  */
43142 _ACEOF
43143 cat confdefs.h >>conftest.$ac_ext
43144 cat >>conftest.$ac_ext <<_ACEOF
43145 /* end confdefs.h.  */
43146
43147 /* Override any GCC internal prototype to avoid an error.
43148    Use char because int might match the return type of a GCC
43149    builtin and then its argument prototype would still apply.  */
43150 #ifdef __cplusplus
43151 extern "C"
43152 #endif
43153 char pthread_create ();
43154 int
43155 main ()
43156 {
43157 return pthread_create ();
43158   ;
43159   return 0;
43160 }
43161 _ACEOF
43162 rm -f conftest.$ac_objext conftest$ac_exeext
43163 if { (ac_try="$ac_link"
43164 case "(($ac_try" in
43165   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43166   *) ac_try_echo=$ac_try;;
43167 esac
43168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43169   (eval "$ac_link") 2>conftest.er1
43170   ac_status=$?
43171   grep -v '^ *+' conftest.er1 >conftest.err
43172   rm -f conftest.er1
43173   cat conftest.err >&5
43174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43175   (exit $ac_status); } && {
43176          test -z "$ac_cxx_werror_flag" ||
43177          test ! -s conftest.err
43178        } && test -s conftest$ac_exeext &&
43179        $as_test_x conftest$ac_exeext; then
43180   ac_cv_lib_pthread_pthread_create=yes
43181 else
43182   echo "$as_me: failed program was:" >&5
43183 sed 's/^/| /' conftest.$ac_ext >&5
43184
43185         ac_cv_lib_pthread_pthread_create=no
43186 fi
43187
43188 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43189       conftest$ac_exeext conftest.$ac_ext
43190 LIBS=$ac_check_lib_save_LIBS
43191 fi
43192 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
43193 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
43194 if test $ac_cv_lib_pthread_pthread_create = yes; then
43195   PTHREAD_LIB="-lpthread"
43196 else
43197
43198        { echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
43199 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6; }
43200 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
43201   echo $ECHO_N "(cached) $ECHO_C" >&6
43202 else
43203   ac_check_lib_save_LIBS=$LIBS
43204 LIBS="-lpthreads  $LIBS"
43205 cat >conftest.$ac_ext <<_ACEOF
43206 /* confdefs.h.  */
43207 _ACEOF
43208 cat confdefs.h >>conftest.$ac_ext
43209 cat >>conftest.$ac_ext <<_ACEOF
43210 /* end confdefs.h.  */
43211
43212 /* Override any GCC internal prototype to avoid an error.
43213    Use char because int might match the return type of a GCC
43214    builtin and then its argument prototype would still apply.  */
43215 #ifdef __cplusplus
43216 extern "C"
43217 #endif
43218 char pthread_create ();
43219 int
43220 main ()
43221 {
43222 return pthread_create ();
43223   ;
43224   return 0;
43225 }
43226 _ACEOF
43227 rm -f conftest.$ac_objext conftest$ac_exeext
43228 if { (ac_try="$ac_link"
43229 case "(($ac_try" in
43230   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43231   *) ac_try_echo=$ac_try;;
43232 esac
43233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43234   (eval "$ac_link") 2>conftest.er1
43235   ac_status=$?
43236   grep -v '^ *+' conftest.er1 >conftest.err
43237   rm -f conftest.er1
43238   cat conftest.err >&5
43239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43240   (exit $ac_status); } && {
43241          test -z "$ac_cxx_werror_flag" ||
43242          test ! -s conftest.err
43243        } && test -s conftest$ac_exeext &&
43244        $as_test_x conftest$ac_exeext; then
43245   ac_cv_lib_pthreads_pthread_create=yes
43246 else
43247   echo "$as_me: failed program was:" >&5
43248 sed 's/^/| /' conftest.$ac_ext >&5
43249
43250         ac_cv_lib_pthreads_pthread_create=no
43251 fi
43252
43253 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43254       conftest$ac_exeext conftest.$ac_ext
43255 LIBS=$ac_check_lib_save_LIBS
43256 fi
43257 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
43258 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6; }
43259 if test $ac_cv_lib_pthreads_pthread_create = yes; then
43260   PTHREAD_LIB="-lpthreads"
43261 else
43262
43263               { echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
43264 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6; }
43265 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
43266   echo $ECHO_N "(cached) $ECHO_C" >&6
43267 else
43268   ac_check_lib_save_LIBS=$LIBS
43269 LIBS="-lc_r  $LIBS"
43270 cat >conftest.$ac_ext <<_ACEOF
43271 /* confdefs.h.  */
43272 _ACEOF
43273 cat confdefs.h >>conftest.$ac_ext
43274 cat >>conftest.$ac_ext <<_ACEOF
43275 /* end confdefs.h.  */
43276
43277 /* Override any GCC internal prototype to avoid an error.
43278    Use char because int might match the return type of a GCC
43279    builtin and then its argument prototype would still apply.  */
43280 #ifdef __cplusplus
43281 extern "C"
43282 #endif
43283 char pthread_create ();
43284 int
43285 main ()
43286 {
43287 return pthread_create ();
43288   ;
43289   return 0;
43290 }
43291 _ACEOF
43292 rm -f conftest.$ac_objext conftest$ac_exeext
43293 if { (ac_try="$ac_link"
43294 case "(($ac_try" in
43295   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43296   *) ac_try_echo=$ac_try;;
43297 esac
43298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43299   (eval "$ac_link") 2>conftest.er1
43300   ac_status=$?
43301   grep -v '^ *+' conftest.er1 >conftest.err
43302   rm -f conftest.er1
43303   cat conftest.err >&5
43304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43305   (exit $ac_status); } && {
43306          test -z "$ac_cxx_werror_flag" ||
43307          test ! -s conftest.err
43308        } && test -s conftest$ac_exeext &&
43309        $as_test_x conftest$ac_exeext; then
43310   ac_cv_lib_c_r_pthread_create=yes
43311 else
43312   echo "$as_me: failed program was:" >&5
43313 sed 's/^/| /' conftest.$ac_ext >&5
43314
43315         ac_cv_lib_c_r_pthread_create=no
43316 fi
43317
43318 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43319       conftest$ac_exeext conftest.$ac_ext
43320 LIBS=$ac_check_lib_save_LIBS
43321 fi
43322 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
43323 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6; }
43324 if test $ac_cv_lib_c_r_pthread_create = yes; then
43325   PTHREAD_LIB="-lc_r"
43326 else
43327
43328                      { echo "$as_me:$LINENO: checking for pthread_create" >&5
43329 echo $ECHO_N "checking for pthread_create... $ECHO_C" >&6; }
43330 if test "${ac_cv_func_pthread_create+set}" = set; then
43331   echo $ECHO_N "(cached) $ECHO_C" >&6
43332 else
43333   cat >conftest.$ac_ext <<_ACEOF
43334 /* confdefs.h.  */
43335 _ACEOF
43336 cat confdefs.h >>conftest.$ac_ext
43337 cat >>conftest.$ac_ext <<_ACEOF
43338 /* end confdefs.h.  */
43339 /* Define pthread_create to an innocuous variant, in case <limits.h> declares pthread_create.
43340    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43341 #define pthread_create innocuous_pthread_create
43342
43343 /* System header to define __stub macros and hopefully few prototypes,
43344     which can conflict with char pthread_create (); below.
43345     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43346     <limits.h> exists even on freestanding compilers.  */
43347
43348 #ifdef __STDC__
43349 # include <limits.h>
43350 #else
43351 # include <assert.h>
43352 #endif
43353
43354 #undef pthread_create
43355
43356 /* Override any GCC internal prototype to avoid an error.
43357    Use char because int might match the return type of a GCC
43358    builtin and then its argument prototype would still apply.  */
43359 #ifdef __cplusplus
43360 extern "C"
43361 #endif
43362 char pthread_create ();
43363 /* The GNU C library defines this for functions which it implements
43364     to always fail with ENOSYS.  Some functions are actually named
43365     something starting with __ and the normal name is an alias.  */
43366 #if defined __stub_pthread_create || defined __stub___pthread_create
43367 choke me
43368 #endif
43369
43370 int
43371 main ()
43372 {
43373 return pthread_create ();
43374   ;
43375   return 0;
43376 }
43377 _ACEOF
43378 rm -f conftest.$ac_objext conftest$ac_exeext
43379 if { (ac_try="$ac_link"
43380 case "(($ac_try" in
43381   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43382   *) ac_try_echo=$ac_try;;
43383 esac
43384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43385   (eval "$ac_link") 2>conftest.er1
43386   ac_status=$?
43387   grep -v '^ *+' conftest.er1 >conftest.err
43388   rm -f conftest.er1
43389   cat conftest.err >&5
43390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43391   (exit $ac_status); } && {
43392          test -z "$ac_cxx_werror_flag" ||
43393          test ! -s conftest.err
43394        } && test -s conftest$ac_exeext &&
43395        $as_test_x conftest$ac_exeext; then
43396   ac_cv_func_pthread_create=yes
43397 else
43398   echo "$as_me: failed program was:" >&5
43399 sed 's/^/| /' conftest.$ac_ext >&5
43400
43401         ac_cv_func_pthread_create=no
43402 fi
43403
43404 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43405       conftest$ac_exeext conftest.$ac_ext
43406 fi
43407 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
43408 echo "${ECHO_T}$ac_cv_func_pthread_create" >&6; }
43409
43410
43411
43412 fi
43413
43414
43415
43416 fi
43417
43418
43419
43420 fi
43421
43422
43423
43424
43425 for ac_header in sys/prctl.h sys/capability.h
43426 do
43427 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
43428 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
43429   { echo "$as_me:$LINENO: checking for $ac_header" >&5
43430 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
43431 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
43432   echo $ECHO_N "(cached) $ECHO_C" >&6
43433 fi
43434 ac_res=`eval echo '${'$as_ac_Header'}'`
43435                { echo "$as_me:$LINENO: result: $ac_res" >&5
43436 echo "${ECHO_T}$ac_res" >&6; }
43437 else
43438   # Is the header compilable?
43439 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
43440 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
43441 cat >conftest.$ac_ext <<_ACEOF
43442 /* confdefs.h.  */
43443 _ACEOF
43444 cat confdefs.h >>conftest.$ac_ext
43445 cat >>conftest.$ac_ext <<_ACEOF
43446 /* end confdefs.h.  */
43447 $ac_includes_default
43448 #include <$ac_header>
43449 _ACEOF
43450 rm -f conftest.$ac_objext
43451 if { (ac_try="$ac_compile"
43452 case "(($ac_try" in
43453   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43454   *) ac_try_echo=$ac_try;;
43455 esac
43456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43457   (eval "$ac_compile") 2>conftest.er1
43458   ac_status=$?
43459   grep -v '^ *+' conftest.er1 >conftest.err
43460   rm -f conftest.er1
43461   cat conftest.err >&5
43462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43463   (exit $ac_status); } && {
43464          test -z "$ac_cxx_werror_flag" ||
43465          test ! -s conftest.err
43466        } && test -s conftest.$ac_objext; then
43467   ac_header_compiler=yes
43468 else
43469   echo "$as_me: failed program was:" >&5
43470 sed 's/^/| /' conftest.$ac_ext >&5
43471
43472         ac_header_compiler=no
43473 fi
43474
43475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43476 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
43477 echo "${ECHO_T}$ac_header_compiler" >&6; }
43478
43479 # Is the header present?
43480 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
43481 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
43482 cat >conftest.$ac_ext <<_ACEOF
43483 /* confdefs.h.  */
43484 _ACEOF
43485 cat confdefs.h >>conftest.$ac_ext
43486 cat >>conftest.$ac_ext <<_ACEOF
43487 /* end confdefs.h.  */
43488 #include <$ac_header>
43489 _ACEOF
43490 if { (ac_try="$ac_cpp conftest.$ac_ext"
43491 case "(($ac_try" in
43492   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43493   *) ac_try_echo=$ac_try;;
43494 esac
43495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43496   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
43497   ac_status=$?
43498   grep -v '^ *+' conftest.er1 >conftest.err
43499   rm -f conftest.er1
43500   cat conftest.err >&5
43501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43502   (exit $ac_status); } >/dev/null && {
43503          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
43504          test ! -s conftest.err
43505        }; then
43506   ac_header_preproc=yes
43507 else
43508   echo "$as_me: failed program was:" >&5
43509 sed 's/^/| /' conftest.$ac_ext >&5
43510
43511   ac_header_preproc=no
43512 fi
43513
43514 rm -f conftest.err conftest.$ac_ext
43515 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
43516 echo "${ECHO_T}$ac_header_preproc" >&6; }
43517
43518 # So?  What about this header?
43519 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
43520   yes:no: )
43521     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
43522 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
43523     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
43524 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
43525     ac_header_preproc=yes
43526     ;;
43527   no:yes:* )
43528     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
43529 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
43530     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
43531 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
43532     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
43533 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
43534     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
43535 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
43536     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
43537 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
43538     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
43539 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
43540
43541     ;;
43542 esac
43543 { echo "$as_me:$LINENO: checking for $ac_header" >&5
43544 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
43545 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
43546   echo $ECHO_N "(cached) $ECHO_C" >&6
43547 else
43548   eval "$as_ac_Header=\$ac_header_preproc"
43549 fi
43550 ac_res=`eval echo '${'$as_ac_Header'}'`
43551                { echo "$as_me:$LINENO: result: $ac_res" >&5
43552 echo "${ECHO_T}$ac_res" >&6; }
43553
43554 fi
43555 if test `eval echo '${'$as_ac_Header'}'` = yes; then
43556   cat >>confdefs.h <<_ACEOF
43557 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
43558 _ACEOF
43559
43560 fi
43561
43562 done
43563
43564
43565
43566 for ac_func in prctl setreuid
43567 do
43568 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43569 { echo "$as_me:$LINENO: checking for $ac_func" >&5
43570 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
43571 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
43572   echo $ECHO_N "(cached) $ECHO_C" >&6
43573 else
43574   cat >conftest.$ac_ext <<_ACEOF
43575 /* confdefs.h.  */
43576 _ACEOF
43577 cat confdefs.h >>conftest.$ac_ext
43578 cat >>conftest.$ac_ext <<_ACEOF
43579 /* end confdefs.h.  */
43580 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43581    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43582 #define $ac_func innocuous_$ac_func
43583
43584 /* System header to define __stub macros and hopefully few prototypes,
43585     which can conflict with char $ac_func (); below.
43586     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43587     <limits.h> exists even on freestanding compilers.  */
43588
43589 #ifdef __STDC__
43590 # include <limits.h>
43591 #else
43592 # include <assert.h>
43593 #endif
43594
43595 #undef $ac_func
43596
43597 /* Override any GCC internal prototype to avoid an error.
43598    Use char because int might match the return type of a GCC
43599    builtin and then its argument prototype would still apply.  */
43600 #ifdef __cplusplus
43601 extern "C"
43602 #endif
43603 char $ac_func ();
43604 /* The GNU C library defines this for functions which it implements
43605     to always fail with ENOSYS.  Some functions are actually named
43606     something starting with __ and the normal name is an alias.  */
43607 #if defined __stub_$ac_func || defined __stub___$ac_func
43608 choke me
43609 #endif
43610
43611 int
43612 main ()
43613 {
43614 return $ac_func ();
43615   ;
43616   return 0;
43617 }
43618 _ACEOF
43619 rm -f conftest.$ac_objext conftest$ac_exeext
43620 if { (ac_try="$ac_link"
43621 case "(($ac_try" in
43622   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43623   *) ac_try_echo=$ac_try;;
43624 esac
43625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43626   (eval "$ac_link") 2>conftest.er1
43627   ac_status=$?
43628   grep -v '^ *+' conftest.er1 >conftest.err
43629   rm -f conftest.er1
43630   cat conftest.err >&5
43631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43632   (exit $ac_status); } && {
43633          test -z "$ac_cxx_werror_flag" ||
43634          test ! -s conftest.err
43635        } && test -s conftest$ac_exeext &&
43636        $as_test_x conftest$ac_exeext; then
43637   eval "$as_ac_var=yes"
43638 else
43639   echo "$as_me: failed program was:" >&5
43640 sed 's/^/| /' conftest.$ac_ext >&5
43641
43642         eval "$as_ac_var=no"
43643 fi
43644
43645 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43646       conftest$ac_exeext conftest.$ac_ext
43647 fi
43648 ac_res=`eval echo '${'$as_ac_var'}'`
43649                { echo "$as_me:$LINENO: result: $ac_res" >&5
43650 echo "${ECHO_T}$ac_res" >&6; }
43651 if test `eval echo '${'$as_ac_var'}'` = yes; then
43652   cat >>confdefs.h <<_ACEOF
43653 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43654 _ACEOF
43655
43656 fi
43657 done
43658
43659 { echo "$as_me:$LINENO: checking for cap_set_proc in -lcap" >&5
43660 echo $ECHO_N "checking for cap_set_proc in -lcap... $ECHO_C" >&6; }
43661 if test "${ac_cv_lib_cap_cap_set_proc+set}" = set; then
43662   echo $ECHO_N "(cached) $ECHO_C" >&6
43663 else
43664   ac_check_lib_save_LIBS=$LIBS
43665 LIBS="-lcap  $LIBS"
43666 cat >conftest.$ac_ext <<_ACEOF
43667 /* confdefs.h.  */
43668 _ACEOF
43669 cat confdefs.h >>conftest.$ac_ext
43670 cat >>conftest.$ac_ext <<_ACEOF
43671 /* end confdefs.h.  */
43672
43673 /* Override any GCC internal prototype to avoid an error.
43674    Use char because int might match the return type of a GCC
43675    builtin and then its argument prototype would still apply.  */
43676 #ifdef __cplusplus
43677 extern "C"
43678 #endif
43679 char cap_set_proc ();
43680 int
43681 main ()
43682 {
43683 return cap_set_proc ();
43684   ;
43685   return 0;
43686 }
43687 _ACEOF
43688 rm -f conftest.$ac_objext conftest$ac_exeext
43689 if { (ac_try="$ac_link"
43690 case "(($ac_try" in
43691   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43692   *) ac_try_echo=$ac_try;;
43693 esac
43694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43695   (eval "$ac_link") 2>conftest.er1
43696   ac_status=$?
43697   grep -v '^ *+' conftest.er1 >conftest.err
43698   rm -f conftest.er1
43699   cat conftest.err >&5
43700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43701   (exit $ac_status); } && {
43702          test -z "$ac_cxx_werror_flag" ||
43703          test ! -s conftest.err
43704        } && test -s conftest$ac_exeext &&
43705        $as_test_x conftest$ac_exeext; then
43706   ac_cv_lib_cap_cap_set_proc=yes
43707 else
43708   echo "$as_me: failed program was:" >&5
43709 sed 's/^/| /' conftest.$ac_ext >&5
43710
43711         ac_cv_lib_cap_cap_set_proc=no
43712 fi
43713
43714 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43715       conftest$ac_exeext conftest.$ac_ext
43716 LIBS=$ac_check_lib_save_LIBS
43717 fi
43718 { echo "$as_me:$LINENO: result: $ac_cv_lib_cap_cap_set_proc" >&5
43719 echo "${ECHO_T}$ac_cv_lib_cap_cap_set_proc" >&6; }
43720 if test $ac_cv_lib_cap_cap_set_proc = yes; then
43721   CAP_LIBS="-lcap"
43722 else
43723   CAP_LIBS=
43724 fi
43725
43726 if test x$CAP_LIBS = x-lcap; then
43727
43728 cat >>confdefs.h <<\_ACEOF
43729 #define HAVE_LIBCAP 1
43730 _ACEOF
43731
43732 fi
43733
43734
43735
43736 cat >>confdefs.h <<\_ACEOF
43737 #define FDLIBS 1
43738 _ACEOF
43739
43740
43741 CFLAGS=${CFLAGS--O}
43742
43743 if test x$have_gcc = xyes ; then
43744    CPPFLAGS="$CPPFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
43745    CFLAGS="$CFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
43746 fi
43747 LDFLAGS=${LDFLAGS--O}
43748 DB_LIBS="${SQL_LFLAGS}"
43749 CPPFLAGS="$CPPFLAGS"
43750 CFLAGS="$CFLAGS"
43751
43752
43753
43754
43755
43756
43757
43758
43759
43760
43761
43762
43763
43764
43765
43766
43767 OBJLIST=
43768
43769
43770 lld="lld"
43771 llu="llu"
43772
43773 WCFLAGS=
43774 WLDFLAGS=
43775
43776 PFILES="platforms/Makefile"
43777 PSCMD="ps -e"
43778 WIN32=
43779 MACOSX=
43780
43781 hostname=`uname -n | cut -d '.' -f 1`
43782 if test x${hostname} = x ; then
43783    hostname="localhost"
43784 fi
43785 ping -c 1 $hostname 2>/dev/null 1>/dev/null
43786 if test ! $? = 0; then
43787   hostname="localhost"
43788 fi
43789
43790 case "$DISTNAME" in
43791 aix)
43792    DISTVER=`uname -r`
43793    PSCMD="ps -e -o pid,comm"
43794    PFILES="${PFILES} \
43795       platforms/aix/Makefile"
43796    TAPEDRIVE="/dev/rmt0.1"
43797   ;;
43798 alpha)
43799    DISTVER=`uname -r`
43800    PTHREAD_LIB="-lpthread -lexc"
43801    if test "${CC}" = "gcc" ; then
43802       lld="lld"
43803       llu="llu"
43804    else
43805       lld="ld"
43806       llu="lu"
43807    fi
43808    TAPEDRIVE="/dev/nrmt0"
43809   ;;
43810 bsdi)
43811    DISTVER=`uname -a |awk '{print $3}'`
43812    TAPEDRIVE="/dev/nrmt0"
43813    PTHREAD_LIB="-pthread"
43814    CFLAGS="${CFLAGS} -pthread"
43815    PSCMD="ps -ax -o pid,command"
43816    lld="qd"
43817    llu="qu"
43818    PFILES="${PFILES} \
43819        platforms/bsdi/Makefile \
43820        platforms/bsdi/bacula-fd \
43821        platforms/bsdi/bacula-sd \
43822        platforms/bsdi/bacula-dir"
43823    largefile_support="yes"
43824   ;;
43825 cygwin)
43826    DISTVER=`uname -a |awk '{print $3}'`
43827    TAPEDRIVE="/dev/nrst0"
43828    WIN32=win32
43829    WCFLAGS="-mwindows"
43830    WLDFLAGS="-mwindows"
43831   ;;
43832 darwin)
43833    DISTVER=`uname -r`
43834    TAPEDRIVE="/dev/nst0"
43835    PSCMD="ps -e -o pid,command"
43836    MACOSX=macosx
43837    PFILES="${PFILES} \
43838       platforms/darwin/Makefile"
43839   ;;
43840 osx)
43841    DISTVER=`uname -r`
43842    TAPEDRIVE="/dev/nst0"
43843    PSCMD="ps -e -o pid,command"
43844    MACOSX=macosx
43845    PFILES="${PFILES} \
43846       platforms/osx/Makefile"
43847   ;;
43848 debian)
43849    if `test -f /etc/apt/sources.list && grep -q ubuntu /etc/apt/sources.list`; then
43850       DISTNAME="ubuntu"
43851    fi
43852    DISTVER=`cat /etc/debian_version`
43853    if test -f /etc/lsb-release ; then
43854       . /etc/lsb-release
43855       if test "x$DISTRIB_ID" != "x" ; then
43856          DISTNAME=$DISTRIB_ID
43857       fi
43858       if test "x$DISTRIB_RELEASE" != "x" ; then
43859          DISTVER=$DISTRIB_RELEASE
43860       fi
43861    fi
43862    if test "$DISTNAME" = "Ubuntu" ; then
43863       DISTNAME="ubuntu"
43864    fi
43865    TAPEDRIVE="/dev/nst0"
43866    PSCMD="ps -e -o pid,command"
43867    if test "$DISTNAME" = "ubuntu" ; then
43868       PFILES="${PFILES} \
43869          platforms/ubuntu/Makefile \
43870          platforms/ubuntu/bacula-fd \
43871          platforms/ubuntu/bacula-sd \
43872          platforms/ubuntu/bacula-dir"
43873    else
43874       PFILES="${PFILES} \
43875          platforms/debian/Makefile \
43876          platforms/debian/bacula-fd \
43877          platforms/debian/bacula-sd \
43878          platforms/debian/bacula-dir"
43879    fi
43880   ;;
43881 freebsd)
43882    DISTVER=`uname -a |awk '{print $3}'`
43883    VER=`echo $DISTVER | cut -c 1`
43884    if test x$VER = x4 ; then
43885       PTHREAD_LIB="${PTHREAD_LIBS:--pthread}"
43886       CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS:--pthread}"
43887    fi
43888    lld="qd"
43889    llu="qu"
43890    TAPEDRIVE="/dev/nrsa0"
43891    PSCMD="ps -ax -o pid,command"
43892    PFILES="${PFILES} \
43893        platforms/freebsd/Makefile \
43894        platforms/freebsd/bacula-fd \
43895        platforms/freebsd/bacula-sd \
43896        platforms/freebsd/bacula-dir"
43897    largefile_support="yes"
43898   ;;
43899 hpux)
43900    PSCMD="UNIX95=1; ps -e -o pid,comm"
43901    CFLAGS="${CFLAGS} -D_XOPEN_SOURCE_EXTENDED=1"
43902    DISTVER=`uname -r`
43903    TAPEDRIVE="/dev/rmt/0hnb"
43904    PTHREAD_LIB="-lpthread"
43905    cat >>confdefs.h <<\_ACEOF
43906 #define _INCLUDE_LONGLONG 1
43907 _ACEOF
43908
43909   ;;
43910 irix)
43911    DISTVER=`uname -r`
43912    TAPEDRIVE="/dev/rmt/0cbn"
43913    PSCMD="ps -e -o pid,comm"
43914    PFILES="${PFILES} \
43915        platforms/irix/Makefile \
43916        platforms/irix/bacula-fd \
43917        platforms/irix/bacula-sd \
43918        platforms/irix/bacula-dir"
43919   ;;
43920 netbsd)
43921    DISTVER=`uname -a |awk '{print $3}'`
43922    lld="qd"
43923    llu="qu"
43924    TAPEDRIVE="/dev/nrst0"
43925    PSCMD="ps -ax -o pid,command"
43926    PTHREAD_LIB="-pthread"
43927    CFLAGS="${CFLAGS} -pthread"
43928   ;;
43929 openbsd)
43930    DISTVER=`uname -a |awk '{print $3}'`
43931    lld="qd"
43932    llu="qu"
43933    TAPEDRIVE="/dev/nrst0"
43934    PSCMD="ps -ax -o pid,command"
43935    PTHREAD_LIB="-pthread"
43936    CFLAGS="${CFLAGS} -pthread"
43937    PFILES="${PFILES} \
43938        platforms/openbsd/Makefile \
43939        platforms/openbsd/bacula-fd \
43940        platforms/openbsd/bacula-sd \
43941        platforms/openbsd/bacula-dir"
43942   ;;
43943 redhat)
43944    if test -f /etc/whitebox-release ; then
43945       f=/etc/whitebox-release
43946    else
43947       f=/etc/redhat-release
43948    fi
43949    if test `cat $f | grep release |\
43950          cut -f 3 -d ' '`x = "Enterprise"x ; then
43951       DISTVER="Enterprise "`cat $f | grep release |\
43952           cut -f 6 -d ' '`
43953    else
43954        DISTVER=`cat /etc/redhat-release | grep release |\
43955            cut -f 5 -d ' '`
43956    fi
43957    TAPEDRIVE="/dev/nst0"
43958    PSCMD="ps -e -o pid,command"
43959    PFILES="${PFILES} \
43960        platforms/redhat/Makefile \
43961        platforms/redhat/bacula-fd \
43962        platforms/redhat/bacula-sd \
43963        platforms/redhat/bacula-dir
43964        "
43965   ;;
43966 mandrake)
43967    DISTVER=`cat /etc/mandrake-release | grep release |\
43968       cut -f 5 -d ' '`
43969    TAPEDRIVE="/dev/nst0"
43970    PSCMD="ps -e -o pid,command"
43971    PFILES="${PFILES} \
43972        platforms/mandrake/Makefile \
43973        platforms/mandrake/bacula-fd \
43974        platforms/mandrake/bacula-sd \
43975        platforms/mandrake/bacula-dir \
43976        platforms/mandrake/bacula.spec \
43977        "
43978   ;;
43979 gentoo)
43980    DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
43981    TAPEDRIVE="/dev/nst0"
43982    PSCMD="ps -e -o pid,command"
43983    PFILES="${PFILES} \
43984        platforms/gentoo/Makefile \
43985     platforms/gentoo/bacula-init \
43986        platforms/gentoo/bacula-fd \
43987        platforms/gentoo/bacula-sd \
43988        platforms/gentoo/bacula-dir"
43989   ;;
43990 slackware)
43991    DISTVER=`cat /etc/slackware-version`
43992    TAPEDRIVE="/dev/nst0"
43993    PSCMD="ps -e -o pid,command"
43994    PFILES="${PFILES} \
43995        platforms/slackware/Makefile \
43996        platforms/slackware/rc.bacula-fd \
43997        platforms/slackware/rc.bacula-sd \
43998        platforms/slackware/rc.bacula-dir\
43999        platforms/slackware/functions.bacula"
44000   ;;
44001 solaris)
44002    DISTVER=`uname -r`
44003    TAPEDRIVE="/dev/rmt/0cbn"
44004    PSCMD="ps -e -o pid,comm"
44005    PFILES="${PFILES} \
44006        platforms/solaris/Makefile \
44007        platforms/solaris/bacula-fd \
44008        platforms/solaris/bacula-sd \
44009        platforms/solaris/bacula-dir"
44010    if test x$DISTVER = x5.6 ; then
44011        cat >>confdefs.h <<\_ACEOF
44012 #define HAVE_OLD_SOCKOPT 1
44013 _ACEOF
44014
44015    fi
44016    LIBS="$LIBS -lresolv"
44017   ;;
44018 suse)
44019    DISTVER=`cat /etc/SuSE-release |grep VERSION|\
44020        cut -f 3 -d ' '`
44021    TAPEDRIVE="/dev/nst0"
44022    PSCMD="ps -e -o pid,command"
44023    PFILES="${PFILES} \
44024        platforms/suse/Makefile \
44025        platforms/suse/bacula-fd \
44026        platforms/suse/bacula-sd \
44027        platforms/suse/bacula-dir \
44028        platforms/suse/bacula \
44029        platforms/suse/bacula.spec"
44030   ;;
44031 suse5)
44032    DISTNAME=suse
44033    DISTVER=5.x
44034    TAPEDRIVE="/dev/nst0"
44035    PSCMD="ps -e -o pid,command"
44036    PFILES="${PFILES} \
44037        platforms/suse/Makefile \
44038        platforms/suse/bacula-fd \
44039        platforms/suse/bacula-sd \
44040        platforms/suse/bacula-dir"
44041   ;;
44042 unknown)
44043    DISTVER=unknown
44044    TAPEDRIVE="/dev/nst0"
44045   ;;
44046 *)
44047   echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
44048   ;;
44049 esac
44050
44051
44052
44053 LIBS="$PTHREAD_LIB $LIBS"
44054
44055 cat >>confdefs.h <<_ACEOF
44056 #define lld "$lld"
44057 _ACEOF
44058
44059 cat >>confdefs.h <<_ACEOF
44060 #define llu "$llu"
44061 _ACEOF
44062
44063
44064
44065
44066
44067
44068
44069
44070 MCOMMON=./autoconf/Make.common
44071
44072
44073 if test "x${subsysdir}" = "x${sbindir}" ; then
44074    echo " "
44075    echo " "
44076    echo "You have set both --sbindir and --with-subsys-dir"
44077    echo "  equal to: ${subsysdir} "
44078    echo "This is not permitted. Please reconfigure."
44079    echo " "
44080    echo "Aborting configuration ..."
44081    echo " "
44082    echo " "
44083    exit 1
44084 fi
44085
44086 ac_config_files="$ac_config_files autoconf/Make.common Makefile manpages/Makefile scripts/startmysql scripts/stopmysql scripts/btraceback scripts/startit scripts/stopit scripts/bconsole scripts/gconsole scripts/bacula scripts/bacula-ctl-dir scripts/bacula-ctl-fd scripts/bacula-ctl-sd scripts/devel_bacula scripts/Makefile scripts/logrotate scripts/bacula.desktop.gnome1 scripts/bacula.desktop.gnome2 scripts/bacula.desktop.gnome1.consolehelper scripts/bacula.desktop.gnome2.consolehelper scripts/bacula.desktop.gnome1.xsu scripts/bacula.desktop.gnome2.xsu scripts/bgnome-console.console_apps scripts/mtx-changer scripts/disk-changer scripts/dvd-handler scripts/dvd-simulator scripts/bacula-tray-monitor.desktop scripts/logwatch/Makefile scripts/logwatch/logfile.bacula.conf scripts/wxconsole.console_apps scripts/wxconsole.desktop.consolehelper scripts/wxconsole.desktop.xsu scripts/bat.desktop scripts/bat.desktop.xsu scripts/bat.desktop.consolehelper scripts/bat.console_apps src/Makefile src/host.h src/console/Makefile src/console/bconsole.conf src/qt-console/bat.conf src/qt-console/bat.pro src/qt-console/bat.pro.mingw32 src/qt-console/install_conf_file src/wx-console/Makefile src/wx-console/bwx-console.conf src/tray-monitor/Makefile src/tray-monitor/tray-monitor.conf src/dird/Makefile src/dird/bacula-dir.conf src/lib/Makefile src/stored/Makefile src/stored/bacula-sd.conf src/filed/Makefile src/filed/bacula-fd.conf src/cats/Makefile src/cats/make_catalog_backup src/cats/delete_catalog_backup src/cats/create_postgresql_database src/cats/update_postgresql_tables src/cats/make_postgresql_tables src/cats/grant_postgresql_privileges src/cats/drop_postgresql_tables src/cats/drop_postgresql_database src/cats/create_mysql_database src/cats/update_mysql_tables src/cats/make_mysql_tables src/cats/grant_mysql_privileges src/cats/drop_mysql_tables src/cats/drop_mysql_database src/cats/create_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_mysql_tables_10_to_11 updatedb/update_sqlite3_tables_10_to_11 updatedb/update_postgresql_tables_10_to_11 examples/nagios/check_bacula/Makefile $PFILES"
44087
44088 ac_config_commands="$ac_config_commands default"
44089
44090 cat >confcache <<\_ACEOF
44091 # This file is a shell script that caches the results of configure
44092 # tests run on this system so they can be shared between configure
44093 # scripts and configure runs, see configure's option --config-cache.
44094 # It is not useful on other systems.  If it contains results you don't
44095 # want to keep, you may remove or edit it.
44096 #
44097 # config.status only pays attention to the cache file if you give it
44098 # the --recheck option to rerun configure.
44099 #
44100 # `ac_cv_env_foo' variables (set or unset) will be overridden when
44101 # loading this file, other *unset* `ac_cv_foo' will be assigned the
44102 # following values.
44103
44104 _ACEOF
44105
44106 # The following way of writing the cache mishandles newlines in values,
44107 # but we know of no workaround that is simple, portable, and efficient.
44108 # So, we kill variables containing newlines.
44109 # Ultrix sh set writes to stderr and can't be redirected directly,
44110 # and sets the high bit in the cache file unless we assign to the vars.
44111 (
44112   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
44113     eval ac_val=\$$ac_var
44114     case $ac_val in #(
44115     *${as_nl}*)
44116       case $ac_var in #(
44117       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
44118 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
44119       esac
44120       case $ac_var in #(
44121       _ | IFS | as_nl) ;; #(
44122       *) $as_unset $ac_var ;;
44123       esac ;;
44124     esac
44125   done
44126
44127   (set) 2>&1 |
44128     case $as_nl`(ac_space=' '; set) 2>&1` in #(
44129     *${as_nl}ac_space=\ *)
44130       # `set' does not quote correctly, so add quotes (double-quote
44131       # substitution turns \\\\ into \\, and sed turns \\ into \).
44132       sed -n \
44133         "s/'/'\\\\''/g;
44134           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
44135       ;; #(
44136     *)
44137       # `set' quotes correctly as required by POSIX, so do not add quotes.
44138       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
44139       ;;
44140     esac |
44141     sort
44142 ) |
44143   sed '
44144      /^ac_cv_env_/b end
44145      t clear
44146      :clear
44147      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
44148      t end
44149      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
44150      :end' >>confcache
44151 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
44152   if test -w "$cache_file"; then
44153     test "x$cache_file" != "x/dev/null" &&
44154       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
44155 echo "$as_me: updating cache $cache_file" >&6;}
44156     cat confcache >$cache_file
44157   else
44158     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
44159 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
44160   fi
44161 fi
44162 rm -f confcache
44163
44164 test "x$prefix" = xNONE && prefix=$ac_default_prefix
44165 # Let make expand exec_prefix.
44166 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
44167
44168 DEFS=-DHAVE_CONFIG_H
44169
44170 ac_libobjs=
44171 ac_ltlibobjs=
44172 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
44173   # 1. Remove the extension, and $U if already installed.
44174   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
44175   ac_i=`echo "$ac_i" | sed "$ac_script"`
44176   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
44177   #    will be set to the directory where LIBOBJS objects are built.
44178   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
44179   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
44180 done
44181 LIBOBJS=$ac_libobjs
44182
44183 LTLIBOBJS=$ac_ltlibobjs
44184
44185
44186
44187 : ${CONFIG_STATUS=./config.status}
44188 ac_clean_files_save=$ac_clean_files
44189 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
44190 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
44191 echo "$as_me: creating $CONFIG_STATUS" >&6;}
44192 cat >$CONFIG_STATUS <<_ACEOF
44193 #! $SHELL
44194 # Generated by $as_me.
44195 # Run this file to recreate the current configuration.
44196 # Compiler output produced by configure, useful for debugging
44197 # configure, is in config.log if it exists.
44198
44199 debug=false
44200 ac_cs_recheck=false
44201 ac_cs_silent=false
44202 SHELL=\${CONFIG_SHELL-$SHELL}
44203 _ACEOF
44204
44205 cat >>$CONFIG_STATUS <<\_ACEOF
44206 ## --------------------- ##
44207 ## M4sh Initialization.  ##
44208 ## --------------------- ##
44209
44210 # Be more Bourne compatible
44211 DUALCASE=1; export DUALCASE # for MKS sh
44212 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
44213   emulate sh
44214   NULLCMD=:
44215   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
44216   # is contrary to our usage.  Disable this feature.
44217   alias -g '${1+"$@"}'='"$@"'
44218   setopt NO_GLOB_SUBST
44219 else
44220   case `(set -o) 2>/dev/null` in
44221   *posix*) set -o posix ;;
44222 esac
44223
44224 fi
44225
44226
44227
44228
44229 # PATH needs CR
44230 # Avoid depending upon Character Ranges.
44231 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
44232 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
44233 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
44234 as_cr_digits='0123456789'
44235 as_cr_alnum=$as_cr_Letters$as_cr_digits
44236
44237 # The user is always right.
44238 if test "${PATH_SEPARATOR+set}" != set; then
44239   echo "#! /bin/sh" >conf$$.sh
44240   echo  "exit 0"   >>conf$$.sh
44241   chmod +x conf$$.sh
44242   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
44243     PATH_SEPARATOR=';'
44244   else
44245     PATH_SEPARATOR=:
44246   fi
44247   rm -f conf$$.sh
44248 fi
44249
44250 # Support unset when possible.
44251 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
44252   as_unset=unset
44253 else
44254   as_unset=false
44255 fi
44256
44257
44258 # IFS
44259 # We need space, tab and new line, in precisely that order.  Quoting is
44260 # there to prevent editors from complaining about space-tab.
44261 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
44262 # splitting by setting IFS to empty value.)
44263 as_nl='
44264 '
44265 IFS=" ""        $as_nl"
44266
44267 # Find who we are.  Look in the path if we contain no directory separator.
44268 case $0 in
44269   *[\\/]* ) as_myself=$0 ;;
44270   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44271 for as_dir in $PATH
44272 do
44273   IFS=$as_save_IFS
44274   test -z "$as_dir" && as_dir=.
44275   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
44276 done
44277 IFS=$as_save_IFS
44278
44279      ;;
44280 esac
44281 # We did not find ourselves, most probably we were run as `sh COMMAND'
44282 # in which case we are not to be found in the path.
44283 if test "x$as_myself" = x; then
44284   as_myself=$0
44285 fi
44286 if test ! -f "$as_myself"; then
44287   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
44288   { (exit 1); exit 1; }
44289 fi
44290
44291 # Work around bugs in pre-3.0 UWIN ksh.
44292 for as_var in ENV MAIL MAILPATH
44293 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
44294 done
44295 PS1='$ '
44296 PS2='> '
44297 PS4='+ '
44298
44299 # NLS nuisances.
44300 for as_var in \
44301   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
44302   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44303   LC_TELEPHONE LC_TIME
44304 do
44305   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
44306     eval $as_var=C; export $as_var
44307   else
44308     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
44309   fi
44310 done
44311
44312 # Required to use basename.
44313 if expr a : '\(a\)' >/dev/null 2>&1 &&
44314    test "X`expr 00001 : '.*\(...\)'`" = X001; then
44315   as_expr=expr
44316 else
44317   as_expr=false
44318 fi
44319
44320 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
44321   as_basename=basename
44322 else
44323   as_basename=false
44324 fi
44325
44326
44327 # Name of the executable.
44328 as_me=`$as_basename -- "$0" ||
44329 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
44330          X"$0" : 'X\(//\)$' \| \
44331          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
44332 echo X/"$0" |
44333     sed '/^.*\/\([^/][^/]*\)\/*$/{
44334             s//\1/
44335             q
44336           }
44337           /^X\/\(\/\/\)$/{
44338             s//\1/
44339             q
44340           }
44341           /^X\/\(\/\).*/{
44342             s//\1/
44343             q
44344           }
44345           s/.*/./; q'`
44346
44347 # CDPATH.
44348 $as_unset CDPATH
44349
44350
44351
44352   as_lineno_1=$LINENO
44353   as_lineno_2=$LINENO
44354   test "x$as_lineno_1" != "x$as_lineno_2" &&
44355   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
44356
44357   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
44358   # uniformly replaced by the line number.  The first 'sed' inserts a
44359   # line-number line after each line using $LINENO; the second 'sed'
44360   # does the real work.  The second script uses 'N' to pair each
44361   # line-number line with the line containing $LINENO, and appends
44362   # trailing '-' during substitution so that $LINENO is not a special
44363   # case at line end.
44364   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
44365   # scripts with optimization help from Paolo Bonzini.  Blame Lee
44366   # E. McMahon (1931-1989) for sed's syntax.  :-)
44367   sed -n '
44368     p
44369     /[$]LINENO/=
44370   ' <$as_myself |
44371     sed '
44372       s/[$]LINENO.*/&-/
44373       t lineno
44374       b
44375       :lineno
44376       N
44377       :loop
44378       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
44379       t loop
44380       s/-\n.*//
44381     ' >$as_me.lineno &&
44382   chmod +x "$as_me.lineno" ||
44383     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
44384    { (exit 1); exit 1; }; }
44385
44386   # Don't try to exec as it changes $[0], causing all sort of problems
44387   # (the dirname of $[0] is not the place where we might find the
44388   # original and so on.  Autoconf is especially sensitive to this).
44389   . "./$as_me.lineno"
44390   # Exit status is that of the last command.
44391   exit
44392 }
44393
44394
44395 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
44396   as_dirname=dirname
44397 else
44398   as_dirname=false
44399 fi
44400
44401 ECHO_C= ECHO_N= ECHO_T=
44402 case `echo -n x` in
44403 -n*)
44404   case `echo 'x\c'` in
44405   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
44406   *)   ECHO_C='\c';;
44407   esac;;
44408 *)
44409   ECHO_N='-n';;
44410 esac
44411
44412 if expr a : '\(a\)' >/dev/null 2>&1 &&
44413    test "X`expr 00001 : '.*\(...\)'`" = X001; then
44414   as_expr=expr
44415 else
44416   as_expr=false
44417 fi
44418
44419 rm -f conf$$ conf$$.exe conf$$.file
44420 if test -d conf$$.dir; then
44421   rm -f conf$$.dir/conf$$.file
44422 else
44423   rm -f conf$$.dir
44424   mkdir conf$$.dir
44425 fi
44426 echo >conf$$.file
44427 if ln -s conf$$.file conf$$ 2>/dev/null; then
44428   as_ln_s='ln -s'
44429   # ... but there are two gotchas:
44430   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
44431   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
44432   # In both cases, we have to default to `cp -p'.
44433   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
44434     as_ln_s='cp -p'
44435 elif ln conf$$.file conf$$ 2>/dev/null; then
44436   as_ln_s=ln
44437 else
44438   as_ln_s='cp -p'
44439 fi
44440 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
44441 rmdir conf$$.dir 2>/dev/null
44442
44443 if mkdir -p . 2>/dev/null; then
44444   as_mkdir_p=:
44445 else
44446   test -d ./-p && rmdir ./-p
44447   as_mkdir_p=false
44448 fi
44449
44450 if test -x / >/dev/null 2>&1; then
44451   as_test_x='test -x'
44452 else
44453   if ls -dL / >/dev/null 2>&1; then
44454     as_ls_L_option=L
44455   else
44456     as_ls_L_option=
44457   fi
44458   as_test_x='
44459     eval sh -c '\''
44460       if test -d "$1"; then
44461         test -d "$1/.";
44462       else
44463         case $1 in
44464         -*)set "./$1";;
44465         esac;
44466         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
44467         ???[sx]*):;;*)false;;esac;fi
44468     '\'' sh
44469   '
44470 fi
44471 as_executable_p=$as_test_x
44472
44473 # Sed expression to map a string onto a valid CPP name.
44474 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
44475
44476 # Sed expression to map a string onto a valid variable name.
44477 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
44478
44479
44480 exec 6>&1
44481
44482 # Save the log message, to keep $[0] and so on meaningful, and to
44483 # report actual input values of CONFIG_FILES etc. instead of their
44484 # values after options handling.
44485 ac_log="
44486 This file was extended by $as_me, which was
44487 generated by GNU Autoconf 2.61.  Invocation command line was
44488
44489   CONFIG_FILES    = $CONFIG_FILES
44490   CONFIG_HEADERS  = $CONFIG_HEADERS
44491   CONFIG_LINKS    = $CONFIG_LINKS
44492   CONFIG_COMMANDS = $CONFIG_COMMANDS
44493   $ $0 $@
44494
44495 on `(hostname || uname -n) 2>/dev/null | sed 1q`
44496 "
44497
44498 _ACEOF
44499
44500 cat >>$CONFIG_STATUS <<_ACEOF
44501 # Files that config.status was made for.
44502 config_files="$ac_config_files"
44503 config_headers="$ac_config_headers"
44504 config_commands="$ac_config_commands"
44505
44506 _ACEOF
44507
44508 cat >>$CONFIG_STATUS <<\_ACEOF
44509 ac_cs_usage="\
44510 \`$as_me' instantiates files from templates according to the
44511 current configuration.
44512
44513 Usage: $0 [OPTIONS] [FILE]...
44514
44515   -h, --help       print this help, then exit
44516   -V, --version    print version number and configuration settings, then exit
44517   -q, --quiet      do not print progress messages
44518   -d, --debug      don't remove temporary files
44519       --recheck    update $as_me by reconfiguring in the same conditions
44520   --file=FILE[:TEMPLATE]
44521                    instantiate the configuration file FILE
44522   --header=FILE[:TEMPLATE]
44523                    instantiate the configuration header FILE
44524
44525 Configuration files:
44526 $config_files
44527
44528 Configuration headers:
44529 $config_headers
44530
44531 Configuration commands:
44532 $config_commands
44533
44534 Report bugs to <bug-autoconf@gnu.org>."
44535
44536 _ACEOF
44537 cat >>$CONFIG_STATUS <<_ACEOF
44538 ac_cs_version="\\
44539 config.status
44540 configured by $0, generated by GNU Autoconf 2.61,
44541   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
44542
44543 Copyright (C) 2006 Free Software Foundation, Inc.
44544 This config.status script is free software; the Free Software Foundation
44545 gives unlimited permission to copy, distribute and modify it."
44546
44547 ac_pwd='$ac_pwd'
44548 srcdir='$srcdir'
44549 INSTALL='$INSTALL'
44550 _ACEOF
44551
44552 cat >>$CONFIG_STATUS <<\_ACEOF
44553 # If no file are specified by the user, then we need to provide default
44554 # value.  By we need to know if files were specified by the user.
44555 ac_need_defaults=:
44556 while test $# != 0
44557 do
44558   case $1 in
44559   --*=*)
44560     ac_option=`expr "X$1" : 'X\([^=]*\)='`
44561     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
44562     ac_shift=:
44563     ;;
44564   *)
44565     ac_option=$1
44566     ac_optarg=$2
44567     ac_shift=shift
44568     ;;
44569   esac
44570
44571   case $ac_option in
44572   # Handling of the options.
44573   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
44574     ac_cs_recheck=: ;;
44575   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
44576     echo "$ac_cs_version"; exit ;;
44577   --debug | --debu | --deb | --de | --d | -d )
44578     debug=: ;;
44579   --file | --fil | --fi | --f )
44580     $ac_shift
44581     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
44582     ac_need_defaults=false;;
44583   --header | --heade | --head | --hea )
44584     $ac_shift
44585     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
44586     ac_need_defaults=false;;
44587   --he | --h)
44588     # Conflict between --help and --header
44589     { echo "$as_me: error: ambiguous option: $1
44590 Try \`$0 --help' for more information." >&2
44591    { (exit 1); exit 1; }; };;
44592   --help | --hel | -h )
44593     echo "$ac_cs_usage"; exit ;;
44594   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
44595   | -silent | --silent | --silen | --sile | --sil | --si | --s)
44596     ac_cs_silent=: ;;
44597
44598   # This is an error.
44599   -*) { echo "$as_me: error: unrecognized option: $1
44600 Try \`$0 --help' for more information." >&2
44601    { (exit 1); exit 1; }; } ;;
44602
44603   *) ac_config_targets="$ac_config_targets $1"
44604      ac_need_defaults=false ;;
44605
44606   esac
44607   shift
44608 done
44609
44610 ac_configure_extra_args=
44611
44612 if $ac_cs_silent; then
44613   exec 6>/dev/null
44614   ac_configure_extra_args="$ac_configure_extra_args --silent"
44615 fi
44616
44617 _ACEOF
44618 cat >>$CONFIG_STATUS <<_ACEOF
44619 if \$ac_cs_recheck; then
44620   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
44621   CONFIG_SHELL=$SHELL
44622   export CONFIG_SHELL
44623   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
44624 fi
44625
44626 _ACEOF
44627 cat >>$CONFIG_STATUS <<\_ACEOF
44628 exec 5>>config.log
44629 {
44630   echo
44631   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
44632 ## Running $as_me. ##
44633 _ASBOX
44634   echo "$ac_log"
44635 } >&5
44636
44637 _ACEOF
44638 cat >>$CONFIG_STATUS <<_ACEOF
44639 #
44640 # INIT-COMMANDS
44641 #
44642
44643
44644 # The HP-UX ksh and POSIX shell print the target directory to stdout
44645 # if CDPATH is set.
44646 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
44647
44648 sed_quote_subst='$sed_quote_subst'
44649 double_quote_subst='$double_quote_subst'
44650 delay_variable_subst='$delay_variable_subst'
44651 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
44652 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
44653 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
44654 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
44655 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
44656 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
44657 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
44658 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
44659 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
44660 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
44661 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
44662 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
44663 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
44664 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
44665 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
44666 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
44667 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
44668 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
44669 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
44670 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
44671 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
44672 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
44673 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
44674 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
44675 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
44676 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
44677 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
44678 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44679 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
44680 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
44681 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
44682 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
44683 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
44684 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
44685 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
44686 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44687 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44688 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44689 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
44690 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
44691 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
44692 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
44693 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
44694 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
44695 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"`'
44696 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"`'
44697 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
44698 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
44699 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
44700 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
44701 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
44702 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
44703 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
44704 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
44705 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
44706 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
44707 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
44708 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
44709 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
44710 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
44711 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
44712 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
44713 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44714 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44715 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
44716 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
44717 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
44718 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
44719 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
44720 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44721 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44722 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44723 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44724 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44725 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44726 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
44727 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
44728 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
44729 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
44730 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
44731 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
44732 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
44733 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
44734 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
44735 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
44736 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
44737 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
44738 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
44739 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
44740 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
44741 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44742 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
44743 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
44744 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44745 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
44746 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
44747 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
44748 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
44749 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
44750 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
44751 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
44752 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
44753 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
44754 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
44755 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
44756 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44757 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44758 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44759 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
44760 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
44761 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
44762 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
44763 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
44764 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
44765 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
44766 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
44767 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
44768 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
44769 compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
44770 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
44771 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
44772 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
44773 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
44774 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
44775 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44776 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44777 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44778 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44779 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44780 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44781 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44782 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44783 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44784 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44785 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44786 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44787 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44788 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44789 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44790 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44791 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44792 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44793 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44794 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44795 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44796 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44797 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44798 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44799 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44800 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44801 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44802 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44803 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44804 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44805 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44806 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44807 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44808 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44809 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44810 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44811 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44812 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44813 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44814 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44815 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44816 compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44817 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44818 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44819 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44820 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44821 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44822
44823 LTCC='$LTCC'
44824 LTCFLAGS='$LTCFLAGS'
44825 compiler='$compiler_DEFAULT'
44826
44827 # Quote evaled strings.
44828 for var in SED \
44829 GREP \
44830 EGREP \
44831 FGREP \
44832 LD \
44833 NM \
44834 LN_S \
44835 lt_SP2NL \
44836 lt_NL2SP \
44837 reload_flag \
44838 OBJDUMP \
44839 deplibs_check_method \
44840 file_magic_cmd \
44841 AR \
44842 AR_FLAGS \
44843 STRIP \
44844 RANLIB \
44845 CC \
44846 CFLAGS \
44847 compiler \
44848 lt_cv_sys_global_symbol_pipe \
44849 lt_cv_sys_global_symbol_to_cdecl \
44850 lt_cv_sys_global_symbol_to_c_name_address \
44851 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
44852 SHELL \
44853 ECHO \
44854 lt_prog_compiler_no_builtin_flag \
44855 lt_prog_compiler_wl \
44856 lt_prog_compiler_pic \
44857 lt_prog_compiler_static \
44858 lt_cv_prog_compiler_c_o \
44859 need_locks \
44860 DSYMUTIL \
44861 NMEDIT \
44862 LIPO \
44863 OTOOL \
44864 OTOOL64 \
44865 shrext_cmds \
44866 export_dynamic_flag_spec \
44867 whole_archive_flag_spec \
44868 compiler_needs_object \
44869 with_gnu_ld \
44870 allow_undefined_flag \
44871 no_undefined_flag \
44872 hardcode_libdir_flag_spec \
44873 hardcode_libdir_flag_spec_ld \
44874 hardcode_libdir_separator \
44875 fix_srcfile_path \
44876 exclude_expsyms \
44877 include_expsyms \
44878 file_list_spec \
44879 variables_saved_for_relink \
44880 libname_spec \
44881 library_names_spec \
44882 soname_spec \
44883 finish_eval \
44884 old_striplib \
44885 striplib \
44886 compiler_lib_search_dirs \
44887 predep_objects \
44888 postdep_objects \
44889 predeps \
44890 postdeps \
44891 compiler_lib_search_path \
44892 LD_CXX \
44893 compiler_CXX \
44894 lt_prog_compiler_no_builtin_flag_CXX \
44895 lt_prog_compiler_wl_CXX \
44896 lt_prog_compiler_pic_CXX \
44897 lt_prog_compiler_static_CXX \
44898 lt_cv_prog_compiler_c_o_CXX \
44899 export_dynamic_flag_spec_CXX \
44900 whole_archive_flag_spec_CXX \
44901 compiler_needs_object_CXX \
44902 with_gnu_ld_CXX \
44903 allow_undefined_flag_CXX \
44904 no_undefined_flag_CXX \
44905 hardcode_libdir_flag_spec_CXX \
44906 hardcode_libdir_flag_spec_ld_CXX \
44907 hardcode_libdir_separator_CXX \
44908 fix_srcfile_path_CXX \
44909 exclude_expsyms_CXX \
44910 include_expsyms_CXX \
44911 file_list_spec_CXX \
44912 compiler_lib_search_dirs_CXX \
44913 predep_objects_CXX \
44914 postdep_objects_CXX \
44915 predeps_CXX \
44916 postdeps_CXX \
44917 compiler_lib_search_path_CXX; do
44918     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
44919     *[\\\\\\\`\\"\\\$]*)
44920       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
44921       ;;
44922     *)
44923       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
44924       ;;
44925     esac
44926 done
44927
44928 # Double-quote double-evaled strings.
44929 for var in reload_cmds \
44930 old_postinstall_cmds \
44931 old_postuninstall_cmds \
44932 old_archive_cmds \
44933 extract_expsyms_cmds \
44934 old_archive_from_new_cmds \
44935 old_archive_from_expsyms_cmds \
44936 archive_cmds \
44937 archive_expsym_cmds \
44938 module_cmds \
44939 module_expsym_cmds \
44940 export_symbols_cmds \
44941 prelink_cmds \
44942 postinstall_cmds \
44943 postuninstall_cmds \
44944 finish_cmds \
44945 sys_lib_search_path_spec \
44946 sys_lib_dlsearch_path_spec \
44947 old_archive_cmds_CXX \
44948 old_archive_from_new_cmds_CXX \
44949 old_archive_from_expsyms_cmds_CXX \
44950 archive_cmds_CXX \
44951 archive_expsym_cmds_CXX \
44952 module_cmds_CXX \
44953 module_expsym_cmds_CXX \
44954 export_symbols_cmds_CXX \
44955 prelink_cmds_CXX; do
44956     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
44957     *[\\\\\\\`\\"\\\$]*)
44958       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
44959       ;;
44960     *)
44961       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
44962       ;;
44963     esac
44964 done
44965
44966 # Fix-up fallback echo if it was mangled by the above quoting rules.
44967 case \$lt_ECHO in
44968 *'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
44969   ;;
44970 esac
44971
44972 ac_aux_dir='$ac_aux_dir'
44973 xsi_shell='$xsi_shell'
44974 lt_shell_append='$lt_shell_append'
44975
44976 # See if we are running on zsh, and set the options which allow our
44977 # commands through without removal of \ escapes INIT.
44978 if test -n "\${ZSH_VERSION+set}" ; then
44979    setopt NO_GLOB_SUBST
44980 fi
44981
44982
44983     PACKAGE='$PACKAGE'
44984     VERSION='$VERSION'
44985     TIMESTAMP='$TIMESTAMP'
44986     RM='$RM'
44987     ofile='$ofile'
44988
44989
44990
44991
44992
44993 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
44994     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
44995     # from automake.
44996     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
44997     # Capture the value of LINGUAS because we need it to compute CATALOGS.
44998     LINGUAS="${LINGUAS-%UNSET%}"
44999
45000
45001 _ACEOF
45002
45003 cat >>$CONFIG_STATUS <<\_ACEOF
45004
45005 # Handling of arguments.
45006 for ac_config_target in $ac_config_targets
45007 do
45008   case $ac_config_target in
45009     "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
45010     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
45011     "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
45012     "autoconf/Make.common") CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
45013     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
45014     "manpages/Makefile") CONFIG_FILES="$CONFIG_FILES manpages/Makefile" ;;
45015     "scripts/startmysql") CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
45016     "scripts/stopmysql") CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
45017     "scripts/btraceback") CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
45018     "scripts/startit") CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
45019     "scripts/stopit") CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
45020     "scripts/bconsole") CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
45021     "scripts/gconsole") CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
45022     "scripts/bacula") CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
45023     "scripts/bacula-ctl-dir") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-dir" ;;
45024     "scripts/bacula-ctl-fd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-fd" ;;
45025     "scripts/bacula-ctl-sd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-sd" ;;
45026     "scripts/devel_bacula") CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
45027     "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
45028     "scripts/logrotate") CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
45029     "scripts/bacula.desktop.gnome1") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
45030     "scripts/bacula.desktop.gnome2") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
45031     "scripts/bacula.desktop.gnome1.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
45032     "scripts/bacula.desktop.gnome2.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
45033     "scripts/bacula.desktop.gnome1.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
45034     "scripts/bacula.desktop.gnome2.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
45035     "scripts/bgnome-console.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bgnome-console.console_apps" ;;
45036     "scripts/mtx-changer") CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
45037     "scripts/disk-changer") CONFIG_FILES="$CONFIG_FILES scripts/disk-changer" ;;
45038     "scripts/dvd-handler") CONFIG_FILES="$CONFIG_FILES scripts/dvd-handler" ;;
45039     "scripts/dvd-simulator") CONFIG_FILES="$CONFIG_FILES scripts/dvd-simulator" ;;
45040     "scripts/bacula-tray-monitor.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bacula-tray-monitor.desktop" ;;
45041     "scripts/logwatch/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/Makefile" ;;
45042     "scripts/logwatch/logfile.bacula.conf") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/logfile.bacula.conf" ;;
45043     "scripts/wxconsole.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.console_apps" ;;
45044     "scripts/wxconsole.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.consolehelper" ;;
45045     "scripts/wxconsole.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.xsu" ;;
45046     "scripts/bat.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop" ;;
45047     "scripts/bat.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.xsu" ;;
45048     "scripts/bat.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.consolehelper" ;;
45049     "scripts/bat.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bat.console_apps" ;;
45050     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
45051     "src/host.h") CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
45052     "src/console/Makefile") CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
45053     "src/console/bconsole.conf") CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
45054     "src/qt-console/bat.conf") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.conf" ;;
45055     "src/qt-console/bat.pro") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro" ;;
45056     "src/qt-console/bat.pro.mingw32") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro.mingw32" ;;
45057     "src/qt-console/install_conf_file") CONFIG_FILES="$CONFIG_FILES src/qt-console/install_conf_file" ;;
45058     "src/wx-console/Makefile") CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
45059     "src/wx-console/bwx-console.conf") CONFIG_FILES="$CONFIG_FILES src/wx-console/bwx-console.conf" ;;
45060     "src/tray-monitor/Makefile") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/Makefile" ;;
45061     "src/tray-monitor/tray-monitor.conf") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/tray-monitor.conf" ;;
45062     "src/dird/Makefile") CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
45063     "src/dird/bacula-dir.conf") CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
45064     "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
45065     "src/stored/Makefile") CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
45066     "src/stored/bacula-sd.conf") CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
45067     "src/filed/Makefile") CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
45068     "src/filed/bacula-fd.conf") CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
45069     "src/cats/Makefile") CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
45070     "src/cats/make_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
45071     "src/cats/delete_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
45072     "src/cats/create_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
45073     "src/cats/update_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
45074     "src/cats/make_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
45075     "src/cats/grant_postgresql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
45076     "src/cats/drop_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
45077     "src/cats/drop_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
45078     "src/cats/create_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
45079     "src/cats/update_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
45080     "src/cats/make_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
45081     "src/cats/grant_mysql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
45082     "src/cats/drop_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
45083     "src/cats/drop_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
45084     "src/cats/create_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite3_database" ;;
45085     "src/cats/update_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite3_tables" ;;
45086     "src/cats/make_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite3_tables" ;;
45087     "src/cats/grant_sqlite3_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite3_privileges" ;;
45088     "src/cats/drop_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_tables" ;;
45089     "src/cats/drop_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_database" ;;
45090     "src/cats/sqlite") CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
45091     "src/cats/mysql") CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
45092     "src/cats/create_bdb_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bdb_database" ;;
45093     "src/cats/update_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bdb_tables" ;;
45094     "src/cats/make_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bdb_tables" ;;
45095     "src/cats/grant_bdb_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bdb_privileges" ;;
45096     "src/cats/drop_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_tables" ;;
45097     "src/cats/drop_bdb_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_database" ;;
45098     "src/cats/create_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
45099     "src/cats/update_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
45100     "src/cats/grant_bacula_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
45101     "src/cats/make_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
45102     "src/cats/drop_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
45103     "src/cats/drop_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
45104     "src/findlib/Makefile") CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
45105     "src/tools/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
45106     "src/plugins/fd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/fd/Makefile" ;;
45107     "src/plugins/sd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/sd/Makefile" ;;
45108     "src/plugins/dir/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/dir/Makefile" ;;
45109     "src/win32/Makefile.inc") CONFIG_FILES="$CONFIG_FILES src/win32/Makefile.inc" ;;
45110     "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
45111     "updatedb/update_mysql_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_9_to_10" ;;
45112     "updatedb/update_sqlite3_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_9_to_10" ;;
45113     "updatedb/update_postgresql_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_9_to_10" ;;
45114     "updatedb/update_mysql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_10_to_11" ;;
45115     "updatedb/update_sqlite3_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_10_to_11" ;;
45116     "updatedb/update_postgresql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_10_to_11" ;;
45117     "examples/nagios/check_bacula/Makefile") CONFIG_FILES="$CONFIG_FILES examples/nagios/check_bacula/Makefile" ;;
45118     "$PFILES") CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
45119     "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
45120
45121   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
45122 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
45123    { (exit 1); exit 1; }; };;
45124   esac
45125 done
45126
45127
45128 # If the user did not use the arguments to specify the items to instantiate,
45129 # then the envvar interface is used.  Set only those that are not.
45130 # We use the long form for the default assignment because of an extremely
45131 # bizarre bug on SunOS 4.1.3.
45132 if $ac_need_defaults; then
45133   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
45134   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
45135   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
45136 fi
45137
45138 # Have a temporary directory for convenience.  Make it in the build tree
45139 # simply because there is no reason against having it here, and in addition,
45140 # creating and moving files from /tmp can sometimes cause problems.
45141 # Hook for its removal unless debugging.
45142 # Note that there is a small window in which the directory will not be cleaned:
45143 # after its creation but before its name has been assigned to `$tmp'.
45144 $debug ||
45145 {
45146   tmp=
45147   trap 'exit_status=$?
45148   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
45149 ' 0
45150   trap '{ (exit 1); exit 1; }' 1 2 13 15
45151 }
45152 # Create a (secure) tmp directory for tmp files.
45153
45154 {
45155   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
45156   test -n "$tmp" && test -d "$tmp"
45157 }  ||
45158 {
45159   tmp=./conf$$-$RANDOM
45160   (umask 077 && mkdir "$tmp")
45161 } ||
45162 {
45163    echo "$me: cannot create a temporary directory in ." >&2
45164    { (exit 1); exit 1; }
45165 }
45166
45167 #
45168 # Set up the sed scripts for CONFIG_FILES section.
45169 #
45170
45171 # No need to generate the scripts if there are no CONFIG_FILES.
45172 # This happens for instance when ./config.status config.h
45173 if test -n "$CONFIG_FILES"; then
45174
45175 _ACEOF
45176
45177 # Create sed commands to just substitute file output variables.
45178
45179 # Remaining file output variables are in a fragment that also has non-file
45180 # output varibles.
45181
45182
45183
45184 ac_delim='%!_!# '
45185 for ac_last_try in false false false false false :; do
45186   cat >conf$$subs.sed <<_ACEOF
45187 SHELL!$SHELL$ac_delim
45188 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
45189 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
45190 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
45191 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
45192 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
45193 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
45194 exec_prefix!$exec_prefix$ac_delim
45195 prefix!$prefix$ac_delim
45196 program_transform_name!$program_transform_name$ac_delim
45197 bindir!$bindir$ac_delim
45198 sbindir!$sbindir$ac_delim
45199 libexecdir!$libexecdir$ac_delim
45200 datarootdir!$datarootdir$ac_delim
45201 datadir!$datadir$ac_delim
45202 sysconfdir!$sysconfdir$ac_delim
45203 sharedstatedir!$sharedstatedir$ac_delim
45204 localstatedir!$localstatedir$ac_delim
45205 includedir!$includedir$ac_delim
45206 oldincludedir!$oldincludedir$ac_delim
45207 docdir!$docdir$ac_delim
45208 infodir!$infodir$ac_delim
45209 htmldir!$htmldir$ac_delim
45210 dvidir!$dvidir$ac_delim
45211 pdfdir!$pdfdir$ac_delim
45212 psdir!$psdir$ac_delim
45213 libdir!$libdir$ac_delim
45214 localedir!$localedir$ac_delim
45215 mandir!$mandir$ac_delim
45216 DEFS!$DEFS$ac_delim
45217 ECHO_C!$ECHO_C$ac_delim
45218 ECHO_N!$ECHO_N$ac_delim
45219 ECHO_T!$ECHO_T$ac_delim
45220 LIBS!$LIBS$ac_delim
45221 build_alias!$build_alias$ac_delim
45222 host_alias!$host_alias$ac_delim
45223 target_alias!$target_alias$ac_delim
45224 BUILD_DIR!$BUILD_DIR$ac_delim
45225 TOP_DIR!$TOP_DIR$ac_delim
45226 WIN32BUILDDIR!$WIN32BUILDDIR$ac_delim
45227 WIN32MAINDIR!$WIN32MAINDIR$ac_delim
45228 WIN32TOPDIR!$WIN32TOPDIR$ac_delim
45229 TRUEPRG!$TRUEPRG$ac_delim
45230 FALSEPRG!$FALSEPRG$ac_delim
45231 VERSION!$VERSION$ac_delim
45232 DATE!$DATE$ac_delim
45233 LSMDATE!$LSMDATE$ac_delim
45234 BACULA!$BACULA$ac_delim
45235 post_host!$post_host$ac_delim
45236 CC!$CC$ac_delim
45237 CFLAGS!$CFLAGS$ac_delim
45238 LDFLAGS!$LDFLAGS$ac_delim
45239 CPPFLAGS!$CPPFLAGS$ac_delim
45240 ac_ct_CC!$ac_ct_CC$ac_delim
45241 EXEEXT!$EXEEXT$ac_delim
45242 OBJEXT!$OBJEXT$ac_delim
45243 CXX!$CXX$ac_delim
45244 CXXFLAGS!$CXXFLAGS$ac_delim
45245 ac_ct_CXX!$ac_ct_CXX$ac_delim
45246 CPP!$CPP$ac_delim
45247 GREP!$GREP$ac_delim
45248 EGREP!$EGREP$ac_delim
45249 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
45250 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
45251 INSTALL_DATA!$INSTALL_DATA$ac_delim
45252 MV!$MV$ac_delim
45253 REMOVE!$REMOVE$ac_delim
45254 CP!$CP$ac_delim
45255 SED!$SED$ac_delim
45256 ECHO!$ECHO$ac_delim
45257 CMP!$CMP$ac_delim
45258 TBL!$TBL$ac_delim
45259 AR!$AR$ac_delim
45260 OPENSSL!$OPENSSL$ac_delim
45261 MTX!$MTX$ac_delim
45262 DD!$DD$ac_delim
45263 MKISOFS!$MKISOFS$ac_delim
45264 PYTHON!$PYTHON$ac_delim
45265 GROWISOFS!$GROWISOFS$ac_delim
45266 DVDRWMEDIAINFO!$DVDRWMEDIAINFO$ac_delim
45267 DVDRWFORMAT!$DVDRWFORMAT$ac_delim
45268 PKGCONFIG!$PKGCONFIG$ac_delim
45269 QMAKE!$QMAKE$ac_delim
45270 QMAKEQT4!$QMAKEQT4$ac_delim
45271 GMAKE!$GMAKE$ac_delim
45272 WXCONFIG!$WXCONFIG$ac_delim
45273 WXFLAGS!$WXFLAGS$ac_delim
45274 CDRECORD!$CDRECORD$ac_delim
45275 PIDOF!$PIDOF$ac_delim
45276 AWK!$AWK$ac_delim
45277 ARFLAGS!$ARFLAGS$ac_delim
45278 MAKE_SHELL!$MAKE_SHELL$ac_delim
45279 LOCAL_LIBS!$LOCAL_LIBS$ac_delim
45280 LOCAL_CFLAGS!$LOCAL_CFLAGS$ac_delim
45281 _ACEOF
45282
45283   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 94; then
45284     break
45285   elif $ac_last_try; then
45286     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
45287 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
45288    { (exit 1); exit 1; }; }
45289   else
45290     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
45291   fi
45292 done
45293
45294 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
45295 if test -n "$ac_eof"; then
45296   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
45297   ac_eof=`expr $ac_eof + 1`
45298 fi
45299
45300 cat >>$CONFIG_STATUS <<_ACEOF
45301 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
45302 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
45303 /^[      ]*@MCOMMON@[    ]*$/{
45304 r $MCOMMON
45305 d
45306 }
45307 _ACEOF
45308 sed '
45309 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
45310 s/^/s,@/; s/!/@,|#_!!_#|/
45311 :n
45312 t n
45313 s/'"$ac_delim"'$/,g/; t
45314 s/$/\\/; p
45315 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
45316 ' >>$CONFIG_STATUS <conf$$subs.sed
45317 rm -f conf$$subs.sed
45318 cat >>$CONFIG_STATUS <<_ACEOF
45319 CEOF$ac_eof
45320 _ACEOF
45321
45322
45323 ac_delim='%!_!# '
45324 for ac_last_try in false false false false false :; do
45325   cat >conf$$subs.sed <<_ACEOF
45326 LOCAL_LDFLAGS!$LOCAL_LDFLAGS$ac_delim
45327 LOCAL_DEFS!$LOCAL_DEFS$ac_delim
45328 LIBTOOL!$LIBTOOL$ac_delim
45329 build!$build$ac_delim
45330 build_cpu!$build_cpu$ac_delim
45331 build_vendor!$build_vendor$ac_delim
45332 build_os!$build_os$ac_delim
45333 host!$host$ac_delim
45334 host_cpu!$host_cpu$ac_delim
45335 host_vendor!$host_vendor$ac_delim
45336 host_os!$host_os$ac_delim
45337 FGREP!$FGREP$ac_delim
45338 LD!$LD$ac_delim
45339 DUMPBIN!$DUMPBIN$ac_delim
45340 ac_ct_DUMPBIN!$ac_ct_DUMPBIN$ac_delim
45341 NM!$NM$ac_delim
45342 LN_S!$LN_S$ac_delim
45343 OBJDUMP!$OBJDUMP$ac_delim
45344 STRIP!$STRIP$ac_delim
45345 RANLIB!$RANLIB$ac_delim
45346 lt_ECHO!$lt_ECHO$ac_delim
45347 DSYMUTIL!$DSYMUTIL$ac_delim
45348 NMEDIT!$NMEDIT$ac_delim
45349 LIPO!$LIPO$ac_delim
45350 OTOOL!$OTOOL$ac_delim
45351 OTOOL64!$OTOOL64$ac_delim
45352 CXXCPP!$CXXCPP$ac_delim
45353 DEFAULT_OBJECT_TYPE!$DEFAULT_OBJECT_TYPE$ac_delim
45354 DEFAULT_ARCHIVE_TYPE!$DEFAULT_ARCHIVE_TYPE$ac_delim
45355 DEFAULT_SHARED_OBJECT_TYPE!$DEFAULT_SHARED_OBJECT_TYPE$ac_delim
45356 LIBTOOL_INSTALL_TARGET!$LIBTOOL_INSTALL_TARGET$ac_delim
45357 LIBTOOL_UNINSTALL_TARGET!$LIBTOOL_UNINSTALL_TARGET$ac_delim
45358 LIBTOOL_CLEAN_TARGET!$LIBTOOL_CLEAN_TARGET$ac_delim
45359 QMAKE_LIBTOOL!$QMAKE_LIBTOOL$ac_delim
45360 FD_PLUGIN_DIR!$FD_PLUGIN_DIR$ac_delim
45361 INCLUDE_INSTALL_TARGET!$INCLUDE_INSTALL_TARGET$ac_delim
45362 INCLUDE_UNINSTALL_TARGET!$INCLUDE_UNINSTALL_TARGET$ac_delim
45363 HAVE_SUN_OS_TRUE!$HAVE_SUN_OS_TRUE$ac_delim
45364 HAVE_SUN_OS_FALSE!$HAVE_SUN_OS_FALSE$ac_delim
45365 HAVE_OSF1_OS_TRUE!$HAVE_OSF1_OS_TRUE$ac_delim
45366 HAVE_OSF1_OS_FALSE!$HAVE_OSF1_OS_FALSE$ac_delim
45367 HAVE_AIX_OS_TRUE!$HAVE_AIX_OS_TRUE$ac_delim
45368 HAVE_AIX_OS_FALSE!$HAVE_AIX_OS_FALSE$ac_delim
45369 HAVE_HPUX_OS_TRUE!$HAVE_HPUX_OS_TRUE$ac_delim
45370 HAVE_HPUX_OS_FALSE!$HAVE_HPUX_OS_FALSE$ac_delim
45371 HAVE_LINUX_OS_TRUE!$HAVE_LINUX_OS_TRUE$ac_delim
45372 HAVE_LINUX_OS_FALSE!$HAVE_LINUX_OS_FALSE$ac_delim
45373 HAVE_FREEBSD_OS_TRUE!$HAVE_FREEBSD_OS_TRUE$ac_delim
45374 HAVE_FREEBSD_OS_FALSE!$HAVE_FREEBSD_OS_FALSE$ac_delim
45375 HAVE_NETBSD_OS_TRUE!$HAVE_NETBSD_OS_TRUE$ac_delim
45376 HAVE_NETBSD_OS_FALSE!$HAVE_NETBSD_OS_FALSE$ac_delim
45377 HAVE_OPENBSD_OS_TRUE!$HAVE_OPENBSD_OS_TRUE$ac_delim
45378 HAVE_OPENBSD_OS_FALSE!$HAVE_OPENBSD_OS_FALSE$ac_delim
45379 HAVE_BSDI_OS_TRUE!$HAVE_BSDI_OS_TRUE$ac_delim
45380 HAVE_BSDI_OS_FALSE!$HAVE_BSDI_OS_FALSE$ac_delim
45381 HAVE_SGI_OS_TRUE!$HAVE_SGI_OS_TRUE$ac_delim
45382 HAVE_SGI_OS_FALSE!$HAVE_SGI_OS_FALSE$ac_delim
45383 HAVE_IRIX_OS_TRUE!$HAVE_IRIX_OS_TRUE$ac_delim
45384 HAVE_IRIX_OS_FALSE!$HAVE_IRIX_OS_FALSE$ac_delim
45385 HAVE_DARWIN_OS_TRUE!$HAVE_DARWIN_OS_TRUE$ac_delim
45386 HAVE_DARWIN_OS_FALSE!$HAVE_DARWIN_OS_FALSE$ac_delim
45387 SET_MAKE!$SET_MAKE$ac_delim
45388 MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
45389 USE_NLS!$USE_NLS$ac_delim
45390 MSGFMT!$MSGFMT$ac_delim
45391 GMSGFMT!$GMSGFMT$ac_delim
45392 XGETTEXT!$XGETTEXT$ac_delim
45393 MSGMERGE!$MSGMERGE$ac_delim
45394 INTL_MACOSX_LIBS!$INTL_MACOSX_LIBS$ac_delim
45395 LIBICONV!$LIBICONV$ac_delim
45396 LTLIBICONV!$LTLIBICONV$ac_delim
45397 INTLLIBS!$INTLLIBS$ac_delim
45398 LIBINTL!$LIBINTL$ac_delim
45399 LTLIBINTL!$LTLIBINTL$ac_delim
45400 POSUB!$POSUB$ac_delim
45401 GLIBC2!$GLIBC2$ac_delim
45402 ALLOCA!$ALLOCA$ac_delim
45403 GLIBC21!$GLIBC21$ac_delim
45404 HAVE_POSIX_PRINTF!$HAVE_POSIX_PRINTF$ac_delim
45405 HAVE_ASPRINTF!$HAVE_ASPRINTF$ac_delim
45406 HAVE_SNPRINTF!$HAVE_SNPRINTF$ac_delim
45407 HAVE_WPRINTF!$HAVE_WPRINTF$ac_delim
45408 INTLBISON!$INTLBISON$ac_delim
45409 BUILD_INCLUDED_LIBINTL!$BUILD_INCLUDED_LIBINTL$ac_delim
45410 USE_INCLUDED_LIBINTL!$USE_INCLUDED_LIBINTL$ac_delim
45411 CATOBJEXT!$CATOBJEXT$ac_delim
45412 DATADIRNAME!$DATADIRNAME$ac_delim
45413 INSTOBJEXT!$INSTOBJEXT$ac_delim
45414 GENCAT!$GENCAT$ac_delim
45415 INTLOBJS!$INTLOBJS$ac_delim
45416 INTL_LIBTOOL_SUFFIX_PREFIX!$INTL_LIBTOOL_SUFFIX_PREFIX$ac_delim
45417 BAT_DIR!$BAT_DIR$ac_delim
45418 QWT_INC!$QWT_INC$ac_delim
45419 QWT_LDFLAGS!$QWT_LDFLAGS$ac_delim
45420 QWT_LIB!$QWT_LIB$ac_delim
45421 QWT!$QWT$ac_delim
45422 WXCONS_CPPFLAGS!$WXCONS_CPPFLAGS$ac_delim
45423 _ACEOF
45424
45425   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
45426     break
45427   elif $ac_last_try; then
45428     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
45429 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
45430    { (exit 1); exit 1; }; }
45431   else
45432     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
45433   fi
45434 done
45435
45436 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
45437 if test -n "$ac_eof"; then
45438   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
45439   ac_eof=`expr $ac_eof + 1`
45440 fi
45441
45442 cat >>$CONFIG_STATUS <<_ACEOF
45443 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
45444 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
45445 _ACEOF
45446 sed '
45447 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
45448 s/^/s,@/; s/!/@,|#_!!_#|/
45449 :n
45450 t n
45451 s/'"$ac_delim"'$/,g/; t
45452 s/$/\\/; p
45453 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
45454 ' >>$CONFIG_STATUS <conf$$subs.sed
45455 rm -f conf$$subs.sed
45456 cat >>$CONFIG_STATUS <<_ACEOF
45457 CEOF$ac_eof
45458 _ACEOF
45459
45460
45461 ac_delim='%!_!# '
45462 for ac_last_try in false false false false false :; do
45463   cat >conf$$subs.sed <<_ACEOF
45464 WXCONS_LDFLAGS!$WXCONS_LDFLAGS$ac_delim
45465 WX_DIR!$WX_DIR$ac_delim
45466 TRAY_MONITOR_CPPFLAGS!$TRAY_MONITOR_CPPFLAGS$ac_delim
45467 TRAY_MONITOR_LDFLAGS!$TRAY_MONITOR_LDFLAGS$ac_delim
45468 TRAY_MONITOR_DIR!$TRAY_MONITOR_DIR$ac_delim
45469 TTOOL_LDFLAGS!$TTOOL_LDFLAGS$ac_delim
45470 STATIC_FD!$STATIC_FD$ac_delim
45471 STATIC_SD!$STATIC_SD$ac_delim
45472 STATIC_DIR!$STATIC_DIR$ac_delim
45473 STATIC_CONS!$STATIC_CONS$ac_delim
45474 STATIC_GNOME_CONS!$STATIC_GNOME_CONS$ac_delim
45475 STATIC_WX_CONS!$STATIC_WX_CONS$ac_delim
45476 ALL_DIRS!$ALL_DIRS$ac_delim
45477 DIRD_DIR!$DIRD_DIR$ac_delim
45478 DIR_TOOLS!$DIR_TOOLS$ac_delim
45479 STORED_DIR!$STORED_DIR$ac_delim
45480 CONS_INC!$CONS_INC$ac_delim
45481 CONS_OBJ!$CONS_OBJ$ac_delim
45482 CONS_SRC!$CONS_SRC$ac_delim
45483 CONS_LIBS!$CONS_LIBS$ac_delim
45484 CONS_LDFLAGS!$CONS_LDFLAGS$ac_delim
45485 READLINE_SRC!$READLINE_SRC$ac_delim
45486 PYTHON_LIBS!$PYTHON_LIBS$ac_delim
45487 PYTHON_INCDIR!$PYTHON_INCDIR$ac_delim
45488 OPENSSL_LIBS!$OPENSSL_LIBS$ac_delim
45489 OPENSSL_INC!$OPENSSL_INC$ac_delim
45490 working_dir!$working_dir$ac_delim
45491 archivedir!$archivedir$ac_delim
45492 basename!$basename$ac_delim
45493 hostname!$hostname$ac_delim
45494 scriptdir!$scriptdir$ac_delim
45495 bsrdir!$bsrdir$ac_delim
45496 logdir!$logdir$ac_delim
45497 plugindir!$plugindir$ac_delim
45498 dump_email!$dump_email$ac_delim
45499 job_email!$job_email$ac_delim
45500 smtp_host!$smtp_host$ac_delim
45501 piddir!$piddir$ac_delim
45502 subsysdir!$subsysdir$ac_delim
45503 baseport!$baseport$ac_delim
45504 dir_port!$dir_port$ac_delim
45505 fd_port!$fd_port$ac_delim
45506 sd_port!$sd_port$ac_delim
45507 dir_password!$dir_password$ac_delim
45508 fd_password!$fd_password$ac_delim
45509 sd_password!$sd_password$ac_delim
45510 mon_dir_password!$mon_dir_password$ac_delim
45511 mon_fd_password!$mon_fd_password$ac_delim
45512 mon_sd_password!$mon_sd_password$ac_delim
45513 db_name!$db_name$ac_delim
45514 db_user!$db_user$ac_delim
45515 db_password!$db_password$ac_delim
45516 db_port!$db_port$ac_delim
45517 dir_user!$dir_user$ac_delim
45518 dir_group!$dir_group$ac_delim
45519 sd_user!$sd_user$ac_delim
45520 sd_group!$sd_group$ac_delim
45521 fd_user!$fd_user$ac_delim
45522 fd_group!$fd_group$ac_delim
45523 SBINPERM!$SBINPERM$ac_delim
45524 SQL_LFLAGS!$SQL_LFLAGS$ac_delim
45525 SQL_INCLUDE!$SQL_INCLUDE$ac_delim
45526 SQL_BINDIR!$SQL_BINDIR$ac_delim
45527 DBI_DBD_DRIVERDIR!$DBI_DBD_DRIVERDIR$ac_delim
45528 uncomment_dbi!$uncomment_dbi$ac_delim
45529 DB_PROG!$DB_PROG$ac_delim
45530 DB_PROG_LIB!$DB_PROG_LIB$ac_delim
45531 cats!$cats$ac_delim
45532 DB_TYPE!$DB_TYPE$ac_delim
45533 GETCONF!$GETCONF$ac_delim
45534 XMKMF!$XMKMF$ac_delim
45535 X_CFLAGS!$X_CFLAGS$ac_delim
45536 X_PRE_LIBS!$X_PRE_LIBS$ac_delim
45537 X_LIBS!$X_LIBS$ac_delim
45538 X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
45539 LIBOBJS!$LIBOBJS$ac_delim
45540 CAP_LIBS!$CAP_LIBS$ac_delim
45541 FDLIBS!$FDLIBS$ac_delim
45542 DEBUG!$DEBUG$ac_delim
45543 DINCLUDE!$DINCLUDE$ac_delim
45544 DLIB!$DLIB$ac_delim
45545 DB_LIBS!$DB_LIBS$ac_delim
45546 WCFLAGS!$WCFLAGS$ac_delim
45547 WLDFLAGS!$WLDFLAGS$ac_delim
45548 WRAPLIBS!$WRAPLIBS$ac_delim
45549 OBJLIST!$OBJLIST$ac_delim
45550 TAPEDRIVE!$TAPEDRIVE$ac_delim
45551 PSCMD!$PSCMD$ac_delim
45552 WIN32!$WIN32$ac_delim
45553 MACOSX!$MACOSX$ac_delim
45554 DISTNAME!$DISTNAME$ac_delim
45555 DISTVER!$DISTVER$ac_delim
45556 LTLIBOBJS!$LTLIBOBJS$ac_delim
45557 _ACEOF
45558
45559   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 93; then
45560     break
45561   elif $ac_last_try; then
45562     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
45563 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
45564    { (exit 1); exit 1; }; }
45565   else
45566     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
45567   fi
45568 done
45569
45570 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
45571 if test -n "$ac_eof"; then
45572   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
45573   ac_eof=`expr $ac_eof + 1`
45574 fi
45575
45576 cat >>$CONFIG_STATUS <<_ACEOF
45577 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
45578 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
45579 _ACEOF
45580 sed '
45581 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
45582 s/^/s,@/; s/!/@,|#_!!_#|/
45583 :n
45584 t n
45585 s/'"$ac_delim"'$/,g/; t
45586 s/$/\\/; p
45587 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
45588 ' >>$CONFIG_STATUS <conf$$subs.sed
45589 rm -f conf$$subs.sed
45590 cat >>$CONFIG_STATUS <<_ACEOF
45591 :end
45592 s/|#_!!_#|//g
45593 CEOF$ac_eof
45594 _ACEOF
45595
45596
45597 # VPATH may cause trouble with some makes, so we remove $(srcdir),
45598 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
45599 # trailing colons and then remove the whole line if VPATH becomes empty
45600 # (actually we leave an empty line to preserve line numbers).
45601 if test "x$srcdir" = x.; then
45602   ac_vpsub='/^[  ]*VPATH[        ]*=/{
45603 s/:*\$(srcdir):*/:/
45604 s/:*\${srcdir}:*/:/
45605 s/:*@srcdir@:*/:/
45606 s/^\([^=]*=[     ]*\):*/\1/
45607 s/:*$//
45608 s/^[^=]*=[       ]*$//
45609 }'
45610 fi
45611
45612 cat >>$CONFIG_STATUS <<\_ACEOF
45613 fi # test -n "$CONFIG_FILES"
45614
45615
45616 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
45617 do
45618   case $ac_tag in
45619   :[FHLC]) ac_mode=$ac_tag; continue;;
45620   esac
45621   case $ac_mode$ac_tag in
45622   :[FHL]*:*);;
45623   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
45624 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
45625    { (exit 1); exit 1; }; };;
45626   :[FH]-) ac_tag=-:-;;
45627   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
45628   esac
45629   ac_save_IFS=$IFS
45630   IFS=:
45631   set x $ac_tag
45632   IFS=$ac_save_IFS
45633   shift
45634   ac_file=$1
45635   shift
45636
45637   case $ac_mode in
45638   :L) ac_source=$1;;
45639   :[FH])
45640     ac_file_inputs=
45641     for ac_f
45642     do
45643       case $ac_f in
45644       -) ac_f="$tmp/stdin";;
45645       *) # Look for the file first in the build tree, then in the source tree
45646          # (if the path is not absolute).  The absolute path cannot be DOS-style,
45647          # because $ac_f cannot contain `:'.
45648          test -f "$ac_f" ||
45649            case $ac_f in
45650            [\\/$]*) false;;
45651            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
45652            esac ||
45653            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
45654 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
45655    { (exit 1); exit 1; }; };;
45656       esac
45657       ac_file_inputs="$ac_file_inputs $ac_f"
45658     done
45659
45660     # Let's still pretend it is `configure' which instantiates (i.e., don't
45661     # use $as_me), people would be surprised to read:
45662     #    /* config.h.  Generated by config.status.  */
45663     configure_input="Generated from "`IFS=:
45664           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
45665     if test x"$ac_file" != x-; then
45666       configure_input="$ac_file.  $configure_input"
45667       { echo "$as_me:$LINENO: creating $ac_file" >&5
45668 echo "$as_me: creating $ac_file" >&6;}
45669     fi
45670
45671     case $ac_tag in
45672     *:-:* | *:-) cat >"$tmp/stdin";;
45673     esac
45674     ;;
45675   esac
45676
45677   ac_dir=`$as_dirname -- "$ac_file" ||
45678 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
45679          X"$ac_file" : 'X\(//\)[^/]' \| \
45680          X"$ac_file" : 'X\(//\)$' \| \
45681          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
45682 echo X"$ac_file" |
45683     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
45684             s//\1/
45685             q
45686           }
45687           /^X\(\/\/\)[^/].*/{
45688             s//\1/
45689             q
45690           }
45691           /^X\(\/\/\)$/{
45692             s//\1/
45693             q
45694           }
45695           /^X\(\/\).*/{
45696             s//\1/
45697             q
45698           }
45699           s/.*/./; q'`
45700   { as_dir="$ac_dir"
45701   case $as_dir in #(
45702   -*) as_dir=./$as_dir;;
45703   esac
45704   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
45705     as_dirs=
45706     while :; do
45707       case $as_dir in #(
45708       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
45709       *) as_qdir=$as_dir;;
45710       esac
45711       as_dirs="'$as_qdir' $as_dirs"
45712       as_dir=`$as_dirname -- "$as_dir" ||
45713 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
45714          X"$as_dir" : 'X\(//\)[^/]' \| \
45715          X"$as_dir" : 'X\(//\)$' \| \
45716          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
45717 echo X"$as_dir" |
45718     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
45719             s//\1/
45720             q
45721           }
45722           /^X\(\/\/\)[^/].*/{
45723             s//\1/
45724             q
45725           }
45726           /^X\(\/\/\)$/{
45727             s//\1/
45728             q
45729           }
45730           /^X\(\/\).*/{
45731             s//\1/
45732             q
45733           }
45734           s/.*/./; q'`
45735       test -d "$as_dir" && break
45736     done
45737     test -z "$as_dirs" || eval "mkdir $as_dirs"
45738   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
45739 echo "$as_me: error: cannot create directory $as_dir" >&2;}
45740    { (exit 1); exit 1; }; }; }
45741   ac_builddir=.
45742
45743 case "$ac_dir" in
45744 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
45745 *)
45746   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
45747   # A ".." for each directory in $ac_dir_suffix.
45748   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
45749   case $ac_top_builddir_sub in
45750   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
45751   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
45752   esac ;;
45753 esac
45754 ac_abs_top_builddir=$ac_pwd
45755 ac_abs_builddir=$ac_pwd$ac_dir_suffix
45756 # for backward compatibility:
45757 ac_top_builddir=$ac_top_build_prefix
45758
45759 case $srcdir in
45760   .)  # We are building in place.
45761     ac_srcdir=.
45762     ac_top_srcdir=$ac_top_builddir_sub
45763     ac_abs_top_srcdir=$ac_pwd ;;
45764   [\\/]* | ?:[\\/]* )  # Absolute name.
45765     ac_srcdir=$srcdir$ac_dir_suffix;
45766     ac_top_srcdir=$srcdir
45767     ac_abs_top_srcdir=$srcdir ;;
45768   *) # Relative name.
45769     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
45770     ac_top_srcdir=$ac_top_build_prefix$srcdir
45771     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
45772 esac
45773 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
45774
45775
45776   case $ac_mode in
45777   :F)
45778   #
45779   # CONFIG_FILE
45780   #
45781
45782   case $INSTALL in
45783   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
45784   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
45785   esac
45786 _ACEOF
45787
45788 cat >>$CONFIG_STATUS <<\_ACEOF
45789 # If the template does not know about datarootdir, expand it.
45790 # FIXME: This hack should be removed a few years after 2.60.
45791 ac_datarootdir_hack=; ac_datarootdir_seen=
45792
45793 case `sed -n '/datarootdir/ {
45794   p
45795   q
45796 }
45797 /@datadir@/p
45798 /@docdir@/p
45799 /@infodir@/p
45800 /@localedir@/p
45801 /@mandir@/p
45802 ' $ac_file_inputs` in
45803 *datarootdir*) ac_datarootdir_seen=yes;;
45804 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
45805   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
45806 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
45807 _ACEOF
45808 cat >>$CONFIG_STATUS <<_ACEOF
45809   ac_datarootdir_hack='
45810   s&@datadir@&$datadir&g
45811   s&@docdir@&$docdir&g
45812   s&@infodir@&$infodir&g
45813   s&@localedir@&$localedir&g
45814   s&@mandir@&$mandir&g
45815     s&\\\${datarootdir}&$datarootdir&g' ;;
45816 esac
45817 _ACEOF
45818
45819 # Neutralize VPATH when `$srcdir' = `.'.
45820 # Shell code in configure.ac might set extrasub.
45821 # FIXME: do we really want to maintain this feature?
45822 cat >>$CONFIG_STATUS <<_ACEOF
45823   sed "$ac_vpsub
45824 $extrasub
45825 _ACEOF
45826 cat >>$CONFIG_STATUS <<\_ACEOF
45827 :t
45828 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
45829 s&@configure_input@&$configure_input&;t t
45830 s&@top_builddir@&$ac_top_builddir_sub&;t t
45831 s&@srcdir@&$ac_srcdir&;t t
45832 s&@abs_srcdir@&$ac_abs_srcdir&;t t
45833 s&@top_srcdir@&$ac_top_srcdir&;t t
45834 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
45835 s&@builddir@&$ac_builddir&;t t
45836 s&@abs_builddir@&$ac_abs_builddir&;t t
45837 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
45838 s&@INSTALL@&$ac_INSTALL&;t t
45839 $ac_datarootdir_hack
45840 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
45841
45842 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
45843   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
45844   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
45845   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
45846 which seems to be undefined.  Please make sure it is defined." >&5
45847 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
45848 which seems to be undefined.  Please make sure it is defined." >&2;}
45849
45850   rm -f "$tmp/stdin"
45851   case $ac_file in
45852   -) cat "$tmp/out"; rm -f "$tmp/out";;
45853   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
45854   esac
45855  ;;
45856   :H)
45857   #
45858   # CONFIG_HEADER
45859   #
45860 _ACEOF
45861
45862 # Transform confdefs.h into a sed script `conftest.defines', that
45863 # substitutes the proper values into config.h.in to produce config.h.
45864 rm -f conftest.defines conftest.tail
45865 # First, append a space to every undef/define line, to ease matching.
45866 echo 's/$/ /' >conftest.defines
45867 # Then, protect against being on the right side of a sed subst, or in
45868 # an unquoted here document, in config.status.  If some macros were
45869 # called several times there might be several #defines for the same
45870 # symbol, which is useless.  But do not sort them, since the last
45871 # AC_DEFINE must be honored.
45872 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
45873 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
45874 # NAME is the cpp macro being defined, VALUE is the value it is being given.
45875 # PARAMS is the parameter list in the macro definition--in most cases, it's
45876 # just an empty string.
45877 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
45878 ac_dB='\\)[      (].*,\\1define\\2'
45879 ac_dC=' '
45880 ac_dD=' ,'
45881
45882 uniq confdefs.h |
45883   sed -n '
45884         t rset
45885         :rset
45886         s/^[     ]*#[    ]*define[       ][      ]*//
45887         t ok
45888         d
45889         :ok
45890         s/[\\&,]/\\&/g
45891         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
45892         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
45893   ' >>conftest.defines
45894
45895 # Remove the space that was appended to ease matching.
45896 # Then replace #undef with comments.  This is necessary, for
45897 # example, in the case of _POSIX_SOURCE, which is predefined and required
45898 # on some systems where configure will not decide to define it.
45899 # (The regexp can be short, since the line contains either #define or #undef.)
45900 echo 's/ $//
45901 s,^[     #]*u.*,/* & */,' >>conftest.defines
45902
45903 # Break up conftest.defines:
45904 ac_max_sed_lines=50
45905
45906 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
45907 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
45908 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
45909 # et cetera.
45910 ac_in='$ac_file_inputs'
45911 ac_out='"$tmp/out1"'
45912 ac_nxt='"$tmp/out2"'
45913
45914 while :
45915 do
45916   # Write a here document:
45917     cat >>$CONFIG_STATUS <<_ACEOF
45918     # First, check the format of the line:
45919     cat >"\$tmp/defines.sed" <<\\CEOF
45920 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
45921 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
45922 b
45923 :def
45924 _ACEOF
45925   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
45926   echo 'CEOF
45927     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
45928   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
45929   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
45930   grep . conftest.tail >/dev/null || break
45931   rm -f conftest.defines
45932   mv conftest.tail conftest.defines
45933 done
45934 rm -f conftest.defines conftest.tail
45935
45936 echo "ac_result=$ac_in" >>$CONFIG_STATUS
45937 cat >>$CONFIG_STATUS <<\_ACEOF
45938   if test x"$ac_file" != x-; then
45939     echo "/* $configure_input  */" >"$tmp/config.h"
45940     cat "$ac_result" >>"$tmp/config.h"
45941     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
45942       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
45943 echo "$as_me: $ac_file is unchanged" >&6;}
45944     else
45945       rm -f $ac_file
45946       mv "$tmp/config.h" $ac_file
45947     fi
45948   else
45949     echo "/* $configure_input  */"
45950     cat "$ac_result"
45951   fi
45952   rm -f "$tmp/out12"
45953  ;;
45954
45955   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
45956 echo "$as_me: executing $ac_file commands" >&6;}
45957  ;;
45958   esac
45959
45960
45961   case $ac_file$ac_mode in
45962     "libtool":C)
45963
45964     # See if we are running on zsh, and set the options which allow our
45965     # commands through without removal of \ escapes.
45966     if test -n "${ZSH_VERSION+set}" ; then
45967       setopt NO_GLOB_SUBST
45968     fi
45969
45970     cfgfile="${ofile}T"
45971     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
45972     $RM "$cfgfile"
45973
45974     cat <<_LT_EOF >> "$cfgfile"
45975 #! $SHELL
45976
45977 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
45978 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
45979 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
45980 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
45981 #
45982 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
45983 #                 2006, 2007, 2008 Free Software Foundation, Inc.
45984 #   Written by Gordon Matzigkeit, 1996
45985 #
45986 #   This file is part of GNU Libtool.
45987 #
45988 # GNU Libtool is free software; you can redistribute it and/or
45989 # modify it under the terms of the GNU General Public License as
45990 # published by the Free Software Foundation; either version 2 of
45991 # the License, or (at your option) any later version.
45992 #
45993 # As a special exception to the GNU General Public License,
45994 # if you distribute this file as part of a program or library that
45995 # is built using GNU Libtool, you may include this file under the
45996 # same distribution terms that you use for the rest of that program.
45997 #
45998 # GNU Libtool is distributed in the hope that it will be useful,
45999 # but WITHOUT ANY WARRANTY; without even the implied warranty of
46000 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
46001 # GNU General Public License for more details.
46002 #
46003 # You should have received a copy of the GNU General Public License
46004 # along with GNU Libtool; see the file COPYING.  If not, a copy
46005 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
46006 # obtained by writing to the Free Software Foundation, Inc.,
46007 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
46008
46009
46010 # The names of the tagged configurations supported by this script.
46011 available_tags="CXX "
46012
46013 # ### BEGIN LIBTOOL CONFIG
46014
46015 # Which release of libtool.m4 was used?
46016 macro_version=$macro_version
46017 macro_revision=$macro_revision
46018
46019 # Whether or not to build shared libraries.
46020 build_libtool_libs=$enable_shared
46021
46022 # Whether or not to build static libraries.
46023 build_old_libs=$enable_static
46024
46025 # What type of objects to build.
46026 pic_mode=$pic_mode
46027
46028 # Whether or not to optimize for fast installation.
46029 fast_install=$enable_fast_install
46030
46031 # The host system.
46032 host_alias=$host_alias
46033 host=$host
46034 host_os=$host_os
46035
46036 # The build system.
46037 build_alias=$build_alias
46038 build=$build
46039 build_os=$build_os
46040
46041 # A sed program that does not truncate output.
46042 SED=$lt_SED
46043
46044 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
46045 Xsed="\$SED -e 1s/^X//"
46046
46047 # A grep program that handles long lines.
46048 GREP=$lt_GREP
46049
46050 # An ERE matcher.
46051 EGREP=$lt_EGREP
46052
46053 # A literal string matcher.
46054 FGREP=$lt_FGREP
46055
46056 # A BSD- or MS-compatible name lister.
46057 NM=$lt_NM
46058
46059 # Whether we need soft or hard links.
46060 LN_S=$lt_LN_S
46061
46062 # What is the maximum length of a command?
46063 max_cmd_len=$max_cmd_len
46064
46065 # Object file suffix (normally "o").
46066 objext=$ac_objext
46067
46068 # Executable file suffix (normally "").
46069 exeext=$exeext
46070
46071 # whether the shell understands "unset".
46072 lt_unset=$lt_unset
46073
46074 # turn spaces into newlines.
46075 SP2NL=$lt_lt_SP2NL
46076
46077 # turn newlines into spaces.
46078 NL2SP=$lt_lt_NL2SP
46079
46080 # How to create reloadable object files.
46081 reload_flag=$lt_reload_flag
46082 reload_cmds=$lt_reload_cmds
46083
46084 # An object symbol dumper.
46085 OBJDUMP=$lt_OBJDUMP
46086
46087 # Method to check whether dependent libraries are shared objects.
46088 deplibs_check_method=$lt_deplibs_check_method
46089
46090 # Command to use when deplibs_check_method == "file_magic".
46091 file_magic_cmd=$lt_file_magic_cmd
46092
46093 # The archiver.
46094 AR=$lt_AR
46095 AR_FLAGS=$lt_AR_FLAGS
46096
46097 # A symbol stripping program.
46098 STRIP=$lt_STRIP
46099
46100 # Commands used to install an old-style archive.
46101 RANLIB=$lt_RANLIB
46102 old_postinstall_cmds=$lt_old_postinstall_cmds
46103 old_postuninstall_cmds=$lt_old_postuninstall_cmds
46104
46105 # A C compiler.
46106 LTCC=$lt_CC
46107
46108 # LTCC compiler flags.
46109 LTCFLAGS=$lt_CFLAGS
46110
46111 # Take the output of nm and produce a listing of raw symbols and C names.
46112 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
46113
46114 # Transform the output of nm in a proper C declaration.
46115 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
46116
46117 # Transform the output of nm in a C name address pair.
46118 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
46119
46120 # Transform the output of nm in a C name address pair when lib prefix is needed.
46121 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
46122
46123 # The name of the directory that contains temporary libtool files.
46124 objdir=$objdir
46125
46126 # Shell to use when invoking shell scripts.
46127 SHELL=$lt_SHELL
46128
46129 # An echo program that does not interpret backslashes.
46130 ECHO=$lt_ECHO
46131
46132 # Used to examine libraries when file_magic_cmd begins with "file".
46133 MAGIC_CMD=$MAGIC_CMD
46134
46135 # Must we lock files when doing compilation?
46136 need_locks=$lt_need_locks
46137
46138 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
46139 DSYMUTIL=$lt_DSYMUTIL
46140
46141 # Tool to change global to local symbols on Mac OS X.
46142 NMEDIT=$lt_NMEDIT
46143
46144 # Tool to manipulate fat objects and archives on Mac OS X.
46145 LIPO=$lt_LIPO
46146
46147 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
46148 OTOOL=$lt_OTOOL
46149
46150 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
46151 OTOOL64=$lt_OTOOL64
46152
46153 # Old archive suffix (normally "a").
46154 libext=$libext
46155
46156 # Shared library suffix (normally ".so").
46157 shrext_cmds=$lt_shrext_cmds
46158
46159 # The commands to extract the exported symbol list from a shared archive.
46160 extract_expsyms_cmds=$lt_extract_expsyms_cmds
46161
46162 # Variables whose values should be saved in libtool wrapper scripts and
46163 # restored at link time.
46164 variables_saved_for_relink=$lt_variables_saved_for_relink
46165
46166 # Do we need the "lib" prefix for modules?
46167 need_lib_prefix=$need_lib_prefix
46168
46169 # Do we need a version for libraries?
46170 need_version=$need_version
46171
46172 # Library versioning type.
46173 version_type=$version_type
46174
46175 # Shared library runtime path variable.
46176 runpath_var=$runpath_var
46177
46178 # Shared library path variable.
46179 shlibpath_var=$shlibpath_var
46180
46181 # Is shlibpath searched before the hard-coded library search path?
46182 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
46183
46184 # Format of library name prefix.
46185 libname_spec=$lt_libname_spec
46186
46187 # List of archive names.  First name is the real one, the rest are links.
46188 # The last name is the one that the linker finds with -lNAME
46189 library_names_spec=$lt_library_names_spec
46190
46191 # The coded name of the library, if different from the real name.
46192 soname_spec=$lt_soname_spec
46193
46194 # Command to use after installation of a shared archive.
46195 postinstall_cmds=$lt_postinstall_cmds
46196
46197 # Command to use after uninstallation of a shared archive.
46198 postuninstall_cmds=$lt_postuninstall_cmds
46199
46200 # Commands used to finish a libtool library installation in a directory.
46201 finish_cmds=$lt_finish_cmds
46202
46203 # As "finish_cmds", except a single script fragment to be evaled but
46204 # not shown.
46205 finish_eval=$lt_finish_eval
46206
46207 # Whether we should hardcode library paths into libraries.
46208 hardcode_into_libs=$hardcode_into_libs
46209
46210 # Compile-time system search path for libraries.
46211 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
46212
46213 # Run-time system search path for libraries.
46214 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
46215
46216 # Whether dlopen is supported.
46217 dlopen_support=$enable_dlopen
46218
46219 # Whether dlopen of programs is supported.
46220 dlopen_self=$enable_dlopen_self
46221
46222 # Whether dlopen of statically linked programs is supported.
46223 dlopen_self_static=$enable_dlopen_self_static
46224
46225 # Commands to strip libraries.
46226 old_striplib=$lt_old_striplib
46227 striplib=$lt_striplib
46228
46229
46230 # The linker used to build libraries.
46231 LD=$lt_LD
46232
46233 # Commands used to build an old-style archive.
46234 old_archive_cmds=$lt_old_archive_cmds
46235
46236 # A language specific compiler.
46237 CC=$lt_compiler
46238
46239 # Is the compiler the GNU compiler?
46240 with_gcc=$GCC
46241
46242 # Compiler flag to turn off builtin functions.
46243 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
46244
46245 # How to pass a linker flag through the compiler.
46246 wl=$lt_lt_prog_compiler_wl
46247
46248 # Additional compiler flags for building library objects.
46249 pic_flag=$lt_lt_prog_compiler_pic
46250
46251 # Compiler flag to prevent dynamic linking.
46252 link_static_flag=$lt_lt_prog_compiler_static
46253
46254 # Does compiler simultaneously support -c and -o options?
46255 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
46256
46257 # Whether or not to add -lc for building shared libraries.
46258 build_libtool_need_lc=$archive_cmds_need_lc
46259
46260 # Whether or not to disallow shared libs when runtime libs are static.
46261 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
46262
46263 # Compiler flag to allow reflexive dlopens.
46264 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
46265
46266 # Compiler flag to generate shared objects directly from archives.
46267 whole_archive_flag_spec=$lt_whole_archive_flag_spec
46268
46269 # Whether the compiler copes with passing no objects directly.
46270 compiler_needs_object=$lt_compiler_needs_object
46271
46272 # Create an old-style archive from a shared archive.
46273 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
46274
46275 # Create a temporary old-style archive to link instead of a shared archive.
46276 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
46277
46278 # Commands used to build a shared archive.
46279 archive_cmds=$lt_archive_cmds
46280 archive_expsym_cmds=$lt_archive_expsym_cmds
46281
46282 # Commands used to build a loadable module if different from building
46283 # a shared archive.
46284 module_cmds=$lt_module_cmds
46285 module_expsym_cmds=$lt_module_expsym_cmds
46286
46287 # Whether we are building with GNU ld or not.
46288 with_gnu_ld=$lt_with_gnu_ld
46289
46290 # Flag that allows shared libraries with undefined symbols to be built.
46291 allow_undefined_flag=$lt_allow_undefined_flag
46292
46293 # Flag that enforces no undefined symbols.
46294 no_undefined_flag=$lt_no_undefined_flag
46295
46296 # Flag to hardcode \$libdir into a binary during linking.
46297 # This must work even if \$libdir does not exist
46298 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
46299
46300 # If ld is used when linking, flag to hardcode \$libdir into a binary
46301 # during linking.  This must work even if \$libdir does not exist.
46302 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
46303
46304 # Whether we need a single "-rpath" flag with a separated argument.
46305 hardcode_libdir_separator=$lt_hardcode_libdir_separator
46306
46307 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
46308 # DIR into the resulting binary.
46309 hardcode_direct=$hardcode_direct
46310
46311 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
46312 # DIR into the resulting binary and the resulting library dependency is
46313 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
46314 # library is relocated.
46315 hardcode_direct_absolute=$hardcode_direct_absolute
46316
46317 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
46318 # into the resulting binary.
46319 hardcode_minus_L=$hardcode_minus_L
46320
46321 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
46322 # into the resulting binary.
46323 hardcode_shlibpath_var=$hardcode_shlibpath_var
46324
46325 # Set to "yes" if building a shared library automatically hardcodes DIR
46326 # into the library and all subsequent libraries and executables linked
46327 # against it.
46328 hardcode_automatic=$hardcode_automatic
46329
46330 # Set to yes if linker adds runtime paths of dependent libraries
46331 # to runtime path list.
46332 inherit_rpath=$inherit_rpath
46333
46334 # Whether libtool must link a program against all its dependency libraries.
46335 link_all_deplibs=$link_all_deplibs
46336
46337 # Fix the shell variable \$srcfile for the compiler.
46338 fix_srcfile_path=$lt_fix_srcfile_path
46339
46340 # Set to "yes" if exported symbols are required.
46341 always_export_symbols=$always_export_symbols
46342
46343 # The commands to list exported symbols.
46344 export_symbols_cmds=$lt_export_symbols_cmds
46345
46346 # Symbols that should not be listed in the preloaded symbols.
46347 exclude_expsyms=$lt_exclude_expsyms
46348
46349 # Symbols that must always be exported.
46350 include_expsyms=$lt_include_expsyms
46351
46352 # Commands necessary for linking programs (against libraries) with templates.
46353 prelink_cmds=$lt_prelink_cmds
46354
46355 # Specify filename containing input files.
46356 file_list_spec=$lt_file_list_spec
46357
46358 # How to hardcode a shared library path into an executable.
46359 hardcode_action=$hardcode_action
46360
46361 # The directories searched by this compiler when creating a shared library.
46362 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
46363
46364 # Dependencies to place before and after the objects being linked to
46365 # create a shared library.
46366 predep_objects=$lt_predep_objects
46367 postdep_objects=$lt_postdep_objects
46368 predeps=$lt_predeps
46369 postdeps=$lt_postdeps
46370
46371 # The library search path used internally by the compiler when linking
46372 # a shared library.
46373 compiler_lib_search_path=$lt_compiler_lib_search_path
46374
46375 # ### END LIBTOOL CONFIG
46376
46377 _LT_EOF
46378
46379   case $host_os in
46380   aix3*)
46381     cat <<\_LT_EOF >> "$cfgfile"
46382 # AIX sometimes has problems with the GCC collect2 program.  For some
46383 # reason, if we set the COLLECT_NAMES environment variable, the problems
46384 # vanish in a puff of smoke.
46385 if test "X${COLLECT_NAMES+set}" != Xset; then
46386   COLLECT_NAMES=
46387   export COLLECT_NAMES
46388 fi
46389 _LT_EOF
46390     ;;
46391   esac
46392
46393
46394 ltmain="$ac_aux_dir/ltmain.sh"
46395
46396
46397   # We use sed instead of cat because bash on DJGPP gets confused if
46398   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
46399   # text mode, it properly converts lines to CR/LF.  This bash problem
46400   # is reportedly fixed, but why not run on old versions too?
46401   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
46402     || (rm -f "$cfgfile"; exit 1)
46403
46404   case $xsi_shell in
46405   yes)
46406     cat << \_LT_EOF >> "$cfgfile"
46407
46408 # func_dirname file append nondir_replacement
46409 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
46410 # otherwise set result to NONDIR_REPLACEMENT.
46411 func_dirname ()
46412 {
46413   case ${1} in
46414     */*) func_dirname_result="${1%/*}${2}" ;;
46415     *  ) func_dirname_result="${3}" ;;
46416   esac
46417 }
46418
46419 # func_basename file
46420 func_basename ()
46421 {
46422   func_basename_result="${1##*/}"
46423 }
46424
46425 # func_dirname_and_basename file append nondir_replacement
46426 # perform func_basename and func_dirname in a single function
46427 # call:
46428 #   dirname:  Compute the dirname of FILE.  If nonempty,
46429 #             add APPEND to the result, otherwise set result
46430 #             to NONDIR_REPLACEMENT.
46431 #             value returned in "$func_dirname_result"
46432 #   basename: Compute filename of FILE.
46433 #             value retuned in "$func_basename_result"
46434 # Implementation must be kept synchronized with func_dirname
46435 # and func_basename. For efficiency, we do not delegate to
46436 # those functions but instead duplicate the functionality here.
46437 func_dirname_and_basename ()
46438 {
46439   case ${1} in
46440     */*) func_dirname_result="${1%/*}${2}" ;;
46441     *  ) func_dirname_result="${3}" ;;
46442   esac
46443   func_basename_result="${1##*/}"
46444 }
46445
46446 # func_stripname prefix suffix name
46447 # strip PREFIX and SUFFIX off of NAME.
46448 # PREFIX and SUFFIX must not contain globbing or regex special
46449 # characters, hashes, percent signs, but SUFFIX may contain a leading
46450 # dot (in which case that matches only a dot).
46451 func_stripname ()
46452 {
46453   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
46454   # positional parameters, so assign one to ordinary parameter first.
46455   func_stripname_result=${3}
46456   func_stripname_result=${func_stripname_result#"${1}"}
46457   func_stripname_result=${func_stripname_result%"${2}"}
46458 }
46459
46460 # func_opt_split
46461 func_opt_split ()
46462 {
46463   func_opt_split_opt=${1%%=*}
46464   func_opt_split_arg=${1#*=}
46465 }
46466
46467 # func_lo2o object
46468 func_lo2o ()
46469 {
46470   case ${1} in
46471     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
46472     *)    func_lo2o_result=${1} ;;
46473   esac
46474 }
46475
46476 # func_xform libobj-or-source
46477 func_xform ()
46478 {
46479   func_xform_result=${1%.*}.lo
46480 }
46481
46482 # func_arith arithmetic-term...
46483 func_arith ()
46484 {
46485   func_arith_result=$(( $* ))
46486 }
46487
46488 # func_len string
46489 # STRING may not start with a hyphen.
46490 func_len ()
46491 {
46492   func_len_result=${#1}
46493 }
46494
46495 _LT_EOF
46496     ;;
46497   *) # Bourne compatible functions.
46498     cat << \_LT_EOF >> "$cfgfile"
46499
46500 # func_dirname file append nondir_replacement
46501 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
46502 # otherwise set result to NONDIR_REPLACEMENT.
46503 func_dirname ()
46504 {
46505   # Extract subdirectory from the argument.
46506   func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
46507   if test "X$func_dirname_result" = "X${1}"; then
46508     func_dirname_result="${3}"
46509   else
46510     func_dirname_result="$func_dirname_result${2}"
46511   fi
46512 }
46513
46514 # func_basename file
46515 func_basename ()
46516 {
46517   func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
46518 }
46519
46520
46521 # func_stripname prefix suffix name
46522 # strip PREFIX and SUFFIX off of NAME.
46523 # PREFIX and SUFFIX must not contain globbing or regex special
46524 # characters, hashes, percent signs, but SUFFIX may contain a leading
46525 # dot (in which case that matches only a dot).
46526 # func_strip_suffix prefix name
46527 func_stripname ()
46528 {
46529   case ${2} in
46530     .*) func_stripname_result=`$ECHO "X${3}" \
46531            | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
46532     *)  func_stripname_result=`$ECHO "X${3}" \
46533            | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
46534   esac
46535 }
46536
46537 # sed scripts:
46538 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
46539 my_sed_long_arg='1s/^-[^=]*=//'
46540
46541 # func_opt_split
46542 func_opt_split ()
46543 {
46544   func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
46545   func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
46546 }
46547
46548 # func_lo2o object
46549 func_lo2o ()
46550 {
46551   func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
46552 }
46553
46554 # func_xform libobj-or-source
46555 func_xform ()
46556 {
46557   func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
46558 }
46559
46560 # func_arith arithmetic-term...
46561 func_arith ()
46562 {
46563   func_arith_result=`expr "$@"`
46564 }
46565
46566 # func_len string
46567 # STRING may not start with a hyphen.
46568 func_len ()
46569 {
46570   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
46571 }
46572
46573 _LT_EOF
46574 esac
46575
46576 case $lt_shell_append in
46577   yes)
46578     cat << \_LT_EOF >> "$cfgfile"
46579
46580 # func_append var value
46581 # Append VALUE to the end of shell variable VAR.
46582 func_append ()
46583 {
46584   eval "$1+=\$2"
46585 }
46586 _LT_EOF
46587     ;;
46588   *)
46589     cat << \_LT_EOF >> "$cfgfile"
46590
46591 # func_append var value
46592 # Append VALUE to the end of shell variable VAR.
46593 func_append ()
46594 {
46595   eval "$1=\$$1\$2"
46596 }
46597
46598 _LT_EOF
46599     ;;
46600   esac
46601
46602
46603   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
46604     || (rm -f "$cfgfile"; exit 1)
46605
46606   mv -f "$cfgfile" "$ofile" ||
46607     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
46608   chmod +x "$ofile"
46609
46610
46611     cat <<_LT_EOF >> "$ofile"
46612
46613 # ### BEGIN LIBTOOL TAG CONFIG: CXX
46614
46615 # The linker used to build libraries.
46616 LD=$lt_LD_CXX
46617
46618 # Commands used to build an old-style archive.
46619 old_archive_cmds=$lt_old_archive_cmds_CXX
46620
46621 # A language specific compiler.
46622 CC=$lt_compiler_CXX
46623
46624 # Is the compiler the GNU compiler?
46625 with_gcc=$GCC_CXX
46626
46627 # Compiler flag to turn off builtin functions.
46628 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
46629
46630 # How to pass a linker flag through the compiler.
46631 wl=$lt_lt_prog_compiler_wl_CXX
46632
46633 # Additional compiler flags for building library objects.
46634 pic_flag=$lt_lt_prog_compiler_pic_CXX
46635
46636 # Compiler flag to prevent dynamic linking.
46637 link_static_flag=$lt_lt_prog_compiler_static_CXX
46638
46639 # Does compiler simultaneously support -c and -o options?
46640 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
46641
46642 # Whether or not to add -lc for building shared libraries.
46643 build_libtool_need_lc=$archive_cmds_need_lc_CXX
46644
46645 # Whether or not to disallow shared libs when runtime libs are static.
46646 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
46647
46648 # Compiler flag to allow reflexive dlopens.
46649 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
46650
46651 # Compiler flag to generate shared objects directly from archives.
46652 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
46653
46654 # Whether the compiler copes with passing no objects directly.
46655 compiler_needs_object=$lt_compiler_needs_object_CXX
46656
46657 # Create an old-style archive from a shared archive.
46658 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
46659
46660 # Create a temporary old-style archive to link instead of a shared archive.
46661 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
46662
46663 # Commands used to build a shared archive.
46664 archive_cmds=$lt_archive_cmds_CXX
46665 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
46666
46667 # Commands used to build a loadable module if different from building
46668 # a shared archive.
46669 module_cmds=$lt_module_cmds_CXX
46670 module_expsym_cmds=$lt_module_expsym_cmds_CXX
46671
46672 # Whether we are building with GNU ld or not.
46673 with_gnu_ld=$lt_with_gnu_ld_CXX
46674
46675 # Flag that allows shared libraries with undefined symbols to be built.
46676 allow_undefined_flag=$lt_allow_undefined_flag_CXX
46677
46678 # Flag that enforces no undefined symbols.
46679 no_undefined_flag=$lt_no_undefined_flag_CXX
46680
46681 # Flag to hardcode \$libdir into a binary during linking.
46682 # This must work even if \$libdir does not exist
46683 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
46684
46685 # If ld is used when linking, flag to hardcode \$libdir into a binary
46686 # during linking.  This must work even if \$libdir does not exist.
46687 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
46688
46689 # Whether we need a single "-rpath" flag with a separated argument.
46690 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
46691
46692 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
46693 # DIR into the resulting binary.
46694 hardcode_direct=$hardcode_direct_CXX
46695
46696 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
46697 # DIR into the resulting binary and the resulting library dependency is
46698 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
46699 # library is relocated.
46700 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
46701
46702 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
46703 # into the resulting binary.
46704 hardcode_minus_L=$hardcode_minus_L_CXX
46705
46706 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
46707 # into the resulting binary.
46708 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
46709
46710 # Set to "yes" if building a shared library automatically hardcodes DIR
46711 # into the library and all subsequent libraries and executables linked
46712 # against it.
46713 hardcode_automatic=$hardcode_automatic_CXX
46714
46715 # Set to yes if linker adds runtime paths of dependent libraries
46716 # to runtime path list.
46717 inherit_rpath=$inherit_rpath_CXX
46718
46719 # Whether libtool must link a program against all its dependency libraries.
46720 link_all_deplibs=$link_all_deplibs_CXX
46721
46722 # Fix the shell variable \$srcfile for the compiler.
46723 fix_srcfile_path=$lt_fix_srcfile_path_CXX
46724
46725 # Set to "yes" if exported symbols are required.
46726 always_export_symbols=$always_export_symbols_CXX
46727
46728 # The commands to list exported symbols.
46729 export_symbols_cmds=$lt_export_symbols_cmds_CXX
46730
46731 # Symbols that should not be listed in the preloaded symbols.
46732 exclude_expsyms=$lt_exclude_expsyms_CXX
46733
46734 # Symbols that must always be exported.
46735 include_expsyms=$lt_include_expsyms_CXX
46736
46737 # Commands necessary for linking programs (against libraries) with templates.
46738 prelink_cmds=$lt_prelink_cmds_CXX
46739
46740 # Specify filename containing input files.
46741 file_list_spec=$lt_file_list_spec_CXX
46742
46743 # How to hardcode a shared library path into an executable.
46744 hardcode_action=$hardcode_action_CXX
46745
46746 # The directories searched by this compiler when creating a shared library.
46747 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
46748
46749 # Dependencies to place before and after the objects being linked to
46750 # create a shared library.
46751 predep_objects=$lt_predep_objects_CXX
46752 postdep_objects=$lt_postdep_objects_CXX
46753 predeps=$lt_predeps_CXX
46754 postdeps=$lt_postdeps_CXX
46755
46756 # The library search path used internally by the compiler when linking
46757 # a shared library.
46758 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
46759
46760 # ### END LIBTOOL TAG CONFIG: CXX
46761 _LT_EOF
46762
46763  ;;
46764     "default-1":C)
46765     for ac_file in $CONFIG_FILES; do
46766       # Support "outfile[:infile[:infile...]]"
46767       case "$ac_file" in
46768         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
46769       esac
46770       # PO directories have a Makefile.in generated from Makefile.in.in.
46771       case "$ac_file" in */Makefile.in)
46772         # Adjust a relative srcdir.
46773         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
46774         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
46775         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
46776         # In autoconf-2.13 it is called $ac_given_srcdir.
46777         # In autoconf-2.50 it is called $srcdir.
46778         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
46779         case "$ac_given_srcdir" in
46780           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
46781           /*) top_srcdir="$ac_given_srcdir" ;;
46782           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
46783         esac
46784         # Treat a directory as a PO directory if and only if it has a
46785         # POTFILES.in file. This allows packages to have multiple PO
46786         # directories under different names or in different locations.
46787         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
46788           rm -f "$ac_dir/POTFILES"
46789           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
46790           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
46791           POMAKEFILEDEPS="POTFILES.in"
46792           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
46793           # on $ac_dir but don't depend on user-specified configuration
46794           # parameters.
46795           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
46796             # The LINGUAS file contains the set of available languages.
46797             if test -n "$OBSOLETE_ALL_LINGUAS"; then
46798               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
46799             fi
46800             ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
46801             # Hide the ALL_LINGUAS assigment from automake.
46802             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
46803             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
46804           else
46805             # The set of available languages was given in configure.in.
46806             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
46807           fi
46808           # Compute POFILES
46809           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
46810           # Compute UPDATEPOFILES
46811           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
46812           # Compute DUMMYPOFILES
46813           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
46814           # Compute GMOFILES
46815           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
46816           case "$ac_given_srcdir" in
46817             .) srcdirpre= ;;
46818             *) srcdirpre='$(srcdir)/' ;;
46819           esac
46820           POFILES=
46821           UPDATEPOFILES=
46822           DUMMYPOFILES=
46823           GMOFILES=
46824           for lang in $ALL_LINGUAS; do
46825             POFILES="$POFILES $srcdirpre$lang.po"
46826             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
46827             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
46828             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
46829           done
46830           # CATALOGS depends on both $ac_dir and the user's LINGUAS
46831           # environment variable.
46832           INST_LINGUAS=
46833           if test -n "$ALL_LINGUAS"; then
46834             for presentlang in $ALL_LINGUAS; do
46835               useit=no
46836               if test "%UNSET%" != "$LINGUAS"; then
46837                 desiredlanguages="$LINGUAS"
46838               else
46839                 desiredlanguages="$ALL_LINGUAS"
46840               fi
46841               for desiredlang in $desiredlanguages; do
46842                 # Use the presentlang catalog if desiredlang is
46843                 #   a. equal to presentlang, or
46844                 #   b. a variant of presentlang (because in this case,
46845                 #      presentlang can be used as a fallback for messages
46846                 #      which are not translated in the desiredlang catalog).
46847                 case "$desiredlang" in
46848                   "$presentlang"*) useit=yes;;
46849                 esac
46850               done
46851               if test $useit = yes; then
46852                 INST_LINGUAS="$INST_LINGUAS $presentlang"
46853               fi
46854             done
46855           fi
46856           CATALOGS=
46857           if test -n "$INST_LINGUAS"; then
46858             for lang in $INST_LINGUAS; do
46859               CATALOGS="$CATALOGS $lang.gmo"
46860             done
46861           fi
46862           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
46863           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"
46864           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
46865             if test -f "$f"; then
46866               case "$f" in
46867                 *.orig | *.bak | *~) ;;
46868                 *) cat "$f" >> "$ac_dir/Makefile" ;;
46869               esac
46870             fi
46871           done
46872         fi
46873         ;;
46874       esac
46875     done ;;
46876     "default":C)
46877  ;;
46878
46879   esac
46880 done # for ac_tag
46881
46882
46883 { (exit 0); exit 0; }
46884 _ACEOF
46885 chmod +x $CONFIG_STATUS
46886 ac_clean_files=$ac_clean_files_save
46887
46888
46889 # configure is writing to config.log, and then calls config.status.
46890 # config.status does its own redirection, appending to config.log.
46891 # Unfortunately, on DOS this fails, as config.log is still kept open
46892 # by configure, so config.status won't be able to write to it; its
46893 # output is simply discarded.  So we exec the FD to /dev/null,
46894 # effectively closing config.log, so it can be properly (re)opened and
46895 # appended to by config.status.  When coming back to configure, we
46896 # need to make the FD available again.
46897 if test "$no_create" != yes; then
46898   ac_cs_success=:
46899   ac_config_status_args=
46900   test "$silent" = yes &&
46901     ac_config_status_args="$ac_config_status_args --quiet"
46902   exec 5>/dev/null
46903   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
46904   exec 5>>config.log
46905   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
46906   # would make configure fail if this is the last instruction.
46907   $ac_cs_success || { (exit 1); exit 1; }
46908 fi
46909
46910
46911 if test "${support_bat}" = "yes" ; then
46912    if test "x$QMAKE" = "xnone" && test "x$QMAKEQT4" = "xnone"; then
46913       { { echo "$as_me:$LINENO: error: Could not find qmake or qmake-qt4 in $PATH. Check your Qt installation" >&5
46914 echo "$as_me: error: Could not find qmake or qmake-qt4 in $PATH. Check your Qt installation" >&2;}
46915    { (exit 1); exit 1; }; }
46916    fi
46917
46918    QMAKEBIN="qmake"
46919
46920    if test "x$QMAKEQT4" != "xnone"; then
46921        QMAKEBIN=qmake-qt4
46922    fi
46923
46924    cd src/qt-console
46925    echo "Creating bat Makefile"
46926    touch bat
46927    chmod 755 bat
46928    $QMAKEBIN
46929    ${MAKE:-make} clean
46930    cd ${BUILD_DIR}
46931 fi
46932
46933 if test X"$GCC" = "Xyes" ; then
46934   echo "Doing make of dependencies"
46935   ${MAKE:-make} depend
46936 fi
46937
46938 cd src/qt-console
46939 chmod 755 install_conf_file build-depkgs-qt-console
46940 cd ${BUILD_DIR}
46941
46942 cd scripts
46943 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
46944 chmod 755 dvd-handler dvd-simulator breload make_catalog_backup.pl
46945 chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
46946 cd ..
46947
46948 c=updatedb
46949 chmod 755 $c/update_mysql_tables_10_to_11   $c/update_sqlite3_tables_10_to_11
46950 chmod 755 $c/update_postgresql_tables_10_to_11
46951
46952 c=src/cats
46953
46954 chmod 755 $c/create_bacula_database   $c/update_bacula_tables  $c/make_bacula_tables
46955 chmod 755 $c/grant_bacula_privileges  $c/drop_bacula_tables    $c/drop_bacula_database
46956
46957 chmod 755 $c/create_bdb_database      $c/update_bdb_tables     $c/make_bdb_tables
46958 chmod 755 $c/grant_bdb_privileges     $c/drop_bdb_tables       $c/drop_bdb_database
46959
46960 chmod 755 $c/create_mysql_database    $c/update_mysql_tables   $c/make_mysql_tables
46961 chmod 755 $c/grant_mysql_privileges   $c/drop_mysql_tables     $c/drop_mysql_database
46962
46963 chmod 755 $c/create_sqlite3_database   $c/update_sqlite3_tables  $c/make_sqlite3_tables
46964 chmod 755 $c/grant_sqlite3_privileges  $c/drop_sqlite3_tables    $c/drop_sqlite3_database
46965
46966 chmod 755 $c/create_postgresql_database  $c/update_postgresql_tables $c/make_postgresql_tables
46967 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables   $c/drop_postgresql_database
46968
46969 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup
46970 chmod 755 $c/sqlite
46971 chmod 755 $c/mysql
46972
46973 chmod 755 src/win32/build-depkgs-mingw32
46974
46975 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
46976    largefile_support="yes"
46977 fi
46978
46979 if test X"$GCC" = "Xyes" ; then
46980                CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
46981    if test "x${CCVERSION}" = "x" ; then
46982       CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
46983    fi
46984    CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
46985    if test x"${CXXVERSION}" = x ; then
46986       CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
46987    fi
46988 fi
46989
46990 # clean up any old junk
46991 echo " "
46992 echo "Cleaning up"
46993 echo " "
46994 ${MAKE:-make} clean
46995
46996 if test "x${db_type}" = "xInternal" ; then
46997    echo " "
46998    echo " "
46999    echo "You have not specified either --enable-client-only or one of the"
47000    echo "  supported databases: MySQL, PostgreSQL, SQLite3, SQLite or DBI."
47001    echo "  This is not permitted. Please reconfigure."
47002    echo " "
47003    echo "Aborting the configuration ..."
47004    echo " "
47005    echo " "
47006    exit 1
47007 fi
47008
47009 echo "
47010 Configuration on `date`:
47011
47012    Host:                    ${host}${post_host} -- ${DISTNAME} ${DISTVER}
47013    Bacula version:          ${BACULA} ${VERSION} (${DATE})
47014    Source code location:    ${srcdir}
47015    Install binaries:        ${sbindir}
47016    Install libraries:       ${libdir}
47017    Install config files:    ${sysconfdir}
47018    Scripts directory:       ${scriptdir}
47019    Archive directory:       ${archivedir}
47020    Working directory:       ${working_dir}
47021    PID directory:           ${piddir}
47022    Subsys directory:        ${subsysdir}
47023    Man directory:           ${mandir}
47024    Data directory:          ${datarootdir}
47025    Plugin directory:        ${plugindir}
47026    C Compiler:              ${CC} ${CCVERSION}
47027    C++ Compiler:            ${CXX} ${CXXVERSION}
47028    Compiler flags:          ${WCFLAGS} ${CFLAGS}
47029    Linker flags:            ${WLDFLAGS} ${LDFLAGS}
47030    Libraries:               ${LIBS}
47031    Statically Linked Tools: ${support_static_tools}
47032    Statically Linked FD:    ${support_static_fd}
47033    Statically Linked SD:    ${support_static_sd}
47034    Statically Linked DIR:   ${support_static_dir}
47035    Statically Linked CONS:  ${support_static_cons}
47036    Database type:           ${db_type}
47037    Database port:           ${db_port}
47038    Database lib:            ${DB_LIBS}
47039    Database name:           ${db_name}
47040    Database user:           ${db_user}
47041
47042    Job Output Email:        ${job_email}
47043    Traceback Email:         ${dump_email}
47044    SMTP Host Address:       ${smtp_host}
47045
47046    Director Port:           ${dir_port}
47047    File daemon Port:        ${fd_port}
47048    Storage daemon Port:     ${sd_port}
47049
47050    Director User:           ${dir_user}
47051    Director Group:          ${dir_group}
47052    Storage Daemon User:     ${sd_user}
47053    Storage DaemonGroup:     ${sd_group}
47054    File Daemon User:        ${fd_user}
47055    File Daemon Group:       ${fd_group}
47056
47057    SQL binaries Directory   ${SQL_BINDIR}
47058
47059    Large file support:      $largefile_support
47060    Bacula conio support:    ${got_conio} ${CONS_LIBS}
47061    readline support:        ${got_readline} ${PRTREADLINE_SRC}
47062    TCP Wrappers support:    ${TCPW_MSG} ${WRAPLIBS}
47063    TLS support:             ${support_tls}
47064    Encryption support:      ${support_crypto}
47065    ZLIB support:            ${have_zlib}
47066    enable-smartalloc:       ${support_smartalloc}
47067    enable-lockmgr:          ${support_lockmgr}
47068    bat support:             ${support_bat} ${QWT_LDFLAGS}
47069    enable-gnome:            ${support_gnome} ${gnome_version}
47070    enable-bwx-console:      ${support_wx_console} ${wx_version}
47071    enable-tray-monitor:     ${support_tray_monitor}
47072    client-only:             ${build_client_only}
47073    build-dird:              ${build_dird}
47074    build-stored:            ${build_stored}
47075    Plugin support:          ${have_plugins}
47076    ACL support:             ${have_acl}
47077    XATTR support:           ${have_xattr}
47078    Python support:          ${support_python} ${PYTHON_LIBS}
47079    Batch insert enabled:    ${support_batch_insert}
47080
47081   " > config.out
47082
47083 # create a small shell script useful for support with
47084 # configure options and config.out info
47085 cat > scripts/bacula_config << EOF
47086 #!/bin/sh
47087 cat << __EOC__
47088 $ $0 $ac_configure_args
47089 EOF
47090 cat config.out >> scripts/bacula_config
47091 echo __EOC__ >> scripts/bacula_config
47092 chmod 755 scripts/bacula_config
47093
47094 cat config.out
47095
47096 # Display a warning message if postgresql client lib is <= 8.1
47097 if test x$DB_TYPE = xpostgresql -a x$ac_cv_lib_pq_PQisthreadsafe != xyes \
47098         -a x$support_batch_insert = xyes
47099 then
47100         echo "WARNING: Your PostgreSQL client library is too old to detect "
47101         echo " if it was compiled with --enable-thread-safety, consider to"
47102         echo " upgrade it in order to avoid problems with Batch insert mode"
47103         echo
47104 fi