]> git.sur5r.net Git - bacula/bacula/blob - bacula/configure
06Apr09
[bacula/bacula] / bacula / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization.  ##
11 ## --------------------- ##
12
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16   emulate sh
17   NULLCMD=:
18   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19   # is contrary to our usage.  Disable this feature.
20   alias -g '${1+"$@"}'='"$@"'
21   setopt NO_GLOB_SUBST
22 else
23   case `(set -o) 2>/dev/null` in
24   *posix*) set -o posix ;;
25 esac
26
27 fi
28
29
30
31
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42   echo "#! /bin/sh" >conf$$.sh
43   echo  "exit 0"   >>conf$$.sh
44   chmod +x conf$$.sh
45   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46     PATH_SEPARATOR=';'
47   else
48     PATH_SEPARATOR=:
49   fi
50   rm -f conf$$.sh
51 fi
52
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55   as_unset=unset
56 else
57   as_unset=false
58 fi
59
60
61 # IFS
62 # We need space, tab and new line, in precisely that order.  Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
66 as_nl='
67 '
68 IFS=" ""        $as_nl"
69
70 # Find who we are.  Look in the path if we contain no directory separator.
71 case $0 in
72   *[\\/]* ) as_myself=$0 ;;
73   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74 for as_dir in $PATH
75 do
76   IFS=$as_save_IFS
77   test -z "$as_dir" && as_dir=.
78   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79 done
80 IFS=$as_save_IFS
81
82      ;;
83 esac
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
87   as_myself=$0
88 fi
89 if test ! -f "$as_myself"; then
90   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91   { (exit 1); exit 1; }
92 fi
93
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97 done
98 PS1='$ '
99 PS2='> '
100 PS4='+ '
101
102 # NLS nuisances.
103 for as_var in \
104   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106   LC_TELEPHONE LC_TIME
107 do
108   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109     eval $as_var=C; export $as_var
110   else
111     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
112   fi
113 done
114
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117    test "X`expr 00001 : '.*\(...\)'`" = X001; then
118   as_expr=expr
119 else
120   as_expr=false
121 fi
122
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124   as_basename=basename
125 else
126   as_basename=false
127 fi
128
129
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133          X"$0" : 'X\(//\)$' \| \
134          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 echo X/"$0" |
136     sed '/^.*\/\([^/][^/]*\)\/*$/{
137             s//\1/
138             q
139           }
140           /^X\/\(\/\/\)$/{
141             s//\1/
142             q
143           }
144           /^X\/\(\/\).*/{
145             s//\1/
146             q
147           }
148           s/.*/./; q'`
149
150 # CDPATH.
151 $as_unset CDPATH
152
153
154 if test "x$CONFIG_SHELL" = x; then
155   if (eval ":") 2>/dev/null; then
156   as_have_required=yes
157 else
158   as_have_required=no
159 fi
160
161   if test $as_have_required = yes &&     (eval ":
162 (as_func_return () {
163   (exit \$1)
164 }
165 as_func_success () {
166   as_func_return 0
167 }
168 as_func_failure () {
169   as_func_return 1
170 }
171 as_func_ret_success () {
172   return 0
173 }
174 as_func_ret_failure () {
175   return 1
176 }
177
178 exitcode=0
179 if as_func_success; then
180   :
181 else
182   exitcode=1
183   echo as_func_success failed.
184 fi
185
186 if as_func_failure; then
187   exitcode=1
188   echo as_func_failure succeeded.
189 fi
190
191 if as_func_ret_success; then
192   :
193 else
194   exitcode=1
195   echo as_func_ret_success failed.
196 fi
197
198 if as_func_ret_failure; then
199   exitcode=1
200   echo as_func_ret_failure succeeded.
201 fi
202
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204   :
205 else
206   exitcode=1
207   echo positional parameters were not saved.
208 fi
209
210 test \$exitcode = 0) || { (exit 1); exit 1; }
211
212 (
213   as_lineno_1=\$LINENO
214   as_lineno_2=\$LINENO
215   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
218   :
219 else
220   as_candidate_shells=
221     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 do
224   IFS=$as_save_IFS
225   test -z "$as_dir" && as_dir=.
226   case $as_dir in
227          /*)
228            for as_base in sh bash ksh sh5; do
229              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230            done;;
231        esac
232 done
233 IFS=$as_save_IFS
234
235
236       for as_shell in $as_candidate_shells $SHELL; do
237          # Try only shells that exist, to save several forks.
238          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239                 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241   emulate sh
242   NULLCMD=:
243   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244   # is contrary to our usage.  Disable this feature.
245   alias -g '${1+"$@"}'='"$@"'
246   setopt NO_GLOB_SUBST
247 else
248   case `(set -o) 2>/dev/null` in
249   *posix*) set -o posix ;;
250 esac
251
252 fi
253
254
255 :
256 _ASEOF
257 }; then
258   CONFIG_SHELL=$as_shell
259                as_have_required=yes
260                if { "$as_shell" 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262   emulate sh
263   NULLCMD=:
264   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265   # is contrary to our usage.  Disable this feature.
266   alias -g '${1+"$@"}'='"$@"'
267   setopt NO_GLOB_SUBST
268 else
269   case `(set -o) 2>/dev/null` in
270   *posix*) set -o posix ;;
271 esac
272
273 fi
274
275
276 :
277 (as_func_return () {
278   (exit $1)
279 }
280 as_func_success () {
281   as_func_return 0
282 }
283 as_func_failure () {
284   as_func_return 1
285 }
286 as_func_ret_success () {
287   return 0
288 }
289 as_func_ret_failure () {
290   return 1
291 }
292
293 exitcode=0
294 if as_func_success; then
295   :
296 else
297   exitcode=1
298   echo as_func_success failed.
299 fi
300
301 if as_func_failure; then
302   exitcode=1
303   echo as_func_failure succeeded.
304 fi
305
306 if as_func_ret_success; then
307   :
308 else
309   exitcode=1
310   echo as_func_ret_success failed.
311 fi
312
313 if as_func_ret_failure; then
314   exitcode=1
315   echo as_func_ret_failure succeeded.
316 fi
317
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
319   :
320 else
321   exitcode=1
322   echo positional parameters were not saved.
323 fi
324
325 test $exitcode = 0) || { (exit 1); exit 1; }
326
327 (
328   as_lineno_1=$LINENO
329   as_lineno_2=$LINENO
330   test "x$as_lineno_1" != "x$as_lineno_2" &&
331   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
332
333 _ASEOF
334 }; then
335   break
336 fi
337
338 fi
339
340       done
341
342       if test "x$CONFIG_SHELL" != x; then
343   for as_var in BASH_ENV ENV
344         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345         done
346         export CONFIG_SHELL
347         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
348 fi
349
350
351     if test $as_have_required = no; then
352   echo This script requires a shell more modern than all the
353       echo shells that I found on your system.  Please install a
354       echo modern shell, or manually run the script under such a
355       echo shell if you do have one.
356       { (exit 1); exit 1; }
357 fi
358
359
360 fi
361
362 fi
363
364
365
366 (eval "as_func_return () {
367   (exit \$1)
368 }
369 as_func_success () {
370   as_func_return 0
371 }
372 as_func_failure () {
373   as_func_return 1
374 }
375 as_func_ret_success () {
376   return 0
377 }
378 as_func_ret_failure () {
379   return 1
380 }
381
382 exitcode=0
383 if as_func_success; then
384   :
385 else
386   exitcode=1
387   echo as_func_success failed.
388 fi
389
390 if as_func_failure; then
391   exitcode=1
392   echo as_func_failure succeeded.
393 fi
394
395 if as_func_ret_success; then
396   :
397 else
398   exitcode=1
399   echo as_func_ret_success failed.
400 fi
401
402 if as_func_ret_failure; then
403   exitcode=1
404   echo as_func_ret_failure succeeded.
405 fi
406
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
408   :
409 else
410   exitcode=1
411   echo positional parameters were not saved.
412 fi
413
414 test \$exitcode = 0") || {
415   echo No shell found that supports shell functions.
416   echo Please tell autoconf@gnu.org about your system,
417   echo including any error possibly output before this
418   echo message
419 }
420
421
422
423   as_lineno_1=$LINENO
424   as_lineno_2=$LINENO
425   test "x$as_lineno_1" != "x$as_lineno_2" &&
426   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
427
428   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429   # uniformly replaced by the line number.  The first 'sed' inserts a
430   # line-number line after each line using $LINENO; the second 'sed'
431   # does the real work.  The second script uses 'N' to pair each
432   # line-number line with the line containing $LINENO, and appends
433   # trailing '-' during substitution so that $LINENO is not a special
434   # case at line end.
435   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436   # scripts with optimization help from Paolo Bonzini.  Blame Lee
437   # E. McMahon (1931-1989) for sed's syntax.  :-)
438   sed -n '
439     p
440     /[$]LINENO/=
441   ' <$as_myself |
442     sed '
443       s/[$]LINENO.*/&-/
444       t lineno
445       b
446       :lineno
447       N
448       :loop
449       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450       t loop
451       s/-\n.*//
452     ' >$as_me.lineno &&
453   chmod +x "$as_me.lineno" ||
454     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455    { (exit 1); exit 1; }; }
456
457   # Don't try to exec as it changes $[0], causing all sort of problems
458   # (the dirname of $[0] is not the place where we might find the
459   # original and so on.  Autoconf is especially sensitive to this).
460   . "./$as_me.lineno"
461   # Exit status is that of the last command.
462   exit
463 }
464
465
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467   as_dirname=dirname
468 else
469   as_dirname=false
470 fi
471
472 ECHO_C= ECHO_N= ECHO_T=
473 case `echo -n x` in
474 -n*)
475   case `echo 'x\c'` in
476   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
477   *)   ECHO_C='\c';;
478   esac;;
479 *)
480   ECHO_N='-n';;
481 esac
482
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484    test "X`expr 00001 : '.*\(...\)'`" = X001; then
485   as_expr=expr
486 else
487   as_expr=false
488 fi
489
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492   rm -f conf$$.dir/conf$$.file
493 else
494   rm -f conf$$.dir
495   mkdir conf$$.dir
496 fi
497 echo >conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
499   as_ln_s='ln -s'
500   # ... but there are two gotchas:
501   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503   # In both cases, we have to default to `cp -p'.
504   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
505     as_ln_s='cp -p'
506 elif ln conf$$.file conf$$ 2>/dev/null; then
507   as_ln_s=ln
508 else
509   as_ln_s='cp -p'
510 fi
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
513
514 if mkdir -p . 2>/dev/null; then
515   as_mkdir_p=:
516 else
517   test -d ./-p && rmdir ./-p
518   as_mkdir_p=false
519 fi
520
521 if test -x / >/dev/null 2>&1; then
522   as_test_x='test -x'
523 else
524   if ls -dL / >/dev/null 2>&1; then
525     as_ls_L_option=L
526   else
527     as_ls_L_option=
528   fi
529   as_test_x='
530     eval sh -c '\''
531       if test -d "$1"; then
532         test -d "$1/.";
533       else
534         case $1 in
535         -*)set "./$1";;
536         esac;
537         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538         ???[sx]*):;;*)false;;esac;fi
539     '\'' sh
540   '
541 fi
542 as_executable_p=$as_test_x
543
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
546
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
549
550
551
552
553 # Check that we are running under the correct shell.
554 SHELL=${CONFIG_SHELL-/bin/sh}
555
556 case X$lt_ECHO in
557 X*--fallback-echo)
558   # Remove one level of quotation (which was required for Make).
559   ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
560   ;;
561 esac
562
563 ECHO=${lt_ECHO-echo}
564 if test "X$1" = X--no-reexec; then
565   # Discard the --no-reexec flag, and continue.
566   shift
567 elif test "X$1" = X--fallback-echo; then
568   # Avoid inline document here, it may be left over
569   :
570 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
571   # Yippee, $ECHO works!
572   :
573 else
574   # Restart under the correct shell.
575   exec $SHELL "$0" --no-reexec ${1+"$@"}
576 fi
577
578 if test "X$1" = X--fallback-echo; then
579   # used as fallback echo
580   shift
581   cat <<_LT_EOF
582 $*
583 _LT_EOF
584   exit 0
585 fi
586
587 # The HP-UX ksh and POSIX shell print the target directory to stdout
588 # if CDPATH is set.
589 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
590
591 if test -z "$lt_ECHO"; then
592   if test "X${echo_test_string+set}" != Xset; then
593     # find a string as large as possible, as long as the shell can cope with it
594     for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
595       # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
596       if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
597          { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
598       then
599         break
600       fi
601     done
602   fi
603
604   if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
605      echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
606      test "X$echo_testing_string" = "X$echo_test_string"; then
607     :
608   else
609     # The Solaris, AIX, and Digital Unix default echo programs unquote
610     # backslashes.  This makes it impossible to quote backslashes using
611     #   echo "$something" | sed 's/\\/\\\\/g'
612     #
613     # So, first we look for a working echo in the user's PATH.
614
615     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
616     for dir in $PATH /usr/ucb; do
617       IFS="$lt_save_ifs"
618       if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
619          test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
620          echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
621          test "X$echo_testing_string" = "X$echo_test_string"; then
622         ECHO="$dir/echo"
623         break
624       fi
625     done
626     IFS="$lt_save_ifs"
627
628     if test "X$ECHO" = Xecho; then
629       # We didn't find a better echo, so look for alternatives.
630       if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
631          echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
632          test "X$echo_testing_string" = "X$echo_test_string"; then
633         # This shell has a builtin print -r that does the trick.
634         ECHO='print -r'
635       elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
636            test "X$CONFIG_SHELL" != X/bin/ksh; then
637         # If we have ksh, try running configure again with it.
638         ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
639         export ORIGINAL_CONFIG_SHELL
640         CONFIG_SHELL=/bin/ksh
641         export CONFIG_SHELL
642         exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
643       else
644         # Try using printf.
645         ECHO='printf %s\n'
646         if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
647            echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
648            test "X$echo_testing_string" = "X$echo_test_string"; then
649           # Cool, printf works
650           :
651         elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
652              test "X$echo_testing_string" = 'X\t' &&
653              echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
654              test "X$echo_testing_string" = "X$echo_test_string"; then
655           CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
656           export CONFIG_SHELL
657           SHELL="$CONFIG_SHELL"
658           export SHELL
659           ECHO="$CONFIG_SHELL $0 --fallback-echo"
660         elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
661              test "X$echo_testing_string" = 'X\t' &&
662              echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
663              test "X$echo_testing_string" = "X$echo_test_string"; then
664           ECHO="$CONFIG_SHELL $0 --fallback-echo"
665         else
666           # maybe with a smaller string...
667           prev=:
668
669           for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
670             if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
671             then
672               break
673             fi
674             prev="$cmd"
675           done
676
677           if test "$prev" != 'sed 50q "$0"'; then
678             echo_test_string=`eval $prev`
679             export echo_test_string
680             exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
681           else
682             # Oops.  We lost completely, so just stick with echo.
683             ECHO=echo
684           fi
685         fi
686       fi
687     fi
688   fi
689 fi
690
691 # Copy echo and quote the copy suitably for passing to libtool from
692 # the Makefile, instead of quoting the original, which is used later.
693 lt_ECHO=$ECHO
694 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
695    lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
696 fi
697
698
699
700
701 exec 7<&0 </dev/null 6>&1
702
703 # Name of the host.
704 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
705 # so uname gets run too.
706 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
707
708 #
709 # Initializations.
710 #
711 ac_default_prefix=/usr/local
712 ac_clean_files=
713 ac_config_libobj_dir=.
714 LIBOBJS=
715 cross_compiling=no
716 subdirs=
717 MFLAGS=
718 MAKEFLAGS=
719 SHELL=${CONFIG_SHELL-/bin/sh}
720
721 # Identity of this package.
722 PACKAGE_NAME=
723 PACKAGE_TARNAME=
724 PACKAGE_VERSION=
725 PACKAGE_STRING=
726 PACKAGE_BUGREPORT=
727
728 ac_unique_file="src/version.h"
729 # Factoring default headers for most tests.
730 ac_includes_default="\
731 #include <stdio.h>
732 #ifdef HAVE_SYS_TYPES_H
733 # include <sys/types.h>
734 #endif
735 #ifdef HAVE_SYS_STAT_H
736 # include <sys/stat.h>
737 #endif
738 #ifdef STDC_HEADERS
739 # include <stdlib.h>
740 # include <stddef.h>
741 #else
742 # ifdef HAVE_STDLIB_H
743 #  include <stdlib.h>
744 # endif
745 #endif
746 #ifdef HAVE_STRING_H
747 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
748 #  include <memory.h>
749 # endif
750 # include <string.h>
751 #endif
752 #ifdef HAVE_STRINGS_H
753 # include <strings.h>
754 #endif
755 #ifdef HAVE_INTTYPES_H
756 # include <inttypes.h>
757 #endif
758 #ifdef HAVE_STDINT_H
759 # include <stdint.h>
760 #endif
761 #ifdef HAVE_UNISTD_H
762 # include <unistd.h>
763 #endif"
764
765 ac_subst_vars='SHELL
766 PATH_SEPARATOR
767 PACKAGE_NAME
768 PACKAGE_TARNAME
769 PACKAGE_VERSION
770 PACKAGE_STRING
771 PACKAGE_BUGREPORT
772 exec_prefix
773 prefix
774 program_transform_name
775 bindir
776 sbindir
777 libexecdir
778 datarootdir
779 datadir
780 sysconfdir
781 sharedstatedir
782 localstatedir
783 includedir
784 oldincludedir
785 docdir
786 infodir
787 htmldir
788 dvidir
789 pdfdir
790 psdir
791 libdir
792 localedir
793 mandir
794 DEFS
795 ECHO_C
796 ECHO_N
797 ECHO_T
798 LIBS
799 build_alias
800 host_alias
801 target_alias
802 BUILD_DIR
803 TOP_DIR
804 WIN32BUILDDIR
805 WIN32MAINDIR
806 WIN32TOPDIR
807 TRUEPRG
808 FALSEPRG
809 VERSION
810 DATE
811 LSMDATE
812 BACULA
813 post_host
814 CC
815 CFLAGS
816 LDFLAGS
817 CPPFLAGS
818 ac_ct_CC
819 EXEEXT
820 OBJEXT
821 CXX
822 CXXFLAGS
823 ac_ct_CXX
824 CPP
825 GREP
826 EGREP
827 INSTALL_PROGRAM
828 INSTALL_SCRIPT
829 INSTALL_DATA
830 MV
831 REMOVE
832 CP
833 SED
834 ECHO
835 CMP
836 TBL
837 AR
838 OPENSSL
839 MTX
840 DD
841 MKISOFS
842 PYTHON
843 GROWISOFS
844 DVDRWMEDIAINFO
845 DVDRWFORMAT
846 PKGCONFIG
847 QMAKE
848 QMAKEQT4
849 GMAKE
850 WXCONFIG
851 WXFLAGS
852 CDRECORD
853 PIDOF
854 AWK
855 ARFLAGS
856 MAKE_SHELL
857 LOCAL_LIBS
858 LOCAL_CFLAGS
859 LOCAL_LDFLAGS
860 LOCAL_DEFS
861 LIBTOOL
862 build
863 build_cpu
864 build_vendor
865 build_os
866 host
867 host_cpu
868 host_vendor
869 host_os
870 FGREP
871 LD
872 DUMPBIN
873 ac_ct_DUMPBIN
874 NM
875 LN_S
876 OBJDUMP
877 STRIP
878 RANLIB
879 lt_ECHO
880 DSYMUTIL
881 NMEDIT
882 LIPO
883 OTOOL
884 OTOOL64
885 CXXCPP
886 DEFAULT_OBJECT_TYPE
887 DEFAULT_ARCHIVE_TYPE
888 DEFAULT_SHARED_OBJECT_TYPE
889 LIBTOOL_INSTALL_TARGET
890 LIBTOOL_UNINSTALL_TARGET
891 LIBTOOL_CLEAN_TARGET
892 QMAKE_LIBTOOL
893 INCLUDE_INSTALL_TARGET
894 INCLUDE_UNINSTALL_TARGET
895 HAVE_SUN_OS_TRUE
896 HAVE_SUN_OS_FALSE
897 HAVE_OSF1_OS_TRUE
898 HAVE_OSF1_OS_FALSE
899 HAVE_AIX_OS_TRUE
900 HAVE_AIX_OS_FALSE
901 HAVE_HPUX_OS_TRUE
902 HAVE_HPUX_OS_FALSE
903 HAVE_LINUX_OS_TRUE
904 HAVE_LINUX_OS_FALSE
905 HAVE_FREEBSD_OS_TRUE
906 HAVE_FREEBSD_OS_FALSE
907 HAVE_NETBSD_OS_TRUE
908 HAVE_NETBSD_OS_FALSE
909 HAVE_OPENBSD_OS_TRUE
910 HAVE_OPENBSD_OS_FALSE
911 HAVE_BSDI_OS_TRUE
912 HAVE_BSDI_OS_FALSE
913 HAVE_SGI_OS_TRUE
914 HAVE_SGI_OS_FALSE
915 HAVE_IRIX_OS_TRUE
916 HAVE_IRIX_OS_FALSE
917 HAVE_DARWIN_OS_TRUE
918 HAVE_DARWIN_OS_FALSE
919 SET_MAKE
920 MKINSTALLDIRS
921 USE_NLS
922 MSGFMT
923 GMSGFMT
924 XGETTEXT
925 MSGMERGE
926 INTL_MACOSX_LIBS
927 LIBICONV
928 LTLIBICONV
929 INTLLIBS
930 LIBINTL
931 LTLIBINTL
932 POSUB
933 GLIBC2
934 ALLOCA
935 GLIBC21
936 HAVE_POSIX_PRINTF
937 HAVE_ASPRINTF
938 HAVE_SNPRINTF
939 HAVE_WPRINTF
940 INTLBISON
941 BUILD_INCLUDED_LIBINTL
942 USE_INCLUDED_LIBINTL
943 CATOBJEXT
944 DATADIRNAME
945 INSTOBJEXT
946 GENCAT
947 INTLOBJS
948 INTL_LIBTOOL_SUFFIX_PREFIX
949 GNOME_INCLUDEDIR
950 GNOMEUI_LIBS
951 GNOME_LIBDIR
952 GNOME_LIBS
953 GNOME_DIR
954 BAT_DIR
955 QWT_INC
956 QWT_LDFLAGS
957 QWT_LIB
958 QWT
959 WXCONS_CPPFLAGS
960 WXCONS_LDFLAGS
961 WX_DIR
962 TRAY_MONITOR_CPPFLAGS
963 TRAY_MONITOR_LDFLAGS
964 TRAY_MONITOR_DIR
965 TTOOL_LDFLAGS
966 STATIC_FD
967 STATIC_SD
968 STATIC_DIR
969 STATIC_CONS
970 STATIC_GNOME_CONS
971 STATIC_WX_CONS
972 ALL_DIRS
973 DIRD_DIR
974 DIR_TOOLS
975 STORED_DIR
976 CONS_INC
977 CONS_OBJ
978 CONS_SRC
979 CONS_LIBS
980 CONS_LDFLAGS
981 READLINE_SRC
982 PYTHON_LIBS
983 PYTHON_INCDIR
984 OPENSSL_LIBS
985 OPENSSL_INC
986 working_dir
987 archivedir
988 scriptdir
989 bsrdir
990 logdir
991 plugindir
992 dump_email
993 job_email
994 smtp_host
995 piddir
996 subsysdir
997 baseport
998 dir_port
999 fd_port
1000 sd_port
1001 dir_password
1002 fd_password
1003 sd_password
1004 mon_dir_password
1005 mon_fd_password
1006 mon_sd_password
1007 db_name
1008 db_user
1009 db_password
1010 db_port
1011 dir_user
1012 dir_group
1013 sd_user
1014 sd_group
1015 fd_user
1016 fd_group
1017 SBINPERM
1018 SQL_LFLAGS
1019 SQL_INCLUDE
1020 SQL_BINDIR
1021 DBI_DBD_DRIVERDIR
1022 uncomment_dbi
1023 DB_PROG
1024 DB_PROG_LIB
1025 cats
1026 DB_TYPE
1027 GETCONF
1028 XMKMF
1029 X_CFLAGS
1030 X_PRE_LIBS
1031 X_LIBS
1032 X_EXTRA_LIBS
1033 LIBOBJS
1034 FDLIBS
1035 DEBUG
1036 DINCLUDE
1037 DLIB
1038 DB_LIBS
1039 WCFLAGS
1040 WLDFLAGS
1041 WRAPLIBS
1042 OBJLIST
1043 hostname
1044 TAPEDRIVE
1045 PSCMD
1046 WIN32
1047 MACOSX
1048 DISTNAME
1049 DISTVER
1050 LTLIBOBJS'
1051 ac_subst_files='MCOMMON'
1052       ac_precious_vars='build_alias
1053 host_alias
1054 target_alias
1055 CC
1056 CFLAGS
1057 LDFLAGS
1058 LIBS
1059 CPPFLAGS
1060 CXX
1061 CXXFLAGS
1062 CCC
1063 CPP
1064 WXCONFIG
1065 WXFLAGS
1066 CXXCPP
1067 XMKMF'
1068
1069
1070 # Initialize some variables set by options.
1071 ac_init_help=
1072 ac_init_version=false
1073 # The variables have the same names as the options, with
1074 # dashes changed to underlines.
1075 cache_file=/dev/null
1076 exec_prefix=NONE
1077 no_create=
1078 no_recursion=
1079 prefix=NONE
1080 program_prefix=NONE
1081 program_suffix=NONE
1082 program_transform_name=s,x,x,
1083 silent=
1084 site=
1085 srcdir=
1086 verbose=
1087 x_includes=NONE
1088 x_libraries=NONE
1089
1090 # Installation directory options.
1091 # These are left unexpanded so users can "make install exec_prefix=/foo"
1092 # and all the variables that are supposed to be based on exec_prefix
1093 # by default will actually change.
1094 # Use braces instead of parens because sh, perl, etc. also accept them.
1095 # (The list follows the same order as the GNU Coding Standards.)
1096 bindir='${exec_prefix}/bin'
1097 sbindir='${exec_prefix}/sbin'
1098 libexecdir='${exec_prefix}/libexec'
1099 datarootdir='${prefix}/share'
1100 datadir='${datarootdir}'
1101 sysconfdir='${prefix}/etc'
1102 sharedstatedir='${prefix}/com'
1103 localstatedir='${prefix}/var'
1104 includedir='${prefix}/include'
1105 oldincludedir='/usr/include'
1106 docdir='${datarootdir}/doc/${PACKAGE}'
1107 infodir='${datarootdir}/info'
1108 htmldir='${docdir}'
1109 dvidir='${docdir}'
1110 pdfdir='${docdir}'
1111 psdir='${docdir}'
1112 libdir='${exec_prefix}/lib'
1113 localedir='${datarootdir}/locale'
1114 mandir='${datarootdir}/man'
1115
1116 ac_prev=
1117 ac_dashdash=
1118 for ac_option
1119 do
1120   # If the previous option needs an argument, assign it.
1121   if test -n "$ac_prev"; then
1122     eval $ac_prev=\$ac_option
1123     ac_prev=
1124     continue
1125   fi
1126
1127   case $ac_option in
1128   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1129   *)    ac_optarg=yes ;;
1130   esac
1131
1132   # Accept the important Cygnus configure options, so we can diagnose typos.
1133
1134   case $ac_dashdash$ac_option in
1135   --)
1136     ac_dashdash=yes ;;
1137
1138   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1139     ac_prev=bindir ;;
1140   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1141     bindir=$ac_optarg ;;
1142
1143   -build | --build | --buil | --bui | --bu)
1144     ac_prev=build_alias ;;
1145   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1146     build_alias=$ac_optarg ;;
1147
1148   -cache-file | --cache-file | --cache-fil | --cache-fi \
1149   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1150     ac_prev=cache_file ;;
1151   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1152   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1153     cache_file=$ac_optarg ;;
1154
1155   --config-cache | -C)
1156     cache_file=config.cache ;;
1157
1158   -datadir | --datadir | --datadi | --datad)
1159     ac_prev=datadir ;;
1160   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1161     datadir=$ac_optarg ;;
1162
1163   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1164   | --dataroo | --dataro | --datar)
1165     ac_prev=datarootdir ;;
1166   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1167   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1168     datarootdir=$ac_optarg ;;
1169
1170   -disable-* | --disable-*)
1171     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1172     # Reject names that are not valid shell variable names.
1173     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1174       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1175    { (exit 1); exit 1; }; }
1176     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1177     eval enable_$ac_feature=no ;;
1178
1179   -docdir | --docdir | --docdi | --doc | --do)
1180     ac_prev=docdir ;;
1181   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1182     docdir=$ac_optarg ;;
1183
1184   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1185     ac_prev=dvidir ;;
1186   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1187     dvidir=$ac_optarg ;;
1188
1189   -enable-* | --enable-*)
1190     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1191     # Reject names that are not valid shell variable names.
1192     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1193       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1194    { (exit 1); exit 1; }; }
1195     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1196     eval enable_$ac_feature=\$ac_optarg ;;
1197
1198   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1199   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1200   | --exec | --exe | --ex)
1201     ac_prev=exec_prefix ;;
1202   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1203   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1204   | --exec=* | --exe=* | --ex=*)
1205     exec_prefix=$ac_optarg ;;
1206
1207   -gas | --gas | --ga | --g)
1208     # Obsolete; use --with-gas.
1209     with_gas=yes ;;
1210
1211   -help | --help | --hel | --he | -h)
1212     ac_init_help=long ;;
1213   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1214     ac_init_help=recursive ;;
1215   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1216     ac_init_help=short ;;
1217
1218   -host | --host | --hos | --ho)
1219     ac_prev=host_alias ;;
1220   -host=* | --host=* | --hos=* | --ho=*)
1221     host_alias=$ac_optarg ;;
1222
1223   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1224     ac_prev=htmldir ;;
1225   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1226   | --ht=*)
1227     htmldir=$ac_optarg ;;
1228
1229   -includedir | --includedir | --includedi | --included | --include \
1230   | --includ | --inclu | --incl | --inc)
1231     ac_prev=includedir ;;
1232   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1233   | --includ=* | --inclu=* | --incl=* | --inc=*)
1234     includedir=$ac_optarg ;;
1235
1236   -infodir | --infodir | --infodi | --infod | --info | --inf)
1237     ac_prev=infodir ;;
1238   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1239     infodir=$ac_optarg ;;
1240
1241   -libdir | --libdir | --libdi | --libd)
1242     ac_prev=libdir ;;
1243   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1244     libdir=$ac_optarg ;;
1245
1246   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1247   | --libexe | --libex | --libe)
1248     ac_prev=libexecdir ;;
1249   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1250   | --libexe=* | --libex=* | --libe=*)
1251     libexecdir=$ac_optarg ;;
1252
1253   -localedir | --localedir | --localedi | --localed | --locale)
1254     ac_prev=localedir ;;
1255   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1256     localedir=$ac_optarg ;;
1257
1258   -localstatedir | --localstatedir | --localstatedi | --localstated \
1259   | --localstate | --localstat | --localsta | --localst | --locals)
1260     ac_prev=localstatedir ;;
1261   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1262   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1263     localstatedir=$ac_optarg ;;
1264
1265   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1266     ac_prev=mandir ;;
1267   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1268     mandir=$ac_optarg ;;
1269
1270   -nfp | --nfp | --nf)
1271     # Obsolete; use --without-fp.
1272     with_fp=no ;;
1273
1274   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1275   | --no-cr | --no-c | -n)
1276     no_create=yes ;;
1277
1278   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1279   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1280     no_recursion=yes ;;
1281
1282   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1283   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1284   | --oldin | --oldi | --old | --ol | --o)
1285     ac_prev=oldincludedir ;;
1286   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1287   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1288   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1289     oldincludedir=$ac_optarg ;;
1290
1291   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1292     ac_prev=prefix ;;
1293   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1294     prefix=$ac_optarg ;;
1295
1296   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1297   | --program-pre | --program-pr | --program-p)
1298     ac_prev=program_prefix ;;
1299   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1300   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1301     program_prefix=$ac_optarg ;;
1302
1303   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1304   | --program-suf | --program-su | --program-s)
1305     ac_prev=program_suffix ;;
1306   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1307   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1308     program_suffix=$ac_optarg ;;
1309
1310   -program-transform-name | --program-transform-name \
1311   | --program-transform-nam | --program-transform-na \
1312   | --program-transform-n | --program-transform- \
1313   | --program-transform | --program-transfor \
1314   | --program-transfo | --program-transf \
1315   | --program-trans | --program-tran \
1316   | --progr-tra | --program-tr | --program-t)
1317     ac_prev=program_transform_name ;;
1318   -program-transform-name=* | --program-transform-name=* \
1319   | --program-transform-nam=* | --program-transform-na=* \
1320   | --program-transform-n=* | --program-transform-=* \
1321   | --program-transform=* | --program-transfor=* \
1322   | --program-transfo=* | --program-transf=* \
1323   | --program-trans=* | --program-tran=* \
1324   | --progr-tra=* | --program-tr=* | --program-t=*)
1325     program_transform_name=$ac_optarg ;;
1326
1327   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1328     ac_prev=pdfdir ;;
1329   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1330     pdfdir=$ac_optarg ;;
1331
1332   -psdir | --psdir | --psdi | --psd | --ps)
1333     ac_prev=psdir ;;
1334   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1335     psdir=$ac_optarg ;;
1336
1337   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1338   | -silent | --silent | --silen | --sile | --sil)
1339     silent=yes ;;
1340
1341   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1342     ac_prev=sbindir ;;
1343   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1344   | --sbi=* | --sb=*)
1345     sbindir=$ac_optarg ;;
1346
1347   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1348   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1349   | --sharedst | --shareds | --shared | --share | --shar \
1350   | --sha | --sh)
1351     ac_prev=sharedstatedir ;;
1352   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1353   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1354   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1355   | --sha=* | --sh=*)
1356     sharedstatedir=$ac_optarg ;;
1357
1358   -site | --site | --sit)
1359     ac_prev=site ;;
1360   -site=* | --site=* | --sit=*)
1361     site=$ac_optarg ;;
1362
1363   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1364     ac_prev=srcdir ;;
1365   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1366     srcdir=$ac_optarg ;;
1367
1368   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1369   | --syscon | --sysco | --sysc | --sys | --sy)
1370     ac_prev=sysconfdir ;;
1371   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1372   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1373     sysconfdir=$ac_optarg ;;
1374
1375   -target | --target | --targe | --targ | --tar | --ta | --t)
1376     ac_prev=target_alias ;;
1377   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1378     target_alias=$ac_optarg ;;
1379
1380   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1381     verbose=yes ;;
1382
1383   -version | --version | --versio | --versi | --vers | -V)
1384     ac_init_version=: ;;
1385
1386   -with-* | --with-*)
1387     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1388     # Reject names that are not valid shell variable names.
1389     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1390       { echo "$as_me: error: invalid package name: $ac_package" >&2
1391    { (exit 1); exit 1; }; }
1392     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1393     eval with_$ac_package=\$ac_optarg ;;
1394
1395   -without-* | --without-*)
1396     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1397     # Reject names that are not valid shell variable names.
1398     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1399       { echo "$as_me: error: invalid package name: $ac_package" >&2
1400    { (exit 1); exit 1; }; }
1401     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1402     eval with_$ac_package=no ;;
1403
1404   --x)
1405     # Obsolete; use --with-x.
1406     with_x=yes ;;
1407
1408   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1409   | --x-incl | --x-inc | --x-in | --x-i)
1410     ac_prev=x_includes ;;
1411   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1412   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1413     x_includes=$ac_optarg ;;
1414
1415   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1416   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1417     ac_prev=x_libraries ;;
1418   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1419   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1420     x_libraries=$ac_optarg ;;
1421
1422   -*) { echo "$as_me: error: unrecognized option: $ac_option
1423 Try \`$0 --help' for more information." >&2
1424    { (exit 1); exit 1; }; }
1425     ;;
1426
1427   *=*)
1428     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1429     # Reject names that are not valid shell variable names.
1430     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1431       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1432    { (exit 1); exit 1; }; }
1433     eval $ac_envvar=\$ac_optarg
1434     export $ac_envvar ;;
1435
1436   *)
1437     # FIXME: should be removed in autoconf 3.0.
1438     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1439     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1440       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1441     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1442     ;;
1443
1444   esac
1445 done
1446
1447 if test -n "$ac_prev"; then
1448   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1449   { echo "$as_me: error: missing argument to $ac_option" >&2
1450    { (exit 1); exit 1; }; }
1451 fi
1452
1453 # Be sure to have absolute directory names.
1454 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1455                 datadir sysconfdir sharedstatedir localstatedir includedir \
1456                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1457                 libdir localedir mandir
1458 do
1459   eval ac_val=\$$ac_var
1460   case $ac_val in
1461     [\\/$]* | ?:[\\/]* )  continue;;
1462     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1463   esac
1464   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1465    { (exit 1); exit 1; }; }
1466 done
1467
1468 # There might be people who depend on the old broken behavior: `$host'
1469 # used to hold the argument of --host etc.
1470 # FIXME: To remove some day.
1471 build=$build_alias
1472 host=$host_alias
1473 target=$target_alias
1474
1475 # FIXME: To remove some day.
1476 if test "x$host_alias" != x; then
1477   if test "x$build_alias" = x; then
1478     cross_compiling=maybe
1479     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1480     If a cross compiler is detected then cross compile mode will be used." >&2
1481   elif test "x$build_alias" != "x$host_alias"; then
1482     cross_compiling=yes
1483   fi
1484 fi
1485
1486 ac_tool_prefix=
1487 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1488
1489 test "$silent" = yes && exec 6>/dev/null
1490
1491
1492 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1493 ac_ls_di=`ls -di .` &&
1494 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1495   { echo "$as_me: error: Working directory cannot be determined" >&2
1496    { (exit 1); exit 1; }; }
1497 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1498   { echo "$as_me: error: pwd does not report name of working directory" >&2
1499    { (exit 1); exit 1; }; }
1500
1501
1502 # Find the source files, if location was not specified.
1503 if test -z "$srcdir"; then
1504   ac_srcdir_defaulted=yes
1505   # Try the directory containing this script, then the parent directory.
1506   ac_confdir=`$as_dirname -- "$0" ||
1507 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1508          X"$0" : 'X\(//\)[^/]' \| \
1509          X"$0" : 'X\(//\)$' \| \
1510          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1511 echo X"$0" |
1512     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1513             s//\1/
1514             q
1515           }
1516           /^X\(\/\/\)[^/].*/{
1517             s//\1/
1518             q
1519           }
1520           /^X\(\/\/\)$/{
1521             s//\1/
1522             q
1523           }
1524           /^X\(\/\).*/{
1525             s//\1/
1526             q
1527           }
1528           s/.*/./; q'`
1529   srcdir=$ac_confdir
1530   if test ! -r "$srcdir/$ac_unique_file"; then
1531     srcdir=..
1532   fi
1533 else
1534   ac_srcdir_defaulted=no
1535 fi
1536 if test ! -r "$srcdir/$ac_unique_file"; then
1537   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1538   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1539    { (exit 1); exit 1; }; }
1540 fi
1541 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1542 ac_abs_confdir=`(
1543         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1544    { (exit 1); exit 1; }; }
1545         pwd)`
1546 # When building in place, set srcdir=.
1547 if test "$ac_abs_confdir" = "$ac_pwd"; then
1548   srcdir=.
1549 fi
1550 # Remove unnecessary trailing slashes from srcdir.
1551 # Double slashes in file names in object file debugging info
1552 # mess up M-x gdb in Emacs.
1553 case $srcdir in
1554 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1555 esac
1556 for ac_var in $ac_precious_vars; do
1557   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1558   eval ac_env_${ac_var}_value=\$${ac_var}
1559   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1560   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1561 done
1562
1563 #
1564 # Report the --help message.
1565 #
1566 if test "$ac_init_help" = "long"; then
1567   # Omit some internal or obsolete options to make the list less imposing.
1568   # This message is too long to be a string in the A/UX 3.1 sh.
1569   cat <<_ACEOF
1570 \`configure' configures this package to adapt to many kinds of systems.
1571
1572 Usage: $0 [OPTION]... [VAR=VALUE]...
1573
1574 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1575 VAR=VALUE.  See below for descriptions of some of the useful variables.
1576
1577 Defaults for the options are specified in brackets.
1578
1579 Configuration:
1580   -h, --help              display this help and exit
1581       --help=short        display options specific to this package
1582       --help=recursive    display the short help of all the included packages
1583   -V, --version           display version information and exit
1584   -q, --quiet, --silent   do not print \`checking...' messages
1585       --cache-file=FILE   cache test results in FILE [disabled]
1586   -C, --config-cache      alias for \`--cache-file=config.cache'
1587   -n, --no-create         do not create output files
1588       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1589
1590 Installation directories:
1591   --prefix=PREFIX         install architecture-independent files in PREFIX
1592                           [$ac_default_prefix]
1593   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1594                           [PREFIX]
1595
1596 By default, \`make install' will install all the files in
1597 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1598 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1599 for instance \`--prefix=\$HOME'.
1600
1601 For better control, use the options below.
1602
1603 Fine tuning of the installation directories:
1604   --bindir=DIR           user executables [EPREFIX/bin]
1605   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1606   --libexecdir=DIR       program executables [EPREFIX/libexec]
1607   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1608   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1609   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1610   --libdir=DIR           object code libraries [EPREFIX/lib]
1611   --includedir=DIR       C header files [PREFIX/include]
1612   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1613   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1614   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1615   --infodir=DIR          info documentation [DATAROOTDIR/info]
1616   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1617   --mandir=DIR           man documentation [DATAROOTDIR/man]
1618   --docdir=DIR           documentation root [DATAROOTDIR/doc/PACKAGE]
1619   --htmldir=DIR          html documentation [DOCDIR]
1620   --dvidir=DIR           dvi documentation [DOCDIR]
1621   --pdfdir=DIR           pdf documentation [DOCDIR]
1622   --psdir=DIR            ps documentation [DOCDIR]
1623 _ACEOF
1624
1625   cat <<\_ACEOF
1626
1627 X features:
1628   --x-includes=DIR    X include files are in DIR
1629   --x-libraries=DIR   X library files are in DIR
1630
1631 System types:
1632   --build=BUILD     configure for building on BUILD [guessed]
1633   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1634 _ACEOF
1635 fi
1636
1637 if test -n "$ac_init_help"; then
1638
1639   cat <<\_ACEOF
1640
1641 Optional Features:
1642   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1643   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1644   --enable-libtool        enable building using GNU libtool [default=yes]
1645   --enable-shared[=PKGS]  build shared libraries [default=yes]
1646   --enable-static[=PKGS]  build static libraries [default=no]
1647   --enable-fast-install[=PKGS]
1648                           optimize for fast installation [default=yes]
1649   --disable-libtool-lock  avoid locking (might break parallel builds)
1650   --enable-includes       enable installing of include files [default=no]
1651   --disable-nls           do not use Native Language Support
1652   --disable-rpath         do not hardcode runtime library paths
1653   --enable-gnome          enable build of bgnome-console GUI [default=no]
1654   --enable-bat            enable build of bat Qt4 GUI [default=no]
1655   --enable-bwx-console    enable build of wxWidgets console [default=no]
1656   --enable-tray-monitor   enable build of Gnome tray monitor (compatible with
1657                           KDE [default=no]
1658   --enable-smartalloc     enable smartalloc debugging support [default=no]
1659   --enable-lockmgr        enable lock manager support [default=no]
1660   --enable-static-tools   enable static tape tools [default=no]
1661   --enable-static-fd      enable static File daemon [default=no]
1662   --enable-static-sd      enable static Storage daemon [default=no]
1663   --enable-static-dir     enable static Director [default=no]
1664   --enable-static-cons    enable static Console [default=no]
1665   --enable-client-only    build client (File daemon) only [default=no]
1666   --enable-build-dird     enable building of dird (Director) [default=yes]
1667   --enable-build-stored   enable building of stored (Storage daemon)
1668                           [default=yes]
1669   --disable-conio         disable conio support [default=no]
1670   --enable-ipv6           enable ipv6 support [default=yes]
1671   --disable-readline      disable readline support [default=yes]
1672   --enable-batch-insert   enable the DB batch insert code [default=no]
1673   --disable-largefile     omit support for large files
1674   --disable-acl           disable acl support [default=auto]
1675   --disable-xattr         disable xattr support [default=auto]
1676
1677 Optional Packages:
1678   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1679   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1680   --with-pic              try to use only PIC/non-PIC objects [default=use
1681                           both]
1682   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1683   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1684   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1685   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1686   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1687   --without-libintl-prefix     don't search for libintl in includedir and libdir
1688   --with-included-gettext use the GNU gettext library included here
1689   --with-qwt[=DIR]        specify qwt library directory
1690   --with-readline[=DIR]   specify readline library directory
1691   --with-python[=DIR]     Include Python support. DIR is the Python base
1692                           install directory, default is to search through a
1693                           number of common places for the Python files.
1694   --with-tcp-wrappers[=DIR]
1695                           enable tcpwrappers support
1696   --with-openssl[=DIR]    Include OpenSSL support. DIR is the OpenSSL base
1697   --with-working-dir=PATH specify path of Bacula working directory
1698   --with-archivedir=PATH  specify path of SD archive directory
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-sqlite[=DIR]     Include SQLite support. DIR is the SQLite base
1746                           install directory, default is to search through a
1747                           number of common places for the SQLite files.
1748   --with-dbi[=DIR]        Include DBI support. DIR is the DBD base install
1749                           directory, default is to search through a number of
1750                           common places for the DBI files.
1751   --with-dbi-driver[=DRIVER]
1752                           Suport for DBI driver. DRIVER is the one DBI driver
1753                           like Mysql, Postgresql, others. Default is to not
1754                           configure any driver.
1755   --with-x                use the X Window System
1756
1757 Some influential environment variables:
1758   CC          C compiler command
1759   CFLAGS      C compiler flags
1760   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1761               nonstandard directory <lib dir>
1762   LIBS        libraries to pass to the linker, e.g. -l<library>
1763   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1764               you have headers in a nonstandard directory <include dir>
1765   CXX         C++ compiler command
1766   CXXFLAGS    C++ compiler flags
1767   CPP         C preprocessor
1768   WXCONFIG    wx-config command. On some systems, you must set it to
1769               wx-config-2.6 to use wxWidgets 2.6.
1770   WXFLAGS     Parameters to pass to wx-config (e.g. --unicode=no).
1771   CXXCPP      C++ preprocessor
1772   XMKMF       Path to xmkmf, Makefile generator for X Window System
1773
1774 Use these variables to override the choices made by `configure' or to help
1775 it to find libraries and programs with nonstandard names/locations.
1776
1777 _ACEOF
1778 ac_status=$?
1779 fi
1780
1781 if test "$ac_init_help" = "recursive"; then
1782   # If there are subdirs, report their specific --help.
1783   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1784     test -d "$ac_dir" || continue
1785     ac_builddir=.
1786
1787 case "$ac_dir" in
1788 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1789 *)
1790   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1791   # A ".." for each directory in $ac_dir_suffix.
1792   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1793   case $ac_top_builddir_sub in
1794   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1795   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1796   esac ;;
1797 esac
1798 ac_abs_top_builddir=$ac_pwd
1799 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1800 # for backward compatibility:
1801 ac_top_builddir=$ac_top_build_prefix
1802
1803 case $srcdir in
1804   .)  # We are building in place.
1805     ac_srcdir=.
1806     ac_top_srcdir=$ac_top_builddir_sub
1807     ac_abs_top_srcdir=$ac_pwd ;;
1808   [\\/]* | ?:[\\/]* )  # Absolute name.
1809     ac_srcdir=$srcdir$ac_dir_suffix;
1810     ac_top_srcdir=$srcdir
1811     ac_abs_top_srcdir=$srcdir ;;
1812   *) # Relative name.
1813     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1814     ac_top_srcdir=$ac_top_build_prefix$srcdir
1815     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1816 esac
1817 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1818
1819     cd "$ac_dir" || { ac_status=$?; continue; }
1820     # Check for guested configure.
1821     if test -f "$ac_srcdir/configure.gnu"; then
1822       echo &&
1823       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1824     elif test -f "$ac_srcdir/configure"; then
1825       echo &&
1826       $SHELL "$ac_srcdir/configure" --help=recursive
1827     else
1828       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1829     fi || ac_status=$?
1830     cd "$ac_pwd" || { ac_status=$?; break; }
1831   done
1832 fi
1833
1834 test -n "$ac_init_help" && exit $ac_status
1835 if $ac_init_version; then
1836   cat <<\_ACEOF
1837 configure
1838 generated by GNU Autoconf 2.61
1839
1840 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1841 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1842 This configure script is free software; the Free Software Foundation
1843 gives unlimited permission to copy, distribute and modify it.
1844 _ACEOF
1845   exit
1846 fi
1847 cat >config.log <<_ACEOF
1848 This file contains any messages produced by compilers while
1849 running configure, to aid debugging if configure makes a mistake.
1850
1851 It was created by $as_me, which was
1852 generated by GNU Autoconf 2.61.  Invocation command line was
1853
1854   $ $0 $@
1855
1856 _ACEOF
1857 exec 5>>config.log
1858 {
1859 cat <<_ASUNAME
1860 ## --------- ##
1861 ## Platform. ##
1862 ## --------- ##
1863
1864 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1865 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1866 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1867 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1868 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1869
1870 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1871 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1872
1873 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1874 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1875 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1876 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1877 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1878 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1879 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1880
1881 _ASUNAME
1882
1883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1884 for as_dir in $PATH
1885 do
1886   IFS=$as_save_IFS
1887   test -z "$as_dir" && as_dir=.
1888   echo "PATH: $as_dir"
1889 done
1890 IFS=$as_save_IFS
1891
1892 } >&5
1893
1894 cat >&5 <<_ACEOF
1895
1896
1897 ## ----------- ##
1898 ## Core tests. ##
1899 ## ----------- ##
1900
1901 _ACEOF
1902
1903
1904 # Keep a trace of the command line.
1905 # Strip out --no-create and --no-recursion so they do not pile up.
1906 # Strip out --silent because we don't want to record it for future runs.
1907 # Also quote any args containing shell meta-characters.
1908 # Make two passes to allow for proper duplicate-argument suppression.
1909 ac_configure_args=
1910 ac_configure_args0=
1911 ac_configure_args1=
1912 ac_must_keep_next=false
1913 for ac_pass in 1 2
1914 do
1915   for ac_arg
1916   do
1917     case $ac_arg in
1918     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1919     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1920     | -silent | --silent | --silen | --sile | --sil)
1921       continue ;;
1922     *\'*)
1923       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1924     esac
1925     case $ac_pass in
1926     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1927     2)
1928       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1929       if test $ac_must_keep_next = true; then
1930         ac_must_keep_next=false # Got value, back to normal.
1931       else
1932         case $ac_arg in
1933           *=* | --config-cache | -C | -disable-* | --disable-* \
1934           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1935           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1936           | -with-* | --with-* | -without-* | --without-* | --x)
1937             case "$ac_configure_args0 " in
1938               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1939             esac
1940             ;;
1941           -* ) ac_must_keep_next=true ;;
1942         esac
1943       fi
1944       ac_configure_args="$ac_configure_args '$ac_arg'"
1945       ;;
1946     esac
1947   done
1948 done
1949 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1950 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1951
1952 # When interrupted or exit'd, cleanup temporary files, and complete
1953 # config.log.  We remove comments because anyway the quotes in there
1954 # would cause problems or look ugly.
1955 # WARNING: Use '\'' to represent an apostrophe within the trap.
1956 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1957 trap 'exit_status=$?
1958   # Save into config.log some information that might help in debugging.
1959   {
1960     echo
1961
1962     cat <<\_ASBOX
1963 ## ---------------- ##
1964 ## Cache variables. ##
1965 ## ---------------- ##
1966 _ASBOX
1967     echo
1968     # The following way of writing the cache mishandles newlines in values,
1969 (
1970   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1971     eval ac_val=\$$ac_var
1972     case $ac_val in #(
1973     *${as_nl}*)
1974       case $ac_var in #(
1975       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1976 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1977       esac
1978       case $ac_var in #(
1979       _ | IFS | as_nl) ;; #(
1980       *) $as_unset $ac_var ;;
1981       esac ;;
1982     esac
1983   done
1984   (set) 2>&1 |
1985     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1986     *${as_nl}ac_space=\ *)
1987       sed -n \
1988         "s/'\''/'\''\\\\'\'''\''/g;
1989           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1990       ;; #(
1991     *)
1992       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1993       ;;
1994     esac |
1995     sort
1996 )
1997     echo
1998
1999     cat <<\_ASBOX
2000 ## ----------------- ##
2001 ## Output variables. ##
2002 ## ----------------- ##
2003 _ASBOX
2004     echo
2005     for ac_var in $ac_subst_vars
2006     do
2007       eval ac_val=\$$ac_var
2008       case $ac_val in
2009       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2010       esac
2011       echo "$ac_var='\''$ac_val'\''"
2012     done | sort
2013     echo
2014
2015     if test -n "$ac_subst_files"; then
2016       cat <<\_ASBOX
2017 ## ------------------- ##
2018 ## File substitutions. ##
2019 ## ------------------- ##
2020 _ASBOX
2021       echo
2022       for ac_var in $ac_subst_files
2023       do
2024         eval ac_val=\$$ac_var
2025         case $ac_val in
2026         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2027         esac
2028         echo "$ac_var='\''$ac_val'\''"
2029       done | sort
2030       echo
2031     fi
2032
2033     if test -s confdefs.h; then
2034       cat <<\_ASBOX
2035 ## ----------- ##
2036 ## confdefs.h. ##
2037 ## ----------- ##
2038 _ASBOX
2039       echo
2040       cat confdefs.h
2041       echo
2042     fi
2043     test "$ac_signal" != 0 &&
2044       echo "$as_me: caught signal $ac_signal"
2045     echo "$as_me: exit $exit_status"
2046   } >&5
2047   rm -f core *.core core.conftest.* &&
2048     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2049     exit $exit_status
2050 ' 0
2051 for ac_signal in 1 2 13 15; do
2052   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
2053 done
2054 ac_signal=0
2055
2056 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2057 rm -f -r conftest* confdefs.h
2058
2059 # Predefined preprocessor variables.
2060
2061 cat >>confdefs.h <<_ACEOF
2062 #define PACKAGE_NAME "$PACKAGE_NAME"
2063 _ACEOF
2064
2065
2066 cat >>confdefs.h <<_ACEOF
2067 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2068 _ACEOF
2069
2070
2071 cat >>confdefs.h <<_ACEOF
2072 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2073 _ACEOF
2074
2075
2076 cat >>confdefs.h <<_ACEOF
2077 #define PACKAGE_STRING "$PACKAGE_STRING"
2078 _ACEOF
2079
2080
2081 cat >>confdefs.h <<_ACEOF
2082 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2083 _ACEOF
2084
2085
2086 # Let the site file select an alternate cache file if it wants to.
2087 # Prefer explicitly selected file to automatically selected ones.
2088 if test -n "$CONFIG_SITE"; then
2089   set x "$CONFIG_SITE"
2090 elif test "x$prefix" != xNONE; then
2091   set x "$prefix/share/config.site" "$prefix/etc/config.site"
2092 else
2093   set x "$ac_default_prefix/share/config.site" \
2094         "$ac_default_prefix/etc/config.site"
2095 fi
2096 shift
2097 for ac_site_file
2098 do
2099   if test -r "$ac_site_file"; then
2100     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2101 echo "$as_me: loading site script $ac_site_file" >&6;}
2102     sed 's/^/| /' "$ac_site_file" >&5
2103     . "$ac_site_file"
2104   fi
2105 done
2106
2107 if test -r "$cache_file"; then
2108   # Some versions of bash will fail to source /dev/null (special
2109   # files actually), so we avoid doing that.
2110   if test -f "$cache_file"; then
2111     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
2112 echo "$as_me: loading cache $cache_file" >&6;}
2113     case $cache_file in
2114       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2115       *)                      . "./$cache_file";;
2116     esac
2117   fi
2118 else
2119   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
2120 echo "$as_me: creating cache $cache_file" >&6;}
2121   >$cache_file
2122 fi
2123
2124 # Check that the precious variables saved in the cache have kept the same
2125 # value.
2126 ac_cache_corrupted=false
2127 for ac_var in $ac_precious_vars; do
2128   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2129   eval ac_new_set=\$ac_env_${ac_var}_set
2130   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2131   eval ac_new_val=\$ac_env_${ac_var}_value
2132   case $ac_old_set,$ac_new_set in
2133     set,)
2134       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2135 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2136       ac_cache_corrupted=: ;;
2137     ,set)
2138       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2139 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2140       ac_cache_corrupted=: ;;
2141     ,);;
2142     *)
2143       if test "x$ac_old_val" != "x$ac_new_val"; then
2144         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2145 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2146         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
2147 echo "$as_me:   former value:  $ac_old_val" >&2;}
2148         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
2149 echo "$as_me:   current value: $ac_new_val" >&2;}
2150         ac_cache_corrupted=:
2151       fi;;
2152   esac
2153   # Pass precious variables to config.status.
2154   if test "$ac_new_set" = set; then
2155     case $ac_new_val in
2156     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2157     *) ac_arg=$ac_var=$ac_new_val ;;
2158     esac
2159     case " $ac_configure_args " in
2160       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2161       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2162     esac
2163   fi
2164 done
2165 if $ac_cache_corrupted; then
2166   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2167 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2168   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2169 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2170    { (exit 1); exit 1; }; }
2171 fi
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189 ac_ext=c
2190 ac_cpp='$CPP $CPPFLAGS'
2191 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2192 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2193 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2194
2195
2196 BUILD_DIR=`pwd`
2197 cd ..
2198 TOP_DIR=`pwd`
2199 cd ${BUILD_DIR}
2200
2201
2202 ac_aux_dir=
2203 for ac_dir in ${BUILD_DIR}/autoconf "$srcdir"/${BUILD_DIR}/autoconf; do
2204   if test -f "$ac_dir/install-sh"; then
2205     ac_aux_dir=$ac_dir
2206     ac_install_sh="$ac_aux_dir/install-sh -c"
2207     break
2208   elif test -f "$ac_dir/install.sh"; then
2209     ac_aux_dir=$ac_dir
2210     ac_install_sh="$ac_aux_dir/install.sh -c"
2211     break
2212   elif test -f "$ac_dir/shtool"; then
2213     ac_aux_dir=$ac_dir
2214     ac_install_sh="$ac_aux_dir/shtool install -c"
2215     break
2216   fi
2217 done
2218 if test -z "$ac_aux_dir"; then
2219   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" >&5
2220 echo "$as_me: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" >&2;}
2221    { (exit 1); exit 1; }; }
2222 fi
2223
2224 # These three variables are undocumented and unsupported,
2225 # and are intended to be withdrawn in a future Autoconf release.
2226 # They can cause serious problems if a builder's source tree is in a directory
2227 # whose full name contains unusual characters.
2228 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2229 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2230 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2231
2232
2233 ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
2234
2235
2236 WIN32BUILDDIR=${BUILD_DIR}/src/win32
2237 WIN32MAINDIR=${BUILD_DIR}
2238 WIN32TOPDIR=${TOP_DIR}
2239
2240
2241
2242
2243
2244
2245
2246 for ac_prog in true
2247 do
2248   # Extract the first word of "$ac_prog", so it can be a program name with args.
2249 set dummy $ac_prog; ac_word=$2
2250 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2251 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2252 if test "${ac_cv_path_TRUEPRG+set}" = set; then
2253   echo $ECHO_N "(cached) $ECHO_C" >&6
2254 else
2255   case $TRUEPRG in
2256   [\\/]* | ?:[\\/]*)
2257   ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
2258   ;;
2259   *)
2260   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2261 for as_dir in $PATH
2262 do
2263   IFS=$as_save_IFS
2264   test -z "$as_dir" && as_dir=.
2265   for ac_exec_ext in '' $ac_executable_extensions; do
2266   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2267     ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
2268     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2269     break 2
2270   fi
2271 done
2272 done
2273 IFS=$as_save_IFS
2274
2275   ;;
2276 esac
2277 fi
2278 TRUEPRG=$ac_cv_path_TRUEPRG
2279 if test -n "$TRUEPRG"; then
2280   { echo "$as_me:$LINENO: result: $TRUEPRG" >&5
2281 echo "${ECHO_T}$TRUEPRG" >&6; }
2282 else
2283   { echo "$as_me:$LINENO: result: no" >&5
2284 echo "${ECHO_T}no" >&6; }
2285 fi
2286
2287
2288   test -n "$TRUEPRG" && break
2289 done
2290 test -n "$TRUEPRG" || TRUEPRG=":"
2291
2292 for ac_prog in false
2293 do
2294   # Extract the first word of "$ac_prog", so it can be a program name with args.
2295 set dummy $ac_prog; ac_word=$2
2296 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2297 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2298 if test "${ac_cv_path_FALSEPRG+set}" = set; then
2299   echo $ECHO_N "(cached) $ECHO_C" >&6
2300 else
2301   case $FALSEPRG in
2302   [\\/]* | ?:[\\/]*)
2303   ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
2304   ;;
2305   *)
2306   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2307 for as_dir in $PATH
2308 do
2309   IFS=$as_save_IFS
2310   test -z "$as_dir" && as_dir=.
2311   for ac_exec_ext in '' $ac_executable_extensions; do
2312   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2313     ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
2314     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2315     break 2
2316   fi
2317 done
2318 done
2319 IFS=$as_save_IFS
2320
2321   ;;
2322 esac
2323 fi
2324 FALSEPRG=$ac_cv_path_FALSEPRG
2325 if test -n "$FALSEPRG"; then
2326   { echo "$as_me:$LINENO: result: $FALSEPRG" >&5
2327 echo "${ECHO_T}$FALSEPRG" >&6; }
2328 else
2329   { echo "$as_me:$LINENO: result: no" >&5
2330 echo "${ECHO_T}no" >&6; }
2331 fi
2332
2333
2334   test -n "$FALSEPRG" && break
2335 done
2336 test -n "$FALSEPRG" || FALSEPRG=":"
2337
2338
2339
2340 post_host=
2341 if test "x$BACULA" != x; then
2342    post_host=`echo -${BACULA} | tr 'A-Z ' 'a-z-'`
2343 fi
2344 BACULA=${BACULA:-Bacula}
2345 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2346 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2347 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2348 echo "configuring for ${BACULA} $VERSION ($DATE)"
2349
2350
2351 ac_ext=c
2352 ac_cpp='$CPP $CPPFLAGS'
2353 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2354 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2355 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2356 if test -n "$ac_tool_prefix"; then
2357   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2358 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2359 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2360 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2361 if test "${ac_cv_prog_CC+set}" = set; then
2362   echo $ECHO_N "(cached) $ECHO_C" >&6
2363 else
2364   if test -n "$CC"; then
2365   ac_cv_prog_CC="$CC" # Let the user override the test.
2366 else
2367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2368 for as_dir in $PATH
2369 do
2370   IFS=$as_save_IFS
2371   test -z "$as_dir" && as_dir=.
2372   for ac_exec_ext in '' $ac_executable_extensions; do
2373   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2374     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2375     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2376     break 2
2377   fi
2378 done
2379 done
2380 IFS=$as_save_IFS
2381
2382 fi
2383 fi
2384 CC=$ac_cv_prog_CC
2385 if test -n "$CC"; then
2386   { echo "$as_me:$LINENO: result: $CC" >&5
2387 echo "${ECHO_T}$CC" >&6; }
2388 else
2389   { echo "$as_me:$LINENO: result: no" >&5
2390 echo "${ECHO_T}no" >&6; }
2391 fi
2392
2393
2394 fi
2395 if test -z "$ac_cv_prog_CC"; then
2396   ac_ct_CC=$CC
2397   # Extract the first word of "gcc", so it can be a program name with args.
2398 set dummy gcc; ac_word=$2
2399 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2400 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2401 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2402   echo $ECHO_N "(cached) $ECHO_C" >&6
2403 else
2404   if test -n "$ac_ct_CC"; then
2405   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2406 else
2407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2408 for as_dir in $PATH
2409 do
2410   IFS=$as_save_IFS
2411   test -z "$as_dir" && as_dir=.
2412   for ac_exec_ext in '' $ac_executable_extensions; do
2413   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2414     ac_cv_prog_ac_ct_CC="gcc"
2415     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2416     break 2
2417   fi
2418 done
2419 done
2420 IFS=$as_save_IFS
2421
2422 fi
2423 fi
2424 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2425 if test -n "$ac_ct_CC"; then
2426   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2427 echo "${ECHO_T}$ac_ct_CC" >&6; }
2428 else
2429   { echo "$as_me:$LINENO: result: no" >&5
2430 echo "${ECHO_T}no" >&6; }
2431 fi
2432
2433   if test "x$ac_ct_CC" = x; then
2434     CC=""
2435   else
2436     case $cross_compiling:$ac_tool_warned in
2437 yes:)
2438 { echo "$as_me:$LINENO: 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." >&5
2441 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2442 whose name does not start with the host triplet.  If you think this
2443 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2444 ac_tool_warned=yes ;;
2445 esac
2446     CC=$ac_ct_CC
2447   fi
2448 else
2449   CC="$ac_cv_prog_CC"
2450 fi
2451
2452 if test -z "$CC"; then
2453           if test -n "$ac_tool_prefix"; then
2454     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2455 set dummy ${ac_tool_prefix}cc; ac_word=$2
2456 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2457 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2458 if test "${ac_cv_prog_CC+set}" = set; then
2459   echo $ECHO_N "(cached) $ECHO_C" >&6
2460 else
2461   if test -n "$CC"; then
2462   ac_cv_prog_CC="$CC" # Let the user override the test.
2463 else
2464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2465 for as_dir in $PATH
2466 do
2467   IFS=$as_save_IFS
2468   test -z "$as_dir" && as_dir=.
2469   for ac_exec_ext in '' $ac_executable_extensions; do
2470   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2471     ac_cv_prog_CC="${ac_tool_prefix}cc"
2472     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2473     break 2
2474   fi
2475 done
2476 done
2477 IFS=$as_save_IFS
2478
2479 fi
2480 fi
2481 CC=$ac_cv_prog_CC
2482 if test -n "$CC"; then
2483   { echo "$as_me:$LINENO: result: $CC" >&5
2484 echo "${ECHO_T}$CC" >&6; }
2485 else
2486   { echo "$as_me:$LINENO: result: no" >&5
2487 echo "${ECHO_T}no" >&6; }
2488 fi
2489
2490
2491   fi
2492 fi
2493 if test -z "$CC"; then
2494   # Extract the first word of "cc", so it can be a program name with args.
2495 set dummy cc; ac_word=$2
2496 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2497 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2498 if test "${ac_cv_prog_CC+set}" = set; then
2499   echo $ECHO_N "(cached) $ECHO_C" >&6
2500 else
2501   if test -n "$CC"; then
2502   ac_cv_prog_CC="$CC" # Let the user override the test.
2503 else
2504   ac_prog_rejected=no
2505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2506 for as_dir in $PATH
2507 do
2508   IFS=$as_save_IFS
2509   test -z "$as_dir" && as_dir=.
2510   for ac_exec_ext in '' $ac_executable_extensions; do
2511   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2512     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2513        ac_prog_rejected=yes
2514        continue
2515      fi
2516     ac_cv_prog_CC="cc"
2517     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2518     break 2
2519   fi
2520 done
2521 done
2522 IFS=$as_save_IFS
2523
2524 if test $ac_prog_rejected = yes; then
2525   # We found a bogon in the path, so make sure we never use it.
2526   set dummy $ac_cv_prog_CC
2527   shift
2528   if test $# != 0; then
2529     # We chose a different compiler from the bogus one.
2530     # However, it has the same basename, so the bogon will be chosen
2531     # first if we set CC to just the basename; use the full file name.
2532     shift
2533     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2534   fi
2535 fi
2536 fi
2537 fi
2538 CC=$ac_cv_prog_CC
2539 if test -n "$CC"; then
2540   { echo "$as_me:$LINENO: result: $CC" >&5
2541 echo "${ECHO_T}$CC" >&6; }
2542 else
2543   { echo "$as_me:$LINENO: result: no" >&5
2544 echo "${ECHO_T}no" >&6; }
2545 fi
2546
2547
2548 fi
2549 if test -z "$CC"; then
2550   if test -n "$ac_tool_prefix"; then
2551   for ac_prog in cl.exe
2552   do
2553     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2554 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2555 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2556 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2557 if test "${ac_cv_prog_CC+set}" = set; then
2558   echo $ECHO_N "(cached) $ECHO_C" >&6
2559 else
2560   if test -n "$CC"; then
2561   ac_cv_prog_CC="$CC" # Let the user override the test.
2562 else
2563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2564 for as_dir in $PATH
2565 do
2566   IFS=$as_save_IFS
2567   test -z "$as_dir" && as_dir=.
2568   for ac_exec_ext in '' $ac_executable_extensions; do
2569   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2570     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2571     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2572     break 2
2573   fi
2574 done
2575 done
2576 IFS=$as_save_IFS
2577
2578 fi
2579 fi
2580 CC=$ac_cv_prog_CC
2581 if test -n "$CC"; then
2582   { echo "$as_me:$LINENO: result: $CC" >&5
2583 echo "${ECHO_T}$CC" >&6; }
2584 else
2585   { echo "$as_me:$LINENO: result: no" >&5
2586 echo "${ECHO_T}no" >&6; }
2587 fi
2588
2589
2590     test -n "$CC" && break
2591   done
2592 fi
2593 if test -z "$CC"; then
2594   ac_ct_CC=$CC
2595   for ac_prog in cl.exe
2596 do
2597   # Extract the first word of "$ac_prog", so it can be a program name with args.
2598 set dummy $ac_prog; ac_word=$2
2599 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2600 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2601 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2602   echo $ECHO_N "(cached) $ECHO_C" >&6
2603 else
2604   if test -n "$ac_ct_CC"; then
2605   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2606 else
2607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2608 for as_dir in $PATH
2609 do
2610   IFS=$as_save_IFS
2611   test -z "$as_dir" && as_dir=.
2612   for ac_exec_ext in '' $ac_executable_extensions; do
2613   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2614     ac_cv_prog_ac_ct_CC="$ac_prog"
2615     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2616     break 2
2617   fi
2618 done
2619 done
2620 IFS=$as_save_IFS
2621
2622 fi
2623 fi
2624 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2625 if test -n "$ac_ct_CC"; then
2626   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2627 echo "${ECHO_T}$ac_ct_CC" >&6; }
2628 else
2629   { echo "$as_me:$LINENO: result: no" >&5
2630 echo "${ECHO_T}no" >&6; }
2631 fi
2632
2633
2634   test -n "$ac_ct_CC" && break
2635 done
2636
2637   if test "x$ac_ct_CC" = x; then
2638     CC=""
2639   else
2640     case $cross_compiling:$ac_tool_warned in
2641 yes:)
2642 { echo "$as_me:$LINENO: 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." >&5
2645 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2646 whose name does not start with the host triplet.  If you think this
2647 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2648 ac_tool_warned=yes ;;
2649 esac
2650     CC=$ac_ct_CC
2651   fi
2652 fi
2653
2654 fi
2655
2656
2657 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2658 See \`config.log' for more details." >&5
2659 echo "$as_me: error: no acceptable C compiler found in \$PATH
2660 See \`config.log' for more details." >&2;}
2661    { (exit 1); exit 1; }; }
2662
2663 # Provide some information about the compiler.
2664 echo "$as_me:$LINENO: checking for C compiler version" >&5
2665 ac_compiler=`set X $ac_compile; echo $2`
2666 { (ac_try="$ac_compiler --version >&5"
2667 case "(($ac_try" in
2668   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2669   *) ac_try_echo=$ac_try;;
2670 esac
2671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2672   (eval "$ac_compiler --version >&5") 2>&5
2673   ac_status=$?
2674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2675   (exit $ac_status); }
2676 { (ac_try="$ac_compiler -v >&5"
2677 case "(($ac_try" in
2678   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2679   *) ac_try_echo=$ac_try;;
2680 esac
2681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2682   (eval "$ac_compiler -v >&5") 2>&5
2683   ac_status=$?
2684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2685   (exit $ac_status); }
2686 { (ac_try="$ac_compiler -V >&5"
2687 case "(($ac_try" in
2688   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2689   *) ac_try_echo=$ac_try;;
2690 esac
2691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2692   (eval "$ac_compiler -V >&5") 2>&5
2693   ac_status=$?
2694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2695   (exit $ac_status); }
2696
2697 cat >conftest.$ac_ext <<_ACEOF
2698 /* confdefs.h.  */
2699 _ACEOF
2700 cat confdefs.h >>conftest.$ac_ext
2701 cat >>conftest.$ac_ext <<_ACEOF
2702 /* end confdefs.h.  */
2703
2704 int
2705 main ()
2706 {
2707
2708   ;
2709   return 0;
2710 }
2711 _ACEOF
2712 ac_clean_files_save=$ac_clean_files
2713 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2714 # Try to create an executable without -o first, disregard a.out.
2715 # It will help us diagnose broken compilers, and finding out an intuition
2716 # of exeext.
2717 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2718 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2719 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2720 #
2721 # List of possible output files, starting from the most likely.
2722 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2723 # only as a last resort.  b.out is created by i960 compilers.
2724 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2725 #
2726 # The IRIX 6 linker writes into existing files which may not be
2727 # executable, retaining their permissions.  Remove them first so a
2728 # subsequent execution test works.
2729 ac_rmfiles=
2730 for ac_file in $ac_files
2731 do
2732   case $ac_file in
2733     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2734     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2735   esac
2736 done
2737 rm -f $ac_rmfiles
2738
2739 if { (ac_try="$ac_link_default"
2740 case "(($ac_try" in
2741   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2742   *) ac_try_echo=$ac_try;;
2743 esac
2744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2745   (eval "$ac_link_default") 2>&5
2746   ac_status=$?
2747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2748   (exit $ac_status); }; then
2749   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2750 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2751 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2752 # so that the user can short-circuit this test for compilers unknown to
2753 # Autoconf.
2754 for ac_file in $ac_files ''
2755 do
2756   test -f "$ac_file" || continue
2757   case $ac_file in
2758     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2759         ;;
2760     [ab].out )
2761         # We found the default executable, but exeext='' is most
2762         # certainly right.
2763         break;;
2764     *.* )
2765         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2766         then :; else
2767            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2768         fi
2769         # We set ac_cv_exeext here because the later test for it is not
2770         # safe: cross compilers may not add the suffix if given an `-o'
2771         # argument, so we may need to know it at that point already.
2772         # Even if this section looks crufty: it has the advantage of
2773         # actually working.
2774         break;;
2775     * )
2776         break;;
2777   esac
2778 done
2779 test "$ac_cv_exeext" = no && ac_cv_exeext=
2780
2781 else
2782   ac_file=''
2783 fi
2784
2785 { echo "$as_me:$LINENO: result: $ac_file" >&5
2786 echo "${ECHO_T}$ac_file" >&6; }
2787 if test -z "$ac_file"; then
2788   echo "$as_me: failed program was:" >&5
2789 sed 's/^/| /' conftest.$ac_ext >&5
2790
2791 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2792 See \`config.log' for more details." >&5
2793 echo "$as_me: error: C compiler cannot create executables
2794 See \`config.log' for more details." >&2;}
2795    { (exit 77); exit 77; }; }
2796 fi
2797
2798 ac_exeext=$ac_cv_exeext
2799
2800 # Check that the compiler produces executables we can run.  If not, either
2801 # the compiler is broken, or we cross compile.
2802 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2803 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2804 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2805 # If not cross compiling, check that we can run a simple program.
2806 if test "$cross_compiling" != yes; then
2807   if { ac_try='./$ac_file'
2808   { (case "(($ac_try" in
2809   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2810   *) ac_try_echo=$ac_try;;
2811 esac
2812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2813   (eval "$ac_try") 2>&5
2814   ac_status=$?
2815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2816   (exit $ac_status); }; }; then
2817     cross_compiling=no
2818   else
2819     if test "$cross_compiling" = maybe; then
2820         cross_compiling=yes
2821     else
2822         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2823 If you meant to cross compile, use \`--host'.
2824 See \`config.log' for more details." >&5
2825 echo "$as_me: error: cannot run C compiled programs.
2826 If you meant to cross compile, use \`--host'.
2827 See \`config.log' for more details." >&2;}
2828    { (exit 1); exit 1; }; }
2829     fi
2830   fi
2831 fi
2832 { echo "$as_me:$LINENO: result: yes" >&5
2833 echo "${ECHO_T}yes" >&6; }
2834
2835 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2836 ac_clean_files=$ac_clean_files_save
2837 # Check that the compiler produces executables we can run.  If not, either
2838 # the compiler is broken, or we cross compile.
2839 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2840 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2841 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2842 echo "${ECHO_T}$cross_compiling" >&6; }
2843
2844 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2845 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2846 if { (ac_try="$ac_link"
2847 case "(($ac_try" in
2848   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2849   *) ac_try_echo=$ac_try;;
2850 esac
2851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2852   (eval "$ac_link") 2>&5
2853   ac_status=$?
2854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2855   (exit $ac_status); }; then
2856   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2857 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2858 # work properly (i.e., refer to `conftest.exe'), while it won't with
2859 # `rm'.
2860 for ac_file in conftest.exe conftest conftest.*; do
2861   test -f "$ac_file" || continue
2862   case $ac_file in
2863     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2864     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2865           break;;
2866     * ) break;;
2867   esac
2868 done
2869 else
2870   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2871 See \`config.log' for more details." >&5
2872 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2873 See \`config.log' for more details." >&2;}
2874    { (exit 1); exit 1; }; }
2875 fi
2876
2877 rm -f conftest$ac_cv_exeext
2878 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2879 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2880
2881 rm -f conftest.$ac_ext
2882 EXEEXT=$ac_cv_exeext
2883 ac_exeext=$EXEEXT
2884 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2885 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2886 if test "${ac_cv_objext+set}" = set; then
2887   echo $ECHO_N "(cached) $ECHO_C" >&6
2888 else
2889   cat >conftest.$ac_ext <<_ACEOF
2890 /* confdefs.h.  */
2891 _ACEOF
2892 cat confdefs.h >>conftest.$ac_ext
2893 cat >>conftest.$ac_ext <<_ACEOF
2894 /* end confdefs.h.  */
2895
2896 int
2897 main ()
2898 {
2899
2900   ;
2901   return 0;
2902 }
2903 _ACEOF
2904 rm -f conftest.o conftest.obj
2905 if { (ac_try="$ac_compile"
2906 case "(($ac_try" in
2907   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2908   *) ac_try_echo=$ac_try;;
2909 esac
2910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2911   (eval "$ac_compile") 2>&5
2912   ac_status=$?
2913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2914   (exit $ac_status); }; then
2915   for ac_file in conftest.o conftest.obj conftest.*; do
2916   test -f "$ac_file" || continue;
2917   case $ac_file in
2918     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2919     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2920        break;;
2921   esac
2922 done
2923 else
2924   echo "$as_me: failed program was:" >&5
2925 sed 's/^/| /' conftest.$ac_ext >&5
2926
2927 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2928 See \`config.log' for more details." >&5
2929 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2930 See \`config.log' for more details." >&2;}
2931    { (exit 1); exit 1; }; }
2932 fi
2933
2934 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2935 fi
2936 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2937 echo "${ECHO_T}$ac_cv_objext" >&6; }
2938 OBJEXT=$ac_cv_objext
2939 ac_objext=$OBJEXT
2940 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2941 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2942 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2943   echo $ECHO_N "(cached) $ECHO_C" >&6
2944 else
2945   cat >conftest.$ac_ext <<_ACEOF
2946 /* confdefs.h.  */
2947 _ACEOF
2948 cat confdefs.h >>conftest.$ac_ext
2949 cat >>conftest.$ac_ext <<_ACEOF
2950 /* end confdefs.h.  */
2951
2952 int
2953 main ()
2954 {
2955 #ifndef __GNUC__
2956        choke me
2957 #endif
2958
2959   ;
2960   return 0;
2961 }
2962 _ACEOF
2963 rm -f conftest.$ac_objext
2964 if { (ac_try="$ac_compile"
2965 case "(($ac_try" in
2966   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2967   *) ac_try_echo=$ac_try;;
2968 esac
2969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2970   (eval "$ac_compile") 2>conftest.er1
2971   ac_status=$?
2972   grep -v '^ *+' conftest.er1 >conftest.err
2973   rm -f conftest.er1
2974   cat conftest.err >&5
2975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2976   (exit $ac_status); } && {
2977          test -z "$ac_c_werror_flag" ||
2978          test ! -s conftest.err
2979        } && test -s conftest.$ac_objext; then
2980   ac_compiler_gnu=yes
2981 else
2982   echo "$as_me: failed program was:" >&5
2983 sed 's/^/| /' conftest.$ac_ext >&5
2984
2985         ac_compiler_gnu=no
2986 fi
2987
2988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2989 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2990
2991 fi
2992 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2993 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2994 GCC=`test $ac_compiler_gnu = yes && echo yes`
2995 ac_test_CFLAGS=${CFLAGS+set}
2996 ac_save_CFLAGS=$CFLAGS
2997 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2998 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2999 if test "${ac_cv_prog_cc_g+set}" = set; then
3000   echo $ECHO_N "(cached) $ECHO_C" >&6
3001 else
3002   ac_save_c_werror_flag=$ac_c_werror_flag
3003    ac_c_werror_flag=yes
3004    ac_cv_prog_cc_g=no
3005    CFLAGS="-g"
3006    cat >conftest.$ac_ext <<_ACEOF
3007 /* confdefs.h.  */
3008 _ACEOF
3009 cat confdefs.h >>conftest.$ac_ext
3010 cat >>conftest.$ac_ext <<_ACEOF
3011 /* end confdefs.h.  */
3012
3013 int
3014 main ()
3015 {
3016
3017   ;
3018   return 0;
3019 }
3020 _ACEOF
3021 rm -f conftest.$ac_objext
3022 if { (ac_try="$ac_compile"
3023 case "(($ac_try" in
3024   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3025   *) ac_try_echo=$ac_try;;
3026 esac
3027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3028   (eval "$ac_compile") 2>conftest.er1
3029   ac_status=$?
3030   grep -v '^ *+' conftest.er1 >conftest.err
3031   rm -f conftest.er1
3032   cat conftest.err >&5
3033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3034   (exit $ac_status); } && {
3035          test -z "$ac_c_werror_flag" ||
3036          test ! -s conftest.err
3037        } && test -s conftest.$ac_objext; then
3038   ac_cv_prog_cc_g=yes
3039 else
3040   echo "$as_me: failed program was:" >&5
3041 sed 's/^/| /' conftest.$ac_ext >&5
3042
3043         CFLAGS=""
3044       cat >conftest.$ac_ext <<_ACEOF
3045 /* confdefs.h.  */
3046 _ACEOF
3047 cat confdefs.h >>conftest.$ac_ext
3048 cat >>conftest.$ac_ext <<_ACEOF
3049 /* end confdefs.h.  */
3050
3051 int
3052 main ()
3053 {
3054
3055   ;
3056   return 0;
3057 }
3058 _ACEOF
3059 rm -f conftest.$ac_objext
3060 if { (ac_try="$ac_compile"
3061 case "(($ac_try" in
3062   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3063   *) ac_try_echo=$ac_try;;
3064 esac
3065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3066   (eval "$ac_compile") 2>conftest.er1
3067   ac_status=$?
3068   grep -v '^ *+' conftest.er1 >conftest.err
3069   rm -f conftest.er1
3070   cat conftest.err >&5
3071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3072   (exit $ac_status); } && {
3073          test -z "$ac_c_werror_flag" ||
3074          test ! -s conftest.err
3075        } && test -s conftest.$ac_objext; then
3076   :
3077 else
3078   echo "$as_me: failed program was:" >&5
3079 sed 's/^/| /' conftest.$ac_ext >&5
3080
3081         ac_c_werror_flag=$ac_save_c_werror_flag
3082          CFLAGS="-g"
3083          cat >conftest.$ac_ext <<_ACEOF
3084 /* confdefs.h.  */
3085 _ACEOF
3086 cat confdefs.h >>conftest.$ac_ext
3087 cat >>conftest.$ac_ext <<_ACEOF
3088 /* end confdefs.h.  */
3089
3090 int
3091 main ()
3092 {
3093
3094   ;
3095   return 0;
3096 }
3097 _ACEOF
3098 rm -f conftest.$ac_objext
3099 if { (ac_try="$ac_compile"
3100 case "(($ac_try" in
3101   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3102   *) ac_try_echo=$ac_try;;
3103 esac
3104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3105   (eval "$ac_compile") 2>conftest.er1
3106   ac_status=$?
3107   grep -v '^ *+' conftest.er1 >conftest.err
3108   rm -f conftest.er1
3109   cat conftest.err >&5
3110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3111   (exit $ac_status); } && {
3112          test -z "$ac_c_werror_flag" ||
3113          test ! -s conftest.err
3114        } && test -s conftest.$ac_objext; then
3115   ac_cv_prog_cc_g=yes
3116 else
3117   echo "$as_me: failed program was:" >&5
3118 sed 's/^/| /' conftest.$ac_ext >&5
3119
3120
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 fi
3128
3129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3130    ac_c_werror_flag=$ac_save_c_werror_flag
3131 fi
3132 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3133 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3134 if test "$ac_test_CFLAGS" = set; then
3135   CFLAGS=$ac_save_CFLAGS
3136 elif test $ac_cv_prog_cc_g = yes; then
3137   if test "$GCC" = yes; then
3138     CFLAGS="-g -O2"
3139   else
3140     CFLAGS="-g"
3141   fi
3142 else
3143   if test "$GCC" = yes; then
3144     CFLAGS="-O2"
3145   else
3146     CFLAGS=
3147   fi
3148 fi
3149 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3150 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3151 if test "${ac_cv_prog_cc_c89+set}" = set; then
3152   echo $ECHO_N "(cached) $ECHO_C" >&6
3153 else
3154   ac_cv_prog_cc_c89=no
3155 ac_save_CC=$CC
3156 cat >conftest.$ac_ext <<_ACEOF
3157 /* confdefs.h.  */
3158 _ACEOF
3159 cat confdefs.h >>conftest.$ac_ext
3160 cat >>conftest.$ac_ext <<_ACEOF
3161 /* end confdefs.h.  */
3162 #include <stdarg.h>
3163 #include <stdio.h>
3164 #include <sys/types.h>
3165 #include <sys/stat.h>
3166 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3167 struct buf { int x; };
3168 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3169 static char *e (p, i)
3170      char **p;
3171      int i;
3172 {
3173   return p[i];
3174 }
3175 static char *f (char * (*g) (char **, int), char **p, ...)
3176 {
3177   char *s;
3178   va_list v;
3179   va_start (v,p);
3180   s = g (p, va_arg (v,int));
3181   va_end (v);
3182   return s;
3183 }
3184
3185 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3186    function prototypes and stuff, but not '\xHH' hex character constants.
3187    These don't provoke an error unfortunately, instead are silently treated
3188    as 'x'.  The following induces an error, until -std is added to get
3189    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3190    array size at least.  It's necessary to write '\x00'==0 to get something
3191    that's true only with -std.  */
3192 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3193
3194 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3195    inside strings and character constants.  */
3196 #define FOO(x) 'x'
3197 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3198
3199 int test (int i, double x);
3200 struct s1 {int (*f) (int a);};
3201 struct s2 {int (*f) (double a);};
3202 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3203 int argc;
3204 char **argv;
3205 int
3206 main ()
3207 {
3208 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3209   ;
3210   return 0;
3211 }
3212 _ACEOF
3213 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3214         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3215 do
3216   CC="$ac_save_CC $ac_arg"
3217   rm -f conftest.$ac_objext
3218 if { (ac_try="$ac_compile"
3219 case "(($ac_try" in
3220   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3221   *) ac_try_echo=$ac_try;;
3222 esac
3223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3224   (eval "$ac_compile") 2>conftest.er1
3225   ac_status=$?
3226   grep -v '^ *+' conftest.er1 >conftest.err
3227   rm -f conftest.er1
3228   cat conftest.err >&5
3229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3230   (exit $ac_status); } && {
3231          test -z "$ac_c_werror_flag" ||
3232          test ! -s conftest.err
3233        } && test -s conftest.$ac_objext; then
3234   ac_cv_prog_cc_c89=$ac_arg
3235 else
3236   echo "$as_me: failed program was:" >&5
3237 sed 's/^/| /' conftest.$ac_ext >&5
3238
3239
3240 fi
3241
3242 rm -f core conftest.err conftest.$ac_objext
3243   test "x$ac_cv_prog_cc_c89" != "xno" && break
3244 done
3245 rm -f conftest.$ac_ext
3246 CC=$ac_save_CC
3247
3248 fi
3249 # AC_CACHE_VAL
3250 case "x$ac_cv_prog_cc_c89" in
3251   x)
3252     { echo "$as_me:$LINENO: result: none needed" >&5
3253 echo "${ECHO_T}none needed" >&6; } ;;
3254   xno)
3255     { echo "$as_me:$LINENO: result: unsupported" >&5
3256 echo "${ECHO_T}unsupported" >&6; } ;;
3257   *)
3258     CC="$CC $ac_cv_prog_cc_c89"
3259     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3260 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3261 esac
3262
3263
3264 ac_ext=c
3265 ac_cpp='$CPP $CPPFLAGS'
3266 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3267 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3268 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3269
3270 ac_ext=cpp
3271 ac_cpp='$CXXCPP $CPPFLAGS'
3272 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3273 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3274 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3275 if test -z "$CXX"; then
3276   if test -n "$CCC"; then
3277     CXX=$CCC
3278   else
3279     if test -n "$ac_tool_prefix"; then
3280   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3281   do
3282     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3283 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3284 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3285 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3286 if test "${ac_cv_prog_CXX+set}" = set; then
3287   echo $ECHO_N "(cached) $ECHO_C" >&6
3288 else
3289   if test -n "$CXX"; then
3290   ac_cv_prog_CXX="$CXX" # Let the user override the test.
3291 else
3292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3293 for as_dir in $PATH
3294 do
3295   IFS=$as_save_IFS
3296   test -z "$as_dir" && as_dir=.
3297   for ac_exec_ext in '' $ac_executable_extensions; do
3298   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3299     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3300     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3301     break 2
3302   fi
3303 done
3304 done
3305 IFS=$as_save_IFS
3306
3307 fi
3308 fi
3309 CXX=$ac_cv_prog_CXX
3310 if test -n "$CXX"; then
3311   { echo "$as_me:$LINENO: result: $CXX" >&5
3312 echo "${ECHO_T}$CXX" >&6; }
3313 else
3314   { echo "$as_me:$LINENO: result: no" >&5
3315 echo "${ECHO_T}no" >&6; }
3316 fi
3317
3318
3319     test -n "$CXX" && break
3320   done
3321 fi
3322 if test -z "$CXX"; then
3323   ac_ct_CXX=$CXX
3324   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3325 do
3326   # Extract the first word of "$ac_prog", so it can be a program name with args.
3327 set dummy $ac_prog; ac_word=$2
3328 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3329 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3330 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3331   echo $ECHO_N "(cached) $ECHO_C" >&6
3332 else
3333   if test -n "$ac_ct_CXX"; then
3334   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3335 else
3336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3337 for as_dir in $PATH
3338 do
3339   IFS=$as_save_IFS
3340   test -z "$as_dir" && as_dir=.
3341   for ac_exec_ext in '' $ac_executable_extensions; do
3342   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3343     ac_cv_prog_ac_ct_CXX="$ac_prog"
3344     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3345     break 2
3346   fi
3347 done
3348 done
3349 IFS=$as_save_IFS
3350
3351 fi
3352 fi
3353 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3354 if test -n "$ac_ct_CXX"; then
3355   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3356 echo "${ECHO_T}$ac_ct_CXX" >&6; }
3357 else
3358   { echo "$as_me:$LINENO: result: no" >&5
3359 echo "${ECHO_T}no" >&6; }
3360 fi
3361
3362
3363   test -n "$ac_ct_CXX" && break
3364 done
3365
3366   if test "x$ac_ct_CXX" = x; then
3367     CXX="g++"
3368   else
3369     case $cross_compiling:$ac_tool_warned in
3370 yes:)
3371 { echo "$as_me:$LINENO: 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." >&5
3374 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3375 whose name does not start with the host triplet.  If you think this
3376 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3377 ac_tool_warned=yes ;;
3378 esac
3379     CXX=$ac_ct_CXX
3380   fi
3381 fi
3382
3383   fi
3384 fi
3385 # Provide some information about the compiler.
3386 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3387 ac_compiler=`set X $ac_compile; echo $2`
3388 { (ac_try="$ac_compiler --version >&5"
3389 case "(($ac_try" in
3390   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3391   *) ac_try_echo=$ac_try;;
3392 esac
3393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3394   (eval "$ac_compiler --version >&5") 2>&5
3395   ac_status=$?
3396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3397   (exit $ac_status); }
3398 { (ac_try="$ac_compiler -v >&5"
3399 case "(($ac_try" in
3400   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3401   *) ac_try_echo=$ac_try;;
3402 esac
3403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3404   (eval "$ac_compiler -v >&5") 2>&5
3405   ac_status=$?
3406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3407   (exit $ac_status); }
3408 { (ac_try="$ac_compiler -V >&5"
3409 case "(($ac_try" in
3410   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3411   *) ac_try_echo=$ac_try;;
3412 esac
3413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3414   (eval "$ac_compiler -V >&5") 2>&5
3415   ac_status=$?
3416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3417   (exit $ac_status); }
3418
3419 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3420 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3421 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3422   echo $ECHO_N "(cached) $ECHO_C" >&6
3423 else
3424   cat >conftest.$ac_ext <<_ACEOF
3425 /* confdefs.h.  */
3426 _ACEOF
3427 cat confdefs.h >>conftest.$ac_ext
3428 cat >>conftest.$ac_ext <<_ACEOF
3429 /* end confdefs.h.  */
3430
3431 int
3432 main ()
3433 {
3434 #ifndef __GNUC__
3435        choke me
3436 #endif
3437
3438   ;
3439   return 0;
3440 }
3441 _ACEOF
3442 rm -f conftest.$ac_objext
3443 if { (ac_try="$ac_compile"
3444 case "(($ac_try" in
3445   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3446   *) ac_try_echo=$ac_try;;
3447 esac
3448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3449   (eval "$ac_compile") 2>conftest.er1
3450   ac_status=$?
3451   grep -v '^ *+' conftest.er1 >conftest.err
3452   rm -f conftest.er1
3453   cat conftest.err >&5
3454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3455   (exit $ac_status); } && {
3456          test -z "$ac_cxx_werror_flag" ||
3457          test ! -s conftest.err
3458        } && test -s conftest.$ac_objext; then
3459   ac_compiler_gnu=yes
3460 else
3461   echo "$as_me: failed program was:" >&5
3462 sed 's/^/| /' conftest.$ac_ext >&5
3463
3464         ac_compiler_gnu=no
3465 fi
3466
3467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3468 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3469
3470 fi
3471 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3472 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3473 GXX=`test $ac_compiler_gnu = yes && echo yes`
3474 ac_test_CXXFLAGS=${CXXFLAGS+set}
3475 ac_save_CXXFLAGS=$CXXFLAGS
3476 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3477 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3478 if test "${ac_cv_prog_cxx_g+set}" = set; then
3479   echo $ECHO_N "(cached) $ECHO_C" >&6
3480 else
3481   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3482    ac_cxx_werror_flag=yes
3483    ac_cv_prog_cxx_g=no
3484    CXXFLAGS="-g"
3485    cat >conftest.$ac_ext <<_ACEOF
3486 /* confdefs.h.  */
3487 _ACEOF
3488 cat confdefs.h >>conftest.$ac_ext
3489 cat >>conftest.$ac_ext <<_ACEOF
3490 /* end confdefs.h.  */
3491
3492 int
3493 main ()
3494 {
3495
3496   ;
3497   return 0;
3498 }
3499 _ACEOF
3500 rm -f conftest.$ac_objext
3501 if { (ac_try="$ac_compile"
3502 case "(($ac_try" in
3503   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3504   *) ac_try_echo=$ac_try;;
3505 esac
3506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3507   (eval "$ac_compile") 2>conftest.er1
3508   ac_status=$?
3509   grep -v '^ *+' conftest.er1 >conftest.err
3510   rm -f conftest.er1
3511   cat conftest.err >&5
3512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3513   (exit $ac_status); } && {
3514          test -z "$ac_cxx_werror_flag" ||
3515          test ! -s conftest.err
3516        } && test -s conftest.$ac_objext; then
3517   ac_cv_prog_cxx_g=yes
3518 else
3519   echo "$as_me: failed program was:" >&5
3520 sed 's/^/| /' conftest.$ac_ext >&5
3521
3522         CXXFLAGS=""
3523       cat >conftest.$ac_ext <<_ACEOF
3524 /* confdefs.h.  */
3525 _ACEOF
3526 cat confdefs.h >>conftest.$ac_ext
3527 cat >>conftest.$ac_ext <<_ACEOF
3528 /* end confdefs.h.  */
3529
3530 int
3531 main ()
3532 {
3533
3534   ;
3535   return 0;
3536 }
3537 _ACEOF
3538 rm -f conftest.$ac_objext
3539 if { (ac_try="$ac_compile"
3540 case "(($ac_try" in
3541   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3542   *) ac_try_echo=$ac_try;;
3543 esac
3544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3545   (eval "$ac_compile") 2>conftest.er1
3546   ac_status=$?
3547   grep -v '^ *+' conftest.er1 >conftest.err
3548   rm -f conftest.er1
3549   cat conftest.err >&5
3550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3551   (exit $ac_status); } && {
3552          test -z "$ac_cxx_werror_flag" ||
3553          test ! -s conftest.err
3554        } && test -s conftest.$ac_objext; then
3555   :
3556 else
3557   echo "$as_me: failed program was:" >&5
3558 sed 's/^/| /' conftest.$ac_ext >&5
3559
3560         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3561          CXXFLAGS="-g"
3562          cat >conftest.$ac_ext <<_ACEOF
3563 /* confdefs.h.  */
3564 _ACEOF
3565 cat confdefs.h >>conftest.$ac_ext
3566 cat >>conftest.$ac_ext <<_ACEOF
3567 /* end confdefs.h.  */
3568
3569 int
3570 main ()
3571 {
3572
3573   ;
3574   return 0;
3575 }
3576 _ACEOF
3577 rm -f conftest.$ac_objext
3578 if { (ac_try="$ac_compile"
3579 case "(($ac_try" in
3580   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3581   *) ac_try_echo=$ac_try;;
3582 esac
3583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3584   (eval "$ac_compile") 2>conftest.er1
3585   ac_status=$?
3586   grep -v '^ *+' conftest.er1 >conftest.err
3587   rm -f conftest.er1
3588   cat conftest.err >&5
3589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3590   (exit $ac_status); } && {
3591          test -z "$ac_cxx_werror_flag" ||
3592          test ! -s conftest.err
3593        } && test -s conftest.$ac_objext; then
3594   ac_cv_prog_cxx_g=yes
3595 else
3596   echo "$as_me: failed program was:" >&5
3597 sed 's/^/| /' conftest.$ac_ext >&5
3598
3599
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 fi
3607
3608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3609    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3610 fi
3611 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3612 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3613 if test "$ac_test_CXXFLAGS" = set; then
3614   CXXFLAGS=$ac_save_CXXFLAGS
3615 elif test $ac_cv_prog_cxx_g = yes; then
3616   if test "$GXX" = yes; then
3617     CXXFLAGS="-g -O2"
3618   else
3619     CXXFLAGS="-g"
3620   fi
3621 else
3622   if test "$GXX" = yes; then
3623     CXXFLAGS="-O2"
3624   else
3625     CXXFLAGS=
3626   fi
3627 fi
3628 ac_ext=c
3629 ac_cpp='$CPP $CPPFLAGS'
3630 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3631 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3632 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3633
3634 if test "x$CC" != xcc; then
3635   { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
3636 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; }
3637 else
3638   { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
3639 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; }
3640 fi
3641 set dummy $CC; ac_cc=`echo $2 |
3642                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3643 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
3644   echo $ECHO_N "(cached) $ECHO_C" >&6
3645 else
3646   cat >conftest.$ac_ext <<_ACEOF
3647 /* confdefs.h.  */
3648 _ACEOF
3649 cat confdefs.h >>conftest.$ac_ext
3650 cat >>conftest.$ac_ext <<_ACEOF
3651 /* end confdefs.h.  */
3652
3653 int
3654 main ()
3655 {
3656
3657   ;
3658   return 0;
3659 }
3660 _ACEOF
3661 # Make sure it works both with $CC and with simple cc.
3662 # We do the test twice because some compilers refuse to overwrite an
3663 # existing .o file with -o, though they will create one.
3664 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3665 rm -f conftest2.*
3666 if { (case "(($ac_try" in
3667   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3668   *) ac_try_echo=$ac_try;;
3669 esac
3670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3671   (eval "$ac_try") 2>&5
3672   ac_status=$?
3673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3674   (exit $ac_status); } &&
3675    test -f conftest2.$ac_objext && { (case "(($ac_try" in
3676   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3677   *) ac_try_echo=$ac_try;;
3678 esac
3679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3680   (eval "$ac_try") 2>&5
3681   ac_status=$?
3682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3683   (exit $ac_status); };
3684 then
3685   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3686   if test "x$CC" != xcc; then
3687     # Test first that cc exists at all.
3688     if { ac_try='cc -c conftest.$ac_ext >&5'
3689   { (case "(($ac_try" in
3690   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3691   *) ac_try_echo=$ac_try;;
3692 esac
3693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3694   (eval "$ac_try") 2>&5
3695   ac_status=$?
3696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3697   (exit $ac_status); }; }; then
3698       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3699       rm -f conftest2.*
3700       if { (case "(($ac_try" in
3701   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3702   *) ac_try_echo=$ac_try;;
3703 esac
3704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3705   (eval "$ac_try") 2>&5
3706   ac_status=$?
3707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3708   (exit $ac_status); } &&
3709          test -f conftest2.$ac_objext && { (case "(($ac_try" in
3710   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3711   *) ac_try_echo=$ac_try;;
3712 esac
3713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3714   (eval "$ac_try") 2>&5
3715   ac_status=$?
3716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3717   (exit $ac_status); };
3718       then
3719         # cc works too.
3720         :
3721       else
3722         # cc exists but doesn't like -o.
3723         eval ac_cv_prog_cc_${ac_cc}_c_o=no
3724       fi
3725     fi
3726   fi
3727 else
3728   eval ac_cv_prog_cc_${ac_cc}_c_o=no
3729 fi
3730 rm -f core conftest*
3731
3732 fi
3733 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
3734   { echo "$as_me:$LINENO: result: yes" >&5
3735 echo "${ECHO_T}yes" >&6; }
3736 else
3737   { echo "$as_me:$LINENO: result: no" >&5
3738 echo "${ECHO_T}no" >&6; }
3739
3740 cat >>confdefs.h <<\_ACEOF
3741 #define NO_MINUS_C_MINUS_O 1
3742 _ACEOF
3743
3744 fi
3745
3746 ac_ext=c
3747 ac_cpp='$CPP $CPPFLAGS'
3748 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3749 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3750 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3751 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3752 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3753 # On Suns, sometimes $CPP names a directory.
3754 if test -n "$CPP" && test -d "$CPP"; then
3755   CPP=
3756 fi
3757 if test -z "$CPP"; then
3758   if test "${ac_cv_prog_CPP+set}" = set; then
3759   echo $ECHO_N "(cached) $ECHO_C" >&6
3760 else
3761       # Double quotes because CPP needs to be expanded
3762     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3763     do
3764       ac_preproc_ok=false
3765 for ac_c_preproc_warn_flag in '' yes
3766 do
3767   # Use a header file that comes with gcc, so configuring glibc
3768   # with a fresh cross-compiler works.
3769   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3770   # <limits.h> exists even on freestanding compilers.
3771   # On the NeXT, cc -E runs the code through the compiler's parser,
3772   # not just through cpp. "Syntax error" is here to catch this case.
3773   cat >conftest.$ac_ext <<_ACEOF
3774 /* confdefs.h.  */
3775 _ACEOF
3776 cat confdefs.h >>conftest.$ac_ext
3777 cat >>conftest.$ac_ext <<_ACEOF
3778 /* end confdefs.h.  */
3779 #ifdef __STDC__
3780 # include <limits.h>
3781 #else
3782 # include <assert.h>
3783 #endif
3784                      Syntax error
3785 _ACEOF
3786 if { (ac_try="$ac_cpp conftest.$ac_ext"
3787 case "(($ac_try" in
3788   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3789   *) ac_try_echo=$ac_try;;
3790 esac
3791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3792   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3793   ac_status=$?
3794   grep -v '^ *+' conftest.er1 >conftest.err
3795   rm -f conftest.er1
3796   cat conftest.err >&5
3797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3798   (exit $ac_status); } >/dev/null && {
3799          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3800          test ! -s conftest.err
3801        }; then
3802   :
3803 else
3804   echo "$as_me: failed program was:" >&5
3805 sed 's/^/| /' conftest.$ac_ext >&5
3806
3807   # Broken: fails on valid input.
3808 continue
3809 fi
3810
3811 rm -f conftest.err conftest.$ac_ext
3812
3813   # OK, works on sane cases.  Now check whether nonexistent headers
3814   # can be detected and how.
3815   cat >conftest.$ac_ext <<_ACEOF
3816 /* confdefs.h.  */
3817 _ACEOF
3818 cat confdefs.h >>conftest.$ac_ext
3819 cat >>conftest.$ac_ext <<_ACEOF
3820 /* end confdefs.h.  */
3821 #include <ac_nonexistent.h>
3822 _ACEOF
3823 if { (ac_try="$ac_cpp conftest.$ac_ext"
3824 case "(($ac_try" in
3825   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3826   *) ac_try_echo=$ac_try;;
3827 esac
3828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3829   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3830   ac_status=$?
3831   grep -v '^ *+' conftest.er1 >conftest.err
3832   rm -f conftest.er1
3833   cat conftest.err >&5
3834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3835   (exit $ac_status); } >/dev/null && {
3836          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3837          test ! -s conftest.err
3838        }; then
3839   # Broken: success on invalid input.
3840 continue
3841 else
3842   echo "$as_me: failed program was:" >&5
3843 sed 's/^/| /' conftest.$ac_ext >&5
3844
3845   # Passes both tests.
3846 ac_preproc_ok=:
3847 break
3848 fi
3849
3850 rm -f conftest.err conftest.$ac_ext
3851
3852 done
3853 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3854 rm -f conftest.err conftest.$ac_ext
3855 if $ac_preproc_ok; then
3856   break
3857 fi
3858
3859     done
3860     ac_cv_prog_CPP=$CPP
3861
3862 fi
3863   CPP=$ac_cv_prog_CPP
3864 else
3865   ac_cv_prog_CPP=$CPP
3866 fi
3867 { echo "$as_me:$LINENO: result: $CPP" >&5
3868 echo "${ECHO_T}$CPP" >&6; }
3869 ac_preproc_ok=false
3870 for ac_c_preproc_warn_flag in '' yes
3871 do
3872   # Use a header file that comes with gcc, so configuring glibc
3873   # with a fresh cross-compiler works.
3874   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3875   # <limits.h> exists even on freestanding compilers.
3876   # On the NeXT, cc -E runs the code through the compiler's parser,
3877   # not just through cpp. "Syntax error" is here to catch this case.
3878   cat >conftest.$ac_ext <<_ACEOF
3879 /* confdefs.h.  */
3880 _ACEOF
3881 cat confdefs.h >>conftest.$ac_ext
3882 cat >>conftest.$ac_ext <<_ACEOF
3883 /* end confdefs.h.  */
3884 #ifdef __STDC__
3885 # include <limits.h>
3886 #else
3887 # include <assert.h>
3888 #endif
3889                      Syntax error
3890 _ACEOF
3891 if { (ac_try="$ac_cpp conftest.$ac_ext"
3892 case "(($ac_try" in
3893   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3894   *) ac_try_echo=$ac_try;;
3895 esac
3896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3897   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3898   ac_status=$?
3899   grep -v '^ *+' conftest.er1 >conftest.err
3900   rm -f conftest.er1
3901   cat conftest.err >&5
3902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3903   (exit $ac_status); } >/dev/null && {
3904          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3905          test ! -s conftest.err
3906        }; then
3907   :
3908 else
3909   echo "$as_me: failed program was:" >&5
3910 sed 's/^/| /' conftest.$ac_ext >&5
3911
3912   # Broken: fails on valid input.
3913 continue
3914 fi
3915
3916 rm -f conftest.err conftest.$ac_ext
3917
3918   # OK, works on sane cases.  Now check whether nonexistent headers
3919   # can be detected and how.
3920   cat >conftest.$ac_ext <<_ACEOF
3921 /* confdefs.h.  */
3922 _ACEOF
3923 cat confdefs.h >>conftest.$ac_ext
3924 cat >>conftest.$ac_ext <<_ACEOF
3925 /* end confdefs.h.  */
3926 #include <ac_nonexistent.h>
3927 _ACEOF
3928 if { (ac_try="$ac_cpp conftest.$ac_ext"
3929 case "(($ac_try" in
3930   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3931   *) ac_try_echo=$ac_try;;
3932 esac
3933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3934   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3935   ac_status=$?
3936   grep -v '^ *+' conftest.er1 >conftest.err
3937   rm -f conftest.er1
3938   cat conftest.err >&5
3939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3940   (exit $ac_status); } >/dev/null && {
3941          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3942          test ! -s conftest.err
3943        }; then
3944   # Broken: success on invalid input.
3945 continue
3946 else
3947   echo "$as_me: failed program was:" >&5
3948 sed 's/^/| /' conftest.$ac_ext >&5
3949
3950   # Passes both tests.
3951 ac_preproc_ok=:
3952 break
3953 fi
3954
3955 rm -f conftest.err conftest.$ac_ext
3956
3957 done
3958 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3959 rm -f conftest.err conftest.$ac_ext
3960 if $ac_preproc_ok; then
3961   :
3962 else
3963   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3964 See \`config.log' for more details." >&5
3965 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3966 See \`config.log' for more details." >&2;}
3967    { (exit 1); exit 1; }; }
3968 fi
3969
3970 ac_ext=c
3971 ac_cpp='$CPP $CPPFLAGS'
3972 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3973 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3974 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3975
3976
3977 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3978 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3979 if test "${ac_cv_path_GREP+set}" = set; then
3980   echo $ECHO_N "(cached) $ECHO_C" >&6
3981 else
3982   # Extract the first word of "grep ggrep" to use in msg output
3983 if test -z "$GREP"; then
3984 set dummy grep ggrep; ac_prog_name=$2
3985 if test "${ac_cv_path_GREP+set}" = set; then
3986   echo $ECHO_N "(cached) $ECHO_C" >&6
3987 else
3988   ac_path_GREP_found=false
3989 # Loop through the user's path and test for each of PROGNAME-LIST
3990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3991 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3992 do
3993   IFS=$as_save_IFS
3994   test -z "$as_dir" && as_dir=.
3995   for ac_prog in grep ggrep; do
3996   for ac_exec_ext in '' $ac_executable_extensions; do
3997     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3998     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3999     # Check for GNU ac_path_GREP and select it if it is found.
4000   # Check for GNU $ac_path_GREP
4001 case `"$ac_path_GREP" --version 2>&1` in
4002 *GNU*)
4003   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4004 *)
4005   ac_count=0
4006   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4007   while :
4008   do
4009     cat "conftest.in" "conftest.in" >"conftest.tmp"
4010     mv "conftest.tmp" "conftest.in"
4011     cp "conftest.in" "conftest.nl"
4012     echo 'GREP' >> "conftest.nl"
4013     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4014     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4015     ac_count=`expr $ac_count + 1`
4016     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4017       # Best one so far, save it but keep looking for a better one
4018       ac_cv_path_GREP="$ac_path_GREP"
4019       ac_path_GREP_max=$ac_count
4020     fi
4021     # 10*(2^10) chars as input seems more than enough
4022     test $ac_count -gt 10 && break
4023   done
4024   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4025 esac
4026
4027
4028     $ac_path_GREP_found && break 3
4029   done
4030 done
4031
4032 done
4033 IFS=$as_save_IFS
4034
4035
4036 fi
4037
4038 GREP="$ac_cv_path_GREP"
4039 if test -z "$GREP"; then
4040   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4041 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4042    { (exit 1); exit 1; }; }
4043 fi
4044
4045 else
4046   ac_cv_path_GREP=$GREP
4047 fi
4048
4049
4050 fi
4051 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4052 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4053  GREP="$ac_cv_path_GREP"
4054
4055
4056 { echo "$as_me:$LINENO: checking for egrep" >&5
4057 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4058 if test "${ac_cv_path_EGREP+set}" = set; then
4059   echo $ECHO_N "(cached) $ECHO_C" >&6
4060 else
4061   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4062    then ac_cv_path_EGREP="$GREP -E"
4063    else
4064      # Extract the first word of "egrep" to use in msg output
4065 if test -z "$EGREP"; then
4066 set dummy egrep; ac_prog_name=$2
4067 if test "${ac_cv_path_EGREP+set}" = set; then
4068   echo $ECHO_N "(cached) $ECHO_C" >&6
4069 else
4070   ac_path_EGREP_found=false
4071 # Loop through the user's path and test for each of PROGNAME-LIST
4072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4073 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4074 do
4075   IFS=$as_save_IFS
4076   test -z "$as_dir" && as_dir=.
4077   for ac_prog in egrep; do
4078   for ac_exec_ext in '' $ac_executable_extensions; do
4079     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4080     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4081     # Check for GNU ac_path_EGREP and select it if it is found.
4082   # Check for GNU $ac_path_EGREP
4083 case `"$ac_path_EGREP" --version 2>&1` in
4084 *GNU*)
4085   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4086 *)
4087   ac_count=0
4088   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4089   while :
4090   do
4091     cat "conftest.in" "conftest.in" >"conftest.tmp"
4092     mv "conftest.tmp" "conftest.in"
4093     cp "conftest.in" "conftest.nl"
4094     echo 'EGREP' >> "conftest.nl"
4095     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4096     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4097     ac_count=`expr $ac_count + 1`
4098     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4099       # Best one so far, save it but keep looking for a better one
4100       ac_cv_path_EGREP="$ac_path_EGREP"
4101       ac_path_EGREP_max=$ac_count
4102     fi
4103     # 10*(2^10) chars as input seems more than enough
4104     test $ac_count -gt 10 && break
4105   done
4106   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4107 esac
4108
4109
4110     $ac_path_EGREP_found && break 3
4111   done
4112 done
4113
4114 done
4115 IFS=$as_save_IFS
4116
4117
4118 fi
4119
4120 EGREP="$ac_cv_path_EGREP"
4121 if test -z "$EGREP"; then
4122   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4123 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4124    { (exit 1); exit 1; }; }
4125 fi
4126
4127 else
4128   ac_cv_path_EGREP=$EGREP
4129 fi
4130
4131
4132    fi
4133 fi
4134 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4135 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4136  EGREP="$ac_cv_path_EGREP"
4137
4138
4139 if test $ac_cv_c_compiler_gnu = yes; then
4140     { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
4141 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
4142 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
4143   echo $ECHO_N "(cached) $ECHO_C" >&6
4144 else
4145     ac_pattern="Autoconf.*'x'"
4146   cat >conftest.$ac_ext <<_ACEOF
4147 /* confdefs.h.  */
4148 _ACEOF
4149 cat confdefs.h >>conftest.$ac_ext
4150 cat >>conftest.$ac_ext <<_ACEOF
4151 /* end confdefs.h.  */
4152 #include <sgtty.h>
4153 Autoconf TIOCGETP
4154 _ACEOF
4155 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4156   $EGREP "$ac_pattern" >/dev/null 2>&1; then
4157   ac_cv_prog_gcc_traditional=yes
4158 else
4159   ac_cv_prog_gcc_traditional=no
4160 fi
4161 rm -f conftest*
4162
4163
4164   if test $ac_cv_prog_gcc_traditional = no; then
4165     cat >conftest.$ac_ext <<_ACEOF
4166 /* confdefs.h.  */
4167 _ACEOF
4168 cat confdefs.h >>conftest.$ac_ext
4169 cat >>conftest.$ac_ext <<_ACEOF
4170 /* end confdefs.h.  */
4171 #include <termio.h>
4172 Autoconf TCGETA
4173 _ACEOF
4174 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4175   $EGREP "$ac_pattern" >/dev/null 2>&1; then
4176   ac_cv_prog_gcc_traditional=yes
4177 fi
4178 rm -f conftest*
4179
4180   fi
4181 fi
4182 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
4183 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
4184   if test $ac_cv_prog_gcc_traditional = yes; then
4185     CC="$CC -traditional"
4186   fi
4187 fi
4188
4189 BASECC=`basename $CC`
4190 have_gcc=no
4191 if test "x$BASECC" = xgcc; then
4192    cat >>confdefs.h <<\_ACEOF
4193 #define HAVE_GCC 1
4194 _ACEOF
4195
4196    have_gcc=yes
4197 fi
4198 # Extract the first word of "$CXX", so it can be a program name with args.
4199 set dummy $CXX; ac_word=$2
4200 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4201 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4202 if test "${ac_cv_path_CXX+set}" = set; then
4203   echo $ECHO_N "(cached) $ECHO_C" >&6
4204 else
4205   case $CXX in
4206   [\\/]* | ?:[\\/]*)
4207   ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
4208   ;;
4209   *)
4210   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4211 for as_dir in $PATH
4212 do
4213   IFS=$as_save_IFS
4214   test -z "$as_dir" && as_dir=.
4215   for ac_exec_ext in '' $ac_executable_extensions; do
4216   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4217     ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
4218     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4219     break 2
4220   fi
4221 done
4222 done
4223 IFS=$as_save_IFS
4224
4225   test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="$CXX"
4226   ;;
4227 esac
4228 fi
4229 CXX=$ac_cv_path_CXX
4230 if test -n "$CXX"; then
4231   { echo "$as_me:$LINENO: result: $CXX" >&5
4232 echo "${ECHO_T}$CXX" >&6; }
4233 else
4234   { echo "$as_me:$LINENO: result: no" >&5
4235 echo "${ECHO_T}no" >&6; }
4236 fi
4237
4238
4239 if test ! -e $CXX; then
4240    { { echo "$as_me:$LINENO: error: Unable to find C++ compiler" >&5
4241 echo "$as_me: error: Unable to find C++ compiler" >&2;}
4242    { (exit 1); exit 1; }; }
4243 fi
4244
4245 # Find a good install program.  We prefer a C program (faster),
4246 # so one script is as good as another.  But avoid the broken or
4247 # incompatible versions:
4248 # SysV /etc/install, /usr/sbin/install
4249 # SunOS /usr/etc/install
4250 # IRIX /sbin/install
4251 # AIX /bin/install
4252 # AmigaOS /C/install, which installs bootblocks on floppy discs
4253 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4254 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4255 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4256 # OS/2's system install, which has a completely different semantic
4257 # ./install, which can be erroneously created by make from ./install.sh.
4258 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4259 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4260 if test -z "$INSTALL"; then
4261 if test "${ac_cv_path_install+set}" = set; then
4262   echo $ECHO_N "(cached) $ECHO_C" >&6
4263 else
4264   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4265 for as_dir in $PATH
4266 do
4267   IFS=$as_save_IFS
4268   test -z "$as_dir" && as_dir=.
4269   # Account for people who put trailing slashes in PATH elements.
4270 case $as_dir/ in
4271   ./ | .// | /cC/* | \
4272   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4273   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4274   /usr/ucb/* ) ;;
4275   *)
4276     # OSF1 and SCO ODT 3.0 have their own names for install.
4277     # Don't use installbsd from OSF since it installs stuff as root
4278     # by default.
4279     for ac_prog in ginstall scoinst install; do
4280       for ac_exec_ext in '' $ac_executable_extensions; do
4281         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4282           if test $ac_prog = install &&
4283             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4284             # AIX install.  It has an incompatible calling convention.
4285             :
4286           elif test $ac_prog = install &&
4287             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4288             # program-specific install script used by HP pwplus--don't use.
4289             :
4290           else
4291             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4292             break 3
4293           fi
4294         fi
4295       done
4296     done
4297     ;;
4298 esac
4299 done
4300 IFS=$as_save_IFS
4301
4302
4303 fi
4304   if test "${ac_cv_path_install+set}" = set; then
4305     INSTALL=$ac_cv_path_install
4306   else
4307     # As a last resort, use the slow shell script.  Don't cache a
4308     # value for INSTALL within a source directory, because that will
4309     # break other packages using the cache if that directory is
4310     # removed, or if the value is a relative name.
4311     INSTALL=$ac_install_sh
4312   fi
4313 fi
4314 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4315 echo "${ECHO_T}$INSTALL" >&6; }
4316
4317 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4318 # It thinks the first close brace ends the variable substitution.
4319 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4320
4321 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4322
4323 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4324
4325 # Extract the first word of "mv", so it can be a program name with args.
4326 set dummy mv; ac_word=$2
4327 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4328 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4329 if test "${ac_cv_path_MV+set}" = set; then
4330   echo $ECHO_N "(cached) $ECHO_C" >&6
4331 else
4332   case $MV in
4333   [\\/]* | ?:[\\/]*)
4334   ac_cv_path_MV="$MV" # Let the user override the test with a path.
4335   ;;
4336   *)
4337   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4338 for as_dir in $PATH
4339 do
4340   IFS=$as_save_IFS
4341   test -z "$as_dir" && as_dir=.
4342   for ac_exec_ext in '' $ac_executable_extensions; do
4343   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4344     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4345     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4346     break 2
4347   fi
4348 done
4349 done
4350 IFS=$as_save_IFS
4351
4352   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4353   ;;
4354 esac
4355 fi
4356 MV=$ac_cv_path_MV
4357 if test -n "$MV"; then
4358   { echo "$as_me:$LINENO: result: $MV" >&5
4359 echo "${ECHO_T}$MV" >&6; }
4360 else
4361   { echo "$as_me:$LINENO: result: no" >&5
4362 echo "${ECHO_T}no" >&6; }
4363 fi
4364
4365
4366 # Extract the first word of "rm", so it can be a program name with args.
4367 set dummy rm; ac_word=$2
4368 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4369 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4370 if test "${ac_cv_path_REMOVE+set}" = set; then
4371   echo $ECHO_N "(cached) $ECHO_C" >&6
4372 else
4373   case $REMOVE in
4374   [\\/]* | ?:[\\/]*)
4375   ac_cv_path_REMOVE="$REMOVE" # Let the user override the test with a path.
4376   ;;
4377   *)
4378   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4379 for as_dir in $PATH
4380 do
4381   IFS=$as_save_IFS
4382   test -z "$as_dir" && as_dir=.
4383   for ac_exec_ext in '' $ac_executable_extensions; do
4384   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4385     ac_cv_path_REMOVE="$as_dir/$ac_word$ac_exec_ext"
4386     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4387     break 2
4388   fi
4389 done
4390 done
4391 IFS=$as_save_IFS
4392
4393   test -z "$ac_cv_path_REMOVE" && ac_cv_path_REMOVE="rm"
4394   ;;
4395 esac
4396 fi
4397 REMOVE=$ac_cv_path_REMOVE
4398 if test -n "$REMOVE"; then
4399   { echo "$as_me:$LINENO: result: $REMOVE" >&5
4400 echo "${ECHO_T}$REMOVE" >&6; }
4401 else
4402   { echo "$as_me:$LINENO: result: no" >&5
4403 echo "${ECHO_T}no" >&6; }
4404 fi
4405
4406
4407 # Extract the first word of "cp", so it can be a program name with args.
4408 set dummy cp; ac_word=$2
4409 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4410 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4411 if test "${ac_cv_path_CP+set}" = set; then
4412   echo $ECHO_N "(cached) $ECHO_C" >&6
4413 else
4414   case $CP in
4415   [\\/]* | ?:[\\/]*)
4416   ac_cv_path_CP="$CP" # Let the user override the test with a path.
4417   ;;
4418   *)
4419   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4420 for as_dir in $PATH
4421 do
4422   IFS=$as_save_IFS
4423   test -z "$as_dir" && as_dir=.
4424   for ac_exec_ext in '' $ac_executable_extensions; do
4425   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4426     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4427     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4428     break 2
4429   fi
4430 done
4431 done
4432 IFS=$as_save_IFS
4433
4434   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
4435   ;;
4436 esac
4437 fi
4438 CP=$ac_cv_path_CP
4439 if test -n "$CP"; then
4440   { echo "$as_me:$LINENO: result: $CP" >&5
4441 echo "${ECHO_T}$CP" >&6; }
4442 else
4443   { echo "$as_me:$LINENO: result: no" >&5
4444 echo "${ECHO_T}no" >&6; }
4445 fi
4446
4447
4448 # Extract the first word of "sed", so it can be a program name with args.
4449 set dummy sed; ac_word=$2
4450 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4451 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4452 if test "${ac_cv_path_SED+set}" = set; then
4453   echo $ECHO_N "(cached) $ECHO_C" >&6
4454 else
4455   case $SED in
4456   [\\/]* | ?:[\\/]*)
4457   ac_cv_path_SED="$SED" # Let the user override the test with a path.
4458   ;;
4459   *)
4460   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4461 for as_dir in $PATH
4462 do
4463   IFS=$as_save_IFS
4464   test -z "$as_dir" && as_dir=.
4465   for ac_exec_ext in '' $ac_executable_extensions; do
4466   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4467     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
4468     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4469     break 2
4470   fi
4471 done
4472 done
4473 IFS=$as_save_IFS
4474
4475   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
4476   ;;
4477 esac
4478 fi
4479 SED=$ac_cv_path_SED
4480 if test -n "$SED"; then
4481   { echo "$as_me:$LINENO: result: $SED" >&5
4482 echo "${ECHO_T}$SED" >&6; }
4483 else
4484   { echo "$as_me:$LINENO: result: no" >&5
4485 echo "${ECHO_T}no" >&6; }
4486 fi
4487
4488
4489 # Extract the first word of "echo", so it can be a program name with args.
4490 set dummy echo; ac_word=$2
4491 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4492 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4493 if test "${ac_cv_path_ECHO+set}" = set; then
4494   echo $ECHO_N "(cached) $ECHO_C" >&6
4495 else
4496   case $ECHO in
4497   [\\/]* | ?:[\\/]*)
4498   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
4499   ;;
4500   *)
4501   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4502 for as_dir in $PATH
4503 do
4504   IFS=$as_save_IFS
4505   test -z "$as_dir" && as_dir=.
4506   for ac_exec_ext in '' $ac_executable_extensions; do
4507   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4508     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
4509     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4510     break 2
4511   fi
4512 done
4513 done
4514 IFS=$as_save_IFS
4515
4516   test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
4517   ;;
4518 esac
4519 fi
4520 ECHO=$ac_cv_path_ECHO
4521 if test -n "$ECHO"; then
4522   { echo "$as_me:$LINENO: result: $ECHO" >&5
4523 echo "${ECHO_T}$ECHO" >&6; }
4524 else
4525   { echo "$as_me:$LINENO: result: no" >&5
4526 echo "${ECHO_T}no" >&6; }
4527 fi
4528
4529
4530 # Extract the first word of "cmp", so it can be a program name with args.
4531 set dummy cmp; ac_word=$2
4532 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4533 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4534 if test "${ac_cv_path_CMP+set}" = set; then
4535   echo $ECHO_N "(cached) $ECHO_C" >&6
4536 else
4537   case $CMP in
4538   [\\/]* | ?:[\\/]*)
4539   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
4540   ;;
4541   *)
4542   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4543 for as_dir in $PATH
4544 do
4545   IFS=$as_save_IFS
4546   test -z "$as_dir" && as_dir=.
4547   for ac_exec_ext in '' $ac_executable_extensions; do
4548   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4549     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
4550     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4551     break 2
4552   fi
4553 done
4554 done
4555 IFS=$as_save_IFS
4556
4557   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
4558   ;;
4559 esac
4560 fi
4561 CMP=$ac_cv_path_CMP
4562 if test -n "$CMP"; then
4563   { echo "$as_me:$LINENO: result: $CMP" >&5
4564 echo "${ECHO_T}$CMP" >&6; }
4565 else
4566   { echo "$as_me:$LINENO: result: no" >&5
4567 echo "${ECHO_T}no" >&6; }
4568 fi
4569
4570
4571 # Extract the first word of "tbl", so it can be a program name with args.
4572 set dummy tbl; ac_word=$2
4573 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4574 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4575 if test "${ac_cv_path_TBL+set}" = set; then
4576   echo $ECHO_N "(cached) $ECHO_C" >&6
4577 else
4578   case $TBL in
4579   [\\/]* | ?:[\\/]*)
4580   ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
4581   ;;
4582   *)
4583   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4584 for as_dir in $PATH
4585 do
4586   IFS=$as_save_IFS
4587   test -z "$as_dir" && as_dir=.
4588   for ac_exec_ext in '' $ac_executable_extensions; do
4589   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4590     ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
4591     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4592     break 2
4593   fi
4594 done
4595 done
4596 IFS=$as_save_IFS
4597
4598   test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
4599   ;;
4600 esac
4601 fi
4602 TBL=$ac_cv_path_TBL
4603 if test -n "$TBL"; then
4604   { echo "$as_me:$LINENO: result: $TBL" >&5
4605 echo "${ECHO_T}$TBL" >&6; }
4606 else
4607   { echo "$as_me:$LINENO: result: no" >&5
4608 echo "${ECHO_T}no" >&6; }
4609 fi
4610
4611
4612 # Extract the first word of "ar", so it can be a program name with args.
4613 set dummy ar; ac_word=$2
4614 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4615 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4616 if test "${ac_cv_path_AR+set}" = set; then
4617   echo $ECHO_N "(cached) $ECHO_C" >&6
4618 else
4619   case $AR in
4620   [\\/]* | ?:[\\/]*)
4621   ac_cv_path_AR="$AR" # Let the user override the test with a path.
4622   ;;
4623   *)
4624   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4625 for as_dir in $PATH
4626 do
4627   IFS=$as_save_IFS
4628   test -z "$as_dir" && as_dir=.
4629   for ac_exec_ext in '' $ac_executable_extensions; do
4630   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4631     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
4632     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4633     break 2
4634   fi
4635 done
4636 done
4637 IFS=$as_save_IFS
4638
4639   test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
4640   ;;
4641 esac
4642 fi
4643 AR=$ac_cv_path_AR
4644 if test -n "$AR"; then
4645   { echo "$as_me:$LINENO: result: $AR" >&5
4646 echo "${ECHO_T}$AR" >&6; }
4647 else
4648   { echo "$as_me:$LINENO: result: no" >&5
4649 echo "${ECHO_T}no" >&6; }
4650 fi
4651
4652
4653 # Extract the first word of "openssl", so it can be a program name with args.
4654 set dummy openssl; ac_word=$2
4655 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4656 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4657 if test "${ac_cv_path_OPENSSL+set}" = set; then
4658   echo $ECHO_N "(cached) $ECHO_C" >&6
4659 else
4660   case $OPENSSL in
4661   [\\/]* | ?:[\\/]*)
4662   ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
4663   ;;
4664   *)
4665   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4666 for as_dir in $PATH
4667 do
4668   IFS=$as_save_IFS
4669   test -z "$as_dir" && as_dir=.
4670   for ac_exec_ext in '' $ac_executable_extensions; do
4671   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4672     ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
4673     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4674     break 2
4675   fi
4676 done
4677 done
4678 IFS=$as_save_IFS
4679
4680   test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
4681   ;;
4682 esac
4683 fi
4684 OPENSSL=$ac_cv_path_OPENSSL
4685 if test -n "$OPENSSL"; then
4686   { echo "$as_me:$LINENO: result: $OPENSSL" >&5
4687 echo "${ECHO_T}$OPENSSL" >&6; }
4688 else
4689   { echo "$as_me:$LINENO: result: no" >&5
4690 echo "${ECHO_T}no" >&6; }
4691 fi
4692
4693
4694 # Extract the first word of "mtx", so it can be a program name with args.
4695 set dummy mtx; ac_word=$2
4696 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4697 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4698 if test "${ac_cv_path_MTX+set}" = set; then
4699   echo $ECHO_N "(cached) $ECHO_C" >&6
4700 else
4701   case $MTX in
4702   [\\/]* | ?:[\\/]*)
4703   ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
4704   ;;
4705   *)
4706   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4707 for as_dir in $PATH
4708 do
4709   IFS=$as_save_IFS
4710   test -z "$as_dir" && as_dir=.
4711   for ac_exec_ext in '' $ac_executable_extensions; do
4712   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4713     ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
4714     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4715     break 2
4716   fi
4717 done
4718 done
4719 IFS=$as_save_IFS
4720
4721   test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
4722   ;;
4723 esac
4724 fi
4725 MTX=$ac_cv_path_MTX
4726 if test -n "$MTX"; then
4727   { echo "$as_me:$LINENO: result: $MTX" >&5
4728 echo "${ECHO_T}$MTX" >&6; }
4729 else
4730   { echo "$as_me:$LINENO: result: no" >&5
4731 echo "${ECHO_T}no" >&6; }
4732 fi
4733
4734
4735 # Extract the first word of "dd", so it can be a program name with args.
4736 set dummy dd; ac_word=$2
4737 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4738 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4739 if test "${ac_cv_path_DD+set}" = set; then
4740   echo $ECHO_N "(cached) $ECHO_C" >&6
4741 else
4742   case $DD in
4743   [\\/]* | ?:[\\/]*)
4744   ac_cv_path_DD="$DD" # Let the user override the test with a path.
4745   ;;
4746   *)
4747   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4748 for as_dir in $PATH
4749 do
4750   IFS=$as_save_IFS
4751   test -z "$as_dir" && as_dir=.
4752   for ac_exec_ext in '' $ac_executable_extensions; do
4753   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4754     ac_cv_path_DD="$as_dir/$ac_word$ac_exec_ext"
4755     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4756     break 2
4757   fi
4758 done
4759 done
4760 IFS=$as_save_IFS
4761
4762   test -z "$ac_cv_path_DD" && ac_cv_path_DD="dd"
4763   ;;
4764 esac
4765 fi
4766 DD=$ac_cv_path_DD
4767 if test -n "$DD"; then
4768   { echo "$as_me:$LINENO: result: $DD" >&5
4769 echo "${ECHO_T}$DD" >&6; }
4770 else
4771   { echo "$as_me:$LINENO: result: no" >&5
4772 echo "${ECHO_T}no" >&6; }
4773 fi
4774
4775
4776 # Extract the first word of "mkisofs", so it can be a program name with args.
4777 set dummy mkisofs; ac_word=$2
4778 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4779 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4780 if test "${ac_cv_path_MKISOFS+set}" = set; then
4781   echo $ECHO_N "(cached) $ECHO_C" >&6
4782 else
4783   case $MKISOFS in
4784   [\\/]* | ?:[\\/]*)
4785   ac_cv_path_MKISOFS="$MKISOFS" # Let the user override the test with a path.
4786   ;;
4787   *)
4788   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4789 for as_dir in $PATH
4790 do
4791   IFS=$as_save_IFS
4792   test -z "$as_dir" && as_dir=.
4793   for ac_exec_ext in '' $ac_executable_extensions; do
4794   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4795     ac_cv_path_MKISOFS="$as_dir/$ac_word$ac_exec_ext"
4796     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4797     break 2
4798   fi
4799 done
4800 done
4801 IFS=$as_save_IFS
4802
4803   test -z "$ac_cv_path_MKISOFS" && ac_cv_path_MKISOFS="mkisofs"
4804   ;;
4805 esac
4806 fi
4807 MKISOFS=$ac_cv_path_MKISOFS
4808 if test -n "$MKISOFS"; then
4809   { echo "$as_me:$LINENO: result: $MKISOFS" >&5
4810 echo "${ECHO_T}$MKISOFS" >&6; }
4811 else
4812   { echo "$as_me:$LINENO: result: no" >&5
4813 echo "${ECHO_T}no" >&6; }
4814 fi
4815
4816
4817 # Extract the first word of "python", so it can be a program name with args.
4818 set dummy python; ac_word=$2
4819 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4820 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4821 if test "${ac_cv_path_PYTHON+set}" = set; then
4822   echo $ECHO_N "(cached) $ECHO_C" >&6
4823 else
4824   case $PYTHON in
4825   [\\/]* | ?:[\\/]*)
4826   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
4827   ;;
4828   *)
4829   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4830 for as_dir in $PATH
4831 do
4832   IFS=$as_save_IFS
4833   test -z "$as_dir" && as_dir=.
4834   for ac_exec_ext in '' $ac_executable_extensions; do
4835   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4836     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
4837     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4838     break 2
4839   fi
4840 done
4841 done
4842 IFS=$as_save_IFS
4843
4844   test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="python"
4845   ;;
4846 esac
4847 fi
4848 PYTHON=$ac_cv_path_PYTHON
4849 if test -n "$PYTHON"; then
4850   { echo "$as_me:$LINENO: result: $PYTHON" >&5
4851 echo "${ECHO_T}$PYTHON" >&6; }
4852 else
4853   { echo "$as_me:$LINENO: result: no" >&5
4854 echo "${ECHO_T}no" >&6; }
4855 fi
4856
4857
4858 # Extract the first word of "growisofs", so it can be a program name with args.
4859 set dummy growisofs; ac_word=$2
4860 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4861 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4862 if test "${ac_cv_path_GROWISOFS+set}" = set; then
4863   echo $ECHO_N "(cached) $ECHO_C" >&6
4864 else
4865   case $GROWISOFS in
4866   [\\/]* | ?:[\\/]*)
4867   ac_cv_path_GROWISOFS="$GROWISOFS" # Let the user override the test with a path.
4868   ;;
4869   *)
4870   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4871 for as_dir in $PATH
4872 do
4873   IFS=$as_save_IFS
4874   test -z "$as_dir" && as_dir=.
4875   for ac_exec_ext in '' $ac_executable_extensions; do
4876   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4877     ac_cv_path_GROWISOFS="$as_dir/$ac_word$ac_exec_ext"
4878     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4879     break 2
4880   fi
4881 done
4882 done
4883 IFS=$as_save_IFS
4884
4885   test -z "$ac_cv_path_GROWISOFS" && ac_cv_path_GROWISOFS="growisofs"
4886   ;;
4887 esac
4888 fi
4889 GROWISOFS=$ac_cv_path_GROWISOFS
4890 if test -n "$GROWISOFS"; then
4891   { echo "$as_me:$LINENO: result: $GROWISOFS" >&5
4892 echo "${ECHO_T}$GROWISOFS" >&6; }
4893 else
4894   { echo "$as_me:$LINENO: result: no" >&5
4895 echo "${ECHO_T}no" >&6; }
4896 fi
4897
4898
4899 # Extract the first word of "dvd+rw-mediainfo", so it can be a program name with args.
4900 set dummy dvd+rw-mediainfo; ac_word=$2
4901 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4902 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4903 if test "${ac_cv_path_DVDRWMEDIAINFO+set}" = set; then
4904   echo $ECHO_N "(cached) $ECHO_C" >&6
4905 else
4906   case $DVDRWMEDIAINFO in
4907   [\\/]* | ?:[\\/]*)
4908   ac_cv_path_DVDRWMEDIAINFO="$DVDRWMEDIAINFO" # Let the user override the test with a path.
4909   ;;
4910   *)
4911   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4912 for as_dir in $PATH
4913 do
4914   IFS=$as_save_IFS
4915   test -z "$as_dir" && as_dir=.
4916   for ac_exec_ext in '' $ac_executable_extensions; do
4917   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4918     ac_cv_path_DVDRWMEDIAINFO="$as_dir/$ac_word$ac_exec_ext"
4919     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4920     break 2
4921   fi
4922 done
4923 done
4924 IFS=$as_save_IFS
4925
4926   test -z "$ac_cv_path_DVDRWMEDIAINFO" && ac_cv_path_DVDRWMEDIAINFO="dvd+rw-mediainfo"
4927   ;;
4928 esac
4929 fi
4930 DVDRWMEDIAINFO=$ac_cv_path_DVDRWMEDIAINFO
4931 if test -n "$DVDRWMEDIAINFO"; then
4932   { echo "$as_me:$LINENO: result: $DVDRWMEDIAINFO" >&5
4933 echo "${ECHO_T}$DVDRWMEDIAINFO" >&6; }
4934 else
4935   { echo "$as_me:$LINENO: result: no" >&5
4936 echo "${ECHO_T}no" >&6; }
4937 fi
4938
4939
4940 # Extract the first word of "dvd+rw-format", so it can be a program name with args.
4941 set dummy dvd+rw-format; ac_word=$2
4942 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4943 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4944 if test "${ac_cv_path_DVDRWFORMAT+set}" = set; then
4945   echo $ECHO_N "(cached) $ECHO_C" >&6
4946 else
4947   case $DVDRWFORMAT in
4948   [\\/]* | ?:[\\/]*)
4949   ac_cv_path_DVDRWFORMAT="$DVDRWFORMAT" # Let the user override the test with a path.
4950   ;;
4951   *)
4952   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4953 for as_dir in $PATH
4954 do
4955   IFS=$as_save_IFS
4956   test -z "$as_dir" && as_dir=.
4957   for ac_exec_ext in '' $ac_executable_extensions; do
4958   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4959     ac_cv_path_DVDRWFORMAT="$as_dir/$ac_word$ac_exec_ext"
4960     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4961     break 2
4962   fi
4963 done
4964 done
4965 IFS=$as_save_IFS
4966
4967   test -z "$ac_cv_path_DVDRWFORMAT" && ac_cv_path_DVDRWFORMAT="dvd+rw-format"
4968   ;;
4969 esac
4970 fi
4971 DVDRWFORMAT=$ac_cv_path_DVDRWFORMAT
4972 if test -n "$DVDRWFORMAT"; then
4973   { echo "$as_me:$LINENO: result: $DVDRWFORMAT" >&5
4974 echo "${ECHO_T}$DVDRWFORMAT" >&6; }
4975 else
4976   { echo "$as_me:$LINENO: result: no" >&5
4977 echo "${ECHO_T}no" >&6; }
4978 fi
4979
4980
4981 # Extract the first word of "pkg-config", so it can be a program name with args.
4982 set dummy pkg-config; ac_word=$2
4983 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4984 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4985 if test "${ac_cv_path_PKGCONFIG+set}" = set; then
4986   echo $ECHO_N "(cached) $ECHO_C" >&6
4987 else
4988   case $PKGCONFIG in
4989   [\\/]* | ?:[\\/]*)
4990   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
4991   ;;
4992   *)
4993   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4994 for as_dir in $PATH
4995 do
4996   IFS=$as_save_IFS
4997   test -z "$as_dir" && as_dir=.
4998   for ac_exec_ext in '' $ac_executable_extensions; do
4999   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5000     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
5001     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5002     break 2
5003   fi
5004 done
5005 done
5006 IFS=$as_save_IFS
5007
5008   test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
5009   ;;
5010 esac
5011 fi
5012 PKGCONFIG=$ac_cv_path_PKGCONFIG
5013 if test -n "$PKGCONFIG"; then
5014   { echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
5015 echo "${ECHO_T}$PKGCONFIG" >&6; }
5016 else
5017   { echo "$as_me:$LINENO: result: no" >&5
5018 echo "${ECHO_T}no" >&6; }
5019 fi
5020
5021
5022 # Extract the first word of "qmake", so it can be a program name with args.
5023 set dummy qmake; ac_word=$2
5024 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5025 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5026 if test "${ac_cv_path_QMAKE+set}" = set; then
5027   echo $ECHO_N "(cached) $ECHO_C" >&6
5028 else
5029   case $QMAKE in
5030   [\\/]* | ?:[\\/]*)
5031   ac_cv_path_QMAKE="$QMAKE" # Let the user override the test with a path.
5032   ;;
5033   *)
5034   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5035 for as_dir in $PATH
5036 do
5037   IFS=$as_save_IFS
5038   test -z "$as_dir" && as_dir=.
5039   for ac_exec_ext in '' $ac_executable_extensions; do
5040   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5041     ac_cv_path_QMAKE="$as_dir/$ac_word$ac_exec_ext"
5042     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5043     break 2
5044   fi
5045 done
5046 done
5047 IFS=$as_save_IFS
5048
5049   test -z "$ac_cv_path_QMAKE" && ac_cv_path_QMAKE="none"
5050   ;;
5051 esac
5052 fi
5053 QMAKE=$ac_cv_path_QMAKE
5054 if test -n "$QMAKE"; then
5055   { echo "$as_me:$LINENO: result: $QMAKE" >&5
5056 echo "${ECHO_T}$QMAKE" >&6; }
5057 else
5058   { echo "$as_me:$LINENO: result: no" >&5
5059 echo "${ECHO_T}no" >&6; }
5060 fi
5061
5062
5063 # Extract the first word of "qmake-qt4", so it can be a program name with args.
5064 set dummy qmake-qt4; ac_word=$2
5065 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5066 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5067 if test "${ac_cv_path_QMAKEQT4+set}" = set; then
5068   echo $ECHO_N "(cached) $ECHO_C" >&6
5069 else
5070   case $QMAKEQT4 in
5071   [\\/]* | ?:[\\/]*)
5072   ac_cv_path_QMAKEQT4="$QMAKEQT4" # Let the user override the test with a path.
5073   ;;
5074   *)
5075   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5076 for as_dir in $PATH
5077 do
5078   IFS=$as_save_IFS
5079   test -z "$as_dir" && as_dir=.
5080   for ac_exec_ext in '' $ac_executable_extensions; do
5081   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5082     ac_cv_path_QMAKEQT4="$as_dir/$ac_word$ac_exec_ext"
5083     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5084     break 2
5085   fi
5086 done
5087 done
5088 IFS=$as_save_IFS
5089
5090   test -z "$ac_cv_path_QMAKEQT4" && ac_cv_path_QMAKEQT4="none"
5091   ;;
5092 esac
5093 fi
5094 QMAKEQT4=$ac_cv_path_QMAKEQT4
5095 if test -n "$QMAKEQT4"; then
5096   { echo "$as_me:$LINENO: result: $QMAKEQT4" >&5
5097 echo "${ECHO_T}$QMAKEQT4" >&6; }
5098 else
5099   { echo "$as_me:$LINENO: result: no" >&5
5100 echo "${ECHO_T}no" >&6; }
5101 fi
5102
5103
5104 # Extract the first word of "gmake", so it can be a program name with args.
5105 set dummy gmake; ac_word=$2
5106 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5107 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5108 if test "${ac_cv_path_GMAKE+set}" = set; then
5109   echo $ECHO_N "(cached) $ECHO_C" >&6
5110 else
5111   case $GMAKE in
5112   [\\/]* | ?:[\\/]*)
5113   ac_cv_path_GMAKE="$GMAKE" # Let the user override the test with a path.
5114   ;;
5115   *)
5116   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5117 for as_dir in $PATH
5118 do
5119   IFS=$as_save_IFS
5120   test -z "$as_dir" && as_dir=.
5121   for ac_exec_ext in '' $ac_executable_extensions; do
5122   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5123     ac_cv_path_GMAKE="$as_dir/$ac_word$ac_exec_ext"
5124     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5125     break 2
5126   fi
5127 done
5128 done
5129 IFS=$as_save_IFS
5130
5131   test -z "$ac_cv_path_GMAKE" && ac_cv_path_GMAKE="none"
5132   ;;
5133 esac
5134 fi
5135 GMAKE=$ac_cv_path_GMAKE
5136 if test -n "$GMAKE"; then
5137   { echo "$as_me:$LINENO: result: $GMAKE" >&5
5138 echo "${ECHO_T}$GMAKE" >&6; }
5139 else
5140   { echo "$as_me:$LINENO: result: no" >&5
5141 echo "${ECHO_T}no" >&6; }
5142 fi
5143
5144
5145
5146 if test "x$WXCONFIG" = x; then
5147    WXCONFIG=wx-config
5148 fi
5149 # Extract the first word of "${WXCONFIG}", so it can be a program name with args.
5150 set dummy ${WXCONFIG}; ac_word=$2
5151 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5152 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5153 if test "${ac_cv_path_WXCONFIG+set}" = set; then
5154   echo $ECHO_N "(cached) $ECHO_C" >&6
5155 else
5156   case $WXCONFIG in
5157   [\\/]* | ?:[\\/]*)
5158   ac_cv_path_WXCONFIG="$WXCONFIG" # Let the user override the test with a path.
5159   ;;
5160   *)
5161   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5162 for as_dir in $PATH
5163 do
5164   IFS=$as_save_IFS
5165   test -z "$as_dir" && as_dir=.
5166   for ac_exec_ext in '' $ac_executable_extensions; do
5167   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5168     ac_cv_path_WXCONFIG="$as_dir/$ac_word$ac_exec_ext"
5169     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5170     break 2
5171   fi
5172 done
5173 done
5174 IFS=$as_save_IFS
5175
5176   test -z "$ac_cv_path_WXCONFIG" && ac_cv_path_WXCONFIG="${WXCONFIG}"
5177   ;;
5178 esac
5179 fi
5180 WXCONFIG=$ac_cv_path_WXCONFIG
5181 if test -n "$WXCONFIG"; then
5182   { echo "$as_me:$LINENO: result: $WXCONFIG" >&5
5183 echo "${ECHO_T}$WXCONFIG" >&6; }
5184 else
5185   { echo "$as_me:$LINENO: result: no" >&5
5186 echo "${ECHO_T}no" >&6; }
5187 fi
5188
5189
5190
5191 # Extract the first word of "cdrecord", so it can be a program name with args.
5192 set dummy cdrecord; ac_word=$2
5193 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5194 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5195 if test "${ac_cv_path_CDRECORD+set}" = set; then
5196   echo $ECHO_N "(cached) $ECHO_C" >&6
5197 else
5198   case $CDRECORD in
5199   [\\/]* | ?:[\\/]*)
5200   ac_cv_path_CDRECORD="$CDRECORD" # Let the user override the test with a path.
5201   ;;
5202   *)
5203   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5204 for as_dir in $PATH
5205 do
5206   IFS=$as_save_IFS
5207   test -z "$as_dir" && as_dir=.
5208   for ac_exec_ext in '' $ac_executable_extensions; do
5209   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5210     ac_cv_path_CDRECORD="$as_dir/$ac_word$ac_exec_ext"
5211     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5212     break 2
5213   fi
5214 done
5215 done
5216 IFS=$as_save_IFS
5217
5218   test -z "$ac_cv_path_CDRECORD" && ac_cv_path_CDRECORD="cdrecord"
5219   ;;
5220 esac
5221 fi
5222 CDRECORD=$ac_cv_path_CDRECORD
5223 if test -n "$CDRECORD"; then
5224   { echo "$as_me:$LINENO: result: $CDRECORD" >&5
5225 echo "${ECHO_T}$CDRECORD" >&6; }
5226 else
5227   { echo "$as_me:$LINENO: result: no" >&5
5228 echo "${ECHO_T}no" >&6; }
5229 fi
5230
5231
5232 # Extract the first word of "pidof", so it can be a program name with args.
5233 set dummy pidof; ac_word=$2
5234 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5235 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5236 if test "${ac_cv_path_PIDOF+set}" = set; then
5237   echo $ECHO_N "(cached) $ECHO_C" >&6
5238 else
5239   case $PIDOF in
5240   [\\/]* | ?:[\\/]*)
5241   ac_cv_path_PIDOF="$PIDOF" # Let the user override the test with a path.
5242   ;;
5243   *)
5244   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5245 for as_dir in $PATH
5246 do
5247   IFS=$as_save_IFS
5248   test -z "$as_dir" && as_dir=.
5249   for ac_exec_ext in '' $ac_executable_extensions; do
5250   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5251     ac_cv_path_PIDOF="$as_dir/$ac_word$ac_exec_ext"
5252     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5253     break 2
5254   fi
5255 done
5256 done
5257 IFS=$as_save_IFS
5258
5259   test -z "$ac_cv_path_PIDOF" && ac_cv_path_PIDOF="pidof"
5260   ;;
5261 esac
5262 fi
5263 PIDOF=$ac_cv_path_PIDOF
5264 if test -n "$PIDOF"; then
5265   { echo "$as_me:$LINENO: result: $PIDOF" >&5
5266 echo "${ECHO_T}$PIDOF" >&6; }
5267 else
5268   { echo "$as_me:$LINENO: result: no" >&5
5269 echo "${ECHO_T}no" >&6; }
5270 fi
5271
5272
5273 for ac_prog in gawk mawk nawk awk
5274 do
5275   # Extract the first word of "$ac_prog", so it can be a program name with args.
5276 set dummy $ac_prog; ac_word=$2
5277 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5278 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5279 if test "${ac_cv_prog_AWK+set}" = set; then
5280   echo $ECHO_N "(cached) $ECHO_C" >&6
5281 else
5282   if test -n "$AWK"; then
5283   ac_cv_prog_AWK="$AWK" # Let the user override the test.
5284 else
5285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5286 for as_dir in $PATH
5287 do
5288   IFS=$as_save_IFS
5289   test -z "$as_dir" && as_dir=.
5290   for ac_exec_ext in '' $ac_executable_extensions; do
5291   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5292     ac_cv_prog_AWK="$ac_prog"
5293     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5294     break 2
5295   fi
5296 done
5297 done
5298 IFS=$as_save_IFS
5299
5300 fi
5301 fi
5302 AWK=$ac_cv_prog_AWK
5303 if test -n "$AWK"; then
5304   { echo "$as_me:$LINENO: result: $AWK" >&5
5305 echo "${ECHO_T}$AWK" >&6; }
5306 else
5307   { echo "$as_me:$LINENO: result: no" >&5
5308 echo "${ECHO_T}no" >&6; }
5309 fi
5310
5311
5312   test -n "$AWK" && break
5313 done
5314
5315 # Some AWK programs fail, so test it and warn the user
5316 if echo xfoo | $AWK 'BEGIN { prog=ARGV1; ARGC=1 }
5317       { if ((prog == $2) || (("(" prog ")") == $2) ||
5318       (("" prog "") == $2) ||
5319       ((prog ":") == $2)) { print $1 ; exit 0 } }' xfoo>/dev/null; then :;
5320 else
5321   { { echo "$as_me:$LINENO: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
5322    The regex engine of $AWK is too broken to be used you
5323    might want to install GNU AWK.
5324    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&5
5325 echo "$as_me: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
5326    The regex engine of $AWK is too broken to be used you
5327    might want to install GNU AWK.
5328    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&2;}
5329    { (exit 1); exit 1; }; }
5330 fi
5331 THE_AWK=$AWK
5332 # Extract the first word of "$THE_AWK", so it can be a program name with args.
5333 set dummy $THE_AWK; ac_word=$2
5334 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5335 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5336 if test "${ac_cv_path_AWK+set}" = set; then
5337   echo $ECHO_N "(cached) $ECHO_C" >&6
5338 else
5339   case $AWK in
5340   [\\/]* | ?:[\\/]*)
5341   ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
5342   ;;
5343   *)
5344   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5345 for as_dir in $PATH
5346 do
5347   IFS=$as_save_IFS
5348   test -z "$as_dir" && as_dir=.
5349   for ac_exec_ext in '' $ac_executable_extensions; do
5350   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5351     ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
5352     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5353     break 2
5354   fi
5355 done
5356 done
5357 IFS=$as_save_IFS
5358
5359   test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="$THE_AWK"
5360   ;;
5361 esac
5362 fi
5363 AWK=$ac_cv_path_AWK
5364 if test -n "$AWK"; then
5365   { echo "$as_me:$LINENO: result: $AWK" >&5
5366 echo "${ECHO_T}$AWK" >&6; }
5367 else
5368   { echo "$as_me:$LINENO: result: no" >&5
5369 echo "${ECHO_T}no" >&6; }
5370 fi
5371
5372
5373
5374
5375 test -n "$ARFLAG" || ARFLAGS="cr"
5376
5377
5378 MAKE_SHELL=/bin/sh
5379
5380
5381
5382
5383
5384
5385
5386 # Check whether --enable-libtool was given.
5387 if test "${enable_libtool+set}" = set; then
5388   enableval=$enable_libtool;
5389        if test x$enableval = xno; then
5390           use_libtool=no
5391        fi
5392
5393
5394 fi
5395
5396 case `pwd` in
5397   *\ * | *\     *)
5398     { echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5399 echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5400 esac
5401
5402
5403
5404 macro_version='2.2.6'
5405 macro_revision='1.3012'
5406
5407
5408
5409
5410
5411
5412
5413
5414
5415
5416
5417
5418
5419 ltmain="$ac_aux_dir/ltmain.sh"
5420
5421 # Make sure we can run config.sub.
5422 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5423   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
5424 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
5425    { (exit 1); exit 1; }; }
5426
5427 { echo "$as_me:$LINENO: checking build system type" >&5
5428 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
5429 if test "${ac_cv_build+set}" = set; then
5430   echo $ECHO_N "(cached) $ECHO_C" >&6
5431 else
5432   ac_build_alias=$build_alias
5433 test "x$ac_build_alias" = x &&
5434   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5435 test "x$ac_build_alias" = x &&
5436   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
5437 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
5438    { (exit 1); exit 1; }; }
5439 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5440   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
5441 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
5442    { (exit 1); exit 1; }; }
5443
5444 fi
5445 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
5446 echo "${ECHO_T}$ac_cv_build" >&6; }
5447 case $ac_cv_build in
5448 *-*-*) ;;
5449 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
5450 echo "$as_me: error: invalid value of canonical build" >&2;}
5451    { (exit 1); exit 1; }; };;
5452 esac
5453 build=$ac_cv_build
5454 ac_save_IFS=$IFS; IFS='-'
5455 set x $ac_cv_build
5456 shift
5457 build_cpu=$1
5458 build_vendor=$2
5459 shift; shift
5460 # Remember, the first character of IFS is used to create $*,
5461 # except with old shells:
5462 build_os=$*
5463 IFS=$ac_save_IFS
5464 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5465
5466
5467 { echo "$as_me:$LINENO: checking host system type" >&5
5468 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
5469 if test "${ac_cv_host+set}" = set; then
5470   echo $ECHO_N "(cached) $ECHO_C" >&6
5471 else
5472   if test "x$host_alias" = x; then
5473   ac_cv_host=$ac_cv_build
5474 else
5475   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5476     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
5477 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
5478    { (exit 1); exit 1; }; }
5479 fi
5480
5481 fi
5482 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5483 echo "${ECHO_T}$ac_cv_host" >&6; }
5484 case $ac_cv_host in
5485 *-*-*) ;;
5486 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
5487 echo "$as_me: error: invalid value of canonical host" >&2;}
5488    { (exit 1); exit 1; }; };;
5489 esac
5490 host=$ac_cv_host
5491 ac_save_IFS=$IFS; IFS='-'
5492 set x $ac_cv_host
5493 shift
5494 host_cpu=$1
5495 host_vendor=$2
5496 shift; shift
5497 # Remember, the first character of IFS is used to create $*,
5498 # except with old shells:
5499 host_os=$*
5500 IFS=$ac_save_IFS
5501 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5502
5503
5504 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5505 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
5506 if test "${ac_cv_path_SED+set}" = set; then
5507   echo $ECHO_N "(cached) $ECHO_C" >&6
5508 else
5509             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5510      for ac_i in 1 2 3 4 5 6 7; do
5511        ac_script="$ac_script$as_nl$ac_script"
5512      done
5513      echo "$ac_script" | sed 99q >conftest.sed
5514      $as_unset ac_script || ac_script=
5515      # Extract the first word of "sed gsed" to use in msg output
5516 if test -z "$SED"; then
5517 set dummy sed gsed; ac_prog_name=$2
5518 if test "${ac_cv_path_SED+set}" = set; then
5519   echo $ECHO_N "(cached) $ECHO_C" >&6
5520 else
5521   ac_path_SED_found=false
5522 # Loop through the user's path and test for each of PROGNAME-LIST
5523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5524 for as_dir in $PATH
5525 do
5526   IFS=$as_save_IFS
5527   test -z "$as_dir" && as_dir=.
5528   for ac_prog in sed gsed; do
5529   for ac_exec_ext in '' $ac_executable_extensions; do
5530     ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5531     { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5532     # Check for GNU ac_path_SED and select it if it is found.
5533   # Check for GNU $ac_path_SED
5534 case `"$ac_path_SED" --version 2>&1` in
5535 *GNU*)
5536   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5537 *)
5538   ac_count=0
5539   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5540   while :
5541   do
5542     cat "conftest.in" "conftest.in" >"conftest.tmp"
5543     mv "conftest.tmp" "conftest.in"
5544     cp "conftest.in" "conftest.nl"
5545     echo '' >> "conftest.nl"
5546     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5547     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5548     ac_count=`expr $ac_count + 1`
5549     if test $ac_count -gt ${ac_path_SED_max-0}; then
5550       # Best one so far, save it but keep looking for a better one
5551       ac_cv_path_SED="$ac_path_SED"
5552       ac_path_SED_max=$ac_count
5553     fi
5554     # 10*(2^10) chars as input seems more than enough
5555     test $ac_count -gt 10 && break
5556   done
5557   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5558 esac
5559
5560
5561     $ac_path_SED_found && break 3
5562   done
5563 done
5564
5565 done
5566 IFS=$as_save_IFS
5567
5568
5569 fi
5570
5571 SED="$ac_cv_path_SED"
5572 if test -z "$SED"; then
5573   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in \$PATH" >&5
5574 echo "$as_me: error: no acceptable $ac_prog_name could be found in \$PATH" >&2;}
5575    { (exit 1); exit 1; }; }
5576 fi
5577
5578 else
5579   ac_cv_path_SED=$SED
5580 fi
5581
5582 fi
5583 { echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
5584 echo "${ECHO_T}$ac_cv_path_SED" >&6; }
5585  SED="$ac_cv_path_SED"
5586   rm -f conftest.sed
5587
5588 test -z "$SED" && SED=sed
5589 Xsed="$SED -e 1s/^X//"
5590
5591
5592
5593
5594
5595
5596
5597
5598
5599
5600
5601 { echo "$as_me:$LINENO: checking for fgrep" >&5
5602 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6; }
5603 if test "${ac_cv_path_FGREP+set}" = set; then
5604   echo $ECHO_N "(cached) $ECHO_C" >&6
5605 else
5606   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5607    then ac_cv_path_FGREP="$GREP -F"
5608    else
5609      # Extract the first word of "fgrep" to use in msg output
5610 if test -z "$FGREP"; then
5611 set dummy fgrep; ac_prog_name=$2
5612 if test "${ac_cv_path_FGREP+set}" = set; then
5613   echo $ECHO_N "(cached) $ECHO_C" >&6
5614 else
5615   ac_path_FGREP_found=false
5616 # Loop through the user's path and test for each of PROGNAME-LIST
5617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5618 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5619 do
5620   IFS=$as_save_IFS
5621   test -z "$as_dir" && as_dir=.
5622   for ac_prog in fgrep; do
5623   for ac_exec_ext in '' $ac_executable_extensions; do
5624     ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5625     { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5626     # Check for GNU ac_path_FGREP and select it if it is found.
5627   # Check for GNU $ac_path_FGREP
5628 case `"$ac_path_FGREP" --version 2>&1` in
5629 *GNU*)
5630   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5631 *)
5632   ac_count=0
5633   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5634   while :
5635   do
5636     cat "conftest.in" "conftest.in" >"conftest.tmp"
5637     mv "conftest.tmp" "conftest.in"
5638     cp "conftest.in" "conftest.nl"
5639     echo 'FGREP' >> "conftest.nl"
5640     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5641     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5642     ac_count=`expr $ac_count + 1`
5643     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5644       # Best one so far, save it but keep looking for a better one
5645       ac_cv_path_FGREP="$ac_path_FGREP"
5646       ac_path_FGREP_max=$ac_count
5647     fi
5648     # 10*(2^10) chars as input seems more than enough
5649     test $ac_count -gt 10 && break
5650   done
5651   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5652 esac
5653
5654
5655     $ac_path_FGREP_found && break 3
5656   done
5657 done
5658
5659 done
5660 IFS=$as_save_IFS
5661
5662
5663 fi
5664
5665 FGREP="$ac_cv_path_FGREP"
5666 if test -z "$FGREP"; then
5667   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5668 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5669    { (exit 1); exit 1; }; }
5670 fi
5671
5672 else
5673   ac_cv_path_FGREP=$FGREP
5674 fi
5675
5676
5677    fi
5678 fi
5679 { echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
5680 echo "${ECHO_T}$ac_cv_path_FGREP" >&6; }
5681  FGREP="$ac_cv_path_FGREP"
5682
5683
5684 test -z "$GREP" && GREP=grep
5685
5686
5687
5688
5689
5690
5691
5692
5693
5694
5695
5696
5697
5698
5699
5700
5701
5702
5703
5704 # Check whether --with-gnu-ld was given.
5705 if test "${with_gnu_ld+set}" = set; then
5706   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5707 else
5708   with_gnu_ld=no
5709 fi
5710
5711 ac_prog=ld
5712 if test "$GCC" = yes; then
5713   # Check if gcc -print-prog-name=ld gives a path.
5714   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5715 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
5716   case $host in
5717   *-*-mingw*)
5718     # gcc leaves a trailing carriage return which upsets mingw
5719     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5720   *)
5721     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5722   esac
5723   case $ac_prog in
5724     # Accept absolute paths.
5725     [\\/]* | ?:[\\/]*)
5726       re_direlt='/[^/][^/]*/\.\./'
5727       # Canonicalize the pathname of ld
5728       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5729       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5730         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5731       done
5732       test -z "$LD" && LD="$ac_prog"
5733       ;;
5734   "")
5735     # If it fails, then pretend we aren't using GCC.
5736     ac_prog=ld
5737     ;;
5738   *)
5739     # If it is relative, then search for the first ld in PATH.
5740     with_gnu_ld=unknown
5741     ;;
5742   esac
5743 elif test "$with_gnu_ld" = yes; then
5744   { echo "$as_me:$LINENO: checking for GNU ld" >&5
5745 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
5746 else
5747   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5748 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
5749 fi
5750 if test "${lt_cv_path_LD+set}" = set; then
5751   echo $ECHO_N "(cached) $ECHO_C" >&6
5752 else
5753   if test -z "$LD"; then
5754   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5755   for ac_dir in $PATH; do
5756     IFS="$lt_save_ifs"
5757     test -z "$ac_dir" && ac_dir=.
5758     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5759       lt_cv_path_LD="$ac_dir/$ac_prog"
5760       # Check to see if the program is GNU ld.  I'd rather use --version,
5761       # but apparently some variants of GNU ld only accept -v.
5762       # Break only if it was the GNU/non-GNU ld that we prefer.
5763       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5764       *GNU* | *'with BFD'*)
5765         test "$with_gnu_ld" != no && break
5766         ;;
5767       *)
5768         test "$with_gnu_ld" != yes && break
5769         ;;
5770       esac
5771     fi
5772   done
5773   IFS="$lt_save_ifs"
5774 else
5775   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5776 fi
5777 fi
5778
5779 LD="$lt_cv_path_LD"
5780 if test -n "$LD"; then
5781   { echo "$as_me:$LINENO: result: $LD" >&5
5782 echo "${ECHO_T}$LD" >&6; }
5783 else
5784   { echo "$as_me:$LINENO: result: no" >&5
5785 echo "${ECHO_T}no" >&6; }
5786 fi
5787 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5788 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5789    { (exit 1); exit 1; }; }
5790 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5791 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
5792 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5793   echo $ECHO_N "(cached) $ECHO_C" >&6
5794 else
5795   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5796 case `$LD -v 2>&1 </dev/null` in
5797 *GNU* | *'with BFD'*)
5798   lt_cv_prog_gnu_ld=yes
5799   ;;
5800 *)
5801   lt_cv_prog_gnu_ld=no
5802   ;;
5803 esac
5804 fi
5805 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5806 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
5807 with_gnu_ld=$lt_cv_prog_gnu_ld
5808
5809
5810
5811
5812
5813
5814
5815
5816
5817 { echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
5818 echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6; }
5819 if test "${lt_cv_path_NM+set}" = set; then
5820   echo $ECHO_N "(cached) $ECHO_C" >&6
5821 else
5822   if test -n "$NM"; then
5823   # Let the user override the test.
5824   lt_cv_path_NM="$NM"
5825 else
5826   lt_nm_to_check="${ac_tool_prefix}nm"
5827   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5828     lt_nm_to_check="$lt_nm_to_check nm"
5829   fi
5830   for lt_tmp_nm in $lt_nm_to_check; do
5831     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5832     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5833       IFS="$lt_save_ifs"
5834       test -z "$ac_dir" && ac_dir=.
5835       tmp_nm="$ac_dir/$lt_tmp_nm"
5836       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5837         # Check to see if the nm accepts a BSD-compat flag.
5838         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5839         #   nm: unknown option "B" ignored
5840         # Tru64's nm complains that /dev/null is an invalid object file
5841         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5842         */dev/null* | *'Invalid file or object type'*)
5843           lt_cv_path_NM="$tmp_nm -B"
5844           break
5845           ;;
5846         *)
5847           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5848           */dev/null*)
5849             lt_cv_path_NM="$tmp_nm -p"
5850             break
5851             ;;
5852           *)
5853             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5854             continue # so that we can try to find one that supports BSD flags
5855             ;;
5856           esac
5857           ;;
5858         esac
5859       fi
5860     done
5861     IFS="$lt_save_ifs"
5862   done
5863   : ${lt_cv_path_NM=no}
5864 fi
5865 fi
5866 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5867 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5868 if test "$lt_cv_path_NM" != "no"; then
5869   NM="$lt_cv_path_NM"
5870 else
5871   # Didn't find any BSD compatible name lister, look for dumpbin.
5872   if test -n "$ac_tool_prefix"; then
5873   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5874   do
5875     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5876 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5877 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5878 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5879 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
5880   echo $ECHO_N "(cached) $ECHO_C" >&6
5881 else
5882   if test -n "$DUMPBIN"; then
5883   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5884 else
5885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5886 for as_dir in $PATH
5887 do
5888   IFS=$as_save_IFS
5889   test -z "$as_dir" && as_dir=.
5890   for ac_exec_ext in '' $ac_executable_extensions; do
5891   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5892     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5893     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5894     break 2
5895   fi
5896 done
5897 done
5898 IFS=$as_save_IFS
5899
5900 fi
5901 fi
5902 DUMPBIN=$ac_cv_prog_DUMPBIN
5903 if test -n "$DUMPBIN"; then
5904   { echo "$as_me:$LINENO: result: $DUMPBIN" >&5
5905 echo "${ECHO_T}$DUMPBIN" >&6; }
5906 else
5907   { echo "$as_me:$LINENO: result: no" >&5
5908 echo "${ECHO_T}no" >&6; }
5909 fi
5910
5911
5912     test -n "$DUMPBIN" && break
5913   done
5914 fi
5915 if test -z "$DUMPBIN"; then
5916   ac_ct_DUMPBIN=$DUMPBIN
5917   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5918 do
5919   # Extract the first word of "$ac_prog", so it can be a program name with args.
5920 set dummy $ac_prog; ac_word=$2
5921 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5922 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5923 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
5924   echo $ECHO_N "(cached) $ECHO_C" >&6
5925 else
5926   if test -n "$ac_ct_DUMPBIN"; then
5927   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5928 else
5929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5930 for as_dir in $PATH
5931 do
5932   IFS=$as_save_IFS
5933   test -z "$as_dir" && as_dir=.
5934   for ac_exec_ext in '' $ac_executable_extensions; do
5935   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5936     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5937     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5938     break 2
5939   fi
5940 done
5941 done
5942 IFS=$as_save_IFS
5943
5944 fi
5945 fi
5946 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5947 if test -n "$ac_ct_DUMPBIN"; then
5948   { echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
5949 echo "${ECHO_T}$ac_ct_DUMPBIN" >&6; }
5950 else
5951   { echo "$as_me:$LINENO: result: no" >&5
5952 echo "${ECHO_T}no" >&6; }
5953 fi
5954
5955
5956   test -n "$ac_ct_DUMPBIN" && break
5957 done
5958
5959   if test "x$ac_ct_DUMPBIN" = x; then
5960     DUMPBIN=":"
5961   else
5962     case $cross_compiling:$ac_tool_warned in
5963 yes:)
5964 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5965 whose name does not start with the host triplet.  If you think this
5966 configuration is useful to you, please write to autoconf@gnu.org." >&5
5967 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5968 whose name does not start with the host triplet.  If you think this
5969 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5970 ac_tool_warned=yes ;;
5971 esac
5972     DUMPBIN=$ac_ct_DUMPBIN
5973   fi
5974 fi
5975
5976
5977   if test "$DUMPBIN" != ":"; then
5978     NM="$DUMPBIN"
5979   fi
5980 fi
5981 test -z "$NM" && NM=nm
5982
5983
5984
5985
5986
5987
5988 { echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
5989 echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6; }
5990 if test "${lt_cv_nm_interface+set}" = set; then
5991   echo $ECHO_N "(cached) $ECHO_C" >&6
5992 else
5993   lt_cv_nm_interface="BSD nm"
5994   echo "int some_variable = 0;" > conftest.$ac_ext
5995   (eval echo "\"\$as_me:5995: $ac_compile\"" >&5)
5996   (eval "$ac_compile" 2>conftest.err)
5997   cat conftest.err >&5
5998   (eval echo "\"\$as_me:5998: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5999   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6000   cat conftest.err >&5
6001   (eval echo "\"\$as_me:6001: output\"" >&5)
6002   cat conftest.out >&5
6003   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6004     lt_cv_nm_interface="MS dumpbin"
6005   fi
6006   rm -f conftest*
6007 fi
6008 { echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
6009 echo "${ECHO_T}$lt_cv_nm_interface" >&6; }
6010
6011 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6012 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6013 LN_S=$as_ln_s
6014 if test "$LN_S" = "ln -s"; then
6015   { echo "$as_me:$LINENO: result: yes" >&5
6016 echo "${ECHO_T}yes" >&6; }
6017 else
6018   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6019 echo "${ECHO_T}no, using $LN_S" >&6; }
6020 fi
6021
6022 # find the maximum length of command line arguments
6023 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6024 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6025 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6026   echo $ECHO_N "(cached) $ECHO_C" >&6
6027 else
6028     i=0
6029   teststring="ABCD"
6030
6031   case $build_os in
6032   msdosdjgpp*)
6033     # On DJGPP, this test can blow up pretty badly due to problems in libc
6034     # (any single argument exceeding 2000 bytes causes a buffer overrun
6035     # during glob expansion).  Even if it were fixed, the result of this
6036     # check would be larger than it should be.
6037     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6038     ;;
6039
6040   gnu*)
6041     # Under GNU Hurd, this test is not required because there is
6042     # no limit to the length of command line arguments.
6043     # Libtool will interpret -1 as no limit whatsoever
6044     lt_cv_sys_max_cmd_len=-1;
6045     ;;
6046
6047   cygwin* | mingw* | cegcc*)
6048     # On Win9x/ME, this test blows up -- it succeeds, but takes
6049     # about 5 minutes as the teststring grows exponentially.
6050     # Worse, since 9x/ME are not pre-emptively multitasking,
6051     # you end up with a "frozen" computer, even though with patience
6052     # the test eventually succeeds (with a max line length of 256k).
6053     # Instead, let's just punt: use the minimum linelength reported by
6054     # all of the supported platforms: 8192 (on NT/2K/XP).
6055     lt_cv_sys_max_cmd_len=8192;
6056     ;;
6057
6058   amigaos*)
6059     # On AmigaOS with pdksh, this test takes hours, literally.
6060     # So we just punt and use a minimum line length of 8192.
6061     lt_cv_sys_max_cmd_len=8192;
6062     ;;
6063
6064   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6065     # This has been around since 386BSD, at least.  Likely further.
6066     if test -x /sbin/sysctl; then
6067       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6068     elif test -x /usr/sbin/sysctl; then
6069       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6070     else
6071       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6072     fi
6073     # And add a safety zone
6074     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6075     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6076     ;;
6077
6078   interix*)
6079     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6080     lt_cv_sys_max_cmd_len=196608
6081     ;;
6082
6083   osf*)
6084     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6085     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6086     # nice to cause kernel panics so lets avoid the loop below.
6087     # First set a reasonable default.
6088     lt_cv_sys_max_cmd_len=16384
6089     #
6090     if test -x /sbin/sysconfig; then
6091       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6092         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6093       esac
6094     fi
6095     ;;
6096   sco3.2v5*)
6097     lt_cv_sys_max_cmd_len=102400
6098     ;;
6099   sysv5* | sco5v6* | sysv4.2uw2*)
6100     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6101     if test -n "$kargmax"; then
6102       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
6103     else
6104       lt_cv_sys_max_cmd_len=32768
6105     fi
6106     ;;
6107   *)
6108     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6109     if test -n "$lt_cv_sys_max_cmd_len"; then
6110       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6111       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6112     else
6113       # Make teststring a little bigger before we do anything with it.
6114       # a 1K string should be a reasonable start.
6115       for i in 1 2 3 4 5 6 7 8 ; do
6116         teststring=$teststring$teststring
6117       done
6118       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6119       # If test is not a shell built-in, we'll probably end up computing a
6120       # maximum length that is only half of the actual maximum length, but
6121       # we can't tell.
6122       while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
6123                  = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
6124               test $i != 17 # 1/2 MB should be enough
6125       do
6126         i=`expr $i + 1`
6127         teststring=$teststring$teststring
6128       done
6129       # Only check the string length outside the loop.
6130       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6131       teststring=
6132       # Add a significant safety factor because C++ compilers can tack on
6133       # massive amounts of additional arguments before passing them to the
6134       # linker.  It appears as though 1/2 is a usable value.
6135       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6136     fi
6137     ;;
6138   esac
6139
6140 fi
6141
6142 if test -n $lt_cv_sys_max_cmd_len ; then
6143   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6144 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6145 else
6146   { echo "$as_me:$LINENO: result: none" >&5
6147 echo "${ECHO_T}none" >&6; }
6148 fi
6149 max_cmd_len=$lt_cv_sys_max_cmd_len
6150
6151
6152
6153
6154
6155
6156 : ${CP="cp -f"}
6157 : ${MV="mv -f"}
6158 : ${RM="rm -f"}
6159
6160 { echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
6161 echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6; }
6162 # Try some XSI features
6163 xsi_shell=no
6164 ( _lt_dummy="a/b/c"
6165   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6166       = c,a/b,, \
6167     && eval 'test $(( 1 + 1 )) -eq 2 \
6168     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6169   && xsi_shell=yes
6170 { echo "$as_me:$LINENO: result: $xsi_shell" >&5
6171 echo "${ECHO_T}$xsi_shell" >&6; }
6172
6173
6174 { echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
6175 echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6; }
6176 lt_shell_append=no
6177 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6178     >/dev/null 2>&1 \
6179   && lt_shell_append=yes
6180 { echo "$as_me:$LINENO: result: $lt_shell_append" >&5
6181 echo "${ECHO_T}$lt_shell_append" >&6; }
6182
6183
6184 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6185   lt_unset=unset
6186 else
6187   lt_unset=false
6188 fi
6189
6190
6191
6192
6193
6194 # test EBCDIC or ASCII
6195 case `echo X|tr X '\101'` in
6196  A) # ASCII based system
6197     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6198   lt_SP2NL='tr \040 \012'
6199   lt_NL2SP='tr \015\012 \040\040'
6200   ;;
6201  *) # EBCDIC based system
6202   lt_SP2NL='tr \100 \n'
6203   lt_NL2SP='tr \r\n \100\100'
6204   ;;
6205 esac
6206
6207
6208
6209
6210
6211
6212
6213
6214
6215 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6216 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
6217 if test "${lt_cv_ld_reload_flag+set}" = set; then
6218   echo $ECHO_N "(cached) $ECHO_C" >&6
6219 else
6220   lt_cv_ld_reload_flag='-r'
6221 fi
6222 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6223 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
6224 reload_flag=$lt_cv_ld_reload_flag
6225 case $reload_flag in
6226 "" | " "*) ;;
6227 *) reload_flag=" $reload_flag" ;;
6228 esac
6229 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6230 case $host_os in
6231   darwin*)
6232     if test "$GCC" = yes; then
6233       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6234     else
6235       reload_cmds='$LD$reload_flag -o $output$reload_objs'
6236     fi
6237     ;;
6238 esac
6239
6240
6241
6242
6243
6244
6245
6246
6247
6248 if test -n "$ac_tool_prefix"; then
6249   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6250 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6251 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6252 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6253 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
6254   echo $ECHO_N "(cached) $ECHO_C" >&6
6255 else
6256   if test -n "$OBJDUMP"; then
6257   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6258 else
6259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6260 for as_dir in $PATH
6261 do
6262   IFS=$as_save_IFS
6263   test -z "$as_dir" && as_dir=.
6264   for ac_exec_ext in '' $ac_executable_extensions; do
6265   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6266     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6267     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6268     break 2
6269   fi
6270 done
6271 done
6272 IFS=$as_save_IFS
6273
6274 fi
6275 fi
6276 OBJDUMP=$ac_cv_prog_OBJDUMP
6277 if test -n "$OBJDUMP"; then
6278   { echo "$as_me:$LINENO: result: $OBJDUMP" >&5
6279 echo "${ECHO_T}$OBJDUMP" >&6; }
6280 else
6281   { echo "$as_me:$LINENO: result: no" >&5
6282 echo "${ECHO_T}no" >&6; }
6283 fi
6284
6285
6286 fi
6287 if test -z "$ac_cv_prog_OBJDUMP"; then
6288   ac_ct_OBJDUMP=$OBJDUMP
6289   # Extract the first word of "objdump", so it can be a program name with args.
6290 set dummy objdump; ac_word=$2
6291 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6292 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6293 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
6294   echo $ECHO_N "(cached) $ECHO_C" >&6
6295 else
6296   if test -n "$ac_ct_OBJDUMP"; then
6297   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6298 else
6299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6300 for as_dir in $PATH
6301 do
6302   IFS=$as_save_IFS
6303   test -z "$as_dir" && as_dir=.
6304   for ac_exec_ext in '' $ac_executable_extensions; do
6305   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6306     ac_cv_prog_ac_ct_OBJDUMP="objdump"
6307     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6308     break 2
6309   fi
6310 done
6311 done
6312 IFS=$as_save_IFS
6313
6314 fi
6315 fi
6316 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6317 if test -n "$ac_ct_OBJDUMP"; then
6318   { echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
6319 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6; }
6320 else
6321   { echo "$as_me:$LINENO: result: no" >&5
6322 echo "${ECHO_T}no" >&6; }
6323 fi
6324
6325   if test "x$ac_ct_OBJDUMP" = x; then
6326     OBJDUMP="false"
6327   else
6328     case $cross_compiling:$ac_tool_warned in
6329 yes:)
6330 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6331 whose name does not start with the host triplet.  If you think this
6332 configuration is useful to you, please write to autoconf@gnu.org." >&5
6333 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6334 whose name does not start with the host triplet.  If you think this
6335 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6336 ac_tool_warned=yes ;;
6337 esac
6338     OBJDUMP=$ac_ct_OBJDUMP
6339   fi
6340 else
6341   OBJDUMP="$ac_cv_prog_OBJDUMP"
6342 fi
6343
6344 test -z "$OBJDUMP" && OBJDUMP=objdump
6345
6346
6347
6348
6349
6350
6351
6352
6353
6354 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
6355 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
6356 if test "${lt_cv_deplibs_check_method+set}" = set; then
6357   echo $ECHO_N "(cached) $ECHO_C" >&6
6358 else
6359   lt_cv_file_magic_cmd='$MAGIC_CMD'
6360 lt_cv_file_magic_test_file=
6361 lt_cv_deplibs_check_method='unknown'
6362 # Need to set the preceding variable on all platforms that support
6363 # interlibrary dependencies.
6364 # 'none' -- dependencies not supported.
6365 # `unknown' -- same as none, but documents that we really don't know.
6366 # 'pass_all' -- all dependencies passed with no checks.
6367 # 'test_compile' -- check by making test program.
6368 # 'file_magic [[regex]]' -- check by looking for files in library path
6369 # which responds to the $file_magic_cmd with a given extended regex.
6370 # If you have `file' or equivalent on your system and you're not sure
6371 # whether `pass_all' will *always* work, you probably want this one.
6372
6373 case $host_os in
6374 aix[4-9]*)
6375   lt_cv_deplibs_check_method=pass_all
6376   ;;
6377
6378 beos*)
6379   lt_cv_deplibs_check_method=pass_all
6380   ;;
6381
6382 bsdi[45]*)
6383   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6384   lt_cv_file_magic_cmd='/usr/bin/file -L'
6385   lt_cv_file_magic_test_file=/shlib/libc.so
6386   ;;
6387
6388 cygwin*)
6389   # func_win32_libid is a shell function defined in ltmain.sh
6390   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6391   lt_cv_file_magic_cmd='func_win32_libid'
6392   ;;
6393
6394 mingw* | pw32*)
6395   # Base MSYS/MinGW do not provide the 'file' command needed by
6396   # func_win32_libid shell function, so use a weaker test based on 'objdump',
6397   # unless we find 'file', for example because we are cross-compiling.
6398   if ( file / ) >/dev/null 2>&1; then
6399     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6400     lt_cv_file_magic_cmd='func_win32_libid'
6401   else
6402     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6403     lt_cv_file_magic_cmd='$OBJDUMP -f'
6404   fi
6405   ;;
6406
6407 cegcc)
6408   # use the weaker test based on 'objdump'. See mingw*.
6409   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6410   lt_cv_file_magic_cmd='$OBJDUMP -f'
6411   ;;
6412
6413 darwin* | rhapsody*)
6414   lt_cv_deplibs_check_method=pass_all
6415   ;;
6416
6417 freebsd* | dragonfly*)
6418   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6419     case $host_cpu in
6420     i*86 )
6421       # Not sure whether the presence of OpenBSD here was a mistake.
6422       # Let's accept both of them until this is cleared up.
6423       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6424       lt_cv_file_magic_cmd=/usr/bin/file
6425       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6426       ;;
6427     esac
6428   else
6429     lt_cv_deplibs_check_method=pass_all
6430   fi
6431   ;;
6432
6433 gnu*)
6434   lt_cv_deplibs_check_method=pass_all
6435   ;;
6436
6437 hpux10.20* | hpux11*)
6438   lt_cv_file_magic_cmd=/usr/bin/file
6439   case $host_cpu in
6440   ia64*)
6441     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6442     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6443     ;;
6444   hppa*64*)
6445     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]'
6446     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6447     ;;
6448   *)
6449     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6450     lt_cv_file_magic_test_file=/usr/lib/libc.sl
6451     ;;
6452   esac
6453   ;;
6454
6455 interix[3-9]*)
6456   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6457   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6458   ;;
6459
6460 irix5* | irix6* | nonstopux*)
6461   case $LD in
6462   *-32|*"-32 ") libmagic=32-bit;;
6463   *-n32|*"-n32 ") libmagic=N32;;
6464   *-64|*"-64 ") libmagic=64-bit;;
6465   *) libmagic=never-match;;
6466   esac
6467   lt_cv_deplibs_check_method=pass_all
6468   ;;
6469
6470 # This must be Linux ELF.
6471 linux* | k*bsd*-gnu)
6472   lt_cv_deplibs_check_method=pass_all
6473   ;;
6474
6475 netbsd*)
6476   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6477     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6478   else
6479     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6480   fi
6481   ;;
6482
6483 newos6*)
6484   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6485   lt_cv_file_magic_cmd=/usr/bin/file
6486   lt_cv_file_magic_test_file=/usr/lib/libnls.so
6487   ;;
6488
6489 *nto* | *qnx*)
6490   lt_cv_deplibs_check_method=pass_all
6491   ;;
6492
6493 openbsd*)
6494   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6495     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6496   else
6497     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6498   fi
6499   ;;
6500
6501 osf3* | osf4* | osf5*)
6502   lt_cv_deplibs_check_method=pass_all
6503   ;;
6504
6505 rdos*)
6506   lt_cv_deplibs_check_method=pass_all
6507   ;;
6508
6509 solaris*)
6510   lt_cv_deplibs_check_method=pass_all
6511   ;;
6512
6513 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6514   lt_cv_deplibs_check_method=pass_all
6515   ;;
6516
6517 sysv4 | sysv4.3*)
6518   case $host_vendor in
6519   motorola)
6520     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]'
6521     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6522     ;;
6523   ncr)
6524     lt_cv_deplibs_check_method=pass_all
6525     ;;
6526   sequent)
6527     lt_cv_file_magic_cmd='/bin/file'
6528     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6529     ;;
6530   sni)
6531     lt_cv_file_magic_cmd='/bin/file'
6532     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6533     lt_cv_file_magic_test_file=/lib/libc.so
6534     ;;
6535   siemens)
6536     lt_cv_deplibs_check_method=pass_all
6537     ;;
6538   pc)
6539     lt_cv_deplibs_check_method=pass_all
6540     ;;
6541   esac
6542   ;;
6543
6544 tpf*)
6545   lt_cv_deplibs_check_method=pass_all
6546   ;;
6547 esac
6548
6549 fi
6550 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6551 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
6552 file_magic_cmd=$lt_cv_file_magic_cmd
6553 deplibs_check_method=$lt_cv_deplibs_check_method
6554 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6555
6556
6557
6558
6559
6560
6561
6562
6563
6564
6565
6566
6567 if test -n "$ac_tool_prefix"; then
6568   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6569 set dummy ${ac_tool_prefix}ar; ac_word=$2
6570 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6571 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6572 if test "${ac_cv_prog_AR+set}" = set; then
6573   echo $ECHO_N "(cached) $ECHO_C" >&6
6574 else
6575   if test -n "$AR"; then
6576   ac_cv_prog_AR="$AR" # Let the user override the test.
6577 else
6578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6579 for as_dir in $PATH
6580 do
6581   IFS=$as_save_IFS
6582   test -z "$as_dir" && as_dir=.
6583   for ac_exec_ext in '' $ac_executable_extensions; do
6584   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6585     ac_cv_prog_AR="${ac_tool_prefix}ar"
6586     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6587     break 2
6588   fi
6589 done
6590 done
6591 IFS=$as_save_IFS
6592
6593 fi
6594 fi
6595 AR=$ac_cv_prog_AR
6596 if test -n "$AR"; then
6597   { echo "$as_me:$LINENO: result: $AR" >&5
6598 echo "${ECHO_T}$AR" >&6; }
6599 else
6600   { echo "$as_me:$LINENO: result: no" >&5
6601 echo "${ECHO_T}no" >&6; }
6602 fi
6603
6604
6605 fi
6606 if test -z "$ac_cv_prog_AR"; then
6607   ac_ct_AR=$AR
6608   # Extract the first word of "ar", so it can be a program name with args.
6609 set dummy ar; ac_word=$2
6610 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6611 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6612 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6613   echo $ECHO_N "(cached) $ECHO_C" >&6
6614 else
6615   if test -n "$ac_ct_AR"; then
6616   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6617 else
6618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6619 for as_dir in $PATH
6620 do
6621   IFS=$as_save_IFS
6622   test -z "$as_dir" && as_dir=.
6623   for ac_exec_ext in '' $ac_executable_extensions; do
6624   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6625     ac_cv_prog_ac_ct_AR="ar"
6626     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6627     break 2
6628   fi
6629 done
6630 done
6631 IFS=$as_save_IFS
6632
6633 fi
6634 fi
6635 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6636 if test -n "$ac_ct_AR"; then
6637   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6638 echo "${ECHO_T}$ac_ct_AR" >&6; }
6639 else
6640   { echo "$as_me:$LINENO: result: no" >&5
6641 echo "${ECHO_T}no" >&6; }
6642 fi
6643
6644   if test "x$ac_ct_AR" = x; then
6645     AR="false"
6646   else
6647     case $cross_compiling:$ac_tool_warned in
6648 yes:)
6649 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6650 whose name does not start with the host triplet.  If you think this
6651 configuration is useful to you, please write to autoconf@gnu.org." >&5
6652 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6653 whose name does not start with the host triplet.  If you think this
6654 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6655 ac_tool_warned=yes ;;
6656 esac
6657     AR=$ac_ct_AR
6658   fi
6659 else
6660   AR="$ac_cv_prog_AR"
6661 fi
6662
6663 test -z "$AR" && AR=ar
6664 test -z "$AR_FLAGS" && AR_FLAGS=cru
6665
6666
6667
6668
6669
6670
6671
6672
6673
6674
6675
6676 if test -n "$ac_tool_prefix"; then
6677   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6678 set dummy ${ac_tool_prefix}strip; ac_word=$2
6679 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6680 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6681 if test "${ac_cv_prog_STRIP+set}" = set; then
6682   echo $ECHO_N "(cached) $ECHO_C" >&6
6683 else
6684   if test -n "$STRIP"; then
6685   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6686 else
6687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6688 for as_dir in $PATH
6689 do
6690   IFS=$as_save_IFS
6691   test -z "$as_dir" && as_dir=.
6692   for ac_exec_ext in '' $ac_executable_extensions; do
6693   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6694     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6695     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6696     break 2
6697   fi
6698 done
6699 done
6700 IFS=$as_save_IFS
6701
6702 fi
6703 fi
6704 STRIP=$ac_cv_prog_STRIP
6705 if test -n "$STRIP"; then
6706   { echo "$as_me:$LINENO: result: $STRIP" >&5
6707 echo "${ECHO_T}$STRIP" >&6; }
6708 else
6709   { echo "$as_me:$LINENO: result: no" >&5
6710 echo "${ECHO_T}no" >&6; }
6711 fi
6712
6713
6714 fi
6715 if test -z "$ac_cv_prog_STRIP"; then
6716   ac_ct_STRIP=$STRIP
6717   # Extract the first word of "strip", so it can be a program name with args.
6718 set dummy strip; ac_word=$2
6719 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6720 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6721 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6722   echo $ECHO_N "(cached) $ECHO_C" >&6
6723 else
6724   if test -n "$ac_ct_STRIP"; then
6725   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6726 else
6727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6728 for as_dir in $PATH
6729 do
6730   IFS=$as_save_IFS
6731   test -z "$as_dir" && as_dir=.
6732   for ac_exec_ext in '' $ac_executable_extensions; do
6733   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6734     ac_cv_prog_ac_ct_STRIP="strip"
6735     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6736     break 2
6737   fi
6738 done
6739 done
6740 IFS=$as_save_IFS
6741
6742 fi
6743 fi
6744 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6745 if test -n "$ac_ct_STRIP"; then
6746   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6747 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6748 else
6749   { echo "$as_me:$LINENO: result: no" >&5
6750 echo "${ECHO_T}no" >&6; }
6751 fi
6752
6753   if test "x$ac_ct_STRIP" = x; then
6754     STRIP=":"
6755   else
6756     case $cross_compiling:$ac_tool_warned in
6757 yes:)
6758 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6759 whose name does not start with the host triplet.  If you think this
6760 configuration is useful to you, please write to autoconf@gnu.org." >&5
6761 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6762 whose name does not start with the host triplet.  If you think this
6763 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6764 ac_tool_warned=yes ;;
6765 esac
6766     STRIP=$ac_ct_STRIP
6767   fi
6768 else
6769   STRIP="$ac_cv_prog_STRIP"
6770 fi
6771
6772 test -z "$STRIP" && STRIP=:
6773
6774
6775
6776
6777
6778
6779 if test -n "$ac_tool_prefix"; then
6780   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6781 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6782 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6783 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6784 if test "${ac_cv_prog_RANLIB+set}" = set; then
6785   echo $ECHO_N "(cached) $ECHO_C" >&6
6786 else
6787   if test -n "$RANLIB"; then
6788   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6789 else
6790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6791 for as_dir in $PATH
6792 do
6793   IFS=$as_save_IFS
6794   test -z "$as_dir" && as_dir=.
6795   for ac_exec_ext in '' $ac_executable_extensions; do
6796   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6797     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6798     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6799     break 2
6800   fi
6801 done
6802 done
6803 IFS=$as_save_IFS
6804
6805 fi
6806 fi
6807 RANLIB=$ac_cv_prog_RANLIB
6808 if test -n "$RANLIB"; then
6809   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6810 echo "${ECHO_T}$RANLIB" >&6; }
6811 else
6812   { echo "$as_me:$LINENO: result: no" >&5
6813 echo "${ECHO_T}no" >&6; }
6814 fi
6815
6816
6817 fi
6818 if test -z "$ac_cv_prog_RANLIB"; then
6819   ac_ct_RANLIB=$RANLIB
6820   # Extract the first word of "ranlib", so it can be a program name with args.
6821 set dummy ranlib; ac_word=$2
6822 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6823 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6824 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6825   echo $ECHO_N "(cached) $ECHO_C" >&6
6826 else
6827   if test -n "$ac_ct_RANLIB"; then
6828   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6829 else
6830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6831 for as_dir in $PATH
6832 do
6833   IFS=$as_save_IFS
6834   test -z "$as_dir" && as_dir=.
6835   for ac_exec_ext in '' $ac_executable_extensions; do
6836   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6837     ac_cv_prog_ac_ct_RANLIB="ranlib"
6838     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6839     break 2
6840   fi
6841 done
6842 done
6843 IFS=$as_save_IFS
6844
6845 fi
6846 fi
6847 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6848 if test -n "$ac_ct_RANLIB"; then
6849   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6850 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6851 else
6852   { echo "$as_me:$LINENO: result: no" >&5
6853 echo "${ECHO_T}no" >&6; }
6854 fi
6855
6856   if test "x$ac_ct_RANLIB" = x; then
6857     RANLIB=":"
6858   else
6859     case $cross_compiling:$ac_tool_warned in
6860 yes:)
6861 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6862 whose name does not start with the host triplet.  If you think this
6863 configuration is useful to you, please write to autoconf@gnu.org." >&5
6864 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6865 whose name does not start with the host triplet.  If you think this
6866 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6867 ac_tool_warned=yes ;;
6868 esac
6869     RANLIB=$ac_ct_RANLIB
6870   fi
6871 else
6872   RANLIB="$ac_cv_prog_RANLIB"
6873 fi
6874
6875 test -z "$RANLIB" && RANLIB=:
6876
6877
6878
6879
6880
6881
6882 # Determine commands to create old-style static archives.
6883 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6884 old_postinstall_cmds='chmod 644 $oldlib'
6885 old_postuninstall_cmds=
6886
6887 if test -n "$RANLIB"; then
6888   case $host_os in
6889   openbsd*)
6890     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6891     ;;
6892   *)
6893     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6894     ;;
6895   esac
6896   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6897 fi
6898
6899
6900
6901
6902
6903
6904
6905
6906
6907
6908
6909
6910
6911
6912
6913
6914
6915
6916
6917
6918
6919
6920
6921
6922
6923
6924
6925
6926
6927
6928
6929
6930
6931
6932 # If no C compiler was specified, use CC.
6933 LTCC=${LTCC-"$CC"}
6934
6935 # If no C compiler flags were specified, use CFLAGS.
6936 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6937
6938 # Allow CC to be a program name with arguments.
6939 compiler=$CC
6940
6941
6942 # Check for command to grab the raw symbol name followed by C symbol from nm.
6943 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6944 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6945 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6946   echo $ECHO_N "(cached) $ECHO_C" >&6
6947 else
6948
6949 # These are sane defaults that work on at least a few old systems.
6950 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6951
6952 # Character class describing NM global symbol codes.
6953 symcode='[BCDEGRST]'
6954
6955 # Regexp to match symbols that can be accessed directly from C.
6956 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6957
6958 # Define system-specific variables.
6959 case $host_os in
6960 aix*)
6961   symcode='[BCDT]'
6962   ;;
6963 cygwin* | mingw* | pw32* | cegcc*)
6964   symcode='[ABCDGISTW]'
6965   ;;
6966 hpux*)
6967   if test "$host_cpu" = ia64; then
6968     symcode='[ABCDEGRST]'
6969   fi
6970   ;;
6971 irix* | nonstopux*)
6972   symcode='[BCDEGRST]'
6973   ;;
6974 osf*)
6975   symcode='[BCDEGQRST]'
6976   ;;
6977 solaris*)
6978   symcode='[BDRT]'
6979   ;;
6980 sco3.2v5*)
6981   symcode='[DT]'
6982   ;;
6983 sysv4.2uw2*)
6984   symcode='[DT]'
6985   ;;
6986 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6987   symcode='[ABDT]'
6988   ;;
6989 sysv4)
6990   symcode='[DFNSTU]'
6991   ;;
6992 esac
6993
6994 # If we're using GNU nm, then use its standard symbol codes.
6995 case `$NM -V 2>&1` in
6996 *GNU* | *'with BFD'*)
6997   symcode='[ABCDGIRSTW]' ;;
6998 esac
6999
7000 # Transform an extracted symbol line into a proper C declaration.
7001 # Some systems (esp. on ia64) link data and code symbols differently,
7002 # so use this general approach.
7003 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7004
7005 # Transform an extracted symbol line into symbol name and symbol address
7006 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
7007 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'"
7008
7009 # Handle CRLF in mingw tool chain
7010 opt_cr=
7011 case $build_os in
7012 mingw*)
7013   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7014   ;;
7015 esac
7016
7017 # Try without a prefix underscore, then with it.
7018 for ac_symprfx in "" "_"; do
7019
7020   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7021   symxfrm="\\1 $ac_symprfx\\2 \\2"
7022
7023   # Write the raw and C identifiers.
7024   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7025     # Fake it for dumpbin and say T for any non-static function
7026     # and D for any global variable.
7027     # Also find C++ and __fastcall symbols from MSVC++,
7028     # which start with @ or ?.
7029     lt_cv_sys_global_symbol_pipe="$AWK '"\
7030 "     {last_section=section; section=\$ 3};"\
7031 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7032 "     \$ 0!~/External *\|/{next};"\
7033 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7034 "     {if(hide[section]) next};"\
7035 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7036 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7037 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
7038 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7039 "     ' prfx=^$ac_symprfx"
7040   else
7041     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7042   fi
7043
7044   # Check to see that the pipe works correctly.
7045   pipe_works=no
7046
7047   rm -f conftest*
7048   cat > conftest.$ac_ext <<_LT_EOF
7049 #ifdef __cplusplus
7050 extern "C" {
7051 #endif
7052 char nm_test_var;
7053 void nm_test_func(void);
7054 void nm_test_func(void){}
7055 #ifdef __cplusplus
7056 }
7057 #endif
7058 int main(){nm_test_var='a';nm_test_func();return(0);}
7059 _LT_EOF
7060
7061   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7062   (eval $ac_compile) 2>&5
7063   ac_status=$?
7064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7065   (exit $ac_status); }; then
7066     # Now try to grab the symbols.
7067     nlist=conftest.nm
7068     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7069   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7070   ac_status=$?
7071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7072   (exit $ac_status); } && test -s "$nlist"; then
7073       # Try sorting and uniquifying the output.
7074       if sort "$nlist" | uniq > "$nlist"T; then
7075         mv -f "$nlist"T "$nlist"
7076       else
7077         rm -f "$nlist"T
7078       fi
7079
7080       # Make sure that we snagged all the symbols we need.
7081       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7082         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7083           cat <<_LT_EOF > conftest.$ac_ext
7084 #ifdef __cplusplus
7085 extern "C" {
7086 #endif
7087
7088 _LT_EOF
7089           # Now generate the symbol file.
7090           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7091
7092           cat <<_LT_EOF >> conftest.$ac_ext
7093
7094 /* The mapping between symbol names and symbols.  */
7095 const struct {
7096   const char *name;
7097   void       *address;
7098 }
7099 lt__PROGRAM__LTX_preloaded_symbols[] =
7100 {
7101   { "@PROGRAM@", (void *) 0 },
7102 _LT_EOF
7103           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7104           cat <<\_LT_EOF >> conftest.$ac_ext
7105   {0, (void *) 0}
7106 };
7107
7108 /* This works around a problem in FreeBSD linker */
7109 #ifdef FREEBSD_WORKAROUND
7110 static const void *lt_preloaded_setup() {
7111   return lt__PROGRAM__LTX_preloaded_symbols;
7112 }
7113 #endif
7114
7115 #ifdef __cplusplus
7116 }
7117 #endif
7118 _LT_EOF
7119           # Now try linking the two files.
7120           mv conftest.$ac_objext conftstm.$ac_objext
7121           lt_save_LIBS="$LIBS"
7122           lt_save_CFLAGS="$CFLAGS"
7123           LIBS="conftstm.$ac_objext"
7124           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7125           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7126   (eval $ac_link) 2>&5
7127   ac_status=$?
7128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7129   (exit $ac_status); } && test -s conftest${ac_exeext}; then
7130             pipe_works=yes
7131           fi
7132           LIBS="$lt_save_LIBS"
7133           CFLAGS="$lt_save_CFLAGS"
7134         else
7135           echo "cannot find nm_test_func in $nlist" >&5
7136         fi
7137       else
7138         echo "cannot find nm_test_var in $nlist" >&5
7139       fi
7140     else
7141       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7142     fi
7143   else
7144     echo "$progname: failed program was:" >&5
7145     cat conftest.$ac_ext >&5
7146   fi
7147   rm -rf conftest* conftst*
7148
7149   # Do not use the global_symbol_pipe unless it works.
7150   if test "$pipe_works" = yes; then
7151     break
7152   else
7153     lt_cv_sys_global_symbol_pipe=
7154   fi
7155 done
7156
7157 fi
7158
7159 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7160   lt_cv_sys_global_symbol_to_cdecl=
7161 fi
7162 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7163   { echo "$as_me:$LINENO: result: failed" >&5
7164 echo "${ECHO_T}failed" >&6; }
7165 else
7166   { echo "$as_me:$LINENO: result: ok" >&5
7167 echo "${ECHO_T}ok" >&6; }
7168 fi
7169
7170
7171
7172
7173
7174
7175
7176
7177
7178
7179
7180
7181
7182
7183
7184
7185
7186
7187
7188
7189
7190
7191 # Check whether --enable-libtool-lock was given.
7192 if test "${enable_libtool_lock+set}" = set; then
7193   enableval=$enable_libtool_lock;
7194 fi
7195
7196 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7197
7198 # Some flags need to be propagated to the compiler or linker for good
7199 # libtool support.
7200 case $host in
7201 ia64-*-hpux*)
7202   # Find out which ABI we are using.
7203   echo 'int i;' > conftest.$ac_ext
7204   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7205   (eval $ac_compile) 2>&5
7206   ac_status=$?
7207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7208   (exit $ac_status); }; then
7209     case `/usr/bin/file conftest.$ac_objext` in
7210       *ELF-32*)
7211         HPUX_IA64_MODE="32"
7212         ;;
7213       *ELF-64*)
7214         HPUX_IA64_MODE="64"
7215         ;;
7216     esac
7217   fi
7218   rm -rf conftest*
7219   ;;
7220 *-*-irix6*)
7221   # Find out which ABI we are using.
7222   echo '#line 7222 "configure"' > conftest.$ac_ext
7223   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7224   (eval $ac_compile) 2>&5
7225   ac_status=$?
7226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7227   (exit $ac_status); }; then
7228     if test "$lt_cv_prog_gnu_ld" = yes; then
7229       case `/usr/bin/file conftest.$ac_objext` in
7230         *32-bit*)
7231           LD="${LD-ld} -melf32bsmip"
7232           ;;
7233         *N32*)
7234           LD="${LD-ld} -melf32bmipn32"
7235           ;;
7236         *64-bit*)
7237           LD="${LD-ld} -melf64bmip"
7238         ;;
7239       esac
7240     else
7241       case `/usr/bin/file conftest.$ac_objext` in
7242         *32-bit*)
7243           LD="${LD-ld} -32"
7244           ;;
7245         *N32*)
7246           LD="${LD-ld} -n32"
7247           ;;
7248         *64-bit*)
7249           LD="${LD-ld} -64"
7250           ;;
7251       esac
7252     fi
7253   fi
7254   rm -rf conftest*
7255   ;;
7256
7257 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7258 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7259   # Find out which ABI we are using.
7260   echo 'int i;' > conftest.$ac_ext
7261   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7262   (eval $ac_compile) 2>&5
7263   ac_status=$?
7264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7265   (exit $ac_status); }; then
7266     case `/usr/bin/file conftest.o` in
7267       *32-bit*)
7268         case $host in
7269           x86_64-*kfreebsd*-gnu)
7270             LD="${LD-ld} -m elf_i386_fbsd"
7271             ;;
7272           x86_64-*linux*)
7273             LD="${LD-ld} -m elf_i386"
7274             ;;
7275           ppc64-*linux*|powerpc64-*linux*)
7276             LD="${LD-ld} -m elf32ppclinux"
7277             ;;
7278           s390x-*linux*)
7279             LD="${LD-ld} -m elf_s390"
7280             ;;
7281           sparc64-*linux*)
7282             LD="${LD-ld} -m elf32_sparc"
7283             ;;
7284         esac
7285         ;;
7286       *64-bit*)
7287         case $host in
7288           x86_64-*kfreebsd*-gnu)
7289             LD="${LD-ld} -m elf_x86_64_fbsd"
7290             ;;
7291           x86_64-*linux*)
7292             LD="${LD-ld} -m elf_x86_64"
7293             ;;
7294           ppc*-*linux*|powerpc*-*linux*)
7295             LD="${LD-ld} -m elf64ppc"
7296             ;;
7297           s390*-*linux*|s390*-*tpf*)
7298             LD="${LD-ld} -m elf64_s390"
7299             ;;
7300           sparc*-*linux*)
7301             LD="${LD-ld} -m elf64_sparc"
7302             ;;
7303         esac
7304         ;;
7305     esac
7306   fi
7307   rm -rf conftest*
7308   ;;
7309
7310 *-*-sco3.2v5*)
7311   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7312   SAVE_CFLAGS="$CFLAGS"
7313   CFLAGS="$CFLAGS -belf"
7314   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
7315 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
7316 if test "${lt_cv_cc_needs_belf+set}" = set; then
7317   echo $ECHO_N "(cached) $ECHO_C" >&6
7318 else
7319   ac_ext=c
7320 ac_cpp='$CPP $CPPFLAGS'
7321 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7322 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7323 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7324
7325      cat >conftest.$ac_ext <<_ACEOF
7326 /* confdefs.h.  */
7327 _ACEOF
7328 cat confdefs.h >>conftest.$ac_ext
7329 cat >>conftest.$ac_ext <<_ACEOF
7330 /* end confdefs.h.  */
7331
7332 int
7333 main ()
7334 {
7335
7336   ;
7337   return 0;
7338 }
7339 _ACEOF
7340 rm -f conftest.$ac_objext conftest$ac_exeext
7341 if { (ac_try="$ac_link"
7342 case "(($ac_try" in
7343   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7344   *) ac_try_echo=$ac_try;;
7345 esac
7346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7347   (eval "$ac_link") 2>conftest.er1
7348   ac_status=$?
7349   grep -v '^ *+' conftest.er1 >conftest.err
7350   rm -f conftest.er1
7351   cat conftest.err >&5
7352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7353   (exit $ac_status); } && {
7354          test -z "$ac_c_werror_flag" ||
7355          test ! -s conftest.err
7356        } && test -s conftest$ac_exeext &&
7357        $as_test_x conftest$ac_exeext; then
7358   lt_cv_cc_needs_belf=yes
7359 else
7360   echo "$as_me: failed program was:" >&5
7361 sed 's/^/| /' conftest.$ac_ext >&5
7362
7363         lt_cv_cc_needs_belf=no
7364 fi
7365
7366 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7367       conftest$ac_exeext conftest.$ac_ext
7368      ac_ext=c
7369 ac_cpp='$CPP $CPPFLAGS'
7370 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7371 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7372 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7373
7374 fi
7375 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
7376 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
7377   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7378     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7379     CFLAGS="$SAVE_CFLAGS"
7380   fi
7381   ;;
7382 sparc*-*solaris*)
7383   # Find out which ABI we are using.
7384   echo 'int i;' > conftest.$ac_ext
7385   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7386   (eval $ac_compile) 2>&5
7387   ac_status=$?
7388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7389   (exit $ac_status); }; then
7390     case `/usr/bin/file conftest.o` in
7391     *64-bit*)
7392       case $lt_cv_prog_gnu_ld in
7393       yes*) LD="${LD-ld} -m elf64_sparc" ;;
7394       *)
7395         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7396           LD="${LD-ld} -64"
7397         fi
7398         ;;
7399       esac
7400       ;;
7401     esac
7402   fi
7403   rm -rf conftest*
7404   ;;
7405 esac
7406
7407 need_locks="$enable_libtool_lock"
7408
7409
7410   case $host_os in
7411     rhapsody* | darwin*)
7412     if test -n "$ac_tool_prefix"; then
7413   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7414 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7415 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7416 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7417 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7418   echo $ECHO_N "(cached) $ECHO_C" >&6
7419 else
7420   if test -n "$DSYMUTIL"; then
7421   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7422 else
7423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7424 for as_dir in $PATH
7425 do
7426   IFS=$as_save_IFS
7427   test -z "$as_dir" && as_dir=.
7428   for ac_exec_ext in '' $ac_executable_extensions; do
7429   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7430     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7431     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7432     break 2
7433   fi
7434 done
7435 done
7436 IFS=$as_save_IFS
7437
7438 fi
7439 fi
7440 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7441 if test -n "$DSYMUTIL"; then
7442   { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7443 echo "${ECHO_T}$DSYMUTIL" >&6; }
7444 else
7445   { echo "$as_me:$LINENO: result: no" >&5
7446 echo "${ECHO_T}no" >&6; }
7447 fi
7448
7449
7450 fi
7451 if test -z "$ac_cv_prog_DSYMUTIL"; then
7452   ac_ct_DSYMUTIL=$DSYMUTIL
7453   # Extract the first word of "dsymutil", so it can be a program name with args.
7454 set dummy dsymutil; ac_word=$2
7455 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7456 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7457 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7458   echo $ECHO_N "(cached) $ECHO_C" >&6
7459 else
7460   if test -n "$ac_ct_DSYMUTIL"; then
7461   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7462 else
7463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7464 for as_dir in $PATH
7465 do
7466   IFS=$as_save_IFS
7467   test -z "$as_dir" && as_dir=.
7468   for ac_exec_ext in '' $ac_executable_extensions; do
7469   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7470     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7471     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7472     break 2
7473   fi
7474 done
7475 done
7476 IFS=$as_save_IFS
7477
7478 fi
7479 fi
7480 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7481 if test -n "$ac_ct_DSYMUTIL"; then
7482   { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7483 echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
7484 else
7485   { echo "$as_me:$LINENO: result: no" >&5
7486 echo "${ECHO_T}no" >&6; }
7487 fi
7488
7489   if test "x$ac_ct_DSYMUTIL" = x; then
7490     DSYMUTIL=":"
7491   else
7492     case $cross_compiling:$ac_tool_warned in
7493 yes:)
7494 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7495 whose name does not start with the host triplet.  If you think this
7496 configuration is useful to you, please write to autoconf@gnu.org." >&5
7497 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7498 whose name does not start with the host triplet.  If you think this
7499 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7500 ac_tool_warned=yes ;;
7501 esac
7502     DSYMUTIL=$ac_ct_DSYMUTIL
7503   fi
7504 else
7505   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7506 fi
7507
7508     if test -n "$ac_tool_prefix"; then
7509   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7510 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7511 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7512 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7513 if test "${ac_cv_prog_NMEDIT+set}" = set; then
7514   echo $ECHO_N "(cached) $ECHO_C" >&6
7515 else
7516   if test -n "$NMEDIT"; then
7517   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7518 else
7519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7520 for as_dir in $PATH
7521 do
7522   IFS=$as_save_IFS
7523   test -z "$as_dir" && as_dir=.
7524   for ac_exec_ext in '' $ac_executable_extensions; do
7525   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7526     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7527     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7528     break 2
7529   fi
7530 done
7531 done
7532 IFS=$as_save_IFS
7533
7534 fi
7535 fi
7536 NMEDIT=$ac_cv_prog_NMEDIT
7537 if test -n "$NMEDIT"; then
7538   { echo "$as_me:$LINENO: result: $NMEDIT" >&5
7539 echo "${ECHO_T}$NMEDIT" >&6; }
7540 else
7541   { echo "$as_me:$LINENO: result: no" >&5
7542 echo "${ECHO_T}no" >&6; }
7543 fi
7544
7545
7546 fi
7547 if test -z "$ac_cv_prog_NMEDIT"; then
7548   ac_ct_NMEDIT=$NMEDIT
7549   # Extract the first word of "nmedit", so it can be a program name with args.
7550 set dummy nmedit; ac_word=$2
7551 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7552 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7553 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7554   echo $ECHO_N "(cached) $ECHO_C" >&6
7555 else
7556   if test -n "$ac_ct_NMEDIT"; then
7557   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7558 else
7559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7560 for as_dir in $PATH
7561 do
7562   IFS=$as_save_IFS
7563   test -z "$as_dir" && as_dir=.
7564   for ac_exec_ext in '' $ac_executable_extensions; do
7565   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7566     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7567     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7568     break 2
7569   fi
7570 done
7571 done
7572 IFS=$as_save_IFS
7573
7574 fi
7575 fi
7576 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7577 if test -n "$ac_ct_NMEDIT"; then
7578   { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7579 echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
7580 else
7581   { echo "$as_me:$LINENO: result: no" >&5
7582 echo "${ECHO_T}no" >&6; }
7583 fi
7584
7585   if test "x$ac_ct_NMEDIT" = x; then
7586     NMEDIT=":"
7587   else
7588     case $cross_compiling:$ac_tool_warned in
7589 yes:)
7590 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7591 whose name does not start with the host triplet.  If you think this
7592 configuration is useful to you, please write to autoconf@gnu.org." >&5
7593 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7594 whose name does not start with the host triplet.  If you think this
7595 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7596 ac_tool_warned=yes ;;
7597 esac
7598     NMEDIT=$ac_ct_NMEDIT
7599   fi
7600 else
7601   NMEDIT="$ac_cv_prog_NMEDIT"
7602 fi
7603
7604     if test -n "$ac_tool_prefix"; then
7605   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7606 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7607 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7608 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7609 if test "${ac_cv_prog_LIPO+set}" = set; then
7610   echo $ECHO_N "(cached) $ECHO_C" >&6
7611 else
7612   if test -n "$LIPO"; then
7613   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7614 else
7615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7616 for as_dir in $PATH
7617 do
7618   IFS=$as_save_IFS
7619   test -z "$as_dir" && as_dir=.
7620   for ac_exec_ext in '' $ac_executable_extensions; do
7621   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7622     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7623     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7624     break 2
7625   fi
7626 done
7627 done
7628 IFS=$as_save_IFS
7629
7630 fi
7631 fi
7632 LIPO=$ac_cv_prog_LIPO
7633 if test -n "$LIPO"; then
7634   { echo "$as_me:$LINENO: result: $LIPO" >&5
7635 echo "${ECHO_T}$LIPO" >&6; }
7636 else
7637   { echo "$as_me:$LINENO: result: no" >&5
7638 echo "${ECHO_T}no" >&6; }
7639 fi
7640
7641
7642 fi
7643 if test -z "$ac_cv_prog_LIPO"; then
7644   ac_ct_LIPO=$LIPO
7645   # Extract the first word of "lipo", so it can be a program name with args.
7646 set dummy lipo; ac_word=$2
7647 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7648 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7649 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
7650   echo $ECHO_N "(cached) $ECHO_C" >&6
7651 else
7652   if test -n "$ac_ct_LIPO"; then
7653   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7654 else
7655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7656 for as_dir in $PATH
7657 do
7658   IFS=$as_save_IFS
7659   test -z "$as_dir" && as_dir=.
7660   for ac_exec_ext in '' $ac_executable_extensions; do
7661   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7662     ac_cv_prog_ac_ct_LIPO="lipo"
7663     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7664     break 2
7665   fi
7666 done
7667 done
7668 IFS=$as_save_IFS
7669
7670 fi
7671 fi
7672 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7673 if test -n "$ac_ct_LIPO"; then
7674   { echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
7675 echo "${ECHO_T}$ac_ct_LIPO" >&6; }
7676 else
7677   { echo "$as_me:$LINENO: result: no" >&5
7678 echo "${ECHO_T}no" >&6; }
7679 fi
7680
7681   if test "x$ac_ct_LIPO" = x; then
7682     LIPO=":"
7683   else
7684     case $cross_compiling:$ac_tool_warned in
7685 yes:)
7686 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7687 whose name does not start with the host triplet.  If you think this
7688 configuration is useful to you, please write to autoconf@gnu.org." >&5
7689 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7690 whose name does not start with the host triplet.  If you think this
7691 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7692 ac_tool_warned=yes ;;
7693 esac
7694     LIPO=$ac_ct_LIPO
7695   fi
7696 else
7697   LIPO="$ac_cv_prog_LIPO"
7698 fi
7699
7700     if test -n "$ac_tool_prefix"; then
7701   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7702 set dummy ${ac_tool_prefix}otool; ac_word=$2
7703 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7704 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7705 if test "${ac_cv_prog_OTOOL+set}" = set; then
7706   echo $ECHO_N "(cached) $ECHO_C" >&6
7707 else
7708   if test -n "$OTOOL"; then
7709   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7710 else
7711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7712 for as_dir in $PATH
7713 do
7714   IFS=$as_save_IFS
7715   test -z "$as_dir" && as_dir=.
7716   for ac_exec_ext in '' $ac_executable_extensions; do
7717   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7718     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7719     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7720     break 2
7721   fi
7722 done
7723 done
7724 IFS=$as_save_IFS
7725
7726 fi
7727 fi
7728 OTOOL=$ac_cv_prog_OTOOL
7729 if test -n "$OTOOL"; then
7730   { echo "$as_me:$LINENO: result: $OTOOL" >&5
7731 echo "${ECHO_T}$OTOOL" >&6; }
7732 else
7733   { echo "$as_me:$LINENO: result: no" >&5
7734 echo "${ECHO_T}no" >&6; }
7735 fi
7736
7737
7738 fi
7739 if test -z "$ac_cv_prog_OTOOL"; then
7740   ac_ct_OTOOL=$OTOOL
7741   # Extract the first word of "otool", so it can be a program name with args.
7742 set dummy otool; ac_word=$2
7743 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7744 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7745 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
7746   echo $ECHO_N "(cached) $ECHO_C" >&6
7747 else
7748   if test -n "$ac_ct_OTOOL"; then
7749   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7750 else
7751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7752 for as_dir in $PATH
7753 do
7754   IFS=$as_save_IFS
7755   test -z "$as_dir" && as_dir=.
7756   for ac_exec_ext in '' $ac_executable_extensions; do
7757   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7758     ac_cv_prog_ac_ct_OTOOL="otool"
7759     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7760     break 2
7761   fi
7762 done
7763 done
7764 IFS=$as_save_IFS
7765
7766 fi
7767 fi
7768 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7769 if test -n "$ac_ct_OTOOL"; then
7770   { echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
7771 echo "${ECHO_T}$ac_ct_OTOOL" >&6; }
7772 else
7773   { echo "$as_me:$LINENO: result: no" >&5
7774 echo "${ECHO_T}no" >&6; }
7775 fi
7776
7777   if test "x$ac_ct_OTOOL" = x; then
7778     OTOOL=":"
7779   else
7780     case $cross_compiling:$ac_tool_warned in
7781 yes:)
7782 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7783 whose name does not start with the host triplet.  If you think this
7784 configuration is useful to you, please write to autoconf@gnu.org." >&5
7785 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7786 whose name does not start with the host triplet.  If you think this
7787 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7788 ac_tool_warned=yes ;;
7789 esac
7790     OTOOL=$ac_ct_OTOOL
7791   fi
7792 else
7793   OTOOL="$ac_cv_prog_OTOOL"
7794 fi
7795
7796     if test -n "$ac_tool_prefix"; then
7797   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7798 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7799 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7800 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7801 if test "${ac_cv_prog_OTOOL64+set}" = set; then
7802   echo $ECHO_N "(cached) $ECHO_C" >&6
7803 else
7804   if test -n "$OTOOL64"; then
7805   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7806 else
7807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7808 for as_dir in $PATH
7809 do
7810   IFS=$as_save_IFS
7811   test -z "$as_dir" && as_dir=.
7812   for ac_exec_ext in '' $ac_executable_extensions; do
7813   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7814     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7815     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7816     break 2
7817   fi
7818 done
7819 done
7820 IFS=$as_save_IFS
7821
7822 fi
7823 fi
7824 OTOOL64=$ac_cv_prog_OTOOL64
7825 if test -n "$OTOOL64"; then
7826   { echo "$as_me:$LINENO: result: $OTOOL64" >&5
7827 echo "${ECHO_T}$OTOOL64" >&6; }
7828 else
7829   { echo "$as_me:$LINENO: result: no" >&5
7830 echo "${ECHO_T}no" >&6; }
7831 fi
7832
7833
7834 fi
7835 if test -z "$ac_cv_prog_OTOOL64"; then
7836   ac_ct_OTOOL64=$OTOOL64
7837   # Extract the first word of "otool64", so it can be a program name with args.
7838 set dummy otool64; ac_word=$2
7839 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7840 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7841 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
7842   echo $ECHO_N "(cached) $ECHO_C" >&6
7843 else
7844   if test -n "$ac_ct_OTOOL64"; then
7845   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7846 else
7847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7848 for as_dir in $PATH
7849 do
7850   IFS=$as_save_IFS
7851   test -z "$as_dir" && as_dir=.
7852   for ac_exec_ext in '' $ac_executable_extensions; do
7853   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7854     ac_cv_prog_ac_ct_OTOOL64="otool64"
7855     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7856     break 2
7857   fi
7858 done
7859 done
7860 IFS=$as_save_IFS
7861
7862 fi
7863 fi
7864 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7865 if test -n "$ac_ct_OTOOL64"; then
7866   { echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
7867 echo "${ECHO_T}$ac_ct_OTOOL64" >&6; }
7868 else
7869   { echo "$as_me:$LINENO: result: no" >&5
7870 echo "${ECHO_T}no" >&6; }
7871 fi
7872
7873   if test "x$ac_ct_OTOOL64" = x; then
7874     OTOOL64=":"
7875   else
7876     case $cross_compiling:$ac_tool_warned in
7877 yes:)
7878 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7879 whose name does not start with the host triplet.  If you think this
7880 configuration is useful to you, please write to autoconf@gnu.org." >&5
7881 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7882 whose name does not start with the host triplet.  If you think this
7883 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7884 ac_tool_warned=yes ;;
7885 esac
7886     OTOOL64=$ac_ct_OTOOL64
7887   fi
7888 else
7889   OTOOL64="$ac_cv_prog_OTOOL64"
7890 fi
7891
7892
7893
7894
7895
7896
7897
7898
7899
7900
7901
7902
7903
7904
7905
7906
7907
7908
7909
7910
7911
7912
7913
7914
7915
7916
7917
7918     { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7919 echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
7920 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7921   echo $ECHO_N "(cached) $ECHO_C" >&6
7922 else
7923   lt_cv_apple_cc_single_mod=no
7924       if test -z "${LT_MULTI_MODULE}"; then
7925         # By default we will add the -single_module flag. You can override
7926         # by either setting the environment variable LT_MULTI_MODULE
7927         # non-empty at configure time, or by adding -multi_module to the
7928         # link flags.
7929         rm -rf libconftest.dylib*
7930         echo "int foo(void){return 1;}" > conftest.c
7931         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7932 -dynamiclib -Wl,-single_module conftest.c" >&5
7933         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7934           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7935         _lt_result=$?
7936         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7937           lt_cv_apple_cc_single_mod=yes
7938         else
7939           cat conftest.err >&5
7940         fi
7941         rm -rf libconftest.dylib*
7942         rm -f conftest.*
7943       fi
7944 fi
7945 { echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7946 echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
7947     { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7948 echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
7949 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7950   echo $ECHO_N "(cached) $ECHO_C" >&6
7951 else
7952   lt_cv_ld_exported_symbols_list=no
7953       save_LDFLAGS=$LDFLAGS
7954       echo "_main" > conftest.sym
7955       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7956       cat >conftest.$ac_ext <<_ACEOF
7957 /* confdefs.h.  */
7958 _ACEOF
7959 cat confdefs.h >>conftest.$ac_ext
7960 cat >>conftest.$ac_ext <<_ACEOF
7961 /* end confdefs.h.  */
7962
7963 int
7964 main ()
7965 {
7966
7967   ;
7968   return 0;
7969 }
7970 _ACEOF
7971 rm -f conftest.$ac_objext conftest$ac_exeext
7972 if { (ac_try="$ac_link"
7973 case "(($ac_try" in
7974   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7975   *) ac_try_echo=$ac_try;;
7976 esac
7977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7978   (eval "$ac_link") 2>conftest.er1
7979   ac_status=$?
7980   grep -v '^ *+' conftest.er1 >conftest.err
7981   rm -f conftest.er1
7982   cat conftest.err >&5
7983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7984   (exit $ac_status); } && {
7985          test -z "$ac_c_werror_flag" ||
7986          test ! -s conftest.err
7987        } && test -s conftest$ac_exeext &&
7988        $as_test_x conftest$ac_exeext; then
7989   lt_cv_ld_exported_symbols_list=yes
7990 else
7991   echo "$as_me: failed program was:" >&5
7992 sed 's/^/| /' conftest.$ac_ext >&5
7993
7994         lt_cv_ld_exported_symbols_list=no
7995 fi
7996
7997 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7998       conftest$ac_exeext conftest.$ac_ext
7999         LDFLAGS="$save_LDFLAGS"
8000
8001 fi
8002 { echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
8003 echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
8004     case $host_os in
8005     rhapsody* | darwin1.[012])
8006       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8007     darwin1.*)
8008       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8009     darwin*) # darwin 5.x on
8010       # if running on 10.5 or later, the deployment target defaults
8011       # to the OS version, if on x86, and 10.4, the deployment
8012       # target defaults to 10.4. Don't you love it?
8013       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8014         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8015           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8016         10.[012]*)
8017           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8018         10.*)
8019           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8020       esac
8021     ;;
8022   esac
8023     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8024       _lt_dar_single_mod='$single_module'
8025     fi
8026     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8027       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8028     else
8029       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8030     fi
8031     if test "$DSYMUTIL" != ":"; then
8032       _lt_dsymutil='~$DSYMUTIL $lib || :'
8033     else
8034       _lt_dsymutil=
8035     fi
8036     ;;
8037   esac
8038
8039 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8040 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
8041 if test "${ac_cv_header_stdc+set}" = set; then
8042   echo $ECHO_N "(cached) $ECHO_C" >&6
8043 else
8044   cat >conftest.$ac_ext <<_ACEOF
8045 /* confdefs.h.  */
8046 _ACEOF
8047 cat confdefs.h >>conftest.$ac_ext
8048 cat >>conftest.$ac_ext <<_ACEOF
8049 /* end confdefs.h.  */
8050 #include <stdlib.h>
8051 #include <stdarg.h>
8052 #include <string.h>
8053 #include <float.h>
8054
8055 int
8056 main ()
8057 {
8058
8059   ;
8060   return 0;
8061 }
8062 _ACEOF
8063 rm -f conftest.$ac_objext
8064 if { (ac_try="$ac_compile"
8065 case "(($ac_try" in
8066   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8067   *) ac_try_echo=$ac_try;;
8068 esac
8069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8070   (eval "$ac_compile") 2>conftest.er1
8071   ac_status=$?
8072   grep -v '^ *+' conftest.er1 >conftest.err
8073   rm -f conftest.er1
8074   cat conftest.err >&5
8075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8076   (exit $ac_status); } && {
8077          test -z "$ac_c_werror_flag" ||
8078          test ! -s conftest.err
8079        } && test -s conftest.$ac_objext; then
8080   ac_cv_header_stdc=yes
8081 else
8082   echo "$as_me: failed program was:" >&5
8083 sed 's/^/| /' conftest.$ac_ext >&5
8084
8085         ac_cv_header_stdc=no
8086 fi
8087
8088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8089
8090 if test $ac_cv_header_stdc = yes; then
8091   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8092   cat >conftest.$ac_ext <<_ACEOF
8093 /* confdefs.h.  */
8094 _ACEOF
8095 cat confdefs.h >>conftest.$ac_ext
8096 cat >>conftest.$ac_ext <<_ACEOF
8097 /* end confdefs.h.  */
8098 #include <string.h>
8099
8100 _ACEOF
8101 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8102   $EGREP "memchr" >/dev/null 2>&1; then
8103   :
8104 else
8105   ac_cv_header_stdc=no
8106 fi
8107 rm -f conftest*
8108
8109 fi
8110
8111 if test $ac_cv_header_stdc = yes; then
8112   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8113   cat >conftest.$ac_ext <<_ACEOF
8114 /* confdefs.h.  */
8115 _ACEOF
8116 cat confdefs.h >>conftest.$ac_ext
8117 cat >>conftest.$ac_ext <<_ACEOF
8118 /* end confdefs.h.  */
8119 #include <stdlib.h>
8120
8121 _ACEOF
8122 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8123   $EGREP "free" >/dev/null 2>&1; then
8124   :
8125 else
8126   ac_cv_header_stdc=no
8127 fi
8128 rm -f conftest*
8129
8130 fi
8131
8132 if test $ac_cv_header_stdc = yes; then
8133   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8134   if test "$cross_compiling" = yes; then
8135   :
8136 else
8137   cat >conftest.$ac_ext <<_ACEOF
8138 /* confdefs.h.  */
8139 _ACEOF
8140 cat confdefs.h >>conftest.$ac_ext
8141 cat >>conftest.$ac_ext <<_ACEOF
8142 /* end confdefs.h.  */
8143 #include <ctype.h>
8144 #include <stdlib.h>
8145 #if ((' ' & 0x0FF) == 0x020)
8146 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8147 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8148 #else
8149 # define ISLOWER(c) \
8150                    (('a' <= (c) && (c) <= 'i') \
8151                      || ('j' <= (c) && (c) <= 'r') \
8152                      || ('s' <= (c) && (c) <= 'z'))
8153 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8154 #endif
8155
8156 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8157 int
8158 main ()
8159 {
8160   int i;
8161   for (i = 0; i < 256; i++)
8162     if (XOR (islower (i), ISLOWER (i))
8163         || toupper (i) != TOUPPER (i))
8164       return 2;
8165   return 0;
8166 }
8167 _ACEOF
8168 rm -f conftest$ac_exeext
8169 if { (ac_try="$ac_link"
8170 case "(($ac_try" in
8171   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8172   *) ac_try_echo=$ac_try;;
8173 esac
8174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8175   (eval "$ac_link") 2>&5
8176   ac_status=$?
8177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8178   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8179   { (case "(($ac_try" in
8180   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8181   *) ac_try_echo=$ac_try;;
8182 esac
8183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8184   (eval "$ac_try") 2>&5
8185   ac_status=$?
8186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8187   (exit $ac_status); }; }; then
8188   :
8189 else
8190   echo "$as_me: program exited with status $ac_status" >&5
8191 echo "$as_me: failed program was:" >&5
8192 sed 's/^/| /' conftest.$ac_ext >&5
8193
8194 ( exit $ac_status )
8195 ac_cv_header_stdc=no
8196 fi
8197 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8198 fi
8199
8200
8201 fi
8202 fi
8203 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8204 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
8205 if test $ac_cv_header_stdc = yes; then
8206
8207 cat >>confdefs.h <<\_ACEOF
8208 #define STDC_HEADERS 1
8209 _ACEOF
8210
8211 fi
8212
8213 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8214
8215
8216
8217
8218
8219
8220
8221
8222
8223 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8224                   inttypes.h stdint.h unistd.h
8225 do
8226 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8227 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8228 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8229 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8230   echo $ECHO_N "(cached) $ECHO_C" >&6
8231 else
8232   cat >conftest.$ac_ext <<_ACEOF
8233 /* confdefs.h.  */
8234 _ACEOF
8235 cat confdefs.h >>conftest.$ac_ext
8236 cat >>conftest.$ac_ext <<_ACEOF
8237 /* end confdefs.h.  */
8238 $ac_includes_default
8239
8240 #include <$ac_header>
8241 _ACEOF
8242 rm -f conftest.$ac_objext
8243 if { (ac_try="$ac_compile"
8244 case "(($ac_try" in
8245   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8246   *) ac_try_echo=$ac_try;;
8247 esac
8248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8249   (eval "$ac_compile") 2>conftest.er1
8250   ac_status=$?
8251   grep -v '^ *+' conftest.er1 >conftest.err
8252   rm -f conftest.er1
8253   cat conftest.err >&5
8254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8255   (exit $ac_status); } && {
8256          test -z "$ac_c_werror_flag" ||
8257          test ! -s conftest.err
8258        } && test -s conftest.$ac_objext; then
8259   eval "$as_ac_Header=yes"
8260 else
8261   echo "$as_me: failed program was:" >&5
8262 sed 's/^/| /' conftest.$ac_ext >&5
8263
8264         eval "$as_ac_Header=no"
8265 fi
8266
8267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8268 fi
8269 ac_res=`eval echo '${'$as_ac_Header'}'`
8270                { echo "$as_me:$LINENO: result: $ac_res" >&5
8271 echo "${ECHO_T}$ac_res" >&6; }
8272 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8273   cat >>confdefs.h <<_ACEOF
8274 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8275 _ACEOF
8276
8277 fi
8278
8279 done
8280
8281
8282
8283 for ac_header in dlfcn.h
8284 do
8285 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8286 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8287 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8288 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8289   echo $ECHO_N "(cached) $ECHO_C" >&6
8290 else
8291   cat >conftest.$ac_ext <<_ACEOF
8292 /* confdefs.h.  */
8293 _ACEOF
8294 cat confdefs.h >>conftest.$ac_ext
8295 cat >>conftest.$ac_ext <<_ACEOF
8296 /* end confdefs.h.  */
8297 $ac_includes_default
8298
8299 #include <$ac_header>
8300 _ACEOF
8301 rm -f conftest.$ac_objext
8302 if { (ac_try="$ac_compile"
8303 case "(($ac_try" in
8304   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8305   *) ac_try_echo=$ac_try;;
8306 esac
8307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8308   (eval "$ac_compile") 2>conftest.er1
8309   ac_status=$?
8310   grep -v '^ *+' conftest.er1 >conftest.err
8311   rm -f conftest.er1
8312   cat conftest.err >&5
8313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8314   (exit $ac_status); } && {
8315          test -z "$ac_c_werror_flag" ||
8316          test ! -s conftest.err
8317        } && test -s conftest.$ac_objext; then
8318   eval "$as_ac_Header=yes"
8319 else
8320   echo "$as_me: failed program was:" >&5
8321 sed 's/^/| /' conftest.$ac_ext >&5
8322
8323         eval "$as_ac_Header=no"
8324 fi
8325
8326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8327 fi
8328 ac_res=`eval echo '${'$as_ac_Header'}'`
8329                { echo "$as_me:$LINENO: result: $ac_res" >&5
8330 echo "${ECHO_T}$ac_res" >&6; }
8331 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8332   cat >>confdefs.h <<_ACEOF
8333 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8334 _ACEOF
8335
8336 fi
8337
8338 done
8339
8340
8341
8342 ac_ext=cpp
8343 ac_cpp='$CXXCPP $CPPFLAGS'
8344 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8345 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8346 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8347 if test -z "$CXX"; then
8348   if test -n "$CCC"; then
8349     CXX=$CCC
8350   else
8351     if test -n "$ac_tool_prefix"; then
8352   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
8353   do
8354     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8355 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8356 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8357 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8358 if test "${ac_cv_prog_CXX+set}" = set; then
8359   echo $ECHO_N "(cached) $ECHO_C" >&6
8360 else
8361   if test -n "$CXX"; then
8362   ac_cv_prog_CXX="$CXX" # Let the user override the test.
8363 else
8364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8365 for as_dir in $PATH
8366 do
8367   IFS=$as_save_IFS
8368   test -z "$as_dir" && as_dir=.
8369   for ac_exec_ext in '' $ac_executable_extensions; do
8370   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8371     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
8372     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8373     break 2
8374   fi
8375 done
8376 done
8377 IFS=$as_save_IFS
8378
8379 fi
8380 fi
8381 CXX=$ac_cv_prog_CXX
8382 if test -n "$CXX"; then
8383   { echo "$as_me:$LINENO: result: $CXX" >&5
8384 echo "${ECHO_T}$CXX" >&6; }
8385 else
8386   { echo "$as_me:$LINENO: result: no" >&5
8387 echo "${ECHO_T}no" >&6; }
8388 fi
8389
8390
8391     test -n "$CXX" && break
8392   done
8393 fi
8394 if test -z "$CXX"; then
8395   ac_ct_CXX=$CXX
8396   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
8397 do
8398   # Extract the first word of "$ac_prog", so it can be a program name with args.
8399 set dummy $ac_prog; ac_word=$2
8400 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8401 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8402 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
8403   echo $ECHO_N "(cached) $ECHO_C" >&6
8404 else
8405   if test -n "$ac_ct_CXX"; then
8406   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
8407 else
8408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8409 for as_dir in $PATH
8410 do
8411   IFS=$as_save_IFS
8412   test -z "$as_dir" && as_dir=.
8413   for ac_exec_ext in '' $ac_executable_extensions; do
8414   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8415     ac_cv_prog_ac_ct_CXX="$ac_prog"
8416     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8417     break 2
8418   fi
8419 done
8420 done
8421 IFS=$as_save_IFS
8422
8423 fi
8424 fi
8425 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
8426 if test -n "$ac_ct_CXX"; then
8427   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
8428 echo "${ECHO_T}$ac_ct_CXX" >&6; }
8429 else
8430   { echo "$as_me:$LINENO: result: no" >&5
8431 echo "${ECHO_T}no" >&6; }
8432 fi
8433
8434
8435   test -n "$ac_ct_CXX" && break
8436 done
8437
8438   if test "x$ac_ct_CXX" = x; then
8439     CXX="g++"
8440   else
8441     case $cross_compiling:$ac_tool_warned in
8442 yes:)
8443 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8444 whose name does not start with the host triplet.  If you think this
8445 configuration is useful to you, please write to autoconf@gnu.org." >&5
8446 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8447 whose name does not start with the host triplet.  If you think this
8448 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8449 ac_tool_warned=yes ;;
8450 esac
8451     CXX=$ac_ct_CXX
8452   fi
8453 fi
8454
8455   fi
8456 fi
8457 # Provide some information about the compiler.
8458 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
8459 ac_compiler=`set X $ac_compile; echo $2`
8460 { (ac_try="$ac_compiler --version >&5"
8461 case "(($ac_try" in
8462   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8463   *) ac_try_echo=$ac_try;;
8464 esac
8465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8466   (eval "$ac_compiler --version >&5") 2>&5
8467   ac_status=$?
8468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8469   (exit $ac_status); }
8470 { (ac_try="$ac_compiler -v >&5"
8471 case "(($ac_try" in
8472   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8473   *) ac_try_echo=$ac_try;;
8474 esac
8475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8476   (eval "$ac_compiler -v >&5") 2>&5
8477   ac_status=$?
8478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8479   (exit $ac_status); }
8480 { (ac_try="$ac_compiler -V >&5"
8481 case "(($ac_try" in
8482   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8483   *) ac_try_echo=$ac_try;;
8484 esac
8485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8486   (eval "$ac_compiler -V >&5") 2>&5
8487   ac_status=$?
8488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8489   (exit $ac_status); }
8490
8491 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
8492 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
8493 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
8494   echo $ECHO_N "(cached) $ECHO_C" >&6
8495 else
8496   cat >conftest.$ac_ext <<_ACEOF
8497 /* confdefs.h.  */
8498 _ACEOF
8499 cat confdefs.h >>conftest.$ac_ext
8500 cat >>conftest.$ac_ext <<_ACEOF
8501 /* end confdefs.h.  */
8502
8503 int
8504 main ()
8505 {
8506 #ifndef __GNUC__
8507        choke me
8508 #endif
8509
8510   ;
8511   return 0;
8512 }
8513 _ACEOF
8514 rm -f conftest.$ac_objext
8515 if { (ac_try="$ac_compile"
8516 case "(($ac_try" in
8517   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8518   *) ac_try_echo=$ac_try;;
8519 esac
8520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8521   (eval "$ac_compile") 2>conftest.er1
8522   ac_status=$?
8523   grep -v '^ *+' conftest.er1 >conftest.err
8524   rm -f conftest.er1
8525   cat conftest.err >&5
8526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8527   (exit $ac_status); } && {
8528          test -z "$ac_cxx_werror_flag" ||
8529          test ! -s conftest.err
8530        } && test -s conftest.$ac_objext; then
8531   ac_compiler_gnu=yes
8532 else
8533   echo "$as_me: failed program was:" >&5
8534 sed 's/^/| /' conftest.$ac_ext >&5
8535
8536         ac_compiler_gnu=no
8537 fi
8538
8539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8540 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
8541
8542 fi
8543 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
8544 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
8545 GXX=`test $ac_compiler_gnu = yes && echo yes`
8546 ac_test_CXXFLAGS=${CXXFLAGS+set}
8547 ac_save_CXXFLAGS=$CXXFLAGS
8548 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
8549 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
8550 if test "${ac_cv_prog_cxx_g+set}" = set; then
8551   echo $ECHO_N "(cached) $ECHO_C" >&6
8552 else
8553   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
8554    ac_cxx_werror_flag=yes
8555    ac_cv_prog_cxx_g=no
8556    CXXFLAGS="-g"
8557    cat >conftest.$ac_ext <<_ACEOF
8558 /* confdefs.h.  */
8559 _ACEOF
8560 cat confdefs.h >>conftest.$ac_ext
8561 cat >>conftest.$ac_ext <<_ACEOF
8562 /* end confdefs.h.  */
8563
8564 int
8565 main ()
8566 {
8567
8568   ;
8569   return 0;
8570 }
8571 _ACEOF
8572 rm -f conftest.$ac_objext
8573 if { (ac_try="$ac_compile"
8574 case "(($ac_try" in
8575   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8576   *) ac_try_echo=$ac_try;;
8577 esac
8578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8579   (eval "$ac_compile") 2>conftest.er1
8580   ac_status=$?
8581   grep -v '^ *+' conftest.er1 >conftest.err
8582   rm -f conftest.er1
8583   cat conftest.err >&5
8584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8585   (exit $ac_status); } && {
8586          test -z "$ac_cxx_werror_flag" ||
8587          test ! -s conftest.err
8588        } && test -s conftest.$ac_objext; then
8589   ac_cv_prog_cxx_g=yes
8590 else
8591   echo "$as_me: failed program was:" >&5
8592 sed 's/^/| /' conftest.$ac_ext >&5
8593
8594         CXXFLAGS=""
8595       cat >conftest.$ac_ext <<_ACEOF
8596 /* confdefs.h.  */
8597 _ACEOF
8598 cat confdefs.h >>conftest.$ac_ext
8599 cat >>conftest.$ac_ext <<_ACEOF
8600 /* end confdefs.h.  */
8601
8602 int
8603 main ()
8604 {
8605
8606   ;
8607   return 0;
8608 }
8609 _ACEOF
8610 rm -f conftest.$ac_objext
8611 if { (ac_try="$ac_compile"
8612 case "(($ac_try" in
8613   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8614   *) ac_try_echo=$ac_try;;
8615 esac
8616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8617   (eval "$ac_compile") 2>conftest.er1
8618   ac_status=$?
8619   grep -v '^ *+' conftest.er1 >conftest.err
8620   rm -f conftest.er1
8621   cat conftest.err >&5
8622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8623   (exit $ac_status); } && {
8624          test -z "$ac_cxx_werror_flag" ||
8625          test ! -s conftest.err
8626        } && test -s conftest.$ac_objext; then
8627   :
8628 else
8629   echo "$as_me: failed program was:" >&5
8630 sed 's/^/| /' conftest.$ac_ext >&5
8631
8632         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8633          CXXFLAGS="-g"
8634          cat >conftest.$ac_ext <<_ACEOF
8635 /* confdefs.h.  */
8636 _ACEOF
8637 cat confdefs.h >>conftest.$ac_ext
8638 cat >>conftest.$ac_ext <<_ACEOF
8639 /* end confdefs.h.  */
8640
8641 int
8642 main ()
8643 {
8644
8645   ;
8646   return 0;
8647 }
8648 _ACEOF
8649 rm -f conftest.$ac_objext
8650 if { (ac_try="$ac_compile"
8651 case "(($ac_try" in
8652   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8653   *) ac_try_echo=$ac_try;;
8654 esac
8655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8656   (eval "$ac_compile") 2>conftest.er1
8657   ac_status=$?
8658   grep -v '^ *+' conftest.er1 >conftest.err
8659   rm -f conftest.er1
8660   cat conftest.err >&5
8661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8662   (exit $ac_status); } && {
8663          test -z "$ac_cxx_werror_flag" ||
8664          test ! -s conftest.err
8665        } && test -s conftest.$ac_objext; then
8666   ac_cv_prog_cxx_g=yes
8667 else
8668   echo "$as_me: failed program was:" >&5
8669 sed 's/^/| /' conftest.$ac_ext >&5
8670
8671
8672 fi
8673
8674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8675 fi
8676
8677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8678 fi
8679
8680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8681    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8682 fi
8683 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
8684 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
8685 if test "$ac_test_CXXFLAGS" = set; then
8686   CXXFLAGS=$ac_save_CXXFLAGS
8687 elif test $ac_cv_prog_cxx_g = yes; then
8688   if test "$GXX" = yes; then
8689     CXXFLAGS="-g -O2"
8690   else
8691     CXXFLAGS="-g"
8692   fi
8693 else
8694   if test "$GXX" = yes; then
8695     CXXFLAGS="-O2"
8696   else
8697     CXXFLAGS=
8698   fi
8699 fi
8700 ac_ext=c
8701 ac_cpp='$CPP $CPPFLAGS'
8702 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8703 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8704 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8705
8706 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
8707     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
8708     (test "X$CXX" != "Xg++"))) ; then
8709   ac_ext=cpp
8710 ac_cpp='$CXXCPP $CPPFLAGS'
8711 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8712 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8713 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8714 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
8715 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
8716 if test -z "$CXXCPP"; then
8717   if test "${ac_cv_prog_CXXCPP+set}" = set; then
8718   echo $ECHO_N "(cached) $ECHO_C" >&6
8719 else
8720       # Double quotes because CXXCPP needs to be expanded
8721     for CXXCPP in "$CXX -E" "/lib/cpp"
8722     do
8723       ac_preproc_ok=false
8724 for ac_cxx_preproc_warn_flag in '' yes
8725 do
8726   # Use a header file that comes with gcc, so configuring glibc
8727   # with a fresh cross-compiler works.
8728   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8729   # <limits.h> exists even on freestanding compilers.
8730   # On the NeXT, cc -E runs the code through the compiler's parser,
8731   # not just through cpp. "Syntax error" is here to catch this case.
8732   cat >conftest.$ac_ext <<_ACEOF
8733 /* confdefs.h.  */
8734 _ACEOF
8735 cat confdefs.h >>conftest.$ac_ext
8736 cat >>conftest.$ac_ext <<_ACEOF
8737 /* end confdefs.h.  */
8738 #ifdef __STDC__
8739 # include <limits.h>
8740 #else
8741 # include <assert.h>
8742 #endif
8743                      Syntax error
8744 _ACEOF
8745 if { (ac_try="$ac_cpp conftest.$ac_ext"
8746 case "(($ac_try" in
8747   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8748   *) ac_try_echo=$ac_try;;
8749 esac
8750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8751   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8752   ac_status=$?
8753   grep -v '^ *+' conftest.er1 >conftest.err
8754   rm -f conftest.er1
8755   cat conftest.err >&5
8756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8757   (exit $ac_status); } >/dev/null && {
8758          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8759          test ! -s conftest.err
8760        }; then
8761   :
8762 else
8763   echo "$as_me: failed program was:" >&5
8764 sed 's/^/| /' conftest.$ac_ext >&5
8765
8766   # Broken: fails on valid input.
8767 continue
8768 fi
8769
8770 rm -f conftest.err conftest.$ac_ext
8771
8772   # OK, works on sane cases.  Now check whether nonexistent headers
8773   # can be detected and how.
8774   cat >conftest.$ac_ext <<_ACEOF
8775 /* confdefs.h.  */
8776 _ACEOF
8777 cat confdefs.h >>conftest.$ac_ext
8778 cat >>conftest.$ac_ext <<_ACEOF
8779 /* end confdefs.h.  */
8780 #include <ac_nonexistent.h>
8781 _ACEOF
8782 if { (ac_try="$ac_cpp conftest.$ac_ext"
8783 case "(($ac_try" in
8784   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8785   *) ac_try_echo=$ac_try;;
8786 esac
8787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8788   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8789   ac_status=$?
8790   grep -v '^ *+' conftest.er1 >conftest.err
8791   rm -f conftest.er1
8792   cat conftest.err >&5
8793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8794   (exit $ac_status); } >/dev/null && {
8795          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8796          test ! -s conftest.err
8797        }; then
8798   # Broken: success on invalid input.
8799 continue
8800 else
8801   echo "$as_me: failed program was:" >&5
8802 sed 's/^/| /' conftest.$ac_ext >&5
8803
8804   # Passes both tests.
8805 ac_preproc_ok=:
8806 break
8807 fi
8808
8809 rm -f conftest.err conftest.$ac_ext
8810
8811 done
8812 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8813 rm -f conftest.err conftest.$ac_ext
8814 if $ac_preproc_ok; then
8815   break
8816 fi
8817
8818     done
8819     ac_cv_prog_CXXCPP=$CXXCPP
8820
8821 fi
8822   CXXCPP=$ac_cv_prog_CXXCPP
8823 else
8824   ac_cv_prog_CXXCPP=$CXXCPP
8825 fi
8826 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
8827 echo "${ECHO_T}$CXXCPP" >&6; }
8828 ac_preproc_ok=false
8829 for ac_cxx_preproc_warn_flag in '' yes
8830 do
8831   # Use a header file that comes with gcc, so configuring glibc
8832   # with a fresh cross-compiler works.
8833   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8834   # <limits.h> exists even on freestanding compilers.
8835   # On the NeXT, cc -E runs the code through the compiler's parser,
8836   # not just through cpp. "Syntax error" is here to catch this case.
8837   cat >conftest.$ac_ext <<_ACEOF
8838 /* confdefs.h.  */
8839 _ACEOF
8840 cat confdefs.h >>conftest.$ac_ext
8841 cat >>conftest.$ac_ext <<_ACEOF
8842 /* end confdefs.h.  */
8843 #ifdef __STDC__
8844 # include <limits.h>
8845 #else
8846 # include <assert.h>
8847 #endif
8848                      Syntax error
8849 _ACEOF
8850 if { (ac_try="$ac_cpp conftest.$ac_ext"
8851 case "(($ac_try" in
8852   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8853   *) ac_try_echo=$ac_try;;
8854 esac
8855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8856   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8857   ac_status=$?
8858   grep -v '^ *+' conftest.er1 >conftest.err
8859   rm -f conftest.er1
8860   cat conftest.err >&5
8861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8862   (exit $ac_status); } >/dev/null && {
8863          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8864          test ! -s conftest.err
8865        }; then
8866   :
8867 else
8868   echo "$as_me: failed program was:" >&5
8869 sed 's/^/| /' conftest.$ac_ext >&5
8870
8871   # Broken: fails on valid input.
8872 continue
8873 fi
8874
8875 rm -f conftest.err conftest.$ac_ext
8876
8877   # OK, works on sane cases.  Now check whether nonexistent headers
8878   # can be detected and how.
8879   cat >conftest.$ac_ext <<_ACEOF
8880 /* confdefs.h.  */
8881 _ACEOF
8882 cat confdefs.h >>conftest.$ac_ext
8883 cat >>conftest.$ac_ext <<_ACEOF
8884 /* end confdefs.h.  */
8885 #include <ac_nonexistent.h>
8886 _ACEOF
8887 if { (ac_try="$ac_cpp conftest.$ac_ext"
8888 case "(($ac_try" in
8889   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8890   *) ac_try_echo=$ac_try;;
8891 esac
8892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8893   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8894   ac_status=$?
8895   grep -v '^ *+' conftest.er1 >conftest.err
8896   rm -f conftest.er1
8897   cat conftest.err >&5
8898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8899   (exit $ac_status); } >/dev/null && {
8900          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8901          test ! -s conftest.err
8902        }; then
8903   # Broken: success on invalid input.
8904 continue
8905 else
8906   echo "$as_me: failed program was:" >&5
8907 sed 's/^/| /' conftest.$ac_ext >&5
8908
8909   # Passes both tests.
8910 ac_preproc_ok=:
8911 break
8912 fi
8913
8914 rm -f conftest.err conftest.$ac_ext
8915
8916 done
8917 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8918 rm -f conftest.err conftest.$ac_ext
8919 if $ac_preproc_ok; then
8920   :
8921 else
8922   _lt_caught_CXX_error=yes
8923 fi
8924
8925 ac_ext=c
8926 ac_cpp='$CPP $CPPFLAGS'
8927 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8928 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8929 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8930
8931 else
8932   _lt_caught_CXX_error=yes
8933 fi
8934
8935
8936
8937
8938
8939 # Set options
8940 # Check whether --enable-shared was given.
8941 if test "${enable_shared+set}" = set; then
8942   enableval=$enable_shared; p=${PACKAGE-default}
8943     case $enableval in
8944     yes) enable_shared=yes ;;
8945     no) enable_shared=no ;;
8946     *)
8947       enable_shared=no
8948       # Look at the argument we got.  We use all the common list separators.
8949       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8950       for pkg in $enableval; do
8951         IFS="$lt_save_ifs"
8952         if test "X$pkg" = "X$p"; then
8953           enable_shared=yes
8954         fi
8955       done
8956       IFS="$lt_save_ifs"
8957       ;;
8958     esac
8959 else
8960   enable_shared=yes
8961 fi
8962
8963
8964
8965
8966
8967
8968
8969 # Check whether --enable-static was given.
8970 if test "${enable_static+set}" = set; then
8971   enableval=$enable_static; p=${PACKAGE-default}
8972     case $enableval in
8973     yes) enable_static=yes ;;
8974     no) enable_static=no ;;
8975     *)
8976      enable_static=no
8977       # Look at the argument we got.  We use all the common list separators.
8978       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8979       for pkg in $enableval; do
8980         IFS="$lt_save_ifs"
8981         if test "X$pkg" = "X$p"; then
8982           enable_static=yes
8983         fi
8984       done
8985       IFS="$lt_save_ifs"
8986       ;;
8987     esac
8988 else
8989   enable_static=no
8990 fi
8991
8992
8993
8994
8995
8996
8997
8998
8999
9000
9001         enable_dlopen=no
9002
9003
9004   enable_win32_dll=no
9005
9006
9007
9008
9009
9010 # Check whether --with-pic was given.
9011 if test "${with_pic+set}" = set; then
9012   withval=$with_pic; pic_mode="$withval"
9013 else
9014   pic_mode=default
9015 fi
9016
9017
9018 test -z "$pic_mode" && pic_mode=default
9019
9020
9021
9022
9023
9024
9025
9026   # Check whether --enable-fast-install was given.
9027 if test "${enable_fast_install+set}" = set; then
9028   enableval=$enable_fast_install; p=${PACKAGE-default}
9029     case $enableval in
9030     yes) enable_fast_install=yes ;;
9031     no) enable_fast_install=no ;;
9032     *)
9033       enable_fast_install=no
9034       # Look at the argument we got.  We use all the common list separators.
9035       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9036       for pkg in $enableval; do
9037         IFS="$lt_save_ifs"
9038         if test "X$pkg" = "X$p"; then
9039           enable_fast_install=yes
9040         fi
9041       done
9042       IFS="$lt_save_ifs"
9043       ;;
9044     esac
9045 else
9046   enable_fast_install=yes
9047 fi
9048
9049
9050
9051
9052
9053
9054
9055
9056
9057
9058
9059 # This can be used to rebuild libtool when needed
9060 LIBTOOL_DEPS="$ltmain"
9061
9062 # Always use our own libtool.
9063 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9064
9065
9066
9067
9068
9069
9070
9071
9072
9073
9074
9075
9076
9077
9078
9079
9080
9081
9082
9083
9084
9085
9086
9087
9088
9089 test -z "$LN_S" && LN_S="ln -s"
9090
9091
9092
9093
9094
9095
9096
9097
9098
9099
9100
9101
9102
9103
9104 if test -n "${ZSH_VERSION+set}" ; then
9105    setopt NO_GLOB_SUBST
9106 fi
9107
9108 { echo "$as_me:$LINENO: checking for objdir" >&5
9109 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9110 if test "${lt_cv_objdir+set}" = set; then
9111   echo $ECHO_N "(cached) $ECHO_C" >&6
9112 else
9113   rm -f .libs 2>/dev/null
9114 mkdir .libs 2>/dev/null
9115 if test -d .libs; then
9116   lt_cv_objdir=.libs
9117 else
9118   # MS-DOS does not allow filenames that begin with a dot.
9119   lt_cv_objdir=_libs
9120 fi
9121 rmdir .libs 2>/dev/null
9122 fi
9123 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
9124 echo "${ECHO_T}$lt_cv_objdir" >&6; }
9125 objdir=$lt_cv_objdir
9126
9127
9128
9129
9130
9131 cat >>confdefs.h <<_ACEOF
9132 #define LT_OBJDIR "$lt_cv_objdir/"
9133 _ACEOF
9134
9135
9136
9137
9138
9139
9140
9141
9142
9143
9144
9145
9146
9147
9148
9149
9150
9151 case $host_os in
9152 aix3*)
9153   # AIX sometimes has problems with the GCC collect2 program.  For some
9154   # reason, if we set the COLLECT_NAMES environment variable, the problems
9155   # vanish in a puff of smoke.
9156   if test "X${COLLECT_NAMES+set}" != Xset; then
9157     COLLECT_NAMES=
9158     export COLLECT_NAMES
9159   fi
9160   ;;
9161 esac
9162
9163 # Sed substitution that helps us do robust quoting.  It backslashifies
9164 # metacharacters that are still active within double-quoted strings.
9165 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
9166
9167 # Same as above, but do not quote variable references.
9168 double_quote_subst='s/\(["`\\]\)/\\\1/g'
9169
9170 # Sed substitution to delay expansion of an escaped shell variable in a
9171 # double_quote_subst'ed string.
9172 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9173
9174 # Sed substitution to delay expansion of an escaped single quote.
9175 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
9176
9177 # Sed substitution to avoid accidental globbing in evaled expressions
9178 no_glob_subst='s/\*/\\\*/g'
9179
9180 # Global variables:
9181 ofile=libtool
9182 can_build_shared=yes
9183
9184 # All known linkers require a `.a' archive for static linking (except MSVC,
9185 # which needs '.lib').
9186 libext=a
9187
9188 with_gnu_ld="$lt_cv_prog_gnu_ld"
9189
9190 old_CC="$CC"
9191 old_CFLAGS="$CFLAGS"
9192
9193 # Set sane defaults for various variables
9194 test -z "$CC" && CC=cc
9195 test -z "$LTCC" && LTCC=$CC
9196 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9197 test -z "$LD" && LD=ld
9198 test -z "$ac_objext" && ac_objext=o
9199
9200 for cc_temp in $compiler""; do
9201   case $cc_temp in
9202     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9203     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9204     \-*) ;;
9205     *) break;;
9206   esac
9207 done
9208 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9209
9210
9211 # Only perform the check for file, if the check method requires it
9212 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9213 case $deplibs_check_method in
9214 file_magic*)
9215   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9216     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
9217 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
9218 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9219   echo $ECHO_N "(cached) $ECHO_C" >&6
9220 else
9221   case $MAGIC_CMD in
9222 [\\/*] |  ?:[\\/]*)
9223   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9224   ;;
9225 *)
9226   lt_save_MAGIC_CMD="$MAGIC_CMD"
9227   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9228   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9229   for ac_dir in $ac_dummy; do
9230     IFS="$lt_save_ifs"
9231     test -z "$ac_dir" && ac_dir=.
9232     if test -f $ac_dir/${ac_tool_prefix}file; then
9233       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9234       if test -n "$file_magic_test_file"; then
9235         case $deplibs_check_method in
9236         "file_magic "*)
9237           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9238           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9239           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9240             $EGREP "$file_magic_regex" > /dev/null; then
9241             :
9242           else
9243             cat <<_LT_EOF 1>&2
9244
9245 *** Warning: the command libtool uses to detect shared libraries,
9246 *** $file_magic_cmd, produces output that libtool cannot recognize.
9247 *** The result is that libtool may fail to recognize shared libraries
9248 *** as such.  This will affect the creation of libtool libraries that
9249 *** depend on shared libraries, but programs linked with such libtool
9250 *** libraries will work regardless of this problem.  Nevertheless, you
9251 *** may want to report the problem to your system manager and/or to
9252 *** bug-libtool@gnu.org
9253
9254 _LT_EOF
9255           fi ;;
9256         esac
9257       fi
9258       break
9259     fi
9260   done
9261   IFS="$lt_save_ifs"
9262   MAGIC_CMD="$lt_save_MAGIC_CMD"
9263   ;;
9264 esac
9265 fi
9266
9267 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9268 if test -n "$MAGIC_CMD"; then
9269   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9270 echo "${ECHO_T}$MAGIC_CMD" >&6; }
9271 else
9272   { echo "$as_me:$LINENO: result: no" >&5
9273 echo "${ECHO_T}no" >&6; }
9274 fi
9275
9276
9277
9278
9279
9280 if test -z "$lt_cv_path_MAGIC_CMD"; then
9281   if test -n "$ac_tool_prefix"; then
9282     { echo "$as_me:$LINENO: checking for file" >&5
9283 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
9284 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9285   echo $ECHO_N "(cached) $ECHO_C" >&6
9286 else
9287   case $MAGIC_CMD in
9288 [\\/*] |  ?:[\\/]*)
9289   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9290   ;;
9291 *)
9292   lt_save_MAGIC_CMD="$MAGIC_CMD"
9293   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9294   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9295   for ac_dir in $ac_dummy; do
9296     IFS="$lt_save_ifs"
9297     test -z "$ac_dir" && ac_dir=.
9298     if test -f $ac_dir/file; then
9299       lt_cv_path_MAGIC_CMD="$ac_dir/file"
9300       if test -n "$file_magic_test_file"; then
9301         case $deplibs_check_method in
9302         "file_magic "*)
9303           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9304           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9305           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9306             $EGREP "$file_magic_regex" > /dev/null; then
9307             :
9308           else
9309             cat <<_LT_EOF 1>&2
9310
9311 *** Warning: the command libtool uses to detect shared libraries,
9312 *** $file_magic_cmd, produces output that libtool cannot recognize.
9313 *** The result is that libtool may fail to recognize shared libraries
9314 *** as such.  This will affect the creation of libtool libraries that
9315 *** depend on shared libraries, but programs linked with such libtool
9316 *** libraries will work regardless of this problem.  Nevertheless, you
9317 *** may want to report the problem to your system manager and/or to
9318 *** bug-libtool@gnu.org
9319
9320 _LT_EOF
9321           fi ;;
9322         esac
9323       fi
9324       break
9325     fi
9326   done
9327   IFS="$lt_save_ifs"
9328   MAGIC_CMD="$lt_save_MAGIC_CMD"
9329   ;;
9330 esac
9331 fi
9332
9333 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9334 if test -n "$MAGIC_CMD"; then
9335   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9336 echo "${ECHO_T}$MAGIC_CMD" >&6; }
9337 else
9338   { echo "$as_me:$LINENO: result: no" >&5
9339 echo "${ECHO_T}no" >&6; }
9340 fi
9341
9342
9343   else
9344     MAGIC_CMD=:
9345   fi
9346 fi
9347
9348   fi
9349   ;;
9350 esac
9351
9352 # Use C for the default configuration in the libtool script
9353
9354 lt_save_CC="$CC"
9355 ac_ext=c
9356 ac_cpp='$CPP $CPPFLAGS'
9357 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9358 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9359 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9360
9361
9362 # Source file extension for C test sources.
9363 ac_ext=c
9364
9365 # Object file extension for compiled C test sources.
9366 objext=o
9367 objext=$objext
9368
9369 # Code to be used in simple compile tests
9370 lt_simple_compile_test_code="int some_variable = 0;"
9371
9372 # Code to be used in simple link tests
9373 lt_simple_link_test_code='int main(){return(0);}'
9374
9375
9376
9377
9378
9379
9380
9381 # If no C compiler was specified, use CC.
9382 LTCC=${LTCC-"$CC"}
9383
9384 # If no C compiler flags were specified, use CFLAGS.
9385 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9386
9387 # Allow CC to be a program name with arguments.
9388 compiler=$CC
9389
9390 # Save the default compiler, since it gets overwritten when the other
9391 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9392 compiler_DEFAULT=$CC
9393
9394 # save warnings/boilerplate of simple test code
9395 ac_outfile=conftest.$ac_objext
9396 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9397 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9398 _lt_compiler_boilerplate=`cat conftest.err`
9399 $RM conftest*
9400
9401 ac_outfile=conftest.$ac_objext
9402 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9403 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9404 _lt_linker_boilerplate=`cat conftest.err`
9405 $RM -r conftest*
9406
9407
9408 ## CAVEAT EMPTOR:
9409 ## There is no encapsulation within the following macros, do not change
9410 ## the running order or otherwise move them around unless you know exactly
9411 ## what you are doing...
9412 if test -n "$compiler"; then
9413
9414 lt_prog_compiler_no_builtin_flag=
9415
9416 if test "$GCC" = yes; then
9417   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
9418
9419   { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9420 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
9421 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
9422   echo $ECHO_N "(cached) $ECHO_C" >&6
9423 else
9424   lt_cv_prog_compiler_rtti_exceptions=no
9425    ac_outfile=conftest.$ac_objext
9426    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9427    lt_compiler_flag="-fno-rtti -fno-exceptions"
9428    # Insert the option either (1) after the last *FLAGS variable, or
9429    # (2) before a word containing "conftest.", or (3) at the end.
9430    # Note that $ac_compile itself does not contain backslashes and begins
9431    # with a dollar sign (not a hyphen), so the echo should work correctly.
9432    # The option is referenced via a variable to avoid confusing sed.
9433    lt_compile=`echo "$ac_compile" | $SED \
9434    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9435    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9436    -e 's:$: $lt_compiler_flag:'`
9437    (eval echo "\"\$as_me:9437: $lt_compile\"" >&5)
9438    (eval "$lt_compile" 2>conftest.err)
9439    ac_status=$?
9440    cat conftest.err >&5
9441    echo "$as_me:9441: \$? = $ac_status" >&5
9442    if (exit $ac_status) && test -s "$ac_outfile"; then
9443      # The compiler can only warn and ignore the option if not recognized
9444      # So say no if there are warnings other than the usual output.
9445      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9446      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9447      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9448        lt_cv_prog_compiler_rtti_exceptions=yes
9449      fi
9450    fi
9451    $RM conftest*
9452
9453 fi
9454 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9455 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9456
9457 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9458     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9459 else
9460     :
9461 fi
9462
9463 fi
9464
9465
9466
9467
9468
9469
9470   lt_prog_compiler_wl=
9471 lt_prog_compiler_pic=
9472 lt_prog_compiler_static=
9473
9474 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
9475 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
9476
9477   if test "$GCC" = yes; then
9478     lt_prog_compiler_wl='-Wl,'
9479     lt_prog_compiler_static='-static'
9480
9481     case $host_os in
9482       aix*)
9483       # All AIX code is PIC.
9484       if test "$host_cpu" = ia64; then
9485         # AIX 5 now supports IA64 processor
9486         lt_prog_compiler_static='-Bstatic'
9487       fi
9488       ;;
9489
9490     amigaos*)
9491       case $host_cpu in
9492       powerpc)
9493             # see comment about AmigaOS4 .so support
9494             lt_prog_compiler_pic='-fPIC'
9495         ;;
9496       m68k)
9497             # FIXME: we need at least 68020 code to build shared libraries, but
9498             # adding the `-m68020' flag to GCC prevents building anything better,
9499             # like `-m68040'.
9500             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9501         ;;
9502       esac
9503       ;;
9504
9505     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9506       # PIC is the default for these OSes.
9507       ;;
9508
9509     mingw* | cygwin* | pw32* | os2* | cegcc*)
9510       # This hack is so that the source file can tell whether it is being
9511       # built for inclusion in a dll (and should export symbols for example).
9512       # Although the cygwin gcc ignores -fPIC, still need this for old-style
9513       # (--disable-auto-import) libraries
9514       lt_prog_compiler_pic='-DDLL_EXPORT'
9515       ;;
9516
9517     darwin* | rhapsody*)
9518       # PIC is the default on this platform
9519       # Common symbols not allowed in MH_DYLIB files
9520       lt_prog_compiler_pic='-fno-common'
9521       ;;
9522
9523     hpux*)
9524       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9525       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9526       # sets the default TLS model and affects inlining.
9527       case $host_cpu in
9528       hppa*64*)
9529         # +Z the default
9530         ;;
9531       *)
9532         lt_prog_compiler_pic='-fPIC'
9533         ;;
9534       esac
9535       ;;
9536
9537     interix[3-9]*)
9538       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9539       # Instead, we relocate shared libraries at runtime.
9540       ;;
9541
9542     msdosdjgpp*)
9543       # Just because we use GCC doesn't mean we suddenly get shared libraries
9544       # on systems that don't support them.
9545       lt_prog_compiler_can_build_shared=no
9546       enable_shared=no
9547       ;;
9548
9549     *nto* | *qnx*)
9550       # QNX uses GNU C++, but need to define -shared option too, otherwise
9551       # it will coredump.
9552       lt_prog_compiler_pic='-fPIC -shared'
9553       ;;
9554
9555     sysv4*MP*)
9556       if test -d /usr/nec; then
9557         lt_prog_compiler_pic=-Kconform_pic
9558       fi
9559       ;;
9560
9561     *)
9562       lt_prog_compiler_pic='-fPIC'
9563       ;;
9564     esac
9565   else
9566     # PORTME Check for flag to pass linker flags through the system compiler.
9567     case $host_os in
9568     aix*)
9569       lt_prog_compiler_wl='-Wl,'
9570       if test "$host_cpu" = ia64; then
9571         # AIX 5 now supports IA64 processor
9572         lt_prog_compiler_static='-Bstatic'
9573       else
9574         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9575       fi
9576       ;;
9577
9578     mingw* | cygwin* | pw32* | os2* | cegcc*)
9579       # This hack is so that the source file can tell whether it is being
9580       # built for inclusion in a dll (and should export symbols for example).
9581       lt_prog_compiler_pic='-DDLL_EXPORT'
9582       ;;
9583
9584     hpux9* | hpux10* | hpux11*)
9585       lt_prog_compiler_wl='-Wl,'
9586       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9587       # not for PA HP-UX.
9588       case $host_cpu in
9589       hppa*64*|ia64*)
9590         # +Z the default
9591         ;;
9592       *)
9593         lt_prog_compiler_pic='+Z'
9594         ;;
9595       esac
9596       # Is there a better lt_prog_compiler_static that works with the bundled CC?
9597       lt_prog_compiler_static='${wl}-a ${wl}archive'
9598       ;;
9599
9600     irix5* | irix6* | nonstopux*)
9601       lt_prog_compiler_wl='-Wl,'
9602       # PIC (with -KPIC) is the default.
9603       lt_prog_compiler_static='-non_shared'
9604       ;;
9605
9606     linux* | k*bsd*-gnu)
9607       case $cc_basename in
9608       # old Intel for x86_64 which still supported -KPIC.
9609       ecc*)
9610         lt_prog_compiler_wl='-Wl,'
9611         lt_prog_compiler_pic='-KPIC'
9612         lt_prog_compiler_static='-static'
9613         ;;
9614       # icc used to be incompatible with GCC.
9615       # ICC 10 doesn't accept -KPIC any more.
9616       icc* | ifort*)
9617         lt_prog_compiler_wl='-Wl,'
9618         lt_prog_compiler_pic='-fPIC'
9619         lt_prog_compiler_static='-static'
9620         ;;
9621       # Lahey Fortran 8.1.
9622       lf95*)
9623         lt_prog_compiler_wl='-Wl,'
9624         lt_prog_compiler_pic='--shared'
9625         lt_prog_compiler_static='--static'
9626         ;;
9627       pgcc* | pgf77* | pgf90* | pgf95*)
9628         # Portland Group compilers (*not* the Pentium gcc compiler,
9629         # which looks to be a dead project)
9630         lt_prog_compiler_wl='-Wl,'
9631         lt_prog_compiler_pic='-fpic'
9632         lt_prog_compiler_static='-Bstatic'
9633         ;;
9634       ccc*)
9635         lt_prog_compiler_wl='-Wl,'
9636         # All Alpha code is PIC.
9637         lt_prog_compiler_static='-non_shared'
9638         ;;
9639       xl*)
9640         # IBM XL C 8.0/Fortran 10.1 on PPC
9641         lt_prog_compiler_wl='-Wl,'
9642         lt_prog_compiler_pic='-qpic'
9643         lt_prog_compiler_static='-qstaticlink'
9644         ;;
9645       *)
9646         case `$CC -V 2>&1 | sed 5q` in
9647         *Sun\ C*)
9648           # Sun C 5.9
9649           lt_prog_compiler_pic='-KPIC'
9650           lt_prog_compiler_static='-Bstatic'
9651           lt_prog_compiler_wl='-Wl,'
9652           ;;
9653         *Sun\ F*)
9654           # Sun Fortran 8.3 passes all unrecognized flags to the linker
9655           lt_prog_compiler_pic='-KPIC'
9656           lt_prog_compiler_static='-Bstatic'
9657           lt_prog_compiler_wl=''
9658           ;;
9659         esac
9660         ;;
9661       esac
9662       ;;
9663
9664     newsos6)
9665       lt_prog_compiler_pic='-KPIC'
9666       lt_prog_compiler_static='-Bstatic'
9667       ;;
9668
9669     *nto* | *qnx*)
9670       # QNX uses GNU C++, but need to define -shared option too, otherwise
9671       # it will coredump.
9672       lt_prog_compiler_pic='-fPIC -shared'
9673       ;;
9674
9675     osf3* | osf4* | osf5*)
9676       lt_prog_compiler_wl='-Wl,'
9677       # All OSF/1 code is PIC.
9678       lt_prog_compiler_static='-non_shared'
9679       ;;
9680
9681     rdos*)
9682       lt_prog_compiler_static='-non_shared'
9683       ;;
9684
9685     solaris*)
9686       lt_prog_compiler_pic='-KPIC'
9687       lt_prog_compiler_static='-Bstatic'
9688       case $cc_basename in
9689       f77* | f90* | f95*)
9690         lt_prog_compiler_wl='-Qoption ld ';;
9691       *)
9692         lt_prog_compiler_wl='-Wl,';;
9693       esac
9694       ;;
9695
9696     sunos4*)
9697       lt_prog_compiler_wl='-Qoption ld '
9698       lt_prog_compiler_pic='-PIC'
9699       lt_prog_compiler_static='-Bstatic'
9700       ;;
9701
9702     sysv4 | sysv4.2uw2* | sysv4.3*)
9703       lt_prog_compiler_wl='-Wl,'
9704       lt_prog_compiler_pic='-KPIC'
9705       lt_prog_compiler_static='-Bstatic'
9706       ;;
9707
9708     sysv4*MP*)
9709       if test -d /usr/nec ;then
9710         lt_prog_compiler_pic='-Kconform_pic'
9711         lt_prog_compiler_static='-Bstatic'
9712       fi
9713       ;;
9714
9715     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9716       lt_prog_compiler_wl='-Wl,'
9717       lt_prog_compiler_pic='-KPIC'
9718       lt_prog_compiler_static='-Bstatic'
9719       ;;
9720
9721     unicos*)
9722       lt_prog_compiler_wl='-Wl,'
9723       lt_prog_compiler_can_build_shared=no
9724       ;;
9725
9726     uts4*)
9727       lt_prog_compiler_pic='-pic'
9728       lt_prog_compiler_static='-Bstatic'
9729       ;;
9730
9731     *)
9732       lt_prog_compiler_can_build_shared=no
9733       ;;
9734     esac
9735   fi
9736
9737 case $host_os in
9738   # For platforms which do not support PIC, -DPIC is meaningless:
9739   *djgpp*)
9740     lt_prog_compiler_pic=
9741     ;;
9742   *)
9743     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9744     ;;
9745 esac
9746 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
9747 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
9748
9749
9750
9751
9752
9753
9754 #
9755 # Check to make sure the PIC flag actually works.
9756 #
9757 if test -n "$lt_prog_compiler_pic"; then
9758   { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9759 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
9760 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
9761   echo $ECHO_N "(cached) $ECHO_C" >&6
9762 else
9763   lt_cv_prog_compiler_pic_works=no
9764    ac_outfile=conftest.$ac_objext
9765    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9766    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9767    # Insert the option either (1) after the last *FLAGS variable, or
9768    # (2) before a word containing "conftest.", or (3) at the end.
9769    # Note that $ac_compile itself does not contain backslashes and begins
9770    # with a dollar sign (not a hyphen), so the echo should work correctly.
9771    # The option is referenced via a variable to avoid confusing sed.
9772    lt_compile=`echo "$ac_compile" | $SED \
9773    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9774    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9775    -e 's:$: $lt_compiler_flag:'`
9776    (eval echo "\"\$as_me:9776: $lt_compile\"" >&5)
9777    (eval "$lt_compile" 2>conftest.err)
9778    ac_status=$?
9779    cat conftest.err >&5
9780    echo "$as_me:9780: \$? = $ac_status" >&5
9781    if (exit $ac_status) && test -s "$ac_outfile"; then
9782      # The compiler can only warn and ignore the option if not recognized
9783      # So say no if there are warnings other than the usual output.
9784      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9785      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9786      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9787        lt_cv_prog_compiler_pic_works=yes
9788      fi
9789    fi
9790    $RM conftest*
9791
9792 fi
9793 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
9794 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
9795
9796 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9797     case $lt_prog_compiler_pic in
9798      "" | " "*) ;;
9799      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9800      esac
9801 else
9802     lt_prog_compiler_pic=
9803      lt_prog_compiler_can_build_shared=no
9804 fi
9805
9806 fi
9807
9808
9809
9810
9811
9812
9813 #
9814 # Check to make sure the static flag actually works.
9815 #
9816 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9817 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9818 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
9819 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
9820   echo $ECHO_N "(cached) $ECHO_C" >&6
9821 else
9822   lt_cv_prog_compiler_static_works=no
9823    save_LDFLAGS="$LDFLAGS"
9824    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9825    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9826    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9827      # The linker can only warn and ignore the option if not recognized
9828      # So say no if there are warnings
9829      if test -s conftest.err; then
9830        # Append any errors to the config.log.
9831        cat conftest.err 1>&5
9832        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9833        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9834        if diff conftest.exp conftest.er2 >/dev/null; then
9835          lt_cv_prog_compiler_static_works=yes
9836        fi
9837      else
9838        lt_cv_prog_compiler_static_works=yes
9839      fi
9840    fi
9841    $RM -r conftest*
9842    LDFLAGS="$save_LDFLAGS"
9843
9844 fi
9845 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
9846 echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
9847
9848 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9849     :
9850 else
9851     lt_prog_compiler_static=
9852 fi
9853
9854
9855
9856
9857
9858
9859
9860   { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9861 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
9862 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9863   echo $ECHO_N "(cached) $ECHO_C" >&6
9864 else
9865   lt_cv_prog_compiler_c_o=no
9866    $RM -r conftest 2>/dev/null
9867    mkdir conftest
9868    cd conftest
9869    mkdir out
9870    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9871
9872    lt_compiler_flag="-o out/conftest2.$ac_objext"
9873    # Insert the option either (1) after the last *FLAGS variable, or
9874    # (2) before a word containing "conftest.", or (3) at the end.
9875    # Note that $ac_compile itself does not contain backslashes and begins
9876    # with a dollar sign (not a hyphen), so the echo should work correctly.
9877    lt_compile=`echo "$ac_compile" | $SED \
9878    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9879    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9880    -e 's:$: $lt_compiler_flag:'`
9881    (eval echo "\"\$as_me:9881: $lt_compile\"" >&5)
9882    (eval "$lt_compile" 2>out/conftest.err)
9883    ac_status=$?
9884    cat out/conftest.err >&5
9885    echo "$as_me:9885: \$? = $ac_status" >&5
9886    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9887    then
9888      # The compiler can only warn and ignore the option if not recognized
9889      # So say no if there are warnings
9890      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9891      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9892      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9893        lt_cv_prog_compiler_c_o=yes
9894      fi
9895    fi
9896    chmod u+w . 2>&5
9897    $RM conftest*
9898    # SGI C++ compiler will create directory out/ii_files/ for
9899    # template instantiation
9900    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9901    $RM out/* && rmdir out
9902    cd ..
9903    $RM -r conftest
9904    $RM conftest*
9905
9906 fi
9907 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9908 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
9909
9910
9911
9912
9913
9914
9915   { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9916 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
9917 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9918   echo $ECHO_N "(cached) $ECHO_C" >&6
9919 else
9920   lt_cv_prog_compiler_c_o=no
9921    $RM -r conftest 2>/dev/null
9922    mkdir conftest
9923    cd conftest
9924    mkdir out
9925    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9926
9927    lt_compiler_flag="-o out/conftest2.$ac_objext"
9928    # Insert the option either (1) after the last *FLAGS variable, or
9929    # (2) before a word containing "conftest.", or (3) at the end.
9930    # Note that $ac_compile itself does not contain backslashes and begins
9931    # with a dollar sign (not a hyphen), so the echo should work correctly.
9932    lt_compile=`echo "$ac_compile" | $SED \
9933    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9934    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9935    -e 's:$: $lt_compiler_flag:'`
9936    (eval echo "\"\$as_me:9936: $lt_compile\"" >&5)
9937    (eval "$lt_compile" 2>out/conftest.err)
9938    ac_status=$?
9939    cat out/conftest.err >&5
9940    echo "$as_me:9940: \$? = $ac_status" >&5
9941    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9942    then
9943      # The compiler can only warn and ignore the option if not recognized
9944      # So say no if there are warnings
9945      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9946      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9947      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9948        lt_cv_prog_compiler_c_o=yes
9949      fi
9950    fi
9951    chmod u+w . 2>&5
9952    $RM conftest*
9953    # SGI C++ compiler will create directory out/ii_files/ for
9954    # template instantiation
9955    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9956    $RM out/* && rmdir out
9957    cd ..
9958    $RM -r conftest
9959    $RM conftest*
9960
9961 fi
9962 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9963 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
9964
9965
9966
9967
9968 hard_links="nottested"
9969 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9970   # do not overwrite the value of need_locks provided by the user
9971   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
9972 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
9973   hard_links=yes
9974   $RM conftest*
9975   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9976   touch conftest.a
9977   ln conftest.a conftest.b 2>&5 || hard_links=no
9978   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9979   { echo "$as_me:$LINENO: result: $hard_links" >&5
9980 echo "${ECHO_T}$hard_links" >&6; }
9981   if test "$hard_links" = no; then
9982     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9983 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9984     need_locks=warn
9985   fi
9986 else
9987   need_locks=no
9988 fi
9989
9990
9991
9992
9993
9994
9995   { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9996 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
9997
9998   runpath_var=
9999   allow_undefined_flag=
10000   always_export_symbols=no
10001   archive_cmds=
10002   archive_expsym_cmds=
10003   compiler_needs_object=no
10004   enable_shared_with_static_runtimes=no
10005   export_dynamic_flag_spec=
10006   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10007   hardcode_automatic=no
10008   hardcode_direct=no
10009   hardcode_direct_absolute=no
10010   hardcode_libdir_flag_spec=
10011   hardcode_libdir_flag_spec_ld=
10012   hardcode_libdir_separator=
10013   hardcode_minus_L=no
10014   hardcode_shlibpath_var=unsupported
10015   inherit_rpath=no
10016   link_all_deplibs=unknown
10017   module_cmds=
10018   module_expsym_cmds=
10019   old_archive_from_new_cmds=
10020   old_archive_from_expsyms_cmds=
10021   thread_safe_flag_spec=
10022   whole_archive_flag_spec=
10023   # include_expsyms should be a list of space-separated symbols to be *always*
10024   # included in the symbol list
10025   include_expsyms=
10026   # exclude_expsyms can be an extended regexp of symbols to exclude
10027   # it will be wrapped by ` (' and `)$', so one must not match beginning or
10028   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10029   # as well as any symbol that contains `d'.
10030   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10031   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10032   # platforms (ab)use it in PIC code, but their linkers get confused if
10033   # the symbol is explicitly referenced.  Since portable code cannot
10034   # rely on this symbol name, it's probably fine to never include it in
10035   # preloaded symbol tables.
10036   # Exclude shared library initialization/finalization symbols.
10037   extract_expsyms_cmds=
10038
10039   case $host_os in
10040   cygwin* | mingw* | pw32* | cegcc*)
10041     # FIXME: the MSVC++ port hasn't been tested in a loooong time
10042     # When not using gcc, we currently assume that we are using
10043     # Microsoft Visual C++.
10044     if test "$GCC" != yes; then
10045       with_gnu_ld=no
10046     fi
10047     ;;
10048   interix*)
10049     # we just hope/assume this is gcc and not c89 (= MSVC++)
10050     with_gnu_ld=yes
10051     ;;
10052   openbsd*)
10053     with_gnu_ld=no
10054     ;;
10055   esac
10056
10057   ld_shlibs=yes
10058   if test "$with_gnu_ld" = yes; then
10059     # If archive_cmds runs LD, not CC, wlarc should be empty
10060     wlarc='${wl}'
10061
10062     # Set some defaults for GNU ld with shared library support. These
10063     # are reset later if shared libraries are not supported. Putting them
10064     # here allows them to be overridden if necessary.
10065     runpath_var=LD_RUN_PATH
10066     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10067     export_dynamic_flag_spec='${wl}--export-dynamic'
10068     # ancient GNU ld didn't support --whole-archive et. al.
10069     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10070       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10071     else
10072       whole_archive_flag_spec=
10073     fi
10074     supports_anon_versioning=no
10075     case `$LD -v 2>&1` in
10076       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10077       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10078       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10079       *\ 2.11.*) ;; # other 2.11 versions
10080       *) supports_anon_versioning=yes ;;
10081     esac
10082
10083     # See if GNU ld supports shared libraries.
10084     case $host_os in
10085     aix[3-9]*)
10086       # On AIX/PPC, the GNU linker is very broken
10087       if test "$host_cpu" != ia64; then
10088         ld_shlibs=no
10089         cat <<_LT_EOF 1>&2
10090
10091 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
10092 *** to be unable to reliably create shared libraries on AIX.
10093 *** Therefore, libtool is disabling shared libraries support.  If you
10094 *** really care for shared libraries, you may want to modify your PATH
10095 *** so that a non-GNU linker is found, and then restart.
10096
10097 _LT_EOF
10098       fi
10099       ;;
10100
10101     amigaos*)
10102       case $host_cpu in
10103       powerpc)
10104             # see comment about AmigaOS4 .so support
10105             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10106             archive_expsym_cmds=''
10107         ;;
10108       m68k)
10109             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)'
10110             hardcode_libdir_flag_spec='-L$libdir'
10111             hardcode_minus_L=yes
10112         ;;
10113       esac
10114       ;;
10115
10116     beos*)
10117       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10118         allow_undefined_flag=unsupported
10119         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10120         # support --undefined.  This deserves some investigation.  FIXME
10121         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10122       else
10123         ld_shlibs=no
10124       fi
10125       ;;
10126
10127     cygwin* | mingw* | pw32* | cegcc*)
10128       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10129       # as there is no search path for DLLs.
10130       hardcode_libdir_flag_spec='-L$libdir'
10131       allow_undefined_flag=unsupported
10132       always_export_symbols=no
10133       enable_shared_with_static_runtimes=yes
10134       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10135
10136       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10137         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10138         # If the export-symbols file already is a .def file (1st line
10139         # is EXPORTS), use it as is; otherwise, prepend...
10140         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10141           cp $export_symbols $output_objdir/$soname.def;
10142         else
10143           echo EXPORTS > $output_objdir/$soname.def;
10144           cat $export_symbols >> $output_objdir/$soname.def;
10145         fi~
10146         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10147       else
10148         ld_shlibs=no
10149       fi
10150       ;;
10151
10152     interix[3-9]*)
10153       hardcode_direct=no
10154       hardcode_shlibpath_var=no
10155       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10156       export_dynamic_flag_spec='${wl}-E'
10157       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10158       # Instead, shared libraries are loaded at an image base (0x10000000 by
10159       # default) and relocated if they conflict, which is a slow very memory
10160       # consuming and fragmenting process.  To avoid this, we pick a random,
10161       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10162       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10163       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10164       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'
10165       ;;
10166
10167     gnu* | linux* | tpf* | k*bsd*-gnu)
10168       tmp_diet=no
10169       if test "$host_os" = linux-dietlibc; then
10170         case $cc_basename in
10171           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
10172         esac
10173       fi
10174       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10175          && test "$tmp_diet" = no
10176       then
10177         tmp_addflag=
10178         tmp_sharedflag='-shared'
10179         case $cc_basename,$host_cpu in
10180         pgcc*)                          # Portland Group C compiler
10181           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'
10182           tmp_addflag=' $pic_flag'
10183           ;;
10184         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
10185           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'
10186           tmp_addflag=' $pic_flag -Mnomain' ;;
10187         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
10188           tmp_addflag=' -i_dynamic' ;;
10189         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
10190           tmp_addflag=' -i_dynamic -nofor_main' ;;
10191         ifc* | ifort*)                  # Intel Fortran compiler
10192           tmp_addflag=' -nofor_main' ;;
10193         lf95*)                          # Lahey Fortran 8.1
10194           whole_archive_flag_spec=
10195           tmp_sharedflag='--shared' ;;
10196         xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
10197           tmp_sharedflag='-qmkshrobj'
10198           tmp_addflag= ;;
10199         esac
10200         case `$CC -V 2>&1 | sed 5q` in
10201         *Sun\ C*)                       # Sun C 5.9
10202           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'
10203           compiler_needs_object=yes
10204           tmp_sharedflag='-G' ;;
10205         *Sun\ F*)                       # Sun Fortran 8.3
10206           tmp_sharedflag='-G' ;;
10207         esac
10208         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10209
10210         if test "x$supports_anon_versioning" = xyes; then
10211           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10212             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10213             echo "local: *; };" >> $output_objdir/$libname.ver~
10214             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10215         fi
10216
10217         case $cc_basename in
10218         xlf*)
10219           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10220           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10221           hardcode_libdir_flag_spec=
10222           hardcode_libdir_flag_spec_ld='-rpath $libdir'
10223           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
10224           if test "x$supports_anon_versioning" = xyes; then
10225             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10226               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10227               echo "local: *; };" >> $output_objdir/$libname.ver~
10228               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10229           fi
10230           ;;
10231         esac
10232       else
10233         ld_shlibs=no
10234       fi
10235       ;;
10236
10237     netbsd*)
10238       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10239         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10240         wlarc=
10241       else
10242         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10243         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10244       fi
10245       ;;
10246
10247     solaris*)
10248       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10249         ld_shlibs=no
10250         cat <<_LT_EOF 1>&2
10251
10252 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10253 *** create shared libraries on Solaris systems.  Therefore, libtool
10254 *** is disabling shared libraries support.  We urge you to upgrade GNU
10255 *** binutils to release 2.9.1 or newer.  Another option is to modify
10256 *** your PATH or compiler configuration so that the native linker is
10257 *** used, and then restart.
10258
10259 _LT_EOF
10260       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10261         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10262         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10263       else
10264         ld_shlibs=no
10265       fi
10266       ;;
10267
10268     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10269       case `$LD -v 2>&1` in
10270         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10271         ld_shlibs=no
10272         cat <<_LT_EOF 1>&2
10273
10274 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10275 *** reliably create shared libraries on SCO systems.  Therefore, libtool
10276 *** is disabling shared libraries support.  We urge you to upgrade GNU
10277 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10278 *** your PATH or compiler configuration so that the native linker is
10279 *** used, and then restart.
10280
10281 _LT_EOF
10282         ;;
10283         *)
10284           # For security reasons, it is highly recommended that you always
10285           # use absolute paths for naming shared libraries, and exclude the
10286           # DT_RUNPATH tag from executables and libraries.  But doing so
10287           # requires that you compile everything twice, which is a pain.
10288           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10289             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10290             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10291             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10292           else
10293             ld_shlibs=no
10294           fi
10295         ;;
10296       esac
10297       ;;
10298
10299     sunos4*)
10300       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10301       wlarc=
10302       hardcode_direct=yes
10303       hardcode_shlibpath_var=no
10304       ;;
10305
10306     *)
10307       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10308         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10309         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10310       else
10311         ld_shlibs=no
10312       fi
10313       ;;
10314     esac
10315
10316     if test "$ld_shlibs" = no; then
10317       runpath_var=
10318       hardcode_libdir_flag_spec=
10319       export_dynamic_flag_spec=
10320       whole_archive_flag_spec=
10321     fi
10322   else
10323     # PORTME fill in a description of your system's linker (not GNU ld)
10324     case $host_os in
10325     aix3*)
10326       allow_undefined_flag=unsupported
10327       always_export_symbols=yes
10328       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'
10329       # Note: this linker hardcodes the directories in LIBPATH if there
10330       # are no directories specified by -L.
10331       hardcode_minus_L=yes
10332       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10333         # Neither direct hardcoding nor static linking is supported with a
10334         # broken collect2.
10335         hardcode_direct=unsupported
10336       fi
10337       ;;
10338
10339     aix[4-9]*)
10340       if test "$host_cpu" = ia64; then
10341         # On IA64, the linker does run time linking by default, so we don't
10342         # have to do anything special.
10343         aix_use_runtimelinking=no
10344         exp_sym_flag='-Bexport'
10345         no_entry_flag=""
10346       else
10347         # If we're using GNU nm, then we don't want the "-C" option.
10348         # -C means demangle to AIX nm, but means don't demangle with GNU nm
10349         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10350           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'
10351         else
10352           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'
10353         fi
10354         aix_use_runtimelinking=no
10355
10356         # Test if we are trying to use run time linking or normal
10357         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10358         # need to do runtime linking.
10359         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10360           for ld_flag in $LDFLAGS; do
10361           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10362             aix_use_runtimelinking=yes
10363             break
10364           fi
10365           done
10366           ;;
10367         esac
10368
10369         exp_sym_flag='-bexport'
10370         no_entry_flag='-bnoentry'
10371       fi
10372
10373       # When large executables or shared objects are built, AIX ld can
10374       # have problems creating the table of contents.  If linking a library
10375       # or program results in "error TOC overflow" add -mminimal-toc to
10376       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10377       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10378
10379       archive_cmds=''
10380       hardcode_direct=yes
10381       hardcode_direct_absolute=yes
10382       hardcode_libdir_separator=':'
10383       link_all_deplibs=yes
10384       file_list_spec='${wl}-f,'
10385
10386       if test "$GCC" = yes; then
10387         case $host_os in aix4.[012]|aix4.[012].*)
10388         # We only want to do this on AIX 4.2 and lower, the check
10389         # below for broken collect2 doesn't work under 4.3+
10390           collect2name=`${CC} -print-prog-name=collect2`
10391           if test -f "$collect2name" &&
10392            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10393           then
10394           # We have reworked collect2
10395           :
10396           else
10397           # We have old collect2
10398           hardcode_direct=unsupported
10399           # It fails to find uninstalled libraries when the uninstalled
10400           # path is not listed in the libpath.  Setting hardcode_minus_L
10401           # to unsupported forces relinking
10402           hardcode_minus_L=yes
10403           hardcode_libdir_flag_spec='-L$libdir'
10404           hardcode_libdir_separator=
10405           fi
10406           ;;
10407         esac
10408         shared_flag='-shared'
10409         if test "$aix_use_runtimelinking" = yes; then
10410           shared_flag="$shared_flag "'${wl}-G'
10411         fi
10412       else
10413         # not using gcc
10414         if test "$host_cpu" = ia64; then
10415         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10416         # chokes on -Wl,-G. The following line is correct:
10417           shared_flag='-G'
10418         else
10419           if test "$aix_use_runtimelinking" = yes; then
10420             shared_flag='${wl}-G'
10421           else
10422             shared_flag='${wl}-bM:SRE'
10423           fi
10424         fi
10425       fi
10426
10427       export_dynamic_flag_spec='${wl}-bexpall'
10428       # It seems that -bexpall does not export symbols beginning with
10429       # underscore (_), so it is better to generate a list of symbols to export.
10430       always_export_symbols=yes
10431       if test "$aix_use_runtimelinking" = yes; then
10432         # Warning - without using the other runtime loading flags (-brtl),
10433         # -berok will link without error, but may produce a broken library.
10434         allow_undefined_flag='-berok'
10435         # Determine the default libpath from the value encoded in an
10436         # empty executable.
10437         cat >conftest.$ac_ext <<_ACEOF
10438 /* confdefs.h.  */
10439 _ACEOF
10440 cat confdefs.h >>conftest.$ac_ext
10441 cat >>conftest.$ac_ext <<_ACEOF
10442 /* end confdefs.h.  */
10443
10444 int
10445 main ()
10446 {
10447
10448   ;
10449   return 0;
10450 }
10451 _ACEOF
10452 rm -f conftest.$ac_objext conftest$ac_exeext
10453 if { (ac_try="$ac_link"
10454 case "(($ac_try" in
10455   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10456   *) ac_try_echo=$ac_try;;
10457 esac
10458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10459   (eval "$ac_link") 2>conftest.er1
10460   ac_status=$?
10461   grep -v '^ *+' conftest.er1 >conftest.err
10462   rm -f conftest.er1
10463   cat conftest.err >&5
10464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10465   (exit $ac_status); } && {
10466          test -z "$ac_c_werror_flag" ||
10467          test ! -s conftest.err
10468        } && test -s conftest$ac_exeext &&
10469        $as_test_x conftest$ac_exeext; then
10470
10471 lt_aix_libpath_sed='
10472     /Import File Strings/,/^$/ {
10473         /^0/ {
10474             s/^0  *\(.*\)$/\1/
10475             p
10476         }
10477     }'
10478 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10479 # Check for a 64-bit object if we didn't find anything.
10480 if test -z "$aix_libpath"; then
10481   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10482 fi
10483 else
10484   echo "$as_me: failed program was:" >&5
10485 sed 's/^/| /' conftest.$ac_ext >&5
10486
10487
10488 fi
10489
10490 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10491       conftest$ac_exeext conftest.$ac_ext
10492 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10493
10494         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10495         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"
10496       else
10497         if test "$host_cpu" = ia64; then
10498           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10499           allow_undefined_flag="-z nodefs"
10500           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"
10501         else
10502          # Determine the default libpath from the value encoded in an
10503          # empty executable.
10504          cat >conftest.$ac_ext <<_ACEOF
10505 /* confdefs.h.  */
10506 _ACEOF
10507 cat confdefs.h >>conftest.$ac_ext
10508 cat >>conftest.$ac_ext <<_ACEOF
10509 /* end confdefs.h.  */
10510
10511 int
10512 main ()
10513 {
10514
10515   ;
10516   return 0;
10517 }
10518 _ACEOF
10519 rm -f conftest.$ac_objext conftest$ac_exeext
10520 if { (ac_try="$ac_link"
10521 case "(($ac_try" in
10522   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10523   *) ac_try_echo=$ac_try;;
10524 esac
10525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10526   (eval "$ac_link") 2>conftest.er1
10527   ac_status=$?
10528   grep -v '^ *+' conftest.er1 >conftest.err
10529   rm -f conftest.er1
10530   cat conftest.err >&5
10531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10532   (exit $ac_status); } && {
10533          test -z "$ac_c_werror_flag" ||
10534          test ! -s conftest.err
10535        } && test -s conftest$ac_exeext &&
10536        $as_test_x conftest$ac_exeext; then
10537
10538 lt_aix_libpath_sed='
10539     /Import File Strings/,/^$/ {
10540         /^0/ {
10541             s/^0  *\(.*\)$/\1/
10542             p
10543         }
10544     }'
10545 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10546 # Check for a 64-bit object if we didn't find anything.
10547 if test -z "$aix_libpath"; then
10548   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10549 fi
10550 else
10551   echo "$as_me: failed program was:" >&5
10552 sed 's/^/| /' conftest.$ac_ext >&5
10553
10554
10555 fi
10556
10557 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10558       conftest$ac_exeext conftest.$ac_ext
10559 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10560
10561          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10562           # Warning - without using the other run time loading flags,
10563           # -berok will link without error, but may produce a broken library.
10564           no_undefined_flag=' ${wl}-bernotok'
10565           allow_undefined_flag=' ${wl}-berok'
10566           # Exported symbols can be pulled into shared objects from archives
10567           whole_archive_flag_spec='$convenience'
10568           archive_cmds_need_lc=yes
10569           # This is similar to how AIX traditionally builds its shared libraries.
10570           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'
10571         fi
10572       fi
10573       ;;
10574
10575     amigaos*)
10576       case $host_cpu in
10577       powerpc)
10578             # see comment about AmigaOS4 .so support
10579             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10580             archive_expsym_cmds=''
10581         ;;
10582       m68k)
10583             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)'
10584             hardcode_libdir_flag_spec='-L$libdir'
10585             hardcode_minus_L=yes
10586         ;;
10587       esac
10588       ;;
10589
10590     bsdi[45]*)
10591       export_dynamic_flag_spec=-rdynamic
10592       ;;
10593
10594     cygwin* | mingw* | pw32* | cegcc*)
10595       # When not using gcc, we currently assume that we are using
10596       # Microsoft Visual C++.
10597       # hardcode_libdir_flag_spec is actually meaningless, as there is
10598       # no search path for DLLs.
10599       hardcode_libdir_flag_spec=' '
10600       allow_undefined_flag=unsupported
10601       # Tell ltmain to make .lib files, not .a files.
10602       libext=lib
10603       # Tell ltmain to make .dll files, not .so files.
10604       shrext_cmds=".dll"
10605       # FIXME: Setting linknames here is a bad hack.
10606       archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
10607       # The linker will automatically build a .lib file if we build a DLL.
10608       old_archive_from_new_cmds='true'
10609       # FIXME: Should let the user specify the lib program.
10610       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10611       fix_srcfile_path='`cygpath -w "$srcfile"`'
10612       enable_shared_with_static_runtimes=yes
10613       ;;
10614
10615     darwin* | rhapsody*)
10616
10617
10618   archive_cmds_need_lc=no
10619   hardcode_direct=no
10620   hardcode_automatic=yes
10621   hardcode_shlibpath_var=unsupported
10622   whole_archive_flag_spec=''
10623   link_all_deplibs=yes
10624   allow_undefined_flag="$_lt_dar_allow_undefined"
10625   case $cc_basename in
10626      ifort*) _lt_dar_can_shared=yes ;;
10627      *) _lt_dar_can_shared=$GCC ;;
10628   esac
10629   if test "$_lt_dar_can_shared" = "yes"; then
10630     output_verbose_link_cmd=echo
10631     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10632     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10633     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}"
10634     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}"
10635
10636   else
10637   ld_shlibs=no
10638   fi
10639
10640       ;;
10641
10642     dgux*)
10643       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10644       hardcode_libdir_flag_spec='-L$libdir'
10645       hardcode_shlibpath_var=no
10646       ;;
10647
10648     freebsd1*)
10649       ld_shlibs=no
10650       ;;
10651
10652     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10653     # support.  Future versions do this automatically, but an explicit c++rt0.o
10654     # does not break anything, and helps significantly (at the cost of a little
10655     # extra space).
10656     freebsd2.2*)
10657       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10658       hardcode_libdir_flag_spec='-R$libdir'
10659       hardcode_direct=yes
10660       hardcode_shlibpath_var=no
10661       ;;
10662
10663     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10664     freebsd2*)
10665       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10666       hardcode_direct=yes
10667       hardcode_minus_L=yes
10668       hardcode_shlibpath_var=no
10669       ;;
10670
10671     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10672     freebsd* | dragonfly*)
10673       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10674       hardcode_libdir_flag_spec='-R$libdir'
10675       hardcode_direct=yes
10676       hardcode_shlibpath_var=no
10677       ;;
10678
10679     hpux9*)
10680       if test "$GCC" = yes; then
10681         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'
10682       else
10683         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'
10684       fi
10685       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10686       hardcode_libdir_separator=:
10687       hardcode_direct=yes
10688
10689       # hardcode_minus_L: Not really in the search PATH,
10690       # but as the default location of the library.
10691       hardcode_minus_L=yes
10692       export_dynamic_flag_spec='${wl}-E'
10693       ;;
10694
10695     hpux10*)
10696       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10697         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10698       else
10699         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10700       fi
10701       if test "$with_gnu_ld" = no; then
10702         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10703         hardcode_libdir_flag_spec_ld='+b $libdir'
10704         hardcode_libdir_separator=:
10705         hardcode_direct=yes
10706         hardcode_direct_absolute=yes
10707         export_dynamic_flag_spec='${wl}-E'
10708         # hardcode_minus_L: Not really in the search PATH,
10709         # but as the default location of the library.
10710         hardcode_minus_L=yes
10711       fi
10712       ;;
10713
10714     hpux11*)
10715       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10716         case $host_cpu in
10717         hppa*64*)
10718           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10719           ;;
10720         ia64*)
10721           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10722           ;;
10723         *)
10724           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10725           ;;
10726         esac
10727       else
10728         case $host_cpu in
10729         hppa*64*)
10730           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10731           ;;
10732         ia64*)
10733           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10734           ;;
10735         *)
10736           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10737           ;;
10738         esac
10739       fi
10740       if test "$with_gnu_ld" = no; then
10741         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10742         hardcode_libdir_separator=:
10743
10744         case $host_cpu in
10745         hppa*64*|ia64*)
10746           hardcode_direct=no
10747           hardcode_shlibpath_var=no
10748           ;;
10749         *)
10750           hardcode_direct=yes
10751           hardcode_direct_absolute=yes
10752           export_dynamic_flag_spec='${wl}-E'
10753
10754           # hardcode_minus_L: Not really in the search PATH,
10755           # but as the default location of the library.
10756           hardcode_minus_L=yes
10757           ;;
10758         esac
10759       fi
10760       ;;
10761
10762     irix5* | irix6* | nonstopux*)
10763       if test "$GCC" = yes; then
10764         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'
10765         # Try to use the -exported_symbol ld option, if it does not
10766         # work, assume that -exports_file does not work either and
10767         # implicitly export all symbols.
10768         save_LDFLAGS="$LDFLAGS"
10769         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10770         cat >conftest.$ac_ext <<_ACEOF
10771 int foo(void) {}
10772 _ACEOF
10773 rm -f conftest.$ac_objext conftest$ac_exeext
10774 if { (ac_try="$ac_link"
10775 case "(($ac_try" in
10776   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10777   *) ac_try_echo=$ac_try;;
10778 esac
10779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10780   (eval "$ac_link") 2>conftest.er1
10781   ac_status=$?
10782   grep -v '^ *+' conftest.er1 >conftest.err
10783   rm -f conftest.er1
10784   cat conftest.err >&5
10785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10786   (exit $ac_status); } && {
10787          test -z "$ac_c_werror_flag" ||
10788          test ! -s conftest.err
10789        } && test -s conftest$ac_exeext &&
10790        $as_test_x conftest$ac_exeext; then
10791   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'
10792
10793 else
10794   echo "$as_me: failed program was:" >&5
10795 sed 's/^/| /' conftest.$ac_ext >&5
10796
10797
10798 fi
10799
10800 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10801       conftest$ac_exeext conftest.$ac_ext
10802         LDFLAGS="$save_LDFLAGS"
10803       else
10804         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'
10805         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'
10806       fi
10807       archive_cmds_need_lc='no'
10808       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10809       hardcode_libdir_separator=:
10810       inherit_rpath=yes
10811       link_all_deplibs=yes
10812       ;;
10813
10814     netbsd*)
10815       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10816         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10817       else
10818         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10819       fi
10820       hardcode_libdir_flag_spec='-R$libdir'
10821       hardcode_direct=yes
10822       hardcode_shlibpath_var=no
10823       ;;
10824
10825     newsos6)
10826       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10827       hardcode_direct=yes
10828       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10829       hardcode_libdir_separator=:
10830       hardcode_shlibpath_var=no
10831       ;;
10832
10833     *nto* | *qnx*)
10834       ;;
10835
10836     openbsd*)
10837       if test -f /usr/libexec/ld.so; then
10838         hardcode_direct=yes
10839         hardcode_shlibpath_var=no
10840         hardcode_direct_absolute=yes
10841         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10842           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10843           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10844           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10845           export_dynamic_flag_spec='${wl}-E'
10846         else
10847           case $host_os in
10848            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10849              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10850              hardcode_libdir_flag_spec='-R$libdir'
10851              ;;
10852            *)
10853              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10854              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10855              ;;
10856           esac
10857         fi
10858       else
10859         ld_shlibs=no
10860       fi
10861       ;;
10862
10863     os2*)
10864       hardcode_libdir_flag_spec='-L$libdir'
10865       hardcode_minus_L=yes
10866       allow_undefined_flag=unsupported
10867       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'
10868       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10869       ;;
10870
10871     osf3*)
10872       if test "$GCC" = yes; then
10873         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10874         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'
10875       else
10876         allow_undefined_flag=' -expect_unresolved \*'
10877         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'
10878       fi
10879       archive_cmds_need_lc='no'
10880       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10881       hardcode_libdir_separator=:
10882       ;;
10883
10884     osf4* | osf5*)      # as osf3* with the addition of -msym flag
10885       if test "$GCC" = yes; then
10886         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10887         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'
10888         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10889       else
10890         allow_undefined_flag=' -expect_unresolved \*'
10891         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'
10892         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~
10893         $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'
10894
10895         # Both c and cxx compiler support -rpath directly
10896         hardcode_libdir_flag_spec='-rpath $libdir'
10897       fi
10898       archive_cmds_need_lc='no'
10899       hardcode_libdir_separator=:
10900       ;;
10901
10902     solaris*)
10903       no_undefined_flag=' -z defs'
10904       if test "$GCC" = yes; then
10905         wlarc='${wl}'
10906         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10907         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10908           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10909       else
10910         case `$CC -V 2>&1` in
10911         *"Compilers 5.0"*)
10912           wlarc=''
10913           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10914           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10915           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10916           ;;
10917         *)
10918           wlarc='${wl}'
10919           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10920           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10921           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10922           ;;
10923         esac
10924       fi
10925       hardcode_libdir_flag_spec='-R$libdir'
10926       hardcode_shlibpath_var=no
10927       case $host_os in
10928       solaris2.[0-5] | solaris2.[0-5].*) ;;
10929       *)
10930         # The compiler driver will combine and reorder linker options,
10931         # but understands `-z linker_flag'.  GCC discards it without `$wl',
10932         # but is careful enough not to reorder.
10933         # Supported since Solaris 2.6 (maybe 2.5.1?)
10934         if test "$GCC" = yes; then
10935           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10936         else
10937           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10938         fi
10939         ;;
10940       esac
10941       link_all_deplibs=yes
10942       ;;
10943
10944     sunos4*)
10945       if test "x$host_vendor" = xsequent; then
10946         # Use $CC to link under sequent, because it throws in some extra .o
10947         # files that make .init and .fini sections work.
10948         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10949       else
10950         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10951       fi
10952       hardcode_libdir_flag_spec='-L$libdir'
10953       hardcode_direct=yes
10954       hardcode_minus_L=yes
10955       hardcode_shlibpath_var=no
10956       ;;
10957
10958     sysv4)
10959       case $host_vendor in
10960         sni)
10961           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10962           hardcode_direct=yes # is this really true???
10963         ;;
10964         siemens)
10965           ## LD is ld it makes a PLAMLIB
10966           ## CC just makes a GrossModule.
10967           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10968           reload_cmds='$CC -r -o $output$reload_objs'
10969           hardcode_direct=no
10970         ;;
10971         motorola)
10972           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10973           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10974         ;;
10975       esac
10976       runpath_var='LD_RUN_PATH'
10977       hardcode_shlibpath_var=no
10978       ;;
10979
10980     sysv4.3*)
10981       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10982       hardcode_shlibpath_var=no
10983       export_dynamic_flag_spec='-Bexport'
10984       ;;
10985
10986     sysv4*MP*)
10987       if test -d /usr/nec; then
10988         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10989         hardcode_shlibpath_var=no
10990         runpath_var=LD_RUN_PATH
10991         hardcode_runpath_var=yes
10992         ld_shlibs=yes
10993       fi
10994       ;;
10995
10996     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10997       no_undefined_flag='${wl}-z,text'
10998       archive_cmds_need_lc=no
10999       hardcode_shlibpath_var=no
11000       runpath_var='LD_RUN_PATH'
11001
11002       if test "$GCC" = yes; then
11003         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11004         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11005       else
11006         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11007         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11008       fi
11009       ;;
11010
11011     sysv5* | sco3.2v5* | sco5v6*)
11012       # Note: We can NOT use -z defs as we might desire, because we do not
11013       # link with -lc, and that would cause any symbols used from libc to
11014       # always be unresolved, which means just about no library would
11015       # ever link correctly.  If we're not using GNU ld we use -z text
11016       # though, which does catch some bad symbols but isn't as heavy-handed
11017       # as -z defs.
11018       no_undefined_flag='${wl}-z,text'
11019       allow_undefined_flag='${wl}-z,nodefs'
11020       archive_cmds_need_lc=no
11021       hardcode_shlibpath_var=no
11022       hardcode_libdir_flag_spec='${wl}-R,$libdir'
11023       hardcode_libdir_separator=':'
11024       link_all_deplibs=yes
11025       export_dynamic_flag_spec='${wl}-Bexport'
11026       runpath_var='LD_RUN_PATH'
11027
11028       if test "$GCC" = yes; then
11029         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11030         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11031       else
11032         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11033         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11034       fi
11035       ;;
11036
11037     uts4*)
11038       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11039       hardcode_libdir_flag_spec='-L$libdir'
11040       hardcode_shlibpath_var=no
11041       ;;
11042
11043     *)
11044       ld_shlibs=no
11045       ;;
11046     esac
11047
11048     if test x$host_vendor = xsni; then
11049       case $host in
11050       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11051         export_dynamic_flag_spec='${wl}-Blargedynsym'
11052         ;;
11053       esac
11054     fi
11055   fi
11056
11057 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
11058 echo "${ECHO_T}$ld_shlibs" >&6; }
11059 test "$ld_shlibs" = no && can_build_shared=no
11060
11061 with_gnu_ld=$with_gnu_ld
11062
11063
11064
11065
11066
11067
11068
11069
11070
11071
11072
11073
11074
11075
11076
11077 #
11078 # Do we need to explicitly link libc?
11079 #
11080 case "x$archive_cmds_need_lc" in
11081 x|xyes)
11082   # Assume -lc should be added
11083   archive_cmds_need_lc=yes
11084
11085   if test "$enable_shared" = yes && test "$GCC" = yes; then
11086     case $archive_cmds in
11087     *'~'*)
11088       # FIXME: we may have to deal with multi-command sequences.
11089       ;;
11090     '$CC '*)
11091       # Test whether the compiler implicitly links with -lc since on some
11092       # systems, -lgcc has to come before -lc. If gcc already passes -lc
11093       # to ld, don't add -lc before -lgcc.
11094       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11095 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
11096       $RM conftest*
11097       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11098
11099       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11100   (eval $ac_compile) 2>&5
11101   ac_status=$?
11102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11103   (exit $ac_status); } 2>conftest.err; then
11104         soname=conftest
11105         lib=conftest
11106         libobjs=conftest.$ac_objext
11107         deplibs=
11108         wl=$lt_prog_compiler_wl
11109         pic_flag=$lt_prog_compiler_pic
11110         compiler_flags=-v
11111         linker_flags=-v
11112         verstring=
11113         output_objdir=.
11114         libname=conftest
11115         lt_save_allow_undefined_flag=$allow_undefined_flag
11116         allow_undefined_flag=
11117         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
11118   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11119   ac_status=$?
11120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11121   (exit $ac_status); }
11122         then
11123           archive_cmds_need_lc=no
11124         else
11125           archive_cmds_need_lc=yes
11126         fi
11127         allow_undefined_flag=$lt_save_allow_undefined_flag
11128       else
11129         cat conftest.err 1>&5
11130       fi
11131       $RM conftest*
11132       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
11133 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
11134       ;;
11135     esac
11136   fi
11137   ;;
11138 esac
11139
11140
11141
11142
11143
11144
11145
11146
11147
11148
11149
11150
11151
11152
11153
11154
11155
11156
11157
11158
11159
11160
11161
11162
11163
11164
11165
11166
11167
11168
11169
11170
11171
11172
11173
11174
11175
11176
11177
11178
11179
11180
11181
11182
11183
11184
11185
11186
11187
11188
11189
11190
11191
11192
11193
11194
11195
11196
11197
11198
11199
11200
11201
11202
11203
11204
11205
11206
11207
11208
11209
11210
11211
11212
11213
11214
11215
11216
11217
11218
11219
11220
11221
11222
11223
11224
11225
11226
11227
11228
11229
11230
11231
11232
11233
11234
11235
11236
11237
11238
11239
11240
11241
11242
11243
11244
11245
11246
11247
11248
11249
11250
11251
11252
11253
11254
11255
11256
11257
11258
11259
11260
11261
11262
11263
11264
11265
11266
11267
11268
11269
11270
11271
11272
11273
11274
11275
11276
11277
11278
11279
11280
11281
11282
11283
11284
11285
11286
11287
11288
11289
11290
11291
11292
11293
11294
11295
11296   { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11297 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
11298
11299 if test "$GCC" = yes; then
11300   case $host_os in
11301     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11302     *) lt_awk_arg="/^libraries:/" ;;
11303   esac
11304   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11305   if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
11306     # if the path contains ";" then we assume it to be the separator
11307     # otherwise default to the standard path separator (i.e. ":") - it is
11308     # assumed that no part of a normal pathname contains ";" but that should
11309     # okay in the real world where ";" in dirpaths is itself problematic.
11310     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
11311   else
11312     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11313   fi
11314   # Ok, now we have the path, separated by spaces, we can step through it
11315   # and add multilib dir if necessary.
11316   lt_tmp_lt_search_path_spec=
11317   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11318   for lt_sys_path in $lt_search_path_spec; do
11319     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11320       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11321     else
11322       test -d "$lt_sys_path" && \
11323         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11324     fi
11325   done
11326   lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
11327 BEGIN {RS=" "; FS="/|\n";} {
11328   lt_foo="";
11329   lt_count=0;
11330   for (lt_i = NF; lt_i > 0; lt_i--) {
11331     if ($lt_i != "" && $lt_i != ".") {
11332       if ($lt_i == "..") {
11333         lt_count++;
11334       } else {
11335         if (lt_count == 0) {
11336           lt_foo="/" $lt_i lt_foo;
11337         } else {
11338           lt_count--;
11339         }
11340       }
11341     }
11342   }
11343   if (lt_foo != "") { lt_freq[lt_foo]++; }
11344   if (lt_freq[lt_foo] == 1) { print lt_foo; }
11345 }'`
11346   sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
11347 else
11348   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11349 fi
11350 library_names_spec=
11351 libname_spec='lib$name'
11352 soname_spec=
11353 shrext_cmds=".so"
11354 postinstall_cmds=
11355 postuninstall_cmds=
11356 finish_cmds=
11357 finish_eval=
11358 shlibpath_var=
11359 shlibpath_overrides_runpath=unknown
11360 version_type=none
11361 dynamic_linker="$host_os ld.so"
11362 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11363 need_lib_prefix=unknown
11364 hardcode_into_libs=no
11365
11366 # when you set need_version to no, make sure it does not cause -set_version
11367 # flags to be left without arguments
11368 need_version=unknown
11369
11370 case $host_os in
11371 aix3*)
11372   version_type=linux
11373   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11374   shlibpath_var=LIBPATH
11375
11376   # AIX 3 has no versioning support, so we append a major version to the name.
11377   soname_spec='${libname}${release}${shared_ext}$major'
11378   ;;
11379
11380 aix[4-9]*)
11381   version_type=linux
11382   need_lib_prefix=no
11383   need_version=no
11384   hardcode_into_libs=yes
11385   if test "$host_cpu" = ia64; then
11386     # AIX 5 supports IA64
11387     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11388     shlibpath_var=LD_LIBRARY_PATH
11389   else
11390     # With GCC up to 2.95.x, collect2 would create an import file
11391     # for dependence libraries.  The import file would start with
11392     # the line `#! .'.  This would cause the generated library to
11393     # depend on `.', always an invalid library.  This was fixed in
11394     # development snapshots of GCC prior to 3.0.
11395     case $host_os in
11396       aix4 | aix4.[01] | aix4.[01].*)
11397       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11398            echo ' yes '
11399            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11400         :
11401       else
11402         can_build_shared=no
11403       fi
11404       ;;
11405     esac
11406     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11407     # soname into executable. Probably we can add versioning support to
11408     # collect2, so additional links can be useful in future.
11409     if test "$aix_use_runtimelinking" = yes; then
11410       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11411       # instead of lib<name>.a to let people know that these are not
11412       # typical AIX shared libraries.
11413       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11414     else
11415       # We preserve .a as extension for shared libraries through AIX4.2
11416       # and later when we are not doing run time linking.
11417       library_names_spec='${libname}${release}.a $libname.a'
11418       soname_spec='${libname}${release}${shared_ext}$major'
11419     fi
11420     shlibpath_var=LIBPATH
11421   fi
11422   ;;
11423
11424 amigaos*)
11425   case $host_cpu in
11426   powerpc)
11427     # Since July 2007 AmigaOS4 officially supports .so libraries.
11428     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11429     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11430     ;;
11431   m68k)
11432     library_names_spec='$libname.ixlibrary $libname.a'
11433     # Create ${libname}_ixlibrary.a entries in /sys/libs.
11434     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'
11435     ;;
11436   esac
11437   ;;
11438
11439 beos*)
11440   library_names_spec='${libname}${shared_ext}'
11441   dynamic_linker="$host_os ld.so"
11442   shlibpath_var=LIBRARY_PATH
11443   ;;
11444
11445 bsdi[45]*)
11446   version_type=linux
11447   need_version=no
11448   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11449   soname_spec='${libname}${release}${shared_ext}$major'
11450   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11451   shlibpath_var=LD_LIBRARY_PATH
11452   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11453   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11454   # the default ld.so.conf also contains /usr/contrib/lib and
11455   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11456   # libtool to hard-code these into programs
11457   ;;
11458
11459 cygwin* | mingw* | pw32* | cegcc*)
11460   version_type=windows
11461   shrext_cmds=".dll"
11462   need_version=no
11463   need_lib_prefix=no
11464
11465   case $GCC,$host_os in
11466   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11467     library_names_spec='$libname.dll.a'
11468     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11469     postinstall_cmds='base_file=`basename \${file}`~
11470       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11471       dldir=$destdir/`dirname \$dlpath`~
11472       test -d \$dldir || mkdir -p \$dldir~
11473       $install_prog $dir/$dlname \$dldir/$dlname~
11474       chmod a+x \$dldir/$dlname~
11475       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11476         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11477       fi'
11478     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11479       dlpath=$dir/\$dldll~
11480        $RM \$dlpath'
11481     shlibpath_overrides_runpath=yes
11482
11483     case $host_os in
11484     cygwin*)
11485       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11486       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11487       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11488       ;;
11489     mingw* | cegcc*)
11490       # MinGW DLLs use traditional 'lib' prefix
11491       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11492       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11493       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11494         # It is most probably a Windows format PATH printed by
11495         # mingw gcc, but we are running on Cygwin. Gcc prints its search
11496         # path with ; separators, and with drive letters. We can handle the
11497         # drive letters (cygwin fileutils understands them), so leave them,
11498         # especially as we might pass files found there to a mingw objdump,
11499         # which wouldn't understand a cygwinified path. Ahh.
11500         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11501       else
11502         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11503       fi
11504       ;;
11505     pw32*)
11506       # pw32 DLLs use 'pw' prefix rather than 'lib'
11507       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11508       ;;
11509     esac
11510     ;;
11511
11512   *)
11513     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11514     ;;
11515   esac
11516   dynamic_linker='Win32 ld.exe'
11517   # FIXME: first we should search . and the directory the executable is in
11518   shlibpath_var=PATH
11519   ;;
11520
11521 darwin* | rhapsody*)
11522   dynamic_linker="$host_os dyld"
11523   version_type=darwin
11524   need_lib_prefix=no
11525   need_version=no
11526   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11527   soname_spec='${libname}${release}${major}$shared_ext'
11528   shlibpath_overrides_runpath=yes
11529   shlibpath_var=DYLD_LIBRARY_PATH
11530   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11531
11532   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11533   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11534   ;;
11535
11536 dgux*)
11537   version_type=linux
11538   need_lib_prefix=no
11539   need_version=no
11540   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11541   soname_spec='${libname}${release}${shared_ext}$major'
11542   shlibpath_var=LD_LIBRARY_PATH
11543   ;;
11544
11545 freebsd1*)
11546   dynamic_linker=no
11547   ;;
11548
11549 freebsd* | dragonfly*)
11550   # DragonFly does not have aout.  When/if they implement a new
11551   # versioning mechanism, adjust this.
11552   if test -x /usr/bin/objformat; then
11553     objformat=`/usr/bin/objformat`
11554   else
11555     case $host_os in
11556     freebsd[123]*) objformat=aout ;;
11557     *) objformat=elf ;;
11558     esac
11559   fi
11560   version_type=freebsd-$objformat
11561   case $version_type in
11562     freebsd-elf*)
11563       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11564       need_version=no
11565       need_lib_prefix=no
11566       ;;
11567     freebsd-*)
11568       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11569       need_version=yes
11570       ;;
11571   esac
11572   shlibpath_var=LD_LIBRARY_PATH
11573   case $host_os in
11574   freebsd2*)
11575     shlibpath_overrides_runpath=yes
11576     ;;
11577   freebsd3.[01]* | freebsdelf3.[01]*)
11578     shlibpath_overrides_runpath=yes
11579     hardcode_into_libs=yes
11580     ;;
11581   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11582   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11583     shlibpath_overrides_runpath=no
11584     hardcode_into_libs=yes
11585     ;;
11586   *) # from 4.6 on, and DragonFly
11587     shlibpath_overrides_runpath=yes
11588     hardcode_into_libs=yes
11589     ;;
11590   esac
11591   ;;
11592
11593 gnu*)
11594   version_type=linux
11595   need_lib_prefix=no
11596   need_version=no
11597   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11598   soname_spec='${libname}${release}${shared_ext}$major'
11599   shlibpath_var=LD_LIBRARY_PATH
11600   hardcode_into_libs=yes
11601   ;;
11602
11603 hpux9* | hpux10* | hpux11*)
11604   # Give a soname corresponding to the major version so that dld.sl refuses to
11605   # link against other versions.
11606   version_type=sunos
11607   need_lib_prefix=no
11608   need_version=no
11609   case $host_cpu in
11610   ia64*)
11611     shrext_cmds='.so'
11612     hardcode_into_libs=yes
11613     dynamic_linker="$host_os dld.so"
11614     shlibpath_var=LD_LIBRARY_PATH
11615     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11616     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11617     soname_spec='${libname}${release}${shared_ext}$major'
11618     if test "X$HPUX_IA64_MODE" = X32; then
11619       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11620     else
11621       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11622     fi
11623     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11624     ;;
11625   hppa*64*)
11626     shrext_cmds='.sl'
11627     hardcode_into_libs=yes
11628     dynamic_linker="$host_os dld.sl"
11629     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11630     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11631     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11632     soname_spec='${libname}${release}${shared_ext}$major'
11633     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11634     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11635     ;;
11636   *)
11637     shrext_cmds='.sl'
11638     dynamic_linker="$host_os dld.sl"
11639     shlibpath_var=SHLIB_PATH
11640     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11641     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11642     soname_spec='${libname}${release}${shared_ext}$major'
11643     ;;
11644   esac
11645   # HP-UX runs *really* slowly unless shared libraries are mode 555.
11646   postinstall_cmds='chmod 555 $lib'
11647   ;;
11648
11649 interix[3-9]*)
11650   version_type=linux
11651   need_lib_prefix=no
11652   need_version=no
11653   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11654   soname_spec='${libname}${release}${shared_ext}$major'
11655   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11656   shlibpath_var=LD_LIBRARY_PATH
11657   shlibpath_overrides_runpath=no
11658   hardcode_into_libs=yes
11659   ;;
11660
11661 irix5* | irix6* | nonstopux*)
11662   case $host_os in
11663     nonstopux*) version_type=nonstopux ;;
11664     *)
11665         if test "$lt_cv_prog_gnu_ld" = yes; then
11666                 version_type=linux
11667         else
11668                 version_type=irix
11669         fi ;;
11670   esac
11671   need_lib_prefix=no
11672   need_version=no
11673   soname_spec='${libname}${release}${shared_ext}$major'
11674   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11675   case $host_os in
11676   irix5* | nonstopux*)
11677     libsuff= shlibsuff=
11678     ;;
11679   *)
11680     case $LD in # libtool.m4 will add one of these switches to LD
11681     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11682       libsuff= shlibsuff= libmagic=32-bit;;
11683     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11684       libsuff=32 shlibsuff=N32 libmagic=N32;;
11685     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11686       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11687     *) libsuff= shlibsuff= libmagic=never-match;;
11688     esac
11689     ;;
11690   esac
11691   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11692   shlibpath_overrides_runpath=no
11693   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11694   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11695   hardcode_into_libs=yes
11696   ;;
11697
11698 # No shared lib support for Linux oldld, aout, or coff.
11699 linux*oldld* | linux*aout* | linux*coff*)
11700   dynamic_linker=no
11701   ;;
11702
11703 # This must be Linux ELF.
11704 linux* | k*bsd*-gnu)
11705   version_type=linux
11706   need_lib_prefix=no
11707   need_version=no
11708   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11709   soname_spec='${libname}${release}${shared_ext}$major'
11710   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11711   shlibpath_var=LD_LIBRARY_PATH
11712   shlibpath_overrides_runpath=no
11713   # Some binutils ld are patched to set DT_RUNPATH
11714   save_LDFLAGS=$LDFLAGS
11715   save_libdir=$libdir
11716   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11717        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11718   cat >conftest.$ac_ext <<_ACEOF
11719 /* confdefs.h.  */
11720 _ACEOF
11721 cat confdefs.h >>conftest.$ac_ext
11722 cat >>conftest.$ac_ext <<_ACEOF
11723 /* end confdefs.h.  */
11724
11725 int
11726 main ()
11727 {
11728
11729   ;
11730   return 0;
11731 }
11732 _ACEOF
11733 rm -f conftest.$ac_objext conftest$ac_exeext
11734 if { (ac_try="$ac_link"
11735 case "(($ac_try" in
11736   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11737   *) ac_try_echo=$ac_try;;
11738 esac
11739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11740   (eval "$ac_link") 2>conftest.er1
11741   ac_status=$?
11742   grep -v '^ *+' conftest.er1 >conftest.err
11743   rm -f conftest.er1
11744   cat conftest.err >&5
11745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11746   (exit $ac_status); } && {
11747          test -z "$ac_c_werror_flag" ||
11748          test ! -s conftest.err
11749        } && test -s conftest$ac_exeext &&
11750        $as_test_x conftest$ac_exeext; then
11751   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
11752   shlibpath_overrides_runpath=yes
11753 fi
11754
11755 else
11756   echo "$as_me: failed program was:" >&5
11757 sed 's/^/| /' conftest.$ac_ext >&5
11758
11759
11760 fi
11761
11762 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11763       conftest$ac_exeext conftest.$ac_ext
11764   LDFLAGS=$save_LDFLAGS
11765   libdir=$save_libdir
11766
11767   # This implies no fast_install, which is unacceptable.
11768   # Some rework will be needed to allow for fast_install
11769   # before this can be enabled.
11770   hardcode_into_libs=yes
11771
11772   # Append ld.so.conf contents to the search path
11773   if test -f /etc/ld.so.conf; then
11774     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' ' '`
11775     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11776   fi
11777
11778   # We used to test for /lib/ld.so.1 and disable shared libraries on
11779   # powerpc, because MkLinux only supported shared libraries with the
11780   # GNU dynamic linker.  Since this was broken with cross compilers,
11781   # most powerpc-linux boxes support dynamic linking these days and
11782   # people can always --disable-shared, the test was removed, and we
11783   # assume the GNU/Linux dynamic linker is in use.
11784   dynamic_linker='GNU/Linux ld.so'
11785   ;;
11786
11787 netbsd*)
11788   version_type=sunos
11789   need_lib_prefix=no
11790   need_version=no
11791   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11792     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11793     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11794     dynamic_linker='NetBSD (a.out) ld.so'
11795   else
11796     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11797     soname_spec='${libname}${release}${shared_ext}$major'
11798     dynamic_linker='NetBSD ld.elf_so'
11799   fi
11800   shlibpath_var=LD_LIBRARY_PATH
11801   shlibpath_overrides_runpath=yes
11802   hardcode_into_libs=yes
11803   ;;
11804
11805 newsos6)
11806   version_type=linux
11807   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11808   shlibpath_var=LD_LIBRARY_PATH
11809   shlibpath_overrides_runpath=yes
11810   ;;
11811
11812 *nto* | *qnx*)
11813   version_type=qnx
11814   need_lib_prefix=no
11815   need_version=no
11816   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11817   soname_spec='${libname}${release}${shared_ext}$major'
11818   shlibpath_var=LD_LIBRARY_PATH
11819   shlibpath_overrides_runpath=no
11820   hardcode_into_libs=yes
11821   dynamic_linker='ldqnx.so'
11822   ;;
11823
11824 openbsd*)
11825   version_type=sunos
11826   sys_lib_dlsearch_path_spec="/usr/lib"
11827   need_lib_prefix=no
11828   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11829   case $host_os in
11830     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
11831     *)                          need_version=no  ;;
11832   esac
11833   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11834   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11835   shlibpath_var=LD_LIBRARY_PATH
11836   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11837     case $host_os in
11838       openbsd2.[89] | openbsd2.[89].*)
11839         shlibpath_overrides_runpath=no
11840         ;;
11841       *)
11842         shlibpath_overrides_runpath=yes
11843         ;;
11844       esac
11845   else
11846     shlibpath_overrides_runpath=yes
11847   fi
11848   ;;
11849
11850 os2*)
11851   libname_spec='$name'
11852   shrext_cmds=".dll"
11853   need_lib_prefix=no
11854   library_names_spec='$libname${shared_ext} $libname.a'
11855   dynamic_linker='OS/2 ld.exe'
11856   shlibpath_var=LIBPATH
11857   ;;
11858
11859 osf3* | osf4* | osf5*)
11860   version_type=osf
11861   need_lib_prefix=no
11862   need_version=no
11863   soname_spec='${libname}${release}${shared_ext}$major'
11864   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11865   shlibpath_var=LD_LIBRARY_PATH
11866   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11867   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11868   ;;
11869
11870 rdos*)
11871   dynamic_linker=no
11872   ;;
11873
11874 solaris*)
11875   version_type=linux
11876   need_lib_prefix=no
11877   need_version=no
11878   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11879   soname_spec='${libname}${release}${shared_ext}$major'
11880   shlibpath_var=LD_LIBRARY_PATH
11881   shlibpath_overrides_runpath=yes
11882   hardcode_into_libs=yes
11883   # ldd complains unless libraries are executable
11884   postinstall_cmds='chmod +x $lib'
11885   ;;
11886
11887 sunos4*)
11888   version_type=sunos
11889   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11890   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11891   shlibpath_var=LD_LIBRARY_PATH
11892   shlibpath_overrides_runpath=yes
11893   if test "$with_gnu_ld" = yes; then
11894     need_lib_prefix=no
11895   fi
11896   need_version=yes
11897   ;;
11898
11899 sysv4 | sysv4.3*)
11900   version_type=linux
11901   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11902   soname_spec='${libname}${release}${shared_ext}$major'
11903   shlibpath_var=LD_LIBRARY_PATH
11904   case $host_vendor in
11905     sni)
11906       shlibpath_overrides_runpath=no
11907       need_lib_prefix=no
11908       runpath_var=LD_RUN_PATH
11909       ;;
11910     siemens)
11911       need_lib_prefix=no
11912       ;;
11913     motorola)
11914       need_lib_prefix=no
11915       need_version=no
11916       shlibpath_overrides_runpath=no
11917       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11918       ;;
11919   esac
11920   ;;
11921
11922 sysv4*MP*)
11923   if test -d /usr/nec ;then
11924     version_type=linux
11925     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11926     soname_spec='$libname${shared_ext}.$major'
11927     shlibpath_var=LD_LIBRARY_PATH
11928   fi
11929   ;;
11930
11931 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11932   version_type=freebsd-elf
11933   need_lib_prefix=no
11934   need_version=no
11935   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11936   soname_spec='${libname}${release}${shared_ext}$major'
11937   shlibpath_var=LD_LIBRARY_PATH
11938   shlibpath_overrides_runpath=yes
11939   hardcode_into_libs=yes
11940   if test "$with_gnu_ld" = yes; then
11941     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11942   else
11943     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11944     case $host_os in
11945       sco3.2v5*)
11946         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11947         ;;
11948     esac
11949   fi
11950   sys_lib_dlsearch_path_spec='/usr/lib'
11951   ;;
11952
11953 tpf*)
11954   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11955   version_type=linux
11956   need_lib_prefix=no
11957   need_version=no
11958   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11959   shlibpath_var=LD_LIBRARY_PATH
11960   shlibpath_overrides_runpath=no
11961   hardcode_into_libs=yes
11962   ;;
11963
11964 uts4*)
11965   version_type=linux
11966   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11967   soname_spec='${libname}${release}${shared_ext}$major'
11968   shlibpath_var=LD_LIBRARY_PATH
11969   ;;
11970
11971 *)
11972   dynamic_linker=no
11973   ;;
11974 esac
11975 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11976 echo "${ECHO_T}$dynamic_linker" >&6; }
11977 test "$dynamic_linker" = no && can_build_shared=no
11978
11979 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11980 if test "$GCC" = yes; then
11981   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11982 fi
11983
11984 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11985   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11986 fi
11987 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11988   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11989 fi
11990
11991
11992
11993
11994
11995
11996
11997
11998
11999
12000
12001
12002
12003
12004
12005
12006
12007
12008
12009
12010
12011
12012
12013
12014
12015
12016
12017
12018
12019
12020
12021
12022
12023
12024
12025
12026
12027
12028
12029
12030
12031
12032
12033
12034
12035
12036
12037
12038
12039
12040
12041
12042
12043
12044
12045
12046
12047
12048
12049
12050
12051
12052
12053
12054
12055
12056
12057
12058
12059
12060
12061
12062
12063
12064
12065
12066
12067
12068
12069
12070
12071
12072
12073
12074
12075
12076
12077   { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12078 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
12079 hardcode_action=
12080 if test -n "$hardcode_libdir_flag_spec" ||
12081    test -n "$runpath_var" ||
12082    test "X$hardcode_automatic" = "Xyes" ; then
12083
12084   # We can hardcode non-existent directories.
12085   if test "$hardcode_direct" != no &&
12086      # If the only mechanism to avoid hardcoding is shlibpath_var, we
12087      # have to relink, otherwise we might link with an installed library
12088      # when we should be linking with a yet-to-be-installed one
12089      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12090      test "$hardcode_minus_L" != no; then
12091     # Linking always hardcodes the temporary library directory.
12092     hardcode_action=relink
12093   else
12094     # We can link without hardcoding, and we can hardcode nonexisting dirs.
12095     hardcode_action=immediate
12096   fi
12097 else
12098   # We cannot hardcode anything, or else we can only hardcode existing
12099   # directories.
12100   hardcode_action=unsupported
12101 fi
12102 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
12103 echo "${ECHO_T}$hardcode_action" >&6; }
12104
12105 if test "$hardcode_action" = relink ||
12106    test "$inherit_rpath" = yes; then
12107   # Fast installation is not supported
12108   enable_fast_install=no
12109 elif test "$shlibpath_overrides_runpath" = yes ||
12110      test "$enable_shared" = no; then
12111   # Fast installation is not necessary
12112   enable_fast_install=needless
12113 fi
12114
12115
12116
12117
12118
12119
12120   if test "x$enable_dlopen" != xyes; then
12121   enable_dlopen=unknown
12122   enable_dlopen_self=unknown
12123   enable_dlopen_self_static=unknown
12124 else
12125   lt_cv_dlopen=no
12126   lt_cv_dlopen_libs=
12127
12128   case $host_os in
12129   beos*)
12130     lt_cv_dlopen="load_add_on"
12131     lt_cv_dlopen_libs=
12132     lt_cv_dlopen_self=yes
12133     ;;
12134
12135   mingw* | pw32* | cegcc*)
12136     lt_cv_dlopen="LoadLibrary"
12137     lt_cv_dlopen_libs=
12138     ;;
12139
12140   cygwin*)
12141     lt_cv_dlopen="dlopen"
12142     lt_cv_dlopen_libs=
12143     ;;
12144
12145   darwin*)
12146   # if libdl is installed we need to link against it
12147     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12148 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
12149 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12150   echo $ECHO_N "(cached) $ECHO_C" >&6
12151 else
12152   ac_check_lib_save_LIBS=$LIBS
12153 LIBS="-ldl  $LIBS"
12154 cat >conftest.$ac_ext <<_ACEOF
12155 /* confdefs.h.  */
12156 _ACEOF
12157 cat confdefs.h >>conftest.$ac_ext
12158 cat >>conftest.$ac_ext <<_ACEOF
12159 /* end confdefs.h.  */
12160
12161 /* Override any GCC internal prototype to avoid an error.
12162    Use char because int might match the return type of a GCC
12163    builtin and then its argument prototype would still apply.  */
12164 #ifdef __cplusplus
12165 extern "C"
12166 #endif
12167 char dlopen ();
12168 int
12169 main ()
12170 {
12171 return dlopen ();
12172   ;
12173   return 0;
12174 }
12175 _ACEOF
12176 rm -f conftest.$ac_objext conftest$ac_exeext
12177 if { (ac_try="$ac_link"
12178 case "(($ac_try" in
12179   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12180   *) ac_try_echo=$ac_try;;
12181 esac
12182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12183   (eval "$ac_link") 2>conftest.er1
12184   ac_status=$?
12185   grep -v '^ *+' conftest.er1 >conftest.err
12186   rm -f conftest.er1
12187   cat conftest.err >&5
12188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12189   (exit $ac_status); } && {
12190          test -z "$ac_c_werror_flag" ||
12191          test ! -s conftest.err
12192        } && test -s conftest$ac_exeext &&
12193        $as_test_x conftest$ac_exeext; then
12194   ac_cv_lib_dl_dlopen=yes
12195 else
12196   echo "$as_me: failed program was:" >&5
12197 sed 's/^/| /' conftest.$ac_ext >&5
12198
12199         ac_cv_lib_dl_dlopen=no
12200 fi
12201
12202 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12203       conftest$ac_exeext conftest.$ac_ext
12204 LIBS=$ac_check_lib_save_LIBS
12205 fi
12206 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12207 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
12208 if test $ac_cv_lib_dl_dlopen = yes; then
12209   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12210 else
12211
12212     lt_cv_dlopen="dyld"
12213     lt_cv_dlopen_libs=
12214     lt_cv_dlopen_self=yes
12215
12216 fi
12217
12218     ;;
12219
12220   *)
12221     { echo "$as_me:$LINENO: checking for shl_load" >&5
12222 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
12223 if test "${ac_cv_func_shl_load+set}" = set; then
12224   echo $ECHO_N "(cached) $ECHO_C" >&6
12225 else
12226   cat >conftest.$ac_ext <<_ACEOF
12227 /* confdefs.h.  */
12228 _ACEOF
12229 cat confdefs.h >>conftest.$ac_ext
12230 cat >>conftest.$ac_ext <<_ACEOF
12231 /* end confdefs.h.  */
12232 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12233    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12234 #define shl_load innocuous_shl_load
12235
12236 /* System header to define __stub macros and hopefully few prototypes,
12237     which can conflict with char shl_load (); below.
12238     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12239     <limits.h> exists even on freestanding compilers.  */
12240
12241 #ifdef __STDC__
12242 # include <limits.h>
12243 #else
12244 # include <assert.h>
12245 #endif
12246
12247 #undef shl_load
12248
12249 /* Override any GCC internal prototype to avoid an error.
12250    Use char because int might match the return type of a GCC
12251    builtin and then its argument prototype would still apply.  */
12252 #ifdef __cplusplus
12253 extern "C"
12254 #endif
12255 char shl_load ();
12256 /* The GNU C library defines this for functions which it implements
12257     to always fail with ENOSYS.  Some functions are actually named
12258     something starting with __ and the normal name is an alias.  */
12259 #if defined __stub_shl_load || defined __stub___shl_load
12260 choke me
12261 #endif
12262
12263 int
12264 main ()
12265 {
12266 return shl_load ();
12267   ;
12268   return 0;
12269 }
12270 _ACEOF
12271 rm -f conftest.$ac_objext conftest$ac_exeext
12272 if { (ac_try="$ac_link"
12273 case "(($ac_try" in
12274   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12275   *) ac_try_echo=$ac_try;;
12276 esac
12277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12278   (eval "$ac_link") 2>conftest.er1
12279   ac_status=$?
12280   grep -v '^ *+' conftest.er1 >conftest.err
12281   rm -f conftest.er1
12282   cat conftest.err >&5
12283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12284   (exit $ac_status); } && {
12285          test -z "$ac_c_werror_flag" ||
12286          test ! -s conftest.err
12287        } && test -s conftest$ac_exeext &&
12288        $as_test_x conftest$ac_exeext; then
12289   ac_cv_func_shl_load=yes
12290 else
12291   echo "$as_me: failed program was:" >&5
12292 sed 's/^/| /' conftest.$ac_ext >&5
12293
12294         ac_cv_func_shl_load=no
12295 fi
12296
12297 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12298       conftest$ac_exeext conftest.$ac_ext
12299 fi
12300 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12301 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
12302 if test $ac_cv_func_shl_load = yes; then
12303   lt_cv_dlopen="shl_load"
12304 else
12305   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12306 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
12307 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12308   echo $ECHO_N "(cached) $ECHO_C" >&6
12309 else
12310   ac_check_lib_save_LIBS=$LIBS
12311 LIBS="-ldld  $LIBS"
12312 cat >conftest.$ac_ext <<_ACEOF
12313 /* confdefs.h.  */
12314 _ACEOF
12315 cat confdefs.h >>conftest.$ac_ext
12316 cat >>conftest.$ac_ext <<_ACEOF
12317 /* end confdefs.h.  */
12318
12319 /* Override any GCC internal prototype to avoid an error.
12320    Use char because int might match the return type of a GCC
12321    builtin and then its argument prototype would still apply.  */
12322 #ifdef __cplusplus
12323 extern "C"
12324 #endif
12325 char shl_load ();
12326 int
12327 main ()
12328 {
12329 return shl_load ();
12330   ;
12331   return 0;
12332 }
12333 _ACEOF
12334 rm -f conftest.$ac_objext conftest$ac_exeext
12335 if { (ac_try="$ac_link"
12336 case "(($ac_try" in
12337   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12338   *) ac_try_echo=$ac_try;;
12339 esac
12340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12341   (eval "$ac_link") 2>conftest.er1
12342   ac_status=$?
12343   grep -v '^ *+' conftest.er1 >conftest.err
12344   rm -f conftest.er1
12345   cat conftest.err >&5
12346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12347   (exit $ac_status); } && {
12348          test -z "$ac_c_werror_flag" ||
12349          test ! -s conftest.err
12350        } && test -s conftest$ac_exeext &&
12351        $as_test_x conftest$ac_exeext; then
12352   ac_cv_lib_dld_shl_load=yes
12353 else
12354   echo "$as_me: failed program was:" >&5
12355 sed 's/^/| /' conftest.$ac_ext >&5
12356
12357         ac_cv_lib_dld_shl_load=no
12358 fi
12359
12360 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12361       conftest$ac_exeext conftest.$ac_ext
12362 LIBS=$ac_check_lib_save_LIBS
12363 fi
12364 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12365 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
12366 if test $ac_cv_lib_dld_shl_load = yes; then
12367   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12368 else
12369   { echo "$as_me:$LINENO: checking for dlopen" >&5
12370 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
12371 if test "${ac_cv_func_dlopen+set}" = set; then
12372   echo $ECHO_N "(cached) $ECHO_C" >&6
12373 else
12374   cat >conftest.$ac_ext <<_ACEOF
12375 /* confdefs.h.  */
12376 _ACEOF
12377 cat confdefs.h >>conftest.$ac_ext
12378 cat >>conftest.$ac_ext <<_ACEOF
12379 /* end confdefs.h.  */
12380 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12381    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12382 #define dlopen innocuous_dlopen
12383
12384 /* System header to define __stub macros and hopefully few prototypes,
12385     which can conflict with char dlopen (); below.
12386     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12387     <limits.h> exists even on freestanding compilers.  */
12388
12389 #ifdef __STDC__
12390 # include <limits.h>
12391 #else
12392 # include <assert.h>
12393 #endif
12394
12395 #undef dlopen
12396
12397 /* Override any GCC internal prototype to avoid an error.
12398    Use char because int might match the return type of a GCC
12399    builtin and then its argument prototype would still apply.  */
12400 #ifdef __cplusplus
12401 extern "C"
12402 #endif
12403 char dlopen ();
12404 /* The GNU C library defines this for functions which it implements
12405     to always fail with ENOSYS.  Some functions are actually named
12406     something starting with __ and the normal name is an alias.  */
12407 #if defined __stub_dlopen || defined __stub___dlopen
12408 choke me
12409 #endif
12410
12411 int
12412 main ()
12413 {
12414 return dlopen ();
12415   ;
12416   return 0;
12417 }
12418 _ACEOF
12419 rm -f conftest.$ac_objext conftest$ac_exeext
12420 if { (ac_try="$ac_link"
12421 case "(($ac_try" in
12422   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12423   *) ac_try_echo=$ac_try;;
12424 esac
12425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12426   (eval "$ac_link") 2>conftest.er1
12427   ac_status=$?
12428   grep -v '^ *+' conftest.er1 >conftest.err
12429   rm -f conftest.er1
12430   cat conftest.err >&5
12431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12432   (exit $ac_status); } && {
12433          test -z "$ac_c_werror_flag" ||
12434          test ! -s conftest.err
12435        } && test -s conftest$ac_exeext &&
12436        $as_test_x conftest$ac_exeext; then
12437   ac_cv_func_dlopen=yes
12438 else
12439   echo "$as_me: failed program was:" >&5
12440 sed 's/^/| /' conftest.$ac_ext >&5
12441
12442         ac_cv_func_dlopen=no
12443 fi
12444
12445 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12446       conftest$ac_exeext conftest.$ac_ext
12447 fi
12448 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12449 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
12450 if test $ac_cv_func_dlopen = yes; then
12451   lt_cv_dlopen="dlopen"
12452 else
12453   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12454 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
12455 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12456   echo $ECHO_N "(cached) $ECHO_C" >&6
12457 else
12458   ac_check_lib_save_LIBS=$LIBS
12459 LIBS="-ldl  $LIBS"
12460 cat >conftest.$ac_ext <<_ACEOF
12461 /* confdefs.h.  */
12462 _ACEOF
12463 cat confdefs.h >>conftest.$ac_ext
12464 cat >>conftest.$ac_ext <<_ACEOF
12465 /* end confdefs.h.  */
12466
12467 /* Override any GCC internal prototype to avoid an error.
12468    Use char because int might match the return type of a GCC
12469    builtin and then its argument prototype would still apply.  */
12470 #ifdef __cplusplus
12471 extern "C"
12472 #endif
12473 char dlopen ();
12474 int
12475 main ()
12476 {
12477 return dlopen ();
12478   ;
12479   return 0;
12480 }
12481 _ACEOF
12482 rm -f conftest.$ac_objext conftest$ac_exeext
12483 if { (ac_try="$ac_link"
12484 case "(($ac_try" in
12485   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12486   *) ac_try_echo=$ac_try;;
12487 esac
12488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12489   (eval "$ac_link") 2>conftest.er1
12490   ac_status=$?
12491   grep -v '^ *+' conftest.er1 >conftest.err
12492   rm -f conftest.er1
12493   cat conftest.err >&5
12494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12495   (exit $ac_status); } && {
12496          test -z "$ac_c_werror_flag" ||
12497          test ! -s conftest.err
12498        } && test -s conftest$ac_exeext &&
12499        $as_test_x conftest$ac_exeext; then
12500   ac_cv_lib_dl_dlopen=yes
12501 else
12502   echo "$as_me: failed program was:" >&5
12503 sed 's/^/| /' conftest.$ac_ext >&5
12504
12505         ac_cv_lib_dl_dlopen=no
12506 fi
12507
12508 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12509       conftest$ac_exeext conftest.$ac_ext
12510 LIBS=$ac_check_lib_save_LIBS
12511 fi
12512 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12513 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
12514 if test $ac_cv_lib_dl_dlopen = yes; then
12515   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12516 else
12517   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12518 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
12519 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12520   echo $ECHO_N "(cached) $ECHO_C" >&6
12521 else
12522   ac_check_lib_save_LIBS=$LIBS
12523 LIBS="-lsvld  $LIBS"
12524 cat >conftest.$ac_ext <<_ACEOF
12525 /* confdefs.h.  */
12526 _ACEOF
12527 cat confdefs.h >>conftest.$ac_ext
12528 cat >>conftest.$ac_ext <<_ACEOF
12529 /* end confdefs.h.  */
12530
12531 /* Override any GCC internal prototype to avoid an error.
12532    Use char because int might match the return type of a GCC
12533    builtin and then its argument prototype would still apply.  */
12534 #ifdef __cplusplus
12535 extern "C"
12536 #endif
12537 char dlopen ();
12538 int
12539 main ()
12540 {
12541 return dlopen ();
12542   ;
12543   return 0;
12544 }
12545 _ACEOF
12546 rm -f conftest.$ac_objext conftest$ac_exeext
12547 if { (ac_try="$ac_link"
12548 case "(($ac_try" in
12549   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12550   *) ac_try_echo=$ac_try;;
12551 esac
12552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12553   (eval "$ac_link") 2>conftest.er1
12554   ac_status=$?
12555   grep -v '^ *+' conftest.er1 >conftest.err
12556   rm -f conftest.er1
12557   cat conftest.err >&5
12558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12559   (exit $ac_status); } && {
12560          test -z "$ac_c_werror_flag" ||
12561          test ! -s conftest.err
12562        } && test -s conftest$ac_exeext &&
12563        $as_test_x conftest$ac_exeext; then
12564   ac_cv_lib_svld_dlopen=yes
12565 else
12566   echo "$as_me: failed program was:" >&5
12567 sed 's/^/| /' conftest.$ac_ext >&5
12568
12569         ac_cv_lib_svld_dlopen=no
12570 fi
12571
12572 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12573       conftest$ac_exeext conftest.$ac_ext
12574 LIBS=$ac_check_lib_save_LIBS
12575 fi
12576 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12577 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
12578 if test $ac_cv_lib_svld_dlopen = yes; then
12579   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12580 else
12581   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12582 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
12583 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12584   echo $ECHO_N "(cached) $ECHO_C" >&6
12585 else
12586   ac_check_lib_save_LIBS=$LIBS
12587 LIBS="-ldld  $LIBS"
12588 cat >conftest.$ac_ext <<_ACEOF
12589 /* confdefs.h.  */
12590 _ACEOF
12591 cat confdefs.h >>conftest.$ac_ext
12592 cat >>conftest.$ac_ext <<_ACEOF
12593 /* end confdefs.h.  */
12594
12595 /* Override any GCC internal prototype to avoid an error.
12596    Use char because int might match the return type of a GCC
12597    builtin and then its argument prototype would still apply.  */
12598 #ifdef __cplusplus
12599 extern "C"
12600 #endif
12601 char dld_link ();
12602 int
12603 main ()
12604 {
12605 return dld_link ();
12606   ;
12607   return 0;
12608 }
12609 _ACEOF
12610 rm -f conftest.$ac_objext conftest$ac_exeext
12611 if { (ac_try="$ac_link"
12612 case "(($ac_try" in
12613   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12614   *) ac_try_echo=$ac_try;;
12615 esac
12616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12617   (eval "$ac_link") 2>conftest.er1
12618   ac_status=$?
12619   grep -v '^ *+' conftest.er1 >conftest.err
12620   rm -f conftest.er1
12621   cat conftest.err >&5
12622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12623   (exit $ac_status); } && {
12624          test -z "$ac_c_werror_flag" ||
12625          test ! -s conftest.err
12626        } && test -s conftest$ac_exeext &&
12627        $as_test_x conftest$ac_exeext; then
12628   ac_cv_lib_dld_dld_link=yes
12629 else
12630   echo "$as_me: failed program was:" >&5
12631 sed 's/^/| /' conftest.$ac_ext >&5
12632
12633         ac_cv_lib_dld_dld_link=no
12634 fi
12635
12636 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12637       conftest$ac_exeext conftest.$ac_ext
12638 LIBS=$ac_check_lib_save_LIBS
12639 fi
12640 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12641 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
12642 if test $ac_cv_lib_dld_dld_link = yes; then
12643   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12644 fi
12645
12646
12647 fi
12648
12649
12650 fi
12651
12652
12653 fi
12654
12655
12656 fi
12657
12658
12659 fi
12660
12661     ;;
12662   esac
12663
12664   if test "x$lt_cv_dlopen" != xno; then
12665     enable_dlopen=yes
12666   else
12667     enable_dlopen=no
12668   fi
12669
12670   case $lt_cv_dlopen in
12671   dlopen)
12672     save_CPPFLAGS="$CPPFLAGS"
12673     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12674
12675     save_LDFLAGS="$LDFLAGS"
12676     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12677
12678     save_LIBS="$LIBS"
12679     LIBS="$lt_cv_dlopen_libs $LIBS"
12680
12681     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12682 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
12683 if test "${lt_cv_dlopen_self+set}" = set; then
12684   echo $ECHO_N "(cached) $ECHO_C" >&6
12685 else
12686           if test "$cross_compiling" = yes; then :
12687   lt_cv_dlopen_self=cross
12688 else
12689   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12690   lt_status=$lt_dlunknown
12691   cat > conftest.$ac_ext <<_LT_EOF
12692 #line 12692 "configure"
12693 #include "confdefs.h"
12694
12695 #if HAVE_DLFCN_H
12696 #include <dlfcn.h>
12697 #endif
12698
12699 #include <stdio.h>
12700
12701 #ifdef RTLD_GLOBAL
12702 #  define LT_DLGLOBAL           RTLD_GLOBAL
12703 #else
12704 #  ifdef DL_GLOBAL
12705 #    define LT_DLGLOBAL         DL_GLOBAL
12706 #  else
12707 #    define LT_DLGLOBAL         0
12708 #  endif
12709 #endif
12710
12711 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12712    find out it does not work in some platform. */
12713 #ifndef LT_DLLAZY_OR_NOW
12714 #  ifdef RTLD_LAZY
12715 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12716 #  else
12717 #    ifdef DL_LAZY
12718 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12719 #    else
12720 #      ifdef RTLD_NOW
12721 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12722 #      else
12723 #        ifdef DL_NOW
12724 #          define LT_DLLAZY_OR_NOW      DL_NOW
12725 #        else
12726 #          define LT_DLLAZY_OR_NOW      0
12727 #        endif
12728 #      endif
12729 #    endif
12730 #  endif
12731 #endif
12732
12733 void fnord() { int i=42;}
12734 int main ()
12735 {
12736   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12737   int status = $lt_dlunknown;
12738
12739   if (self)
12740     {
12741       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12742       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12743       /* dlclose (self); */
12744     }
12745   else
12746     puts (dlerror ());
12747
12748   return status;
12749 }
12750 _LT_EOF
12751   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12752   (eval $ac_link) 2>&5
12753   ac_status=$?
12754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12755   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12756     (./conftest; exit; ) >&5 2>/dev/null
12757     lt_status=$?
12758     case x$lt_status in
12759       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12760       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12761       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12762     esac
12763   else :
12764     # compilation failed
12765     lt_cv_dlopen_self=no
12766   fi
12767 fi
12768 rm -fr conftest*
12769
12770
12771 fi
12772 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12773 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
12774
12775     if test "x$lt_cv_dlopen_self" = xyes; then
12776       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12777       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12778 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
12779 if test "${lt_cv_dlopen_self_static+set}" = set; then
12780   echo $ECHO_N "(cached) $ECHO_C" >&6
12781 else
12782           if test "$cross_compiling" = yes; then :
12783   lt_cv_dlopen_self_static=cross
12784 else
12785   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12786   lt_status=$lt_dlunknown
12787   cat > conftest.$ac_ext <<_LT_EOF
12788 #line 12788 "configure"
12789 #include "confdefs.h"
12790
12791 #if HAVE_DLFCN_H
12792 #include <dlfcn.h>
12793 #endif
12794
12795 #include <stdio.h>
12796
12797 #ifdef RTLD_GLOBAL
12798 #  define LT_DLGLOBAL           RTLD_GLOBAL
12799 #else
12800 #  ifdef DL_GLOBAL
12801 #    define LT_DLGLOBAL         DL_GLOBAL
12802 #  else
12803 #    define LT_DLGLOBAL         0
12804 #  endif
12805 #endif
12806
12807 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12808    find out it does not work in some platform. */
12809 #ifndef LT_DLLAZY_OR_NOW
12810 #  ifdef RTLD_LAZY
12811 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12812 #  else
12813 #    ifdef DL_LAZY
12814 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12815 #    else
12816 #      ifdef RTLD_NOW
12817 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12818 #      else
12819 #        ifdef DL_NOW
12820 #          define LT_DLLAZY_OR_NOW      DL_NOW
12821 #        else
12822 #          define LT_DLLAZY_OR_NOW      0
12823 #        endif
12824 #      endif
12825 #    endif
12826 #  endif
12827 #endif
12828
12829 void fnord() { int i=42;}
12830 int main ()
12831 {
12832   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12833   int status = $lt_dlunknown;
12834
12835   if (self)
12836     {
12837       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12838       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12839       /* dlclose (self); */
12840     }
12841   else
12842     puts (dlerror ());
12843
12844   return status;
12845 }
12846 _LT_EOF
12847   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12848   (eval $ac_link) 2>&5
12849   ac_status=$?
12850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12851   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12852     (./conftest; exit; ) >&5 2>/dev/null
12853     lt_status=$?
12854     case x$lt_status in
12855       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12856       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12857       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12858     esac
12859   else :
12860     # compilation failed
12861     lt_cv_dlopen_self_static=no
12862   fi
12863 fi
12864 rm -fr conftest*
12865
12866
12867 fi
12868 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12869 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
12870     fi
12871
12872     CPPFLAGS="$save_CPPFLAGS"
12873     LDFLAGS="$save_LDFLAGS"
12874     LIBS="$save_LIBS"
12875     ;;
12876   esac
12877
12878   case $lt_cv_dlopen_self in
12879   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12880   *) enable_dlopen_self=unknown ;;
12881   esac
12882
12883   case $lt_cv_dlopen_self_static in
12884   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12885   *) enable_dlopen_self_static=unknown ;;
12886   esac
12887 fi
12888
12889
12890
12891
12892
12893
12894
12895
12896
12897
12898
12899
12900
12901
12902
12903
12904
12905 striplib=
12906 old_striplib=
12907 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12908 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
12909 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12910   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12911   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12912   { echo "$as_me:$LINENO: result: yes" >&5
12913 echo "${ECHO_T}yes" >&6; }
12914 else
12915 # FIXME - insert some real tests, host_os isn't really good enough
12916   case $host_os in
12917   darwin*)
12918     if test -n "$STRIP" ; then
12919       striplib="$STRIP -x"
12920       old_striplib="$STRIP -S"
12921       { echo "$as_me:$LINENO: result: yes" >&5
12922 echo "${ECHO_T}yes" >&6; }
12923     else
12924       { echo "$as_me:$LINENO: result: no" >&5
12925 echo "${ECHO_T}no" >&6; }
12926     fi
12927     ;;
12928   *)
12929     { echo "$as_me:$LINENO: result: no" >&5
12930 echo "${ECHO_T}no" >&6; }
12931     ;;
12932   esac
12933 fi
12934
12935
12936
12937
12938
12939
12940
12941
12942
12943
12944
12945
12946   # Report which library types will actually be built
12947   { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12948 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
12949   { echo "$as_me:$LINENO: result: $can_build_shared" >&5
12950 echo "${ECHO_T}$can_build_shared" >&6; }
12951
12952   { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12953 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
12954   test "$can_build_shared" = "no" && enable_shared=no
12955
12956   # On AIX, shared libraries and static libraries use the same namespace, and
12957   # are all built from PIC.
12958   case $host_os in
12959   aix3*)
12960     test "$enable_shared" = yes && enable_static=no
12961     if test -n "$RANLIB"; then
12962       archive_cmds="$archive_cmds~\$RANLIB \$lib"
12963       postinstall_cmds='$RANLIB $lib'
12964     fi
12965     ;;
12966
12967   aix[4-9]*)
12968     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12969       test "$enable_shared" = yes && enable_static=no
12970     fi
12971     ;;
12972   esac
12973   { echo "$as_me:$LINENO: result: $enable_shared" >&5
12974 echo "${ECHO_T}$enable_shared" >&6; }
12975
12976   { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12977 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
12978   # Make sure either enable_shared or enable_static is yes.
12979   test "$enable_shared" = yes || enable_static=yes
12980   { echo "$as_me:$LINENO: result: $enable_static" >&5
12981 echo "${ECHO_T}$enable_static" >&6; }
12982
12983
12984
12985
12986 fi
12987 ac_ext=c
12988 ac_cpp='$CPP $CPPFLAGS'
12989 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12990 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12991 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12992
12993 CC="$lt_save_CC"
12994
12995
12996 ac_ext=cpp
12997 ac_cpp='$CXXCPP $CPPFLAGS'
12998 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12999 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13000 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13001
13002 archive_cmds_need_lc_CXX=no
13003 allow_undefined_flag_CXX=
13004 always_export_symbols_CXX=no
13005 archive_expsym_cmds_CXX=
13006 compiler_needs_object_CXX=no
13007 export_dynamic_flag_spec_CXX=
13008 hardcode_direct_CXX=no
13009 hardcode_direct_absolute_CXX=no
13010 hardcode_libdir_flag_spec_CXX=
13011 hardcode_libdir_flag_spec_ld_CXX=
13012 hardcode_libdir_separator_CXX=
13013 hardcode_minus_L_CXX=no
13014 hardcode_shlibpath_var_CXX=unsupported
13015 hardcode_automatic_CXX=no
13016 inherit_rpath_CXX=no
13017 module_cmds_CXX=
13018 module_expsym_cmds_CXX=
13019 link_all_deplibs_CXX=unknown
13020 old_archive_cmds_CXX=$old_archive_cmds
13021 no_undefined_flag_CXX=
13022 whole_archive_flag_spec_CXX=
13023 enable_shared_with_static_runtimes_CXX=no
13024
13025 # Source file extension for C++ test sources.
13026 ac_ext=cpp
13027
13028 # Object file extension for compiled C++ test sources.
13029 objext=o
13030 objext_CXX=$objext
13031
13032 # No sense in running all these tests if we already determined that
13033 # the CXX compiler isn't working.  Some variables (like enable_shared)
13034 # are currently assumed to apply to all compilers on this platform,
13035 # and will be corrupted by setting them based on a non-working compiler.
13036 if test "$_lt_caught_CXX_error" != yes; then
13037   # Code to be used in simple compile tests
13038   lt_simple_compile_test_code="int some_variable = 0;"
13039
13040   # Code to be used in simple link tests
13041   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13042
13043   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13044
13045
13046
13047
13048
13049
13050 # If no C compiler was specified, use CC.
13051 LTCC=${LTCC-"$CC"}
13052
13053 # If no C compiler flags were specified, use CFLAGS.
13054 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13055
13056 # Allow CC to be a program name with arguments.
13057 compiler=$CC
13058
13059
13060   # save warnings/boilerplate of simple test code
13061   ac_outfile=conftest.$ac_objext
13062 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13063 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13064 _lt_compiler_boilerplate=`cat conftest.err`
13065 $RM conftest*
13066
13067   ac_outfile=conftest.$ac_objext
13068 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13069 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13070 _lt_linker_boilerplate=`cat conftest.err`
13071 $RM -r conftest*
13072
13073
13074   # Allow CC to be a program name with arguments.
13075   lt_save_CC=$CC
13076   lt_save_LD=$LD
13077   lt_save_GCC=$GCC
13078   GCC=$GXX
13079   lt_save_with_gnu_ld=$with_gnu_ld
13080   lt_save_path_LD=$lt_cv_path_LD
13081   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13082     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13083   else
13084     $as_unset lt_cv_prog_gnu_ld
13085   fi
13086   if test -n "${lt_cv_path_LDCXX+set}"; then
13087     lt_cv_path_LD=$lt_cv_path_LDCXX
13088   else
13089     $as_unset lt_cv_path_LD
13090   fi
13091   test -z "${LDCXX+set}" || LD=$LDCXX
13092   CC=${CXX-"c++"}
13093   compiler=$CC
13094   compiler_CXX=$CC
13095   for cc_temp in $compiler""; do
13096   case $cc_temp in
13097     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13098     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13099     \-*) ;;
13100     *) break;;
13101   esac
13102 done
13103 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13104
13105
13106   if test -n "$compiler"; then
13107     # We don't want -fno-exception when compiling C++ code, so set the
13108     # no_builtin_flag separately
13109     if test "$GXX" = yes; then
13110       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13111     else
13112       lt_prog_compiler_no_builtin_flag_CXX=
13113     fi
13114
13115     if test "$GXX" = yes; then
13116       # Set up default GNU C++ configuration
13117
13118
13119
13120 # Check whether --with-gnu-ld was given.
13121 if test "${with_gnu_ld+set}" = set; then
13122   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13123 else
13124   with_gnu_ld=no
13125 fi
13126
13127 ac_prog=ld
13128 if test "$GCC" = yes; then
13129   # Check if gcc -print-prog-name=ld gives a path.
13130   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
13131 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
13132   case $host in
13133   *-*-mingw*)
13134     # gcc leaves a trailing carriage return which upsets mingw
13135     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13136   *)
13137     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13138   esac
13139   case $ac_prog in
13140     # Accept absolute paths.
13141     [\\/]* | ?:[\\/]*)
13142       re_direlt='/[^/][^/]*/\.\./'
13143       # Canonicalize the pathname of ld
13144       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13145       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13146         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13147       done
13148       test -z "$LD" && LD="$ac_prog"
13149       ;;
13150   "")
13151     # If it fails, then pretend we aren't using GCC.
13152     ac_prog=ld
13153     ;;
13154   *)
13155     # If it is relative, then search for the first ld in PATH.
13156     with_gnu_ld=unknown
13157     ;;
13158   esac
13159 elif test "$with_gnu_ld" = yes; then
13160   { echo "$as_me:$LINENO: checking for GNU ld" >&5
13161 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
13162 else
13163   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
13164 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
13165 fi
13166 if test "${lt_cv_path_LD+set}" = set; then
13167   echo $ECHO_N "(cached) $ECHO_C" >&6
13168 else
13169   if test -z "$LD"; then
13170   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13171   for ac_dir in $PATH; do
13172     IFS="$lt_save_ifs"
13173     test -z "$ac_dir" && ac_dir=.
13174     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13175       lt_cv_path_LD="$ac_dir/$ac_prog"
13176       # Check to see if the program is GNU ld.  I'd rather use --version,
13177       # but apparently some variants of GNU ld only accept -v.
13178       # Break only if it was the GNU/non-GNU ld that we prefer.
13179       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13180       *GNU* | *'with BFD'*)
13181         test "$with_gnu_ld" != no && break
13182         ;;
13183       *)
13184         test "$with_gnu_ld" != yes && break
13185         ;;
13186       esac
13187     fi
13188   done
13189   IFS="$lt_save_ifs"
13190 else
13191   lt_cv_path_LD="$LD" # Let the user override the test with a path.
13192 fi
13193 fi
13194
13195 LD="$lt_cv_path_LD"
13196 if test -n "$LD"; then
13197   { echo "$as_me:$LINENO: result: $LD" >&5
13198 echo "${ECHO_T}$LD" >&6; }
13199 else
13200   { echo "$as_me:$LINENO: result: no" >&5
13201 echo "${ECHO_T}no" >&6; }
13202 fi
13203 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
13204 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
13205    { (exit 1); exit 1; }; }
13206 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
13207 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
13208 if test "${lt_cv_prog_gnu_ld+set}" = set; then
13209   echo $ECHO_N "(cached) $ECHO_C" >&6
13210 else
13211   # I'd rather use --version here, but apparently some GNU lds only accept -v.
13212 case `$LD -v 2>&1 </dev/null` in
13213 *GNU* | *'with BFD'*)
13214   lt_cv_prog_gnu_ld=yes
13215   ;;
13216 *)
13217   lt_cv_prog_gnu_ld=no
13218   ;;
13219 esac
13220 fi
13221 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
13222 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
13223 with_gnu_ld=$lt_cv_prog_gnu_ld
13224
13225
13226
13227
13228
13229
13230
13231       # Check if GNU C++ uses GNU ld as the underlying linker, since the
13232       # archiving commands below assume that GNU ld is being used.
13233       if test "$with_gnu_ld" = yes; then
13234         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13235         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'
13236
13237         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13238         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13239
13240         # If archive_cmds runs LD, not CC, wlarc should be empty
13241         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13242         #     investigate it a little bit more. (MM)
13243         wlarc='${wl}'
13244
13245         # ancient GNU ld didn't support --whole-archive et. al.
13246         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13247           $GREP 'no-whole-archive' > /dev/null; then
13248           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13249         else
13250           whole_archive_flag_spec_CXX=
13251         fi
13252       else
13253         with_gnu_ld=no
13254         wlarc=
13255
13256         # A generic and very simple default shared library creation
13257         # command for GNU C++ for the case where it uses the native
13258         # linker, instead of GNU ld.  If possible, this setting should
13259         # overridden to take advantage of the native linker features on
13260         # the platform it is being used on.
13261         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13262       fi
13263
13264       # Commands to make compiler produce verbose output that lists
13265       # what "hidden" libraries, object files and flags are used when
13266       # linking a shared library.
13267       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13268
13269     else
13270       GXX=no
13271       with_gnu_ld=no
13272       wlarc=
13273     fi
13274
13275     # PORTME: fill in a description of your system's C++ link characteristics
13276     { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13277 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
13278     ld_shlibs_CXX=yes
13279     case $host_os in
13280       aix3*)
13281         # FIXME: insert proper C++ library support
13282         ld_shlibs_CXX=no
13283         ;;
13284       aix[4-9]*)
13285         if test "$host_cpu" = ia64; then
13286           # On IA64, the linker does run time linking by default, so we don't
13287           # have to do anything special.
13288           aix_use_runtimelinking=no
13289           exp_sym_flag='-Bexport'
13290           no_entry_flag=""
13291         else
13292           aix_use_runtimelinking=no
13293
13294           # Test if we are trying to use run time linking or normal
13295           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13296           # need to do runtime linking.
13297           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13298             for ld_flag in $LDFLAGS; do
13299               case $ld_flag in
13300               *-brtl*)
13301                 aix_use_runtimelinking=yes
13302                 break
13303                 ;;
13304               esac
13305             done
13306             ;;
13307           esac
13308
13309           exp_sym_flag='-bexport'
13310           no_entry_flag='-bnoentry'
13311         fi
13312
13313         # When large executables or shared objects are built, AIX ld can
13314         # have problems creating the table of contents.  If linking a library
13315         # or program results in "error TOC overflow" add -mminimal-toc to
13316         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13317         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13318
13319         archive_cmds_CXX=''
13320         hardcode_direct_CXX=yes
13321         hardcode_direct_absolute_CXX=yes
13322         hardcode_libdir_separator_CXX=':'
13323         link_all_deplibs_CXX=yes
13324         file_list_spec_CXX='${wl}-f,'
13325
13326         if test "$GXX" = yes; then
13327           case $host_os in aix4.[012]|aix4.[012].*)
13328           # We only want to do this on AIX 4.2 and lower, the check
13329           # below for broken collect2 doesn't work under 4.3+
13330           collect2name=`${CC} -print-prog-name=collect2`
13331           if test -f "$collect2name" &&
13332              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13333           then
13334             # We have reworked collect2
13335             :
13336           else
13337             # We have old collect2
13338             hardcode_direct_CXX=unsupported
13339             # It fails to find uninstalled libraries when the uninstalled
13340             # path is not listed in the libpath.  Setting hardcode_minus_L
13341             # to unsupported forces relinking
13342             hardcode_minus_L_CXX=yes
13343             hardcode_libdir_flag_spec_CXX='-L$libdir'
13344             hardcode_libdir_separator_CXX=
13345           fi
13346           esac
13347           shared_flag='-shared'
13348           if test "$aix_use_runtimelinking" = yes; then
13349             shared_flag="$shared_flag "'${wl}-G'
13350           fi
13351         else
13352           # not using gcc
13353           if test "$host_cpu" = ia64; then
13354           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13355           # chokes on -Wl,-G. The following line is correct:
13356           shared_flag='-G'
13357           else
13358             if test "$aix_use_runtimelinking" = yes; then
13359               shared_flag='${wl}-G'
13360             else
13361               shared_flag='${wl}-bM:SRE'
13362             fi
13363           fi
13364         fi
13365
13366         export_dynamic_flag_spec_CXX='${wl}-bexpall'
13367         # It seems that -bexpall does not export symbols beginning with
13368         # underscore (_), so it is better to generate a list of symbols to
13369         # export.
13370         always_export_symbols_CXX=yes
13371         if test "$aix_use_runtimelinking" = yes; then
13372           # Warning - without using the other runtime loading flags (-brtl),
13373           # -berok will link without error, but may produce a broken library.
13374           allow_undefined_flag_CXX='-berok'
13375           # Determine the default libpath from the value encoded in an empty
13376           # executable.
13377           cat >conftest.$ac_ext <<_ACEOF
13378 /* confdefs.h.  */
13379 _ACEOF
13380 cat confdefs.h >>conftest.$ac_ext
13381 cat >>conftest.$ac_ext <<_ACEOF
13382 /* end confdefs.h.  */
13383
13384 int
13385 main ()
13386 {
13387
13388   ;
13389   return 0;
13390 }
13391 _ACEOF
13392 rm -f conftest.$ac_objext conftest$ac_exeext
13393 if { (ac_try="$ac_link"
13394 case "(($ac_try" in
13395   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13396   *) ac_try_echo=$ac_try;;
13397 esac
13398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13399   (eval "$ac_link") 2>conftest.er1
13400   ac_status=$?
13401   grep -v '^ *+' conftest.er1 >conftest.err
13402   rm -f conftest.er1
13403   cat conftest.err >&5
13404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13405   (exit $ac_status); } && {
13406          test -z "$ac_cxx_werror_flag" ||
13407          test ! -s conftest.err
13408        } && test -s conftest$ac_exeext &&
13409        $as_test_x conftest$ac_exeext; then
13410
13411 lt_aix_libpath_sed='
13412     /Import File Strings/,/^$/ {
13413         /^0/ {
13414             s/^0  *\(.*\)$/\1/
13415             p
13416         }
13417     }'
13418 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13419 # Check for a 64-bit object if we didn't find anything.
13420 if test -z "$aix_libpath"; then
13421   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13422 fi
13423 else
13424   echo "$as_me: failed program was:" >&5
13425 sed 's/^/| /' conftest.$ac_ext >&5
13426
13427
13428 fi
13429
13430 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13431       conftest$ac_exeext conftest.$ac_ext
13432 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13433
13434           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13435
13436           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"
13437         else
13438           if test "$host_cpu" = ia64; then
13439             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13440             allow_undefined_flag_CXX="-z nodefs"
13441             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"
13442           else
13443             # Determine the default libpath from the value encoded in an
13444             # empty executable.
13445             cat >conftest.$ac_ext <<_ACEOF
13446 /* confdefs.h.  */
13447 _ACEOF
13448 cat confdefs.h >>conftest.$ac_ext
13449 cat >>conftest.$ac_ext <<_ACEOF
13450 /* end confdefs.h.  */
13451
13452 int
13453 main ()
13454 {
13455
13456   ;
13457   return 0;
13458 }
13459 _ACEOF
13460 rm -f conftest.$ac_objext conftest$ac_exeext
13461 if { (ac_try="$ac_link"
13462 case "(($ac_try" in
13463   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13464   *) ac_try_echo=$ac_try;;
13465 esac
13466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13467   (eval "$ac_link") 2>conftest.er1
13468   ac_status=$?
13469   grep -v '^ *+' conftest.er1 >conftest.err
13470   rm -f conftest.er1
13471   cat conftest.err >&5
13472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13473   (exit $ac_status); } && {
13474          test -z "$ac_cxx_werror_flag" ||
13475          test ! -s conftest.err
13476        } && test -s conftest$ac_exeext &&
13477        $as_test_x conftest$ac_exeext; then
13478
13479 lt_aix_libpath_sed='
13480     /Import File Strings/,/^$/ {
13481         /^0/ {
13482             s/^0  *\(.*\)$/\1/
13483             p
13484         }
13485     }'
13486 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13487 # Check for a 64-bit object if we didn't find anything.
13488 if test -z "$aix_libpath"; then
13489   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13490 fi
13491 else
13492   echo "$as_me: failed program was:" >&5
13493 sed 's/^/| /' conftest.$ac_ext >&5
13494
13495
13496 fi
13497
13498 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13499       conftest$ac_exeext conftest.$ac_ext
13500 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13501
13502             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13503             # Warning - without using the other run time loading flags,
13504             # -berok will link without error, but may produce a broken library.
13505             no_undefined_flag_CXX=' ${wl}-bernotok'
13506             allow_undefined_flag_CXX=' ${wl}-berok'
13507             # Exported symbols can be pulled into shared objects from archives
13508             whole_archive_flag_spec_CXX='$convenience'
13509             archive_cmds_need_lc_CXX=yes
13510             # This is similar to how AIX traditionally builds its shared
13511             # libraries.
13512             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'
13513           fi
13514         fi
13515         ;;
13516
13517       beos*)
13518         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13519           allow_undefined_flag_CXX=unsupported
13520           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13521           # support --undefined.  This deserves some investigation.  FIXME
13522           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13523         else
13524           ld_shlibs_CXX=no
13525         fi
13526         ;;
13527
13528       chorus*)
13529         case $cc_basename in
13530           *)
13531           # FIXME: insert proper C++ library support
13532           ld_shlibs_CXX=no
13533           ;;
13534         esac
13535         ;;
13536
13537       cygwin* | mingw* | pw32* | cegcc*)
13538         # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13539         # as there is no search path for DLLs.
13540         hardcode_libdir_flag_spec_CXX='-L$libdir'
13541         allow_undefined_flag_CXX=unsupported
13542         always_export_symbols_CXX=no
13543         enable_shared_with_static_runtimes_CXX=yes
13544
13545         if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13546           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'
13547           # If the export-symbols file already is a .def file (1st line
13548           # is EXPORTS), use it as is; otherwise, prepend...
13549           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13550             cp $export_symbols $output_objdir/$soname.def;
13551           else
13552             echo EXPORTS > $output_objdir/$soname.def;
13553             cat $export_symbols >> $output_objdir/$soname.def;
13554           fi~
13555           $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'
13556         else
13557           ld_shlibs_CXX=no
13558         fi
13559         ;;
13560       darwin* | rhapsody*)
13561
13562
13563   archive_cmds_need_lc_CXX=no
13564   hardcode_direct_CXX=no
13565   hardcode_automatic_CXX=yes
13566   hardcode_shlibpath_var_CXX=unsupported
13567   whole_archive_flag_spec_CXX=''
13568   link_all_deplibs_CXX=yes
13569   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13570   case $cc_basename in
13571      ifort*) _lt_dar_can_shared=yes ;;
13572      *) _lt_dar_can_shared=$GCC ;;
13573   esac
13574   if test "$_lt_dar_can_shared" = "yes"; then
13575     output_verbose_link_cmd=echo
13576     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}"
13577     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13578     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}"
13579     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}"
13580        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13581       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}"
13582       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}"
13583     fi
13584
13585   else
13586   ld_shlibs_CXX=no
13587   fi
13588
13589         ;;
13590
13591       dgux*)
13592         case $cc_basename in
13593           ec++*)
13594             # FIXME: insert proper C++ library support
13595             ld_shlibs_CXX=no
13596             ;;
13597           ghcx*)
13598             # Green Hills C++ Compiler
13599             # FIXME: insert proper C++ library support
13600             ld_shlibs_CXX=no
13601             ;;
13602           *)
13603             # FIXME: insert proper C++ library support
13604             ld_shlibs_CXX=no
13605             ;;
13606         esac
13607         ;;
13608
13609       freebsd[12]*)
13610         # C++ shared libraries reported to be fairly broken before
13611         # switch to ELF
13612         ld_shlibs_CXX=no
13613         ;;
13614
13615       freebsd-elf*)
13616         archive_cmds_need_lc_CXX=no
13617         ;;
13618
13619       freebsd* | dragonfly*)
13620         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13621         # conventions
13622         ld_shlibs_CXX=yes
13623         ;;
13624
13625       gnu*)
13626         ;;
13627
13628       hpux9*)
13629         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13630         hardcode_libdir_separator_CXX=:
13631         export_dynamic_flag_spec_CXX='${wl}-E'
13632         hardcode_direct_CXX=yes
13633         hardcode_minus_L_CXX=yes # Not in the search PATH,
13634                                              # but as the default
13635                                              # location of the library.
13636
13637         case $cc_basename in
13638           CC*)
13639             # FIXME: insert proper C++ library support
13640             ld_shlibs_CXX=no
13641             ;;
13642           aCC*)
13643             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'
13644             # Commands to make compiler produce verbose output that lists
13645             # what "hidden" libraries, object files and flags are used when
13646             # linking a shared library.
13647             #
13648             # There doesn't appear to be a way to prevent this compiler from
13649             # explicitly linking system object files so we need to strip them
13650             # from the output so that they don't get included in the library
13651             # dependencies.
13652             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'
13653             ;;
13654           *)
13655             if test "$GXX" = yes; then
13656               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'
13657             else
13658               # FIXME: insert proper C++ library support
13659               ld_shlibs_CXX=no
13660             fi
13661             ;;
13662         esac
13663         ;;
13664
13665       hpux10*|hpux11*)
13666         if test $with_gnu_ld = no; then
13667           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13668           hardcode_libdir_separator_CXX=:
13669
13670           case $host_cpu in
13671             hppa*64*|ia64*)
13672               ;;
13673             *)
13674               export_dynamic_flag_spec_CXX='${wl}-E'
13675               ;;
13676           esac
13677         fi
13678         case $host_cpu in
13679           hppa*64*|ia64*)
13680             hardcode_direct_CXX=no
13681             hardcode_shlibpath_var_CXX=no
13682             ;;
13683           *)
13684             hardcode_direct_CXX=yes
13685             hardcode_direct_absolute_CXX=yes
13686             hardcode_minus_L_CXX=yes # Not in the search PATH,
13687                                                  # but as the default
13688                                                  # location of the library.
13689             ;;
13690         esac
13691
13692         case $cc_basename in
13693           CC*)
13694             # FIXME: insert proper C++ library support
13695             ld_shlibs_CXX=no
13696             ;;
13697           aCC*)
13698             case $host_cpu in
13699               hppa*64*)
13700                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13701                 ;;
13702               ia64*)
13703                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13704                 ;;
13705               *)
13706                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13707                 ;;
13708             esac
13709             # Commands to make compiler produce verbose output that lists
13710             # what "hidden" libraries, object files and flags are used when
13711             # linking a shared library.
13712             #
13713             # There doesn't appear to be a way to prevent this compiler from
13714             # explicitly linking system object files so we need to strip them
13715             # from the output so that they don't get included in the library
13716             # dependencies.
13717             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'
13718             ;;
13719           *)
13720             if test "$GXX" = yes; then
13721               if test $with_gnu_ld = no; then
13722                 case $host_cpu in
13723                   hppa*64*)
13724                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13725                     ;;
13726                   ia64*)
13727                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13728                     ;;
13729                   *)
13730                     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'
13731                     ;;
13732                 esac
13733               fi
13734             else
13735               # FIXME: insert proper C++ library support
13736               ld_shlibs_CXX=no
13737             fi
13738             ;;
13739         esac
13740         ;;
13741
13742       interix[3-9]*)
13743         hardcode_direct_CXX=no
13744         hardcode_shlibpath_var_CXX=no
13745         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13746         export_dynamic_flag_spec_CXX='${wl}-E'
13747         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13748         # Instead, shared libraries are loaded at an image base (0x10000000 by
13749         # default) and relocated if they conflict, which is a slow very memory
13750         # consuming and fragmenting process.  To avoid this, we pick a random,
13751         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13752         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13753         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'
13754         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'
13755         ;;
13756       irix5* | irix6*)
13757         case $cc_basename in
13758           CC*)
13759             # SGI C++
13760             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'
13761
13762             # Archives containing C++ object files must be created using
13763             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
13764             # necessary to make sure instantiated templates are included
13765             # in the archive.
13766             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13767             ;;
13768           *)
13769             if test "$GXX" = yes; then
13770               if test "$with_gnu_ld" = no; then
13771                 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'
13772               else
13773                 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
13774               fi
13775             fi
13776             link_all_deplibs_CXX=yes
13777             ;;
13778         esac
13779         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13780         hardcode_libdir_separator_CXX=:
13781         inherit_rpath_CXX=yes
13782         ;;
13783
13784       linux* | k*bsd*-gnu)
13785         case $cc_basename in
13786           KCC*)
13787             # Kuck and Associates, Inc. (KAI) C++ Compiler
13788
13789             # KCC will only create a shared library if the output file
13790             # ends with ".so" (or ".sl" for HP-UX), so rename the library
13791             # to its proper name (with version) after linking.
13792             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'
13793             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'
13794             # Commands to make compiler produce verbose output that lists
13795             # what "hidden" libraries, object files and flags are used when
13796             # linking a shared library.
13797             #
13798             # There doesn't appear to be a way to prevent this compiler from
13799             # explicitly linking system object files so we need to strip them
13800             # from the output so that they don't get included in the library
13801             # dependencies.
13802             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'
13803
13804             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13805             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13806
13807             # Archives containing C++ object files must be created using
13808             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13809             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13810             ;;
13811           icpc* | ecpc* )
13812             # Intel C++
13813             with_gnu_ld=yes
13814             # version 8.0 and above of icpc choke on multiply defined symbols
13815             # if we add $predep_objects and $postdep_objects, however 7.1 and
13816             # earlier do not add the objects themselves.
13817             case `$CC -V 2>&1` in
13818               *"Version 7."*)
13819                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13820                 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'
13821                 ;;
13822               *)  # Version 8.0 or newer
13823                 tmp_idyn=
13824                 case $host_cpu in
13825                   ia64*) tmp_idyn=' -i_dynamic';;
13826                 esac
13827                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13828                 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'
13829                 ;;
13830             esac
13831             archive_cmds_need_lc_CXX=no
13832             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13833             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13834             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13835             ;;
13836           pgCC* | pgcpp*)
13837             # Portland Group C++ compiler
13838             case `$CC -V` in
13839             *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
13840               prelink_cmds_CXX='tpldir=Template.dir~
13841                 rm -rf $tpldir~
13842                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13843                 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
13844               old_archive_cmds_CXX='tpldir=Template.dir~
13845                 rm -rf $tpldir~
13846                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13847                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
13848                 $RANLIB $oldlib'
13849               archive_cmds_CXX='tpldir=Template.dir~
13850                 rm -rf $tpldir~
13851                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13852                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13853               archive_expsym_cmds_CXX='tpldir=Template.dir~
13854                 rm -rf $tpldir~
13855                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13856                 $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'
13857               ;;
13858             *) # Version 6 will use weak symbols
13859               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13860               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'
13861               ;;
13862             esac
13863
13864             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13865             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13866             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'
13867             ;;
13868           cxx*)
13869             # Compaq C++
13870             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13871             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'
13872
13873             runpath_var=LD_RUN_PATH
13874             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13875             hardcode_libdir_separator_CXX=:
13876
13877             # Commands to make compiler produce verbose output that lists
13878             # what "hidden" libraries, object files and flags are used when
13879             # linking a shared library.
13880             #
13881             # There doesn't appear to be a way to prevent this compiler from
13882             # explicitly linking system object files so we need to strip them
13883             # from the output so that they don't get included in the library
13884             # dependencies.
13885             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'
13886             ;;
13887           xl*)
13888             # IBM XL 8.0 on PPC, with GNU ld
13889             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13890             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13891             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13892             if test "x$supports_anon_versioning" = xyes; then
13893               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13894                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13895                 echo "local: *; };" >> $output_objdir/$libname.ver~
13896                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13897             fi
13898             ;;
13899           *)
13900             case `$CC -V 2>&1 | sed 5q` in
13901             *Sun\ C*)
13902               # Sun C++ 5.9
13903               no_undefined_flag_CXX=' -zdefs'
13904               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13905               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'
13906               hardcode_libdir_flag_spec_CXX='-R$libdir'
13907               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'
13908               compiler_needs_object_CXX=yes
13909
13910               # Not sure whether something based on
13911               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13912               # would be better.
13913               output_verbose_link_cmd='echo'
13914
13915               # Archives containing C++ object files must be created using
13916               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13917               # necessary to make sure instantiated templates are included
13918               # in the archive.
13919               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13920               ;;
13921             esac
13922             ;;
13923         esac
13924         ;;
13925
13926       lynxos*)
13927         # FIXME: insert proper C++ library support
13928         ld_shlibs_CXX=no
13929         ;;
13930
13931       m88k*)
13932         # FIXME: insert proper C++ library support
13933         ld_shlibs_CXX=no
13934         ;;
13935
13936       mvs*)
13937         case $cc_basename in
13938           cxx*)
13939             # FIXME: insert proper C++ library support
13940             ld_shlibs_CXX=no
13941             ;;
13942           *)
13943             # FIXME: insert proper C++ library support
13944             ld_shlibs_CXX=no
13945             ;;
13946         esac
13947         ;;
13948
13949       netbsd*)
13950         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13951           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13952           wlarc=
13953           hardcode_libdir_flag_spec_CXX='-R$libdir'
13954           hardcode_direct_CXX=yes
13955           hardcode_shlibpath_var_CXX=no
13956         fi
13957         # Workaround some broken pre-1.5 toolchains
13958         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13959         ;;
13960
13961       *nto* | *qnx*)
13962         ld_shlibs_CXX=yes
13963         ;;
13964
13965       openbsd2*)
13966         # C++ shared libraries are fairly broken
13967         ld_shlibs_CXX=no
13968         ;;
13969
13970       openbsd*)
13971         if test -f /usr/libexec/ld.so; then
13972           hardcode_direct_CXX=yes
13973           hardcode_shlibpath_var_CXX=no
13974           hardcode_direct_absolute_CXX=yes
13975           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13976           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13977           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13978             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13979             export_dynamic_flag_spec_CXX='${wl}-E'
13980             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13981           fi
13982           output_verbose_link_cmd=echo
13983         else
13984           ld_shlibs_CXX=no
13985         fi
13986         ;;
13987
13988       osf3* | osf4* | osf5*)
13989         case $cc_basename in
13990           KCC*)
13991             # Kuck and Associates, Inc. (KAI) C++ Compiler
13992
13993             # KCC will only create a shared library if the output file
13994             # ends with ".so" (or ".sl" for HP-UX), so rename the library
13995             # to its proper name (with version) after linking.
13996             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'
13997
13998             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13999             hardcode_libdir_separator_CXX=:
14000
14001             # Archives containing C++ object files must be created using
14002             # the KAI C++ compiler.
14003             case $host in
14004               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14005               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14006             esac
14007             ;;
14008           RCC*)
14009             # Rational C++ 2.4.1
14010             # FIXME: insert proper C++ library support
14011             ld_shlibs_CXX=no
14012             ;;
14013           cxx*)
14014             case $host in
14015               osf3*)
14016                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14017                 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'
14018                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14019                 ;;
14020               *)
14021                 allow_undefined_flag_CXX=' -expect_unresolved \*'
14022                 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'
14023                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14024                   echo "-hidden">> $lib.exp~
14025                   $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~
14026                   $RM $lib.exp'
14027                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14028                 ;;
14029             esac
14030
14031             hardcode_libdir_separator_CXX=:
14032
14033             # Commands to make compiler produce verbose output that lists
14034             # what "hidden" libraries, object files and flags are used when
14035             # linking a shared library.
14036             #
14037             # There doesn't appear to be a way to prevent this compiler from
14038             # explicitly linking system object files so we need to strip them
14039             # from the output so that they don't get included in the library
14040             # dependencies.
14041             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'
14042             ;;
14043           *)
14044             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14045               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14046               case $host in
14047                 osf3*)
14048                   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'
14049                   ;;
14050                 *)
14051                   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'
14052                   ;;
14053               esac
14054
14055               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14056               hardcode_libdir_separator_CXX=:
14057
14058               # Commands to make compiler produce verbose output that lists
14059               # what "hidden" libraries, object files and flags are used when
14060               # linking a shared library.
14061               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14062
14063             else
14064               # FIXME: insert proper C++ library support
14065               ld_shlibs_CXX=no
14066             fi
14067             ;;
14068         esac
14069         ;;
14070
14071       psos*)
14072         # FIXME: insert proper C++ library support
14073         ld_shlibs_CXX=no
14074         ;;
14075
14076       sunos4*)
14077         case $cc_basename in
14078           CC*)
14079             # Sun C++ 4.x
14080             # FIXME: insert proper C++ library support
14081             ld_shlibs_CXX=no
14082             ;;
14083           lcc*)
14084             # Lucid
14085             # FIXME: insert proper C++ library support
14086             ld_shlibs_CXX=no
14087             ;;
14088           *)
14089             # FIXME: insert proper C++ library support
14090             ld_shlibs_CXX=no
14091             ;;
14092         esac
14093         ;;
14094
14095       solaris*)
14096         case $cc_basename in
14097           CC*)
14098             # Sun C++ 4.2, 5.x and Centerline C++
14099             archive_cmds_need_lc_CXX=yes
14100             no_undefined_flag_CXX=' -zdefs'
14101             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14102             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14103               $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'
14104
14105             hardcode_libdir_flag_spec_CXX='-R$libdir'
14106             hardcode_shlibpath_var_CXX=no
14107             case $host_os in
14108               solaris2.[0-5] | solaris2.[0-5].*) ;;
14109               *)
14110                 # The compiler driver will combine and reorder linker options,
14111                 # but understands `-z linker_flag'.
14112                 # Supported since Solaris 2.6 (maybe 2.5.1?)
14113                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14114                 ;;
14115             esac
14116             link_all_deplibs_CXX=yes
14117
14118             output_verbose_link_cmd='echo'
14119
14120             # Archives containing C++ object files must be created using
14121             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
14122             # necessary to make sure instantiated templates are included
14123             # in the archive.
14124             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14125             ;;
14126           gcx*)
14127             # Green Hills C++ Compiler
14128             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14129
14130             # The C++ compiler must be used to create the archive.
14131             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14132             ;;
14133           *)
14134             # GNU C++ compiler with Solaris linker
14135             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14136               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14137               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14138                 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14139                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14140                   $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14141
14142                 # Commands to make compiler produce verbose output that lists
14143                 # what "hidden" libraries, object files and flags are used when
14144                 # linking a shared library.
14145                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14146               else
14147                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
14148                 # platform.
14149                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14150                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14151                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14152
14153                 # Commands to make compiler produce verbose output that lists
14154                 # what "hidden" libraries, object files and flags are used when
14155                 # linking a shared library.
14156                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14157               fi
14158
14159               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14160               case $host_os in
14161                 solaris2.[0-5] | solaris2.[0-5].*) ;;
14162                 *)
14163                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14164                   ;;
14165               esac
14166             fi
14167             ;;
14168         esac
14169         ;;
14170
14171     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14172       no_undefined_flag_CXX='${wl}-z,text'
14173       archive_cmds_need_lc_CXX=no
14174       hardcode_shlibpath_var_CXX=no
14175       runpath_var='LD_RUN_PATH'
14176
14177       case $cc_basename in
14178         CC*)
14179           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14180           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14181           ;;
14182         *)
14183           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14184           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14185           ;;
14186       esac
14187       ;;
14188
14189       sysv5* | sco3.2v5* | sco5v6*)
14190         # Note: We can NOT use -z defs as we might desire, because we do not
14191         # link with -lc, and that would cause any symbols used from libc to
14192         # always be unresolved, which means just about no library would
14193         # ever link correctly.  If we're not using GNU ld we use -z text
14194         # though, which does catch some bad symbols but isn't as heavy-handed
14195         # as -z defs.
14196         no_undefined_flag_CXX='${wl}-z,text'
14197         allow_undefined_flag_CXX='${wl}-z,nodefs'
14198         archive_cmds_need_lc_CXX=no
14199         hardcode_shlibpath_var_CXX=no
14200         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14201         hardcode_libdir_separator_CXX=':'
14202         link_all_deplibs_CXX=yes
14203         export_dynamic_flag_spec_CXX='${wl}-Bexport'
14204         runpath_var='LD_RUN_PATH'
14205
14206         case $cc_basename in
14207           CC*)
14208             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14209             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14210             ;;
14211           *)
14212             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14213             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14214             ;;
14215         esac
14216       ;;
14217
14218       tandem*)
14219         case $cc_basename in
14220           NCC*)
14221             # NonStop-UX NCC 3.20
14222             # FIXME: insert proper C++ library support
14223             ld_shlibs_CXX=no
14224             ;;
14225           *)
14226             # FIXME: insert proper C++ library support
14227             ld_shlibs_CXX=no
14228             ;;
14229         esac
14230         ;;
14231
14232       vxworks*)
14233         # FIXME: insert proper C++ library support
14234         ld_shlibs_CXX=no
14235         ;;
14236
14237       *)
14238         # FIXME: insert proper C++ library support
14239         ld_shlibs_CXX=no
14240         ;;
14241     esac
14242
14243     { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14244 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
14245     test "$ld_shlibs_CXX" = no && can_build_shared=no
14246
14247     GCC_CXX="$GXX"
14248     LD_CXX="$LD"
14249
14250     ## CAVEAT EMPTOR:
14251     ## There is no encapsulation within the following macros, do not change
14252     ## the running order or otherwise move them around unless you know exactly
14253     ## what you are doing...
14254     # Dependencies to place before and after the object being linked:
14255 predep_objects_CXX=
14256 postdep_objects_CXX=
14257 predeps_CXX=
14258 postdeps_CXX=
14259 compiler_lib_search_path_CXX=
14260
14261 cat > conftest.$ac_ext <<_LT_EOF
14262 class Foo
14263 {
14264 public:
14265   Foo (void) { a = 0; }
14266 private:
14267   int a;
14268 };
14269 _LT_EOF
14270
14271 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14272   (eval $ac_compile) 2>&5
14273   ac_status=$?
14274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14275   (exit $ac_status); }; then
14276   # Parse the compiler output and extract the necessary
14277   # objects, libraries and library flags.
14278
14279   # Sentinel used to keep track of whether or not we are before
14280   # the conftest object file.
14281   pre_test_object_deps_done=no
14282
14283   for p in `eval "$output_verbose_link_cmd"`; do
14284     case $p in
14285
14286     -L* | -R* | -l*)
14287        # Some compilers place space between "-{L,R}" and the path.
14288        # Remove the space.
14289        if test $p = "-L" ||
14290           test $p = "-R"; then
14291          prev=$p
14292          continue
14293        else
14294          prev=
14295        fi
14296
14297        if test "$pre_test_object_deps_done" = no; then
14298          case $p in
14299          -L* | -R*)
14300            # Internal compiler library paths should come after those
14301            # provided the user.  The postdeps already come after the
14302            # user supplied libs so there is no need to process them.
14303            if test -z "$compiler_lib_search_path_CXX"; then
14304              compiler_lib_search_path_CXX="${prev}${p}"
14305            else
14306              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14307            fi
14308            ;;
14309          # The "-l" case would never come before the object being
14310          # linked, so don't bother handling this case.
14311          esac
14312        else
14313          if test -z "$postdeps_CXX"; then
14314            postdeps_CXX="${prev}${p}"
14315          else
14316            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14317          fi
14318        fi
14319        ;;
14320
14321     *.$objext)
14322        # This assumes that the test object file only shows up
14323        # once in the compiler output.
14324        if test "$p" = "conftest.$objext"; then
14325          pre_test_object_deps_done=yes
14326          continue
14327        fi
14328
14329        if test "$pre_test_object_deps_done" = no; then
14330          if test -z "$predep_objects_CXX"; then
14331            predep_objects_CXX="$p"
14332          else
14333            predep_objects_CXX="$predep_objects_CXX $p"
14334          fi
14335        else
14336          if test -z "$postdep_objects_CXX"; then
14337            postdep_objects_CXX="$p"
14338          else
14339            postdep_objects_CXX="$postdep_objects_CXX $p"
14340          fi
14341        fi
14342        ;;
14343
14344     *) ;; # Ignore the rest.
14345
14346     esac
14347   done
14348
14349   # Clean up.
14350   rm -f a.out a.exe
14351 else
14352   echo "libtool.m4: error: problem compiling CXX test program"
14353 fi
14354
14355 $RM -f confest.$objext
14356
14357 # PORTME: override above test on systems where it is broken
14358 case $host_os in
14359 interix[3-9]*)
14360   # Interix 3.5 installs completely hosed .la files for C++, so rather than
14361   # hack all around it, let's just trust "g++" to DTRT.
14362   predep_objects_CXX=
14363   postdep_objects_CXX=
14364   postdeps_CXX=
14365   ;;
14366
14367 linux*)
14368   case `$CC -V 2>&1 | sed 5q` in
14369   *Sun\ C*)
14370     # Sun C++ 5.9
14371
14372     # The more standards-conforming stlport4 library is
14373     # incompatible with the Cstd library. Avoid specifying
14374     # it if it's in CXXFLAGS. Ignore libCrun as
14375     # -library=stlport4 depends on it.
14376     case " $CXX $CXXFLAGS " in
14377     *" -library=stlport4 "*)
14378       solaris_use_stlport4=yes
14379       ;;
14380     esac
14381
14382     if test "$solaris_use_stlport4" != yes; then
14383       postdeps_CXX='-library=Cstd -library=Crun'
14384     fi
14385     ;;
14386   esac
14387   ;;
14388
14389 solaris*)
14390   case $cc_basename in
14391   CC*)
14392     # The more standards-conforming stlport4 library is
14393     # incompatible with the Cstd library. Avoid specifying
14394     # it if it's in CXXFLAGS. Ignore libCrun as
14395     # -library=stlport4 depends on it.
14396     case " $CXX $CXXFLAGS " in
14397     *" -library=stlport4 "*)
14398       solaris_use_stlport4=yes
14399       ;;
14400     esac
14401
14402     # Adding this requires a known-good setup of shared libraries for
14403     # Sun compiler versions before 5.6, else PIC objects from an old
14404     # archive will be linked into the output, leading to subtle bugs.
14405     if test "$solaris_use_stlport4" != yes; then
14406       postdeps_CXX='-library=Cstd -library=Crun'
14407     fi
14408     ;;
14409   esac
14410   ;;
14411 esac
14412
14413
14414 case " $postdeps_CXX " in
14415 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14416 esac
14417  compiler_lib_search_dirs_CXX=
14418 if test -n "${compiler_lib_search_path_CXX}"; then
14419  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14420 fi
14421
14422
14423
14424
14425
14426
14427
14428
14429
14430
14431
14432
14433
14434
14435
14436
14437
14438
14439
14440
14441
14442
14443
14444
14445
14446
14447
14448
14449
14450
14451
14452     lt_prog_compiler_wl_CXX=
14453 lt_prog_compiler_pic_CXX=
14454 lt_prog_compiler_static_CXX=
14455
14456 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14457 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14458
14459   # C++ specific cases for pic, static, wl, etc.
14460   if test "$GXX" = yes; then
14461     lt_prog_compiler_wl_CXX='-Wl,'
14462     lt_prog_compiler_static_CXX='-static'
14463
14464     case $host_os in
14465     aix*)
14466       # All AIX code is PIC.
14467       if test "$host_cpu" = ia64; then
14468         # AIX 5 now supports IA64 processor
14469         lt_prog_compiler_static_CXX='-Bstatic'
14470       fi
14471       ;;
14472
14473     amigaos*)
14474       case $host_cpu in
14475       powerpc)
14476             # see comment about AmigaOS4 .so support
14477             lt_prog_compiler_pic_CXX='-fPIC'
14478         ;;
14479       m68k)
14480             # FIXME: we need at least 68020 code to build shared libraries, but
14481             # adding the `-m68020' flag to GCC prevents building anything better,
14482             # like `-m68040'.
14483             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14484         ;;
14485       esac
14486       ;;
14487
14488     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14489       # PIC is the default for these OSes.
14490       ;;
14491     mingw* | cygwin* | os2* | pw32* | cegcc*)
14492       # This hack is so that the source file can tell whether it is being
14493       # built for inclusion in a dll (and should export symbols for example).
14494       # Although the cygwin gcc ignores -fPIC, still need this for old-style
14495       # (--disable-auto-import) libraries
14496       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14497       ;;
14498     darwin* | rhapsody*)
14499       # PIC is the default on this platform
14500       # Common symbols not allowed in MH_DYLIB files
14501       lt_prog_compiler_pic_CXX='-fno-common'
14502       ;;
14503     *djgpp*)
14504       # DJGPP does not support shared libraries at all
14505       lt_prog_compiler_pic_CXX=
14506       ;;
14507     interix[3-9]*)
14508       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14509       # Instead, we relocate shared libraries at runtime.
14510       ;;
14511     sysv4*MP*)
14512       if test -d /usr/nec; then
14513         lt_prog_compiler_pic_CXX=-Kconform_pic
14514       fi
14515       ;;
14516     hpux*)
14517       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14518       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
14519       # sets the default TLS model and affects inlining.
14520       case $host_cpu in
14521       hppa*64*)
14522         ;;
14523       *)
14524         lt_prog_compiler_pic_CXX='-fPIC'
14525         ;;
14526       esac
14527       ;;
14528     *qnx* | *nto*)
14529       # QNX uses GNU C++, but need to define -shared option too, otherwise
14530       # it will coredump.
14531       lt_prog_compiler_pic_CXX='-fPIC -shared'
14532       ;;
14533     *)
14534       lt_prog_compiler_pic_CXX='-fPIC'
14535       ;;
14536     esac
14537   else
14538     case $host_os in
14539       aix[4-9]*)
14540         # All AIX code is PIC.
14541         if test "$host_cpu" = ia64; then
14542           # AIX 5 now supports IA64 processor
14543           lt_prog_compiler_static_CXX='-Bstatic'
14544         else
14545           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14546         fi
14547         ;;
14548       chorus*)
14549         case $cc_basename in
14550         cxch68*)
14551           # Green Hills C++ Compiler
14552           # _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"
14553           ;;
14554         esac
14555         ;;
14556       dgux*)
14557         case $cc_basename in
14558           ec++*)
14559             lt_prog_compiler_pic_CXX='-KPIC'
14560             ;;
14561           ghcx*)
14562             # Green Hills C++ Compiler
14563             lt_prog_compiler_pic_CXX='-pic'
14564             ;;
14565           *)
14566             ;;
14567         esac
14568         ;;
14569       freebsd* | dragonfly*)
14570         # FreeBSD uses GNU C++
14571         ;;
14572       hpux9* | hpux10* | hpux11*)
14573         case $cc_basename in
14574           CC*)
14575             lt_prog_compiler_wl_CXX='-Wl,'
14576             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14577             if test "$host_cpu" != ia64; then
14578               lt_prog_compiler_pic_CXX='+Z'
14579             fi
14580             ;;
14581           aCC*)
14582             lt_prog_compiler_wl_CXX='-Wl,'
14583             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14584             case $host_cpu in
14585             hppa*64*|ia64*)
14586               # +Z the default
14587               ;;
14588             *)
14589               lt_prog_compiler_pic_CXX='+Z'
14590               ;;
14591             esac
14592             ;;
14593           *)
14594             ;;
14595         esac
14596         ;;
14597       interix*)
14598         # This is c89, which is MS Visual C++ (no shared libs)
14599         # Anyone wants to do a port?
14600         ;;
14601       irix5* | irix6* | nonstopux*)
14602         case $cc_basename in
14603           CC*)
14604             lt_prog_compiler_wl_CXX='-Wl,'
14605             lt_prog_compiler_static_CXX='-non_shared'
14606             # CC pic flag -KPIC is the default.
14607             ;;
14608           *)
14609             ;;
14610         esac
14611         ;;
14612       linux* | k*bsd*-gnu)
14613         case $cc_basename in
14614           KCC*)
14615             # KAI C++ Compiler
14616             lt_prog_compiler_wl_CXX='--backend -Wl,'
14617             lt_prog_compiler_pic_CXX='-fPIC'
14618             ;;
14619           ecpc* )
14620             # old Intel C++ for x86_64 which still supported -KPIC.
14621             lt_prog_compiler_wl_CXX='-Wl,'
14622             lt_prog_compiler_pic_CXX='-KPIC'
14623             lt_prog_compiler_static_CXX='-static'
14624             ;;
14625           icpc* )
14626             # Intel C++, used to be incompatible with GCC.
14627             # ICC 10 doesn't accept -KPIC any more.
14628             lt_prog_compiler_wl_CXX='-Wl,'
14629             lt_prog_compiler_pic_CXX='-fPIC'
14630             lt_prog_compiler_static_CXX='-static'
14631             ;;
14632           pgCC* | pgcpp*)
14633             # Portland Group C++ compiler
14634             lt_prog_compiler_wl_CXX='-Wl,'
14635             lt_prog_compiler_pic_CXX='-fpic'
14636             lt_prog_compiler_static_CXX='-Bstatic'
14637             ;;
14638           cxx*)
14639             # Compaq C++
14640             # Make sure the PIC flag is empty.  It appears that all Alpha
14641             # Linux and Compaq Tru64 Unix objects are PIC.
14642             lt_prog_compiler_pic_CXX=
14643             lt_prog_compiler_static_CXX='-non_shared'
14644             ;;
14645           xlc* | xlC*)
14646             # IBM XL 8.0 on PPC
14647             lt_prog_compiler_wl_CXX='-Wl,'
14648             lt_prog_compiler_pic_CXX='-qpic'
14649             lt_prog_compiler_static_CXX='-qstaticlink'
14650             ;;
14651           *)
14652             case `$CC -V 2>&1 | sed 5q` in
14653             *Sun\ C*)
14654               # Sun C++ 5.9
14655               lt_prog_compiler_pic_CXX='-KPIC'
14656               lt_prog_compiler_static_CXX='-Bstatic'
14657               lt_prog_compiler_wl_CXX='-Qoption ld '
14658               ;;
14659             esac
14660             ;;
14661         esac
14662         ;;
14663       lynxos*)
14664         ;;
14665       m88k*)
14666         ;;
14667       mvs*)
14668         case $cc_basename in
14669           cxx*)
14670             lt_prog_compiler_pic_CXX='-W c,exportall'
14671             ;;
14672           *)
14673             ;;
14674         esac
14675         ;;
14676       netbsd*)
14677         ;;
14678       *qnx* | *nto*)
14679         # QNX uses GNU C++, but need to define -shared option too, otherwise
14680         # it will coredump.
14681         lt_prog_compiler_pic_CXX='-fPIC -shared'
14682         ;;
14683       osf3* | osf4* | osf5*)
14684         case $cc_basename in
14685           KCC*)
14686             lt_prog_compiler_wl_CXX='--backend -Wl,'
14687             ;;
14688           RCC*)
14689             # Rational C++ 2.4.1
14690             lt_prog_compiler_pic_CXX='-pic'
14691             ;;
14692           cxx*)
14693             # Digital/Compaq C++
14694             lt_prog_compiler_wl_CXX='-Wl,'
14695             # Make sure the PIC flag is empty.  It appears that all Alpha
14696             # Linux and Compaq Tru64 Unix objects are PIC.
14697             lt_prog_compiler_pic_CXX=
14698             lt_prog_compiler_static_CXX='-non_shared'
14699             ;;
14700           *)
14701             ;;
14702         esac
14703         ;;
14704       psos*)
14705         ;;
14706       solaris*)
14707         case $cc_basename in
14708           CC*)
14709             # Sun C++ 4.2, 5.x and Centerline C++
14710             lt_prog_compiler_pic_CXX='-KPIC'
14711             lt_prog_compiler_static_CXX='-Bstatic'
14712             lt_prog_compiler_wl_CXX='-Qoption ld '
14713             ;;
14714           gcx*)
14715             # Green Hills C++ Compiler
14716             lt_prog_compiler_pic_CXX='-PIC'
14717             ;;
14718           *)
14719             ;;
14720         esac
14721         ;;
14722       sunos4*)
14723         case $cc_basename in
14724           CC*)
14725             # Sun C++ 4.x
14726             lt_prog_compiler_pic_CXX='-pic'
14727             lt_prog_compiler_static_CXX='-Bstatic'
14728             ;;
14729           lcc*)
14730             # Lucid
14731             lt_prog_compiler_pic_CXX='-pic'
14732             ;;
14733           *)
14734             ;;
14735         esac
14736         ;;
14737       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14738         case $cc_basename in
14739           CC*)
14740             lt_prog_compiler_wl_CXX='-Wl,'
14741             lt_prog_compiler_pic_CXX='-KPIC'
14742             lt_prog_compiler_static_CXX='-Bstatic'
14743             ;;
14744         esac
14745         ;;
14746       tandem*)
14747         case $cc_basename in
14748           NCC*)
14749             # NonStop-UX NCC 3.20
14750             lt_prog_compiler_pic_CXX='-KPIC'
14751             ;;
14752           *)
14753             ;;
14754         esac
14755         ;;
14756       vxworks*)
14757         ;;
14758       *)
14759         lt_prog_compiler_can_build_shared_CXX=no
14760         ;;
14761     esac
14762   fi
14763
14764 case $host_os in
14765   # For platforms which do not support PIC, -DPIC is meaningless:
14766   *djgpp*)
14767     lt_prog_compiler_pic_CXX=
14768     ;;
14769   *)
14770     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14771     ;;
14772 esac
14773 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
14774 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
14775
14776
14777
14778 #
14779 # Check to make sure the PIC flag actually works.
14780 #
14781 if test -n "$lt_prog_compiler_pic_CXX"; then
14782   { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14783 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
14784 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
14785   echo $ECHO_N "(cached) $ECHO_C" >&6
14786 else
14787   lt_cv_prog_compiler_pic_works_CXX=no
14788    ac_outfile=conftest.$ac_objext
14789    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14790    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14791    # Insert the option either (1) after the last *FLAGS variable, or
14792    # (2) before a word containing "conftest.", or (3) at the end.
14793    # Note that $ac_compile itself does not contain backslashes and begins
14794    # with a dollar sign (not a hyphen), so the echo should work correctly.
14795    # The option is referenced via a variable to avoid confusing sed.
14796    lt_compile=`echo "$ac_compile" | $SED \
14797    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14798    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14799    -e 's:$: $lt_compiler_flag:'`
14800    (eval echo "\"\$as_me:14800: $lt_compile\"" >&5)
14801    (eval "$lt_compile" 2>conftest.err)
14802    ac_status=$?
14803    cat conftest.err >&5
14804    echo "$as_me:14804: \$? = $ac_status" >&5
14805    if (exit $ac_status) && test -s "$ac_outfile"; then
14806      # The compiler can only warn and ignore the option if not recognized
14807      # So say no if there are warnings other than the usual output.
14808      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14809      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14810      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14811        lt_cv_prog_compiler_pic_works_CXX=yes
14812      fi
14813    fi
14814    $RM conftest*
14815
14816 fi
14817 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14818 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14819
14820 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14821     case $lt_prog_compiler_pic_CXX in
14822      "" | " "*) ;;
14823      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14824      esac
14825 else
14826     lt_prog_compiler_pic_CXX=
14827      lt_prog_compiler_can_build_shared_CXX=no
14828 fi
14829
14830 fi
14831
14832
14833
14834 #
14835 # Check to make sure the static flag actually works.
14836 #
14837 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14838 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14839 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14840 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
14841   echo $ECHO_N "(cached) $ECHO_C" >&6
14842 else
14843   lt_cv_prog_compiler_static_works_CXX=no
14844    save_LDFLAGS="$LDFLAGS"
14845    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14846    echo "$lt_simple_link_test_code" > conftest.$ac_ext
14847    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14848      # The linker can only warn and ignore the option if not recognized
14849      # So say no if there are warnings
14850      if test -s conftest.err; then
14851        # Append any errors to the config.log.
14852        cat conftest.err 1>&5
14853        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14854        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14855        if diff conftest.exp conftest.er2 >/dev/null; then
14856          lt_cv_prog_compiler_static_works_CXX=yes
14857        fi
14858      else
14859        lt_cv_prog_compiler_static_works_CXX=yes
14860      fi
14861    fi
14862    $RM -r conftest*
14863    LDFLAGS="$save_LDFLAGS"
14864
14865 fi
14866 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14867 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6; }
14868
14869 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14870     :
14871 else
14872     lt_prog_compiler_static_CXX=
14873 fi
14874
14875
14876
14877
14878     { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14879 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14880 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14881   echo $ECHO_N "(cached) $ECHO_C" >&6
14882 else
14883   lt_cv_prog_compiler_c_o_CXX=no
14884    $RM -r conftest 2>/dev/null
14885    mkdir conftest
14886    cd conftest
14887    mkdir out
14888    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14889
14890    lt_compiler_flag="-o out/conftest2.$ac_objext"
14891    # Insert the option either (1) after the last *FLAGS variable, or
14892    # (2) before a word containing "conftest.", or (3) at the end.
14893    # Note that $ac_compile itself does not contain backslashes and begins
14894    # with a dollar sign (not a hyphen), so the echo should work correctly.
14895    lt_compile=`echo "$ac_compile" | $SED \
14896    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14897    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14898    -e 's:$: $lt_compiler_flag:'`
14899    (eval echo "\"\$as_me:14899: $lt_compile\"" >&5)
14900    (eval "$lt_compile" 2>out/conftest.err)
14901    ac_status=$?
14902    cat out/conftest.err >&5
14903    echo "$as_me:14903: \$? = $ac_status" >&5
14904    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14905    then
14906      # The compiler can only warn and ignore the option if not recognized
14907      # So say no if there are warnings
14908      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14909      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14910      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14911        lt_cv_prog_compiler_c_o_CXX=yes
14912      fi
14913    fi
14914    chmod u+w . 2>&5
14915    $RM conftest*
14916    # SGI C++ compiler will create directory out/ii_files/ for
14917    # template instantiation
14918    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14919    $RM out/* && rmdir out
14920    cd ..
14921    $RM -r conftest
14922    $RM conftest*
14923
14924 fi
14925 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14926 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
14927
14928
14929
14930     { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14931 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14932 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14933   echo $ECHO_N "(cached) $ECHO_C" >&6
14934 else
14935   lt_cv_prog_compiler_c_o_CXX=no
14936    $RM -r conftest 2>/dev/null
14937    mkdir conftest
14938    cd conftest
14939    mkdir out
14940    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14941
14942    lt_compiler_flag="-o out/conftest2.$ac_objext"
14943    # Insert the option either (1) after the last *FLAGS variable, or
14944    # (2) before a word containing "conftest.", or (3) at the end.
14945    # Note that $ac_compile itself does not contain backslashes and begins
14946    # with a dollar sign (not a hyphen), so the echo should work correctly.
14947    lt_compile=`echo "$ac_compile" | $SED \
14948    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14949    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14950    -e 's:$: $lt_compiler_flag:'`
14951    (eval echo "\"\$as_me:14951: $lt_compile\"" >&5)
14952    (eval "$lt_compile" 2>out/conftest.err)
14953    ac_status=$?
14954    cat out/conftest.err >&5
14955    echo "$as_me:14955: \$? = $ac_status" >&5
14956    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14957    then
14958      # The compiler can only warn and ignore the option if not recognized
14959      # So say no if there are warnings
14960      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14961      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14962      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14963        lt_cv_prog_compiler_c_o_CXX=yes
14964      fi
14965    fi
14966    chmod u+w . 2>&5
14967    $RM conftest*
14968    # SGI C++ compiler will create directory out/ii_files/ for
14969    # template instantiation
14970    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14971    $RM out/* && rmdir out
14972    cd ..
14973    $RM -r conftest
14974    $RM conftest*
14975
14976 fi
14977 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14978 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
14979
14980
14981
14982
14983 hard_links="nottested"
14984 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14985   # do not overwrite the value of need_locks provided by the user
14986   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14987 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14988   hard_links=yes
14989   $RM conftest*
14990   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14991   touch conftest.a
14992   ln conftest.a conftest.b 2>&5 || hard_links=no
14993   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14994   { echo "$as_me:$LINENO: result: $hard_links" >&5
14995 echo "${ECHO_T}$hard_links" >&6; }
14996   if test "$hard_links" = no; then
14997     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14998 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14999     need_locks=warn
15000   fi
15001 else
15002   need_locks=no
15003 fi
15004
15005
15006
15007     { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15008 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
15009
15010   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15011   case $host_os in
15012   aix[4-9]*)
15013     # If we're using GNU nm, then we don't want the "-C" option.
15014     # -C means demangle to AIX nm, but means don't demangle with GNU nm
15015     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15016       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'
15017     else
15018       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'
15019     fi
15020     ;;
15021   pw32*)
15022     export_symbols_cmds_CXX="$ltdll_cmds"
15023   ;;
15024   cygwin* | mingw* | cegcc*)
15025     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'
15026   ;;
15027   *)
15028     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15029   ;;
15030   esac
15031   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15032
15033 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
15034 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
15035 test "$ld_shlibs_CXX" = no && can_build_shared=no
15036
15037 with_gnu_ld_CXX=$with_gnu_ld
15038
15039
15040
15041
15042
15043
15044 #
15045 # Do we need to explicitly link libc?
15046 #
15047 case "x$archive_cmds_need_lc_CXX" in
15048 x|xyes)
15049   # Assume -lc should be added
15050   archive_cmds_need_lc_CXX=yes
15051
15052   if test "$enable_shared" = yes && test "$GCC" = yes; then
15053     case $archive_cmds_CXX in
15054     *'~'*)
15055       # FIXME: we may have to deal with multi-command sequences.
15056       ;;
15057     '$CC '*)
15058       # Test whether the compiler implicitly links with -lc since on some
15059       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15060       # to ld, don't add -lc before -lgcc.
15061       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15062 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15063       $RM conftest*
15064       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15065
15066       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15067   (eval $ac_compile) 2>&5
15068   ac_status=$?
15069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15070   (exit $ac_status); } 2>conftest.err; then
15071         soname=conftest
15072         lib=conftest
15073         libobjs=conftest.$ac_objext
15074         deplibs=
15075         wl=$lt_prog_compiler_wl_CXX
15076         pic_flag=$lt_prog_compiler_pic_CXX
15077         compiler_flags=-v
15078         linker_flags=-v
15079         verstring=
15080         output_objdir=.
15081         libname=conftest
15082         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15083         allow_undefined_flag_CXX=
15084         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
15085   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15086   ac_status=$?
15087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15088   (exit $ac_status); }
15089         then
15090           archive_cmds_need_lc_CXX=no
15091         else
15092           archive_cmds_need_lc_CXX=yes
15093         fi
15094         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15095       else
15096         cat conftest.err 1>&5
15097       fi
15098       $RM conftest*
15099       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
15100 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
15101       ;;
15102     esac
15103   fi
15104   ;;
15105 esac
15106
15107
15108
15109
15110
15111
15112
15113
15114
15115
15116
15117
15118
15119
15120
15121
15122
15123
15124
15125
15126
15127
15128
15129
15130
15131
15132
15133
15134
15135
15136
15137
15138
15139
15140
15141
15142
15143
15144
15145
15146
15147
15148
15149
15150
15151
15152
15153
15154
15155
15156
15157
15158
15159
15160
15161
15162
15163
15164
15165
15166
15167
15168
15169
15170     { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15171 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15172
15173 library_names_spec=
15174 libname_spec='lib$name'
15175 soname_spec=
15176 shrext_cmds=".so"
15177 postinstall_cmds=
15178 postuninstall_cmds=
15179 finish_cmds=
15180 finish_eval=
15181 shlibpath_var=
15182 shlibpath_overrides_runpath=unknown
15183 version_type=none
15184 dynamic_linker="$host_os ld.so"
15185 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15186 need_lib_prefix=unknown
15187 hardcode_into_libs=no
15188
15189 # when you set need_version to no, make sure it does not cause -set_version
15190 # flags to be left without arguments
15191 need_version=unknown
15192
15193 case $host_os in
15194 aix3*)
15195   version_type=linux
15196   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15197   shlibpath_var=LIBPATH
15198
15199   # AIX 3 has no versioning support, so we append a major version to the name.
15200   soname_spec='${libname}${release}${shared_ext}$major'
15201   ;;
15202
15203 aix[4-9]*)
15204   version_type=linux
15205   need_lib_prefix=no
15206   need_version=no
15207   hardcode_into_libs=yes
15208   if test "$host_cpu" = ia64; then
15209     # AIX 5 supports IA64
15210     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15211     shlibpath_var=LD_LIBRARY_PATH
15212   else
15213     # With GCC up to 2.95.x, collect2 would create an import file
15214     # for dependence libraries.  The import file would start with
15215     # the line `#! .'.  This would cause the generated library to
15216     # depend on `.', always an invalid library.  This was fixed in
15217     # development snapshots of GCC prior to 3.0.
15218     case $host_os in
15219       aix4 | aix4.[01] | aix4.[01].*)
15220       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15221            echo ' yes '
15222            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15223         :
15224       else
15225         can_build_shared=no
15226       fi
15227       ;;
15228     esac
15229     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15230     # soname into executable. Probably we can add versioning support to
15231     # collect2, so additional links can be useful in future.
15232     if test "$aix_use_runtimelinking" = yes; then
15233       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15234       # instead of lib<name>.a to let people know that these are not
15235       # typical AIX shared libraries.
15236       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15237     else
15238       # We preserve .a as extension for shared libraries through AIX4.2
15239       # and later when we are not doing run time linking.
15240       library_names_spec='${libname}${release}.a $libname.a'
15241       soname_spec='${libname}${release}${shared_ext}$major'
15242     fi
15243     shlibpath_var=LIBPATH
15244   fi
15245   ;;
15246
15247 amigaos*)
15248   case $host_cpu in
15249   powerpc)
15250     # Since July 2007 AmigaOS4 officially supports .so libraries.
15251     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15252     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15253     ;;
15254   m68k)
15255     library_names_spec='$libname.ixlibrary $libname.a'
15256     # Create ${libname}_ixlibrary.a entries in /sys/libs.
15257     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'
15258     ;;
15259   esac
15260   ;;
15261
15262 beos*)
15263   library_names_spec='${libname}${shared_ext}'
15264   dynamic_linker="$host_os ld.so"
15265   shlibpath_var=LIBRARY_PATH
15266   ;;
15267
15268 bsdi[45]*)
15269   version_type=linux
15270   need_version=no
15271   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15272   soname_spec='${libname}${release}${shared_ext}$major'
15273   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15274   shlibpath_var=LD_LIBRARY_PATH
15275   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15276   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15277   # the default ld.so.conf also contains /usr/contrib/lib and
15278   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15279   # libtool to hard-code these into programs
15280   ;;
15281
15282 cygwin* | mingw* | pw32* | cegcc*)
15283   version_type=windows
15284   shrext_cmds=".dll"
15285   need_version=no
15286   need_lib_prefix=no
15287
15288   case $GCC,$host_os in
15289   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
15290     library_names_spec='$libname.dll.a'
15291     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15292     postinstall_cmds='base_file=`basename \${file}`~
15293       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15294       dldir=$destdir/`dirname \$dlpath`~
15295       test -d \$dldir || mkdir -p \$dldir~
15296       $install_prog $dir/$dlname \$dldir/$dlname~
15297       chmod a+x \$dldir/$dlname~
15298       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15299         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15300       fi'
15301     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15302       dlpath=$dir/\$dldll~
15303        $RM \$dlpath'
15304     shlibpath_overrides_runpath=yes
15305
15306     case $host_os in
15307     cygwin*)
15308       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15309       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15310       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15311       ;;
15312     mingw* | cegcc*)
15313       # MinGW DLLs use traditional 'lib' prefix
15314       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15315       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15316       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15317         # It is most probably a Windows format PATH printed by
15318         # mingw gcc, but we are running on Cygwin. Gcc prints its search
15319         # path with ; separators, and with drive letters. We can handle the
15320         # drive letters (cygwin fileutils understands them), so leave them,
15321         # especially as we might pass files found there to a mingw objdump,
15322         # which wouldn't understand a cygwinified path. Ahh.
15323         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15324       else
15325         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15326       fi
15327       ;;
15328     pw32*)
15329       # pw32 DLLs use 'pw' prefix rather than 'lib'
15330       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15331       ;;
15332     esac
15333     ;;
15334
15335   *)
15336     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15337     ;;
15338   esac
15339   dynamic_linker='Win32 ld.exe'
15340   # FIXME: first we should search . and the directory the executable is in
15341   shlibpath_var=PATH
15342   ;;
15343
15344 darwin* | rhapsody*)
15345   dynamic_linker="$host_os dyld"
15346   version_type=darwin
15347   need_lib_prefix=no
15348   need_version=no
15349   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15350   soname_spec='${libname}${release}${major}$shared_ext'
15351   shlibpath_overrides_runpath=yes
15352   shlibpath_var=DYLD_LIBRARY_PATH
15353   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15354
15355   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15356   ;;
15357
15358 dgux*)
15359   version_type=linux
15360   need_lib_prefix=no
15361   need_version=no
15362   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15363   soname_spec='${libname}${release}${shared_ext}$major'
15364   shlibpath_var=LD_LIBRARY_PATH
15365   ;;
15366
15367 freebsd1*)
15368   dynamic_linker=no
15369   ;;
15370
15371 freebsd* | dragonfly*)
15372   # DragonFly does not have aout.  When/if they implement a new
15373   # versioning mechanism, adjust this.
15374   if test -x /usr/bin/objformat; then
15375     objformat=`/usr/bin/objformat`
15376   else
15377     case $host_os in
15378     freebsd[123]*) objformat=aout ;;
15379     *) objformat=elf ;;
15380     esac
15381   fi
15382   version_type=freebsd-$objformat
15383   case $version_type in
15384     freebsd-elf*)
15385       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15386       need_version=no
15387       need_lib_prefix=no
15388       ;;
15389     freebsd-*)
15390       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15391       need_version=yes
15392       ;;
15393   esac
15394   shlibpath_var=LD_LIBRARY_PATH
15395   case $host_os in
15396   freebsd2*)
15397     shlibpath_overrides_runpath=yes
15398     ;;
15399   freebsd3.[01]* | freebsdelf3.[01]*)
15400     shlibpath_overrides_runpath=yes
15401     hardcode_into_libs=yes
15402     ;;
15403   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15404   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15405     shlibpath_overrides_runpath=no
15406     hardcode_into_libs=yes
15407     ;;
15408   *) # from 4.6 on, and DragonFly
15409     shlibpath_overrides_runpath=yes
15410     hardcode_into_libs=yes
15411     ;;
15412   esac
15413   ;;
15414
15415 gnu*)
15416   version_type=linux
15417   need_lib_prefix=no
15418   need_version=no
15419   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15420   soname_spec='${libname}${release}${shared_ext}$major'
15421   shlibpath_var=LD_LIBRARY_PATH
15422   hardcode_into_libs=yes
15423   ;;
15424
15425 hpux9* | hpux10* | hpux11*)
15426   # Give a soname corresponding to the major version so that dld.sl refuses to
15427   # link against other versions.
15428   version_type=sunos
15429   need_lib_prefix=no
15430   need_version=no
15431   case $host_cpu in
15432   ia64*)
15433     shrext_cmds='.so'
15434     hardcode_into_libs=yes
15435     dynamic_linker="$host_os dld.so"
15436     shlibpath_var=LD_LIBRARY_PATH
15437     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15438     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15439     soname_spec='${libname}${release}${shared_ext}$major'
15440     if test "X$HPUX_IA64_MODE" = X32; then
15441       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15442     else
15443       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15444     fi
15445     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15446     ;;
15447   hppa*64*)
15448     shrext_cmds='.sl'
15449     hardcode_into_libs=yes
15450     dynamic_linker="$host_os dld.sl"
15451     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15452     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15453     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15454     soname_spec='${libname}${release}${shared_ext}$major'
15455     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15456     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15457     ;;
15458   *)
15459     shrext_cmds='.sl'
15460     dynamic_linker="$host_os dld.sl"
15461     shlibpath_var=SHLIB_PATH
15462     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15463     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15464     soname_spec='${libname}${release}${shared_ext}$major'
15465     ;;
15466   esac
15467   # HP-UX runs *really* slowly unless shared libraries are mode 555.
15468   postinstall_cmds='chmod 555 $lib'
15469   ;;
15470
15471 interix[3-9]*)
15472   version_type=linux
15473   need_lib_prefix=no
15474   need_version=no
15475   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15476   soname_spec='${libname}${release}${shared_ext}$major'
15477   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15478   shlibpath_var=LD_LIBRARY_PATH
15479   shlibpath_overrides_runpath=no
15480   hardcode_into_libs=yes
15481   ;;
15482
15483 irix5* | irix6* | nonstopux*)
15484   case $host_os in
15485     nonstopux*) version_type=nonstopux ;;
15486     *)
15487         if test "$lt_cv_prog_gnu_ld" = yes; then
15488                 version_type=linux
15489         else
15490                 version_type=irix
15491         fi ;;
15492   esac
15493   need_lib_prefix=no
15494   need_version=no
15495   soname_spec='${libname}${release}${shared_ext}$major'
15496   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15497   case $host_os in
15498   irix5* | nonstopux*)
15499     libsuff= shlibsuff=
15500     ;;
15501   *)
15502     case $LD in # libtool.m4 will add one of these switches to LD
15503     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15504       libsuff= shlibsuff= libmagic=32-bit;;
15505     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15506       libsuff=32 shlibsuff=N32 libmagic=N32;;
15507     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15508       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15509     *) libsuff= shlibsuff= libmagic=never-match;;
15510     esac
15511     ;;
15512   esac
15513   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15514   shlibpath_overrides_runpath=no
15515   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15516   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15517   hardcode_into_libs=yes
15518   ;;
15519
15520 # No shared lib support for Linux oldld, aout, or coff.
15521 linux*oldld* | linux*aout* | linux*coff*)
15522   dynamic_linker=no
15523   ;;
15524
15525 # This must be Linux ELF.
15526 linux* | k*bsd*-gnu)
15527   version_type=linux
15528   need_lib_prefix=no
15529   need_version=no
15530   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15531   soname_spec='${libname}${release}${shared_ext}$major'
15532   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15533   shlibpath_var=LD_LIBRARY_PATH
15534   shlibpath_overrides_runpath=no
15535   # Some binutils ld are patched to set DT_RUNPATH
15536   save_LDFLAGS=$LDFLAGS
15537   save_libdir=$libdir
15538   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15539        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15540   cat >conftest.$ac_ext <<_ACEOF
15541 /* confdefs.h.  */
15542 _ACEOF
15543 cat confdefs.h >>conftest.$ac_ext
15544 cat >>conftest.$ac_ext <<_ACEOF
15545 /* end confdefs.h.  */
15546
15547 int
15548 main ()
15549 {
15550
15551   ;
15552   return 0;
15553 }
15554 _ACEOF
15555 rm -f conftest.$ac_objext conftest$ac_exeext
15556 if { (ac_try="$ac_link"
15557 case "(($ac_try" in
15558   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15559   *) ac_try_echo=$ac_try;;
15560 esac
15561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15562   (eval "$ac_link") 2>conftest.er1
15563   ac_status=$?
15564   grep -v '^ *+' conftest.er1 >conftest.err
15565   rm -f conftest.er1
15566   cat conftest.err >&5
15567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15568   (exit $ac_status); } && {
15569          test -z "$ac_cxx_werror_flag" ||
15570          test ! -s conftest.err
15571        } && test -s conftest$ac_exeext &&
15572        $as_test_x conftest$ac_exeext; then
15573   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
15574   shlibpath_overrides_runpath=yes
15575 fi
15576
15577 else
15578   echo "$as_me: failed program was:" >&5
15579 sed 's/^/| /' conftest.$ac_ext >&5
15580
15581
15582 fi
15583
15584 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15585       conftest$ac_exeext conftest.$ac_ext
15586   LDFLAGS=$save_LDFLAGS
15587   libdir=$save_libdir
15588
15589   # This implies no fast_install, which is unacceptable.
15590   # Some rework will be needed to allow for fast_install
15591   # before this can be enabled.
15592   hardcode_into_libs=yes
15593
15594   # Append ld.so.conf contents to the search path
15595   if test -f /etc/ld.so.conf; then
15596     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' ' '`
15597     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15598   fi
15599
15600   # We used to test for /lib/ld.so.1 and disable shared libraries on
15601   # powerpc, because MkLinux only supported shared libraries with the
15602   # GNU dynamic linker.  Since this was broken with cross compilers,
15603   # most powerpc-linux boxes support dynamic linking these days and
15604   # people can always --disable-shared, the test was removed, and we
15605   # assume the GNU/Linux dynamic linker is in use.
15606   dynamic_linker='GNU/Linux ld.so'
15607   ;;
15608
15609 netbsd*)
15610   version_type=sunos
15611   need_lib_prefix=no
15612   need_version=no
15613   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15614     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15615     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15616     dynamic_linker='NetBSD (a.out) ld.so'
15617   else
15618     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15619     soname_spec='${libname}${release}${shared_ext}$major'
15620     dynamic_linker='NetBSD ld.elf_so'
15621   fi
15622   shlibpath_var=LD_LIBRARY_PATH
15623   shlibpath_overrides_runpath=yes
15624   hardcode_into_libs=yes
15625   ;;
15626
15627 newsos6)
15628   version_type=linux
15629   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15630   shlibpath_var=LD_LIBRARY_PATH
15631   shlibpath_overrides_runpath=yes
15632   ;;
15633
15634 *nto* | *qnx*)
15635   version_type=qnx
15636   need_lib_prefix=no
15637   need_version=no
15638   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15639   soname_spec='${libname}${release}${shared_ext}$major'
15640   shlibpath_var=LD_LIBRARY_PATH
15641   shlibpath_overrides_runpath=no
15642   hardcode_into_libs=yes
15643   dynamic_linker='ldqnx.so'
15644   ;;
15645
15646 openbsd*)
15647   version_type=sunos
15648   sys_lib_dlsearch_path_spec="/usr/lib"
15649   need_lib_prefix=no
15650   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15651   case $host_os in
15652     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
15653     *)                          need_version=no  ;;
15654   esac
15655   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15656   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15657   shlibpath_var=LD_LIBRARY_PATH
15658   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15659     case $host_os in
15660       openbsd2.[89] | openbsd2.[89].*)
15661         shlibpath_overrides_runpath=no
15662         ;;
15663       *)
15664         shlibpath_overrides_runpath=yes
15665         ;;
15666       esac
15667   else
15668     shlibpath_overrides_runpath=yes
15669   fi
15670   ;;
15671
15672 os2*)
15673   libname_spec='$name'
15674   shrext_cmds=".dll"
15675   need_lib_prefix=no
15676   library_names_spec='$libname${shared_ext} $libname.a'
15677   dynamic_linker='OS/2 ld.exe'
15678   shlibpath_var=LIBPATH
15679   ;;
15680
15681 osf3* | osf4* | osf5*)
15682   version_type=osf
15683   need_lib_prefix=no
15684   need_version=no
15685   soname_spec='${libname}${release}${shared_ext}$major'
15686   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15687   shlibpath_var=LD_LIBRARY_PATH
15688   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15689   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15690   ;;
15691
15692 rdos*)
15693   dynamic_linker=no
15694   ;;
15695
15696 solaris*)
15697   version_type=linux
15698   need_lib_prefix=no
15699   need_version=no
15700   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15701   soname_spec='${libname}${release}${shared_ext}$major'
15702   shlibpath_var=LD_LIBRARY_PATH
15703   shlibpath_overrides_runpath=yes
15704   hardcode_into_libs=yes
15705   # ldd complains unless libraries are executable
15706   postinstall_cmds='chmod +x $lib'
15707   ;;
15708
15709 sunos4*)
15710   version_type=sunos
15711   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15712   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15713   shlibpath_var=LD_LIBRARY_PATH
15714   shlibpath_overrides_runpath=yes
15715   if test "$with_gnu_ld" = yes; then
15716     need_lib_prefix=no
15717   fi
15718   need_version=yes
15719   ;;
15720
15721 sysv4 | sysv4.3*)
15722   version_type=linux
15723   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15724   soname_spec='${libname}${release}${shared_ext}$major'
15725   shlibpath_var=LD_LIBRARY_PATH
15726   case $host_vendor in
15727     sni)
15728       shlibpath_overrides_runpath=no
15729       need_lib_prefix=no
15730       runpath_var=LD_RUN_PATH
15731       ;;
15732     siemens)
15733       need_lib_prefix=no
15734       ;;
15735     motorola)
15736       need_lib_prefix=no
15737       need_version=no
15738       shlibpath_overrides_runpath=no
15739       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15740       ;;
15741   esac
15742   ;;
15743
15744 sysv4*MP*)
15745   if test -d /usr/nec ;then
15746     version_type=linux
15747     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15748     soname_spec='$libname${shared_ext}.$major'
15749     shlibpath_var=LD_LIBRARY_PATH
15750   fi
15751   ;;
15752
15753 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15754   version_type=freebsd-elf
15755   need_lib_prefix=no
15756   need_version=no
15757   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15758   soname_spec='${libname}${release}${shared_ext}$major'
15759   shlibpath_var=LD_LIBRARY_PATH
15760   shlibpath_overrides_runpath=yes
15761   hardcode_into_libs=yes
15762   if test "$with_gnu_ld" = yes; then
15763     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15764   else
15765     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15766     case $host_os in
15767       sco3.2v5*)
15768         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15769         ;;
15770     esac
15771   fi
15772   sys_lib_dlsearch_path_spec='/usr/lib'
15773   ;;
15774
15775 tpf*)
15776   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
15777   version_type=linux
15778   need_lib_prefix=no
15779   need_version=no
15780   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15781   shlibpath_var=LD_LIBRARY_PATH
15782   shlibpath_overrides_runpath=no
15783   hardcode_into_libs=yes
15784   ;;
15785
15786 uts4*)
15787   version_type=linux
15788   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15789   soname_spec='${libname}${release}${shared_ext}$major'
15790   shlibpath_var=LD_LIBRARY_PATH
15791   ;;
15792
15793 *)
15794   dynamic_linker=no
15795   ;;
15796 esac
15797 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15798 echo "${ECHO_T}$dynamic_linker" >&6; }
15799 test "$dynamic_linker" = no && can_build_shared=no
15800
15801 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15802 if test "$GCC" = yes; then
15803   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15804 fi
15805
15806 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15807   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15808 fi
15809 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15810   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15811 fi
15812
15813
15814
15815
15816
15817
15818
15819
15820
15821
15822
15823
15824
15825
15826
15827
15828
15829
15830
15831
15832
15833
15834
15835
15836
15837
15838
15839
15840
15841
15842
15843
15844
15845
15846
15847
15848     { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15849 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15850 hardcode_action_CXX=
15851 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15852    test -n "$runpath_var_CXX" ||
15853    test "X$hardcode_automatic_CXX" = "Xyes" ; then
15854
15855   # We can hardcode non-existent directories.
15856   if test "$hardcode_direct_CXX" != no &&
15857      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15858      # have to relink, otherwise we might link with an installed library
15859      # when we should be linking with a yet-to-be-installed one
15860      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15861      test "$hardcode_minus_L_CXX" != no; then
15862     # Linking always hardcodes the temporary library directory.
15863     hardcode_action_CXX=relink
15864   else
15865     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15866     hardcode_action_CXX=immediate
15867   fi
15868 else
15869   # We cannot hardcode anything, or else we can only hardcode existing
15870   # directories.
15871   hardcode_action_CXX=unsupported
15872 fi
15873 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
15874 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
15875
15876 if test "$hardcode_action_CXX" = relink ||
15877    test "$inherit_rpath_CXX" = yes; then
15878   # Fast installation is not supported
15879   enable_fast_install=no
15880 elif test "$shlibpath_overrides_runpath" = yes ||
15881      test "$enable_shared" = no; then
15882   # Fast installation is not necessary
15883   enable_fast_install=needless
15884 fi
15885
15886
15887
15888
15889
15890
15891
15892   fi # test -n "$compiler"
15893
15894   CC=$lt_save_CC
15895   LDCXX=$LD
15896   LD=$lt_save_LD
15897   GCC=$lt_save_GCC
15898   with_gnu_ld=$lt_save_with_gnu_ld
15899   lt_cv_path_LDCXX=$lt_cv_path_LD
15900   lt_cv_path_LD=$lt_save_path_LD
15901   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15902   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15903 fi # test "$_lt_caught_CXX_error" != yes
15904
15905 ac_ext=c
15906 ac_cpp='$CPP $CPPFLAGS'
15907 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15908 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15909 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15910
15911
15912
15913
15914
15915
15916
15917
15918
15919
15920
15921
15922
15923         ac_config_commands="$ac_config_commands libtool"
15924
15925
15926
15927
15928 # Only expand once:
15929
15930
15931
15932
15933 if test x$use_libtool != xno; then
15934    DEFAULT_OBJECT_TYPE=".lo"
15935    DEFAULT_ARCHIVE_TYPE=".la"
15936    DEFAULT_SHARED_OBJECT_TYPE=".la"
15937    LIBTOOL="\$(LIBTOOL)"
15938    LIBTOOL_INSTALL_TARGET="libtool-install"
15939    LIBTOOL_UNINSTALL_TARGET="libtool-uninstall"
15940    LIBTOOL_CLEAN_TARGET="libtool-clean"
15941    QMAKE_LIBTOOL="${BUILD_DIR}/libtool"
15942 else
15943    DEFAULT_OBJECT_TYPE=".o"
15944    DEFAULT_ARCHIVE_TYPE=".a"
15945    DEFAULT_SHARED_OBJECT_TYPE=".so"
15946    LIBTOOL="# \$(LIBTOOL)"
15947    LIBTOOL_INSTALL_TARGET=""
15948    LIBTOOL_UNINSTALL_TARGET=""
15949    LIBTOOL_CLEAN_TARGET=""
15950    QMAKE_LIBTOOL="# ${BUILD_DIR}/libtool"
15951 fi
15952
15953
15954
15955
15956
15957
15958
15959
15960
15961
15962 # Check whether --enable-includes was given.
15963 if test "${enable_includes+set}" = set; then
15964   enableval=$enable_includes;
15965        if test x$enableval = xyes; then
15966           install_includes=yes
15967        fi
15968
15969
15970 fi
15971
15972
15973
15974 if test x$use_libtool != xno -a x$install_includes = xyes; then
15975    INCLUDE_INSTALL_TARGET="install-includes"
15976    INCLUDE_UNINSTALL_TARGET="uninstall-includes"
15977 else
15978    INCLUDE_INSTALL_TARGET=""
15979    INCLUDE_UNINSTALL_TARGET=""
15980 fi
15981
15982
15983
15984
15985 { echo "$as_me:$LINENO: checking host system type" >&5
15986 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
15987 if test "${ac_cv_host+set}" = set; then
15988   echo $ECHO_N "(cached) $ECHO_C" >&6
15989 else
15990   if test "x$host_alias" = x; then
15991   ac_cv_host=$ac_cv_build
15992 else
15993   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
15994     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
15995 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
15996    { (exit 1); exit 1; }; }
15997 fi
15998
15999 fi
16000 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
16001 echo "${ECHO_T}$ac_cv_host" >&6; }
16002 case $ac_cv_host in
16003 *-*-*) ;;
16004 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
16005 echo "$as_me: error: invalid value of canonical host" >&2;}
16006    { (exit 1); exit 1; }; };;
16007 esac
16008 host=$ac_cv_host
16009 ac_save_IFS=$IFS; IFS='-'
16010 set x $ac_cv_host
16011 shift
16012 host_cpu=$1
16013 host_vendor=$2
16014 shift; shift
16015 # Remember, the first character of IFS is used to create $*,
16016 # except with old shells:
16017 host_os=$*
16018 IFS=$ac_save_IFS
16019 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
16020
16021
16022 case $host_os in
16023   *cygwin* ) CYGWIN=yes;;
16024          * ) CYGWIN=no;;
16025 esac
16026
16027 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
16028 then
16029
16030
16031 if $TRUEPRG; then
16032   HAVE_SUN_OS_TRUE=
16033   HAVE_SUN_OS_FALSE='#'
16034 else
16035   HAVE_SUN_OS_TRUE='#'
16036   HAVE_SUN_OS_FALSE=
16037 fi
16038         cat >>confdefs.h <<\_ACEOF
16039 #define HAVE_SUN_OS 1
16040 _ACEOF
16041
16042 else
16043
16044
16045 if $FALSEPRG; then
16046   HAVE_SUN_OS_TRUE=
16047   HAVE_SUN_OS_FALSE='#'
16048 else
16049   HAVE_SUN_OS_TRUE='#'
16050   HAVE_SUN_OS_FALSE=
16051 fi
16052 fi
16053
16054 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
16055 then
16056
16057
16058 if $TRUEPRG; then
16059   HAVE_OSF1_OS_TRUE=
16060   HAVE_OSF1_OS_FALSE='#'
16061 else
16062   HAVE_OSF1_OS_TRUE='#'
16063   HAVE_OSF1_OS_FALSE=
16064 fi
16065         cat >>confdefs.h <<\_ACEOF
16066 #define HAVE_OSF1_OS 1
16067 _ACEOF
16068
16069 else
16070
16071
16072 if $FALSEPRG; then
16073   HAVE_OSF1_OS_TRUE=
16074   HAVE_OSF1_OS_FALSE='#'
16075 else
16076   HAVE_OSF1_OS_TRUE='#'
16077   HAVE_OSF1_OS_FALSE=
16078 fi
16079 fi
16080
16081 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
16082 then
16083
16084
16085 if $TRUEPRG; then
16086   HAVE_AIX_OS_TRUE=
16087   HAVE_AIX_OS_FALSE='#'
16088 else
16089   HAVE_AIX_OS_TRUE='#'
16090   HAVE_AIX_OS_FALSE=
16091 fi
16092         cat >>confdefs.h <<\_ACEOF
16093 #define HAVE_AIX_OS 1
16094 _ACEOF
16095
16096 else
16097
16098
16099 if $FALSEPRG; then
16100   HAVE_AIX_OS_TRUE=
16101   HAVE_AIX_OS_FALSE='#'
16102 else
16103   HAVE_AIX_OS_TRUE='#'
16104   HAVE_AIX_OS_FALSE=
16105 fi
16106 fi
16107
16108 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
16109 then
16110
16111
16112 if $TRUEPRG; then
16113   HAVE_HPUX_OS_TRUE=
16114   HAVE_HPUX_OS_FALSE='#'
16115 else
16116   HAVE_HPUX_OS_TRUE='#'
16117   HAVE_HPUX_OS_FALSE=
16118 fi
16119         cat >>confdefs.h <<\_ACEOF
16120 #define HAVE_HPUX_OS 1
16121 _ACEOF
16122
16123 else
16124
16125
16126 if $FALSEPRG; then
16127   HAVE_HPUX_OS_TRUE=
16128   HAVE_HPUX_OS_FALSE='#'
16129 else
16130   HAVE_HPUX_OS_TRUE='#'
16131   HAVE_HPUX_OS_FALSE=
16132 fi
16133 fi
16134
16135 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
16136 then
16137
16138
16139 if $TRUEPRG; then
16140   HAVE_LINUX_OS_TRUE=
16141   HAVE_LINUX_OS_FALSE='#'
16142 else
16143   HAVE_LINUX_OS_TRUE='#'
16144   HAVE_LINUX_OS_FALSE=
16145 fi
16146         cat >>confdefs.h <<\_ACEOF
16147 #define HAVE_LINUX_OS 1
16148 _ACEOF
16149
16150 else
16151
16152
16153 if $FALSEPRG; then
16154   HAVE_LINUX_OS_TRUE=
16155   HAVE_LINUX_OS_FALSE='#'
16156 else
16157   HAVE_LINUX_OS_TRUE='#'
16158   HAVE_LINUX_OS_FALSE=
16159 fi
16160 fi
16161
16162 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
16163 then
16164
16165
16166 if $TRUEPRG; then
16167   HAVE_FREEBSD_OS_TRUE=
16168   HAVE_FREEBSD_OS_FALSE='#'
16169 else
16170   HAVE_FREEBSD_OS_TRUE='#'
16171   HAVE_FREEBSD_OS_FALSE=
16172 fi
16173         cat >>confdefs.h <<\_ACEOF
16174 #define HAVE_FREEBSD_OS 1
16175 _ACEOF
16176
16177 else
16178
16179
16180 if $FALSEPRG; then
16181   HAVE_FREEBSD_OS_TRUE=
16182   HAVE_FREEBSD_OS_FALSE='#'
16183 else
16184   HAVE_FREEBSD_OS_TRUE='#'
16185   HAVE_FREEBSD_OS_FALSE=
16186 fi
16187 fi
16188
16189 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
16190 then
16191
16192
16193 if $TRUEPRG; then
16194   HAVE_NETBSD_OS_TRUE=
16195   HAVE_NETBSD_OS_FALSE='#'
16196 else
16197   HAVE_NETBSD_OS_TRUE='#'
16198   HAVE_NETBSD_OS_FALSE=
16199 fi
16200         cat >>confdefs.h <<\_ACEOF
16201 #define HAVE_NETBSD_OS 1
16202 _ACEOF
16203
16204 else
16205
16206
16207 if $FALSEPRG; then
16208   HAVE_NETBSD_OS_TRUE=
16209   HAVE_NETBSD_OS_FALSE='#'
16210 else
16211   HAVE_NETBSD_OS_TRUE='#'
16212   HAVE_NETBSD_OS_FALSE=
16213 fi
16214 fi
16215
16216 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
16217 then
16218
16219
16220 if $TRUEPRG; then
16221   HAVE_OPENBSD_OS_TRUE=
16222   HAVE_OPENBSD_OS_FALSE='#'
16223 else
16224   HAVE_OPENBSD_OS_TRUE='#'
16225   HAVE_OPENBSD_OS_FALSE=
16226 fi
16227         cat >>confdefs.h <<\_ACEOF
16228 #define HAVE_OPENBSD_OS 1
16229 _ACEOF
16230
16231 else
16232
16233
16234 if $FALSEPRG; then
16235   HAVE_OPENBSD_OS_TRUE=
16236   HAVE_OPENBSD_OS_FALSE='#'
16237 else
16238   HAVE_OPENBSD_OS_TRUE='#'
16239   HAVE_OPENBSD_OS_FALSE=
16240 fi
16241 fi
16242
16243 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
16244 then
16245
16246
16247 if $TRUEPRG; then
16248   HAVE_BSDI_OS_TRUE=
16249   HAVE_BSDI_OS_FALSE='#'
16250 else
16251   HAVE_BSDI_OS_TRUE='#'
16252   HAVE_BSDI_OS_FALSE=
16253 fi
16254         cat >>confdefs.h <<\_ACEOF
16255 #define HAVE_BSDI_OS 1
16256 _ACEOF
16257
16258 else
16259
16260
16261 if $FALSEPRG; then
16262   HAVE_BSDI_OS_TRUE=
16263   HAVE_BSDI_OS_FALSE='#'
16264 else
16265   HAVE_BSDI_OS_TRUE='#'
16266   HAVE_BSDI_OS_FALSE=
16267 fi
16268 fi
16269
16270 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
16271 then
16272
16273
16274 if $TRUEPRG; then
16275   HAVE_SGI_OS_TRUE=
16276   HAVE_SGI_OS_FALSE='#'
16277 else
16278   HAVE_SGI_OS_TRUE='#'
16279   HAVE_SGI_OS_FALSE=
16280 fi
16281         cat >>confdefs.h <<\_ACEOF
16282 #define HAVE_SGI_OS 1
16283 _ACEOF
16284
16285 else
16286
16287
16288 if $FALSEPRG; then
16289   HAVE_SGI_OS_TRUE=
16290   HAVE_SGI_OS_FALSE='#'
16291 else
16292   HAVE_SGI_OS_TRUE='#'
16293   HAVE_SGI_OS_FALSE=
16294 fi
16295 fi
16296
16297 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX -o x`uname -s` = xIRIX64
16298 then
16299
16300
16301 if $TRUEPRG; then
16302   HAVE_IRIX_OS_TRUE=
16303   HAVE_IRIX_OS_FALSE='#'
16304 else
16305   HAVE_IRIX_OS_TRUE='#'
16306   HAVE_IRIX_OS_FALSE=
16307 fi
16308         cat >>confdefs.h <<\_ACEOF
16309 #define HAVE_IRIX_OS 1
16310 _ACEOF
16311
16312 else
16313
16314
16315 if $FALSEPRG; then
16316   HAVE_IRIX_OS_TRUE=
16317   HAVE_IRIX_OS_FALSE='#'
16318 else
16319   HAVE_IRIX_OS_TRUE='#'
16320   HAVE_IRIX_OS_FALSE=
16321 fi
16322 fi
16323
16324 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
16325 then
16326
16327
16328 if $TRUEPRG; then
16329   HAVE_DARWIN_OS_TRUE=
16330   HAVE_DARWIN_OS_FALSE='#'
16331 else
16332   HAVE_DARWIN_OS_TRUE='#'
16333   HAVE_DARWIN_OS_FALSE=
16334 fi
16335     cat >>confdefs.h <<\_ACEOF
16336 #define HAVE_DARWIN_OS 1
16337 _ACEOF
16338
16339 else
16340
16341
16342 if $FALSEPRG; then
16343   HAVE_DARWIN_OS_TRUE=
16344   HAVE_DARWIN_OS_FALSE='#'
16345 else
16346   HAVE_DARWIN_OS_TRUE='#'
16347   HAVE_DARWIN_OS_FALSE=
16348 fi
16349 fi
16350
16351
16352 { echo "$as_me:$LINENO: checking for Operating System Distribution" >&5
16353 echo $ECHO_N "checking for Operating System Distribution... $ECHO_C" >&6; }
16354 if test "x$DISTNAME" != "x"
16355 then
16356         echo "distname set to $DISTNAME"
16357 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
16358 then
16359         DISTNAME=alpha
16360 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
16361 then
16362         DISTNAME=aix
16363 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
16364 then
16365         DISTNAME=hpux
16366 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
16367 then
16368         DISTNAME=solaris
16369 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
16370 then
16371         DISTNAME=freebsd
16372 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
16373 then
16374         DISTNAME=netbsd
16375 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
16376 then
16377         DISTNAME=openbsd
16378 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
16379 then
16380         DISTNAME=irix
16381 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
16382 then
16383         DISTNAME=bsdi
16384 elif test -f /etc/SuSE-release
16385 then
16386         DISTNAME=suse
16387 elif test -d /etc/SuSEconfig
16388 then
16389         DISTNAME=suse5
16390 elif test -f /etc/mandrake-release
16391 then
16392         DISTNAME=mandrake
16393 elif test -f /etc/whitebox-release
16394 then
16395        DISTNAME=redhat
16396 elif test -f /etc/redhat-release
16397 then
16398         DISTNAME=redhat
16399 elif test -f /etc/gentoo-release
16400 then
16401         DISTNAME=gentoo
16402 elif test -f /etc/debian_version
16403 then
16404         DISTNAME=debian
16405 elif test -f /etc/slackware-version
16406 then
16407         DISTNAME=slackware
16408 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
16409 then
16410     DISTNAME=darwin
16411 elif test -f /etc/engarde-version
16412 then
16413         DISTNAME=engarde
16414 elif test "$CYGWIN" = yes
16415 then
16416         DISTNAME=cygwin
16417         cat >>confdefs.h <<\_ACEOF
16418 #define HAVE_CYGWIN 1
16419 _ACEOF
16420
16421 else
16422         DISTNAME=unknown
16423 fi
16424 { echo "$as_me:$LINENO: result: done" >&5
16425 echo "${ECHO_T}done" >&6; }
16426
16427
16428 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
16429 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
16430 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
16431 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
16432   echo $ECHO_N "(cached) $ECHO_C" >&6
16433 else
16434   cat >conftest.make <<\_ACEOF
16435 SHELL = /bin/sh
16436 all:
16437         @echo '@@@%%%=$(MAKE)=@@@%%%'
16438 _ACEOF
16439 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
16440 case `${MAKE-make} -f conftest.make 2>/dev/null` in
16441   *@@@%%%=?*=@@@%%%*)
16442     eval ac_cv_prog_make_${ac_make}_set=yes;;
16443   *)
16444     eval ac_cv_prog_make_${ac_make}_set=no;;
16445 esac
16446 rm -f conftest.make
16447 fi
16448 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
16449   { echo "$as_me:$LINENO: result: yes" >&5
16450 echo "${ECHO_T}yes" >&6; }
16451   SET_MAKE=
16452 else
16453   { echo "$as_me:$LINENO: result: no" >&5
16454 echo "${ECHO_T}no" >&6; }
16455   SET_MAKE="MAKE=${MAKE-make}"
16456 fi
16457
16458
16459
16460         MKINSTALLDIRS=
16461   if test -n "$ac_aux_dir"; then
16462     case "$ac_aux_dir" in
16463       /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
16464       *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
16465     esac
16466   fi
16467   if test -z "$MKINSTALLDIRS"; then
16468     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
16469   fi
16470
16471
16472
16473   { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
16474 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
16475     # Check whether --enable-nls was given.
16476 if test "${enable_nls+set}" = set; then
16477   enableval=$enable_nls; USE_NLS=$enableval
16478 else
16479   USE_NLS=yes
16480 fi
16481
16482   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
16483 echo "${ECHO_T}$USE_NLS" >&6; }
16484
16485
16486
16487
16488
16489
16490 # Prepare PATH_SEPARATOR.
16491 # The user is always right.
16492 if test "${PATH_SEPARATOR+set}" != set; then
16493   echo "#! /bin/sh" >conf$$.sh
16494   echo  "exit 0"   >>conf$$.sh
16495   chmod +x conf$$.sh
16496   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16497     PATH_SEPARATOR=';'
16498   else
16499     PATH_SEPARATOR=:
16500   fi
16501   rm -f conf$$.sh
16502 fi
16503
16504 # Find out how to test for executable files. Don't use a zero-byte file,
16505 # as systems may use methods other than mode bits to determine executability.
16506 cat >conf$$.file <<_ASEOF
16507 #! /bin/sh
16508 exit 0
16509 _ASEOF
16510 chmod +x conf$$.file
16511 if test -x conf$$.file >/dev/null 2>&1; then
16512   ac_executable_p="test -x"
16513 else
16514   ac_executable_p="test -f"
16515 fi
16516 rm -f conf$$.file
16517
16518 # Extract the first word of "msgfmt", so it can be a program name with args.
16519 set dummy msgfmt; ac_word=$2
16520 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16521 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16522 if test "${ac_cv_path_MSGFMT+set}" = set; then
16523   echo $ECHO_N "(cached) $ECHO_C" >&6
16524 else
16525   case "$MSGFMT" in
16526   [\\/]* | ?:[\\/]*)
16527     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
16528     ;;
16529   *)
16530     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16531     for ac_dir in $PATH; do
16532       IFS="$ac_save_IFS"
16533       test -z "$ac_dir" && ac_dir=.
16534       for ac_exec_ext in '' $ac_executable_extensions; do
16535         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16536           echo "$as_me: trying $ac_dir/$ac_word..." >&5
16537           if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
16538      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16539             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
16540             break 2
16541           fi
16542         fi
16543       done
16544     done
16545     IFS="$ac_save_IFS"
16546   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
16547     ;;
16548 esac
16549 fi
16550 MSGFMT="$ac_cv_path_MSGFMT"
16551 if test "$MSGFMT" != ":"; then
16552   { echo "$as_me:$LINENO: result: $MSGFMT" >&5
16553 echo "${ECHO_T}$MSGFMT" >&6; }
16554 else
16555   { echo "$as_me:$LINENO: result: no" >&5
16556 echo "${ECHO_T}no" >&6; }
16557 fi
16558
16559   # Extract the first word of "gmsgfmt", so it can be a program name with args.
16560 set dummy gmsgfmt; ac_word=$2
16561 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16562 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16563 if test "${ac_cv_path_GMSGFMT+set}" = set; then
16564   echo $ECHO_N "(cached) $ECHO_C" >&6
16565 else
16566   case $GMSGFMT in
16567   [\\/]* | ?:[\\/]*)
16568   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
16569   ;;
16570   *)
16571   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16572 for as_dir in $PATH
16573 do
16574   IFS=$as_save_IFS
16575   test -z "$as_dir" && as_dir=.
16576   for ac_exec_ext in '' $ac_executable_extensions; do
16577   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16578     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
16579     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16580     break 2
16581   fi
16582 done
16583 done
16584 IFS=$as_save_IFS
16585
16586   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
16587   ;;
16588 esac
16589 fi
16590 GMSGFMT=$ac_cv_path_GMSGFMT
16591 if test -n "$GMSGFMT"; then
16592   { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
16593 echo "${ECHO_T}$GMSGFMT" >&6; }
16594 else
16595   { echo "$as_me:$LINENO: result: no" >&5
16596 echo "${ECHO_T}no" >&6; }
16597 fi
16598
16599
16600
16601
16602 # Prepare PATH_SEPARATOR.
16603 # The user is always right.
16604 if test "${PATH_SEPARATOR+set}" != set; then
16605   echo "#! /bin/sh" >conf$$.sh
16606   echo  "exit 0"   >>conf$$.sh
16607   chmod +x conf$$.sh
16608   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16609     PATH_SEPARATOR=';'
16610   else
16611     PATH_SEPARATOR=:
16612   fi
16613   rm -f conf$$.sh
16614 fi
16615
16616 # Find out how to test for executable files. Don't use a zero-byte file,
16617 # as systems may use methods other than mode bits to determine executability.
16618 cat >conf$$.file <<_ASEOF
16619 #! /bin/sh
16620 exit 0
16621 _ASEOF
16622 chmod +x conf$$.file
16623 if test -x conf$$.file >/dev/null 2>&1; then
16624   ac_executable_p="test -x"
16625 else
16626   ac_executable_p="test -f"
16627 fi
16628 rm -f conf$$.file
16629
16630 # Extract the first word of "xgettext", so it can be a program name with args.
16631 set dummy xgettext; ac_word=$2
16632 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16633 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16634 if test "${ac_cv_path_XGETTEXT+set}" = set; then
16635   echo $ECHO_N "(cached) $ECHO_C" >&6
16636 else
16637   case "$XGETTEXT" in
16638   [\\/]* | ?:[\\/]*)
16639     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
16640     ;;
16641   *)
16642     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16643     for ac_dir in $PATH; do
16644       IFS="$ac_save_IFS"
16645       test -z "$ac_dir" && ac_dir=.
16646       for ac_exec_ext in '' $ac_executable_extensions; do
16647         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16648           echo "$as_me: trying $ac_dir/$ac_word..." >&5
16649           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
16650      (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
16651             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
16652             break 2
16653           fi
16654         fi
16655       done
16656     done
16657     IFS="$ac_save_IFS"
16658   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
16659     ;;
16660 esac
16661 fi
16662 XGETTEXT="$ac_cv_path_XGETTEXT"
16663 if test "$XGETTEXT" != ":"; then
16664   { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
16665 echo "${ECHO_T}$XGETTEXT" >&6; }
16666 else
16667   { echo "$as_me:$LINENO: result: no" >&5
16668 echo "${ECHO_T}no" >&6; }
16669 fi
16670
16671     rm -f messages.po
16672
16673
16674 # Prepare PATH_SEPARATOR.
16675 # The user is always right.
16676 if test "${PATH_SEPARATOR+set}" != set; then
16677   echo "#! /bin/sh" >conf$$.sh
16678   echo  "exit 0"   >>conf$$.sh
16679   chmod +x conf$$.sh
16680   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16681     PATH_SEPARATOR=';'
16682   else
16683     PATH_SEPARATOR=:
16684   fi
16685   rm -f conf$$.sh
16686 fi
16687
16688 # Find out how to test for executable files. Don't use a zero-byte file,
16689 # as systems may use methods other than mode bits to determine executability.
16690 cat >conf$$.file <<_ASEOF
16691 #! /bin/sh
16692 exit 0
16693 _ASEOF
16694 chmod +x conf$$.file
16695 if test -x conf$$.file >/dev/null 2>&1; then
16696   ac_executable_p="test -x"
16697 else
16698   ac_executable_p="test -f"
16699 fi
16700 rm -f conf$$.file
16701
16702 # Extract the first word of "msgmerge", so it can be a program name with args.
16703 set dummy msgmerge; ac_word=$2
16704 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16705 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16706 if test "${ac_cv_path_MSGMERGE+set}" = set; then
16707   echo $ECHO_N "(cached) $ECHO_C" >&6
16708 else
16709   case "$MSGMERGE" in
16710   [\\/]* | ?:[\\/]*)
16711     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
16712     ;;
16713   *)
16714     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16715     for ac_dir in $PATH; do
16716       IFS="$ac_save_IFS"
16717       test -z "$ac_dir" && ac_dir=.
16718       for ac_exec_ext in '' $ac_executable_extensions; do
16719         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16720           echo "$as_me: trying $ac_dir/$ac_word..." >&5
16721           if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
16722             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
16723             break 2
16724           fi
16725         fi
16726       done
16727     done
16728     IFS="$ac_save_IFS"
16729   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
16730     ;;
16731 esac
16732 fi
16733 MSGMERGE="$ac_cv_path_MSGMERGE"
16734 if test "$MSGMERGE" != ":"; then
16735   { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
16736 echo "${ECHO_T}$MSGMERGE" >&6; }
16737 else
16738   { echo "$as_me:$LINENO: result: no" >&5
16739 echo "${ECHO_T}no" >&6; }
16740 fi
16741
16742
16743       if test "$GMSGFMT" != ":"; then
16744             if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
16745        (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16746       : ;
16747     else
16748       GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
16749       { echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
16750 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
16751       GMSGFMT=":"
16752     fi
16753   fi
16754
16755       if test "$XGETTEXT" != ":"; then
16756             if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
16757        (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
16758       : ;
16759     else
16760       { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
16761 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; }
16762       XGETTEXT=":"
16763     fi
16764         rm -f messages.po
16765   fi
16766
16767   ac_config_commands="$ac_config_commands default-1"
16768
16769
16770
16771       if test "X$prefix" = "XNONE"; then
16772     acl_final_prefix="$ac_default_prefix"
16773   else
16774     acl_final_prefix="$prefix"
16775   fi
16776   if test "X$exec_prefix" = "XNONE"; then
16777     acl_final_exec_prefix='${prefix}'
16778   else
16779     acl_final_exec_prefix="$exec_prefix"
16780   fi
16781   acl_save_prefix="$prefix"
16782   prefix="$acl_final_prefix"
16783   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
16784   prefix="$acl_save_prefix"
16785
16786
16787 # Check whether --with-gnu-ld was given.
16788 if test "${with_gnu_ld+set}" = set; then
16789   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
16790 else
16791   with_gnu_ld=no
16792 fi
16793
16794 # Prepare PATH_SEPARATOR.
16795 # The user is always right.
16796 if test "${PATH_SEPARATOR+set}" != set; then
16797   echo "#! /bin/sh" >conf$$.sh
16798   echo  "exit 0"   >>conf$$.sh
16799   chmod +x conf$$.sh
16800   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16801     PATH_SEPARATOR=';'
16802   else
16803     PATH_SEPARATOR=:
16804   fi
16805   rm -f conf$$.sh
16806 fi
16807 ac_prog=ld
16808 if test "$GCC" = yes; then
16809   # Check if gcc -print-prog-name=ld gives a path.
16810   { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
16811 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
16812   case $host in
16813   *-*-mingw*)
16814     # gcc leaves a trailing carriage return which upsets mingw
16815     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16816   *)
16817     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16818   esac
16819   case $ac_prog in
16820     # Accept absolute paths.
16821     [\\/]* | [A-Za-z]:[\\/]*)
16822       re_direlt='/[^/][^/]*/\.\./'
16823       # Canonicalize the path of ld
16824       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
16825       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
16826         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
16827       done
16828       test -z "$LD" && LD="$ac_prog"
16829       ;;
16830   "")
16831     # If it fails, then pretend we aren't using GCC.
16832     ac_prog=ld
16833     ;;
16834   *)
16835     # If it is relative, then search for the first ld in PATH.
16836     with_gnu_ld=unknown
16837     ;;
16838   esac
16839 elif test "$with_gnu_ld" = yes; then
16840   { echo "$as_me:$LINENO: checking for GNU ld" >&5
16841 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
16842 else
16843   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
16844 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
16845 fi
16846 if test "${acl_cv_path_LD+set}" = set; then
16847   echo $ECHO_N "(cached) $ECHO_C" >&6
16848 else
16849   if test -z "$LD"; then
16850   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
16851   for ac_dir in $PATH; do
16852     test -z "$ac_dir" && ac_dir=.
16853     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16854       acl_cv_path_LD="$ac_dir/$ac_prog"
16855       # Check to see if the program is GNU ld.  I'd rather use --version,
16856       # but apparently some GNU ld's only accept -v.
16857       # Break only if it was the GNU/non-GNU ld that we prefer.
16858       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
16859       *GNU* | *'with BFD'*)
16860         test "$with_gnu_ld" != no && break ;;
16861       *)
16862         test "$with_gnu_ld" != yes && break ;;
16863       esac
16864     fi
16865   done
16866   IFS="$ac_save_ifs"
16867 else
16868   acl_cv_path_LD="$LD" # Let the user override the test with a path.
16869 fi
16870 fi
16871
16872 LD="$acl_cv_path_LD"
16873 if test -n "$LD"; then
16874   { echo "$as_me:$LINENO: result: $LD" >&5
16875 echo "${ECHO_T}$LD" >&6; }
16876 else
16877   { echo "$as_me:$LINENO: result: no" >&5
16878 echo "${ECHO_T}no" >&6; }
16879 fi
16880 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
16881 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
16882    { (exit 1); exit 1; }; }
16883 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
16884 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
16885 if test "${acl_cv_prog_gnu_ld+set}" = set; then
16886   echo $ECHO_N "(cached) $ECHO_C" >&6
16887 else
16888   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
16889 case `$LD -v 2>&1 </dev/null` in
16890 *GNU* | *'with BFD'*)
16891   acl_cv_prog_gnu_ld=yes ;;
16892 *)
16893   acl_cv_prog_gnu_ld=no ;;
16894 esac
16895 fi
16896 { echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
16897 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
16898 with_gnu_ld=$acl_cv_prog_gnu_ld
16899
16900
16901
16902
16903                                                 { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
16904 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
16905 if test "${acl_cv_rpath+set}" = set; then
16906   echo $ECHO_N "(cached) $ECHO_C" >&6
16907 else
16908
16909     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
16910     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
16911     . ./conftest.sh
16912     rm -f ./conftest.sh
16913     acl_cv_rpath=done
16914
16915 fi
16916 { echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
16917 echo "${ECHO_T}$acl_cv_rpath" >&6; }
16918   wl="$acl_cv_wl"
16919   libext="$acl_cv_libext"
16920   shlibext="$acl_cv_shlibext"
16921   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
16922   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
16923   hardcode_direct="$acl_cv_hardcode_direct"
16924   hardcode_minus_L="$acl_cv_hardcode_minus_L"
16925     # Check whether --enable-rpath was given.
16926 if test "${enable_rpath+set}" = set; then
16927   enableval=$enable_rpath; :
16928 else
16929   enable_rpath=yes
16930 fi
16931
16932
16933
16934
16935
16936
16937
16938
16939     use_additional=yes
16940
16941   acl_save_prefix="$prefix"
16942   prefix="$acl_final_prefix"
16943   acl_save_exec_prefix="$exec_prefix"
16944   exec_prefix="$acl_final_exec_prefix"
16945
16946     eval additional_includedir=\"$includedir\"
16947     eval additional_libdir=\"$libdir\"
16948
16949   exec_prefix="$acl_save_exec_prefix"
16950   prefix="$acl_save_prefix"
16951
16952
16953 # Check whether --with-libiconv-prefix was given.
16954 if test "${with_libiconv_prefix+set}" = set; then
16955   withval=$with_libiconv_prefix;
16956     if test "X$withval" = "Xno"; then
16957       use_additional=no
16958     else
16959       if test "X$withval" = "X"; then
16960
16961   acl_save_prefix="$prefix"
16962   prefix="$acl_final_prefix"
16963   acl_save_exec_prefix="$exec_prefix"
16964   exec_prefix="$acl_final_exec_prefix"
16965
16966           eval additional_includedir=\"$includedir\"
16967           eval additional_libdir=\"$libdir\"
16968
16969   exec_prefix="$acl_save_exec_prefix"
16970   prefix="$acl_save_prefix"
16971
16972       else
16973         additional_includedir="$withval/include"
16974         additional_libdir="$withval/lib"
16975       fi
16976     fi
16977
16978 fi
16979
16980       LIBICONV=
16981   LTLIBICONV=
16982   INCICONV=
16983   rpathdirs=
16984   ltrpathdirs=
16985   names_already_handled=
16986   names_next_round='iconv '
16987   while test -n "$names_next_round"; do
16988     names_this_round="$names_next_round"
16989     names_next_round=
16990     for name in $names_this_round; do
16991       already_handled=
16992       for n in $names_already_handled; do
16993         if test "$n" = "$name"; then
16994           already_handled=yes
16995           break
16996         fi
16997       done
16998       if test -z "$already_handled"; then
16999         names_already_handled="$names_already_handled $name"
17000                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
17001         eval value=\"\$HAVE_LIB$uppername\"
17002         if test -n "$value"; then
17003           if test "$value" = yes; then
17004             eval value=\"\$LIB$uppername\"
17005             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
17006             eval value=\"\$LTLIB$uppername\"
17007             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
17008           else
17009                                     :
17010           fi
17011         else
17012                               found_dir=
17013           found_la=
17014           found_so=
17015           found_a=
17016           if test $use_additional = yes; then
17017             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
17018               found_dir="$additional_libdir"
17019               found_so="$additional_libdir/lib$name.$shlibext"
17020               if test -f "$additional_libdir/lib$name.la"; then
17021                 found_la="$additional_libdir/lib$name.la"
17022               fi
17023             else
17024               if test -f "$additional_libdir/lib$name.$libext"; then
17025                 found_dir="$additional_libdir"
17026                 found_a="$additional_libdir/lib$name.$libext"
17027                 if test -f "$additional_libdir/lib$name.la"; then
17028                   found_la="$additional_libdir/lib$name.la"
17029                 fi
17030               fi
17031             fi
17032           fi
17033           if test "X$found_dir" = "X"; then
17034             for x in $LDFLAGS $LTLIBICONV; do
17035
17036   acl_save_prefix="$prefix"
17037   prefix="$acl_final_prefix"
17038   acl_save_exec_prefix="$exec_prefix"
17039   exec_prefix="$acl_final_exec_prefix"
17040   eval x=\"$x\"
17041   exec_prefix="$acl_save_exec_prefix"
17042   prefix="$acl_save_prefix"
17043
17044               case "$x" in
17045                 -L*)
17046                   dir=`echo "X$x" | sed -e 's/^X-L//'`
17047                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
17048                     found_dir="$dir"
17049                     found_so="$dir/lib$name.$shlibext"
17050                     if test -f "$dir/lib$name.la"; then
17051                       found_la="$dir/lib$name.la"
17052                     fi
17053                   else
17054                     if test -f "$dir/lib$name.$libext"; then
17055                       found_dir="$dir"
17056                       found_a="$dir/lib$name.$libext"
17057                       if test -f "$dir/lib$name.la"; then
17058                         found_la="$dir/lib$name.la"
17059                       fi
17060                     fi
17061                   fi
17062                   ;;
17063               esac
17064               if test "X$found_dir" != "X"; then
17065                 break
17066               fi
17067             done
17068           fi
17069           if test "X$found_dir" != "X"; then
17070                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
17071             if test "X$found_so" != "X"; then
17072                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
17073                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17074               else
17075                                                                                 haveit=
17076                 for x in $ltrpathdirs; do
17077                   if test "X$x" = "X$found_dir"; then
17078                     haveit=yes
17079                     break
17080                   fi
17081                 done
17082                 if test -z "$haveit"; then
17083                   ltrpathdirs="$ltrpathdirs $found_dir"
17084                 fi
17085                                 if test "$hardcode_direct" = yes; then
17086                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17087                 else
17088                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
17089                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17090                                                             haveit=
17091                     for x in $rpathdirs; do
17092                       if test "X$x" = "X$found_dir"; then
17093                         haveit=yes
17094                         break
17095                       fi
17096                     done
17097                     if test -z "$haveit"; then
17098                       rpathdirs="$rpathdirs $found_dir"
17099                     fi
17100                   else
17101                                                                                 haveit=
17102                     for x in $LDFLAGS $LIBICONV; do
17103
17104   acl_save_prefix="$prefix"
17105   prefix="$acl_final_prefix"
17106   acl_save_exec_prefix="$exec_prefix"
17107   exec_prefix="$acl_final_exec_prefix"
17108   eval x=\"$x\"
17109   exec_prefix="$acl_save_exec_prefix"
17110   prefix="$acl_save_prefix"
17111
17112                       if test "X$x" = "X-L$found_dir"; then
17113                         haveit=yes
17114                         break
17115                       fi
17116                     done
17117                     if test -z "$haveit"; then
17118                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
17119                     fi
17120                     if test "$hardcode_minus_L" != no; then
17121                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17122                     else
17123                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
17124                     fi
17125                   fi
17126                 fi
17127               fi
17128             else
17129               if test "X$found_a" != "X"; then
17130                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
17131               else
17132                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
17133               fi
17134             fi
17135                         additional_includedir=
17136             case "$found_dir" in
17137               */lib | */lib/)
17138                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17139                 additional_includedir="$basedir/include"
17140                 ;;
17141             esac
17142             if test "X$additional_includedir" != "X"; then
17143                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
17144                 haveit=
17145                 if test "X$additional_includedir" = "X/usr/local/include"; then
17146                   if test -n "$GCC"; then
17147                     case $host_os in
17148                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17149                     esac
17150                   fi
17151                 fi
17152                 if test -z "$haveit"; then
17153                   for x in $CPPFLAGS $INCICONV; do
17154
17155   acl_save_prefix="$prefix"
17156   prefix="$acl_final_prefix"
17157   acl_save_exec_prefix="$exec_prefix"
17158   exec_prefix="$acl_final_exec_prefix"
17159   eval x=\"$x\"
17160   exec_prefix="$acl_save_exec_prefix"
17161   prefix="$acl_save_prefix"
17162
17163                     if test "X$x" = "X-I$additional_includedir"; then
17164                       haveit=yes
17165                       break
17166                     fi
17167                   done
17168                   if test -z "$haveit"; then
17169                     if test -d "$additional_includedir"; then
17170                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
17171                     fi
17172                   fi
17173                 fi
17174               fi
17175             fi
17176                         if test -n "$found_la"; then
17177                                                         save_libdir="$libdir"
17178               case "$found_la" in
17179                 */* | *\\*) . "$found_la" ;;
17180                 *) . "./$found_la" ;;
17181               esac
17182               libdir="$save_libdir"
17183                             for dep in $dependency_libs; do
17184                 case "$dep" in
17185                   -L*)
17186                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17187                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
17188                       haveit=
17189                       if test "X$additional_libdir" = "X/usr/local/lib"; then
17190                         if test -n "$GCC"; then
17191                           case $host_os in
17192                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17193                           esac
17194                         fi
17195                       fi
17196                       if test -z "$haveit"; then
17197                         haveit=
17198                         for x in $LDFLAGS $LIBICONV; do
17199
17200   acl_save_prefix="$prefix"
17201   prefix="$acl_final_prefix"
17202   acl_save_exec_prefix="$exec_prefix"
17203   exec_prefix="$acl_final_exec_prefix"
17204   eval x=\"$x\"
17205   exec_prefix="$acl_save_exec_prefix"
17206   prefix="$acl_save_prefix"
17207
17208                           if test "X$x" = "X-L$additional_libdir"; then
17209                             haveit=yes
17210                             break
17211                           fi
17212                         done
17213                         if test -z "$haveit"; then
17214                           if test -d "$additional_libdir"; then
17215                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
17216                           fi
17217                         fi
17218                         haveit=
17219                         for x in $LDFLAGS $LTLIBICONV; do
17220
17221   acl_save_prefix="$prefix"
17222   prefix="$acl_final_prefix"
17223   acl_save_exec_prefix="$exec_prefix"
17224   exec_prefix="$acl_final_exec_prefix"
17225   eval x=\"$x\"
17226   exec_prefix="$acl_save_exec_prefix"
17227   prefix="$acl_save_prefix"
17228
17229                           if test "X$x" = "X-L$additional_libdir"; then
17230                             haveit=yes
17231                             break
17232                           fi
17233                         done
17234                         if test -z "$haveit"; then
17235                           if test -d "$additional_libdir"; then
17236                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
17237                           fi
17238                         fi
17239                       fi
17240                     fi
17241                     ;;
17242                   -R*)
17243                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
17244                     if test "$enable_rpath" != no; then
17245                                                                   haveit=
17246                       for x in $rpathdirs; do
17247                         if test "X$x" = "X$dir"; then
17248                           haveit=yes
17249                           break
17250                         fi
17251                       done
17252                       if test -z "$haveit"; then
17253                         rpathdirs="$rpathdirs $dir"
17254                       fi
17255                                                                   haveit=
17256                       for x in $ltrpathdirs; do
17257                         if test "X$x" = "X$dir"; then
17258                           haveit=yes
17259                           break
17260                         fi
17261                       done
17262                       if test -z "$haveit"; then
17263                         ltrpathdirs="$ltrpathdirs $dir"
17264                       fi
17265                     fi
17266                     ;;
17267                   -l*)
17268                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
17269                     ;;
17270                   *.la)
17271                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
17272                     ;;
17273                   *)
17274                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
17275                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
17276                     ;;
17277                 esac
17278               done
17279             fi
17280           else
17281                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
17282             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
17283           fi
17284         fi
17285       fi
17286     done
17287   done
17288   if test "X$rpathdirs" != "X"; then
17289     if test -n "$hardcode_libdir_separator"; then
17290                         alldirs=
17291       for found_dir in $rpathdirs; do
17292         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
17293       done
17294             acl_save_libdir="$libdir"
17295       libdir="$alldirs"
17296       eval flag=\"$hardcode_libdir_flag_spec\"
17297       libdir="$acl_save_libdir"
17298       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
17299     else
17300             for found_dir in $rpathdirs; do
17301         acl_save_libdir="$libdir"
17302         libdir="$found_dir"
17303         eval flag=\"$hardcode_libdir_flag_spec\"
17304         libdir="$acl_save_libdir"
17305         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
17306       done
17307     fi
17308   fi
17309   if test "X$ltrpathdirs" != "X"; then
17310             for found_dir in $ltrpathdirs; do
17311       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
17312     done
17313   fi
17314
17315
17316
17317
17318
17319
17320
17321
17322
17323
17324
17325
17326
17327
17328
17329
17330
17331
17332     { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
17333 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
17334 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
17335   echo $ECHO_N "(cached) $ECHO_C" >&6
17336 else
17337   gt_save_CPPFLAGS="$CPPFLAGS"
17338      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
17339      gt_save_LIBS="$LIBS"
17340      LIBS="$LIBS -framework CoreFoundation"
17341      cat >conftest.$ac_ext <<_ACEOF
17342 /* confdefs.h.  */
17343 _ACEOF
17344 cat confdefs.h >>conftest.$ac_ext
17345 cat >>conftest.$ac_ext <<_ACEOF
17346 /* end confdefs.h.  */
17347 #include <CFPreferences.h>
17348 int
17349 main ()
17350 {
17351 CFPreferencesCopyAppValue(NULL, NULL)
17352   ;
17353   return 0;
17354 }
17355 _ACEOF
17356 rm -f conftest.$ac_objext conftest$ac_exeext
17357 if { (ac_try="$ac_link"
17358 case "(($ac_try" in
17359   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17360   *) ac_try_echo=$ac_try;;
17361 esac
17362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17363   (eval "$ac_link") 2>conftest.er1
17364   ac_status=$?
17365   grep -v '^ *+' conftest.er1 >conftest.err
17366   rm -f conftest.er1
17367   cat conftest.err >&5
17368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17369   (exit $ac_status); } && {
17370          test -z "$ac_c_werror_flag" ||
17371          test ! -s conftest.err
17372        } && test -s conftest$ac_exeext &&
17373        $as_test_x conftest$ac_exeext; then
17374   gt_cv_func_CFPreferencesCopyAppValue=yes
17375 else
17376   echo "$as_me: failed program was:" >&5
17377 sed 's/^/| /' conftest.$ac_ext >&5
17378
17379         gt_cv_func_CFPreferencesCopyAppValue=no
17380 fi
17381
17382 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17383       conftest$ac_exeext conftest.$ac_ext
17384      CPPFLAGS="$gt_save_CPPFLAGS"
17385      LIBS="$gt_save_LIBS"
17386 fi
17387 { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
17388 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
17389   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
17390
17391 cat >>confdefs.h <<\_ACEOF
17392 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
17393 _ACEOF
17394
17395   fi
17396     { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
17397 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
17398 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
17399   echo $ECHO_N "(cached) $ECHO_C" >&6
17400 else
17401   gt_save_CPPFLAGS="$CPPFLAGS"
17402      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
17403      gt_save_LIBS="$LIBS"
17404      LIBS="$LIBS -framework CoreFoundation"
17405      cat >conftest.$ac_ext <<_ACEOF
17406 /* confdefs.h.  */
17407 _ACEOF
17408 cat confdefs.h >>conftest.$ac_ext
17409 cat >>conftest.$ac_ext <<_ACEOF
17410 /* end confdefs.h.  */
17411 #include <CFLocale.h>
17412 int
17413 main ()
17414 {
17415 CFLocaleCopyCurrent();
17416   ;
17417   return 0;
17418 }
17419 _ACEOF
17420 rm -f conftest.$ac_objext conftest$ac_exeext
17421 if { (ac_try="$ac_link"
17422 case "(($ac_try" in
17423   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17424   *) ac_try_echo=$ac_try;;
17425 esac
17426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17427   (eval "$ac_link") 2>conftest.er1
17428   ac_status=$?
17429   grep -v '^ *+' conftest.er1 >conftest.err
17430   rm -f conftest.er1
17431   cat conftest.err >&5
17432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17433   (exit $ac_status); } && {
17434          test -z "$ac_c_werror_flag" ||
17435          test ! -s conftest.err
17436        } && test -s conftest$ac_exeext &&
17437        $as_test_x conftest$ac_exeext; then
17438   gt_cv_func_CFLocaleCopyCurrent=yes
17439 else
17440   echo "$as_me: failed program was:" >&5
17441 sed 's/^/| /' conftest.$ac_ext >&5
17442
17443         gt_cv_func_CFLocaleCopyCurrent=no
17444 fi
17445
17446 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17447       conftest$ac_exeext conftest.$ac_ext
17448      CPPFLAGS="$gt_save_CPPFLAGS"
17449      LIBS="$gt_save_LIBS"
17450 fi
17451 { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
17452 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
17453   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
17454
17455 cat >>confdefs.h <<\_ACEOF
17456 #define HAVE_CFLOCALECOPYCURRENT 1
17457 _ACEOF
17458
17459   fi
17460   INTL_MACOSX_LIBS=
17461   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
17462     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
17463   fi
17464
17465
17466
17467
17468   { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
17469 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
17470     # Check whether --enable-nls was given.
17471 if test "${enable_nls+set}" = set; then
17472   enableval=$enable_nls; USE_NLS=$enableval
17473 else
17474   USE_NLS=yes
17475 fi
17476
17477   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
17478 echo "${ECHO_T}$USE_NLS" >&6; }
17479
17480
17481
17482
17483   LIBINTL=
17484   LTLIBINTL=
17485   POSUB=
17486
17487     if test "$USE_NLS" = "yes"; then
17488     gt_use_preinstalled_gnugettext=no
17489
17490
17491
17492
17493
17494
17495         { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
17496 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
17497 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
17498   echo $ECHO_N "(cached) $ECHO_C" >&6
17499 else
17500   cat >conftest.$ac_ext <<_ACEOF
17501 /* confdefs.h.  */
17502 _ACEOF
17503 cat confdefs.h >>conftest.$ac_ext
17504 cat >>conftest.$ac_ext <<_ACEOF
17505 /* end confdefs.h.  */
17506 #include <libintl.h>
17507 extern int _nl_msg_cat_cntr;
17508 extern int *_nl_domain_bindings;
17509 int
17510 main ()
17511 {
17512 bindtextdomain ("", "");
17513 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
17514   ;
17515   return 0;
17516 }
17517 _ACEOF
17518 rm -f conftest.$ac_objext conftest$ac_exeext
17519 if { (ac_try="$ac_link"
17520 case "(($ac_try" in
17521   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17522   *) ac_try_echo=$ac_try;;
17523 esac
17524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17525   (eval "$ac_link") 2>conftest.er1
17526   ac_status=$?
17527   grep -v '^ *+' conftest.er1 >conftest.err
17528   rm -f conftest.er1
17529   cat conftest.err >&5
17530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17531   (exit $ac_status); } && {
17532          test -z "$ac_c_werror_flag" ||
17533          test ! -s conftest.err
17534        } && test -s conftest$ac_exeext &&
17535        $as_test_x conftest$ac_exeext; then
17536   gt_cv_func_gnugettext1_libc=yes
17537 else
17538   echo "$as_me: failed program was:" >&5
17539 sed 's/^/| /' conftest.$ac_ext >&5
17540
17541         gt_cv_func_gnugettext1_libc=no
17542 fi
17543
17544 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17545       conftest$ac_exeext conftest.$ac_ext
17546 fi
17547 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
17548 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
17549
17550         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
17551
17552
17553
17554
17555
17556           am_save_CPPFLAGS="$CPPFLAGS"
17557
17558   for element in $INCICONV; do
17559     haveit=
17560     for x in $CPPFLAGS; do
17561
17562   acl_save_prefix="$prefix"
17563   prefix="$acl_final_prefix"
17564   acl_save_exec_prefix="$exec_prefix"
17565   exec_prefix="$acl_final_exec_prefix"
17566   eval x=\"$x\"
17567   exec_prefix="$acl_save_exec_prefix"
17568   prefix="$acl_save_prefix"
17569
17570       if test "X$x" = "X$element"; then
17571         haveit=yes
17572         break
17573       fi
17574     done
17575     if test -z "$haveit"; then
17576       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
17577     fi
17578   done
17579
17580
17581   { echo "$as_me:$LINENO: checking for iconv" >&5
17582 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
17583 if test "${am_cv_func_iconv+set}" = set; then
17584   echo $ECHO_N "(cached) $ECHO_C" >&6
17585 else
17586
17587     am_cv_func_iconv="no, consider installing GNU libiconv"
17588     am_cv_lib_iconv=no
17589     cat >conftest.$ac_ext <<_ACEOF
17590 /* confdefs.h.  */
17591 _ACEOF
17592 cat confdefs.h >>conftest.$ac_ext
17593 cat >>conftest.$ac_ext <<_ACEOF
17594 /* end confdefs.h.  */
17595 #include <stdlib.h>
17596 #include <iconv.h>
17597 int
17598 main ()
17599 {
17600 iconv_t cd = iconv_open("","");
17601        iconv(cd,NULL,NULL,NULL,NULL);
17602        iconv_close(cd);
17603   ;
17604   return 0;
17605 }
17606 _ACEOF
17607 rm -f conftest.$ac_objext conftest$ac_exeext
17608 if { (ac_try="$ac_link"
17609 case "(($ac_try" in
17610   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17611   *) ac_try_echo=$ac_try;;
17612 esac
17613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17614   (eval "$ac_link") 2>conftest.er1
17615   ac_status=$?
17616   grep -v '^ *+' conftest.er1 >conftest.err
17617   rm -f conftest.er1
17618   cat conftest.err >&5
17619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17620   (exit $ac_status); } && {
17621          test -z "$ac_c_werror_flag" ||
17622          test ! -s conftest.err
17623        } && test -s conftest$ac_exeext &&
17624        $as_test_x conftest$ac_exeext; then
17625   am_cv_func_iconv=yes
17626 else
17627   echo "$as_me: failed program was:" >&5
17628 sed 's/^/| /' conftest.$ac_ext >&5
17629
17630
17631 fi
17632
17633 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17634       conftest$ac_exeext conftest.$ac_ext
17635     if test "$am_cv_func_iconv" != yes; then
17636       am_save_LIBS="$LIBS"
17637       LIBS="$LIBS $LIBICONV"
17638       cat >conftest.$ac_ext <<_ACEOF
17639 /* confdefs.h.  */
17640 _ACEOF
17641 cat confdefs.h >>conftest.$ac_ext
17642 cat >>conftest.$ac_ext <<_ACEOF
17643 /* end confdefs.h.  */
17644 #include <stdlib.h>
17645 #include <iconv.h>
17646 int
17647 main ()
17648 {
17649 iconv_t cd = iconv_open("","");
17650          iconv(cd,NULL,NULL,NULL,NULL);
17651          iconv_close(cd);
17652   ;
17653   return 0;
17654 }
17655 _ACEOF
17656 rm -f conftest.$ac_objext conftest$ac_exeext
17657 if { (ac_try="$ac_link"
17658 case "(($ac_try" in
17659   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17660   *) ac_try_echo=$ac_try;;
17661 esac
17662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17663   (eval "$ac_link") 2>conftest.er1
17664   ac_status=$?
17665   grep -v '^ *+' conftest.er1 >conftest.err
17666   rm -f conftest.er1
17667   cat conftest.err >&5
17668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17669   (exit $ac_status); } && {
17670          test -z "$ac_c_werror_flag" ||
17671          test ! -s conftest.err
17672        } && test -s conftest$ac_exeext &&
17673        $as_test_x conftest$ac_exeext; then
17674   am_cv_lib_iconv=yes
17675         am_cv_func_iconv=yes
17676 else
17677   echo "$as_me: failed program was:" >&5
17678 sed 's/^/| /' conftest.$ac_ext >&5
17679
17680
17681 fi
17682
17683 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17684       conftest$ac_exeext conftest.$ac_ext
17685       LIBS="$am_save_LIBS"
17686     fi
17687
17688 fi
17689 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
17690 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
17691   if test "$am_cv_func_iconv" = yes; then
17692
17693 cat >>confdefs.h <<\_ACEOF
17694 #define HAVE_ICONV 1
17695 _ACEOF
17696
17697   fi
17698   if test "$am_cv_lib_iconv" = yes; then
17699     { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
17700 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
17701     { echo "$as_me:$LINENO: result: $LIBICONV" >&5
17702 echo "${ECHO_T}$LIBICONV" >&6; }
17703   else
17704             CPPFLAGS="$am_save_CPPFLAGS"
17705     LIBICONV=
17706     LTLIBICONV=
17707   fi
17708
17709
17710
17711
17712
17713
17714     use_additional=yes
17715
17716   acl_save_prefix="$prefix"
17717   prefix="$acl_final_prefix"
17718   acl_save_exec_prefix="$exec_prefix"
17719   exec_prefix="$acl_final_exec_prefix"
17720
17721     eval additional_includedir=\"$includedir\"
17722     eval additional_libdir=\"$libdir\"
17723
17724   exec_prefix="$acl_save_exec_prefix"
17725   prefix="$acl_save_prefix"
17726
17727
17728 # Check whether --with-libintl-prefix was given.
17729 if test "${with_libintl_prefix+set}" = set; then
17730   withval=$with_libintl_prefix;
17731     if test "X$withval" = "Xno"; then
17732       use_additional=no
17733     else
17734       if test "X$withval" = "X"; then
17735
17736   acl_save_prefix="$prefix"
17737   prefix="$acl_final_prefix"
17738   acl_save_exec_prefix="$exec_prefix"
17739   exec_prefix="$acl_final_exec_prefix"
17740
17741           eval additional_includedir=\"$includedir\"
17742           eval additional_libdir=\"$libdir\"
17743
17744   exec_prefix="$acl_save_exec_prefix"
17745   prefix="$acl_save_prefix"
17746
17747       else
17748         additional_includedir="$withval/include"
17749         additional_libdir="$withval/lib"
17750       fi
17751     fi
17752
17753 fi
17754
17755       LIBINTL=
17756   LTLIBINTL=
17757   INCINTL=
17758   rpathdirs=
17759   ltrpathdirs=
17760   names_already_handled=
17761   names_next_round='intl '
17762   while test -n "$names_next_round"; do
17763     names_this_round="$names_next_round"
17764     names_next_round=
17765     for name in $names_this_round; do
17766       already_handled=
17767       for n in $names_already_handled; do
17768         if test "$n" = "$name"; then
17769           already_handled=yes
17770           break
17771         fi
17772       done
17773       if test -z "$already_handled"; then
17774         names_already_handled="$names_already_handled $name"
17775                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
17776         eval value=\"\$HAVE_LIB$uppername\"
17777         if test -n "$value"; then
17778           if test "$value" = yes; then
17779             eval value=\"\$LIB$uppername\"
17780             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
17781             eval value=\"\$LTLIB$uppername\"
17782             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
17783           else
17784                                     :
17785           fi
17786         else
17787                               found_dir=
17788           found_la=
17789           found_so=
17790           found_a=
17791           if test $use_additional = yes; then
17792             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
17793               found_dir="$additional_libdir"
17794               found_so="$additional_libdir/lib$name.$shlibext"
17795               if test -f "$additional_libdir/lib$name.la"; then
17796                 found_la="$additional_libdir/lib$name.la"
17797               fi
17798             else
17799               if test -f "$additional_libdir/lib$name.$libext"; then
17800                 found_dir="$additional_libdir"
17801                 found_a="$additional_libdir/lib$name.$libext"
17802                 if test -f "$additional_libdir/lib$name.la"; then
17803                   found_la="$additional_libdir/lib$name.la"
17804                 fi
17805               fi
17806             fi
17807           fi
17808           if test "X$found_dir" = "X"; then
17809             for x in $LDFLAGS $LTLIBINTL; do
17810
17811   acl_save_prefix="$prefix"
17812   prefix="$acl_final_prefix"
17813   acl_save_exec_prefix="$exec_prefix"
17814   exec_prefix="$acl_final_exec_prefix"
17815   eval x=\"$x\"
17816   exec_prefix="$acl_save_exec_prefix"
17817   prefix="$acl_save_prefix"
17818
17819               case "$x" in
17820                 -L*)
17821                   dir=`echo "X$x" | sed -e 's/^X-L//'`
17822                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
17823                     found_dir="$dir"
17824                     found_so="$dir/lib$name.$shlibext"
17825                     if test -f "$dir/lib$name.la"; then
17826                       found_la="$dir/lib$name.la"
17827                     fi
17828                   else
17829                     if test -f "$dir/lib$name.$libext"; then
17830                       found_dir="$dir"
17831                       found_a="$dir/lib$name.$libext"
17832                       if test -f "$dir/lib$name.la"; then
17833                         found_la="$dir/lib$name.la"
17834                       fi
17835                     fi
17836                   fi
17837                   ;;
17838               esac
17839               if test "X$found_dir" != "X"; then
17840                 break
17841               fi
17842             done
17843           fi
17844           if test "X$found_dir" != "X"; then
17845                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
17846             if test "X$found_so" != "X"; then
17847                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
17848                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17849               else
17850                                                                                 haveit=
17851                 for x in $ltrpathdirs; do
17852                   if test "X$x" = "X$found_dir"; then
17853                     haveit=yes
17854                     break
17855                   fi
17856                 done
17857                 if test -z "$haveit"; then
17858                   ltrpathdirs="$ltrpathdirs $found_dir"
17859                 fi
17860                                 if test "$hardcode_direct" = yes; then
17861                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17862                 else
17863                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
17864                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17865                                                             haveit=
17866                     for x in $rpathdirs; do
17867                       if test "X$x" = "X$found_dir"; then
17868                         haveit=yes
17869                         break
17870                       fi
17871                     done
17872                     if test -z "$haveit"; then
17873                       rpathdirs="$rpathdirs $found_dir"
17874                     fi
17875                   else
17876                                                                                 haveit=
17877                     for x in $LDFLAGS $LIBINTL; do
17878
17879   acl_save_prefix="$prefix"
17880   prefix="$acl_final_prefix"
17881   acl_save_exec_prefix="$exec_prefix"
17882   exec_prefix="$acl_final_exec_prefix"
17883   eval x=\"$x\"
17884   exec_prefix="$acl_save_exec_prefix"
17885   prefix="$acl_save_prefix"
17886
17887                       if test "X$x" = "X-L$found_dir"; then
17888                         haveit=yes
17889                         break
17890                       fi
17891                     done
17892                     if test -z "$haveit"; then
17893                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
17894                     fi
17895                     if test "$hardcode_minus_L" != no; then
17896                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17897                     else
17898                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
17899                     fi
17900                   fi
17901                 fi
17902               fi
17903             else
17904               if test "X$found_a" != "X"; then
17905                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
17906               else
17907                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
17908               fi
17909             fi
17910                         additional_includedir=
17911             case "$found_dir" in
17912               */lib | */lib/)
17913                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17914                 additional_includedir="$basedir/include"
17915                 ;;
17916             esac
17917             if test "X$additional_includedir" != "X"; then
17918                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
17919                 haveit=
17920                 if test "X$additional_includedir" = "X/usr/local/include"; then
17921                   if test -n "$GCC"; then
17922                     case $host_os in
17923                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17924                     esac
17925                   fi
17926                 fi
17927                 if test -z "$haveit"; then
17928                   for x in $CPPFLAGS $INCINTL; do
17929
17930   acl_save_prefix="$prefix"
17931   prefix="$acl_final_prefix"
17932   acl_save_exec_prefix="$exec_prefix"
17933   exec_prefix="$acl_final_exec_prefix"
17934   eval x=\"$x\"
17935   exec_prefix="$acl_save_exec_prefix"
17936   prefix="$acl_save_prefix"
17937
17938                     if test "X$x" = "X-I$additional_includedir"; then
17939                       haveit=yes
17940                       break
17941                     fi
17942                   done
17943                   if test -z "$haveit"; then
17944                     if test -d "$additional_includedir"; then
17945                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
17946                     fi
17947                   fi
17948                 fi
17949               fi
17950             fi
17951                         if test -n "$found_la"; then
17952                                                         save_libdir="$libdir"
17953               case "$found_la" in
17954                 */* | *\\*) . "$found_la" ;;
17955                 *) . "./$found_la" ;;
17956               esac
17957               libdir="$save_libdir"
17958                             for dep in $dependency_libs; do
17959                 case "$dep" in
17960                   -L*)
17961                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17962                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
17963                       haveit=
17964                       if test "X$additional_libdir" = "X/usr/local/lib"; then
17965                         if test -n "$GCC"; then
17966                           case $host_os in
17967                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17968                           esac
17969                         fi
17970                       fi
17971                       if test -z "$haveit"; then
17972                         haveit=
17973                         for x in $LDFLAGS $LIBINTL; do
17974
17975   acl_save_prefix="$prefix"
17976   prefix="$acl_final_prefix"
17977   acl_save_exec_prefix="$exec_prefix"
17978   exec_prefix="$acl_final_exec_prefix"
17979   eval x=\"$x\"
17980   exec_prefix="$acl_save_exec_prefix"
17981   prefix="$acl_save_prefix"
17982
17983                           if test "X$x" = "X-L$additional_libdir"; then
17984                             haveit=yes
17985                             break
17986                           fi
17987                         done
17988                         if test -z "$haveit"; then
17989                           if test -d "$additional_libdir"; then
17990                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
17991                           fi
17992                         fi
17993                         haveit=
17994                         for x in $LDFLAGS $LTLIBINTL; do
17995
17996   acl_save_prefix="$prefix"
17997   prefix="$acl_final_prefix"
17998   acl_save_exec_prefix="$exec_prefix"
17999   exec_prefix="$acl_final_exec_prefix"
18000   eval x=\"$x\"
18001   exec_prefix="$acl_save_exec_prefix"
18002   prefix="$acl_save_prefix"
18003
18004                           if test "X$x" = "X-L$additional_libdir"; then
18005                             haveit=yes
18006                             break
18007                           fi
18008                         done
18009                         if test -z "$haveit"; then
18010                           if test -d "$additional_libdir"; then
18011                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
18012                           fi
18013                         fi
18014                       fi
18015                     fi
18016                     ;;
18017                   -R*)
18018                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
18019                     if test "$enable_rpath" != no; then
18020                                                                   haveit=
18021                       for x in $rpathdirs; do
18022                         if test "X$x" = "X$dir"; then
18023                           haveit=yes
18024                           break
18025                         fi
18026                       done
18027                       if test -z "$haveit"; then
18028                         rpathdirs="$rpathdirs $dir"
18029                       fi
18030                                                                   haveit=
18031                       for x in $ltrpathdirs; do
18032                         if test "X$x" = "X$dir"; then
18033                           haveit=yes
18034                           break
18035                         fi
18036                       done
18037                       if test -z "$haveit"; then
18038                         ltrpathdirs="$ltrpathdirs $dir"
18039                       fi
18040                     fi
18041                     ;;
18042                   -l*)
18043                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
18044                     ;;
18045                   *.la)
18046                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
18047                     ;;
18048                   *)
18049                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
18050                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
18051                     ;;
18052                 esac
18053               done
18054             fi
18055           else
18056                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
18057             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
18058           fi
18059         fi
18060       fi
18061     done
18062   done
18063   if test "X$rpathdirs" != "X"; then
18064     if test -n "$hardcode_libdir_separator"; then
18065                         alldirs=
18066       for found_dir in $rpathdirs; do
18067         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
18068       done
18069             acl_save_libdir="$libdir"
18070       libdir="$alldirs"
18071       eval flag=\"$hardcode_libdir_flag_spec\"
18072       libdir="$acl_save_libdir"
18073       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
18074     else
18075             for found_dir in $rpathdirs; do
18076         acl_save_libdir="$libdir"
18077         libdir="$found_dir"
18078         eval flag=\"$hardcode_libdir_flag_spec\"
18079         libdir="$acl_save_libdir"
18080         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
18081       done
18082     fi
18083   fi
18084   if test "X$ltrpathdirs" != "X"; then
18085             for found_dir in $ltrpathdirs; do
18086       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
18087     done
18088   fi
18089
18090           { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
18091 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
18092 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
18093   echo $ECHO_N "(cached) $ECHO_C" >&6
18094 else
18095   gt_save_CPPFLAGS="$CPPFLAGS"
18096             CPPFLAGS="$CPPFLAGS $INCINTL"
18097             gt_save_LIBS="$LIBS"
18098             LIBS="$LIBS $LIBINTL"
18099                         cat >conftest.$ac_ext <<_ACEOF
18100 /* confdefs.h.  */
18101 _ACEOF
18102 cat confdefs.h >>conftest.$ac_ext
18103 cat >>conftest.$ac_ext <<_ACEOF
18104 /* end confdefs.h.  */
18105 #include <libintl.h>
18106 extern int _nl_msg_cat_cntr;
18107 extern
18108 #ifdef __cplusplus
18109 "C"
18110 #endif
18111 const char *_nl_expand_alias (const char *);
18112 int
18113 main ()
18114 {
18115 bindtextdomain ("", "");
18116 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
18117   ;
18118   return 0;
18119 }
18120 _ACEOF
18121 rm -f conftest.$ac_objext conftest$ac_exeext
18122 if { (ac_try="$ac_link"
18123 case "(($ac_try" in
18124   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18125   *) ac_try_echo=$ac_try;;
18126 esac
18127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18128   (eval "$ac_link") 2>conftest.er1
18129   ac_status=$?
18130   grep -v '^ *+' conftest.er1 >conftest.err
18131   rm -f conftest.er1
18132   cat conftest.err >&5
18133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18134   (exit $ac_status); } && {
18135          test -z "$ac_c_werror_flag" ||
18136          test ! -s conftest.err
18137        } && test -s conftest$ac_exeext &&
18138        $as_test_x conftest$ac_exeext; then
18139   gt_cv_func_gnugettext1_libintl=yes
18140 else
18141   echo "$as_me: failed program was:" >&5
18142 sed 's/^/| /' conftest.$ac_ext >&5
18143
18144         gt_cv_func_gnugettext1_libintl=no
18145 fi
18146
18147 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18148       conftest$ac_exeext conftest.$ac_ext
18149                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
18150               LIBS="$LIBS $LIBICONV"
18151               cat >conftest.$ac_ext <<_ACEOF
18152 /* confdefs.h.  */
18153 _ACEOF
18154 cat confdefs.h >>conftest.$ac_ext
18155 cat >>conftest.$ac_ext <<_ACEOF
18156 /* end confdefs.h.  */
18157 #include <libintl.h>
18158 extern int _nl_msg_cat_cntr;
18159 extern
18160 #ifdef __cplusplus
18161 "C"
18162 #endif
18163 const char *_nl_expand_alias (const char *);
18164 int
18165 main ()
18166 {
18167 bindtextdomain ("", "");
18168 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
18169   ;
18170   return 0;
18171 }
18172 _ACEOF
18173 rm -f conftest.$ac_objext conftest$ac_exeext
18174 if { (ac_try="$ac_link"
18175 case "(($ac_try" in
18176   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18177   *) ac_try_echo=$ac_try;;
18178 esac
18179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18180   (eval "$ac_link") 2>conftest.er1
18181   ac_status=$?
18182   grep -v '^ *+' conftest.er1 >conftest.err
18183   rm -f conftest.er1
18184   cat conftest.err >&5
18185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18186   (exit $ac_status); } && {
18187          test -z "$ac_c_werror_flag" ||
18188          test ! -s conftest.err
18189        } && test -s conftest$ac_exeext &&
18190        $as_test_x conftest$ac_exeext; then
18191   LIBINTL="$LIBINTL $LIBICONV"
18192                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
18193                 gt_cv_func_gnugettext1_libintl=yes
18194
18195 else
18196   echo "$as_me: failed program was:" >&5
18197 sed 's/^/| /' conftest.$ac_ext >&5
18198
18199
18200 fi
18201
18202 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18203       conftest$ac_exeext conftest.$ac_ext
18204             fi
18205             CPPFLAGS="$gt_save_CPPFLAGS"
18206             LIBS="$gt_save_LIBS"
18207 fi
18208 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
18209 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
18210         fi
18211
18212                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
18213            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
18214                 && test "$PACKAGE" != gettext-runtime \
18215                 && test "$PACKAGE" != gettext-tools; }; then
18216           gt_use_preinstalled_gnugettext=yes
18217         else
18218                     LIBINTL=
18219           LTLIBINTL=
18220           INCINTL=
18221         fi
18222
18223
18224
18225     if test -n "$INTL_MACOSX_LIBS"; then
18226       if test "$gt_use_preinstalled_gnugettext" = "yes" \
18227          || test "$nls_cv_use_gnu_gettext" = "yes"; then
18228                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
18229         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
18230       fi
18231     fi
18232
18233     if test "$gt_use_preinstalled_gnugettext" = "yes" \
18234        || test "$nls_cv_use_gnu_gettext" = "yes"; then
18235
18236 cat >>confdefs.h <<\_ACEOF
18237 #define ENABLE_NLS 1
18238 _ACEOF
18239
18240     else
18241       USE_NLS=no
18242     fi
18243   fi
18244
18245   { echo "$as_me:$LINENO: checking whether to use NLS" >&5
18246 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
18247   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
18248 echo "${ECHO_T}$USE_NLS" >&6; }
18249   if test "$USE_NLS" = "yes"; then
18250     { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
18251 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
18252     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
18253       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
18254         gt_source="external libintl"
18255       else
18256         gt_source="libc"
18257       fi
18258     else
18259       gt_source="included intl directory"
18260     fi
18261     { echo "$as_me:$LINENO: result: $gt_source" >&5
18262 echo "${ECHO_T}$gt_source" >&6; }
18263   fi
18264
18265   if test "$USE_NLS" = "yes"; then
18266
18267     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
18268       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
18269         { echo "$as_me:$LINENO: checking how to link with libintl" >&5
18270 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
18271         { echo "$as_me:$LINENO: result: $LIBINTL" >&5
18272 echo "${ECHO_T}$LIBINTL" >&6; }
18273
18274   for element in $INCINTL; do
18275     haveit=
18276     for x in $CPPFLAGS; do
18277
18278   acl_save_prefix="$prefix"
18279   prefix="$acl_final_prefix"
18280   acl_save_exec_prefix="$exec_prefix"
18281   exec_prefix="$acl_final_exec_prefix"
18282   eval x=\"$x\"
18283   exec_prefix="$acl_save_exec_prefix"
18284   prefix="$acl_save_prefix"
18285
18286       if test "X$x" = "X$element"; then
18287         haveit=yes
18288         break
18289       fi
18290     done
18291     if test -z "$haveit"; then
18292       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
18293     fi
18294   done
18295
18296       fi
18297
18298
18299 cat >>confdefs.h <<\_ACEOF
18300 #define HAVE_GETTEXT 1
18301 _ACEOF
18302
18303
18304 cat >>confdefs.h <<\_ACEOF
18305 #define HAVE_DCGETTEXT 1
18306 _ACEOF
18307
18308     fi
18309
18310         POSUB=po
18311   fi
18312
18313
18314
18315     INTLLIBS="$LIBINTL"
18316
18317
18318
18319
18320
18321
18322
18323 if test x${prefix} = xNONE ; then
18324    if test `eval echo ${sysconfdir}` = NONE/etc ; then
18325       sysconfdir=/etc/bacula
18326    fi
18327
18328    if test `eval echo ${libdir}` = NONE/lib ; then
18329       libdir=/usr/lib
18330    fi
18331
18332    if test `eval echo ${includedir}` = NONE/include ; then
18333       includedir=/usr/include
18334    fi
18335
18336    if test `eval echo ${datarootdir}` = NONE/share ; then
18337       datarootdir=/usr/share
18338    fi
18339    prefix=
18340 fi
18341
18342 if test x${exec_prefix} = xNONE ; then
18343    exec_prefix=${prefix}
18344 fi
18345
18346 sysconfdir=`eval echo ${sysconfdir}`
18347 datarootdir=`eval echo ${datarootdir}`
18348 docdir=`eval echo ${docdir}`
18349 htmldir=`eval echo ${htmldir}`
18350 libdir=`eval echo ${libdir}`
18351 includedir=`eval echo ${includedir}`
18352 localedir=`eval echo ${datarootdir}/locale`
18353 cat >>confdefs.h <<_ACEOF
18354 #define SYSCONFDIR "$sysconfdir"
18355 _ACEOF
18356
18357 cat >>confdefs.h <<_ACEOF
18358 #define LOCALEDIR "$localedir"
18359 _ACEOF
18360
18361
18362 if test x$sbindir = x'${exec_prefix}/sbin' ; then
18363    sbindir=${exec_prefix}/sbin
18364 fi
18365 sbindir=`eval echo ${sbindir}`
18366
18367 if test x$mandir = x'${prefix}/man' ; then
18368    mandir=/usr/share/man
18369 fi
18370
18371 if test x$htmldir = x${docdir} ; then
18372    htmldir=`eval echo ${docdir}bacula/html`
18373 fi
18374
18375 if test x$docdir = x'/usr/share/doc/' ; then
18376    docdir=`eval echo ${docdir}bacula`
18377 fi
18378
18379
18380 for ac_prog in msgfmt
18381 do
18382   # Extract the first word of "$ac_prog", so it can be a program name with args.
18383 set dummy $ac_prog; ac_word=$2
18384 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18385 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18386 if test "${ac_cv_path_MSGFMT+set}" = set; then
18387   echo $ECHO_N "(cached) $ECHO_C" >&6
18388 else
18389   case $MSGFMT in
18390   [\\/]* | ?:[\\/]*)
18391   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
18392   ;;
18393   *)
18394   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18395 for as_dir in $PATH
18396 do
18397   IFS=$as_save_IFS
18398   test -z "$as_dir" && as_dir=.
18399   for ac_exec_ext in '' $ac_executable_extensions; do
18400   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18401     ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
18402     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18403     break 2
18404   fi
18405 done
18406 done
18407 IFS=$as_save_IFS
18408
18409   ;;
18410 esac
18411 fi
18412 MSGFMT=$ac_cv_path_MSGFMT
18413 if test -n "$MSGFMT"; then
18414   { echo "$as_me:$LINENO: result: $MSGFMT" >&5
18415 echo "${ECHO_T}$MSGFMT" >&6; }
18416 else
18417   { echo "$as_me:$LINENO: result: no" >&5
18418 echo "${ECHO_T}no" >&6; }
18419 fi
18420
18421
18422   test -n "$MSGFMT" && break
18423 done
18424 test -n "$MSGFMT" || MSGFMT="no"
18425
18426 if test "$MSGFMT" = "no"
18427 then
18428    echo 'msgfmt program not found, disabling NLS !'
18429    USE_NLS=no
18430    USE_INCLUDED_LIBINTL=no
18431 #else
18432
18433     { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2 or newer" >&5
18434 echo $ECHO_N "checking whether we are using the GNU C Library 2 or newer... $ECHO_C" >&6; }
18435 if test "${ac_cv_gnu_library_2+set}" = set; then
18436   echo $ECHO_N "(cached) $ECHO_C" >&6
18437 else
18438   cat >conftest.$ac_ext <<_ACEOF
18439 /* confdefs.h.  */
18440 _ACEOF
18441 cat confdefs.h >>conftest.$ac_ext
18442 cat >>conftest.$ac_ext <<_ACEOF
18443 /* end confdefs.h.  */
18444
18445 #include <features.h>
18446 #ifdef __GNU_LIBRARY__
18447  #if (__GLIBC__ >= 2)
18448   Lucky GNU user
18449  #endif
18450 #endif
18451
18452 _ACEOF
18453 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18454   $EGREP "Lucky GNU user" >/dev/null 2>&1; then
18455   ac_cv_gnu_library_2=yes
18456 else
18457   ac_cv_gnu_library_2=no
18458 fi
18459 rm -f conftest*
18460
18461
18462
18463 fi
18464 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2" >&5
18465 echo "${ECHO_T}$ac_cv_gnu_library_2" >&6; }
18466
18467     GLIBC2="$ac_cv_gnu_library_2"
18468
18469
18470 if test -n "$ac_tool_prefix"; then
18471   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
18472 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
18473 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18474 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18475 if test "${ac_cv_prog_RANLIB+set}" = set; then
18476   echo $ECHO_N "(cached) $ECHO_C" >&6
18477 else
18478   if test -n "$RANLIB"; then
18479   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
18480 else
18481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18482 for as_dir in $PATH
18483 do
18484   IFS=$as_save_IFS
18485   test -z "$as_dir" && as_dir=.
18486   for ac_exec_ext in '' $ac_executable_extensions; do
18487   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18488     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
18489     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18490     break 2
18491   fi
18492 done
18493 done
18494 IFS=$as_save_IFS
18495
18496 fi
18497 fi
18498 RANLIB=$ac_cv_prog_RANLIB
18499 if test -n "$RANLIB"; then
18500   { echo "$as_me:$LINENO: result: $RANLIB" >&5
18501 echo "${ECHO_T}$RANLIB" >&6; }
18502 else
18503   { echo "$as_me:$LINENO: result: no" >&5
18504 echo "${ECHO_T}no" >&6; }
18505 fi
18506
18507
18508 fi
18509 if test -z "$ac_cv_prog_RANLIB"; then
18510   ac_ct_RANLIB=$RANLIB
18511   # Extract the first word of "ranlib", so it can be a program name with args.
18512 set dummy ranlib; ac_word=$2
18513 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18514 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18515 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
18516   echo $ECHO_N "(cached) $ECHO_C" >&6
18517 else
18518   if test -n "$ac_ct_RANLIB"; then
18519   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
18520 else
18521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18522 for as_dir in $PATH
18523 do
18524   IFS=$as_save_IFS
18525   test -z "$as_dir" && as_dir=.
18526   for ac_exec_ext in '' $ac_executable_extensions; do
18527   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18528     ac_cv_prog_ac_ct_RANLIB="ranlib"
18529     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18530     break 2
18531   fi
18532 done
18533 done
18534 IFS=$as_save_IFS
18535
18536 fi
18537 fi
18538 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
18539 if test -n "$ac_ct_RANLIB"; then
18540   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
18541 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
18542 else
18543   { echo "$as_me:$LINENO: result: no" >&5
18544 echo "${ECHO_T}no" >&6; }
18545 fi
18546
18547   if test "x$ac_ct_RANLIB" = x; then
18548     RANLIB=":"
18549   else
18550     case $cross_compiling:$ac_tool_warned in
18551 yes:)
18552 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
18553 whose name does not start with the host triplet.  If you think this
18554 configuration is useful to you, please write to autoconf@gnu.org." >&5
18555 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
18556 whose name does not start with the host triplet.  If you think this
18557 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
18558 ac_tool_warned=yes ;;
18559 esac
18560     RANLIB=$ac_ct_RANLIB
18561   fi
18562 else
18563   RANLIB="$ac_cv_prog_RANLIB"
18564 fi
18565
18566
18567         { echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
18568 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6; }
18569 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
18570   echo $ECHO_N "(cached) $ECHO_C" >&6
18571 else
18572   ac_check_lib_save_LIBS=$LIBS
18573 LIBS="-lcposix  $LIBS"
18574 cat >conftest.$ac_ext <<_ACEOF
18575 /* confdefs.h.  */
18576 _ACEOF
18577 cat confdefs.h >>conftest.$ac_ext
18578 cat >>conftest.$ac_ext <<_ACEOF
18579 /* end confdefs.h.  */
18580
18581 /* Override any GCC internal prototype to avoid an error.
18582    Use char because int might match the return type of a GCC
18583    builtin and then its argument prototype would still apply.  */
18584 #ifdef __cplusplus
18585 extern "C"
18586 #endif
18587 char strerror ();
18588 int
18589 main ()
18590 {
18591 return strerror ();
18592   ;
18593   return 0;
18594 }
18595 _ACEOF
18596 rm -f conftest.$ac_objext conftest$ac_exeext
18597 if { (ac_try="$ac_link"
18598 case "(($ac_try" in
18599   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18600   *) ac_try_echo=$ac_try;;
18601 esac
18602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18603   (eval "$ac_link") 2>conftest.er1
18604   ac_status=$?
18605   grep -v '^ *+' conftest.er1 >conftest.err
18606   rm -f conftest.er1
18607   cat conftest.err >&5
18608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18609   (exit $ac_status); } && {
18610          test -z "$ac_c_werror_flag" ||
18611          test ! -s conftest.err
18612        } && test -s conftest$ac_exeext &&
18613        $as_test_x conftest$ac_exeext; then
18614   ac_cv_lib_cposix_strerror=yes
18615 else
18616   echo "$as_me: failed program was:" >&5
18617 sed 's/^/| /' conftest.$ac_ext >&5
18618
18619         ac_cv_lib_cposix_strerror=no
18620 fi
18621
18622 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18623       conftest$ac_exeext conftest.$ac_ext
18624 LIBS=$ac_check_lib_save_LIBS
18625 fi
18626 { echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
18627 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6; }
18628 if test $ac_cv_lib_cposix_strerror = yes; then
18629   LIBS="$LIBS -lcposix"
18630 fi
18631
18632
18633
18634 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
18635 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
18636 if test "${ac_cv_c_const+set}" = set; then
18637   echo $ECHO_N "(cached) $ECHO_C" >&6
18638 else
18639   cat >conftest.$ac_ext <<_ACEOF
18640 /* confdefs.h.  */
18641 _ACEOF
18642 cat confdefs.h >>conftest.$ac_ext
18643 cat >>conftest.$ac_ext <<_ACEOF
18644 /* end confdefs.h.  */
18645
18646 int
18647 main ()
18648 {
18649 /* FIXME: Include the comments suggested by Paul. */
18650 #ifndef __cplusplus
18651   /* Ultrix mips cc rejects this.  */
18652   typedef int charset[2];
18653   const charset cs;
18654   /* SunOS 4.1.1 cc rejects this.  */
18655   char const *const *pcpcc;
18656   char **ppc;
18657   /* NEC SVR4.0.2 mips cc rejects this.  */
18658   struct point {int x, y;};
18659   static struct point const zero = {0,0};
18660   /* AIX XL C 1.02.0.0 rejects this.
18661      It does not let you subtract one const X* pointer from another in
18662      an arm of an if-expression whose if-part is not a constant
18663      expression */
18664   const char *g = "string";
18665   pcpcc = &g + (g ? g-g : 0);
18666   /* HPUX 7.0 cc rejects these. */
18667   ++pcpcc;
18668   ppc = (char**) pcpcc;
18669   pcpcc = (char const *const *) ppc;
18670   { /* SCO 3.2v4 cc rejects this.  */
18671     char *t;
18672     char const *s = 0 ? (char *) 0 : (char const *) 0;
18673
18674     *t++ = 0;
18675     if (s) return 0;
18676   }
18677   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
18678     int x[] = {25, 17};
18679     const int *foo = &x[0];
18680     ++foo;
18681   }
18682   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
18683     typedef const int *iptr;
18684     iptr p = 0;
18685     ++p;
18686   }
18687   { /* AIX XL C 1.02.0.0 rejects this saying
18688        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
18689     struct s { int j; const int *ap[3]; };
18690     struct s *b; b->j = 5;
18691   }
18692   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
18693     const int foo = 10;
18694     if (!foo) return 0;
18695   }
18696   return !cs[0] && !zero.x;
18697 #endif
18698
18699   ;
18700   return 0;
18701 }
18702 _ACEOF
18703 rm -f conftest.$ac_objext
18704 if { (ac_try="$ac_compile"
18705 case "(($ac_try" in
18706   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18707   *) ac_try_echo=$ac_try;;
18708 esac
18709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18710   (eval "$ac_compile") 2>conftest.er1
18711   ac_status=$?
18712   grep -v '^ *+' conftest.er1 >conftest.err
18713   rm -f conftest.er1
18714   cat conftest.err >&5
18715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18716   (exit $ac_status); } && {
18717          test -z "$ac_c_werror_flag" ||
18718          test ! -s conftest.err
18719        } && test -s conftest.$ac_objext; then
18720   ac_cv_c_const=yes
18721 else
18722   echo "$as_me: failed program was:" >&5
18723 sed 's/^/| /' conftest.$ac_ext >&5
18724
18725         ac_cv_c_const=no
18726 fi
18727
18728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18729 fi
18730 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
18731 echo "${ECHO_T}$ac_cv_c_const" >&6; }
18732 if test $ac_cv_c_const = no; then
18733
18734 cat >>confdefs.h <<\_ACEOF
18735 #define const
18736 _ACEOF
18737
18738 fi
18739
18740
18741   { echo "$as_me:$LINENO: checking for signed" >&5
18742 echo $ECHO_N "checking for signed... $ECHO_C" >&6; }
18743 if test "${bh_cv_c_signed+set}" = set; then
18744   echo $ECHO_N "(cached) $ECHO_C" >&6
18745 else
18746   cat >conftest.$ac_ext <<_ACEOF
18747 /* confdefs.h.  */
18748 _ACEOF
18749 cat confdefs.h >>conftest.$ac_ext
18750 cat >>conftest.$ac_ext <<_ACEOF
18751 /* end confdefs.h.  */
18752
18753 int
18754 main ()
18755 {
18756 signed char x;
18757   ;
18758   return 0;
18759 }
18760 _ACEOF
18761 rm -f conftest.$ac_objext
18762 if { (ac_try="$ac_compile"
18763 case "(($ac_try" in
18764   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18765   *) ac_try_echo=$ac_try;;
18766 esac
18767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18768   (eval "$ac_compile") 2>conftest.er1
18769   ac_status=$?
18770   grep -v '^ *+' conftest.er1 >conftest.err
18771   rm -f conftest.er1
18772   cat conftest.err >&5
18773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18774   (exit $ac_status); } && {
18775          test -z "$ac_c_werror_flag" ||
18776          test ! -s conftest.err
18777        } && test -s conftest.$ac_objext; then
18778   bh_cv_c_signed=yes
18779 else
18780   echo "$as_me: failed program was:" >&5
18781 sed 's/^/| /' conftest.$ac_ext >&5
18782
18783         bh_cv_c_signed=no
18784 fi
18785
18786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18787 fi
18788 { echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
18789 echo "${ECHO_T}$bh_cv_c_signed" >&6; }
18790   if test $bh_cv_c_signed = no; then
18791
18792 cat >>confdefs.h <<\_ACEOF
18793 #define signed
18794 _ACEOF
18795
18796   fi
18797
18798 { echo "$as_me:$LINENO: checking for inline" >&5
18799 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
18800 if test "${ac_cv_c_inline+set}" = set; then
18801   echo $ECHO_N "(cached) $ECHO_C" >&6
18802 else
18803   ac_cv_c_inline=no
18804 for ac_kw in inline __inline__ __inline; do
18805   cat >conftest.$ac_ext <<_ACEOF
18806 /* confdefs.h.  */
18807 _ACEOF
18808 cat confdefs.h >>conftest.$ac_ext
18809 cat >>conftest.$ac_ext <<_ACEOF
18810 /* end confdefs.h.  */
18811 #ifndef __cplusplus
18812 typedef int foo_t;
18813 static $ac_kw foo_t static_foo () {return 0; }
18814 $ac_kw foo_t foo () {return 0; }
18815 #endif
18816
18817 _ACEOF
18818 rm -f conftest.$ac_objext
18819 if { (ac_try="$ac_compile"
18820 case "(($ac_try" in
18821   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18822   *) ac_try_echo=$ac_try;;
18823 esac
18824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18825   (eval "$ac_compile") 2>conftest.er1
18826   ac_status=$?
18827   grep -v '^ *+' conftest.er1 >conftest.err
18828   rm -f conftest.er1
18829   cat conftest.err >&5
18830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18831   (exit $ac_status); } && {
18832          test -z "$ac_c_werror_flag" ||
18833          test ! -s conftest.err
18834        } && test -s conftest.$ac_objext; then
18835   ac_cv_c_inline=$ac_kw
18836 else
18837   echo "$as_me: failed program was:" >&5
18838 sed 's/^/| /' conftest.$ac_ext >&5
18839
18840
18841 fi
18842
18843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18844   test "$ac_cv_c_inline" != no && break
18845 done
18846
18847 fi
18848 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
18849 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
18850
18851
18852 case $ac_cv_c_inline in
18853   inline | yes) ;;
18854   *)
18855     case $ac_cv_c_inline in
18856       no) ac_val=;;
18857       *) ac_val=$ac_cv_c_inline;;
18858     esac
18859     cat >>confdefs.h <<_ACEOF
18860 #ifndef __cplusplus
18861 #define inline $ac_val
18862 #endif
18863 _ACEOF
18864     ;;
18865 esac
18866
18867 { echo "$as_me:$LINENO: checking for off_t" >&5
18868 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
18869 if test "${ac_cv_type_off_t+set}" = set; then
18870   echo $ECHO_N "(cached) $ECHO_C" >&6
18871 else
18872   cat >conftest.$ac_ext <<_ACEOF
18873 /* confdefs.h.  */
18874 _ACEOF
18875 cat confdefs.h >>conftest.$ac_ext
18876 cat >>conftest.$ac_ext <<_ACEOF
18877 /* end confdefs.h.  */
18878 $ac_includes_default
18879 typedef off_t ac__type_new_;
18880 int
18881 main ()
18882 {
18883 if ((ac__type_new_ *) 0)
18884   return 0;
18885 if (sizeof (ac__type_new_))
18886   return 0;
18887   ;
18888   return 0;
18889 }
18890 _ACEOF
18891 rm -f conftest.$ac_objext
18892 if { (ac_try="$ac_compile"
18893 case "(($ac_try" in
18894   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18895   *) ac_try_echo=$ac_try;;
18896 esac
18897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18898   (eval "$ac_compile") 2>conftest.er1
18899   ac_status=$?
18900   grep -v '^ *+' conftest.er1 >conftest.err
18901   rm -f conftest.er1
18902   cat conftest.err >&5
18903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18904   (exit $ac_status); } && {
18905          test -z "$ac_c_werror_flag" ||
18906          test ! -s conftest.err
18907        } && test -s conftest.$ac_objext; then
18908   ac_cv_type_off_t=yes
18909 else
18910   echo "$as_me: failed program was:" >&5
18911 sed 's/^/| /' conftest.$ac_ext >&5
18912
18913         ac_cv_type_off_t=no
18914 fi
18915
18916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18917 fi
18918 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
18919 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
18920 if test $ac_cv_type_off_t = yes; then
18921   :
18922 else
18923
18924 cat >>confdefs.h <<_ACEOF
18925 #define off_t long int
18926 _ACEOF
18927
18928 fi
18929
18930 { echo "$as_me:$LINENO: checking for size_t" >&5
18931 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
18932 if test "${ac_cv_type_size_t+set}" = set; then
18933   echo $ECHO_N "(cached) $ECHO_C" >&6
18934 else
18935   cat >conftest.$ac_ext <<_ACEOF
18936 /* confdefs.h.  */
18937 _ACEOF
18938 cat confdefs.h >>conftest.$ac_ext
18939 cat >>conftest.$ac_ext <<_ACEOF
18940 /* end confdefs.h.  */
18941 $ac_includes_default
18942 typedef size_t ac__type_new_;
18943 int
18944 main ()
18945 {
18946 if ((ac__type_new_ *) 0)
18947   return 0;
18948 if (sizeof (ac__type_new_))
18949   return 0;
18950   ;
18951   return 0;
18952 }
18953 _ACEOF
18954 rm -f conftest.$ac_objext
18955 if { (ac_try="$ac_compile"
18956 case "(($ac_try" in
18957   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18958   *) ac_try_echo=$ac_try;;
18959 esac
18960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18961   (eval "$ac_compile") 2>conftest.er1
18962   ac_status=$?
18963   grep -v '^ *+' conftest.er1 >conftest.err
18964   rm -f conftest.er1
18965   cat conftest.err >&5
18966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18967   (exit $ac_status); } && {
18968          test -z "$ac_c_werror_flag" ||
18969          test ! -s conftest.err
18970        } && test -s conftest.$ac_objext; then
18971   ac_cv_type_size_t=yes
18972 else
18973   echo "$as_me: failed program was:" >&5
18974 sed 's/^/| /' conftest.$ac_ext >&5
18975
18976         ac_cv_type_size_t=no
18977 fi
18978
18979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18980 fi
18981 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
18982 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
18983 if test $ac_cv_type_size_t = yes; then
18984   :
18985 else
18986
18987 cat >>confdefs.h <<_ACEOF
18988 #define size_t unsigned int
18989 _ACEOF
18990
18991 fi
18992
18993
18994   { echo "$as_me:$LINENO: checking for long long" >&5
18995 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
18996 if test "${ac_cv_type_long_long+set}" = set; then
18997   echo $ECHO_N "(cached) $ECHO_C" >&6
18998 else
18999   cat >conftest.$ac_ext <<_ACEOF
19000 /* confdefs.h.  */
19001 _ACEOF
19002 cat confdefs.h >>conftest.$ac_ext
19003 cat >>conftest.$ac_ext <<_ACEOF
19004 /* end confdefs.h.  */
19005 long long ll = 1LL; int i = 63;
19006 int
19007 main ()
19008 {
19009 long long llmax = (long long) -1;
19010      return ll << i | ll >> i | llmax / ll | llmax % ll;
19011   ;
19012   return 0;
19013 }
19014 _ACEOF
19015 rm -f conftest.$ac_objext conftest$ac_exeext
19016 if { (ac_try="$ac_link"
19017 case "(($ac_try" in
19018   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19019   *) ac_try_echo=$ac_try;;
19020 esac
19021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19022   (eval "$ac_link") 2>conftest.er1
19023   ac_status=$?
19024   grep -v '^ *+' conftest.er1 >conftest.err
19025   rm -f conftest.er1
19026   cat conftest.err >&5
19027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19028   (exit $ac_status); } && {
19029          test -z "$ac_c_werror_flag" ||
19030          test ! -s conftest.err
19031        } && test -s conftest$ac_exeext &&
19032        $as_test_x conftest$ac_exeext; then
19033   ac_cv_type_long_long=yes
19034 else
19035   echo "$as_me: failed program was:" >&5
19036 sed 's/^/| /' conftest.$ac_ext >&5
19037
19038         ac_cv_type_long_long=no
19039 fi
19040
19041 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19042       conftest$ac_exeext conftest.$ac_ext
19043 fi
19044 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
19045 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
19046   if test $ac_cv_type_long_long = yes; then
19047
19048 cat >>confdefs.h <<\_ACEOF
19049 #define HAVE_LONG_LONG 1
19050 _ACEOF
19051
19052   fi
19053
19054
19055   { echo "$as_me:$LINENO: checking for long double" >&5
19056 echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
19057 if test "${gt_cv_c_long_double+set}" = set; then
19058   echo $ECHO_N "(cached) $ECHO_C" >&6
19059 else
19060   if test "$GCC" = yes; then
19061        gt_cv_c_long_double=yes
19062      else
19063        cat >conftest.$ac_ext <<_ACEOF
19064 /* confdefs.h.  */
19065 _ACEOF
19066 cat confdefs.h >>conftest.$ac_ext
19067 cat >>conftest.$ac_ext <<_ACEOF
19068 /* end confdefs.h.  */
19069
19070          /* The Stardent Vistra knows sizeof(long double), but does not support it.  */
19071          long double foo = 0.0;
19072          /* On Ultrix 4.3 cc, long double is 4 and double is 8.  */
19073          int array [2*(sizeof(long double) >= sizeof(double)) - 1];
19074
19075 int
19076 main ()
19077 {
19078
19079   ;
19080   return 0;
19081 }
19082 _ACEOF
19083 rm -f conftest.$ac_objext
19084 if { (ac_try="$ac_compile"
19085 case "(($ac_try" in
19086   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19087   *) ac_try_echo=$ac_try;;
19088 esac
19089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19090   (eval "$ac_compile") 2>conftest.er1
19091   ac_status=$?
19092   grep -v '^ *+' conftest.er1 >conftest.err
19093   rm -f conftest.er1
19094   cat conftest.err >&5
19095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19096   (exit $ac_status); } && {
19097          test -z "$ac_c_werror_flag" ||
19098          test ! -s conftest.err
19099        } && test -s conftest.$ac_objext; then
19100   gt_cv_c_long_double=yes
19101 else
19102   echo "$as_me: failed program was:" >&5
19103 sed 's/^/| /' conftest.$ac_ext >&5
19104
19105         gt_cv_c_long_double=no
19106 fi
19107
19108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19109      fi
19110 fi
19111 { echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
19112 echo "${ECHO_T}$gt_cv_c_long_double" >&6; }
19113   if test $gt_cv_c_long_double = yes; then
19114
19115 cat >>confdefs.h <<\_ACEOF
19116 #define HAVE_LONG_DOUBLE 1
19117 _ACEOF
19118
19119   fi
19120
19121
19122   { echo "$as_me:$LINENO: checking for wchar_t" >&5
19123 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
19124 if test "${gt_cv_c_wchar_t+set}" = set; then
19125   echo $ECHO_N "(cached) $ECHO_C" >&6
19126 else
19127   cat >conftest.$ac_ext <<_ACEOF
19128 /* confdefs.h.  */
19129 _ACEOF
19130 cat confdefs.h >>conftest.$ac_ext
19131 cat >>conftest.$ac_ext <<_ACEOF
19132 /* end confdefs.h.  */
19133 #include <stddef.h>
19134        wchar_t foo = (wchar_t)'\0';
19135 int
19136 main ()
19137 {
19138
19139   ;
19140   return 0;
19141 }
19142 _ACEOF
19143 rm -f conftest.$ac_objext
19144 if { (ac_try="$ac_compile"
19145 case "(($ac_try" in
19146   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19147   *) ac_try_echo=$ac_try;;
19148 esac
19149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19150   (eval "$ac_compile") 2>conftest.er1
19151   ac_status=$?
19152   grep -v '^ *+' conftest.er1 >conftest.err
19153   rm -f conftest.er1
19154   cat conftest.err >&5
19155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19156   (exit $ac_status); } && {
19157          test -z "$ac_c_werror_flag" ||
19158          test ! -s conftest.err
19159        } && test -s conftest.$ac_objext; then
19160   gt_cv_c_wchar_t=yes
19161 else
19162   echo "$as_me: failed program was:" >&5
19163 sed 's/^/| /' conftest.$ac_ext >&5
19164
19165         gt_cv_c_wchar_t=no
19166 fi
19167
19168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19169 fi
19170 { echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
19171 echo "${ECHO_T}$gt_cv_c_wchar_t" >&6; }
19172   if test $gt_cv_c_wchar_t = yes; then
19173
19174 cat >>confdefs.h <<\_ACEOF
19175 #define HAVE_WCHAR_T 1
19176 _ACEOF
19177
19178   fi
19179
19180
19181   { echo "$as_me:$LINENO: checking for wint_t" >&5
19182 echo $ECHO_N "checking for wint_t... $ECHO_C" >&6; }
19183 if test "${gt_cv_c_wint_t+set}" = set; then
19184   echo $ECHO_N "(cached) $ECHO_C" >&6
19185 else
19186   cat >conftest.$ac_ext <<_ACEOF
19187 /* confdefs.h.  */
19188 _ACEOF
19189 cat confdefs.h >>conftest.$ac_ext
19190 cat >>conftest.$ac_ext <<_ACEOF
19191 /* end confdefs.h.  */
19192 #include <wchar.h>
19193        wint_t foo = (wchar_t)'\0';
19194 int
19195 main ()
19196 {
19197
19198   ;
19199   return 0;
19200 }
19201 _ACEOF
19202 rm -f conftest.$ac_objext
19203 if { (ac_try="$ac_compile"
19204 case "(($ac_try" in
19205   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19206   *) ac_try_echo=$ac_try;;
19207 esac
19208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19209   (eval "$ac_compile") 2>conftest.er1
19210   ac_status=$?
19211   grep -v '^ *+' conftest.er1 >conftest.err
19212   rm -f conftest.er1
19213   cat conftest.err >&5
19214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19215   (exit $ac_status); } && {
19216          test -z "$ac_c_werror_flag" ||
19217          test ! -s conftest.err
19218        } && test -s conftest.$ac_objext; then
19219   gt_cv_c_wint_t=yes
19220 else
19221   echo "$as_me: failed program was:" >&5
19222 sed 's/^/| /' conftest.$ac_ext >&5
19223
19224         gt_cv_c_wint_t=no
19225 fi
19226
19227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19228 fi
19229 { echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
19230 echo "${ECHO_T}$gt_cv_c_wint_t" >&6; }
19231   if test $gt_cv_c_wint_t = yes; then
19232
19233 cat >>confdefs.h <<\_ACEOF
19234 #define HAVE_WINT_T 1
19235 _ACEOF
19236
19237   fi
19238
19239
19240   { echo "$as_me:$LINENO: checking for inttypes.h" >&5
19241 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
19242 if test "${gl_cv_header_inttypes_h+set}" = set; then
19243   echo $ECHO_N "(cached) $ECHO_C" >&6
19244 else
19245   cat >conftest.$ac_ext <<_ACEOF
19246 /* confdefs.h.  */
19247 _ACEOF
19248 cat confdefs.h >>conftest.$ac_ext
19249 cat >>conftest.$ac_ext <<_ACEOF
19250 /* end confdefs.h.  */
19251 #include <sys/types.h>
19252 #include <inttypes.h>
19253 int
19254 main ()
19255 {
19256 uintmax_t i = (uintmax_t) -1;
19257   ;
19258   return 0;
19259 }
19260 _ACEOF
19261 rm -f conftest.$ac_objext
19262 if { (ac_try="$ac_compile"
19263 case "(($ac_try" in
19264   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19265   *) ac_try_echo=$ac_try;;
19266 esac
19267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19268   (eval "$ac_compile") 2>conftest.er1
19269   ac_status=$?
19270   grep -v '^ *+' conftest.er1 >conftest.err
19271   rm -f conftest.er1
19272   cat conftest.err >&5
19273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19274   (exit $ac_status); } && {
19275          test -z "$ac_c_werror_flag" ||
19276          test ! -s conftest.err
19277        } && test -s conftest.$ac_objext; then
19278   gl_cv_header_inttypes_h=yes
19279 else
19280   echo "$as_me: failed program was:" >&5
19281 sed 's/^/| /' conftest.$ac_ext >&5
19282
19283         gl_cv_header_inttypes_h=no
19284 fi
19285
19286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19287 fi
19288 { echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5
19289 echo "${ECHO_T}$gl_cv_header_inttypes_h" >&6; }
19290   if test $gl_cv_header_inttypes_h = yes; then
19291
19292 cat >>confdefs.h <<_ACEOF
19293 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
19294 _ACEOF
19295
19296   fi
19297
19298
19299   { echo "$as_me:$LINENO: checking for stdint.h" >&5
19300 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
19301 if test "${gl_cv_header_stdint_h+set}" = set; then
19302   echo $ECHO_N "(cached) $ECHO_C" >&6
19303 else
19304   cat >conftest.$ac_ext <<_ACEOF
19305 /* confdefs.h.  */
19306 _ACEOF
19307 cat confdefs.h >>conftest.$ac_ext
19308 cat >>conftest.$ac_ext <<_ACEOF
19309 /* end confdefs.h.  */
19310 #include <sys/types.h>
19311 #include <stdint.h>
19312 int
19313 main ()
19314 {
19315 uintmax_t i = (uintmax_t) -1;
19316   ;
19317   return 0;
19318 }
19319 _ACEOF
19320 rm -f conftest.$ac_objext
19321 if { (ac_try="$ac_compile"
19322 case "(($ac_try" in
19323   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19324   *) ac_try_echo=$ac_try;;
19325 esac
19326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19327   (eval "$ac_compile") 2>conftest.er1
19328   ac_status=$?
19329   grep -v '^ *+' conftest.er1 >conftest.err
19330   rm -f conftest.er1
19331   cat conftest.err >&5
19332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19333   (exit $ac_status); } && {
19334          test -z "$ac_c_werror_flag" ||
19335          test ! -s conftest.err
19336        } && test -s conftest.$ac_objext; then
19337   gl_cv_header_stdint_h=yes
19338 else
19339   echo "$as_me: failed program was:" >&5
19340 sed 's/^/| /' conftest.$ac_ext >&5
19341
19342         gl_cv_header_stdint_h=no
19343 fi
19344
19345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19346 fi
19347 { echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
19348 echo "${ECHO_T}$gl_cv_header_stdint_h" >&6; }
19349   if test $gl_cv_header_stdint_h = yes; then
19350
19351 cat >>confdefs.h <<_ACEOF
19352 #define HAVE_STDINT_H_WITH_UINTMAX 1
19353 _ACEOF
19354
19355   fi
19356
19357
19358
19359
19360   { echo "$as_me:$LINENO: checking for intmax_t" >&5
19361 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; }
19362 if test "${gt_cv_c_intmax_t+set}" = set; then
19363   echo $ECHO_N "(cached) $ECHO_C" >&6
19364 else
19365   cat >conftest.$ac_ext <<_ACEOF
19366 /* confdefs.h.  */
19367 _ACEOF
19368 cat confdefs.h >>conftest.$ac_ext
19369 cat >>conftest.$ac_ext <<_ACEOF
19370 /* end confdefs.h.  */
19371
19372 #include <stddef.h>
19373 #include <stdlib.h>
19374 #if HAVE_STDINT_H_WITH_UINTMAX
19375 #include <stdint.h>
19376 #endif
19377 #if HAVE_INTTYPES_H_WITH_UINTMAX
19378 #include <inttypes.h>
19379 #endif
19380
19381 int
19382 main ()
19383 {
19384 intmax_t x = -1;
19385   ;
19386   return 0;
19387 }
19388 _ACEOF
19389 rm -f conftest.$ac_objext
19390 if { (ac_try="$ac_compile"
19391 case "(($ac_try" in
19392   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19393   *) ac_try_echo=$ac_try;;
19394 esac
19395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19396   (eval "$ac_compile") 2>conftest.er1
19397   ac_status=$?
19398   grep -v '^ *+' conftest.er1 >conftest.err
19399   rm -f conftest.er1
19400   cat conftest.err >&5
19401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19402   (exit $ac_status); } && {
19403          test -z "$ac_c_werror_flag" ||
19404          test ! -s conftest.err
19405        } && test -s conftest.$ac_objext; then
19406   gt_cv_c_intmax_t=yes
19407 else
19408   echo "$as_me: failed program was:" >&5
19409 sed 's/^/| /' conftest.$ac_ext >&5
19410
19411         gt_cv_c_intmax_t=no
19412 fi
19413
19414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19415 fi
19416 { echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
19417 echo "${ECHO_T}$gt_cv_c_intmax_t" >&6; }
19418   if test $gt_cv_c_intmax_t = yes; then
19419
19420 cat >>confdefs.h <<\_ACEOF
19421 #define HAVE_INTMAX_T 1
19422 _ACEOF
19423
19424   fi
19425
19426
19427
19428   { echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
19429 echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6; }
19430 if test "${gt_cv_func_printf_posix+set}" = set; then
19431   echo $ECHO_N "(cached) $ECHO_C" >&6
19432 else
19433
19434       if test "$cross_compiling" = yes; then
19435
19436         cat >conftest.$ac_ext <<_ACEOF
19437 /* confdefs.h.  */
19438 _ACEOF
19439 cat confdefs.h >>conftest.$ac_ext
19440 cat >>conftest.$ac_ext <<_ACEOF
19441 /* end confdefs.h.  */
19442
19443 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
19444   notposix
19445 #endif
19446
19447 _ACEOF
19448 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19449   $EGREP "notposix" >/dev/null 2>&1; then
19450   gt_cv_func_printf_posix="guessing no"
19451 else
19452   gt_cv_func_printf_posix="guessing yes"
19453 fi
19454 rm -f conftest*
19455
19456
19457 else
19458   cat >conftest.$ac_ext <<_ACEOF
19459 /* confdefs.h.  */
19460 _ACEOF
19461 cat confdefs.h >>conftest.$ac_ext
19462 cat >>conftest.$ac_ext <<_ACEOF
19463 /* end confdefs.h.  */
19464
19465 #include <stdio.h>
19466 #include <string.h>
19467 /* The string "%2$d %1$d", with dollar characters protected from the shell's
19468    dollar expansion (possibly an autoconf bug).  */
19469 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
19470 static char buf[100];
19471 int main ()
19472 {
19473   sprintf (buf, format, 33, 55);
19474   return (strcmp (buf, "55 33") != 0);
19475 }
19476 _ACEOF
19477 rm -f conftest$ac_exeext
19478 if { (ac_try="$ac_link"
19479 case "(($ac_try" in
19480   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19481   *) ac_try_echo=$ac_try;;
19482 esac
19483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19484   (eval "$ac_link") 2>&5
19485   ac_status=$?
19486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19487   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19488   { (case "(($ac_try" in
19489   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19490   *) ac_try_echo=$ac_try;;
19491 esac
19492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19493   (eval "$ac_try") 2>&5
19494   ac_status=$?
19495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19496   (exit $ac_status); }; }; then
19497   gt_cv_func_printf_posix=yes
19498 else
19499   echo "$as_me: program exited with status $ac_status" >&5
19500 echo "$as_me: failed program was:" >&5
19501 sed 's/^/| /' conftest.$ac_ext >&5
19502
19503 ( exit $ac_status )
19504 gt_cv_func_printf_posix=no
19505 fi
19506 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19507 fi
19508
19509
19510
19511 fi
19512 { echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
19513 echo "${ECHO_T}$gt_cv_func_printf_posix" >&6; }
19514   case $gt_cv_func_printf_posix in
19515     *yes)
19516
19517 cat >>confdefs.h <<\_ACEOF
19518 #define HAVE_POSIX_PRINTF 1
19519 _ACEOF
19520
19521       ;;
19522   esac
19523
19524 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
19525 # for constant arguments.  Useless!
19526 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
19527 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
19528 if test "${ac_cv_working_alloca_h+set}" = set; then
19529   echo $ECHO_N "(cached) $ECHO_C" >&6
19530 else
19531   cat >conftest.$ac_ext <<_ACEOF
19532 /* confdefs.h.  */
19533 _ACEOF
19534 cat confdefs.h >>conftest.$ac_ext
19535 cat >>conftest.$ac_ext <<_ACEOF
19536 /* end confdefs.h.  */
19537 #include <alloca.h>
19538 int
19539 main ()
19540 {
19541 char *p = (char *) alloca (2 * sizeof (int));
19542                           if (p) return 0;
19543   ;
19544   return 0;
19545 }
19546 _ACEOF
19547 rm -f conftest.$ac_objext conftest$ac_exeext
19548 if { (ac_try="$ac_link"
19549 case "(($ac_try" in
19550   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19551   *) ac_try_echo=$ac_try;;
19552 esac
19553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19554   (eval "$ac_link") 2>conftest.er1
19555   ac_status=$?
19556   grep -v '^ *+' conftest.er1 >conftest.err
19557   rm -f conftest.er1
19558   cat conftest.err >&5
19559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19560   (exit $ac_status); } && {
19561          test -z "$ac_c_werror_flag" ||
19562          test ! -s conftest.err
19563        } && test -s conftest$ac_exeext &&
19564        $as_test_x conftest$ac_exeext; then
19565   ac_cv_working_alloca_h=yes
19566 else
19567   echo "$as_me: failed program was:" >&5
19568 sed 's/^/| /' conftest.$ac_ext >&5
19569
19570         ac_cv_working_alloca_h=no
19571 fi
19572
19573 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19574       conftest$ac_exeext conftest.$ac_ext
19575 fi
19576 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
19577 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
19578 if test $ac_cv_working_alloca_h = yes; then
19579
19580 cat >>confdefs.h <<\_ACEOF
19581 #define HAVE_ALLOCA_H 1
19582 _ACEOF
19583
19584 fi
19585
19586 { echo "$as_me:$LINENO: checking for alloca" >&5
19587 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
19588 if test "${ac_cv_func_alloca_works+set}" = set; then
19589   echo $ECHO_N "(cached) $ECHO_C" >&6
19590 else
19591   cat >conftest.$ac_ext <<_ACEOF
19592 /* confdefs.h.  */
19593 _ACEOF
19594 cat confdefs.h >>conftest.$ac_ext
19595 cat >>conftest.$ac_ext <<_ACEOF
19596 /* end confdefs.h.  */
19597 #ifdef __GNUC__
19598 # define alloca __builtin_alloca
19599 #else
19600 # ifdef _MSC_VER
19601 #  include <malloc.h>
19602 #  define alloca _alloca
19603 # else
19604 #  ifdef HAVE_ALLOCA_H
19605 #   include <alloca.h>
19606 #  else
19607 #   ifdef _AIX
19608  #pragma alloca
19609 #   else
19610 #    ifndef alloca /* predefined by HP cc +Olibcalls */
19611 char *alloca ();
19612 #    endif
19613 #   endif
19614 #  endif
19615 # endif
19616 #endif
19617
19618 int
19619 main ()
19620 {
19621 char *p = (char *) alloca (1);
19622                                     if (p) return 0;
19623   ;
19624   return 0;
19625 }
19626 _ACEOF
19627 rm -f conftest.$ac_objext conftest$ac_exeext
19628 if { (ac_try="$ac_link"
19629 case "(($ac_try" in
19630   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19631   *) ac_try_echo=$ac_try;;
19632 esac
19633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19634   (eval "$ac_link") 2>conftest.er1
19635   ac_status=$?
19636   grep -v '^ *+' conftest.er1 >conftest.err
19637   rm -f conftest.er1
19638   cat conftest.err >&5
19639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19640   (exit $ac_status); } && {
19641          test -z "$ac_c_werror_flag" ||
19642          test ! -s conftest.err
19643        } && test -s conftest$ac_exeext &&
19644        $as_test_x conftest$ac_exeext; then
19645   ac_cv_func_alloca_works=yes
19646 else
19647   echo "$as_me: failed program was:" >&5
19648 sed 's/^/| /' conftest.$ac_ext >&5
19649
19650         ac_cv_func_alloca_works=no
19651 fi
19652
19653 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19654       conftest$ac_exeext conftest.$ac_ext
19655 fi
19656 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
19657 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
19658
19659 if test $ac_cv_func_alloca_works = yes; then
19660
19661 cat >>confdefs.h <<\_ACEOF
19662 #define HAVE_ALLOCA 1
19663 _ACEOF
19664
19665 else
19666   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
19667 # that cause trouble.  Some versions do not even contain alloca or
19668 # contain a buggy version.  If you still want to use their alloca,
19669 # use ar to extract alloca.o from them instead of compiling alloca.c.
19670
19671 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
19672
19673 cat >>confdefs.h <<\_ACEOF
19674 #define C_ALLOCA 1
19675 _ACEOF
19676
19677
19678 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
19679 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
19680 if test "${ac_cv_os_cray+set}" = set; then
19681   echo $ECHO_N "(cached) $ECHO_C" >&6
19682 else
19683   cat >conftest.$ac_ext <<_ACEOF
19684 /* confdefs.h.  */
19685 _ACEOF
19686 cat confdefs.h >>conftest.$ac_ext
19687 cat >>conftest.$ac_ext <<_ACEOF
19688 /* end confdefs.h.  */
19689 #if defined CRAY && ! defined CRAY2
19690 webecray
19691 #else
19692 wenotbecray
19693 #endif
19694
19695 _ACEOF
19696 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19697   $EGREP "webecray" >/dev/null 2>&1; then
19698   ac_cv_os_cray=yes
19699 else
19700   ac_cv_os_cray=no
19701 fi
19702 rm -f conftest*
19703
19704 fi
19705 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
19706 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
19707 if test $ac_cv_os_cray = yes; then
19708   for ac_func in _getb67 GETB67 getb67; do
19709     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19710 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19711 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19712 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19713   echo $ECHO_N "(cached) $ECHO_C" >&6
19714 else
19715   cat >conftest.$ac_ext <<_ACEOF
19716 /* confdefs.h.  */
19717 _ACEOF
19718 cat confdefs.h >>conftest.$ac_ext
19719 cat >>conftest.$ac_ext <<_ACEOF
19720 /* end confdefs.h.  */
19721 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19722    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19723 #define $ac_func innocuous_$ac_func
19724
19725 /* System header to define __stub macros and hopefully few prototypes,
19726     which can conflict with char $ac_func (); below.
19727     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19728     <limits.h> exists even on freestanding compilers.  */
19729
19730 #ifdef __STDC__
19731 # include <limits.h>
19732 #else
19733 # include <assert.h>
19734 #endif
19735
19736 #undef $ac_func
19737
19738 /* Override any GCC internal prototype to avoid an error.
19739    Use char because int might match the return type of a GCC
19740    builtin and then its argument prototype would still apply.  */
19741 #ifdef __cplusplus
19742 extern "C"
19743 #endif
19744 char $ac_func ();
19745 /* The GNU C library defines this for functions which it implements
19746     to always fail with ENOSYS.  Some functions are actually named
19747     something starting with __ and the normal name is an alias.  */
19748 #if defined __stub_$ac_func || defined __stub___$ac_func
19749 choke me
19750 #endif
19751
19752 int
19753 main ()
19754 {
19755 return $ac_func ();
19756   ;
19757   return 0;
19758 }
19759 _ACEOF
19760 rm -f conftest.$ac_objext conftest$ac_exeext
19761 if { (ac_try="$ac_link"
19762 case "(($ac_try" in
19763   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19764   *) ac_try_echo=$ac_try;;
19765 esac
19766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19767   (eval "$ac_link") 2>conftest.er1
19768   ac_status=$?
19769   grep -v '^ *+' conftest.er1 >conftest.err
19770   rm -f conftest.er1
19771   cat conftest.err >&5
19772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19773   (exit $ac_status); } && {
19774          test -z "$ac_c_werror_flag" ||
19775          test ! -s conftest.err
19776        } && test -s conftest$ac_exeext &&
19777        $as_test_x conftest$ac_exeext; then
19778   eval "$as_ac_var=yes"
19779 else
19780   echo "$as_me: failed program was:" >&5
19781 sed 's/^/| /' conftest.$ac_ext >&5
19782
19783         eval "$as_ac_var=no"
19784 fi
19785
19786 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19787       conftest$ac_exeext conftest.$ac_ext
19788 fi
19789 ac_res=`eval echo '${'$as_ac_var'}'`
19790                { echo "$as_me:$LINENO: result: $ac_res" >&5
19791 echo "${ECHO_T}$ac_res" >&6; }
19792 if test `eval echo '${'$as_ac_var'}'` = yes; then
19793
19794 cat >>confdefs.h <<_ACEOF
19795 #define CRAY_STACKSEG_END $ac_func
19796 _ACEOF
19797
19798     break
19799 fi
19800
19801   done
19802 fi
19803
19804 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
19805 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
19806 if test "${ac_cv_c_stack_direction+set}" = set; then
19807   echo $ECHO_N "(cached) $ECHO_C" >&6
19808 else
19809   if test "$cross_compiling" = yes; then
19810   ac_cv_c_stack_direction=0
19811 else
19812   cat >conftest.$ac_ext <<_ACEOF
19813 /* confdefs.h.  */
19814 _ACEOF
19815 cat confdefs.h >>conftest.$ac_ext
19816 cat >>conftest.$ac_ext <<_ACEOF
19817 /* end confdefs.h.  */
19818 $ac_includes_default
19819 int
19820 find_stack_direction ()
19821 {
19822   static char *addr = 0;
19823   auto char dummy;
19824   if (addr == 0)
19825     {
19826       addr = &dummy;
19827       return find_stack_direction ();
19828     }
19829   else
19830     return (&dummy > addr) ? 1 : -1;
19831 }
19832
19833 int
19834 main ()
19835 {
19836   return find_stack_direction () < 0;
19837 }
19838 _ACEOF
19839 rm -f conftest$ac_exeext
19840 if { (ac_try="$ac_link"
19841 case "(($ac_try" in
19842   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19843   *) ac_try_echo=$ac_try;;
19844 esac
19845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19846   (eval "$ac_link") 2>&5
19847   ac_status=$?
19848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19849   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19850   { (case "(($ac_try" in
19851   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19852   *) ac_try_echo=$ac_try;;
19853 esac
19854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19855   (eval "$ac_try") 2>&5
19856   ac_status=$?
19857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19858   (exit $ac_status); }; }; then
19859   ac_cv_c_stack_direction=1
19860 else
19861   echo "$as_me: program exited with status $ac_status" >&5
19862 echo "$as_me: failed program was:" >&5
19863 sed 's/^/| /' conftest.$ac_ext >&5
19864
19865 ( exit $ac_status )
19866 ac_cv_c_stack_direction=-1
19867 fi
19868 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19869 fi
19870
19871
19872 fi
19873 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
19874 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
19875
19876 cat >>confdefs.h <<_ACEOF
19877 #define STACK_DIRECTION $ac_cv_c_stack_direction
19878 _ACEOF
19879
19880
19881 fi
19882
19883
19884
19885 for ac_header in stdlib.h unistd.h
19886 do
19887 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19888 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19889   { echo "$as_me:$LINENO: checking for $ac_header" >&5
19890 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19891 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19892   echo $ECHO_N "(cached) $ECHO_C" >&6
19893 fi
19894 ac_res=`eval echo '${'$as_ac_Header'}'`
19895                { echo "$as_me:$LINENO: result: $ac_res" >&5
19896 echo "${ECHO_T}$ac_res" >&6; }
19897 else
19898   # Is the header compilable?
19899 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19900 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19901 cat >conftest.$ac_ext <<_ACEOF
19902 /* confdefs.h.  */
19903 _ACEOF
19904 cat confdefs.h >>conftest.$ac_ext
19905 cat >>conftest.$ac_ext <<_ACEOF
19906 /* end confdefs.h.  */
19907 $ac_includes_default
19908 #include <$ac_header>
19909 _ACEOF
19910 rm -f conftest.$ac_objext
19911 if { (ac_try="$ac_compile"
19912 case "(($ac_try" in
19913   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19914   *) ac_try_echo=$ac_try;;
19915 esac
19916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19917   (eval "$ac_compile") 2>conftest.er1
19918   ac_status=$?
19919   grep -v '^ *+' conftest.er1 >conftest.err
19920   rm -f conftest.er1
19921   cat conftest.err >&5
19922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19923   (exit $ac_status); } && {
19924          test -z "$ac_c_werror_flag" ||
19925          test ! -s conftest.err
19926        } && test -s conftest.$ac_objext; then
19927   ac_header_compiler=yes
19928 else
19929   echo "$as_me: failed program was:" >&5
19930 sed 's/^/| /' conftest.$ac_ext >&5
19931
19932         ac_header_compiler=no
19933 fi
19934
19935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19936 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19937 echo "${ECHO_T}$ac_header_compiler" >&6; }
19938
19939 # Is the header present?
19940 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19941 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19942 cat >conftest.$ac_ext <<_ACEOF
19943 /* confdefs.h.  */
19944 _ACEOF
19945 cat confdefs.h >>conftest.$ac_ext
19946 cat >>conftest.$ac_ext <<_ACEOF
19947 /* end confdefs.h.  */
19948 #include <$ac_header>
19949 _ACEOF
19950 if { (ac_try="$ac_cpp conftest.$ac_ext"
19951 case "(($ac_try" in
19952   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19953   *) ac_try_echo=$ac_try;;
19954 esac
19955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19956   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19957   ac_status=$?
19958   grep -v '^ *+' conftest.er1 >conftest.err
19959   rm -f conftest.er1
19960   cat conftest.err >&5
19961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19962   (exit $ac_status); } >/dev/null && {
19963          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19964          test ! -s conftest.err
19965        }; then
19966   ac_header_preproc=yes
19967 else
19968   echo "$as_me: failed program was:" >&5
19969 sed 's/^/| /' conftest.$ac_ext >&5
19970
19971   ac_header_preproc=no
19972 fi
19973
19974 rm -f conftest.err conftest.$ac_ext
19975 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19976 echo "${ECHO_T}$ac_header_preproc" >&6; }
19977
19978 # So?  What about this header?
19979 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19980   yes:no: )
19981     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19982 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19983     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19984 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19985     ac_header_preproc=yes
19986     ;;
19987   no:yes:* )
19988     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19989 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19990     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19991 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19992     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19993 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19994     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19995 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19996     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19997 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19998     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19999 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20000
20001     ;;
20002 esac
20003 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20004 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20005 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20006   echo $ECHO_N "(cached) $ECHO_C" >&6
20007 else
20008   eval "$as_ac_Header=\$ac_header_preproc"
20009 fi
20010 ac_res=`eval echo '${'$as_ac_Header'}'`
20011                { echo "$as_me:$LINENO: result: $ac_res" >&5
20012 echo "${ECHO_T}$ac_res" >&6; }
20013
20014 fi
20015 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20016   cat >>confdefs.h <<_ACEOF
20017 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20018 _ACEOF
20019
20020 fi
20021
20022 done
20023
20024
20025 for ac_func in getpagesize
20026 do
20027 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20028 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20029 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20030 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20031   echo $ECHO_N "(cached) $ECHO_C" >&6
20032 else
20033   cat >conftest.$ac_ext <<_ACEOF
20034 /* confdefs.h.  */
20035 _ACEOF
20036 cat confdefs.h >>conftest.$ac_ext
20037 cat >>conftest.$ac_ext <<_ACEOF
20038 /* end confdefs.h.  */
20039 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20040    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20041 #define $ac_func innocuous_$ac_func
20042
20043 /* System header to define __stub macros and hopefully few prototypes,
20044     which can conflict with char $ac_func (); below.
20045     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20046     <limits.h> exists even on freestanding compilers.  */
20047
20048 #ifdef __STDC__
20049 # include <limits.h>
20050 #else
20051 # include <assert.h>
20052 #endif
20053
20054 #undef $ac_func
20055
20056 /* Override any GCC internal prototype to avoid an error.
20057    Use char because int might match the return type of a GCC
20058    builtin and then its argument prototype would still apply.  */
20059 #ifdef __cplusplus
20060 extern "C"
20061 #endif
20062 char $ac_func ();
20063 /* The GNU C library defines this for functions which it implements
20064     to always fail with ENOSYS.  Some functions are actually named
20065     something starting with __ and the normal name is an alias.  */
20066 #if defined __stub_$ac_func || defined __stub___$ac_func
20067 choke me
20068 #endif
20069
20070 int
20071 main ()
20072 {
20073 return $ac_func ();
20074   ;
20075   return 0;
20076 }
20077 _ACEOF
20078 rm -f conftest.$ac_objext conftest$ac_exeext
20079 if { (ac_try="$ac_link"
20080 case "(($ac_try" in
20081   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20082   *) ac_try_echo=$ac_try;;
20083 esac
20084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20085   (eval "$ac_link") 2>conftest.er1
20086   ac_status=$?
20087   grep -v '^ *+' conftest.er1 >conftest.err
20088   rm -f conftest.er1
20089   cat conftest.err >&5
20090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20091   (exit $ac_status); } && {
20092          test -z "$ac_c_werror_flag" ||
20093          test ! -s conftest.err
20094        } && test -s conftest$ac_exeext &&
20095        $as_test_x conftest$ac_exeext; then
20096   eval "$as_ac_var=yes"
20097 else
20098   echo "$as_me: failed program was:" >&5
20099 sed 's/^/| /' conftest.$ac_ext >&5
20100
20101         eval "$as_ac_var=no"
20102 fi
20103
20104 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20105       conftest$ac_exeext conftest.$ac_ext
20106 fi
20107 ac_res=`eval echo '${'$as_ac_var'}'`
20108                { echo "$as_me:$LINENO: result: $ac_res" >&5
20109 echo "${ECHO_T}$ac_res" >&6; }
20110 if test `eval echo '${'$as_ac_var'}'` = yes; then
20111   cat >>confdefs.h <<_ACEOF
20112 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20113 _ACEOF
20114
20115 fi
20116 done
20117
20118 { echo "$as_me:$LINENO: checking for working mmap" >&5
20119 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20120 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20121   echo $ECHO_N "(cached) $ECHO_C" >&6
20122 else
20123   if test "$cross_compiling" = yes; then
20124   ac_cv_func_mmap_fixed_mapped=no
20125 else
20126   cat >conftest.$ac_ext <<_ACEOF
20127 /* confdefs.h.  */
20128 _ACEOF
20129 cat confdefs.h >>conftest.$ac_ext
20130 cat >>conftest.$ac_ext <<_ACEOF
20131 /* end confdefs.h.  */
20132 $ac_includes_default
20133 /* malloc might have been renamed as rpl_malloc. */
20134 #undef malloc
20135
20136 /* Thanks to Mike Haertel and Jim Avera for this test.
20137    Here is a matrix of mmap possibilities:
20138         mmap private not fixed
20139         mmap private fixed at somewhere currently unmapped
20140         mmap private fixed at somewhere already mapped
20141         mmap shared not fixed
20142         mmap shared fixed at somewhere currently unmapped
20143         mmap shared fixed at somewhere already mapped
20144    For private mappings, we should verify that changes cannot be read()
20145    back from the file, nor mmap's back from the file at a different
20146    address.  (There have been systems where private was not correctly
20147    implemented like the infamous i386 svr4.0, and systems where the
20148    VM page cache was not coherent with the file system buffer cache
20149    like early versions of FreeBSD and possibly contemporary NetBSD.)
20150    For shared mappings, we should conversely verify that changes get
20151    propagated back to all the places they're supposed to be.
20152
20153    Grep wants private fixed already mapped.
20154    The main things grep needs to know about mmap are:
20155    * does it exist and is it safe to write into the mmap'd area
20156    * how to use it (BSD variants)  */
20157
20158 #include <fcntl.h>
20159 #include <sys/mman.h>
20160
20161 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
20162 char *malloc ();
20163 #endif
20164
20165 /* This mess was copied from the GNU getpagesize.h.  */
20166 #ifndef HAVE_GETPAGESIZE
20167 /* Assume that all systems that can run configure have sys/param.h.  */
20168 # ifndef HAVE_SYS_PARAM_H
20169 #  define HAVE_SYS_PARAM_H 1
20170 # endif
20171
20172 # ifdef _SC_PAGESIZE
20173 #  define getpagesize() sysconf(_SC_PAGESIZE)
20174 # else /* no _SC_PAGESIZE */
20175 #  ifdef HAVE_SYS_PARAM_H
20176 #   include <sys/param.h>
20177 #   ifdef EXEC_PAGESIZE
20178 #    define getpagesize() EXEC_PAGESIZE
20179 #   else /* no EXEC_PAGESIZE */
20180 #    ifdef NBPG
20181 #     define getpagesize() NBPG * CLSIZE
20182 #     ifndef CLSIZE
20183 #      define CLSIZE 1
20184 #     endif /* no CLSIZE */
20185 #    else /* no NBPG */
20186 #     ifdef NBPC
20187 #      define getpagesize() NBPC
20188 #     else /* no NBPC */
20189 #      ifdef PAGESIZE
20190 #       define getpagesize() PAGESIZE
20191 #      endif /* PAGESIZE */
20192 #     endif /* no NBPC */
20193 #    endif /* no NBPG */
20194 #   endif /* no EXEC_PAGESIZE */
20195 #  else /* no HAVE_SYS_PARAM_H */
20196 #   define getpagesize() 8192   /* punt totally */
20197 #  endif /* no HAVE_SYS_PARAM_H */
20198 # endif /* no _SC_PAGESIZE */
20199
20200 #endif /* no HAVE_GETPAGESIZE */
20201
20202 int
20203 main ()
20204 {
20205   char *data, *data2, *data3;
20206   int i, pagesize;
20207   int fd;
20208
20209   pagesize = getpagesize ();
20210
20211   /* First, make a file with some known garbage in it. */
20212   data = (char *) malloc (pagesize);
20213   if (!data)
20214     return 1;
20215   for (i = 0; i < pagesize; ++i)
20216     *(data + i) = rand ();
20217   umask (0);
20218   fd = creat ("conftest.mmap", 0600);
20219   if (fd < 0)
20220     return 1;
20221   if (write (fd, data, pagesize) != pagesize)
20222     return 1;
20223   close (fd);
20224
20225   /* Next, try to mmap the file at a fixed address which already has
20226      something else allocated at it.  If we can, also make sure that
20227      we see the same garbage.  */
20228   fd = open ("conftest.mmap", O_RDWR);
20229   if (fd < 0)
20230     return 1;
20231   data2 = (char *) malloc (2 * pagesize);
20232   if (!data2)
20233     return 1;
20234   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
20235   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20236                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
20237     return 1;
20238   for (i = 0; i < pagesize; ++i)
20239     if (*(data + i) != *(data2 + i))
20240       return 1;
20241
20242   /* Finally, make sure that changes to the mapped area do not
20243      percolate back to the file as seen by read().  (This is a bug on
20244      some variants of i386 svr4.0.)  */
20245   for (i = 0; i < pagesize; ++i)
20246     *(data2 + i) = *(data2 + i) + 1;
20247   data3 = (char *) malloc (pagesize);
20248   if (!data3)
20249     return 1;
20250   if (read (fd, data3, pagesize) != pagesize)
20251     return 1;
20252   for (i = 0; i < pagesize; ++i)
20253     if (*(data + i) != *(data3 + i))
20254       return 1;
20255   close (fd);
20256   return 0;
20257 }
20258 _ACEOF
20259 rm -f conftest$ac_exeext
20260 if { (ac_try="$ac_link"
20261 case "(($ac_try" in
20262   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20263   *) ac_try_echo=$ac_try;;
20264 esac
20265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20266   (eval "$ac_link") 2>&5
20267   ac_status=$?
20268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20269   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20270   { (case "(($ac_try" in
20271   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20272   *) ac_try_echo=$ac_try;;
20273 esac
20274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20275   (eval "$ac_try") 2>&5
20276   ac_status=$?
20277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20278   (exit $ac_status); }; }; then
20279   ac_cv_func_mmap_fixed_mapped=yes
20280 else
20281   echo "$as_me: program exited with status $ac_status" >&5
20282 echo "$as_me: failed program was:" >&5
20283 sed 's/^/| /' conftest.$ac_ext >&5
20284
20285 ( exit $ac_status )
20286 ac_cv_func_mmap_fixed_mapped=no
20287 fi
20288 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20289 fi
20290
20291
20292 fi
20293 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20294 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
20295 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20296
20297 cat >>confdefs.h <<\_ACEOF
20298 #define HAVE_MMAP 1
20299 _ACEOF
20300
20301 fi
20302 rm -f conftest.mmap
20303
20304
20305     { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
20306 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6; }
20307 if test "${ac_cv_gnu_library_2_1+set}" = set; then
20308   echo $ECHO_N "(cached) $ECHO_C" >&6
20309 else
20310   cat >conftest.$ac_ext <<_ACEOF
20311 /* confdefs.h.  */
20312 _ACEOF
20313 cat confdefs.h >>conftest.$ac_ext
20314 cat >>conftest.$ac_ext <<_ACEOF
20315 /* end confdefs.h.  */
20316
20317 #include <features.h>
20318 #ifdef __GNU_LIBRARY__
20319  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
20320   Lucky GNU user
20321  #endif
20322 #endif
20323
20324 _ACEOF
20325 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20326   $EGREP "Lucky GNU user" >/dev/null 2>&1; then
20327   ac_cv_gnu_library_2_1=yes
20328 else
20329   ac_cv_gnu_library_2_1=no
20330 fi
20331 rm -f conftest*
20332
20333
20334
20335 fi
20336 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
20337 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6; }
20338
20339     GLIBC21="$ac_cv_gnu_library_2_1"
20340
20341
20342
20343
20344   { echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
20345 echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6; }
20346 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
20347   echo $ECHO_N "(cached) $ECHO_C" >&6
20348 else
20349
20350       if test "$cross_compiling" = yes; then
20351
20352           # Guess based on the CPU.
20353           case "$host_cpu" in
20354             alpha* | i3456786 | m68k | s390*)
20355               gt_cv_int_divbyzero_sigfpe="guessing yes";;
20356             *)
20357               gt_cv_int_divbyzero_sigfpe="guessing no";;
20358           esac
20359
20360 else
20361   cat >conftest.$ac_ext <<_ACEOF
20362 /* confdefs.h.  */
20363 _ACEOF
20364 cat confdefs.h >>conftest.$ac_ext
20365 cat >>conftest.$ac_ext <<_ACEOF
20366 /* end confdefs.h.  */
20367
20368 #include <stdlib.h>
20369 #include <signal.h>
20370
20371 static void
20372 #ifdef __cplusplus
20373 sigfpe_handler (int sig)
20374 #else
20375 sigfpe_handler (sig) int sig;
20376 #endif
20377 {
20378   /* Exit with code 0 if SIGFPE, with code 1 if any other signal.  */
20379   exit (sig != SIGFPE);
20380 }
20381
20382 int x = 1;
20383 int y = 0;
20384 int z;
20385 int nan;
20386
20387 int main ()
20388 {
20389   signal (SIGFPE, sigfpe_handler);
20390 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP.  */
20391 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
20392   signal (SIGTRAP, sigfpe_handler);
20393 #endif
20394 /* Linux/SPARC yields signal SIGILL.  */
20395 #if defined (__sparc__) && defined (__linux__)
20396   signal (SIGILL, sigfpe_handler);
20397 #endif
20398
20399   z = x / y;
20400   nan = y / y;
20401   exit (1);
20402 }
20403
20404 _ACEOF
20405 rm -f conftest$ac_exeext
20406 if { (ac_try="$ac_link"
20407 case "(($ac_try" in
20408   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20409   *) ac_try_echo=$ac_try;;
20410 esac
20411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20412   (eval "$ac_link") 2>&5
20413   ac_status=$?
20414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20415   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20416   { (case "(($ac_try" in
20417   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20418   *) ac_try_echo=$ac_try;;
20419 esac
20420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20421   (eval "$ac_try") 2>&5
20422   ac_status=$?
20423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20424   (exit $ac_status); }; }; then
20425   gt_cv_int_divbyzero_sigfpe=yes
20426 else
20427   echo "$as_me: program exited with status $ac_status" >&5
20428 echo "$as_me: failed program was:" >&5
20429 sed 's/^/| /' conftest.$ac_ext >&5
20430
20431 ( exit $ac_status )
20432 gt_cv_int_divbyzero_sigfpe=no
20433 fi
20434 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20435 fi
20436
20437
20438
20439 fi
20440 { echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
20441 echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6; }
20442   case "$gt_cv_int_divbyzero_sigfpe" in
20443     *yes) value=1;;
20444     *) value=0;;
20445   esac
20446
20447 cat >>confdefs.h <<_ACEOF
20448 #define INTDIV0_RAISES_SIGFPE $value
20449 _ACEOF
20450
20451
20452
20453   { echo "$as_me:$LINENO: checking for unsigned long long" >&5
20454 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; }
20455 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
20456   echo $ECHO_N "(cached) $ECHO_C" >&6
20457 else
20458   cat >conftest.$ac_ext <<_ACEOF
20459 /* confdefs.h.  */
20460 _ACEOF
20461 cat confdefs.h >>conftest.$ac_ext
20462 cat >>conftest.$ac_ext <<_ACEOF
20463 /* end confdefs.h.  */
20464 unsigned long long ull = 1ULL; int i = 63;
20465 int
20466 main ()
20467 {
20468 unsigned long long ullmax = (unsigned long long) -1;
20469      return ull << i | ull >> i | ullmax / ull | ullmax % ull;
20470   ;
20471   return 0;
20472 }
20473 _ACEOF
20474 rm -f conftest.$ac_objext conftest$ac_exeext
20475 if { (ac_try="$ac_link"
20476 case "(($ac_try" in
20477   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20478   *) ac_try_echo=$ac_try;;
20479 esac
20480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20481   (eval "$ac_link") 2>conftest.er1
20482   ac_status=$?
20483   grep -v '^ *+' conftest.er1 >conftest.err
20484   rm -f conftest.er1
20485   cat conftest.err >&5
20486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20487   (exit $ac_status); } && {
20488          test -z "$ac_c_werror_flag" ||
20489          test ! -s conftest.err
20490        } && test -s conftest$ac_exeext &&
20491        $as_test_x conftest$ac_exeext; then
20492   ac_cv_type_unsigned_long_long=yes
20493 else
20494   echo "$as_me: failed program was:" >&5
20495 sed 's/^/| /' conftest.$ac_ext >&5
20496
20497         ac_cv_type_unsigned_long_long=no
20498 fi
20499
20500 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20501       conftest$ac_exeext conftest.$ac_ext
20502 fi
20503 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
20504 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; }
20505   if test $ac_cv_type_unsigned_long_long = yes; then
20506
20507 cat >>confdefs.h <<\_ACEOF
20508 #define HAVE_UNSIGNED_LONG_LONG 1
20509 _ACEOF
20510
20511   fi
20512
20513
20514
20515
20516   if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
20517
20518     test $ac_cv_type_unsigned_long_long = yes \
20519       && ac_type='unsigned long long' \
20520       || ac_type='unsigned long'
20521
20522 cat >>confdefs.h <<_ACEOF
20523 #define uintmax_t $ac_type
20524 _ACEOF
20525
20526   else
20527
20528 cat >>confdefs.h <<\_ACEOF
20529 #define HAVE_UINTMAX_T 1
20530 _ACEOF
20531
20532   fi
20533
20534
20535   { echo "$as_me:$LINENO: checking for inttypes.h" >&5
20536 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
20537 if test "${gt_cv_header_inttypes_h+set}" = set; then
20538   echo $ECHO_N "(cached) $ECHO_C" >&6
20539 else
20540
20541     cat >conftest.$ac_ext <<_ACEOF
20542 /* confdefs.h.  */
20543 _ACEOF
20544 cat confdefs.h >>conftest.$ac_ext
20545 cat >>conftest.$ac_ext <<_ACEOF
20546 /* end confdefs.h.  */
20547 #include <sys/types.h>
20548 #include <inttypes.h>
20549 int
20550 main ()
20551 {
20552
20553   ;
20554   return 0;
20555 }
20556 _ACEOF
20557 rm -f conftest.$ac_objext
20558 if { (ac_try="$ac_compile"
20559 case "(($ac_try" in
20560   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20561   *) ac_try_echo=$ac_try;;
20562 esac
20563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20564   (eval "$ac_compile") 2>conftest.er1
20565   ac_status=$?
20566   grep -v '^ *+' conftest.er1 >conftest.err
20567   rm -f conftest.er1
20568   cat conftest.err >&5
20569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20570   (exit $ac_status); } && {
20571          test -z "$ac_c_werror_flag" ||
20572          test ! -s conftest.err
20573        } && test -s conftest.$ac_objext; then
20574   gt_cv_header_inttypes_h=yes
20575 else
20576   echo "$as_me: failed program was:" >&5
20577 sed 's/^/| /' conftest.$ac_ext >&5
20578
20579         gt_cv_header_inttypes_h=no
20580 fi
20581
20582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20583
20584 fi
20585 { echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
20586 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6; }
20587   if test $gt_cv_header_inttypes_h = yes; then
20588
20589 cat >>confdefs.h <<_ACEOF
20590 #define HAVE_INTTYPES_H 1
20591 _ACEOF
20592
20593   fi
20594
20595
20596
20597   if test $gt_cv_header_inttypes_h = yes; then
20598     { echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
20599 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6; }
20600 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
20601   echo $ECHO_N "(cached) $ECHO_C" >&6
20602 else
20603
20604         cat >conftest.$ac_ext <<_ACEOF
20605 /* confdefs.h.  */
20606 _ACEOF
20607 cat confdefs.h >>conftest.$ac_ext
20608 cat >>conftest.$ac_ext <<_ACEOF
20609 /* end confdefs.h.  */
20610 #include <inttypes.h>
20611 #ifdef PRId32
20612 char *p = PRId32;
20613 #endif
20614
20615 int
20616 main ()
20617 {
20618
20619   ;
20620   return 0;
20621 }
20622 _ACEOF
20623 rm -f conftest.$ac_objext
20624 if { (ac_try="$ac_compile"
20625 case "(($ac_try" in
20626   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20627   *) ac_try_echo=$ac_try;;
20628 esac
20629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20630   (eval "$ac_compile") 2>conftest.er1
20631   ac_status=$?
20632   grep -v '^ *+' conftest.er1 >conftest.err
20633   rm -f conftest.er1
20634   cat conftest.err >&5
20635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20636   (exit $ac_status); } && {
20637          test -z "$ac_c_werror_flag" ||
20638          test ! -s conftest.err
20639        } && test -s conftest.$ac_objext; then
20640   gt_cv_inttypes_pri_broken=no
20641 else
20642   echo "$as_me: failed program was:" >&5
20643 sed 's/^/| /' conftest.$ac_ext >&5
20644
20645         gt_cv_inttypes_pri_broken=yes
20646 fi
20647
20648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20649
20650 fi
20651 { echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
20652 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6; }
20653   fi
20654   if test "$gt_cv_inttypes_pri_broken" = yes; then
20655
20656 cat >>confdefs.h <<_ACEOF
20657 #define PRI_MACROS_BROKEN 1
20658 _ACEOF
20659
20660   fi
20661
20662
20663
20664 for ac_header in stdint.h
20665 do
20666 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20667 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20668   { echo "$as_me:$LINENO: checking for $ac_header" >&5
20669 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20670 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20671   echo $ECHO_N "(cached) $ECHO_C" >&6
20672 fi
20673 ac_res=`eval echo '${'$as_ac_Header'}'`
20674                { echo "$as_me:$LINENO: result: $ac_res" >&5
20675 echo "${ECHO_T}$ac_res" >&6; }
20676 else
20677   # Is the header compilable?
20678 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20679 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20680 cat >conftest.$ac_ext <<_ACEOF
20681 /* confdefs.h.  */
20682 _ACEOF
20683 cat confdefs.h >>conftest.$ac_ext
20684 cat >>conftest.$ac_ext <<_ACEOF
20685 /* end confdefs.h.  */
20686 $ac_includes_default
20687 #include <$ac_header>
20688 _ACEOF
20689 rm -f conftest.$ac_objext
20690 if { (ac_try="$ac_compile"
20691 case "(($ac_try" in
20692   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20693   *) ac_try_echo=$ac_try;;
20694 esac
20695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20696   (eval "$ac_compile") 2>conftest.er1
20697   ac_status=$?
20698   grep -v '^ *+' conftest.er1 >conftest.err
20699   rm -f conftest.er1
20700   cat conftest.err >&5
20701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20702   (exit $ac_status); } && {
20703          test -z "$ac_c_werror_flag" ||
20704          test ! -s conftest.err
20705        } && test -s conftest.$ac_objext; then
20706   ac_header_compiler=yes
20707 else
20708   echo "$as_me: failed program was:" >&5
20709 sed 's/^/| /' conftest.$ac_ext >&5
20710
20711         ac_header_compiler=no
20712 fi
20713
20714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20715 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20716 echo "${ECHO_T}$ac_header_compiler" >&6; }
20717
20718 # Is the header present?
20719 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20720 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20721 cat >conftest.$ac_ext <<_ACEOF
20722 /* confdefs.h.  */
20723 _ACEOF
20724 cat confdefs.h >>conftest.$ac_ext
20725 cat >>conftest.$ac_ext <<_ACEOF
20726 /* end confdefs.h.  */
20727 #include <$ac_header>
20728 _ACEOF
20729 if { (ac_try="$ac_cpp conftest.$ac_ext"
20730 case "(($ac_try" in
20731   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20732   *) ac_try_echo=$ac_try;;
20733 esac
20734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20735   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20736   ac_status=$?
20737   grep -v '^ *+' conftest.er1 >conftest.err
20738   rm -f conftest.er1
20739   cat conftest.err >&5
20740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20741   (exit $ac_status); } >/dev/null && {
20742          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20743          test ! -s conftest.err
20744        }; then
20745   ac_header_preproc=yes
20746 else
20747   echo "$as_me: failed program was:" >&5
20748 sed 's/^/| /' conftest.$ac_ext >&5
20749
20750   ac_header_preproc=no
20751 fi
20752
20753 rm -f conftest.err conftest.$ac_ext
20754 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20755 echo "${ECHO_T}$ac_header_preproc" >&6; }
20756
20757 # So?  What about this header?
20758 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20759   yes:no: )
20760     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20761 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20762     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20763 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20764     ac_header_preproc=yes
20765     ;;
20766   no:yes:* )
20767     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20768 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20769     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20770 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20771     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20772 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20773     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20774 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20775     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20776 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20777     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20778 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20779
20780     ;;
20781 esac
20782 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20783 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20784 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20785   echo $ECHO_N "(cached) $ECHO_C" >&6
20786 else
20787   eval "$as_ac_Header=\$ac_header_preproc"
20788 fi
20789 ac_res=`eval echo '${'$as_ac_Header'}'`
20790                { echo "$as_me:$LINENO: result: $ac_res" >&5
20791 echo "${ECHO_T}$ac_res" >&6; }
20792
20793 fi
20794 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20795   cat >>confdefs.h <<_ACEOF
20796 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20797 _ACEOF
20798
20799 fi
20800
20801 done
20802
20803     { echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
20804 echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6; }
20805   result=
20806   cat >conftest.$ac_ext <<_ACEOF
20807 /* confdefs.h.  */
20808 _ACEOF
20809 cat confdefs.h >>conftest.$ac_ext
20810 cat >>conftest.$ac_ext <<_ACEOF
20811 /* end confdefs.h.  */
20812
20813 #include <limits.h>
20814 #if HAVE_STDINT_H
20815 #include <stdint.h>
20816 #endif
20817 #ifdef SIZE_MAX
20818 Found it
20819 #endif
20820
20821 _ACEOF
20822 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20823   $EGREP "Found it" >/dev/null 2>&1; then
20824   result=yes
20825 fi
20826 rm -f conftest*
20827
20828   if test -z "$result"; then
20829                     if test "$cross_compiling" = yes; then
20830   # Depending upon the size, compute the lo and hi bounds.
20831 cat >conftest.$ac_ext <<_ACEOF
20832 /* confdefs.h.  */
20833 _ACEOF
20834 cat confdefs.h >>conftest.$ac_ext
20835 cat >>conftest.$ac_ext <<_ACEOF
20836 /* end confdefs.h.  */
20837 #include <stddef.h>
20838 int
20839 main ()
20840 {
20841 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
20842 test_array [0] = 0
20843
20844   ;
20845   return 0;
20846 }
20847 _ACEOF
20848 rm -f conftest.$ac_objext
20849 if { (ac_try="$ac_compile"
20850 case "(($ac_try" in
20851   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20852   *) ac_try_echo=$ac_try;;
20853 esac
20854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20855   (eval "$ac_compile") 2>conftest.er1
20856   ac_status=$?
20857   grep -v '^ *+' conftest.er1 >conftest.err
20858   rm -f conftest.er1
20859   cat conftest.err >&5
20860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20861   (exit $ac_status); } && {
20862          test -z "$ac_c_werror_flag" ||
20863          test ! -s conftest.err
20864        } && test -s conftest.$ac_objext; then
20865   ac_lo=0 ac_mid=0
20866   while :; do
20867     cat >conftest.$ac_ext <<_ACEOF
20868 /* confdefs.h.  */
20869 _ACEOF
20870 cat confdefs.h >>conftest.$ac_ext
20871 cat >>conftest.$ac_ext <<_ACEOF
20872 /* end confdefs.h.  */
20873 #include <stddef.h>
20874 int
20875 main ()
20876 {
20877 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
20878 test_array [0] = 0
20879
20880   ;
20881   return 0;
20882 }
20883 _ACEOF
20884 rm -f conftest.$ac_objext
20885 if { (ac_try="$ac_compile"
20886 case "(($ac_try" in
20887   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20888   *) ac_try_echo=$ac_try;;
20889 esac
20890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20891   (eval "$ac_compile") 2>conftest.er1
20892   ac_status=$?
20893   grep -v '^ *+' conftest.er1 >conftest.err
20894   rm -f conftest.er1
20895   cat conftest.err >&5
20896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20897   (exit $ac_status); } && {
20898          test -z "$ac_c_werror_flag" ||
20899          test ! -s conftest.err
20900        } && test -s conftest.$ac_objext; then
20901   ac_hi=$ac_mid; break
20902 else
20903   echo "$as_me: failed program was:" >&5
20904 sed 's/^/| /' conftest.$ac_ext >&5
20905
20906         ac_lo=`expr $ac_mid + 1`
20907                         if test $ac_lo -le $ac_mid; then
20908                           ac_lo= ac_hi=
20909                           break
20910                         fi
20911                         ac_mid=`expr 2 '*' $ac_mid + 1`
20912 fi
20913
20914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20915   done
20916 else
20917   echo "$as_me: failed program was:" >&5
20918 sed 's/^/| /' conftest.$ac_ext >&5
20919
20920         cat >conftest.$ac_ext <<_ACEOF
20921 /* confdefs.h.  */
20922 _ACEOF
20923 cat confdefs.h >>conftest.$ac_ext
20924 cat >>conftest.$ac_ext <<_ACEOF
20925 /* end confdefs.h.  */
20926 #include <stddef.h>
20927 int
20928 main ()
20929 {
20930 static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
20931 test_array [0] = 0
20932
20933   ;
20934   return 0;
20935 }
20936 _ACEOF
20937 rm -f conftest.$ac_objext
20938 if { (ac_try="$ac_compile"
20939 case "(($ac_try" in
20940   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20941   *) ac_try_echo=$ac_try;;
20942 esac
20943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20944   (eval "$ac_compile") 2>conftest.er1
20945   ac_status=$?
20946   grep -v '^ *+' conftest.er1 >conftest.err
20947   rm -f conftest.er1
20948   cat conftest.err >&5
20949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20950   (exit $ac_status); } && {
20951          test -z "$ac_c_werror_flag" ||
20952          test ! -s conftest.err
20953        } && test -s conftest.$ac_objext; then
20954   ac_hi=-1 ac_mid=-1
20955   while :; do
20956     cat >conftest.$ac_ext <<_ACEOF
20957 /* confdefs.h.  */
20958 _ACEOF
20959 cat confdefs.h >>conftest.$ac_ext
20960 cat >>conftest.$ac_ext <<_ACEOF
20961 /* end confdefs.h.  */
20962 #include <stddef.h>
20963 int
20964 main ()
20965 {
20966 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
20967 test_array [0] = 0
20968
20969   ;
20970   return 0;
20971 }
20972 _ACEOF
20973 rm -f conftest.$ac_objext
20974 if { (ac_try="$ac_compile"
20975 case "(($ac_try" in
20976   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20977   *) ac_try_echo=$ac_try;;
20978 esac
20979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20980   (eval "$ac_compile") 2>conftest.er1
20981   ac_status=$?
20982   grep -v '^ *+' conftest.er1 >conftest.err
20983   rm -f conftest.er1
20984   cat conftest.err >&5
20985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20986   (exit $ac_status); } && {
20987          test -z "$ac_c_werror_flag" ||
20988          test ! -s conftest.err
20989        } && test -s conftest.$ac_objext; then
20990   ac_lo=$ac_mid; break
20991 else
20992   echo "$as_me: failed program was:" >&5
20993 sed 's/^/| /' conftest.$ac_ext >&5
20994
20995         ac_hi=`expr '(' $ac_mid ')' - 1`
20996                         if test $ac_mid -le $ac_hi; then
20997                           ac_lo= ac_hi=
20998                           break
20999                         fi
21000                         ac_mid=`expr 2 '*' $ac_mid`
21001 fi
21002
21003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21004   done
21005 else
21006   echo "$as_me: failed program was:" >&5
21007 sed 's/^/| /' conftest.$ac_ext >&5
21008
21009         ac_lo= ac_hi=
21010 fi
21011
21012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21013 fi
21014
21015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21016 # Binary search between lo and hi bounds.
21017 while test "x$ac_lo" != "x$ac_hi"; do
21018   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21019   cat >conftest.$ac_ext <<_ACEOF
21020 /* confdefs.h.  */
21021 _ACEOF
21022 cat confdefs.h >>conftest.$ac_ext
21023 cat >>conftest.$ac_ext <<_ACEOF
21024 /* end confdefs.h.  */
21025 #include <stddef.h>
21026 int
21027 main ()
21028 {
21029 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
21030 test_array [0] = 0
21031
21032   ;
21033   return 0;
21034 }
21035 _ACEOF
21036 rm -f conftest.$ac_objext
21037 if { (ac_try="$ac_compile"
21038 case "(($ac_try" in
21039   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21040   *) ac_try_echo=$ac_try;;
21041 esac
21042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21043   (eval "$ac_compile") 2>conftest.er1
21044   ac_status=$?
21045   grep -v '^ *+' conftest.er1 >conftest.err
21046   rm -f conftest.er1
21047   cat conftest.err >&5
21048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21049   (exit $ac_status); } && {
21050          test -z "$ac_c_werror_flag" ||
21051          test ! -s conftest.err
21052        } && test -s conftest.$ac_objext; then
21053   ac_hi=$ac_mid
21054 else
21055   echo "$as_me: failed program was:" >&5
21056 sed 's/^/| /' conftest.$ac_ext >&5
21057
21058         ac_lo=`expr '(' $ac_mid ')' + 1`
21059 fi
21060
21061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21062 done
21063 case $ac_lo in
21064 ?*) res_hi=$ac_lo;;
21065 '') result=? ;;
21066 esac
21067 else
21068   cat >conftest.$ac_ext <<_ACEOF
21069 /* confdefs.h.  */
21070 _ACEOF
21071 cat confdefs.h >>conftest.$ac_ext
21072 cat >>conftest.$ac_ext <<_ACEOF
21073 /* end confdefs.h.  */
21074 #include <stddef.h>
21075 static long int longval () { return ~(size_t)0 / 10; }
21076 static unsigned long int ulongval () { return ~(size_t)0 / 10; }
21077 #include <stdio.h>
21078 #include <stdlib.h>
21079 int
21080 main ()
21081 {
21082
21083   FILE *f = fopen ("conftest.val", "w");
21084   if (! f)
21085     return 1;
21086   if ((~(size_t)0 / 10) < 0)
21087     {
21088       long int i = longval ();
21089       if (i != (~(size_t)0 / 10))
21090         return 1;
21091       fprintf (f, "%ld\n", i);
21092     }
21093   else
21094     {
21095       unsigned long int i = ulongval ();
21096       if (i != (~(size_t)0 / 10))
21097         return 1;
21098       fprintf (f, "%lu\n", i);
21099     }
21100   return ferror (f) || fclose (f) != 0;
21101
21102   ;
21103   return 0;
21104 }
21105 _ACEOF
21106 rm -f conftest$ac_exeext
21107 if { (ac_try="$ac_link"
21108 case "(($ac_try" in
21109   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21110   *) ac_try_echo=$ac_try;;
21111 esac
21112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21113   (eval "$ac_link") 2>&5
21114   ac_status=$?
21115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21116   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21117   { (case "(($ac_try" in
21118   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21119   *) ac_try_echo=$ac_try;;
21120 esac
21121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21122   (eval "$ac_try") 2>&5
21123   ac_status=$?
21124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21125   (exit $ac_status); }; }; then
21126   res_hi=`cat conftest.val`
21127 else
21128   echo "$as_me: program exited with status $ac_status" >&5
21129 echo "$as_me: failed program was:" >&5
21130 sed 's/^/| /' conftest.$ac_ext >&5
21131
21132 ( exit $ac_status )
21133 result=?
21134 fi
21135 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21136 fi
21137 rm -f conftest.val
21138
21139     if test "$cross_compiling" = yes; then
21140   # Depending upon the size, compute the lo and hi bounds.
21141 cat >conftest.$ac_ext <<_ACEOF
21142 /* confdefs.h.  */
21143 _ACEOF
21144 cat confdefs.h >>conftest.$ac_ext
21145 cat >>conftest.$ac_ext <<_ACEOF
21146 /* end confdefs.h.  */
21147 #include <stddef.h>
21148 int
21149 main ()
21150 {
21151 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
21152 test_array [0] = 0
21153
21154   ;
21155   return 0;
21156 }
21157 _ACEOF
21158 rm -f conftest.$ac_objext
21159 if { (ac_try="$ac_compile"
21160 case "(($ac_try" in
21161   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21162   *) ac_try_echo=$ac_try;;
21163 esac
21164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21165   (eval "$ac_compile") 2>conftest.er1
21166   ac_status=$?
21167   grep -v '^ *+' conftest.er1 >conftest.err
21168   rm -f conftest.er1
21169   cat conftest.err >&5
21170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21171   (exit $ac_status); } && {
21172          test -z "$ac_c_werror_flag" ||
21173          test ! -s conftest.err
21174        } && test -s conftest.$ac_objext; then
21175   ac_lo=0 ac_mid=0
21176   while :; do
21177     cat >conftest.$ac_ext <<_ACEOF
21178 /* confdefs.h.  */
21179 _ACEOF
21180 cat confdefs.h >>conftest.$ac_ext
21181 cat >>conftest.$ac_ext <<_ACEOF
21182 /* end confdefs.h.  */
21183 #include <stddef.h>
21184 int
21185 main ()
21186 {
21187 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
21188 test_array [0] = 0
21189
21190   ;
21191   return 0;
21192 }
21193 _ACEOF
21194 rm -f conftest.$ac_objext
21195 if { (ac_try="$ac_compile"
21196 case "(($ac_try" in
21197   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21198   *) ac_try_echo=$ac_try;;
21199 esac
21200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21201   (eval "$ac_compile") 2>conftest.er1
21202   ac_status=$?
21203   grep -v '^ *+' conftest.er1 >conftest.err
21204   rm -f conftest.er1
21205   cat conftest.err >&5
21206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21207   (exit $ac_status); } && {
21208          test -z "$ac_c_werror_flag" ||
21209          test ! -s conftest.err
21210        } && test -s conftest.$ac_objext; then
21211   ac_hi=$ac_mid; break
21212 else
21213   echo "$as_me: failed program was:" >&5
21214 sed 's/^/| /' conftest.$ac_ext >&5
21215
21216         ac_lo=`expr $ac_mid + 1`
21217                         if test $ac_lo -le $ac_mid; then
21218                           ac_lo= ac_hi=
21219                           break
21220                         fi
21221                         ac_mid=`expr 2 '*' $ac_mid + 1`
21222 fi
21223
21224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21225   done
21226 else
21227   echo "$as_me: failed program was:" >&5
21228 sed 's/^/| /' conftest.$ac_ext >&5
21229
21230         cat >conftest.$ac_ext <<_ACEOF
21231 /* confdefs.h.  */
21232 _ACEOF
21233 cat confdefs.h >>conftest.$ac_ext
21234 cat >>conftest.$ac_ext <<_ACEOF
21235 /* end confdefs.h.  */
21236 #include <stddef.h>
21237 int
21238 main ()
21239 {
21240 static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
21241 test_array [0] = 0
21242
21243   ;
21244   return 0;
21245 }
21246 _ACEOF
21247 rm -f conftest.$ac_objext
21248 if { (ac_try="$ac_compile"
21249 case "(($ac_try" in
21250   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21251   *) ac_try_echo=$ac_try;;
21252 esac
21253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21254   (eval "$ac_compile") 2>conftest.er1
21255   ac_status=$?
21256   grep -v '^ *+' conftest.er1 >conftest.err
21257   rm -f conftest.er1
21258   cat conftest.err >&5
21259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21260   (exit $ac_status); } && {
21261          test -z "$ac_c_werror_flag" ||
21262          test ! -s conftest.err
21263        } && test -s conftest.$ac_objext; then
21264   ac_hi=-1 ac_mid=-1
21265   while :; do
21266     cat >conftest.$ac_ext <<_ACEOF
21267 /* confdefs.h.  */
21268 _ACEOF
21269 cat confdefs.h >>conftest.$ac_ext
21270 cat >>conftest.$ac_ext <<_ACEOF
21271 /* end confdefs.h.  */
21272 #include <stddef.h>
21273 int
21274 main ()
21275 {
21276 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
21277 test_array [0] = 0
21278
21279   ;
21280   return 0;
21281 }
21282 _ACEOF
21283 rm -f conftest.$ac_objext
21284 if { (ac_try="$ac_compile"
21285 case "(($ac_try" in
21286   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21287   *) ac_try_echo=$ac_try;;
21288 esac
21289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21290   (eval "$ac_compile") 2>conftest.er1
21291   ac_status=$?
21292   grep -v '^ *+' conftest.er1 >conftest.err
21293   rm -f conftest.er1
21294   cat conftest.err >&5
21295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21296   (exit $ac_status); } && {
21297          test -z "$ac_c_werror_flag" ||
21298          test ! -s conftest.err
21299        } && test -s conftest.$ac_objext; then
21300   ac_lo=$ac_mid; break
21301 else
21302   echo "$as_me: failed program was:" >&5
21303 sed 's/^/| /' conftest.$ac_ext >&5
21304
21305         ac_hi=`expr '(' $ac_mid ')' - 1`
21306                         if test $ac_mid -le $ac_hi; then
21307                           ac_lo= ac_hi=
21308                           break
21309                         fi
21310                         ac_mid=`expr 2 '*' $ac_mid`
21311 fi
21312
21313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21314   done
21315 else
21316   echo "$as_me: failed program was:" >&5
21317 sed 's/^/| /' conftest.$ac_ext >&5
21318
21319         ac_lo= ac_hi=
21320 fi
21321
21322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21323 fi
21324
21325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21326 # Binary search between lo and hi bounds.
21327 while test "x$ac_lo" != "x$ac_hi"; do
21328   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21329   cat >conftest.$ac_ext <<_ACEOF
21330 /* confdefs.h.  */
21331 _ACEOF
21332 cat confdefs.h >>conftest.$ac_ext
21333 cat >>conftest.$ac_ext <<_ACEOF
21334 /* end confdefs.h.  */
21335 #include <stddef.h>
21336 int
21337 main ()
21338 {
21339 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
21340 test_array [0] = 0
21341
21342   ;
21343   return 0;
21344 }
21345 _ACEOF
21346 rm -f conftest.$ac_objext
21347 if { (ac_try="$ac_compile"
21348 case "(($ac_try" in
21349   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21350   *) ac_try_echo=$ac_try;;
21351 esac
21352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21353   (eval "$ac_compile") 2>conftest.er1
21354   ac_status=$?
21355   grep -v '^ *+' conftest.er1 >conftest.err
21356   rm -f conftest.er1
21357   cat conftest.err >&5
21358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21359   (exit $ac_status); } && {
21360          test -z "$ac_c_werror_flag" ||
21361          test ! -s conftest.err
21362        } && test -s conftest.$ac_objext; then
21363   ac_hi=$ac_mid
21364 else
21365   echo "$as_me: failed program was:" >&5
21366 sed 's/^/| /' conftest.$ac_ext >&5
21367
21368         ac_lo=`expr '(' $ac_mid ')' + 1`
21369 fi
21370
21371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21372 done
21373 case $ac_lo in
21374 ?*) res_lo=$ac_lo;;
21375 '') result=? ;;
21376 esac
21377 else
21378   cat >conftest.$ac_ext <<_ACEOF
21379 /* confdefs.h.  */
21380 _ACEOF
21381 cat confdefs.h >>conftest.$ac_ext
21382 cat >>conftest.$ac_ext <<_ACEOF
21383 /* end confdefs.h.  */
21384 #include <stddef.h>
21385 static long int longval () { return ~(size_t)0 % 10; }
21386 static unsigned long int ulongval () { return ~(size_t)0 % 10; }
21387 #include <stdio.h>
21388 #include <stdlib.h>
21389 int
21390 main ()
21391 {
21392
21393   FILE *f = fopen ("conftest.val", "w");
21394   if (! f)
21395     return 1;
21396   if ((~(size_t)0 % 10) < 0)
21397     {
21398       long int i = longval ();
21399       if (i != (~(size_t)0 % 10))
21400         return 1;
21401       fprintf (f, "%ld\n", i);
21402     }
21403   else
21404     {
21405       unsigned long int i = ulongval ();
21406       if (i != (~(size_t)0 % 10))
21407         return 1;
21408       fprintf (f, "%lu\n", i);
21409     }
21410   return ferror (f) || fclose (f) != 0;
21411
21412   ;
21413   return 0;
21414 }
21415 _ACEOF
21416 rm -f conftest$ac_exeext
21417 if { (ac_try="$ac_link"
21418 case "(($ac_try" in
21419   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21420   *) ac_try_echo=$ac_try;;
21421 esac
21422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21423   (eval "$ac_link") 2>&5
21424   ac_status=$?
21425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21426   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21427   { (case "(($ac_try" in
21428   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21429   *) ac_try_echo=$ac_try;;
21430 esac
21431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21432   (eval "$ac_try") 2>&5
21433   ac_status=$?
21434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21435   (exit $ac_status); }; }; then
21436   res_lo=`cat conftest.val`
21437 else
21438   echo "$as_me: program exited with status $ac_status" >&5
21439 echo "$as_me: failed program was:" >&5
21440 sed 's/^/| /' conftest.$ac_ext >&5
21441
21442 ( exit $ac_status )
21443 result=?
21444 fi
21445 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21446 fi
21447 rm -f conftest.val
21448
21449     if test "$cross_compiling" = yes; then
21450   # Depending upon the size, compute the lo and hi bounds.
21451 cat >conftest.$ac_ext <<_ACEOF
21452 /* confdefs.h.  */
21453 _ACEOF
21454 cat confdefs.h >>conftest.$ac_ext
21455 cat >>conftest.$ac_ext <<_ACEOF
21456 /* end confdefs.h.  */
21457 #include <stddef.h>
21458 int
21459 main ()
21460 {
21461 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
21462 test_array [0] = 0
21463
21464   ;
21465   return 0;
21466 }
21467 _ACEOF
21468 rm -f conftest.$ac_objext
21469 if { (ac_try="$ac_compile"
21470 case "(($ac_try" in
21471   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21472   *) ac_try_echo=$ac_try;;
21473 esac
21474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21475   (eval "$ac_compile") 2>conftest.er1
21476   ac_status=$?
21477   grep -v '^ *+' conftest.er1 >conftest.err
21478   rm -f conftest.er1
21479   cat conftest.err >&5
21480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21481   (exit $ac_status); } && {
21482          test -z "$ac_c_werror_flag" ||
21483          test ! -s conftest.err
21484        } && test -s conftest.$ac_objext; then
21485   ac_lo=0 ac_mid=0
21486   while :; do
21487     cat >conftest.$ac_ext <<_ACEOF
21488 /* confdefs.h.  */
21489 _ACEOF
21490 cat confdefs.h >>conftest.$ac_ext
21491 cat >>conftest.$ac_ext <<_ACEOF
21492 /* end confdefs.h.  */
21493 #include <stddef.h>
21494 int
21495 main ()
21496 {
21497 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
21498 test_array [0] = 0
21499
21500   ;
21501   return 0;
21502 }
21503 _ACEOF
21504 rm -f conftest.$ac_objext
21505 if { (ac_try="$ac_compile"
21506 case "(($ac_try" in
21507   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21508   *) ac_try_echo=$ac_try;;
21509 esac
21510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21511   (eval "$ac_compile") 2>conftest.er1
21512   ac_status=$?
21513   grep -v '^ *+' conftest.er1 >conftest.err
21514   rm -f conftest.er1
21515   cat conftest.err >&5
21516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21517   (exit $ac_status); } && {
21518          test -z "$ac_c_werror_flag" ||
21519          test ! -s conftest.err
21520        } && test -s conftest.$ac_objext; then
21521   ac_hi=$ac_mid; break
21522 else
21523   echo "$as_me: failed program was:" >&5
21524 sed 's/^/| /' conftest.$ac_ext >&5
21525
21526         ac_lo=`expr $ac_mid + 1`
21527                         if test $ac_lo -le $ac_mid; then
21528                           ac_lo= ac_hi=
21529                           break
21530                         fi
21531                         ac_mid=`expr 2 '*' $ac_mid + 1`
21532 fi
21533
21534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21535   done
21536 else
21537   echo "$as_me: failed program was:" >&5
21538 sed 's/^/| /' conftest.$ac_ext >&5
21539
21540         cat >conftest.$ac_ext <<_ACEOF
21541 /* confdefs.h.  */
21542 _ACEOF
21543 cat confdefs.h >>conftest.$ac_ext
21544 cat >>conftest.$ac_ext <<_ACEOF
21545 /* end confdefs.h.  */
21546 #include <stddef.h>
21547 int
21548 main ()
21549 {
21550 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
21551 test_array [0] = 0
21552
21553   ;
21554   return 0;
21555 }
21556 _ACEOF
21557 rm -f conftest.$ac_objext
21558 if { (ac_try="$ac_compile"
21559 case "(($ac_try" in
21560   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21561   *) ac_try_echo=$ac_try;;
21562 esac
21563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21564   (eval "$ac_compile") 2>conftest.er1
21565   ac_status=$?
21566   grep -v '^ *+' conftest.er1 >conftest.err
21567   rm -f conftest.er1
21568   cat conftest.err >&5
21569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21570   (exit $ac_status); } && {
21571          test -z "$ac_c_werror_flag" ||
21572          test ! -s conftest.err
21573        } && test -s conftest.$ac_objext; then
21574   ac_hi=-1 ac_mid=-1
21575   while :; do
21576     cat >conftest.$ac_ext <<_ACEOF
21577 /* confdefs.h.  */
21578 _ACEOF
21579 cat confdefs.h >>conftest.$ac_ext
21580 cat >>conftest.$ac_ext <<_ACEOF
21581 /* end confdefs.h.  */
21582 #include <stddef.h>
21583 int
21584 main ()
21585 {
21586 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
21587 test_array [0] = 0
21588
21589   ;
21590   return 0;
21591 }
21592 _ACEOF
21593 rm -f conftest.$ac_objext
21594 if { (ac_try="$ac_compile"
21595 case "(($ac_try" in
21596   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21597   *) ac_try_echo=$ac_try;;
21598 esac
21599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21600   (eval "$ac_compile") 2>conftest.er1
21601   ac_status=$?
21602   grep -v '^ *+' conftest.er1 >conftest.err
21603   rm -f conftest.er1
21604   cat conftest.err >&5
21605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21606   (exit $ac_status); } && {
21607          test -z "$ac_c_werror_flag" ||
21608          test ! -s conftest.err
21609        } && test -s conftest.$ac_objext; then
21610   ac_lo=$ac_mid; break
21611 else
21612   echo "$as_me: failed program was:" >&5
21613 sed 's/^/| /' conftest.$ac_ext >&5
21614
21615         ac_hi=`expr '(' $ac_mid ')' - 1`
21616                         if test $ac_mid -le $ac_hi; then
21617                           ac_lo= ac_hi=
21618                           break
21619                         fi
21620                         ac_mid=`expr 2 '*' $ac_mid`
21621 fi
21622
21623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21624   done
21625 else
21626   echo "$as_me: failed program was:" >&5
21627 sed 's/^/| /' conftest.$ac_ext >&5
21628
21629         ac_lo= ac_hi=
21630 fi
21631
21632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21633 fi
21634
21635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21636 # Binary search between lo and hi bounds.
21637 while test "x$ac_lo" != "x$ac_hi"; do
21638   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21639   cat >conftest.$ac_ext <<_ACEOF
21640 /* confdefs.h.  */
21641 _ACEOF
21642 cat confdefs.h >>conftest.$ac_ext
21643 cat >>conftest.$ac_ext <<_ACEOF
21644 /* end confdefs.h.  */
21645 #include <stddef.h>
21646 int
21647 main ()
21648 {
21649 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
21650 test_array [0] = 0
21651
21652   ;
21653   return 0;
21654 }
21655 _ACEOF
21656 rm -f conftest.$ac_objext
21657 if { (ac_try="$ac_compile"
21658 case "(($ac_try" in
21659   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21660   *) ac_try_echo=$ac_try;;
21661 esac
21662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21663   (eval "$ac_compile") 2>conftest.er1
21664   ac_status=$?
21665   grep -v '^ *+' conftest.er1 >conftest.err
21666   rm -f conftest.er1
21667   cat conftest.err >&5
21668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21669   (exit $ac_status); } && {
21670          test -z "$ac_c_werror_flag" ||
21671          test ! -s conftest.err
21672        } && test -s conftest.$ac_objext; then
21673   ac_hi=$ac_mid
21674 else
21675   echo "$as_me: failed program was:" >&5
21676 sed 's/^/| /' conftest.$ac_ext >&5
21677
21678         ac_lo=`expr '(' $ac_mid ')' + 1`
21679 fi
21680
21681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21682 done
21683 case $ac_lo in
21684 ?*) fits_in_uint=$ac_lo;;
21685 '') result=? ;;
21686 esac
21687 else
21688   cat >conftest.$ac_ext <<_ACEOF
21689 /* confdefs.h.  */
21690 _ACEOF
21691 cat confdefs.h >>conftest.$ac_ext
21692 cat >>conftest.$ac_ext <<_ACEOF
21693 /* end confdefs.h.  */
21694 #include <stddef.h>
21695 static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
21696 static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
21697 #include <stdio.h>
21698 #include <stdlib.h>
21699 int
21700 main ()
21701 {
21702
21703   FILE *f = fopen ("conftest.val", "w");
21704   if (! f)
21705     return 1;
21706   if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
21707     {
21708       long int i = longval ();
21709       if (i != (sizeof (size_t) <= sizeof (unsigned int)))
21710         return 1;
21711       fprintf (f, "%ld\n", i);
21712     }
21713   else
21714     {
21715       unsigned long int i = ulongval ();
21716       if (i != (sizeof (size_t) <= sizeof (unsigned int)))
21717         return 1;
21718       fprintf (f, "%lu\n", i);
21719     }
21720   return ferror (f) || fclose (f) != 0;
21721
21722   ;
21723   return 0;
21724 }
21725 _ACEOF
21726 rm -f conftest$ac_exeext
21727 if { (ac_try="$ac_link"
21728 case "(($ac_try" in
21729   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21730   *) ac_try_echo=$ac_try;;
21731 esac
21732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21733   (eval "$ac_link") 2>&5
21734   ac_status=$?
21735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21736   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21737   { (case "(($ac_try" in
21738   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21739   *) ac_try_echo=$ac_try;;
21740 esac
21741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21742   (eval "$ac_try") 2>&5
21743   ac_status=$?
21744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21745   (exit $ac_status); }; }; then
21746   fits_in_uint=`cat conftest.val`
21747 else
21748   echo "$as_me: program exited with status $ac_status" >&5
21749 echo "$as_me: failed program was:" >&5
21750 sed 's/^/| /' conftest.$ac_ext >&5
21751
21752 ( exit $ac_status )
21753 result=?
21754 fi
21755 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21756 fi
21757 rm -f conftest.val
21758
21759     if test "$fits_in_uint" = 1; then
21760                   cat >conftest.$ac_ext <<_ACEOF
21761 /* confdefs.h.  */
21762 _ACEOF
21763 cat confdefs.h >>conftest.$ac_ext
21764 cat >>conftest.$ac_ext <<_ACEOF
21765 /* end confdefs.h.  */
21766 #include <stddef.h>
21767         extern size_t foo;
21768         extern unsigned long foo;
21769
21770 int
21771 main ()
21772 {
21773
21774   ;
21775   return 0;
21776 }
21777 _ACEOF
21778 rm -f conftest.$ac_objext
21779 if { (ac_try="$ac_compile"
21780 case "(($ac_try" in
21781   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21782   *) ac_try_echo=$ac_try;;
21783 esac
21784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21785   (eval "$ac_compile") 2>conftest.er1
21786   ac_status=$?
21787   grep -v '^ *+' conftest.er1 >conftest.err
21788   rm -f conftest.er1
21789   cat conftest.err >&5
21790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21791   (exit $ac_status); } && {
21792          test -z "$ac_c_werror_flag" ||
21793          test ! -s conftest.err
21794        } && test -s conftest.$ac_objext; then
21795   fits_in_uint=0
21796 else
21797   echo "$as_me: failed program was:" >&5
21798 sed 's/^/| /' conftest.$ac_ext >&5
21799
21800
21801 fi
21802
21803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21804     fi
21805     if test -z "$result"; then
21806       if test "$fits_in_uint" = 1; then
21807         result="$res_hi$res_lo"U
21808       else
21809         result="$res_hi$res_lo"UL
21810       fi
21811     else
21812             result='~(size_t)0'
21813     fi
21814   fi
21815   { echo "$as_me:$LINENO: result: $result" >&5
21816 echo "${ECHO_T}$result" >&6; }
21817   if test "$result" != yes; then
21818
21819 cat >>confdefs.h <<_ACEOF
21820 #define SIZE_MAX $result
21821 _ACEOF
21822
21823   fi
21824
21825
21826
21827
21828
21829 for ac_header in stdint.h
21830 do
21831 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21832 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21833   { echo "$as_me:$LINENO: checking for $ac_header" >&5
21834 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21835 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21836   echo $ECHO_N "(cached) $ECHO_C" >&6
21837 fi
21838 ac_res=`eval echo '${'$as_ac_Header'}'`
21839                { echo "$as_me:$LINENO: result: $ac_res" >&5
21840 echo "${ECHO_T}$ac_res" >&6; }
21841 else
21842   # Is the header compilable?
21843 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21844 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21845 cat >conftest.$ac_ext <<_ACEOF
21846 /* confdefs.h.  */
21847 _ACEOF
21848 cat confdefs.h >>conftest.$ac_ext
21849 cat >>conftest.$ac_ext <<_ACEOF
21850 /* end confdefs.h.  */
21851 $ac_includes_default
21852 #include <$ac_header>
21853 _ACEOF
21854 rm -f conftest.$ac_objext
21855 if { (ac_try="$ac_compile"
21856 case "(($ac_try" in
21857   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21858   *) ac_try_echo=$ac_try;;
21859 esac
21860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21861   (eval "$ac_compile") 2>conftest.er1
21862   ac_status=$?
21863   grep -v '^ *+' conftest.er1 >conftest.err
21864   rm -f conftest.er1
21865   cat conftest.err >&5
21866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21867   (exit $ac_status); } && {
21868          test -z "$ac_c_werror_flag" ||
21869          test ! -s conftest.err
21870        } && test -s conftest.$ac_objext; then
21871   ac_header_compiler=yes
21872 else
21873   echo "$as_me: failed program was:" >&5
21874 sed 's/^/| /' conftest.$ac_ext >&5
21875
21876         ac_header_compiler=no
21877 fi
21878
21879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21880 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21881 echo "${ECHO_T}$ac_header_compiler" >&6; }
21882
21883 # Is the header present?
21884 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21885 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21886 cat >conftest.$ac_ext <<_ACEOF
21887 /* confdefs.h.  */
21888 _ACEOF
21889 cat confdefs.h >>conftest.$ac_ext
21890 cat >>conftest.$ac_ext <<_ACEOF
21891 /* end confdefs.h.  */
21892 #include <$ac_header>
21893 _ACEOF
21894 if { (ac_try="$ac_cpp conftest.$ac_ext"
21895 case "(($ac_try" in
21896   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21897   *) ac_try_echo=$ac_try;;
21898 esac
21899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21900   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21901   ac_status=$?
21902   grep -v '^ *+' conftest.er1 >conftest.err
21903   rm -f conftest.er1
21904   cat conftest.err >&5
21905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21906   (exit $ac_status); } >/dev/null && {
21907          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21908          test ! -s conftest.err
21909        }; then
21910   ac_header_preproc=yes
21911 else
21912   echo "$as_me: failed program was:" >&5
21913 sed 's/^/| /' conftest.$ac_ext >&5
21914
21915   ac_header_preproc=no
21916 fi
21917
21918 rm -f conftest.err conftest.$ac_ext
21919 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21920 echo "${ECHO_T}$ac_header_preproc" >&6; }
21921
21922 # So?  What about this header?
21923 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21924   yes:no: )
21925     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21926 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21927     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21928 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21929     ac_header_preproc=yes
21930     ;;
21931   no:yes:* )
21932     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21933 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21934     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21935 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21936     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21937 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21938     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21939 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21940     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21941 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21942     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21943 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21944
21945     ;;
21946 esac
21947 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21948 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21949 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21950   echo $ECHO_N "(cached) $ECHO_C" >&6
21951 else
21952   eval "$as_ac_Header=\$ac_header_preproc"
21953 fi
21954 ac_res=`eval echo '${'$as_ac_Header'}'`
21955                { echo "$as_me:$LINENO: result: $ac_res" >&5
21956 echo "${ECHO_T}$ac_res" >&6; }
21957
21958 fi
21959 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21960   cat >>confdefs.h <<_ACEOF
21961 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21962 _ACEOF
21963
21964 fi
21965
21966 done
21967
21968
21969
21970
21971
21972
21973
21974
21975   { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
21976 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
21977 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
21978   echo $ECHO_N "(cached) $ECHO_C" >&6
21979 else
21980   cat >conftest.$ac_ext <<_ACEOF
21981 /* confdefs.h.  */
21982 _ACEOF
21983 cat confdefs.h >>conftest.$ac_ext
21984 cat >>conftest.$ac_ext <<_ACEOF
21985 /* end confdefs.h.  */
21986 $ac_includes_default
21987 typedef ptrdiff_t ac__type_new_;
21988 int
21989 main ()
21990 {
21991 if ((ac__type_new_ *) 0)
21992   return 0;
21993 if (sizeof (ac__type_new_))
21994   return 0;
21995   ;
21996   return 0;
21997 }
21998 _ACEOF
21999 rm -f conftest.$ac_objext
22000 if { (ac_try="$ac_compile"
22001 case "(($ac_try" in
22002   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22003   *) ac_try_echo=$ac_try;;
22004 esac
22005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22006   (eval "$ac_compile") 2>conftest.er1
22007   ac_status=$?
22008   grep -v '^ *+' conftest.er1 >conftest.err
22009   rm -f conftest.er1
22010   cat conftest.err >&5
22011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22012   (exit $ac_status); } && {
22013          test -z "$ac_c_werror_flag" ||
22014          test ! -s conftest.err
22015        } && test -s conftest.$ac_objext; then
22016   ac_cv_type_ptrdiff_t=yes
22017 else
22018   echo "$as_me: failed program was:" >&5
22019 sed 's/^/| /' conftest.$ac_ext >&5
22020
22021         ac_cv_type_ptrdiff_t=no
22022 fi
22023
22024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22025 fi
22026 { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
22027 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
22028 if test $ac_cv_type_ptrdiff_t = yes; then
22029   :
22030 else
22031
22032 cat >>confdefs.h <<\_ACEOF
22033 #define ptrdiff_t long
22034 _ACEOF
22035
22036
22037 fi
22038
22039
22040
22041
22042
22043
22044
22045
22046
22047
22048
22049 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
22050 stdlib.h string.h unistd.h sys/param.h
22051 do
22052 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22053 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22054   { echo "$as_me:$LINENO: checking for $ac_header" >&5
22055 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22056 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22057   echo $ECHO_N "(cached) $ECHO_C" >&6
22058 fi
22059 ac_res=`eval echo '${'$as_ac_Header'}'`
22060                { echo "$as_me:$LINENO: result: $ac_res" >&5
22061 echo "${ECHO_T}$ac_res" >&6; }
22062 else
22063   # Is the header compilable?
22064 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22065 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22066 cat >conftest.$ac_ext <<_ACEOF
22067 /* confdefs.h.  */
22068 _ACEOF
22069 cat confdefs.h >>conftest.$ac_ext
22070 cat >>conftest.$ac_ext <<_ACEOF
22071 /* end confdefs.h.  */
22072 $ac_includes_default
22073 #include <$ac_header>
22074 _ACEOF
22075 rm -f conftest.$ac_objext
22076 if { (ac_try="$ac_compile"
22077 case "(($ac_try" in
22078   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22079   *) ac_try_echo=$ac_try;;
22080 esac
22081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22082   (eval "$ac_compile") 2>conftest.er1
22083   ac_status=$?
22084   grep -v '^ *+' conftest.er1 >conftest.err
22085   rm -f conftest.er1
22086   cat conftest.err >&5
22087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22088   (exit $ac_status); } && {
22089          test -z "$ac_c_werror_flag" ||
22090          test ! -s conftest.err
22091        } && test -s conftest.$ac_objext; then
22092   ac_header_compiler=yes
22093 else
22094   echo "$as_me: failed program was:" >&5
22095 sed 's/^/| /' conftest.$ac_ext >&5
22096
22097         ac_header_compiler=no
22098 fi
22099
22100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22101 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22102 echo "${ECHO_T}$ac_header_compiler" >&6; }
22103
22104 # Is the header present?
22105 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22106 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22107 cat >conftest.$ac_ext <<_ACEOF
22108 /* confdefs.h.  */
22109 _ACEOF
22110 cat confdefs.h >>conftest.$ac_ext
22111 cat >>conftest.$ac_ext <<_ACEOF
22112 /* end confdefs.h.  */
22113 #include <$ac_header>
22114 _ACEOF
22115 if { (ac_try="$ac_cpp conftest.$ac_ext"
22116 case "(($ac_try" in
22117   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22118   *) ac_try_echo=$ac_try;;
22119 esac
22120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22121   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22122   ac_status=$?
22123   grep -v '^ *+' conftest.er1 >conftest.err
22124   rm -f conftest.er1
22125   cat conftest.err >&5
22126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22127   (exit $ac_status); } >/dev/null && {
22128          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22129          test ! -s conftest.err
22130        }; then
22131   ac_header_preproc=yes
22132 else
22133   echo "$as_me: failed program was:" >&5
22134 sed 's/^/| /' conftest.$ac_ext >&5
22135
22136   ac_header_preproc=no
22137 fi
22138
22139 rm -f conftest.err conftest.$ac_ext
22140 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22141 echo "${ECHO_T}$ac_header_preproc" >&6; }
22142
22143 # So?  What about this header?
22144 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22145   yes:no: )
22146     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22147 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22148     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22149 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22150     ac_header_preproc=yes
22151     ;;
22152   no:yes:* )
22153     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22154 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22155     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22156 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22157     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22158 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22159     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22160 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22161     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22162 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22163     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22164 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22165
22166     ;;
22167 esac
22168 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22169 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22170 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22171   echo $ECHO_N "(cached) $ECHO_C" >&6
22172 else
22173   eval "$as_ac_Header=\$ac_header_preproc"
22174 fi
22175 ac_res=`eval echo '${'$as_ac_Header'}'`
22176                { echo "$as_me:$LINENO: result: $ac_res" >&5
22177 echo "${ECHO_T}$ac_res" >&6; }
22178
22179 fi
22180 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22181   cat >>confdefs.h <<_ACEOF
22182 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22183 _ACEOF
22184
22185 fi
22186
22187 done
22188
22189
22190
22191
22192
22193
22194
22195
22196
22197
22198
22199
22200
22201
22202
22203
22204
22205
22206
22207
22208
22209
22210
22211
22212 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
22213 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
22214 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
22215 __fsetlocking
22216 do
22217 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22218 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22219 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22220 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22221   echo $ECHO_N "(cached) $ECHO_C" >&6
22222 else
22223   cat >conftest.$ac_ext <<_ACEOF
22224 /* confdefs.h.  */
22225 _ACEOF
22226 cat confdefs.h >>conftest.$ac_ext
22227 cat >>conftest.$ac_ext <<_ACEOF
22228 /* end confdefs.h.  */
22229 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22230    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22231 #define $ac_func innocuous_$ac_func
22232
22233 /* System header to define __stub macros and hopefully few prototypes,
22234     which can conflict with char $ac_func (); below.
22235     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22236     <limits.h> exists even on freestanding compilers.  */
22237
22238 #ifdef __STDC__
22239 # include <limits.h>
22240 #else
22241 # include <assert.h>
22242 #endif
22243
22244 #undef $ac_func
22245
22246 /* Override any GCC internal prototype to avoid an error.
22247    Use char because int might match the return type of a GCC
22248    builtin and then its argument prototype would still apply.  */
22249 #ifdef __cplusplus
22250 extern "C"
22251 #endif
22252 char $ac_func ();
22253 /* The GNU C library defines this for functions which it implements
22254     to always fail with ENOSYS.  Some functions are actually named
22255     something starting with __ and the normal name is an alias.  */
22256 #if defined __stub_$ac_func || defined __stub___$ac_func
22257 choke me
22258 #endif
22259
22260 int
22261 main ()
22262 {
22263 return $ac_func ();
22264   ;
22265   return 0;
22266 }
22267 _ACEOF
22268 rm -f conftest.$ac_objext conftest$ac_exeext
22269 if { (ac_try="$ac_link"
22270 case "(($ac_try" in
22271   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22272   *) ac_try_echo=$ac_try;;
22273 esac
22274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22275   (eval "$ac_link") 2>conftest.er1
22276   ac_status=$?
22277   grep -v '^ *+' conftest.er1 >conftest.err
22278   rm -f conftest.er1
22279   cat conftest.err >&5
22280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22281   (exit $ac_status); } && {
22282          test -z "$ac_c_werror_flag" ||
22283          test ! -s conftest.err
22284        } && test -s conftest$ac_exeext &&
22285        $as_test_x conftest$ac_exeext; then
22286   eval "$as_ac_var=yes"
22287 else
22288   echo "$as_me: failed program was:" >&5
22289 sed 's/^/| /' conftest.$ac_ext >&5
22290
22291         eval "$as_ac_var=no"
22292 fi
22293
22294 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22295       conftest$ac_exeext conftest.$ac_ext
22296 fi
22297 ac_res=`eval echo '${'$as_ac_var'}'`
22298                { echo "$as_me:$LINENO: result: $ac_res" >&5
22299 echo "${ECHO_T}$ac_res" >&6; }
22300 if test `eval echo '${'$as_ac_var'}'` = yes; then
22301   cat >>confdefs.h <<_ACEOF
22302 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22303 _ACEOF
22304
22305 fi
22306 done
22307
22308
22309
22310   { echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
22311 echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6; }
22312 if test "${ac_cv_have_decl__snprintf+set}" = set; then
22313   echo $ECHO_N "(cached) $ECHO_C" >&6
22314 else
22315   cat >conftest.$ac_ext <<_ACEOF
22316 /* confdefs.h.  */
22317 _ACEOF
22318 cat confdefs.h >>conftest.$ac_ext
22319 cat >>conftest.$ac_ext <<_ACEOF
22320 /* end confdefs.h.  */
22321 #include <stdio.h>
22322 int
22323 main ()
22324 {
22325
22326 #ifndef _snprintf
22327   char *p = (char *) _snprintf;
22328 #endif
22329
22330   ;
22331   return 0;
22332 }
22333 _ACEOF
22334 rm -f conftest.$ac_objext
22335 if { (ac_try="$ac_compile"
22336 case "(($ac_try" in
22337   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22338   *) ac_try_echo=$ac_try;;
22339 esac
22340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22341   (eval "$ac_compile") 2>conftest.er1
22342   ac_status=$?
22343   grep -v '^ *+' conftest.er1 >conftest.err
22344   rm -f conftest.er1
22345   cat conftest.err >&5
22346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22347   (exit $ac_status); } && {
22348          test -z "$ac_c_werror_flag" ||
22349          test ! -s conftest.err
22350        } && test -s conftest.$ac_objext; then
22351   ac_cv_have_decl__snprintf=yes
22352 else
22353   echo "$as_me: failed program was:" >&5
22354 sed 's/^/| /' conftest.$ac_ext >&5
22355
22356         ac_cv_have_decl__snprintf=no
22357 fi
22358
22359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22360 fi
22361 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
22362 echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6; }
22363   if test $ac_cv_have_decl__snprintf = yes; then
22364     gt_value=1
22365   else
22366     gt_value=0
22367   fi
22368
22369 cat >>confdefs.h <<_ACEOF
22370 #define HAVE_DECL__SNPRINTF $gt_value
22371 _ACEOF
22372
22373
22374
22375   { echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
22376 echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6; }
22377 if test "${ac_cv_have_decl__snwprintf+set}" = set; then
22378   echo $ECHO_N "(cached) $ECHO_C" >&6
22379 else
22380   cat >conftest.$ac_ext <<_ACEOF
22381 /* confdefs.h.  */
22382 _ACEOF
22383 cat confdefs.h >>conftest.$ac_ext
22384 cat >>conftest.$ac_ext <<_ACEOF
22385 /* end confdefs.h.  */
22386 #include <stdio.h>
22387 int
22388 main ()
22389 {
22390
22391 #ifndef _snwprintf
22392   char *p = (char *) _snwprintf;
22393 #endif
22394
22395   ;
22396   return 0;
22397 }
22398 _ACEOF
22399 rm -f conftest.$ac_objext
22400 if { (ac_try="$ac_compile"
22401 case "(($ac_try" in
22402   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22403   *) ac_try_echo=$ac_try;;
22404 esac
22405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22406   (eval "$ac_compile") 2>conftest.er1
22407   ac_status=$?
22408   grep -v '^ *+' conftest.er1 >conftest.err
22409   rm -f conftest.er1
22410   cat conftest.err >&5
22411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22412   (exit $ac_status); } && {
22413          test -z "$ac_c_werror_flag" ||
22414          test ! -s conftest.err
22415        } && test -s conftest.$ac_objext; then
22416   ac_cv_have_decl__snwprintf=yes
22417 else
22418   echo "$as_me: failed program was:" >&5
22419 sed 's/^/| /' conftest.$ac_ext >&5
22420
22421         ac_cv_have_decl__snwprintf=no
22422 fi
22423
22424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22425 fi
22426 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
22427 echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6; }
22428   if test $ac_cv_have_decl__snwprintf = yes; then
22429     gt_value=1
22430   else
22431     gt_value=0
22432   fi
22433
22434 cat >>confdefs.h <<_ACEOF
22435 #define HAVE_DECL__SNWPRINTF $gt_value
22436 _ACEOF
22437
22438
22439
22440
22441   { echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
22442 echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6; }
22443 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
22444   echo $ECHO_N "(cached) $ECHO_C" >&6
22445 else
22446   cat >conftest.$ac_ext <<_ACEOF
22447 /* confdefs.h.  */
22448 _ACEOF
22449 cat confdefs.h >>conftest.$ac_ext
22450 cat >>conftest.$ac_ext <<_ACEOF
22451 /* end confdefs.h.  */
22452 #include <stdio.h>
22453 int
22454 main ()
22455 {
22456
22457 #ifndef feof_unlocked
22458   char *p = (char *) feof_unlocked;
22459 #endif
22460
22461   ;
22462   return 0;
22463 }
22464 _ACEOF
22465 rm -f conftest.$ac_objext
22466 if { (ac_try="$ac_compile"
22467 case "(($ac_try" in
22468   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22469   *) ac_try_echo=$ac_try;;
22470 esac
22471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22472   (eval "$ac_compile") 2>conftest.er1
22473   ac_status=$?
22474   grep -v '^ *+' conftest.er1 >conftest.err
22475   rm -f conftest.er1
22476   cat conftest.err >&5
22477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22478   (exit $ac_status); } && {
22479          test -z "$ac_c_werror_flag" ||
22480          test ! -s conftest.err
22481        } && test -s conftest.$ac_objext; then
22482   ac_cv_have_decl_feof_unlocked=yes
22483 else
22484   echo "$as_me: failed program was:" >&5
22485 sed 's/^/| /' conftest.$ac_ext >&5
22486
22487         ac_cv_have_decl_feof_unlocked=no
22488 fi
22489
22490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22491 fi
22492 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
22493 echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6; }
22494   if test $ac_cv_have_decl_feof_unlocked = yes; then
22495     gt_value=1
22496   else
22497     gt_value=0
22498   fi
22499
22500 cat >>confdefs.h <<_ACEOF
22501 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
22502 _ACEOF
22503
22504
22505
22506   { echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
22507 echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6; }
22508 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
22509   echo $ECHO_N "(cached) $ECHO_C" >&6
22510 else
22511   cat >conftest.$ac_ext <<_ACEOF
22512 /* confdefs.h.  */
22513 _ACEOF
22514 cat confdefs.h >>conftest.$ac_ext
22515 cat >>conftest.$ac_ext <<_ACEOF
22516 /* end confdefs.h.  */
22517 #include <stdio.h>
22518 int
22519 main ()
22520 {
22521
22522 #ifndef fgets_unlocked
22523   char *p = (char *) fgets_unlocked;
22524 #endif
22525
22526   ;
22527   return 0;
22528 }
22529 _ACEOF
22530 rm -f conftest.$ac_objext
22531 if { (ac_try="$ac_compile"
22532 case "(($ac_try" in
22533   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22534   *) ac_try_echo=$ac_try;;
22535 esac
22536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22537   (eval "$ac_compile") 2>conftest.er1
22538   ac_status=$?
22539   grep -v '^ *+' conftest.er1 >conftest.err
22540   rm -f conftest.er1
22541   cat conftest.err >&5
22542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22543   (exit $ac_status); } && {
22544          test -z "$ac_c_werror_flag" ||
22545          test ! -s conftest.err
22546        } && test -s conftest.$ac_objext; then
22547   ac_cv_have_decl_fgets_unlocked=yes
22548 else
22549   echo "$as_me: failed program was:" >&5
22550 sed 's/^/| /' conftest.$ac_ext >&5
22551
22552         ac_cv_have_decl_fgets_unlocked=no
22553 fi
22554
22555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22556 fi
22557 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
22558 echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6; }
22559   if test $ac_cv_have_decl_fgets_unlocked = yes; then
22560     gt_value=1
22561   else
22562     gt_value=0
22563   fi
22564
22565 cat >>confdefs.h <<_ACEOF
22566 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
22567 _ACEOF
22568
22569
22570
22571   { echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
22572 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6; }
22573 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
22574   echo $ECHO_N "(cached) $ECHO_C" >&6
22575 else
22576   cat >conftest.$ac_ext <<_ACEOF
22577 /* confdefs.h.  */
22578 _ACEOF
22579 cat confdefs.h >>conftest.$ac_ext
22580 cat >>conftest.$ac_ext <<_ACEOF
22581 /* end confdefs.h.  */
22582 #include <stdio.h>
22583 int
22584 main ()
22585 {
22586
22587 #ifndef getc_unlocked
22588   char *p = (char *) getc_unlocked;
22589 #endif
22590
22591   ;
22592   return 0;
22593 }
22594 _ACEOF
22595 rm -f conftest.$ac_objext
22596 if { (ac_try="$ac_compile"
22597 case "(($ac_try" in
22598   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22599   *) ac_try_echo=$ac_try;;
22600 esac
22601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22602   (eval "$ac_compile") 2>conftest.er1
22603   ac_status=$?
22604   grep -v '^ *+' conftest.er1 >conftest.err
22605   rm -f conftest.er1
22606   cat conftest.err >&5
22607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22608   (exit $ac_status); } && {
22609          test -z "$ac_c_werror_flag" ||
22610          test ! -s conftest.err
22611        } && test -s conftest.$ac_objext; then
22612   ac_cv_have_decl_getc_unlocked=yes
22613 else
22614   echo "$as_me: failed program was:" >&5
22615 sed 's/^/| /' conftest.$ac_ext >&5
22616
22617         ac_cv_have_decl_getc_unlocked=no
22618 fi
22619
22620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22621 fi
22622 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
22623 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6; }
22624   if test $ac_cv_have_decl_getc_unlocked = yes; then
22625     gt_value=1
22626   else
22627     gt_value=0
22628   fi
22629
22630 cat >>confdefs.h <<_ACEOF
22631 #define HAVE_DECL_GETC_UNLOCKED $gt_value
22632 _ACEOF
22633
22634
22635
22636   case $gt_cv_func_printf_posix in
22637     *yes) HAVE_POSIX_PRINTF=1 ;;
22638     *) HAVE_POSIX_PRINTF=0 ;;
22639   esac
22640
22641   if test "$ac_cv_func_asprintf" = yes; then
22642     HAVE_ASPRINTF=1
22643   else
22644     HAVE_ASPRINTF=0
22645   fi
22646
22647   if test "$ac_cv_func_snprintf" = yes; then
22648     HAVE_SNPRINTF=1
22649   else
22650     HAVE_SNPRINTF=0
22651   fi
22652
22653   if test "$ac_cv_func_wprintf" = yes; then
22654     HAVE_WPRINTF=1
22655   else
22656     HAVE_WPRINTF=0
22657   fi
22658
22659
22660
22661
22662
22663
22664
22665           am_save_CPPFLAGS="$CPPFLAGS"
22666
22667   for element in $INCICONV; do
22668     haveit=
22669     for x in $CPPFLAGS; do
22670
22671   acl_save_prefix="$prefix"
22672   prefix="$acl_final_prefix"
22673   acl_save_exec_prefix="$exec_prefix"
22674   exec_prefix="$acl_final_exec_prefix"
22675   eval x=\"$x\"
22676   exec_prefix="$acl_save_exec_prefix"
22677   prefix="$acl_save_prefix"
22678
22679       if test "X$x" = "X$element"; then
22680         haveit=yes
22681         break
22682       fi
22683     done
22684     if test -z "$haveit"; then
22685       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
22686     fi
22687   done
22688
22689
22690   { echo "$as_me:$LINENO: checking for iconv" >&5
22691 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
22692 if test "${am_cv_func_iconv+set}" = set; then
22693   echo $ECHO_N "(cached) $ECHO_C" >&6
22694 else
22695
22696     am_cv_func_iconv="no, consider installing GNU libiconv"
22697     am_cv_lib_iconv=no
22698     cat >conftest.$ac_ext <<_ACEOF
22699 /* confdefs.h.  */
22700 _ACEOF
22701 cat confdefs.h >>conftest.$ac_ext
22702 cat >>conftest.$ac_ext <<_ACEOF
22703 /* end confdefs.h.  */
22704 #include <stdlib.h>
22705 #include <iconv.h>
22706 int
22707 main ()
22708 {
22709 iconv_t cd = iconv_open("","");
22710        iconv(cd,NULL,NULL,NULL,NULL);
22711        iconv_close(cd);
22712   ;
22713   return 0;
22714 }
22715 _ACEOF
22716 rm -f conftest.$ac_objext conftest$ac_exeext
22717 if { (ac_try="$ac_link"
22718 case "(($ac_try" in
22719   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22720   *) ac_try_echo=$ac_try;;
22721 esac
22722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22723   (eval "$ac_link") 2>conftest.er1
22724   ac_status=$?
22725   grep -v '^ *+' conftest.er1 >conftest.err
22726   rm -f conftest.er1
22727   cat conftest.err >&5
22728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22729   (exit $ac_status); } && {
22730          test -z "$ac_c_werror_flag" ||
22731          test ! -s conftest.err
22732        } && test -s conftest$ac_exeext &&
22733        $as_test_x conftest$ac_exeext; then
22734   am_cv_func_iconv=yes
22735 else
22736   echo "$as_me: failed program was:" >&5
22737 sed 's/^/| /' conftest.$ac_ext >&5
22738
22739
22740 fi
22741
22742 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22743       conftest$ac_exeext conftest.$ac_ext
22744     if test "$am_cv_func_iconv" != yes; then
22745       am_save_LIBS="$LIBS"
22746       LIBS="$LIBS $LIBICONV"
22747       cat >conftest.$ac_ext <<_ACEOF
22748 /* confdefs.h.  */
22749 _ACEOF
22750 cat confdefs.h >>conftest.$ac_ext
22751 cat >>conftest.$ac_ext <<_ACEOF
22752 /* end confdefs.h.  */
22753 #include <stdlib.h>
22754 #include <iconv.h>
22755 int
22756 main ()
22757 {
22758 iconv_t cd = iconv_open("","");
22759          iconv(cd,NULL,NULL,NULL,NULL);
22760          iconv_close(cd);
22761   ;
22762   return 0;
22763 }
22764 _ACEOF
22765 rm -f conftest.$ac_objext conftest$ac_exeext
22766 if { (ac_try="$ac_link"
22767 case "(($ac_try" in
22768   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22769   *) ac_try_echo=$ac_try;;
22770 esac
22771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22772   (eval "$ac_link") 2>conftest.er1
22773   ac_status=$?
22774   grep -v '^ *+' conftest.er1 >conftest.err
22775   rm -f conftest.er1
22776   cat conftest.err >&5
22777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22778   (exit $ac_status); } && {
22779          test -z "$ac_c_werror_flag" ||
22780          test ! -s conftest.err
22781        } && test -s conftest$ac_exeext &&
22782        $as_test_x conftest$ac_exeext; then
22783   am_cv_lib_iconv=yes
22784         am_cv_func_iconv=yes
22785 else
22786   echo "$as_me: failed program was:" >&5
22787 sed 's/^/| /' conftest.$ac_ext >&5
22788
22789
22790 fi
22791
22792 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22793       conftest$ac_exeext conftest.$ac_ext
22794       LIBS="$am_save_LIBS"
22795     fi
22796
22797 fi
22798 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
22799 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
22800   if test "$am_cv_func_iconv" = yes; then
22801
22802 cat >>confdefs.h <<\_ACEOF
22803 #define HAVE_ICONV 1
22804 _ACEOF
22805
22806   fi
22807   if test "$am_cv_lib_iconv" = yes; then
22808     { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
22809 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
22810     { echo "$as_me:$LINENO: result: $LIBICONV" >&5
22811 echo "${ECHO_T}$LIBICONV" >&6; }
22812   else
22813             CPPFLAGS="$am_save_CPPFLAGS"
22814     LIBICONV=
22815     LTLIBICONV=
22816   fi
22817
22818
22819
22820   if test "$am_cv_func_iconv" = yes; then
22821     { echo "$as_me:$LINENO: checking for iconv declaration" >&5
22822 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
22823     if test "${am_cv_proto_iconv+set}" = set; then
22824   echo $ECHO_N "(cached) $ECHO_C" >&6
22825 else
22826
22827       cat >conftest.$ac_ext <<_ACEOF
22828 /* confdefs.h.  */
22829 _ACEOF
22830 cat confdefs.h >>conftest.$ac_ext
22831 cat >>conftest.$ac_ext <<_ACEOF
22832 /* end confdefs.h.  */
22833
22834 #include <stdlib.h>
22835 #include <iconv.h>
22836 extern
22837 #ifdef __cplusplus
22838 "C"
22839 #endif
22840 #if defined(__STDC__) || defined(__cplusplus)
22841 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
22842 #else
22843 size_t iconv();
22844 #endif
22845
22846 int
22847 main ()
22848 {
22849
22850   ;
22851   return 0;
22852 }
22853 _ACEOF
22854 rm -f conftest.$ac_objext
22855 if { (ac_try="$ac_compile"
22856 case "(($ac_try" in
22857   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22858   *) ac_try_echo=$ac_try;;
22859 esac
22860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22861   (eval "$ac_compile") 2>conftest.er1
22862   ac_status=$?
22863   grep -v '^ *+' conftest.er1 >conftest.err
22864   rm -f conftest.er1
22865   cat conftest.err >&5
22866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22867   (exit $ac_status); } && {
22868          test -z "$ac_c_werror_flag" ||
22869          test ! -s conftest.err
22870        } && test -s conftest.$ac_objext; then
22871   am_cv_proto_iconv_arg1=""
22872 else
22873   echo "$as_me: failed program was:" >&5
22874 sed 's/^/| /' conftest.$ac_ext >&5
22875
22876         am_cv_proto_iconv_arg1="const"
22877 fi
22878
22879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22880       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);"
22881 fi
22882
22883     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
22884     { echo "$as_me:$LINENO: result: ${ac_t:-
22885          }$am_cv_proto_iconv" >&5
22886 echo "${ECHO_T}${ac_t:-
22887          }$am_cv_proto_iconv" >&6; }
22888
22889 cat >>confdefs.h <<_ACEOF
22890 #define ICONV_CONST $am_cv_proto_iconv_arg1
22891 _ACEOF
22892
22893   fi
22894
22895
22896   { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
22897 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
22898 if test "${am_cv_langinfo_codeset+set}" = set; then
22899   echo $ECHO_N "(cached) $ECHO_C" >&6
22900 else
22901   cat >conftest.$ac_ext <<_ACEOF
22902 /* confdefs.h.  */
22903 _ACEOF
22904 cat confdefs.h >>conftest.$ac_ext
22905 cat >>conftest.$ac_ext <<_ACEOF
22906 /* end confdefs.h.  */
22907 #include <langinfo.h>
22908 int
22909 main ()
22910 {
22911 char* cs = nl_langinfo(CODESET);
22912   ;
22913   return 0;
22914 }
22915 _ACEOF
22916 rm -f conftest.$ac_objext conftest$ac_exeext
22917 if { (ac_try="$ac_link"
22918 case "(($ac_try" in
22919   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22920   *) ac_try_echo=$ac_try;;
22921 esac
22922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22923   (eval "$ac_link") 2>conftest.er1
22924   ac_status=$?
22925   grep -v '^ *+' conftest.er1 >conftest.err
22926   rm -f conftest.er1
22927   cat conftest.err >&5
22928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22929   (exit $ac_status); } && {
22930          test -z "$ac_c_werror_flag" ||
22931          test ! -s conftest.err
22932        } && test -s conftest$ac_exeext &&
22933        $as_test_x conftest$ac_exeext; then
22934   am_cv_langinfo_codeset=yes
22935 else
22936   echo "$as_me: failed program was:" >&5
22937 sed 's/^/| /' conftest.$ac_ext >&5
22938
22939         am_cv_langinfo_codeset=no
22940 fi
22941
22942 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22943       conftest$ac_exeext conftest.$ac_ext
22944
22945 fi
22946 { echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
22947 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6; }
22948   if test $am_cv_langinfo_codeset = yes; then
22949
22950 cat >>confdefs.h <<\_ACEOF
22951 #define HAVE_LANGINFO_CODESET 1
22952 _ACEOF
22953
22954   fi
22955
22956   if test $ac_cv_header_locale_h = yes; then
22957
22958   { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
22959 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
22960 if test "${gt_cv_val_LC_MESSAGES+set}" = set; then
22961   echo $ECHO_N "(cached) $ECHO_C" >&6
22962 else
22963   cat >conftest.$ac_ext <<_ACEOF
22964 /* confdefs.h.  */
22965 _ACEOF
22966 cat confdefs.h >>conftest.$ac_ext
22967 cat >>conftest.$ac_ext <<_ACEOF
22968 /* end confdefs.h.  */
22969 #include <locale.h>
22970 int
22971 main ()
22972 {
22973 return LC_MESSAGES
22974   ;
22975   return 0;
22976 }
22977 _ACEOF
22978 rm -f conftest.$ac_objext conftest$ac_exeext
22979 if { (ac_try="$ac_link"
22980 case "(($ac_try" in
22981   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22982   *) ac_try_echo=$ac_try;;
22983 esac
22984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22985   (eval "$ac_link") 2>conftest.er1
22986   ac_status=$?
22987   grep -v '^ *+' conftest.er1 >conftest.err
22988   rm -f conftest.er1
22989   cat conftest.err >&5
22990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22991   (exit $ac_status); } && {
22992          test -z "$ac_c_werror_flag" ||
22993          test ! -s conftest.err
22994        } && test -s conftest$ac_exeext &&
22995        $as_test_x conftest$ac_exeext; then
22996   gt_cv_val_LC_MESSAGES=yes
22997 else
22998   echo "$as_me: failed program was:" >&5
22999 sed 's/^/| /' conftest.$ac_ext >&5
23000
23001         gt_cv_val_LC_MESSAGES=no
23002 fi
23003
23004 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23005       conftest$ac_exeext conftest.$ac_ext
23006 fi
23007 { echo "$as_me:$LINENO: result: $gt_cv_val_LC_MESSAGES" >&5
23008 echo "${ECHO_T}$gt_cv_val_LC_MESSAGES" >&6; }
23009   if test $gt_cv_val_LC_MESSAGES = yes; then
23010
23011 cat >>confdefs.h <<\_ACEOF
23012 #define HAVE_LC_MESSAGES 1
23013 _ACEOF
23014
23015   fi
23016
23017   fi
23018
23019   if test -n "$INTL_MACOSX_LIBS"; then
23020     CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
23021   fi
23022
23023                       for ac_prog in bison
23024 do
23025   # Extract the first word of "$ac_prog", so it can be a program name with args.
23026 set dummy $ac_prog; ac_word=$2
23027 { echo "$as_me:$LINENO: checking for $ac_word" >&5
23028 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
23029 if test "${ac_cv_prog_INTLBISON+set}" = set; then
23030   echo $ECHO_N "(cached) $ECHO_C" >&6
23031 else
23032   if test -n "$INTLBISON"; then
23033   ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
23034 else
23035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23036 for as_dir in $PATH
23037 do
23038   IFS=$as_save_IFS
23039   test -z "$as_dir" && as_dir=.
23040   for ac_exec_ext in '' $ac_executable_extensions; do
23041   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23042     ac_cv_prog_INTLBISON="$ac_prog"
23043     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23044     break 2
23045   fi
23046 done
23047 done
23048 IFS=$as_save_IFS
23049
23050 fi
23051 fi
23052 INTLBISON=$ac_cv_prog_INTLBISON
23053 if test -n "$INTLBISON"; then
23054   { echo "$as_me:$LINENO: result: $INTLBISON" >&5
23055 echo "${ECHO_T}$INTLBISON" >&6; }
23056 else
23057   { echo "$as_me:$LINENO: result: no" >&5
23058 echo "${ECHO_T}no" >&6; }
23059 fi
23060
23061
23062   test -n "$INTLBISON" && break
23063 done
23064
23065   if test -z "$INTLBISON"; then
23066     ac_verc_fail=yes
23067   else
23068         { echo "$as_me:$LINENO: checking version of bison" >&5
23069 echo $ECHO_N "checking version of bison... $ECHO_C" >&6; }
23070     ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
23071     case $ac_prog_version in
23072       '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
23073       1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
23074          ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
23075       *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
23076     esac
23077     { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
23078 echo "${ECHO_T}$ac_prog_version" >&6; }
23079   fi
23080   if test $ac_verc_fail = yes; then
23081     INTLBISON=:
23082   fi
23083
23084
23085
23086
23087
23088
23089
23090
23091
23092
23093
23094
23095
23096
23097
23098
23099     { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
23100 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
23101 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
23102   echo $ECHO_N "(cached) $ECHO_C" >&6
23103 else
23104   gt_save_CPPFLAGS="$CPPFLAGS"
23105      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
23106      gt_save_LIBS="$LIBS"
23107      LIBS="$LIBS -framework CoreFoundation"
23108      cat >conftest.$ac_ext <<_ACEOF
23109 /* confdefs.h.  */
23110 _ACEOF
23111 cat confdefs.h >>conftest.$ac_ext
23112 cat >>conftest.$ac_ext <<_ACEOF
23113 /* end confdefs.h.  */
23114 #include <CFPreferences.h>
23115 int
23116 main ()
23117 {
23118 CFPreferencesCopyAppValue(NULL, NULL)
23119   ;
23120   return 0;
23121 }
23122 _ACEOF
23123 rm -f conftest.$ac_objext conftest$ac_exeext
23124 if { (ac_try="$ac_link"
23125 case "(($ac_try" in
23126   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23127   *) ac_try_echo=$ac_try;;
23128 esac
23129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23130   (eval "$ac_link") 2>conftest.er1
23131   ac_status=$?
23132   grep -v '^ *+' conftest.er1 >conftest.err
23133   rm -f conftest.er1
23134   cat conftest.err >&5
23135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23136   (exit $ac_status); } && {
23137          test -z "$ac_c_werror_flag" ||
23138          test ! -s conftest.err
23139        } && test -s conftest$ac_exeext &&
23140        $as_test_x conftest$ac_exeext; then
23141   gt_cv_func_CFPreferencesCopyAppValue=yes
23142 else
23143   echo "$as_me: failed program was:" >&5
23144 sed 's/^/| /' conftest.$ac_ext >&5
23145
23146         gt_cv_func_CFPreferencesCopyAppValue=no
23147 fi
23148
23149 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23150       conftest$ac_exeext conftest.$ac_ext
23151      CPPFLAGS="$gt_save_CPPFLAGS"
23152      LIBS="$gt_save_LIBS"
23153 fi
23154 { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
23155 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
23156   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
23157
23158 cat >>confdefs.h <<\_ACEOF
23159 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
23160 _ACEOF
23161
23162   fi
23163     { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
23164 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
23165 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
23166   echo $ECHO_N "(cached) $ECHO_C" >&6
23167 else
23168   gt_save_CPPFLAGS="$CPPFLAGS"
23169      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
23170      gt_save_LIBS="$LIBS"
23171      LIBS="$LIBS -framework CoreFoundation"
23172      cat >conftest.$ac_ext <<_ACEOF
23173 /* confdefs.h.  */
23174 _ACEOF
23175 cat confdefs.h >>conftest.$ac_ext
23176 cat >>conftest.$ac_ext <<_ACEOF
23177 /* end confdefs.h.  */
23178 #include <CFLocale.h>
23179 int
23180 main ()
23181 {
23182 CFLocaleCopyCurrent();
23183   ;
23184   return 0;
23185 }
23186 _ACEOF
23187 rm -f conftest.$ac_objext conftest$ac_exeext
23188 if { (ac_try="$ac_link"
23189 case "(($ac_try" in
23190   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23191   *) ac_try_echo=$ac_try;;
23192 esac
23193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23194   (eval "$ac_link") 2>conftest.er1
23195   ac_status=$?
23196   grep -v '^ *+' conftest.er1 >conftest.err
23197   rm -f conftest.er1
23198   cat conftest.err >&5
23199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23200   (exit $ac_status); } && {
23201          test -z "$ac_c_werror_flag" ||
23202          test ! -s conftest.err
23203        } && test -s conftest$ac_exeext &&
23204        $as_test_x conftest$ac_exeext; then
23205   gt_cv_func_CFLocaleCopyCurrent=yes
23206 else
23207   echo "$as_me: failed program was:" >&5
23208 sed 's/^/| /' conftest.$ac_ext >&5
23209
23210         gt_cv_func_CFLocaleCopyCurrent=no
23211 fi
23212
23213 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23214       conftest$ac_exeext conftest.$ac_ext
23215      CPPFLAGS="$gt_save_CPPFLAGS"
23216      LIBS="$gt_save_LIBS"
23217 fi
23218 { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
23219 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
23220   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
23221
23222 cat >>confdefs.h <<\_ACEOF
23223 #define HAVE_CFLOCALECOPYCURRENT 1
23224 _ACEOF
23225
23226   fi
23227   INTL_MACOSX_LIBS=
23228   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
23229     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
23230   fi
23231
23232
23233
23234
23235   { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
23236 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
23237     # Check whether --enable-nls was given.
23238 if test "${enable_nls+set}" = set; then
23239   enableval=$enable_nls; USE_NLS=$enableval
23240 else
23241   USE_NLS=yes
23242 fi
23243
23244   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
23245 echo "${ECHO_T}$USE_NLS" >&6; }
23246
23247
23248
23249
23250     BUILD_INCLUDED_LIBINTL=no
23251     USE_INCLUDED_LIBINTL=no
23252
23253   LIBINTL=
23254   LTLIBINTL=
23255   POSUB=
23256
23257     if test "$USE_NLS" = "yes"; then
23258     gt_use_preinstalled_gnugettext=no
23259
23260       { echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
23261 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6; }
23262
23263 # Check whether --with-included-gettext was given.
23264 if test "${with_included_gettext+set}" = set; then
23265   withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
23266 else
23267   nls_cv_force_use_gnu_gettext=no
23268 fi
23269
23270       { echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
23271 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6; }
23272
23273       nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
23274       if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
23275
23276
23277
23278
23279
23280
23281         { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
23282 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
23283 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
23284   echo $ECHO_N "(cached) $ECHO_C" >&6
23285 else
23286   cat >conftest.$ac_ext <<_ACEOF
23287 /* confdefs.h.  */
23288 _ACEOF
23289 cat confdefs.h >>conftest.$ac_ext
23290 cat >>conftest.$ac_ext <<_ACEOF
23291 /* end confdefs.h.  */
23292 #include <libintl.h>
23293 extern int _nl_msg_cat_cntr;
23294 extern int *_nl_domain_bindings;
23295 int
23296 main ()
23297 {
23298 bindtextdomain ("", "");
23299 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
23300   ;
23301   return 0;
23302 }
23303 _ACEOF
23304 rm -f conftest.$ac_objext conftest$ac_exeext
23305 if { (ac_try="$ac_link"
23306 case "(($ac_try" in
23307   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23308   *) ac_try_echo=$ac_try;;
23309 esac
23310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23311   (eval "$ac_link") 2>conftest.er1
23312   ac_status=$?
23313   grep -v '^ *+' conftest.er1 >conftest.err
23314   rm -f conftest.er1
23315   cat conftest.err >&5
23316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23317   (exit $ac_status); } && {
23318          test -z "$ac_c_werror_flag" ||
23319          test ! -s conftest.err
23320        } && test -s conftest$ac_exeext &&
23321        $as_test_x conftest$ac_exeext; then
23322   gt_cv_func_gnugettext1_libc=yes
23323 else
23324   echo "$as_me: failed program was:" >&5
23325 sed 's/^/| /' conftest.$ac_ext >&5
23326
23327         gt_cv_func_gnugettext1_libc=no
23328 fi
23329
23330 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23331       conftest$ac_exeext conftest.$ac_ext
23332 fi
23333 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
23334 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
23335
23336         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
23337
23338
23339
23340     use_additional=yes
23341
23342   acl_save_prefix="$prefix"
23343   prefix="$acl_final_prefix"
23344   acl_save_exec_prefix="$exec_prefix"
23345   exec_prefix="$acl_final_exec_prefix"
23346
23347     eval additional_includedir=\"$includedir\"
23348     eval additional_libdir=\"$libdir\"
23349
23350   exec_prefix="$acl_save_exec_prefix"
23351   prefix="$acl_save_prefix"
23352
23353
23354 # Check whether --with-libintl-prefix was given.
23355 if test "${with_libintl_prefix+set}" = set; then
23356   withval=$with_libintl_prefix;
23357     if test "X$withval" = "Xno"; then
23358       use_additional=no
23359     else
23360       if test "X$withval" = "X"; then
23361
23362   acl_save_prefix="$prefix"
23363   prefix="$acl_final_prefix"
23364   acl_save_exec_prefix="$exec_prefix"
23365   exec_prefix="$acl_final_exec_prefix"
23366
23367           eval additional_includedir=\"$includedir\"
23368           eval additional_libdir=\"$libdir\"
23369
23370   exec_prefix="$acl_save_exec_prefix"
23371   prefix="$acl_save_prefix"
23372
23373       else
23374         additional_includedir="$withval/include"
23375         additional_libdir="$withval/lib"
23376       fi
23377     fi
23378
23379 fi
23380
23381       LIBINTL=
23382   LTLIBINTL=
23383   INCINTL=
23384   rpathdirs=
23385   ltrpathdirs=
23386   names_already_handled=
23387   names_next_round='intl '
23388   while test -n "$names_next_round"; do
23389     names_this_round="$names_next_round"
23390     names_next_round=
23391     for name in $names_this_round; do
23392       already_handled=
23393       for n in $names_already_handled; do
23394         if test "$n" = "$name"; then
23395           already_handled=yes
23396           break
23397         fi
23398       done
23399       if test -z "$already_handled"; then
23400         names_already_handled="$names_already_handled $name"
23401                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
23402         eval value=\"\$HAVE_LIB$uppername\"
23403         if test -n "$value"; then
23404           if test "$value" = yes; then
23405             eval value=\"\$LIB$uppername\"
23406             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
23407             eval value=\"\$LTLIB$uppername\"
23408             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
23409           else
23410                                     :
23411           fi
23412         else
23413                               found_dir=
23414           found_la=
23415           found_so=
23416           found_a=
23417           if test $use_additional = yes; then
23418             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
23419               found_dir="$additional_libdir"
23420               found_so="$additional_libdir/lib$name.$shlibext"
23421               if test -f "$additional_libdir/lib$name.la"; then
23422                 found_la="$additional_libdir/lib$name.la"
23423               fi
23424             else
23425               if test -f "$additional_libdir/lib$name.$libext"; then
23426                 found_dir="$additional_libdir"
23427                 found_a="$additional_libdir/lib$name.$libext"
23428                 if test -f "$additional_libdir/lib$name.la"; then
23429                   found_la="$additional_libdir/lib$name.la"
23430                 fi
23431               fi
23432             fi
23433           fi
23434           if test "X$found_dir" = "X"; then
23435             for x in $LDFLAGS $LTLIBINTL; do
23436
23437   acl_save_prefix="$prefix"
23438   prefix="$acl_final_prefix"
23439   acl_save_exec_prefix="$exec_prefix"
23440   exec_prefix="$acl_final_exec_prefix"
23441   eval x=\"$x\"
23442   exec_prefix="$acl_save_exec_prefix"
23443   prefix="$acl_save_prefix"
23444
23445               case "$x" in
23446                 -L*)
23447                   dir=`echo "X$x" | sed -e 's/^X-L//'`
23448                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
23449                     found_dir="$dir"
23450                     found_so="$dir/lib$name.$shlibext"
23451                     if test -f "$dir/lib$name.la"; then
23452                       found_la="$dir/lib$name.la"
23453                     fi
23454                   else
23455                     if test -f "$dir/lib$name.$libext"; then
23456                       found_dir="$dir"
23457                       found_a="$dir/lib$name.$libext"
23458                       if test -f "$dir/lib$name.la"; then
23459                         found_la="$dir/lib$name.la"
23460                       fi
23461                     fi
23462                   fi
23463                   ;;
23464               esac
23465               if test "X$found_dir" != "X"; then
23466                 break
23467               fi
23468             done
23469           fi
23470           if test "X$found_dir" != "X"; then
23471                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
23472             if test "X$found_so" != "X"; then
23473                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
23474                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23475               else
23476                                                                                 haveit=
23477                 for x in $ltrpathdirs; do
23478                   if test "X$x" = "X$found_dir"; then
23479                     haveit=yes
23480                     break
23481                   fi
23482                 done
23483                 if test -z "$haveit"; then
23484                   ltrpathdirs="$ltrpathdirs $found_dir"
23485                 fi
23486                                 if test "$hardcode_direct" = yes; then
23487                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23488                 else
23489                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
23490                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23491                                                             haveit=
23492                     for x in $rpathdirs; do
23493                       if test "X$x" = "X$found_dir"; then
23494                         haveit=yes
23495                         break
23496                       fi
23497                     done
23498                     if test -z "$haveit"; then
23499                       rpathdirs="$rpathdirs $found_dir"
23500                     fi
23501                   else
23502                                                                                 haveit=
23503                     for x in $LDFLAGS $LIBINTL; do
23504
23505   acl_save_prefix="$prefix"
23506   prefix="$acl_final_prefix"
23507   acl_save_exec_prefix="$exec_prefix"
23508   exec_prefix="$acl_final_exec_prefix"
23509   eval x=\"$x\"
23510   exec_prefix="$acl_save_exec_prefix"
23511   prefix="$acl_save_prefix"
23512
23513                       if test "X$x" = "X-L$found_dir"; then
23514                         haveit=yes
23515                         break
23516                       fi
23517                     done
23518                     if test -z "$haveit"; then
23519                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
23520                     fi
23521                     if test "$hardcode_minus_L" != no; then
23522                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23523                     else
23524                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
23525                     fi
23526                   fi
23527                 fi
23528               fi
23529             else
23530               if test "X$found_a" != "X"; then
23531                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
23532               else
23533                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
23534               fi
23535             fi
23536                         additional_includedir=
23537             case "$found_dir" in
23538               */lib | */lib/)
23539                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
23540                 additional_includedir="$basedir/include"
23541                 ;;
23542             esac
23543             if test "X$additional_includedir" != "X"; then
23544                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
23545                 haveit=
23546                 if test "X$additional_includedir" = "X/usr/local/include"; then
23547                   if test -n "$GCC"; then
23548                     case $host_os in
23549                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
23550                     esac
23551                   fi
23552                 fi
23553                 if test -z "$haveit"; then
23554                   for x in $CPPFLAGS $INCINTL; do
23555
23556   acl_save_prefix="$prefix"
23557   prefix="$acl_final_prefix"
23558   acl_save_exec_prefix="$exec_prefix"
23559   exec_prefix="$acl_final_exec_prefix"
23560   eval x=\"$x\"
23561   exec_prefix="$acl_save_exec_prefix"
23562   prefix="$acl_save_prefix"
23563
23564                     if test "X$x" = "X-I$additional_includedir"; then
23565                       haveit=yes
23566                       break
23567                     fi
23568                   done
23569                   if test -z "$haveit"; then
23570                     if test -d "$additional_includedir"; then
23571                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
23572                     fi
23573                   fi
23574                 fi
23575               fi
23576             fi
23577                         if test -n "$found_la"; then
23578                                                         save_libdir="$libdir"
23579               case "$found_la" in
23580                 */* | *\\*) . "$found_la" ;;
23581                 *) . "./$found_la" ;;
23582               esac
23583               libdir="$save_libdir"
23584                             for dep in $dependency_libs; do
23585                 case "$dep" in
23586                   -L*)
23587                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
23588                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
23589                       haveit=
23590                       if test "X$additional_libdir" = "X/usr/local/lib"; then
23591                         if test -n "$GCC"; then
23592                           case $host_os in
23593                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
23594                           esac
23595                         fi
23596                       fi
23597                       if test -z "$haveit"; then
23598                         haveit=
23599                         for x in $LDFLAGS $LIBINTL; do
23600
23601   acl_save_prefix="$prefix"
23602   prefix="$acl_final_prefix"
23603   acl_save_exec_prefix="$exec_prefix"
23604   exec_prefix="$acl_final_exec_prefix"
23605   eval x=\"$x\"
23606   exec_prefix="$acl_save_exec_prefix"
23607   prefix="$acl_save_prefix"
23608
23609                           if test "X$x" = "X-L$additional_libdir"; then
23610                             haveit=yes
23611                             break
23612                           fi
23613                         done
23614                         if test -z "$haveit"; then
23615                           if test -d "$additional_libdir"; then
23616                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
23617                           fi
23618                         fi
23619                         haveit=
23620                         for x in $LDFLAGS $LTLIBINTL; do
23621
23622   acl_save_prefix="$prefix"
23623   prefix="$acl_final_prefix"
23624   acl_save_exec_prefix="$exec_prefix"
23625   exec_prefix="$acl_final_exec_prefix"
23626   eval x=\"$x\"
23627   exec_prefix="$acl_save_exec_prefix"
23628   prefix="$acl_save_prefix"
23629
23630                           if test "X$x" = "X-L$additional_libdir"; then
23631                             haveit=yes
23632                             break
23633                           fi
23634                         done
23635                         if test -z "$haveit"; then
23636                           if test -d "$additional_libdir"; then
23637                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
23638                           fi
23639                         fi
23640                       fi
23641                     fi
23642                     ;;
23643                   -R*)
23644                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
23645                     if test "$enable_rpath" != no; then
23646                                                                   haveit=
23647                       for x in $rpathdirs; do
23648                         if test "X$x" = "X$dir"; then
23649                           haveit=yes
23650                           break
23651                         fi
23652                       done
23653                       if test -z "$haveit"; then
23654                         rpathdirs="$rpathdirs $dir"
23655                       fi
23656                                                                   haveit=
23657                       for x in $ltrpathdirs; do
23658                         if test "X$x" = "X$dir"; then
23659                           haveit=yes
23660                           break
23661                         fi
23662                       done
23663                       if test -z "$haveit"; then
23664                         ltrpathdirs="$ltrpathdirs $dir"
23665                       fi
23666                     fi
23667                     ;;
23668                   -l*)
23669                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
23670                     ;;
23671                   *.la)
23672                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
23673                     ;;
23674                   *)
23675                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
23676                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
23677                     ;;
23678                 esac
23679               done
23680             fi
23681           else
23682                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
23683             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
23684           fi
23685         fi
23686       fi
23687     done
23688   done
23689   if test "X$rpathdirs" != "X"; then
23690     if test -n "$hardcode_libdir_separator"; then
23691                         alldirs=
23692       for found_dir in $rpathdirs; do
23693         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
23694       done
23695             acl_save_libdir="$libdir"
23696       libdir="$alldirs"
23697       eval flag=\"$hardcode_libdir_flag_spec\"
23698       libdir="$acl_save_libdir"
23699       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
23700     else
23701             for found_dir in $rpathdirs; do
23702         acl_save_libdir="$libdir"
23703         libdir="$found_dir"
23704         eval flag=\"$hardcode_libdir_flag_spec\"
23705         libdir="$acl_save_libdir"
23706         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
23707       done
23708     fi
23709   fi
23710   if test "X$ltrpathdirs" != "X"; then
23711             for found_dir in $ltrpathdirs; do
23712       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
23713     done
23714   fi
23715
23716           { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
23717 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
23718 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
23719   echo $ECHO_N "(cached) $ECHO_C" >&6
23720 else
23721   gt_save_CPPFLAGS="$CPPFLAGS"
23722             CPPFLAGS="$CPPFLAGS $INCINTL"
23723             gt_save_LIBS="$LIBS"
23724             LIBS="$LIBS $LIBINTL"
23725                         cat >conftest.$ac_ext <<_ACEOF
23726 /* confdefs.h.  */
23727 _ACEOF
23728 cat confdefs.h >>conftest.$ac_ext
23729 cat >>conftest.$ac_ext <<_ACEOF
23730 /* end confdefs.h.  */
23731 #include <libintl.h>
23732 extern int _nl_msg_cat_cntr;
23733 extern
23734 #ifdef __cplusplus
23735 "C"
23736 #endif
23737 const char *_nl_expand_alias (const char *);
23738 int
23739 main ()
23740 {
23741 bindtextdomain ("", "");
23742 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
23743   ;
23744   return 0;
23745 }
23746 _ACEOF
23747 rm -f conftest.$ac_objext conftest$ac_exeext
23748 if { (ac_try="$ac_link"
23749 case "(($ac_try" in
23750   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23751   *) ac_try_echo=$ac_try;;
23752 esac
23753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23754   (eval "$ac_link") 2>conftest.er1
23755   ac_status=$?
23756   grep -v '^ *+' conftest.er1 >conftest.err
23757   rm -f conftest.er1
23758   cat conftest.err >&5
23759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23760   (exit $ac_status); } && {
23761          test -z "$ac_c_werror_flag" ||
23762          test ! -s conftest.err
23763        } && test -s conftest$ac_exeext &&
23764        $as_test_x conftest$ac_exeext; then
23765   gt_cv_func_gnugettext1_libintl=yes
23766 else
23767   echo "$as_me: failed program was:" >&5
23768 sed 's/^/| /' conftest.$ac_ext >&5
23769
23770         gt_cv_func_gnugettext1_libintl=no
23771 fi
23772
23773 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23774       conftest$ac_exeext conftest.$ac_ext
23775                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
23776               LIBS="$LIBS $LIBICONV"
23777               cat >conftest.$ac_ext <<_ACEOF
23778 /* confdefs.h.  */
23779 _ACEOF
23780 cat confdefs.h >>conftest.$ac_ext
23781 cat >>conftest.$ac_ext <<_ACEOF
23782 /* end confdefs.h.  */
23783 #include <libintl.h>
23784 extern int _nl_msg_cat_cntr;
23785 extern
23786 #ifdef __cplusplus
23787 "C"
23788 #endif
23789 const char *_nl_expand_alias (const char *);
23790 int
23791 main ()
23792 {
23793 bindtextdomain ("", "");
23794 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
23795   ;
23796   return 0;
23797 }
23798 _ACEOF
23799 rm -f conftest.$ac_objext conftest$ac_exeext
23800 if { (ac_try="$ac_link"
23801 case "(($ac_try" in
23802   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23803   *) ac_try_echo=$ac_try;;
23804 esac
23805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23806   (eval "$ac_link") 2>conftest.er1
23807   ac_status=$?
23808   grep -v '^ *+' conftest.er1 >conftest.err
23809   rm -f conftest.er1
23810   cat conftest.err >&5
23811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23812   (exit $ac_status); } && {
23813          test -z "$ac_c_werror_flag" ||
23814          test ! -s conftest.err
23815        } && test -s conftest$ac_exeext &&
23816        $as_test_x conftest$ac_exeext; then
23817   LIBINTL="$LIBINTL $LIBICONV"
23818                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
23819                 gt_cv_func_gnugettext1_libintl=yes
23820
23821 else
23822   echo "$as_me: failed program was:" >&5
23823 sed 's/^/| /' conftest.$ac_ext >&5
23824
23825
23826 fi
23827
23828 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23829       conftest$ac_exeext conftest.$ac_ext
23830             fi
23831             CPPFLAGS="$gt_save_CPPFLAGS"
23832             LIBS="$gt_save_LIBS"
23833 fi
23834 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
23835 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
23836         fi
23837
23838                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
23839            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
23840                 && test "$PACKAGE" != gettext-runtime \
23841                 && test "$PACKAGE" != gettext-tools; }; then
23842           gt_use_preinstalled_gnugettext=yes
23843         else
23844                     LIBINTL=
23845           LTLIBINTL=
23846           INCINTL=
23847         fi
23848
23849
23850         if test "$gt_use_preinstalled_gnugettext" != "yes"; then
23851                               nls_cv_use_gnu_gettext=yes
23852         fi
23853       fi
23854
23855       if test "$nls_cv_use_gnu_gettext" = "yes"; then
23856                 BUILD_INCLUDED_LIBINTL=yes
23857         USE_INCLUDED_LIBINTL=yes
23858         LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
23859         LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
23860         LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
23861       fi
23862
23863       CATOBJEXT=
23864       if test "$gt_use_preinstalled_gnugettext" = "yes" \
23865          || test "$nls_cv_use_gnu_gettext" = "yes"; then
23866                 CATOBJEXT=.gmo
23867       fi
23868
23869
23870     if test -n "$INTL_MACOSX_LIBS"; then
23871       if test "$gt_use_preinstalled_gnugettext" = "yes" \
23872          || test "$nls_cv_use_gnu_gettext" = "yes"; then
23873                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
23874         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
23875       fi
23876     fi
23877
23878     if test "$gt_use_preinstalled_gnugettext" = "yes" \
23879        || test "$nls_cv_use_gnu_gettext" = "yes"; then
23880
23881 cat >>confdefs.h <<\_ACEOF
23882 #define ENABLE_NLS 1
23883 _ACEOF
23884
23885     else
23886       USE_NLS=no
23887     fi
23888   fi
23889
23890   { echo "$as_me:$LINENO: checking whether to use NLS" >&5
23891 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
23892   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
23893 echo "${ECHO_T}$USE_NLS" >&6; }
23894   if test "$USE_NLS" = "yes"; then
23895     { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
23896 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
23897     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
23898       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
23899         gt_source="external libintl"
23900       else
23901         gt_source="libc"
23902       fi
23903     else
23904       gt_source="included intl directory"
23905     fi
23906     { echo "$as_me:$LINENO: result: $gt_source" >&5
23907 echo "${ECHO_T}$gt_source" >&6; }
23908   fi
23909
23910   if test "$USE_NLS" = "yes"; then
23911
23912     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
23913       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
23914         { echo "$as_me:$LINENO: checking how to link with libintl" >&5
23915 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
23916         { echo "$as_me:$LINENO: result: $LIBINTL" >&5
23917 echo "${ECHO_T}$LIBINTL" >&6; }
23918
23919   for element in $INCINTL; do
23920     haveit=
23921     for x in $CPPFLAGS; do
23922
23923   acl_save_prefix="$prefix"
23924   prefix="$acl_final_prefix"
23925   acl_save_exec_prefix="$exec_prefix"
23926   exec_prefix="$acl_final_exec_prefix"
23927   eval x=\"$x\"
23928   exec_prefix="$acl_save_exec_prefix"
23929   prefix="$acl_save_prefix"
23930
23931       if test "X$x" = "X$element"; then
23932         haveit=yes
23933         break
23934       fi
23935     done
23936     if test -z "$haveit"; then
23937       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
23938     fi
23939   done
23940
23941       fi
23942
23943
23944 cat >>confdefs.h <<\_ACEOF
23945 #define HAVE_GETTEXT 1
23946 _ACEOF
23947
23948
23949 cat >>confdefs.h <<\_ACEOF
23950 #define HAVE_DCGETTEXT 1
23951 _ACEOF
23952
23953     fi
23954
23955         POSUB=po
23956   fi
23957
23958
23959             if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
23960       BUILD_INCLUDED_LIBINTL=yes
23961     fi
23962
23963
23964
23965
23966
23967         nls_cv_header_intl=
23968     nls_cv_header_libgt=
23969
23970         DATADIRNAME=share
23971
23972
23973         INSTOBJEXT=.mo
23974
23975
23976         GENCAT=gencat
23977
23978
23979         INTLOBJS=
23980     if test "$USE_INCLUDED_LIBINTL" = yes; then
23981       INTLOBJS="\$(GETTOBJS)"
23982     fi
23983
23984
23985         INTL_LIBTOOL_SUFFIX_PREFIX=
23986
23987
23988
23989     INTLLIBS="$LIBINTL"
23990
23991
23992
23993
23994
23995
23996 fi
23997
23998 support_mysql=no
23999 support_sqlite=no
24000 support_sqlite3=no
24001 support_postgresql=no
24002 support_dbi=no
24003 support_smartalloc=yes
24004 support_readline=yes
24005 support_conio=yes
24006 support_gnome=no
24007 support_bat=no
24008 support_wx_console=no
24009 support_tray_monitor=no
24010 support_tls=no
24011 support_crypto=no
24012 gnome_version=
24013 wx_version=
24014 support_static_tools=no
24015 support_static_fd=no
24016 support_static_sd=no
24017 support_static_dir=no
24018 support_static_cons=no
24019 support_python=no
24020 build_client_only=no
24021 build_dird=yes
24022 build_stored=yes
24023 cats=
24024 db_type=Internal
24025 support_lockmgr=no
24026 DB_TYPE=bdb
24027
24028
24029 # Check whether --enable-gnome was given.
24030 if test "${enable_gnome+set}" = set; then
24031   enableval=$enable_gnome;
24032        if test x$enableval = xyes; then
24033           support_gnome=yes
24034        fi
24035
24036
24037 fi
24038
24039
24040 GNOME_DIR=
24041 if test x$support_gnome = xyes; then
24042    abc=`$PKGCONFIG --exists libgnomeui-2.0`
24043    pkg=$?
24044    if test $pkg = 0; then
24045       GNOME_INCLUDEDIR=`$PKGCONFIG --cflags-only-I libgnomeui-2.0`
24046       GNOMEUI_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
24047       GNOME_LIBDIR=`$PKGCONFIG --libs libgnomeui-2.0`
24048       GNOME_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
24049
24050
24051
24052
24053       GNOME_DIR=src/gnome2-console
24054       gnome_version="Version 2.x"
24055    else
24056       { { echo "$as_me:$LINENO: error: Unable to find Gnome 2 installation" >&5
24057 echo "$as_me: error: Unable to find Gnome 2 installation" >&2;}
24058    { (exit 1); exit 1; }; }
24059    fi
24060 fi
24061
24062
24063 # Check whether --enable-bat was given.
24064 if test "${enable_bat+set}" = set; then
24065   enableval=$enable_bat;
24066        if test x$enableval = xyes; then
24067
24068 cat >>confdefs.h <<\_ACEOF
24069 #define HAVE_BAT 1
24070 _ACEOF
24071
24072           support_bat=yes
24073        fi
24074
24075
24076 fi
24077
24078
24079 BAT_DIR=
24080 if test x$support_bat = xyes; then
24081    abc=`$PKGCONFIG --atleast-version=4.2 QtGui`
24082    pkg=$?
24083    if test $pkg = 0; then
24084       BAT_DIR=src/qt-console
24085    else
24086       { { echo "$as_me:$LINENO: error: Unable to find Qt4 installation needed by bat" >&5
24087 echo "$as_me: error: Unable to find Qt4 installation needed by bat" >&2;}
24088    { (exit 1); exit 1; }; }
24089    fi
24090 fi
24091
24092 got_qwt=no
24093 QWT_INC=
24094 QWT_LDFLAGS=
24095 QWT_LIB=
24096 QWT=
24097 no_qwt=no
24098 if test x$support_bat = xyes; then
24099    { echo "$as_me:$LINENO: checking for qwt support" >&5
24100 echo $ECHO_N "checking for qwt support... $ECHO_C" >&6; }
24101
24102 # Check whether --with-qwt was given.
24103 if test "${with_qwt+set}" = set; then
24104   withval=$with_qwt;
24105           case "$with_qwt" in
24106           no)
24107              no_qwt=yes
24108              ;;
24109           yes|*)
24110              if test -f ${with_qwt}/include/qwt.h; then
24111                 QWT_INC="${with_qwt}/include"
24112                 QWT_LDFLAGS="-L${with_qwt}/lib"
24113                 QWT_LIB="-lqwt"
24114                 QWT="qwt"
24115              fi
24116              ;;
24117           esac
24118
24119
24120 fi
24121
24122
24123             if test $no_qwt = no; then
24124       if test x$QWT_INC = x; then
24125          for root in /usr /usr/local; do
24126             for ver in qwt qwt5 qwt-qt4; do
24127                if test -f ${root}/include/${ver}/qwt.h; then
24128                   QWT_INC="${root}/include/${ver}"
24129                   if test -d ${root}/lib64/; then
24130                      QWT_LDFLAGS="-L${root}/lib64"
24131                   elif test -d ${root}/lib/64/; then
24132                      QWT_LDFLAGS="-L${root}/64"
24133                   else
24134                      QWT_LDFLAGS="-L${root}/lib"
24135                   fi
24136                   QWT_LIB="-lqwt"
24137                   QWT="qwt"
24138                   got_qwt=yes
24139                   break;
24140                fi
24141             done
24142          done
24143       fi
24144    fi
24145    if test x$QWT_INC = x; then
24146       { echo "$as_me:$LINENO: result: no" >&5
24147 echo "${ECHO_T}no" >&6; }
24148    else
24149
24150 cat >>confdefs.h <<\_ACEOF
24151 #define HAVE_QWT 1
24152 _ACEOF
24153
24154       { echo "$as_me:$LINENO: result: yes" >&5
24155 echo "${ECHO_T}yes" >&6; }
24156    fi
24157 fi
24158
24159
24160
24161
24162
24163
24164
24165 # Check whether --enable-bwx-console was given.
24166 if test "${enable_bwx_console+set}" = set; then
24167   enableval=$enable_bwx_console;
24168        if test x$enableval = xyes; then
24169           support_wx_console=yes
24170        fi
24171
24172
24173 fi
24174
24175
24176 WX_DIR=
24177 if test x$support_wx_console = xyes; then
24178    abc=`$WXCONFIG $WXFLAGS --cppflags`
24179    pkg=$?
24180    if test $pkg = 0; then
24181       wx_version="wxWidgets `$WXCONFIG $WXFLAGS --release`"
24182       WXCONS_CPPFLAGS=`$WXCONFIG $WXFLAGS --cppflags`
24183       WXCONS_LDFLAGS=`$WXCONFIG $WXFLAGS --libs`
24184
24185
24186
24187       WX_DIR="src/wx-console"
24188    else
24189       echo " "
24190       echo "wx-config program not found. bwx-console disabled."
24191       echo " "
24192       support_wx_console=no
24193    fi
24194 fi
24195
24196
24197 # Check whether --enable-tray-monitor was given.
24198 if test "${enable_tray_monitor+set}" = set; then
24199   enableval=$enable_tray_monitor;
24200        if test x$enableval = xyes; then
24201           support_tray_monitor=yes
24202        fi
24203
24204
24205 fi
24206
24207
24208 TRAY_MONITOR_DIR=
24209 if test x$support_tray_monitor = xyes; then
24210    abc=`$PKGCONFIG --exists gtk+-2.0`
24211    pkg=$?
24212    if test $pkg = 0; then
24213       TRAY_MONITOR_CPPFLAGS=`$PKGCONFIG --cflags gtk+-2.0`
24214       TRAY_MONITOR_LDFLAGS=`$PKGCONFIG --libs gtk+-2.0`
24215
24216
24217       TRAY_MONITOR_DIR=src/tray-monitor
24218       abc=`$PKGCONFIG --atleast-version=2.4 gtk+-2.0`
24219       pkg=$?
24220       if test $pkg = 0; then
24221
24222 cat >>confdefs.h <<\_ACEOF
24223 #define HAVE_GTK_2_4 1
24224 _ACEOF
24225
24226       fi
24227    fi
24228 fi
24229
24230
24231 # Check whether --enable-smartalloc was given.
24232 if test "${enable_smartalloc+set}" = set; then
24233   enableval=$enable_smartalloc;
24234        if test x$enableval = xno; then
24235           support_smartalloc=no
24236        fi
24237
24238
24239 fi
24240
24241
24242 if test x$support_smartalloc = xyes; then
24243
24244 cat >>confdefs.h <<\_ACEOF
24245 #define SMARTALLOC 1
24246 _ACEOF
24247
24248 fi
24249
24250 # Check whether --enable-lockmgr was given.
24251 if test "${enable_lockmgr+set}" = set; then
24252   enableval=$enable_lockmgr;
24253        if test x$enableval = xyes; then
24254           support_lockmgr=yes
24255        fi
24256
24257
24258 fi
24259
24260
24261 if test x$support_lockmgr = xyes; then
24262
24263 cat >>confdefs.h <<\_ACEOF
24264 #define _USE_LOCKMGR 1
24265 _ACEOF
24266
24267 fi
24268
24269
24270 # Check whether --enable-static-tools was given.
24271 if test "${enable_static_tools+set}" = set; then
24272   enableval=$enable_static_tools;
24273        if test x$enableval = xyes; then
24274           if test x$use_libtool = xyes; then
24275              echo "Libtool is enabled, not compatible with static tools, please rerun configure with --disable-libtool"
24276              exit 1
24277           fi
24278           support_static_tools=yes
24279        fi
24280
24281
24282 fi
24283
24284
24285 TTOOL_LDFLAGS=
24286 if test x$support_static_tools = xyes; then
24287    TTOOL_LDFLAGS="-static"
24288 fi
24289
24290
24291 # Check whether --enable-static-fd was given.
24292 if test "${enable_static_fd+set}" = set; then
24293   enableval=$enable_static_fd;
24294        if test x$enableval = xyes; then
24295           if test x$use_libtool = xyes; then
24296              echo "Libtool is enabled, not compatible with static tools, please rerun configure with --disable-libtool"
24297              exit 1
24298           fi
24299           support_static_fd=yes
24300        fi
24301
24302
24303 fi
24304
24305
24306 STATIC_FD=
24307 if test x$support_static_fd = xyes; then
24308    STATIC_FD="static-bacula-fd"
24309 fi
24310
24311
24312 # Check whether --enable-static-sd was given.
24313 if test "${enable_static_sd+set}" = set; then
24314   enableval=$enable_static_sd;
24315        if test x$enableval = xyes; then
24316           if test x$use_libtool = xyes; then
24317              echo "Libtool is enabled, not compatible with static tools, please rerun configure with --disable-libtool"
24318              exit 1
24319           fi
24320           support_static_sd=yes
24321        fi
24322
24323
24324 fi
24325
24326
24327 STATIC_SD=
24328 if test x$support_static_sd = xyes; then
24329    STATIC_SD="static-bacula-sd"
24330 fi
24331
24332
24333 # Check whether --enable-static-dir was given.
24334 if test "${enable_static_dir+set}" = set; then
24335   enableval=$enable_static_dir;
24336        if test x$enableval = xyes; then
24337           if test x$use_libtool = xyes; then
24338              echo "Libtool is enabled, not compatible with static tools, please rerun configure with --disable-libtool"
24339              exit 1
24340           fi
24341           support_static_dir=yes
24342        fi
24343
24344
24345 fi
24346
24347
24348 STATIC_DIR=
24349 if test x$support_static_dir = xyes; then
24350    STATIC_DIR="static-bacula-dir"
24351 fi
24352
24353
24354 # Check whether --enable-static-cons was given.
24355 if test "${enable_static_cons+set}" = set; then
24356   enableval=$enable_static_cons;
24357        if test x$enableval = xyes; then
24358           if test x$use_libtool = xyes; then
24359              echo "Libtool is enabled, not compatible with static tools, please rerun configure with --disable-libtool"
24360              exit 1
24361           fi
24362           support_static_cons=yes
24363        fi
24364
24365
24366 fi
24367
24368
24369 STATIC_CONS=
24370 STATIC_GNOME_CONS=
24371 STATIC_WX_CONS=
24372 if test x$support_static_cons = xyes; then
24373    STATIC_CONS="static-bconsole"
24374    STATIC_GNOME_CONS="static-bgnome-console"
24375    STATIC_WX_CONS="static-bwx-console"
24376 fi
24377
24378
24379
24380
24381 # Check whether --enable-client-only was given.
24382 if test "${enable_client_only+set}" = set; then
24383   enableval=$enable_client_only;
24384        if test x$enableval = xyes; then
24385           build_client_only=yes
24386           db_type=None
24387           DB_TYPE=none
24388        fi
24389
24390
24391 fi
24392
24393 if test x$build_client_only = xno; then
24394    ALL_DIRS="subdirs"
24395 else
24396    ALL_DIRS=""
24397 fi
24398
24399
24400 # Check whether --enable-build-dird was given.
24401 if test "${enable_build_dird+set}" = set; then
24402   enableval=$enable_build_dird;
24403        if test x$enableval = xno; then
24404           build_dird=no
24405        fi
24406
24407
24408 fi
24409
24410 if test x$build_dird = xyes; then
24411    DIRD_DIR="src/dird"
24412    DIR_TOOLS="DIRTOOLS"
24413 else
24414    DIRD_DIR=""
24415    DIR_TOOLS="NODIRTOOLS"
24416 fi
24417
24418
24419
24420 # Check whether --enable-build-stored was given.
24421 if test "${enable_build_stored+set}" = set; then
24422   enableval=$enable_build_stored;
24423       if test x$enableval = xno; then
24424          build_stored=no
24425       fi
24426
24427
24428 fi
24429
24430 if test x$build_stored = xyes; then
24431    STORED_DIR="src/stored"
24432 else
24433    STORED_DIR=""
24434 fi
24435
24436
24437 # Check whether --enable-conio was given.
24438 if test "${enable_conio+set}" = set; then
24439   enableval=$enable_conio;
24440        if test x$enableval = xno; then
24441           support_conio=no
24442        fi
24443
24444
24445 fi
24446
24447
24448
24449 support_ipv6=yes
24450 # Check whether --enable-ipv6 was given.
24451 if test "${enable_ipv6+set}" = set; then
24452   enableval=$enable_ipv6;
24453        if test x$enableval = xno; then
24454           support_ipv6=no
24455        fi
24456
24457
24458 fi
24459
24460
24461 if test x$support_ipv6 = xyes; then
24462     cat >conftest.$ac_ext <<_ACEOF
24463 /* confdefs.h.  */
24464 _ACEOF
24465 cat confdefs.h >>conftest.$ac_ext
24466 cat >>conftest.$ac_ext <<_ACEOF
24467 /* end confdefs.h.  */
24468  #include <sys/types.h>
24469 #include <sys/socket.h>
24470 #include <netinet/in.h>
24471 int
24472 main ()
24473 {
24474 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] = 0;
24475   ;
24476   return 0;
24477 }
24478 _ACEOF
24479 rm -f conftest.$ac_objext conftest$ac_exeext
24480 if { (ac_try="$ac_link"
24481 case "(($ac_try" in
24482   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24483   *) ac_try_echo=$ac_try;;
24484 esac
24485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24486   (eval "$ac_link") 2>conftest.er1
24487   ac_status=$?
24488   grep -v '^ *+' conftest.er1 >conftest.err
24489   rm -f conftest.er1
24490   cat conftest.err >&5
24491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24492   (exit $ac_status); } && {
24493          test -z "$ac_c_werror_flag" ||
24494          test ! -s conftest.err
24495        } && test -s conftest$ac_exeext &&
24496        $as_test_x conftest$ac_exeext; then
24497   support_ipv6=yes
24498 else
24499   echo "$as_me: failed program was:" >&5
24500 sed 's/^/| /' conftest.$ac_ext >&5
24501
24502         support_ipv6=no
24503 fi
24504
24505 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24506       conftest$ac_exeext conftest.$ac_ext
24507 fi
24508
24509 if test x$support_ipv6 = xyes; then
24510
24511 cat >>confdefs.h <<\_ACEOF
24512 #define HAVE_IPV6 1
24513 _ACEOF
24514
24515 fi
24516
24517 got_conio="no"
24518 if test x$support_conio = xyes; then
24519    if test "${ac_cv_header_termcap_h+set}" = set; then
24520   { echo "$as_me:$LINENO: checking for termcap.h" >&5
24521 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6; }
24522 if test "${ac_cv_header_termcap_h+set}" = set; then
24523   echo $ECHO_N "(cached) $ECHO_C" >&6
24524 fi
24525 { echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
24526 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6; }
24527 else
24528   # Is the header compilable?
24529 { echo "$as_me:$LINENO: checking termcap.h usability" >&5
24530 echo $ECHO_N "checking termcap.h usability... $ECHO_C" >&6; }
24531 cat >conftest.$ac_ext <<_ACEOF
24532 /* confdefs.h.  */
24533 _ACEOF
24534 cat confdefs.h >>conftest.$ac_ext
24535 cat >>conftest.$ac_ext <<_ACEOF
24536 /* end confdefs.h.  */
24537 $ac_includes_default
24538 #include <termcap.h>
24539 _ACEOF
24540 rm -f conftest.$ac_objext
24541 if { (ac_try="$ac_compile"
24542 case "(($ac_try" in
24543   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24544   *) ac_try_echo=$ac_try;;
24545 esac
24546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24547   (eval "$ac_compile") 2>conftest.er1
24548   ac_status=$?
24549   grep -v '^ *+' conftest.er1 >conftest.err
24550   rm -f conftest.er1
24551   cat conftest.err >&5
24552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24553   (exit $ac_status); } && {
24554          test -z "$ac_c_werror_flag" ||
24555          test ! -s conftest.err
24556        } && test -s conftest.$ac_objext; then
24557   ac_header_compiler=yes
24558 else
24559   echo "$as_me: failed program was:" >&5
24560 sed 's/^/| /' conftest.$ac_ext >&5
24561
24562         ac_header_compiler=no
24563 fi
24564
24565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24566 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24567 echo "${ECHO_T}$ac_header_compiler" >&6; }
24568
24569 # Is the header present?
24570 { echo "$as_me:$LINENO: checking termcap.h presence" >&5
24571 echo $ECHO_N "checking termcap.h presence... $ECHO_C" >&6; }
24572 cat >conftest.$ac_ext <<_ACEOF
24573 /* confdefs.h.  */
24574 _ACEOF
24575 cat confdefs.h >>conftest.$ac_ext
24576 cat >>conftest.$ac_ext <<_ACEOF
24577 /* end confdefs.h.  */
24578 #include <termcap.h>
24579 _ACEOF
24580 if { (ac_try="$ac_cpp conftest.$ac_ext"
24581 case "(($ac_try" in
24582   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24583   *) ac_try_echo=$ac_try;;
24584 esac
24585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24586   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24587   ac_status=$?
24588   grep -v '^ *+' conftest.er1 >conftest.err
24589   rm -f conftest.er1
24590   cat conftest.err >&5
24591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24592   (exit $ac_status); } >/dev/null && {
24593          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24594          test ! -s conftest.err
24595        }; then
24596   ac_header_preproc=yes
24597 else
24598   echo "$as_me: failed program was:" >&5
24599 sed 's/^/| /' conftest.$ac_ext >&5
24600
24601   ac_header_preproc=no
24602 fi
24603
24604 rm -f conftest.err conftest.$ac_ext
24605 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24606 echo "${ECHO_T}$ac_header_preproc" >&6; }
24607
24608 # So?  What about this header?
24609 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24610   yes:no: )
24611     { echo "$as_me:$LINENO: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&5
24612 echo "$as_me: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24613     { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the compiler's result" >&5
24614 echo "$as_me: WARNING: termcap.h: proceeding with the compiler's result" >&2;}
24615     ac_header_preproc=yes
24616     ;;
24617   no:yes:* )
24618     { echo "$as_me:$LINENO: WARNING: termcap.h: present but cannot be compiled" >&5
24619 echo "$as_me: WARNING: termcap.h: present but cannot be compiled" >&2;}
24620     { echo "$as_me:$LINENO: WARNING: termcap.h:     check for missing prerequisite headers?" >&5
24621 echo "$as_me: WARNING: termcap.h:     check for missing prerequisite headers?" >&2;}
24622     { echo "$as_me:$LINENO: WARNING: termcap.h: see the Autoconf documentation" >&5
24623 echo "$as_me: WARNING: termcap.h: see the Autoconf documentation" >&2;}
24624     { echo "$as_me:$LINENO: WARNING: termcap.h:     section \"Present But Cannot Be Compiled\"" >&5
24625 echo "$as_me: WARNING: termcap.h:     section \"Present But Cannot Be Compiled\"" >&2;}
24626     { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the preprocessor's result" >&5
24627 echo "$as_me: WARNING: termcap.h: proceeding with the preprocessor's result" >&2;}
24628     { echo "$as_me:$LINENO: WARNING: termcap.h: in the future, the compiler will take precedence" >&5
24629 echo "$as_me: WARNING: termcap.h: in the future, the compiler will take precedence" >&2;}
24630
24631     ;;
24632 esac
24633 { echo "$as_me:$LINENO: checking for termcap.h" >&5
24634 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6; }
24635 if test "${ac_cv_header_termcap_h+set}" = set; then
24636   echo $ECHO_N "(cached) $ECHO_C" >&6
24637 else
24638   ac_cv_header_termcap_h=$ac_header_preproc
24639 fi
24640 { echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
24641 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6; }
24642
24643 fi
24644 if test $ac_cv_header_termcap_h = yes; then
24645    { echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
24646 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6; }
24647 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
24648   echo $ECHO_N "(cached) $ECHO_C" >&6
24649 else
24650   ac_check_lib_save_LIBS=$LIBS
24651 LIBS="-ltermcap  $LIBS"
24652 cat >conftest.$ac_ext <<_ACEOF
24653 /* confdefs.h.  */
24654 _ACEOF
24655 cat confdefs.h >>conftest.$ac_ext
24656 cat >>conftest.$ac_ext <<_ACEOF
24657 /* end confdefs.h.  */
24658
24659 /* Override any GCC internal prototype to avoid an error.
24660    Use char because int might match the return type of a GCC
24661    builtin and then its argument prototype would still apply.  */
24662 #ifdef __cplusplus
24663 extern "C"
24664 #endif
24665 char tgetent ();
24666 int
24667 main ()
24668 {
24669 return tgetent ();
24670   ;
24671   return 0;
24672 }
24673 _ACEOF
24674 rm -f conftest.$ac_objext conftest$ac_exeext
24675 if { (ac_try="$ac_link"
24676 case "(($ac_try" in
24677   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24678   *) ac_try_echo=$ac_try;;
24679 esac
24680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24681   (eval "$ac_link") 2>conftest.er1
24682   ac_status=$?
24683   grep -v '^ *+' conftest.er1 >conftest.err
24684   rm -f conftest.er1
24685   cat conftest.err >&5
24686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24687   (exit $ac_status); } && {
24688          test -z "$ac_c_werror_flag" ||
24689          test ! -s conftest.err
24690        } && test -s conftest$ac_exeext &&
24691        $as_test_x conftest$ac_exeext; then
24692   ac_cv_lib_termcap_tgetent=yes
24693 else
24694   echo "$as_me: failed program was:" >&5
24695 sed 's/^/| /' conftest.$ac_ext >&5
24696
24697         ac_cv_lib_termcap_tgetent=no
24698 fi
24699
24700 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24701       conftest$ac_exeext conftest.$ac_ext
24702 LIBS=$ac_check_lib_save_LIBS
24703 fi
24704 { echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
24705 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6; }
24706 if test $ac_cv_lib_termcap_tgetent = yes; then
24707    CONS_LIBS="-ltermcap"
24708     CONS_OBJ="conio.o"
24709     CONS_SRC="conio.c"
24710     got_conio="yes"
24711     support_readline=no
24712
24713 cat >>confdefs.h <<\_ACEOF
24714 #define HAVE_CONIO 1
24715 _ACEOF
24716
24717
24718 else
24719    { echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
24720 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6; }
24721 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
24722   echo $ECHO_N "(cached) $ECHO_C" >&6
24723 else
24724   ac_check_lib_save_LIBS=$LIBS
24725 LIBS="-lncurses  $LIBS"
24726 cat >conftest.$ac_ext <<_ACEOF
24727 /* confdefs.h.  */
24728 _ACEOF
24729 cat confdefs.h >>conftest.$ac_ext
24730 cat >>conftest.$ac_ext <<_ACEOF
24731 /* end confdefs.h.  */
24732
24733 /* Override any GCC internal prototype to avoid an error.
24734    Use char because int might match the return type of a GCC
24735    builtin and then its argument prototype would still apply.  */
24736 #ifdef __cplusplus
24737 extern "C"
24738 #endif
24739 char tgetent ();
24740 int
24741 main ()
24742 {
24743 return tgetent ();
24744   ;
24745   return 0;
24746 }
24747 _ACEOF
24748 rm -f conftest.$ac_objext conftest$ac_exeext
24749 if { (ac_try="$ac_link"
24750 case "(($ac_try" in
24751   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24752   *) ac_try_echo=$ac_try;;
24753 esac
24754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24755   (eval "$ac_link") 2>conftest.er1
24756   ac_status=$?
24757   grep -v '^ *+' conftest.er1 >conftest.err
24758   rm -f conftest.er1
24759   cat conftest.err >&5
24760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24761   (exit $ac_status); } && {
24762          test -z "$ac_c_werror_flag" ||
24763          test ! -s conftest.err
24764        } && test -s conftest$ac_exeext &&
24765        $as_test_x conftest$ac_exeext; then
24766   ac_cv_lib_ncurses_tgetent=yes
24767 else
24768   echo "$as_me: failed program was:" >&5
24769 sed 's/^/| /' conftest.$ac_ext >&5
24770
24771         ac_cv_lib_ncurses_tgetent=no
24772 fi
24773
24774 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24775       conftest$ac_exeext conftest.$ac_ext
24776 LIBS=$ac_check_lib_save_LIBS
24777 fi
24778 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
24779 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6; }
24780 if test $ac_cv_lib_ncurses_tgetent = yes; then
24781    CONS_LIBS="-lncurses"
24782       CONS_OBJ="conio.o"
24783       CONS_SRC="conio.c"
24784       got_conio="yes"
24785       support_readline=no
24786
24787 cat >>confdefs.h <<\_ACEOF
24788 #define HAVE_CONIO 1
24789 _ACEOF
24790
24791
24792 fi
24793
24794
24795 fi
24796
24797
24798 else
24799
24800
24801 for ac_header in curses.h
24802 do
24803 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24804 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24805   { echo "$as_me:$LINENO: checking for $ac_header" >&5
24806 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24807 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24808   echo $ECHO_N "(cached) $ECHO_C" >&6
24809 fi
24810 ac_res=`eval echo '${'$as_ac_Header'}'`
24811                { echo "$as_me:$LINENO: result: $ac_res" >&5
24812 echo "${ECHO_T}$ac_res" >&6; }
24813 else
24814   # Is the header compilable?
24815 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
24816 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
24817 cat >conftest.$ac_ext <<_ACEOF
24818 /* confdefs.h.  */
24819 _ACEOF
24820 cat confdefs.h >>conftest.$ac_ext
24821 cat >>conftest.$ac_ext <<_ACEOF
24822 /* end confdefs.h.  */
24823 $ac_includes_default
24824 #include <$ac_header>
24825 _ACEOF
24826 rm -f conftest.$ac_objext
24827 if { (ac_try="$ac_compile"
24828 case "(($ac_try" in
24829   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24830   *) ac_try_echo=$ac_try;;
24831 esac
24832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24833   (eval "$ac_compile") 2>conftest.er1
24834   ac_status=$?
24835   grep -v '^ *+' conftest.er1 >conftest.err
24836   rm -f conftest.er1
24837   cat conftest.err >&5
24838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24839   (exit $ac_status); } && {
24840          test -z "$ac_c_werror_flag" ||
24841          test ! -s conftest.err
24842        } && test -s conftest.$ac_objext; then
24843   ac_header_compiler=yes
24844 else
24845   echo "$as_me: failed program was:" >&5
24846 sed 's/^/| /' conftest.$ac_ext >&5
24847
24848         ac_header_compiler=no
24849 fi
24850
24851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24852 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24853 echo "${ECHO_T}$ac_header_compiler" >&6; }
24854
24855 # Is the header present?
24856 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
24857 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
24858 cat >conftest.$ac_ext <<_ACEOF
24859 /* confdefs.h.  */
24860 _ACEOF
24861 cat confdefs.h >>conftest.$ac_ext
24862 cat >>conftest.$ac_ext <<_ACEOF
24863 /* end confdefs.h.  */
24864 #include <$ac_header>
24865 _ACEOF
24866 if { (ac_try="$ac_cpp conftest.$ac_ext"
24867 case "(($ac_try" in
24868   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24869   *) ac_try_echo=$ac_try;;
24870 esac
24871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24872   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24873   ac_status=$?
24874   grep -v '^ *+' conftest.er1 >conftest.err
24875   rm -f conftest.er1
24876   cat conftest.err >&5
24877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24878   (exit $ac_status); } >/dev/null && {
24879          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24880          test ! -s conftest.err
24881        }; then
24882   ac_header_preproc=yes
24883 else
24884   echo "$as_me: failed program was:" >&5
24885 sed 's/^/| /' conftest.$ac_ext >&5
24886
24887   ac_header_preproc=no
24888 fi
24889
24890 rm -f conftest.err conftest.$ac_ext
24891 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24892 echo "${ECHO_T}$ac_header_preproc" >&6; }
24893
24894 # So?  What about this header?
24895 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24896   yes:no: )
24897     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24898 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24899     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24900 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24901     ac_header_preproc=yes
24902     ;;
24903   no:yes:* )
24904     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24905 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24906     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
24907 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
24908     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24909 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24910     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
24911 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
24912     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24913 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24914     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24915 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24916
24917     ;;
24918 esac
24919 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24920 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24921 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24922   echo $ECHO_N "(cached) $ECHO_C" >&6
24923 else
24924   eval "$as_ac_Header=\$ac_header_preproc"
24925 fi
24926 ac_res=`eval echo '${'$as_ac_Header'}'`
24927                { echo "$as_me:$LINENO: result: $ac_res" >&5
24928 echo "${ECHO_T}$ac_res" >&6; }
24929
24930 fi
24931 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24932   cat >>confdefs.h <<_ACEOF
24933 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24934 _ACEOF
24935
24936 fi
24937
24938 done
24939
24940     { echo "$as_me:$LINENO: checking for term.h" >&5
24941 echo $ECHO_N "checking for term.h... $ECHO_C" >&6; }
24942 if test "${ac_cv_header_term_h+set}" = set; then
24943   echo $ECHO_N "(cached) $ECHO_C" >&6
24944 else
24945   cat >conftest.$ac_ext <<_ACEOF
24946 /* confdefs.h.  */
24947 _ACEOF
24948 cat confdefs.h >>conftest.$ac_ext
24949 cat >>conftest.$ac_ext <<_ACEOF
24950 /* end confdefs.h.  */
24951 #if HAVE_CURSES_H
24952 #include <curses.h>
24953 #endif
24954
24955
24956 #include <term.h>
24957 _ACEOF
24958 rm -f conftest.$ac_objext
24959 if { (ac_try="$ac_compile"
24960 case "(($ac_try" in
24961   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24962   *) ac_try_echo=$ac_try;;
24963 esac
24964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24965   (eval "$ac_compile") 2>conftest.er1
24966   ac_status=$?
24967   grep -v '^ *+' conftest.er1 >conftest.err
24968   rm -f conftest.er1
24969   cat conftest.err >&5
24970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24971   (exit $ac_status); } && {
24972          test -z "$ac_c_werror_flag" ||
24973          test ! -s conftest.err
24974        } && test -s conftest.$ac_objext; then
24975   ac_cv_header_term_h=yes
24976 else
24977   echo "$as_me: failed program was:" >&5
24978 sed 's/^/| /' conftest.$ac_ext >&5
24979
24980         ac_cv_header_term_h=no
24981 fi
24982
24983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24984 fi
24985 { echo "$as_me:$LINENO: result: $ac_cv_header_term_h" >&5
24986 echo "${ECHO_T}$ac_cv_header_term_h" >&6; }
24987 if test $ac_cv_header_term_h = yes; then
24988    { echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
24989 echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6; }
24990 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
24991   echo $ECHO_N "(cached) $ECHO_C" >&6
24992 else
24993   ac_check_lib_save_LIBS=$LIBS
24994 LIBS="-lcurses  $LIBS"
24995 cat >conftest.$ac_ext <<_ACEOF
24996 /* confdefs.h.  */
24997 _ACEOF
24998 cat confdefs.h >>conftest.$ac_ext
24999 cat >>conftest.$ac_ext <<_ACEOF
25000 /* end confdefs.h.  */
25001
25002 /* Override any GCC internal prototype to avoid an error.
25003    Use char because int might match the return type of a GCC
25004    builtin and then its argument prototype would still apply.  */
25005 #ifdef __cplusplus
25006 extern "C"
25007 #endif
25008 char tgetent ();
25009 int
25010 main ()
25011 {
25012 return tgetent ();
25013   ;
25014   return 0;
25015 }
25016 _ACEOF
25017 rm -f conftest.$ac_objext conftest$ac_exeext
25018 if { (ac_try="$ac_link"
25019 case "(($ac_try" in
25020   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25021   *) ac_try_echo=$ac_try;;
25022 esac
25023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25024   (eval "$ac_link") 2>conftest.er1
25025   ac_status=$?
25026   grep -v '^ *+' conftest.er1 >conftest.err
25027   rm -f conftest.er1
25028   cat conftest.err >&5
25029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25030   (exit $ac_status); } && {
25031          test -z "$ac_c_werror_flag" ||
25032          test ! -s conftest.err
25033        } && test -s conftest$ac_exeext &&
25034        $as_test_x conftest$ac_exeext; then
25035   ac_cv_lib_curses_tgetent=yes
25036 else
25037   echo "$as_me: failed program was:" >&5
25038 sed 's/^/| /' conftest.$ac_ext >&5
25039
25040         ac_cv_lib_curses_tgetent=no
25041 fi
25042
25043 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25044       conftest$ac_exeext conftest.$ac_ext
25045 LIBS=$ac_check_lib_save_LIBS
25046 fi
25047 { echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
25048 echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6; }
25049 if test $ac_cv_lib_curses_tgetent = yes; then
25050    CONS_LIBS="-lcurses"
25051          CONS_OBJ="conio.o"
25052          CONS_SRC="conio.c"
25053          got_conio="yes"
25054          support_readline=no
25055
25056 cat >>confdefs.h <<\_ACEOF
25057 #define HAVE_CONIO 1
25058 _ACEOF
25059
25060
25061 fi
25062
25063
25064 else
25065    echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "
25066 fi
25067
25068
25069
25070 fi
25071
25072
25073 fi
25074
25075
25076 # Check whether --enable-readline was given.
25077 if test "${enable_readline+set}" = set; then
25078   enableval=$enable_readline;
25079        if test x$enableval = xno; then
25080           support_readline=no
25081        fi
25082
25083
25084 fi
25085
25086
25087 got_readline="no"
25088 READLINE_SRC=
25089 if test x$support_readline = xyes; then
25090
25091 # Check whether --with-readline was given.
25092 if test "${with_readline+set}" = set; then
25093   withval=$with_readline;
25094           case "$with_readline" in
25095           no)
25096              :
25097              ;;
25098           yes|*)
25099              if test -f ${with_readline}/readline.h; then
25100                 CONS_INC="-I${with_readline}"
25101                 CONS_LDFLAGS="-L$with_readline"
25102              elif test -f ${with_readline}/include/readline/readline.h; then
25103                 CONS_INC="-I${with_readline}/include/readline"
25104                 CONS_LDFLAGS="-L${with_readline}/lib"
25105                 with_readline="${with_readline}/include/readline"
25106              else
25107                 with_readline="/usr/include/readline"
25108              fi
25109
25110              as_ac_Header=`echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
25111 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25112   { echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
25113 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6; }
25114 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25115   echo $ECHO_N "(cached) $ECHO_C" >&6
25116 fi
25117 ac_res=`eval echo '${'$as_ac_Header'}'`
25118                { echo "$as_me:$LINENO: result: $ac_res" >&5
25119 echo "${ECHO_T}$ac_res" >&6; }
25120 else
25121   # Is the header compilable?
25122 { echo "$as_me:$LINENO: checking ${with_readline}/readline.h usability" >&5
25123 echo $ECHO_N "checking ${with_readline}/readline.h usability... $ECHO_C" >&6; }
25124 cat >conftest.$ac_ext <<_ACEOF
25125 /* confdefs.h.  */
25126 _ACEOF
25127 cat confdefs.h >>conftest.$ac_ext
25128 cat >>conftest.$ac_ext <<_ACEOF
25129 /* end confdefs.h.  */
25130 $ac_includes_default
25131 #include <${with_readline}/readline.h>
25132 _ACEOF
25133 rm -f conftest.$ac_objext
25134 if { (ac_try="$ac_compile"
25135 case "(($ac_try" in
25136   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25137   *) ac_try_echo=$ac_try;;
25138 esac
25139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25140   (eval "$ac_compile") 2>conftest.er1
25141   ac_status=$?
25142   grep -v '^ *+' conftest.er1 >conftest.err
25143   rm -f conftest.er1
25144   cat conftest.err >&5
25145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25146   (exit $ac_status); } && {
25147          test -z "$ac_c_werror_flag" ||
25148          test ! -s conftest.err
25149        } && test -s conftest.$ac_objext; then
25150   ac_header_compiler=yes
25151 else
25152   echo "$as_me: failed program was:" >&5
25153 sed 's/^/| /' conftest.$ac_ext >&5
25154
25155         ac_header_compiler=no
25156 fi
25157
25158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25159 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25160 echo "${ECHO_T}$ac_header_compiler" >&6; }
25161
25162 # Is the header present?
25163 { echo "$as_me:$LINENO: checking ${with_readline}/readline.h presence" >&5
25164 echo $ECHO_N "checking ${with_readline}/readline.h presence... $ECHO_C" >&6; }
25165 cat >conftest.$ac_ext <<_ACEOF
25166 /* confdefs.h.  */
25167 _ACEOF
25168 cat confdefs.h >>conftest.$ac_ext
25169 cat >>conftest.$ac_ext <<_ACEOF
25170 /* end confdefs.h.  */
25171 #include <${with_readline}/readline.h>
25172 _ACEOF
25173 if { (ac_try="$ac_cpp conftest.$ac_ext"
25174 case "(($ac_try" in
25175   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25176   *) ac_try_echo=$ac_try;;
25177 esac
25178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25179   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25180   ac_status=$?
25181   grep -v '^ *+' conftest.er1 >conftest.err
25182   rm -f conftest.er1
25183   cat conftest.err >&5
25184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25185   (exit $ac_status); } >/dev/null && {
25186          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25187          test ! -s conftest.err
25188        }; then
25189   ac_header_preproc=yes
25190 else
25191   echo "$as_me: failed program was:" >&5
25192 sed 's/^/| /' conftest.$ac_ext >&5
25193
25194   ac_header_preproc=no
25195 fi
25196
25197 rm -f conftest.err conftest.$ac_ext
25198 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25199 echo "${ECHO_T}$ac_header_preproc" >&6; }
25200
25201 # So?  What about this header?
25202 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25203   yes:no: )
25204     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
25205 echo "$as_me: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25206     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&5
25207 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&2;}
25208     ac_header_preproc=yes
25209     ;;
25210   no:yes:* )
25211     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&5
25212 echo "$as_me: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&2;}
25213     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h:     check for missing prerequisite headers?" >&5
25214 echo "$as_me: WARNING: ${with_readline}/readline.h:     check for missing prerequisite headers?" >&2;}
25215     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&5
25216 echo "$as_me: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&2;}
25217     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
25218 echo "$as_me: WARNING: ${with_readline}/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
25219     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
25220 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
25221     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&5
25222 echo "$as_me: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&2;}
25223
25224     ;;
25225 esac
25226 { echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
25227 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6; }
25228 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25229   echo $ECHO_N "(cached) $ECHO_C" >&6
25230 else
25231   eval "$as_ac_Header=\$ac_header_preproc"
25232 fi
25233 ac_res=`eval echo '${'$as_ac_Header'}'`
25234                { echo "$as_me:$LINENO: result: $ac_res" >&5
25235 echo "${ECHO_T}$ac_res" >&6; }
25236
25237 fi
25238 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25239
25240
25241 cat >>confdefs.h <<\_ACEOF
25242 #define HAVE_READLINE 1
25243 _ACEOF
25244
25245                     CONS_LIBS="-lreadline -lhistory -ltermcap"
25246                     got_readline="yes"
25247
25248 else
25249
25250                     echo " "
25251                     echo "readline.h not found. readline turned off ..."
25252                     echo " "
25253
25254
25255 fi
25256
25257
25258              ;;
25259           esac
25260
25261 else
25262
25263                  if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
25264   { echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
25265 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6; }
25266 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
25267   echo $ECHO_N "(cached) $ECHO_C" >&6
25268 fi
25269 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
25270 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6; }
25271 else
25272   # Is the header compilable?
25273 { echo "$as_me:$LINENO: checking /usr/include/readline/readline.h usability" >&5
25274 echo $ECHO_N "checking /usr/include/readline/readline.h usability... $ECHO_C" >&6; }
25275 cat >conftest.$ac_ext <<_ACEOF
25276 /* confdefs.h.  */
25277 _ACEOF
25278 cat confdefs.h >>conftest.$ac_ext
25279 cat >>conftest.$ac_ext <<_ACEOF
25280 /* end confdefs.h.  */
25281 $ac_includes_default
25282 #include </usr/include/readline/readline.h>
25283 _ACEOF
25284 rm -f conftest.$ac_objext
25285 if { (ac_try="$ac_compile"
25286 case "(($ac_try" in
25287   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25288   *) ac_try_echo=$ac_try;;
25289 esac
25290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25291   (eval "$ac_compile") 2>conftest.er1
25292   ac_status=$?
25293   grep -v '^ *+' conftest.er1 >conftest.err
25294   rm -f conftest.er1
25295   cat conftest.err >&5
25296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25297   (exit $ac_status); } && {
25298          test -z "$ac_c_werror_flag" ||
25299          test ! -s conftest.err
25300        } && test -s conftest.$ac_objext; then
25301   ac_header_compiler=yes
25302 else
25303   echo "$as_me: failed program was:" >&5
25304 sed 's/^/| /' conftest.$ac_ext >&5
25305
25306         ac_header_compiler=no
25307 fi
25308
25309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25310 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25311 echo "${ECHO_T}$ac_header_compiler" >&6; }
25312
25313 # Is the header present?
25314 { echo "$as_me:$LINENO: checking /usr/include/readline/readline.h presence" >&5
25315 echo $ECHO_N "checking /usr/include/readline/readline.h presence... $ECHO_C" >&6; }
25316 cat >conftest.$ac_ext <<_ACEOF
25317 /* confdefs.h.  */
25318 _ACEOF
25319 cat confdefs.h >>conftest.$ac_ext
25320 cat >>conftest.$ac_ext <<_ACEOF
25321 /* end confdefs.h.  */
25322 #include </usr/include/readline/readline.h>
25323 _ACEOF
25324 if { (ac_try="$ac_cpp conftest.$ac_ext"
25325 case "(($ac_try" in
25326   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25327   *) ac_try_echo=$ac_try;;
25328 esac
25329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25330   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25331   ac_status=$?
25332   grep -v '^ *+' conftest.er1 >conftest.err
25333   rm -f conftest.er1
25334   cat conftest.err >&5
25335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25336   (exit $ac_status); } >/dev/null && {
25337          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25338          test ! -s conftest.err
25339        }; then
25340   ac_header_preproc=yes
25341 else
25342   echo "$as_me: failed program was:" >&5
25343 sed 's/^/| /' conftest.$ac_ext >&5
25344
25345   ac_header_preproc=no
25346 fi
25347
25348 rm -f conftest.err conftest.$ac_ext
25349 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25350 echo "${ECHO_T}$ac_header_preproc" >&6; }
25351
25352 # So?  What about this header?
25353 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25354   yes:no: )
25355     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
25356 echo "$as_me: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25357     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&5
25358 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&2;}
25359     ac_header_preproc=yes
25360     ;;
25361   no:yes:* )
25362     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&5
25363 echo "$as_me: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&2;}
25364     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h:     check for missing prerequisite headers?" >&5
25365 echo "$as_me: WARNING: /usr/include/readline/readline.h:     check for missing prerequisite headers?" >&2;}
25366     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&5
25367 echo "$as_me: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&2;}
25368     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
25369 echo "$as_me: WARNING: /usr/include/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
25370     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
25371 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
25372     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&5
25373 echo "$as_me: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&2;}
25374
25375     ;;
25376 esac
25377 { echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
25378 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6; }
25379 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
25380   echo $ECHO_N "(cached) $ECHO_C" >&6
25381 else
25382   ac_cv_header__usr_include_readline_readline_h=$ac_header_preproc
25383 fi
25384 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
25385 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6; }
25386
25387 fi
25388 if test $ac_cv_header__usr_include_readline_readline_h = yes; then
25389
25390
25391 cat >>confdefs.h <<\_ACEOF
25392 #define HAVE_READLINE 1
25393 _ACEOF
25394
25395                 got_readline="yes"
25396                 CONS_INC="-I/usr/include/readline"
25397                 CONS_LIBS="-lreadline -ltermcap"
25398
25399 else
25400
25401                                 as_ac_Header=`echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
25402 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25403   { echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
25404 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6; }
25405 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25406   echo $ECHO_N "(cached) $ECHO_C" >&6
25407 fi
25408 ac_res=`eval echo '${'$as_ac_Header'}'`
25409                { echo "$as_me:$LINENO: result: $ac_res" >&5
25410 echo "${ECHO_T}$ac_res" >&6; }
25411 else
25412   # Is the header compilable?
25413 { echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h usability" >&5
25414 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h usability... $ECHO_C" >&6; }
25415 cat >conftest.$ac_ext <<_ACEOF
25416 /* confdefs.h.  */
25417 _ACEOF
25418 cat confdefs.h >>conftest.$ac_ext
25419 cat >>conftest.$ac_ext <<_ACEOF
25420 /* end confdefs.h.  */
25421 $ac_includes_default
25422 #include <${TOP_DIR}/depkgs/readline/readline.h>
25423 _ACEOF
25424 rm -f conftest.$ac_objext
25425 if { (ac_try="$ac_compile"
25426 case "(($ac_try" in
25427   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25428   *) ac_try_echo=$ac_try;;
25429 esac
25430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25431   (eval "$ac_compile") 2>conftest.er1
25432   ac_status=$?
25433   grep -v '^ *+' conftest.er1 >conftest.err
25434   rm -f conftest.er1
25435   cat conftest.err >&5
25436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25437   (exit $ac_status); } && {
25438          test -z "$ac_c_werror_flag" ||
25439          test ! -s conftest.err
25440        } && test -s conftest.$ac_objext; then
25441   ac_header_compiler=yes
25442 else
25443   echo "$as_me: failed program was:" >&5
25444 sed 's/^/| /' conftest.$ac_ext >&5
25445
25446         ac_header_compiler=no
25447 fi
25448
25449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25450 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25451 echo "${ECHO_T}$ac_header_compiler" >&6; }
25452
25453 # Is the header present?
25454 { echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h presence" >&5
25455 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h presence... $ECHO_C" >&6; }
25456 cat >conftest.$ac_ext <<_ACEOF
25457 /* confdefs.h.  */
25458 _ACEOF
25459 cat confdefs.h >>conftest.$ac_ext
25460 cat >>conftest.$ac_ext <<_ACEOF
25461 /* end confdefs.h.  */
25462 #include <${TOP_DIR}/depkgs/readline/readline.h>
25463 _ACEOF
25464 if { (ac_try="$ac_cpp conftest.$ac_ext"
25465 case "(($ac_try" in
25466   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25467   *) ac_try_echo=$ac_try;;
25468 esac
25469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25470   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25471   ac_status=$?
25472   grep -v '^ *+' conftest.er1 >conftest.err
25473   rm -f conftest.er1
25474   cat conftest.err >&5
25475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25476   (exit $ac_status); } >/dev/null && {
25477          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25478          test ! -s conftest.err
25479        }; then
25480   ac_header_preproc=yes
25481 else
25482   echo "$as_me: failed program was:" >&5
25483 sed 's/^/| /' conftest.$ac_ext >&5
25484
25485   ac_header_preproc=no
25486 fi
25487
25488 rm -f conftest.err conftest.$ac_ext
25489 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25490 echo "${ECHO_T}$ac_header_preproc" >&6; }
25491
25492 # So?  What about this header?
25493 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25494   yes:no: )
25495     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
25496 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25497     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&5
25498 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&2;}
25499     ac_header_preproc=yes
25500     ;;
25501   no:yes:* )
25502     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&5
25503 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&2;}
25504     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     check for missing prerequisite headers?" >&5
25505 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     check for missing prerequisite headers?" >&2;}
25506     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&5
25507 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&2;}
25508     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
25509 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
25510     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
25511 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
25512     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&5
25513 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&2;}
25514
25515     ;;
25516 esac
25517 { echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
25518 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6; }
25519 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25520   echo $ECHO_N "(cached) $ECHO_C" >&6
25521 else
25522   eval "$as_ac_Header=\$ac_header_preproc"
25523 fi
25524 ac_res=`eval echo '${'$as_ac_Header'}'`
25525                { echo "$as_me:$LINENO: result: $ac_res" >&5
25526 echo "${ECHO_T}$ac_res" >&6; }
25527
25528 fi
25529 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25530
25531
25532 cat >>confdefs.h <<\_ACEOF
25533 #define HAVE_READLINE 1
25534 _ACEOF
25535
25536                         got_readline="yes"
25537                         CONS_INC="-I${TOP_DIR}/depkgs/readline"
25538                         CONS_LIBS="-lreadline -lhistory -ltermcap"
25539                         CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
25540                         PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
25541
25542 else
25543
25544                         echo " "
25545                         echo "readline.h not found. readline turned off ..."
25546                         echo " "
25547
25548
25549 fi
25550
25551
25552
25553
25554 fi
25555
25556
25557
25558
25559 fi
25560
25561 fi
25562
25563
25564
25565
25566
25567
25568
25569
25570 MAKE_SHELL=/bin/sh
25571
25572 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
25573 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
25574 if test "${ac_cv_header_stat_broken+set}" = set; then
25575   echo $ECHO_N "(cached) $ECHO_C" >&6
25576 else
25577   cat >conftest.$ac_ext <<_ACEOF
25578 /* confdefs.h.  */
25579 _ACEOF
25580 cat confdefs.h >>conftest.$ac_ext
25581 cat >>conftest.$ac_ext <<_ACEOF
25582 /* end confdefs.h.  */
25583 #include <sys/types.h>
25584 #include <sys/stat.h>
25585
25586 #if defined S_ISBLK && defined S_IFDIR
25587 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
25588 #endif
25589
25590 #if defined S_ISBLK && defined S_IFCHR
25591 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
25592 #endif
25593
25594 #if defined S_ISLNK && defined S_IFREG
25595 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
25596 #endif
25597
25598 #if defined S_ISSOCK && defined S_IFREG
25599 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
25600 #endif
25601
25602 _ACEOF
25603 rm -f conftest.$ac_objext
25604 if { (ac_try="$ac_compile"
25605 case "(($ac_try" in
25606   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25607   *) ac_try_echo=$ac_try;;
25608 esac
25609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25610   (eval "$ac_compile") 2>conftest.er1
25611   ac_status=$?
25612   grep -v '^ *+' conftest.er1 >conftest.err
25613   rm -f conftest.er1
25614   cat conftest.err >&5
25615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25616   (exit $ac_status); } && {
25617          test -z "$ac_c_werror_flag" ||
25618          test ! -s conftest.err
25619        } && test -s conftest.$ac_objext; then
25620   ac_cv_header_stat_broken=no
25621 else
25622   echo "$as_me: failed program was:" >&5
25623 sed 's/^/| /' conftest.$ac_ext >&5
25624
25625         ac_cv_header_stat_broken=yes
25626 fi
25627
25628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25629 fi
25630 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
25631 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
25632 if test $ac_cv_header_stat_broken = yes; then
25633
25634 cat >>confdefs.h <<\_ACEOF
25635 #define STAT_MACROS_BROKEN 1
25636 _ACEOF
25637
25638 fi
25639
25640
25641
25642
25643
25644
25645 ac_header_dirent=no
25646 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
25647   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
25648 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
25649 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
25650 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25651   echo $ECHO_N "(cached) $ECHO_C" >&6
25652 else
25653   cat >conftest.$ac_ext <<_ACEOF
25654 /* confdefs.h.  */
25655 _ACEOF
25656 cat confdefs.h >>conftest.$ac_ext
25657 cat >>conftest.$ac_ext <<_ACEOF
25658 /* end confdefs.h.  */
25659 #include <sys/types.h>
25660 #include <$ac_hdr>
25661
25662 int
25663 main ()
25664 {
25665 if ((DIR *) 0)
25666 return 0;
25667   ;
25668   return 0;
25669 }
25670 _ACEOF
25671 rm -f conftest.$ac_objext
25672 if { (ac_try="$ac_compile"
25673 case "(($ac_try" in
25674   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25675   *) ac_try_echo=$ac_try;;
25676 esac
25677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25678   (eval "$ac_compile") 2>conftest.er1
25679   ac_status=$?
25680   grep -v '^ *+' conftest.er1 >conftest.err
25681   rm -f conftest.er1
25682   cat conftest.err >&5
25683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25684   (exit $ac_status); } && {
25685          test -z "$ac_c_werror_flag" ||
25686          test ! -s conftest.err
25687        } && test -s conftest.$ac_objext; then
25688   eval "$as_ac_Header=yes"
25689 else
25690   echo "$as_me: failed program was:" >&5
25691 sed 's/^/| /' conftest.$ac_ext >&5
25692
25693         eval "$as_ac_Header=no"
25694 fi
25695
25696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25697 fi
25698 ac_res=`eval echo '${'$as_ac_Header'}'`
25699                { echo "$as_me:$LINENO: result: $ac_res" >&5
25700 echo "${ECHO_T}$ac_res" >&6; }
25701 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25702   cat >>confdefs.h <<_ACEOF
25703 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
25704 _ACEOF
25705
25706 ac_header_dirent=$ac_hdr; break
25707 fi
25708
25709 done
25710 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
25711 if test $ac_header_dirent = dirent.h; then
25712   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
25713 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
25714 if test "${ac_cv_search_opendir+set}" = set; then
25715   echo $ECHO_N "(cached) $ECHO_C" >&6
25716 else
25717   ac_func_search_save_LIBS=$LIBS
25718 cat >conftest.$ac_ext <<_ACEOF
25719 /* confdefs.h.  */
25720 _ACEOF
25721 cat confdefs.h >>conftest.$ac_ext
25722 cat >>conftest.$ac_ext <<_ACEOF
25723 /* end confdefs.h.  */
25724
25725 /* Override any GCC internal prototype to avoid an error.
25726    Use char because int might match the return type of a GCC
25727    builtin and then its argument prototype would still apply.  */
25728 #ifdef __cplusplus
25729 extern "C"
25730 #endif
25731 char opendir ();
25732 int
25733 main ()
25734 {
25735 return opendir ();
25736   ;
25737   return 0;
25738 }
25739 _ACEOF
25740 for ac_lib in '' dir; do
25741   if test -z "$ac_lib"; then
25742     ac_res="none required"
25743   else
25744     ac_res=-l$ac_lib
25745     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25746   fi
25747   rm -f conftest.$ac_objext conftest$ac_exeext
25748 if { (ac_try="$ac_link"
25749 case "(($ac_try" in
25750   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25751   *) ac_try_echo=$ac_try;;
25752 esac
25753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25754   (eval "$ac_link") 2>conftest.er1
25755   ac_status=$?
25756   grep -v '^ *+' conftest.er1 >conftest.err
25757   rm -f conftest.er1
25758   cat conftest.err >&5
25759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25760   (exit $ac_status); } && {
25761          test -z "$ac_c_werror_flag" ||
25762          test ! -s conftest.err
25763        } && test -s conftest$ac_exeext &&
25764        $as_test_x conftest$ac_exeext; then
25765   ac_cv_search_opendir=$ac_res
25766 else
25767   echo "$as_me: failed program was:" >&5
25768 sed 's/^/| /' conftest.$ac_ext >&5
25769
25770
25771 fi
25772
25773 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25774       conftest$ac_exeext
25775   if test "${ac_cv_search_opendir+set}" = set; then
25776   break
25777 fi
25778 done
25779 if test "${ac_cv_search_opendir+set}" = set; then
25780   :
25781 else
25782   ac_cv_search_opendir=no
25783 fi
25784 rm conftest.$ac_ext
25785 LIBS=$ac_func_search_save_LIBS
25786 fi
25787 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25788 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
25789 ac_res=$ac_cv_search_opendir
25790 if test "$ac_res" != no; then
25791   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25792
25793 fi
25794
25795 else
25796   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
25797 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
25798 if test "${ac_cv_search_opendir+set}" = set; then
25799   echo $ECHO_N "(cached) $ECHO_C" >&6
25800 else
25801   ac_func_search_save_LIBS=$LIBS
25802 cat >conftest.$ac_ext <<_ACEOF
25803 /* confdefs.h.  */
25804 _ACEOF
25805 cat confdefs.h >>conftest.$ac_ext
25806 cat >>conftest.$ac_ext <<_ACEOF
25807 /* end confdefs.h.  */
25808
25809 /* Override any GCC internal prototype to avoid an error.
25810    Use char because int might match the return type of a GCC
25811    builtin and then its argument prototype would still apply.  */
25812 #ifdef __cplusplus
25813 extern "C"
25814 #endif
25815 char opendir ();
25816 int
25817 main ()
25818 {
25819 return opendir ();
25820   ;
25821   return 0;
25822 }
25823 _ACEOF
25824 for ac_lib in '' x; do
25825   if test -z "$ac_lib"; then
25826     ac_res="none required"
25827   else
25828     ac_res=-l$ac_lib
25829     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25830   fi
25831   rm -f conftest.$ac_objext conftest$ac_exeext
25832 if { (ac_try="$ac_link"
25833 case "(($ac_try" in
25834   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25835   *) ac_try_echo=$ac_try;;
25836 esac
25837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25838   (eval "$ac_link") 2>conftest.er1
25839   ac_status=$?
25840   grep -v '^ *+' conftest.er1 >conftest.err
25841   rm -f conftest.er1
25842   cat conftest.err >&5
25843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25844   (exit $ac_status); } && {
25845          test -z "$ac_c_werror_flag" ||
25846          test ! -s conftest.err
25847        } && test -s conftest$ac_exeext &&
25848        $as_test_x conftest$ac_exeext; then
25849   ac_cv_search_opendir=$ac_res
25850 else
25851   echo "$as_me: failed program was:" >&5
25852 sed 's/^/| /' conftest.$ac_ext >&5
25853
25854
25855 fi
25856
25857 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25858       conftest$ac_exeext
25859   if test "${ac_cv_search_opendir+set}" = set; then
25860   break
25861 fi
25862 done
25863 if test "${ac_cv_search_opendir+set}" = set; then
25864   :
25865 else
25866   ac_cv_search_opendir=no
25867 fi
25868 rm conftest.$ac_ext
25869 LIBS=$ac_func_search_save_LIBS
25870 fi
25871 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25872 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
25873 ac_res=$ac_cv_search_opendir
25874 if test "$ac_res" != no; then
25875   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25876
25877 fi
25878
25879 fi
25880
25881
25882
25883
25884
25885
25886
25887
25888 for ac_func in strcasecmp select setenv putenv tcgetattr lstat lchown
25889 do
25890 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25891 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25892 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25893 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25894   echo $ECHO_N "(cached) $ECHO_C" >&6
25895 else
25896   cat >conftest.$ac_ext <<_ACEOF
25897 /* confdefs.h.  */
25898 _ACEOF
25899 cat confdefs.h >>conftest.$ac_ext
25900 cat >>conftest.$ac_ext <<_ACEOF
25901 /* end confdefs.h.  */
25902 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25903    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25904 #define $ac_func innocuous_$ac_func
25905
25906 /* System header to define __stub macros and hopefully few prototypes,
25907     which can conflict with char $ac_func (); below.
25908     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25909     <limits.h> exists even on freestanding compilers.  */
25910
25911 #ifdef __STDC__
25912 # include <limits.h>
25913 #else
25914 # include <assert.h>
25915 #endif
25916
25917 #undef $ac_func
25918
25919 /* Override any GCC internal prototype to avoid an error.
25920    Use char because int might match the return type of a GCC
25921    builtin and then its argument prototype would still apply.  */
25922 #ifdef __cplusplus
25923 extern "C"
25924 #endif
25925 char $ac_func ();
25926 /* The GNU C library defines this for functions which it implements
25927     to always fail with ENOSYS.  Some functions are actually named
25928     something starting with __ and the normal name is an alias.  */
25929 #if defined __stub_$ac_func || defined __stub___$ac_func
25930 choke me
25931 #endif
25932
25933 int
25934 main ()
25935 {
25936 return $ac_func ();
25937   ;
25938   return 0;
25939 }
25940 _ACEOF
25941 rm -f conftest.$ac_objext conftest$ac_exeext
25942 if { (ac_try="$ac_link"
25943 case "(($ac_try" in
25944   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25945   *) ac_try_echo=$ac_try;;
25946 esac
25947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25948   (eval "$ac_link") 2>conftest.er1
25949   ac_status=$?
25950   grep -v '^ *+' conftest.er1 >conftest.err
25951   rm -f conftest.er1
25952   cat conftest.err >&5
25953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25954   (exit $ac_status); } && {
25955          test -z "$ac_c_werror_flag" ||
25956          test ! -s conftest.err
25957        } && test -s conftest$ac_exeext &&
25958        $as_test_x conftest$ac_exeext; then
25959   eval "$as_ac_var=yes"
25960 else
25961   echo "$as_me: failed program was:" >&5
25962 sed 's/^/| /' conftest.$ac_ext >&5
25963
25964         eval "$as_ac_var=no"
25965 fi
25966
25967 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25968       conftest$ac_exeext conftest.$ac_ext
25969 fi
25970 ac_res=`eval echo '${'$as_ac_var'}'`
25971                { echo "$as_me:$LINENO: result: $ac_res" >&5
25972 echo "${ECHO_T}$ac_res" >&6; }
25973 if test `eval echo '${'$as_ac_var'}'` = yes; then
25974   cat >>confdefs.h <<_ACEOF
25975 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25976 _ACEOF
25977
25978 fi
25979 done
25980
25981
25982
25983 for ac_func in nanosleep nl_langinfo
25984 do
25985 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25986 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25987 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25988 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25989   echo $ECHO_N "(cached) $ECHO_C" >&6
25990 else
25991   cat >conftest.$ac_ext <<_ACEOF
25992 /* confdefs.h.  */
25993 _ACEOF
25994 cat confdefs.h >>conftest.$ac_ext
25995 cat >>conftest.$ac_ext <<_ACEOF
25996 /* end confdefs.h.  */
25997 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25998    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25999 #define $ac_func innocuous_$ac_func
26000
26001 /* System header to define __stub macros and hopefully few prototypes,
26002     which can conflict with char $ac_func (); below.
26003     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26004     <limits.h> exists even on freestanding compilers.  */
26005
26006 #ifdef __STDC__
26007 # include <limits.h>
26008 #else
26009 # include <assert.h>
26010 #endif
26011
26012 #undef $ac_func
26013
26014 /* Override any GCC internal prototype to avoid an error.
26015    Use char because int might match the return type of a GCC
26016    builtin and then its argument prototype would still apply.  */
26017 #ifdef __cplusplus
26018 extern "C"
26019 #endif
26020 char $ac_func ();
26021 /* The GNU C library defines this for functions which it implements
26022     to always fail with ENOSYS.  Some functions are actually named
26023     something starting with __ and the normal name is an alias.  */
26024 #if defined __stub_$ac_func || defined __stub___$ac_func
26025 choke me
26026 #endif
26027
26028 int
26029 main ()
26030 {
26031 return $ac_func ();
26032   ;
26033   return 0;
26034 }
26035 _ACEOF
26036 rm -f conftest.$ac_objext conftest$ac_exeext
26037 if { (ac_try="$ac_link"
26038 case "(($ac_try" in
26039   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26040   *) ac_try_echo=$ac_try;;
26041 esac
26042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26043   (eval "$ac_link") 2>conftest.er1
26044   ac_status=$?
26045   grep -v '^ *+' conftest.er1 >conftest.err
26046   rm -f conftest.er1
26047   cat conftest.err >&5
26048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26049   (exit $ac_status); } && {
26050          test -z "$ac_c_werror_flag" ||
26051          test ! -s conftest.err
26052        } && test -s conftest$ac_exeext &&
26053        $as_test_x conftest$ac_exeext; then
26054   eval "$as_ac_var=yes"
26055 else
26056   echo "$as_me: failed program was:" >&5
26057 sed 's/^/| /' conftest.$ac_ext >&5
26058
26059         eval "$as_ac_var=no"
26060 fi
26061
26062 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26063       conftest$ac_exeext conftest.$ac_ext
26064 fi
26065 ac_res=`eval echo '${'$as_ac_var'}'`
26066                { echo "$as_me:$LINENO: result: $ac_res" >&5
26067 echo "${ECHO_T}$ac_res" >&6; }
26068 if test `eval echo '${'$as_ac_var'}'` = yes; then
26069   cat >>confdefs.h <<_ACEOF
26070 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26071 _ACEOF
26072
26073 fi
26074 done
26075
26076
26077 for ac_header in varargs.h
26078 do
26079 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26080 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26081   { echo "$as_me:$LINENO: checking for $ac_header" >&5
26082 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26083 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26084   echo $ECHO_N "(cached) $ECHO_C" >&6
26085 fi
26086 ac_res=`eval echo '${'$as_ac_Header'}'`
26087                { echo "$as_me:$LINENO: result: $ac_res" >&5
26088 echo "${ECHO_T}$ac_res" >&6; }
26089 else
26090   # Is the header compilable?
26091 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
26092 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
26093 cat >conftest.$ac_ext <<_ACEOF
26094 /* confdefs.h.  */
26095 _ACEOF
26096 cat confdefs.h >>conftest.$ac_ext
26097 cat >>conftest.$ac_ext <<_ACEOF
26098 /* end confdefs.h.  */
26099 $ac_includes_default
26100 #include <$ac_header>
26101 _ACEOF
26102 rm -f conftest.$ac_objext
26103 if { (ac_try="$ac_compile"
26104 case "(($ac_try" in
26105   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26106   *) ac_try_echo=$ac_try;;
26107 esac
26108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26109   (eval "$ac_compile") 2>conftest.er1
26110   ac_status=$?
26111   grep -v '^ *+' conftest.er1 >conftest.err
26112   rm -f conftest.er1
26113   cat conftest.err >&5
26114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26115   (exit $ac_status); } && {
26116          test -z "$ac_c_werror_flag" ||
26117          test ! -s conftest.err
26118        } && test -s conftest.$ac_objext; then
26119   ac_header_compiler=yes
26120 else
26121   echo "$as_me: failed program was:" >&5
26122 sed 's/^/| /' conftest.$ac_ext >&5
26123
26124         ac_header_compiler=no
26125 fi
26126
26127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26128 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26129 echo "${ECHO_T}$ac_header_compiler" >&6; }
26130
26131 # Is the header present?
26132 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
26133 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
26134 cat >conftest.$ac_ext <<_ACEOF
26135 /* confdefs.h.  */
26136 _ACEOF
26137 cat confdefs.h >>conftest.$ac_ext
26138 cat >>conftest.$ac_ext <<_ACEOF
26139 /* end confdefs.h.  */
26140 #include <$ac_header>
26141 _ACEOF
26142 if { (ac_try="$ac_cpp conftest.$ac_ext"
26143 case "(($ac_try" in
26144   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26145   *) ac_try_echo=$ac_try;;
26146 esac
26147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26148   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26149   ac_status=$?
26150   grep -v '^ *+' conftest.er1 >conftest.err
26151   rm -f conftest.er1
26152   cat conftest.err >&5
26153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26154   (exit $ac_status); } >/dev/null && {
26155          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26156          test ! -s conftest.err
26157        }; then
26158   ac_header_preproc=yes
26159 else
26160   echo "$as_me: failed program was:" >&5
26161 sed 's/^/| /' conftest.$ac_ext >&5
26162
26163   ac_header_preproc=no
26164 fi
26165
26166 rm -f conftest.err conftest.$ac_ext
26167 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26168 echo "${ECHO_T}$ac_header_preproc" >&6; }
26169
26170 # So?  What about this header?
26171 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26172   yes:no: )
26173     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26174 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26175     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26176 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26177     ac_header_preproc=yes
26178     ;;
26179   no:yes:* )
26180     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26181 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26182     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26183 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26184     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26185 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26186     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26187 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26188     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26189 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26190     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26191 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26192
26193     ;;
26194 esac
26195 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26196 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26197 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26198   echo $ECHO_N "(cached) $ECHO_C" >&6
26199 else
26200   eval "$as_ac_Header=\$ac_header_preproc"
26201 fi
26202 ac_res=`eval echo '${'$as_ac_Header'}'`
26203                { echo "$as_me:$LINENO: result: $ac_res" >&5
26204 echo "${ECHO_T}$ac_res" >&6; }
26205
26206 fi
26207 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26208   cat >>confdefs.h <<_ACEOF
26209 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26210 _ACEOF
26211
26212 fi
26213
26214 done
26215
26216
26217
26218 { echo "$as_me:$LINENO: checking for Python support" >&5
26219 echo $ECHO_N "checking for Python support... $ECHO_C" >&6; }
26220
26221 # Check whether --with-python was given.
26222 if test "${with_python+set}" = set; then
26223   withval=$with_python;
26224        PYTHON_INCDIR=
26225        PYTHON_LIBS=
26226        if test "$withval" != "no"; then
26227           if test "$withval" = "yes"; then
26228              for python_root in /usr /usr/local /usr/sfw; do
26229                 for ver in python2.2 python2.3 python2.4 python2.5 python2.6 python3; do
26230                    if test -f $python_root/include/${ver}/Python.h; then
26231                       PYTHON_INCDIR=-I$python_root/include/${ver}
26232                       if test -d $python_root/lib64/${ver}/config; then
26233                          PYTHON_LIBS="-L$python_root/lib64/${ver}/config -l${ver}"
26234                       else
26235                          PYTHON_LIBS="-L$python_root/lib/${ver}/config -l${ver}"
26236                       fi
26237                       break
26238                    fi
26239                 done
26240              done
26241
26242              if test x$PYTHON_INCDIR = x; then
26243                 if test -f $prefix/include/Python.h; then
26244                    PYTHON_INCDIR=-I$prefix/include
26245                    if test -d $prefix/lib64/config; then
26246                       PYTHON_LIBS="-L$prefix/lib64/config -lpython"
26247                    else
26248                       PYTHON_LIBS="-L$prefix/lib/config -lpython"
26249                    fi
26250                 else
26251                    { echo "$as_me:$LINENO: result: no" >&5
26252 echo "${ECHO_T}no" >&6; }
26253                    { { echo "$as_me:$LINENO: error: Unable to find Python.h in standard locations" >&5
26254 echo "$as_me: error: Unable to find Python.h in standard locations" >&2;}
26255    { (exit 1); exit 1; }; }
26256                 fi
26257              fi
26258           else
26259              if test -f $withval/Python.h; then
26260                 PYTHON_INCDIR=-I$withval
26261                 PYTHON_LIBS="-L$withval/config -lpython"
26262              elif test -f $withval/include/Python.h; then
26263                 PYTHON_INCDIR=-I$withval/include
26264                 if test -d $withval/lib64/config; then
26265                    PYTHON_LIBS="-L$withval/lib64/config -lpython"
26266                 else
26267                    PYTHON_LIBS="-L$withval/lib/config -lpython"
26268                 fi
26269              elif test -f $withval/include/python/Python.h; then
26270                 PYTHON_INCDIR=-I$withval/include/python
26271                 if test -d $withval/lib64/python/config; then
26272                    PYTHON_LIBS="-L$withval/lib64/python/config -lpython"
26273                 else
26274                    PYTHON_LIBS="-L$withval/lib/python/config -lpython"
26275                 fi
26276              else
26277                 { echo "$as_me:$LINENO: result: no" >&5
26278 echo "${ECHO_T}no" >&6; }
26279                 { { echo "$as_me:$LINENO: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&5
26280 echo "$as_me: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&2;}
26281    { (exit 1); exit 1; }; }
26282              fi
26283           fi
26284
26285           cat >>confdefs.h <<\_ACEOF
26286 #define HAVE_PYTHON 1
26287 _ACEOF
26288
26289           { echo "$as_me:$LINENO: result: yes" >&5
26290 echo "${ECHO_T}yes" >&6; }
26291           support_python=yes
26292           { echo "$as_me:$LINENO: checking for more Python libs" >&5
26293 echo "$as_me: checking for more Python libs" >&6;}
26294           saved_LIBS="$LIBS"; LIBS=
26295           { echo "$as_me:$LINENO: checking for library containing shm_open" >&5
26296 echo $ECHO_N "checking for library containing shm_open... $ECHO_C" >&6; }
26297 if test "${ac_cv_search_shm_open+set}" = set; then
26298   echo $ECHO_N "(cached) $ECHO_C" >&6
26299 else
26300   ac_func_search_save_LIBS=$LIBS
26301 cat >conftest.$ac_ext <<_ACEOF
26302 /* confdefs.h.  */
26303 _ACEOF
26304 cat confdefs.h >>conftest.$ac_ext
26305 cat >>conftest.$ac_ext <<_ACEOF
26306 /* end confdefs.h.  */
26307
26308 /* Override any GCC internal prototype to avoid an error.
26309    Use char because int might match the return type of a GCC
26310    builtin and then its argument prototype would still apply.  */
26311 #ifdef __cplusplus
26312 extern "C"
26313 #endif
26314 char shm_open ();
26315 int
26316 main ()
26317 {
26318 return shm_open ();
26319   ;
26320   return 0;
26321 }
26322 _ACEOF
26323 for ac_lib in '' rt; do
26324   if test -z "$ac_lib"; then
26325     ac_res="none required"
26326   else
26327     ac_res=-l$ac_lib
26328     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
26329   fi
26330   rm -f conftest.$ac_objext conftest$ac_exeext
26331 if { (ac_try="$ac_link"
26332 case "(($ac_try" in
26333   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26334   *) ac_try_echo=$ac_try;;
26335 esac
26336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26337   (eval "$ac_link") 2>conftest.er1
26338   ac_status=$?
26339   grep -v '^ *+' conftest.er1 >conftest.err
26340   rm -f conftest.er1
26341   cat conftest.err >&5
26342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26343   (exit $ac_status); } && {
26344          test -z "$ac_c_werror_flag" ||
26345          test ! -s conftest.err
26346        } && test -s conftest$ac_exeext &&
26347        $as_test_x conftest$ac_exeext; then
26348   ac_cv_search_shm_open=$ac_res
26349 else
26350   echo "$as_me: failed program was:" >&5
26351 sed 's/^/| /' conftest.$ac_ext >&5
26352
26353
26354 fi
26355
26356 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26357       conftest$ac_exeext
26358   if test "${ac_cv_search_shm_open+set}" = set; then
26359   break
26360 fi
26361 done
26362 if test "${ac_cv_search_shm_open+set}" = set; then
26363   :
26364 else
26365   ac_cv_search_shm_open=no
26366 fi
26367 rm conftest.$ac_ext
26368 LIBS=$ac_func_search_save_LIBS
26369 fi
26370 { echo "$as_me:$LINENO: result: $ac_cv_search_shm_open" >&5
26371 echo "${ECHO_T}$ac_cv_search_shm_open" >&6; }
26372 ac_res=$ac_cv_search_shm_open
26373 if test "$ac_res" != no; then
26374   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26375
26376 fi
26377
26378
26379 { echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
26380 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6; }
26381 if test "${ac_cv_lib_util_openpty+set}" = set; then
26382   echo $ECHO_N "(cached) $ECHO_C" >&6
26383 else
26384   ac_check_lib_save_LIBS=$LIBS
26385 LIBS="-lutil  $LIBS"
26386 cat >conftest.$ac_ext <<_ACEOF
26387 /* confdefs.h.  */
26388 _ACEOF
26389 cat confdefs.h >>conftest.$ac_ext
26390 cat >>conftest.$ac_ext <<_ACEOF
26391 /* end confdefs.h.  */
26392
26393 /* Override any GCC internal prototype to avoid an error.
26394    Use char because int might match the return type of a GCC
26395    builtin and then its argument prototype would still apply.  */
26396 #ifdef __cplusplus
26397 extern "C"
26398 #endif
26399 char openpty ();
26400 int
26401 main ()
26402 {
26403 return openpty ();
26404   ;
26405   return 0;
26406 }
26407 _ACEOF
26408 rm -f conftest.$ac_objext conftest$ac_exeext
26409 if { (ac_try="$ac_link"
26410 case "(($ac_try" in
26411   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26412   *) ac_try_echo=$ac_try;;
26413 esac
26414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26415   (eval "$ac_link") 2>conftest.er1
26416   ac_status=$?
26417   grep -v '^ *+' conftest.er1 >conftest.err
26418   rm -f conftest.er1
26419   cat conftest.err >&5
26420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26421   (exit $ac_status); } && {
26422          test -z "$ac_c_werror_flag" ||
26423          test ! -s conftest.err
26424        } && test -s conftest$ac_exeext &&
26425        $as_test_x conftest$ac_exeext; then
26426   ac_cv_lib_util_openpty=yes
26427 else
26428   echo "$as_me: failed program was:" >&5
26429 sed 's/^/| /' conftest.$ac_ext >&5
26430
26431         ac_cv_lib_util_openpty=no
26432 fi
26433
26434 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26435       conftest$ac_exeext conftest.$ac_ext
26436 LIBS=$ac_check_lib_save_LIBS
26437 fi
26438 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
26439 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6; }
26440 if test $ac_cv_lib_util_openpty = yes; then
26441   cat >>confdefs.h <<_ACEOF
26442 #define HAVE_LIBUTIL 1
26443 _ACEOF
26444
26445   LIBS="-lutil $LIBS"
26446
26447 fi
26448
26449           PYTHON_LIBS="$PYTHON_LIBS $LIBS"
26450           LIBS="$saved_LIBS"
26451        else
26452           { echo "$as_me:$LINENO: result: no" >&5
26453 echo "${ECHO_T}no" >&6; }
26454        fi
26455
26456 else
26457
26458        { echo "$as_me:$LINENO: result: no" >&5
26459 echo "${ECHO_T}no" >&6; }
26460
26461
26462 fi
26463
26464
26465
26466
26467 { echo "$as_me:$LINENO: checking for socket" >&5
26468 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
26469 if test "${ac_cv_func_socket+set}" = set; then
26470   echo $ECHO_N "(cached) $ECHO_C" >&6
26471 else
26472   cat >conftest.$ac_ext <<_ACEOF
26473 /* confdefs.h.  */
26474 _ACEOF
26475 cat confdefs.h >>conftest.$ac_ext
26476 cat >>conftest.$ac_ext <<_ACEOF
26477 /* end confdefs.h.  */
26478 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
26479    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26480 #define socket innocuous_socket
26481
26482 /* System header to define __stub macros and hopefully few prototypes,
26483     which can conflict with char socket (); below.
26484     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26485     <limits.h> exists even on freestanding compilers.  */
26486
26487 #ifdef __STDC__
26488 # include <limits.h>
26489 #else
26490 # include <assert.h>
26491 #endif
26492
26493 #undef socket
26494
26495 /* Override any GCC internal prototype to avoid an error.
26496    Use char because int might match the return type of a GCC
26497    builtin and then its argument prototype would still apply.  */
26498 #ifdef __cplusplus
26499 extern "C"
26500 #endif
26501 char socket ();
26502 /* The GNU C library defines this for functions which it implements
26503     to always fail with ENOSYS.  Some functions are actually named
26504     something starting with __ and the normal name is an alias.  */
26505 #if defined __stub_socket || defined __stub___socket
26506 choke me
26507 #endif
26508
26509 int
26510 main ()
26511 {
26512 return socket ();
26513   ;
26514   return 0;
26515 }
26516 _ACEOF
26517 rm -f conftest.$ac_objext conftest$ac_exeext
26518 if { (ac_try="$ac_link"
26519 case "(($ac_try" in
26520   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26521   *) ac_try_echo=$ac_try;;
26522 esac
26523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26524   (eval "$ac_link") 2>conftest.er1
26525   ac_status=$?
26526   grep -v '^ *+' conftest.er1 >conftest.err
26527   rm -f conftest.er1
26528   cat conftest.err >&5
26529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26530   (exit $ac_status); } && {
26531          test -z "$ac_c_werror_flag" ||
26532          test ! -s conftest.err
26533        } && test -s conftest$ac_exeext &&
26534        $as_test_x conftest$ac_exeext; then
26535   ac_cv_func_socket=yes
26536 else
26537   echo "$as_me: failed program was:" >&5
26538 sed 's/^/| /' conftest.$ac_ext >&5
26539
26540         ac_cv_func_socket=no
26541 fi
26542
26543 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26544       conftest$ac_exeext conftest.$ac_ext
26545 fi
26546 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
26547 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
26548 if test $ac_cv_func_socket = yes; then
26549   { echo "$as_me:$LINENO: result: using libc's socket" >&5
26550 echo "${ECHO_T}using libc's socket" >&6; }
26551 else
26552
26553 { echo "$as_me:$LINENO: checking for socket in -lxnet" >&5
26554 echo $ECHO_N "checking for socket in -lxnet... $ECHO_C" >&6; }
26555 if test "${ac_cv_lib_xnet_socket+set}" = set; then
26556   echo $ECHO_N "(cached) $ECHO_C" >&6
26557 else
26558   ac_check_lib_save_LIBS=$LIBS
26559 LIBS="-lxnet  $LIBS"
26560 cat >conftest.$ac_ext <<_ACEOF
26561 /* confdefs.h.  */
26562 _ACEOF
26563 cat confdefs.h >>conftest.$ac_ext
26564 cat >>conftest.$ac_ext <<_ACEOF
26565 /* end confdefs.h.  */
26566
26567 /* Override any GCC internal prototype to avoid an error.
26568    Use char because int might match the return type of a GCC
26569    builtin and then its argument prototype would still apply.  */
26570 #ifdef __cplusplus
26571 extern "C"
26572 #endif
26573 char socket ();
26574 int
26575 main ()
26576 {
26577 return socket ();
26578   ;
26579   return 0;
26580 }
26581 _ACEOF
26582 rm -f conftest.$ac_objext conftest$ac_exeext
26583 if { (ac_try="$ac_link"
26584 case "(($ac_try" in
26585   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26586   *) ac_try_echo=$ac_try;;
26587 esac
26588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26589   (eval "$ac_link") 2>conftest.er1
26590   ac_status=$?
26591   grep -v '^ *+' conftest.er1 >conftest.err
26592   rm -f conftest.er1
26593   cat conftest.err >&5
26594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26595   (exit $ac_status); } && {
26596          test -z "$ac_c_werror_flag" ||
26597          test ! -s conftest.err
26598        } && test -s conftest$ac_exeext &&
26599        $as_test_x conftest$ac_exeext; then
26600   ac_cv_lib_xnet_socket=yes
26601 else
26602   echo "$as_me: failed program was:" >&5
26603 sed 's/^/| /' conftest.$ac_ext >&5
26604
26605         ac_cv_lib_xnet_socket=no
26606 fi
26607
26608 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26609       conftest$ac_exeext conftest.$ac_ext
26610 LIBS=$ac_check_lib_save_LIBS
26611 fi
26612 { echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_socket" >&5
26613 echo "${ECHO_T}$ac_cv_lib_xnet_socket" >&6; }
26614 if test $ac_cv_lib_xnet_socket = yes; then
26615   cat >>confdefs.h <<_ACEOF
26616 #define HAVE_LIBXNET 1
26617 _ACEOF
26618
26619   LIBS="-lxnet $LIBS"
26620
26621 fi
26622
26623
26624 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
26625 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
26626 if test "${ac_cv_lib_socket_socket+set}" = set; then
26627   echo $ECHO_N "(cached) $ECHO_C" >&6
26628 else
26629   ac_check_lib_save_LIBS=$LIBS
26630 LIBS="-lsocket  $LIBS"
26631 cat >conftest.$ac_ext <<_ACEOF
26632 /* confdefs.h.  */
26633 _ACEOF
26634 cat confdefs.h >>conftest.$ac_ext
26635 cat >>conftest.$ac_ext <<_ACEOF
26636 /* end confdefs.h.  */
26637
26638 /* Override any GCC internal prototype to avoid an error.
26639    Use char because int might match the return type of a GCC
26640    builtin and then its argument prototype would still apply.  */
26641 #ifdef __cplusplus
26642 extern "C"
26643 #endif
26644 char socket ();
26645 int
26646 main ()
26647 {
26648 return socket ();
26649   ;
26650   return 0;
26651 }
26652 _ACEOF
26653 rm -f conftest.$ac_objext conftest$ac_exeext
26654 if { (ac_try="$ac_link"
26655 case "(($ac_try" in
26656   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26657   *) ac_try_echo=$ac_try;;
26658 esac
26659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26660   (eval "$ac_link") 2>conftest.er1
26661   ac_status=$?
26662   grep -v '^ *+' conftest.er1 >conftest.err
26663   rm -f conftest.er1
26664   cat conftest.err >&5
26665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26666   (exit $ac_status); } && {
26667          test -z "$ac_c_werror_flag" ||
26668          test ! -s conftest.err
26669        } && test -s conftest$ac_exeext &&
26670        $as_test_x conftest$ac_exeext; then
26671   ac_cv_lib_socket_socket=yes
26672 else
26673   echo "$as_me: failed program was:" >&5
26674 sed 's/^/| /' conftest.$ac_ext >&5
26675
26676         ac_cv_lib_socket_socket=no
26677 fi
26678
26679 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26680       conftest$ac_exeext conftest.$ac_ext
26681 LIBS=$ac_check_lib_save_LIBS
26682 fi
26683 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
26684 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
26685 if test $ac_cv_lib_socket_socket = yes; then
26686   cat >>confdefs.h <<_ACEOF
26687 #define HAVE_LIBSOCKET 1
26688 _ACEOF
26689
26690   LIBS="-lsocket $LIBS"
26691
26692 fi
26693
26694
26695 { echo "$as_me:$LINENO: checking for socket in -linet" >&5
26696 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6; }
26697 if test "${ac_cv_lib_inet_socket+set}" = set; then
26698   echo $ECHO_N "(cached) $ECHO_C" >&6
26699 else
26700   ac_check_lib_save_LIBS=$LIBS
26701 LIBS="-linet  $LIBS"
26702 cat >conftest.$ac_ext <<_ACEOF
26703 /* confdefs.h.  */
26704 _ACEOF
26705 cat confdefs.h >>conftest.$ac_ext
26706 cat >>conftest.$ac_ext <<_ACEOF
26707 /* end confdefs.h.  */
26708
26709 /* Override any GCC internal prototype to avoid an error.
26710    Use char because int might match the return type of a GCC
26711    builtin and then its argument prototype would still apply.  */
26712 #ifdef __cplusplus
26713 extern "C"
26714 #endif
26715 char socket ();
26716 int
26717 main ()
26718 {
26719 return socket ();
26720   ;
26721   return 0;
26722 }
26723 _ACEOF
26724 rm -f conftest.$ac_objext conftest$ac_exeext
26725 if { (ac_try="$ac_link"
26726 case "(($ac_try" in
26727   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26728   *) ac_try_echo=$ac_try;;
26729 esac
26730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26731   (eval "$ac_link") 2>conftest.er1
26732   ac_status=$?
26733   grep -v '^ *+' conftest.er1 >conftest.err
26734   rm -f conftest.er1
26735   cat conftest.err >&5
26736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26737   (exit $ac_status); } && {
26738          test -z "$ac_c_werror_flag" ||
26739          test ! -s conftest.err
26740        } && test -s conftest$ac_exeext &&
26741        $as_test_x conftest$ac_exeext; then
26742   ac_cv_lib_inet_socket=yes
26743 else
26744   echo "$as_me: failed program was:" >&5
26745 sed 's/^/| /' conftest.$ac_ext >&5
26746
26747         ac_cv_lib_inet_socket=no
26748 fi
26749
26750 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26751       conftest$ac_exeext conftest.$ac_ext
26752 LIBS=$ac_check_lib_save_LIBS
26753 fi
26754 { echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
26755 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6; }
26756 if test $ac_cv_lib_inet_socket = yes; then
26757   cat >>confdefs.h <<_ACEOF
26758 #define HAVE_LIBINET 1
26759 _ACEOF
26760
26761   LIBS="-linet $LIBS"
26762
26763 fi
26764
26765 fi
26766
26767
26768 TCPW_MSG="no"
26769 WRAPLIBS=""
26770
26771 # Check whether --with-tcp-wrappers was given.
26772 if test "${with_tcp_wrappers+set}" = set; then
26773   withval=$with_tcp_wrappers;
26774        if test "x$withval" != "xno" ; then
26775           saved_LIBS="$LIBS"
26776           LIBS="$saved_LIBS -lwrap"
26777           { echo "$as_me:$LINENO: checking for libwrap" >&5
26778 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6; }
26779           { echo "$as_me:$LINENO: checking for library containing nanosleep" >&5
26780 echo $ECHO_N "checking for library containing nanosleep... $ECHO_C" >&6; }
26781 if test "${ac_cv_search_nanosleep+set}" = set; then
26782   echo $ECHO_N "(cached) $ECHO_C" >&6
26783 else
26784   ac_func_search_save_LIBS=$LIBS
26785 cat >conftest.$ac_ext <<_ACEOF
26786 /* confdefs.h.  */
26787 _ACEOF
26788 cat confdefs.h >>conftest.$ac_ext
26789 cat >>conftest.$ac_ext <<_ACEOF
26790 /* end confdefs.h.  */
26791
26792 /* Override any GCC internal prototype to avoid an error.
26793    Use char because int might match the return type of a GCC
26794    builtin and then its argument prototype would still apply.  */
26795 #ifdef __cplusplus
26796 extern "C"
26797 #endif
26798 char nanosleep ();
26799 int
26800 main ()
26801 {
26802 return nanosleep ();
26803   ;
26804   return 0;
26805 }
26806 _ACEOF
26807 for ac_lib in '' rt; do
26808   if test -z "$ac_lib"; then
26809     ac_res="none required"
26810   else
26811     ac_res=-l$ac_lib
26812     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
26813   fi
26814   rm -f conftest.$ac_objext conftest$ac_exeext
26815 if { (ac_try="$ac_link"
26816 case "(($ac_try" in
26817   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26818   *) ac_try_echo=$ac_try;;
26819 esac
26820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26821   (eval "$ac_link") 2>conftest.er1
26822   ac_status=$?
26823   grep -v '^ *+' conftest.er1 >conftest.err
26824   rm -f conftest.er1
26825   cat conftest.err >&5
26826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26827   (exit $ac_status); } && {
26828          test -z "$ac_c_werror_flag" ||
26829          test ! -s conftest.err
26830        } && test -s conftest$ac_exeext &&
26831        $as_test_x conftest$ac_exeext; then
26832   ac_cv_search_nanosleep=$ac_res
26833 else
26834   echo "$as_me: failed program was:" >&5
26835 sed 's/^/| /' conftest.$ac_ext >&5
26836
26837
26838 fi
26839
26840 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26841       conftest$ac_exeext
26842   if test "${ac_cv_search_nanosleep+set}" = set; then
26843   break
26844 fi
26845 done
26846 if test "${ac_cv_search_nanosleep+set}" = set; then
26847   :
26848 else
26849   ac_cv_search_nanosleep=no
26850 fi
26851 rm conftest.$ac_ext
26852 LIBS=$ac_func_search_save_LIBS
26853 fi
26854 { echo "$as_me:$LINENO: result: $ac_cv_search_nanosleep" >&5
26855 echo "${ECHO_T}$ac_cv_search_nanosleep" >&6; }
26856 ac_res=$ac_cv_search_nanosleep
26857 if test "$ac_res" != no; then
26858   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26859
26860 fi
26861
26862           cat >conftest.$ac_ext <<_ACEOF
26863 /* confdefs.h.  */
26864 _ACEOF
26865 cat confdefs.h >>conftest.$ac_ext
26866 cat >>conftest.$ac_ext <<_ACEOF
26867 /* end confdefs.h.  */
26868
26869                #include <sys/types.h>
26870                #include <tcpd.h>
26871                int deny_severity = 0;
26872                int allow_severity = 0;
26873                struct request_info *req;
26874
26875 int
26876 main ()
26877 {
26878
26879                 hosts_access(req);
26880
26881   ;
26882   return 0;
26883 }
26884 _ACEOF
26885 rm -f conftest.$ac_objext conftest$ac_exeext
26886 if { (ac_try="$ac_link"
26887 case "(($ac_try" in
26888   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26889   *) ac_try_echo=$ac_try;;
26890 esac
26891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26892   (eval "$ac_link") 2>conftest.er1
26893   ac_status=$?
26894   grep -v '^ *+' conftest.er1 >conftest.err
26895   rm -f conftest.er1
26896   cat conftest.err >&5
26897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26898   (exit $ac_status); } && {
26899          test -z "$ac_c_werror_flag" ||
26900          test ! -s conftest.err
26901        } && test -s conftest$ac_exeext &&
26902        $as_test_x conftest$ac_exeext; then
26903
26904                  { echo "$as_me:$LINENO: result: yes" >&5
26905 echo "${ECHO_T}yes" >&6; }
26906
26907 cat >>confdefs.h <<\_ACEOF
26908 #define HAVE_LIBWRAP 1
26909 _ACEOF
26910
26911                  TCPW_MSG="yes"
26912                  LIBS="$saved_LIBS"
26913                  WRAPLIBS="-lwrap"
26914
26915 else
26916   echo "$as_me: failed program was:" >&5
26917 sed 's/^/| /' conftest.$ac_ext >&5
26918
26919
26920                  LIBS="$saved_LIBS -lwrap -lnsl"
26921                  WRAPLIBS="$saved_LIBS -lwrap -lnsl"
26922                  cat >conftest.$ac_ext <<_ACEOF
26923 /* confdefs.h.  */
26924 _ACEOF
26925 cat confdefs.h >>conftest.$ac_ext
26926 cat >>conftest.$ac_ext <<_ACEOF
26927 /* end confdefs.h.  */
26928
26929                        #include <sys/types.h>
26930                        #include <tcpd.h>
26931                        int deny_severity = 0;
26932                        int allow_severity = 0;
26933                        struct request_info *req;
26934
26935 int
26936 main ()
26937 {
26938
26939                        hosts_access(req);
26940
26941   ;
26942   return 0;
26943 }
26944 _ACEOF
26945 rm -f conftest.$ac_objext conftest$ac_exeext
26946 if { (ac_try="$ac_link"
26947 case "(($ac_try" in
26948   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26949   *) ac_try_echo=$ac_try;;
26950 esac
26951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26952   (eval "$ac_link") 2>conftest.er1
26953   ac_status=$?
26954   grep -v '^ *+' conftest.er1 >conftest.err
26955   rm -f conftest.er1
26956   cat conftest.err >&5
26957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26958   (exit $ac_status); } && {
26959          test -z "$ac_c_werror_flag" ||
26960          test ! -s conftest.err
26961        } && test -s conftest$ac_exeext &&
26962        $as_test_x conftest$ac_exeext; then
26963
26964                       { echo "$as_me:$LINENO: result: yes" >&5
26965 echo "${ECHO_T}yes" >&6; }
26966
26967 cat >>confdefs.h <<\_ACEOF
26968 #define HAVE_LIBWRAP 1
26969 _ACEOF
26970
26971                       TCPW_MSG="yes"
26972                       LIBS="$saved_LIBS"
26973                       WRAPLIBS="-lwrap"
26974
26975 else
26976   echo "$as_me: failed program was:" >&5
26977 sed 's/^/| /' conftest.$ac_ext >&5
26978
26979
26980                       { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
26981 echo "$as_me: error: *** libwrap missing" >&2;}
26982    { (exit 1); exit 1; }; }
26983
26984
26985 fi
26986
26987 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26988       conftest$ac_exeext conftest.$ac_ext
26989
26990
26991 fi
26992
26993 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26994       conftest$ac_exeext conftest.$ac_ext
26995        fi
26996
26997
26998 fi
26999
27000
27001 { echo "$as_me:$LINENO: checking for OpenSSL" >&5
27002 echo $ECHO_N "checking for OpenSSL... $ECHO_C" >&6; }
27003
27004 # Check whether --with-openssl was given.
27005 if test "${with_openssl+set}" = set; then
27006   withval=$with_openssl;
27007         with_openssl_directory=${withval}
27008
27009
27010 fi
27011
27012
27013 if test "x$with_openssl_directory" != "xno"; then
27014    OPENSSL_LIBS="-lssl -lcrypto"
27015    OPENSSL_INC=""
27016
27017    if test "x$with_openssl_directory" != "xyes" && test x"${with_openssl_directory}" != "x"; then
27018       #
27019       # Make sure the $with_openssl_directory also makes sense
27020       #
27021       if test -d "$with_openssl_directory/lib" -a -d "$with_openssl_directory/include"; then
27022          OPENSSL_LIBS="-L$with_openssl_directory/lib $OPENSSL_LIBS"
27023          OPENSSL_INC="-I$with_openssl_directory/include $OPENSSL_INC"
27024       fi
27025    fi
27026
27027    saved_LIBS="${LIBS}"
27028    saved_CFLAGS="${CFLAGS}"
27029    LIBS="${saved_LIBS} ${OPENSSL_LIBS}"
27030    CFLAGS="${saved_CFLAGS} ${OPENSSL_INC}"
27031
27032    cat >conftest.$ac_ext <<_ACEOF
27033 /* confdefs.h.  */
27034 _ACEOF
27035 cat confdefs.h >>conftest.$ac_ext
27036 cat >>conftest.$ac_ext <<_ACEOF
27037 /* end confdefs.h.  */
27038
27039           #include <openssl/ssl.h>
27040
27041 int
27042 main ()
27043 {
27044
27045            CRYPTO_set_id_callback(NULL);
27046
27047   ;
27048   return 0;
27049 }
27050 _ACEOF
27051 rm -f conftest.$ac_objext conftest$ac_exeext
27052 if { (ac_try="$ac_link"
27053 case "(($ac_try" in
27054   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27055   *) ac_try_echo=$ac_try;;
27056 esac
27057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27058   (eval "$ac_link") 2>conftest.er1
27059   ac_status=$?
27060   grep -v '^ *+' conftest.er1 >conftest.err
27061   rm -f conftest.er1
27062   cat conftest.err >&5
27063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27064   (exit $ac_status); } && {
27065          test -z "$ac_c_werror_flag" ||
27066          test ! -s conftest.err
27067        } && test -s conftest$ac_exeext &&
27068        $as_test_x conftest$ac_exeext; then
27069
27070           support_tls="yes"
27071           support_crypto="yes"
27072
27073 else
27074   echo "$as_me: failed program was:" >&5
27075 sed 's/^/| /' conftest.$ac_ext >&5
27076
27077
27078           support_tls="no"
27079
27080
27081 fi
27082
27083 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27084       conftest$ac_exeext conftest.$ac_ext
27085
27086    cat >conftest.$ac_ext <<_ACEOF
27087 /* confdefs.h.  */
27088 _ACEOF
27089 cat confdefs.h >>conftest.$ac_ext
27090 cat >>conftest.$ac_ext <<_ACEOF
27091 /* end confdefs.h.  */
27092
27093           #include <openssl/evp.h>
27094
27095 int
27096 main ()
27097 {
27098
27099           EVP_sha512();
27100
27101   ;
27102   return 0;
27103 }
27104 _ACEOF
27105 rm -f conftest.$ac_objext conftest$ac_exeext
27106 if { (ac_try="$ac_link"
27107 case "(($ac_try" in
27108   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27109   *) ac_try_echo=$ac_try;;
27110 esac
27111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27112   (eval "$ac_link") 2>conftest.er1
27113   ac_status=$?
27114   grep -v '^ *+' conftest.er1 >conftest.err
27115   rm -f conftest.er1
27116   cat conftest.err >&5
27117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27118   (exit $ac_status); } && {
27119          test -z "$ac_c_werror_flag" ||
27120          test ! -s conftest.err
27121        } && test -s conftest$ac_exeext &&
27122        $as_test_x conftest$ac_exeext; then
27123
27124           ac_cv_openssl_sha2="yes"
27125
27126 else
27127   echo "$as_me: failed program was:" >&5
27128 sed 's/^/| /' conftest.$ac_ext >&5
27129
27130
27131           ac_cv_openssl_sha2="no"
27132
27133
27134 fi
27135
27136 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27137       conftest$ac_exeext conftest.$ac_ext
27138
27139                cat >conftest.$ac_ext <<_ACEOF
27140 /* confdefs.h.  */
27141 _ACEOF
27142 cat confdefs.h >>conftest.$ac_ext
27143 cat >>conftest.$ac_ext <<_ACEOF
27144 /* end confdefs.h.  */
27145
27146           #include <openssl/evp.h>
27147
27148 int
27149 main ()
27150 {
27151
27152           EVP_aes_192_cbc();
27153
27154   ;
27155   return 0;
27156 }
27157 _ACEOF
27158 rm -f conftest.$ac_objext conftest$ac_exeext
27159 if { (ac_try="$ac_link"
27160 case "(($ac_try" in
27161   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27162   *) ac_try_echo=$ac_try;;
27163 esac
27164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27165   (eval "$ac_link") 2>conftest.er1
27166   ac_status=$?
27167   grep -v '^ *+' conftest.er1 >conftest.err
27168   rm -f conftest.er1
27169   cat conftest.err >&5
27170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27171   (exit $ac_status); } && {
27172          test -z "$ac_c_werror_flag" ||
27173          test ! -s conftest.err
27174        } && test -s conftest$ac_exeext &&
27175        $as_test_x conftest$ac_exeext; then
27176
27177           ac_cv_openssl_export="no"
27178
27179 else
27180   echo "$as_me: failed program was:" >&5
27181 sed 's/^/| /' conftest.$ac_ext >&5
27182
27183
27184           ac_cv_openssl_export="yes"
27185
27186
27187 fi
27188
27189 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27190       conftest$ac_exeext conftest.$ac_ext
27191
27192    LIBS="${saved_LIBS}"
27193    CFLAGS="${saved_CFLAGS}"
27194
27195    if test "$support_tls" = "yes"; then
27196
27197 cat >>confdefs.h <<\_ACEOF
27198 #define HAVE_OPENSSL 1
27199 _ACEOF
27200
27201
27202 cat >>confdefs.h <<\_ACEOF
27203 #define HAVE_TLS 1
27204 _ACEOF
27205
27206
27207 cat >>confdefs.h <<\_ACEOF
27208 #define HAVE_CRYPTO 1
27209 _ACEOF
27210
27211    fi
27212
27213    if test "$ac_cv_openssl_sha2" = "yes"; then
27214
27215 cat >>confdefs.h <<\_ACEOF
27216 #define HAVE_SHA2 1
27217 _ACEOF
27218
27219    fi
27220
27221    if test "$ac_cv_openssl_export" = "yes"; then
27222
27223 cat >>confdefs.h <<\_ACEOF
27224 #define HAVE_OPENSSL_EXPORT_LIBRARY 1
27225 _ACEOF
27226
27227    fi
27228 else
27229    support_tls="no"
27230    support_crypto="no"
27231    OPENSSL_LIBS=""
27232    OPENSSL_INC=""
27233 fi
27234
27235 { echo "$as_me:$LINENO: result: $support_tls" >&5
27236 echo "${ECHO_T}$support_tls" >&6; }
27237
27238
27239
27240 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
27241 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
27242 if test "${ac_cv_search_dlopen+set}" = set; then
27243   echo $ECHO_N "(cached) $ECHO_C" >&6
27244 else
27245   ac_func_search_save_LIBS=$LIBS
27246 cat >conftest.$ac_ext <<_ACEOF
27247 /* confdefs.h.  */
27248 _ACEOF
27249 cat confdefs.h >>conftest.$ac_ext
27250 cat >>conftest.$ac_ext <<_ACEOF
27251 /* end confdefs.h.  */
27252
27253 /* Override any GCC internal prototype to avoid an error.
27254    Use char because int might match the return type of a GCC
27255    builtin and then its argument prototype would still apply.  */
27256 #ifdef __cplusplus
27257 extern "C"
27258 #endif
27259 char dlopen ();
27260 int
27261 main ()
27262 {
27263 return dlopen ();
27264   ;
27265   return 0;
27266 }
27267 _ACEOF
27268 for ac_lib in '' dl; do
27269   if test -z "$ac_lib"; then
27270     ac_res="none required"
27271   else
27272     ac_res=-l$ac_lib
27273     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27274   fi
27275   rm -f conftest.$ac_objext conftest$ac_exeext
27276 if { (ac_try="$ac_link"
27277 case "(($ac_try" in
27278   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27279   *) ac_try_echo=$ac_try;;
27280 esac
27281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27282   (eval "$ac_link") 2>conftest.er1
27283   ac_status=$?
27284   grep -v '^ *+' conftest.er1 >conftest.err
27285   rm -f conftest.er1
27286   cat conftest.err >&5
27287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27288   (exit $ac_status); } && {
27289          test -z "$ac_c_werror_flag" ||
27290          test ! -s conftest.err
27291        } && test -s conftest$ac_exeext &&
27292        $as_test_x conftest$ac_exeext; then
27293   ac_cv_search_dlopen=$ac_res
27294 else
27295   echo "$as_me: failed program was:" >&5
27296 sed 's/^/| /' conftest.$ac_ext >&5
27297
27298
27299 fi
27300
27301 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27302       conftest$ac_exeext
27303   if test "${ac_cv_search_dlopen+set}" = set; then
27304   break
27305 fi
27306 done
27307 if test "${ac_cv_search_dlopen+set}" = set; then
27308   :
27309 else
27310   ac_cv_search_dlopen=no
27311 fi
27312 rm conftest.$ac_ext
27313 LIBS=$ac_func_search_save_LIBS
27314 fi
27315 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
27316 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
27317 ac_res=$ac_cv_search_dlopen
27318 if test "$ac_res" != no; then
27319   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27320
27321 fi
27322
27323
27324 working_dir=`eval echo ${prefix}/var/bacula/working`
27325
27326 # Check whether --with-working-dir was given.
27327 if test "${with_working_dir+set}" = set; then
27328   withval=$with_working_dir;
27329        if test "x$withval" != "xno" ; then
27330          working_dir=$withval
27331        fi
27332
27333
27334 fi
27335
27336
27337
27338
27339 archive_dir=/tmp
27340
27341 # Check whether --with-archivedir was given.
27342 if test "${with_archivedir+set}" = set; then
27343   withval=$with_archivedir;
27344        if test "x$withval" != "xno" ; then
27345           archivedir=$withval
27346        fi
27347
27348
27349 fi
27350
27351
27352
27353
27354 scriptdir=`eval echo ${sysconfdir}`
27355
27356 # Check whether --with-scriptdir was given.
27357 if test "${with_scriptdir+set}" = set; then
27358   withval=$with_scriptdir;
27359        if test "x$withval" != "xno" ; then
27360           scriptdir=$withval
27361        fi
27362
27363
27364 fi
27365
27366
27367
27368
27369
27370 bsrdir=/tmp
27371
27372 # Check whether --with-bsrdir was given.
27373 if test "${with_bsrdir+set}" = set; then
27374   withval=$with_bsrdir;
27375        if test "x$withval" != "xno" ; then
27376           bsrdir=$withval
27377        fi
27378
27379
27380 fi
27381
27382
27383
27384
27385 logdir=/tmp
27386
27387 # Check whether --with-logdir was given.
27388 if test "${with_logdir+set}" = set; then
27389   withval=$with_logdir;
27390        if test "x$withval" != "xno" ; then
27391           logdir=$withval
27392        fi
27393
27394
27395 fi
27396
27397
27398
27399
27400
27401 # ------------------------------------------
27402 # Where to place plugindir (plugin files)
27403 # ------------------------------------------
27404 plugindir=`eval echo ${libdir}`
27405
27406 # Check whether --with-plugindir was given.
27407 if test "${with_plugindir+set}" = set; then
27408   withval=$with_plugindir;
27409        if test "x$withval" != "xno" ; then
27410           plugindir=$withval
27411        fi
27412
27413
27414 fi
27415
27416
27417
27418
27419 dump_email=root@localhost
27420
27421 # Check whether --with-dump-email was given.
27422 if test "${with_dump_email+set}" = set; then
27423   withval=$with_dump_email;
27424        if test "x$withval" != "xno" ; then
27425           dump_email=$withval
27426        fi
27427
27428
27429 fi
27430
27431
27432
27433
27434 job_email=root@localhost
27435
27436 # Check whether --with-job-email was given.
27437 if test "${with_job_email+set}" = set; then
27438   withval=$with_job_email;
27439        if test "x$withval" != "xno" ; then
27440           job_email=$withval
27441        fi
27442
27443
27444 fi
27445
27446
27447
27448
27449 smtp_host=localhost
27450
27451 # Check whether --with-smtp_host was given.
27452 if test "${with_smtp_host+set}" = set; then
27453   withval=$with_smtp_host;
27454        if test "x$withval" != "xno" ; then
27455           smtp_host=$withval
27456        fi
27457
27458
27459 fi
27460
27461
27462
27463
27464 piddir=/var/run
27465
27466 # Check whether --with-pid-dir was given.
27467 if test "${with_pid_dir+set}" = set; then
27468   withval=$with_pid_dir;
27469        if test "x$withval" != "xno" ; then
27470           piddir=$withval
27471        fi
27472
27473
27474 fi
27475
27476
27477 cat >>confdefs.h <<_ACEOF
27478 #define _PATH_BACULA_PIDDIR "$piddir"
27479 _ACEOF
27480
27481
27482
27483 subsysdir=/var/run/subsys
27484 if test -d /var/run/subsys; then
27485    subsysdir=/var/run/subsys
27486 elif test -d /var/lock/subsys; then
27487    subsysdir=/var/lock/subsys
27488 else
27489    subsysdir=/var/run/subsys
27490 fi
27491
27492 # Check whether --with-subsys-dir was given.
27493 if test "${with_subsys_dir+set}" = set; then
27494   withval=$with_subsys_dir;
27495        if test "x$withval" != "xno" ; then
27496           subsysdir=$withval
27497        fi
27498
27499
27500 fi
27501
27502
27503
27504
27505 baseport=9101
27506
27507 # Check whether --with-baseport was given.
27508 if test "${with_baseport+set}" = set; then
27509   withval=$with_baseport;
27510        if test "x$withval" != "xno" ; then
27511           baseport=$withval
27512        fi
27513
27514
27515 fi
27516
27517
27518
27519 dir_port=`expr $baseport`
27520 fd_port=`expr $baseport + 1`
27521 sd_port=`expr $fd_port + 1`
27522
27523
27524
27525
27526
27527 dir_password=
27528
27529 # Check whether --with-dir-password was given.
27530 if test "${with_dir_password+set}" = set; then
27531   withval=$with_dir_password;
27532        if test "x$withval" != "xno" ; then
27533           dir_password=$withval
27534        fi
27535
27536
27537 fi
27538
27539
27540 if test "x$dir_password" = "x" ; then
27541    if test "x$OPENSSL" = "xnone" ; then
27542       key=`autoconf/randpass 33`
27543    else
27544       key=`openssl rand -base64 33`
27545    fi
27546    dir_password=$key
27547 fi
27548
27549 fd_password=
27550
27551 # Check whether --with-fd-password was given.
27552 if test "${with_fd_password+set}" = set; then
27553   withval=$with_fd_password;
27554        if test "x$withval" != "xno" ; then
27555           fd_password=$withval
27556        fi
27557
27558
27559 fi
27560
27561
27562 if test "x$fd_password" = "x" ; then
27563    if test "x$OPENSSL" = "xnone" ; then
27564       key=`autoconf/randpass 37`
27565    else
27566       key=`openssl rand -base64 33`
27567    fi
27568    fd_password=$key
27569 fi
27570
27571 sd_password=
27572
27573 # Check whether --with-sd-password was given.
27574 if test "${with_sd_password+set}" = set; then
27575   withval=$with_sd_password;
27576        if test "x$withval" != "xno" ; then
27577           sd_password=$withval
27578        fi
27579
27580
27581 fi
27582
27583
27584 if test "x$sd_password" = "x" ; then
27585    if test "x$OPENSSL" = "xnone" ; then
27586       key=`autoconf/randpass 41`
27587    else
27588       key=`openssl rand -base64 33`
27589    fi
27590    sd_password=$key
27591 fi
27592
27593 mon_dir_password=
27594
27595 # Check whether --with-mon-dir-password was given.
27596 if test "${with_mon_dir_password+set}" = set; then
27597   withval=$with_mon_dir_password;
27598        if test "x$withval" != "xno" ; then
27599           mon_dir_password=$withval
27600        fi
27601
27602
27603 fi
27604
27605
27606 if test "x$mon_dir_password" = "x" ; then
27607    if test "x$OPENSSL" = "xnone" ; then
27608       key=`autoconf/randpass 33`
27609    else
27610       key=`openssl rand -base64 33`
27611    fi
27612    mon_dir_password=$key
27613 fi
27614
27615 mon_fd_password=
27616
27617 # Check whether --with-mon-fd-password was given.
27618 if test "${with_mon_fd_password+set}" = set; then
27619   withval=$with_mon_fd_password;
27620        if test "x$withval" != "xno" ; then
27621           mon_fd_password=$withval
27622        fi
27623
27624
27625 fi
27626
27627
27628 if test "x$mon_fd_password" = "x" ; then
27629    if test "x$OPENSSL" = "xnone" ; then
27630       key=`autoconf/randpass 37`
27631    else
27632       key=`openssl rand -base64 33`
27633    fi
27634    mon_fd_password=$key
27635 fi
27636
27637 mon_sd_password=
27638
27639 # Check whether --with-mon-sd-password was given.
27640 if test "${with_mon_sd_password+set}" = set; then
27641   withval=$with_mon_sd_password;
27642        if test "x$withval" != "xno" ; then
27643           mon_sd_password=$withval
27644        fi
27645
27646
27647 fi
27648
27649
27650 if test "x$mon_sd_password" = "x" ; then
27651    if test "x$OPENSSL" = "xnone" ; then
27652       key=`autoconf/randpass 41`
27653    else
27654       key=`openssl rand -base64 33`
27655    fi
27656    mon_sd_password=$key
27657 fi
27658
27659
27660
27661
27662
27663
27664
27665
27666 db_name=bacula
27667
27668 # Check whether --with-db_name was given.
27669 if test "${with_db_name+set}" = set; then
27670   withval=$with_db_name;
27671        if test "x$withval" != "x" ; then
27672           db_name=$withval
27673        fi
27674
27675
27676 fi
27677
27678
27679
27680 db_user=bacula
27681
27682 # Check whether --with-db_user was given.
27683 if test "${with_db_user+set}" = set; then
27684   withval=$with_db_user;
27685        if test "x$withval" != "x" ; then
27686           db_user=$withval
27687        fi
27688
27689
27690 fi
27691
27692
27693
27694 db_password=
27695
27696 # Check whether --with-db_password was given.
27697 if test "${with_db_password+set}" = set; then
27698   withval=$with_db_password;
27699        if test "x$withval" != "x" ; then
27700           db_password=$withval
27701        fi
27702
27703
27704 fi
27705
27706
27707
27708 db_port=" "
27709
27710 # Check whether --with-db_port was given.
27711 if test "${with_db_port+set}" = set; then
27712   withval=$with_db_port;
27713        if test "x$withval" != "x" ; then
27714           db_port=$withval
27715        fi
27716
27717
27718 fi
27719
27720
27721
27722 #
27723 # Handle users and groups for each daemon
27724 #
27725 dir_user=
27726
27727 # Check whether --with-dir_user was given.
27728 if test "${with_dir_user+set}" = set; then
27729   withval=$with_dir_user;
27730        if test "x$withval" != "x" ; then
27731            dir_user=$withval
27732        fi
27733
27734
27735 fi
27736
27737
27738 dir_group=
27739
27740 # Check whether --with-dir_group was given.
27741 if test "${with_dir_group+set}" = set; then
27742   withval=$with_dir_group;
27743        if test "x$withval" != "x" ; then
27744           dir_group=$withval
27745        fi
27746
27747
27748 fi
27749
27750
27751 sd_user=
27752
27753 # Check whether --with-sd_user was given.
27754 if test "${with_sd_user+set}" = set; then
27755   withval=$with_sd_user;
27756        if test "x$withval" != "x" ; then
27757           sd_user=$withval
27758        fi
27759
27760
27761 fi
27762
27763
27764 sd_group=
27765
27766 # Check whether --with-sd_group was given.
27767 if test "${with_sd_group+set}" = set; then
27768   withval=$with_sd_group;
27769        if test "x$withval" != "x" ; then
27770           sd_group=$withval
27771        fi
27772
27773
27774 fi
27775
27776
27777 fd_user=
27778
27779 # Check whether --with-fd_user was given.
27780 if test "${with_fd_user+set}" = set; then
27781   withval=$with_fd_user;
27782        if test "x$withval" != "x" ; then
27783           fd_user=$withval
27784        fi
27785
27786
27787 fi
27788
27789
27790 fd_group=
27791
27792 # Check whether --with-fd_group was given.
27793 if test "${with_fd_group+set}" = set; then
27794   withval=$with_fd_group;
27795        if test "x$withval" != "x" ; then
27796           fd_group=$withval
27797        fi
27798
27799
27800 fi
27801
27802
27803
27804
27805
27806
27807
27808
27809
27810 SBINPERM=0754
27811
27812 # Check whether --with-sbin-perm was given.
27813 if test "${with_sbin_perm+set}" = set; then
27814   withval=$with_sbin_perm;
27815        if test "x$withval" != "x" ; then
27816           SBINPERM=$withval
27817        fi
27818
27819
27820 fi
27821
27822
27823
27824
27825 SQL_LIB=
27826
27827 db_found=no
27828 { echo "$as_me:$LINENO: checking for PostgreSQL support" >&5
27829 echo $ECHO_N "checking for PostgreSQL support... $ECHO_C" >&6; }
27830
27831 # Check whether --with-postgresql was given.
27832 if test "${with_postgresql+set}" = set; then
27833   withval=$with_postgresql;
27834   if test "$withval" != "no"; then
27835       if test "$db_found" = "yes"; then
27836           { echo "$as_me:$LINENO: result: error" >&5
27837 echo "${ECHO_T}error" >&6; }
27838           { { echo "$as_me:$LINENO: error: \"You can configure for only one database.\"" >&5
27839 echo "$as_me: error: \"You can configure for only one database.\"" >&2;}
27840    { (exit 1); exit 1; }; };
27841       fi
27842       if test "$withval" = "yes"; then
27843           PG_CONFIG=`which pg_config`
27844           if test -n "$PG_CONFIG";then
27845               POSTGRESQL_INCDIR=`"$PG_CONFIG" --includedir`
27846               POSTGRESQL_LIBDIR=`"$PG_CONFIG" --libdir`
27847               POSTGRESQL_BINDIR=`"$PG_CONFIG" --bindir`
27848           elif test -f /usr/local/include/libpq-fe.h; then
27849               POSTGRESQL_INCDIR=/usr/local/include
27850               if test -d /usr/local/lib64; then
27851                  POSTGRESQL_LIBDIR=/usr/local/lib64
27852               else
27853                  POSTGRESQL_LIBDIR=/usr/local/lib
27854               fi
27855               POSTGRESQL_BINDIR=/usr/local/bin
27856           elif test -f /usr/include/libpq-fe.h; then
27857               POSTGRESQL_INCDIR=/usr/include
27858               if test -d /usr/lib64; then
27859                  POSTGRESQL_LIBDIR=/usr/lib64
27860               else
27861                  POSTGRESQL_LIBDIR=/usr/lib
27862               fi
27863               POSTGRESQL_BINDIR=/usr/bin
27864           elif test -f /usr/include/pgsql/libpq-fe.h; then
27865               POSTGRESQL_INCDIR=/usr/include/pgsql
27866               if test -d /usr/lib64/pgsql; then
27867                  POSTGRESQL_LIBDIR=/usr/lib64/pgsql
27868               else
27869                  POSTGRESQL_LIBDIR=/usr/lib/pgsql
27870               fi
27871               POSTGRESQL_BINDIR=/usr/bin
27872           elif test -f /usr/include/postgresql/libpq-fe.h; then
27873               POSTGRESQL_INCDIR=/usr/include/postgresql
27874               if test -d /usr/lib64/postgresql; then
27875                  POSTGRESQL_LIBDIR=/usr/lib64/postgresql
27876               else
27877                  POSTGRESQL_LIBDIR=/usr/lib/postgresql
27878               fi
27879               POSTGRESQL_BINDIR=/usr/bin
27880           else
27881               { echo "$as_me:$LINENO: result: no" >&5
27882 echo "${ECHO_T}no" >&6; }
27883               { { echo "$as_me:$LINENO: error: Unable to find libpq-fe.h in standard locations" >&5
27884 echo "$as_me: error: Unable to find libpq-fe.h in standard locations" >&2;}
27885    { (exit 1); exit 1; }; }
27886           fi
27887       elif test -f $withval/include/libpq-fe.h; then
27888           POSTGRESQL_INCDIR=$withval/include
27889           POSTGRESQL_LIBDIR=$withval/lib
27890           POSTGRESQL_BINDIR=$withval/bin
27891       elif test -f $withval/include/postgresql/libpq-fe.h; then
27892           POSTGRESQL_INCDIR=$withval/include/postgresql
27893      if test -d $withval/lib64; then
27894          POSTGRESQL_LIBDIR=$withval/lib64
27895      else
27896          POSTGRESQL_LIBDIR=$withval/lib
27897      fi
27898           POSTGRESQL_BINDIR=$withval/bin
27899       else
27900           { echo "$as_me:$LINENO: result: no" >&5
27901 echo "${ECHO_T}no" >&6; }
27902           { { echo "$as_me:$LINENO: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&5
27903 echo "$as_me: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&2;}
27904    { (exit 1); exit 1; }; }
27905       fi
27906       POSTGRESQL_LFLAGS="-L$POSTGRESQL_LIBDIR -lpq"
27907       { echo "$as_me:$LINENO: checking for crypt" >&5
27908 echo $ECHO_N "checking for crypt... $ECHO_C" >&6; }
27909 if test "${ac_cv_func_crypt+set}" = set; then
27910   echo $ECHO_N "(cached) $ECHO_C" >&6
27911 else
27912   cat >conftest.$ac_ext <<_ACEOF
27913 /* confdefs.h.  */
27914 _ACEOF
27915 cat confdefs.h >>conftest.$ac_ext
27916 cat >>conftest.$ac_ext <<_ACEOF
27917 /* end confdefs.h.  */
27918 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
27919    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27920 #define crypt innocuous_crypt
27921
27922 /* System header to define __stub macros and hopefully few prototypes,
27923     which can conflict with char crypt (); below.
27924     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27925     <limits.h> exists even on freestanding compilers.  */
27926
27927 #ifdef __STDC__
27928 # include <limits.h>
27929 #else
27930 # include <assert.h>
27931 #endif
27932
27933 #undef crypt
27934
27935 /* Override any GCC internal prototype to avoid an error.
27936    Use char because int might match the return type of a GCC
27937    builtin and then its argument prototype would still apply.  */
27938 #ifdef __cplusplus
27939 extern "C"
27940 #endif
27941 char crypt ();
27942 /* The GNU C library defines this for functions which it implements
27943     to always fail with ENOSYS.  Some functions are actually named
27944     something starting with __ and the normal name is an alias.  */
27945 #if defined __stub_crypt || defined __stub___crypt
27946 choke me
27947 #endif
27948
27949 int
27950 main ()
27951 {
27952 return crypt ();
27953   ;
27954   return 0;
27955 }
27956 _ACEOF
27957 rm -f conftest.$ac_objext conftest$ac_exeext
27958 if { (ac_try="$ac_link"
27959 case "(($ac_try" in
27960   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27961   *) ac_try_echo=$ac_try;;
27962 esac
27963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27964   (eval "$ac_link") 2>conftest.er1
27965   ac_status=$?
27966   grep -v '^ *+' conftest.er1 >conftest.err
27967   rm -f conftest.er1
27968   cat conftest.err >&5
27969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27970   (exit $ac_status); } && {
27971          test -z "$ac_c_werror_flag" ||
27972          test ! -s conftest.err
27973        } && test -s conftest$ac_exeext &&
27974        $as_test_x conftest$ac_exeext; then
27975   ac_cv_func_crypt=yes
27976 else
27977   echo "$as_me: failed program was:" >&5
27978 sed 's/^/| /' conftest.$ac_ext >&5
27979
27980         ac_cv_func_crypt=no
27981 fi
27982
27983 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27984       conftest$ac_exeext conftest.$ac_ext
27985 fi
27986 { echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
27987 echo "${ECHO_T}$ac_cv_func_crypt" >&6; }
27988 if test $ac_cv_func_crypt = yes; then
27989   :
27990 else
27991   { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
27992 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
27993 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
27994   echo $ECHO_N "(cached) $ECHO_C" >&6
27995 else
27996   ac_check_lib_save_LIBS=$LIBS
27997 LIBS="-lcrypt  $LIBS"
27998 cat >conftest.$ac_ext <<_ACEOF
27999 /* confdefs.h.  */
28000 _ACEOF
28001 cat confdefs.h >>conftest.$ac_ext
28002 cat >>conftest.$ac_ext <<_ACEOF
28003 /* end confdefs.h.  */
28004
28005 /* Override any GCC internal prototype to avoid an error.
28006    Use char because int might match the return type of a GCC
28007    builtin and then its argument prototype would still apply.  */
28008 #ifdef __cplusplus
28009 extern "C"
28010 #endif
28011 char crypt ();
28012 int
28013 main ()
28014 {
28015 return crypt ();
28016   ;
28017   return 0;
28018 }
28019 _ACEOF
28020 rm -f conftest.$ac_objext conftest$ac_exeext
28021 if { (ac_try="$ac_link"
28022 case "(($ac_try" in
28023   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28024   *) ac_try_echo=$ac_try;;
28025 esac
28026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28027   (eval "$ac_link") 2>conftest.er1
28028   ac_status=$?
28029   grep -v '^ *+' conftest.er1 >conftest.err
28030   rm -f conftest.er1
28031   cat conftest.err >&5
28032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28033   (exit $ac_status); } && {
28034          test -z "$ac_c_werror_flag" ||
28035          test ! -s conftest.err
28036        } && test -s conftest$ac_exeext &&
28037        $as_test_x conftest$ac_exeext; then
28038   ac_cv_lib_crypt_crypt=yes
28039 else
28040   echo "$as_me: failed program was:" >&5
28041 sed 's/^/| /' conftest.$ac_ext >&5
28042
28043         ac_cv_lib_crypt_crypt=no
28044 fi
28045
28046 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28047       conftest$ac_exeext conftest.$ac_ext
28048 LIBS=$ac_check_lib_save_LIBS
28049 fi
28050 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
28051 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
28052 if test $ac_cv_lib_crypt_crypt = yes; then
28053   POSTGRESQL_LFLAGS="$POSTGRESQL_LFLAGS -lcrypt"
28054 fi
28055
28056 fi
28057
28058       SQL_INCLUDE=-I$POSTGRESQL_INCDIR
28059       SQL_LFLAGS=$POSTGRESQL_LFLAGS
28060       SQL_BINDIR=$POSTGRESQL_BINDIR
28061       SQL_LIB=$POSTGRESQL_LIBDIR/libpq.a
28062
28063       cat >>confdefs.h <<\_ACEOF
28064 #define HAVE_POSTGRESQL 1
28065 _ACEOF
28066
28067       { echo "$as_me:$LINENO: result: yes" >&5
28068 echo "${ECHO_T}yes" >&6; }
28069       db_found=yes
28070       support_postgresql=yes
28071       db_type=PostgreSQL
28072       DB_TYPE=postgresql
28073   else
28074       { echo "$as_me:$LINENO: result: no" >&5
28075 echo "${ECHO_T}no" >&6; }
28076   fi
28077
28078 else
28079
28080   { echo "$as_me:$LINENO: result: no" >&5
28081 echo "${ECHO_T}no" >&6; }
28082
28083 fi
28084
28085
28086
28087
28088
28089
28090
28091
28092 db_found=no
28093 { echo "$as_me:$LINENO: checking for MySQL support" >&5
28094 echo $ECHO_N "checking for MySQL support... $ECHO_C" >&6; }
28095
28096 # Check whether --with-mysql was given.
28097 if test "${with_mysql+set}" = set; then
28098   withval=$with_mysql;
28099   if test "$withval" != "no"; then
28100         if test "$withval" = "yes"; then
28101            if test -f /usr/local/mysql/include/mysql/mysql.h; then
28102                    MYSQL_INCDIR=/usr/local/mysql/include/mysql
28103                    if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
28104                         -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
28105                            MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
28106                    else
28107                            MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
28108                    fi
28109                    MYSQL_BINDIR=/usr/local/mysql/bin
28110            elif test -f /usr/include/mysql/mysql.h; then
28111                    MYSQL_INCDIR=/usr/include/mysql
28112                    if test -f /usr/lib64/mysql/libmysqlclient_r.a \
28113                         -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
28114                            MYSQL_LIBDIR=/usr/lib64/mysql
28115                    elif test -f /usr/lib64/libmysqlclient_r.a \
28116                         -o -f /usr/lib64/libmysqlclient_r.so; then
28117                            MYSQL_LIBDIR=/usr/lib64
28118                    elif test -f /usr/lib/mysql/libmysqlclient_r.a \
28119                           -o -f /usr/lib/mysql/libmysqlclient_r.so; then
28120                            MYSQL_LIBDIR=/usr/lib/mysql
28121                    else
28122                            MYSQL_LIBDIR=/usr/lib
28123                    fi
28124                    MYSQL_BINDIR=/usr/bin
28125            elif test -f /usr/include/mysql.h; then
28126                    MYSQL_INCDIR=/usr/include
28127                    if test -f /usr/lib64/libmysqlclient_r.a \
28128                         -o -f /usr/lib64/libmysqlclient_r.so; then
28129                            MYSQL_LIBDIR=/usr/lib64
28130                    else
28131                            MYSQL_LIBDIR=/usr/lib
28132                    fi
28133                    MYSQL_BINDIR=/usr/bin
28134            elif test -f /usr/local/include/mysql/mysql.h; then
28135                    MYSQL_INCDIR=/usr/local/include/mysql
28136                    if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
28137                         -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
28138                            MYSQL_LIBDIR=/usr/local/lib64/mysql
28139                    else
28140                            MYSQL_LIBDIR=/usr/local/lib/mysql
28141                    fi
28142                    MYSQL_BINDIR=/usr/local/bin
28143            elif test -f /usr/local/include/mysql.h; then
28144                    MYSQL_INCDIR=/usr/local/include
28145                    if test -f /usr/local/lib64/libmysqlclient_r.a \
28146                         -o -f /usr/local/lib64/libmysqlclient_r.so; then
28147                            MYSQL_LIBDIR=/usr/local/lib64
28148                    else
28149                            MYSQL_LIBDIR=/usr/local/lib
28150                    fi
28151                    MYSQL_BINDIR=/usr/local/bin
28152            else
28153               { echo "$as_me:$LINENO: result: no" >&5
28154 echo "${ECHO_T}no" >&6; }
28155               { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
28156 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
28157    { (exit 1); exit 1; }; }
28158            fi
28159         else
28160            if test -f $withval/include/mysql/mysql.h; then
28161               MYSQL_INCDIR=$withval/include/mysql
28162               if test -f $withval/lib64/mysql/libmysqlclient_r.a \
28163                    -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
28164                  MYSQL_LIBDIR=$withval/lib64/mysql
28165               elif test -f $withval/lib64/libmysqlclient_r.a \
28166                    -o -f $withval/lib64/libmysqlclient_r.so; then
28167                  MYSQL_LIBDIR=$withval/lib64
28168               elif test -f $withval/lib/libmysqlclient_r.a \
28169                    -o -f $withval/lib/libmysqlclient_r.so; then
28170                  MYSQL_LIBDIR=$withval/lib
28171               else
28172                  MYSQL_LIBDIR=$withval/lib/mysql
28173               fi
28174               MYSQL_BINDIR=$withval/bin
28175            elif test -f $withval/include/mysql.h; then
28176               MYSQL_INCDIR=$withval/include
28177               if test -f $withval/lib64/libmysqlclient_r.a \
28178                    -o -f $withval/lib64/libmysqlclient_r.so; then
28179                  MYSQL_LIBDIR=$withval/lib64
28180               else
28181                  MYSQL_LIBDIR=$withval/lib
28182               fi
28183               MYSQL_BINDIR=$withval/bin
28184            else
28185               { echo "$as_me:$LINENO: result: no" >&5
28186 echo "${ECHO_T}no" >&6; }
28187               { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
28188 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
28189    { (exit 1); exit 1; }; }
28190            fi
28191         fi
28192     SQL_INCLUDE=-I$MYSQL_INCDIR
28193     if test -f $MYSQL_LIBDIR/libmysqlclient_r.a \
28194          -o -f $MYSQL_LIBDIR/libmysqlclient_r.so; then
28195        SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
28196        cat >>confdefs.h <<\_ACEOF
28197 #define HAVE_THREAD_SAFE_MYSQL 1
28198 _ACEOF
28199
28200     fi
28201     SQL_BINDIR=$MYSQL_BINDIR
28202     SQL_LIB=$MYSQL_LIBDIR/libmysqlclient_r.a
28203
28204     cat >>confdefs.h <<\_ACEOF
28205 #define HAVE_MYSQL 1
28206 _ACEOF
28207
28208     { echo "$as_me:$LINENO: result: yes" >&5
28209 echo "${ECHO_T}yes" >&6; }
28210     db_found=yes
28211     support_mysql=yes
28212     db_type=MySQL
28213     DB_TYPE=mysql
28214
28215   else
28216         { echo "$as_me:$LINENO: result: no" >&5
28217 echo "${ECHO_T}no" >&6; }
28218   fi
28219
28220
28221 fi
28222
28223
28224
28225 # Check whether --with-embedded-mysql was given.
28226 if test "${with_embedded_mysql+set}" = set; then
28227   withval=$with_embedded_mysql;
28228   if test "$withval" != "no"; then
28229         if test "$withval" = "yes"; then
28230                 if test -f /usr/local/mysql/include/mysql/mysql.h; then
28231                         MYSQL_INCDIR=/usr/local/mysql/include/mysql
28232                         if test -d /usr/local/mysql/lib64/mysql; then
28233                                 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
28234                         else
28235                                 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
28236                         fi
28237                         MYSQL_BINDIR=/usr/local/mysql/bin
28238                 elif test -f /usr/include/mysql/mysql.h; then
28239                         MYSQL_INCDIR=/usr/include/mysql
28240                         if test -d /usr/lib64/mysql; then
28241                                 MYSQL_LIBDIR=/usr/lib64/mysql
28242                         else
28243                                 MYSQL_LIBDIR=/usr/lib/mysql
28244                         fi
28245                         MYSQL_BINDIR=/usr/bin
28246                 elif test -f /usr/include/mysql.h; then
28247                         MYSQL_INCDIR=/usr/include
28248                         if test -d /usr/lib64; then
28249                                 MYSQL_LIBDIR=/usr/lib64
28250                         else
28251                                 MYSQL_LIBDIR=/usr/lib
28252                         fi
28253                         MYSQL_BINDIR=/usr/bin
28254                 elif test -f /usr/local/include/mysql/mysql.h; then
28255                         MYSQL_INCDIR=/usr/local/include/mysql
28256                         if test -d /usr/local/lib64/mysql; then
28257                                 MYSQL_LIBDIR=/usr/local/lib64/mysql
28258                         else
28259                                 MYSQL_LIBDIR=/usr/local/lib/mysql
28260                         fi
28261                         MYSQL_BINDIR=/usr/local/bin
28262                 elif test -f /usr/local/include/mysql.h; then
28263                         MYSQL_INCDIR=/usr/local/include
28264                         if test -d /usr/local/lib64; then
28265                                 MYSQL_LIBDIR=/usr/local/lib64
28266                         else
28267                                 MYSQL_LIBDIR=/usr/local/lib
28268                         fi
28269                         MYSQL_BINDIR=/usr/local/bin
28270                 else
28271                    { echo "$as_me:$LINENO: result: no" >&5
28272 echo "${ECHO_T}no" >&6; }
28273                    { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
28274 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
28275    { (exit 1); exit 1; }; }
28276                 fi
28277         else
28278                 if test -f $withval/include/mysql/mysql.h; then
28279                         MYSQL_INCDIR=$withval/include/mysql
28280                         if test -d $withval/lib64/mysql; then
28281                                 MYSQL_LIBDIR=$withval/lib64/mysql
28282                         else
28283                                 MYSQL_LIBDIR=$withval/lib/mysql
28284                         fi
28285                         MYSQL_BINDIR=$withval/bin
28286                 elif test -f $withval/include/mysql.h; then
28287                         MYSQL_INCDIR=$withval/include
28288                         if test -d $withval/lib64; then
28289                                 MYSQL_LIBDIR=$withval/lib64
28290                         else
28291                                 MYSQL_LIBDIR=$withval/lib
28292                         fi
28293                         MYSQL_BINDIR=$withval/bin
28294                 else
28295                    { echo "$as_me:$LINENO: result: no" >&5
28296 echo "${ECHO_T}no" >&6; }
28297                    { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
28298 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
28299    { (exit 1); exit 1; }; }
28300                 fi
28301         fi
28302     SQL_INCLUDE=-I$MYSQL_INCDIR
28303     SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
28304     SQL_BINDIR=$MYSQL_BINDIR
28305     SQL_LIB=$MYSQL_LIBDIR/libmysqld.a
28306
28307     cat >>confdefs.h <<\_ACEOF
28308 #define HAVE_MYSQL 1
28309 _ACEOF
28310
28311     cat >>confdefs.h <<\_ACEOF
28312 #define HAVE_EMBEDDED_MYSQL 1
28313 _ACEOF
28314
28315     { echo "$as_me:$LINENO: result: yes" >&5
28316 echo "${ECHO_T}yes" >&6; }
28317     db_found=yes
28318     support_mysql=yes
28319     db_type=MySQL
28320     DB_TYPE=mysql
28321
28322   else
28323         { echo "$as_me:$LINENO: result: no" >&5
28324 echo "${ECHO_T}no" >&6; }
28325   fi
28326
28327
28328 fi
28329
28330
28331
28332
28333
28334
28335
28336
28337
28338
28339 db_found=no
28340 { echo "$as_me:$LINENO: checking for SQLite3 support" >&5
28341 echo $ECHO_N "checking for SQLite3 support... $ECHO_C" >&6; }
28342
28343 # Check whether --with-sqlite3 was given.
28344 if test "${with_sqlite3+set}" = set; then
28345   withval=$with_sqlite3;
28346   if test "$withval" != "no"; then
28347      if test "$withval" = "yes"; then
28348         if test -f /usr/local/include/sqlite3.h; then
28349            SQLITE_INCDIR=/usr/local/include
28350            if test -d /usr/local/lib64; then
28351               SQLITE_LIBDIR=/usr/local/lib64
28352            else
28353               SQLITE_LIBDIR=/usr/local/lib
28354            fi
28355            SQLITE_BINDIR=/usr/local/bin
28356         elif test -f /usr/include/sqlite3.h; then
28357            SQLITE_INCDIR=/usr/include
28358            if test -d /usr/lib64; then
28359               SQLITE_LIBDIR=/usr/lib64
28360            else
28361               SQLITE_LIBDIR=/usr/lib
28362            fi
28363            SQLITE_BINDIR=/usr/bin
28364         elif test -f $prefix/include/sqlite3.h; then
28365            SQLITE_INCDIR=$prefix/include
28366            if test -d $prefix/lib64; then
28367               SQLITE_LIBDIR=$prefix/lib64
28368            else
28369               SQLITE_LIBDIR=$prefix/lib
28370            fi
28371            SQLITE_BINDIR=$prefix/bin
28372         else
28373            { echo "$as_me:$LINENO: result: no" >&5
28374 echo "${ECHO_T}no" >&6; }
28375            { { echo "$as_me:$LINENO: error: Unable to find sqlite3.h in standard locations" >&5
28376 echo "$as_me: error: Unable to find sqlite3.h in standard locations" >&2;}
28377    { (exit 1); exit 1; }; }
28378         fi
28379      else
28380         if test -f $withval/sqlite3.h; then
28381            SQLITE_INCDIR=$withval
28382            SQLITE_LIBDIR=$withval
28383            SQLITE_BINDIR=$withval
28384         elif test -f $withval/include/sqlite3.h; then
28385            SQLITE_INCDIR=$withval/include
28386            if test -d $withval/lib64; then
28387               SQLITE_LIBDIR=$withval/lib64
28388            else
28389               SQLITE_LIBDIR=$withval/lib
28390            fi
28391            SQLITE_BINDIR=$withval/bin
28392         else
28393            { echo "$as_me:$LINENO: result: no" >&5
28394 echo "${ECHO_T}no" >&6; }
28395            { { echo "$as_me:$LINENO: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&5
28396 echo "$as_me: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&2;}
28397    { (exit 1); exit 1; }; }
28398         fi
28399      fi
28400      SQL_INCLUDE=-I$SQLITE_INCDIR
28401      SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite3"
28402      SQL_BINDIR=$SQLITE_BINDIR
28403      SQL_LIB=$SQLITE_LIBDIR/libsqlite3.a
28404
28405      cat >>confdefs.h <<\_ACEOF
28406 #define HAVE_SQLITE3 1
28407 _ACEOF
28408
28409      { echo "$as_me:$LINENO: result: yes" >&5
28410 echo "${ECHO_T}yes" >&6; }
28411      db_found=yes
28412      support_sqlite3=yes
28413      db_type=SQLite3
28414      DB_TYPE=sqlite3
28415
28416   else
28417      { echo "$as_me:$LINENO: result: no" >&5
28418 echo "${ECHO_T}no" >&6; }
28419   fi
28420
28421 else
28422
28423   { echo "$as_me:$LINENO: result: no" >&5
28424 echo "${ECHO_T}no" >&6; }
28425
28426 fi
28427
28428
28429
28430
28431
28432
28433
28434
28435 db_found=no
28436 { echo "$as_me:$LINENO: checking for SQLite support" >&5
28437 echo $ECHO_N "checking for SQLite support... $ECHO_C" >&6; }
28438
28439 # Check whether --with-sqlite was given.
28440 if test "${with_sqlite+set}" = set; then
28441   withval=$with_sqlite;
28442   if test "$withval" != "no"; then
28443      if test "$withval" = "yes"; then
28444         if test -f /usr/local/include/sqlite.h; then
28445            SQLITE_INCDIR=/usr/local/include
28446            if test -d /usr/local/lib64; then
28447               SQLITE_LIBDIR=/usr/local/lib64
28448            else
28449               SQLITE_LIBDIR=/usr/local/lib
28450            fi
28451            SQLITE_BINDIR=/usr/local/bin
28452         elif test -f /usr/include/sqlite.h; then
28453            SQLITE_INCDIR=/usr/include
28454            if test -d /usr/lib64; then
28455               SQLITE_LIBDIR=/usr/lib64
28456            else
28457               SQLITE_LIBDIR=/usr/lib
28458            fi
28459            SQLITE_BINDIR=/usr/bin
28460         elif test -f $prefix/include/sqlite.h; then
28461            SQLITE_INCDIR=$prefix/include
28462            if test -d $prefix/lib64; then
28463               SQLITE_LIBDIR=$prefix/lib64
28464            else
28465               SQLITE_LIBDIR=$prefix/lib
28466            fi
28467            SQLITE_BINDIR=$prefix/bin
28468         else
28469            { echo "$as_me:$LINENO: result: no" >&5
28470 echo "${ECHO_T}no" >&6; }
28471            { { echo "$as_me:$LINENO: error: Unable to find sqlite.h in standard locations" >&5
28472 echo "$as_me: error: Unable to find sqlite.h in standard locations" >&2;}
28473    { (exit 1); exit 1; }; }
28474         fi
28475      else
28476         if test -f $withval/sqlite.h; then
28477            SQLITE_INCDIR=$withval
28478            SQLITE_LIBDIR=$withval
28479            SQLITE_BINDIR=$withval
28480         elif test -f $withval/include/sqlite.h; then
28481            SQLITE_INCDIR=$withval/include
28482            if test -d $withval/lib64; then
28483               SQLITE_LIBDIR=$withval/lib64
28484            else
28485               SQLITE_LIBDIR=$withval/lib
28486            fi
28487            SQLITE_BINDIR=$withval/bin
28488         else
28489            { echo "$as_me:$LINENO: result: no" >&5
28490 echo "${ECHO_T}no" >&6; }
28491            { { echo "$as_me:$LINENO: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&5
28492 echo "$as_me: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&2;}
28493    { (exit 1); exit 1; }; }
28494         fi
28495      fi
28496      SQL_INCLUDE=-I$SQLITE_INCDIR
28497      SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite"
28498      SQL_BINDIR=$SQLITE_BINDIR
28499      SQL_LIB=$SQLITE_LIBDIR/libsqlite.a
28500
28501      cat >>confdefs.h <<\_ACEOF
28502 #define HAVE_SQLITE 1
28503 _ACEOF
28504
28505      { echo "$as_me:$LINENO: result: yes" >&5
28506 echo "${ECHO_T}yes" >&6; }
28507      db_found=yes
28508      support_sqlite=yes
28509      db_type=SQLite
28510      DB_TYPE=sqlite
28511
28512   else
28513      { echo "$as_me:$LINENO: result: no" >&5
28514 echo "${ECHO_T}no" >&6; }
28515   fi
28516
28517 else
28518
28519   { echo "$as_me:$LINENO: result: no" >&5
28520 echo "${ECHO_T}no" >&6; }
28521
28522 fi
28523
28524
28525
28526
28527
28528
28529
28530
28531 db_found=no
28532 { echo "$as_me:$LINENO: checking for DBI support" >&5
28533 echo $ECHO_N "checking for DBI support... $ECHO_C" >&6; }
28534
28535 # Check whether --with-dbi was given.
28536 if test "${with_dbi+set}" = set; then
28537   withval=$with_dbi;
28538   if test "$withval" != "no"; then
28539      if test "$withval" = "yes"; then
28540         if test -f /usr/local/include/dbi/dbi.h; then
28541            DBI_INCDIR=/usr/local/dbi/include
28542            if test -d /usr/local/lib64; then
28543               DBI_LIBDIR=/usr/local/lib64
28544            else
28545               DBI_LIBDIR=/usr/local/lib
28546            fi
28547            DBI_BINDIR=/usr/local/bin
28548         elif test -f /usr/include/dbi/dbi.h; then
28549            DBI_INCDIR=/usr/include
28550            if test -d /usr/lib64; then
28551               DBI_LIBDIR=/usr/lib64
28552            else
28553               DBI_LIBDIR=/usr/lib
28554            fi
28555            DBI_BINDIR=/usr/bin
28556         elif test -f $prefix/include/dbi/dbi.h; then
28557            DBI_INCDIR=$prefix/include
28558            if test -d $prefix/lib64; then
28559               DBI_LIBDIR=$prefix/lib64
28560            else
28561               DBI_LIBDIR=$prefix/lib
28562            fi
28563            DBI_BINDIR=$prefix/bin
28564         else
28565            { echo "$as_me:$LINENO: result: no" >&5
28566 echo "${ECHO_T}no" >&6; }
28567            { { echo "$as_me:$LINENO: error: Unable to find dbi.h in standard locations" >&5
28568 echo "$as_me: error: Unable to find dbi.h in standard locations" >&2;}
28569    { (exit 1); exit 1; }; }
28570         fi
28571         if test -d /usr/local/lib/dbd; then
28572            DRIVERDIR=/usr/local/lib/dbd
28573            if test -d /usr/local/lib64/dbd; then
28574               DRIVERDIR=/usr/local/lib64/dbd
28575            else
28576               DRIVERDIR=/usr/local/lib/dbd
28577            fi
28578         elif test -d /usr/lib/dbd; then
28579            DRIVERDIR=/usr/lib/dbd
28580            if test -d /usr/lib64/dbd; then
28581               DRIVERDIR=/usr/lib64/dbd
28582            else
28583               DRIVERDIR=/usr/lib/dbd
28584            fi
28585         elif test -d $prefix/lib/dbd; then
28586            if test -d $prefix/lib64/dbd; then
28587               DRIVERDIR=$prefix/lib64/dbd
28588            else
28589               DRIVERDIR=$prefix/lib/dbd
28590            fi
28591         else
28592            { echo "$as_me:$LINENO: result: no" >&5
28593 echo "${ECHO_T}no" >&6; }
28594            { { echo "$as_me:$LINENO: error: Unable to find DBD drivers in standard locations" >&5
28595 echo "$as_me: error: Unable to find DBD drivers in standard locations" >&2;}
28596    { (exit 1); exit 1; }; }
28597         fi
28598      else
28599         if test -f $withval/dbi.h; then
28600            DBI_INCDIR=$withval
28601            DBI_LIBDIR=$withval
28602            DBI_BINDIR=$withval
28603         elif test -f $withval/include/dbi/dbi.h; then
28604            DBI_INCDIR=$withval/include
28605            if test -d $withval/lib64; then
28606               DBI_LIBDIR=$withval/lib64
28607            else
28608               DBI_LIBDIR=$withval/lib
28609            fi
28610            DBI_BINDIR=$withval/bin
28611         else
28612            { echo "$as_me:$LINENO: result: no" >&5
28613 echo "${ECHO_T}no" >&6; }
28614            { { echo "$as_me:$LINENO: error: Invalid DBI directory $withval - unable to find dbi.h under $withval" >&5
28615 echo "$as_me: error: Invalid DBI directory $withval - unable to find dbi.h under $withval" >&2;}
28616    { (exit 1); exit 1; }; }
28617         fi
28618         if test -d $withval/dbd; then
28619            DRIVERDIR=$withval/dbd
28620         elif test -d $withval/lib/; then
28621            if test -d $withval/lib64/dbd; then
28622               DRIVERDIR=$withval/lib64/dbd
28623            else
28624               DRIVERDIR=$withval/lib/dbd
28625            fi
28626         else
28627            { echo "$as_me:$LINENO: result: no" >&5
28628 echo "${ECHO_T}no" >&6; }
28629            { { echo "$as_me:$LINENO: error: Invalid DBD driver directory $withval - unable to find DBD drivers under $withval" >&5
28630 echo "$as_me: error: Invalid DBD driver directory $withval - unable to find DBD drivers under $withval" >&2;}
28631    { (exit 1); exit 1; }; }
28632         fi
28633      fi
28634      SQL_INCLUDE=-I$DBI_INCDIR
28635      SQL_LFLAGS="-L$DBI_LIBDIR -ldbi"
28636      SQL_BINDIR=$DBI_BINDIR
28637      SQL_LIB=$DBI_LIBDIR/libdbi.a
28638      DBI_DBD_DRIVERDIR="-D DBI_DRIVER_DIR=\\\"$DRIVERDIR\\\""
28639
28640
28641 cat >>confdefs.h <<\_ACEOF
28642 #define HAVE_DBI 1
28643 _ACEOF
28644
28645      { echo "$as_me:$LINENO: result: yes" >&5
28646 echo "${ECHO_T}yes" >&6; }
28647      db_found=yes
28648      support_dbi=yes
28649      db_type=DBI
28650      DB_TYPE=dbi
28651      uncomment_dbi=" "
28652
28653   else
28654      { echo "$as_me:$LINENO: result: no" >&5
28655 echo "${ECHO_T}no" >&6; }
28656   fi
28657
28658 else
28659
28660   { echo "$as_me:$LINENO: result: no" >&5
28661 echo "${ECHO_T}no" >&6; }
28662
28663 fi
28664
28665
28666
28667
28668
28669
28670
28671
28672
28673
28674 db_found=no
28675 db_prog=no
28676 { echo "$as_me:$LINENO: checking for DBI drivers support" >&5
28677 echo $ECHO_N "checking for DBI drivers support... $ECHO_C" >&6; }
28678
28679 # Check whether --with-dbi-driver was given.
28680 if test "${with_dbi_driver+set}" = set; then
28681   withval=$with_dbi_driver;
28682   if test "$withval" != "no"; then
28683      case $withval in
28684         "mysql")
28685            db_prog="mysql"
28686            if test -f /usr/local/mysql/bin/mysql; then
28687               SQL_BINDIR=/usr/local/mysql/bin
28688               if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
28689                  -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
28690                  SQL_LIBDIR=/usr/local/mysql/lib64/mysql
28691               else
28692                  SQL_LIBDIR=/usr/local/mysql/lib/mysql
28693               fi
28694            elif test -f /usr/bin/mysql; then
28695               SQL_BINDIR=/usr/bin
28696               if test -f /usr/lib64/mysql/libmysqlclient_r.a \
28697                   -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
28698                   SQL_LIBDIR=/usr/lib64/mysql
28699               elif test -f /usr/lib/mysql/libmysqlclient_r.a \
28700                   -o -f /usr/lib/mysql/libmysqlclient_r.so; then
28701                   SQL_LIBDIR=/usr/lib/mysql
28702               else
28703                   SQL_LIBDIR=/usr/lib
28704               fi
28705            elif test -f /usr/local/bin/mysql; then
28706               SQL_BINDIR=/usr/local/bin
28707               if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
28708                   -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
28709                   SQL_LIBDIR=/usr/local/lib64/mysql
28710               elif test -f /usr/local/lib/mysql/libmysqlclient_r.a \
28711                   -o -f /usr/local/lib/mysql/libmysqlclient_r.so; then
28712                   SQL_LIBDIR=/usr/local/lib/mysql
28713               else
28714                   SQL_LIBDIR=/usr/local/lib
28715               fi
28716            elif test -f $withval/bin/mysql; then
28717               SQL_BINDIR=$withval/bin
28718               if test -f $withval/lib64/mysql/libmysqlclient_r.a \
28719                   -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
28720                   SQL_LIBDIR=$withval/lib64/mysql
28721               elif test -f $withval/lib64/libmysqlclient_r.a \
28722                   -o -f $withval/lib64/libmysqlclient_r.so; then
28723                   SQL_LIBDIR=$withval/lib64
28724               elif test -f $withval/lib/libmysqlclient_r.a \
28725                   -o -f $withval/lib/libmysqlclient_r.so; then
28726                   SQL_LIBDIR=$withval/lib/
28727               else
28728                   SQL_LIBDIR=$withval/lib/mysql
28729               fi
28730            else
28731               { echo "$as_me:$LINENO: result: no" >&5
28732 echo "${ECHO_T}no" >&6; }
28733               { { echo "$as_me:$LINENO: error: Unable to find mysql in standard locations" >&5
28734 echo "$as_me: error: Unable to find mysql in standard locations" >&2;}
28735    { (exit 1); exit 1; }; }
28736            fi
28737            if test -f $SQL_LIBDIR/libmysqlclient_r.so; then
28738               DB_PROG_LIB=$SQL_LIBDIR/libmysqlclient_r.so
28739            else
28740               DB_PROG_LIB=$SQL_LIBDIR/libmysqlclient_r.a
28741            fi
28742         ;;
28743         "postgresql")
28744            db_prog="postgresql"
28745            PG_CONFIG=`which pg_config`
28746            if test -n "$PG_CONFIG"; then
28747               SQL_BINDIR=`"$PG_CONFIG" --bindir`
28748               SQL_LIBDIR=`"$PG_CONFIG" --libdir`
28749            elif test -f /usr/local/bin/psql; then
28750               SQL_BINDIR=/usr/local/bin
28751               if test -d /usr/local/lib64; then
28752                  SQL_LIBDIR=/usr/local/lib64
28753               else
28754                  SQL_LIBDIR=/usr/local/lib
28755               fi
28756            elif test -f /usr/bin/psql; then
28757               SQL_BINDIR=/usr/local/bin
28758               if test -d /usr/lib64/postgresql; then
28759                  SQL_LIBDIR=/usr/lib64/postgresql
28760               elif test -d /usr/lib/postgresql; then
28761                  SQL_LIBDIR=/usr/lib/postgresql
28762               elif test -d /usr/lib64; then
28763                  SQL_LIBDIR=/usr/lib64
28764               else
28765                  SQL_LIBDIR=/usr/lib
28766               fi
28767            elif test -f $withval/bin/psql; then
28768               SQL_BINDIR=$withval/bin
28769               if test -d $withval/lib64; then
28770                  SQL_LIBDIR=$withval/lib64
28771               else
28772                  SQL_LIBDIR=$withval/lib
28773               fi
28774            else
28775               { echo "$as_me:$LINENO: result: no" >&5
28776 echo "${ECHO_T}no" >&6; }
28777               { { echo "$as_me:$LINENO: error: Unable to find psql in standard locations" >&5
28778 echo "$as_me: error: Unable to find psql in standard locations" >&2;}
28779    { (exit 1); exit 1; }; }
28780            fi
28781            if test -f $SQL_LIBDIR/libpq.so; then
28782               DB_PROG_LIB=$SQL_LIBDIR/libpq.so
28783            else
28784               DB_PROG_LIB=$SQL_LIBDIR/libpq.a
28785            fi
28786         ;;
28787         "sqlite")
28788            db_prog="sqlite"
28789            if test -f /usr/local/bin/sqlite; then
28790               SQL_BINDIR=/usr/local/bin
28791               if test -d /usr/local/lib64; then
28792                  SQL_LIBDIR=/usr/local/lib64
28793               else
28794                  SQL_LIBDIR=/usr/local/lib
28795               fi
28796            elif test -f /usr/bin/sqlite; then
28797               SQL_BINDIR=/usr/bin
28798               if test -d /usr/lib64; then
28799                  SQL_LIBDIR=/usr/lib64
28800               else
28801                  SQL_LIBDIR=/usr/lib
28802               fi
28803            elif test -f $withval/bin/sqlite; then
28804               SQL_BINDIR=$withval/bin
28805               if test -d $withval/lib64; then
28806                  SQL_LIBDIR=$withval/lib64
28807               else
28808                  SQL_LIBDIR=$withval/lib
28809               fi
28810            else
28811               { echo "$as_me:$LINENO: result: no" >&5
28812 echo "${ECHO_T}no" >&6; }
28813               { { echo "$as_me:$LINENO: error: Unable to find sqlite in standard locations" >&5
28814 echo "$as_me: error: Unable to find sqlite in standard locations" >&2;}
28815    { (exit 1); exit 1; }; }
28816            fi
28817            if test -f $SQL_LIBDIR/libsqlite.so; then
28818               DB_PROG_LIB=$SQL_LIBDIR/libsqlite.so
28819            else
28820               DB_PROG_LIB=$SQL_LIBDIR/libsqlite.a
28821            fi
28822         ;;
28823         "sqlite3")
28824            db_prog="sqlite3"
28825            if test -f /usr/local/bin/sqlite3; then
28826               SQL_BINDIR=/usr/local/bin
28827               if test -d /usr/local/lib64; then
28828                  SQL_LIBDIR=/usr/local/lib64
28829               else
28830                  SQL_LIBDIR=/usr/local/lib
28831               fi
28832            elif test -f /usr/bin/sqlite3; then
28833               SQL_BINDIR=/usr/bin
28834               if test -d /usr/lib64; then
28835                  SQL_LIBDIR=/usr/lib64
28836               else
28837                  SQL_LIBDIR=/usr/lib
28838               fi
28839            elif test -f $withval/bin/sqlite3; then
28840               SQL_BINDIR=$withval/bin
28841               if test -d $withval/lib64; then
28842                  SQL_LIBDIR=$withval/lib64
28843               else
28844                  SQL_LIBDIR=$withval/lib
28845               fi
28846            else
28847               { echo "$as_me:$LINENO: result: no" >&5
28848 echo "${ECHO_T}no" >&6; }
28849               { { echo "$as_me:$LINENO: error: Unable to find sqlite in standard locations" >&5
28850 echo "$as_me: error: Unable to find sqlite in standard locations" >&2;}
28851    { (exit 1); exit 1; }; }
28852            fi
28853            if test -f $SQL_LIBDIR/libsqlite3.so; then
28854               DB_PROG_LIB=$SQL_LIBDIR/libsqlite3.so
28855            else
28856               DB_PROG_LIB=$SQL_LIBDIR/libsqlite3.a
28857            fi
28858         ;;
28859         *)
28860            { echo "$as_me:$LINENO: result: no" >&5
28861 echo "${ECHO_T}no" >&6; }
28862            { { echo "$as_me:$LINENO: error: Unable to set DBI driver. $withval is not supported" >&5
28863 echo "$as_me: error: Unable to set DBI driver. $withval is not supported" >&2;}
28864    { (exit 1); exit 1; }; }
28865         ;;
28866      esac
28867
28868      { echo "$as_me:$LINENO: result: yes" >&5
28869 echo "${ECHO_T}yes" >&6; }
28870      DB_PROG=$db_prog
28871   else
28872      { echo "$as_me:$LINENO: result: no" >&5
28873 echo "${ECHO_T}no" >&6; }
28874   fi
28875
28876 else
28877
28878   { echo "$as_me:$LINENO: result: no" >&5
28879 echo "${ECHO_T}no" >&6; }
28880
28881 fi
28882
28883
28884
28885
28886
28887
28888
28889
28890
28891
28892 support_batch_insert=no
28893 A=`test -f $SQL_LIB && nm $SQL_LIB | grep pthread_mutex_lock`
28894 pkg=$?
28895 if test $pkg = 0; then
28896    support_batch_insert=yes
28897    # Check whether --enable-batch-insert was given.
28898 if test "${enable_batch_insert+set}" = set; then
28899   enableval=$enable_batch_insert;
28900           if test x$enableval = xno; then
28901              support_batch_insert=no
28902           else
28903              support_batch_insert=yes
28904           fi
28905
28906
28907 fi
28908
28909 fi
28910
28911 if test x$DB_TYPE = xpostgresql; then
28912    A=`test -f $SQL_LIB && nm $SQL_LIB | grep PQputCopyData`
28913    pkg=$?
28914    if test $pkg != 0; then
28915       support_batch_insert=no
28916    fi
28917 fi
28918
28919 if test x$DB_TYPE = xdbi; then
28920    DB_TYPE=$DB_PROG
28921    db_type=$DB_PROG
28922    pkg=1
28923       if test $DB_PROG = postgresql; then
28924       A=`test -f $SQL_LIB && nm $SQL_LIB | grep PQputCopyData`
28925       pkg=$?
28926    fi
28927
28928    if test $DB_PROG = mysql; then
28929       A=`test -f $SQL_LIB && nm $DB_PROG_LIB | grep pthread_mutex_lock`
28930       pkg=$?
28931    fi
28932
28933    if test $DB_PROG = sqlite3; then
28934       A=`test -f $SQL_LIB && nm $DB_PROG_LIB | grep pthread_mutex_lock`
28935       pkg=$?
28936    fi
28937
28938    if test $pkg = 0; then
28939       # Check whether --enable-batch-insert was given.
28940 if test "${enable_batch_insert+set}" = set; then
28941   enableval=$enable_batch_insert;
28942              if test x$enableval = xno; then
28943                 support_batch_insert=no
28944              else
28945                 support_batch_insert=yes
28946              fi
28947
28948
28949 fi
28950
28951    fi
28952 else
28953       uncomment_dbi="#"
28954 fi
28955
28956
28957
28958 if test $support_batch_insert = yes ; then
28959
28960 cat >>confdefs.h <<\_ACEOF
28961 #define HAVE_BATCH_FILE_INSERT 1
28962 _ACEOF
28963
28964 fi
28965
28966 cat >>confdefs.h <<\_ACEOF
28967 #define PROTOTYPES 1
28968 _ACEOF
28969
28970
28971 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
28972    if test -z "$CCOPTS"; then
28973       CCOPTS='-g -O2 -Wall'
28974    fi
28975    CFLAGS="$CCOPTS"
28976 fi
28977
28978
28979
28980 largefile_support="no"
28981
28982    # Check whether --enable-largefile was given.
28983 if test "${enable_largefile+set}" = set; then
28984   enableval=$enable_largefile;
28985 fi
28986
28987    if test "$enable_largefile" != no; then
28988      if test -n "$ac_tool_prefix"; then
28989   # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
28990 set dummy ${ac_tool_prefix}getconf; ac_word=$2
28991 { echo "$as_me:$LINENO: checking for $ac_word" >&5
28992 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
28993 if test "${ac_cv_prog_GETCONF+set}" = set; then
28994   echo $ECHO_N "(cached) $ECHO_C" >&6
28995 else
28996   if test -n "$GETCONF"; then
28997   ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
28998 else
28999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29000 for as_dir in $PATH
29001 do
29002   IFS=$as_save_IFS
29003   test -z "$as_dir" && as_dir=.
29004   for ac_exec_ext in '' $ac_executable_extensions; do
29005   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29006     ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
29007     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29008     break 2
29009   fi
29010 done
29011 done
29012 IFS=$as_save_IFS
29013
29014 fi
29015 fi
29016 GETCONF=$ac_cv_prog_GETCONF
29017 if test -n "$GETCONF"; then
29018   { echo "$as_me:$LINENO: result: $GETCONF" >&5
29019 echo "${ECHO_T}$GETCONF" >&6; }
29020 else
29021   { echo "$as_me:$LINENO: result: no" >&5
29022 echo "${ECHO_T}no" >&6; }
29023 fi
29024
29025
29026 fi
29027 if test -z "$ac_cv_prog_GETCONF"; then
29028   ac_ct_GETCONF=$GETCONF
29029   # Extract the first word of "getconf", so it can be a program name with args.
29030 set dummy getconf; ac_word=$2
29031 { echo "$as_me:$LINENO: checking for $ac_word" >&5
29032 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
29033 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
29034   echo $ECHO_N "(cached) $ECHO_C" >&6
29035 else
29036   if test -n "$ac_ct_GETCONF"; then
29037   ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
29038 else
29039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29040 for as_dir in $PATH
29041 do
29042   IFS=$as_save_IFS
29043   test -z "$as_dir" && as_dir=.
29044   for ac_exec_ext in '' $ac_executable_extensions; do
29045   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29046     ac_cv_prog_ac_ct_GETCONF="getconf"
29047     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29048     break 2
29049   fi
29050 done
29051 done
29052 IFS=$as_save_IFS
29053
29054 fi
29055 fi
29056 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
29057 if test -n "$ac_ct_GETCONF"; then
29058   { echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
29059 echo "${ECHO_T}$ac_ct_GETCONF" >&6; }
29060 else
29061   { echo "$as_me:$LINENO: result: no" >&5
29062 echo "${ECHO_T}no" >&6; }
29063 fi
29064
29065   if test "x$ac_ct_GETCONF" = x; then
29066     GETCONF=""
29067   else
29068     case $cross_compiling:$ac_tool_warned in
29069 yes:)
29070 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
29071 whose name does not start with the host triplet.  If you think this
29072 configuration is useful to you, please write to autoconf@gnu.org." >&5
29073 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
29074 whose name does not start with the host triplet.  If you think this
29075 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
29076 ac_tool_warned=yes ;;
29077 esac
29078     GETCONF=$ac_ct_GETCONF
29079   fi
29080 else
29081   GETCONF="$ac_cv_prog_GETCONF"
29082 fi
29083
29084      { echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
29085 echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" >&6; }
29086 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
29087   echo $ECHO_N "(cached) $ECHO_C" >&6
29088 else
29089   ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
29090         ac_cv_sys_largefile_CFLAGS=no
29091         case "$host_os" in
29092            # IRIX 6.2 and later require cc -n32.
29093            irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
29094              if test "$GCC" != yes; then
29095                ac_cv_sys_largefile_CFLAGS=-n32
29096              fi
29097              ac_save_CC="$CC"
29098              CC="$CC $ac_cv_sys_largefile_CFLAGS"
29099              cat >conftest.$ac_ext <<_ACEOF
29100 /* confdefs.h.  */
29101 _ACEOF
29102 cat confdefs.h >>conftest.$ac_ext
29103 cat >>conftest.$ac_ext <<_ACEOF
29104 /* end confdefs.h.  */
29105
29106 int
29107 main ()
29108 {
29109
29110   ;
29111   return 0;
29112 }
29113 _ACEOF
29114 rm -f conftest.$ac_objext conftest$ac_exeext
29115 if { (ac_try="$ac_link"
29116 case "(($ac_try" in
29117   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29118   *) ac_try_echo=$ac_try;;
29119 esac
29120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29121   (eval "$ac_link") 2>conftest.er1
29122   ac_status=$?
29123   grep -v '^ *+' conftest.er1 >conftest.err
29124   rm -f conftest.er1
29125   cat conftest.err >&5
29126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29127   (exit $ac_status); } && {
29128          test -z "$ac_c_werror_flag" ||
29129          test ! -s conftest.err
29130        } && test -s conftest$ac_exeext &&
29131        $as_test_x conftest$ac_exeext; then
29132   :
29133 else
29134   echo "$as_me: failed program was:" >&5
29135 sed 's/^/| /' conftest.$ac_ext >&5
29136
29137         ac_cv_sys_largefile_CFLAGS=no
29138 fi
29139
29140 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29141       conftest$ac_exeext conftest.$ac_ext
29142              CC="$ac_save_CC"
29143            esac
29144       }
29145 fi
29146 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
29147 echo "${ECHO_T}$ac_cv_sys_largefile_CFLAGS" >&6; }
29148      { echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
29149 echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" >&6; }
29150 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
29151   echo $ECHO_N "(cached) $ECHO_C" >&6
29152 else
29153   ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
29154         ac_cv_sys_largefile_LDFLAGS=no
29155
29156       }
29157 fi
29158 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
29159 echo "${ECHO_T}$ac_cv_sys_largefile_LDFLAGS" >&6; }
29160      { echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
29161 echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" >&6; }
29162 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
29163   echo $ECHO_N "(cached) $ECHO_C" >&6
29164 else
29165   ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
29166         ac_cv_sys_largefile_LIBS=no
29167
29168       }
29169 fi
29170 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
29171 echo "${ECHO_T}$ac_cv_sys_largefile_LIBS" >&6; }
29172
29173      for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
29174        case "$ac_flag" in
29175        no) ;;
29176        -D_FILE_OFFSET_BITS=*) ;;
29177        -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
29178        -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
29179        -D?* | -I?*)
29180          case "$ac_flag" in
29181    no) ;;
29182    ?*)
29183      case "$CPPFLAGS" in
29184      '') CPPFLAGS="$ac_flag" ;;
29185      *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
29186      esac ;;
29187    esac ;;
29188        *)
29189          case "$ac_flag" in
29190    no) ;;
29191    ?*)
29192      case "$CFLAGS" in
29193      '') CFLAGS="$ac_flag" ;;
29194      *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
29195      esac ;;
29196    esac ;;
29197        esac
29198      done
29199      case "$ac_cv_sys_largefile_LDFLAGS" in
29200    no) ;;
29201    ?*)
29202      case "$LDFLAGS" in
29203      '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
29204      *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
29205      esac ;;
29206    esac
29207      case "$ac_cv_sys_largefile_LIBS" in
29208    no) ;;
29209    ?*)
29210      case "$LIBS" in
29211      '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
29212      *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
29213      esac ;;
29214    esac
29215      { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
29216 echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" >&6; }
29217 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
29218   echo $ECHO_N "(cached) $ECHO_C" >&6
29219 else
29220   ac_cv_sys_file_offset_bits=no
29221       ac_cv_sys_file_offset_bits=64
29222       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
29223         case "$ac_flag" in
29224         -D_FILE_OFFSET_BITS)
29225           ac_cv_sys_file_offset_bits=1 ;;
29226         -D_FILE_OFFSET_BITS=*)
29227           ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
29228         esac
29229       done
29230
29231 fi
29232 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
29233 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
29234    if test "$ac_cv_sys_file_offset_bits" != no; then
29235
29236 cat >>confdefs.h <<_ACEOF
29237 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
29238 _ACEOF
29239
29240    fi
29241      { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
29242 echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" >&6; }
29243 if test "${ac_cv_sys_largefile_source+set}" = set; then
29244   echo $ECHO_N "(cached) $ECHO_C" >&6
29245 else
29246   ac_cv_sys_largefile_source=no
29247       ac_cv_sys_largefile_source=1
29248       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
29249         case "$ac_flag" in
29250         -D_LARGEFILE_SOURCE)
29251           ac_cv_sys_largefile_source=1 ;;
29252         -D_LARGEFILE_SOURCE=*)
29253           ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
29254         esac
29255       done
29256
29257 fi
29258 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
29259 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
29260    if test "$ac_cv_sys_largefile_source" != no; then
29261
29262 cat >>confdefs.h <<_ACEOF
29263 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
29264 _ACEOF
29265
29266    fi
29267      { echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
29268 echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" >&6; }
29269 if test "${ac_cv_sys_large_files+set}" = set; then
29270   echo $ECHO_N "(cached) $ECHO_C" >&6
29271 else
29272   ac_cv_sys_large_files=no
29273       ac_cv_sys_large_files=1
29274       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
29275         case "$ac_flag" in
29276         -D_LARGE_FILES)
29277           ac_cv_sys_large_files=1 ;;
29278         -D_LARGE_FILES=*)
29279           ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
29280         esac
29281       done
29282
29283 fi
29284 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
29285 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
29286    if test "$ac_cv_sys_large_files" != no; then
29287
29288 cat >>confdefs.h <<_ACEOF
29289 #define _LARGE_FILES $ac_cv_sys_large_files
29290 _ACEOF
29291
29292    fi
29293    fi
29294
29295
29296 { echo "$as_me:$LINENO: checking for X" >&5
29297 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
29298
29299
29300 # Check whether --with-x was given.
29301 if test "${with_x+set}" = set; then
29302   withval=$with_x;
29303 fi
29304
29305 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
29306 if test "x$with_x" = xno; then
29307   # The user explicitly disabled X.
29308   have_x=disabled
29309 else
29310   case $x_includes,$x_libraries in #(
29311     *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
29312 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
29313    { (exit 1); exit 1; }; };; #(
29314     *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
29315   echo $ECHO_N "(cached) $ECHO_C" >&6
29316 else
29317   # One or both of the vars are not set, and there is no cached value.
29318 ac_x_includes=no ac_x_libraries=no
29319 rm -f -r conftest.dir
29320 if mkdir conftest.dir; then
29321   cd conftest.dir
29322   cat >Imakefile <<'_ACEOF'
29323 incroot:
29324         @echo incroot='${INCROOT}'
29325 usrlibdir:
29326         @echo usrlibdir='${USRLIBDIR}'
29327 libdir:
29328         @echo libdir='${LIBDIR}'
29329 _ACEOF
29330   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
29331     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
29332     for ac_var in incroot usrlibdir libdir; do
29333       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
29334     done
29335     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
29336     for ac_extension in a so sl; do
29337       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
29338          test -f "$ac_im_libdir/libX11.$ac_extension"; then
29339         ac_im_usrlibdir=$ac_im_libdir; break
29340       fi
29341     done
29342     # Screen out bogus values from the imake configuration.  They are
29343     # bogus both because they are the default anyway, and because
29344     # using them would break gcc on systems where it needs fixed includes.
29345     case $ac_im_incroot in
29346         /usr/include) ac_x_includes= ;;
29347         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
29348     esac
29349     case $ac_im_usrlibdir in
29350         /usr/lib | /lib) ;;
29351         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
29352     esac
29353   fi
29354   cd ..
29355   rm -f -r conftest.dir
29356 fi
29357
29358 # Standard set of common directories for X headers.
29359 # Check X11 before X11Rn because it is often a symlink to the current release.
29360 ac_x_header_dirs='
29361 /usr/X11/include
29362 /usr/X11R6/include
29363 /usr/X11R5/include
29364 /usr/X11R4/include
29365
29366 /usr/include/X11
29367 /usr/include/X11R6
29368 /usr/include/X11R5
29369 /usr/include/X11R4
29370
29371 /usr/local/X11/include
29372 /usr/local/X11R6/include
29373 /usr/local/X11R5/include
29374 /usr/local/X11R4/include
29375
29376 /usr/local/include/X11
29377 /usr/local/include/X11R6
29378 /usr/local/include/X11R5
29379 /usr/local/include/X11R4
29380
29381 /usr/X386/include
29382 /usr/x386/include
29383 /usr/XFree86/include/X11
29384
29385 /usr/include
29386 /usr/local/include
29387 /usr/unsupported/include
29388 /usr/athena/include
29389 /usr/local/x11r5/include
29390 /usr/lpp/Xamples/include
29391
29392 /usr/openwin/include
29393 /usr/openwin/share/include'
29394
29395 if test "$ac_x_includes" = no; then
29396   # Guess where to find include files, by looking for Xlib.h.
29397   # First, try using that file with no special directory specified.
29398   cat >conftest.$ac_ext <<_ACEOF
29399 /* confdefs.h.  */
29400 _ACEOF
29401 cat confdefs.h >>conftest.$ac_ext
29402 cat >>conftest.$ac_ext <<_ACEOF
29403 /* end confdefs.h.  */
29404 #include <X11/Xlib.h>
29405 _ACEOF
29406 if { (ac_try="$ac_cpp conftest.$ac_ext"
29407 case "(($ac_try" in
29408   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29409   *) ac_try_echo=$ac_try;;
29410 esac
29411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29412   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29413   ac_status=$?
29414   grep -v '^ *+' conftest.er1 >conftest.err
29415   rm -f conftest.er1
29416   cat conftest.err >&5
29417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29418   (exit $ac_status); } >/dev/null && {
29419          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29420          test ! -s conftest.err
29421        }; then
29422   # We can compile using X headers with no special include directory.
29423 ac_x_includes=
29424 else
29425   echo "$as_me: failed program was:" >&5
29426 sed 's/^/| /' conftest.$ac_ext >&5
29427
29428   for ac_dir in $ac_x_header_dirs; do
29429   if test -r "$ac_dir/X11/Xlib.h"; then
29430     ac_x_includes=$ac_dir
29431     break
29432   fi
29433 done
29434 fi
29435
29436 rm -f conftest.err conftest.$ac_ext
29437 fi # $ac_x_includes = no
29438
29439 if test "$ac_x_libraries" = no; then
29440   # Check for the libraries.
29441   # See if we find them without any special options.
29442   # Don't add to $LIBS permanently.
29443   ac_save_LIBS=$LIBS
29444   LIBS="-lX11 $LIBS"
29445   cat >conftest.$ac_ext <<_ACEOF
29446 /* confdefs.h.  */
29447 _ACEOF
29448 cat confdefs.h >>conftest.$ac_ext
29449 cat >>conftest.$ac_ext <<_ACEOF
29450 /* end confdefs.h.  */
29451 #include <X11/Xlib.h>
29452 int
29453 main ()
29454 {
29455 XrmInitialize ()
29456   ;
29457   return 0;
29458 }
29459 _ACEOF
29460 rm -f conftest.$ac_objext conftest$ac_exeext
29461 if { (ac_try="$ac_link"
29462 case "(($ac_try" in
29463   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29464   *) ac_try_echo=$ac_try;;
29465 esac
29466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29467   (eval "$ac_link") 2>conftest.er1
29468   ac_status=$?
29469   grep -v '^ *+' conftest.er1 >conftest.err
29470   rm -f conftest.er1
29471   cat conftest.err >&5
29472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29473   (exit $ac_status); } && {
29474          test -z "$ac_c_werror_flag" ||
29475          test ! -s conftest.err
29476        } && test -s conftest$ac_exeext &&
29477        $as_test_x conftest$ac_exeext; then
29478   LIBS=$ac_save_LIBS
29479 # We can link X programs with no special library path.
29480 ac_x_libraries=
29481 else
29482   echo "$as_me: failed program was:" >&5
29483 sed 's/^/| /' conftest.$ac_ext >&5
29484
29485         LIBS=$ac_save_LIBS
29486 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
29487 do
29488   # Don't even attempt the hair of trying to link an X program!
29489   for ac_extension in a so sl; do
29490     if test -r "$ac_dir/libX11.$ac_extension"; then
29491       ac_x_libraries=$ac_dir
29492       break 2
29493     fi
29494   done
29495 done
29496 fi
29497
29498 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29499       conftest$ac_exeext conftest.$ac_ext
29500 fi # $ac_x_libraries = no
29501
29502 case $ac_x_includes,$ac_x_libraries in #(
29503   no,* | *,no | *\'*)
29504     # Didn't find X, or a directory has "'" in its name.
29505     ac_cv_have_x="have_x=no";; #(
29506   *)
29507     # Record where we found X for the cache.
29508     ac_cv_have_x="have_x=yes\
29509         ac_x_includes='$ac_x_includes'\
29510         ac_x_libraries='$ac_x_libraries'"
29511 esac
29512 fi
29513 ;; #(
29514     *) have_x=yes;;
29515   esac
29516   eval "$ac_cv_have_x"
29517 fi # $with_x != no
29518
29519 if test "$have_x" != yes; then
29520   { echo "$as_me:$LINENO: result: $have_x" >&5
29521 echo "${ECHO_T}$have_x" >&6; }
29522   no_x=yes
29523 else
29524   # If each of the values was on the command line, it overrides each guess.
29525   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
29526   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
29527   # Update the cache value to reflect the command line values.
29528   ac_cv_have_x="have_x=yes\
29529         ac_x_includes='$x_includes'\
29530         ac_x_libraries='$x_libraries'"
29531   { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
29532 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
29533 fi
29534
29535 if test "$no_x" = yes; then
29536   # Not all programs may use this symbol, but it does not hurt to define it.
29537
29538 cat >>confdefs.h <<\_ACEOF
29539 #define X_DISPLAY_MISSING 1
29540 _ACEOF
29541
29542   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
29543 else
29544   if test -n "$x_includes"; then
29545     X_CFLAGS="$X_CFLAGS -I$x_includes"
29546   fi
29547
29548   # It would also be nice to do this for all -L options, not just this one.
29549   if test -n "$x_libraries"; then
29550     X_LIBS="$X_LIBS -L$x_libraries"
29551     # For Solaris; some versions of Sun CC require a space after -R and
29552     # others require no space.  Words are not sufficient . . . .
29553     { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
29554 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
29555     ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
29556     ac_xsave_c_werror_flag=$ac_c_werror_flag
29557     ac_c_werror_flag=yes
29558     cat >conftest.$ac_ext <<_ACEOF
29559 /* confdefs.h.  */
29560 _ACEOF
29561 cat confdefs.h >>conftest.$ac_ext
29562 cat >>conftest.$ac_ext <<_ACEOF
29563 /* end confdefs.h.  */
29564
29565 int
29566 main ()
29567 {
29568
29569   ;
29570   return 0;
29571 }
29572 _ACEOF
29573 rm -f conftest.$ac_objext conftest$ac_exeext
29574 if { (ac_try="$ac_link"
29575 case "(($ac_try" in
29576   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29577   *) ac_try_echo=$ac_try;;
29578 esac
29579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29580   (eval "$ac_link") 2>conftest.er1
29581   ac_status=$?
29582   grep -v '^ *+' conftest.er1 >conftest.err
29583   rm -f conftest.er1
29584   cat conftest.err >&5
29585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29586   (exit $ac_status); } && {
29587          test -z "$ac_c_werror_flag" ||
29588          test ! -s conftest.err
29589        } && test -s conftest$ac_exeext &&
29590        $as_test_x conftest$ac_exeext; then
29591   { echo "$as_me:$LINENO: result: no" >&5
29592 echo "${ECHO_T}no" >&6; }
29593        X_LIBS="$X_LIBS -R$x_libraries"
29594 else
29595   echo "$as_me: failed program was:" >&5
29596 sed 's/^/| /' conftest.$ac_ext >&5
29597
29598         LIBS="$ac_xsave_LIBS -R $x_libraries"
29599        cat >conftest.$ac_ext <<_ACEOF
29600 /* confdefs.h.  */
29601 _ACEOF
29602 cat confdefs.h >>conftest.$ac_ext
29603 cat >>conftest.$ac_ext <<_ACEOF
29604 /* end confdefs.h.  */
29605
29606 int
29607 main ()
29608 {
29609
29610   ;
29611   return 0;
29612 }
29613 _ACEOF
29614 rm -f conftest.$ac_objext conftest$ac_exeext
29615 if { (ac_try="$ac_link"
29616 case "(($ac_try" in
29617   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29618   *) ac_try_echo=$ac_try;;
29619 esac
29620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29621   (eval "$ac_link") 2>conftest.er1
29622   ac_status=$?
29623   grep -v '^ *+' conftest.er1 >conftest.err
29624   rm -f conftest.er1
29625   cat conftest.err >&5
29626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29627   (exit $ac_status); } && {
29628          test -z "$ac_c_werror_flag" ||
29629          test ! -s conftest.err
29630        } && test -s conftest$ac_exeext &&
29631        $as_test_x conftest$ac_exeext; then
29632   { echo "$as_me:$LINENO: result: yes" >&5
29633 echo "${ECHO_T}yes" >&6; }
29634           X_LIBS="$X_LIBS -R $x_libraries"
29635 else
29636   echo "$as_me: failed program was:" >&5
29637 sed 's/^/| /' conftest.$ac_ext >&5
29638
29639         { echo "$as_me:$LINENO: result: neither works" >&5
29640 echo "${ECHO_T}neither works" >&6; }
29641 fi
29642
29643 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29644       conftest$ac_exeext conftest.$ac_ext
29645 fi
29646
29647 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29648       conftest$ac_exeext conftest.$ac_ext
29649     ac_c_werror_flag=$ac_xsave_c_werror_flag
29650     LIBS=$ac_xsave_LIBS
29651   fi
29652
29653   # Check for system-dependent libraries X programs must link with.
29654   # Do this before checking for the system-independent R6 libraries
29655   # (-lICE), since we may need -lsocket or whatever for X linking.
29656
29657   if test "$ISC" = yes; then
29658     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
29659   else
29660     # Martyn Johnson says this is needed for Ultrix, if the X
29661     # libraries were built with DECnet support.  And Karl Berry says
29662     # the Alpha needs dnet_stub (dnet does not exist).
29663     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
29664     cat >conftest.$ac_ext <<_ACEOF
29665 /* confdefs.h.  */
29666 _ACEOF
29667 cat confdefs.h >>conftest.$ac_ext
29668 cat >>conftest.$ac_ext <<_ACEOF
29669 /* end confdefs.h.  */
29670
29671 /* Override any GCC internal prototype to avoid an error.
29672    Use char because int might match the return type of a GCC
29673    builtin and then its argument prototype would still apply.  */
29674 #ifdef __cplusplus
29675 extern "C"
29676 #endif
29677 char XOpenDisplay ();
29678 int
29679 main ()
29680 {
29681 return XOpenDisplay ();
29682   ;
29683   return 0;
29684 }
29685 _ACEOF
29686 rm -f conftest.$ac_objext conftest$ac_exeext
29687 if { (ac_try="$ac_link"
29688 case "(($ac_try" in
29689   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29690   *) ac_try_echo=$ac_try;;
29691 esac
29692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29693   (eval "$ac_link") 2>conftest.er1
29694   ac_status=$?
29695   grep -v '^ *+' conftest.er1 >conftest.err
29696   rm -f conftest.er1
29697   cat conftest.err >&5
29698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29699   (exit $ac_status); } && {
29700          test -z "$ac_c_werror_flag" ||
29701          test ! -s conftest.err
29702        } && test -s conftest$ac_exeext &&
29703        $as_test_x conftest$ac_exeext; then
29704   :
29705 else
29706   echo "$as_me: failed program was:" >&5
29707 sed 's/^/| /' conftest.$ac_ext >&5
29708
29709         { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
29710 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
29711 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
29712   echo $ECHO_N "(cached) $ECHO_C" >&6
29713 else
29714   ac_check_lib_save_LIBS=$LIBS
29715 LIBS="-ldnet  $LIBS"
29716 cat >conftest.$ac_ext <<_ACEOF
29717 /* confdefs.h.  */
29718 _ACEOF
29719 cat confdefs.h >>conftest.$ac_ext
29720 cat >>conftest.$ac_ext <<_ACEOF
29721 /* end confdefs.h.  */
29722
29723 /* Override any GCC internal prototype to avoid an error.
29724    Use char because int might match the return type of a GCC
29725    builtin and then its argument prototype would still apply.  */
29726 #ifdef __cplusplus
29727 extern "C"
29728 #endif
29729 char dnet_ntoa ();
29730 int
29731 main ()
29732 {
29733 return dnet_ntoa ();
29734   ;
29735   return 0;
29736 }
29737 _ACEOF
29738 rm -f conftest.$ac_objext conftest$ac_exeext
29739 if { (ac_try="$ac_link"
29740 case "(($ac_try" in
29741   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29742   *) ac_try_echo=$ac_try;;
29743 esac
29744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29745   (eval "$ac_link") 2>conftest.er1
29746   ac_status=$?
29747   grep -v '^ *+' conftest.er1 >conftest.err
29748   rm -f conftest.er1
29749   cat conftest.err >&5
29750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29751   (exit $ac_status); } && {
29752          test -z "$ac_c_werror_flag" ||
29753          test ! -s conftest.err
29754        } && test -s conftest$ac_exeext &&
29755        $as_test_x conftest$ac_exeext; then
29756   ac_cv_lib_dnet_dnet_ntoa=yes
29757 else
29758   echo "$as_me: failed program was:" >&5
29759 sed 's/^/| /' conftest.$ac_ext >&5
29760
29761         ac_cv_lib_dnet_dnet_ntoa=no
29762 fi
29763
29764 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29765       conftest$ac_exeext conftest.$ac_ext
29766 LIBS=$ac_check_lib_save_LIBS
29767 fi
29768 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
29769 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
29770 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
29771   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
29772 fi
29773
29774     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
29775       { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
29776 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
29777 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
29778   echo $ECHO_N "(cached) $ECHO_C" >&6
29779 else
29780   ac_check_lib_save_LIBS=$LIBS
29781 LIBS="-ldnet_stub  $LIBS"
29782 cat >conftest.$ac_ext <<_ACEOF
29783 /* confdefs.h.  */
29784 _ACEOF
29785 cat confdefs.h >>conftest.$ac_ext
29786 cat >>conftest.$ac_ext <<_ACEOF
29787 /* end confdefs.h.  */
29788
29789 /* Override any GCC internal prototype to avoid an error.
29790    Use char because int might match the return type of a GCC
29791    builtin and then its argument prototype would still apply.  */
29792 #ifdef __cplusplus
29793 extern "C"
29794 #endif
29795 char dnet_ntoa ();
29796 int
29797 main ()
29798 {
29799 return dnet_ntoa ();
29800   ;
29801   return 0;
29802 }
29803 _ACEOF
29804 rm -f conftest.$ac_objext conftest$ac_exeext
29805 if { (ac_try="$ac_link"
29806 case "(($ac_try" in
29807   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29808   *) ac_try_echo=$ac_try;;
29809 esac
29810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29811   (eval "$ac_link") 2>conftest.er1
29812   ac_status=$?
29813   grep -v '^ *+' conftest.er1 >conftest.err
29814   rm -f conftest.er1
29815   cat conftest.err >&5
29816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29817   (exit $ac_status); } && {
29818          test -z "$ac_c_werror_flag" ||
29819          test ! -s conftest.err
29820        } && test -s conftest$ac_exeext &&
29821        $as_test_x conftest$ac_exeext; then
29822   ac_cv_lib_dnet_stub_dnet_ntoa=yes
29823 else
29824   echo "$as_me: failed program was:" >&5
29825 sed 's/^/| /' conftest.$ac_ext >&5
29826
29827         ac_cv_lib_dnet_stub_dnet_ntoa=no
29828 fi
29829
29830 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29831       conftest$ac_exeext conftest.$ac_ext
29832 LIBS=$ac_check_lib_save_LIBS
29833 fi
29834 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
29835 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
29836 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
29837   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
29838 fi
29839
29840     fi
29841 fi
29842
29843 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29844       conftest$ac_exeext conftest.$ac_ext
29845     LIBS="$ac_xsave_LIBS"
29846
29847     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
29848     # to get the SysV transport functions.
29849     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
29850     # needs -lnsl.
29851     # The nsl library prevents programs from opening the X display
29852     # on Irix 5.2, according to T.E. Dickey.
29853     # The functions gethostbyname, getservbyname, and inet_addr are
29854     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
29855     { echo "$as_me:$LINENO: checking for gethostbyname" >&5
29856 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
29857 if test "${ac_cv_func_gethostbyname+set}" = set; then
29858   echo $ECHO_N "(cached) $ECHO_C" >&6
29859 else
29860   cat >conftest.$ac_ext <<_ACEOF
29861 /* confdefs.h.  */
29862 _ACEOF
29863 cat confdefs.h >>conftest.$ac_ext
29864 cat >>conftest.$ac_ext <<_ACEOF
29865 /* end confdefs.h.  */
29866 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
29867    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29868 #define gethostbyname innocuous_gethostbyname
29869
29870 /* System header to define __stub macros and hopefully few prototypes,
29871     which can conflict with char gethostbyname (); below.
29872     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29873     <limits.h> exists even on freestanding compilers.  */
29874
29875 #ifdef __STDC__
29876 # include <limits.h>
29877 #else
29878 # include <assert.h>
29879 #endif
29880
29881 #undef gethostbyname
29882
29883 /* Override any GCC internal prototype to avoid an error.
29884    Use char because int might match the return type of a GCC
29885    builtin and then its argument prototype would still apply.  */
29886 #ifdef __cplusplus
29887 extern "C"
29888 #endif
29889 char gethostbyname ();
29890 /* The GNU C library defines this for functions which it implements
29891     to always fail with ENOSYS.  Some functions are actually named
29892     something starting with __ and the normal name is an alias.  */
29893 #if defined __stub_gethostbyname || defined __stub___gethostbyname
29894 choke me
29895 #endif
29896
29897 int
29898 main ()
29899 {
29900 return gethostbyname ();
29901   ;
29902   return 0;
29903 }
29904 _ACEOF
29905 rm -f conftest.$ac_objext conftest$ac_exeext
29906 if { (ac_try="$ac_link"
29907 case "(($ac_try" in
29908   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29909   *) ac_try_echo=$ac_try;;
29910 esac
29911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29912   (eval "$ac_link") 2>conftest.er1
29913   ac_status=$?
29914   grep -v '^ *+' conftest.er1 >conftest.err
29915   rm -f conftest.er1
29916   cat conftest.err >&5
29917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29918   (exit $ac_status); } && {
29919          test -z "$ac_c_werror_flag" ||
29920          test ! -s conftest.err
29921        } && test -s conftest$ac_exeext &&
29922        $as_test_x conftest$ac_exeext; then
29923   ac_cv_func_gethostbyname=yes
29924 else
29925   echo "$as_me: failed program was:" >&5
29926 sed 's/^/| /' conftest.$ac_ext >&5
29927
29928         ac_cv_func_gethostbyname=no
29929 fi
29930
29931 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29932       conftest$ac_exeext conftest.$ac_ext
29933 fi
29934 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
29935 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
29936
29937     if test $ac_cv_func_gethostbyname = no; then
29938       { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
29939 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
29940 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
29941   echo $ECHO_N "(cached) $ECHO_C" >&6
29942 else
29943   ac_check_lib_save_LIBS=$LIBS
29944 LIBS="-lnsl  $LIBS"
29945 cat >conftest.$ac_ext <<_ACEOF
29946 /* confdefs.h.  */
29947 _ACEOF
29948 cat confdefs.h >>conftest.$ac_ext
29949 cat >>conftest.$ac_ext <<_ACEOF
29950 /* end confdefs.h.  */
29951
29952 /* Override any GCC internal prototype to avoid an error.
29953    Use char because int might match the return type of a GCC
29954    builtin and then its argument prototype would still apply.  */
29955 #ifdef __cplusplus
29956 extern "C"
29957 #endif
29958 char gethostbyname ();
29959 int
29960 main ()
29961 {
29962 return gethostbyname ();
29963   ;
29964   return 0;
29965 }
29966 _ACEOF
29967 rm -f conftest.$ac_objext conftest$ac_exeext
29968 if { (ac_try="$ac_link"
29969 case "(($ac_try" in
29970   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29971   *) ac_try_echo=$ac_try;;
29972 esac
29973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29974   (eval "$ac_link") 2>conftest.er1
29975   ac_status=$?
29976   grep -v '^ *+' conftest.er1 >conftest.err
29977   rm -f conftest.er1
29978   cat conftest.err >&5
29979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29980   (exit $ac_status); } && {
29981          test -z "$ac_c_werror_flag" ||
29982          test ! -s conftest.err
29983        } && test -s conftest$ac_exeext &&
29984        $as_test_x conftest$ac_exeext; then
29985   ac_cv_lib_nsl_gethostbyname=yes
29986 else
29987   echo "$as_me: failed program was:" >&5
29988 sed 's/^/| /' conftest.$ac_ext >&5
29989
29990         ac_cv_lib_nsl_gethostbyname=no
29991 fi
29992
29993 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29994       conftest$ac_exeext conftest.$ac_ext
29995 LIBS=$ac_check_lib_save_LIBS
29996 fi
29997 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
29998 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
29999 if test $ac_cv_lib_nsl_gethostbyname = yes; then
30000   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
30001 fi
30002
30003       if test $ac_cv_lib_nsl_gethostbyname = no; then
30004         { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
30005 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
30006 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
30007   echo $ECHO_N "(cached) $ECHO_C" >&6
30008 else
30009   ac_check_lib_save_LIBS=$LIBS
30010 LIBS="-lbsd  $LIBS"
30011 cat >conftest.$ac_ext <<_ACEOF
30012 /* confdefs.h.  */
30013 _ACEOF
30014 cat confdefs.h >>conftest.$ac_ext
30015 cat >>conftest.$ac_ext <<_ACEOF
30016 /* end confdefs.h.  */
30017
30018 /* Override any GCC internal prototype to avoid an error.
30019    Use char because int might match the return type of a GCC
30020    builtin and then its argument prototype would still apply.  */
30021 #ifdef __cplusplus
30022 extern "C"
30023 #endif
30024 char gethostbyname ();
30025 int
30026 main ()
30027 {
30028 return gethostbyname ();
30029   ;
30030   return 0;
30031 }
30032 _ACEOF
30033 rm -f conftest.$ac_objext conftest$ac_exeext
30034 if { (ac_try="$ac_link"
30035 case "(($ac_try" in
30036   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30037   *) ac_try_echo=$ac_try;;
30038 esac
30039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30040   (eval "$ac_link") 2>conftest.er1
30041   ac_status=$?
30042   grep -v '^ *+' conftest.er1 >conftest.err
30043   rm -f conftest.er1
30044   cat conftest.err >&5
30045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30046   (exit $ac_status); } && {
30047          test -z "$ac_c_werror_flag" ||
30048          test ! -s conftest.err
30049        } && test -s conftest$ac_exeext &&
30050        $as_test_x conftest$ac_exeext; then
30051   ac_cv_lib_bsd_gethostbyname=yes
30052 else
30053   echo "$as_me: failed program was:" >&5
30054 sed 's/^/| /' conftest.$ac_ext >&5
30055
30056         ac_cv_lib_bsd_gethostbyname=no
30057 fi
30058
30059 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30060       conftest$ac_exeext conftest.$ac_ext
30061 LIBS=$ac_check_lib_save_LIBS
30062 fi
30063 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
30064 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
30065 if test $ac_cv_lib_bsd_gethostbyname = yes; then
30066   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
30067 fi
30068
30069       fi
30070     fi
30071
30072     # lieder@skyler.mavd.honeywell.com says without -lsocket,
30073     # socket/setsockopt and other routines are undefined under SCO ODT
30074     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
30075     # on later versions), says Simon Leinen: it contains gethostby*
30076     # variants that don't use the name server (or something).  -lsocket
30077     # must be given before -lnsl if both are needed.  We assume that
30078     # if connect needs -lnsl, so does gethostbyname.
30079     { echo "$as_me:$LINENO: checking for connect" >&5
30080 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
30081 if test "${ac_cv_func_connect+set}" = set; then
30082   echo $ECHO_N "(cached) $ECHO_C" >&6
30083 else
30084   cat >conftest.$ac_ext <<_ACEOF
30085 /* confdefs.h.  */
30086 _ACEOF
30087 cat confdefs.h >>conftest.$ac_ext
30088 cat >>conftest.$ac_ext <<_ACEOF
30089 /* end confdefs.h.  */
30090 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
30091    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30092 #define connect innocuous_connect
30093
30094 /* System header to define __stub macros and hopefully few prototypes,
30095     which can conflict with char connect (); below.
30096     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30097     <limits.h> exists even on freestanding compilers.  */
30098
30099 #ifdef __STDC__
30100 # include <limits.h>
30101 #else
30102 # include <assert.h>
30103 #endif
30104
30105 #undef connect
30106
30107 /* Override any GCC internal prototype to avoid an error.
30108    Use char because int might match the return type of a GCC
30109    builtin and then its argument prototype would still apply.  */
30110 #ifdef __cplusplus
30111 extern "C"
30112 #endif
30113 char connect ();
30114 /* The GNU C library defines this for functions which it implements
30115     to always fail with ENOSYS.  Some functions are actually named
30116     something starting with __ and the normal name is an alias.  */
30117 #if defined __stub_connect || defined __stub___connect
30118 choke me
30119 #endif
30120
30121 int
30122 main ()
30123 {
30124 return connect ();
30125   ;
30126   return 0;
30127 }
30128 _ACEOF
30129 rm -f conftest.$ac_objext conftest$ac_exeext
30130 if { (ac_try="$ac_link"
30131 case "(($ac_try" in
30132   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30133   *) ac_try_echo=$ac_try;;
30134 esac
30135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30136   (eval "$ac_link") 2>conftest.er1
30137   ac_status=$?
30138   grep -v '^ *+' conftest.er1 >conftest.err
30139   rm -f conftest.er1
30140   cat conftest.err >&5
30141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30142   (exit $ac_status); } && {
30143          test -z "$ac_c_werror_flag" ||
30144          test ! -s conftest.err
30145        } && test -s conftest$ac_exeext &&
30146        $as_test_x conftest$ac_exeext; then
30147   ac_cv_func_connect=yes
30148 else
30149   echo "$as_me: failed program was:" >&5
30150 sed 's/^/| /' conftest.$ac_ext >&5
30151
30152         ac_cv_func_connect=no
30153 fi
30154
30155 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30156       conftest$ac_exeext conftest.$ac_ext
30157 fi
30158 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
30159 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
30160
30161     if test $ac_cv_func_connect = no; then
30162       { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
30163 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
30164 if test "${ac_cv_lib_socket_connect+set}" = set; then
30165   echo $ECHO_N "(cached) $ECHO_C" >&6
30166 else
30167   ac_check_lib_save_LIBS=$LIBS
30168 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
30169 cat >conftest.$ac_ext <<_ACEOF
30170 /* confdefs.h.  */
30171 _ACEOF
30172 cat confdefs.h >>conftest.$ac_ext
30173 cat >>conftest.$ac_ext <<_ACEOF
30174 /* end confdefs.h.  */
30175
30176 /* Override any GCC internal prototype to avoid an error.
30177    Use char because int might match the return type of a GCC
30178    builtin and then its argument prototype would still apply.  */
30179 #ifdef __cplusplus
30180 extern "C"
30181 #endif
30182 char connect ();
30183 int
30184 main ()
30185 {
30186 return connect ();
30187   ;
30188   return 0;
30189 }
30190 _ACEOF
30191 rm -f conftest.$ac_objext conftest$ac_exeext
30192 if { (ac_try="$ac_link"
30193 case "(($ac_try" in
30194   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30195   *) ac_try_echo=$ac_try;;
30196 esac
30197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30198   (eval "$ac_link") 2>conftest.er1
30199   ac_status=$?
30200   grep -v '^ *+' conftest.er1 >conftest.err
30201   rm -f conftest.er1
30202   cat conftest.err >&5
30203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30204   (exit $ac_status); } && {
30205          test -z "$ac_c_werror_flag" ||
30206          test ! -s conftest.err
30207        } && test -s conftest$ac_exeext &&
30208        $as_test_x conftest$ac_exeext; then
30209   ac_cv_lib_socket_connect=yes
30210 else
30211   echo "$as_me: failed program was:" >&5
30212 sed 's/^/| /' conftest.$ac_ext >&5
30213
30214         ac_cv_lib_socket_connect=no
30215 fi
30216
30217 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30218       conftest$ac_exeext conftest.$ac_ext
30219 LIBS=$ac_check_lib_save_LIBS
30220 fi
30221 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
30222 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
30223 if test $ac_cv_lib_socket_connect = yes; then
30224   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
30225 fi
30226
30227     fi
30228
30229     # Guillermo Gomez says -lposix is necessary on A/UX.
30230     { echo "$as_me:$LINENO: checking for remove" >&5
30231 echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
30232 if test "${ac_cv_func_remove+set}" = set; then
30233   echo $ECHO_N "(cached) $ECHO_C" >&6
30234 else
30235   cat >conftest.$ac_ext <<_ACEOF
30236 /* confdefs.h.  */
30237 _ACEOF
30238 cat confdefs.h >>conftest.$ac_ext
30239 cat >>conftest.$ac_ext <<_ACEOF
30240 /* end confdefs.h.  */
30241 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
30242    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30243 #define remove innocuous_remove
30244
30245 /* System header to define __stub macros and hopefully few prototypes,
30246     which can conflict with char remove (); below.
30247     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30248     <limits.h> exists even on freestanding compilers.  */
30249
30250 #ifdef __STDC__
30251 # include <limits.h>
30252 #else
30253 # include <assert.h>
30254 #endif
30255
30256 #undef remove
30257
30258 /* Override any GCC internal prototype to avoid an error.
30259    Use char because int might match the return type of a GCC
30260    builtin and then its argument prototype would still apply.  */
30261 #ifdef __cplusplus
30262 extern "C"
30263 #endif
30264 char remove ();
30265 /* The GNU C library defines this for functions which it implements
30266     to always fail with ENOSYS.  Some functions are actually named
30267     something starting with __ and the normal name is an alias.  */
30268 #if defined __stub_remove || defined __stub___remove
30269 choke me
30270 #endif
30271
30272 int
30273 main ()
30274 {
30275 return remove ();
30276   ;
30277   return 0;
30278 }
30279 _ACEOF
30280 rm -f conftest.$ac_objext conftest$ac_exeext
30281 if { (ac_try="$ac_link"
30282 case "(($ac_try" in
30283   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30284   *) ac_try_echo=$ac_try;;
30285 esac
30286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30287   (eval "$ac_link") 2>conftest.er1
30288   ac_status=$?
30289   grep -v '^ *+' conftest.er1 >conftest.err
30290   rm -f conftest.er1
30291   cat conftest.err >&5
30292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30293   (exit $ac_status); } && {
30294          test -z "$ac_c_werror_flag" ||
30295          test ! -s conftest.err
30296        } && test -s conftest$ac_exeext &&
30297        $as_test_x conftest$ac_exeext; then
30298   ac_cv_func_remove=yes
30299 else
30300   echo "$as_me: failed program was:" >&5
30301 sed 's/^/| /' conftest.$ac_ext >&5
30302
30303         ac_cv_func_remove=no
30304 fi
30305
30306 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30307       conftest$ac_exeext conftest.$ac_ext
30308 fi
30309 { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
30310 echo "${ECHO_T}$ac_cv_func_remove" >&6; }
30311
30312     if test $ac_cv_func_remove = no; then
30313       { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
30314 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
30315 if test "${ac_cv_lib_posix_remove+set}" = set; then
30316   echo $ECHO_N "(cached) $ECHO_C" >&6
30317 else
30318   ac_check_lib_save_LIBS=$LIBS
30319 LIBS="-lposix  $LIBS"
30320 cat >conftest.$ac_ext <<_ACEOF
30321 /* confdefs.h.  */
30322 _ACEOF
30323 cat confdefs.h >>conftest.$ac_ext
30324 cat >>conftest.$ac_ext <<_ACEOF
30325 /* end confdefs.h.  */
30326
30327 /* Override any GCC internal prototype to avoid an error.
30328    Use char because int might match the return type of a GCC
30329    builtin and then its argument prototype would still apply.  */
30330 #ifdef __cplusplus
30331 extern "C"
30332 #endif
30333 char remove ();
30334 int
30335 main ()
30336 {
30337 return remove ();
30338   ;
30339   return 0;
30340 }
30341 _ACEOF
30342 rm -f conftest.$ac_objext conftest$ac_exeext
30343 if { (ac_try="$ac_link"
30344 case "(($ac_try" in
30345   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30346   *) ac_try_echo=$ac_try;;
30347 esac
30348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30349   (eval "$ac_link") 2>conftest.er1
30350   ac_status=$?
30351   grep -v '^ *+' conftest.er1 >conftest.err
30352   rm -f conftest.er1
30353   cat conftest.err >&5
30354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30355   (exit $ac_status); } && {
30356          test -z "$ac_c_werror_flag" ||
30357          test ! -s conftest.err
30358        } && test -s conftest$ac_exeext &&
30359        $as_test_x conftest$ac_exeext; then
30360   ac_cv_lib_posix_remove=yes
30361 else
30362   echo "$as_me: failed program was:" >&5
30363 sed 's/^/| /' conftest.$ac_ext >&5
30364
30365         ac_cv_lib_posix_remove=no
30366 fi
30367
30368 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30369       conftest$ac_exeext conftest.$ac_ext
30370 LIBS=$ac_check_lib_save_LIBS
30371 fi
30372 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
30373 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
30374 if test $ac_cv_lib_posix_remove = yes; then
30375   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
30376 fi
30377
30378     fi
30379
30380     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
30381     { echo "$as_me:$LINENO: checking for shmat" >&5
30382 echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
30383 if test "${ac_cv_func_shmat+set}" = set; then
30384   echo $ECHO_N "(cached) $ECHO_C" >&6
30385 else
30386   cat >conftest.$ac_ext <<_ACEOF
30387 /* confdefs.h.  */
30388 _ACEOF
30389 cat confdefs.h >>conftest.$ac_ext
30390 cat >>conftest.$ac_ext <<_ACEOF
30391 /* end confdefs.h.  */
30392 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
30393    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30394 #define shmat innocuous_shmat
30395
30396 /* System header to define __stub macros and hopefully few prototypes,
30397     which can conflict with char shmat (); below.
30398     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30399     <limits.h> exists even on freestanding compilers.  */
30400
30401 #ifdef __STDC__
30402 # include <limits.h>
30403 #else
30404 # include <assert.h>
30405 #endif
30406
30407 #undef shmat
30408
30409 /* Override any GCC internal prototype to avoid an error.
30410    Use char because int might match the return type of a GCC
30411    builtin and then its argument prototype would still apply.  */
30412 #ifdef __cplusplus
30413 extern "C"
30414 #endif
30415 char shmat ();
30416 /* The GNU C library defines this for functions which it implements
30417     to always fail with ENOSYS.  Some functions are actually named
30418     something starting with __ and the normal name is an alias.  */
30419 #if defined __stub_shmat || defined __stub___shmat
30420 choke me
30421 #endif
30422
30423 int
30424 main ()
30425 {
30426 return shmat ();
30427   ;
30428   return 0;
30429 }
30430 _ACEOF
30431 rm -f conftest.$ac_objext conftest$ac_exeext
30432 if { (ac_try="$ac_link"
30433 case "(($ac_try" in
30434   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30435   *) ac_try_echo=$ac_try;;
30436 esac
30437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30438   (eval "$ac_link") 2>conftest.er1
30439   ac_status=$?
30440   grep -v '^ *+' conftest.er1 >conftest.err
30441   rm -f conftest.er1
30442   cat conftest.err >&5
30443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30444   (exit $ac_status); } && {
30445          test -z "$ac_c_werror_flag" ||
30446          test ! -s conftest.err
30447        } && test -s conftest$ac_exeext &&
30448        $as_test_x conftest$ac_exeext; then
30449   ac_cv_func_shmat=yes
30450 else
30451   echo "$as_me: failed program was:" >&5
30452 sed 's/^/| /' conftest.$ac_ext >&5
30453
30454         ac_cv_func_shmat=no
30455 fi
30456
30457 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30458       conftest$ac_exeext conftest.$ac_ext
30459 fi
30460 { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
30461 echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
30462
30463     if test $ac_cv_func_shmat = no; then
30464       { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
30465 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
30466 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
30467   echo $ECHO_N "(cached) $ECHO_C" >&6
30468 else
30469   ac_check_lib_save_LIBS=$LIBS
30470 LIBS="-lipc  $LIBS"
30471 cat >conftest.$ac_ext <<_ACEOF
30472 /* confdefs.h.  */
30473 _ACEOF
30474 cat confdefs.h >>conftest.$ac_ext
30475 cat >>conftest.$ac_ext <<_ACEOF
30476 /* end confdefs.h.  */
30477
30478 /* Override any GCC internal prototype to avoid an error.
30479    Use char because int might match the return type of a GCC
30480    builtin and then its argument prototype would still apply.  */
30481 #ifdef __cplusplus
30482 extern "C"
30483 #endif
30484 char shmat ();
30485 int
30486 main ()
30487 {
30488 return shmat ();
30489   ;
30490   return 0;
30491 }
30492 _ACEOF
30493 rm -f conftest.$ac_objext conftest$ac_exeext
30494 if { (ac_try="$ac_link"
30495 case "(($ac_try" in
30496   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30497   *) ac_try_echo=$ac_try;;
30498 esac
30499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30500   (eval "$ac_link") 2>conftest.er1
30501   ac_status=$?
30502   grep -v '^ *+' conftest.er1 >conftest.err
30503   rm -f conftest.er1
30504   cat conftest.err >&5
30505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30506   (exit $ac_status); } && {
30507          test -z "$ac_c_werror_flag" ||
30508          test ! -s conftest.err
30509        } && test -s conftest$ac_exeext &&
30510        $as_test_x conftest$ac_exeext; then
30511   ac_cv_lib_ipc_shmat=yes
30512 else
30513   echo "$as_me: failed program was:" >&5
30514 sed 's/^/| /' conftest.$ac_ext >&5
30515
30516         ac_cv_lib_ipc_shmat=no
30517 fi
30518
30519 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30520       conftest$ac_exeext conftest.$ac_ext
30521 LIBS=$ac_check_lib_save_LIBS
30522 fi
30523 { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
30524 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
30525 if test $ac_cv_lib_ipc_shmat = yes; then
30526   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
30527 fi
30528
30529     fi
30530   fi
30531
30532   # Check for libraries that X11R6 Xt/Xaw programs need.
30533   ac_save_LDFLAGS=$LDFLAGS
30534   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
30535   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
30536   # check for ICE first), but we must link in the order -lSM -lICE or
30537   # we get undefined symbols.  So assume we have SM if we have ICE.
30538   # These have to be linked with before -lX11, unlike the other
30539   # libraries we check for below, so use a different variable.
30540   # John Interrante, Karl Berry
30541   { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
30542 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
30543 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
30544   echo $ECHO_N "(cached) $ECHO_C" >&6
30545 else
30546   ac_check_lib_save_LIBS=$LIBS
30547 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
30548 cat >conftest.$ac_ext <<_ACEOF
30549 /* confdefs.h.  */
30550 _ACEOF
30551 cat confdefs.h >>conftest.$ac_ext
30552 cat >>conftest.$ac_ext <<_ACEOF
30553 /* end confdefs.h.  */
30554
30555 /* Override any GCC internal prototype to avoid an error.
30556    Use char because int might match the return type of a GCC
30557    builtin and then its argument prototype would still apply.  */
30558 #ifdef __cplusplus
30559 extern "C"
30560 #endif
30561 char IceConnectionNumber ();
30562 int
30563 main ()
30564 {
30565 return IceConnectionNumber ();
30566   ;
30567   return 0;
30568 }
30569 _ACEOF
30570 rm -f conftest.$ac_objext conftest$ac_exeext
30571 if { (ac_try="$ac_link"
30572 case "(($ac_try" in
30573   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30574   *) ac_try_echo=$ac_try;;
30575 esac
30576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30577   (eval "$ac_link") 2>conftest.er1
30578   ac_status=$?
30579   grep -v '^ *+' conftest.er1 >conftest.err
30580   rm -f conftest.er1
30581   cat conftest.err >&5
30582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30583   (exit $ac_status); } && {
30584          test -z "$ac_c_werror_flag" ||
30585          test ! -s conftest.err
30586        } && test -s conftest$ac_exeext &&
30587        $as_test_x conftest$ac_exeext; then
30588   ac_cv_lib_ICE_IceConnectionNumber=yes
30589 else
30590   echo "$as_me: failed program was:" >&5
30591 sed 's/^/| /' conftest.$ac_ext >&5
30592
30593         ac_cv_lib_ICE_IceConnectionNumber=no
30594 fi
30595
30596 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30597       conftest$ac_exeext conftest.$ac_ext
30598 LIBS=$ac_check_lib_save_LIBS
30599 fi
30600 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
30601 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
30602 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
30603   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
30604 fi
30605
30606   LDFLAGS=$ac_save_LDFLAGS
30607
30608 fi
30609
30610
30611
30612
30613
30614
30615
30616
30617
30618
30619
30620
30621
30622
30623
30624
30625
30626
30627
30628
30629
30630
30631
30632
30633
30634
30635
30636
30637
30638
30639
30640 for ac_header in \
30641    assert.h \
30642    fcntl.h \
30643    grp.h \
30644    pwd.h \
30645    libc.h \
30646    limits.h \
30647    stdarg.h \
30648    stdlib.h \
30649    stdint.h \
30650    string.h \
30651    strings.h \
30652    termios.h \
30653    termcap.h \
30654    term.h \
30655    unistd.h \
30656    sys/bitypes.h \
30657    sys/byteorder.h \
30658    sys/ioctl.h \
30659    sys/select.h \
30660    sys/socket.h \
30661    sys/sockio.h \
30662    sys/stat.h \
30663    sys/time.h \
30664    sys/types.h \
30665    arpa/nameser.h \
30666    mtio.h \
30667    sys/mtio.h \
30668    sys/tape.h \
30669    regex.h \
30670
30671 do
30672 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30673 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30674   { echo "$as_me:$LINENO: checking for $ac_header" >&5
30675 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30676 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30677   echo $ECHO_N "(cached) $ECHO_C" >&6
30678 fi
30679 ac_res=`eval echo '${'$as_ac_Header'}'`
30680                { echo "$as_me:$LINENO: result: $ac_res" >&5
30681 echo "${ECHO_T}$ac_res" >&6; }
30682 else
30683   # Is the header compilable?
30684 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30685 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30686 cat >conftest.$ac_ext <<_ACEOF
30687 /* confdefs.h.  */
30688 _ACEOF
30689 cat confdefs.h >>conftest.$ac_ext
30690 cat >>conftest.$ac_ext <<_ACEOF
30691 /* end confdefs.h.  */
30692 $ac_includes_default
30693 #include <$ac_header>
30694 _ACEOF
30695 rm -f conftest.$ac_objext
30696 if { (ac_try="$ac_compile"
30697 case "(($ac_try" in
30698   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30699   *) ac_try_echo=$ac_try;;
30700 esac
30701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30702   (eval "$ac_compile") 2>conftest.er1
30703   ac_status=$?
30704   grep -v '^ *+' conftest.er1 >conftest.err
30705   rm -f conftest.er1
30706   cat conftest.err >&5
30707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30708   (exit $ac_status); } && {
30709          test -z "$ac_c_werror_flag" ||
30710          test ! -s conftest.err
30711        } && test -s conftest.$ac_objext; then
30712   ac_header_compiler=yes
30713 else
30714   echo "$as_me: failed program was:" >&5
30715 sed 's/^/| /' conftest.$ac_ext >&5
30716
30717         ac_header_compiler=no
30718 fi
30719
30720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30721 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30722 echo "${ECHO_T}$ac_header_compiler" >&6; }
30723
30724 # Is the header present?
30725 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30726 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30727 cat >conftest.$ac_ext <<_ACEOF
30728 /* confdefs.h.  */
30729 _ACEOF
30730 cat confdefs.h >>conftest.$ac_ext
30731 cat >>conftest.$ac_ext <<_ACEOF
30732 /* end confdefs.h.  */
30733 #include <$ac_header>
30734 _ACEOF
30735 if { (ac_try="$ac_cpp conftest.$ac_ext"
30736 case "(($ac_try" in
30737   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30738   *) ac_try_echo=$ac_try;;
30739 esac
30740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30741   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30742   ac_status=$?
30743   grep -v '^ *+' conftest.er1 >conftest.err
30744   rm -f conftest.er1
30745   cat conftest.err >&5
30746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30747   (exit $ac_status); } >/dev/null && {
30748          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30749          test ! -s conftest.err
30750        }; then
30751   ac_header_preproc=yes
30752 else
30753   echo "$as_me: failed program was:" >&5
30754 sed 's/^/| /' conftest.$ac_ext >&5
30755
30756   ac_header_preproc=no
30757 fi
30758
30759 rm -f conftest.err conftest.$ac_ext
30760 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30761 echo "${ECHO_T}$ac_header_preproc" >&6; }
30762
30763 # So?  What about this header?
30764 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30765   yes:no: )
30766     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30767 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30768     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30769 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30770     ac_header_preproc=yes
30771     ;;
30772   no:yes:* )
30773     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30774 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30775     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
30776 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
30777     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30778 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30779     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
30780 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
30781     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30782 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30783     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30784 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30785
30786     ;;
30787 esac
30788 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30789 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30790 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30791   echo $ECHO_N "(cached) $ECHO_C" >&6
30792 else
30793   eval "$as_ac_Header=\$ac_header_preproc"
30794 fi
30795 ac_res=`eval echo '${'$as_ac_Header'}'`
30796                { echo "$as_me:$LINENO: result: $ac_res" >&5
30797 echo "${ECHO_T}$ac_res" >&6; }
30798
30799 fi
30800 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30801   cat >>confdefs.h <<_ACEOF
30802 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30803 _ACEOF
30804
30805 fi
30806
30807 done
30808
30809 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
30810 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
30811 if test "${ac_cv_header_stdc+set}" = set; then
30812   echo $ECHO_N "(cached) $ECHO_C" >&6
30813 else
30814   cat >conftest.$ac_ext <<_ACEOF
30815 /* confdefs.h.  */
30816 _ACEOF
30817 cat confdefs.h >>conftest.$ac_ext
30818 cat >>conftest.$ac_ext <<_ACEOF
30819 /* end confdefs.h.  */
30820 #include <stdlib.h>
30821 #include <stdarg.h>
30822 #include <string.h>
30823 #include <float.h>
30824
30825 int
30826 main ()
30827 {
30828
30829   ;
30830   return 0;
30831 }
30832 _ACEOF
30833 rm -f conftest.$ac_objext
30834 if { (ac_try="$ac_compile"
30835 case "(($ac_try" in
30836   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30837   *) ac_try_echo=$ac_try;;
30838 esac
30839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30840   (eval "$ac_compile") 2>conftest.er1
30841   ac_status=$?
30842   grep -v '^ *+' conftest.er1 >conftest.err
30843   rm -f conftest.er1
30844   cat conftest.err >&5
30845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30846   (exit $ac_status); } && {
30847          test -z "$ac_c_werror_flag" ||
30848          test ! -s conftest.err
30849        } && test -s conftest.$ac_objext; then
30850   ac_cv_header_stdc=yes
30851 else
30852   echo "$as_me: failed program was:" >&5
30853 sed 's/^/| /' conftest.$ac_ext >&5
30854
30855         ac_cv_header_stdc=no
30856 fi
30857
30858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30859
30860 if test $ac_cv_header_stdc = yes; then
30861   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
30862   cat >conftest.$ac_ext <<_ACEOF
30863 /* confdefs.h.  */
30864 _ACEOF
30865 cat confdefs.h >>conftest.$ac_ext
30866 cat >>conftest.$ac_ext <<_ACEOF
30867 /* end confdefs.h.  */
30868 #include <string.h>
30869
30870 _ACEOF
30871 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30872   $EGREP "memchr" >/dev/null 2>&1; then
30873   :
30874 else
30875   ac_cv_header_stdc=no
30876 fi
30877 rm -f conftest*
30878
30879 fi
30880
30881 if test $ac_cv_header_stdc = yes; then
30882   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
30883   cat >conftest.$ac_ext <<_ACEOF
30884 /* confdefs.h.  */
30885 _ACEOF
30886 cat confdefs.h >>conftest.$ac_ext
30887 cat >>conftest.$ac_ext <<_ACEOF
30888 /* end confdefs.h.  */
30889 #include <stdlib.h>
30890
30891 _ACEOF
30892 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30893   $EGREP "free" >/dev/null 2>&1; then
30894   :
30895 else
30896   ac_cv_header_stdc=no
30897 fi
30898 rm -f conftest*
30899
30900 fi
30901
30902 if test $ac_cv_header_stdc = yes; then
30903   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
30904   if test "$cross_compiling" = yes; then
30905   :
30906 else
30907   cat >conftest.$ac_ext <<_ACEOF
30908 /* confdefs.h.  */
30909 _ACEOF
30910 cat confdefs.h >>conftest.$ac_ext
30911 cat >>conftest.$ac_ext <<_ACEOF
30912 /* end confdefs.h.  */
30913 #include <ctype.h>
30914 #include <stdlib.h>
30915 #if ((' ' & 0x0FF) == 0x020)
30916 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
30917 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
30918 #else
30919 # define ISLOWER(c) \
30920                    (('a' <= (c) && (c) <= 'i') \
30921                      || ('j' <= (c) && (c) <= 'r') \
30922                      || ('s' <= (c) && (c) <= 'z'))
30923 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
30924 #endif
30925
30926 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
30927 int
30928 main ()
30929 {
30930   int i;
30931   for (i = 0; i < 256; i++)
30932     if (XOR (islower (i), ISLOWER (i))
30933         || toupper (i) != TOUPPER (i))
30934       return 2;
30935   return 0;
30936 }
30937 _ACEOF
30938 rm -f conftest$ac_exeext
30939 if { (ac_try="$ac_link"
30940 case "(($ac_try" in
30941   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30942   *) ac_try_echo=$ac_try;;
30943 esac
30944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30945   (eval "$ac_link") 2>&5
30946   ac_status=$?
30947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30948   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30949   { (case "(($ac_try" in
30950   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30951   *) ac_try_echo=$ac_try;;
30952 esac
30953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30954   (eval "$ac_try") 2>&5
30955   ac_status=$?
30956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30957   (exit $ac_status); }; }; then
30958   :
30959 else
30960   echo "$as_me: program exited with status $ac_status" >&5
30961 echo "$as_me: failed program was:" >&5
30962 sed 's/^/| /' conftest.$ac_ext >&5
30963
30964 ( exit $ac_status )
30965 ac_cv_header_stdc=no
30966 fi
30967 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30968 fi
30969
30970
30971 fi
30972 fi
30973 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
30974 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
30975 if test $ac_cv_header_stdc = yes; then
30976
30977 cat >>confdefs.h <<\_ACEOF
30978 #define STDC_HEADERS 1
30979 _ACEOF
30980
30981 fi
30982
30983 { echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
30984 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6; }
30985 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
30986   echo $ECHO_N "(cached) $ECHO_C" >&6
30987 else
30988   cat >conftest.$ac_ext <<_ACEOF
30989 /* confdefs.h.  */
30990 _ACEOF
30991 cat confdefs.h >>conftest.$ac_ext
30992 cat >>conftest.$ac_ext <<_ACEOF
30993 /* end confdefs.h.  */
30994 #include <sys/types.h>
30995 int
30996 main ()
30997 {
30998 return makedev(0, 0);
30999   ;
31000   return 0;
31001 }
31002 _ACEOF
31003 rm -f conftest.$ac_objext conftest$ac_exeext
31004 if { (ac_try="$ac_link"
31005 case "(($ac_try" in
31006   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31007   *) ac_try_echo=$ac_try;;
31008 esac
31009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31010   (eval "$ac_link") 2>conftest.er1
31011   ac_status=$?
31012   grep -v '^ *+' conftest.er1 >conftest.err
31013   rm -f conftest.er1
31014   cat conftest.err >&5
31015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31016   (exit $ac_status); } && {
31017          test -z "$ac_c_werror_flag" ||
31018          test ! -s conftest.err
31019        } && test -s conftest$ac_exeext &&
31020        $as_test_x conftest$ac_exeext; then
31021   ac_cv_header_sys_types_h_makedev=yes
31022 else
31023   echo "$as_me: failed program was:" >&5
31024 sed 's/^/| /' conftest.$ac_ext >&5
31025
31026         ac_cv_header_sys_types_h_makedev=no
31027 fi
31028
31029 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31030       conftest$ac_exeext conftest.$ac_ext
31031
31032 fi
31033 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
31034 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6; }
31035
31036 if test $ac_cv_header_sys_types_h_makedev = no; then
31037 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
31038   { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
31039 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
31040 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
31041   echo $ECHO_N "(cached) $ECHO_C" >&6
31042 fi
31043 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
31044 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
31045 else
31046   # Is the header compilable?
31047 { echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
31048 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6; }
31049 cat >conftest.$ac_ext <<_ACEOF
31050 /* confdefs.h.  */
31051 _ACEOF
31052 cat confdefs.h >>conftest.$ac_ext
31053 cat >>conftest.$ac_ext <<_ACEOF
31054 /* end confdefs.h.  */
31055 $ac_includes_default
31056 #include <sys/mkdev.h>
31057 _ACEOF
31058 rm -f conftest.$ac_objext
31059 if { (ac_try="$ac_compile"
31060 case "(($ac_try" in
31061   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31062   *) ac_try_echo=$ac_try;;
31063 esac
31064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31065   (eval "$ac_compile") 2>conftest.er1
31066   ac_status=$?
31067   grep -v '^ *+' conftest.er1 >conftest.err
31068   rm -f conftest.er1
31069   cat conftest.err >&5
31070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31071   (exit $ac_status); } && {
31072          test -z "$ac_c_werror_flag" ||
31073          test ! -s conftest.err
31074        } && test -s conftest.$ac_objext; then
31075   ac_header_compiler=yes
31076 else
31077   echo "$as_me: failed program was:" >&5
31078 sed 's/^/| /' conftest.$ac_ext >&5
31079
31080         ac_header_compiler=no
31081 fi
31082
31083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31084 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31085 echo "${ECHO_T}$ac_header_compiler" >&6; }
31086
31087 # Is the header present?
31088 { echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
31089 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6; }
31090 cat >conftest.$ac_ext <<_ACEOF
31091 /* confdefs.h.  */
31092 _ACEOF
31093 cat confdefs.h >>conftest.$ac_ext
31094 cat >>conftest.$ac_ext <<_ACEOF
31095 /* end confdefs.h.  */
31096 #include <sys/mkdev.h>
31097 _ACEOF
31098 if { (ac_try="$ac_cpp conftest.$ac_ext"
31099 case "(($ac_try" in
31100   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31101   *) ac_try_echo=$ac_try;;
31102 esac
31103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31104   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31105   ac_status=$?
31106   grep -v '^ *+' conftest.er1 >conftest.err
31107   rm -f conftest.er1
31108   cat conftest.err >&5
31109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31110   (exit $ac_status); } >/dev/null && {
31111          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31112          test ! -s conftest.err
31113        }; then
31114   ac_header_preproc=yes
31115 else
31116   echo "$as_me: failed program was:" >&5
31117 sed 's/^/| /' conftest.$ac_ext >&5
31118
31119   ac_header_preproc=no
31120 fi
31121
31122 rm -f conftest.err conftest.$ac_ext
31123 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31124 echo "${ECHO_T}$ac_header_preproc" >&6; }
31125
31126 # So?  What about this header?
31127 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31128   yes:no: )
31129     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
31130 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31131     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
31132 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
31133     ac_header_preproc=yes
31134     ;;
31135   no:yes:* )
31136     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
31137 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
31138     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&5
31139 echo "$as_me: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&2;}
31140     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
31141 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
31142     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&5
31143 echo "$as_me: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&2;}
31144     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
31145 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
31146     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
31147 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
31148
31149     ;;
31150 esac
31151 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
31152 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
31153 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
31154   echo $ECHO_N "(cached) $ECHO_C" >&6
31155 else
31156   ac_cv_header_sys_mkdev_h=$ac_header_preproc
31157 fi
31158 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
31159 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
31160
31161 fi
31162 if test $ac_cv_header_sys_mkdev_h = yes; then
31163
31164 cat >>confdefs.h <<\_ACEOF
31165 #define MAJOR_IN_MKDEV 1
31166 _ACEOF
31167
31168 fi
31169
31170
31171
31172   if test $ac_cv_header_sys_mkdev_h = no; then
31173     if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
31174   { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
31175 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
31176 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
31177   echo $ECHO_N "(cached) $ECHO_C" >&6
31178 fi
31179 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
31180 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
31181 else
31182   # Is the header compilable?
31183 { echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
31184 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6; }
31185 cat >conftest.$ac_ext <<_ACEOF
31186 /* confdefs.h.  */
31187 _ACEOF
31188 cat confdefs.h >>conftest.$ac_ext
31189 cat >>conftest.$ac_ext <<_ACEOF
31190 /* end confdefs.h.  */
31191 $ac_includes_default
31192 #include <sys/sysmacros.h>
31193 _ACEOF
31194 rm -f conftest.$ac_objext
31195 if { (ac_try="$ac_compile"
31196 case "(($ac_try" in
31197   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31198   *) ac_try_echo=$ac_try;;
31199 esac
31200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31201   (eval "$ac_compile") 2>conftest.er1
31202   ac_status=$?
31203   grep -v '^ *+' conftest.er1 >conftest.err
31204   rm -f conftest.er1
31205   cat conftest.err >&5
31206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31207   (exit $ac_status); } && {
31208          test -z "$ac_c_werror_flag" ||
31209          test ! -s conftest.err
31210        } && test -s conftest.$ac_objext; then
31211   ac_header_compiler=yes
31212 else
31213   echo "$as_me: failed program was:" >&5
31214 sed 's/^/| /' conftest.$ac_ext >&5
31215
31216         ac_header_compiler=no
31217 fi
31218
31219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31220 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31221 echo "${ECHO_T}$ac_header_compiler" >&6; }
31222
31223 # Is the header present?
31224 { echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
31225 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6; }
31226 cat >conftest.$ac_ext <<_ACEOF
31227 /* confdefs.h.  */
31228 _ACEOF
31229 cat confdefs.h >>conftest.$ac_ext
31230 cat >>conftest.$ac_ext <<_ACEOF
31231 /* end confdefs.h.  */
31232 #include <sys/sysmacros.h>
31233 _ACEOF
31234 if { (ac_try="$ac_cpp conftest.$ac_ext"
31235 case "(($ac_try" in
31236   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31237   *) ac_try_echo=$ac_try;;
31238 esac
31239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31240   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31241   ac_status=$?
31242   grep -v '^ *+' conftest.er1 >conftest.err
31243   rm -f conftest.er1
31244   cat conftest.err >&5
31245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31246   (exit $ac_status); } >/dev/null && {
31247          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31248          test ! -s conftest.err
31249        }; then
31250   ac_header_preproc=yes
31251 else
31252   echo "$as_me: failed program was:" >&5
31253 sed 's/^/| /' conftest.$ac_ext >&5
31254
31255   ac_header_preproc=no
31256 fi
31257
31258 rm -f conftest.err conftest.$ac_ext
31259 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31260 echo "${ECHO_T}$ac_header_preproc" >&6; }
31261
31262 # So?  What about this header?
31263 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31264   yes:no: )
31265     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
31266 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31267     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
31268 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
31269     ac_header_preproc=yes
31270     ;;
31271   no:yes:* )
31272     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
31273 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
31274     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&5
31275 echo "$as_me: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&2;}
31276     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
31277 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
31278     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&5
31279 echo "$as_me: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&2;}
31280     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
31281 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
31282     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
31283 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
31284
31285     ;;
31286 esac
31287 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
31288 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
31289 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
31290   echo $ECHO_N "(cached) $ECHO_C" >&6
31291 else
31292   ac_cv_header_sys_sysmacros_h=$ac_header_preproc
31293 fi
31294 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
31295 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
31296
31297 fi
31298 if test $ac_cv_header_sys_sysmacros_h = yes; then
31299
31300 cat >>confdefs.h <<\_ACEOF
31301 #define MAJOR_IN_SYSMACROS 1
31302 _ACEOF
31303
31304 fi
31305
31306
31307   fi
31308 fi
31309
31310
31311
31312
31313
31314
31315 ac_header_dirent=no
31316 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
31317   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
31318 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
31319 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
31320 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31321   echo $ECHO_N "(cached) $ECHO_C" >&6
31322 else
31323   cat >conftest.$ac_ext <<_ACEOF
31324 /* confdefs.h.  */
31325 _ACEOF
31326 cat confdefs.h >>conftest.$ac_ext
31327 cat >>conftest.$ac_ext <<_ACEOF
31328 /* end confdefs.h.  */
31329 #include <sys/types.h>
31330 #include <$ac_hdr>
31331
31332 int
31333 main ()
31334 {
31335 if ((DIR *) 0)
31336 return 0;
31337   ;
31338   return 0;
31339 }
31340 _ACEOF
31341 rm -f conftest.$ac_objext
31342 if { (ac_try="$ac_compile"
31343 case "(($ac_try" in
31344   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31345   *) ac_try_echo=$ac_try;;
31346 esac
31347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31348   (eval "$ac_compile") 2>conftest.er1
31349   ac_status=$?
31350   grep -v '^ *+' conftest.er1 >conftest.err
31351   rm -f conftest.er1
31352   cat conftest.err >&5
31353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31354   (exit $ac_status); } && {
31355          test -z "$ac_c_werror_flag" ||
31356          test ! -s conftest.err
31357        } && test -s conftest.$ac_objext; then
31358   eval "$as_ac_Header=yes"
31359 else
31360   echo "$as_me: failed program was:" >&5
31361 sed 's/^/| /' conftest.$ac_ext >&5
31362
31363         eval "$as_ac_Header=no"
31364 fi
31365
31366 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31367 fi
31368 ac_res=`eval echo '${'$as_ac_Header'}'`
31369                { echo "$as_me:$LINENO: result: $ac_res" >&5
31370 echo "${ECHO_T}$ac_res" >&6; }
31371 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31372   cat >>confdefs.h <<_ACEOF
31373 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
31374 _ACEOF
31375
31376 ac_header_dirent=$ac_hdr; break
31377 fi
31378
31379 done
31380 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
31381 if test $ac_header_dirent = dirent.h; then
31382   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
31383 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
31384 if test "${ac_cv_search_opendir+set}" = set; then
31385   echo $ECHO_N "(cached) $ECHO_C" >&6
31386 else
31387   ac_func_search_save_LIBS=$LIBS
31388 cat >conftest.$ac_ext <<_ACEOF
31389 /* confdefs.h.  */
31390 _ACEOF
31391 cat confdefs.h >>conftest.$ac_ext
31392 cat >>conftest.$ac_ext <<_ACEOF
31393 /* end confdefs.h.  */
31394
31395 /* Override any GCC internal prototype to avoid an error.
31396    Use char because int might match the return type of a GCC
31397    builtin and then its argument prototype would still apply.  */
31398 #ifdef __cplusplus
31399 extern "C"
31400 #endif
31401 char opendir ();
31402 int
31403 main ()
31404 {
31405 return opendir ();
31406   ;
31407   return 0;
31408 }
31409 _ACEOF
31410 for ac_lib in '' dir; do
31411   if test -z "$ac_lib"; then
31412     ac_res="none required"
31413   else
31414     ac_res=-l$ac_lib
31415     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
31416   fi
31417   rm -f conftest.$ac_objext conftest$ac_exeext
31418 if { (ac_try="$ac_link"
31419 case "(($ac_try" in
31420   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31421   *) ac_try_echo=$ac_try;;
31422 esac
31423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31424   (eval "$ac_link") 2>conftest.er1
31425   ac_status=$?
31426   grep -v '^ *+' conftest.er1 >conftest.err
31427   rm -f conftest.er1
31428   cat conftest.err >&5
31429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31430   (exit $ac_status); } && {
31431          test -z "$ac_c_werror_flag" ||
31432          test ! -s conftest.err
31433        } && test -s conftest$ac_exeext &&
31434        $as_test_x conftest$ac_exeext; then
31435   ac_cv_search_opendir=$ac_res
31436 else
31437   echo "$as_me: failed program was:" >&5
31438 sed 's/^/| /' conftest.$ac_ext >&5
31439
31440
31441 fi
31442
31443 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31444       conftest$ac_exeext
31445   if test "${ac_cv_search_opendir+set}" = set; then
31446   break
31447 fi
31448 done
31449 if test "${ac_cv_search_opendir+set}" = set; then
31450   :
31451 else
31452   ac_cv_search_opendir=no
31453 fi
31454 rm conftest.$ac_ext
31455 LIBS=$ac_func_search_save_LIBS
31456 fi
31457 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
31458 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
31459 ac_res=$ac_cv_search_opendir
31460 if test "$ac_res" != no; then
31461   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
31462
31463 fi
31464
31465 else
31466   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
31467 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
31468 if test "${ac_cv_search_opendir+set}" = set; then
31469   echo $ECHO_N "(cached) $ECHO_C" >&6
31470 else
31471   ac_func_search_save_LIBS=$LIBS
31472 cat >conftest.$ac_ext <<_ACEOF
31473 /* confdefs.h.  */
31474 _ACEOF
31475 cat confdefs.h >>conftest.$ac_ext
31476 cat >>conftest.$ac_ext <<_ACEOF
31477 /* end confdefs.h.  */
31478
31479 /* Override any GCC internal prototype to avoid an error.
31480    Use char because int might match the return type of a GCC
31481    builtin and then its argument prototype would still apply.  */
31482 #ifdef __cplusplus
31483 extern "C"
31484 #endif
31485 char opendir ();
31486 int
31487 main ()
31488 {
31489 return opendir ();
31490   ;
31491   return 0;
31492 }
31493 _ACEOF
31494 for ac_lib in '' x; do
31495   if test -z "$ac_lib"; then
31496     ac_res="none required"
31497   else
31498     ac_res=-l$ac_lib
31499     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
31500   fi
31501   rm -f conftest.$ac_objext conftest$ac_exeext
31502 if { (ac_try="$ac_link"
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_link") 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); } && {
31515          test -z "$ac_c_werror_flag" ||
31516          test ! -s conftest.err
31517        } && test -s conftest$ac_exeext &&
31518        $as_test_x conftest$ac_exeext; then
31519   ac_cv_search_opendir=$ac_res
31520 else
31521   echo "$as_me: failed program was:" >&5
31522 sed 's/^/| /' conftest.$ac_ext >&5
31523
31524
31525 fi
31526
31527 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31528       conftest$ac_exeext
31529   if test "${ac_cv_search_opendir+set}" = set; then
31530   break
31531 fi
31532 done
31533 if test "${ac_cv_search_opendir+set}" = set; then
31534   :
31535 else
31536   ac_cv_search_opendir=no
31537 fi
31538 rm conftest.$ac_ext
31539 LIBS=$ac_func_search_save_LIBS
31540 fi
31541 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
31542 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
31543 ac_res=$ac_cv_search_opendir
31544 if test "$ac_res" != no; then
31545   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
31546
31547 fi
31548
31549 fi
31550
31551 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
31552 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
31553 if test "${ac_cv_header_stat_broken+set}" = set; then
31554   echo $ECHO_N "(cached) $ECHO_C" >&6
31555 else
31556   cat >conftest.$ac_ext <<_ACEOF
31557 /* confdefs.h.  */
31558 _ACEOF
31559 cat confdefs.h >>conftest.$ac_ext
31560 cat >>conftest.$ac_ext <<_ACEOF
31561 /* end confdefs.h.  */
31562 #include <sys/types.h>
31563 #include <sys/stat.h>
31564
31565 #if defined S_ISBLK && defined S_IFDIR
31566 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
31567 #endif
31568
31569 #if defined S_ISBLK && defined S_IFCHR
31570 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
31571 #endif
31572
31573 #if defined S_ISLNK && defined S_IFREG
31574 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
31575 #endif
31576
31577 #if defined S_ISSOCK && defined S_IFREG
31578 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
31579 #endif
31580
31581 _ACEOF
31582 rm -f conftest.$ac_objext
31583 if { (ac_try="$ac_compile"
31584 case "(($ac_try" in
31585   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31586   *) ac_try_echo=$ac_try;;
31587 esac
31588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31589   (eval "$ac_compile") 2>conftest.er1
31590   ac_status=$?
31591   grep -v '^ *+' conftest.er1 >conftest.err
31592   rm -f conftest.er1
31593   cat conftest.err >&5
31594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31595   (exit $ac_status); } && {
31596          test -z "$ac_c_werror_flag" ||
31597          test ! -s conftest.err
31598        } && test -s conftest.$ac_objext; then
31599   ac_cv_header_stat_broken=no
31600 else
31601   echo "$as_me: failed program was:" >&5
31602 sed 's/^/| /' conftest.$ac_ext >&5
31603
31604         ac_cv_header_stat_broken=yes
31605 fi
31606
31607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31608 fi
31609 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
31610 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
31611 if test $ac_cv_header_stat_broken = yes; then
31612
31613 cat >>confdefs.h <<\_ACEOF
31614 #define STAT_MACROS_BROKEN 1
31615 _ACEOF
31616
31617 fi
31618
31619 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
31620 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
31621 if test "${ac_cv_header_sys_wait_h+set}" = set; then
31622   echo $ECHO_N "(cached) $ECHO_C" >&6
31623 else
31624   cat >conftest.$ac_ext <<_ACEOF
31625 /* confdefs.h.  */
31626 _ACEOF
31627 cat confdefs.h >>conftest.$ac_ext
31628 cat >>conftest.$ac_ext <<_ACEOF
31629 /* end confdefs.h.  */
31630 #include <sys/types.h>
31631 #include <sys/wait.h>
31632 #ifndef WEXITSTATUS
31633 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
31634 #endif
31635 #ifndef WIFEXITED
31636 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
31637 #endif
31638
31639 int
31640 main ()
31641 {
31642   int s;
31643   wait (&s);
31644   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
31645   ;
31646   return 0;
31647 }
31648 _ACEOF
31649 rm -f conftest.$ac_objext
31650 if { (ac_try="$ac_compile"
31651 case "(($ac_try" in
31652   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31653   *) ac_try_echo=$ac_try;;
31654 esac
31655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31656   (eval "$ac_compile") 2>conftest.er1
31657   ac_status=$?
31658   grep -v '^ *+' conftest.er1 >conftest.err
31659   rm -f conftest.er1
31660   cat conftest.err >&5
31661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31662   (exit $ac_status); } && {
31663          test -z "$ac_c_werror_flag" ||
31664          test ! -s conftest.err
31665        } && test -s conftest.$ac_objext; then
31666   ac_cv_header_sys_wait_h=yes
31667 else
31668   echo "$as_me: failed program was:" >&5
31669 sed 's/^/| /' conftest.$ac_ext >&5
31670
31671         ac_cv_header_sys_wait_h=no
31672 fi
31673
31674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31675 fi
31676 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
31677 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
31678 if test $ac_cv_header_sys_wait_h = yes; then
31679
31680 cat >>confdefs.h <<\_ACEOF
31681 #define HAVE_SYS_WAIT_H 1
31682 _ACEOF
31683
31684 fi
31685
31686 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
31687 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
31688 if test "${ac_cv_header_time+set}" = set; then
31689   echo $ECHO_N "(cached) $ECHO_C" >&6
31690 else
31691   cat >conftest.$ac_ext <<_ACEOF
31692 /* confdefs.h.  */
31693 _ACEOF
31694 cat confdefs.h >>conftest.$ac_ext
31695 cat >>conftest.$ac_ext <<_ACEOF
31696 /* end confdefs.h.  */
31697 #include <sys/types.h>
31698 #include <sys/time.h>
31699 #include <time.h>
31700
31701 int
31702 main ()
31703 {
31704 if ((struct tm *) 0)
31705 return 0;
31706   ;
31707   return 0;
31708 }
31709 _ACEOF
31710 rm -f conftest.$ac_objext
31711 if { (ac_try="$ac_compile"
31712 case "(($ac_try" in
31713   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31714   *) ac_try_echo=$ac_try;;
31715 esac
31716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31717   (eval "$ac_compile") 2>conftest.er1
31718   ac_status=$?
31719   grep -v '^ *+' conftest.er1 >conftest.err
31720   rm -f conftest.er1
31721   cat conftest.err >&5
31722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31723   (exit $ac_status); } && {
31724          test -z "$ac_c_werror_flag" ||
31725          test ! -s conftest.err
31726        } && test -s conftest.$ac_objext; then
31727   ac_cv_header_time=yes
31728 else
31729   echo "$as_me: failed program was:" >&5
31730 sed 's/^/| /' conftest.$ac_ext >&5
31731
31732         ac_cv_header_time=no
31733 fi
31734
31735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31736 fi
31737 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
31738 echo "${ECHO_T}$ac_cv_header_time" >&6; }
31739 if test $ac_cv_header_time = yes; then
31740
31741 cat >>confdefs.h <<\_ACEOF
31742 #define TIME_WITH_SYS_TIME 1
31743 _ACEOF
31744
31745 fi
31746
31747 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
31748 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
31749 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
31750   echo $ECHO_N "(cached) $ECHO_C" >&6
31751 else
31752   cat >conftest.$ac_ext <<_ACEOF
31753 /* confdefs.h.  */
31754 _ACEOF
31755 cat confdefs.h >>conftest.$ac_ext
31756 cat >>conftest.$ac_ext <<_ACEOF
31757 /* end confdefs.h.  */
31758 $ac_includes_default
31759 int
31760 main ()
31761 {
31762 static struct stat ac_aggr;
31763 if (ac_aggr.st_blksize)
31764 return 0;
31765   ;
31766   return 0;
31767 }
31768 _ACEOF
31769 rm -f conftest.$ac_objext
31770 if { (ac_try="$ac_compile"
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_compile") 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_c_werror_flag" ||
31784          test ! -s conftest.err
31785        } && test -s conftest.$ac_objext; then
31786   ac_cv_member_struct_stat_st_blksize=yes
31787 else
31788   echo "$as_me: failed program was:" >&5
31789 sed 's/^/| /' conftest.$ac_ext >&5
31790
31791         cat >conftest.$ac_ext <<_ACEOF
31792 /* confdefs.h.  */
31793 _ACEOF
31794 cat confdefs.h >>conftest.$ac_ext
31795 cat >>conftest.$ac_ext <<_ACEOF
31796 /* end confdefs.h.  */
31797 $ac_includes_default
31798 int
31799 main ()
31800 {
31801 static struct stat ac_aggr;
31802 if (sizeof ac_aggr.st_blksize)
31803 return 0;
31804   ;
31805   return 0;
31806 }
31807 _ACEOF
31808 rm -f conftest.$ac_objext
31809 if { (ac_try="$ac_compile"
31810 case "(($ac_try" in
31811   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31812   *) ac_try_echo=$ac_try;;
31813 esac
31814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31815   (eval "$ac_compile") 2>conftest.er1
31816   ac_status=$?
31817   grep -v '^ *+' conftest.er1 >conftest.err
31818   rm -f conftest.er1
31819   cat conftest.err >&5
31820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31821   (exit $ac_status); } && {
31822          test -z "$ac_c_werror_flag" ||
31823          test ! -s conftest.err
31824        } && test -s conftest.$ac_objext; then
31825   ac_cv_member_struct_stat_st_blksize=yes
31826 else
31827   echo "$as_me: failed program was:" >&5
31828 sed 's/^/| /' conftest.$ac_ext >&5
31829
31830         ac_cv_member_struct_stat_st_blksize=no
31831 fi
31832
31833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31834 fi
31835
31836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31837 fi
31838 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
31839 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
31840 if test $ac_cv_member_struct_stat_st_blksize = yes; then
31841
31842 cat >>confdefs.h <<_ACEOF
31843 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
31844 _ACEOF
31845
31846
31847 cat >>confdefs.h <<\_ACEOF
31848 #define HAVE_ST_BLKSIZE 1
31849 _ACEOF
31850
31851 fi
31852
31853
31854 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
31855 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
31856 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
31857   echo $ECHO_N "(cached) $ECHO_C" >&6
31858 else
31859   cat >conftest.$ac_ext <<_ACEOF
31860 /* confdefs.h.  */
31861 _ACEOF
31862 cat confdefs.h >>conftest.$ac_ext
31863 cat >>conftest.$ac_ext <<_ACEOF
31864 /* end confdefs.h.  */
31865 $ac_includes_default
31866 int
31867 main ()
31868 {
31869 static struct stat ac_aggr;
31870 if (ac_aggr.st_blocks)
31871 return 0;
31872   ;
31873   return 0;
31874 }
31875 _ACEOF
31876 rm -f conftest.$ac_objext
31877 if { (ac_try="$ac_compile"
31878 case "(($ac_try" in
31879   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31880   *) ac_try_echo=$ac_try;;
31881 esac
31882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31883   (eval "$ac_compile") 2>conftest.er1
31884   ac_status=$?
31885   grep -v '^ *+' conftest.er1 >conftest.err
31886   rm -f conftest.er1
31887   cat conftest.err >&5
31888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31889   (exit $ac_status); } && {
31890          test -z "$ac_c_werror_flag" ||
31891          test ! -s conftest.err
31892        } && test -s conftest.$ac_objext; then
31893   ac_cv_member_struct_stat_st_blocks=yes
31894 else
31895   echo "$as_me: failed program was:" >&5
31896 sed 's/^/| /' conftest.$ac_ext >&5
31897
31898         cat >conftest.$ac_ext <<_ACEOF
31899 /* confdefs.h.  */
31900 _ACEOF
31901 cat confdefs.h >>conftest.$ac_ext
31902 cat >>conftest.$ac_ext <<_ACEOF
31903 /* end confdefs.h.  */
31904 $ac_includes_default
31905 int
31906 main ()
31907 {
31908 static struct stat ac_aggr;
31909 if (sizeof ac_aggr.st_blocks)
31910 return 0;
31911   ;
31912   return 0;
31913 }
31914 _ACEOF
31915 rm -f conftest.$ac_objext
31916 if { (ac_try="$ac_compile"
31917 case "(($ac_try" in
31918   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31919   *) ac_try_echo=$ac_try;;
31920 esac
31921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31922   (eval "$ac_compile") 2>conftest.er1
31923   ac_status=$?
31924   grep -v '^ *+' conftest.er1 >conftest.err
31925   rm -f conftest.er1
31926   cat conftest.err >&5
31927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31928   (exit $ac_status); } && {
31929          test -z "$ac_c_werror_flag" ||
31930          test ! -s conftest.err
31931        } && test -s conftest.$ac_objext; then
31932   ac_cv_member_struct_stat_st_blocks=yes
31933 else
31934   echo "$as_me: failed program was:" >&5
31935 sed 's/^/| /' conftest.$ac_ext >&5
31936
31937         ac_cv_member_struct_stat_st_blocks=no
31938 fi
31939
31940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31941 fi
31942
31943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31944 fi
31945 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
31946 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
31947 if test $ac_cv_member_struct_stat_st_blocks = yes; then
31948
31949 cat >>confdefs.h <<_ACEOF
31950 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
31951 _ACEOF
31952
31953
31954 cat >>confdefs.h <<\_ACEOF
31955 #define HAVE_ST_BLOCKS 1
31956 _ACEOF
31957
31958 else
31959   case " $LIBOBJS " in
31960   *" fileblocks.$ac_objext "* ) ;;
31961   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
31962  ;;
31963 esac
31964
31965 fi
31966
31967
31968 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
31969 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
31970 if test "${ac_cv_struct_tm+set}" = set; then
31971   echo $ECHO_N "(cached) $ECHO_C" >&6
31972 else
31973   cat >conftest.$ac_ext <<_ACEOF
31974 /* confdefs.h.  */
31975 _ACEOF
31976 cat confdefs.h >>conftest.$ac_ext
31977 cat >>conftest.$ac_ext <<_ACEOF
31978 /* end confdefs.h.  */
31979 #include <sys/types.h>
31980 #include <time.h>
31981
31982 int
31983 main ()
31984 {
31985 struct tm tm;
31986                                      int *p = &tm.tm_sec;
31987                                      return !p;
31988   ;
31989   return 0;
31990 }
31991 _ACEOF
31992 rm -f conftest.$ac_objext
31993 if { (ac_try="$ac_compile"
31994 case "(($ac_try" in
31995   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31996   *) ac_try_echo=$ac_try;;
31997 esac
31998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31999   (eval "$ac_compile") 2>conftest.er1
32000   ac_status=$?
32001   grep -v '^ *+' conftest.er1 >conftest.err
32002   rm -f conftest.er1
32003   cat conftest.err >&5
32004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32005   (exit $ac_status); } && {
32006          test -z "$ac_c_werror_flag" ||
32007          test ! -s conftest.err
32008        } && test -s conftest.$ac_objext; then
32009   ac_cv_struct_tm=time.h
32010 else
32011   echo "$as_me: failed program was:" >&5
32012 sed 's/^/| /' conftest.$ac_ext >&5
32013
32014         ac_cv_struct_tm=sys/time.h
32015 fi
32016
32017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32018 fi
32019 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
32020 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
32021 if test $ac_cv_struct_tm = sys/time.h; then
32022
32023 cat >>confdefs.h <<\_ACEOF
32024 #define TM_IN_SYS_TIME 1
32025 _ACEOF
32026
32027 fi
32028
32029 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
32030 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
32031 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
32032   echo $ECHO_N "(cached) $ECHO_C" >&6
32033 else
32034   cat >conftest.$ac_ext <<_ACEOF
32035 /* confdefs.h.  */
32036 _ACEOF
32037 cat confdefs.h >>conftest.$ac_ext
32038 cat >>conftest.$ac_ext <<_ACEOF
32039 /* end confdefs.h.  */
32040 #include <sys/types.h>
32041 #include <$ac_cv_struct_tm>
32042
32043
32044 int
32045 main ()
32046 {
32047 static struct tm ac_aggr;
32048 if (ac_aggr.tm_zone)
32049 return 0;
32050   ;
32051   return 0;
32052 }
32053 _ACEOF
32054 rm -f conftest.$ac_objext
32055 if { (ac_try="$ac_compile"
32056 case "(($ac_try" in
32057   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32058   *) ac_try_echo=$ac_try;;
32059 esac
32060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32061   (eval "$ac_compile") 2>conftest.er1
32062   ac_status=$?
32063   grep -v '^ *+' conftest.er1 >conftest.err
32064   rm -f conftest.er1
32065   cat conftest.err >&5
32066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32067   (exit $ac_status); } && {
32068          test -z "$ac_c_werror_flag" ||
32069          test ! -s conftest.err
32070        } && test -s conftest.$ac_objext; then
32071   ac_cv_member_struct_tm_tm_zone=yes
32072 else
32073   echo "$as_me: failed program was:" >&5
32074 sed 's/^/| /' conftest.$ac_ext >&5
32075
32076         cat >conftest.$ac_ext <<_ACEOF
32077 /* confdefs.h.  */
32078 _ACEOF
32079 cat confdefs.h >>conftest.$ac_ext
32080 cat >>conftest.$ac_ext <<_ACEOF
32081 /* end confdefs.h.  */
32082 #include <sys/types.h>
32083 #include <$ac_cv_struct_tm>
32084
32085
32086 int
32087 main ()
32088 {
32089 static struct tm ac_aggr;
32090 if (sizeof ac_aggr.tm_zone)
32091 return 0;
32092   ;
32093   return 0;
32094 }
32095 _ACEOF
32096 rm -f conftest.$ac_objext
32097 if { (ac_try="$ac_compile"
32098 case "(($ac_try" in
32099   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32100   *) ac_try_echo=$ac_try;;
32101 esac
32102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32103   (eval "$ac_compile") 2>conftest.er1
32104   ac_status=$?
32105   grep -v '^ *+' conftest.er1 >conftest.err
32106   rm -f conftest.er1
32107   cat conftest.err >&5
32108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32109   (exit $ac_status); } && {
32110          test -z "$ac_c_werror_flag" ||
32111          test ! -s conftest.err
32112        } && test -s conftest.$ac_objext; then
32113   ac_cv_member_struct_tm_tm_zone=yes
32114 else
32115   echo "$as_me: failed program was:" >&5
32116 sed 's/^/| /' conftest.$ac_ext >&5
32117
32118         ac_cv_member_struct_tm_tm_zone=no
32119 fi
32120
32121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32122 fi
32123
32124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32125 fi
32126 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
32127 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
32128 if test $ac_cv_member_struct_tm_tm_zone = yes; then
32129
32130 cat >>confdefs.h <<_ACEOF
32131 #define HAVE_STRUCT_TM_TM_ZONE 1
32132 _ACEOF
32133
32134
32135 fi
32136
32137 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
32138
32139 cat >>confdefs.h <<\_ACEOF
32140 #define HAVE_TM_ZONE 1
32141 _ACEOF
32142
32143 else
32144   { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
32145 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
32146 if test "${ac_cv_have_decl_tzname+set}" = set; then
32147   echo $ECHO_N "(cached) $ECHO_C" >&6
32148 else
32149   cat >conftest.$ac_ext <<_ACEOF
32150 /* confdefs.h.  */
32151 _ACEOF
32152 cat confdefs.h >>conftest.$ac_ext
32153 cat >>conftest.$ac_ext <<_ACEOF
32154 /* end confdefs.h.  */
32155 #include <time.h>
32156
32157 int
32158 main ()
32159 {
32160 #ifndef tzname
32161   (void) tzname;
32162 #endif
32163
32164   ;
32165   return 0;
32166 }
32167 _ACEOF
32168 rm -f conftest.$ac_objext
32169 if { (ac_try="$ac_compile"
32170 case "(($ac_try" in
32171   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32172   *) ac_try_echo=$ac_try;;
32173 esac
32174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32175   (eval "$ac_compile") 2>conftest.er1
32176   ac_status=$?
32177   grep -v '^ *+' conftest.er1 >conftest.err
32178   rm -f conftest.er1
32179   cat conftest.err >&5
32180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32181   (exit $ac_status); } && {
32182          test -z "$ac_c_werror_flag" ||
32183          test ! -s conftest.err
32184        } && test -s conftest.$ac_objext; then
32185   ac_cv_have_decl_tzname=yes
32186 else
32187   echo "$as_me: failed program was:" >&5
32188 sed 's/^/| /' conftest.$ac_ext >&5
32189
32190         ac_cv_have_decl_tzname=no
32191 fi
32192
32193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32194 fi
32195 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
32196 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
32197 if test $ac_cv_have_decl_tzname = yes; then
32198
32199 cat >>confdefs.h <<_ACEOF
32200 #define HAVE_DECL_TZNAME 1
32201 _ACEOF
32202
32203
32204 else
32205   cat >>confdefs.h <<_ACEOF
32206 #define HAVE_DECL_TZNAME 0
32207 _ACEOF
32208
32209
32210 fi
32211
32212
32213   { echo "$as_me:$LINENO: checking for tzname" >&5
32214 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
32215 if test "${ac_cv_var_tzname+set}" = set; then
32216   echo $ECHO_N "(cached) $ECHO_C" >&6
32217 else
32218   cat >conftest.$ac_ext <<_ACEOF
32219 /* confdefs.h.  */
32220 _ACEOF
32221 cat confdefs.h >>conftest.$ac_ext
32222 cat >>conftest.$ac_ext <<_ACEOF
32223 /* end confdefs.h.  */
32224 #include <time.h>
32225 #if !HAVE_DECL_TZNAME
32226 extern char *tzname[];
32227 #endif
32228
32229 int
32230 main ()
32231 {
32232 return tzname[0][0];
32233   ;
32234   return 0;
32235 }
32236 _ACEOF
32237 rm -f conftest.$ac_objext conftest$ac_exeext
32238 if { (ac_try="$ac_link"
32239 case "(($ac_try" in
32240   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32241   *) ac_try_echo=$ac_try;;
32242 esac
32243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32244   (eval "$ac_link") 2>conftest.er1
32245   ac_status=$?
32246   grep -v '^ *+' conftest.er1 >conftest.err
32247   rm -f conftest.er1
32248   cat conftest.err >&5
32249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32250   (exit $ac_status); } && {
32251          test -z "$ac_c_werror_flag" ||
32252          test ! -s conftest.err
32253        } && test -s conftest$ac_exeext &&
32254        $as_test_x conftest$ac_exeext; then
32255   ac_cv_var_tzname=yes
32256 else
32257   echo "$as_me: failed program was:" >&5
32258 sed 's/^/| /' conftest.$ac_ext >&5
32259
32260         ac_cv_var_tzname=no
32261 fi
32262
32263 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32264       conftest$ac_exeext conftest.$ac_ext
32265 fi
32266 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
32267 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
32268   if test $ac_cv_var_tzname = yes; then
32269
32270 cat >>confdefs.h <<\_ACEOF
32271 #define HAVE_TZNAME 1
32272 _ACEOF
32273
32274   fi
32275 fi
32276
32277
32278 { echo "$as_me:$LINENO: checking for utime.h" >&5
32279 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6; }
32280 if test "${ba_cv_header_utime_h+set}" = set; then
32281   echo $ECHO_N "(cached) $ECHO_C" >&6
32282 else
32283
32284        cat >conftest.$ac_ext <<_ACEOF
32285 /* confdefs.h.  */
32286 _ACEOF
32287 cat confdefs.h >>conftest.$ac_ext
32288 cat >>conftest.$ac_ext <<_ACEOF
32289 /* end confdefs.h.  */
32290
32291               #include <sys/types.h>
32292               #include <utime.h>
32293
32294 int
32295 main ()
32296 {
32297
32298               struct utimbuf foo
32299
32300   ;
32301   return 0;
32302 }
32303 _ACEOF
32304 rm -f conftest.$ac_objext
32305 if { (ac_try="$ac_compile"
32306 case "(($ac_try" in
32307   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32308   *) ac_try_echo=$ac_try;;
32309 esac
32310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32311   (eval "$ac_compile") 2>conftest.er1
32312   ac_status=$?
32313   grep -v '^ *+' conftest.er1 >conftest.err
32314   rm -f conftest.er1
32315   cat conftest.err >&5
32316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32317   (exit $ac_status); } && {
32318          test -z "$ac_c_werror_flag" ||
32319          test ! -s conftest.err
32320        } && test -s conftest.$ac_objext; then
32321
32322               ba_cv_header_utime_h=yes
32323
32324 else
32325   echo "$as_me: failed program was:" >&5
32326 sed 's/^/| /' conftest.$ac_ext >&5
32327
32328
32329               ba_cv_header_utime_h=no
32330
32331
32332 fi
32333
32334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32335
32336
32337 fi
32338 { echo "$as_me:$LINENO: result: $ba_cv_header_utime_h" >&5
32339 echo "${ECHO_T}$ba_cv_header_utime_h" >&6; }
32340 test $ba_cv_header_utime_h = yes &&
32341 cat >>confdefs.h <<\_ACEOF
32342 #define HAVE_UTIME_H 1
32343 _ACEOF
32344
32345
32346 { echo "$as_me:$LINENO: checking for socklen_t" >&5
32347 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
32348 if test "${ba_cv_header_socklen_t+set}" = set; then
32349   echo $ECHO_N "(cached) $ECHO_C" >&6
32350 else
32351
32352        cat >conftest.$ac_ext <<_ACEOF
32353 /* confdefs.h.  */
32354 _ACEOF
32355 cat confdefs.h >>conftest.$ac_ext
32356 cat >>conftest.$ac_ext <<_ACEOF
32357 /* end confdefs.h.  */
32358
32359               #include <sys/types.h>
32360               #include <sys/socket.h>
32361
32362 int
32363 main ()
32364 {
32365
32366               socklen_t x
32367
32368   ;
32369   return 0;
32370 }
32371 _ACEOF
32372 rm -f conftest.$ac_objext
32373 if { (ac_try="$ac_compile"
32374 case "(($ac_try" in
32375   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32376   *) ac_try_echo=$ac_try;;
32377 esac
32378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32379   (eval "$ac_compile") 2>conftest.er1
32380   ac_status=$?
32381   grep -v '^ *+' conftest.er1 >conftest.err
32382   rm -f conftest.er1
32383   cat conftest.err >&5
32384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32385   (exit $ac_status); } && {
32386          test -z "$ac_c_werror_flag" ||
32387          test ! -s conftest.err
32388        } && test -s conftest.$ac_objext; then
32389
32390              ba_cv_header_socklen_t=yes
32391
32392 else
32393   echo "$as_me: failed program was:" >&5
32394 sed 's/^/| /' conftest.$ac_ext >&5
32395
32396
32397              ba_cv_header_socklen_t=no
32398
32399
32400 fi
32401
32402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32403
32404
32405 fi
32406 { echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
32407 echo "${ECHO_T}$ba_cv_header_socklen_t" >&6; }
32408 test $ba_cv_header_socklen_t = yes && cat >>confdefs.h <<\_ACEOF
32409 #define HAVE_SOCKLEN_T 1
32410 _ACEOF
32411
32412
32413 { echo "$as_me:$LINENO: checking for bigendian" >&5
32414 echo $ECHO_N "checking for bigendian... $ECHO_C" >&6; }
32415 if test "${ba_cv_bigendian+set}" = set; then
32416   echo $ECHO_N "(cached) $ECHO_C" >&6
32417 else
32418
32419        if test "$cross_compiling" = yes; then
32420
32421              ba_cv_bigendian=no
32422
32423
32424 else
32425   cat >conftest.$ac_ext <<_ACEOF
32426 /* confdefs.h.  */
32427 _ACEOF
32428 cat confdefs.h >>conftest.$ac_ext
32429 cat >>conftest.$ac_ext <<_ACEOF
32430 /* end confdefs.h.  */
32431
32432               main(){long a=1L; char *p=(char *)&a; exit(*p);}
32433
32434 _ACEOF
32435 rm -f conftest$ac_exeext
32436 if { (ac_try="$ac_link"
32437 case "(($ac_try" in
32438   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32439   *) ac_try_echo=$ac_try;;
32440 esac
32441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32442   (eval "$ac_link") 2>&5
32443   ac_status=$?
32444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32445   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32446   { (case "(($ac_try" in
32447   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32448   *) ac_try_echo=$ac_try;;
32449 esac
32450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32451   (eval "$ac_try") 2>&5
32452   ac_status=$?
32453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32454   (exit $ac_status); }; }; then
32455
32456              ba_cv_bigendian=yes
32457
32458 else
32459   echo "$as_me: program exited with status $ac_status" >&5
32460 echo "$as_me: failed program was:" >&5
32461 sed 's/^/| /' conftest.$ac_ext >&5
32462
32463 ( exit $ac_status )
32464
32465              ba_cv_bigendian=no
32466
32467 fi
32468 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32469 fi
32470
32471
32472
32473
32474 fi
32475 { echo "$as_me:$LINENO: result: $ba_cv_bigendian" >&5
32476 echo "${ECHO_T}$ba_cv_bigendian" >&6; }
32477 test $ba_cv_bigendian = yes && cat >>confdefs.h <<\_ACEOF
32478 #define HAVE_BIGENDIAN 1
32479 _ACEOF
32480
32481
32482 ac_ext=cpp
32483 ac_cpp='$CXXCPP $CPPFLAGS'
32484 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32485 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32486 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32487
32488 { echo "$as_me:$LINENO: checking for typeof" >&5
32489 echo $ECHO_N "checking for typeof... $ECHO_C" >&6; }
32490 if test "${ba_cv_have_typeof+set}" = set; then
32491   echo $ECHO_N "(cached) $ECHO_C" >&6
32492 else
32493
32494        if test "$cross_compiling" = yes; then
32495
32496               ba_cv_have_typeof=no
32497
32498
32499 else
32500   cat >conftest.$ac_ext <<_ACEOF
32501 /* confdefs.h.  */
32502 _ACEOF
32503 cat confdefs.h >>conftest.$ac_ext
32504 cat >>conftest.$ac_ext <<_ACEOF
32505 /* end confdefs.h.  */
32506
32507               main(){char *a = 0; a = (typeof a)a;}
32508
32509 _ACEOF
32510 rm -f conftest$ac_exeext
32511 if { (ac_try="$ac_link"
32512 case "(($ac_try" in
32513   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32514   *) ac_try_echo=$ac_try;;
32515 esac
32516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32517   (eval "$ac_link") 2>&5
32518   ac_status=$?
32519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32520   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32521   { (case "(($ac_try" in
32522   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32523   *) ac_try_echo=$ac_try;;
32524 esac
32525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32526   (eval "$ac_try") 2>&5
32527   ac_status=$?
32528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32529   (exit $ac_status); }; }; then
32530
32531               ba_cv_have_typeof=yes
32532
32533 else
32534   echo "$as_me: program exited with status $ac_status" >&5
32535 echo "$as_me: failed program was:" >&5
32536 sed 's/^/| /' conftest.$ac_ext >&5
32537
32538 ( exit $ac_status )
32539
32540               ba_cv_have_typeof=no
32541
32542 fi
32543 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32544 fi
32545
32546
32547
32548
32549 fi
32550 { echo "$as_me:$LINENO: result: $ba_cv_have_typeof" >&5
32551 echo "${ECHO_T}$ba_cv_have_typeof" >&6; }
32552 test $ba_cv_have_typeof = yes &&
32553 cat >>confdefs.h <<\_ACEOF
32554 #define HAVE_TYPEOF 1
32555 _ACEOF
32556
32557 ac_ext=c
32558 ac_cpp='$CPP $CPPFLAGS'
32559 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32560 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32561 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32562
32563
32564 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
32565 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
32566 if test "${ac_cv_c_const+set}" = set; then
32567   echo $ECHO_N "(cached) $ECHO_C" >&6
32568 else
32569   cat >conftest.$ac_ext <<_ACEOF
32570 /* confdefs.h.  */
32571 _ACEOF
32572 cat confdefs.h >>conftest.$ac_ext
32573 cat >>conftest.$ac_ext <<_ACEOF
32574 /* end confdefs.h.  */
32575
32576 int
32577 main ()
32578 {
32579 /* FIXME: Include the comments suggested by Paul. */
32580 #ifndef __cplusplus
32581   /* Ultrix mips cc rejects this.  */
32582   typedef int charset[2];
32583   const charset cs;
32584   /* SunOS 4.1.1 cc rejects this.  */
32585   char const *const *pcpcc;
32586   char **ppc;
32587   /* NEC SVR4.0.2 mips cc rejects this.  */
32588   struct point {int x, y;};
32589   static struct point const zero = {0,0};
32590   /* AIX XL C 1.02.0.0 rejects this.
32591      It does not let you subtract one const X* pointer from another in
32592      an arm of an if-expression whose if-part is not a constant
32593      expression */
32594   const char *g = "string";
32595   pcpcc = &g + (g ? g-g : 0);
32596   /* HPUX 7.0 cc rejects these. */
32597   ++pcpcc;
32598   ppc = (char**) pcpcc;
32599   pcpcc = (char const *const *) ppc;
32600   { /* SCO 3.2v4 cc rejects this.  */
32601     char *t;
32602     char const *s = 0 ? (char *) 0 : (char const *) 0;
32603
32604     *t++ = 0;
32605     if (s) return 0;
32606   }
32607   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
32608     int x[] = {25, 17};
32609     const int *foo = &x[0];
32610     ++foo;
32611   }
32612   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
32613     typedef const int *iptr;
32614     iptr p = 0;
32615     ++p;
32616   }
32617   { /* AIX XL C 1.02.0.0 rejects this saying
32618        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
32619     struct s { int j; const int *ap[3]; };
32620     struct s *b; b->j = 5;
32621   }
32622   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
32623     const int foo = 10;
32624     if (!foo) return 0;
32625   }
32626   return !cs[0] && !zero.x;
32627 #endif
32628
32629   ;
32630   return 0;
32631 }
32632 _ACEOF
32633 rm -f conftest.$ac_objext
32634 if { (ac_try="$ac_compile"
32635 case "(($ac_try" in
32636   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32637   *) ac_try_echo=$ac_try;;
32638 esac
32639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32640   (eval "$ac_compile") 2>conftest.er1
32641   ac_status=$?
32642   grep -v '^ *+' conftest.er1 >conftest.err
32643   rm -f conftest.er1
32644   cat conftest.err >&5
32645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32646   (exit $ac_status); } && {
32647          test -z "$ac_c_werror_flag" ||
32648          test ! -s conftest.err
32649        } && test -s conftest.$ac_objext; then
32650   ac_cv_c_const=yes
32651 else
32652   echo "$as_me: failed program was:" >&5
32653 sed 's/^/| /' conftest.$ac_ext >&5
32654
32655         ac_cv_c_const=no
32656 fi
32657
32658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32659 fi
32660 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
32661 echo "${ECHO_T}$ac_cv_c_const" >&6; }
32662 if test $ac_cv_c_const = no; then
32663
32664 cat >>confdefs.h <<\_ACEOF
32665 #define const
32666 _ACEOF
32667
32668 fi
32669
32670
32671 { echo "$as_me:$LINENO: checking how to get filesystem type" >&5
32672 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" >&6; }
32673 fstype=no
32674 # The order of these tests is important.
32675 cat >conftest.$ac_ext <<_ACEOF
32676 /* confdefs.h.  */
32677 _ACEOF
32678 cat confdefs.h >>conftest.$ac_ext
32679 cat >>conftest.$ac_ext <<_ACEOF
32680 /* end confdefs.h.  */
32681
32682        #include <sys/statvfs.h>
32683        #include <sys/fstyp.h>
32684
32685 _ACEOF
32686 if { (ac_try="$ac_cpp conftest.$ac_ext"
32687 case "(($ac_try" in
32688   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32689   *) ac_try_echo=$ac_try;;
32690 esac
32691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32692   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32693   ac_status=$?
32694   grep -v '^ *+' conftest.er1 >conftest.err
32695   rm -f conftest.er1
32696   cat conftest.err >&5
32697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32698   (exit $ac_status); } >/dev/null && {
32699          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32700          test ! -s conftest.err
32701        }; then
32702   cat >>confdefs.h <<\_ACEOF
32703 #define FSTYPE_STATVFS 1
32704 _ACEOF
32705  fstype=SVR4
32706
32707 else
32708   echo "$as_me: failed program was:" >&5
32709 sed 's/^/| /' conftest.$ac_ext >&5
32710
32711
32712 fi
32713
32714 rm -f conftest.err conftest.$ac_ext
32715 if test $fstype = no; then
32716    cat >conftest.$ac_ext <<_ACEOF
32717 /* confdefs.h.  */
32718 _ACEOF
32719 cat confdefs.h >>conftest.$ac_ext
32720 cat >>conftest.$ac_ext <<_ACEOF
32721 /* end confdefs.h.  */
32722
32723           #include <sys/statfs.h>
32724           #include <sys/fstyp.h>
32725
32726 _ACEOF
32727 if { (ac_try="$ac_cpp conftest.$ac_ext"
32728 case "(($ac_try" in
32729   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32730   *) ac_try_echo=$ac_try;;
32731 esac
32732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32733   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32734   ac_status=$?
32735   grep -v '^ *+' conftest.er1 >conftest.err
32736   rm -f conftest.er1
32737   cat conftest.err >&5
32738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32739   (exit $ac_status); } >/dev/null && {
32740          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32741          test ! -s conftest.err
32742        }; then
32743   cat >>confdefs.h <<\_ACEOF
32744 #define FSTYPE_USG_STATFS 1
32745 _ACEOF
32746  fstype=SVR3
32747
32748 else
32749   echo "$as_me: failed program was:" >&5
32750 sed 's/^/| /' conftest.$ac_ext >&5
32751
32752
32753 fi
32754
32755 rm -f conftest.err conftest.$ac_ext
32756 fi
32757 if test $fstype = no; then
32758    cat >conftest.$ac_ext <<_ACEOF
32759 /* confdefs.h.  */
32760 _ACEOF
32761 cat confdefs.h >>conftest.$ac_ext
32762 cat >>conftest.$ac_ext <<_ACEOF
32763 /* end confdefs.h.  */
32764
32765           #include <sys/statfs.h>
32766           #include <sys/vmount.h>
32767
32768 _ACEOF
32769 if { (ac_try="$ac_cpp conftest.$ac_ext"
32770 case "(($ac_try" in
32771   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32772   *) ac_try_echo=$ac_try;;
32773 esac
32774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32775   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32776   ac_status=$?
32777   grep -v '^ *+' conftest.er1 >conftest.err
32778   rm -f conftest.er1
32779   cat conftest.err >&5
32780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32781   (exit $ac_status); } >/dev/null && {
32782          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32783          test ! -s conftest.err
32784        }; then
32785   cat >>confdefs.h <<\_ACEOF
32786 #define FSTYPE_AIX_STATFS 1
32787 _ACEOF
32788  fstype=AIX
32789
32790 else
32791   echo "$as_me: failed program was:" >&5
32792 sed 's/^/| /' conftest.$ac_ext >&5
32793
32794
32795 fi
32796
32797 rm -f conftest.err conftest.$ac_ext
32798 fi
32799 if test $fstype = no; then
32800    cat >conftest.$ac_ext <<_ACEOF
32801 /* confdefs.h.  */
32802 _ACEOF
32803 cat confdefs.h >>conftest.$ac_ext
32804 cat >>conftest.$ac_ext <<_ACEOF
32805 /* end confdefs.h.  */
32806
32807           #include <mntent.h>
32808
32809 _ACEOF
32810 if { (ac_try="$ac_cpp conftest.$ac_ext"
32811 case "(($ac_try" in
32812   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32813   *) ac_try_echo=$ac_try;;
32814 esac
32815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32816   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32817   ac_status=$?
32818   grep -v '^ *+' conftest.er1 >conftest.err
32819   rm -f conftest.er1
32820   cat conftest.err >&5
32821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32822   (exit $ac_status); } >/dev/null && {
32823          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32824          test ! -s conftest.err
32825        }; then
32826   cat >>confdefs.h <<\_ACEOF
32827 #define FSTYPE_MNTENT 1
32828 _ACEOF
32829  fstype=4.3BSD
32830
32831 else
32832   echo "$as_me: failed program was:" >&5
32833 sed 's/^/| /' conftest.$ac_ext >&5
32834
32835
32836 fi
32837
32838 rm -f conftest.err conftest.$ac_ext
32839 fi
32840 if test $fstype = no; then
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 #include <sys/mount.h>
32848
32849 _ACEOF
32850 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32851   $EGREP "f_type;" >/dev/null 2>&1; then
32852   cat >>confdefs.h <<\_ACEOF
32853 #define FSTYPE_STATFS 1
32854 _ACEOF
32855  fstype=4.4BSD/OSF1
32856 fi
32857 rm -f conftest*
32858
32859 fi
32860 if test $fstype = no; then
32861    cat >conftest.$ac_ext <<_ACEOF
32862 /* confdefs.h.  */
32863 _ACEOF
32864 cat confdefs.h >>conftest.$ac_ext
32865 cat >>conftest.$ac_ext <<_ACEOF
32866 /* end confdefs.h.  */
32867
32868           #include <sys/mount.h>
32869           #include <sys/fs_types.h>
32870
32871 _ACEOF
32872 if { (ac_try="$ac_cpp conftest.$ac_ext"
32873 case "(($ac_try" in
32874   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32875   *) ac_try_echo=$ac_try;;
32876 esac
32877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32878   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32879   ac_status=$?
32880   grep -v '^ *+' conftest.er1 >conftest.err
32881   rm -f conftest.er1
32882   cat conftest.err >&5
32883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32884   (exit $ac_status); } >/dev/null && {
32885          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32886          test ! -s conftest.err
32887        }; then
32888   cat >>confdefs.h <<\_ACEOF
32889 #define FSTYPE_GETMNT 1
32890 _ACEOF
32891  fstype=Ultrix
32892
32893 else
32894   echo "$as_me: failed program was:" >&5
32895 sed 's/^/| /' conftest.$ac_ext >&5
32896
32897
32898 fi
32899
32900 rm -f conftest.err conftest.$ac_ext
32901 fi
32902 { echo "$as_me:$LINENO: result: $fstype" >&5
32903 echo "${ECHO_T}$fstype" >&6; }
32904
32905 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
32906   { echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
32907 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6; }
32908 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
32909   echo $ECHO_N "(cached) $ECHO_C" >&6
32910 fi
32911 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
32912 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6; }
32913 else
32914   # Is the header compilable?
32915 { echo "$as_me:$LINENO: checking sys/statvfs.h usability" >&5
32916 echo $ECHO_N "checking sys/statvfs.h usability... $ECHO_C" >&6; }
32917 cat >conftest.$ac_ext <<_ACEOF
32918 /* confdefs.h.  */
32919 _ACEOF
32920 cat confdefs.h >>conftest.$ac_ext
32921 cat >>conftest.$ac_ext <<_ACEOF
32922 /* end confdefs.h.  */
32923 $ac_includes_default
32924 #include <sys/statvfs.h>
32925 _ACEOF
32926 rm -f conftest.$ac_objext
32927 if { (ac_try="$ac_compile"
32928 case "(($ac_try" in
32929   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32930   *) ac_try_echo=$ac_try;;
32931 esac
32932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32933   (eval "$ac_compile") 2>conftest.er1
32934   ac_status=$?
32935   grep -v '^ *+' conftest.er1 >conftest.err
32936   rm -f conftest.er1
32937   cat conftest.err >&5
32938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32939   (exit $ac_status); } && {
32940          test -z "$ac_c_werror_flag" ||
32941          test ! -s conftest.err
32942        } && test -s conftest.$ac_objext; then
32943   ac_header_compiler=yes
32944 else
32945   echo "$as_me: failed program was:" >&5
32946 sed 's/^/| /' conftest.$ac_ext >&5
32947
32948         ac_header_compiler=no
32949 fi
32950
32951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32952 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32953 echo "${ECHO_T}$ac_header_compiler" >&6; }
32954
32955 # Is the header present?
32956 { echo "$as_me:$LINENO: checking sys/statvfs.h presence" >&5
32957 echo $ECHO_N "checking sys/statvfs.h presence... $ECHO_C" >&6; }
32958 cat >conftest.$ac_ext <<_ACEOF
32959 /* confdefs.h.  */
32960 _ACEOF
32961 cat confdefs.h >>conftest.$ac_ext
32962 cat >>conftest.$ac_ext <<_ACEOF
32963 /* end confdefs.h.  */
32964 #include <sys/statvfs.h>
32965 _ACEOF
32966 if { (ac_try="$ac_cpp conftest.$ac_ext"
32967 case "(($ac_try" in
32968   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32969   *) ac_try_echo=$ac_try;;
32970 esac
32971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32972   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32973   ac_status=$?
32974   grep -v '^ *+' conftest.er1 >conftest.err
32975   rm -f conftest.er1
32976   cat conftest.err >&5
32977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32978   (exit $ac_status); } >/dev/null && {
32979          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32980          test ! -s conftest.err
32981        }; then
32982   ac_header_preproc=yes
32983 else
32984   echo "$as_me: failed program was:" >&5
32985 sed 's/^/| /' conftest.$ac_ext >&5
32986
32987   ac_header_preproc=no
32988 fi
32989
32990 rm -f conftest.err conftest.$ac_ext
32991 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32992 echo "${ECHO_T}$ac_header_preproc" >&6; }
32993
32994 # So?  What about this header?
32995 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32996   yes:no: )
32997     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&5
32998 echo "$as_me: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32999     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&5
33000 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&2;}
33001     ac_header_preproc=yes
33002     ;;
33003   no:yes:* )
33004     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: present but cannot be compiled" >&5
33005 echo "$as_me: WARNING: sys/statvfs.h: present but cannot be compiled" >&2;}
33006     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h:     check for missing prerequisite headers?" >&5
33007 echo "$as_me: WARNING: sys/statvfs.h:     check for missing prerequisite headers?" >&2;}
33008     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: see the Autoconf documentation" >&5
33009 echo "$as_me: WARNING: sys/statvfs.h: see the Autoconf documentation" >&2;}
33010     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h:     section \"Present But Cannot Be Compiled\"" >&5
33011 echo "$as_me: WARNING: sys/statvfs.h:     section \"Present But Cannot Be Compiled\"" >&2;}
33012     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&5
33013 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&2;}
33014     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&5
33015 echo "$as_me: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&2;}
33016
33017     ;;
33018 esac
33019 { echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
33020 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6; }
33021 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
33022   echo $ECHO_N "(cached) $ECHO_C" >&6
33023 else
33024   ac_cv_header_sys_statvfs_h=$ac_header_preproc
33025 fi
33026 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
33027 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6; }
33028
33029 fi
33030 if test $ac_cv_header_sys_statvfs_h = yes; then
33031
33032 cat >>confdefs.h <<\_ACEOF
33033 #define HAVE_SYS_STATVFS_H 1
33034 _ACEOF
33035
33036 fi
33037
33038
33039
33040 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
33041 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
33042 if test "${ac_cv_type_signal+set}" = set; then
33043   echo $ECHO_N "(cached) $ECHO_C" >&6
33044 else
33045   cat >conftest.$ac_ext <<_ACEOF
33046 /* confdefs.h.  */
33047 _ACEOF
33048 cat confdefs.h >>conftest.$ac_ext
33049 cat >>conftest.$ac_ext <<_ACEOF
33050 /* end confdefs.h.  */
33051 #include <sys/types.h>
33052 #include <signal.h>
33053
33054 int
33055 main ()
33056 {
33057 return *(signal (0, 0)) (0) == 1;
33058   ;
33059   return 0;
33060 }
33061 _ACEOF
33062 rm -f conftest.$ac_objext
33063 if { (ac_try="$ac_compile"
33064 case "(($ac_try" in
33065   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33066   *) ac_try_echo=$ac_try;;
33067 esac
33068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33069   (eval "$ac_compile") 2>conftest.er1
33070   ac_status=$?
33071   grep -v '^ *+' conftest.er1 >conftest.err
33072   rm -f conftest.er1
33073   cat conftest.err >&5
33074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33075   (exit $ac_status); } && {
33076          test -z "$ac_c_werror_flag" ||
33077          test ! -s conftest.err
33078        } && test -s conftest.$ac_objext; then
33079   ac_cv_type_signal=int
33080 else
33081   echo "$as_me: failed program was:" >&5
33082 sed 's/^/| /' conftest.$ac_ext >&5
33083
33084         ac_cv_type_signal=void
33085 fi
33086
33087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33088 fi
33089 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
33090 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
33091
33092 cat >>confdefs.h <<_ACEOF
33093 #define RETSIGTYPE $ac_cv_type_signal
33094 _ACEOF
33095
33096
33097
33098   { echo "$as_me:$LINENO: checking for type of signal functions" >&5
33099 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6; }
33100   if test "${bash_cv_signal_vintage+set}" = set; then
33101   echo $ECHO_N "(cached) $ECHO_C" >&6
33102 else
33103
33104     cat >conftest.$ac_ext <<_ACEOF
33105 /* confdefs.h.  */
33106 _ACEOF
33107 cat confdefs.h >>conftest.$ac_ext
33108 cat >>conftest.$ac_ext <<_ACEOF
33109 /* end confdefs.h.  */
33110 #include <signal.h>
33111 int
33112 main ()
33113 {
33114
33115       sigset_t ss;
33116       struct sigaction sa;
33117       sigemptyset(&ss); sigsuspend(&ss);
33118       sigaction(SIGINT, &sa, (struct sigaction *) 0);
33119       sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
33120
33121   ;
33122   return 0;
33123 }
33124 _ACEOF
33125 rm -f conftest.$ac_objext conftest$ac_exeext
33126 if { (ac_try="$ac_link"
33127 case "(($ac_try" in
33128   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33129   *) ac_try_echo=$ac_try;;
33130 esac
33131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33132   (eval "$ac_link") 2>conftest.er1
33133   ac_status=$?
33134   grep -v '^ *+' conftest.er1 >conftest.err
33135   rm -f conftest.er1
33136   cat conftest.err >&5
33137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33138   (exit $ac_status); } && {
33139          test -z "$ac_c_werror_flag" ||
33140          test ! -s conftest.err
33141        } && test -s conftest$ac_exeext &&
33142        $as_test_x conftest$ac_exeext; then
33143   bash_cv_signal_vintage="posix"
33144 else
33145   echo "$as_me: failed program was:" >&5
33146 sed 's/^/| /' conftest.$ac_ext >&5
33147
33148
33149       cat >conftest.$ac_ext <<_ACEOF
33150 /* confdefs.h.  */
33151 _ACEOF
33152 cat confdefs.h >>conftest.$ac_ext
33153 cat >>conftest.$ac_ext <<_ACEOF
33154 /* end confdefs.h.  */
33155 #include <signal.h>
33156 int
33157 main ()
33158 {
33159
33160           int mask = sigmask(SIGINT);
33161           sigsetmask(mask); sigblock(mask); sigpause(mask);
33162
33163   ;
33164   return 0;
33165 }
33166 _ACEOF
33167 rm -f conftest.$ac_objext conftest$ac_exeext
33168 if { (ac_try="$ac_link"
33169 case "(($ac_try" in
33170   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33171   *) ac_try_echo=$ac_try;;
33172 esac
33173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33174   (eval "$ac_link") 2>conftest.er1
33175   ac_status=$?
33176   grep -v '^ *+' conftest.er1 >conftest.err
33177   rm -f conftest.er1
33178   cat conftest.err >&5
33179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33180   (exit $ac_status); } && {
33181          test -z "$ac_c_werror_flag" ||
33182          test ! -s conftest.err
33183        } && test -s conftest$ac_exeext &&
33184        $as_test_x conftest$ac_exeext; then
33185   bash_cv_signal_vintage="4.2bsd"
33186 else
33187   echo "$as_me: failed program was:" >&5
33188 sed 's/^/| /' conftest.$ac_ext >&5
33189
33190
33191         cat >conftest.$ac_ext <<_ACEOF
33192 /* confdefs.h.  */
33193 _ACEOF
33194 cat confdefs.h >>conftest.$ac_ext
33195 cat >>conftest.$ac_ext <<_ACEOF
33196 /* end confdefs.h.  */
33197
33198           #include <signal.h>
33199           RETSIGTYPE foo() { }
33200 int
33201 main ()
33202 {
33203
33204                   int mask = sigmask(SIGINT);
33205                   sigset(SIGINT, foo); sigrelse(SIGINT);
33206                   sighold(SIGINT); sigpause(SIGINT);
33207
33208   ;
33209   return 0;
33210 }
33211 _ACEOF
33212 rm -f conftest.$ac_objext conftest$ac_exeext
33213 if { (ac_try="$ac_link"
33214 case "(($ac_try" in
33215   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33216   *) ac_try_echo=$ac_try;;
33217 esac
33218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33219   (eval "$ac_link") 2>conftest.er1
33220   ac_status=$?
33221   grep -v '^ *+' conftest.er1 >conftest.err
33222   rm -f conftest.er1
33223   cat conftest.err >&5
33224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33225   (exit $ac_status); } && {
33226          test -z "$ac_c_werror_flag" ||
33227          test ! -s conftest.err
33228        } && test -s conftest$ac_exeext &&
33229        $as_test_x conftest$ac_exeext; then
33230   bash_cv_signal_vintage="svr3"
33231 else
33232   echo "$as_me: failed program was:" >&5
33233 sed 's/^/| /' conftest.$ac_ext >&5
33234
33235         bash_cv_signal_vintage="v7"
33236
33237 fi
33238
33239 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33240       conftest$ac_exeext conftest.$ac_ext
33241
33242 fi
33243
33244 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33245       conftest$ac_exeext conftest.$ac_ext
33246
33247 fi
33248
33249 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33250       conftest$ac_exeext conftest.$ac_ext
33251
33252 fi
33253
33254   { echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
33255 echo "${ECHO_T}$bash_cv_signal_vintage" >&6; }
33256   if test "$bash_cv_signal_vintage" = "posix"; then
33257     cat >>confdefs.h <<\_ACEOF
33258 #define HAVE_POSIX_SIGNALS 1
33259 _ACEOF
33260
33261   elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
33262     cat >>confdefs.h <<\_ACEOF
33263 #define HAVE_BSD_SIGNALS 1
33264 _ACEOF
33265
33266   elif test "$bash_cv_signal_vintage" = "svr3"; then
33267     cat >>confdefs.h <<\_ACEOF
33268 #define HAVE_USG_SIGHOLD 1
33269 _ACEOF
33270
33271   fi
33272
33273 { echo "$as_me:$LINENO: checking for mode_t" >&5
33274 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
33275 if test "${ac_cv_type_mode_t+set}" = set; then
33276   echo $ECHO_N "(cached) $ECHO_C" >&6
33277 else
33278   cat >conftest.$ac_ext <<_ACEOF
33279 /* confdefs.h.  */
33280 _ACEOF
33281 cat confdefs.h >>conftest.$ac_ext
33282 cat >>conftest.$ac_ext <<_ACEOF
33283 /* end confdefs.h.  */
33284 $ac_includes_default
33285 typedef mode_t ac__type_new_;
33286 int
33287 main ()
33288 {
33289 if ((ac__type_new_ *) 0)
33290   return 0;
33291 if (sizeof (ac__type_new_))
33292   return 0;
33293   ;
33294   return 0;
33295 }
33296 _ACEOF
33297 rm -f conftest.$ac_objext
33298 if { (ac_try="$ac_compile"
33299 case "(($ac_try" in
33300   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33301   *) ac_try_echo=$ac_try;;
33302 esac
33303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33304   (eval "$ac_compile") 2>conftest.er1
33305   ac_status=$?
33306   grep -v '^ *+' conftest.er1 >conftest.err
33307   rm -f conftest.er1
33308   cat conftest.err >&5
33309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33310   (exit $ac_status); } && {
33311          test -z "$ac_c_werror_flag" ||
33312          test ! -s conftest.err
33313        } && test -s conftest.$ac_objext; then
33314   ac_cv_type_mode_t=yes
33315 else
33316   echo "$as_me: failed program was:" >&5
33317 sed 's/^/| /' conftest.$ac_ext >&5
33318
33319         ac_cv_type_mode_t=no
33320 fi
33321
33322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33323 fi
33324 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
33325 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
33326 if test $ac_cv_type_mode_t = yes; then
33327   :
33328 else
33329
33330 cat >>confdefs.h <<_ACEOF
33331 #define mode_t int
33332 _ACEOF
33333
33334 fi
33335
33336 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
33337 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
33338 if test "${ac_cv_type_uid_t+set}" = set; then
33339   echo $ECHO_N "(cached) $ECHO_C" >&6
33340 else
33341   cat >conftest.$ac_ext <<_ACEOF
33342 /* confdefs.h.  */
33343 _ACEOF
33344 cat confdefs.h >>conftest.$ac_ext
33345 cat >>conftest.$ac_ext <<_ACEOF
33346 /* end confdefs.h.  */
33347 #include <sys/types.h>
33348
33349 _ACEOF
33350 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33351   $EGREP "uid_t" >/dev/null 2>&1; then
33352   ac_cv_type_uid_t=yes
33353 else
33354   ac_cv_type_uid_t=no
33355 fi
33356 rm -f conftest*
33357
33358 fi
33359 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
33360 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
33361 if test $ac_cv_type_uid_t = no; then
33362
33363 cat >>confdefs.h <<\_ACEOF
33364 #define uid_t int
33365 _ACEOF
33366
33367
33368 cat >>confdefs.h <<\_ACEOF
33369 #define gid_t int
33370 _ACEOF
33371
33372 fi
33373
33374 { echo "$as_me:$LINENO: checking for size_t" >&5
33375 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
33376 if test "${ac_cv_type_size_t+set}" = set; then
33377   echo $ECHO_N "(cached) $ECHO_C" >&6
33378 else
33379   cat >conftest.$ac_ext <<_ACEOF
33380 /* confdefs.h.  */
33381 _ACEOF
33382 cat confdefs.h >>conftest.$ac_ext
33383 cat >>conftest.$ac_ext <<_ACEOF
33384 /* end confdefs.h.  */
33385 $ac_includes_default
33386 typedef size_t ac__type_new_;
33387 int
33388 main ()
33389 {
33390 if ((ac__type_new_ *) 0)
33391   return 0;
33392 if (sizeof (ac__type_new_))
33393   return 0;
33394   ;
33395   return 0;
33396 }
33397 _ACEOF
33398 rm -f conftest.$ac_objext
33399 if { (ac_try="$ac_compile"
33400 case "(($ac_try" in
33401   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33402   *) ac_try_echo=$ac_try;;
33403 esac
33404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33405   (eval "$ac_compile") 2>conftest.er1
33406   ac_status=$?
33407   grep -v '^ *+' conftest.er1 >conftest.err
33408   rm -f conftest.er1
33409   cat conftest.err >&5
33410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33411   (exit $ac_status); } && {
33412          test -z "$ac_c_werror_flag" ||
33413          test ! -s conftest.err
33414        } && test -s conftest.$ac_objext; then
33415   ac_cv_type_size_t=yes
33416 else
33417   echo "$as_me: failed program was:" >&5
33418 sed 's/^/| /' conftest.$ac_ext >&5
33419
33420         ac_cv_type_size_t=no
33421 fi
33422
33423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33424 fi
33425 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
33426 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
33427 if test $ac_cv_type_size_t = yes; then
33428   :
33429 else
33430
33431 cat >>confdefs.h <<_ACEOF
33432 #define size_t unsigned int
33433 _ACEOF
33434
33435 fi
33436
33437 { echo "$as_me:$LINENO: checking for pid_t" >&5
33438 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
33439 if test "${ac_cv_type_pid_t+set}" = set; then
33440   echo $ECHO_N "(cached) $ECHO_C" >&6
33441 else
33442   cat >conftest.$ac_ext <<_ACEOF
33443 /* confdefs.h.  */
33444 _ACEOF
33445 cat confdefs.h >>conftest.$ac_ext
33446 cat >>conftest.$ac_ext <<_ACEOF
33447 /* end confdefs.h.  */
33448 $ac_includes_default
33449 typedef pid_t ac__type_new_;
33450 int
33451 main ()
33452 {
33453 if ((ac__type_new_ *) 0)
33454   return 0;
33455 if (sizeof (ac__type_new_))
33456   return 0;
33457   ;
33458   return 0;
33459 }
33460 _ACEOF
33461 rm -f conftest.$ac_objext
33462 if { (ac_try="$ac_compile"
33463 case "(($ac_try" in
33464   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33465   *) ac_try_echo=$ac_try;;
33466 esac
33467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33468   (eval "$ac_compile") 2>conftest.er1
33469   ac_status=$?
33470   grep -v '^ *+' conftest.er1 >conftest.err
33471   rm -f conftest.er1
33472   cat conftest.err >&5
33473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33474   (exit $ac_status); } && {
33475          test -z "$ac_c_werror_flag" ||
33476          test ! -s conftest.err
33477        } && test -s conftest.$ac_objext; then
33478   ac_cv_type_pid_t=yes
33479 else
33480   echo "$as_me: failed program was:" >&5
33481 sed 's/^/| /' conftest.$ac_ext >&5
33482
33483         ac_cv_type_pid_t=no
33484 fi
33485
33486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33487 fi
33488 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
33489 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
33490 if test $ac_cv_type_pid_t = yes; then
33491   :
33492 else
33493
33494 cat >>confdefs.h <<_ACEOF
33495 #define pid_t int
33496 _ACEOF
33497
33498 fi
33499
33500 { echo "$as_me:$LINENO: checking for off_t" >&5
33501 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
33502 if test "${ac_cv_type_off_t+set}" = set; then
33503   echo $ECHO_N "(cached) $ECHO_C" >&6
33504 else
33505   cat >conftest.$ac_ext <<_ACEOF
33506 /* confdefs.h.  */
33507 _ACEOF
33508 cat confdefs.h >>conftest.$ac_ext
33509 cat >>conftest.$ac_ext <<_ACEOF
33510 /* end confdefs.h.  */
33511 $ac_includes_default
33512 typedef off_t ac__type_new_;
33513 int
33514 main ()
33515 {
33516 if ((ac__type_new_ *) 0)
33517   return 0;
33518 if (sizeof (ac__type_new_))
33519   return 0;
33520   ;
33521   return 0;
33522 }
33523 _ACEOF
33524 rm -f conftest.$ac_objext
33525 if { (ac_try="$ac_compile"
33526 case "(($ac_try" in
33527   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33528   *) ac_try_echo=$ac_try;;
33529 esac
33530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33531   (eval "$ac_compile") 2>conftest.er1
33532   ac_status=$?
33533   grep -v '^ *+' conftest.er1 >conftest.err
33534   rm -f conftest.er1
33535   cat conftest.err >&5
33536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33537   (exit $ac_status); } && {
33538          test -z "$ac_c_werror_flag" ||
33539          test ! -s conftest.err
33540        } && test -s conftest.$ac_objext; then
33541   ac_cv_type_off_t=yes
33542 else
33543   echo "$as_me: failed program was:" >&5
33544 sed 's/^/| /' conftest.$ac_ext >&5
33545
33546         ac_cv_type_off_t=no
33547 fi
33548
33549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33550 fi
33551 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
33552 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
33553 if test $ac_cv_type_off_t = yes; then
33554   :
33555 else
33556
33557 cat >>confdefs.h <<_ACEOF
33558 #define off_t long int
33559 _ACEOF
33560
33561 fi
33562
33563
33564   { echo "$as_me:$LINENO: checking for intptr_t" >&5
33565 echo $ECHO_N "checking for intptr_t... $ECHO_C" >&6; }
33566 if test "${ac_cv_type_intptr_t+set}" = set; then
33567   echo $ECHO_N "(cached) $ECHO_C" >&6
33568 else
33569   cat >conftest.$ac_ext <<_ACEOF
33570 /* confdefs.h.  */
33571 _ACEOF
33572 cat confdefs.h >>conftest.$ac_ext
33573 cat >>conftest.$ac_ext <<_ACEOF
33574 /* end confdefs.h.  */
33575 $ac_includes_default
33576 typedef intptr_t ac__type_new_;
33577 int
33578 main ()
33579 {
33580 if ((ac__type_new_ *) 0)
33581   return 0;
33582 if (sizeof (ac__type_new_))
33583   return 0;
33584   ;
33585   return 0;
33586 }
33587 _ACEOF
33588 rm -f conftest.$ac_objext
33589 if { (ac_try="$ac_compile"
33590 case "(($ac_try" in
33591   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33592   *) ac_try_echo=$ac_try;;
33593 esac
33594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33595   (eval "$ac_compile") 2>conftest.er1
33596   ac_status=$?
33597   grep -v '^ *+' conftest.er1 >conftest.err
33598   rm -f conftest.er1
33599   cat conftest.err >&5
33600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33601   (exit $ac_status); } && {
33602          test -z "$ac_c_werror_flag" ||
33603          test ! -s conftest.err
33604        } && test -s conftest.$ac_objext; then
33605   ac_cv_type_intptr_t=yes
33606 else
33607   echo "$as_me: failed program was:" >&5
33608 sed 's/^/| /' conftest.$ac_ext >&5
33609
33610         ac_cv_type_intptr_t=no
33611 fi
33612
33613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33614 fi
33615 { echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
33616 echo "${ECHO_T}$ac_cv_type_intptr_t" >&6; }
33617 if test $ac_cv_type_intptr_t = yes; then
33618
33619 cat >>confdefs.h <<\_ACEOF
33620 #define HAVE_INTPTR_T 1
33621 _ACEOF
33622
33623 else
33624   for ac_type in 'int' 'long int' 'long long int'; do
33625        cat >conftest.$ac_ext <<_ACEOF
33626 /* confdefs.h.  */
33627 _ACEOF
33628 cat confdefs.h >>conftest.$ac_ext
33629 cat >>conftest.$ac_ext <<_ACEOF
33630 /* end confdefs.h.  */
33631 $ac_includes_default
33632 int
33633 main ()
33634 {
33635 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
33636 test_array [0] = 0
33637
33638   ;
33639   return 0;
33640 }
33641 _ACEOF
33642 rm -f conftest.$ac_objext
33643 if { (ac_try="$ac_compile"
33644 case "(($ac_try" in
33645   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33646   *) ac_try_echo=$ac_try;;
33647 esac
33648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33649   (eval "$ac_compile") 2>conftest.er1
33650   ac_status=$?
33651   grep -v '^ *+' conftest.er1 >conftest.err
33652   rm -f conftest.er1
33653   cat conftest.err >&5
33654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33655   (exit $ac_status); } && {
33656          test -z "$ac_c_werror_flag" ||
33657          test ! -s conftest.err
33658        } && test -s conftest.$ac_objext; then
33659
33660 cat >>confdefs.h <<_ACEOF
33661 #define intptr_t $ac_type
33662 _ACEOF
33663
33664           ac_type=
33665 else
33666   echo "$as_me: failed program was:" >&5
33667 sed 's/^/| /' conftest.$ac_ext >&5
33668
33669
33670 fi
33671
33672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33673        test -z "$ac_type" && break
33674      done
33675 fi
33676
33677
33678
33679   { echo "$as_me:$LINENO: checking for uintptr_t" >&5
33680 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; }
33681 if test "${ac_cv_type_uintptr_t+set}" = set; then
33682   echo $ECHO_N "(cached) $ECHO_C" >&6
33683 else
33684   cat >conftest.$ac_ext <<_ACEOF
33685 /* confdefs.h.  */
33686 _ACEOF
33687 cat confdefs.h >>conftest.$ac_ext
33688 cat >>conftest.$ac_ext <<_ACEOF
33689 /* end confdefs.h.  */
33690 $ac_includes_default
33691 typedef uintptr_t ac__type_new_;
33692 int
33693 main ()
33694 {
33695 if ((ac__type_new_ *) 0)
33696   return 0;
33697 if (sizeof (ac__type_new_))
33698   return 0;
33699   ;
33700   return 0;
33701 }
33702 _ACEOF
33703 rm -f conftest.$ac_objext
33704 if { (ac_try="$ac_compile"
33705 case "(($ac_try" in
33706   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33707   *) ac_try_echo=$ac_try;;
33708 esac
33709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33710   (eval "$ac_compile") 2>conftest.er1
33711   ac_status=$?
33712   grep -v '^ *+' conftest.er1 >conftest.err
33713   rm -f conftest.er1
33714   cat conftest.err >&5
33715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33716   (exit $ac_status); } && {
33717          test -z "$ac_c_werror_flag" ||
33718          test ! -s conftest.err
33719        } && test -s conftest.$ac_objext; then
33720   ac_cv_type_uintptr_t=yes
33721 else
33722   echo "$as_me: failed program was:" >&5
33723 sed 's/^/| /' conftest.$ac_ext >&5
33724
33725         ac_cv_type_uintptr_t=no
33726 fi
33727
33728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33729 fi
33730 { echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
33731 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; }
33732 if test $ac_cv_type_uintptr_t = yes; then
33733
33734 cat >>confdefs.h <<\_ACEOF
33735 #define HAVE_UINTPTR_T 1
33736 _ACEOF
33737
33738 else
33739   for ac_type in 'unsigned int' 'unsigned long int' \
33740         'unsigned long long int'; do
33741        cat >conftest.$ac_ext <<_ACEOF
33742 /* confdefs.h.  */
33743 _ACEOF
33744 cat confdefs.h >>conftest.$ac_ext
33745 cat >>conftest.$ac_ext <<_ACEOF
33746 /* end confdefs.h.  */
33747 $ac_includes_default
33748 int
33749 main ()
33750 {
33751 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
33752 test_array [0] = 0
33753
33754   ;
33755   return 0;
33756 }
33757 _ACEOF
33758 rm -f conftest.$ac_objext
33759 if { (ac_try="$ac_compile"
33760 case "(($ac_try" in
33761   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33762   *) ac_try_echo=$ac_try;;
33763 esac
33764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33765   (eval "$ac_compile") 2>conftest.er1
33766   ac_status=$?
33767   grep -v '^ *+' conftest.er1 >conftest.err
33768   rm -f conftest.er1
33769   cat conftest.err >&5
33770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33771   (exit $ac_status); } && {
33772          test -z "$ac_c_werror_flag" ||
33773          test ! -s conftest.err
33774        } && test -s conftest.$ac_objext; then
33775
33776 cat >>confdefs.h <<_ACEOF
33777 #define uintptr_t $ac_type
33778 _ACEOF
33779
33780           ac_type=
33781 else
33782   echo "$as_me: failed program was:" >&5
33783 sed 's/^/| /' conftest.$ac_ext >&5
33784
33785
33786 fi
33787
33788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33789        test -z "$ac_type" && break
33790      done
33791 fi
33792
33793
33794 { echo "$as_me:$LINENO: checking for ino_t" >&5
33795 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6; }
33796 if test "${ac_cv_type_ino_t+set}" = set; then
33797   echo $ECHO_N "(cached) $ECHO_C" >&6
33798 else
33799   cat >conftest.$ac_ext <<_ACEOF
33800 /* confdefs.h.  */
33801 _ACEOF
33802 cat confdefs.h >>conftest.$ac_ext
33803 cat >>conftest.$ac_ext <<_ACEOF
33804 /* end confdefs.h.  */
33805 $ac_includes_default
33806 typedef ino_t ac__type_new_;
33807 int
33808 main ()
33809 {
33810 if ((ac__type_new_ *) 0)
33811   return 0;
33812 if (sizeof (ac__type_new_))
33813   return 0;
33814   ;
33815   return 0;
33816 }
33817 _ACEOF
33818 rm -f conftest.$ac_objext
33819 if { (ac_try="$ac_compile"
33820 case "(($ac_try" in
33821   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33822   *) ac_try_echo=$ac_try;;
33823 esac
33824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33825   (eval "$ac_compile") 2>conftest.er1
33826   ac_status=$?
33827   grep -v '^ *+' conftest.er1 >conftest.err
33828   rm -f conftest.er1
33829   cat conftest.err >&5
33830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33831   (exit $ac_status); } && {
33832          test -z "$ac_c_werror_flag" ||
33833          test ! -s conftest.err
33834        } && test -s conftest.$ac_objext; then
33835   ac_cv_type_ino_t=yes
33836 else
33837   echo "$as_me: failed program was:" >&5
33838 sed 's/^/| /' conftest.$ac_ext >&5
33839
33840         ac_cv_type_ino_t=no
33841 fi
33842
33843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33844 fi
33845 { echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
33846 echo "${ECHO_T}$ac_cv_type_ino_t" >&6; }
33847 if test $ac_cv_type_ino_t = yes; then
33848   :
33849 else
33850
33851 cat >>confdefs.h <<_ACEOF
33852 #define ino_t unsigned long
33853 _ACEOF
33854
33855 fi
33856
33857 { echo "$as_me:$LINENO: checking for dev_t" >&5
33858 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6; }
33859 if test "${ac_cv_type_dev_t+set}" = set; then
33860   echo $ECHO_N "(cached) $ECHO_C" >&6
33861 else
33862   cat >conftest.$ac_ext <<_ACEOF
33863 /* confdefs.h.  */
33864 _ACEOF
33865 cat confdefs.h >>conftest.$ac_ext
33866 cat >>conftest.$ac_ext <<_ACEOF
33867 /* end confdefs.h.  */
33868 $ac_includes_default
33869 typedef dev_t ac__type_new_;
33870 int
33871 main ()
33872 {
33873 if ((ac__type_new_ *) 0)
33874   return 0;
33875 if (sizeof (ac__type_new_))
33876   return 0;
33877   ;
33878   return 0;
33879 }
33880 _ACEOF
33881 rm -f conftest.$ac_objext
33882 if { (ac_try="$ac_compile"
33883 case "(($ac_try" in
33884   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33885   *) ac_try_echo=$ac_try;;
33886 esac
33887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33888   (eval "$ac_compile") 2>conftest.er1
33889   ac_status=$?
33890   grep -v '^ *+' conftest.er1 >conftest.err
33891   rm -f conftest.er1
33892   cat conftest.err >&5
33893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33894   (exit $ac_status); } && {
33895          test -z "$ac_c_werror_flag" ||
33896          test ! -s conftest.err
33897        } && test -s conftest.$ac_objext; then
33898   ac_cv_type_dev_t=yes
33899 else
33900   echo "$as_me: failed program was:" >&5
33901 sed 's/^/| /' conftest.$ac_ext >&5
33902
33903         ac_cv_type_dev_t=no
33904 fi
33905
33906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33907 fi
33908 { echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
33909 echo "${ECHO_T}$ac_cv_type_dev_t" >&6; }
33910 if test $ac_cv_type_dev_t = yes; then
33911   :
33912 else
33913
33914 cat >>confdefs.h <<_ACEOF
33915 #define dev_t unsigned long
33916 _ACEOF
33917
33918 fi
33919
33920 { echo "$as_me:$LINENO: checking for daddr_t" >&5
33921 echo $ECHO_N "checking for daddr_t... $ECHO_C" >&6; }
33922 if test "${ac_cv_type_daddr_t+set}" = set; then
33923   echo $ECHO_N "(cached) $ECHO_C" >&6
33924 else
33925   cat >conftest.$ac_ext <<_ACEOF
33926 /* confdefs.h.  */
33927 _ACEOF
33928 cat confdefs.h >>conftest.$ac_ext
33929 cat >>conftest.$ac_ext <<_ACEOF
33930 /* end confdefs.h.  */
33931 $ac_includes_default
33932 typedef daddr_t ac__type_new_;
33933 int
33934 main ()
33935 {
33936 if ((ac__type_new_ *) 0)
33937   return 0;
33938 if (sizeof (ac__type_new_))
33939   return 0;
33940   ;
33941   return 0;
33942 }
33943 _ACEOF
33944 rm -f conftest.$ac_objext
33945 if { (ac_try="$ac_compile"
33946 case "(($ac_try" in
33947   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33948   *) ac_try_echo=$ac_try;;
33949 esac
33950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33951   (eval "$ac_compile") 2>conftest.er1
33952   ac_status=$?
33953   grep -v '^ *+' conftest.er1 >conftest.err
33954   rm -f conftest.er1
33955   cat conftest.err >&5
33956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33957   (exit $ac_status); } && {
33958          test -z "$ac_c_werror_flag" ||
33959          test ! -s conftest.err
33960        } && test -s conftest.$ac_objext; then
33961   ac_cv_type_daddr_t=yes
33962 else
33963   echo "$as_me: failed program was:" >&5
33964 sed 's/^/| /' conftest.$ac_ext >&5
33965
33966         ac_cv_type_daddr_t=no
33967 fi
33968
33969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33970 fi
33971 { echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
33972 echo "${ECHO_T}$ac_cv_type_daddr_t" >&6; }
33973 if test $ac_cv_type_daddr_t = yes; then
33974   :
33975 else
33976
33977 cat >>confdefs.h <<_ACEOF
33978 #define daddr_t long
33979 _ACEOF
33980
33981 fi
33982
33983 { echo "$as_me:$LINENO: checking for major_t" >&5
33984 echo $ECHO_N "checking for major_t... $ECHO_C" >&6; }
33985 if test "${ac_cv_type_major_t+set}" = set; then
33986   echo $ECHO_N "(cached) $ECHO_C" >&6
33987 else
33988   cat >conftest.$ac_ext <<_ACEOF
33989 /* confdefs.h.  */
33990 _ACEOF
33991 cat confdefs.h >>conftest.$ac_ext
33992 cat >>conftest.$ac_ext <<_ACEOF
33993 /* end confdefs.h.  */
33994 $ac_includes_default
33995 typedef major_t ac__type_new_;
33996 int
33997 main ()
33998 {
33999 if ((ac__type_new_ *) 0)
34000   return 0;
34001 if (sizeof (ac__type_new_))
34002   return 0;
34003   ;
34004   return 0;
34005 }
34006 _ACEOF
34007 rm -f conftest.$ac_objext
34008 if { (ac_try="$ac_compile"
34009 case "(($ac_try" in
34010   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34011   *) ac_try_echo=$ac_try;;
34012 esac
34013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34014   (eval "$ac_compile") 2>conftest.er1
34015   ac_status=$?
34016   grep -v '^ *+' conftest.er1 >conftest.err
34017   rm -f conftest.er1
34018   cat conftest.err >&5
34019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34020   (exit $ac_status); } && {
34021          test -z "$ac_c_werror_flag" ||
34022          test ! -s conftest.err
34023        } && test -s conftest.$ac_objext; then
34024   ac_cv_type_major_t=yes
34025 else
34026   echo "$as_me: failed program was:" >&5
34027 sed 's/^/| /' conftest.$ac_ext >&5
34028
34029         ac_cv_type_major_t=no
34030 fi
34031
34032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34033 fi
34034 { echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
34035 echo "${ECHO_T}$ac_cv_type_major_t" >&6; }
34036 if test $ac_cv_type_major_t = yes; then
34037   :
34038 else
34039
34040 cat >>confdefs.h <<_ACEOF
34041 #define major_t int
34042 _ACEOF
34043
34044 fi
34045
34046 { echo "$as_me:$LINENO: checking for minor_t" >&5
34047 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6; }
34048 if test "${ac_cv_type_minor_t+set}" = set; then
34049   echo $ECHO_N "(cached) $ECHO_C" >&6
34050 else
34051   cat >conftest.$ac_ext <<_ACEOF
34052 /* confdefs.h.  */
34053 _ACEOF
34054 cat confdefs.h >>conftest.$ac_ext
34055 cat >>conftest.$ac_ext <<_ACEOF
34056 /* end confdefs.h.  */
34057 $ac_includes_default
34058 typedef minor_t ac__type_new_;
34059 int
34060 main ()
34061 {
34062 if ((ac__type_new_ *) 0)
34063   return 0;
34064 if (sizeof (ac__type_new_))
34065   return 0;
34066   ;
34067   return 0;
34068 }
34069 _ACEOF
34070 rm -f conftest.$ac_objext
34071 if { (ac_try="$ac_compile"
34072 case "(($ac_try" in
34073   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34074   *) ac_try_echo=$ac_try;;
34075 esac
34076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34077   (eval "$ac_compile") 2>conftest.er1
34078   ac_status=$?
34079   grep -v '^ *+' conftest.er1 >conftest.err
34080   rm -f conftest.er1
34081   cat conftest.err >&5
34082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34083   (exit $ac_status); } && {
34084          test -z "$ac_c_werror_flag" ||
34085          test ! -s conftest.err
34086        } && test -s conftest.$ac_objext; then
34087   ac_cv_type_minor_t=yes
34088 else
34089   echo "$as_me: failed program was:" >&5
34090 sed 's/^/| /' conftest.$ac_ext >&5
34091
34092         ac_cv_type_minor_t=no
34093 fi
34094
34095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34096 fi
34097 { echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
34098 echo "${ECHO_T}$ac_cv_type_minor_t" >&6; }
34099 if test $ac_cv_type_minor_t = yes; then
34100   :
34101 else
34102
34103 cat >>confdefs.h <<_ACEOF
34104 #define minor_t int
34105 _ACEOF
34106
34107 fi
34108
34109 { echo "$as_me:$LINENO: checking for ssize_t" >&5
34110 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
34111 if test "${ac_cv_type_ssize_t+set}" = set; then
34112   echo $ECHO_N "(cached) $ECHO_C" >&6
34113 else
34114   cat >conftest.$ac_ext <<_ACEOF
34115 /* confdefs.h.  */
34116 _ACEOF
34117 cat confdefs.h >>conftest.$ac_ext
34118 cat >>conftest.$ac_ext <<_ACEOF
34119 /* end confdefs.h.  */
34120 $ac_includes_default
34121 typedef ssize_t ac__type_new_;
34122 int
34123 main ()
34124 {
34125 if ((ac__type_new_ *) 0)
34126   return 0;
34127 if (sizeof (ac__type_new_))
34128   return 0;
34129   ;
34130   return 0;
34131 }
34132 _ACEOF
34133 rm -f conftest.$ac_objext
34134 if { (ac_try="$ac_compile"
34135 case "(($ac_try" in
34136   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34137   *) ac_try_echo=$ac_try;;
34138 esac
34139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34140   (eval "$ac_compile") 2>conftest.er1
34141   ac_status=$?
34142   grep -v '^ *+' conftest.er1 >conftest.err
34143   rm -f conftest.er1
34144   cat conftest.err >&5
34145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34146   (exit $ac_status); } && {
34147          test -z "$ac_c_werror_flag" ||
34148          test ! -s conftest.err
34149        } && test -s conftest.$ac_objext; then
34150   ac_cv_type_ssize_t=yes
34151 else
34152   echo "$as_me: failed program was:" >&5
34153 sed 's/^/| /' conftest.$ac_ext >&5
34154
34155         ac_cv_type_ssize_t=no
34156 fi
34157
34158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34159 fi
34160 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
34161 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
34162 if test $ac_cv_type_ssize_t = yes; then
34163   :
34164 else
34165
34166 cat >>confdefs.h <<_ACEOF
34167 #define ssize_t int
34168 _ACEOF
34169
34170 fi
34171
34172 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
34173 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
34174 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
34175   echo $ECHO_N "(cached) $ECHO_C" >&6
34176 else
34177   cat >conftest.$ac_ext <<_ACEOF
34178 /* confdefs.h.  */
34179 _ACEOF
34180 cat confdefs.h >>conftest.$ac_ext
34181 cat >>conftest.$ac_ext <<_ACEOF
34182 /* end confdefs.h.  */
34183 $ac_includes_default
34184 int
34185 main ()
34186 {
34187 static struct stat ac_aggr;
34188 if (ac_aggr.st_blocks)
34189 return 0;
34190   ;
34191   return 0;
34192 }
34193 _ACEOF
34194 rm -f conftest.$ac_objext
34195 if { (ac_try="$ac_compile"
34196 case "(($ac_try" in
34197   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34198   *) ac_try_echo=$ac_try;;
34199 esac
34200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34201   (eval "$ac_compile") 2>conftest.er1
34202   ac_status=$?
34203   grep -v '^ *+' conftest.er1 >conftest.err
34204   rm -f conftest.er1
34205   cat conftest.err >&5
34206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34207   (exit $ac_status); } && {
34208          test -z "$ac_c_werror_flag" ||
34209          test ! -s conftest.err
34210        } && test -s conftest.$ac_objext; then
34211   ac_cv_member_struct_stat_st_blocks=yes
34212 else
34213   echo "$as_me: failed program was:" >&5
34214 sed 's/^/| /' conftest.$ac_ext >&5
34215
34216         cat >conftest.$ac_ext <<_ACEOF
34217 /* confdefs.h.  */
34218 _ACEOF
34219 cat confdefs.h >>conftest.$ac_ext
34220 cat >>conftest.$ac_ext <<_ACEOF
34221 /* end confdefs.h.  */
34222 $ac_includes_default
34223 int
34224 main ()
34225 {
34226 static struct stat ac_aggr;
34227 if (sizeof ac_aggr.st_blocks)
34228 return 0;
34229   ;
34230   return 0;
34231 }
34232 _ACEOF
34233 rm -f conftest.$ac_objext
34234 if { (ac_try="$ac_compile"
34235 case "(($ac_try" in
34236   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34237   *) ac_try_echo=$ac_try;;
34238 esac
34239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34240   (eval "$ac_compile") 2>conftest.er1
34241   ac_status=$?
34242   grep -v '^ *+' conftest.er1 >conftest.err
34243   rm -f conftest.er1
34244   cat conftest.err >&5
34245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34246   (exit $ac_status); } && {
34247          test -z "$ac_c_werror_flag" ||
34248          test ! -s conftest.err
34249        } && test -s conftest.$ac_objext; then
34250   ac_cv_member_struct_stat_st_blocks=yes
34251 else
34252   echo "$as_me: failed program was:" >&5
34253 sed 's/^/| /' conftest.$ac_ext >&5
34254
34255         ac_cv_member_struct_stat_st_blocks=no
34256 fi
34257
34258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34259 fi
34260
34261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34262 fi
34263 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
34264 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
34265 if test $ac_cv_member_struct_stat_st_blocks = yes; then
34266
34267 cat >>confdefs.h <<_ACEOF
34268 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
34269 _ACEOF
34270
34271
34272 cat >>confdefs.h <<\_ACEOF
34273 #define HAVE_ST_BLOCKS 1
34274 _ACEOF
34275
34276 else
34277   case " $LIBOBJS " in
34278   *" fileblocks.$ac_objext "* ) ;;
34279   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
34280  ;;
34281 esac
34282
34283 fi
34284
34285
34286 { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
34287 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
34288 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
34289   echo $ECHO_N "(cached) $ECHO_C" >&6
34290 else
34291   cat >conftest.$ac_ext <<_ACEOF
34292 /* confdefs.h.  */
34293 _ACEOF
34294 cat confdefs.h >>conftest.$ac_ext
34295 cat >>conftest.$ac_ext <<_ACEOF
34296 /* end confdefs.h.  */
34297 $ac_includes_default
34298 int
34299 main ()
34300 {
34301 static struct stat ac_aggr;
34302 if (ac_aggr.st_rdev)
34303 return 0;
34304   ;
34305   return 0;
34306 }
34307 _ACEOF
34308 rm -f conftest.$ac_objext
34309 if { (ac_try="$ac_compile"
34310 case "(($ac_try" in
34311   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34312   *) ac_try_echo=$ac_try;;
34313 esac
34314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34315   (eval "$ac_compile") 2>conftest.er1
34316   ac_status=$?
34317   grep -v '^ *+' conftest.er1 >conftest.err
34318   rm -f conftest.er1
34319   cat conftest.err >&5
34320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34321   (exit $ac_status); } && {
34322          test -z "$ac_c_werror_flag" ||
34323          test ! -s conftest.err
34324        } && test -s conftest.$ac_objext; then
34325   ac_cv_member_struct_stat_st_rdev=yes
34326 else
34327   echo "$as_me: failed program was:" >&5
34328 sed 's/^/| /' conftest.$ac_ext >&5
34329
34330         cat >conftest.$ac_ext <<_ACEOF
34331 /* confdefs.h.  */
34332 _ACEOF
34333 cat confdefs.h >>conftest.$ac_ext
34334 cat >>conftest.$ac_ext <<_ACEOF
34335 /* end confdefs.h.  */
34336 $ac_includes_default
34337 int
34338 main ()
34339 {
34340 static struct stat ac_aggr;
34341 if (sizeof ac_aggr.st_rdev)
34342 return 0;
34343   ;
34344   return 0;
34345 }
34346 _ACEOF
34347 rm -f conftest.$ac_objext
34348 if { (ac_try="$ac_compile"
34349 case "(($ac_try" in
34350   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34351   *) ac_try_echo=$ac_try;;
34352 esac
34353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34354   (eval "$ac_compile") 2>conftest.er1
34355   ac_status=$?
34356   grep -v '^ *+' conftest.er1 >conftest.err
34357   rm -f conftest.er1
34358   cat conftest.err >&5
34359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34360   (exit $ac_status); } && {
34361          test -z "$ac_c_werror_flag" ||
34362          test ! -s conftest.err
34363        } && test -s conftest.$ac_objext; then
34364   ac_cv_member_struct_stat_st_rdev=yes
34365 else
34366   echo "$as_me: failed program was:" >&5
34367 sed 's/^/| /' conftest.$ac_ext >&5
34368
34369         ac_cv_member_struct_stat_st_rdev=no
34370 fi
34371
34372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34373 fi
34374
34375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34376 fi
34377 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
34378 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
34379 if test $ac_cv_member_struct_stat_st_rdev = yes; then
34380
34381 cat >>confdefs.h <<_ACEOF
34382 #define HAVE_STRUCT_STAT_ST_RDEV 1
34383 _ACEOF
34384
34385
34386 cat >>confdefs.h <<\_ACEOF
34387 #define HAVE_ST_RDEV 1
34388 _ACEOF
34389
34390 fi
34391
34392
34393 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
34394 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
34395 if test "${ac_cv_struct_tm+set}" = set; then
34396   echo $ECHO_N "(cached) $ECHO_C" >&6
34397 else
34398   cat >conftest.$ac_ext <<_ACEOF
34399 /* confdefs.h.  */
34400 _ACEOF
34401 cat confdefs.h >>conftest.$ac_ext
34402 cat >>conftest.$ac_ext <<_ACEOF
34403 /* end confdefs.h.  */
34404 #include <sys/types.h>
34405 #include <time.h>
34406
34407 int
34408 main ()
34409 {
34410 struct tm tm;
34411                                      int *p = &tm.tm_sec;
34412                                      return !p;
34413   ;
34414   return 0;
34415 }
34416 _ACEOF
34417 rm -f conftest.$ac_objext
34418 if { (ac_try="$ac_compile"
34419 case "(($ac_try" in
34420   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34421   *) ac_try_echo=$ac_try;;
34422 esac
34423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34424   (eval "$ac_compile") 2>conftest.er1
34425   ac_status=$?
34426   grep -v '^ *+' conftest.er1 >conftest.err
34427   rm -f conftest.er1
34428   cat conftest.err >&5
34429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34430   (exit $ac_status); } && {
34431          test -z "$ac_c_werror_flag" ||
34432          test ! -s conftest.err
34433        } && test -s conftest.$ac_objext; then
34434   ac_cv_struct_tm=time.h
34435 else
34436   echo "$as_me: failed program was:" >&5
34437 sed 's/^/| /' conftest.$ac_ext >&5
34438
34439         ac_cv_struct_tm=sys/time.h
34440 fi
34441
34442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34443 fi
34444 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
34445 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
34446 if test $ac_cv_struct_tm = sys/time.h; then
34447
34448 cat >>confdefs.h <<\_ACEOF
34449 #define TM_IN_SYS_TIME 1
34450 _ACEOF
34451
34452 fi
34453
34454 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
34455 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
34456 if test "${ac_cv_c_const+set}" = set; then
34457   echo $ECHO_N "(cached) $ECHO_C" >&6
34458 else
34459   cat >conftest.$ac_ext <<_ACEOF
34460 /* confdefs.h.  */
34461 _ACEOF
34462 cat confdefs.h >>conftest.$ac_ext
34463 cat >>conftest.$ac_ext <<_ACEOF
34464 /* end confdefs.h.  */
34465
34466 int
34467 main ()
34468 {
34469 /* FIXME: Include the comments suggested by Paul. */
34470 #ifndef __cplusplus
34471   /* Ultrix mips cc rejects this.  */
34472   typedef int charset[2];
34473   const charset cs;
34474   /* SunOS 4.1.1 cc rejects this.  */
34475   char const *const *pcpcc;
34476   char **ppc;
34477   /* NEC SVR4.0.2 mips cc rejects this.  */
34478   struct point {int x, y;};
34479   static struct point const zero = {0,0};
34480   /* AIX XL C 1.02.0.0 rejects this.
34481      It does not let you subtract one const X* pointer from another in
34482      an arm of an if-expression whose if-part is not a constant
34483      expression */
34484   const char *g = "string";
34485   pcpcc = &g + (g ? g-g : 0);
34486   /* HPUX 7.0 cc rejects these. */
34487   ++pcpcc;
34488   ppc = (char**) pcpcc;
34489   pcpcc = (char const *const *) ppc;
34490   { /* SCO 3.2v4 cc rejects this.  */
34491     char *t;
34492     char const *s = 0 ? (char *) 0 : (char const *) 0;
34493
34494     *t++ = 0;
34495     if (s) return 0;
34496   }
34497   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
34498     int x[] = {25, 17};
34499     const int *foo = &x[0];
34500     ++foo;
34501   }
34502   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
34503     typedef const int *iptr;
34504     iptr p = 0;
34505     ++p;
34506   }
34507   { /* AIX XL C 1.02.0.0 rejects this saying
34508        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
34509     struct s { int j; const int *ap[3]; };
34510     struct s *b; b->j = 5;
34511   }
34512   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
34513     const int foo = 10;
34514     if (!foo) return 0;
34515   }
34516   return !cs[0] && !zero.x;
34517 #endif
34518
34519   ;
34520   return 0;
34521 }
34522 _ACEOF
34523 rm -f conftest.$ac_objext
34524 if { (ac_try="$ac_compile"
34525 case "(($ac_try" in
34526   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34527   *) ac_try_echo=$ac_try;;
34528 esac
34529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34530   (eval "$ac_compile") 2>conftest.er1
34531   ac_status=$?
34532   grep -v '^ *+' conftest.er1 >conftest.err
34533   rm -f conftest.er1
34534   cat conftest.err >&5
34535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34536   (exit $ac_status); } && {
34537          test -z "$ac_c_werror_flag" ||
34538          test ! -s conftest.err
34539        } && test -s conftest.$ac_objext; then
34540   ac_cv_c_const=yes
34541 else
34542   echo "$as_me: failed program was:" >&5
34543 sed 's/^/| /' conftest.$ac_ext >&5
34544
34545         ac_cv_c_const=no
34546 fi
34547
34548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34549 fi
34550 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
34551 echo "${ECHO_T}$ac_cv_c_const" >&6; }
34552 if test $ac_cv_c_const = no; then
34553
34554 cat >>confdefs.h <<\_ACEOF
34555 #define const
34556 _ACEOF
34557
34558 fi
34559
34560
34561 { echo "$as_me:$LINENO: checking for char" >&5
34562 echo $ECHO_N "checking for char... $ECHO_C" >&6; }
34563 if test "${ac_cv_type_char+set}" = set; then
34564   echo $ECHO_N "(cached) $ECHO_C" >&6
34565 else
34566   cat >conftest.$ac_ext <<_ACEOF
34567 /* confdefs.h.  */
34568 _ACEOF
34569 cat confdefs.h >>conftest.$ac_ext
34570 cat >>conftest.$ac_ext <<_ACEOF
34571 /* end confdefs.h.  */
34572 $ac_includes_default
34573 typedef char ac__type_new_;
34574 int
34575 main ()
34576 {
34577 if ((ac__type_new_ *) 0)
34578   return 0;
34579 if (sizeof (ac__type_new_))
34580   return 0;
34581   ;
34582   return 0;
34583 }
34584 _ACEOF
34585 rm -f conftest.$ac_objext
34586 if { (ac_try="$ac_compile"
34587 case "(($ac_try" in
34588   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34589   *) ac_try_echo=$ac_try;;
34590 esac
34591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34592   (eval "$ac_compile") 2>conftest.er1
34593   ac_status=$?
34594   grep -v '^ *+' conftest.er1 >conftest.err
34595   rm -f conftest.er1
34596   cat conftest.err >&5
34597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34598   (exit $ac_status); } && {
34599          test -z "$ac_c_werror_flag" ||
34600          test ! -s conftest.err
34601        } && test -s conftest.$ac_objext; then
34602   ac_cv_type_char=yes
34603 else
34604   echo "$as_me: failed program was:" >&5
34605 sed 's/^/| /' conftest.$ac_ext >&5
34606
34607         ac_cv_type_char=no
34608 fi
34609
34610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34611 fi
34612 { echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
34613 echo "${ECHO_T}$ac_cv_type_char" >&6; }
34614
34615 # The cast to long int works around a bug in the HP C Compiler
34616 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
34617 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
34618 # This bug is HP SR number 8606223364.
34619 { echo "$as_me:$LINENO: checking size of char" >&5
34620 echo $ECHO_N "checking size of char... $ECHO_C" >&6; }
34621 if test "${ac_cv_sizeof_char+set}" = set; then
34622   echo $ECHO_N "(cached) $ECHO_C" >&6
34623 else
34624   if test "$cross_compiling" = yes; then
34625   # Depending upon the size, compute the lo and hi bounds.
34626 cat >conftest.$ac_ext <<_ACEOF
34627 /* confdefs.h.  */
34628 _ACEOF
34629 cat confdefs.h >>conftest.$ac_ext
34630 cat >>conftest.$ac_ext <<_ACEOF
34631 /* end confdefs.h.  */
34632 $ac_includes_default
34633    typedef char ac__type_sizeof_;
34634 int
34635 main ()
34636 {
34637 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
34638 test_array [0] = 0
34639
34640   ;
34641   return 0;
34642 }
34643 _ACEOF
34644 rm -f conftest.$ac_objext
34645 if { (ac_try="$ac_compile"
34646 case "(($ac_try" in
34647   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34648   *) ac_try_echo=$ac_try;;
34649 esac
34650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34651   (eval "$ac_compile") 2>conftest.er1
34652   ac_status=$?
34653   grep -v '^ *+' conftest.er1 >conftest.err
34654   rm -f conftest.er1
34655   cat conftest.err >&5
34656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34657   (exit $ac_status); } && {
34658          test -z "$ac_c_werror_flag" ||
34659          test ! -s conftest.err
34660        } && test -s conftest.$ac_objext; then
34661   ac_lo=0 ac_mid=0
34662   while :; do
34663     cat >conftest.$ac_ext <<_ACEOF
34664 /* confdefs.h.  */
34665 _ACEOF
34666 cat confdefs.h >>conftest.$ac_ext
34667 cat >>conftest.$ac_ext <<_ACEOF
34668 /* end confdefs.h.  */
34669 $ac_includes_default
34670    typedef char ac__type_sizeof_;
34671 int
34672 main ()
34673 {
34674 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34675 test_array [0] = 0
34676
34677   ;
34678   return 0;
34679 }
34680 _ACEOF
34681 rm -f conftest.$ac_objext
34682 if { (ac_try="$ac_compile"
34683 case "(($ac_try" in
34684   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34685   *) ac_try_echo=$ac_try;;
34686 esac
34687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34688   (eval "$ac_compile") 2>conftest.er1
34689   ac_status=$?
34690   grep -v '^ *+' conftest.er1 >conftest.err
34691   rm -f conftest.er1
34692   cat conftest.err >&5
34693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34694   (exit $ac_status); } && {
34695          test -z "$ac_c_werror_flag" ||
34696          test ! -s conftest.err
34697        } && test -s conftest.$ac_objext; then
34698   ac_hi=$ac_mid; break
34699 else
34700   echo "$as_me: failed program was:" >&5
34701 sed 's/^/| /' conftest.$ac_ext >&5
34702
34703         ac_lo=`expr $ac_mid + 1`
34704                         if test $ac_lo -le $ac_mid; then
34705                           ac_lo= ac_hi=
34706                           break
34707                         fi
34708                         ac_mid=`expr 2 '*' $ac_mid + 1`
34709 fi
34710
34711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34712   done
34713 else
34714   echo "$as_me: failed program was:" >&5
34715 sed 's/^/| /' conftest.$ac_ext >&5
34716
34717         cat >conftest.$ac_ext <<_ACEOF
34718 /* confdefs.h.  */
34719 _ACEOF
34720 cat confdefs.h >>conftest.$ac_ext
34721 cat >>conftest.$ac_ext <<_ACEOF
34722 /* end confdefs.h.  */
34723 $ac_includes_default
34724    typedef char ac__type_sizeof_;
34725 int
34726 main ()
34727 {
34728 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
34729 test_array [0] = 0
34730
34731   ;
34732   return 0;
34733 }
34734 _ACEOF
34735 rm -f conftest.$ac_objext
34736 if { (ac_try="$ac_compile"
34737 case "(($ac_try" in
34738   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34739   *) ac_try_echo=$ac_try;;
34740 esac
34741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34742   (eval "$ac_compile") 2>conftest.er1
34743   ac_status=$?
34744   grep -v '^ *+' conftest.er1 >conftest.err
34745   rm -f conftest.er1
34746   cat conftest.err >&5
34747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34748   (exit $ac_status); } && {
34749          test -z "$ac_c_werror_flag" ||
34750          test ! -s conftest.err
34751        } && test -s conftest.$ac_objext; then
34752   ac_hi=-1 ac_mid=-1
34753   while :; do
34754     cat >conftest.$ac_ext <<_ACEOF
34755 /* confdefs.h.  */
34756 _ACEOF
34757 cat confdefs.h >>conftest.$ac_ext
34758 cat >>conftest.$ac_ext <<_ACEOF
34759 /* end confdefs.h.  */
34760 $ac_includes_default
34761    typedef char ac__type_sizeof_;
34762 int
34763 main ()
34764 {
34765 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
34766 test_array [0] = 0
34767
34768   ;
34769   return 0;
34770 }
34771 _ACEOF
34772 rm -f conftest.$ac_objext
34773 if { (ac_try="$ac_compile"
34774 case "(($ac_try" in
34775   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34776   *) ac_try_echo=$ac_try;;
34777 esac
34778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34779   (eval "$ac_compile") 2>conftest.er1
34780   ac_status=$?
34781   grep -v '^ *+' conftest.er1 >conftest.err
34782   rm -f conftest.er1
34783   cat conftest.err >&5
34784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34785   (exit $ac_status); } && {
34786          test -z "$ac_c_werror_flag" ||
34787          test ! -s conftest.err
34788        } && test -s conftest.$ac_objext; then
34789   ac_lo=$ac_mid; break
34790 else
34791   echo "$as_me: failed program was:" >&5
34792 sed 's/^/| /' conftest.$ac_ext >&5
34793
34794         ac_hi=`expr '(' $ac_mid ')' - 1`
34795                         if test $ac_mid -le $ac_hi; then
34796                           ac_lo= ac_hi=
34797                           break
34798                         fi
34799                         ac_mid=`expr 2 '*' $ac_mid`
34800 fi
34801
34802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34803   done
34804 else
34805   echo "$as_me: failed program was:" >&5
34806 sed 's/^/| /' conftest.$ac_ext >&5
34807
34808         ac_lo= ac_hi=
34809 fi
34810
34811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34812 fi
34813
34814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34815 # Binary search between lo and hi bounds.
34816 while test "x$ac_lo" != "x$ac_hi"; do
34817   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
34818   cat >conftest.$ac_ext <<_ACEOF
34819 /* confdefs.h.  */
34820 _ACEOF
34821 cat confdefs.h >>conftest.$ac_ext
34822 cat >>conftest.$ac_ext <<_ACEOF
34823 /* end confdefs.h.  */
34824 $ac_includes_default
34825    typedef char ac__type_sizeof_;
34826 int
34827 main ()
34828 {
34829 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34830 test_array [0] = 0
34831
34832   ;
34833   return 0;
34834 }
34835 _ACEOF
34836 rm -f conftest.$ac_objext
34837 if { (ac_try="$ac_compile"
34838 case "(($ac_try" in
34839   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34840   *) ac_try_echo=$ac_try;;
34841 esac
34842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34843   (eval "$ac_compile") 2>conftest.er1
34844   ac_status=$?
34845   grep -v '^ *+' conftest.er1 >conftest.err
34846   rm -f conftest.er1
34847   cat conftest.err >&5
34848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34849   (exit $ac_status); } && {
34850          test -z "$ac_c_werror_flag" ||
34851          test ! -s conftest.err
34852        } && test -s conftest.$ac_objext; then
34853   ac_hi=$ac_mid
34854 else
34855   echo "$as_me: failed program was:" >&5
34856 sed 's/^/| /' conftest.$ac_ext >&5
34857
34858         ac_lo=`expr '(' $ac_mid ')' + 1`
34859 fi
34860
34861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34862 done
34863 case $ac_lo in
34864 ?*) ac_cv_sizeof_char=$ac_lo;;
34865 '') if test "$ac_cv_type_char" = yes; then
34866      { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
34867 See \`config.log' for more details." >&5
34868 echo "$as_me: error: cannot compute sizeof (char)
34869 See \`config.log' for more details." >&2;}
34870    { (exit 77); exit 77; }; }
34871    else
34872      ac_cv_sizeof_char=0
34873    fi ;;
34874 esac
34875 else
34876   cat >conftest.$ac_ext <<_ACEOF
34877 /* confdefs.h.  */
34878 _ACEOF
34879 cat confdefs.h >>conftest.$ac_ext
34880 cat >>conftest.$ac_ext <<_ACEOF
34881 /* end confdefs.h.  */
34882 $ac_includes_default
34883    typedef char ac__type_sizeof_;
34884 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
34885 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
34886 #include <stdio.h>
34887 #include <stdlib.h>
34888 int
34889 main ()
34890 {
34891
34892   FILE *f = fopen ("conftest.val", "w");
34893   if (! f)
34894     return 1;
34895   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
34896     {
34897       long int i = longval ();
34898       if (i != ((long int) (sizeof (ac__type_sizeof_))))
34899         return 1;
34900       fprintf (f, "%ld\n", i);
34901     }
34902   else
34903     {
34904       unsigned long int i = ulongval ();
34905       if (i != ((long int) (sizeof (ac__type_sizeof_))))
34906         return 1;
34907       fprintf (f, "%lu\n", i);
34908     }
34909   return ferror (f) || fclose (f) != 0;
34910
34911   ;
34912   return 0;
34913 }
34914 _ACEOF
34915 rm -f conftest$ac_exeext
34916 if { (ac_try="$ac_link"
34917 case "(($ac_try" in
34918   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34919   *) ac_try_echo=$ac_try;;
34920 esac
34921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34922   (eval "$ac_link") 2>&5
34923   ac_status=$?
34924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34925   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34926   { (case "(($ac_try" in
34927   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34928   *) ac_try_echo=$ac_try;;
34929 esac
34930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34931   (eval "$ac_try") 2>&5
34932   ac_status=$?
34933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34934   (exit $ac_status); }; }; then
34935   ac_cv_sizeof_char=`cat conftest.val`
34936 else
34937   echo "$as_me: program exited with status $ac_status" >&5
34938 echo "$as_me: failed program was:" >&5
34939 sed 's/^/| /' conftest.$ac_ext >&5
34940
34941 ( exit $ac_status )
34942 if test "$ac_cv_type_char" = yes; then
34943      { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
34944 See \`config.log' for more details." >&5
34945 echo "$as_me: error: cannot compute sizeof (char)
34946 See \`config.log' for more details." >&2;}
34947    { (exit 77); exit 77; }; }
34948    else
34949      ac_cv_sizeof_char=0
34950    fi
34951 fi
34952 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34953 fi
34954 rm -f conftest.val
34955 fi
34956 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
34957 echo "${ECHO_T}$ac_cv_sizeof_char" >&6; }
34958
34959
34960
34961 cat >>confdefs.h <<_ACEOF
34962 #define SIZEOF_CHAR $ac_cv_sizeof_char
34963 _ACEOF
34964
34965
34966 { echo "$as_me:$LINENO: checking for short int" >&5
34967 echo $ECHO_N "checking for short int... $ECHO_C" >&6; }
34968 if test "${ac_cv_type_short_int+set}" = set; then
34969   echo $ECHO_N "(cached) $ECHO_C" >&6
34970 else
34971   cat >conftest.$ac_ext <<_ACEOF
34972 /* confdefs.h.  */
34973 _ACEOF
34974 cat confdefs.h >>conftest.$ac_ext
34975 cat >>conftest.$ac_ext <<_ACEOF
34976 /* end confdefs.h.  */
34977 $ac_includes_default
34978 typedef short int ac__type_new_;
34979 int
34980 main ()
34981 {
34982 if ((ac__type_new_ *) 0)
34983   return 0;
34984 if (sizeof (ac__type_new_))
34985   return 0;
34986   ;
34987   return 0;
34988 }
34989 _ACEOF
34990 rm -f conftest.$ac_objext
34991 if { (ac_try="$ac_compile"
34992 case "(($ac_try" in
34993   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34994   *) ac_try_echo=$ac_try;;
34995 esac
34996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34997   (eval "$ac_compile") 2>conftest.er1
34998   ac_status=$?
34999   grep -v '^ *+' conftest.er1 >conftest.err
35000   rm -f conftest.er1
35001   cat conftest.err >&5
35002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35003   (exit $ac_status); } && {
35004          test -z "$ac_c_werror_flag" ||
35005          test ! -s conftest.err
35006        } && test -s conftest.$ac_objext; then
35007   ac_cv_type_short_int=yes
35008 else
35009   echo "$as_me: failed program was:" >&5
35010 sed 's/^/| /' conftest.$ac_ext >&5
35011
35012         ac_cv_type_short_int=no
35013 fi
35014
35015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35016 fi
35017 { echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
35018 echo "${ECHO_T}$ac_cv_type_short_int" >&6; }
35019
35020 # The cast to long int works around a bug in the HP C Compiler
35021 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
35022 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
35023 # This bug is HP SR number 8606223364.
35024 { echo "$as_me:$LINENO: checking size of short int" >&5
35025 echo $ECHO_N "checking size of short int... $ECHO_C" >&6; }
35026 if test "${ac_cv_sizeof_short_int+set}" = set; then
35027   echo $ECHO_N "(cached) $ECHO_C" >&6
35028 else
35029   if test "$cross_compiling" = yes; then
35030   # Depending upon the size, compute the lo and hi bounds.
35031 cat >conftest.$ac_ext <<_ACEOF
35032 /* confdefs.h.  */
35033 _ACEOF
35034 cat confdefs.h >>conftest.$ac_ext
35035 cat >>conftest.$ac_ext <<_ACEOF
35036 /* end confdefs.h.  */
35037 $ac_includes_default
35038    typedef short int ac__type_sizeof_;
35039 int
35040 main ()
35041 {
35042 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
35043 test_array [0] = 0
35044
35045   ;
35046   return 0;
35047 }
35048 _ACEOF
35049 rm -f conftest.$ac_objext
35050 if { (ac_try="$ac_compile"
35051 case "(($ac_try" in
35052   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35053   *) ac_try_echo=$ac_try;;
35054 esac
35055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35056   (eval "$ac_compile") 2>conftest.er1
35057   ac_status=$?
35058   grep -v '^ *+' conftest.er1 >conftest.err
35059   rm -f conftest.er1
35060   cat conftest.err >&5
35061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35062   (exit $ac_status); } && {
35063          test -z "$ac_c_werror_flag" ||
35064          test ! -s conftest.err
35065        } && test -s conftest.$ac_objext; then
35066   ac_lo=0 ac_mid=0
35067   while :; do
35068     cat >conftest.$ac_ext <<_ACEOF
35069 /* confdefs.h.  */
35070 _ACEOF
35071 cat confdefs.h >>conftest.$ac_ext
35072 cat >>conftest.$ac_ext <<_ACEOF
35073 /* end confdefs.h.  */
35074 $ac_includes_default
35075    typedef short int ac__type_sizeof_;
35076 int
35077 main ()
35078 {
35079 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35080 test_array [0] = 0
35081
35082   ;
35083   return 0;
35084 }
35085 _ACEOF
35086 rm -f conftest.$ac_objext
35087 if { (ac_try="$ac_compile"
35088 case "(($ac_try" in
35089   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35090   *) ac_try_echo=$ac_try;;
35091 esac
35092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35093   (eval "$ac_compile") 2>conftest.er1
35094   ac_status=$?
35095   grep -v '^ *+' conftest.er1 >conftest.err
35096   rm -f conftest.er1
35097   cat conftest.err >&5
35098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35099   (exit $ac_status); } && {
35100          test -z "$ac_c_werror_flag" ||
35101          test ! -s conftest.err
35102        } && test -s conftest.$ac_objext; then
35103   ac_hi=$ac_mid; break
35104 else
35105   echo "$as_me: failed program was:" >&5
35106 sed 's/^/| /' conftest.$ac_ext >&5
35107
35108         ac_lo=`expr $ac_mid + 1`
35109                         if test $ac_lo -le $ac_mid; then
35110                           ac_lo= ac_hi=
35111                           break
35112                         fi
35113                         ac_mid=`expr 2 '*' $ac_mid + 1`
35114 fi
35115
35116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35117   done
35118 else
35119   echo "$as_me: failed program was:" >&5
35120 sed 's/^/| /' conftest.$ac_ext >&5
35121
35122         cat >conftest.$ac_ext <<_ACEOF
35123 /* confdefs.h.  */
35124 _ACEOF
35125 cat confdefs.h >>conftest.$ac_ext
35126 cat >>conftest.$ac_ext <<_ACEOF
35127 /* end confdefs.h.  */
35128 $ac_includes_default
35129    typedef short int ac__type_sizeof_;
35130 int
35131 main ()
35132 {
35133 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
35134 test_array [0] = 0
35135
35136   ;
35137   return 0;
35138 }
35139 _ACEOF
35140 rm -f conftest.$ac_objext
35141 if { (ac_try="$ac_compile"
35142 case "(($ac_try" in
35143   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35144   *) ac_try_echo=$ac_try;;
35145 esac
35146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35147   (eval "$ac_compile") 2>conftest.er1
35148   ac_status=$?
35149   grep -v '^ *+' conftest.er1 >conftest.err
35150   rm -f conftest.er1
35151   cat conftest.err >&5
35152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35153   (exit $ac_status); } && {
35154          test -z "$ac_c_werror_flag" ||
35155          test ! -s conftest.err
35156        } && test -s conftest.$ac_objext; then
35157   ac_hi=-1 ac_mid=-1
35158   while :; do
35159     cat >conftest.$ac_ext <<_ACEOF
35160 /* confdefs.h.  */
35161 _ACEOF
35162 cat confdefs.h >>conftest.$ac_ext
35163 cat >>conftest.$ac_ext <<_ACEOF
35164 /* end confdefs.h.  */
35165 $ac_includes_default
35166    typedef short int ac__type_sizeof_;
35167 int
35168 main ()
35169 {
35170 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
35171 test_array [0] = 0
35172
35173   ;
35174   return 0;
35175 }
35176 _ACEOF
35177 rm -f conftest.$ac_objext
35178 if { (ac_try="$ac_compile"
35179 case "(($ac_try" in
35180   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35181   *) ac_try_echo=$ac_try;;
35182 esac
35183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35184   (eval "$ac_compile") 2>conftest.er1
35185   ac_status=$?
35186   grep -v '^ *+' conftest.er1 >conftest.err
35187   rm -f conftest.er1
35188   cat conftest.err >&5
35189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35190   (exit $ac_status); } && {
35191          test -z "$ac_c_werror_flag" ||
35192          test ! -s conftest.err
35193        } && test -s conftest.$ac_objext; then
35194   ac_lo=$ac_mid; break
35195 else
35196   echo "$as_me: failed program was:" >&5
35197 sed 's/^/| /' conftest.$ac_ext >&5
35198
35199         ac_hi=`expr '(' $ac_mid ')' - 1`
35200                         if test $ac_mid -le $ac_hi; then
35201                           ac_lo= ac_hi=
35202                           break
35203                         fi
35204                         ac_mid=`expr 2 '*' $ac_mid`
35205 fi
35206
35207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35208   done
35209 else
35210   echo "$as_me: failed program was:" >&5
35211 sed 's/^/| /' conftest.$ac_ext >&5
35212
35213         ac_lo= ac_hi=
35214 fi
35215
35216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35217 fi
35218
35219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35220 # Binary search between lo and hi bounds.
35221 while test "x$ac_lo" != "x$ac_hi"; do
35222   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
35223   cat >conftest.$ac_ext <<_ACEOF
35224 /* confdefs.h.  */
35225 _ACEOF
35226 cat confdefs.h >>conftest.$ac_ext
35227 cat >>conftest.$ac_ext <<_ACEOF
35228 /* end confdefs.h.  */
35229 $ac_includes_default
35230    typedef short int ac__type_sizeof_;
35231 int
35232 main ()
35233 {
35234 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35235 test_array [0] = 0
35236
35237   ;
35238   return 0;
35239 }
35240 _ACEOF
35241 rm -f conftest.$ac_objext
35242 if { (ac_try="$ac_compile"
35243 case "(($ac_try" in
35244   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35245   *) ac_try_echo=$ac_try;;
35246 esac
35247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35248   (eval "$ac_compile") 2>conftest.er1
35249   ac_status=$?
35250   grep -v '^ *+' conftest.er1 >conftest.err
35251   rm -f conftest.er1
35252   cat conftest.err >&5
35253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35254   (exit $ac_status); } && {
35255          test -z "$ac_c_werror_flag" ||
35256          test ! -s conftest.err
35257        } && test -s conftest.$ac_objext; then
35258   ac_hi=$ac_mid
35259 else
35260   echo "$as_me: failed program was:" >&5
35261 sed 's/^/| /' conftest.$ac_ext >&5
35262
35263         ac_lo=`expr '(' $ac_mid ')' + 1`
35264 fi
35265
35266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35267 done
35268 case $ac_lo in
35269 ?*) ac_cv_sizeof_short_int=$ac_lo;;
35270 '') if test "$ac_cv_type_short_int" = yes; then
35271      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
35272 See \`config.log' for more details." >&5
35273 echo "$as_me: error: cannot compute sizeof (short int)
35274 See \`config.log' for more details." >&2;}
35275    { (exit 77); exit 77; }; }
35276    else
35277      ac_cv_sizeof_short_int=0
35278    fi ;;
35279 esac
35280 else
35281   cat >conftest.$ac_ext <<_ACEOF
35282 /* confdefs.h.  */
35283 _ACEOF
35284 cat confdefs.h >>conftest.$ac_ext
35285 cat >>conftest.$ac_ext <<_ACEOF
35286 /* end confdefs.h.  */
35287 $ac_includes_default
35288    typedef short int ac__type_sizeof_;
35289 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
35290 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
35291 #include <stdio.h>
35292 #include <stdlib.h>
35293 int
35294 main ()
35295 {
35296
35297   FILE *f = fopen ("conftest.val", "w");
35298   if (! f)
35299     return 1;
35300   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
35301     {
35302       long int i = longval ();
35303       if (i != ((long int) (sizeof (ac__type_sizeof_))))
35304         return 1;
35305       fprintf (f, "%ld\n", i);
35306     }
35307   else
35308     {
35309       unsigned long int i = ulongval ();
35310       if (i != ((long int) (sizeof (ac__type_sizeof_))))
35311         return 1;
35312       fprintf (f, "%lu\n", i);
35313     }
35314   return ferror (f) || fclose (f) != 0;
35315
35316   ;
35317   return 0;
35318 }
35319 _ACEOF
35320 rm -f conftest$ac_exeext
35321 if { (ac_try="$ac_link"
35322 case "(($ac_try" in
35323   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35324   *) ac_try_echo=$ac_try;;
35325 esac
35326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35327   (eval "$ac_link") 2>&5
35328   ac_status=$?
35329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35330   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35331   { (case "(($ac_try" in
35332   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35333   *) ac_try_echo=$ac_try;;
35334 esac
35335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35336   (eval "$ac_try") 2>&5
35337   ac_status=$?
35338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35339   (exit $ac_status); }; }; then
35340   ac_cv_sizeof_short_int=`cat conftest.val`
35341 else
35342   echo "$as_me: program exited with status $ac_status" >&5
35343 echo "$as_me: failed program was:" >&5
35344 sed 's/^/| /' conftest.$ac_ext >&5
35345
35346 ( exit $ac_status )
35347 if test "$ac_cv_type_short_int" = yes; then
35348      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
35349 See \`config.log' for more details." >&5
35350 echo "$as_me: error: cannot compute sizeof (short int)
35351 See \`config.log' for more details." >&2;}
35352    { (exit 77); exit 77; }; }
35353    else
35354      ac_cv_sizeof_short_int=0
35355    fi
35356 fi
35357 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35358 fi
35359 rm -f conftest.val
35360 fi
35361 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
35362 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6; }
35363
35364
35365
35366 cat >>confdefs.h <<_ACEOF
35367 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
35368 _ACEOF
35369
35370
35371 { echo "$as_me:$LINENO: checking for int" >&5
35372 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
35373 if test "${ac_cv_type_int+set}" = set; then
35374   echo $ECHO_N "(cached) $ECHO_C" >&6
35375 else
35376   cat >conftest.$ac_ext <<_ACEOF
35377 /* confdefs.h.  */
35378 _ACEOF
35379 cat confdefs.h >>conftest.$ac_ext
35380 cat >>conftest.$ac_ext <<_ACEOF
35381 /* end confdefs.h.  */
35382 $ac_includes_default
35383 typedef int ac__type_new_;
35384 int
35385 main ()
35386 {
35387 if ((ac__type_new_ *) 0)
35388   return 0;
35389 if (sizeof (ac__type_new_))
35390   return 0;
35391   ;
35392   return 0;
35393 }
35394 _ACEOF
35395 rm -f conftest.$ac_objext
35396 if { (ac_try="$ac_compile"
35397 case "(($ac_try" in
35398   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35399   *) ac_try_echo=$ac_try;;
35400 esac
35401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35402   (eval "$ac_compile") 2>conftest.er1
35403   ac_status=$?
35404   grep -v '^ *+' conftest.er1 >conftest.err
35405   rm -f conftest.er1
35406   cat conftest.err >&5
35407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35408   (exit $ac_status); } && {
35409          test -z "$ac_c_werror_flag" ||
35410          test ! -s conftest.err
35411        } && test -s conftest.$ac_objext; then
35412   ac_cv_type_int=yes
35413 else
35414   echo "$as_me: failed program was:" >&5
35415 sed 's/^/| /' conftest.$ac_ext >&5
35416
35417         ac_cv_type_int=no
35418 fi
35419
35420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35421 fi
35422 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
35423 echo "${ECHO_T}$ac_cv_type_int" >&6; }
35424
35425 # The cast to long int works around a bug in the HP C Compiler
35426 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
35427 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
35428 # This bug is HP SR number 8606223364.
35429 { echo "$as_me:$LINENO: checking size of int" >&5
35430 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
35431 if test "${ac_cv_sizeof_int+set}" = set; then
35432   echo $ECHO_N "(cached) $ECHO_C" >&6
35433 else
35434   if test "$cross_compiling" = yes; then
35435   # Depending upon the size, compute the lo and hi bounds.
35436 cat >conftest.$ac_ext <<_ACEOF
35437 /* confdefs.h.  */
35438 _ACEOF
35439 cat confdefs.h >>conftest.$ac_ext
35440 cat >>conftest.$ac_ext <<_ACEOF
35441 /* end confdefs.h.  */
35442 $ac_includes_default
35443    typedef int ac__type_sizeof_;
35444 int
35445 main ()
35446 {
35447 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
35448 test_array [0] = 0
35449
35450   ;
35451   return 0;
35452 }
35453 _ACEOF
35454 rm -f conftest.$ac_objext
35455 if { (ac_try="$ac_compile"
35456 case "(($ac_try" in
35457   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35458   *) ac_try_echo=$ac_try;;
35459 esac
35460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35461   (eval "$ac_compile") 2>conftest.er1
35462   ac_status=$?
35463   grep -v '^ *+' conftest.er1 >conftest.err
35464   rm -f conftest.er1
35465   cat conftest.err >&5
35466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35467   (exit $ac_status); } && {
35468          test -z "$ac_c_werror_flag" ||
35469          test ! -s conftest.err
35470        } && test -s conftest.$ac_objext; then
35471   ac_lo=0 ac_mid=0
35472   while :; do
35473     cat >conftest.$ac_ext <<_ACEOF
35474 /* confdefs.h.  */
35475 _ACEOF
35476 cat confdefs.h >>conftest.$ac_ext
35477 cat >>conftest.$ac_ext <<_ACEOF
35478 /* end confdefs.h.  */
35479 $ac_includes_default
35480    typedef int ac__type_sizeof_;
35481 int
35482 main ()
35483 {
35484 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35485 test_array [0] = 0
35486
35487   ;
35488   return 0;
35489 }
35490 _ACEOF
35491 rm -f conftest.$ac_objext
35492 if { (ac_try="$ac_compile"
35493 case "(($ac_try" in
35494   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35495   *) ac_try_echo=$ac_try;;
35496 esac
35497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35498   (eval "$ac_compile") 2>conftest.er1
35499   ac_status=$?
35500   grep -v '^ *+' conftest.er1 >conftest.err
35501   rm -f conftest.er1
35502   cat conftest.err >&5
35503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35504   (exit $ac_status); } && {
35505          test -z "$ac_c_werror_flag" ||
35506          test ! -s conftest.err
35507        } && test -s conftest.$ac_objext; then
35508   ac_hi=$ac_mid; break
35509 else
35510   echo "$as_me: failed program was:" >&5
35511 sed 's/^/| /' conftest.$ac_ext >&5
35512
35513         ac_lo=`expr $ac_mid + 1`
35514                         if test $ac_lo -le $ac_mid; then
35515                           ac_lo= ac_hi=
35516                           break
35517                         fi
35518                         ac_mid=`expr 2 '*' $ac_mid + 1`
35519 fi
35520
35521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35522   done
35523 else
35524   echo "$as_me: failed program was:" >&5
35525 sed 's/^/| /' conftest.$ac_ext >&5
35526
35527         cat >conftest.$ac_ext <<_ACEOF
35528 /* confdefs.h.  */
35529 _ACEOF
35530 cat confdefs.h >>conftest.$ac_ext
35531 cat >>conftest.$ac_ext <<_ACEOF
35532 /* end confdefs.h.  */
35533 $ac_includes_default
35534    typedef int ac__type_sizeof_;
35535 int
35536 main ()
35537 {
35538 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
35539 test_array [0] = 0
35540
35541   ;
35542   return 0;
35543 }
35544 _ACEOF
35545 rm -f conftest.$ac_objext
35546 if { (ac_try="$ac_compile"
35547 case "(($ac_try" in
35548   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35549   *) ac_try_echo=$ac_try;;
35550 esac
35551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35552   (eval "$ac_compile") 2>conftest.er1
35553   ac_status=$?
35554   grep -v '^ *+' conftest.er1 >conftest.err
35555   rm -f conftest.er1
35556   cat conftest.err >&5
35557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35558   (exit $ac_status); } && {
35559          test -z "$ac_c_werror_flag" ||
35560          test ! -s conftest.err
35561        } && test -s conftest.$ac_objext; then
35562   ac_hi=-1 ac_mid=-1
35563   while :; do
35564     cat >conftest.$ac_ext <<_ACEOF
35565 /* confdefs.h.  */
35566 _ACEOF
35567 cat confdefs.h >>conftest.$ac_ext
35568 cat >>conftest.$ac_ext <<_ACEOF
35569 /* end confdefs.h.  */
35570 $ac_includes_default
35571    typedef int ac__type_sizeof_;
35572 int
35573 main ()
35574 {
35575 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
35576 test_array [0] = 0
35577
35578   ;
35579   return 0;
35580 }
35581 _ACEOF
35582 rm -f conftest.$ac_objext
35583 if { (ac_try="$ac_compile"
35584 case "(($ac_try" in
35585   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35586   *) ac_try_echo=$ac_try;;
35587 esac
35588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35589   (eval "$ac_compile") 2>conftest.er1
35590   ac_status=$?
35591   grep -v '^ *+' conftest.er1 >conftest.err
35592   rm -f conftest.er1
35593   cat conftest.err >&5
35594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35595   (exit $ac_status); } && {
35596          test -z "$ac_c_werror_flag" ||
35597          test ! -s conftest.err
35598        } && test -s conftest.$ac_objext; then
35599   ac_lo=$ac_mid; break
35600 else
35601   echo "$as_me: failed program was:" >&5
35602 sed 's/^/| /' conftest.$ac_ext >&5
35603
35604         ac_hi=`expr '(' $ac_mid ')' - 1`
35605                         if test $ac_mid -le $ac_hi; then
35606                           ac_lo= ac_hi=
35607                           break
35608                         fi
35609                         ac_mid=`expr 2 '*' $ac_mid`
35610 fi
35611
35612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35613   done
35614 else
35615   echo "$as_me: failed program was:" >&5
35616 sed 's/^/| /' conftest.$ac_ext >&5
35617
35618         ac_lo= ac_hi=
35619 fi
35620
35621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35622 fi
35623
35624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35625 # Binary search between lo and hi bounds.
35626 while test "x$ac_lo" != "x$ac_hi"; do
35627   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
35628   cat >conftest.$ac_ext <<_ACEOF
35629 /* confdefs.h.  */
35630 _ACEOF
35631 cat confdefs.h >>conftest.$ac_ext
35632 cat >>conftest.$ac_ext <<_ACEOF
35633 /* end confdefs.h.  */
35634 $ac_includes_default
35635    typedef int ac__type_sizeof_;
35636 int
35637 main ()
35638 {
35639 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35640 test_array [0] = 0
35641
35642   ;
35643   return 0;
35644 }
35645 _ACEOF
35646 rm -f conftest.$ac_objext
35647 if { (ac_try="$ac_compile"
35648 case "(($ac_try" in
35649   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35650   *) ac_try_echo=$ac_try;;
35651 esac
35652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35653   (eval "$ac_compile") 2>conftest.er1
35654   ac_status=$?
35655   grep -v '^ *+' conftest.er1 >conftest.err
35656   rm -f conftest.er1
35657   cat conftest.err >&5
35658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35659   (exit $ac_status); } && {
35660          test -z "$ac_c_werror_flag" ||
35661          test ! -s conftest.err
35662        } && test -s conftest.$ac_objext; then
35663   ac_hi=$ac_mid
35664 else
35665   echo "$as_me: failed program was:" >&5
35666 sed 's/^/| /' conftest.$ac_ext >&5
35667
35668         ac_lo=`expr '(' $ac_mid ')' + 1`
35669 fi
35670
35671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35672 done
35673 case $ac_lo in
35674 ?*) ac_cv_sizeof_int=$ac_lo;;
35675 '') if test "$ac_cv_type_int" = yes; then
35676      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
35677 See \`config.log' for more details." >&5
35678 echo "$as_me: error: cannot compute sizeof (int)
35679 See \`config.log' for more details." >&2;}
35680    { (exit 77); exit 77; }; }
35681    else
35682      ac_cv_sizeof_int=0
35683    fi ;;
35684 esac
35685 else
35686   cat >conftest.$ac_ext <<_ACEOF
35687 /* confdefs.h.  */
35688 _ACEOF
35689 cat confdefs.h >>conftest.$ac_ext
35690 cat >>conftest.$ac_ext <<_ACEOF
35691 /* end confdefs.h.  */
35692 $ac_includes_default
35693    typedef int ac__type_sizeof_;
35694 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
35695 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
35696 #include <stdio.h>
35697 #include <stdlib.h>
35698 int
35699 main ()
35700 {
35701
35702   FILE *f = fopen ("conftest.val", "w");
35703   if (! f)
35704     return 1;
35705   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
35706     {
35707       long int i = longval ();
35708       if (i != ((long int) (sizeof (ac__type_sizeof_))))
35709         return 1;
35710       fprintf (f, "%ld\n", i);
35711     }
35712   else
35713     {
35714       unsigned long int i = ulongval ();
35715       if (i != ((long int) (sizeof (ac__type_sizeof_))))
35716         return 1;
35717       fprintf (f, "%lu\n", i);
35718     }
35719   return ferror (f) || fclose (f) != 0;
35720
35721   ;
35722   return 0;
35723 }
35724 _ACEOF
35725 rm -f conftest$ac_exeext
35726 if { (ac_try="$ac_link"
35727 case "(($ac_try" in
35728   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35729   *) ac_try_echo=$ac_try;;
35730 esac
35731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35732   (eval "$ac_link") 2>&5
35733   ac_status=$?
35734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35735   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35736   { (case "(($ac_try" in
35737   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35738   *) ac_try_echo=$ac_try;;
35739 esac
35740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35741   (eval "$ac_try") 2>&5
35742   ac_status=$?
35743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35744   (exit $ac_status); }; }; then
35745   ac_cv_sizeof_int=`cat conftest.val`
35746 else
35747   echo "$as_me: program exited with status $ac_status" >&5
35748 echo "$as_me: failed program was:" >&5
35749 sed 's/^/| /' conftest.$ac_ext >&5
35750
35751 ( exit $ac_status )
35752 if test "$ac_cv_type_int" = yes; then
35753      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
35754 See \`config.log' for more details." >&5
35755 echo "$as_me: error: cannot compute sizeof (int)
35756 See \`config.log' for more details." >&2;}
35757    { (exit 77); exit 77; }; }
35758    else
35759      ac_cv_sizeof_int=0
35760    fi
35761 fi
35762 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35763 fi
35764 rm -f conftest.val
35765 fi
35766 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
35767 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
35768
35769
35770
35771 cat >>confdefs.h <<_ACEOF
35772 #define SIZEOF_INT $ac_cv_sizeof_int
35773 _ACEOF
35774
35775
35776 { echo "$as_me:$LINENO: checking for long int" >&5
35777 echo $ECHO_N "checking for long int... $ECHO_C" >&6; }
35778 if test "${ac_cv_type_long_int+set}" = set; then
35779   echo $ECHO_N "(cached) $ECHO_C" >&6
35780 else
35781   cat >conftest.$ac_ext <<_ACEOF
35782 /* confdefs.h.  */
35783 _ACEOF
35784 cat confdefs.h >>conftest.$ac_ext
35785 cat >>conftest.$ac_ext <<_ACEOF
35786 /* end confdefs.h.  */
35787 $ac_includes_default
35788 typedef long int ac__type_new_;
35789 int
35790 main ()
35791 {
35792 if ((ac__type_new_ *) 0)
35793   return 0;
35794 if (sizeof (ac__type_new_))
35795   return 0;
35796   ;
35797   return 0;
35798 }
35799 _ACEOF
35800 rm -f conftest.$ac_objext
35801 if { (ac_try="$ac_compile"
35802 case "(($ac_try" in
35803   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35804   *) ac_try_echo=$ac_try;;
35805 esac
35806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35807   (eval "$ac_compile") 2>conftest.er1
35808   ac_status=$?
35809   grep -v '^ *+' conftest.er1 >conftest.err
35810   rm -f conftest.er1
35811   cat conftest.err >&5
35812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35813   (exit $ac_status); } && {
35814          test -z "$ac_c_werror_flag" ||
35815          test ! -s conftest.err
35816        } && test -s conftest.$ac_objext; then
35817   ac_cv_type_long_int=yes
35818 else
35819   echo "$as_me: failed program was:" >&5
35820 sed 's/^/| /' conftest.$ac_ext >&5
35821
35822         ac_cv_type_long_int=no
35823 fi
35824
35825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35826 fi
35827 { echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
35828 echo "${ECHO_T}$ac_cv_type_long_int" >&6; }
35829
35830 # The cast to long int works around a bug in the HP C Compiler
35831 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
35832 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
35833 # This bug is HP SR number 8606223364.
35834 { echo "$as_me:$LINENO: checking size of long int" >&5
35835 echo $ECHO_N "checking size of long int... $ECHO_C" >&6; }
35836 if test "${ac_cv_sizeof_long_int+set}" = set; then
35837   echo $ECHO_N "(cached) $ECHO_C" >&6
35838 else
35839   if test "$cross_compiling" = yes; then
35840   # Depending upon the size, compute the lo and hi bounds.
35841 cat >conftest.$ac_ext <<_ACEOF
35842 /* confdefs.h.  */
35843 _ACEOF
35844 cat confdefs.h >>conftest.$ac_ext
35845 cat >>conftest.$ac_ext <<_ACEOF
35846 /* end confdefs.h.  */
35847 $ac_includes_default
35848    typedef long int ac__type_sizeof_;
35849 int
35850 main ()
35851 {
35852 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
35853 test_array [0] = 0
35854
35855   ;
35856   return 0;
35857 }
35858 _ACEOF
35859 rm -f conftest.$ac_objext
35860 if { (ac_try="$ac_compile"
35861 case "(($ac_try" in
35862   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35863   *) ac_try_echo=$ac_try;;
35864 esac
35865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35866   (eval "$ac_compile") 2>conftest.er1
35867   ac_status=$?
35868   grep -v '^ *+' conftest.er1 >conftest.err
35869   rm -f conftest.er1
35870   cat conftest.err >&5
35871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35872   (exit $ac_status); } && {
35873          test -z "$ac_c_werror_flag" ||
35874          test ! -s conftest.err
35875        } && test -s conftest.$ac_objext; then
35876   ac_lo=0 ac_mid=0
35877   while :; do
35878     cat >conftest.$ac_ext <<_ACEOF
35879 /* confdefs.h.  */
35880 _ACEOF
35881 cat confdefs.h >>conftest.$ac_ext
35882 cat >>conftest.$ac_ext <<_ACEOF
35883 /* end confdefs.h.  */
35884 $ac_includes_default
35885    typedef long int ac__type_sizeof_;
35886 int
35887 main ()
35888 {
35889 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35890 test_array [0] = 0
35891
35892   ;
35893   return 0;
35894 }
35895 _ACEOF
35896 rm -f conftest.$ac_objext
35897 if { (ac_try="$ac_compile"
35898 case "(($ac_try" in
35899   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35900   *) ac_try_echo=$ac_try;;
35901 esac
35902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35903   (eval "$ac_compile") 2>conftest.er1
35904   ac_status=$?
35905   grep -v '^ *+' conftest.er1 >conftest.err
35906   rm -f conftest.er1
35907   cat conftest.err >&5
35908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35909   (exit $ac_status); } && {
35910          test -z "$ac_c_werror_flag" ||
35911          test ! -s conftest.err
35912        } && test -s conftest.$ac_objext; then
35913   ac_hi=$ac_mid; break
35914 else
35915   echo "$as_me: failed program was:" >&5
35916 sed 's/^/| /' conftest.$ac_ext >&5
35917
35918         ac_lo=`expr $ac_mid + 1`
35919                         if test $ac_lo -le $ac_mid; then
35920                           ac_lo= ac_hi=
35921                           break
35922                         fi
35923                         ac_mid=`expr 2 '*' $ac_mid + 1`
35924 fi
35925
35926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35927   done
35928 else
35929   echo "$as_me: failed program was:" >&5
35930 sed 's/^/| /' conftest.$ac_ext >&5
35931
35932         cat >conftest.$ac_ext <<_ACEOF
35933 /* confdefs.h.  */
35934 _ACEOF
35935 cat confdefs.h >>conftest.$ac_ext
35936 cat >>conftest.$ac_ext <<_ACEOF
35937 /* end confdefs.h.  */
35938 $ac_includes_default
35939    typedef long int ac__type_sizeof_;
35940 int
35941 main ()
35942 {
35943 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
35944 test_array [0] = 0
35945
35946   ;
35947   return 0;
35948 }
35949 _ACEOF
35950 rm -f conftest.$ac_objext
35951 if { (ac_try="$ac_compile"
35952 case "(($ac_try" in
35953   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35954   *) ac_try_echo=$ac_try;;
35955 esac
35956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35957   (eval "$ac_compile") 2>conftest.er1
35958   ac_status=$?
35959   grep -v '^ *+' conftest.er1 >conftest.err
35960   rm -f conftest.er1
35961   cat conftest.err >&5
35962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35963   (exit $ac_status); } && {
35964          test -z "$ac_c_werror_flag" ||
35965          test ! -s conftest.err
35966        } && test -s conftest.$ac_objext; then
35967   ac_hi=-1 ac_mid=-1
35968   while :; do
35969     cat >conftest.$ac_ext <<_ACEOF
35970 /* confdefs.h.  */
35971 _ACEOF
35972 cat confdefs.h >>conftest.$ac_ext
35973 cat >>conftest.$ac_ext <<_ACEOF
35974 /* end confdefs.h.  */
35975 $ac_includes_default
35976    typedef long int ac__type_sizeof_;
35977 int
35978 main ()
35979 {
35980 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
35981 test_array [0] = 0
35982
35983   ;
35984   return 0;
35985 }
35986 _ACEOF
35987 rm -f conftest.$ac_objext
35988 if { (ac_try="$ac_compile"
35989 case "(($ac_try" in
35990   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35991   *) ac_try_echo=$ac_try;;
35992 esac
35993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35994   (eval "$ac_compile") 2>conftest.er1
35995   ac_status=$?
35996   grep -v '^ *+' conftest.er1 >conftest.err
35997   rm -f conftest.er1
35998   cat conftest.err >&5
35999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36000   (exit $ac_status); } && {
36001          test -z "$ac_c_werror_flag" ||
36002          test ! -s conftest.err
36003        } && test -s conftest.$ac_objext; then
36004   ac_lo=$ac_mid; break
36005 else
36006   echo "$as_me: failed program was:" >&5
36007 sed 's/^/| /' conftest.$ac_ext >&5
36008
36009         ac_hi=`expr '(' $ac_mid ')' - 1`
36010                         if test $ac_mid -le $ac_hi; then
36011                           ac_lo= ac_hi=
36012                           break
36013                         fi
36014                         ac_mid=`expr 2 '*' $ac_mid`
36015 fi
36016
36017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36018   done
36019 else
36020   echo "$as_me: failed program was:" >&5
36021 sed 's/^/| /' conftest.$ac_ext >&5
36022
36023         ac_lo= ac_hi=
36024 fi
36025
36026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36027 fi
36028
36029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36030 # Binary search between lo and hi bounds.
36031 while test "x$ac_lo" != "x$ac_hi"; do
36032   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
36033   cat >conftest.$ac_ext <<_ACEOF
36034 /* confdefs.h.  */
36035 _ACEOF
36036 cat confdefs.h >>conftest.$ac_ext
36037 cat >>conftest.$ac_ext <<_ACEOF
36038 /* end confdefs.h.  */
36039 $ac_includes_default
36040    typedef long int ac__type_sizeof_;
36041 int
36042 main ()
36043 {
36044 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36045 test_array [0] = 0
36046
36047   ;
36048   return 0;
36049 }
36050 _ACEOF
36051 rm -f conftest.$ac_objext
36052 if { (ac_try="$ac_compile"
36053 case "(($ac_try" in
36054   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36055   *) ac_try_echo=$ac_try;;
36056 esac
36057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36058   (eval "$ac_compile") 2>conftest.er1
36059   ac_status=$?
36060   grep -v '^ *+' conftest.er1 >conftest.err
36061   rm -f conftest.er1
36062   cat conftest.err >&5
36063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36064   (exit $ac_status); } && {
36065          test -z "$ac_c_werror_flag" ||
36066          test ! -s conftest.err
36067        } && test -s conftest.$ac_objext; then
36068   ac_hi=$ac_mid
36069 else
36070   echo "$as_me: failed program was:" >&5
36071 sed 's/^/| /' conftest.$ac_ext >&5
36072
36073         ac_lo=`expr '(' $ac_mid ')' + 1`
36074 fi
36075
36076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36077 done
36078 case $ac_lo in
36079 ?*) ac_cv_sizeof_long_int=$ac_lo;;
36080 '') if test "$ac_cv_type_long_int" = yes; then
36081      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
36082 See \`config.log' for more details." >&5
36083 echo "$as_me: error: cannot compute sizeof (long int)
36084 See \`config.log' for more details." >&2;}
36085    { (exit 77); exit 77; }; }
36086    else
36087      ac_cv_sizeof_long_int=0
36088    fi ;;
36089 esac
36090 else
36091   cat >conftest.$ac_ext <<_ACEOF
36092 /* confdefs.h.  */
36093 _ACEOF
36094 cat confdefs.h >>conftest.$ac_ext
36095 cat >>conftest.$ac_ext <<_ACEOF
36096 /* end confdefs.h.  */
36097 $ac_includes_default
36098    typedef long int ac__type_sizeof_;
36099 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
36100 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
36101 #include <stdio.h>
36102 #include <stdlib.h>
36103 int
36104 main ()
36105 {
36106
36107   FILE *f = fopen ("conftest.val", "w");
36108   if (! f)
36109     return 1;
36110   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
36111     {
36112       long int i = longval ();
36113       if (i != ((long int) (sizeof (ac__type_sizeof_))))
36114         return 1;
36115       fprintf (f, "%ld\n", i);
36116     }
36117   else
36118     {
36119       unsigned long int i = ulongval ();
36120       if (i != ((long int) (sizeof (ac__type_sizeof_))))
36121         return 1;
36122       fprintf (f, "%lu\n", i);
36123     }
36124   return ferror (f) || fclose (f) != 0;
36125
36126   ;
36127   return 0;
36128 }
36129 _ACEOF
36130 rm -f conftest$ac_exeext
36131 if { (ac_try="$ac_link"
36132 case "(($ac_try" in
36133   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36134   *) ac_try_echo=$ac_try;;
36135 esac
36136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36137   (eval "$ac_link") 2>&5
36138   ac_status=$?
36139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36140   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36141   { (case "(($ac_try" in
36142   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36143   *) ac_try_echo=$ac_try;;
36144 esac
36145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36146   (eval "$ac_try") 2>&5
36147   ac_status=$?
36148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36149   (exit $ac_status); }; }; then
36150   ac_cv_sizeof_long_int=`cat conftest.val`
36151 else
36152   echo "$as_me: program exited with status $ac_status" >&5
36153 echo "$as_me: failed program was:" >&5
36154 sed 's/^/| /' conftest.$ac_ext >&5
36155
36156 ( exit $ac_status )
36157 if test "$ac_cv_type_long_int" = yes; then
36158      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
36159 See \`config.log' for more details." >&5
36160 echo "$as_me: error: cannot compute sizeof (long int)
36161 See \`config.log' for more details." >&2;}
36162    { (exit 77); exit 77; }; }
36163    else
36164      ac_cv_sizeof_long_int=0
36165    fi
36166 fi
36167 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36168 fi
36169 rm -f conftest.val
36170 fi
36171 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
36172 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6; }
36173
36174
36175
36176 cat >>confdefs.h <<_ACEOF
36177 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
36178 _ACEOF
36179
36180
36181 { echo "$as_me:$LINENO: checking for long long int" >&5
36182 echo $ECHO_N "checking for long long int... $ECHO_C" >&6; }
36183 if test "${ac_cv_type_long_long_int+set}" = set; then
36184   echo $ECHO_N "(cached) $ECHO_C" >&6
36185 else
36186   cat >conftest.$ac_ext <<_ACEOF
36187 /* confdefs.h.  */
36188 _ACEOF
36189 cat confdefs.h >>conftest.$ac_ext
36190 cat >>conftest.$ac_ext <<_ACEOF
36191 /* end confdefs.h.  */
36192 $ac_includes_default
36193 typedef long long int ac__type_new_;
36194 int
36195 main ()
36196 {
36197 if ((ac__type_new_ *) 0)
36198   return 0;
36199 if (sizeof (ac__type_new_))
36200   return 0;
36201   ;
36202   return 0;
36203 }
36204 _ACEOF
36205 rm -f conftest.$ac_objext
36206 if { (ac_try="$ac_compile"
36207 case "(($ac_try" in
36208   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36209   *) ac_try_echo=$ac_try;;
36210 esac
36211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36212   (eval "$ac_compile") 2>conftest.er1
36213   ac_status=$?
36214   grep -v '^ *+' conftest.er1 >conftest.err
36215   rm -f conftest.er1
36216   cat conftest.err >&5
36217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36218   (exit $ac_status); } && {
36219          test -z "$ac_c_werror_flag" ||
36220          test ! -s conftest.err
36221        } && test -s conftest.$ac_objext; then
36222   ac_cv_type_long_long_int=yes
36223 else
36224   echo "$as_me: failed program was:" >&5
36225 sed 's/^/| /' conftest.$ac_ext >&5
36226
36227         ac_cv_type_long_long_int=no
36228 fi
36229
36230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36231 fi
36232 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
36233 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6; }
36234
36235 # The cast to long int works around a bug in the HP C Compiler
36236 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
36237 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
36238 # This bug is HP SR number 8606223364.
36239 { echo "$as_me:$LINENO: checking size of long long int" >&5
36240 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6; }
36241 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
36242   echo $ECHO_N "(cached) $ECHO_C" >&6
36243 else
36244   if test "$cross_compiling" = yes; then
36245   # Depending upon the size, compute the lo and hi bounds.
36246 cat >conftest.$ac_ext <<_ACEOF
36247 /* confdefs.h.  */
36248 _ACEOF
36249 cat confdefs.h >>conftest.$ac_ext
36250 cat >>conftest.$ac_ext <<_ACEOF
36251 /* end confdefs.h.  */
36252 $ac_includes_default
36253    typedef long long int ac__type_sizeof_;
36254 int
36255 main ()
36256 {
36257 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
36258 test_array [0] = 0
36259
36260   ;
36261   return 0;
36262 }
36263 _ACEOF
36264 rm -f conftest.$ac_objext
36265 if { (ac_try="$ac_compile"
36266 case "(($ac_try" in
36267   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36268   *) ac_try_echo=$ac_try;;
36269 esac
36270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36271   (eval "$ac_compile") 2>conftest.er1
36272   ac_status=$?
36273   grep -v '^ *+' conftest.er1 >conftest.err
36274   rm -f conftest.er1
36275   cat conftest.err >&5
36276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36277   (exit $ac_status); } && {
36278          test -z "$ac_c_werror_flag" ||
36279          test ! -s conftest.err
36280        } && test -s conftest.$ac_objext; then
36281   ac_lo=0 ac_mid=0
36282   while :; do
36283     cat >conftest.$ac_ext <<_ACEOF
36284 /* confdefs.h.  */
36285 _ACEOF
36286 cat confdefs.h >>conftest.$ac_ext
36287 cat >>conftest.$ac_ext <<_ACEOF
36288 /* end confdefs.h.  */
36289 $ac_includes_default
36290    typedef long long int ac__type_sizeof_;
36291 int
36292 main ()
36293 {
36294 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36295 test_array [0] = 0
36296
36297   ;
36298   return 0;
36299 }
36300 _ACEOF
36301 rm -f conftest.$ac_objext
36302 if { (ac_try="$ac_compile"
36303 case "(($ac_try" in
36304   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36305   *) ac_try_echo=$ac_try;;
36306 esac
36307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36308   (eval "$ac_compile") 2>conftest.er1
36309   ac_status=$?
36310   grep -v '^ *+' conftest.er1 >conftest.err
36311   rm -f conftest.er1
36312   cat conftest.err >&5
36313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36314   (exit $ac_status); } && {
36315          test -z "$ac_c_werror_flag" ||
36316          test ! -s conftest.err
36317        } && test -s conftest.$ac_objext; then
36318   ac_hi=$ac_mid; break
36319 else
36320   echo "$as_me: failed program was:" >&5
36321 sed 's/^/| /' conftest.$ac_ext >&5
36322
36323         ac_lo=`expr $ac_mid + 1`
36324                         if test $ac_lo -le $ac_mid; then
36325                           ac_lo= ac_hi=
36326                           break
36327                         fi
36328                         ac_mid=`expr 2 '*' $ac_mid + 1`
36329 fi
36330
36331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36332   done
36333 else
36334   echo "$as_me: failed program was:" >&5
36335 sed 's/^/| /' conftest.$ac_ext >&5
36336
36337         cat >conftest.$ac_ext <<_ACEOF
36338 /* confdefs.h.  */
36339 _ACEOF
36340 cat confdefs.h >>conftest.$ac_ext
36341 cat >>conftest.$ac_ext <<_ACEOF
36342 /* end confdefs.h.  */
36343 $ac_includes_default
36344    typedef long long int ac__type_sizeof_;
36345 int
36346 main ()
36347 {
36348 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
36349 test_array [0] = 0
36350
36351   ;
36352   return 0;
36353 }
36354 _ACEOF
36355 rm -f conftest.$ac_objext
36356 if { (ac_try="$ac_compile"
36357 case "(($ac_try" in
36358   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36359   *) ac_try_echo=$ac_try;;
36360 esac
36361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36362   (eval "$ac_compile") 2>conftest.er1
36363   ac_status=$?
36364   grep -v '^ *+' conftest.er1 >conftest.err
36365   rm -f conftest.er1
36366   cat conftest.err >&5
36367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36368   (exit $ac_status); } && {
36369          test -z "$ac_c_werror_flag" ||
36370          test ! -s conftest.err
36371        } && test -s conftest.$ac_objext; then
36372   ac_hi=-1 ac_mid=-1
36373   while :; do
36374     cat >conftest.$ac_ext <<_ACEOF
36375 /* confdefs.h.  */
36376 _ACEOF
36377 cat confdefs.h >>conftest.$ac_ext
36378 cat >>conftest.$ac_ext <<_ACEOF
36379 /* end confdefs.h.  */
36380 $ac_includes_default
36381    typedef long long int ac__type_sizeof_;
36382 int
36383 main ()
36384 {
36385 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
36386 test_array [0] = 0
36387
36388   ;
36389   return 0;
36390 }
36391 _ACEOF
36392 rm -f conftest.$ac_objext
36393 if { (ac_try="$ac_compile"
36394 case "(($ac_try" in
36395   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36396   *) ac_try_echo=$ac_try;;
36397 esac
36398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36399   (eval "$ac_compile") 2>conftest.er1
36400   ac_status=$?
36401   grep -v '^ *+' conftest.er1 >conftest.err
36402   rm -f conftest.er1
36403   cat conftest.err >&5
36404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36405   (exit $ac_status); } && {
36406          test -z "$ac_c_werror_flag" ||
36407          test ! -s conftest.err
36408        } && test -s conftest.$ac_objext; then
36409   ac_lo=$ac_mid; break
36410 else
36411   echo "$as_me: failed program was:" >&5
36412 sed 's/^/| /' conftest.$ac_ext >&5
36413
36414         ac_hi=`expr '(' $ac_mid ')' - 1`
36415                         if test $ac_mid -le $ac_hi; then
36416                           ac_lo= ac_hi=
36417                           break
36418                         fi
36419                         ac_mid=`expr 2 '*' $ac_mid`
36420 fi
36421
36422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36423   done
36424 else
36425   echo "$as_me: failed program was:" >&5
36426 sed 's/^/| /' conftest.$ac_ext >&5
36427
36428         ac_lo= ac_hi=
36429 fi
36430
36431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36432 fi
36433
36434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36435 # Binary search between lo and hi bounds.
36436 while test "x$ac_lo" != "x$ac_hi"; do
36437   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
36438   cat >conftest.$ac_ext <<_ACEOF
36439 /* confdefs.h.  */
36440 _ACEOF
36441 cat confdefs.h >>conftest.$ac_ext
36442 cat >>conftest.$ac_ext <<_ACEOF
36443 /* end confdefs.h.  */
36444 $ac_includes_default
36445    typedef long long int ac__type_sizeof_;
36446 int
36447 main ()
36448 {
36449 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36450 test_array [0] = 0
36451
36452   ;
36453   return 0;
36454 }
36455 _ACEOF
36456 rm -f conftest.$ac_objext
36457 if { (ac_try="$ac_compile"
36458 case "(($ac_try" in
36459   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36460   *) ac_try_echo=$ac_try;;
36461 esac
36462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36463   (eval "$ac_compile") 2>conftest.er1
36464   ac_status=$?
36465   grep -v '^ *+' conftest.er1 >conftest.err
36466   rm -f conftest.er1
36467   cat conftest.err >&5
36468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36469   (exit $ac_status); } && {
36470          test -z "$ac_c_werror_flag" ||
36471          test ! -s conftest.err
36472        } && test -s conftest.$ac_objext; then
36473   ac_hi=$ac_mid
36474 else
36475   echo "$as_me: failed program was:" >&5
36476 sed 's/^/| /' conftest.$ac_ext >&5
36477
36478         ac_lo=`expr '(' $ac_mid ')' + 1`
36479 fi
36480
36481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36482 done
36483 case $ac_lo in
36484 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
36485 '') if test "$ac_cv_type_long_long_int" = yes; then
36486      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
36487 See \`config.log' for more details." >&5
36488 echo "$as_me: error: cannot compute sizeof (long long int)
36489 See \`config.log' for more details." >&2;}
36490    { (exit 77); exit 77; }; }
36491    else
36492      ac_cv_sizeof_long_long_int=0
36493    fi ;;
36494 esac
36495 else
36496   cat >conftest.$ac_ext <<_ACEOF
36497 /* confdefs.h.  */
36498 _ACEOF
36499 cat confdefs.h >>conftest.$ac_ext
36500 cat >>conftest.$ac_ext <<_ACEOF
36501 /* end confdefs.h.  */
36502 $ac_includes_default
36503    typedef long long int ac__type_sizeof_;
36504 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
36505 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
36506 #include <stdio.h>
36507 #include <stdlib.h>
36508 int
36509 main ()
36510 {
36511
36512   FILE *f = fopen ("conftest.val", "w");
36513   if (! f)
36514     return 1;
36515   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
36516     {
36517       long int i = longval ();
36518       if (i != ((long int) (sizeof (ac__type_sizeof_))))
36519         return 1;
36520       fprintf (f, "%ld\n", i);
36521     }
36522   else
36523     {
36524       unsigned long int i = ulongval ();
36525       if (i != ((long int) (sizeof (ac__type_sizeof_))))
36526         return 1;
36527       fprintf (f, "%lu\n", i);
36528     }
36529   return ferror (f) || fclose (f) != 0;
36530
36531   ;
36532   return 0;
36533 }
36534 _ACEOF
36535 rm -f conftest$ac_exeext
36536 if { (ac_try="$ac_link"
36537 case "(($ac_try" in
36538   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36539   *) ac_try_echo=$ac_try;;
36540 esac
36541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36542   (eval "$ac_link") 2>&5
36543   ac_status=$?
36544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36545   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36546   { (case "(($ac_try" in
36547   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36548   *) ac_try_echo=$ac_try;;
36549 esac
36550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36551   (eval "$ac_try") 2>&5
36552   ac_status=$?
36553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36554   (exit $ac_status); }; }; then
36555   ac_cv_sizeof_long_long_int=`cat conftest.val`
36556 else
36557   echo "$as_me: program exited with status $ac_status" >&5
36558 echo "$as_me: failed program was:" >&5
36559 sed 's/^/| /' conftest.$ac_ext >&5
36560
36561 ( exit $ac_status )
36562 if test "$ac_cv_type_long_long_int" = yes; then
36563      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
36564 See \`config.log' for more details." >&5
36565 echo "$as_me: error: cannot compute sizeof (long long int)
36566 See \`config.log' for more details." >&2;}
36567    { (exit 77); exit 77; }; }
36568    else
36569      ac_cv_sizeof_long_long_int=0
36570    fi
36571 fi
36572 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36573 fi
36574 rm -f conftest.val
36575 fi
36576 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
36577 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6; }
36578
36579
36580
36581 cat >>confdefs.h <<_ACEOF
36582 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
36583 _ACEOF
36584
36585
36586 { echo "$as_me:$LINENO: checking for int *" >&5
36587 echo $ECHO_N "checking for int *... $ECHO_C" >&6; }
36588 if test "${ac_cv_type_int_p+set}" = set; then
36589   echo $ECHO_N "(cached) $ECHO_C" >&6
36590 else
36591   cat >conftest.$ac_ext <<_ACEOF
36592 /* confdefs.h.  */
36593 _ACEOF
36594 cat confdefs.h >>conftest.$ac_ext
36595 cat >>conftest.$ac_ext <<_ACEOF
36596 /* end confdefs.h.  */
36597 $ac_includes_default
36598 typedef int * ac__type_new_;
36599 int
36600 main ()
36601 {
36602 if ((ac__type_new_ *) 0)
36603   return 0;
36604 if (sizeof (ac__type_new_))
36605   return 0;
36606   ;
36607   return 0;
36608 }
36609 _ACEOF
36610 rm -f conftest.$ac_objext
36611 if { (ac_try="$ac_compile"
36612 case "(($ac_try" in
36613   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36614   *) ac_try_echo=$ac_try;;
36615 esac
36616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36617   (eval "$ac_compile") 2>conftest.er1
36618   ac_status=$?
36619   grep -v '^ *+' conftest.er1 >conftest.err
36620   rm -f conftest.er1
36621   cat conftest.err >&5
36622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36623   (exit $ac_status); } && {
36624          test -z "$ac_c_werror_flag" ||
36625          test ! -s conftest.err
36626        } && test -s conftest.$ac_objext; then
36627   ac_cv_type_int_p=yes
36628 else
36629   echo "$as_me: failed program was:" >&5
36630 sed 's/^/| /' conftest.$ac_ext >&5
36631
36632         ac_cv_type_int_p=no
36633 fi
36634
36635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36636 fi
36637 { echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
36638 echo "${ECHO_T}$ac_cv_type_int_p" >&6; }
36639
36640 # The cast to long int works around a bug in the HP C Compiler
36641 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
36642 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
36643 # This bug is HP SR number 8606223364.
36644 { echo "$as_me:$LINENO: checking size of int *" >&5
36645 echo $ECHO_N "checking size of int *... $ECHO_C" >&6; }
36646 if test "${ac_cv_sizeof_int_p+set}" = set; then
36647   echo $ECHO_N "(cached) $ECHO_C" >&6
36648 else
36649   if test "$cross_compiling" = yes; then
36650   # Depending upon the size, compute the lo and hi bounds.
36651 cat >conftest.$ac_ext <<_ACEOF
36652 /* confdefs.h.  */
36653 _ACEOF
36654 cat confdefs.h >>conftest.$ac_ext
36655 cat >>conftest.$ac_ext <<_ACEOF
36656 /* end confdefs.h.  */
36657 $ac_includes_default
36658    typedef int * ac__type_sizeof_;
36659 int
36660 main ()
36661 {
36662 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
36663 test_array [0] = 0
36664
36665   ;
36666   return 0;
36667 }
36668 _ACEOF
36669 rm -f conftest.$ac_objext
36670 if { (ac_try="$ac_compile"
36671 case "(($ac_try" in
36672   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36673   *) ac_try_echo=$ac_try;;
36674 esac
36675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36676   (eval "$ac_compile") 2>conftest.er1
36677   ac_status=$?
36678   grep -v '^ *+' conftest.er1 >conftest.err
36679   rm -f conftest.er1
36680   cat conftest.err >&5
36681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36682   (exit $ac_status); } && {
36683          test -z "$ac_c_werror_flag" ||
36684          test ! -s conftest.err
36685        } && test -s conftest.$ac_objext; then
36686   ac_lo=0 ac_mid=0
36687   while :; do
36688     cat >conftest.$ac_ext <<_ACEOF
36689 /* confdefs.h.  */
36690 _ACEOF
36691 cat confdefs.h >>conftest.$ac_ext
36692 cat >>conftest.$ac_ext <<_ACEOF
36693 /* end confdefs.h.  */
36694 $ac_includes_default
36695    typedef int * ac__type_sizeof_;
36696 int
36697 main ()
36698 {
36699 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36700 test_array [0] = 0
36701
36702   ;
36703   return 0;
36704 }
36705 _ACEOF
36706 rm -f conftest.$ac_objext
36707 if { (ac_try="$ac_compile"
36708 case "(($ac_try" in
36709   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36710   *) ac_try_echo=$ac_try;;
36711 esac
36712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36713   (eval "$ac_compile") 2>conftest.er1
36714   ac_status=$?
36715   grep -v '^ *+' conftest.er1 >conftest.err
36716   rm -f conftest.er1
36717   cat conftest.err >&5
36718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36719   (exit $ac_status); } && {
36720          test -z "$ac_c_werror_flag" ||
36721          test ! -s conftest.err
36722        } && test -s conftest.$ac_objext; then
36723   ac_hi=$ac_mid; break
36724 else
36725   echo "$as_me: failed program was:" >&5
36726 sed 's/^/| /' conftest.$ac_ext >&5
36727
36728         ac_lo=`expr $ac_mid + 1`
36729                         if test $ac_lo -le $ac_mid; then
36730                           ac_lo= ac_hi=
36731                           break
36732                         fi
36733                         ac_mid=`expr 2 '*' $ac_mid + 1`
36734 fi
36735
36736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36737   done
36738 else
36739   echo "$as_me: failed program was:" >&5
36740 sed 's/^/| /' conftest.$ac_ext >&5
36741
36742         cat >conftest.$ac_ext <<_ACEOF
36743 /* confdefs.h.  */
36744 _ACEOF
36745 cat confdefs.h >>conftest.$ac_ext
36746 cat >>conftest.$ac_ext <<_ACEOF
36747 /* end confdefs.h.  */
36748 $ac_includes_default
36749    typedef int * ac__type_sizeof_;
36750 int
36751 main ()
36752 {
36753 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
36754 test_array [0] = 0
36755
36756   ;
36757   return 0;
36758 }
36759 _ACEOF
36760 rm -f conftest.$ac_objext
36761 if { (ac_try="$ac_compile"
36762 case "(($ac_try" in
36763   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36764   *) ac_try_echo=$ac_try;;
36765 esac
36766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36767   (eval "$ac_compile") 2>conftest.er1
36768   ac_status=$?
36769   grep -v '^ *+' conftest.er1 >conftest.err
36770   rm -f conftest.er1
36771   cat conftest.err >&5
36772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36773   (exit $ac_status); } && {
36774          test -z "$ac_c_werror_flag" ||
36775          test ! -s conftest.err
36776        } && test -s conftest.$ac_objext; then
36777   ac_hi=-1 ac_mid=-1
36778   while :; do
36779     cat >conftest.$ac_ext <<_ACEOF
36780 /* confdefs.h.  */
36781 _ACEOF
36782 cat confdefs.h >>conftest.$ac_ext
36783 cat >>conftest.$ac_ext <<_ACEOF
36784 /* end confdefs.h.  */
36785 $ac_includes_default
36786    typedef int * ac__type_sizeof_;
36787 int
36788 main ()
36789 {
36790 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
36791 test_array [0] = 0
36792
36793   ;
36794   return 0;
36795 }
36796 _ACEOF
36797 rm -f conftest.$ac_objext
36798 if { (ac_try="$ac_compile"
36799 case "(($ac_try" in
36800   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36801   *) ac_try_echo=$ac_try;;
36802 esac
36803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36804   (eval "$ac_compile") 2>conftest.er1
36805   ac_status=$?
36806   grep -v '^ *+' conftest.er1 >conftest.err
36807   rm -f conftest.er1
36808   cat conftest.err >&5
36809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36810   (exit $ac_status); } && {
36811          test -z "$ac_c_werror_flag" ||
36812          test ! -s conftest.err
36813        } && test -s conftest.$ac_objext; then
36814   ac_lo=$ac_mid; break
36815 else
36816   echo "$as_me: failed program was:" >&5
36817 sed 's/^/| /' conftest.$ac_ext >&5
36818
36819         ac_hi=`expr '(' $ac_mid ')' - 1`
36820                         if test $ac_mid -le $ac_hi; then
36821                           ac_lo= ac_hi=
36822                           break
36823                         fi
36824                         ac_mid=`expr 2 '*' $ac_mid`
36825 fi
36826
36827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36828   done
36829 else
36830   echo "$as_me: failed program was:" >&5
36831 sed 's/^/| /' conftest.$ac_ext >&5
36832
36833         ac_lo= ac_hi=
36834 fi
36835
36836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36837 fi
36838
36839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36840 # Binary search between lo and hi bounds.
36841 while test "x$ac_lo" != "x$ac_hi"; do
36842   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
36843   cat >conftest.$ac_ext <<_ACEOF
36844 /* confdefs.h.  */
36845 _ACEOF
36846 cat confdefs.h >>conftest.$ac_ext
36847 cat >>conftest.$ac_ext <<_ACEOF
36848 /* end confdefs.h.  */
36849 $ac_includes_default
36850    typedef int * ac__type_sizeof_;
36851 int
36852 main ()
36853 {
36854 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36855 test_array [0] = 0
36856
36857   ;
36858   return 0;
36859 }
36860 _ACEOF
36861 rm -f conftest.$ac_objext
36862 if { (ac_try="$ac_compile"
36863 case "(($ac_try" in
36864   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36865   *) ac_try_echo=$ac_try;;
36866 esac
36867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36868   (eval "$ac_compile") 2>conftest.er1
36869   ac_status=$?
36870   grep -v '^ *+' conftest.er1 >conftest.err
36871   rm -f conftest.er1
36872   cat conftest.err >&5
36873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36874   (exit $ac_status); } && {
36875          test -z "$ac_c_werror_flag" ||
36876          test ! -s conftest.err
36877        } && test -s conftest.$ac_objext; then
36878   ac_hi=$ac_mid
36879 else
36880   echo "$as_me: failed program was:" >&5
36881 sed 's/^/| /' conftest.$ac_ext >&5
36882
36883         ac_lo=`expr '(' $ac_mid ')' + 1`
36884 fi
36885
36886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36887 done
36888 case $ac_lo in
36889 ?*) ac_cv_sizeof_int_p=$ac_lo;;
36890 '') if test "$ac_cv_type_int_p" = yes; then
36891      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
36892 See \`config.log' for more details." >&5
36893 echo "$as_me: error: cannot compute sizeof (int *)
36894 See \`config.log' for more details." >&2;}
36895    { (exit 77); exit 77; }; }
36896    else
36897      ac_cv_sizeof_int_p=0
36898    fi ;;
36899 esac
36900 else
36901   cat >conftest.$ac_ext <<_ACEOF
36902 /* confdefs.h.  */
36903 _ACEOF
36904 cat confdefs.h >>conftest.$ac_ext
36905 cat >>conftest.$ac_ext <<_ACEOF
36906 /* end confdefs.h.  */
36907 $ac_includes_default
36908    typedef int * ac__type_sizeof_;
36909 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
36910 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
36911 #include <stdio.h>
36912 #include <stdlib.h>
36913 int
36914 main ()
36915 {
36916
36917   FILE *f = fopen ("conftest.val", "w");
36918   if (! f)
36919     return 1;
36920   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
36921     {
36922       long int i = longval ();
36923       if (i != ((long int) (sizeof (ac__type_sizeof_))))
36924         return 1;
36925       fprintf (f, "%ld\n", i);
36926     }
36927   else
36928     {
36929       unsigned long int i = ulongval ();
36930       if (i != ((long int) (sizeof (ac__type_sizeof_))))
36931         return 1;
36932       fprintf (f, "%lu\n", i);
36933     }
36934   return ferror (f) || fclose (f) != 0;
36935
36936   ;
36937   return 0;
36938 }
36939 _ACEOF
36940 rm -f conftest$ac_exeext
36941 if { (ac_try="$ac_link"
36942 case "(($ac_try" in
36943   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36944   *) ac_try_echo=$ac_try;;
36945 esac
36946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36947   (eval "$ac_link") 2>&5
36948   ac_status=$?
36949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36950   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36951   { (case "(($ac_try" in
36952   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36953   *) ac_try_echo=$ac_try;;
36954 esac
36955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36956   (eval "$ac_try") 2>&5
36957   ac_status=$?
36958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36959   (exit $ac_status); }; }; then
36960   ac_cv_sizeof_int_p=`cat conftest.val`
36961 else
36962   echo "$as_me: program exited with status $ac_status" >&5
36963 echo "$as_me: failed program was:" >&5
36964 sed 's/^/| /' conftest.$ac_ext >&5
36965
36966 ( exit $ac_status )
36967 if test "$ac_cv_type_int_p" = yes; then
36968      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
36969 See \`config.log' for more details." >&5
36970 echo "$as_me: error: cannot compute sizeof (int *)
36971 See \`config.log' for more details." >&2;}
36972    { (exit 77); exit 77; }; }
36973    else
36974      ac_cv_sizeof_int_p=0
36975    fi
36976 fi
36977 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36978 fi
36979 rm -f conftest.val
36980 fi
36981 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
36982 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6; }
36983
36984
36985
36986 cat >>confdefs.h <<_ACEOF
36987 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
36988 _ACEOF
36989
36990
36991
36992 { echo "$as_me:$LINENO: checking for u_int type" >&5
36993 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6; }
36994 if test "${ac_cv_have_u_int+set}" = set; then
36995   echo $ECHO_N "(cached) $ECHO_C" >&6
36996 else
36997
36998        cat >conftest.$ac_ext <<_ACEOF
36999 /* confdefs.h.  */
37000 _ACEOF
37001 cat confdefs.h >>conftest.$ac_ext
37002 cat >>conftest.$ac_ext <<_ACEOF
37003 /* end confdefs.h.  */
37004
37005               #include <sys/types.h>
37006
37007 int
37008 main ()
37009 {
37010
37011               u_int a; a = 1;
37012
37013   ;
37014   return 0;
37015 }
37016 _ACEOF
37017 rm -f conftest.$ac_objext
37018 if { (ac_try="$ac_compile"
37019 case "(($ac_try" in
37020   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37021   *) ac_try_echo=$ac_try;;
37022 esac
37023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37024   (eval "$ac_compile") 2>conftest.er1
37025   ac_status=$?
37026   grep -v '^ *+' conftest.er1 >conftest.err
37027   rm -f conftest.er1
37028   cat conftest.err >&5
37029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37030   (exit $ac_status); } && {
37031          test -z "$ac_c_werror_flag" ||
37032          test ! -s conftest.err
37033        } && test -s conftest.$ac_objext; then
37034
37035               ac_cv_have_u_int="yes"
37036
37037 else
37038   echo "$as_me: failed program was:" >&5
37039 sed 's/^/| /' conftest.$ac_ext >&5
37040
37041
37042               ac_cv_have_u_int="no"
37043
37044
37045 fi
37046
37047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37048
37049
37050 fi
37051 { echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
37052 echo "${ECHO_T}$ac_cv_have_u_int" >&6; }
37053 if test "x$ac_cv_have_u_int" = "xyes" ; then
37054    cat >>confdefs.h <<\_ACEOF
37055 #define HAVE_U_INT 1
37056 _ACEOF
37057
37058    have_u_int=1
37059 fi
37060
37061 { echo "$as_me:$LINENO: checking for intmax_t type" >&5
37062 echo $ECHO_N "checking for intmax_t type... $ECHO_C" >&6; }
37063 if test "${ac_cv_have_intmax_t+set}" = set; then
37064   echo $ECHO_N "(cached) $ECHO_C" >&6
37065 else
37066
37067        cat >conftest.$ac_ext <<_ACEOF
37068 /* confdefs.h.  */
37069 _ACEOF
37070 cat confdefs.h >>conftest.$ac_ext
37071 cat >>conftest.$ac_ext <<_ACEOF
37072 /* end confdefs.h.  */
37073
37074               #include <sys/types.h>
37075
37076 int
37077 main ()
37078 {
37079
37080               intmax_t a; a = 1;
37081
37082   ;
37083   return 0;
37084 }
37085 _ACEOF
37086 rm -f conftest.$ac_objext
37087 if { (ac_try="$ac_compile"
37088 case "(($ac_try" in
37089   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37090   *) ac_try_echo=$ac_try;;
37091 esac
37092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37093   (eval "$ac_compile") 2>conftest.er1
37094   ac_status=$?
37095   grep -v '^ *+' conftest.er1 >conftest.err
37096   rm -f conftest.er1
37097   cat conftest.err >&5
37098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37099   (exit $ac_status); } && {
37100          test -z "$ac_c_werror_flag" ||
37101          test ! -s conftest.err
37102        } && test -s conftest.$ac_objext; then
37103
37104               ac_cv_have_intmax_t="yes"
37105
37106 else
37107   echo "$as_me: failed program was:" >&5
37108 sed 's/^/| /' conftest.$ac_ext >&5
37109
37110
37111               cat >conftest.$ac_ext <<_ACEOF
37112 /* confdefs.h.  */
37113 _ACEOF
37114 cat confdefs.h >>conftest.$ac_ext
37115 cat >>conftest.$ac_ext <<_ACEOF
37116 /* end confdefs.h.  */
37117
37118                      #include <stdint.h>
37119
37120 int
37121 main ()
37122 {
37123
37124                      intmax_t a; a = 1;
37125
37126   ;
37127   return 0;
37128 }
37129 _ACEOF
37130 rm -f conftest.$ac_objext
37131 if { (ac_try="$ac_compile"
37132 case "(($ac_try" in
37133   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37134   *) ac_try_echo=$ac_try;;
37135 esac
37136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37137   (eval "$ac_compile") 2>conftest.er1
37138   ac_status=$?
37139   grep -v '^ *+' conftest.er1 >conftest.err
37140   rm -f conftest.er1
37141   cat conftest.err >&5
37142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37143   (exit $ac_status); } && {
37144          test -z "$ac_c_werror_flag" ||
37145          test ! -s conftest.err
37146        } && test -s conftest.$ac_objext; then
37147
37148                      ac_cv_have_intmax_t="yes"
37149
37150 else
37151   echo "$as_me: failed program was:" >&5
37152 sed 's/^/| /' conftest.$ac_ext >&5
37153
37154
37155                      ac_cv_have_intmax_t="no"
37156
37157
37158 fi
37159
37160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37161
37162
37163 fi
37164
37165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37166
37167
37168 fi
37169 { echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
37170 echo "${ECHO_T}$ac_cv_have_intmax_t" >&6; }
37171 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
37172    cat >>confdefs.h <<\_ACEOF
37173 #define HAVE_INTMAX_T 1
37174 _ACEOF
37175
37176    have_intmax_t=1
37177 fi
37178
37179 { echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
37180 echo $ECHO_N "checking for u_intmax_t type... $ECHO_C" >&6; }
37181 if test "${ac_cv_have_u_intmax_t+set}" = set; then
37182   echo $ECHO_N "(cached) $ECHO_C" >&6
37183 else
37184
37185        cat >conftest.$ac_ext <<_ACEOF
37186 /* confdefs.h.  */
37187 _ACEOF
37188 cat confdefs.h >>conftest.$ac_ext
37189 cat >>conftest.$ac_ext <<_ACEOF
37190 /* end confdefs.h.  */
37191
37192               #include <sys/types.h>
37193
37194 int
37195 main ()
37196 {
37197
37198               u_intmax_t a; a = 1;
37199
37200   ;
37201   return 0;
37202 }
37203 _ACEOF
37204 rm -f conftest.$ac_objext
37205 if { (ac_try="$ac_compile"
37206 case "(($ac_try" in
37207   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37208   *) ac_try_echo=$ac_try;;
37209 esac
37210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37211   (eval "$ac_compile") 2>conftest.er1
37212   ac_status=$?
37213   grep -v '^ *+' conftest.er1 >conftest.err
37214   rm -f conftest.er1
37215   cat conftest.err >&5
37216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37217   (exit $ac_status); } && {
37218          test -z "$ac_c_werror_flag" ||
37219          test ! -s conftest.err
37220        } && test -s conftest.$ac_objext; then
37221
37222               ac_cv_have_u_intmax_t="yes"
37223
37224 else
37225   echo "$as_me: failed program was:" >&5
37226 sed 's/^/| /' conftest.$ac_ext >&5
37227
37228
37229               cat >conftest.$ac_ext <<_ACEOF
37230 /* confdefs.h.  */
37231 _ACEOF
37232 cat confdefs.h >>conftest.$ac_ext
37233 cat >>conftest.$ac_ext <<_ACEOF
37234 /* end confdefs.h.  */
37235
37236                      #include <stdint.h>
37237
37238 int
37239 main ()
37240 {
37241
37242                     u_intmax_t a; a = 1;
37243
37244   ;
37245   return 0;
37246 }
37247 _ACEOF
37248 rm -f conftest.$ac_objext
37249 if { (ac_try="$ac_compile"
37250 case "(($ac_try" in
37251   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37252   *) ac_try_echo=$ac_try;;
37253 esac
37254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37255   (eval "$ac_compile") 2>conftest.er1
37256   ac_status=$?
37257   grep -v '^ *+' conftest.er1 >conftest.err
37258   rm -f conftest.er1
37259   cat conftest.err >&5
37260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37261   (exit $ac_status); } && {
37262          test -z "$ac_c_werror_flag" ||
37263          test ! -s conftest.err
37264        } && test -s conftest.$ac_objext; then
37265
37266                     ac_cv_have_u_intmax_t="yes"
37267
37268 else
37269   echo "$as_me: failed program was:" >&5
37270 sed 's/^/| /' conftest.$ac_ext >&5
37271
37272
37273                     ac_cv_have_u_intmax_t="no"
37274
37275
37276 fi
37277
37278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37279
37280
37281 fi
37282
37283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37284
37285
37286 fi
37287 { echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
37288 echo "${ECHO_T}$ac_cv_have_u_intmax_t" >&6; }
37289 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
37290    cat >>confdefs.h <<\_ACEOF
37291 #define HAVE_U_INTMAX_T 1
37292 _ACEOF
37293
37294    have_u_intmax_t=1
37295 fi
37296
37297 { echo "$as_me:$LINENO: checking for intXX_t types" >&5
37298 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6; }
37299 if test "${ac_cv_have_intxx_t+set}" = set; then
37300   echo $ECHO_N "(cached) $ECHO_C" >&6
37301 else
37302
37303        cat >conftest.$ac_ext <<_ACEOF
37304 /* confdefs.h.  */
37305 _ACEOF
37306 cat confdefs.h >>conftest.$ac_ext
37307 cat >>conftest.$ac_ext <<_ACEOF
37308 /* end confdefs.h.  */
37309
37310               #include <sys/types.h>
37311
37312 int
37313 main ()
37314 {
37315
37316               int8_t a; int16_t b; int32_t c; a = b = c = 1;
37317
37318   ;
37319   return 0;
37320 }
37321 _ACEOF
37322 rm -f conftest.$ac_objext
37323 if { (ac_try="$ac_compile"
37324 case "(($ac_try" in
37325   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37326   *) ac_try_echo=$ac_try;;
37327 esac
37328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37329   (eval "$ac_compile") 2>conftest.er1
37330   ac_status=$?
37331   grep -v '^ *+' conftest.er1 >conftest.err
37332   rm -f conftest.er1
37333   cat conftest.err >&5
37334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37335   (exit $ac_status); } && {
37336          test -z "$ac_c_werror_flag" ||
37337          test ! -s conftest.err
37338        } && test -s conftest.$ac_objext; then
37339
37340               ac_cv_have_intxx_t="yes"
37341
37342 else
37343   echo "$as_me: failed program was:" >&5
37344 sed 's/^/| /' conftest.$ac_ext >&5
37345
37346
37347               ac_cv_have_intxx_t="no"
37348
37349
37350 fi
37351
37352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37353
37354
37355 fi
37356 { echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
37357 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6; }
37358 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
37359    cat >>confdefs.h <<\_ACEOF
37360 #define HAVE_INTXX_T 1
37361 _ACEOF
37362
37363    have_intxx_t=1
37364 fi
37365
37366 { echo "$as_me:$LINENO: checking for int64_t type" >&5
37367 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6; }
37368 if test "${ac_cv_have_int64_t+set}" = set; then
37369   echo $ECHO_N "(cached) $ECHO_C" >&6
37370 else
37371
37372        cat >conftest.$ac_ext <<_ACEOF
37373 /* confdefs.h.  */
37374 _ACEOF
37375 cat confdefs.h >>conftest.$ac_ext
37376 cat >>conftest.$ac_ext <<_ACEOF
37377 /* end confdefs.h.  */
37378
37379               #include <sys/types.h>
37380
37381 int
37382 main ()
37383 {
37384
37385               int64_t a; a = 1;
37386
37387   ;
37388   return 0;
37389 }
37390 _ACEOF
37391 rm -f conftest.$ac_objext
37392 if { (ac_try="$ac_compile"
37393 case "(($ac_try" in
37394   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37395   *) ac_try_echo=$ac_try;;
37396 esac
37397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37398   (eval "$ac_compile") 2>conftest.er1
37399   ac_status=$?
37400   grep -v '^ *+' conftest.er1 >conftest.err
37401   rm -f conftest.er1
37402   cat conftest.err >&5
37403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37404   (exit $ac_status); } && {
37405          test -z "$ac_c_werror_flag" ||
37406          test ! -s conftest.err
37407        } && test -s conftest.$ac_objext; then
37408
37409               ac_cv_have_int64_t="yes"
37410
37411 else
37412   echo "$as_me: failed program was:" >&5
37413 sed 's/^/| /' conftest.$ac_ext >&5
37414
37415
37416               ac_cv_have_int64_t="no"
37417
37418
37419 fi
37420
37421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37422
37423
37424 fi
37425 { echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
37426 echo "${ECHO_T}$ac_cv_have_int64_t" >&6; }
37427 if test "x$ac_cv_have_int64_t" = "xyes" ; then
37428    cat >>confdefs.h <<\_ACEOF
37429 #define HAVE_INT64_T 1
37430 _ACEOF
37431
37432    have_int64_t=1
37433 fi
37434
37435 { echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
37436 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6; }
37437 if test "${ac_cv_have_u_intxx_t+set}" = set; then
37438   echo $ECHO_N "(cached) $ECHO_C" >&6
37439 else
37440
37441        cat >conftest.$ac_ext <<_ACEOF
37442 /* confdefs.h.  */
37443 _ACEOF
37444 cat confdefs.h >>conftest.$ac_ext
37445 cat >>conftest.$ac_ext <<_ACEOF
37446 /* end confdefs.h.  */
37447
37448               #include <sys/types.h>
37449
37450 int
37451 main ()
37452 {
37453
37454               u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
37455
37456   ;
37457   return 0;
37458 }
37459 _ACEOF
37460 rm -f conftest.$ac_objext
37461 if { (ac_try="$ac_compile"
37462 case "(($ac_try" in
37463   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37464   *) ac_try_echo=$ac_try;;
37465 esac
37466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37467   (eval "$ac_compile") 2>conftest.er1
37468   ac_status=$?
37469   grep -v '^ *+' conftest.er1 >conftest.err
37470   rm -f conftest.er1
37471   cat conftest.err >&5
37472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37473   (exit $ac_status); } && {
37474          test -z "$ac_c_werror_flag" ||
37475          test ! -s conftest.err
37476        } && test -s conftest.$ac_objext; then
37477
37478              ac_cv_have_u_intxx_t="yes"
37479
37480 else
37481   echo "$as_me: failed program was:" >&5
37482 sed 's/^/| /' conftest.$ac_ext >&5
37483
37484
37485              ac_cv_have_u_intxx_t="no"
37486
37487
37488 fi
37489
37490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37491
37492
37493 fi
37494 { echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
37495 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6; }
37496 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
37497    cat >>confdefs.h <<\_ACEOF
37498 #define HAVE_U_INTXX_T 1
37499 _ACEOF
37500
37501    have_u_intxx_t=1
37502 fi
37503
37504 { echo "$as_me:$LINENO: checking for u_int64_t types" >&5
37505 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6; }
37506 if test "${ac_cv_have_u_int64_t+set}" = set; then
37507   echo $ECHO_N "(cached) $ECHO_C" >&6
37508 else
37509
37510        cat >conftest.$ac_ext <<_ACEOF
37511 /* confdefs.h.  */
37512 _ACEOF
37513 cat confdefs.h >>conftest.$ac_ext
37514 cat >>conftest.$ac_ext <<_ACEOF
37515 /* end confdefs.h.  */
37516
37517               #include <sys/types.h>
37518
37519 int
37520 main ()
37521 {
37522
37523               u_int64_t a; a = 1;
37524
37525   ;
37526   return 0;
37527 }
37528 _ACEOF
37529 rm -f conftest.$ac_objext
37530 if { (ac_try="$ac_compile"
37531 case "(($ac_try" in
37532   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37533   *) ac_try_echo=$ac_try;;
37534 esac
37535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37536   (eval "$ac_compile") 2>conftest.er1
37537   ac_status=$?
37538   grep -v '^ *+' conftest.er1 >conftest.err
37539   rm -f conftest.er1
37540   cat conftest.err >&5
37541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37542   (exit $ac_status); } && {
37543          test -z "$ac_c_werror_flag" ||
37544          test ! -s conftest.err
37545        } && test -s conftest.$ac_objext; then
37546
37547              ac_cv_have_u_int64_t="yes"
37548
37549 else
37550   echo "$as_me: failed program was:" >&5
37551 sed 's/^/| /' conftest.$ac_ext >&5
37552
37553
37554              ac_cv_have_u_int64_t="no"
37555
37556
37557 fi
37558
37559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37560
37561
37562 fi
37563 { echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
37564 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6; }
37565 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
37566    cat >>confdefs.h <<\_ACEOF
37567 #define HAVE_U_INT64_T 1
37568 _ACEOF
37569
37570    have_u_int64_t=1
37571 fi
37572
37573 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
37574     test "x$ac_cv_header_sys_bitypes_h" = "xyes")
37575 then
37576    { echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
37577 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6; }
37578    cat >conftest.$ac_ext <<_ACEOF
37579 /* confdefs.h.  */
37580 _ACEOF
37581 cat confdefs.h >>conftest.$ac_ext
37582 cat >>conftest.$ac_ext <<_ACEOF
37583 /* end confdefs.h.  */
37584
37585           #include <sys/bitypes.h>
37586
37587 int
37588 main ()
37589 {
37590
37591           int8_t a; int16_t b; int32_t c;
37592           u_int8_t e; u_int16_t f; u_int32_t g;
37593           a = b = c = e = f = g = 1;
37594
37595   ;
37596   return 0;
37597 }
37598 _ACEOF
37599 rm -f conftest.$ac_objext
37600 if { (ac_try="$ac_compile"
37601 case "(($ac_try" in
37602   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37603   *) ac_try_echo=$ac_try;;
37604 esac
37605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37606   (eval "$ac_compile") 2>conftest.er1
37607   ac_status=$?
37608   grep -v '^ *+' conftest.er1 >conftest.err
37609   rm -f conftest.er1
37610   cat conftest.err >&5
37611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37612   (exit $ac_status); } && {
37613          test -z "$ac_c_werror_flag" ||
37614          test ! -s conftest.err
37615        } && test -s conftest.$ac_objext; then
37616
37617           cat >>confdefs.h <<\_ACEOF
37618 #define HAVE_U_INTXX_T 1
37619 _ACEOF
37620
37621           cat >>confdefs.h <<\_ACEOF
37622 #define HAVE_INTXX_T 1
37623 _ACEOF
37624
37625           cat >>confdefs.h <<\_ACEOF
37626 #define HAVE_SYS_BITYPES_H 1
37627 _ACEOF
37628
37629           { echo "$as_me:$LINENO: result: yes" >&5
37630 echo "${ECHO_T}yes" >&6; }
37631
37632 else
37633   echo "$as_me: failed program was:" >&5
37634 sed 's/^/| /' conftest.$ac_ext >&5
37635
37636
37637           { echo "$as_me:$LINENO: result: no" >&5
37638 echo "${ECHO_T}no" >&6; }
37639
37640
37641 fi
37642
37643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37644 fi
37645
37646 if test -z "$have_u_intxx_t" ; then
37647    { echo "$as_me:$LINENO: checking for uintXX_t types" >&5
37648 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6; }
37649 if test "${ac_cv_have_uintxx_t+set}" = set; then
37650   echo $ECHO_N "(cached) $ECHO_C" >&6
37651 else
37652
37653           cat >conftest.$ac_ext <<_ACEOF
37654 /* confdefs.h.  */
37655 _ACEOF
37656 cat confdefs.h >>conftest.$ac_ext
37657 cat >>conftest.$ac_ext <<_ACEOF
37658 /* end confdefs.h.  */
37659
37660                  #include <sys/types.h>
37661
37662 int
37663 main ()
37664 {
37665
37666                  uint8_t a; uint16_t b;
37667                  uint32_t c; a = b = c = 1;
37668
37669   ;
37670   return 0;
37671 }
37672 _ACEOF
37673 rm -f conftest.$ac_objext
37674 if { (ac_try="$ac_compile"
37675 case "(($ac_try" in
37676   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37677   *) ac_try_echo=$ac_try;;
37678 esac
37679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37680   (eval "$ac_compile") 2>conftest.er1
37681   ac_status=$?
37682   grep -v '^ *+' conftest.er1 >conftest.err
37683   rm -f conftest.er1
37684   cat conftest.err >&5
37685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37686   (exit $ac_status); } && {
37687          test -z "$ac_c_werror_flag" ||
37688          test ! -s conftest.err
37689        } && test -s conftest.$ac_objext; then
37690
37691                 ac_cv_have_uintxx_t="yes"
37692
37693 else
37694   echo "$as_me: failed program was:" >&5
37695 sed 's/^/| /' conftest.$ac_ext >&5
37696
37697
37698                 ac_cv_have_uintxx_t="no"
37699
37700
37701 fi
37702
37703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37704
37705
37706 fi
37707 { echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
37708 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6; }
37709    if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
37710       cat >>confdefs.h <<\_ACEOF
37711 #define HAVE_UINTXX_T 1
37712 _ACEOF
37713
37714    fi
37715 fi
37716
37717 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
37718     test "x$ac_cv_header_sys_bitypes_h" = "xyes")
37719 then
37720    { echo "$as_me:$LINENO: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
37721 echo $ECHO_N "checking for int64_t and u_int64_t types in sys/bitypes.h... $ECHO_C" >&6; }
37722    cat >conftest.$ac_ext <<_ACEOF
37723 /* confdefs.h.  */
37724 _ACEOF
37725 cat confdefs.h >>conftest.$ac_ext
37726 cat >>conftest.$ac_ext <<_ACEOF
37727 /* end confdefs.h.  */
37728
37729           #include <sys/bitypes.h>
37730
37731 int
37732 main ()
37733 {
37734
37735           int64_t a; u_int64_t b;
37736           a = b = 1;
37737
37738   ;
37739   return 0;
37740 }
37741 _ACEOF
37742 rm -f conftest.$ac_objext
37743 if { (ac_try="$ac_compile"
37744 case "(($ac_try" in
37745   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37746   *) ac_try_echo=$ac_try;;
37747 esac
37748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37749   (eval "$ac_compile") 2>conftest.er1
37750   ac_status=$?
37751   grep -v '^ *+' conftest.er1 >conftest.err
37752   rm -f conftest.er1
37753   cat conftest.err >&5
37754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37755   (exit $ac_status); } && {
37756          test -z "$ac_c_werror_flag" ||
37757          test ! -s conftest.err
37758        } && test -s conftest.$ac_objext; then
37759
37760           cat >>confdefs.h <<\_ACEOF
37761 #define HAVE_U_INT64_T 1
37762 _ACEOF
37763
37764           cat >>confdefs.h <<\_ACEOF
37765 #define HAVE_INT64_T 1
37766 _ACEOF
37767
37768           { echo "$as_me:$LINENO: result: yes" >&5
37769 echo "${ECHO_T}yes" >&6; }
37770
37771 else
37772   echo "$as_me: failed program was:" >&5
37773 sed 's/^/| /' conftest.$ac_ext >&5
37774
37775
37776           { echo "$as_me:$LINENO: result: no" >&5
37777 echo "${ECHO_T}no" >&6; }
37778
37779
37780 fi
37781
37782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37783 fi
37784
37785 if (test -z "$have_uintxx_t" && \
37786     test "x$ac_cv_header_sys_bitypes_h" = "xyes")
37787 then
37788    { echo "$as_me:$LINENO: checking for uintXX_t types in sys/bitypes.h" >&5
37789 echo $ECHO_N "checking for uintXX_t types in sys/bitypes.h... $ECHO_C" >&6; }
37790    cat >conftest.$ac_ext <<_ACEOF
37791 /* confdefs.h.  */
37792 _ACEOF
37793 cat confdefs.h >>conftest.$ac_ext
37794 cat >>conftest.$ac_ext <<_ACEOF
37795 /* end confdefs.h.  */
37796
37797           #include <sys/bitypes.h>
37798
37799 int
37800 main ()
37801 {
37802
37803           uint8_t a; uint16_t b;
37804           uint32_t c; a = b = c = 1;
37805
37806   ;
37807   return 0;
37808 }
37809 _ACEOF
37810 rm -f conftest.$ac_objext
37811 if { (ac_try="$ac_compile"
37812 case "(($ac_try" in
37813   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37814   *) ac_try_echo=$ac_try;;
37815 esac
37816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37817   (eval "$ac_compile") 2>conftest.er1
37818   ac_status=$?
37819   grep -v '^ *+' conftest.er1 >conftest.err
37820   rm -f conftest.er1
37821   cat conftest.err >&5
37822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37823   (exit $ac_status); } && {
37824          test -z "$ac_c_werror_flag" ||
37825          test ! -s conftest.err
37826        } && test -s conftest.$ac_objext; then
37827
37828           cat >>confdefs.h <<\_ACEOF
37829 #define HAVE_UINTXX_T 1
37830 _ACEOF
37831
37832           { echo "$as_me:$LINENO: result: yes" >&5
37833 echo "${ECHO_T}yes" >&6; }
37834
37835 else
37836   echo "$as_me: failed program was:" >&5
37837 sed 's/^/| /' conftest.$ac_ext >&5
37838
37839
37840           { echo "$as_me:$LINENO: result: no" >&5
37841 echo "${ECHO_T}no" >&6; }
37842
37843
37844 fi
37845
37846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37847 fi
37848
37849
37850
37851
37852
37853
37854
37855
37856
37857
37858
37859
37860
37861
37862 for ac_func in \
37863    fork \
37864    getcwd \
37865    gethostname \
37866    getpid \
37867    gettimeofday \
37868    setpgid \
37869    setpgrp \
37870    setsid \
37871    signal \
37872    strerror \
37873    strncmp \
37874    strncpy \
37875    vfprintf \
37876
37877 do
37878 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37879 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37880 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37881 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37882   echo $ECHO_N "(cached) $ECHO_C" >&6
37883 else
37884   cat >conftest.$ac_ext <<_ACEOF
37885 /* confdefs.h.  */
37886 _ACEOF
37887 cat confdefs.h >>conftest.$ac_ext
37888 cat >>conftest.$ac_ext <<_ACEOF
37889 /* end confdefs.h.  */
37890 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37891    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37892 #define $ac_func innocuous_$ac_func
37893
37894 /* System header to define __stub macros and hopefully few prototypes,
37895     which can conflict with char $ac_func (); below.
37896     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37897     <limits.h> exists even on freestanding compilers.  */
37898
37899 #ifdef __STDC__
37900 # include <limits.h>
37901 #else
37902 # include <assert.h>
37903 #endif
37904
37905 #undef $ac_func
37906
37907 /* Override any GCC internal prototype to avoid an error.
37908    Use char because int might match the return type of a GCC
37909    builtin and then its argument prototype would still apply.  */
37910 #ifdef __cplusplus
37911 extern "C"
37912 #endif
37913 char $ac_func ();
37914 /* The GNU C library defines this for functions which it implements
37915     to always fail with ENOSYS.  Some functions are actually named
37916     something starting with __ and the normal name is an alias.  */
37917 #if defined __stub_$ac_func || defined __stub___$ac_func
37918 choke me
37919 #endif
37920
37921 int
37922 main ()
37923 {
37924 return $ac_func ();
37925   ;
37926   return 0;
37927 }
37928 _ACEOF
37929 rm -f conftest.$ac_objext conftest$ac_exeext
37930 if { (ac_try="$ac_link"
37931 case "(($ac_try" in
37932   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37933   *) ac_try_echo=$ac_try;;
37934 esac
37935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37936   (eval "$ac_link") 2>conftest.er1
37937   ac_status=$?
37938   grep -v '^ *+' conftest.er1 >conftest.err
37939   rm -f conftest.er1
37940   cat conftest.err >&5
37941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37942   (exit $ac_status); } && {
37943          test -z "$ac_c_werror_flag" ||
37944          test ! -s conftest.err
37945        } && test -s conftest$ac_exeext &&
37946        $as_test_x conftest$ac_exeext; then
37947   eval "$as_ac_var=yes"
37948 else
37949   echo "$as_me: failed program was:" >&5
37950 sed 's/^/| /' conftest.$ac_ext >&5
37951
37952         eval "$as_ac_var=no"
37953 fi
37954
37955 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37956       conftest$ac_exeext conftest.$ac_ext
37957 fi
37958 ac_res=`eval echo '${'$as_ac_var'}'`
37959                { echo "$as_me:$LINENO: result: $ac_res" >&5
37960 echo "${ECHO_T}$ac_res" >&6; }
37961 if test `eval echo '${'$as_ac_var'}'` = yes; then
37962   cat >>confdefs.h <<_ACEOF
37963 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37964 _ACEOF
37965
37966 else
37967   echo 'configure: cannot find needed function.'; exit 1
37968
37969 fi
37970 done
37971
37972
37973
37974 for ac_func in fchdir
37975 do
37976 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37977 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37978 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37979 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37980   echo $ECHO_N "(cached) $ECHO_C" >&6
37981 else
37982   cat >conftest.$ac_ext <<_ACEOF
37983 /* confdefs.h.  */
37984 _ACEOF
37985 cat confdefs.h >>conftest.$ac_ext
37986 cat >>conftest.$ac_ext <<_ACEOF
37987 /* end confdefs.h.  */
37988 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37989    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37990 #define $ac_func innocuous_$ac_func
37991
37992 /* System header to define __stub macros and hopefully few prototypes,
37993     which can conflict with char $ac_func (); below.
37994     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37995     <limits.h> exists even on freestanding compilers.  */
37996
37997 #ifdef __STDC__
37998 # include <limits.h>
37999 #else
38000 # include <assert.h>
38001 #endif
38002
38003 #undef $ac_func
38004
38005 /* Override any GCC internal prototype to avoid an error.
38006    Use char because int might match the return type of a GCC
38007    builtin and then its argument prototype would still apply.  */
38008 #ifdef __cplusplus
38009 extern "C"
38010 #endif
38011 char $ac_func ();
38012 /* The GNU C library defines this for functions which it implements
38013     to always fail with ENOSYS.  Some functions are actually named
38014     something starting with __ and the normal name is an alias.  */
38015 #if defined __stub_$ac_func || defined __stub___$ac_func
38016 choke me
38017 #endif
38018
38019 int
38020 main ()
38021 {
38022 return $ac_func ();
38023   ;
38024   return 0;
38025 }
38026 _ACEOF
38027 rm -f conftest.$ac_objext conftest$ac_exeext
38028 if { (ac_try="$ac_link"
38029 case "(($ac_try" in
38030   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38031   *) ac_try_echo=$ac_try;;
38032 esac
38033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38034   (eval "$ac_link") 2>conftest.er1
38035   ac_status=$?
38036   grep -v '^ *+' conftest.er1 >conftest.err
38037   rm -f conftest.er1
38038   cat conftest.err >&5
38039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38040   (exit $ac_status); } && {
38041          test -z "$ac_c_werror_flag" ||
38042          test ! -s conftest.err
38043        } && test -s conftest$ac_exeext &&
38044        $as_test_x conftest$ac_exeext; then
38045   eval "$as_ac_var=yes"
38046 else
38047   echo "$as_me: failed program was:" >&5
38048 sed 's/^/| /' conftest.$ac_ext >&5
38049
38050         eval "$as_ac_var=no"
38051 fi
38052
38053 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38054       conftest$ac_exeext conftest.$ac_ext
38055 fi
38056 ac_res=`eval echo '${'$as_ac_var'}'`
38057                { echo "$as_me:$LINENO: result: $ac_res" >&5
38058 echo "${ECHO_T}$ac_res" >&6; }
38059 if test `eval echo '${'$as_ac_var'}'` = yes; then
38060   cat >>confdefs.h <<_ACEOF
38061 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38062 _ACEOF
38063  cat >>confdefs.h <<\_ACEOF
38064 #define HAVE_FCHDIR 1
38065 _ACEOF
38066
38067 fi
38068 done
38069
38070
38071 for ac_func in strtoll
38072 do
38073 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38074 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38075 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38076 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38077   echo $ECHO_N "(cached) $ECHO_C" >&6
38078 else
38079   cat >conftest.$ac_ext <<_ACEOF
38080 /* confdefs.h.  */
38081 _ACEOF
38082 cat confdefs.h >>conftest.$ac_ext
38083 cat >>conftest.$ac_ext <<_ACEOF
38084 /* end confdefs.h.  */
38085 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38086    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38087 #define $ac_func innocuous_$ac_func
38088
38089 /* System header to define __stub macros and hopefully few prototypes,
38090     which can conflict with char $ac_func (); below.
38091     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38092     <limits.h> exists even on freestanding compilers.  */
38093
38094 #ifdef __STDC__
38095 # include <limits.h>
38096 #else
38097 # include <assert.h>
38098 #endif
38099
38100 #undef $ac_func
38101
38102 /* Override any GCC internal prototype to avoid an error.
38103    Use char because int might match the return type of a GCC
38104    builtin and then its argument prototype would still apply.  */
38105 #ifdef __cplusplus
38106 extern "C"
38107 #endif
38108 char $ac_func ();
38109 /* The GNU C library defines this for functions which it implements
38110     to always fail with ENOSYS.  Some functions are actually named
38111     something starting with __ and the normal name is an alias.  */
38112 #if defined __stub_$ac_func || defined __stub___$ac_func
38113 choke me
38114 #endif
38115
38116 int
38117 main ()
38118 {
38119 return $ac_func ();
38120   ;
38121   return 0;
38122 }
38123 _ACEOF
38124 rm -f conftest.$ac_objext conftest$ac_exeext
38125 if { (ac_try="$ac_link"
38126 case "(($ac_try" in
38127   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38128   *) ac_try_echo=$ac_try;;
38129 esac
38130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38131   (eval "$ac_link") 2>conftest.er1
38132   ac_status=$?
38133   grep -v '^ *+' conftest.er1 >conftest.err
38134   rm -f conftest.er1
38135   cat conftest.err >&5
38136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38137   (exit $ac_status); } && {
38138          test -z "$ac_c_werror_flag" ||
38139          test ! -s conftest.err
38140        } && test -s conftest$ac_exeext &&
38141        $as_test_x conftest$ac_exeext; then
38142   eval "$as_ac_var=yes"
38143 else
38144   echo "$as_me: failed program was:" >&5
38145 sed 's/^/| /' conftest.$ac_ext >&5
38146
38147         eval "$as_ac_var=no"
38148 fi
38149
38150 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38151       conftest$ac_exeext conftest.$ac_ext
38152 fi
38153 ac_res=`eval echo '${'$as_ac_var'}'`
38154                { echo "$as_me:$LINENO: result: $ac_res" >&5
38155 echo "${ECHO_T}$ac_res" >&6; }
38156 if test `eval echo '${'$as_ac_var'}'` = yes; then
38157   cat >>confdefs.h <<_ACEOF
38158 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38159 _ACEOF
38160  cat >>confdefs.h <<\_ACEOF
38161 #define HAVE_STRTOLL 1
38162 _ACEOF
38163
38164 fi
38165 done
38166
38167
38168 for ac_func in posix_fadvise
38169 do
38170 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38171 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38172 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38173 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38174   echo $ECHO_N "(cached) $ECHO_C" >&6
38175 else
38176   cat >conftest.$ac_ext <<_ACEOF
38177 /* confdefs.h.  */
38178 _ACEOF
38179 cat confdefs.h >>conftest.$ac_ext
38180 cat >>conftest.$ac_ext <<_ACEOF
38181 /* end confdefs.h.  */
38182 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38183    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38184 #define $ac_func innocuous_$ac_func
38185
38186 /* System header to define __stub macros and hopefully few prototypes,
38187     which can conflict with char $ac_func (); below.
38188     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38189     <limits.h> exists even on freestanding compilers.  */
38190
38191 #ifdef __STDC__
38192 # include <limits.h>
38193 #else
38194 # include <assert.h>
38195 #endif
38196
38197 #undef $ac_func
38198
38199 /* Override any GCC internal prototype to avoid an error.
38200    Use char because int might match the return type of a GCC
38201    builtin and then its argument prototype would still apply.  */
38202 #ifdef __cplusplus
38203 extern "C"
38204 #endif
38205 char $ac_func ();
38206 /* The GNU C library defines this for functions which it implements
38207     to always fail with ENOSYS.  Some functions are actually named
38208     something starting with __ and the normal name is an alias.  */
38209 #if defined __stub_$ac_func || defined __stub___$ac_func
38210 choke me
38211 #endif
38212
38213 int
38214 main ()
38215 {
38216 return $ac_func ();
38217   ;
38218   return 0;
38219 }
38220 _ACEOF
38221 rm -f conftest.$ac_objext conftest$ac_exeext
38222 if { (ac_try="$ac_link"
38223 case "(($ac_try" in
38224   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38225   *) ac_try_echo=$ac_try;;
38226 esac
38227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38228   (eval "$ac_link") 2>conftest.er1
38229   ac_status=$?
38230   grep -v '^ *+' conftest.er1 >conftest.err
38231   rm -f conftest.er1
38232   cat conftest.err >&5
38233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38234   (exit $ac_status); } && {
38235          test -z "$ac_c_werror_flag" ||
38236          test ! -s conftest.err
38237        } && test -s conftest$ac_exeext &&
38238        $as_test_x conftest$ac_exeext; then
38239   eval "$as_ac_var=yes"
38240 else
38241   echo "$as_me: failed program was:" >&5
38242 sed 's/^/| /' conftest.$ac_ext >&5
38243
38244         eval "$as_ac_var=no"
38245 fi
38246
38247 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38248       conftest$ac_exeext conftest.$ac_ext
38249 fi
38250 ac_res=`eval echo '${'$as_ac_var'}'`
38251                { echo "$as_me:$LINENO: result: $ac_res" >&5
38252 echo "${ECHO_T}$ac_res" >&6; }
38253 if test `eval echo '${'$as_ac_var'}'` = yes; then
38254   cat >>confdefs.h <<_ACEOF
38255 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38256 _ACEOF
38257
38258 fi
38259 done
38260
38261
38262 for ac_func in fdatasync
38263 do
38264 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38265 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38266 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38267 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38268   echo $ECHO_N "(cached) $ECHO_C" >&6
38269 else
38270   cat >conftest.$ac_ext <<_ACEOF
38271 /* confdefs.h.  */
38272 _ACEOF
38273 cat confdefs.h >>conftest.$ac_ext
38274 cat >>conftest.$ac_ext <<_ACEOF
38275 /* end confdefs.h.  */
38276 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38277    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38278 #define $ac_func innocuous_$ac_func
38279
38280 /* System header to define __stub macros and hopefully few prototypes,
38281     which can conflict with char $ac_func (); below.
38282     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38283     <limits.h> exists even on freestanding compilers.  */
38284
38285 #ifdef __STDC__
38286 # include <limits.h>
38287 #else
38288 # include <assert.h>
38289 #endif
38290
38291 #undef $ac_func
38292
38293 /* Override any GCC internal prototype to avoid an error.
38294    Use char because int might match the return type of a GCC
38295    builtin and then its argument prototype would still apply.  */
38296 #ifdef __cplusplus
38297 extern "C"
38298 #endif
38299 char $ac_func ();
38300 /* The GNU C library defines this for functions which it implements
38301     to always fail with ENOSYS.  Some functions are actually named
38302     something starting with __ and the normal name is an alias.  */
38303 #if defined __stub_$ac_func || defined __stub___$ac_func
38304 choke me
38305 #endif
38306
38307 int
38308 main ()
38309 {
38310 return $ac_func ();
38311   ;
38312   return 0;
38313 }
38314 _ACEOF
38315 rm -f conftest.$ac_objext conftest$ac_exeext
38316 if { (ac_try="$ac_link"
38317 case "(($ac_try" in
38318   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38319   *) ac_try_echo=$ac_try;;
38320 esac
38321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38322   (eval "$ac_link") 2>conftest.er1
38323   ac_status=$?
38324   grep -v '^ *+' conftest.er1 >conftest.err
38325   rm -f conftest.er1
38326   cat conftest.err >&5
38327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38328   (exit $ac_status); } && {
38329          test -z "$ac_c_werror_flag" ||
38330          test ! -s conftest.err
38331        } && test -s conftest$ac_exeext &&
38332        $as_test_x conftest$ac_exeext; then
38333   eval "$as_ac_var=yes"
38334 else
38335   echo "$as_me: failed program was:" >&5
38336 sed 's/^/| /' conftest.$ac_ext >&5
38337
38338         eval "$as_ac_var=no"
38339 fi
38340
38341 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38342       conftest$ac_exeext conftest.$ac_ext
38343 fi
38344 ac_res=`eval echo '${'$as_ac_var'}'`
38345                { echo "$as_me:$LINENO: result: $ac_res" >&5
38346 echo "${ECHO_T}$ac_res" >&6; }
38347 if test `eval echo '${'$as_ac_var'}'` = yes; then
38348   cat >>confdefs.h <<_ACEOF
38349 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38350 _ACEOF
38351
38352 fi
38353 done
38354
38355
38356
38357 for ac_func in chflags
38358 do
38359 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38360 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38361 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38362 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38363   echo $ECHO_N "(cached) $ECHO_C" >&6
38364 else
38365   cat >conftest.$ac_ext <<_ACEOF
38366 /* confdefs.h.  */
38367 _ACEOF
38368 cat confdefs.h >>conftest.$ac_ext
38369 cat >>conftest.$ac_ext <<_ACEOF
38370 /* end confdefs.h.  */
38371 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38372    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38373 #define $ac_func innocuous_$ac_func
38374
38375 /* System header to define __stub macros and hopefully few prototypes,
38376     which can conflict with char $ac_func (); below.
38377     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38378     <limits.h> exists even on freestanding compilers.  */
38379
38380 #ifdef __STDC__
38381 # include <limits.h>
38382 #else
38383 # include <assert.h>
38384 #endif
38385
38386 #undef $ac_func
38387
38388 /* Override any GCC internal prototype to avoid an error.
38389    Use char because int might match the return type of a GCC
38390    builtin and then its argument prototype would still apply.  */
38391 #ifdef __cplusplus
38392 extern "C"
38393 #endif
38394 char $ac_func ();
38395 /* The GNU C library defines this for functions which it implements
38396     to always fail with ENOSYS.  Some functions are actually named
38397     something starting with __ and the normal name is an alias.  */
38398 #if defined __stub_$ac_func || defined __stub___$ac_func
38399 choke me
38400 #endif
38401
38402 int
38403 main ()
38404 {
38405 return $ac_func ();
38406   ;
38407   return 0;
38408 }
38409 _ACEOF
38410 rm -f conftest.$ac_objext conftest$ac_exeext
38411 if { (ac_try="$ac_link"
38412 case "(($ac_try" in
38413   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38414   *) ac_try_echo=$ac_try;;
38415 esac
38416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38417   (eval "$ac_link") 2>conftest.er1
38418   ac_status=$?
38419   grep -v '^ *+' conftest.er1 >conftest.err
38420   rm -f conftest.er1
38421   cat conftest.err >&5
38422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38423   (exit $ac_status); } && {
38424          test -z "$ac_c_werror_flag" ||
38425          test ! -s conftest.err
38426        } && test -s conftest$ac_exeext &&
38427        $as_test_x conftest$ac_exeext; then
38428   eval "$as_ac_var=yes"
38429 else
38430   echo "$as_me: failed program was:" >&5
38431 sed 's/^/| /' conftest.$ac_ext >&5
38432
38433         eval "$as_ac_var=no"
38434 fi
38435
38436 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38437       conftest$ac_exeext conftest.$ac_ext
38438 fi
38439 ac_res=`eval echo '${'$as_ac_var'}'`
38440                { echo "$as_me:$LINENO: result: $ac_res" >&5
38441 echo "${ECHO_T}$ac_res" >&6; }
38442 if test `eval echo '${'$as_ac_var'}'` = yes; then
38443   cat >>confdefs.h <<_ACEOF
38444 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38445 _ACEOF
38446
38447 fi
38448 done
38449
38450
38451
38452
38453
38454
38455 for ac_func in snprintf vsnprintf gethostid fseeko
38456 do
38457 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38458 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38459 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38460 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38461   echo $ECHO_N "(cached) $ECHO_C" >&6
38462 else
38463   cat >conftest.$ac_ext <<_ACEOF
38464 /* confdefs.h.  */
38465 _ACEOF
38466 cat confdefs.h >>conftest.$ac_ext
38467 cat >>conftest.$ac_ext <<_ACEOF
38468 /* end confdefs.h.  */
38469 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38470    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38471 #define $ac_func innocuous_$ac_func
38472
38473 /* System header to define __stub macros and hopefully few prototypes,
38474     which can conflict with char $ac_func (); below.
38475     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38476     <limits.h> exists even on freestanding compilers.  */
38477
38478 #ifdef __STDC__
38479 # include <limits.h>
38480 #else
38481 # include <assert.h>
38482 #endif
38483
38484 #undef $ac_func
38485
38486 /* Override any GCC internal prototype to avoid an error.
38487    Use char because int might match the return type of a GCC
38488    builtin and then its argument prototype would still apply.  */
38489 #ifdef __cplusplus
38490 extern "C"
38491 #endif
38492 char $ac_func ();
38493 /* The GNU C library defines this for functions which it implements
38494     to always fail with ENOSYS.  Some functions are actually named
38495     something starting with __ and the normal name is an alias.  */
38496 #if defined __stub_$ac_func || defined __stub___$ac_func
38497 choke me
38498 #endif
38499
38500 int
38501 main ()
38502 {
38503 return $ac_func ();
38504   ;
38505   return 0;
38506 }
38507 _ACEOF
38508 rm -f conftest.$ac_objext conftest$ac_exeext
38509 if { (ac_try="$ac_link"
38510 case "(($ac_try" in
38511   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38512   *) ac_try_echo=$ac_try;;
38513 esac
38514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38515   (eval "$ac_link") 2>conftest.er1
38516   ac_status=$?
38517   grep -v '^ *+' conftest.er1 >conftest.err
38518   rm -f conftest.er1
38519   cat conftest.err >&5
38520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38521   (exit $ac_status); } && {
38522          test -z "$ac_c_werror_flag" ||
38523          test ! -s conftest.err
38524        } && test -s conftest$ac_exeext &&
38525        $as_test_x conftest$ac_exeext; then
38526   eval "$as_ac_var=yes"
38527 else
38528   echo "$as_me: failed program was:" >&5
38529 sed 's/^/| /' conftest.$ac_ext >&5
38530
38531         eval "$as_ac_var=no"
38532 fi
38533
38534 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38535       conftest$ac_exeext conftest.$ac_ext
38536 fi
38537 ac_res=`eval echo '${'$as_ac_var'}'`
38538                { echo "$as_me:$LINENO: result: $ac_res" >&5
38539 echo "${ECHO_T}$ac_res" >&6; }
38540 if test `eval echo '${'$as_ac_var'}'` = yes; then
38541   cat >>confdefs.h <<_ACEOF
38542 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38543 _ACEOF
38544
38545 fi
38546 done
38547
38548
38549 { echo "$as_me:$LINENO: checking for va_copy" >&5
38550 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6; }
38551 if test "${ba_cv_va_copy+set}" = set; then
38552   echo $ECHO_N "(cached) $ECHO_C" >&6
38553 else
38554
38555        cat >conftest.$ac_ext <<_ACEOF
38556 /* confdefs.h.  */
38557 _ACEOF
38558 cat confdefs.h >>conftest.$ac_ext
38559 cat >>conftest.$ac_ext <<_ACEOF
38560 /* end confdefs.h.  */
38561
38562               #include <stdarg.h>
38563               void use_va_copy(va_list args){va_list args2; va_copy(args2,args); va_end(args2);}
38564               void call_use_va_copy(int junk,...){va_list args; va_start(args,junk); use_va_copy(args); va_end(args);}
38565
38566 int
38567 main ()
38568 {
38569
38570               call_use_va_copy(1,2,3)
38571
38572   ;
38573   return 0;
38574 }
38575 _ACEOF
38576 rm -f conftest.$ac_objext conftest$ac_exeext
38577 if { (ac_try="$ac_link"
38578 case "(($ac_try" in
38579   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38580   *) ac_try_echo=$ac_try;;
38581 esac
38582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38583   (eval "$ac_link") 2>conftest.er1
38584   ac_status=$?
38585   grep -v '^ *+' conftest.er1 >conftest.err
38586   rm -f conftest.er1
38587   cat conftest.err >&5
38588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38589   (exit $ac_status); } && {
38590          test -z "$ac_c_werror_flag" ||
38591          test ! -s conftest.err
38592        } && test -s conftest$ac_exeext &&
38593        $as_test_x conftest$ac_exeext; then
38594
38595               ba_cv_va_copy=yes,
38596
38597 else
38598   echo "$as_me: failed program was:" >&5
38599 sed 's/^/| /' conftest.$ac_ext >&5
38600
38601
38602               ba_cv_va_copy=no
38603
38604
38605 fi
38606
38607 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38608       conftest$ac_exeext conftest.$ac_ext
38609
38610
38611 fi
38612 { echo "$as_me:$LINENO: result: $ba_cv_va_copy" >&5
38613 echo "${ECHO_T}$ba_cv_va_copy" >&6; }
38614 test $ba_cv_va_copy = yes &&
38615 cat >>confdefs.h <<\_ACEOF
38616 #define HAVE_VA_COPY 1
38617 _ACEOF
38618
38619
38620
38621
38622
38623
38624 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
38625 do
38626 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38627 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38628 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38629 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38630   echo $ECHO_N "(cached) $ECHO_C" >&6
38631 else
38632   cat >conftest.$ac_ext <<_ACEOF
38633 /* confdefs.h.  */
38634 _ACEOF
38635 cat confdefs.h >>conftest.$ac_ext
38636 cat >>conftest.$ac_ext <<_ACEOF
38637 /* end confdefs.h.  */
38638 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38639    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38640 #define $ac_func innocuous_$ac_func
38641
38642 /* System header to define __stub macros and hopefully few prototypes,
38643     which can conflict with char $ac_func (); below.
38644     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38645     <limits.h> exists even on freestanding compilers.  */
38646
38647 #ifdef __STDC__
38648 # include <limits.h>
38649 #else
38650 # include <assert.h>
38651 #endif
38652
38653 #undef $ac_func
38654
38655 /* Override any GCC internal prototype to avoid an error.
38656    Use char because int might match the return type of a GCC
38657    builtin and then its argument prototype would still apply.  */
38658 #ifdef __cplusplus
38659 extern "C"
38660 #endif
38661 char $ac_func ();
38662 /* The GNU C library defines this for functions which it implements
38663     to always fail with ENOSYS.  Some functions are actually named
38664     something starting with __ and the normal name is an alias.  */
38665 #if defined __stub_$ac_func || defined __stub___$ac_func
38666 choke me
38667 #endif
38668
38669 int
38670 main ()
38671 {
38672 return $ac_func ();
38673   ;
38674   return 0;
38675 }
38676 _ACEOF
38677 rm -f conftest.$ac_objext conftest$ac_exeext
38678 if { (ac_try="$ac_link"
38679 case "(($ac_try" in
38680   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38681   *) ac_try_echo=$ac_try;;
38682 esac
38683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38684   (eval "$ac_link") 2>conftest.er1
38685   ac_status=$?
38686   grep -v '^ *+' conftest.er1 >conftest.err
38687   rm -f conftest.er1
38688   cat conftest.err >&5
38689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38690   (exit $ac_status); } && {
38691          test -z "$ac_c_werror_flag" ||
38692          test ! -s conftest.err
38693        } && test -s conftest$ac_exeext &&
38694        $as_test_x conftest$ac_exeext; then
38695   eval "$as_ac_var=yes"
38696 else
38697   echo "$as_me: failed program was:" >&5
38698 sed 's/^/| /' conftest.$ac_ext >&5
38699
38700         eval "$as_ac_var=no"
38701 fi
38702
38703 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38704       conftest$ac_exeext conftest.$ac_ext
38705 fi
38706 ac_res=`eval echo '${'$as_ac_var'}'`
38707                { echo "$as_me:$LINENO: result: $ac_res" >&5
38708 echo "${ECHO_T}$ac_res" >&6; }
38709 if test `eval echo '${'$as_ac_var'}'` = yes; then
38710   cat >>confdefs.h <<_ACEOF
38711 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38712 _ACEOF
38713
38714 fi
38715 done
38716
38717
38718 # If resolver functions are not in libc check for -lnsl or -lresolv.
38719 { echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
38720 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6; }
38721 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
38722   echo $ECHO_N "(cached) $ECHO_C" >&6
38723 else
38724   cat >conftest.$ac_ext <<_ACEOF
38725 /* confdefs.h.  */
38726 _ACEOF
38727 cat confdefs.h >>conftest.$ac_ext
38728 cat >>conftest.$ac_ext <<_ACEOF
38729 /* end confdefs.h.  */
38730 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
38731    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38732 #define gethostbyname_r innocuous_gethostbyname_r
38733
38734 /* System header to define __stub macros and hopefully few prototypes,
38735     which can conflict with char gethostbyname_r (); below.
38736     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38737     <limits.h> exists even on freestanding compilers.  */
38738
38739 #ifdef __STDC__
38740 # include <limits.h>
38741 #else
38742 # include <assert.h>
38743 #endif
38744
38745 #undef gethostbyname_r
38746
38747 /* Override any GCC internal prototype to avoid an error.
38748    Use char because int might match the return type of a GCC
38749    builtin and then its argument prototype would still apply.  */
38750 #ifdef __cplusplus
38751 extern "C"
38752 #endif
38753 char gethostbyname_r ();
38754 /* The GNU C library defines this for functions which it implements
38755     to always fail with ENOSYS.  Some functions are actually named
38756     something starting with __ and the normal name is an alias.  */
38757 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
38758 choke me
38759 #endif
38760
38761 int
38762 main ()
38763 {
38764 return gethostbyname_r ();
38765   ;
38766   return 0;
38767 }
38768 _ACEOF
38769 rm -f conftest.$ac_objext conftest$ac_exeext
38770 if { (ac_try="$ac_link"
38771 case "(($ac_try" in
38772   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38773   *) ac_try_echo=$ac_try;;
38774 esac
38775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38776   (eval "$ac_link") 2>conftest.er1
38777   ac_status=$?
38778   grep -v '^ *+' conftest.er1 >conftest.err
38779   rm -f conftest.er1
38780   cat conftest.err >&5
38781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38782   (exit $ac_status); } && {
38783          test -z "$ac_c_werror_flag" ||
38784          test ! -s conftest.err
38785        } && test -s conftest$ac_exeext &&
38786        $as_test_x conftest$ac_exeext; then
38787   ac_cv_func_gethostbyname_r=yes
38788 else
38789   echo "$as_me: failed program was:" >&5
38790 sed 's/^/| /' conftest.$ac_ext >&5
38791
38792         ac_cv_func_gethostbyname_r=no
38793 fi
38794
38795 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38796       conftest$ac_exeext conftest.$ac_ext
38797 fi
38798 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
38799 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6; }
38800 if test $ac_cv_func_gethostbyname_r = yes; then
38801   { echo "$as_me:$LINENO: result: using libc's resolver" >&5
38802 echo "${ECHO_T}using libc's resolver" >&6; }
38803 else
38804
38805 { echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
38806 echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6; }
38807 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
38808   echo $ECHO_N "(cached) $ECHO_C" >&6
38809 else
38810   ac_check_lib_save_LIBS=$LIBS
38811 LIBS="-lnsl  $LIBS"
38812 cat >conftest.$ac_ext <<_ACEOF
38813 /* confdefs.h.  */
38814 _ACEOF
38815 cat confdefs.h >>conftest.$ac_ext
38816 cat >>conftest.$ac_ext <<_ACEOF
38817 /* end confdefs.h.  */
38818
38819 /* Override any GCC internal prototype to avoid an error.
38820    Use char because int might match the return type of a GCC
38821    builtin and then its argument prototype would still apply.  */
38822 #ifdef __cplusplus
38823 extern "C"
38824 #endif
38825 char gethostbyname_r ();
38826 int
38827 main ()
38828 {
38829 return gethostbyname_r ();
38830   ;
38831   return 0;
38832 }
38833 _ACEOF
38834 rm -f conftest.$ac_objext conftest$ac_exeext
38835 if { (ac_try="$ac_link"
38836 case "(($ac_try" in
38837   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38838   *) ac_try_echo=$ac_try;;
38839 esac
38840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38841   (eval "$ac_link") 2>conftest.er1
38842   ac_status=$?
38843   grep -v '^ *+' conftest.er1 >conftest.err
38844   rm -f conftest.er1
38845   cat conftest.err >&5
38846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38847   (exit $ac_status); } && {
38848          test -z "$ac_c_werror_flag" ||
38849          test ! -s conftest.err
38850        } && test -s conftest$ac_exeext &&
38851        $as_test_x conftest$ac_exeext; then
38852   ac_cv_lib_nsl_gethostbyname_r=yes
38853 else
38854   echo "$as_me: failed program was:" >&5
38855 sed 's/^/| /' conftest.$ac_ext >&5
38856
38857         ac_cv_lib_nsl_gethostbyname_r=no
38858 fi
38859
38860 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38861       conftest$ac_exeext conftest.$ac_ext
38862 LIBS=$ac_check_lib_save_LIBS
38863 fi
38864 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
38865 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6; }
38866 if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
38867   cat >>confdefs.h <<_ACEOF
38868 #define HAVE_LIBNSL 1
38869 _ACEOF
38870
38871   LIBS="-lnsl $LIBS"
38872
38873 fi
38874
38875
38876 { echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
38877 echo $ECHO_N "checking for gethostbyname_r in -lresolv... $ECHO_C" >&6; }
38878 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
38879   echo $ECHO_N "(cached) $ECHO_C" >&6
38880 else
38881   ac_check_lib_save_LIBS=$LIBS
38882 LIBS="-lresolv  $LIBS"
38883 cat >conftest.$ac_ext <<_ACEOF
38884 /* confdefs.h.  */
38885 _ACEOF
38886 cat confdefs.h >>conftest.$ac_ext
38887 cat >>conftest.$ac_ext <<_ACEOF
38888 /* end confdefs.h.  */
38889
38890 /* Override any GCC internal prototype to avoid an error.
38891    Use char because int might match the return type of a GCC
38892    builtin and then its argument prototype would still apply.  */
38893 #ifdef __cplusplus
38894 extern "C"
38895 #endif
38896 char gethostbyname_r ();
38897 int
38898 main ()
38899 {
38900 return gethostbyname_r ();
38901   ;
38902   return 0;
38903 }
38904 _ACEOF
38905 rm -f conftest.$ac_objext conftest$ac_exeext
38906 if { (ac_try="$ac_link"
38907 case "(($ac_try" in
38908   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38909   *) ac_try_echo=$ac_try;;
38910 esac
38911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38912   (eval "$ac_link") 2>conftest.er1
38913   ac_status=$?
38914   grep -v '^ *+' conftest.er1 >conftest.err
38915   rm -f conftest.er1
38916   cat conftest.err >&5
38917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38918   (exit $ac_status); } && {
38919          test -z "$ac_c_werror_flag" ||
38920          test ! -s conftest.err
38921        } && test -s conftest$ac_exeext &&
38922        $as_test_x conftest$ac_exeext; then
38923   ac_cv_lib_resolv_gethostbyname_r=yes
38924 else
38925   echo "$as_me: failed program was:" >&5
38926 sed 's/^/| /' conftest.$ac_ext >&5
38927
38928         ac_cv_lib_resolv_gethostbyname_r=no
38929 fi
38930
38931 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38932       conftest$ac_exeext conftest.$ac_ext
38933 LIBS=$ac_check_lib_save_LIBS
38934 fi
38935 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
38936 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname_r" >&6; }
38937 if test $ac_cv_lib_resolv_gethostbyname_r = yes; then
38938   cat >>confdefs.h <<_ACEOF
38939 #define HAVE_LIBRESOLV 1
38940 _ACEOF
38941
38942   LIBS="-lresolv $LIBS"
38943
38944 fi
38945
38946 fi
38947
38948
38949
38950 for ac_func in inet_pton
38951 do
38952 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38953 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38954 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38955 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38956   echo $ECHO_N "(cached) $ECHO_C" >&6
38957 else
38958   cat >conftest.$ac_ext <<_ACEOF
38959 /* confdefs.h.  */
38960 _ACEOF
38961 cat confdefs.h >>conftest.$ac_ext
38962 cat >>conftest.$ac_ext <<_ACEOF
38963 /* end confdefs.h.  */
38964 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38965    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38966 #define $ac_func innocuous_$ac_func
38967
38968 /* System header to define __stub macros and hopefully few prototypes,
38969     which can conflict with char $ac_func (); below.
38970     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38971     <limits.h> exists even on freestanding compilers.  */
38972
38973 #ifdef __STDC__
38974 # include <limits.h>
38975 #else
38976 # include <assert.h>
38977 #endif
38978
38979 #undef $ac_func
38980
38981 /* Override any GCC internal prototype to avoid an error.
38982    Use char because int might match the return type of a GCC
38983    builtin and then its argument prototype would still apply.  */
38984 #ifdef __cplusplus
38985 extern "C"
38986 #endif
38987 char $ac_func ();
38988 /* The GNU C library defines this for functions which it implements
38989     to always fail with ENOSYS.  Some functions are actually named
38990     something starting with __ and the normal name is an alias.  */
38991 #if defined __stub_$ac_func || defined __stub___$ac_func
38992 choke me
38993 #endif
38994
38995 int
38996 main ()
38997 {
38998 return $ac_func ();
38999   ;
39000   return 0;
39001 }
39002 _ACEOF
39003 rm -f conftest.$ac_objext conftest$ac_exeext
39004 if { (ac_try="$ac_link"
39005 case "(($ac_try" in
39006   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39007   *) ac_try_echo=$ac_try;;
39008 esac
39009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39010   (eval "$ac_link") 2>conftest.er1
39011   ac_status=$?
39012   grep -v '^ *+' conftest.er1 >conftest.err
39013   rm -f conftest.er1
39014   cat conftest.err >&5
39015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39016   (exit $ac_status); } && {
39017          test -z "$ac_c_werror_flag" ||
39018          test ! -s conftest.err
39019        } && test -s conftest$ac_exeext &&
39020        $as_test_x conftest$ac_exeext; then
39021   eval "$as_ac_var=yes"
39022 else
39023   echo "$as_me: failed program was:" >&5
39024 sed 's/^/| /' conftest.$ac_ext >&5
39025
39026         eval "$as_ac_var=no"
39027 fi
39028
39029 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39030       conftest$ac_exeext conftest.$ac_ext
39031 fi
39032 ac_res=`eval echo '${'$as_ac_var'}'`
39033                { echo "$as_me:$LINENO: result: $ac_res" >&5
39034 echo "${ECHO_T}$ac_res" >&6; }
39035 if test `eval echo '${'$as_ac_var'}'` = yes; then
39036   cat >>confdefs.h <<_ACEOF
39037 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39038 _ACEOF
39039  cat >>confdefs.h <<\_ACEOF
39040 #define HAVE_INET_PTON 1
39041 _ACEOF
39042
39043 fi
39044 done
39045
39046
39047 for ac_func in inet_ntop
39048 do
39049 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39050 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39051 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39052 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39053   echo $ECHO_N "(cached) $ECHO_C" >&6
39054 else
39055   cat >conftest.$ac_ext <<_ACEOF
39056 /* confdefs.h.  */
39057 _ACEOF
39058 cat confdefs.h >>conftest.$ac_ext
39059 cat >>conftest.$ac_ext <<_ACEOF
39060 /* end confdefs.h.  */
39061 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39062    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39063 #define $ac_func innocuous_$ac_func
39064
39065 /* System header to define __stub macros and hopefully few prototypes,
39066     which can conflict with char $ac_func (); below.
39067     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39068     <limits.h> exists even on freestanding compilers.  */
39069
39070 #ifdef __STDC__
39071 # include <limits.h>
39072 #else
39073 # include <assert.h>
39074 #endif
39075
39076 #undef $ac_func
39077
39078 /* Override any GCC internal prototype to avoid an error.
39079    Use char because int might match the return type of a GCC
39080    builtin and then its argument prototype would still apply.  */
39081 #ifdef __cplusplus
39082 extern "C"
39083 #endif
39084 char $ac_func ();
39085 /* The GNU C library defines this for functions which it implements
39086     to always fail with ENOSYS.  Some functions are actually named
39087     something starting with __ and the normal name is an alias.  */
39088 #if defined __stub_$ac_func || defined __stub___$ac_func
39089 choke me
39090 #endif
39091
39092 int
39093 main ()
39094 {
39095 return $ac_func ();
39096   ;
39097   return 0;
39098 }
39099 _ACEOF
39100 rm -f conftest.$ac_objext conftest$ac_exeext
39101 if { (ac_try="$ac_link"
39102 case "(($ac_try" in
39103   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39104   *) ac_try_echo=$ac_try;;
39105 esac
39106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39107   (eval "$ac_link") 2>conftest.er1
39108   ac_status=$?
39109   grep -v '^ *+' conftest.er1 >conftest.err
39110   rm -f conftest.er1
39111   cat conftest.err >&5
39112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39113   (exit $ac_status); } && {
39114          test -z "$ac_c_werror_flag" ||
39115          test ! -s conftest.err
39116        } && test -s conftest$ac_exeext &&
39117        $as_test_x conftest$ac_exeext; then
39118   eval "$as_ac_var=yes"
39119 else
39120   echo "$as_me: failed program was:" >&5
39121 sed 's/^/| /' conftest.$ac_ext >&5
39122
39123         eval "$as_ac_var=no"
39124 fi
39125
39126 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39127       conftest$ac_exeext conftest.$ac_ext
39128 fi
39129 ac_res=`eval echo '${'$as_ac_var'}'`
39130                { echo "$as_me:$LINENO: result: $ac_res" >&5
39131 echo "${ECHO_T}$ac_res" >&6; }
39132 if test `eval echo '${'$as_ac_var'}'` = yes; then
39133   cat >>confdefs.h <<_ACEOF
39134 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39135 _ACEOF
39136  cat >>confdefs.h <<\_ACEOF
39137 #define HAVE_INET_NTOP 1
39138 _ACEOF
39139
39140 fi
39141 done
39142
39143
39144 for ac_func in gethostbyname2
39145 do
39146 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39147 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39148 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39149 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39150   echo $ECHO_N "(cached) $ECHO_C" >&6
39151 else
39152   cat >conftest.$ac_ext <<_ACEOF
39153 /* confdefs.h.  */
39154 _ACEOF
39155 cat confdefs.h >>conftest.$ac_ext
39156 cat >>conftest.$ac_ext <<_ACEOF
39157 /* end confdefs.h.  */
39158 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39159    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39160 #define $ac_func innocuous_$ac_func
39161
39162 /* System header to define __stub macros and hopefully few prototypes,
39163     which can conflict with char $ac_func (); below.
39164     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39165     <limits.h> exists even on freestanding compilers.  */
39166
39167 #ifdef __STDC__
39168 # include <limits.h>
39169 #else
39170 # include <assert.h>
39171 #endif
39172
39173 #undef $ac_func
39174
39175 /* Override any GCC internal prototype to avoid an error.
39176    Use char because int might match the return type of a GCC
39177    builtin and then its argument prototype would still apply.  */
39178 #ifdef __cplusplus
39179 extern "C"
39180 #endif
39181 char $ac_func ();
39182 /* The GNU C library defines this for functions which it implements
39183     to always fail with ENOSYS.  Some functions are actually named
39184     something starting with __ and the normal name is an alias.  */
39185 #if defined __stub_$ac_func || defined __stub___$ac_func
39186 choke me
39187 #endif
39188
39189 int
39190 main ()
39191 {
39192 return $ac_func ();
39193   ;
39194   return 0;
39195 }
39196 _ACEOF
39197 rm -f conftest.$ac_objext conftest$ac_exeext
39198 if { (ac_try="$ac_link"
39199 case "(($ac_try" in
39200   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39201   *) ac_try_echo=$ac_try;;
39202 esac
39203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39204   (eval "$ac_link") 2>conftest.er1
39205   ac_status=$?
39206   grep -v '^ *+' conftest.er1 >conftest.err
39207   rm -f conftest.er1
39208   cat conftest.err >&5
39209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39210   (exit $ac_status); } && {
39211          test -z "$ac_c_werror_flag" ||
39212          test ! -s conftest.err
39213        } && test -s conftest$ac_exeext &&
39214        $as_test_x conftest$ac_exeext; then
39215   eval "$as_ac_var=yes"
39216 else
39217   echo "$as_me: failed program was:" >&5
39218 sed 's/^/| /' conftest.$ac_ext >&5
39219
39220         eval "$as_ac_var=no"
39221 fi
39222
39223 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39224       conftest$ac_exeext conftest.$ac_ext
39225 fi
39226 ac_res=`eval echo '${'$as_ac_var'}'`
39227                { echo "$as_me:$LINENO: result: $ac_res" >&5
39228 echo "${ECHO_T}$ac_res" >&6; }
39229 if test `eval echo '${'$as_ac_var'}'` = yes; then
39230   cat >>confdefs.h <<_ACEOF
39231 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39232 _ACEOF
39233  cat >>confdefs.h <<\_ACEOF
39234 #define HAVE_GETHOSTBYNAME2 1
39235 _ACEOF
39236
39237 fi
39238 done
39239
39240
39241 { echo "$as_me:$LINENO: checking for struct sockaddr has a sa_len field" >&5
39242 echo $ECHO_N "checking for struct sockaddr has a sa_len field... $ECHO_C" >&6; }
39243 if test "${ac_cv_struct_sockaddr_sa_len+set}" = set; then
39244   echo $ECHO_N "(cached) $ECHO_C" >&6
39245 else
39246
39247        cat >conftest.$ac_ext <<_ACEOF
39248 /* confdefs.h.  */
39249 _ACEOF
39250 cat confdefs.h >>conftest.$ac_ext
39251 cat >>conftest.$ac_ext <<_ACEOF
39252 /* end confdefs.h.  */
39253
39254               #include <sys/socket.h>
39255
39256 int
39257 main ()
39258 {
39259
39260               struct sockaddr s; s.sa_len;
39261
39262   ;
39263   return 0;
39264 }
39265 _ACEOF
39266 rm -f conftest.$ac_objext
39267 if { (ac_try="$ac_compile"
39268 case "(($ac_try" in
39269   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39270   *) ac_try_echo=$ac_try;;
39271 esac
39272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39273   (eval "$ac_compile") 2>conftest.er1
39274   ac_status=$?
39275   grep -v '^ *+' conftest.er1 >conftest.err
39276   rm -f conftest.er1
39277   cat conftest.err >&5
39278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39279   (exit $ac_status); } && {
39280          test -z "$ac_c_werror_flag" ||
39281          test ! -s conftest.err
39282        } && test -s conftest.$ac_objext; then
39283
39284              ac_cv_struct_sockaddr_sa_len=yes
39285
39286 else
39287   echo "$as_me: failed program was:" >&5
39288 sed 's/^/| /' conftest.$ac_ext >&5
39289
39290         ac_cv_struct_sockaddr_sa_len=no
39291
39292
39293 fi
39294
39295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39296
39297
39298 fi
39299 { echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_sa_len" >&5
39300 echo "${ECHO_T}$ac_cv_struct_sockaddr_sa_len" >&6; }
39301
39302 if test $ac_cv_struct_sockaddr_sa_len = yes; then
39303
39304 cat >>confdefs.h <<\_ACEOF
39305 #define HAVE_SA_LEN 1
39306 _ACEOF
39307
39308 fi
39309
39310
39311 for ac_func in strftime
39312 do
39313 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39314 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39315 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39316 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39317   echo $ECHO_N "(cached) $ECHO_C" >&6
39318 else
39319   cat >conftest.$ac_ext <<_ACEOF
39320 /* confdefs.h.  */
39321 _ACEOF
39322 cat confdefs.h >>conftest.$ac_ext
39323 cat >>conftest.$ac_ext <<_ACEOF
39324 /* end confdefs.h.  */
39325 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39326    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39327 #define $ac_func innocuous_$ac_func
39328
39329 /* System header to define __stub macros and hopefully few prototypes,
39330     which can conflict with char $ac_func (); below.
39331     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39332     <limits.h> exists even on freestanding compilers.  */
39333
39334 #ifdef __STDC__
39335 # include <limits.h>
39336 #else
39337 # include <assert.h>
39338 #endif
39339
39340 #undef $ac_func
39341
39342 /* Override any GCC internal prototype to avoid an error.
39343    Use char because int might match the return type of a GCC
39344    builtin and then its argument prototype would still apply.  */
39345 #ifdef __cplusplus
39346 extern "C"
39347 #endif
39348 char $ac_func ();
39349 /* The GNU C library defines this for functions which it implements
39350     to always fail with ENOSYS.  Some functions are actually named
39351     something starting with __ and the normal name is an alias.  */
39352 #if defined __stub_$ac_func || defined __stub___$ac_func
39353 choke me
39354 #endif
39355
39356 int
39357 main ()
39358 {
39359 return $ac_func ();
39360   ;
39361   return 0;
39362 }
39363 _ACEOF
39364 rm -f conftest.$ac_objext conftest$ac_exeext
39365 if { (ac_try="$ac_link"
39366 case "(($ac_try" in
39367   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39368   *) ac_try_echo=$ac_try;;
39369 esac
39370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39371   (eval "$ac_link") 2>conftest.er1
39372   ac_status=$?
39373   grep -v '^ *+' conftest.er1 >conftest.err
39374   rm -f conftest.er1
39375   cat conftest.err >&5
39376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39377   (exit $ac_status); } && {
39378          test -z "$ac_c_werror_flag" ||
39379          test ! -s conftest.err
39380        } && test -s conftest$ac_exeext &&
39381        $as_test_x conftest$ac_exeext; then
39382   eval "$as_ac_var=yes"
39383 else
39384   echo "$as_me: failed program was:" >&5
39385 sed 's/^/| /' conftest.$ac_ext >&5
39386
39387         eval "$as_ac_var=no"
39388 fi
39389
39390 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39391       conftest$ac_exeext conftest.$ac_ext
39392 fi
39393 ac_res=`eval echo '${'$as_ac_var'}'`
39394                { echo "$as_me:$LINENO: result: $ac_res" >&5
39395 echo "${ECHO_T}$ac_res" >&6; }
39396 if test `eval echo '${'$as_ac_var'}'` = yes; then
39397   cat >>confdefs.h <<_ACEOF
39398 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39399 _ACEOF
39400
39401 else
39402   # strftime is in -lintl on SCO UNIX.
39403 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
39404 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
39405 if test "${ac_cv_lib_intl_strftime+set}" = set; then
39406   echo $ECHO_N "(cached) $ECHO_C" >&6
39407 else
39408   ac_check_lib_save_LIBS=$LIBS
39409 LIBS="-lintl  $LIBS"
39410 cat >conftest.$ac_ext <<_ACEOF
39411 /* confdefs.h.  */
39412 _ACEOF
39413 cat confdefs.h >>conftest.$ac_ext
39414 cat >>conftest.$ac_ext <<_ACEOF
39415 /* end confdefs.h.  */
39416
39417 /* Override any GCC internal prototype to avoid an error.
39418    Use char because int might match the return type of a GCC
39419    builtin and then its argument prototype would still apply.  */
39420 #ifdef __cplusplus
39421 extern "C"
39422 #endif
39423 char strftime ();
39424 int
39425 main ()
39426 {
39427 return strftime ();
39428   ;
39429   return 0;
39430 }
39431 _ACEOF
39432 rm -f conftest.$ac_objext conftest$ac_exeext
39433 if { (ac_try="$ac_link"
39434 case "(($ac_try" in
39435   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39436   *) ac_try_echo=$ac_try;;
39437 esac
39438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39439   (eval "$ac_link") 2>conftest.er1
39440   ac_status=$?
39441   grep -v '^ *+' conftest.er1 >conftest.err
39442   rm -f conftest.er1
39443   cat conftest.err >&5
39444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39445   (exit $ac_status); } && {
39446          test -z "$ac_c_werror_flag" ||
39447          test ! -s conftest.err
39448        } && test -s conftest$ac_exeext &&
39449        $as_test_x conftest$ac_exeext; then
39450   ac_cv_lib_intl_strftime=yes
39451 else
39452   echo "$as_me: failed program was:" >&5
39453 sed 's/^/| /' conftest.$ac_ext >&5
39454
39455         ac_cv_lib_intl_strftime=no
39456 fi
39457
39458 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39459       conftest$ac_exeext conftest.$ac_ext
39460 LIBS=$ac_check_lib_save_LIBS
39461 fi
39462 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
39463 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
39464 if test $ac_cv_lib_intl_strftime = yes; then
39465   cat >>confdefs.h <<\_ACEOF
39466 #define HAVE_STRFTIME 1
39467 _ACEOF
39468
39469 LIBS="-lintl $LIBS"
39470 fi
39471
39472 fi
39473 done
39474
39475
39476 for ac_func in vprintf
39477 do
39478 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39479 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39480 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39481 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39482   echo $ECHO_N "(cached) $ECHO_C" >&6
39483 else
39484   cat >conftest.$ac_ext <<_ACEOF
39485 /* confdefs.h.  */
39486 _ACEOF
39487 cat confdefs.h >>conftest.$ac_ext
39488 cat >>conftest.$ac_ext <<_ACEOF
39489 /* end confdefs.h.  */
39490 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39491    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39492 #define $ac_func innocuous_$ac_func
39493
39494 /* System header to define __stub macros and hopefully few prototypes,
39495     which can conflict with char $ac_func (); below.
39496     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39497     <limits.h> exists even on freestanding compilers.  */
39498
39499 #ifdef __STDC__
39500 # include <limits.h>
39501 #else
39502 # include <assert.h>
39503 #endif
39504
39505 #undef $ac_func
39506
39507 /* Override any GCC internal prototype to avoid an error.
39508    Use char because int might match the return type of a GCC
39509    builtin and then its argument prototype would still apply.  */
39510 #ifdef __cplusplus
39511 extern "C"
39512 #endif
39513 char $ac_func ();
39514 /* The GNU C library defines this for functions which it implements
39515     to always fail with ENOSYS.  Some functions are actually named
39516     something starting with __ and the normal name is an alias.  */
39517 #if defined __stub_$ac_func || defined __stub___$ac_func
39518 choke me
39519 #endif
39520
39521 int
39522 main ()
39523 {
39524 return $ac_func ();
39525   ;
39526   return 0;
39527 }
39528 _ACEOF
39529 rm -f conftest.$ac_objext conftest$ac_exeext
39530 if { (ac_try="$ac_link"
39531 case "(($ac_try" in
39532   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39533   *) ac_try_echo=$ac_try;;
39534 esac
39535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39536   (eval "$ac_link") 2>conftest.er1
39537   ac_status=$?
39538   grep -v '^ *+' conftest.er1 >conftest.err
39539   rm -f conftest.er1
39540   cat conftest.err >&5
39541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39542   (exit $ac_status); } && {
39543          test -z "$ac_c_werror_flag" ||
39544          test ! -s conftest.err
39545        } && test -s conftest$ac_exeext &&
39546        $as_test_x conftest$ac_exeext; then
39547   eval "$as_ac_var=yes"
39548 else
39549   echo "$as_me: failed program was:" >&5
39550 sed 's/^/| /' conftest.$ac_ext >&5
39551
39552         eval "$as_ac_var=no"
39553 fi
39554
39555 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39556       conftest$ac_exeext conftest.$ac_ext
39557 fi
39558 ac_res=`eval echo '${'$as_ac_var'}'`
39559                { echo "$as_me:$LINENO: result: $ac_res" >&5
39560 echo "${ECHO_T}$ac_res" >&6; }
39561 if test `eval echo '${'$as_ac_var'}'` = yes; then
39562   cat >>confdefs.h <<_ACEOF
39563 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39564 _ACEOF
39565
39566 { echo "$as_me:$LINENO: checking for _doprnt" >&5
39567 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
39568 if test "${ac_cv_func__doprnt+set}" = set; then
39569   echo $ECHO_N "(cached) $ECHO_C" >&6
39570 else
39571   cat >conftest.$ac_ext <<_ACEOF
39572 /* confdefs.h.  */
39573 _ACEOF
39574 cat confdefs.h >>conftest.$ac_ext
39575 cat >>conftest.$ac_ext <<_ACEOF
39576 /* end confdefs.h.  */
39577 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
39578    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39579 #define _doprnt innocuous__doprnt
39580
39581 /* System header to define __stub macros and hopefully few prototypes,
39582     which can conflict with char _doprnt (); below.
39583     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39584     <limits.h> exists even on freestanding compilers.  */
39585
39586 #ifdef __STDC__
39587 # include <limits.h>
39588 #else
39589 # include <assert.h>
39590 #endif
39591
39592 #undef _doprnt
39593
39594 /* Override any GCC internal prototype to avoid an error.
39595    Use char because int might match the return type of a GCC
39596    builtin and then its argument prototype would still apply.  */
39597 #ifdef __cplusplus
39598 extern "C"
39599 #endif
39600 char _doprnt ();
39601 /* The GNU C library defines this for functions which it implements
39602     to always fail with ENOSYS.  Some functions are actually named
39603     something starting with __ and the normal name is an alias.  */
39604 #if defined __stub__doprnt || defined __stub____doprnt
39605 choke me
39606 #endif
39607
39608 int
39609 main ()
39610 {
39611 return _doprnt ();
39612   ;
39613   return 0;
39614 }
39615 _ACEOF
39616 rm -f conftest.$ac_objext conftest$ac_exeext
39617 if { (ac_try="$ac_link"
39618 case "(($ac_try" in
39619   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39620   *) ac_try_echo=$ac_try;;
39621 esac
39622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39623   (eval "$ac_link") 2>conftest.er1
39624   ac_status=$?
39625   grep -v '^ *+' conftest.er1 >conftest.err
39626   rm -f conftest.er1
39627   cat conftest.err >&5
39628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39629   (exit $ac_status); } && {
39630          test -z "$ac_c_werror_flag" ||
39631          test ! -s conftest.err
39632        } && test -s conftest$ac_exeext &&
39633        $as_test_x conftest$ac_exeext; then
39634   ac_cv_func__doprnt=yes
39635 else
39636   echo "$as_me: failed program was:" >&5
39637 sed 's/^/| /' conftest.$ac_ext >&5
39638
39639         ac_cv_func__doprnt=no
39640 fi
39641
39642 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39643       conftest$ac_exeext conftest.$ac_ext
39644 fi
39645 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
39646 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
39647 if test $ac_cv_func__doprnt = yes; then
39648
39649 cat >>confdefs.h <<\_ACEOF
39650 #define HAVE_DOPRNT 1
39651 _ACEOF
39652
39653 fi
39654
39655 fi
39656 done
39657
39658
39659 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
39660 # for constant arguments.  Useless!
39661 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
39662 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
39663 if test "${ac_cv_working_alloca_h+set}" = set; then
39664   echo $ECHO_N "(cached) $ECHO_C" >&6
39665 else
39666   cat >conftest.$ac_ext <<_ACEOF
39667 /* confdefs.h.  */
39668 _ACEOF
39669 cat confdefs.h >>conftest.$ac_ext
39670 cat >>conftest.$ac_ext <<_ACEOF
39671 /* end confdefs.h.  */
39672 #include <alloca.h>
39673 int
39674 main ()
39675 {
39676 char *p = (char *) alloca (2 * sizeof (int));
39677                           if (p) return 0;
39678   ;
39679   return 0;
39680 }
39681 _ACEOF
39682 rm -f conftest.$ac_objext conftest$ac_exeext
39683 if { (ac_try="$ac_link"
39684 case "(($ac_try" in
39685   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39686   *) ac_try_echo=$ac_try;;
39687 esac
39688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39689   (eval "$ac_link") 2>conftest.er1
39690   ac_status=$?
39691   grep -v '^ *+' conftest.er1 >conftest.err
39692   rm -f conftest.er1
39693   cat conftest.err >&5
39694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39695   (exit $ac_status); } && {
39696          test -z "$ac_c_werror_flag" ||
39697          test ! -s conftest.err
39698        } && test -s conftest$ac_exeext &&
39699        $as_test_x conftest$ac_exeext; then
39700   ac_cv_working_alloca_h=yes
39701 else
39702   echo "$as_me: failed program was:" >&5
39703 sed 's/^/| /' conftest.$ac_ext >&5
39704
39705         ac_cv_working_alloca_h=no
39706 fi
39707
39708 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39709       conftest$ac_exeext conftest.$ac_ext
39710 fi
39711 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
39712 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
39713 if test $ac_cv_working_alloca_h = yes; then
39714
39715 cat >>confdefs.h <<\_ACEOF
39716 #define HAVE_ALLOCA_H 1
39717 _ACEOF
39718
39719 fi
39720
39721 { echo "$as_me:$LINENO: checking for alloca" >&5
39722 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
39723 if test "${ac_cv_func_alloca_works+set}" = set; then
39724   echo $ECHO_N "(cached) $ECHO_C" >&6
39725 else
39726   cat >conftest.$ac_ext <<_ACEOF
39727 /* confdefs.h.  */
39728 _ACEOF
39729 cat confdefs.h >>conftest.$ac_ext
39730 cat >>conftest.$ac_ext <<_ACEOF
39731 /* end confdefs.h.  */
39732 #ifdef __GNUC__
39733 # define alloca __builtin_alloca
39734 #else
39735 # ifdef _MSC_VER
39736 #  include <malloc.h>
39737 #  define alloca _alloca
39738 # else
39739 #  ifdef HAVE_ALLOCA_H
39740 #   include <alloca.h>
39741 #  else
39742 #   ifdef _AIX
39743  #pragma alloca
39744 #   else
39745 #    ifndef alloca /* predefined by HP cc +Olibcalls */
39746 char *alloca ();
39747 #    endif
39748 #   endif
39749 #  endif
39750 # endif
39751 #endif
39752
39753 int
39754 main ()
39755 {
39756 char *p = (char *) alloca (1);
39757                                     if (p) return 0;
39758   ;
39759   return 0;
39760 }
39761 _ACEOF
39762 rm -f conftest.$ac_objext conftest$ac_exeext
39763 if { (ac_try="$ac_link"
39764 case "(($ac_try" in
39765   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39766   *) ac_try_echo=$ac_try;;
39767 esac
39768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39769   (eval "$ac_link") 2>conftest.er1
39770   ac_status=$?
39771   grep -v '^ *+' conftest.er1 >conftest.err
39772   rm -f conftest.er1
39773   cat conftest.err >&5
39774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39775   (exit $ac_status); } && {
39776          test -z "$ac_c_werror_flag" ||
39777          test ! -s conftest.err
39778        } && test -s conftest$ac_exeext &&
39779        $as_test_x conftest$ac_exeext; then
39780   ac_cv_func_alloca_works=yes
39781 else
39782   echo "$as_me: failed program was:" >&5
39783 sed 's/^/| /' conftest.$ac_ext >&5
39784
39785         ac_cv_func_alloca_works=no
39786 fi
39787
39788 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39789       conftest$ac_exeext conftest.$ac_ext
39790 fi
39791 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
39792 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
39793
39794 if test $ac_cv_func_alloca_works = yes; then
39795
39796 cat >>confdefs.h <<\_ACEOF
39797 #define HAVE_ALLOCA 1
39798 _ACEOF
39799
39800 else
39801   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
39802 # that cause trouble.  Some versions do not even contain alloca or
39803 # contain a buggy version.  If you still want to use their alloca,
39804 # use ar to extract alloca.o from them instead of compiling alloca.c.
39805
39806 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
39807
39808 cat >>confdefs.h <<\_ACEOF
39809 #define C_ALLOCA 1
39810 _ACEOF
39811
39812
39813 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
39814 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
39815 if test "${ac_cv_os_cray+set}" = set; then
39816   echo $ECHO_N "(cached) $ECHO_C" >&6
39817 else
39818   cat >conftest.$ac_ext <<_ACEOF
39819 /* confdefs.h.  */
39820 _ACEOF
39821 cat confdefs.h >>conftest.$ac_ext
39822 cat >>conftest.$ac_ext <<_ACEOF
39823 /* end confdefs.h.  */
39824 #if defined CRAY && ! defined CRAY2
39825 webecray
39826 #else
39827 wenotbecray
39828 #endif
39829
39830 _ACEOF
39831 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39832   $EGREP "webecray" >/dev/null 2>&1; then
39833   ac_cv_os_cray=yes
39834 else
39835   ac_cv_os_cray=no
39836 fi
39837 rm -f conftest*
39838
39839 fi
39840 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
39841 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
39842 if test $ac_cv_os_cray = yes; then
39843   for ac_func in _getb67 GETB67 getb67; do
39844     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39845 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39846 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39847 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39848   echo $ECHO_N "(cached) $ECHO_C" >&6
39849 else
39850   cat >conftest.$ac_ext <<_ACEOF
39851 /* confdefs.h.  */
39852 _ACEOF
39853 cat confdefs.h >>conftest.$ac_ext
39854 cat >>conftest.$ac_ext <<_ACEOF
39855 /* end confdefs.h.  */
39856 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39857    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39858 #define $ac_func innocuous_$ac_func
39859
39860 /* System header to define __stub macros and hopefully few prototypes,
39861     which can conflict with char $ac_func (); below.
39862     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39863     <limits.h> exists even on freestanding compilers.  */
39864
39865 #ifdef __STDC__
39866 # include <limits.h>
39867 #else
39868 # include <assert.h>
39869 #endif
39870
39871 #undef $ac_func
39872
39873 /* Override any GCC internal prototype to avoid an error.
39874    Use char because int might match the return type of a GCC
39875    builtin and then its argument prototype would still apply.  */
39876 #ifdef __cplusplus
39877 extern "C"
39878 #endif
39879 char $ac_func ();
39880 /* The GNU C library defines this for functions which it implements
39881     to always fail with ENOSYS.  Some functions are actually named
39882     something starting with __ and the normal name is an alias.  */
39883 #if defined __stub_$ac_func || defined __stub___$ac_func
39884 choke me
39885 #endif
39886
39887 int
39888 main ()
39889 {
39890 return $ac_func ();
39891   ;
39892   return 0;
39893 }
39894 _ACEOF
39895 rm -f conftest.$ac_objext conftest$ac_exeext
39896 if { (ac_try="$ac_link"
39897 case "(($ac_try" in
39898   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39899   *) ac_try_echo=$ac_try;;
39900 esac
39901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39902   (eval "$ac_link") 2>conftest.er1
39903   ac_status=$?
39904   grep -v '^ *+' conftest.er1 >conftest.err
39905   rm -f conftest.er1
39906   cat conftest.err >&5
39907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39908   (exit $ac_status); } && {
39909          test -z "$ac_c_werror_flag" ||
39910          test ! -s conftest.err
39911        } && test -s conftest$ac_exeext &&
39912        $as_test_x conftest$ac_exeext; then
39913   eval "$as_ac_var=yes"
39914 else
39915   echo "$as_me: failed program was:" >&5
39916 sed 's/^/| /' conftest.$ac_ext >&5
39917
39918         eval "$as_ac_var=no"
39919 fi
39920
39921 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39922       conftest$ac_exeext conftest.$ac_ext
39923 fi
39924 ac_res=`eval echo '${'$as_ac_var'}'`
39925                { echo "$as_me:$LINENO: result: $ac_res" >&5
39926 echo "${ECHO_T}$ac_res" >&6; }
39927 if test `eval echo '${'$as_ac_var'}'` = yes; then
39928
39929 cat >>confdefs.h <<_ACEOF
39930 #define CRAY_STACKSEG_END $ac_func
39931 _ACEOF
39932
39933     break
39934 fi
39935
39936   done
39937 fi
39938
39939 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
39940 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
39941 if test "${ac_cv_c_stack_direction+set}" = set; then
39942   echo $ECHO_N "(cached) $ECHO_C" >&6
39943 else
39944   if test "$cross_compiling" = yes; then
39945   ac_cv_c_stack_direction=0
39946 else
39947   cat >conftest.$ac_ext <<_ACEOF
39948 /* confdefs.h.  */
39949 _ACEOF
39950 cat confdefs.h >>conftest.$ac_ext
39951 cat >>conftest.$ac_ext <<_ACEOF
39952 /* end confdefs.h.  */
39953 $ac_includes_default
39954 int
39955 find_stack_direction ()
39956 {
39957   static char *addr = 0;
39958   auto char dummy;
39959   if (addr == 0)
39960     {
39961       addr = &dummy;
39962       return find_stack_direction ();
39963     }
39964   else
39965     return (&dummy > addr) ? 1 : -1;
39966 }
39967
39968 int
39969 main ()
39970 {
39971   return find_stack_direction () < 0;
39972 }
39973 _ACEOF
39974 rm -f conftest$ac_exeext
39975 if { (ac_try="$ac_link"
39976 case "(($ac_try" in
39977   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39978   *) ac_try_echo=$ac_try;;
39979 esac
39980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39981   (eval "$ac_link") 2>&5
39982   ac_status=$?
39983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39984   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
39985   { (case "(($ac_try" in
39986   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39987   *) ac_try_echo=$ac_try;;
39988 esac
39989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39990   (eval "$ac_try") 2>&5
39991   ac_status=$?
39992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39993   (exit $ac_status); }; }; then
39994   ac_cv_c_stack_direction=1
39995 else
39996   echo "$as_me: program exited with status $ac_status" >&5
39997 echo "$as_me: failed program was:" >&5
39998 sed 's/^/| /' conftest.$ac_ext >&5
39999
40000 ( exit $ac_status )
40001 ac_cv_c_stack_direction=-1
40002 fi
40003 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
40004 fi
40005
40006
40007 fi
40008 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
40009 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
40010
40011 cat >>confdefs.h <<_ACEOF
40012 #define STACK_DIRECTION $ac_cv_c_stack_direction
40013 _ACEOF
40014
40015
40016 fi
40017
40018 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
40019 # -lseq on Dynix/PTX, -lgen on Unixware.
40020 { echo "$as_me:$LINENO: checking for library containing getmntent" >&5
40021 echo $ECHO_N "checking for library containing getmntent... $ECHO_C" >&6; }
40022 if test "${ac_cv_search_getmntent+set}" = set; then
40023   echo $ECHO_N "(cached) $ECHO_C" >&6
40024 else
40025   ac_func_search_save_LIBS=$LIBS
40026 cat >conftest.$ac_ext <<_ACEOF
40027 /* confdefs.h.  */
40028 _ACEOF
40029 cat confdefs.h >>conftest.$ac_ext
40030 cat >>conftest.$ac_ext <<_ACEOF
40031 /* end confdefs.h.  */
40032
40033 /* Override any GCC internal prototype to avoid an error.
40034    Use char because int might match the return type of a GCC
40035    builtin and then its argument prototype would still apply.  */
40036 #ifdef __cplusplus
40037 extern "C"
40038 #endif
40039 char getmntent ();
40040 int
40041 main ()
40042 {
40043 return getmntent ();
40044   ;
40045   return 0;
40046 }
40047 _ACEOF
40048 for ac_lib in '' sun seq gen; do
40049   if test -z "$ac_lib"; then
40050     ac_res="none required"
40051   else
40052     ac_res=-l$ac_lib
40053     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
40054   fi
40055   rm -f conftest.$ac_objext conftest$ac_exeext
40056 if { (ac_try="$ac_link"
40057 case "(($ac_try" in
40058   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40059   *) ac_try_echo=$ac_try;;
40060 esac
40061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40062   (eval "$ac_link") 2>conftest.er1
40063   ac_status=$?
40064   grep -v '^ *+' conftest.er1 >conftest.err
40065   rm -f conftest.er1
40066   cat conftest.err >&5
40067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40068   (exit $ac_status); } && {
40069          test -z "$ac_c_werror_flag" ||
40070          test ! -s conftest.err
40071        } && test -s conftest$ac_exeext &&
40072        $as_test_x conftest$ac_exeext; then
40073   ac_cv_search_getmntent=$ac_res
40074 else
40075   echo "$as_me: failed program was:" >&5
40076 sed 's/^/| /' conftest.$ac_ext >&5
40077
40078
40079 fi
40080
40081 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40082       conftest$ac_exeext
40083   if test "${ac_cv_search_getmntent+set}" = set; then
40084   break
40085 fi
40086 done
40087 if test "${ac_cv_search_getmntent+set}" = set; then
40088   :
40089 else
40090   ac_cv_search_getmntent=no
40091 fi
40092 rm conftest.$ac_ext
40093 LIBS=$ac_func_search_save_LIBS
40094 fi
40095 { echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5
40096 echo "${ECHO_T}$ac_cv_search_getmntent" >&6; }
40097 ac_res=$ac_cv_search_getmntent
40098 if test "$ac_res" != no; then
40099   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
40100   ac_cv_func_getmntent=yes
40101
40102 cat >>confdefs.h <<\_ACEOF
40103 #define HAVE_GETMNTENT 1
40104 _ACEOF
40105
40106 else
40107   ac_cv_func_getmntent=no
40108 fi
40109
40110
40111 { echo "$as_me:$LINENO: checking whether closedir returns void" >&5
40112 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6; }
40113 if test "${ac_cv_func_closedir_void+set}" = set; then
40114   echo $ECHO_N "(cached) $ECHO_C" >&6
40115 else
40116   if test "$cross_compiling" = yes; then
40117   ac_cv_func_closedir_void=yes
40118 else
40119   cat >conftest.$ac_ext <<_ACEOF
40120 /* confdefs.h.  */
40121 _ACEOF
40122 cat confdefs.h >>conftest.$ac_ext
40123 cat >>conftest.$ac_ext <<_ACEOF
40124 /* end confdefs.h.  */
40125 $ac_includes_default
40126 #include <$ac_header_dirent>
40127 #ifndef __cplusplus
40128 int closedir ();
40129 #endif
40130
40131 int
40132 main ()
40133 {
40134 return closedir (opendir (".")) != 0;
40135   ;
40136   return 0;
40137 }
40138 _ACEOF
40139 rm -f conftest$ac_exeext
40140 if { (ac_try="$ac_link"
40141 case "(($ac_try" in
40142   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40143   *) ac_try_echo=$ac_try;;
40144 esac
40145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40146   (eval "$ac_link") 2>&5
40147   ac_status=$?
40148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40149   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
40150   { (case "(($ac_try" in
40151   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40152   *) ac_try_echo=$ac_try;;
40153 esac
40154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40155   (eval "$ac_try") 2>&5
40156   ac_status=$?
40157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40158   (exit $ac_status); }; }; then
40159   ac_cv_func_closedir_void=no
40160 else
40161   echo "$as_me: program exited with status $ac_status" >&5
40162 echo "$as_me: failed program was:" >&5
40163 sed 's/^/| /' conftest.$ac_ext >&5
40164
40165 ( exit $ac_status )
40166 ac_cv_func_closedir_void=yes
40167 fi
40168 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
40169 fi
40170
40171
40172 fi
40173 { echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
40174 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; }
40175 if test $ac_cv_func_closedir_void = yes; then
40176
40177 cat >>confdefs.h <<\_ACEOF
40178 #define CLOSEDIR_VOID 1
40179 _ACEOF
40180
40181 fi
40182
40183 { echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
40184 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6; }
40185 if test "${ac_cv_func_setpgrp_void+set}" = set; then
40186   echo $ECHO_N "(cached) $ECHO_C" >&6
40187 else
40188   if test "$cross_compiling" = yes; then
40189   { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
40190 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
40191    { (exit 1); exit 1; }; }
40192 else
40193   cat >conftest.$ac_ext <<_ACEOF
40194 /* confdefs.h.  */
40195 _ACEOF
40196 cat confdefs.h >>conftest.$ac_ext
40197 cat >>conftest.$ac_ext <<_ACEOF
40198 /* end confdefs.h.  */
40199 $ac_includes_default
40200 int
40201 main ()
40202 {
40203 /* If this system has a BSD-style setpgrp which takes arguments,
40204   setpgrp(1, 1) will fail with ESRCH and return -1, in that case
40205   exit successfully. */
40206   return setpgrp (1,1) != -1;
40207   ;
40208   return 0;
40209 }
40210 _ACEOF
40211 rm -f conftest$ac_exeext
40212 if { (ac_try="$ac_link"
40213 case "(($ac_try" in
40214   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40215   *) ac_try_echo=$ac_try;;
40216 esac
40217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40218   (eval "$ac_link") 2>&5
40219   ac_status=$?
40220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40221   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
40222   { (case "(($ac_try" in
40223   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40224   *) ac_try_echo=$ac_try;;
40225 esac
40226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40227   (eval "$ac_try") 2>&5
40228   ac_status=$?
40229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40230   (exit $ac_status); }; }; then
40231   ac_cv_func_setpgrp_void=no
40232 else
40233   echo "$as_me: program exited with status $ac_status" >&5
40234 echo "$as_me: failed program was:" >&5
40235 sed 's/^/| /' conftest.$ac_ext >&5
40236
40237 ( exit $ac_status )
40238 ac_cv_func_setpgrp_void=yes
40239 fi
40240 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
40241 fi
40242
40243
40244 fi
40245 { echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
40246 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6; }
40247 if test $ac_cv_func_setpgrp_void = yes; then
40248
40249 cat >>confdefs.h <<\_ACEOF
40250 #define SETPGRP_VOID 1
40251 _ACEOF
40252
40253 fi
40254             # AC_FUNC_FNMATCH    dnl use local version
40255
40256 { echo "$as_me:$LINENO: checking for gettext in -lintl" >&5
40257 echo $ECHO_N "checking for gettext in -lintl... $ECHO_C" >&6; }
40258 if test "${ac_cv_lib_intl_gettext+set}" = set; then
40259   echo $ECHO_N "(cached) $ECHO_C" >&6
40260 else
40261   ac_check_lib_save_LIBS=$LIBS
40262 LIBS="-lintl  $LIBS"
40263 cat >conftest.$ac_ext <<_ACEOF
40264 /* confdefs.h.  */
40265 _ACEOF
40266 cat confdefs.h >>conftest.$ac_ext
40267 cat >>conftest.$ac_ext <<_ACEOF
40268 /* end confdefs.h.  */
40269
40270 /* Override any GCC internal prototype to avoid an error.
40271    Use char because int might match the return type of a GCC
40272    builtin and then its argument prototype would still apply.  */
40273 #ifdef __cplusplus
40274 extern "C"
40275 #endif
40276 char gettext ();
40277 int
40278 main ()
40279 {
40280 return gettext ();
40281   ;
40282   return 0;
40283 }
40284 _ACEOF
40285 rm -f conftest.$ac_objext conftest$ac_exeext
40286 if { (ac_try="$ac_link"
40287 case "(($ac_try" in
40288   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40289   *) ac_try_echo=$ac_try;;
40290 esac
40291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40292   (eval "$ac_link") 2>conftest.er1
40293   ac_status=$?
40294   grep -v '^ *+' conftest.er1 >conftest.err
40295   rm -f conftest.er1
40296   cat conftest.err >&5
40297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40298   (exit $ac_status); } && {
40299          test -z "$ac_c_werror_flag" ||
40300          test ! -s conftest.err
40301        } && test -s conftest$ac_exeext &&
40302        $as_test_x conftest$ac_exeext; then
40303   ac_cv_lib_intl_gettext=yes
40304 else
40305   echo "$as_me: failed program was:" >&5
40306 sed 's/^/| /' conftest.$ac_ext >&5
40307
40308         ac_cv_lib_intl_gettext=no
40309 fi
40310
40311 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40312       conftest$ac_exeext conftest.$ac_ext
40313 LIBS=$ac_check_lib_save_LIBS
40314 fi
40315 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_gettext" >&5
40316 echo "${ECHO_T}$ac_cv_lib_intl_gettext" >&6; }
40317 if test $ac_cv_lib_intl_gettext = yes; then
40318   LIBS="$LIBS -lintl"
40319 fi
40320
40321
40322
40323 { echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
40324 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6; }
40325 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
40326   echo $ECHO_N "(cached) $ECHO_C" >&6
40327 else
40328   ac_check_lib_save_LIBS=$LIBS
40329 LIBS="-lsun  $LIBS"
40330 cat >conftest.$ac_ext <<_ACEOF
40331 /* confdefs.h.  */
40332 _ACEOF
40333 cat confdefs.h >>conftest.$ac_ext
40334 cat >>conftest.$ac_ext <<_ACEOF
40335 /* end confdefs.h.  */
40336
40337 /* Override any GCC internal prototype to avoid an error.
40338    Use char because int might match the return type of a GCC
40339    builtin and then its argument prototype would still apply.  */
40340 #ifdef __cplusplus
40341 extern "C"
40342 #endif
40343 char getpwnam ();
40344 int
40345 main ()
40346 {
40347 return getpwnam ();
40348   ;
40349   return 0;
40350 }
40351 _ACEOF
40352 rm -f conftest.$ac_objext conftest$ac_exeext
40353 if { (ac_try="$ac_link"
40354 case "(($ac_try" in
40355   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40356   *) ac_try_echo=$ac_try;;
40357 esac
40358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40359   (eval "$ac_link") 2>conftest.er1
40360   ac_status=$?
40361   grep -v '^ *+' conftest.er1 >conftest.err
40362   rm -f conftest.er1
40363   cat conftest.err >&5
40364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40365   (exit $ac_status); } && {
40366          test -z "$ac_c_werror_flag" ||
40367          test ! -s conftest.err
40368        } && test -s conftest$ac_exeext &&
40369        $as_test_x conftest$ac_exeext; then
40370   ac_cv_lib_sun_getpwnam=yes
40371 else
40372   echo "$as_me: failed program was:" >&5
40373 sed 's/^/| /' conftest.$ac_ext >&5
40374
40375         ac_cv_lib_sun_getpwnam=no
40376 fi
40377
40378 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40379       conftest$ac_exeext conftest.$ac_ext
40380 LIBS=$ac_check_lib_save_LIBS
40381 fi
40382 { echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
40383 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6; }
40384 if test $ac_cv_lib_sun_getpwnam = yes; then
40385   cat >>confdefs.h <<_ACEOF
40386 #define HAVE_LIBSUN 1
40387 _ACEOF
40388
40389   LIBS="-lsun $LIBS"
40390
40391 fi
40392
40393
40394
40395 for ac_header in zlib.h
40396 do
40397 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
40398 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40399   { echo "$as_me:$LINENO: checking for $ac_header" >&5
40400 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
40401 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40402   echo $ECHO_N "(cached) $ECHO_C" >&6
40403 fi
40404 ac_res=`eval echo '${'$as_ac_Header'}'`
40405                { echo "$as_me:$LINENO: result: $ac_res" >&5
40406 echo "${ECHO_T}$ac_res" >&6; }
40407 else
40408   # Is the header compilable?
40409 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
40410 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
40411 cat >conftest.$ac_ext <<_ACEOF
40412 /* confdefs.h.  */
40413 _ACEOF
40414 cat confdefs.h >>conftest.$ac_ext
40415 cat >>conftest.$ac_ext <<_ACEOF
40416 /* end confdefs.h.  */
40417 $ac_includes_default
40418 #include <$ac_header>
40419 _ACEOF
40420 rm -f conftest.$ac_objext
40421 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
40428   ac_status=$?
40429   grep -v '^ *+' conftest.er1 >conftest.err
40430   rm -f conftest.er1
40431   cat conftest.err >&5
40432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40433   (exit $ac_status); } && {
40434          test -z "$ac_c_werror_flag" ||
40435          test ! -s conftest.err
40436        } && test -s conftest.$ac_objext; then
40437   ac_header_compiler=yes
40438 else
40439   echo "$as_me: failed program was:" >&5
40440 sed 's/^/| /' conftest.$ac_ext >&5
40441
40442         ac_header_compiler=no
40443 fi
40444
40445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40446 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
40447 echo "${ECHO_T}$ac_header_compiler" >&6; }
40448
40449 # Is the header present?
40450 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
40451 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
40452 cat >conftest.$ac_ext <<_ACEOF
40453 /* confdefs.h.  */
40454 _ACEOF
40455 cat confdefs.h >>conftest.$ac_ext
40456 cat >>conftest.$ac_ext <<_ACEOF
40457 /* end confdefs.h.  */
40458 #include <$ac_header>
40459 _ACEOF
40460 if { (ac_try="$ac_cpp conftest.$ac_ext"
40461 case "(($ac_try" in
40462   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40463   *) ac_try_echo=$ac_try;;
40464 esac
40465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40466   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
40467   ac_status=$?
40468   grep -v '^ *+' conftest.er1 >conftest.err
40469   rm -f conftest.er1
40470   cat conftest.err >&5
40471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40472   (exit $ac_status); } >/dev/null && {
40473          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
40474          test ! -s conftest.err
40475        }; then
40476   ac_header_preproc=yes
40477 else
40478   echo "$as_me: failed program was:" >&5
40479 sed 's/^/| /' conftest.$ac_ext >&5
40480
40481   ac_header_preproc=no
40482 fi
40483
40484 rm -f conftest.err conftest.$ac_ext
40485 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
40486 echo "${ECHO_T}$ac_header_preproc" >&6; }
40487
40488 # So?  What about this header?
40489 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
40490   yes:no: )
40491     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
40492 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
40493     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
40494 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
40495     ac_header_preproc=yes
40496     ;;
40497   no:yes:* )
40498     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
40499 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
40500     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
40501 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
40502     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
40503 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
40504     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
40505 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
40506     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
40507 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
40508     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
40509 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
40510
40511     ;;
40512 esac
40513 { echo "$as_me:$LINENO: checking for $ac_header" >&5
40514 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
40515 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40516   echo $ECHO_N "(cached) $ECHO_C" >&6
40517 else
40518   eval "$as_ac_Header=\$ac_header_preproc"
40519 fi
40520 ac_res=`eval echo '${'$as_ac_Header'}'`
40521                { echo "$as_me:$LINENO: result: $ac_res" >&5
40522 echo "${ECHO_T}$ac_res" >&6; }
40523
40524 fi
40525 if test `eval echo '${'$as_ac_Header'}'` = yes; then
40526   cat >>confdefs.h <<_ACEOF
40527 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
40528 _ACEOF
40529
40530 fi
40531
40532 done
40533
40534 { echo "$as_me:$LINENO: checking for deflate in -lz" >&5
40535 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6; }
40536 if test "${ac_cv_lib_z_deflate+set}" = set; then
40537   echo $ECHO_N "(cached) $ECHO_C" >&6
40538 else
40539   ac_check_lib_save_LIBS=$LIBS
40540 LIBS="-lz  $LIBS"
40541 cat >conftest.$ac_ext <<_ACEOF
40542 /* confdefs.h.  */
40543 _ACEOF
40544 cat confdefs.h >>conftest.$ac_ext
40545 cat >>conftest.$ac_ext <<_ACEOF
40546 /* end confdefs.h.  */
40547
40548 /* Override any GCC internal prototype to avoid an error.
40549    Use char because int might match the return type of a GCC
40550    builtin and then its argument prototype would still apply.  */
40551 #ifdef __cplusplus
40552 extern "C"
40553 #endif
40554 char deflate ();
40555 int
40556 main ()
40557 {
40558 return deflate ();
40559   ;
40560   return 0;
40561 }
40562 _ACEOF
40563 rm -f conftest.$ac_objext conftest$ac_exeext
40564 if { (ac_try="$ac_link"
40565 case "(($ac_try" in
40566   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40567   *) ac_try_echo=$ac_try;;
40568 esac
40569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40570   (eval "$ac_link") 2>conftest.er1
40571   ac_status=$?
40572   grep -v '^ *+' conftest.er1 >conftest.err
40573   rm -f conftest.er1
40574   cat conftest.err >&5
40575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40576   (exit $ac_status); } && {
40577          test -z "$ac_c_werror_flag" ||
40578          test ! -s conftest.err
40579        } && test -s conftest$ac_exeext &&
40580        $as_test_x conftest$ac_exeext; then
40581   ac_cv_lib_z_deflate=yes
40582 else
40583   echo "$as_me: failed program was:" >&5
40584 sed 's/^/| /' conftest.$ac_ext >&5
40585
40586         ac_cv_lib_z_deflate=no
40587 fi
40588
40589 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40590       conftest$ac_exeext conftest.$ac_ext
40591 LIBS=$ac_check_lib_save_LIBS
40592 fi
40593 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
40594 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6; }
40595 if test $ac_cv_lib_z_deflate = yes; then
40596   FDLIBS="-lz"
40597 fi
40598
40599 have_zlib=no
40600 if test x$FDLIBS = x-lz; then
40601    cat >>confdefs.h <<\_ACEOF
40602 #define HAVE_LIBZ 1
40603 _ACEOF
40604
40605    have_zlib=yes
40606 fi
40607
40608 support_acl=yes
40609 # Check whether --enable-acl was given.
40610 if test "${enable_acl+set}" = set; then
40611   enableval=$enable_acl;
40612        if test x$enableval = xno; then
40613           support_acl=no
40614        fi
40615
40616
40617 fi
40618
40619
40620 have_acl=no
40621 have_extended_acl=no
40622 if test x$support_acl = xyes; then
40623    if test "${ac_cv_header_sys_acl_h+set}" = set; then
40624   { echo "$as_me:$LINENO: checking for sys/acl.h" >&5
40625 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6; }
40626 if test "${ac_cv_header_sys_acl_h+set}" = set; then
40627   echo $ECHO_N "(cached) $ECHO_C" >&6
40628 fi
40629 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
40630 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6; }
40631 else
40632   # Is the header compilable?
40633 { echo "$as_me:$LINENO: checking sys/acl.h usability" >&5
40634 echo $ECHO_N "checking sys/acl.h usability... $ECHO_C" >&6; }
40635 cat >conftest.$ac_ext <<_ACEOF
40636 /* confdefs.h.  */
40637 _ACEOF
40638 cat confdefs.h >>conftest.$ac_ext
40639 cat >>conftest.$ac_ext <<_ACEOF
40640 /* end confdefs.h.  */
40641 $ac_includes_default
40642 #include <sys/acl.h>
40643 _ACEOF
40644 rm -f conftest.$ac_objext
40645 if { (ac_try="$ac_compile"
40646 case "(($ac_try" in
40647   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40648   *) ac_try_echo=$ac_try;;
40649 esac
40650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40651   (eval "$ac_compile") 2>conftest.er1
40652   ac_status=$?
40653   grep -v '^ *+' conftest.er1 >conftest.err
40654   rm -f conftest.er1
40655   cat conftest.err >&5
40656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40657   (exit $ac_status); } && {
40658          test -z "$ac_c_werror_flag" ||
40659          test ! -s conftest.err
40660        } && test -s conftest.$ac_objext; then
40661   ac_header_compiler=yes
40662 else
40663   echo "$as_me: failed program was:" >&5
40664 sed 's/^/| /' conftest.$ac_ext >&5
40665
40666         ac_header_compiler=no
40667 fi
40668
40669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40670 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
40671 echo "${ECHO_T}$ac_header_compiler" >&6; }
40672
40673 # Is the header present?
40674 { echo "$as_me:$LINENO: checking sys/acl.h presence" >&5
40675 echo $ECHO_N "checking sys/acl.h presence... $ECHO_C" >&6; }
40676 cat >conftest.$ac_ext <<_ACEOF
40677 /* confdefs.h.  */
40678 _ACEOF
40679 cat confdefs.h >>conftest.$ac_ext
40680 cat >>conftest.$ac_ext <<_ACEOF
40681 /* end confdefs.h.  */
40682 #include <sys/acl.h>
40683 _ACEOF
40684 if { (ac_try="$ac_cpp conftest.$ac_ext"
40685 case "(($ac_try" in
40686   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40687   *) ac_try_echo=$ac_try;;
40688 esac
40689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40690   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
40691   ac_status=$?
40692   grep -v '^ *+' conftest.er1 >conftest.err
40693   rm -f conftest.er1
40694   cat conftest.err >&5
40695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40696   (exit $ac_status); } >/dev/null && {
40697          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
40698          test ! -s conftest.err
40699        }; then
40700   ac_header_preproc=yes
40701 else
40702   echo "$as_me: failed program was:" >&5
40703 sed 's/^/| /' conftest.$ac_ext >&5
40704
40705   ac_header_preproc=no
40706 fi
40707
40708 rm -f conftest.err conftest.$ac_ext
40709 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
40710 echo "${ECHO_T}$ac_header_preproc" >&6; }
40711
40712 # So?  What about this header?
40713 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
40714   yes:no: )
40715     { echo "$as_me:$LINENO: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&5
40716 echo "$as_me: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
40717     { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the compiler's result" >&5
40718 echo "$as_me: WARNING: sys/acl.h: proceeding with the compiler's result" >&2;}
40719     ac_header_preproc=yes
40720     ;;
40721   no:yes:* )
40722     { echo "$as_me:$LINENO: WARNING: sys/acl.h: present but cannot be compiled" >&5
40723 echo "$as_me: WARNING: sys/acl.h: present but cannot be compiled" >&2;}
40724     { echo "$as_me:$LINENO: WARNING: sys/acl.h:     check for missing prerequisite headers?" >&5
40725 echo "$as_me: WARNING: sys/acl.h:     check for missing prerequisite headers?" >&2;}
40726     { echo "$as_me:$LINENO: WARNING: sys/acl.h: see the Autoconf documentation" >&5
40727 echo "$as_me: WARNING: sys/acl.h: see the Autoconf documentation" >&2;}
40728     { echo "$as_me:$LINENO: WARNING: sys/acl.h:     section \"Present But Cannot Be Compiled\"" >&5
40729 echo "$as_me: WARNING: sys/acl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
40730     { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
40731 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
40732     { echo "$as_me:$LINENO: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&5
40733 echo "$as_me: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&2;}
40734
40735     ;;
40736 esac
40737 { echo "$as_me:$LINENO: checking for sys/acl.h" >&5
40738 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6; }
40739 if test "${ac_cv_header_sys_acl_h+set}" = set; then
40740   echo $ECHO_N "(cached) $ECHO_C" >&6
40741 else
40742   ac_cv_header_sys_acl_h=$ac_header_preproc
40743 fi
40744 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
40745 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6; }
40746
40747 fi
40748 if test $ac_cv_header_sys_acl_h = yes; then
40749
40750 cat >>confdefs.h <<\_ACEOF
40751 #define HAVE_SYS_ACL_H 1
40752 _ACEOF
40753
40754 fi
40755
40756
40757    { echo "$as_me:$LINENO: checking for acl_get_file" >&5
40758 echo $ECHO_N "checking for acl_get_file... $ECHO_C" >&6; }
40759 if test "${ac_cv_func_acl_get_file+set}" = set; then
40760   echo $ECHO_N "(cached) $ECHO_C" >&6
40761 else
40762   cat >conftest.$ac_ext <<_ACEOF
40763 /* confdefs.h.  */
40764 _ACEOF
40765 cat confdefs.h >>conftest.$ac_ext
40766 cat >>conftest.$ac_ext <<_ACEOF
40767 /* end confdefs.h.  */
40768 /* Define acl_get_file to an innocuous variant, in case <limits.h> declares acl_get_file.
40769    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40770 #define acl_get_file innocuous_acl_get_file
40771
40772 /* System header to define __stub macros and hopefully few prototypes,
40773     which can conflict with char acl_get_file (); below.
40774     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40775     <limits.h> exists even on freestanding compilers.  */
40776
40777 #ifdef __STDC__
40778 # include <limits.h>
40779 #else
40780 # include <assert.h>
40781 #endif
40782
40783 #undef acl_get_file
40784
40785 /* Override any GCC internal prototype to avoid an error.
40786    Use char because int might match the return type of a GCC
40787    builtin and then its argument prototype would still apply.  */
40788 #ifdef __cplusplus
40789 extern "C"
40790 #endif
40791 char acl_get_file ();
40792 /* The GNU C library defines this for functions which it implements
40793     to always fail with ENOSYS.  Some functions are actually named
40794     something starting with __ and the normal name is an alias.  */
40795 #if defined __stub_acl_get_file || defined __stub___acl_get_file
40796 choke me
40797 #endif
40798
40799 int
40800 main ()
40801 {
40802 return acl_get_file ();
40803   ;
40804   return 0;
40805 }
40806 _ACEOF
40807 rm -f conftest.$ac_objext conftest$ac_exeext
40808 if { (ac_try="$ac_link"
40809 case "(($ac_try" in
40810   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40811   *) ac_try_echo=$ac_try;;
40812 esac
40813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40814   (eval "$ac_link") 2>conftest.er1
40815   ac_status=$?
40816   grep -v '^ *+' conftest.er1 >conftest.err
40817   rm -f conftest.er1
40818   cat conftest.err >&5
40819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40820   (exit $ac_status); } && {
40821          test -z "$ac_c_werror_flag" ||
40822          test ! -s conftest.err
40823        } && test -s conftest$ac_exeext &&
40824        $as_test_x conftest$ac_exeext; then
40825   ac_cv_func_acl_get_file=yes
40826 else
40827   echo "$as_me: failed program was:" >&5
40828 sed 's/^/| /' conftest.$ac_ext >&5
40829
40830         ac_cv_func_acl_get_file=no
40831 fi
40832
40833 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40834       conftest$ac_exeext conftest.$ac_ext
40835 fi
40836 { echo "$as_me:$LINENO: result: $ac_cv_func_acl_get_file" >&5
40837 echo "${ECHO_T}$ac_cv_func_acl_get_file" >&6; }
40838 if test $ac_cv_func_acl_get_file = yes; then
40839
40840           have_acl=yes
40841
40842 else
40843
40844           { echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
40845 echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6; }
40846 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
40847   echo $ECHO_N "(cached) $ECHO_C" >&6
40848 else
40849   ac_check_lib_save_LIBS=$LIBS
40850 LIBS="-lacl  $LIBS"
40851 cat >conftest.$ac_ext <<_ACEOF
40852 /* confdefs.h.  */
40853 _ACEOF
40854 cat confdefs.h >>conftest.$ac_ext
40855 cat >>conftest.$ac_ext <<_ACEOF
40856 /* end confdefs.h.  */
40857
40858 /* Override any GCC internal prototype to avoid an error.
40859    Use char because int might match the return type of a GCC
40860    builtin and then its argument prototype would still apply.  */
40861 #ifdef __cplusplus
40862 extern "C"
40863 #endif
40864 char acl_get_file ();
40865 int
40866 main ()
40867 {
40868 return acl_get_file ();
40869   ;
40870   return 0;
40871 }
40872 _ACEOF
40873 rm -f conftest.$ac_objext conftest$ac_exeext
40874 if { (ac_try="$ac_link"
40875 case "(($ac_try" in
40876   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40877   *) ac_try_echo=$ac_try;;
40878 esac
40879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40880   (eval "$ac_link") 2>conftest.er1
40881   ac_status=$?
40882   grep -v '^ *+' conftest.er1 >conftest.err
40883   rm -f conftest.er1
40884   cat conftest.err >&5
40885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40886   (exit $ac_status); } && {
40887          test -z "$ac_c_werror_flag" ||
40888          test ! -s conftest.err
40889        } && test -s conftest$ac_exeext &&
40890        $as_test_x conftest$ac_exeext; then
40891   ac_cv_lib_acl_acl_get_file=yes
40892 else
40893   echo "$as_me: failed program was:" >&5
40894 sed 's/^/| /' conftest.$ac_ext >&5
40895
40896         ac_cv_lib_acl_acl_get_file=no
40897 fi
40898
40899 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40900       conftest$ac_exeext conftest.$ac_ext
40901 LIBS=$ac_check_lib_save_LIBS
40902 fi
40903 { echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
40904 echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6; }
40905 if test $ac_cv_lib_acl_acl_get_file = yes; then
40906
40907                  have_acl=yes;
40908                  FDLIBS="-lacl $FDLIBS"
40909
40910 else
40911
40912                  { echo "$as_me:$LINENO: checking for acl_get_file in -lpacl" >&5
40913 echo $ECHO_N "checking for acl_get_file in -lpacl... $ECHO_C" >&6; }
40914 if test "${ac_cv_lib_pacl_acl_get_file+set}" = set; then
40915   echo $ECHO_N "(cached) $ECHO_C" >&6
40916 else
40917   ac_check_lib_save_LIBS=$LIBS
40918 LIBS="-lpacl  $LIBS"
40919 cat >conftest.$ac_ext <<_ACEOF
40920 /* confdefs.h.  */
40921 _ACEOF
40922 cat confdefs.h >>conftest.$ac_ext
40923 cat >>conftest.$ac_ext <<_ACEOF
40924 /* end confdefs.h.  */
40925
40926 /* Override any GCC internal prototype to avoid an error.
40927    Use char because int might match the return type of a GCC
40928    builtin and then its argument prototype would still apply.  */
40929 #ifdef __cplusplus
40930 extern "C"
40931 #endif
40932 char acl_get_file ();
40933 int
40934 main ()
40935 {
40936 return acl_get_file ();
40937   ;
40938   return 0;
40939 }
40940 _ACEOF
40941 rm -f conftest.$ac_objext conftest$ac_exeext
40942 if { (ac_try="$ac_link"
40943 case "(($ac_try" in
40944   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40945   *) ac_try_echo=$ac_try;;
40946 esac
40947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40948   (eval "$ac_link") 2>conftest.er1
40949   ac_status=$?
40950   grep -v '^ *+' conftest.er1 >conftest.err
40951   rm -f conftest.er1
40952   cat conftest.err >&5
40953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40954   (exit $ac_status); } && {
40955          test -z "$ac_c_werror_flag" ||
40956          test ! -s conftest.err
40957        } && test -s conftest$ac_exeext &&
40958        $as_test_x conftest$ac_exeext; then
40959   ac_cv_lib_pacl_acl_get_file=yes
40960 else
40961   echo "$as_me: failed program was:" >&5
40962 sed 's/^/| /' conftest.$ac_ext >&5
40963
40964         ac_cv_lib_pacl_acl_get_file=no
40965 fi
40966
40967 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40968       conftest$ac_exeext conftest.$ac_ext
40969 LIBS=$ac_check_lib_save_LIBS
40970 fi
40971 { echo "$as_me:$LINENO: result: $ac_cv_lib_pacl_acl_get_file" >&5
40972 echo "${ECHO_T}$ac_cv_lib_pacl_acl_get_file" >&6; }
40973 if test $ac_cv_lib_pacl_acl_get_file = yes; then
40974
40975                         have_acl=yes;
40976                         FDLIBS="-lpacl $FDLIBS"
40977
40978 else
40979
40980                         { echo "$as_me:$LINENO: checking for acltotext in -lsec" >&5
40981 echo $ECHO_N "checking for acltotext in -lsec... $ECHO_C" >&6; }
40982 if test "${ac_cv_lib_sec_acltotext+set}" = set; then
40983   echo $ECHO_N "(cached) $ECHO_C" >&6
40984 else
40985   ac_check_lib_save_LIBS=$LIBS
40986 LIBS="-lsec  $LIBS"
40987 cat >conftest.$ac_ext <<_ACEOF
40988 /* confdefs.h.  */
40989 _ACEOF
40990 cat confdefs.h >>conftest.$ac_ext
40991 cat >>conftest.$ac_ext <<_ACEOF
40992 /* end confdefs.h.  */
40993
40994 /* Override any GCC internal prototype to avoid an error.
40995    Use char because int might match the return type of a GCC
40996    builtin and then its argument prototype would still apply.  */
40997 #ifdef __cplusplus
40998 extern "C"
40999 #endif
41000 char acltotext ();
41001 int
41002 main ()
41003 {
41004 return acltotext ();
41005   ;
41006   return 0;
41007 }
41008 _ACEOF
41009 rm -f conftest.$ac_objext conftest$ac_exeext
41010 if { (ac_try="$ac_link"
41011 case "(($ac_try" in
41012   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41013   *) ac_try_echo=$ac_try;;
41014 esac
41015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41016   (eval "$ac_link") 2>conftest.er1
41017   ac_status=$?
41018   grep -v '^ *+' conftest.er1 >conftest.err
41019   rm -f conftest.er1
41020   cat conftest.err >&5
41021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41022   (exit $ac_status); } && {
41023          test -z "$ac_c_werror_flag" ||
41024          test ! -s conftest.err
41025        } && test -s conftest$ac_exeext &&
41026        $as_test_x conftest$ac_exeext; then
41027   ac_cv_lib_sec_acltotext=yes
41028 else
41029   echo "$as_me: failed program was:" >&5
41030 sed 's/^/| /' conftest.$ac_ext >&5
41031
41032         ac_cv_lib_sec_acltotext=no
41033 fi
41034
41035 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41036       conftest$ac_exeext conftest.$ac_ext
41037 LIBS=$ac_check_lib_save_LIBS
41038 fi
41039 { echo "$as_me:$LINENO: result: $ac_cv_lib_sec_acltotext" >&5
41040 echo "${ECHO_T}$ac_cv_lib_sec_acltotext" >&6; }
41041 if test $ac_cv_lib_sec_acltotext = yes; then
41042
41043                                have_acl=yes;
41044                                FDLIBS="-lsec $FDLIBS"
41045
41046                                { echo "$as_me:$LINENO: checking for acl_totext in -lsec" >&5
41047 echo $ECHO_N "checking for acl_totext in -lsec... $ECHO_C" >&6; }
41048 if test "${ac_cv_lib_sec_acl_totext+set}" = set; then
41049   echo $ECHO_N "(cached) $ECHO_C" >&6
41050 else
41051   ac_check_lib_save_LIBS=$LIBS
41052 LIBS="-lsec  $LIBS"
41053 cat >conftest.$ac_ext <<_ACEOF
41054 /* confdefs.h.  */
41055 _ACEOF
41056 cat confdefs.h >>conftest.$ac_ext
41057 cat >>conftest.$ac_ext <<_ACEOF
41058 /* end confdefs.h.  */
41059
41060 /* Override any GCC internal prototype to avoid an error.
41061    Use char because int might match the return type of a GCC
41062    builtin and then its argument prototype would still apply.  */
41063 #ifdef __cplusplus
41064 extern "C"
41065 #endif
41066 char acl_totext ();
41067 int
41068 main ()
41069 {
41070 return acl_totext ();
41071   ;
41072   return 0;
41073 }
41074 _ACEOF
41075 rm -f conftest.$ac_objext conftest$ac_exeext
41076 if { (ac_try="$ac_link"
41077 case "(($ac_try" in
41078   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41079   *) ac_try_echo=$ac_try;;
41080 esac
41081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41082   (eval "$ac_link") 2>conftest.er1
41083   ac_status=$?
41084   grep -v '^ *+' conftest.er1 >conftest.err
41085   rm -f conftest.er1
41086   cat conftest.err >&5
41087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41088   (exit $ac_status); } && {
41089          test -z "$ac_c_werror_flag" ||
41090          test ! -s conftest.err
41091        } && test -s conftest$ac_exeext &&
41092        $as_test_x conftest$ac_exeext; then
41093   ac_cv_lib_sec_acl_totext=yes
41094 else
41095   echo "$as_me: failed program was:" >&5
41096 sed 's/^/| /' conftest.$ac_ext >&5
41097
41098         ac_cv_lib_sec_acl_totext=no
41099 fi
41100
41101 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41102       conftest$ac_exeext conftest.$ac_ext
41103 LIBS=$ac_check_lib_save_LIBS
41104 fi
41105 { echo "$as_me:$LINENO: result: $ac_cv_lib_sec_acl_totext" >&5
41106 echo "${ECHO_T}$ac_cv_lib_sec_acl_totext" >&6; }
41107 if test $ac_cv_lib_sec_acl_totext = yes; then
41108
41109                                       have_extended_acl=yes
41110
41111
41112 fi
41113
41114
41115
41116 fi
41117
41118
41119
41120 fi
41121
41122
41123
41124 fi
41125
41126
41127
41128 fi
41129
41130    if test $have_acl = yes; then
41131
41132 cat >>confdefs.h <<\_ACEOF
41133 #define HAVE_ACL
41134 _ACEOF
41135
41136    fi
41137
41138    if test $have_extended_acl = yes; then
41139
41140 cat >>confdefs.h <<\_ACEOF
41141 #define HAVE_EXTENDED_ACL
41142 _ACEOF
41143
41144    fi
41145 fi
41146
41147 support_xattr=yes
41148 # Check whether --enable-xattr was given.
41149 if test "${enable_xattr+set}" = set; then
41150   enableval=$enable_xattr;
41151        if test x$enableval = xno; then
41152           support_xattr=no
41153        fi
41154
41155
41156 fi
41157
41158
41159 have_xattr=no
41160 if test x$support_xattr = xyes; then
41161    if test "${ac_cv_header_sys_xattr_h+set}" = set; then
41162   { echo "$as_me:$LINENO: checking for sys/xattr.h" >&5
41163 echo $ECHO_N "checking for sys/xattr.h... $ECHO_C" >&6; }
41164 if test "${ac_cv_header_sys_xattr_h+set}" = set; then
41165   echo $ECHO_N "(cached) $ECHO_C" >&6
41166 fi
41167 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_xattr_h" >&5
41168 echo "${ECHO_T}$ac_cv_header_sys_xattr_h" >&6; }
41169 else
41170   # Is the header compilable?
41171 { echo "$as_me:$LINENO: checking sys/xattr.h usability" >&5
41172 echo $ECHO_N "checking sys/xattr.h usability... $ECHO_C" >&6; }
41173 cat >conftest.$ac_ext <<_ACEOF
41174 /* confdefs.h.  */
41175 _ACEOF
41176 cat confdefs.h >>conftest.$ac_ext
41177 cat >>conftest.$ac_ext <<_ACEOF
41178 /* end confdefs.h.  */
41179 $ac_includes_default
41180 #include <sys/xattr.h>
41181 _ACEOF
41182 rm -f conftest.$ac_objext
41183 if { (ac_try="$ac_compile"
41184 case "(($ac_try" in
41185   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41186   *) ac_try_echo=$ac_try;;
41187 esac
41188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41189   (eval "$ac_compile") 2>conftest.er1
41190   ac_status=$?
41191   grep -v '^ *+' conftest.er1 >conftest.err
41192   rm -f conftest.er1
41193   cat conftest.err >&5
41194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41195   (exit $ac_status); } && {
41196          test -z "$ac_c_werror_flag" ||
41197          test ! -s conftest.err
41198        } && test -s conftest.$ac_objext; then
41199   ac_header_compiler=yes
41200 else
41201   echo "$as_me: failed program was:" >&5
41202 sed 's/^/| /' conftest.$ac_ext >&5
41203
41204         ac_header_compiler=no
41205 fi
41206
41207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41208 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
41209 echo "${ECHO_T}$ac_header_compiler" >&6; }
41210
41211 # Is the header present?
41212 { echo "$as_me:$LINENO: checking sys/xattr.h presence" >&5
41213 echo $ECHO_N "checking sys/xattr.h presence... $ECHO_C" >&6; }
41214 cat >conftest.$ac_ext <<_ACEOF
41215 /* confdefs.h.  */
41216 _ACEOF
41217 cat confdefs.h >>conftest.$ac_ext
41218 cat >>conftest.$ac_ext <<_ACEOF
41219 /* end confdefs.h.  */
41220 #include <sys/xattr.h>
41221 _ACEOF
41222 if { (ac_try="$ac_cpp conftest.$ac_ext"
41223 case "(($ac_try" in
41224   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41225   *) ac_try_echo=$ac_try;;
41226 esac
41227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41228   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
41229   ac_status=$?
41230   grep -v '^ *+' conftest.er1 >conftest.err
41231   rm -f conftest.er1
41232   cat conftest.err >&5
41233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41234   (exit $ac_status); } >/dev/null && {
41235          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
41236          test ! -s conftest.err
41237        }; then
41238   ac_header_preproc=yes
41239 else
41240   echo "$as_me: failed program was:" >&5
41241 sed 's/^/| /' conftest.$ac_ext >&5
41242
41243   ac_header_preproc=no
41244 fi
41245
41246 rm -f conftest.err conftest.$ac_ext
41247 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
41248 echo "${ECHO_T}$ac_header_preproc" >&6; }
41249
41250 # So?  What about this header?
41251 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
41252   yes:no: )
41253     { echo "$as_me:$LINENO: WARNING: sys/xattr.h: accepted by the compiler, rejected by the preprocessor!" >&5
41254 echo "$as_me: WARNING: sys/xattr.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
41255     { echo "$as_me:$LINENO: WARNING: sys/xattr.h: proceeding with the compiler's result" >&5
41256 echo "$as_me: WARNING: sys/xattr.h: proceeding with the compiler's result" >&2;}
41257     ac_header_preproc=yes
41258     ;;
41259   no:yes:* )
41260     { echo "$as_me:$LINENO: WARNING: sys/xattr.h: present but cannot be compiled" >&5
41261 echo "$as_me: WARNING: sys/xattr.h: present but cannot be compiled" >&2;}
41262     { echo "$as_me:$LINENO: WARNING: sys/xattr.h:     check for missing prerequisite headers?" >&5
41263 echo "$as_me: WARNING: sys/xattr.h:     check for missing prerequisite headers?" >&2;}
41264     { echo "$as_me:$LINENO: WARNING: sys/xattr.h: see the Autoconf documentation" >&5
41265 echo "$as_me: WARNING: sys/xattr.h: see the Autoconf documentation" >&2;}
41266     { echo "$as_me:$LINENO: WARNING: sys/xattr.h:     section \"Present But Cannot Be Compiled\"" >&5
41267 echo "$as_me: WARNING: sys/xattr.h:     section \"Present But Cannot Be Compiled\"" >&2;}
41268     { echo "$as_me:$LINENO: WARNING: sys/xattr.h: proceeding with the preprocessor's result" >&5
41269 echo "$as_me: WARNING: sys/xattr.h: proceeding with the preprocessor's result" >&2;}
41270     { echo "$as_me:$LINENO: WARNING: sys/xattr.h: in the future, the compiler will take precedence" >&5
41271 echo "$as_me: WARNING: sys/xattr.h: in the future, the compiler will take precedence" >&2;}
41272
41273     ;;
41274 esac
41275 { echo "$as_me:$LINENO: checking for sys/xattr.h" >&5
41276 echo $ECHO_N "checking for sys/xattr.h... $ECHO_C" >&6; }
41277 if test "${ac_cv_header_sys_xattr_h+set}" = set; then
41278   echo $ECHO_N "(cached) $ECHO_C" >&6
41279 else
41280   ac_cv_header_sys_xattr_h=$ac_header_preproc
41281 fi
41282 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_xattr_h" >&5
41283 echo "${ECHO_T}$ac_cv_header_sys_xattr_h" >&6; }
41284
41285 fi
41286 if test $ac_cv_header_sys_xattr_h = yes; then
41287
41288 cat >>confdefs.h <<\_ACEOF
41289 #define HAVE_SYS_XATTR_H 1
41290 _ACEOF
41291
41292 fi
41293
41294
41295
41296
41297
41298 for ac_func in llistxattr lgetxattr lsetxattr
41299 do
41300 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41301 { echo "$as_me:$LINENO: checking for $ac_func" >&5
41302 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
41303 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41304   echo $ECHO_N "(cached) $ECHO_C" >&6
41305 else
41306   cat >conftest.$ac_ext <<_ACEOF
41307 /* confdefs.h.  */
41308 _ACEOF
41309 cat confdefs.h >>conftest.$ac_ext
41310 cat >>conftest.$ac_ext <<_ACEOF
41311 /* end confdefs.h.  */
41312 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41313    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41314 #define $ac_func innocuous_$ac_func
41315
41316 /* System header to define __stub macros and hopefully few prototypes,
41317     which can conflict with char $ac_func (); below.
41318     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41319     <limits.h> exists even on freestanding compilers.  */
41320
41321 #ifdef __STDC__
41322 # include <limits.h>
41323 #else
41324 # include <assert.h>
41325 #endif
41326
41327 #undef $ac_func
41328
41329 /* Override any GCC internal prototype to avoid an error.
41330    Use char because int might match the return type of a GCC
41331    builtin and then its argument prototype would still apply.  */
41332 #ifdef __cplusplus
41333 extern "C"
41334 #endif
41335 char $ac_func ();
41336 /* The GNU C library defines this for functions which it implements
41337     to always fail with ENOSYS.  Some functions are actually named
41338     something starting with __ and the normal name is an alias.  */
41339 #if defined __stub_$ac_func || defined __stub___$ac_func
41340 choke me
41341 #endif
41342
41343 int
41344 main ()
41345 {
41346 return $ac_func ();
41347   ;
41348   return 0;
41349 }
41350 _ACEOF
41351 rm -f conftest.$ac_objext conftest$ac_exeext
41352 if { (ac_try="$ac_link"
41353 case "(($ac_try" in
41354   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41355   *) ac_try_echo=$ac_try;;
41356 esac
41357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41358   (eval "$ac_link") 2>conftest.er1
41359   ac_status=$?
41360   grep -v '^ *+' conftest.er1 >conftest.err
41361   rm -f conftest.er1
41362   cat conftest.err >&5
41363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41364   (exit $ac_status); } && {
41365          test -z "$ac_c_werror_flag" ||
41366          test ! -s conftest.err
41367        } && test -s conftest$ac_exeext &&
41368        $as_test_x conftest$ac_exeext; then
41369   eval "$as_ac_var=yes"
41370 else
41371   echo "$as_me: failed program was:" >&5
41372 sed 's/^/| /' conftest.$ac_ext >&5
41373
41374         eval "$as_ac_var=no"
41375 fi
41376
41377 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41378       conftest$ac_exeext conftest.$ac_ext
41379 fi
41380 ac_res=`eval echo '${'$as_ac_var'}'`
41381                { echo "$as_me:$LINENO: result: $ac_res" >&5
41382 echo "${ECHO_T}$ac_res" >&6; }
41383 if test `eval echo '${'$as_ac_var'}'` = yes; then
41384   cat >>confdefs.h <<_ACEOF
41385 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41386 _ACEOF
41387
41388           have_xattr=yes
41389
41390 cat >>confdefs.h <<\_ACEOF
41391 #define HAVE_LLISTXATTR
41392 _ACEOF
41393
41394
41395 cat >>confdefs.h <<\_ACEOF
41396 #define HAVE_LGETXATTR
41397 _ACEOF
41398
41399
41400 cat >>confdefs.h <<\_ACEOF
41401 #define HAVE_LSETXATTR
41402 _ACEOF
41403
41404
41405
41406 fi
41407 done
41408
41409
41410    #
41411    # OSX specific
41412    #
41413    if test $have_xattr = no; then
41414
41415
41416
41417 for ac_func in listxattr getxattr setxattr
41418 do
41419 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41420 { echo "$as_me:$LINENO: checking for $ac_func" >&5
41421 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
41422 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41423   echo $ECHO_N "(cached) $ECHO_C" >&6
41424 else
41425   cat >conftest.$ac_ext <<_ACEOF
41426 /* confdefs.h.  */
41427 _ACEOF
41428 cat confdefs.h >>conftest.$ac_ext
41429 cat >>conftest.$ac_ext <<_ACEOF
41430 /* end confdefs.h.  */
41431 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41432    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41433 #define $ac_func innocuous_$ac_func
41434
41435 /* System header to define __stub macros and hopefully few prototypes,
41436     which can conflict with char $ac_func (); below.
41437     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41438     <limits.h> exists even on freestanding compilers.  */
41439
41440 #ifdef __STDC__
41441 # include <limits.h>
41442 #else
41443 # include <assert.h>
41444 #endif
41445
41446 #undef $ac_func
41447
41448 /* Override any GCC internal prototype to avoid an error.
41449    Use char because int might match the return type of a GCC
41450    builtin and then its argument prototype would still apply.  */
41451 #ifdef __cplusplus
41452 extern "C"
41453 #endif
41454 char $ac_func ();
41455 /* The GNU C library defines this for functions which it implements
41456     to always fail with ENOSYS.  Some functions are actually named
41457     something starting with __ and the normal name is an alias.  */
41458 #if defined __stub_$ac_func || defined __stub___$ac_func
41459 choke me
41460 #endif
41461
41462 int
41463 main ()
41464 {
41465 return $ac_func ();
41466   ;
41467   return 0;
41468 }
41469 _ACEOF
41470 rm -f conftest.$ac_objext conftest$ac_exeext
41471 if { (ac_try="$ac_link"
41472 case "(($ac_try" in
41473   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41474   *) ac_try_echo=$ac_try;;
41475 esac
41476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41477   (eval "$ac_link") 2>conftest.er1
41478   ac_status=$?
41479   grep -v '^ *+' conftest.er1 >conftest.err
41480   rm -f conftest.er1
41481   cat conftest.err >&5
41482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41483   (exit $ac_status); } && {
41484          test -z "$ac_c_werror_flag" ||
41485          test ! -s conftest.err
41486        } && test -s conftest$ac_exeext &&
41487        $as_test_x conftest$ac_exeext; then
41488   eval "$as_ac_var=yes"
41489 else
41490   echo "$as_me: failed program was:" >&5
41491 sed 's/^/| /' conftest.$ac_ext >&5
41492
41493         eval "$as_ac_var=no"
41494 fi
41495
41496 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41497       conftest$ac_exeext conftest.$ac_ext
41498 fi
41499 ac_res=`eval echo '${'$as_ac_var'}'`
41500                { echo "$as_me:$LINENO: result: $ac_res" >&5
41501 echo "${ECHO_T}$ac_res" >&6; }
41502 if test `eval echo '${'$as_ac_var'}'` = yes; then
41503   cat >>confdefs.h <<_ACEOF
41504 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41505 _ACEOF
41506
41507              have_xattr=yes
41508
41509 cat >>confdefs.h <<\_ACEOF
41510 #define HAVE_LLISTXATTR
41511 _ACEOF
41512
41513
41514 cat >>confdefs.h <<\_ACEOF
41515 #define HAVE_LGETXATTR
41516 _ACEOF
41517
41518
41519 cat >>confdefs.h <<\_ACEOF
41520 #define HAVE_LSETXATTR
41521 _ACEOF
41522
41523
41524
41525 fi
41526 done
41527
41528    fi
41529
41530    #
41531    # Solaris specific
41532    #
41533    if test $have_xattr = no; then
41534       if test "${ac_cv_header_sys_attr_h+set}" = set; then
41535   { echo "$as_me:$LINENO: checking for sys/attr.h" >&5
41536 echo $ECHO_N "checking for sys/attr.h... $ECHO_C" >&6; }
41537 if test "${ac_cv_header_sys_attr_h+set}" = set; then
41538   echo $ECHO_N "(cached) $ECHO_C" >&6
41539 fi
41540 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_attr_h" >&5
41541 echo "${ECHO_T}$ac_cv_header_sys_attr_h" >&6; }
41542 else
41543   # Is the header compilable?
41544 { echo "$as_me:$LINENO: checking sys/attr.h usability" >&5
41545 echo $ECHO_N "checking sys/attr.h usability... $ECHO_C" >&6; }
41546 cat >conftest.$ac_ext <<_ACEOF
41547 /* confdefs.h.  */
41548 _ACEOF
41549 cat confdefs.h >>conftest.$ac_ext
41550 cat >>conftest.$ac_ext <<_ACEOF
41551 /* end confdefs.h.  */
41552 $ac_includes_default
41553 #include <sys/attr.h>
41554 _ACEOF
41555 rm -f conftest.$ac_objext
41556 if { (ac_try="$ac_compile"
41557 case "(($ac_try" in
41558   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41559   *) ac_try_echo=$ac_try;;
41560 esac
41561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41562   (eval "$ac_compile") 2>conftest.er1
41563   ac_status=$?
41564   grep -v '^ *+' conftest.er1 >conftest.err
41565   rm -f conftest.er1
41566   cat conftest.err >&5
41567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41568   (exit $ac_status); } && {
41569          test -z "$ac_c_werror_flag" ||
41570          test ! -s conftest.err
41571        } && test -s conftest.$ac_objext; then
41572   ac_header_compiler=yes
41573 else
41574   echo "$as_me: failed program was:" >&5
41575 sed 's/^/| /' conftest.$ac_ext >&5
41576
41577         ac_header_compiler=no
41578 fi
41579
41580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41581 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
41582 echo "${ECHO_T}$ac_header_compiler" >&6; }
41583
41584 # Is the header present?
41585 { echo "$as_me:$LINENO: checking sys/attr.h presence" >&5
41586 echo $ECHO_N "checking sys/attr.h presence... $ECHO_C" >&6; }
41587 cat >conftest.$ac_ext <<_ACEOF
41588 /* confdefs.h.  */
41589 _ACEOF
41590 cat confdefs.h >>conftest.$ac_ext
41591 cat >>conftest.$ac_ext <<_ACEOF
41592 /* end confdefs.h.  */
41593 #include <sys/attr.h>
41594 _ACEOF
41595 if { (ac_try="$ac_cpp conftest.$ac_ext"
41596 case "(($ac_try" in
41597   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41598   *) ac_try_echo=$ac_try;;
41599 esac
41600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41601   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
41602   ac_status=$?
41603   grep -v '^ *+' conftest.er1 >conftest.err
41604   rm -f conftest.er1
41605   cat conftest.err >&5
41606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41607   (exit $ac_status); } >/dev/null && {
41608          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
41609          test ! -s conftest.err
41610        }; then
41611   ac_header_preproc=yes
41612 else
41613   echo "$as_me: failed program was:" >&5
41614 sed 's/^/| /' conftest.$ac_ext >&5
41615
41616   ac_header_preproc=no
41617 fi
41618
41619 rm -f conftest.err conftest.$ac_ext
41620 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
41621 echo "${ECHO_T}$ac_header_preproc" >&6; }
41622
41623 # So?  What about this header?
41624 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
41625   yes:no: )
41626     { echo "$as_me:$LINENO: WARNING: sys/attr.h: accepted by the compiler, rejected by the preprocessor!" >&5
41627 echo "$as_me: WARNING: sys/attr.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
41628     { echo "$as_me:$LINENO: WARNING: sys/attr.h: proceeding with the compiler's result" >&5
41629 echo "$as_me: WARNING: sys/attr.h: proceeding with the compiler's result" >&2;}
41630     ac_header_preproc=yes
41631     ;;
41632   no:yes:* )
41633     { echo "$as_me:$LINENO: WARNING: sys/attr.h: present but cannot be compiled" >&5
41634 echo "$as_me: WARNING: sys/attr.h: present but cannot be compiled" >&2;}
41635     { echo "$as_me:$LINENO: WARNING: sys/attr.h:     check for missing prerequisite headers?" >&5
41636 echo "$as_me: WARNING: sys/attr.h:     check for missing prerequisite headers?" >&2;}
41637     { echo "$as_me:$LINENO: WARNING: sys/attr.h: see the Autoconf documentation" >&5
41638 echo "$as_me: WARNING: sys/attr.h: see the Autoconf documentation" >&2;}
41639     { echo "$as_me:$LINENO: WARNING: sys/attr.h:     section \"Present But Cannot Be Compiled\"" >&5
41640 echo "$as_me: WARNING: sys/attr.h:     section \"Present But Cannot Be Compiled\"" >&2;}
41641     { echo "$as_me:$LINENO: WARNING: sys/attr.h: proceeding with the preprocessor's result" >&5
41642 echo "$as_me: WARNING: sys/attr.h: proceeding with the preprocessor's result" >&2;}
41643     { echo "$as_me:$LINENO: WARNING: sys/attr.h: in the future, the compiler will take precedence" >&5
41644 echo "$as_me: WARNING: sys/attr.h: in the future, the compiler will take precedence" >&2;}
41645
41646     ;;
41647 esac
41648 { echo "$as_me:$LINENO: checking for sys/attr.h" >&5
41649 echo $ECHO_N "checking for sys/attr.h... $ECHO_C" >&6; }
41650 if test "${ac_cv_header_sys_attr_h+set}" = set; then
41651   echo $ECHO_N "(cached) $ECHO_C" >&6
41652 else
41653   ac_cv_header_sys_attr_h=$ac_header_preproc
41654 fi
41655 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_attr_h" >&5
41656 echo "${ECHO_T}$ac_cv_header_sys_attr_h" >&6; }
41657
41658 fi
41659 if test $ac_cv_header_sys_attr_h = yes; then
41660
41661 cat >>confdefs.h <<\_ACEOF
41662 #define HAVE_SYS_ATTR_H 1
41663 _ACEOF
41664
41665 fi
41666
41667
41668       if test "${ac_cv_header_sys_nvpair_h+set}" = set; then
41669   { echo "$as_me:$LINENO: checking for sys/nvpair.h" >&5
41670 echo $ECHO_N "checking for sys/nvpair.h... $ECHO_C" >&6; }
41671 if test "${ac_cv_header_sys_nvpair_h+set}" = set; then
41672   echo $ECHO_N "(cached) $ECHO_C" >&6
41673 fi
41674 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_nvpair_h" >&5
41675 echo "${ECHO_T}$ac_cv_header_sys_nvpair_h" >&6; }
41676 else
41677   # Is the header compilable?
41678 { echo "$as_me:$LINENO: checking sys/nvpair.h usability" >&5
41679 echo $ECHO_N "checking sys/nvpair.h usability... $ECHO_C" >&6; }
41680 cat >conftest.$ac_ext <<_ACEOF
41681 /* confdefs.h.  */
41682 _ACEOF
41683 cat confdefs.h >>conftest.$ac_ext
41684 cat >>conftest.$ac_ext <<_ACEOF
41685 /* end confdefs.h.  */
41686 $ac_includes_default
41687 #include <sys/nvpair.h>
41688 _ACEOF
41689 rm -f conftest.$ac_objext
41690 if { (ac_try="$ac_compile"
41691 case "(($ac_try" in
41692   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41693   *) ac_try_echo=$ac_try;;
41694 esac
41695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41696   (eval "$ac_compile") 2>conftest.er1
41697   ac_status=$?
41698   grep -v '^ *+' conftest.er1 >conftest.err
41699   rm -f conftest.er1
41700   cat conftest.err >&5
41701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41702   (exit $ac_status); } && {
41703          test -z "$ac_c_werror_flag" ||
41704          test ! -s conftest.err
41705        } && test -s conftest.$ac_objext; then
41706   ac_header_compiler=yes
41707 else
41708   echo "$as_me: failed program was:" >&5
41709 sed 's/^/| /' conftest.$ac_ext >&5
41710
41711         ac_header_compiler=no
41712 fi
41713
41714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41715 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
41716 echo "${ECHO_T}$ac_header_compiler" >&6; }
41717
41718 # Is the header present?
41719 { echo "$as_me:$LINENO: checking sys/nvpair.h presence" >&5
41720 echo $ECHO_N "checking sys/nvpair.h presence... $ECHO_C" >&6; }
41721 cat >conftest.$ac_ext <<_ACEOF
41722 /* confdefs.h.  */
41723 _ACEOF
41724 cat confdefs.h >>conftest.$ac_ext
41725 cat >>conftest.$ac_ext <<_ACEOF
41726 /* end confdefs.h.  */
41727 #include <sys/nvpair.h>
41728 _ACEOF
41729 if { (ac_try="$ac_cpp conftest.$ac_ext"
41730 case "(($ac_try" in
41731   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41732   *) ac_try_echo=$ac_try;;
41733 esac
41734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41735   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
41736   ac_status=$?
41737   grep -v '^ *+' conftest.er1 >conftest.err
41738   rm -f conftest.er1
41739   cat conftest.err >&5
41740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41741   (exit $ac_status); } >/dev/null && {
41742          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
41743          test ! -s conftest.err
41744        }; then
41745   ac_header_preproc=yes
41746 else
41747   echo "$as_me: failed program was:" >&5
41748 sed 's/^/| /' conftest.$ac_ext >&5
41749
41750   ac_header_preproc=no
41751 fi
41752
41753 rm -f conftest.err conftest.$ac_ext
41754 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
41755 echo "${ECHO_T}$ac_header_preproc" >&6; }
41756
41757 # So?  What about this header?
41758 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
41759   yes:no: )
41760     { echo "$as_me:$LINENO: WARNING: sys/nvpair.h: accepted by the compiler, rejected by the preprocessor!" >&5
41761 echo "$as_me: WARNING: sys/nvpair.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
41762     { echo "$as_me:$LINENO: WARNING: sys/nvpair.h: proceeding with the compiler's result" >&5
41763 echo "$as_me: WARNING: sys/nvpair.h: proceeding with the compiler's result" >&2;}
41764     ac_header_preproc=yes
41765     ;;
41766   no:yes:* )
41767     { echo "$as_me:$LINENO: WARNING: sys/nvpair.h: present but cannot be compiled" >&5
41768 echo "$as_me: WARNING: sys/nvpair.h: present but cannot be compiled" >&2;}
41769     { echo "$as_me:$LINENO: WARNING: sys/nvpair.h:     check for missing prerequisite headers?" >&5
41770 echo "$as_me: WARNING: sys/nvpair.h:     check for missing prerequisite headers?" >&2;}
41771     { echo "$as_me:$LINENO: WARNING: sys/nvpair.h: see the Autoconf documentation" >&5
41772 echo "$as_me: WARNING: sys/nvpair.h: see the Autoconf documentation" >&2;}
41773     { echo "$as_me:$LINENO: WARNING: sys/nvpair.h:     section \"Present But Cannot Be Compiled\"" >&5
41774 echo "$as_me: WARNING: sys/nvpair.h:     section \"Present But Cannot Be Compiled\"" >&2;}
41775     { echo "$as_me:$LINENO: WARNING: sys/nvpair.h: proceeding with the preprocessor's result" >&5
41776 echo "$as_me: WARNING: sys/nvpair.h: proceeding with the preprocessor's result" >&2;}
41777     { echo "$as_me:$LINENO: WARNING: sys/nvpair.h: in the future, the compiler will take precedence" >&5
41778 echo "$as_me: WARNING: sys/nvpair.h: in the future, the compiler will take precedence" >&2;}
41779
41780     ;;
41781 esac
41782 { echo "$as_me:$LINENO: checking for sys/nvpair.h" >&5
41783 echo $ECHO_N "checking for sys/nvpair.h... $ECHO_C" >&6; }
41784 if test "${ac_cv_header_sys_nvpair_h+set}" = set; then
41785   echo $ECHO_N "(cached) $ECHO_C" >&6
41786 else
41787   ac_cv_header_sys_nvpair_h=$ac_header_preproc
41788 fi
41789 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_nvpair_h" >&5
41790 echo "${ECHO_T}$ac_cv_header_sys_nvpair_h" >&6; }
41791
41792 fi
41793 if test $ac_cv_header_sys_nvpair_h = yes; then
41794
41795 cat >>confdefs.h <<\_ACEOF
41796 #define HAVE_SYS_NVPAIR_H 1
41797 _ACEOF
41798
41799 fi
41800
41801
41802       if test "${ac_cv_header_attr_h+set}" = set; then
41803   { echo "$as_me:$LINENO: checking for attr.h" >&5
41804 echo $ECHO_N "checking for attr.h... $ECHO_C" >&6; }
41805 if test "${ac_cv_header_attr_h+set}" = set; then
41806   echo $ECHO_N "(cached) $ECHO_C" >&6
41807 fi
41808 { echo "$as_me:$LINENO: result: $ac_cv_header_attr_h" >&5
41809 echo "${ECHO_T}$ac_cv_header_attr_h" >&6; }
41810 else
41811   # Is the header compilable?
41812 { echo "$as_me:$LINENO: checking attr.h usability" >&5
41813 echo $ECHO_N "checking attr.h usability... $ECHO_C" >&6; }
41814 cat >conftest.$ac_ext <<_ACEOF
41815 /* confdefs.h.  */
41816 _ACEOF
41817 cat confdefs.h >>conftest.$ac_ext
41818 cat >>conftest.$ac_ext <<_ACEOF
41819 /* end confdefs.h.  */
41820 $ac_includes_default
41821 #include <attr.h>
41822 _ACEOF
41823 rm -f conftest.$ac_objext
41824 if { (ac_try="$ac_compile"
41825 case "(($ac_try" in
41826   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41827   *) ac_try_echo=$ac_try;;
41828 esac
41829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41830   (eval "$ac_compile") 2>conftest.er1
41831   ac_status=$?
41832   grep -v '^ *+' conftest.er1 >conftest.err
41833   rm -f conftest.er1
41834   cat conftest.err >&5
41835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41836   (exit $ac_status); } && {
41837          test -z "$ac_c_werror_flag" ||
41838          test ! -s conftest.err
41839        } && test -s conftest.$ac_objext; then
41840   ac_header_compiler=yes
41841 else
41842   echo "$as_me: failed program was:" >&5
41843 sed 's/^/| /' conftest.$ac_ext >&5
41844
41845         ac_header_compiler=no
41846 fi
41847
41848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41849 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
41850 echo "${ECHO_T}$ac_header_compiler" >&6; }
41851
41852 # Is the header present?
41853 { echo "$as_me:$LINENO: checking attr.h presence" >&5
41854 echo $ECHO_N "checking attr.h presence... $ECHO_C" >&6; }
41855 cat >conftest.$ac_ext <<_ACEOF
41856 /* confdefs.h.  */
41857 _ACEOF
41858 cat confdefs.h >>conftest.$ac_ext
41859 cat >>conftest.$ac_ext <<_ACEOF
41860 /* end confdefs.h.  */
41861 #include <attr.h>
41862 _ACEOF
41863 if { (ac_try="$ac_cpp conftest.$ac_ext"
41864 case "(($ac_try" in
41865   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41866   *) ac_try_echo=$ac_try;;
41867 esac
41868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41869   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
41870   ac_status=$?
41871   grep -v '^ *+' conftest.er1 >conftest.err
41872   rm -f conftest.er1
41873   cat conftest.err >&5
41874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41875   (exit $ac_status); } >/dev/null && {
41876          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
41877          test ! -s conftest.err
41878        }; then
41879   ac_header_preproc=yes
41880 else
41881   echo "$as_me: failed program was:" >&5
41882 sed 's/^/| /' conftest.$ac_ext >&5
41883
41884   ac_header_preproc=no
41885 fi
41886
41887 rm -f conftest.err conftest.$ac_ext
41888 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
41889 echo "${ECHO_T}$ac_header_preproc" >&6; }
41890
41891 # So?  What about this header?
41892 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
41893   yes:no: )
41894     { echo "$as_me:$LINENO: WARNING: attr.h: accepted by the compiler, rejected by the preprocessor!" >&5
41895 echo "$as_me: WARNING: attr.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
41896     { echo "$as_me:$LINENO: WARNING: attr.h: proceeding with the compiler's result" >&5
41897 echo "$as_me: WARNING: attr.h: proceeding with the compiler's result" >&2;}
41898     ac_header_preproc=yes
41899     ;;
41900   no:yes:* )
41901     { echo "$as_me:$LINENO: WARNING: attr.h: present but cannot be compiled" >&5
41902 echo "$as_me: WARNING: attr.h: present but cannot be compiled" >&2;}
41903     { echo "$as_me:$LINENO: WARNING: attr.h:     check for missing prerequisite headers?" >&5
41904 echo "$as_me: WARNING: attr.h:     check for missing prerequisite headers?" >&2;}
41905     { echo "$as_me:$LINENO: WARNING: attr.h: see the Autoconf documentation" >&5
41906 echo "$as_me: WARNING: attr.h: see the Autoconf documentation" >&2;}
41907     { echo "$as_me:$LINENO: WARNING: attr.h:     section \"Present But Cannot Be Compiled\"" >&5
41908 echo "$as_me: WARNING: attr.h:     section \"Present But Cannot Be Compiled\"" >&2;}
41909     { echo "$as_me:$LINENO: WARNING: attr.h: proceeding with the preprocessor's result" >&5
41910 echo "$as_me: WARNING: attr.h: proceeding with the preprocessor's result" >&2;}
41911     { echo "$as_me:$LINENO: WARNING: attr.h: in the future, the compiler will take precedence" >&5
41912 echo "$as_me: WARNING: attr.h: in the future, the compiler will take precedence" >&2;}
41913
41914     ;;
41915 esac
41916 { echo "$as_me:$LINENO: checking for attr.h" >&5
41917 echo $ECHO_N "checking for attr.h... $ECHO_C" >&6; }
41918 if test "${ac_cv_header_attr_h+set}" = set; then
41919   echo $ECHO_N "(cached) $ECHO_C" >&6
41920 else
41921   ac_cv_header_attr_h=$ac_header_preproc
41922 fi
41923 { echo "$as_me:$LINENO: result: $ac_cv_header_attr_h" >&5
41924 echo "${ECHO_T}$ac_cv_header_attr_h" >&6; }
41925
41926 fi
41927 if test $ac_cv_header_attr_h = yes; then
41928
41929 cat >>confdefs.h <<\_ACEOF
41930 #define HAVE_ATTR_H 1
41931 _ACEOF
41932
41933 fi
41934
41935
41936
41937
41938
41939
41940
41941
41942 for ac_func in openat fstatat unlinkat fchownat futimesat
41943 do
41944 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41945 { echo "$as_me:$LINENO: checking for $ac_func" >&5
41946 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
41947 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41948   echo $ECHO_N "(cached) $ECHO_C" >&6
41949 else
41950   cat >conftest.$ac_ext <<_ACEOF
41951 /* confdefs.h.  */
41952 _ACEOF
41953 cat confdefs.h >>conftest.$ac_ext
41954 cat >>conftest.$ac_ext <<_ACEOF
41955 /* end confdefs.h.  */
41956 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41957    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41958 #define $ac_func innocuous_$ac_func
41959
41960 /* System header to define __stub macros and hopefully few prototypes,
41961     which can conflict with char $ac_func (); below.
41962     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41963     <limits.h> exists even on freestanding compilers.  */
41964
41965 #ifdef __STDC__
41966 # include <limits.h>
41967 #else
41968 # include <assert.h>
41969 #endif
41970
41971 #undef $ac_func
41972
41973 /* Override any GCC internal prototype to avoid an error.
41974    Use char because int might match the return type of a GCC
41975    builtin and then its argument prototype would still apply.  */
41976 #ifdef __cplusplus
41977 extern "C"
41978 #endif
41979 char $ac_func ();
41980 /* The GNU C library defines this for functions which it implements
41981     to always fail with ENOSYS.  Some functions are actually named
41982     something starting with __ and the normal name is an alias.  */
41983 #if defined __stub_$ac_func || defined __stub___$ac_func
41984 choke me
41985 #endif
41986
41987 int
41988 main ()
41989 {
41990 return $ac_func ();
41991   ;
41992   return 0;
41993 }
41994 _ACEOF
41995 rm -f conftest.$ac_objext conftest$ac_exeext
41996 if { (ac_try="$ac_link"
41997 case "(($ac_try" in
41998   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41999   *) ac_try_echo=$ac_try;;
42000 esac
42001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42002   (eval "$ac_link") 2>conftest.er1
42003   ac_status=$?
42004   grep -v '^ *+' conftest.er1 >conftest.err
42005   rm -f conftest.er1
42006   cat conftest.err >&5
42007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42008   (exit $ac_status); } && {
42009          test -z "$ac_c_werror_flag" ||
42010          test ! -s conftest.err
42011        } && test -s conftest$ac_exeext &&
42012        $as_test_x conftest$ac_exeext; then
42013   eval "$as_ac_var=yes"
42014 else
42015   echo "$as_me: failed program was:" >&5
42016 sed 's/^/| /' conftest.$ac_ext >&5
42017
42018         eval "$as_ac_var=no"
42019 fi
42020
42021 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42022       conftest$ac_exeext conftest.$ac_ext
42023 fi
42024 ac_res=`eval echo '${'$as_ac_var'}'`
42025                { echo "$as_me:$LINENO: result: $ac_res" >&5
42026 echo "${ECHO_T}$ac_res" >&6; }
42027 if test `eval echo '${'$as_ac_var'}'` = yes; then
42028   cat >>confdefs.h <<_ACEOF
42029 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42030 _ACEOF
42031
42032              have_xattr=yes
42033
42034 cat >>confdefs.h <<\_ACEOF
42035 #define HAVE_OPENAT
42036 _ACEOF
42037
42038
42039 cat >>confdefs.h <<\_ACEOF
42040 #define HAVE_FSTATAT
42041 _ACEOF
42042
42043
42044 cat >>confdefs.h <<\_ACEOF
42045 #define HAVE_UNLINKAT
42046 _ACEOF
42047
42048
42049 cat >>confdefs.h <<\_ACEOF
42050 #define HAVE_FCHOWNAT
42051 _ACEOF
42052
42053
42054 cat >>confdefs.h <<\_ACEOF
42055 #define HAVE_FUTIMESAT
42056 _ACEOF
42057
42058
42059
42060 fi
42061 done
42062
42063
42064       if test $have_xattr = yes; then
42065          { echo "$as_me:$LINENO: checking for nvlist_next_nvpair in -lnvpair" >&5
42066 echo $ECHO_N "checking for nvlist_next_nvpair in -lnvpair... $ECHO_C" >&6; }
42067 if test "${ac_cv_lib_nvpair_nvlist_next_nvpair+set}" = set; then
42068   echo $ECHO_N "(cached) $ECHO_C" >&6
42069 else
42070   ac_check_lib_save_LIBS=$LIBS
42071 LIBS="-lnvpair  $LIBS"
42072 cat >conftest.$ac_ext <<_ACEOF
42073 /* confdefs.h.  */
42074 _ACEOF
42075 cat confdefs.h >>conftest.$ac_ext
42076 cat >>conftest.$ac_ext <<_ACEOF
42077 /* end confdefs.h.  */
42078
42079 /* Override any GCC internal prototype to avoid an error.
42080    Use char because int might match the return type of a GCC
42081    builtin and then its argument prototype would still apply.  */
42082 #ifdef __cplusplus
42083 extern "C"
42084 #endif
42085 char nvlist_next_nvpair ();
42086 int
42087 main ()
42088 {
42089 return nvlist_next_nvpair ();
42090   ;
42091   return 0;
42092 }
42093 _ACEOF
42094 rm -f conftest.$ac_objext conftest$ac_exeext
42095 if { (ac_try="$ac_link"
42096 case "(($ac_try" in
42097   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42098   *) ac_try_echo=$ac_try;;
42099 esac
42100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42101   (eval "$ac_link") 2>conftest.er1
42102   ac_status=$?
42103   grep -v '^ *+' conftest.er1 >conftest.err
42104   rm -f conftest.er1
42105   cat conftest.err >&5
42106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42107   (exit $ac_status); } && {
42108          test -z "$ac_c_werror_flag" ||
42109          test ! -s conftest.err
42110        } && test -s conftest$ac_exeext &&
42111        $as_test_x conftest$ac_exeext; then
42112   ac_cv_lib_nvpair_nvlist_next_nvpair=yes
42113 else
42114   echo "$as_me: failed program was:" >&5
42115 sed 's/^/| /' conftest.$ac_ext >&5
42116
42117         ac_cv_lib_nvpair_nvlist_next_nvpair=no
42118 fi
42119
42120 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42121       conftest$ac_exeext conftest.$ac_ext
42122 LIBS=$ac_check_lib_save_LIBS
42123 fi
42124 { echo "$as_me:$LINENO: result: $ac_cv_lib_nvpair_nvlist_next_nvpair" >&5
42125 echo "${ECHO_T}$ac_cv_lib_nvpair_nvlist_next_nvpair" >&6; }
42126 if test $ac_cv_lib_nvpair_nvlist_next_nvpair = yes; then
42127
42128                 FDLIBS="-lnvpair $FDLIBS"
42129
42130
42131 fi
42132
42133       fi
42134    fi
42135
42136    if test $have_xattr = yes; then
42137
42138 cat >>confdefs.h <<\_ACEOF
42139 #define HAVE_XATTR
42140 _ACEOF
42141
42142    fi
42143 fi
42144
42145 PTHREAD_LIB=""
42146 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
42147 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
42148 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
42149   echo $ECHO_N "(cached) $ECHO_C" >&6
42150 else
42151   ac_check_lib_save_LIBS=$LIBS
42152 LIBS="-lpthread  $LIBS"
42153 cat >conftest.$ac_ext <<_ACEOF
42154 /* confdefs.h.  */
42155 _ACEOF
42156 cat confdefs.h >>conftest.$ac_ext
42157 cat >>conftest.$ac_ext <<_ACEOF
42158 /* end confdefs.h.  */
42159
42160 /* Override any GCC internal prototype to avoid an error.
42161    Use char because int might match the return type of a GCC
42162    builtin and then its argument prototype would still apply.  */
42163 #ifdef __cplusplus
42164 extern "C"
42165 #endif
42166 char pthread_create ();
42167 int
42168 main ()
42169 {
42170 return pthread_create ();
42171   ;
42172   return 0;
42173 }
42174 _ACEOF
42175 rm -f conftest.$ac_objext conftest$ac_exeext
42176 if { (ac_try="$ac_link"
42177 case "(($ac_try" in
42178   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42179   *) ac_try_echo=$ac_try;;
42180 esac
42181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42182   (eval "$ac_link") 2>conftest.er1
42183   ac_status=$?
42184   grep -v '^ *+' conftest.er1 >conftest.err
42185   rm -f conftest.er1
42186   cat conftest.err >&5
42187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42188   (exit $ac_status); } && {
42189          test -z "$ac_c_werror_flag" ||
42190          test ! -s conftest.err
42191        } && test -s conftest$ac_exeext &&
42192        $as_test_x conftest$ac_exeext; then
42193   ac_cv_lib_pthread_pthread_create=yes
42194 else
42195   echo "$as_me: failed program was:" >&5
42196 sed 's/^/| /' conftest.$ac_ext >&5
42197
42198         ac_cv_lib_pthread_pthread_create=no
42199 fi
42200
42201 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42202       conftest$ac_exeext conftest.$ac_ext
42203 LIBS=$ac_check_lib_save_LIBS
42204 fi
42205 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
42206 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
42207 if test $ac_cv_lib_pthread_pthread_create = yes; then
42208   PTHREAD_LIB="-lpthread"
42209 else
42210
42211        { echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
42212 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6; }
42213 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
42214   echo $ECHO_N "(cached) $ECHO_C" >&6
42215 else
42216   ac_check_lib_save_LIBS=$LIBS
42217 LIBS="-lpthreads  $LIBS"
42218 cat >conftest.$ac_ext <<_ACEOF
42219 /* confdefs.h.  */
42220 _ACEOF
42221 cat confdefs.h >>conftest.$ac_ext
42222 cat >>conftest.$ac_ext <<_ACEOF
42223 /* end confdefs.h.  */
42224
42225 /* Override any GCC internal prototype to avoid an error.
42226    Use char because int might match the return type of a GCC
42227    builtin and then its argument prototype would still apply.  */
42228 #ifdef __cplusplus
42229 extern "C"
42230 #endif
42231 char pthread_create ();
42232 int
42233 main ()
42234 {
42235 return pthread_create ();
42236   ;
42237   return 0;
42238 }
42239 _ACEOF
42240 rm -f conftest.$ac_objext conftest$ac_exeext
42241 if { (ac_try="$ac_link"
42242 case "(($ac_try" in
42243   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42244   *) ac_try_echo=$ac_try;;
42245 esac
42246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42247   (eval "$ac_link") 2>conftest.er1
42248   ac_status=$?
42249   grep -v '^ *+' conftest.er1 >conftest.err
42250   rm -f conftest.er1
42251   cat conftest.err >&5
42252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42253   (exit $ac_status); } && {
42254          test -z "$ac_c_werror_flag" ||
42255          test ! -s conftest.err
42256        } && test -s conftest$ac_exeext &&
42257        $as_test_x conftest$ac_exeext; then
42258   ac_cv_lib_pthreads_pthread_create=yes
42259 else
42260   echo "$as_me: failed program was:" >&5
42261 sed 's/^/| /' conftest.$ac_ext >&5
42262
42263         ac_cv_lib_pthreads_pthread_create=no
42264 fi
42265
42266 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42267       conftest$ac_exeext conftest.$ac_ext
42268 LIBS=$ac_check_lib_save_LIBS
42269 fi
42270 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
42271 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6; }
42272 if test $ac_cv_lib_pthreads_pthread_create = yes; then
42273   PTHREAD_LIB="-lpthreads"
42274 else
42275
42276               { echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
42277 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6; }
42278 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
42279   echo $ECHO_N "(cached) $ECHO_C" >&6
42280 else
42281   ac_check_lib_save_LIBS=$LIBS
42282 LIBS="-lc_r  $LIBS"
42283 cat >conftest.$ac_ext <<_ACEOF
42284 /* confdefs.h.  */
42285 _ACEOF
42286 cat confdefs.h >>conftest.$ac_ext
42287 cat >>conftest.$ac_ext <<_ACEOF
42288 /* end confdefs.h.  */
42289
42290 /* Override any GCC internal prototype to avoid an error.
42291    Use char because int might match the return type of a GCC
42292    builtin and then its argument prototype would still apply.  */
42293 #ifdef __cplusplus
42294 extern "C"
42295 #endif
42296 char pthread_create ();
42297 int
42298 main ()
42299 {
42300 return pthread_create ();
42301   ;
42302   return 0;
42303 }
42304 _ACEOF
42305 rm -f conftest.$ac_objext conftest$ac_exeext
42306 if { (ac_try="$ac_link"
42307 case "(($ac_try" in
42308   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42309   *) ac_try_echo=$ac_try;;
42310 esac
42311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42312   (eval "$ac_link") 2>conftest.er1
42313   ac_status=$?
42314   grep -v '^ *+' conftest.er1 >conftest.err
42315   rm -f conftest.er1
42316   cat conftest.err >&5
42317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42318   (exit $ac_status); } && {
42319          test -z "$ac_c_werror_flag" ||
42320          test ! -s conftest.err
42321        } && test -s conftest$ac_exeext &&
42322        $as_test_x conftest$ac_exeext; then
42323   ac_cv_lib_c_r_pthread_create=yes
42324 else
42325   echo "$as_me: failed program was:" >&5
42326 sed 's/^/| /' conftest.$ac_ext >&5
42327
42328         ac_cv_lib_c_r_pthread_create=no
42329 fi
42330
42331 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42332       conftest$ac_exeext conftest.$ac_ext
42333 LIBS=$ac_check_lib_save_LIBS
42334 fi
42335 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
42336 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6; }
42337 if test $ac_cv_lib_c_r_pthread_create = yes; then
42338   PTHREAD_LIB="-lc_r"
42339 else
42340
42341                      { echo "$as_me:$LINENO: checking for pthread_create" >&5
42342 echo $ECHO_N "checking for pthread_create... $ECHO_C" >&6; }
42343 if test "${ac_cv_func_pthread_create+set}" = set; then
42344   echo $ECHO_N "(cached) $ECHO_C" >&6
42345 else
42346   cat >conftest.$ac_ext <<_ACEOF
42347 /* confdefs.h.  */
42348 _ACEOF
42349 cat confdefs.h >>conftest.$ac_ext
42350 cat >>conftest.$ac_ext <<_ACEOF
42351 /* end confdefs.h.  */
42352 /* Define pthread_create to an innocuous variant, in case <limits.h> declares pthread_create.
42353    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42354 #define pthread_create innocuous_pthread_create
42355
42356 /* System header to define __stub macros and hopefully few prototypes,
42357     which can conflict with char pthread_create (); below.
42358     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42359     <limits.h> exists even on freestanding compilers.  */
42360
42361 #ifdef __STDC__
42362 # include <limits.h>
42363 #else
42364 # include <assert.h>
42365 #endif
42366
42367 #undef pthread_create
42368
42369 /* Override any GCC internal prototype to avoid an error.
42370    Use char because int might match the return type of a GCC
42371    builtin and then its argument prototype would still apply.  */
42372 #ifdef __cplusplus
42373 extern "C"
42374 #endif
42375 char pthread_create ();
42376 /* The GNU C library defines this for functions which it implements
42377     to always fail with ENOSYS.  Some functions are actually named
42378     something starting with __ and the normal name is an alias.  */
42379 #if defined __stub_pthread_create || defined __stub___pthread_create
42380 choke me
42381 #endif
42382
42383 int
42384 main ()
42385 {
42386 return pthread_create ();
42387   ;
42388   return 0;
42389 }
42390 _ACEOF
42391 rm -f conftest.$ac_objext conftest$ac_exeext
42392 if { (ac_try="$ac_link"
42393 case "(($ac_try" in
42394   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42395   *) ac_try_echo=$ac_try;;
42396 esac
42397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42398   (eval "$ac_link") 2>conftest.er1
42399   ac_status=$?
42400   grep -v '^ *+' conftest.er1 >conftest.err
42401   rm -f conftest.er1
42402   cat conftest.err >&5
42403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42404   (exit $ac_status); } && {
42405          test -z "$ac_c_werror_flag" ||
42406          test ! -s conftest.err
42407        } && test -s conftest$ac_exeext &&
42408        $as_test_x conftest$ac_exeext; then
42409   ac_cv_func_pthread_create=yes
42410 else
42411   echo "$as_me: failed program was:" >&5
42412 sed 's/^/| /' conftest.$ac_ext >&5
42413
42414         ac_cv_func_pthread_create=no
42415 fi
42416
42417 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42418       conftest$ac_exeext conftest.$ac_ext
42419 fi
42420 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
42421 echo "${ECHO_T}$ac_cv_func_pthread_create" >&6; }
42422
42423
42424
42425 fi
42426
42427
42428
42429 fi
42430
42431
42432
42433 fi
42434
42435
42436
42437 cat >>confdefs.h <<\_ACEOF
42438 #define FDLIBS 1
42439 _ACEOF
42440
42441
42442 CFLAGS=${CFLAGS--O}
42443
42444 if test x$have_gcc = xyes ; then
42445    CPPFLAGS="$CPPFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
42446    CFLAGS="$CFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
42447 fi
42448 LDFLAGS=${LDFLAGS--O}
42449 DB_LIBS="${SQL_LFLAGS}"
42450 CPPFLAGS="$CPPFLAGS"
42451 CFLAGS="$CFLAGS"
42452
42453
42454
42455
42456
42457
42458
42459
42460
42461
42462
42463
42464
42465
42466
42467
42468 OBJLIST=
42469
42470
42471 lld="lld"
42472 llu="llu"
42473
42474 WCFLAGS=
42475 WLDFLAGS=
42476
42477 PFILES="platforms/Makefile"
42478 PSCMD="ps -e"
42479 WIN32=
42480 MACOSX=
42481 hostname=`uname -n | cut -d '.' -f 1`
42482 if test x${hostname} = x ; then
42483    hostname="localhost"
42484 fi
42485 case "$DISTNAME" in
42486 aix)
42487    DISTVER=`uname -r`
42488    PSCMD="ps -e -o pid,comm"
42489    PFILES="${PFILES} \
42490       platforms/aix/Makefile"
42491    TAPEDRIVE="/dev/rmt0.1"
42492   ;;
42493 alpha)
42494    DISTVER=`uname -r`
42495    PTHREAD_LIB="-lpthread -lexc"
42496    if test "${CC}" = "gcc" ; then
42497       lld="lld"
42498       llu="llu"
42499    else
42500       lld="ld"
42501       llu="lu"
42502    fi
42503    TAPEDRIVE="/dev/nrmt0"
42504   ;;
42505 bsdi)
42506    DISTVER=`uname -a |awk '{print $3}'`
42507    TAPEDRIVE="/dev/nrmt0"
42508    PTHREAD_LIB="-pthread"
42509    CFLAGS="${CFLAGS} -pthread"
42510    PSCMD="ps -ax -o pid,command"
42511    lld="qd"
42512    llu="qu"
42513    PFILES="${PFILES} \
42514        platforms/bsdi/Makefile \
42515        platforms/bsdi/bacula-fd \
42516        platforms/bsdi/bacula-sd \
42517        platforms/bsdi/bacula-dir"
42518    largefile_support="yes"
42519   ;;
42520 cygwin)
42521    DISTVER=`uname -a |awk '{print $3}'`
42522    TAPEDRIVE="/dev/nrst0"
42523    WIN32=win32
42524    WCFLAGS="-mwindows"
42525    WLDFLAGS="-mwindows"
42526   ;;
42527 darwin)
42528    DISTVER=`uname -r`
42529    TAPEDRIVE="/dev/nst0"
42530    PSCMD="ps -e -o pid,command"
42531    MACOSX=macosx
42532    PFILES="${PFILES} \
42533       platforms/darwin/Makefile"
42534   ;;
42535 debian)
42536       ping -c 1 $hostname 2>&1 1>/dev/null
42537    if test ! $? = 0; then
42538       hostname="localhost"
42539    fi
42540    if `test -f /etc/apt/sources.list && grep -q ubuntu /etc/apt/sources.list`; then
42541       DISTNAME="ubuntu"
42542    fi
42543    DISTVER=`cat /etc/debian_version`
42544    if test -f /etc/lsb-release ; then
42545       . /etc/lsb-release
42546       if test "x$DISTRIB_ID" != "x" ; then
42547          DISTNAME=$DISTRIB_ID
42548       fi
42549       if test "x$DISTRIB_RELEASE" != "x" ; then
42550          DISTVER=$DISTRIB_RELEASE
42551       fi
42552    fi
42553    if test "$DISTNAME" = "Ubuntu" ; then
42554       DISTNAME="ubuntu"
42555    fi
42556    TAPEDRIVE="/dev/nst0"
42557    PSCMD="ps -e -o pid,command"
42558    if test "$DISTNAME" = "ubuntu" ; then
42559       PFILES="${PFILES} \
42560          platforms/ubuntu/Makefile \
42561          platforms/ubuntu/bacula-fd \
42562          platforms/ubuntu/bacula-sd \
42563          platforms/ubuntu/bacula-dir"
42564    else
42565       PFILES="${PFILES} \
42566          platforms/debian/Makefile \
42567          platforms/debian/bacula-fd \
42568          platforms/debian/bacula-sd \
42569          platforms/debian/bacula-dir"
42570    fi
42571   ;;
42572 freebsd)
42573       ping -c 1 $hostname 2>&1 1>/dev/null
42574    if test ! $? = 0; then
42575       hostname="localhost"
42576    fi
42577    DISTVER=`uname -a |awk '{print $3}'`
42578    VER=`echo $DISTVER | cut -c 1`
42579    if test x$VER = x4 ; then
42580       PTHREAD_LIB="${PTHREAD_LIBS:--pthread}"
42581       CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS:--pthread}"
42582    fi
42583    lld="qd"
42584    llu="qu"
42585    TAPEDRIVE="/dev/nrsa0"
42586    PSCMD="ps -ax -o pid,command"
42587    PFILES="${PFILES} \
42588        platforms/freebsd/Makefile \
42589        platforms/freebsd/bacula-fd \
42590        platforms/freebsd/bacula-sd \
42591        platforms/freebsd/bacula-dir"
42592    largefile_support="yes"
42593   ;;
42594 hpux)
42595    PSCMD="UNIX95=1; ps -e -o pid,comm"
42596    CFLAGS="${CFLAGS} -D_XOPEN_SOURCE_EXTENDED=1"
42597    DISTVER=`uname -r`
42598    TAPEDRIVE="/dev/rmt/0hnb"
42599    PTHREAD_LIB="-lpthread"
42600    cat >>confdefs.h <<\_ACEOF
42601 #define _INCLUDE_LONGLONG 1
42602 _ACEOF
42603
42604   ;;
42605 irix)
42606    DISTVER=`uname -r`
42607    TAPEDRIVE="/dev/rmt/0cbn"
42608    PSCMD="ps -e -o pid,comm"
42609    PFILES="${PFILES} \
42610        platforms/irix/Makefile \
42611        platforms/irix/bacula-fd \
42612        platforms/irix/bacula-sd \
42613        platforms/irix/bacula-dir"
42614   ;;
42615 netbsd)
42616    DISTVER=`uname -a |awk '{print $3}'`
42617    lld="qd"
42618    llu="qu"
42619    TAPEDRIVE="/dev/nrst0"
42620    PSCMD="ps -ax -o pid,command"
42621    PTHREAD_LIB="-pthread"
42622    CFLAGS="${CFLAGS} -pthread"
42623   ;;
42624 openbsd)
42625    DISTVER=`uname -a |awk '{print $3}'`
42626    lld="qd"
42627    llu="qu"
42628    TAPEDRIVE="/dev/nrst0"
42629    PSCMD="ps -ax -o pid,command"
42630    PTHREAD_LIB="-pthread"
42631    CFLAGS="${CFLAGS} -pthread"
42632    PFILES="${PFILES} \
42633        platforms/openbsd/Makefile \
42634        platforms/openbsd/bacula-fd \
42635        platforms/openbsd/bacula-sd \
42636        platforms/openbsd/bacula-dir"
42637   ;;
42638 redhat)
42639       ping -c 1 $hostname 2>&1 1>/dev/null
42640    if test ! $? = 0; then
42641       hostname="localhost"
42642    fi
42643    if test -f /etc/whitebox-release ; then
42644       f=/etc/whitebox-release
42645    else
42646       f=/etc/redhat-release
42647    fi
42648    if test `cat $f | grep release |\
42649          cut -f 3 -d ' '`x = "Enterprise"x ; then
42650       DISTVER="Enterprise "`cat $f | grep release |\
42651           cut -f 6 -d ' '`
42652    else
42653        DISTVER=`cat /etc/redhat-release | grep release |\
42654            cut -f 5 -d ' '`
42655    fi
42656    TAPEDRIVE="/dev/nst0"
42657    PSCMD="ps -e -o pid,command"
42658    PFILES="${PFILES} \
42659        platforms/redhat/Makefile \
42660        platforms/redhat/bacula-fd \
42661        platforms/redhat/bacula-sd \
42662        platforms/redhat/bacula-dir \
42663        platforms/redhat/bacula.spec \
42664        "
42665   ;;
42666 mandrake)
42667       ping -c 1 $hostname 2>&1 1>/dev/null
42668    if test ! $? = 0; then
42669       hostname="localhost"
42670    fi
42671    DISTVER=`cat /etc/mandrake-release | grep release |\
42672       cut -f 5 -d ' '`
42673    TAPEDRIVE="/dev/nst0"
42674    PSCMD="ps -e -o pid,command"
42675    PFILES="${PFILES} \
42676        platforms/mandrake/Makefile \
42677        platforms/mandrake/bacula-fd \
42678        platforms/mandrake/bacula-sd \
42679        platforms/mandrake/bacula-dir \
42680        platforms/mandrake/bacula.spec \
42681        "
42682   ;;
42683 gentoo)
42684       ping -c 1 $hostname 2>&1 1>/dev/null
42685    if test ! $? = 0; then
42686       hostname="localhost"
42687    fi
42688    DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
42689    TAPEDRIVE="/dev/nst0"
42690    PSCMD="ps -e -o pid,command"
42691    PFILES="${PFILES} \
42692        platforms/gentoo/Makefile \
42693     platforms/gentoo/bacula-init \
42694        platforms/gentoo/bacula-fd \
42695        platforms/gentoo/bacula-sd \
42696        platforms/gentoo/bacula-dir"
42697   ;;
42698 slackware)
42699       ping -c 1 $hostname 2>&1 1>/dev/null
42700    if test ! $? = 0; then
42701       hostname="localhost"
42702    fi
42703    DISTVER=`cat /etc/slackware-version`
42704    TAPEDRIVE="/dev/nst0"
42705    PSCMD="ps -e -o pid,command"
42706    PFILES="${PFILES} \
42707        platforms/slackware/Makefile \
42708        platforms/slackware/rc.bacula-fd \
42709        platforms/slackware/rc.bacula-sd \
42710        platforms/slackware/rc.bacula-dir\
42711        platforms/slackware/functions.bacula"
42712   ;;
42713 solaris)
42714    DISTVER=`uname -r`
42715    TAPEDRIVE="/dev/rmt/0cbn"
42716    PSCMD="ps -e -o pid,comm"
42717    PFILES="${PFILES} \
42718        platforms/solaris/Makefile \
42719        platforms/solaris/bacula-fd \
42720        platforms/solaris/bacula-sd \
42721        platforms/solaris/bacula-dir"
42722    if test x$DISTVER = x5.6 ; then
42723        cat >>confdefs.h <<\_ACEOF
42724 #define HAVE_OLD_SOCKOPT 1
42725 _ACEOF
42726
42727    fi
42728    LIBS="$LIBS -lresolv"
42729   ;;
42730 suse)
42731       ping -c 1 $hostname 2>&1 1>/dev/null
42732    if test ! $? = 0; then
42733       hostname="localhost"
42734    fi
42735    DISTVER=`cat /etc/SuSE-release |grep VERSION|\
42736        cut -f 3 -d ' '`
42737    TAPEDRIVE="/dev/nst0"
42738    PSCMD="ps -e -o pid,command"
42739    PFILES="${PFILES} \
42740        platforms/suse/Makefile \
42741        platforms/suse/bacula-fd \
42742        platforms/suse/bacula-sd \
42743        platforms/suse/bacula-dir \
42744        platforms/suse/bacula \
42745        platforms/suse/bacula.spec"
42746   ;;
42747 suse5)
42748       ping -c 1 $hostname 2>&1 1>/dev/null
42749    if test ! $? = 0; then
42750       hostname="localhost"
42751    fi
42752    DISTNAME=suse
42753    DISTVER=5.x
42754    TAPEDRIVE="/dev/nst0"
42755    PSCMD="ps -e -o pid,command"
42756    PFILES="${PFILES} \
42757        platforms/suse/Makefile \
42758        platforms/suse/bacula-fd \
42759        platforms/suse/bacula-sd \
42760        platforms/suse/bacula-dir"
42761   ;;
42762 unknown)
42763    DISTVER=unknown
42764    TAPEDRIVE="/dev/nst0"
42765   ;;
42766 *)
42767   echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
42768   ;;
42769 esac
42770
42771
42772
42773 LIBS="$PTHREAD_LIB $LIBS"
42774
42775 cat >>confdefs.h <<_ACEOF
42776 #define lld "$lld"
42777 _ACEOF
42778
42779 cat >>confdefs.h <<_ACEOF
42780 #define llu "$llu"
42781 _ACEOF
42782
42783
42784
42785
42786
42787
42788
42789
42790 MCOMMON=./autoconf/Make.common
42791
42792
42793 if test "x${subsysdir}" = "x${sbindir}" ; then
42794    echo " "
42795    echo " "
42796    echo "You have set both --sbindir and --with-subsys-dir"
42797    echo "  equal to: ${subsysdir} "
42798    echo "This is not permitted. Please reconfigure."
42799    echo " "
42800    echo "Aborting configuration ..."
42801    echo " "
42802    echo " "
42803    exit 1
42804 fi
42805
42806 ac_config_files="$ac_config_files autoconf/Make.common Makefile manpages/Makefile scripts/startmysql scripts/stopmysql scripts/btraceback scripts/startit scripts/stopit scripts/bconsole scripts/gconsole scripts/bacula scripts/bacula-ctl-dir scripts/bacula-ctl-fd scripts/bacula-ctl-sd scripts/devel_bacula scripts/Makefile scripts/logrotate scripts/bacula.desktop.gnome1 scripts/bacula.desktop.gnome2 scripts/bacula.desktop.gnome1.consolehelper scripts/bacula.desktop.gnome2.consolehelper scripts/bacula.desktop.gnome1.xsu scripts/bacula.desktop.gnome2.xsu scripts/bgnome-console.console_apps scripts/mtx-changer scripts/disk-changer scripts/dvd-handler scripts/dvd-simulator scripts/bacula-tray-monitor.desktop scripts/logwatch/Makefile scripts/logwatch/logfile.bacula.conf scripts/wxconsole.console_apps scripts/wxconsole.desktop.consolehelper scripts/wxconsole.desktop.xsu scripts/bat.desktop scripts/bat.desktop.xsu scripts/bat.desktop.consolehelper scripts/bat.console_apps src/Makefile src/host.h src/console/Makefile src/console/bconsole.conf src/gnome2-console/Makefile src/gnome2-console/bgnome-console.conf src/qt-console/bat.conf src/qt-console/bat.pro src/qt-console/bat.pro.mingw32 src/qt-console/install_conf_file src/wx-console/Makefile src/wx-console/bwx-console.conf src/tray-monitor/Makefile src/tray-monitor/tray-monitor.conf src/dird/Makefile src/dird/bacula-dir.conf src/lib/Makefile src/stored/Makefile src/stored/bacula-sd.conf src/filed/Makefile src/filed/bacula-fd.conf src/cats/Makefile src/cats/make_catalog_backup src/cats/delete_catalog_backup src/cats/create_postgresql_database src/cats/update_postgresql_tables src/cats/make_postgresql_tables src/cats/grant_postgresql_privileges src/cats/drop_postgresql_tables src/cats/drop_postgresql_database src/cats/create_mysql_database src/cats/update_mysql_tables src/cats/make_mysql_tables src/cats/grant_mysql_privileges src/cats/drop_mysql_tables src/cats/drop_mysql_database src/cats/create_sqlite_database src/cats/update_sqlite_tables src/cats/make_sqlite_tables src/cats/grant_sqlite_privileges src/cats/drop_sqlite_tables src/cats/drop_sqlite_database src/cats/create_sqlite3_database src/cats/update_sqlite3_tables src/cats/make_sqlite3_tables src/cats/grant_sqlite3_privileges src/cats/drop_sqlite3_tables src/cats/drop_sqlite3_database src/cats/sqlite src/cats/mysql src/cats/create_bdb_database src/cats/update_bdb_tables src/cats/make_bdb_tables src/cats/grant_bdb_privileges src/cats/drop_bdb_tables src/cats/drop_bdb_database src/cats/create_bacula_database src/cats/update_bacula_tables src/cats/grant_bacula_privileges src/cats/make_bacula_tables src/cats/drop_bacula_tables src/cats/drop_bacula_database src/findlib/Makefile src/tools/Makefile src/plugins/fd/Makefile src/plugins/sd/Makefile src/plugins/dir/Makefile src/win32/Makefile.inc po/Makefile.in updatedb/update_mysql_tables_9_to_10 updatedb/update_sqlite3_tables_9_to_10 updatedb/update_postgresql_tables_9_to_10 updatedb/update_sqlite_tables_9_to_10 updatedb/update_mysql_tables_10_to_11 updatedb/update_sqlite3_tables_10_to_11 updatedb/update_postgresql_tables_10_to_11 updatedb/update_sqlite_tables_10_to_11 $PFILES"
42807
42808 ac_config_commands="$ac_config_commands default"
42809
42810 cat >confcache <<\_ACEOF
42811 # This file is a shell script that caches the results of configure
42812 # tests run on this system so they can be shared between configure
42813 # scripts and configure runs, see configure's option --config-cache.
42814 # It is not useful on other systems.  If it contains results you don't
42815 # want to keep, you may remove or edit it.
42816 #
42817 # config.status only pays attention to the cache file if you give it
42818 # the --recheck option to rerun configure.
42819 #
42820 # `ac_cv_env_foo' variables (set or unset) will be overridden when
42821 # loading this file, other *unset* `ac_cv_foo' will be assigned the
42822 # following values.
42823
42824 _ACEOF
42825
42826 # The following way of writing the cache mishandles newlines in values,
42827 # but we know of no workaround that is simple, portable, and efficient.
42828 # So, we kill variables containing newlines.
42829 # Ultrix sh set writes to stderr and can't be redirected directly,
42830 # and sets the high bit in the cache file unless we assign to the vars.
42831 (
42832   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
42833     eval ac_val=\$$ac_var
42834     case $ac_val in #(
42835     *${as_nl}*)
42836       case $ac_var in #(
42837       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
42838 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
42839       esac
42840       case $ac_var in #(
42841       _ | IFS | as_nl) ;; #(
42842       *) $as_unset $ac_var ;;
42843       esac ;;
42844     esac
42845   done
42846
42847   (set) 2>&1 |
42848     case $as_nl`(ac_space=' '; set) 2>&1` in #(
42849     *${as_nl}ac_space=\ *)
42850       # `set' does not quote correctly, so add quotes (double-quote
42851       # substitution turns \\\\ into \\, and sed turns \\ into \).
42852       sed -n \
42853         "s/'/'\\\\''/g;
42854           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
42855       ;; #(
42856     *)
42857       # `set' quotes correctly as required by POSIX, so do not add quotes.
42858       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
42859       ;;
42860     esac |
42861     sort
42862 ) |
42863   sed '
42864      /^ac_cv_env_/b end
42865      t clear
42866      :clear
42867      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
42868      t end
42869      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
42870      :end' >>confcache
42871 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
42872   if test -w "$cache_file"; then
42873     test "x$cache_file" != "x/dev/null" &&
42874       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
42875 echo "$as_me: updating cache $cache_file" >&6;}
42876     cat confcache >$cache_file
42877   else
42878     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
42879 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
42880   fi
42881 fi
42882 rm -f confcache
42883
42884 test "x$prefix" = xNONE && prefix=$ac_default_prefix
42885 # Let make expand exec_prefix.
42886 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
42887
42888 DEFS=-DHAVE_CONFIG_H
42889
42890 ac_libobjs=
42891 ac_ltlibobjs=
42892 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
42893   # 1. Remove the extension, and $U if already installed.
42894   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
42895   ac_i=`echo "$ac_i" | sed "$ac_script"`
42896   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
42897   #    will be set to the directory where LIBOBJS objects are built.
42898   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
42899   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
42900 done
42901 LIBOBJS=$ac_libobjs
42902
42903 LTLIBOBJS=$ac_ltlibobjs
42904
42905
42906
42907 : ${CONFIG_STATUS=./config.status}
42908 ac_clean_files_save=$ac_clean_files
42909 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
42910 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
42911 echo "$as_me: creating $CONFIG_STATUS" >&6;}
42912 cat >$CONFIG_STATUS <<_ACEOF
42913 #! $SHELL
42914 # Generated by $as_me.
42915 # Run this file to recreate the current configuration.
42916 # Compiler output produced by configure, useful for debugging
42917 # configure, is in config.log if it exists.
42918
42919 debug=false
42920 ac_cs_recheck=false
42921 ac_cs_silent=false
42922 SHELL=\${CONFIG_SHELL-$SHELL}
42923 _ACEOF
42924
42925 cat >>$CONFIG_STATUS <<\_ACEOF
42926 ## --------------------- ##
42927 ## M4sh Initialization.  ##
42928 ## --------------------- ##
42929
42930 # Be more Bourne compatible
42931 DUALCASE=1; export DUALCASE # for MKS sh
42932 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
42933   emulate sh
42934   NULLCMD=:
42935   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
42936   # is contrary to our usage.  Disable this feature.
42937   alias -g '${1+"$@"}'='"$@"'
42938   setopt NO_GLOB_SUBST
42939 else
42940   case `(set -o) 2>/dev/null` in
42941   *posix*) set -o posix ;;
42942 esac
42943
42944 fi
42945
42946
42947
42948
42949 # PATH needs CR
42950 # Avoid depending upon Character Ranges.
42951 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
42952 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
42953 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
42954 as_cr_digits='0123456789'
42955 as_cr_alnum=$as_cr_Letters$as_cr_digits
42956
42957 # The user is always right.
42958 if test "${PATH_SEPARATOR+set}" != set; then
42959   echo "#! /bin/sh" >conf$$.sh
42960   echo  "exit 0"   >>conf$$.sh
42961   chmod +x conf$$.sh
42962   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
42963     PATH_SEPARATOR=';'
42964   else
42965     PATH_SEPARATOR=:
42966   fi
42967   rm -f conf$$.sh
42968 fi
42969
42970 # Support unset when possible.
42971 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
42972   as_unset=unset
42973 else
42974   as_unset=false
42975 fi
42976
42977
42978 # IFS
42979 # We need space, tab and new line, in precisely that order.  Quoting is
42980 # there to prevent editors from complaining about space-tab.
42981 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
42982 # splitting by setting IFS to empty value.)
42983 as_nl='
42984 '
42985 IFS=" ""        $as_nl"
42986
42987 # Find who we are.  Look in the path if we contain no directory separator.
42988 case $0 in
42989   *[\\/]* ) as_myself=$0 ;;
42990   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42991 for as_dir in $PATH
42992 do
42993   IFS=$as_save_IFS
42994   test -z "$as_dir" && as_dir=.
42995   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
42996 done
42997 IFS=$as_save_IFS
42998
42999      ;;
43000 esac
43001 # We did not find ourselves, most probably we were run as `sh COMMAND'
43002 # in which case we are not to be found in the path.
43003 if test "x$as_myself" = x; then
43004   as_myself=$0
43005 fi
43006 if test ! -f "$as_myself"; then
43007   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
43008   { (exit 1); exit 1; }
43009 fi
43010
43011 # Work around bugs in pre-3.0 UWIN ksh.
43012 for as_var in ENV MAIL MAILPATH
43013 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
43014 done
43015 PS1='$ '
43016 PS2='> '
43017 PS4='+ '
43018
43019 # NLS nuisances.
43020 for as_var in \
43021   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43022   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
43023   LC_TELEPHONE LC_TIME
43024 do
43025   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
43026     eval $as_var=C; export $as_var
43027   else
43028     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
43029   fi
43030 done
43031
43032 # Required to use basename.
43033 if expr a : '\(a\)' >/dev/null 2>&1 &&
43034    test "X`expr 00001 : '.*\(...\)'`" = X001; then
43035   as_expr=expr
43036 else
43037   as_expr=false
43038 fi
43039
43040 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
43041   as_basename=basename
43042 else
43043   as_basename=false
43044 fi
43045
43046
43047 # Name of the executable.
43048 as_me=`$as_basename -- "$0" ||
43049 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
43050          X"$0" : 'X\(//\)$' \| \
43051          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
43052 echo X/"$0" |
43053     sed '/^.*\/\([^/][^/]*\)\/*$/{
43054             s//\1/
43055             q
43056           }
43057           /^X\/\(\/\/\)$/{
43058             s//\1/
43059             q
43060           }
43061           /^X\/\(\/\).*/{
43062             s//\1/
43063             q
43064           }
43065           s/.*/./; q'`
43066
43067 # CDPATH.
43068 $as_unset CDPATH
43069
43070
43071
43072   as_lineno_1=$LINENO
43073   as_lineno_2=$LINENO
43074   test "x$as_lineno_1" != "x$as_lineno_2" &&
43075   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
43076
43077   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
43078   # uniformly replaced by the line number.  The first 'sed' inserts a
43079   # line-number line after each line using $LINENO; the second 'sed'
43080   # does the real work.  The second script uses 'N' to pair each
43081   # line-number line with the line containing $LINENO, and appends
43082   # trailing '-' during substitution so that $LINENO is not a special
43083   # case at line end.
43084   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
43085   # scripts with optimization help from Paolo Bonzini.  Blame Lee
43086   # E. McMahon (1931-1989) for sed's syntax.  :-)
43087   sed -n '
43088     p
43089     /[$]LINENO/=
43090   ' <$as_myself |
43091     sed '
43092       s/[$]LINENO.*/&-/
43093       t lineno
43094       b
43095       :lineno
43096       N
43097       :loop
43098       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
43099       t loop
43100       s/-\n.*//
43101     ' >$as_me.lineno &&
43102   chmod +x "$as_me.lineno" ||
43103     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
43104    { (exit 1); exit 1; }; }
43105
43106   # Don't try to exec as it changes $[0], causing all sort of problems
43107   # (the dirname of $[0] is not the place where we might find the
43108   # original and so on.  Autoconf is especially sensitive to this).
43109   . "./$as_me.lineno"
43110   # Exit status is that of the last command.
43111   exit
43112 }
43113
43114
43115 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
43116   as_dirname=dirname
43117 else
43118   as_dirname=false
43119 fi
43120
43121 ECHO_C= ECHO_N= ECHO_T=
43122 case `echo -n x` in
43123 -n*)
43124   case `echo 'x\c'` in
43125   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
43126   *)   ECHO_C='\c';;
43127   esac;;
43128 *)
43129   ECHO_N='-n';;
43130 esac
43131
43132 if expr a : '\(a\)' >/dev/null 2>&1 &&
43133    test "X`expr 00001 : '.*\(...\)'`" = X001; then
43134   as_expr=expr
43135 else
43136   as_expr=false
43137 fi
43138
43139 rm -f conf$$ conf$$.exe conf$$.file
43140 if test -d conf$$.dir; then
43141   rm -f conf$$.dir/conf$$.file
43142 else
43143   rm -f conf$$.dir
43144   mkdir conf$$.dir
43145 fi
43146 echo >conf$$.file
43147 if ln -s conf$$.file conf$$ 2>/dev/null; then
43148   as_ln_s='ln -s'
43149   # ... but there are two gotchas:
43150   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
43151   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
43152   # In both cases, we have to default to `cp -p'.
43153   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
43154     as_ln_s='cp -p'
43155 elif ln conf$$.file conf$$ 2>/dev/null; then
43156   as_ln_s=ln
43157 else
43158   as_ln_s='cp -p'
43159 fi
43160 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
43161 rmdir conf$$.dir 2>/dev/null
43162
43163 if mkdir -p . 2>/dev/null; then
43164   as_mkdir_p=:
43165 else
43166   test -d ./-p && rmdir ./-p
43167   as_mkdir_p=false
43168 fi
43169
43170 if test -x / >/dev/null 2>&1; then
43171   as_test_x='test -x'
43172 else
43173   if ls -dL / >/dev/null 2>&1; then
43174     as_ls_L_option=L
43175   else
43176     as_ls_L_option=
43177   fi
43178   as_test_x='
43179     eval sh -c '\''
43180       if test -d "$1"; then
43181         test -d "$1/.";
43182       else
43183         case $1 in
43184         -*)set "./$1";;
43185         esac;
43186         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
43187         ???[sx]*):;;*)false;;esac;fi
43188     '\'' sh
43189   '
43190 fi
43191 as_executable_p=$as_test_x
43192
43193 # Sed expression to map a string onto a valid CPP name.
43194 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
43195
43196 # Sed expression to map a string onto a valid variable name.
43197 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
43198
43199
43200 exec 6>&1
43201
43202 # Save the log message, to keep $[0] and so on meaningful, and to
43203 # report actual input values of CONFIG_FILES etc. instead of their
43204 # values after options handling.
43205 ac_log="
43206 This file was extended by $as_me, which was
43207 generated by GNU Autoconf 2.61.  Invocation command line was
43208
43209   CONFIG_FILES    = $CONFIG_FILES
43210   CONFIG_HEADERS  = $CONFIG_HEADERS
43211   CONFIG_LINKS    = $CONFIG_LINKS
43212   CONFIG_COMMANDS = $CONFIG_COMMANDS
43213   $ $0 $@
43214
43215 on `(hostname || uname -n) 2>/dev/null | sed 1q`
43216 "
43217
43218 _ACEOF
43219
43220 cat >>$CONFIG_STATUS <<_ACEOF
43221 # Files that config.status was made for.
43222 config_files="$ac_config_files"
43223 config_headers="$ac_config_headers"
43224 config_commands="$ac_config_commands"
43225
43226 _ACEOF
43227
43228 cat >>$CONFIG_STATUS <<\_ACEOF
43229 ac_cs_usage="\
43230 \`$as_me' instantiates files from templates according to the
43231 current configuration.
43232
43233 Usage: $0 [OPTIONS] [FILE]...
43234
43235   -h, --help       print this help, then exit
43236   -V, --version    print version number and configuration settings, then exit
43237   -q, --quiet      do not print progress messages
43238   -d, --debug      don't remove temporary files
43239       --recheck    update $as_me by reconfiguring in the same conditions
43240   --file=FILE[:TEMPLATE]
43241                    instantiate the configuration file FILE
43242   --header=FILE[:TEMPLATE]
43243                    instantiate the configuration header FILE
43244
43245 Configuration files:
43246 $config_files
43247
43248 Configuration headers:
43249 $config_headers
43250
43251 Configuration commands:
43252 $config_commands
43253
43254 Report bugs to <bug-autoconf@gnu.org>."
43255
43256 _ACEOF
43257 cat >>$CONFIG_STATUS <<_ACEOF
43258 ac_cs_version="\\
43259 config.status
43260 configured by $0, generated by GNU Autoconf 2.61,
43261   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
43262
43263 Copyright (C) 2006 Free Software Foundation, Inc.
43264 This config.status script is free software; the Free Software Foundation
43265 gives unlimited permission to copy, distribute and modify it."
43266
43267 ac_pwd='$ac_pwd'
43268 srcdir='$srcdir'
43269 INSTALL='$INSTALL'
43270 _ACEOF
43271
43272 cat >>$CONFIG_STATUS <<\_ACEOF
43273 # If no file are specified by the user, then we need to provide default
43274 # value.  By we need to know if files were specified by the user.
43275 ac_need_defaults=:
43276 while test $# != 0
43277 do
43278   case $1 in
43279   --*=*)
43280     ac_option=`expr "X$1" : 'X\([^=]*\)='`
43281     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
43282     ac_shift=:
43283     ;;
43284   *)
43285     ac_option=$1
43286     ac_optarg=$2
43287     ac_shift=shift
43288     ;;
43289   esac
43290
43291   case $ac_option in
43292   # Handling of the options.
43293   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
43294     ac_cs_recheck=: ;;
43295   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
43296     echo "$ac_cs_version"; exit ;;
43297   --debug | --debu | --deb | --de | --d | -d )
43298     debug=: ;;
43299   --file | --fil | --fi | --f )
43300     $ac_shift
43301     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
43302     ac_need_defaults=false;;
43303   --header | --heade | --head | --hea )
43304     $ac_shift
43305     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
43306     ac_need_defaults=false;;
43307   --he | --h)
43308     # Conflict between --help and --header
43309     { echo "$as_me: error: ambiguous option: $1
43310 Try \`$0 --help' for more information." >&2
43311    { (exit 1); exit 1; }; };;
43312   --help | --hel | -h )
43313     echo "$ac_cs_usage"; exit ;;
43314   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
43315   | -silent | --silent | --silen | --sile | --sil | --si | --s)
43316     ac_cs_silent=: ;;
43317
43318   # This is an error.
43319   -*) { echo "$as_me: error: unrecognized option: $1
43320 Try \`$0 --help' for more information." >&2
43321    { (exit 1); exit 1; }; } ;;
43322
43323   *) ac_config_targets="$ac_config_targets $1"
43324      ac_need_defaults=false ;;
43325
43326   esac
43327   shift
43328 done
43329
43330 ac_configure_extra_args=
43331
43332 if $ac_cs_silent; then
43333   exec 6>/dev/null
43334   ac_configure_extra_args="$ac_configure_extra_args --silent"
43335 fi
43336
43337 _ACEOF
43338 cat >>$CONFIG_STATUS <<_ACEOF
43339 if \$ac_cs_recheck; then
43340   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
43341   CONFIG_SHELL=$SHELL
43342   export CONFIG_SHELL
43343   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
43344 fi
43345
43346 _ACEOF
43347 cat >>$CONFIG_STATUS <<\_ACEOF
43348 exec 5>>config.log
43349 {
43350   echo
43351   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
43352 ## Running $as_me. ##
43353 _ASBOX
43354   echo "$ac_log"
43355 } >&5
43356
43357 _ACEOF
43358 cat >>$CONFIG_STATUS <<_ACEOF
43359 #
43360 # INIT-COMMANDS
43361 #
43362
43363
43364 # The HP-UX ksh and POSIX shell print the target directory to stdout
43365 # if CDPATH is set.
43366 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
43367
43368 sed_quote_subst='$sed_quote_subst'
43369 double_quote_subst='$double_quote_subst'
43370 delay_variable_subst='$delay_variable_subst'
43371 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
43372 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
43373 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
43374 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
43375 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
43376 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
43377 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
43378 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
43379 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
43380 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
43381 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
43382 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
43383 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
43384 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
43385 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
43386 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
43387 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
43388 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
43389 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
43390 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
43391 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
43392 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
43393 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
43394 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
43395 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
43396 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
43397 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
43398 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
43399 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
43400 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
43401 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
43402 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
43403 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
43404 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
43405 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
43406 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
43407 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
43408 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
43409 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
43410 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
43411 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
43412 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
43413 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
43414 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
43415 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"`'
43416 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"`'
43417 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
43418 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
43419 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
43420 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
43421 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
43422 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
43423 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
43424 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
43425 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
43426 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
43427 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
43428 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
43429 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
43430 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
43431 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
43432 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
43433 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
43434 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
43435 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
43436 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
43437 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
43438 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
43439 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
43440 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
43441 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
43442 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
43443 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
43444 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
43445 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
43446 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
43447 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
43448 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
43449 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
43450 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
43451 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
43452 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
43453 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
43454 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
43455 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
43456 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
43457 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
43458 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
43459 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
43460 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
43461 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
43462 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
43463 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
43464 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
43465 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
43466 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
43467 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
43468 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
43469 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
43470 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
43471 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
43472 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
43473 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
43474 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
43475 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
43476 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
43477 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
43478 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
43479 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
43480 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
43481 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
43482 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
43483 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
43484 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
43485 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
43486 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
43487 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
43488 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
43489 compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
43490 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
43491 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
43492 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
43493 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
43494 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
43495 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43496 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43497 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43498 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43499 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43500 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43501 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43502 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43503 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43504 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43505 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43506 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43507 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43508 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43509 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43510 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43511 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43512 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43513 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43514 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43515 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43516 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43517 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43518 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43519 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43520 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43521 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43522 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43523 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43524 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43525 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43526 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43527 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43528 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43529 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43530 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43531 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43532 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43533 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43534 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43535 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43536 compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43537 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43538 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43539 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43540 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43541 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43542
43543 LTCC='$LTCC'
43544 LTCFLAGS='$LTCFLAGS'
43545 compiler='$compiler_DEFAULT'
43546
43547 # Quote evaled strings.
43548 for var in SED \
43549 GREP \
43550 EGREP \
43551 FGREP \
43552 LD \
43553 NM \
43554 LN_S \
43555 lt_SP2NL \
43556 lt_NL2SP \
43557 reload_flag \
43558 OBJDUMP \
43559 deplibs_check_method \
43560 file_magic_cmd \
43561 AR \
43562 AR_FLAGS \
43563 STRIP \
43564 RANLIB \
43565 CC \
43566 CFLAGS \
43567 compiler \
43568 lt_cv_sys_global_symbol_pipe \
43569 lt_cv_sys_global_symbol_to_cdecl \
43570 lt_cv_sys_global_symbol_to_c_name_address \
43571 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
43572 SHELL \
43573 ECHO \
43574 lt_prog_compiler_no_builtin_flag \
43575 lt_prog_compiler_wl \
43576 lt_prog_compiler_pic \
43577 lt_prog_compiler_static \
43578 lt_cv_prog_compiler_c_o \
43579 need_locks \
43580 DSYMUTIL \
43581 NMEDIT \
43582 LIPO \
43583 OTOOL \
43584 OTOOL64 \
43585 shrext_cmds \
43586 export_dynamic_flag_spec \
43587 whole_archive_flag_spec \
43588 compiler_needs_object \
43589 with_gnu_ld \
43590 allow_undefined_flag \
43591 no_undefined_flag \
43592 hardcode_libdir_flag_spec \
43593 hardcode_libdir_flag_spec_ld \
43594 hardcode_libdir_separator \
43595 fix_srcfile_path \
43596 exclude_expsyms \
43597 include_expsyms \
43598 file_list_spec \
43599 variables_saved_for_relink \
43600 libname_spec \
43601 library_names_spec \
43602 soname_spec \
43603 finish_eval \
43604 old_striplib \
43605 striplib \
43606 compiler_lib_search_dirs \
43607 predep_objects \
43608 postdep_objects \
43609 predeps \
43610 postdeps \
43611 compiler_lib_search_path \
43612 LD_CXX \
43613 compiler_CXX \
43614 lt_prog_compiler_no_builtin_flag_CXX \
43615 lt_prog_compiler_wl_CXX \
43616 lt_prog_compiler_pic_CXX \
43617 lt_prog_compiler_static_CXX \
43618 lt_cv_prog_compiler_c_o_CXX \
43619 export_dynamic_flag_spec_CXX \
43620 whole_archive_flag_spec_CXX \
43621 compiler_needs_object_CXX \
43622 with_gnu_ld_CXX \
43623 allow_undefined_flag_CXX \
43624 no_undefined_flag_CXX \
43625 hardcode_libdir_flag_spec_CXX \
43626 hardcode_libdir_flag_spec_ld_CXX \
43627 hardcode_libdir_separator_CXX \
43628 fix_srcfile_path_CXX \
43629 exclude_expsyms_CXX \
43630 include_expsyms_CXX \
43631 file_list_spec_CXX \
43632 compiler_lib_search_dirs_CXX \
43633 predep_objects_CXX \
43634 postdep_objects_CXX \
43635 predeps_CXX \
43636 postdeps_CXX \
43637 compiler_lib_search_path_CXX; do
43638     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
43639     *[\\\\\\\`\\"\\\$]*)
43640       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
43641       ;;
43642     *)
43643       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
43644       ;;
43645     esac
43646 done
43647
43648 # Double-quote double-evaled strings.
43649 for var in reload_cmds \
43650 old_postinstall_cmds \
43651 old_postuninstall_cmds \
43652 old_archive_cmds \
43653 extract_expsyms_cmds \
43654 old_archive_from_new_cmds \
43655 old_archive_from_expsyms_cmds \
43656 archive_cmds \
43657 archive_expsym_cmds \
43658 module_cmds \
43659 module_expsym_cmds \
43660 export_symbols_cmds \
43661 prelink_cmds \
43662 postinstall_cmds \
43663 postuninstall_cmds \
43664 finish_cmds \
43665 sys_lib_search_path_spec \
43666 sys_lib_dlsearch_path_spec \
43667 old_archive_cmds_CXX \
43668 old_archive_from_new_cmds_CXX \
43669 old_archive_from_expsyms_cmds_CXX \
43670 archive_cmds_CXX \
43671 archive_expsym_cmds_CXX \
43672 module_cmds_CXX \
43673 module_expsym_cmds_CXX \
43674 export_symbols_cmds_CXX \
43675 prelink_cmds_CXX; do
43676     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
43677     *[\\\\\\\`\\"\\\$]*)
43678       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
43679       ;;
43680     *)
43681       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
43682       ;;
43683     esac
43684 done
43685
43686 # Fix-up fallback echo if it was mangled by the above quoting rules.
43687 case \$lt_ECHO in
43688 *'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
43689   ;;
43690 esac
43691
43692 ac_aux_dir='$ac_aux_dir'
43693 xsi_shell='$xsi_shell'
43694 lt_shell_append='$lt_shell_append'
43695
43696 # See if we are running on zsh, and set the options which allow our
43697 # commands through without removal of \ escapes INIT.
43698 if test -n "\${ZSH_VERSION+set}" ; then
43699    setopt NO_GLOB_SUBST
43700 fi
43701
43702
43703     PACKAGE='$PACKAGE'
43704     VERSION='$VERSION'
43705     TIMESTAMP='$TIMESTAMP'
43706     RM='$RM'
43707     ofile='$ofile'
43708
43709
43710
43711
43712
43713 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
43714     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
43715     # from automake.
43716     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
43717     # Capture the value of LINGUAS because we need it to compute CATALOGS.
43718     LINGUAS="${LINGUAS-%UNSET%}"
43719
43720
43721 _ACEOF
43722
43723 cat >>$CONFIG_STATUS <<\_ACEOF
43724
43725 # Handling of arguments.
43726 for ac_config_target in $ac_config_targets
43727 do
43728   case $ac_config_target in
43729     "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
43730     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
43731     "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
43732     "autoconf/Make.common") CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
43733     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
43734     "manpages/Makefile") CONFIG_FILES="$CONFIG_FILES manpages/Makefile" ;;
43735     "scripts/startmysql") CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
43736     "scripts/stopmysql") CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
43737     "scripts/btraceback") CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
43738     "scripts/startit") CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
43739     "scripts/stopit") CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
43740     "scripts/bconsole") CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
43741     "scripts/gconsole") CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
43742     "scripts/bacula") CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
43743     "scripts/bacula-ctl-dir") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-dir" ;;
43744     "scripts/bacula-ctl-fd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-fd" ;;
43745     "scripts/bacula-ctl-sd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-sd" ;;
43746     "scripts/devel_bacula") CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
43747     "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
43748     "scripts/logrotate") CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
43749     "scripts/bacula.desktop.gnome1") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
43750     "scripts/bacula.desktop.gnome2") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
43751     "scripts/bacula.desktop.gnome1.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
43752     "scripts/bacula.desktop.gnome2.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
43753     "scripts/bacula.desktop.gnome1.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
43754     "scripts/bacula.desktop.gnome2.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
43755     "scripts/bgnome-console.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bgnome-console.console_apps" ;;
43756     "scripts/mtx-changer") CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
43757     "scripts/disk-changer") CONFIG_FILES="$CONFIG_FILES scripts/disk-changer" ;;
43758     "scripts/dvd-handler") CONFIG_FILES="$CONFIG_FILES scripts/dvd-handler" ;;
43759     "scripts/dvd-simulator") CONFIG_FILES="$CONFIG_FILES scripts/dvd-simulator" ;;
43760     "scripts/bacula-tray-monitor.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bacula-tray-monitor.desktop" ;;
43761     "scripts/logwatch/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/Makefile" ;;
43762     "scripts/logwatch/logfile.bacula.conf") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/logfile.bacula.conf" ;;
43763     "scripts/wxconsole.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.console_apps" ;;
43764     "scripts/wxconsole.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.consolehelper" ;;
43765     "scripts/wxconsole.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.xsu" ;;
43766     "scripts/bat.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop" ;;
43767     "scripts/bat.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.xsu" ;;
43768     "scripts/bat.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.consolehelper" ;;
43769     "scripts/bat.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bat.console_apps" ;;
43770     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
43771     "src/host.h") CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
43772     "src/console/Makefile") CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
43773     "src/console/bconsole.conf") CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
43774     "src/gnome2-console/Makefile") CONFIG_FILES="$CONFIG_FILES src/gnome2-console/Makefile" ;;
43775     "src/gnome2-console/bgnome-console.conf") CONFIG_FILES="$CONFIG_FILES src/gnome2-console/bgnome-console.conf" ;;
43776     "src/qt-console/bat.conf") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.conf" ;;
43777     "src/qt-console/bat.pro") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro" ;;
43778     "src/qt-console/bat.pro.mingw32") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro.mingw32" ;;
43779     "src/qt-console/install_conf_file") CONFIG_FILES="$CONFIG_FILES src/qt-console/install_conf_file" ;;
43780     "src/wx-console/Makefile") CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
43781     "src/wx-console/bwx-console.conf") CONFIG_FILES="$CONFIG_FILES src/wx-console/bwx-console.conf" ;;
43782     "src/tray-monitor/Makefile") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/Makefile" ;;
43783     "src/tray-monitor/tray-monitor.conf") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/tray-monitor.conf" ;;
43784     "src/dird/Makefile") CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
43785     "src/dird/bacula-dir.conf") CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
43786     "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
43787     "src/stored/Makefile") CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
43788     "src/stored/bacula-sd.conf") CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
43789     "src/filed/Makefile") CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
43790     "src/filed/bacula-fd.conf") CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
43791     "src/cats/Makefile") CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
43792     "src/cats/make_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
43793     "src/cats/delete_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
43794     "src/cats/create_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
43795     "src/cats/update_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
43796     "src/cats/make_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
43797     "src/cats/grant_postgresql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
43798     "src/cats/drop_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
43799     "src/cats/drop_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
43800     "src/cats/create_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
43801     "src/cats/update_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
43802     "src/cats/make_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
43803     "src/cats/grant_mysql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
43804     "src/cats/drop_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
43805     "src/cats/drop_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
43806     "src/cats/create_sqlite_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite_database" ;;
43807     "src/cats/update_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite_tables" ;;
43808     "src/cats/make_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite_tables" ;;
43809     "src/cats/grant_sqlite_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite_privileges" ;;
43810     "src/cats/drop_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_tables" ;;
43811     "src/cats/drop_sqlite_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_database" ;;
43812     "src/cats/create_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite3_database" ;;
43813     "src/cats/update_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite3_tables" ;;
43814     "src/cats/make_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite3_tables" ;;
43815     "src/cats/grant_sqlite3_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite3_privileges" ;;
43816     "src/cats/drop_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_tables" ;;
43817     "src/cats/drop_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_database" ;;
43818     "src/cats/sqlite") CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
43819     "src/cats/mysql") CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
43820     "src/cats/create_bdb_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bdb_database" ;;
43821     "src/cats/update_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bdb_tables" ;;
43822     "src/cats/make_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bdb_tables" ;;
43823     "src/cats/grant_bdb_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bdb_privileges" ;;
43824     "src/cats/drop_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_tables" ;;
43825     "src/cats/drop_bdb_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_database" ;;
43826     "src/cats/create_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
43827     "src/cats/update_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
43828     "src/cats/grant_bacula_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
43829     "src/cats/make_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
43830     "src/cats/drop_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
43831     "src/cats/drop_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
43832     "src/findlib/Makefile") CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
43833     "src/tools/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
43834     "src/plugins/fd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/fd/Makefile" ;;
43835     "src/plugins/sd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/sd/Makefile" ;;
43836     "src/plugins/dir/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/dir/Makefile" ;;
43837     "src/win32/Makefile.inc") CONFIG_FILES="$CONFIG_FILES src/win32/Makefile.inc" ;;
43838     "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
43839     "updatedb/update_mysql_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_9_to_10" ;;
43840     "updatedb/update_sqlite3_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_9_to_10" ;;
43841     "updatedb/update_postgresql_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_9_to_10" ;;
43842     "updatedb/update_sqlite_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite_tables_9_to_10" ;;
43843     "updatedb/update_mysql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_10_to_11" ;;
43844     "updatedb/update_sqlite3_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_10_to_11" ;;
43845     "updatedb/update_postgresql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_10_to_11" ;;
43846     "updatedb/update_sqlite_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite_tables_10_to_11" ;;
43847     "$PFILES") CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
43848     "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
43849
43850   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
43851 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
43852    { (exit 1); exit 1; }; };;
43853   esac
43854 done
43855
43856
43857 # If the user did not use the arguments to specify the items to instantiate,
43858 # then the envvar interface is used.  Set only those that are not.
43859 # We use the long form for the default assignment because of an extremely
43860 # bizarre bug on SunOS 4.1.3.
43861 if $ac_need_defaults; then
43862   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
43863   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
43864   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
43865 fi
43866
43867 # Have a temporary directory for convenience.  Make it in the build tree
43868 # simply because there is no reason against having it here, and in addition,
43869 # creating and moving files from /tmp can sometimes cause problems.
43870 # Hook for its removal unless debugging.
43871 # Note that there is a small window in which the directory will not be cleaned:
43872 # after its creation but before its name has been assigned to `$tmp'.
43873 $debug ||
43874 {
43875   tmp=
43876   trap 'exit_status=$?
43877   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
43878 ' 0
43879   trap '{ (exit 1); exit 1; }' 1 2 13 15
43880 }
43881 # Create a (secure) tmp directory for tmp files.
43882
43883 {
43884   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
43885   test -n "$tmp" && test -d "$tmp"
43886 }  ||
43887 {
43888   tmp=./conf$$-$RANDOM
43889   (umask 077 && mkdir "$tmp")
43890 } ||
43891 {
43892    echo "$me: cannot create a temporary directory in ." >&2
43893    { (exit 1); exit 1; }
43894 }
43895
43896 #
43897 # Set up the sed scripts for CONFIG_FILES section.
43898 #
43899
43900 # No need to generate the scripts if there are no CONFIG_FILES.
43901 # This happens for instance when ./config.status config.h
43902 if test -n "$CONFIG_FILES"; then
43903
43904 _ACEOF
43905
43906 # Create sed commands to just substitute file output variables.
43907
43908 # Remaining file output variables are in a fragment that also has non-file
43909 # output varibles.
43910
43911
43912
43913 ac_delim='%!_!# '
43914 for ac_last_try in false false false false false :; do
43915   cat >conf$$subs.sed <<_ACEOF
43916 SHELL!$SHELL$ac_delim
43917 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
43918 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
43919 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
43920 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
43921 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
43922 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
43923 exec_prefix!$exec_prefix$ac_delim
43924 prefix!$prefix$ac_delim
43925 program_transform_name!$program_transform_name$ac_delim
43926 bindir!$bindir$ac_delim
43927 sbindir!$sbindir$ac_delim
43928 libexecdir!$libexecdir$ac_delim
43929 datarootdir!$datarootdir$ac_delim
43930 datadir!$datadir$ac_delim
43931 sysconfdir!$sysconfdir$ac_delim
43932 sharedstatedir!$sharedstatedir$ac_delim
43933 localstatedir!$localstatedir$ac_delim
43934 includedir!$includedir$ac_delim
43935 oldincludedir!$oldincludedir$ac_delim
43936 docdir!$docdir$ac_delim
43937 infodir!$infodir$ac_delim
43938 htmldir!$htmldir$ac_delim
43939 dvidir!$dvidir$ac_delim
43940 pdfdir!$pdfdir$ac_delim
43941 psdir!$psdir$ac_delim
43942 libdir!$libdir$ac_delim
43943 localedir!$localedir$ac_delim
43944 mandir!$mandir$ac_delim
43945 DEFS!$DEFS$ac_delim
43946 ECHO_C!$ECHO_C$ac_delim
43947 ECHO_N!$ECHO_N$ac_delim
43948 ECHO_T!$ECHO_T$ac_delim
43949 LIBS!$LIBS$ac_delim
43950 build_alias!$build_alias$ac_delim
43951 host_alias!$host_alias$ac_delim
43952 target_alias!$target_alias$ac_delim
43953 BUILD_DIR!$BUILD_DIR$ac_delim
43954 TOP_DIR!$TOP_DIR$ac_delim
43955 WIN32BUILDDIR!$WIN32BUILDDIR$ac_delim
43956 WIN32MAINDIR!$WIN32MAINDIR$ac_delim
43957 WIN32TOPDIR!$WIN32TOPDIR$ac_delim
43958 TRUEPRG!$TRUEPRG$ac_delim
43959 FALSEPRG!$FALSEPRG$ac_delim
43960 VERSION!$VERSION$ac_delim
43961 DATE!$DATE$ac_delim
43962 LSMDATE!$LSMDATE$ac_delim
43963 BACULA!$BACULA$ac_delim
43964 post_host!$post_host$ac_delim
43965 CC!$CC$ac_delim
43966 CFLAGS!$CFLAGS$ac_delim
43967 LDFLAGS!$LDFLAGS$ac_delim
43968 CPPFLAGS!$CPPFLAGS$ac_delim
43969 ac_ct_CC!$ac_ct_CC$ac_delim
43970 EXEEXT!$EXEEXT$ac_delim
43971 OBJEXT!$OBJEXT$ac_delim
43972 CXX!$CXX$ac_delim
43973 CXXFLAGS!$CXXFLAGS$ac_delim
43974 ac_ct_CXX!$ac_ct_CXX$ac_delim
43975 CPP!$CPP$ac_delim
43976 GREP!$GREP$ac_delim
43977 EGREP!$EGREP$ac_delim
43978 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
43979 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
43980 INSTALL_DATA!$INSTALL_DATA$ac_delim
43981 MV!$MV$ac_delim
43982 REMOVE!$REMOVE$ac_delim
43983 CP!$CP$ac_delim
43984 SED!$SED$ac_delim
43985 ECHO!$ECHO$ac_delim
43986 CMP!$CMP$ac_delim
43987 TBL!$TBL$ac_delim
43988 AR!$AR$ac_delim
43989 OPENSSL!$OPENSSL$ac_delim
43990 MTX!$MTX$ac_delim
43991 DD!$DD$ac_delim
43992 MKISOFS!$MKISOFS$ac_delim
43993 PYTHON!$PYTHON$ac_delim
43994 GROWISOFS!$GROWISOFS$ac_delim
43995 DVDRWMEDIAINFO!$DVDRWMEDIAINFO$ac_delim
43996 DVDRWFORMAT!$DVDRWFORMAT$ac_delim
43997 PKGCONFIG!$PKGCONFIG$ac_delim
43998 QMAKE!$QMAKE$ac_delim
43999 QMAKEQT4!$QMAKEQT4$ac_delim
44000 GMAKE!$GMAKE$ac_delim
44001 WXCONFIG!$WXCONFIG$ac_delim
44002 WXFLAGS!$WXFLAGS$ac_delim
44003 CDRECORD!$CDRECORD$ac_delim
44004 PIDOF!$PIDOF$ac_delim
44005 AWK!$AWK$ac_delim
44006 ARFLAGS!$ARFLAGS$ac_delim
44007 MAKE_SHELL!$MAKE_SHELL$ac_delim
44008 LOCAL_LIBS!$LOCAL_LIBS$ac_delim
44009 LOCAL_CFLAGS!$LOCAL_CFLAGS$ac_delim
44010 _ACEOF
44011
44012   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 94; then
44013     break
44014   elif $ac_last_try; then
44015     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
44016 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
44017    { (exit 1); exit 1; }; }
44018   else
44019     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
44020   fi
44021 done
44022
44023 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
44024 if test -n "$ac_eof"; then
44025   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
44026   ac_eof=`expr $ac_eof + 1`
44027 fi
44028
44029 cat >>$CONFIG_STATUS <<_ACEOF
44030 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
44031 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
44032 /^[      ]*@MCOMMON@[    ]*$/{
44033 r $MCOMMON
44034 d
44035 }
44036 _ACEOF
44037 sed '
44038 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
44039 s/^/s,@/; s/!/@,|#_!!_#|/
44040 :n
44041 t n
44042 s/'"$ac_delim"'$/,g/; t
44043 s/$/\\/; p
44044 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
44045 ' >>$CONFIG_STATUS <conf$$subs.sed
44046 rm -f conf$$subs.sed
44047 cat >>$CONFIG_STATUS <<_ACEOF
44048 CEOF$ac_eof
44049 _ACEOF
44050
44051
44052 ac_delim='%!_!# '
44053 for ac_last_try in false false false false false :; do
44054   cat >conf$$subs.sed <<_ACEOF
44055 LOCAL_LDFLAGS!$LOCAL_LDFLAGS$ac_delim
44056 LOCAL_DEFS!$LOCAL_DEFS$ac_delim
44057 LIBTOOL!$LIBTOOL$ac_delim
44058 build!$build$ac_delim
44059 build_cpu!$build_cpu$ac_delim
44060 build_vendor!$build_vendor$ac_delim
44061 build_os!$build_os$ac_delim
44062 host!$host$ac_delim
44063 host_cpu!$host_cpu$ac_delim
44064 host_vendor!$host_vendor$ac_delim
44065 host_os!$host_os$ac_delim
44066 FGREP!$FGREP$ac_delim
44067 LD!$LD$ac_delim
44068 DUMPBIN!$DUMPBIN$ac_delim
44069 ac_ct_DUMPBIN!$ac_ct_DUMPBIN$ac_delim
44070 NM!$NM$ac_delim
44071 LN_S!$LN_S$ac_delim
44072 OBJDUMP!$OBJDUMP$ac_delim
44073 STRIP!$STRIP$ac_delim
44074 RANLIB!$RANLIB$ac_delim
44075 lt_ECHO!$lt_ECHO$ac_delim
44076 DSYMUTIL!$DSYMUTIL$ac_delim
44077 NMEDIT!$NMEDIT$ac_delim
44078 LIPO!$LIPO$ac_delim
44079 OTOOL!$OTOOL$ac_delim
44080 OTOOL64!$OTOOL64$ac_delim
44081 CXXCPP!$CXXCPP$ac_delim
44082 DEFAULT_OBJECT_TYPE!$DEFAULT_OBJECT_TYPE$ac_delim
44083 DEFAULT_ARCHIVE_TYPE!$DEFAULT_ARCHIVE_TYPE$ac_delim
44084 DEFAULT_SHARED_OBJECT_TYPE!$DEFAULT_SHARED_OBJECT_TYPE$ac_delim
44085 LIBTOOL_INSTALL_TARGET!$LIBTOOL_INSTALL_TARGET$ac_delim
44086 LIBTOOL_UNINSTALL_TARGET!$LIBTOOL_UNINSTALL_TARGET$ac_delim
44087 LIBTOOL_CLEAN_TARGET!$LIBTOOL_CLEAN_TARGET$ac_delim
44088 QMAKE_LIBTOOL!$QMAKE_LIBTOOL$ac_delim
44089 INCLUDE_INSTALL_TARGET!$INCLUDE_INSTALL_TARGET$ac_delim
44090 INCLUDE_UNINSTALL_TARGET!$INCLUDE_UNINSTALL_TARGET$ac_delim
44091 HAVE_SUN_OS_TRUE!$HAVE_SUN_OS_TRUE$ac_delim
44092 HAVE_SUN_OS_FALSE!$HAVE_SUN_OS_FALSE$ac_delim
44093 HAVE_OSF1_OS_TRUE!$HAVE_OSF1_OS_TRUE$ac_delim
44094 HAVE_OSF1_OS_FALSE!$HAVE_OSF1_OS_FALSE$ac_delim
44095 HAVE_AIX_OS_TRUE!$HAVE_AIX_OS_TRUE$ac_delim
44096 HAVE_AIX_OS_FALSE!$HAVE_AIX_OS_FALSE$ac_delim
44097 HAVE_HPUX_OS_TRUE!$HAVE_HPUX_OS_TRUE$ac_delim
44098 HAVE_HPUX_OS_FALSE!$HAVE_HPUX_OS_FALSE$ac_delim
44099 HAVE_LINUX_OS_TRUE!$HAVE_LINUX_OS_TRUE$ac_delim
44100 HAVE_LINUX_OS_FALSE!$HAVE_LINUX_OS_FALSE$ac_delim
44101 HAVE_FREEBSD_OS_TRUE!$HAVE_FREEBSD_OS_TRUE$ac_delim
44102 HAVE_FREEBSD_OS_FALSE!$HAVE_FREEBSD_OS_FALSE$ac_delim
44103 HAVE_NETBSD_OS_TRUE!$HAVE_NETBSD_OS_TRUE$ac_delim
44104 HAVE_NETBSD_OS_FALSE!$HAVE_NETBSD_OS_FALSE$ac_delim
44105 HAVE_OPENBSD_OS_TRUE!$HAVE_OPENBSD_OS_TRUE$ac_delim
44106 HAVE_OPENBSD_OS_FALSE!$HAVE_OPENBSD_OS_FALSE$ac_delim
44107 HAVE_BSDI_OS_TRUE!$HAVE_BSDI_OS_TRUE$ac_delim
44108 HAVE_BSDI_OS_FALSE!$HAVE_BSDI_OS_FALSE$ac_delim
44109 HAVE_SGI_OS_TRUE!$HAVE_SGI_OS_TRUE$ac_delim
44110 HAVE_SGI_OS_FALSE!$HAVE_SGI_OS_FALSE$ac_delim
44111 HAVE_IRIX_OS_TRUE!$HAVE_IRIX_OS_TRUE$ac_delim
44112 HAVE_IRIX_OS_FALSE!$HAVE_IRIX_OS_FALSE$ac_delim
44113 HAVE_DARWIN_OS_TRUE!$HAVE_DARWIN_OS_TRUE$ac_delim
44114 HAVE_DARWIN_OS_FALSE!$HAVE_DARWIN_OS_FALSE$ac_delim
44115 SET_MAKE!$SET_MAKE$ac_delim
44116 MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
44117 USE_NLS!$USE_NLS$ac_delim
44118 MSGFMT!$MSGFMT$ac_delim
44119 GMSGFMT!$GMSGFMT$ac_delim
44120 XGETTEXT!$XGETTEXT$ac_delim
44121 MSGMERGE!$MSGMERGE$ac_delim
44122 INTL_MACOSX_LIBS!$INTL_MACOSX_LIBS$ac_delim
44123 LIBICONV!$LIBICONV$ac_delim
44124 LTLIBICONV!$LTLIBICONV$ac_delim
44125 INTLLIBS!$INTLLIBS$ac_delim
44126 LIBINTL!$LIBINTL$ac_delim
44127 LTLIBINTL!$LTLIBINTL$ac_delim
44128 POSUB!$POSUB$ac_delim
44129 GLIBC2!$GLIBC2$ac_delim
44130 ALLOCA!$ALLOCA$ac_delim
44131 GLIBC21!$GLIBC21$ac_delim
44132 HAVE_POSIX_PRINTF!$HAVE_POSIX_PRINTF$ac_delim
44133 HAVE_ASPRINTF!$HAVE_ASPRINTF$ac_delim
44134 HAVE_SNPRINTF!$HAVE_SNPRINTF$ac_delim
44135 HAVE_WPRINTF!$HAVE_WPRINTF$ac_delim
44136 INTLBISON!$INTLBISON$ac_delim
44137 BUILD_INCLUDED_LIBINTL!$BUILD_INCLUDED_LIBINTL$ac_delim
44138 USE_INCLUDED_LIBINTL!$USE_INCLUDED_LIBINTL$ac_delim
44139 CATOBJEXT!$CATOBJEXT$ac_delim
44140 DATADIRNAME!$DATADIRNAME$ac_delim
44141 INSTOBJEXT!$INSTOBJEXT$ac_delim
44142 GENCAT!$GENCAT$ac_delim
44143 INTLOBJS!$INTLOBJS$ac_delim
44144 INTL_LIBTOOL_SUFFIX_PREFIX!$INTL_LIBTOOL_SUFFIX_PREFIX$ac_delim
44145 GNOME_INCLUDEDIR!$GNOME_INCLUDEDIR$ac_delim
44146 GNOMEUI_LIBS!$GNOMEUI_LIBS$ac_delim
44147 GNOME_LIBDIR!$GNOME_LIBDIR$ac_delim
44148 GNOME_LIBS!$GNOME_LIBS$ac_delim
44149 GNOME_DIR!$GNOME_DIR$ac_delim
44150 BAT_DIR!$BAT_DIR$ac_delim
44151 QWT_INC!$QWT_INC$ac_delim
44152 _ACEOF
44153
44154   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
44155     break
44156   elif $ac_last_try; then
44157     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
44158 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
44159    { (exit 1); exit 1; }; }
44160   else
44161     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
44162   fi
44163 done
44164
44165 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
44166 if test -n "$ac_eof"; then
44167   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
44168   ac_eof=`expr $ac_eof + 1`
44169 fi
44170
44171 cat >>$CONFIG_STATUS <<_ACEOF
44172 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
44173 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
44174 _ACEOF
44175 sed '
44176 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
44177 s/^/s,@/; s/!/@,|#_!!_#|/
44178 :n
44179 t n
44180 s/'"$ac_delim"'$/,g/; t
44181 s/$/\\/; p
44182 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
44183 ' >>$CONFIG_STATUS <conf$$subs.sed
44184 rm -f conf$$subs.sed
44185 cat >>$CONFIG_STATUS <<_ACEOF
44186 CEOF$ac_eof
44187 _ACEOF
44188
44189
44190 ac_delim='%!_!# '
44191 for ac_last_try in false false false false false :; do
44192   cat >conf$$subs.sed <<_ACEOF
44193 QWT_LDFLAGS!$QWT_LDFLAGS$ac_delim
44194 QWT_LIB!$QWT_LIB$ac_delim
44195 QWT!$QWT$ac_delim
44196 WXCONS_CPPFLAGS!$WXCONS_CPPFLAGS$ac_delim
44197 WXCONS_LDFLAGS!$WXCONS_LDFLAGS$ac_delim
44198 WX_DIR!$WX_DIR$ac_delim
44199 TRAY_MONITOR_CPPFLAGS!$TRAY_MONITOR_CPPFLAGS$ac_delim
44200 TRAY_MONITOR_LDFLAGS!$TRAY_MONITOR_LDFLAGS$ac_delim
44201 TRAY_MONITOR_DIR!$TRAY_MONITOR_DIR$ac_delim
44202 TTOOL_LDFLAGS!$TTOOL_LDFLAGS$ac_delim
44203 STATIC_FD!$STATIC_FD$ac_delim
44204 STATIC_SD!$STATIC_SD$ac_delim
44205 STATIC_DIR!$STATIC_DIR$ac_delim
44206 STATIC_CONS!$STATIC_CONS$ac_delim
44207 STATIC_GNOME_CONS!$STATIC_GNOME_CONS$ac_delim
44208 STATIC_WX_CONS!$STATIC_WX_CONS$ac_delim
44209 ALL_DIRS!$ALL_DIRS$ac_delim
44210 DIRD_DIR!$DIRD_DIR$ac_delim
44211 DIR_TOOLS!$DIR_TOOLS$ac_delim
44212 STORED_DIR!$STORED_DIR$ac_delim
44213 CONS_INC!$CONS_INC$ac_delim
44214 CONS_OBJ!$CONS_OBJ$ac_delim
44215 CONS_SRC!$CONS_SRC$ac_delim
44216 CONS_LIBS!$CONS_LIBS$ac_delim
44217 CONS_LDFLAGS!$CONS_LDFLAGS$ac_delim
44218 READLINE_SRC!$READLINE_SRC$ac_delim
44219 PYTHON_LIBS!$PYTHON_LIBS$ac_delim
44220 PYTHON_INCDIR!$PYTHON_INCDIR$ac_delim
44221 OPENSSL_LIBS!$OPENSSL_LIBS$ac_delim
44222 OPENSSL_INC!$OPENSSL_INC$ac_delim
44223 working_dir!$working_dir$ac_delim
44224 archivedir!$archivedir$ac_delim
44225 scriptdir!$scriptdir$ac_delim
44226 bsrdir!$bsrdir$ac_delim
44227 logdir!$logdir$ac_delim
44228 plugindir!$plugindir$ac_delim
44229 dump_email!$dump_email$ac_delim
44230 job_email!$job_email$ac_delim
44231 smtp_host!$smtp_host$ac_delim
44232 piddir!$piddir$ac_delim
44233 subsysdir!$subsysdir$ac_delim
44234 baseport!$baseport$ac_delim
44235 dir_port!$dir_port$ac_delim
44236 fd_port!$fd_port$ac_delim
44237 sd_port!$sd_port$ac_delim
44238 dir_password!$dir_password$ac_delim
44239 fd_password!$fd_password$ac_delim
44240 sd_password!$sd_password$ac_delim
44241 mon_dir_password!$mon_dir_password$ac_delim
44242 mon_fd_password!$mon_fd_password$ac_delim
44243 mon_sd_password!$mon_sd_password$ac_delim
44244 db_name!$db_name$ac_delim
44245 db_user!$db_user$ac_delim
44246 db_password!$db_password$ac_delim
44247 db_port!$db_port$ac_delim
44248 dir_user!$dir_user$ac_delim
44249 dir_group!$dir_group$ac_delim
44250 sd_user!$sd_user$ac_delim
44251 sd_group!$sd_group$ac_delim
44252 fd_user!$fd_user$ac_delim
44253 fd_group!$fd_group$ac_delim
44254 SBINPERM!$SBINPERM$ac_delim
44255 SQL_LFLAGS!$SQL_LFLAGS$ac_delim
44256 SQL_INCLUDE!$SQL_INCLUDE$ac_delim
44257 SQL_BINDIR!$SQL_BINDIR$ac_delim
44258 DBI_DBD_DRIVERDIR!$DBI_DBD_DRIVERDIR$ac_delim
44259 uncomment_dbi!$uncomment_dbi$ac_delim
44260 DB_PROG!$DB_PROG$ac_delim
44261 DB_PROG_LIB!$DB_PROG_LIB$ac_delim
44262 cats!$cats$ac_delim
44263 DB_TYPE!$DB_TYPE$ac_delim
44264 GETCONF!$GETCONF$ac_delim
44265 XMKMF!$XMKMF$ac_delim
44266 X_CFLAGS!$X_CFLAGS$ac_delim
44267 X_PRE_LIBS!$X_PRE_LIBS$ac_delim
44268 X_LIBS!$X_LIBS$ac_delim
44269 X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
44270 LIBOBJS!$LIBOBJS$ac_delim
44271 FDLIBS!$FDLIBS$ac_delim
44272 DEBUG!$DEBUG$ac_delim
44273 DINCLUDE!$DINCLUDE$ac_delim
44274 DLIB!$DLIB$ac_delim
44275 DB_LIBS!$DB_LIBS$ac_delim
44276 WCFLAGS!$WCFLAGS$ac_delim
44277 WLDFLAGS!$WLDFLAGS$ac_delim
44278 WRAPLIBS!$WRAPLIBS$ac_delim
44279 OBJLIST!$OBJLIST$ac_delim
44280 hostname!$hostname$ac_delim
44281 TAPEDRIVE!$TAPEDRIVE$ac_delim
44282 PSCMD!$PSCMD$ac_delim
44283 WIN32!$WIN32$ac_delim
44284 MACOSX!$MACOSX$ac_delim
44285 DISTNAME!$DISTNAME$ac_delim
44286 DISTVER!$DISTVER$ac_delim
44287 LTLIBOBJS!$LTLIBOBJS$ac_delim
44288 _ACEOF
44289
44290   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 95; then
44291     break
44292   elif $ac_last_try; then
44293     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
44294 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
44295    { (exit 1); exit 1; }; }
44296   else
44297     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
44298   fi
44299 done
44300
44301 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
44302 if test -n "$ac_eof"; then
44303   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
44304   ac_eof=`expr $ac_eof + 1`
44305 fi
44306
44307 cat >>$CONFIG_STATUS <<_ACEOF
44308 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
44309 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
44310 _ACEOF
44311 sed '
44312 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
44313 s/^/s,@/; s/!/@,|#_!!_#|/
44314 :n
44315 t n
44316 s/'"$ac_delim"'$/,g/; t
44317 s/$/\\/; p
44318 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
44319 ' >>$CONFIG_STATUS <conf$$subs.sed
44320 rm -f conf$$subs.sed
44321 cat >>$CONFIG_STATUS <<_ACEOF
44322 :end
44323 s/|#_!!_#|//g
44324 CEOF$ac_eof
44325 _ACEOF
44326
44327
44328 # VPATH may cause trouble with some makes, so we remove $(srcdir),
44329 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
44330 # trailing colons and then remove the whole line if VPATH becomes empty
44331 # (actually we leave an empty line to preserve line numbers).
44332 if test "x$srcdir" = x.; then
44333   ac_vpsub='/^[  ]*VPATH[        ]*=/{
44334 s/:*\$(srcdir):*/:/
44335 s/:*\${srcdir}:*/:/
44336 s/:*@srcdir@:*/:/
44337 s/^\([^=]*=[     ]*\):*/\1/
44338 s/:*$//
44339 s/^[^=]*=[       ]*$//
44340 }'
44341 fi
44342
44343 cat >>$CONFIG_STATUS <<\_ACEOF
44344 fi # test -n "$CONFIG_FILES"
44345
44346
44347 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
44348 do
44349   case $ac_tag in
44350   :[FHLC]) ac_mode=$ac_tag; continue;;
44351   esac
44352   case $ac_mode$ac_tag in
44353   :[FHL]*:*);;
44354   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
44355 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
44356    { (exit 1); exit 1; }; };;
44357   :[FH]-) ac_tag=-:-;;
44358   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
44359   esac
44360   ac_save_IFS=$IFS
44361   IFS=:
44362   set x $ac_tag
44363   IFS=$ac_save_IFS
44364   shift
44365   ac_file=$1
44366   shift
44367
44368   case $ac_mode in
44369   :L) ac_source=$1;;
44370   :[FH])
44371     ac_file_inputs=
44372     for ac_f
44373     do
44374       case $ac_f in
44375       -) ac_f="$tmp/stdin";;
44376       *) # Look for the file first in the build tree, then in the source tree
44377          # (if the path is not absolute).  The absolute path cannot be DOS-style,
44378          # because $ac_f cannot contain `:'.
44379          test -f "$ac_f" ||
44380            case $ac_f in
44381            [\\/$]*) false;;
44382            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
44383            esac ||
44384            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
44385 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
44386    { (exit 1); exit 1; }; };;
44387       esac
44388       ac_file_inputs="$ac_file_inputs $ac_f"
44389     done
44390
44391     # Let's still pretend it is `configure' which instantiates (i.e., don't
44392     # use $as_me), people would be surprised to read:
44393     #    /* config.h.  Generated by config.status.  */
44394     configure_input="Generated from "`IFS=:
44395           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
44396     if test x"$ac_file" != x-; then
44397       configure_input="$ac_file.  $configure_input"
44398       { echo "$as_me:$LINENO: creating $ac_file" >&5
44399 echo "$as_me: creating $ac_file" >&6;}
44400     fi
44401
44402     case $ac_tag in
44403     *:-:* | *:-) cat >"$tmp/stdin";;
44404     esac
44405     ;;
44406   esac
44407
44408   ac_dir=`$as_dirname -- "$ac_file" ||
44409 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
44410          X"$ac_file" : 'X\(//\)[^/]' \| \
44411          X"$ac_file" : 'X\(//\)$' \| \
44412          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
44413 echo X"$ac_file" |
44414     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
44415             s//\1/
44416             q
44417           }
44418           /^X\(\/\/\)[^/].*/{
44419             s//\1/
44420             q
44421           }
44422           /^X\(\/\/\)$/{
44423             s//\1/
44424             q
44425           }
44426           /^X\(\/\).*/{
44427             s//\1/
44428             q
44429           }
44430           s/.*/./; q'`
44431   { as_dir="$ac_dir"
44432   case $as_dir in #(
44433   -*) as_dir=./$as_dir;;
44434   esac
44435   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
44436     as_dirs=
44437     while :; do
44438       case $as_dir in #(
44439       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
44440       *) as_qdir=$as_dir;;
44441       esac
44442       as_dirs="'$as_qdir' $as_dirs"
44443       as_dir=`$as_dirname -- "$as_dir" ||
44444 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
44445          X"$as_dir" : 'X\(//\)[^/]' \| \
44446          X"$as_dir" : 'X\(//\)$' \| \
44447          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
44448 echo X"$as_dir" |
44449     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
44450             s//\1/
44451             q
44452           }
44453           /^X\(\/\/\)[^/].*/{
44454             s//\1/
44455             q
44456           }
44457           /^X\(\/\/\)$/{
44458             s//\1/
44459             q
44460           }
44461           /^X\(\/\).*/{
44462             s//\1/
44463             q
44464           }
44465           s/.*/./; q'`
44466       test -d "$as_dir" && break
44467     done
44468     test -z "$as_dirs" || eval "mkdir $as_dirs"
44469   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
44470 echo "$as_me: error: cannot create directory $as_dir" >&2;}
44471    { (exit 1); exit 1; }; }; }
44472   ac_builddir=.
44473
44474 case "$ac_dir" in
44475 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
44476 *)
44477   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
44478   # A ".." for each directory in $ac_dir_suffix.
44479   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
44480   case $ac_top_builddir_sub in
44481   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
44482   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
44483   esac ;;
44484 esac
44485 ac_abs_top_builddir=$ac_pwd
44486 ac_abs_builddir=$ac_pwd$ac_dir_suffix
44487 # for backward compatibility:
44488 ac_top_builddir=$ac_top_build_prefix
44489
44490 case $srcdir in
44491   .)  # We are building in place.
44492     ac_srcdir=.
44493     ac_top_srcdir=$ac_top_builddir_sub
44494     ac_abs_top_srcdir=$ac_pwd ;;
44495   [\\/]* | ?:[\\/]* )  # Absolute name.
44496     ac_srcdir=$srcdir$ac_dir_suffix;
44497     ac_top_srcdir=$srcdir
44498     ac_abs_top_srcdir=$srcdir ;;
44499   *) # Relative name.
44500     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
44501     ac_top_srcdir=$ac_top_build_prefix$srcdir
44502     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
44503 esac
44504 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
44505
44506
44507   case $ac_mode in
44508   :F)
44509   #
44510   # CONFIG_FILE
44511   #
44512
44513   case $INSTALL in
44514   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
44515   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
44516   esac
44517 _ACEOF
44518
44519 cat >>$CONFIG_STATUS <<\_ACEOF
44520 # If the template does not know about datarootdir, expand it.
44521 # FIXME: This hack should be removed a few years after 2.60.
44522 ac_datarootdir_hack=; ac_datarootdir_seen=
44523
44524 case `sed -n '/datarootdir/ {
44525   p
44526   q
44527 }
44528 /@datadir@/p
44529 /@docdir@/p
44530 /@infodir@/p
44531 /@localedir@/p
44532 /@mandir@/p
44533 ' $ac_file_inputs` in
44534 *datarootdir*) ac_datarootdir_seen=yes;;
44535 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
44536   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
44537 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
44538 _ACEOF
44539 cat >>$CONFIG_STATUS <<_ACEOF
44540   ac_datarootdir_hack='
44541   s&@datadir@&$datadir&g
44542   s&@docdir@&$docdir&g
44543   s&@infodir@&$infodir&g
44544   s&@localedir@&$localedir&g
44545   s&@mandir@&$mandir&g
44546     s&\\\${datarootdir}&$datarootdir&g' ;;
44547 esac
44548 _ACEOF
44549
44550 # Neutralize VPATH when `$srcdir' = `.'.
44551 # Shell code in configure.ac might set extrasub.
44552 # FIXME: do we really want to maintain this feature?
44553 cat >>$CONFIG_STATUS <<_ACEOF
44554   sed "$ac_vpsub
44555 $extrasub
44556 _ACEOF
44557 cat >>$CONFIG_STATUS <<\_ACEOF
44558 :t
44559 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
44560 s&@configure_input@&$configure_input&;t t
44561 s&@top_builddir@&$ac_top_builddir_sub&;t t
44562 s&@srcdir@&$ac_srcdir&;t t
44563 s&@abs_srcdir@&$ac_abs_srcdir&;t t
44564 s&@top_srcdir@&$ac_top_srcdir&;t t
44565 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
44566 s&@builddir@&$ac_builddir&;t t
44567 s&@abs_builddir@&$ac_abs_builddir&;t t
44568 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
44569 s&@INSTALL@&$ac_INSTALL&;t t
44570 $ac_datarootdir_hack
44571 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
44572
44573 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
44574   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
44575   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
44576   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
44577 which seems to be undefined.  Please make sure it is defined." >&5
44578 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
44579 which seems to be undefined.  Please make sure it is defined." >&2;}
44580
44581   rm -f "$tmp/stdin"
44582   case $ac_file in
44583   -) cat "$tmp/out"; rm -f "$tmp/out";;
44584   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
44585   esac
44586  ;;
44587   :H)
44588   #
44589   # CONFIG_HEADER
44590   #
44591 _ACEOF
44592
44593 # Transform confdefs.h into a sed script `conftest.defines', that
44594 # substitutes the proper values into config.h.in to produce config.h.
44595 rm -f conftest.defines conftest.tail
44596 # First, append a space to every undef/define line, to ease matching.
44597 echo 's/$/ /' >conftest.defines
44598 # Then, protect against being on the right side of a sed subst, or in
44599 # an unquoted here document, in config.status.  If some macros were
44600 # called several times there might be several #defines for the same
44601 # symbol, which is useless.  But do not sort them, since the last
44602 # AC_DEFINE must be honored.
44603 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
44604 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
44605 # NAME is the cpp macro being defined, VALUE is the value it is being given.
44606 # PARAMS is the parameter list in the macro definition--in most cases, it's
44607 # just an empty string.
44608 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
44609 ac_dB='\\)[      (].*,\\1define\\2'
44610 ac_dC=' '
44611 ac_dD=' ,'
44612
44613 uniq confdefs.h |
44614   sed -n '
44615         t rset
44616         :rset
44617         s/^[     ]*#[    ]*define[       ][      ]*//
44618         t ok
44619         d
44620         :ok
44621         s/[\\&,]/\\&/g
44622         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
44623         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
44624   ' >>conftest.defines
44625
44626 # Remove the space that was appended to ease matching.
44627 # Then replace #undef with comments.  This is necessary, for
44628 # example, in the case of _POSIX_SOURCE, which is predefined and required
44629 # on some systems where configure will not decide to define it.
44630 # (The regexp can be short, since the line contains either #define or #undef.)
44631 echo 's/ $//
44632 s,^[     #]*u.*,/* & */,' >>conftest.defines
44633
44634 # Break up conftest.defines:
44635 ac_max_sed_lines=50
44636
44637 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
44638 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
44639 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
44640 # et cetera.
44641 ac_in='$ac_file_inputs'
44642 ac_out='"$tmp/out1"'
44643 ac_nxt='"$tmp/out2"'
44644
44645 while :
44646 do
44647   # Write a here document:
44648     cat >>$CONFIG_STATUS <<_ACEOF
44649     # First, check the format of the line:
44650     cat >"\$tmp/defines.sed" <<\\CEOF
44651 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
44652 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
44653 b
44654 :def
44655 _ACEOF
44656   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
44657   echo 'CEOF
44658     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
44659   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
44660   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
44661   grep . conftest.tail >/dev/null || break
44662   rm -f conftest.defines
44663   mv conftest.tail conftest.defines
44664 done
44665 rm -f conftest.defines conftest.tail
44666
44667 echo "ac_result=$ac_in" >>$CONFIG_STATUS
44668 cat >>$CONFIG_STATUS <<\_ACEOF
44669   if test x"$ac_file" != x-; then
44670     echo "/* $configure_input  */" >"$tmp/config.h"
44671     cat "$ac_result" >>"$tmp/config.h"
44672     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
44673       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
44674 echo "$as_me: $ac_file is unchanged" >&6;}
44675     else
44676       rm -f $ac_file
44677       mv "$tmp/config.h" $ac_file
44678     fi
44679   else
44680     echo "/* $configure_input  */"
44681     cat "$ac_result"
44682   fi
44683   rm -f "$tmp/out12"
44684  ;;
44685
44686   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
44687 echo "$as_me: executing $ac_file commands" >&6;}
44688  ;;
44689   esac
44690
44691
44692   case $ac_file$ac_mode in
44693     "libtool":C)
44694
44695     # See if we are running on zsh, and set the options which allow our
44696     # commands through without removal of \ escapes.
44697     if test -n "${ZSH_VERSION+set}" ; then
44698       setopt NO_GLOB_SUBST
44699     fi
44700
44701     cfgfile="${ofile}T"
44702     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
44703     $RM "$cfgfile"
44704
44705     cat <<_LT_EOF >> "$cfgfile"
44706 #! $SHELL
44707
44708 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
44709 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
44710 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
44711 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
44712 #
44713 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
44714 #                 2006, 2007, 2008 Free Software Foundation, Inc.
44715 #   Written by Gordon Matzigkeit, 1996
44716 #
44717 #   This file is part of GNU Libtool.
44718 #
44719 # GNU Libtool is free software; you can redistribute it and/or
44720 # modify it under the terms of the GNU General Public License as
44721 # published by the Free Software Foundation; either version 2 of
44722 # the License, or (at your option) any later version.
44723 #
44724 # As a special exception to the GNU General Public License,
44725 # if you distribute this file as part of a program or library that
44726 # is built using GNU Libtool, you may include this file under the
44727 # same distribution terms that you use for the rest of that program.
44728 #
44729 # GNU Libtool is distributed in the hope that it will be useful,
44730 # but WITHOUT ANY WARRANTY; without even the implied warranty of
44731 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
44732 # GNU General Public License for more details.
44733 #
44734 # You should have received a copy of the GNU General Public License
44735 # along with GNU Libtool; see the file COPYING.  If not, a copy
44736 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
44737 # obtained by writing to the Free Software Foundation, Inc.,
44738 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
44739
44740
44741 # The names of the tagged configurations supported by this script.
44742 available_tags="CXX "
44743
44744 # ### BEGIN LIBTOOL CONFIG
44745
44746 # Which release of libtool.m4 was used?
44747 macro_version=$macro_version
44748 macro_revision=$macro_revision
44749
44750 # Whether or not to build shared libraries.
44751 build_libtool_libs=$enable_shared
44752
44753 # Whether or not to build static libraries.
44754 build_old_libs=$enable_static
44755
44756 # What type of objects to build.
44757 pic_mode=$pic_mode
44758
44759 # Whether or not to optimize for fast installation.
44760 fast_install=$enable_fast_install
44761
44762 # The host system.
44763 host_alias=$host_alias
44764 host=$host
44765 host_os=$host_os
44766
44767 # The build system.
44768 build_alias=$build_alias
44769 build=$build
44770 build_os=$build_os
44771
44772 # A sed program that does not truncate output.
44773 SED=$lt_SED
44774
44775 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
44776 Xsed="\$SED -e 1s/^X//"
44777
44778 # A grep program that handles long lines.
44779 GREP=$lt_GREP
44780
44781 # An ERE matcher.
44782 EGREP=$lt_EGREP
44783
44784 # A literal string matcher.
44785 FGREP=$lt_FGREP
44786
44787 # A BSD- or MS-compatible name lister.
44788 NM=$lt_NM
44789
44790 # Whether we need soft or hard links.
44791 LN_S=$lt_LN_S
44792
44793 # What is the maximum length of a command?
44794 max_cmd_len=$max_cmd_len
44795
44796 # Object file suffix (normally "o").
44797 objext=$ac_objext
44798
44799 # Executable file suffix (normally "").
44800 exeext=$exeext
44801
44802 # whether the shell understands "unset".
44803 lt_unset=$lt_unset
44804
44805 # turn spaces into newlines.
44806 SP2NL=$lt_lt_SP2NL
44807
44808 # turn newlines into spaces.
44809 NL2SP=$lt_lt_NL2SP
44810
44811 # How to create reloadable object files.
44812 reload_flag=$lt_reload_flag
44813 reload_cmds=$lt_reload_cmds
44814
44815 # An object symbol dumper.
44816 OBJDUMP=$lt_OBJDUMP
44817
44818 # Method to check whether dependent libraries are shared objects.
44819 deplibs_check_method=$lt_deplibs_check_method
44820
44821 # Command to use when deplibs_check_method == "file_magic".
44822 file_magic_cmd=$lt_file_magic_cmd
44823
44824 # The archiver.
44825 AR=$lt_AR
44826 AR_FLAGS=$lt_AR_FLAGS
44827
44828 # A symbol stripping program.
44829 STRIP=$lt_STRIP
44830
44831 # Commands used to install an old-style archive.
44832 RANLIB=$lt_RANLIB
44833 old_postinstall_cmds=$lt_old_postinstall_cmds
44834 old_postuninstall_cmds=$lt_old_postuninstall_cmds
44835
44836 # A C compiler.
44837 LTCC=$lt_CC
44838
44839 # LTCC compiler flags.
44840 LTCFLAGS=$lt_CFLAGS
44841
44842 # Take the output of nm and produce a listing of raw symbols and C names.
44843 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
44844
44845 # Transform the output of nm in a proper C declaration.
44846 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
44847
44848 # Transform the output of nm in a C name address pair.
44849 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
44850
44851 # Transform the output of nm in a C name address pair when lib prefix is needed.
44852 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
44853
44854 # The name of the directory that contains temporary libtool files.
44855 objdir=$objdir
44856
44857 # Shell to use when invoking shell scripts.
44858 SHELL=$lt_SHELL
44859
44860 # An echo program that does not interpret backslashes.
44861 ECHO=$lt_ECHO
44862
44863 # Used to examine libraries when file_magic_cmd begins with "file".
44864 MAGIC_CMD=$MAGIC_CMD
44865
44866 # Must we lock files when doing compilation?
44867 need_locks=$lt_need_locks
44868
44869 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
44870 DSYMUTIL=$lt_DSYMUTIL
44871
44872 # Tool to change global to local symbols on Mac OS X.
44873 NMEDIT=$lt_NMEDIT
44874
44875 # Tool to manipulate fat objects and archives on Mac OS X.
44876 LIPO=$lt_LIPO
44877
44878 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
44879 OTOOL=$lt_OTOOL
44880
44881 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
44882 OTOOL64=$lt_OTOOL64
44883
44884 # Old archive suffix (normally "a").
44885 libext=$libext
44886
44887 # Shared library suffix (normally ".so").
44888 shrext_cmds=$lt_shrext_cmds
44889
44890 # The commands to extract the exported symbol list from a shared archive.
44891 extract_expsyms_cmds=$lt_extract_expsyms_cmds
44892
44893 # Variables whose values should be saved in libtool wrapper scripts and
44894 # restored at link time.
44895 variables_saved_for_relink=$lt_variables_saved_for_relink
44896
44897 # Do we need the "lib" prefix for modules?
44898 need_lib_prefix=$need_lib_prefix
44899
44900 # Do we need a version for libraries?
44901 need_version=$need_version
44902
44903 # Library versioning type.
44904 version_type=$version_type
44905
44906 # Shared library runtime path variable.
44907 runpath_var=$runpath_var
44908
44909 # Shared library path variable.
44910 shlibpath_var=$shlibpath_var
44911
44912 # Is shlibpath searched before the hard-coded library search path?
44913 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
44914
44915 # Format of library name prefix.
44916 libname_spec=$lt_libname_spec
44917
44918 # List of archive names.  First name is the real one, the rest are links.
44919 # The last name is the one that the linker finds with -lNAME
44920 library_names_spec=$lt_library_names_spec
44921
44922 # The coded name of the library, if different from the real name.
44923 soname_spec=$lt_soname_spec
44924
44925 # Command to use after installation of a shared archive.
44926 postinstall_cmds=$lt_postinstall_cmds
44927
44928 # Command to use after uninstallation of a shared archive.
44929 postuninstall_cmds=$lt_postuninstall_cmds
44930
44931 # Commands used to finish a libtool library installation in a directory.
44932 finish_cmds=$lt_finish_cmds
44933
44934 # As "finish_cmds", except a single script fragment to be evaled but
44935 # not shown.
44936 finish_eval=$lt_finish_eval
44937
44938 # Whether we should hardcode library paths into libraries.
44939 hardcode_into_libs=$hardcode_into_libs
44940
44941 # Compile-time system search path for libraries.
44942 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
44943
44944 # Run-time system search path for libraries.
44945 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
44946
44947 # Whether dlopen is supported.
44948 dlopen_support=$enable_dlopen
44949
44950 # Whether dlopen of programs is supported.
44951 dlopen_self=$enable_dlopen_self
44952
44953 # Whether dlopen of statically linked programs is supported.
44954 dlopen_self_static=$enable_dlopen_self_static
44955
44956 # Commands to strip libraries.
44957 old_striplib=$lt_old_striplib
44958 striplib=$lt_striplib
44959
44960
44961 # The linker used to build libraries.
44962 LD=$lt_LD
44963
44964 # Commands used to build an old-style archive.
44965 old_archive_cmds=$lt_old_archive_cmds
44966
44967 # A language specific compiler.
44968 CC=$lt_compiler
44969
44970 # Is the compiler the GNU compiler?
44971 with_gcc=$GCC
44972
44973 # Compiler flag to turn off builtin functions.
44974 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
44975
44976 # How to pass a linker flag through the compiler.
44977 wl=$lt_lt_prog_compiler_wl
44978
44979 # Additional compiler flags for building library objects.
44980 pic_flag=$lt_lt_prog_compiler_pic
44981
44982 # Compiler flag to prevent dynamic linking.
44983 link_static_flag=$lt_lt_prog_compiler_static
44984
44985 # Does compiler simultaneously support -c and -o options?
44986 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
44987
44988 # Whether or not to add -lc for building shared libraries.
44989 build_libtool_need_lc=$archive_cmds_need_lc
44990
44991 # Whether or not to disallow shared libs when runtime libs are static.
44992 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
44993
44994 # Compiler flag to allow reflexive dlopens.
44995 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
44996
44997 # Compiler flag to generate shared objects directly from archives.
44998 whole_archive_flag_spec=$lt_whole_archive_flag_spec
44999
45000 # Whether the compiler copes with passing no objects directly.
45001 compiler_needs_object=$lt_compiler_needs_object
45002
45003 # Create an old-style archive from a shared archive.
45004 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
45005
45006 # Create a temporary old-style archive to link instead of a shared archive.
45007 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
45008
45009 # Commands used to build a shared archive.
45010 archive_cmds=$lt_archive_cmds
45011 archive_expsym_cmds=$lt_archive_expsym_cmds
45012
45013 # Commands used to build a loadable module if different from building
45014 # a shared archive.
45015 module_cmds=$lt_module_cmds
45016 module_expsym_cmds=$lt_module_expsym_cmds
45017
45018 # Whether we are building with GNU ld or not.
45019 with_gnu_ld=$lt_with_gnu_ld
45020
45021 # Flag that allows shared libraries with undefined symbols to be built.
45022 allow_undefined_flag=$lt_allow_undefined_flag
45023
45024 # Flag that enforces no undefined symbols.
45025 no_undefined_flag=$lt_no_undefined_flag
45026
45027 # Flag to hardcode \$libdir into a binary during linking.
45028 # This must work even if \$libdir does not exist
45029 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
45030
45031 # If ld is used when linking, flag to hardcode \$libdir into a binary
45032 # during linking.  This must work even if \$libdir does not exist.
45033 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
45034
45035 # Whether we need a single "-rpath" flag with a separated argument.
45036 hardcode_libdir_separator=$lt_hardcode_libdir_separator
45037
45038 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
45039 # DIR into the resulting binary.
45040 hardcode_direct=$hardcode_direct
45041
45042 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
45043 # DIR into the resulting binary and the resulting library dependency is
45044 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
45045 # library is relocated.
45046 hardcode_direct_absolute=$hardcode_direct_absolute
45047
45048 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
45049 # into the resulting binary.
45050 hardcode_minus_L=$hardcode_minus_L
45051
45052 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
45053 # into the resulting binary.
45054 hardcode_shlibpath_var=$hardcode_shlibpath_var
45055
45056 # Set to "yes" if building a shared library automatically hardcodes DIR
45057 # into the library and all subsequent libraries and executables linked
45058 # against it.
45059 hardcode_automatic=$hardcode_automatic
45060
45061 # Set to yes if linker adds runtime paths of dependent libraries
45062 # to runtime path list.
45063 inherit_rpath=$inherit_rpath
45064
45065 # Whether libtool must link a program against all its dependency libraries.
45066 link_all_deplibs=$link_all_deplibs
45067
45068 # Fix the shell variable \$srcfile for the compiler.
45069 fix_srcfile_path=$lt_fix_srcfile_path
45070
45071 # Set to "yes" if exported symbols are required.
45072 always_export_symbols=$always_export_symbols
45073
45074 # The commands to list exported symbols.
45075 export_symbols_cmds=$lt_export_symbols_cmds
45076
45077 # Symbols that should not be listed in the preloaded symbols.
45078 exclude_expsyms=$lt_exclude_expsyms
45079
45080 # Symbols that must always be exported.
45081 include_expsyms=$lt_include_expsyms
45082
45083 # Commands necessary for linking programs (against libraries) with templates.
45084 prelink_cmds=$lt_prelink_cmds
45085
45086 # Specify filename containing input files.
45087 file_list_spec=$lt_file_list_spec
45088
45089 # How to hardcode a shared library path into an executable.
45090 hardcode_action=$hardcode_action
45091
45092 # The directories searched by this compiler when creating a shared library.
45093 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
45094
45095 # Dependencies to place before and after the objects being linked to
45096 # create a shared library.
45097 predep_objects=$lt_predep_objects
45098 postdep_objects=$lt_postdep_objects
45099 predeps=$lt_predeps
45100 postdeps=$lt_postdeps
45101
45102 # The library search path used internally by the compiler when linking
45103 # a shared library.
45104 compiler_lib_search_path=$lt_compiler_lib_search_path
45105
45106 # ### END LIBTOOL CONFIG
45107
45108 _LT_EOF
45109
45110   case $host_os in
45111   aix3*)
45112     cat <<\_LT_EOF >> "$cfgfile"
45113 # AIX sometimes has problems with the GCC collect2 program.  For some
45114 # reason, if we set the COLLECT_NAMES environment variable, the problems
45115 # vanish in a puff of smoke.
45116 if test "X${COLLECT_NAMES+set}" != Xset; then
45117   COLLECT_NAMES=
45118   export COLLECT_NAMES
45119 fi
45120 _LT_EOF
45121     ;;
45122   esac
45123
45124
45125 ltmain="$ac_aux_dir/ltmain.sh"
45126
45127
45128   # We use sed instead of cat because bash on DJGPP gets confused if
45129   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
45130   # text mode, it properly converts lines to CR/LF.  This bash problem
45131   # is reportedly fixed, but why not run on old versions too?
45132   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
45133     || (rm -f "$cfgfile"; exit 1)
45134
45135   case $xsi_shell in
45136   yes)
45137     cat << \_LT_EOF >> "$cfgfile"
45138
45139 # func_dirname file append nondir_replacement
45140 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
45141 # otherwise set result to NONDIR_REPLACEMENT.
45142 func_dirname ()
45143 {
45144   case ${1} in
45145     */*) func_dirname_result="${1%/*}${2}" ;;
45146     *  ) func_dirname_result="${3}" ;;
45147   esac
45148 }
45149
45150 # func_basename file
45151 func_basename ()
45152 {
45153   func_basename_result="${1##*/}"
45154 }
45155
45156 # func_dirname_and_basename file append nondir_replacement
45157 # perform func_basename and func_dirname in a single function
45158 # call:
45159 #   dirname:  Compute the dirname of FILE.  If nonempty,
45160 #             add APPEND to the result, otherwise set result
45161 #             to NONDIR_REPLACEMENT.
45162 #             value returned in "$func_dirname_result"
45163 #   basename: Compute filename of FILE.
45164 #             value retuned in "$func_basename_result"
45165 # Implementation must be kept synchronized with func_dirname
45166 # and func_basename. For efficiency, we do not delegate to
45167 # those functions but instead duplicate the functionality here.
45168 func_dirname_and_basename ()
45169 {
45170   case ${1} in
45171     */*) func_dirname_result="${1%/*}${2}" ;;
45172     *  ) func_dirname_result="${3}" ;;
45173   esac
45174   func_basename_result="${1##*/}"
45175 }
45176
45177 # func_stripname prefix suffix name
45178 # strip PREFIX and SUFFIX off of NAME.
45179 # PREFIX and SUFFIX must not contain globbing or regex special
45180 # characters, hashes, percent signs, but SUFFIX may contain a leading
45181 # dot (in which case that matches only a dot).
45182 func_stripname ()
45183 {
45184   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
45185   # positional parameters, so assign one to ordinary parameter first.
45186   func_stripname_result=${3}
45187   func_stripname_result=${func_stripname_result#"${1}"}
45188   func_stripname_result=${func_stripname_result%"${2}"}
45189 }
45190
45191 # func_opt_split
45192 func_opt_split ()
45193 {
45194   func_opt_split_opt=${1%%=*}
45195   func_opt_split_arg=${1#*=}
45196 }
45197
45198 # func_lo2o object
45199 func_lo2o ()
45200 {
45201   case ${1} in
45202     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
45203     *)    func_lo2o_result=${1} ;;
45204   esac
45205 }
45206
45207 # func_xform libobj-or-source
45208 func_xform ()
45209 {
45210   func_xform_result=${1%.*}.lo
45211 }
45212
45213 # func_arith arithmetic-term...
45214 func_arith ()
45215 {
45216   func_arith_result=$(( $* ))
45217 }
45218
45219 # func_len string
45220 # STRING may not start with a hyphen.
45221 func_len ()
45222 {
45223   func_len_result=${#1}
45224 }
45225
45226 _LT_EOF
45227     ;;
45228   *) # Bourne compatible functions.
45229     cat << \_LT_EOF >> "$cfgfile"
45230
45231 # func_dirname file append nondir_replacement
45232 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
45233 # otherwise set result to NONDIR_REPLACEMENT.
45234 func_dirname ()
45235 {
45236   # Extract subdirectory from the argument.
45237   func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
45238   if test "X$func_dirname_result" = "X${1}"; then
45239     func_dirname_result="${3}"
45240   else
45241     func_dirname_result="$func_dirname_result${2}"
45242   fi
45243 }
45244
45245 # func_basename file
45246 func_basename ()
45247 {
45248   func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
45249 }
45250
45251
45252 # func_stripname prefix suffix name
45253 # strip PREFIX and SUFFIX off of NAME.
45254 # PREFIX and SUFFIX must not contain globbing or regex special
45255 # characters, hashes, percent signs, but SUFFIX may contain a leading
45256 # dot (in which case that matches only a dot).
45257 # func_strip_suffix prefix name
45258 func_stripname ()
45259 {
45260   case ${2} in
45261     .*) func_stripname_result=`$ECHO "X${3}" \
45262            | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
45263     *)  func_stripname_result=`$ECHO "X${3}" \
45264            | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
45265   esac
45266 }
45267
45268 # sed scripts:
45269 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
45270 my_sed_long_arg='1s/^-[^=]*=//'
45271
45272 # func_opt_split
45273 func_opt_split ()
45274 {
45275   func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
45276   func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
45277 }
45278
45279 # func_lo2o object
45280 func_lo2o ()
45281 {
45282   func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
45283 }
45284
45285 # func_xform libobj-or-source
45286 func_xform ()
45287 {
45288   func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
45289 }
45290
45291 # func_arith arithmetic-term...
45292 func_arith ()
45293 {
45294   func_arith_result=`expr "$@"`
45295 }
45296
45297 # func_len string
45298 # STRING may not start with a hyphen.
45299 func_len ()
45300 {
45301   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
45302 }
45303
45304 _LT_EOF
45305 esac
45306
45307 case $lt_shell_append in
45308   yes)
45309     cat << \_LT_EOF >> "$cfgfile"
45310
45311 # func_append var value
45312 # Append VALUE to the end of shell variable VAR.
45313 func_append ()
45314 {
45315   eval "$1+=\$2"
45316 }
45317 _LT_EOF
45318     ;;
45319   *)
45320     cat << \_LT_EOF >> "$cfgfile"
45321
45322 # func_append var value
45323 # Append VALUE to the end of shell variable VAR.
45324 func_append ()
45325 {
45326   eval "$1=\$$1\$2"
45327 }
45328
45329 _LT_EOF
45330     ;;
45331   esac
45332
45333
45334   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
45335     || (rm -f "$cfgfile"; exit 1)
45336
45337   mv -f "$cfgfile" "$ofile" ||
45338     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
45339   chmod +x "$ofile"
45340
45341
45342     cat <<_LT_EOF >> "$ofile"
45343
45344 # ### BEGIN LIBTOOL TAG CONFIG: CXX
45345
45346 # The linker used to build libraries.
45347 LD=$lt_LD_CXX
45348
45349 # Commands used to build an old-style archive.
45350 old_archive_cmds=$lt_old_archive_cmds_CXX
45351
45352 # A language specific compiler.
45353 CC=$lt_compiler_CXX
45354
45355 # Is the compiler the GNU compiler?
45356 with_gcc=$GCC_CXX
45357
45358 # Compiler flag to turn off builtin functions.
45359 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
45360
45361 # How to pass a linker flag through the compiler.
45362 wl=$lt_lt_prog_compiler_wl_CXX
45363
45364 # Additional compiler flags for building library objects.
45365 pic_flag=$lt_lt_prog_compiler_pic_CXX
45366
45367 # Compiler flag to prevent dynamic linking.
45368 link_static_flag=$lt_lt_prog_compiler_static_CXX
45369
45370 # Does compiler simultaneously support -c and -o options?
45371 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
45372
45373 # Whether or not to add -lc for building shared libraries.
45374 build_libtool_need_lc=$archive_cmds_need_lc_CXX
45375
45376 # Whether or not to disallow shared libs when runtime libs are static.
45377 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
45378
45379 # Compiler flag to allow reflexive dlopens.
45380 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
45381
45382 # Compiler flag to generate shared objects directly from archives.
45383 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
45384
45385 # Whether the compiler copes with passing no objects directly.
45386 compiler_needs_object=$lt_compiler_needs_object_CXX
45387
45388 # Create an old-style archive from a shared archive.
45389 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
45390
45391 # Create a temporary old-style archive to link instead of a shared archive.
45392 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
45393
45394 # Commands used to build a shared archive.
45395 archive_cmds=$lt_archive_cmds_CXX
45396 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
45397
45398 # Commands used to build a loadable module if different from building
45399 # a shared archive.
45400 module_cmds=$lt_module_cmds_CXX
45401 module_expsym_cmds=$lt_module_expsym_cmds_CXX
45402
45403 # Whether we are building with GNU ld or not.
45404 with_gnu_ld=$lt_with_gnu_ld_CXX
45405
45406 # Flag that allows shared libraries with undefined symbols to be built.
45407 allow_undefined_flag=$lt_allow_undefined_flag_CXX
45408
45409 # Flag that enforces no undefined symbols.
45410 no_undefined_flag=$lt_no_undefined_flag_CXX
45411
45412 # Flag to hardcode \$libdir into a binary during linking.
45413 # This must work even if \$libdir does not exist
45414 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
45415
45416 # If ld is used when linking, flag to hardcode \$libdir into a binary
45417 # during linking.  This must work even if \$libdir does not exist.
45418 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
45419
45420 # Whether we need a single "-rpath" flag with a separated argument.
45421 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
45422
45423 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
45424 # DIR into the resulting binary.
45425 hardcode_direct=$hardcode_direct_CXX
45426
45427 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
45428 # DIR into the resulting binary and the resulting library dependency is
45429 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
45430 # library is relocated.
45431 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
45432
45433 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
45434 # into the resulting binary.
45435 hardcode_minus_L=$hardcode_minus_L_CXX
45436
45437 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
45438 # into the resulting binary.
45439 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
45440
45441 # Set to "yes" if building a shared library automatically hardcodes DIR
45442 # into the library and all subsequent libraries and executables linked
45443 # against it.
45444 hardcode_automatic=$hardcode_automatic_CXX
45445
45446 # Set to yes if linker adds runtime paths of dependent libraries
45447 # to runtime path list.
45448 inherit_rpath=$inherit_rpath_CXX
45449
45450 # Whether libtool must link a program against all its dependency libraries.
45451 link_all_deplibs=$link_all_deplibs_CXX
45452
45453 # Fix the shell variable \$srcfile for the compiler.
45454 fix_srcfile_path=$lt_fix_srcfile_path_CXX
45455
45456 # Set to "yes" if exported symbols are required.
45457 always_export_symbols=$always_export_symbols_CXX
45458
45459 # The commands to list exported symbols.
45460 export_symbols_cmds=$lt_export_symbols_cmds_CXX
45461
45462 # Symbols that should not be listed in the preloaded symbols.
45463 exclude_expsyms=$lt_exclude_expsyms_CXX
45464
45465 # Symbols that must always be exported.
45466 include_expsyms=$lt_include_expsyms_CXX
45467
45468 # Commands necessary for linking programs (against libraries) with templates.
45469 prelink_cmds=$lt_prelink_cmds_CXX
45470
45471 # Specify filename containing input files.
45472 file_list_spec=$lt_file_list_spec_CXX
45473
45474 # How to hardcode a shared library path into an executable.
45475 hardcode_action=$hardcode_action_CXX
45476
45477 # The directories searched by this compiler when creating a shared library.
45478 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
45479
45480 # Dependencies to place before and after the objects being linked to
45481 # create a shared library.
45482 predep_objects=$lt_predep_objects_CXX
45483 postdep_objects=$lt_postdep_objects_CXX
45484 predeps=$lt_predeps_CXX
45485 postdeps=$lt_postdeps_CXX
45486
45487 # The library search path used internally by the compiler when linking
45488 # a shared library.
45489 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
45490
45491 # ### END LIBTOOL TAG CONFIG: CXX
45492 _LT_EOF
45493
45494  ;;
45495     "default-1":C)
45496     for ac_file in $CONFIG_FILES; do
45497       # Support "outfile[:infile[:infile...]]"
45498       case "$ac_file" in
45499         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
45500       esac
45501       # PO directories have a Makefile.in generated from Makefile.in.in.
45502       case "$ac_file" in */Makefile.in)
45503         # Adjust a relative srcdir.
45504         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
45505         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
45506         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
45507         # In autoconf-2.13 it is called $ac_given_srcdir.
45508         # In autoconf-2.50 it is called $srcdir.
45509         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
45510         case "$ac_given_srcdir" in
45511           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
45512           /*) top_srcdir="$ac_given_srcdir" ;;
45513           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
45514         esac
45515         # Treat a directory as a PO directory if and only if it has a
45516         # POTFILES.in file. This allows packages to have multiple PO
45517         # directories under different names or in different locations.
45518         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
45519           rm -f "$ac_dir/POTFILES"
45520           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
45521           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
45522           POMAKEFILEDEPS="POTFILES.in"
45523           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
45524           # on $ac_dir but don't depend on user-specified configuration
45525           # parameters.
45526           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
45527             # The LINGUAS file contains the set of available languages.
45528             if test -n "$OBSOLETE_ALL_LINGUAS"; then
45529               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
45530             fi
45531             ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
45532             # Hide the ALL_LINGUAS assigment from automake.
45533             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
45534             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
45535           else
45536             # The set of available languages was given in configure.in.
45537             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
45538           fi
45539           # Compute POFILES
45540           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
45541           # Compute UPDATEPOFILES
45542           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
45543           # Compute DUMMYPOFILES
45544           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
45545           # Compute GMOFILES
45546           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
45547           case "$ac_given_srcdir" in
45548             .) srcdirpre= ;;
45549             *) srcdirpre='$(srcdir)/' ;;
45550           esac
45551           POFILES=
45552           UPDATEPOFILES=
45553           DUMMYPOFILES=
45554           GMOFILES=
45555           for lang in $ALL_LINGUAS; do
45556             POFILES="$POFILES $srcdirpre$lang.po"
45557             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
45558             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
45559             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
45560           done
45561           # CATALOGS depends on both $ac_dir and the user's LINGUAS
45562           # environment variable.
45563           INST_LINGUAS=
45564           if test -n "$ALL_LINGUAS"; then
45565             for presentlang in $ALL_LINGUAS; do
45566               useit=no
45567               if test "%UNSET%" != "$LINGUAS"; then
45568                 desiredlanguages="$LINGUAS"
45569               else
45570                 desiredlanguages="$ALL_LINGUAS"
45571               fi
45572               for desiredlang in $desiredlanguages; do
45573                 # Use the presentlang catalog if desiredlang is
45574                 #   a. equal to presentlang, or
45575                 #   b. a variant of presentlang (because in this case,
45576                 #      presentlang can be used as a fallback for messages
45577                 #      which are not translated in the desiredlang catalog).
45578                 case "$desiredlang" in
45579                   "$presentlang"*) useit=yes;;
45580                 esac
45581               done
45582               if test $useit = yes; then
45583                 INST_LINGUAS="$INST_LINGUAS $presentlang"
45584               fi
45585             done
45586           fi
45587           CATALOGS=
45588           if test -n "$INST_LINGUAS"; then
45589             for lang in $INST_LINGUAS; do
45590               CATALOGS="$CATALOGS $lang.gmo"
45591             done
45592           fi
45593           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
45594           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"
45595           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
45596             if test -f "$f"; then
45597               case "$f" in
45598                 *.orig | *.bak | *~) ;;
45599                 *) cat "$f" >> "$ac_dir/Makefile" ;;
45600               esac
45601             fi
45602           done
45603         fi
45604         ;;
45605       esac
45606     done ;;
45607     "default":C)
45608  ;;
45609
45610   esac
45611 done # for ac_tag
45612
45613
45614 { (exit 0); exit 0; }
45615 _ACEOF
45616 chmod +x $CONFIG_STATUS
45617 ac_clean_files=$ac_clean_files_save
45618
45619
45620 # configure is writing to config.log, and then calls config.status.
45621 # config.status does its own redirection, appending to config.log.
45622 # Unfortunately, on DOS this fails, as config.log is still kept open
45623 # by configure, so config.status won't be able to write to it; its
45624 # output is simply discarded.  So we exec the FD to /dev/null,
45625 # effectively closing config.log, so it can be properly (re)opened and
45626 # appended to by config.status.  When coming back to configure, we
45627 # need to make the FD available again.
45628 if test "$no_create" != yes; then
45629   ac_cs_success=:
45630   ac_config_status_args=
45631   test "$silent" = yes &&
45632     ac_config_status_args="$ac_config_status_args --quiet"
45633   exec 5>/dev/null
45634   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
45635   exec 5>>config.log
45636   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
45637   # would make configure fail if this is the last instruction.
45638   $ac_cs_success || { (exit 1); exit 1; }
45639 fi
45640
45641
45642 if test "${support_bat}" = "yes" ; then
45643    if test "x$QMAKE" = "xnone" && test "x$QMAKEQT4" = "xnone"; then
45644       echo "Could not find qmake or qmake-qt4 in $PATH. Check your Qt installation"
45645       exit 1
45646    fi
45647
45648    QMAKEBIN="qmake"
45649
45650    if test "x$QMAKEQT4" != "xnone"; then
45651        QMAKEBIN=qmake-qt4
45652    fi
45653
45654    cd src/qt-console
45655    echo "Creating bat Makefile"
45656    $QMAKEBIN
45657    make clean
45658    cd ${BUILD_DIR}
45659 fi
45660
45661 if test X"$GCC" = "Xyes" ; then
45662   echo "Doing make of dependencies"
45663   ${MAKE:-make} depend
45664 fi
45665
45666 cd src/qt-console
45667 chmod 755 install_conf_file build-depkgs-qt-console
45668 cd ${BUILD_DIR}
45669
45670 cd scripts
45671 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
45672 chmod 755 dvd-handler dvd-simulator
45673 chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
45674 cd ..
45675
45676 c=updatedb
45677 chmod 755 $c/update_mysql_tables_10_to_11   $c/update_sqlite3_tables_10_to_11
45678 chmod 755 $c/update_postgresql_tables_10_to_11   $c/update_sqlite_tables_10_to_11
45679
45680 c=src/cats
45681
45682 chmod 755 $c/create_bacula_database   $c/update_bacula_tables  $c/make_bacula_tables
45683 chmod 755 $c/grant_bacula_privileges  $c/drop_bacula_tables    $c/drop_bacula_database
45684
45685 chmod 755 $c/create_bdb_database      $c/update_bdb_tables     $c/make_bdb_tables
45686 chmod 755 $c/grant_bdb_privileges     $c/drop_bdb_tables       $c/drop_bdb_database
45687
45688 chmod 755 $c/create_mysql_database    $c/update_mysql_tables   $c/make_mysql_tables
45689 chmod 755 $c/grant_mysql_privileges   $c/drop_mysql_tables     $c/drop_mysql_database
45690
45691 chmod 755 $c/create_sqlite_database   $c/update_sqlite_tables  $c/make_sqlite_tables
45692 chmod 755 $c/grant_sqlite_privileges  $c/drop_sqlite_tables    $c/drop_sqlite_database
45693
45694 chmod 755 $c/create_sqlite3_database   $c/update_sqlite3_tables  $c/make_sqlite3_tables
45695 chmod 755 $c/grant_sqlite3_privileges  $c/drop_sqlite3_tables    $c/drop_sqlite3_database
45696
45697 chmod 755 $c/create_postgresql_database  $c/update_postgresql_tables $c/make_postgresql_tables
45698 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables   $c/drop_postgresql_database
45699
45700 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup
45701 chmod 755 $c/sqlite
45702 chmod 755 $c/mysql
45703
45704 chmod 755 src/win32/build-depkgs-mingw32
45705
45706 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
45707    largefile_support="yes"
45708 fi
45709
45710 if test X"$GCC" = "Xyes" ; then
45711                CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
45712    if test "x${CCVERSION}" = "x" ; then
45713       CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
45714    fi
45715    CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
45716    if test x"${CXXVERSION}" = x ; then
45717       CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
45718    fi
45719 fi
45720
45721 # clean up any old junk
45722 echo " "
45723 echo "Cleaning up"
45724 echo " "
45725 make clean
45726
45727 if test "x${db_type}" = "xInternal" ; then
45728    echo " "
45729    echo " "
45730    echo "You have not specified either --enable-client-only or one of the"
45731    echo "  supported databases: MySQL, PostgreSQL, SQLite3, SQLite or DBI."
45732    echo "  This is not permitted. Please reconfigure."
45733    echo " "
45734    echo "Aborting the configuration ..."
45735    echo " "
45736    echo " "
45737    exit 1
45738 fi
45739
45740 echo "
45741 Configuration on `date`:
45742
45743    Host:                    ${host}${post_host} -- ${DISTNAME} ${DISTVER}
45744    Bacula version:          ${BACULA} ${VERSION} (${DATE})
45745    Source code location:    ${srcdir}
45746    Install binaries:        ${sbindir}
45747    Install libraries:       ${libdir}
45748    Install config files:    ${sysconfdir}
45749    Scripts directory:       ${scriptdir}
45750    Archive directory:       ${archivedir}
45751    Working directory:       ${working_dir}
45752    PID directory:           ${piddir}
45753    Subsys directory:        ${subsysdir}
45754    Man directory:           ${mandir}
45755    Data directory:          ${datarootdir}
45756    Plugin directory:        ${plugindir}
45757    C Compiler:              ${CC} ${CCVERSION}
45758    C++ Compiler:            ${CXX} ${CXXVERSION}
45759    Compiler flags:          ${WCFLAGS} ${CFLAGS}
45760    Linker flags:            ${WLDFLAGS} ${LDFLAGS}
45761    Libraries:               ${LIBS}
45762    Statically Linked Tools: ${support_static_tools}
45763    Statically Linked FD:    ${support_static_fd}
45764    Statically Linked SD:    ${support_static_sd}
45765    Statically Linked DIR:   ${support_static_dir}
45766    Statically Linked CONS:  ${support_static_cons}
45767    Database type:           ${db_type}
45768    Database port:           ${db_port}
45769    Database lib:            ${DB_LIBS}
45770    Database name:           ${db_name}
45771    Database user:           ${db_user}
45772
45773    Job Output Email:        ${job_email}
45774    Traceback Email:         ${dump_email}
45775    SMTP Host Address:       ${smtp_host}
45776
45777    Director Port:           ${dir_port}
45778    File daemon Port:        ${fd_port}
45779    Storage daemon Port:     ${sd_port}
45780
45781    Director User:           ${dir_user}
45782    Director Group:          ${dir_group}
45783    Storage Daemon User:     ${sd_user}
45784    Storage DaemonGroup:     ${sd_group}
45785    File Daemon User:        ${fd_user}
45786    File Daemon Group:       ${fd_group}
45787
45788    SQL binaries Directory   ${SQL_BINDIR}
45789
45790    Large file support:      $largefile_support
45791    Bacula conio support:    ${got_conio} ${CONS_LIBS}
45792    readline support:        ${got_readline} ${PRTREADLINE_SRC}
45793    TCP Wrappers support:    ${TCPW_MSG} ${WRAPLIBS}
45794    TLS support:             ${support_tls}
45795    Encryption support:      ${support_crypto}
45796    ZLIB support:            ${have_zlib}
45797    enable-smartalloc:       ${support_smartalloc}
45798    enable-lockmgr:          ${support_lockmgr}
45799    bat support:             ${support_bat} ${QWT_LDFLAGS}
45800    enable-gnome:            ${support_gnome} ${gnome_version}
45801    enable-bwx-console:      ${support_wx_console} ${wx_version}
45802    enable-tray-monitor:     ${support_tray_monitor}
45803    client-only:             ${build_client_only}
45804    build-dird:              ${build_dird}
45805    build-stored:            ${build_stored}
45806    ACL support:             ${have_acl}
45807    XATTR support:           ${have_xattr}
45808    Python support:          ${support_python} ${PYTHON_LIBS}
45809    Batch insert enabled:    ${support_batch_insert}
45810
45811   " > config.out
45812
45813 cat config.out